From 4bb8c143e2c22641f68bab5019226c4b70b7b922 Mon Sep 17 00:00:00 2001 From: Xor290 Date: Sun, 4 Oct 2026 12:52:16 +0200 Subject: [PATCH] chore: build --- control-plane/api/cmd/api/main.go | 2 + .../api/internal/demos/helm_provisioner.go | 8 +- .../api/internal/demos/project_provisioner.go | 56 +- .../demos/project_provisioner_test.go | 12 +- .../api/internal/projects/handler.go | 29 +- .../api/internal/projects/handler_test.go | 34 + control-plane/api/internal/projects/models.go | 3 + .../api/internal/projects/service.go | 84 +- .../api/internal/projects/service_test.go | 115 +- control-plane/api/internal/router/router.go | 1 + deploy/chart-vitrine/README.md | 30 + .../ingressroute/templates/_helpers.tpl | 10 + .../ingressroute/templates/ingressroute.yaml | 6 +- deploy/chart-vitrine/ingressroute/values.yaml | 6 + docker/.env | 4 +- docker/docker-compose.yml | 22 +- docker/waf/custom-rules.conf | 8 + web/dist/assets/index-BdLZEtG3.js | 1510 +++++++++++++++++ web/dist/assets/index-rDhSK02l.js | 1510 ----------------- web/dist/index.html | 2 +- web/src/App.tsx | 2 + web/src/components/EditDomainModal.tsx | 33 +- web/src/components/Footer.tsx | 1 + web/src/components/Header.tsx | 1 + web/src/lib/api.ts | 4 + web/src/lib/links.ts | 2 + web/src/pages/Pricing.tsx | 20 +- web/src/pages/Vitrine.tsx | 251 +++ web/src/pages/backoffice/Projects.tsx | 51 +- 29 files changed, 2256 insertions(+), 1561 deletions(-) create mode 100644 web/dist/assets/index-BdLZEtG3.js delete mode 100644 web/dist/assets/index-rDhSK02l.js create mode 100644 web/src/lib/links.ts create mode 100644 web/src/pages/Vitrine.tsx diff --git a/control-plane/api/cmd/api/main.go b/control-plane/api/cmd/api/main.go index 52e37c5..93d2922 100644 --- a/control-plane/api/cmd/api/main.go +++ b/control-plane/api/cmd/api/main.go @@ -173,6 +173,8 @@ func main() { // prolongée ; supprimés à l'échéance (voir internal/projects). projectSvc := projects.NewService(projectStore, helmProv, projects.Config{ Domain: cfg.VitrineDomain, + // Un client ne peut pas revendiquer un domaine d'Omnex (démos). + ReservedDomains: []string{cfg.DemoDomain}, }) go projectSvc.RunExpirationLoop(context.Background(), 5*time.Minute) diff --git a/control-plane/api/internal/demos/helm_provisioner.go b/control-plane/api/internal/demos/helm_provisioner.go index e8de3ec..0c2a8d9 100644 --- a/control-plane/api/internal/demos/helm_provisioner.go +++ b/control-plane/api/internal/demos/helm_provisioner.go @@ -961,9 +961,15 @@ func (h *HelmProvisioner) installChartFrom(chartsDir, namespace, chartName strin // (helm upgrade --install) — pour l'infra partagée (Traefik), appelée à // chaque démarrage de l'API et qui ne doit pas échouer si déjà en place. func (h *HelmProvisioner) upgradeInstallChart(namespace, release, chartName string, values map[string]interface{}) error { + return h.upgradeInstallChartFrom(h.chartsDir, namespace, release, chartName, values) +} + +// upgradeInstallChartFrom : comme upgradeInstallChart, pour un dossier de +// charts donné (démos : h.chartsDir ; projets vitrine : h.vitrineChartsDir). +func (h *HelmProvisioner) upgradeInstallChartFrom(chartsDir, namespace, release, chartName string, values map[string]interface{}) error { args := []string{ "upgrade", release, - filepath.Join(h.chartsDir, chartName), + filepath.Join(chartsDir, chartName), "--install", "--namespace", namespace, "--wait", diff --git a/control-plane/api/internal/demos/project_provisioner.go b/control-plane/api/internal/demos/project_provisioner.go index 4c052a6..108e07c 100644 --- a/control-plane/api/internal/demos/project_provisioner.go +++ b/control-plane/api/internal/demos/project_provisioner.go @@ -189,6 +189,52 @@ func buildProjectState(pods []corev1.Pod, usage map[string][2]int64) ResourceSta return state } +// ProjectDomainSpec : domaine public d'un projet vitrine déjà déployé. +type ProjectDomainSpec struct { + Namespace string + Host string // hôte par défaut (.), toujours servi + // CustomDomain : domaine du client, servi en plus de Host. "" = aucun. + CustomDomain string + // URL publique à utiliser pour les liens absolus du backend (médias). + URL string +} + +// UpdateProjectDomain applique le domaine d'un projet : l'IngressRoute sert +// l'hôte par défaut ET le domaine du client (le site reste joignable sur son +// adresse d'origine tant que le DNS ou le certificat du domaine ne sont pas +// prêts), puis le backend reprend l'URL publique pour ses liens de médias. +// Idempotent : le service peut le rejouer après un échec partiel. +func (h *HelmProvisioner) UpdateProjectDomain(s ProjectDomainSpec) error { + var extra []string + if s.CustomDomain != "" { + extra = []string{s.CustomDomain} + } + ingress := h.buildVitrineIngressRouteValues(ProjectSpec{Namespace: s.Namespace, Host: s.Host}, extra...) + if err := h.upgradeInstallChartFrom(h.vitrineChartsDir, s.Namespace, s.Namespace+"-ingressroute", "ingressroute", ingress); err != nil { + return fmt.Errorf("mise à jour ingressroute: %w", err) + } + + // Les valeurs de la release (secrets compris) sont relues telles que + // déployées : seul MEDIA_LOCAL_BASE_URL change. Le changement de ConfigMap + // relance le Deployment (annotation checksum/config du chart). + backend := s.Namespace + "-backend" + values, err := h.getReleaseValues(s.Namespace, backend) + if err != nil { + return fmt.Errorf("lecture des valeurs du backend: %w", err) + } + env, _ := values["env"].(map[string]interface{}) + if env == nil { + env = map[string]interface{}{} + } + env["MEDIA_LOCAL_BASE_URL"] = s.URL + "/uploads" + values["env"] = env + if err := h.upgradeInstallChartFrom(h.vitrineChartsDir, s.Namespace, backend, "backend", values); err != nil { + return fmt.Errorf("mise à jour du backend: %w", err) + } + log.Printf("Domaine du projet %s mis à jour: %s", s.Namespace, s.URL) + return nil +} + func (h *HelmProvisioner) buildVitrinePostgresValues(password string) map[string]interface{} { // Nom de base et utilisateur : défauts du chart (vitrine_db / postgres), // alignés sur database.name / database.user du chart backend. @@ -247,11 +293,17 @@ func (h *HelmProvisioner) buildVitrineFrontendValues() map[string]interface{} { } } -func (h *HelmProvisioner) buildVitrineIngressRouteValues(p ProjectSpec) map[string]interface{} { - return map[string]interface{}{ +// buildVitrineIngressRouteValues : extraHosts = domaines personnalisés du +// client, servis en plus de l'hôte par défaut p.Host. +func (h *HelmProvisioner) buildVitrineIngressRouteValues(p ProjectSpec, extraHosts ...string) map[string]interface{} { + values := map[string]interface{}{ "host": p.Host, "traefikNamespace": sharedTraefikNamespace, "backend": map[string]interface{}{"serviceName": vitrineBackendService(p.Namespace)}, "frontend": map[string]interface{}{"serviceName": vitrineFrontendService(p.Namespace)}, } + if len(extraHosts) > 0 { + values["extraHosts"] = extraHosts + } + return values } diff --git a/control-plane/api/internal/demos/project_provisioner_test.go b/control-plane/api/internal/demos/project_provisioner_test.go index 7728837..4e7ea31 100644 --- a/control-plane/api/internal/demos/project_provisioner_test.go +++ b/control-plane/api/internal/demos/project_provisioner_test.go @@ -1,6 +1,7 @@ package demos import ( + "fmt" "os" "os/exec" "path/filepath" @@ -64,9 +65,16 @@ func TestVitrineValuesRenderWithCharts(t *testing.T) { "name: " + vitrineFrontendService(p.Namespace) + "\n", "tls: {}", // certificat servi par le TLSStore, pas par projet }}, + // Domaine personnalisé : servi EN PLUS de l'hôte par défaut, sur les + // trois routes (API, médias, frontend). + {"ingressroute", h.buildVitrineIngressRouteValues(p, "boutique.client.fr"), []string{ + "(Host(`vitrine-ab12cd34.vitrine-omnex.club`) || Host(`boutique.client.fr`)) && PathPrefix(`/api/`)", + "(Host(`vitrine-ab12cd34.vitrine-omnex.club`) || Host(`boutique.client.fr`)) && PathPrefix(`/uploads/`)", + "match: Host(`vitrine-ab12cd34.vitrine-omnex.club`) || Host(`boutique.client.fr`)\n", + }}, } - for _, c := range cases { - t.Run(c.chart, func(t *testing.T) { + for i, c := range cases { + t.Run(fmt.Sprintf("%s-%d", c.chart, i), func(t *testing.T) { raw, err := yaml.Marshal(c.values) if err != nil { t.Fatal(err) diff --git a/control-plane/api/internal/projects/handler.go b/control-plane/api/internal/projects/handler.go index c0e33e3..1e3165a 100644 --- a/control-plane/api/internal/projects/handler.go +++ b/control-plane/api/internal/projects/handler.go @@ -5,6 +5,8 @@ import ( "net/http" "github.com/gin-gonic/gin" + + "github.com/omnex/control-plane/api/internal/demos" ) type Handler struct{ svc *Service } @@ -21,6 +23,12 @@ type createRequest struct { AdminNumber int `json:"admin_number" binding:"omitempty,min=1,max=20"` } +type domainRequest struct { + // Domain : nom d'hôte sans protocole ni chemin (ex. "boutique.client.fr"). + // Vide = retire le domaine personnalisé. + Domain string `json:"domain" binding:"omitempty,max=253"` +} + type extendRequest struct { Months int `json:"months" binding:"required,min=1,max=12"` } @@ -29,10 +37,11 @@ func (h *Handler) writeError(c *gin.Context, err error) { switch { case errors.Is(err, ErrNotFound): c.JSON(http.StatusNotFound, gin.H{"error": err.Error()}) - case errors.Is(err, ErrNotExtendable): + case errors.Is(err, ErrNotExtendable), errors.Is(err, ErrNotReady), errors.Is(err, ErrDomainTaken): c.JSON(http.StatusConflict, gin.H{"error": err.Error()}) case errors.Is(err, ErrInvalidMonths), errors.Is(err, ErrInvalidClient), errors.Is(err, ErrInvalidAdmin), - errors.Is(err, ErrWeakAdminPass), errors.Is(err, ErrInvalidAdminSize): + errors.Is(err, ErrWeakAdminPass), errors.Is(err, ErrInvalidAdminSize), errors.Is(err, ErrDomainReserved), + errors.Is(err, demos.ErrInvalidDomain): c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()}) default: c.JSON(http.StatusInternalServerError, gin.H{"error": "erreur serveur"}) @@ -87,6 +96,22 @@ func (h *Handler) Details(c *gin.Context) { c.JSON(http.StatusOK, gin.H{"namespace": p.Namespace, "state": state}) } +// SetDomain : POST /projects/:id/domain {"domain": "boutique.client.fr"} — +// définit le domaine personnalisé du client ; domaine vide = le retire. +func (h *Handler) SetDomain(c *gin.Context) { + var req domainRequest + if err := c.ShouldBindJSON(&req); err != nil { + c.JSON(http.StatusBadRequest, gin.H{"error": "requête invalide"}) + return + } + p, err := h.svc.SetDomain(c.Param("id"), req.Domain) + if err != nil { + h.writeError(c, err) + return + } + c.JSON(http.StatusOK, p) +} + // Get : GET /projects/:id. func (h *Handler) Get(c *gin.Context) { p, err := h.svc.Get(c.Param("id")) diff --git a/control-plane/api/internal/projects/handler_test.go b/control-plane/api/internal/projects/handler_test.go index 3f30668..1244531 100644 --- a/control-plane/api/internal/projects/handler_test.go +++ b/control-plane/api/internal/projects/handler_test.go @@ -25,6 +25,7 @@ func newTestRouter(t *testing.T) (*gin.Engine, *fakeProv) { r.DELETE("/projects/:id", h.Delete) r.POST("/projects/:id/extend", h.Extend) r.GET("/projects/:id/details", h.Details) + r.POST("/projects/:id/domain", h.SetDomain) return r, prov } @@ -135,3 +136,36 @@ func TestHandlerDetails(t *testing.T) { t.Errorf("erreur cluster : %d %s (500 sans détail interne attendu)", w.Code, w.Body) } } + +func TestHandlerSetDomain_StatusCodes(t *testing.T) { + r, prov := newTestRouter(t) + w := do(r, "POST", "/projects", body("1")) + var created Project + if err := json.Unmarshal(w.Body.Bytes(), &created); err != nil { + t.Fatal(err) + } + <-prov.provisioned + path := "/projects/" + created.ID + "/domain" + + cases := []struct { + name, path, body string + want int + }{ + {"valide", path, `{"domain":"boutique.client.fr"}`, http.StatusOK}, + {"retrait", path, `{"domain":""}`, http.StatusOK}, + {"format invalide", path, `{"domain":"pas un domaine"}`, http.StatusBadRequest}, + {"domaine omnex", path, `{"domain":"x.vitrine-omnex.club"}`, http.StatusBadRequest}, + {"json invalide", path, `{`, http.StatusBadRequest}, + {"projet inconnu", "/projects/inconnu/domain", `{"domain":"a.client.fr"}`, http.StatusNotFound}, + } + for _, c := range cases { + if got := do(r, "POST", c.path, c.body); got.Code != c.want { + t.Errorf("%s : %d, attendu %d (%s)", c.name, got.Code, c.want, got.Body) + } + } + + prov.domainErr = errors.New("helm: secret interne") + if got := do(r, "POST", path, `{"domain":"boutique.client.fr"}`); got.Code != http.StatusInternalServerError || strings.Contains(got.Body.String(), "secret") { + t.Errorf("erreur cluster : %d %s (500 sans détail interne attendu)", got.Code, got.Body) + } +} diff --git a/control-plane/api/internal/projects/models.go b/control-plane/api/internal/projects/models.go index d810692..3494719 100644 --- a/control-plane/api/internal/projects/models.go +++ b/control-plane/api/internal/projects/models.go @@ -47,6 +47,9 @@ type Project struct { Namespace string `gorm:"size:63;uniqueIndex" json:"namespace"` Host string `gorm:"size:255" json:"host"` URL string `gorm:"size:255" json:"url"` + // CustomDomain : domaine du client, servi en plus de Host ("" = aucun). + // URL pointe dessus quand il est défini. + CustomDomain string `gorm:"size:255" json:"custom_domain,omitempty"` // AdminUsername : compte admin créé dans le backend déployé (le mot de // passe n'est jamais persisté). AdminNumber : ADMIN_NUMBER du backend. diff --git a/control-plane/api/internal/projects/service.go b/control-plane/api/internal/projects/service.go index b29c04b..c2f1ae0 100644 --- a/control-plane/api/internal/projects/service.go +++ b/control-plane/api/internal/projects/service.go @@ -4,6 +4,7 @@ import ( "context" "errors" "log" + "net" "regexp" "strings" "sync" @@ -22,6 +23,9 @@ var ( ErrInvalidAdmin = errors.New("identifiant admin invalide (3 à 64 caractères alphanumériques)") ErrWeakAdminPass = errors.New("mot de passe admin trop court (12 caractères minimum)") ErrInvalidAdminSize = errors.New("nombre d'admins invalide (1 à 20)") + ErrNotReady = errors.New("le projet doit être en ligne pour changer de domaine") + ErrDomainReserved = errors.New("ce domaine appartient à Omnex et ne peut pas être utilisé") + ErrDomainTaken = errors.New("ce domaine est déjà utilisé par un autre projet") ) var adminUsernamePattern = regexp.MustCompile(`^[A-Za-z0-9]{3,64}$`) @@ -31,14 +35,16 @@ var adminUsernamePattern = regexp.MustCompile(`^[A-Za-z0-9]{3,64}$`) type Provisioner interface { ProvisionProject(spec demos.ProjectSpec) error TeardownProject(namespace string) error + UpdateProjectDomain(spec demos.ProjectDomainSpec) error ProjectState(ctx context.Context, namespace string) (demos.ResourceState, error) } // NoopProvisioner : aucun déploiement réel (dev en mémoire, tests). type NoopProvisioner struct{} -func (NoopProvisioner) ProvisionProject(demos.ProjectSpec) error { return nil } -func (NoopProvisioner) TeardownProject(string) error { return nil } +func (NoopProvisioner) ProvisionProject(demos.ProjectSpec) error { return nil } +func (NoopProvisioner) TeardownProject(string) error { return nil } +func (NoopProvisioner) UpdateProjectDomain(demos.ProjectDomainSpec) error { return nil } func (NoopProvisioner) ProjectState(context.Context, string) (demos.ResourceState, error) { return demos.ResourceState{}, nil } @@ -46,6 +52,10 @@ func (NoopProvisioner) ProjectState(context.Context, string) (demos.ResourceStat // Config du service (injectable pour les tests). type Config struct { Domain string // domaine des projets : . + // ReservedDomains : domaines (et leurs sous-domaines) qu'un client ne peut + // pas revendiquer comme domaine personnalisé — ceux d'Omnex (démos…). Le + // domaine des projets (Domain) est toujours réservé. + ReservedDomains []string } // CreateInput : saisie de l'admin Omnex au déploiement (dashboard). @@ -226,6 +236,76 @@ func (s *Service) Extend(id string, months int) (Project, error) { return s.store.Update(p) } +// validateDomain vérifie un domaine personnalisé (déjà normalisé). Vide = valide +// (retour au domaine par défaut). Refuse les adresses IP et tout domaine +// d'Omnex : sans cela un projet pourrait capter le trafic d'un autre (son +// adresse par défaut) ou des démos. +func (s *Service) validateDomain(domain string) error { + if domain == "" { + return nil + } + if err := demos.ValidateDomain(domain); err != nil || net.ParseIP(domain) != nil { + return demos.ErrInvalidDomain + } + for _, r := range append([]string{s.cfg.Domain}, s.cfg.ReservedDomains...) { + r = strings.ToLower(strings.TrimSpace(r)) + if r != "" && (domain == r || strings.HasSuffix(domain, "."+r)) { + return ErrDomainReserved + } + } + return nil +} + +// SetDomain définit (ou retire, si domain est vide) le domaine personnalisé du +// client. Le site reste servi sur son adresse par défaut en plus du domaine : +// le DNS du domaine doit pointer vers le cluster et un certificat qui le +// couvre doit être déclaré dans le WAF (voir deploy/chart-vitrine/README.md). +func (s *Service) SetDomain(id, domain string) (Project, error) { + domain = strings.ToLower(strings.TrimSpace(domain)) + if err := s.validateDomain(domain); err != nil { + return Project{}, err + } + + s.mu.Lock() + defer s.mu.Unlock() + + p, ok := s.store.Get(id) + if !ok { + return Project{}, ErrNotFound + } + if p.Status != StatusReady { + return Project{}, ErrNotReady + } + if domain != "" { + all, err := s.store.List() + if err != nil { + return Project{}, err + } + for _, other := range all { + live := other.Status == StatusPending || other.Status == StatusProvisioning || other.Status == StatusReady + if live && other.ID != p.ID && other.CustomDomain == domain { + return Project{}, ErrDomainTaken + } + } + } + + url := "https://" + p.Host + if domain != "" { + url = "https://" + domain + } + if err := s.prov.UpdateProjectDomain(demos.ProjectDomainSpec{ + Namespace: p.Namespace, + Host: p.Host, + CustomDomain: domain, + URL: url, + }); err != nil { + return Project{}, err + } + p.CustomDomain = domain + p.URL = url + return s.store.Update(p) +} + // Delete détruit le projet (namespace, données, sauvegardes) sans attendre // l'échéance — action explicite de l'admin. func (s *Service) Delete(id string) (Project, error) { diff --git a/control-plane/api/internal/projects/service_test.go b/control-plane/api/internal/projects/service_test.go index 8707a48..a6a4590 100644 --- a/control-plane/api/internal/projects/service_test.go +++ b/control-plane/api/internal/projects/service_test.go @@ -20,6 +20,8 @@ type fakeProv struct { state demos.ResourceState stateErr error stateCalls []string + domainSpecs []demos.ProjectDomainSpec + domainErr error provisioned chan struct{} } @@ -46,12 +48,19 @@ func (f *fakeProv) ProjectState(_ context.Context, ns string) (demos.ResourceSta return f.state, f.stateErr } +func (f *fakeProv) UpdateProjectDomain(s demos.ProjectDomainSpec) error { + f.mu.Lock() + defer f.mu.Unlock() + f.domainSpecs = append(f.domainSpecs, s) + return f.domainErr +} + var t0 = time.Date(2026, time.September, 20, 12, 0, 0, 0, time.UTC) func newTestService(t *testing.T) (*Service, *fakeProv, *time.Time) { t.Helper() prov := newFakeProv() - svc := NewService(NewMemStore(), prov, Config{Domain: "vitrine-omnex.club"}) + svc := NewService(NewMemStore(), prov, Config{Domain: "vitrine-omnex.club", ReservedDomains: []string{"omnex.sbs"}}) now := t0 svc.now = func() time.Time { return now } return svc, prov, &now @@ -333,3 +342,107 @@ func TestState_UnknownProjectAndClusterError(t *testing.T) { t.Error("erreur du cluster avalée") } } + +func TestSetDomain_SetsServedDomainAndKeepsDefaultHost(t *testing.T) { + svc, prov, _ := newTestService(t) + p := createReady(t, svc, prov, validInput()) + + got, err := svc.SetDomain(p.ID, " Boutique.Client.FR ") + if err != nil { + t.Fatal(err) + } + if got.CustomDomain != "boutique.client.fr" || got.URL != "https://boutique.client.fr" { + t.Errorf("domaine=%q url=%q", got.CustomDomain, got.URL) + } + if got.Host != p.Host { + t.Errorf("l'hôte par défaut a changé : %q", got.Host) + } + want := demos.ProjectDomainSpec{Namespace: p.Namespace, Host: p.Host, CustomDomain: "boutique.client.fr", URL: "https://boutique.client.fr"} + if len(prov.domainSpecs) != 1 || prov.domainSpecs[0] != want { + t.Errorf("spec envoyée au cluster : %+v", prov.domainSpecs) + } + stored, _ := svc.Get(p.ID) + if stored.CustomDomain != "boutique.client.fr" { + t.Errorf("non persisté : %+v", stored) + } + + // Domaine vide : retour à l'adresse par défaut. + got, err = svc.SetDomain(p.ID, "") + if err != nil || got.CustomDomain != "" || got.URL != p.URL { + t.Errorf("retrait : err=%v domaine=%q url=%q (attendu %q)", err, got.CustomDomain, got.URL, p.URL) + } +} + +func TestSetDomain_RejectsInvalidAndReservedDomains(t *testing.T) { + svc, prov, _ := newTestService(t) + p := createReady(t, svc, prov, validInput()) + other := createReady(t, svc, prov, validInput()) + + invalid := []string{"pas un domaine", "http://x.fr", "x.fr/chemin", "localhost", "*.client.fr", "10.0.0.1", "-a.fr"} + for _, d := range invalid { + if _, err := svc.SetDomain(p.ID, d); !errors.Is(err, demos.ErrInvalidDomain) { + t.Errorf("%q : erreur %v, attendu ErrInvalidDomain", d, err) + } + } + reserved := []string{"vitrine-omnex.club", other.Host, "x.vitrine-omnex.club", "omnex.sbs", "demo-1.omnex.sbs"} + for _, d := range reserved { + if _, err := svc.SetDomain(p.ID, d); !errors.Is(err, ErrDomainReserved) { + t.Errorf("%q : erreur %v, attendu ErrDomainReserved", d, err) + } + } + // Un domaine qui finit par la même chaîne sans être un sous-domaine reste permis. + if _, err := svc.SetDomain(p.ID, "monomnex.sbs"); err != nil { + t.Errorf("monomnex.sbs refusé à tort : %v", err) + } + if len(prov.domainSpecs) != 1 { + t.Errorf("le cluster ne doit être appelé que pour le domaine valide : %d appels", len(prov.domainSpecs)) + } +} + +func TestSetDomain_DomainAlreadyUsedByAnotherProject(t *testing.T) { + svc, prov, _ := newTestService(t) + a := createReady(t, svc, prov, validInput()) + b := createReady(t, svc, prov, validInput()) + + if _, err := svc.SetDomain(a.ID, "boutique.client.fr"); err != nil { + t.Fatal(err) + } + if _, err := svc.SetDomain(b.ID, "boutique.client.fr"); !errors.Is(err, ErrDomainTaken) { + t.Errorf("erreur %v, attendu ErrDomainTaken", err) + } + // Le même projet peut le redéfinir (idempotent). + if _, err := svc.SetDomain(a.ID, "boutique.client.fr"); err != nil { + t.Errorf("redéfinition par le propriétaire : %v", err) + } + // Une fois le premier projet supprimé, le domaine est libre. + if _, err := svc.Delete(a.ID); err != nil { + t.Fatal(err) + } + if _, err := svc.SetDomain(b.ID, "boutique.client.fr"); err != nil { + t.Errorf("domaine d'un projet supprimé toujours bloqué : %v", err) + } +} + +func TestSetDomain_StateAndClusterErrors(t *testing.T) { + svc, prov, _ := newTestService(t) + if _, err := svc.SetDomain("inconnu", "x.client.fr"); !errors.Is(err, ErrNotFound) { + t.Errorf("erreur %v, attendu ErrNotFound", err) + } + + p := createReady(t, svc, prov, validInput()) + prov.domainErr = errors.New("helm indisponible") + if _, err := svc.SetDomain(p.ID, "x.client.fr"); err == nil { + t.Fatal("erreur du cluster avalée") + } + if got, _ := svc.Get(p.ID); got.CustomDomain != "" || got.URL != p.URL { + t.Errorf("échec du cluster mais projet modifié : %+v", got) + } + + prov.domainErr = nil + if _, err := svc.Delete(p.ID); err != nil { + t.Fatal(err) + } + if _, err := svc.SetDomain(p.ID, "x.client.fr"); !errors.Is(err, ErrNotReady) { + t.Errorf("projet supprimé : erreur %v, attendu ErrNotReady", err) + } +} diff --git a/control-plane/api/internal/router/router.go b/control-plane/api/internal/router/router.go index 9c855f8..39cfdac 100644 --- a/control-plane/api/internal/router/router.go +++ b/control-plane/api/internal/router/router.go @@ -120,6 +120,7 @@ func New(d Deps) *gin.Engine { admin.GET("/projects/:id/details", d.ProjectsH.Details) admin.DELETE("/projects/:id", d.ProjectsH.Delete) admin.POST("/projects/:id/extend", d.ProjectsH.Extend) + admin.POST("/projects/:id/domain", d.ProjectsH.SetDomain) } } diff --git a/deploy/chart-vitrine/README.md b/deploy/chart-vitrine/README.md index aee2ebd..5fc5bb2 100644 --- a/deploy/chart-vitrine/README.md +++ b/deploy/chart-vitrine/README.md @@ -28,6 +28,36 @@ séparé, monté dans le control-plane sur `/charts-vitrine` (volume du `docker- de grâce : il faut donc renouveler avant l'échéance. Un `DELETE /projects/:id` fait la même chose immédiatement. +## Domaine personnalisé (à la demande du client) + +Dashboard Projets → icône d'édition à côté de l'adresse, ou +`POST /projects/:id/domain {"domain": "boutique.client.fr"}` (domaine vide = retrait). +Le site reste servi sur son adresse par défaut **en plus** du domaine du client (`extraHosts` du +chart `ingressroute`) : rien n'est coupé si le DNS ou le certificat ne sont pas encore prêts. +Le control-plane refuse les adresses IP, les domaines d'Omnex (`vitrine-omnex.club`, domaine des +démos) et un domaine déjà pris par un autre projet. Le backend reprend l'URL du domaine pour les +liens de médias (`MEDIA_LOCAL_BASE_URL`), ce qui le redéploie brièvement. + +Deux étapes **manuelles**, que le control-plane ne fait pas : + +1. **DNS (côté client)** : enregistrement `A` du domaine vers les IP des nœuds du cluster. +2. **Certificat** : le WAF termine le TLS et choisit son certificat par SNI, donc un domaine + absent de `tls.extra` reçoit le certificat par défaut (erreur dans le navigateur). Les ClusterIssuers + existants sont en DNS-01 Cloudflare pour nos propres zones : ils ne couvrent pas le domaine d'un client. + Obtenir un certificat (certbot, ou autre CA) puis : + ```bash + kubectl create secret tls tls-boutique-client-fr -n traefik --cert=fullchain.pem --key=privkey.pem + ``` + et le déclarer dans `deploy/chart-gestion/waf-cluster/values.yaml` : + ```yaml + tls: + extra: + - serverName: "boutique.client.fr" + secretName: tls-boutique-client-fr + ``` + puis `helm upgrade gestion-waf-cluster deploy/chart-gestion/waf-cluster -n traefik --reset-then-reuse-values`. + Le certificat n'est pas renouvelé automatiquement avec cette méthode. + Sauvegardes : un `Schedule` Velero par namespace, créé au déploiement et supprimé avec le projet, identique à celui des démos (toutes les 15 min, conservé 24 h, File System Backup). diff --git a/deploy/chart-vitrine/ingressroute/templates/_helpers.tpl b/deploy/chart-vitrine/ingressroute/templates/_helpers.tpl index e4c7ef7..8ea236b 100644 --- a/deploy/chart-vitrine/ingressroute/templates/_helpers.tpl +++ b/deploy/chart-vitrine/ingressroute/templates/_helpers.tpl @@ -5,6 +5,16 @@ app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} {{- end }} +{{/* +Condition Traefik sur le nom d'hôte : l'hôte par défaut, plus les domaines +personnalisés du client (extraHosts) — ex. Host(`a.vitrine-omnex.club`) || Host(`boutique.client.fr`). +*/}} +{{- define "ingressroute.hostRule" -}} +{{- $hosts := list (printf "Host(`%s`)" .Values.host) -}} +{{- range .Values.extraHosts }}{{ $hosts = append $hosts (printf "Host(`%s`)" .) }}{{ end -}} +{{- join " || " $hosts -}} +{{- end }} + {{- define "ingressroute.backendService" -}} {{- .Values.backend.serviceName | default (printf "%s-backend-vitrine-backend" .Release.Namespace) }} {{- end }} diff --git a/deploy/chart-vitrine/ingressroute/templates/ingressroute.yaml b/deploy/chart-vitrine/ingressroute/templates/ingressroute.yaml index 87d91d9..86bb089 100644 --- a/deploy/chart-vitrine/ingressroute/templates/ingressroute.yaml +++ b/deploy/chart-vitrine/ingressroute/templates/ingressroute.yaml @@ -18,7 +18,7 @@ spec: routes: # API backend — WAF + headers + rate limit (middlewares partagés, définis # dans le namespace du Traefik commun, référencés cross-namespace). - - match: Host(`{{ .Values.host }}`) && (PathPrefix(`/api/`)) + - match: ({{ include "ingressroute.hostRule" . }}) && PathPrefix(`/api/`) kind: Rule priority: 20 middlewares: @@ -29,7 +29,7 @@ spec: port: {{ .Values.backend.servicePort }} # Fichiers uploadés — WAF désactivé dans les règles Coraza pour ce path - - match: Host(`{{ .Values.host }}`) && PathPrefix(`/uploads/`) + - match: ({{ include "ingressroute.hostRule" . }}) && PathPrefix(`/uploads/`) kind: Rule priority: 15 middlewares: @@ -40,7 +40,7 @@ spec: port: {{ .Values.backend.servicePort }} # Frontend SPA — WAF + headers + rate limit - - match: Host(`{{ .Values.host }}`) + - match: {{ include "ingressroute.hostRule" . }} kind: Rule priority: 1 middlewares: diff --git a/deploy/chart-vitrine/ingressroute/values.yaml b/deploy/chart-vitrine/ingressroute/values.yaml index ca4126d..205cc96 100644 --- a/deploy/chart-vitrine/ingressroute/values.yaml +++ b/deploy/chart-vitrine/ingressroute/values.yaml @@ -2,6 +2,12 @@ # (calculé par le control-plane : .). host: "" +# Domaines personnalisés du client (ex. boutique.client.fr), servis EN PLUS de +# `host`. Gérés par le control-plane (POST /projects/:id/domain). Le DNS doit +# pointer vers le cluster et un certificat couvrant le domaine doit être +# déclaré dans le WAF (deploy/chart-gestion/waf-cluster, tls.extra). +extraHosts: [] + # Namespace où tourne le Traefik partagé et ses Middlewares (waf-chain, # rate-limit, coraza-waf, security-headers) — voir deploy/chart-gestion/traefik. traefikNamespace: traefik diff --git a/docker/.env b/docker/.env index c9e0522..7e1b158 100644 --- a/docker/.env +++ b/docker/.env @@ -3,7 +3,6 @@ # --- Secrets obligatoires --- OMNEX_JWT_SECRET=0879032aa29538641920360c1990e39f7e86123b1fa869e9e3e60d44ceca0a34 -OMNEX_SEED_PASSWORD=62dc702dfe26d117216d2994 # --- Postgres --- POSTGRES_USER=omnex @@ -15,7 +14,6 @@ REDIS_PASSWORD=630fa654c76f1256fea3ba3c51a718a4 # --- API --- OMNEX_ENV=dev -OMNEX_SEED_USERNAME=admin OMNEX_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173 OMNEX_DEMO_DOMAIN=192.168.1.31.nip.io OMNEX_DEMO_HTTPS_PORT=31908 @@ -23,3 +21,5 @@ KUBECONFIG=/home/xor_fakers/.kube/config FRONTEND_IMAGE_APP=xor1234/frontend-mln:helm BACKEND_IMAGE_APP=xor1234/backend-mln:helm LBTELEGRAM_IMAGE_APP=xor1234/lbtelegram:helm +VITRINE_BACKEND_IMAGE=xor1234/vitrine-api:latest +VITRINE_FRONTEND_IMAGE=xor1234/vitrine-web:latest diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index f914403..46f02e2 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -42,6 +42,11 @@ services: - ANOMALY_INBOUND=5 - ANOMALY_OUTBOUND=4 - MODSEC_AUDIT_LOG=/var/log/modsec/modsec_audit.log + healthcheck: + test: ["CMD", "curl", "-sk", "-f", "https://localhost:443/healthz"] + interval: 30s + timeout: 5s + retries: 5 volumes: - ./nginx/certs:/etc/nginx/certs:ro - /var/log/waf/nginx:/var/log/nginx @@ -68,29 +73,22 @@ services: OMNEX_ALLOWED_ORIGINS: ${OMNEX_ALLOWED_ORIGINS:-http://localhost:3000,http://localhost:5173} OMNEX_DATABASE_URL: "host=postgres user=${POSTGRES_USER:-omnex} password=${POSTGRES_PASSWORD:-omnex} dbname=${POSTGRES_DB:-omnex} port=5432 sslmode=disable" OMNEX_REDIS_URL: "redis://:${REDIS_PASSWORD:-omnexredis}@redis:6379/0" - OMNEX_SEED_USERNAME: ${OMNEX_SEED_USERNAME:-admin} - OMNEX_SEED_PASSWORD: ${OMNEX_SEED_PASSWORD} - OMNEX_DEMO_DOMAIN: ${OMNEX_DEMO_DOMAIN:-192.168.1.31.nip.io} + OMNEX_DEMO_DOMAIN: ${OMNEX_DEMO_DOMAIN:-omnex.sbs} OMNEX_DEMO_HTTPS_PORT: ${OMNEX_DEMO_HTTPS_PORT:-443} FRONTEND_IMAGE_APP: ${FRONTEND_IMAGE_APP:-xor1234/frontend-mln:helm} BACKEND_IMAGE_APP: ${BACKEND_IMAGE_APP:-xor1234/backend-mln:helm} LBTELEGRAM_IMAGE_APP: ${LBTELEGRAM_IMAGE_APP:-xor1234/lbtelegram:helm} + OMNEX_VITRINE_DOMAIN: ${OMNEX_VITRINE_DOMAIN:-vitrine-omnex.club} + VITRINE_BACKEND_IMAGE: ${VITRINE_BACKEND_IMAGE:-xor1234/vitrine-api:latest} + VITRINE_FRONTEND_IMAGE: ${VITRINE_FRONTEND_IMAGE:-xor1234/vitrine-web:latest} KUBECONFIG: /kubeconfig/config OMNEX_APP_DOWNLOADS_DIR: /app-downloads - # Compte Docker Hub authentifié (lecture seule) injecté dans chaque - # namespace de démo — passe le rate-limit de pull anonyme (100/6h par - # IP) à 200/6h. Vide = pull anonyme (comportement inchangé). OMNEX_DOCKERHUB_USERNAME: ${OMNEX_DOCKERHUB_USERNAME:-} OMNEX_DOCKERHUB_PASSWORD: ${OMNEX_DOCKERHUB_PASSWORD:-} volumes: - ../deploy/chart-gestion:/charts:ro + - ../deploy/chart-vitrine:/charts-vitrine:ro - ${KUBECONFIG_HOST_PATH:-/home/xor_fakers/.kube/config}:/kubeconfig/config:ro - # Dossier où déposer manuellement les .apk (Admin Panel / Client) à - # rendre téléchargeables aux clients ayant une démo ou un abonnement - # actif — voir control-plane/api/internal/downloads. Vit dans - # docker/ (comme waf/, nginx/, certs/) : sur le serveur, seuls - # docker-compose.yml et waf/ sont synchronisés par Ansible, le - # reste (dont app/) est géré manuellement dans docker_dir. - ./app:/app-downloads:ro healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/healthz"] diff --git a/docker/waf/custom-rules.conf b/docker/waf/custom-rules.conf index 186d3a9..f0a4ac6 100644 --- a/docker/waf/custom-rules.conf +++ b/docker/waf/custom-rules.conf @@ -2,6 +2,14 @@ # lignes de taille raisonnable. SecAuditLogParts ABIFHZ +# 911100 (REQUEST-911-METHOD-ENFORCEMENT) n'autorise par défaut que GET +# HEAD POST OPTIONS — bloque tout DELETE/PUT/PATCH légitimes de l'API REST +# (ex: DELETE /api/v1/demos/:id, toujours 403 "Method is not allowed by +# policy" avant même d'atteindre le check de rôle admin). Même correctif déjà +# appliqué côté Coraza/Traefik pour les démos, voir +# deploy/chart-gestion/traefik/templates/middleware-waf.yaml. +SecRuleRemoveById 911100 + SecRule IP:BANNED "@eq 1" \ "id:100000,phase:1,deny,status:403,log,\ msg:'IP is banned'" diff --git a/web/dist/assets/index-BdLZEtG3.js b/web/dist/assets/index-BdLZEtG3.js new file mode 100644 index 0000000..68acbd0 --- /dev/null +++ b/web/dist/assets/index-BdLZEtG3.js @@ -0,0 +1,1510 @@ +var hA=Object.defineProperty;var n2=e=>{throw TypeError(e)};var gA=(e,t,n)=>t in e?hA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var r2=(e,t,n)=>gA(e,typeof t!="symbol"?t+"":t,n),i2=(e,t,n)=>t.has(e)||n2("Cannot "+n);var o2=(e,t,n)=>(i2(e,t,"read from private field"),n?n.call(e):t.get(e)),a2=(e,t,n)=>t.has(e)?n2("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),kh=(e,t,n,r)=>(i2(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function vA(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var bd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function by(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var e5={exports:{}},Yp={},t5={exports:{}},Ae={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Fu=Symbol.for("react.element"),yA=Symbol.for("react.portal"),bA=Symbol.for("react.fragment"),xA=Symbol.for("react.strict_mode"),SA=Symbol.for("react.profiler"),wA=Symbol.for("react.provider"),kA=Symbol.for("react.context"),CA=Symbol.for("react.forward_ref"),jA=Symbol.for("react.suspense"),PA=Symbol.for("react.memo"),_A=Symbol.for("react.lazy"),s2=Symbol.iterator;function TA(e){return e===null||typeof e!="object"?null:(e=s2&&e[s2]||e["@@iterator"],typeof e=="function"?e:null)}var n5={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},r5=Object.assign,i5={};function kl(e,t,n){this.props=e,this.context=t,this.refs=i5,this.updater=n||n5}kl.prototype.isReactComponent={};kl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};kl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function o5(){}o5.prototype=kl.prototype;function xy(e,t,n){this.props=e,this.context=t,this.refs=i5,this.updater=n||n5}var Sy=xy.prototype=new o5;Sy.constructor=xy;r5(Sy,kl.prototype);Sy.isPureReactComponent=!0;var l2=Array.isArray,a5=Object.prototype.hasOwnProperty,wy={current:null},s5={key:!0,ref:!0,__self:!0,__source:!0};function l5(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)a5.call(t,r)&&!s5.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,le=I[J];if(0>>1;Ji(ae,q))cei(Me,ae)?(I[J]=Me,I[ce]=q,J=ce):(I[J]=ae,I[Q]=q,J=Q);else if(cei(Me,q))I[J]=Me,I[ce]=q,J=ce;else break e}}return D}function i(I,D){var q=I.sortIndex-D.sortIndex;return q!==0?q:I.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,v=!1,b=!1,x=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(I){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=I)r(u),D.sortIndex=D.expirationTime,t(c,D);else break;D=n(u)}}function w(I){if(b=!1,S(I),!v)if(n(c)!==null)v=!0,O(k);else{var D=n(u);D!==null&&L(w,D.startTime-I)}}function k(I,D){v=!1,b&&(b=!1,y(j),j=-1),h=!0;var q=p;try{for(S(D),f=n(c);f!==null&&(!(f.expirationTime>D)||I&&!$());){var J=f.callback;if(typeof J=="function"){f.callback=null,p=f.priorityLevel;var le=J(f.expirationTime<=D);D=e.unstable_now(),typeof le=="function"?f.callback=le:f===n(c)&&r(c),S(D)}else r(c);f=n(c)}if(f!==null)var oe=!0;else{var Q=n(u);Q!==null&&L(w,Q.startTime-D),oe=!1}return oe}finally{f=null,p=q,h=!1}}var C=!1,P=null,j=-1,R=5,T=-1;function $(){return!(e.unstable_now()-TI||125J?(I.sortIndex=q,t(u,I),n(c)===null&&I===n(u)&&(b?(y(j),j=-1):b=!0,L(w,q-J))):(I.sortIndex=le,t(c,I),v||h||(v=!0,O(k))),I},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(I){var D=p;return function(){var q=p;p=D;try{return I.apply(this,arguments)}finally{p=q}}}})(p5);f5.exports=p5;var OA=f5.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var FA=m,Zn=OA;function H(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sg=Object.prototype.hasOwnProperty,BA=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,u2={},d2={};function WA(e){return sg.call(d2,e)?!0:sg.call(u2,e)?!1:BA.test(e)?d2[e]=!0:(u2[e]=!0,!1)}function VA(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function UA(e,t,n,r){if(t===null||typeof t>"u"||VA(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function _n(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var cn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){cn[e]=new _n(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];cn[t]=new _n(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){cn[e]=new _n(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){cn[e]=new _n(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){cn[e]=new _n(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){cn[e]=new _n(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){cn[e]=new _n(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){cn[e]=new _n(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){cn[e]=new _n(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cy=/[\-:]([a-z])/g;function jy(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Cy,jy);cn[t]=new _n(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Cy,jy);cn[t]=new _n(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Cy,jy);cn[t]=new _n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){cn[e]=new _n(e,1,!1,e.toLowerCase(),null,!1,!1)});cn.xlinkHref=new _n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){cn[e]=new _n(e,1,!1,e.toLowerCase(),null,!0,!0)});function Py(e,t,n,r){var i=cn.hasOwnProperty(t)?cn[t]:null;(i!==null?i.type!==0:r||!(2l||i[a]!==o[l]){var c=` +`+i[a].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=a&&0<=l);break}}}finally{Ph=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?oc(e):""}function HA(e){switch(e.tag){case 5:return oc(e.type);case 16:return oc("Lazy");case 13:return oc("Suspense");case 19:return oc("SuspenseList");case 0:case 2:case 15:return e=_h(e.type,!1),e;case 11:return e=_h(e.type.render,!1),e;case 1:return e=_h(e.type,!0),e;default:return""}}function dg(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case cs:return"Fragment";case ls:return"Portal";case lg:return"Profiler";case _y:return"StrictMode";case cg:return"Suspense";case ug:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case g5:return(e.displayName||"Context")+".Consumer";case h5:return(e._context.displayName||"Context")+".Provider";case Ty:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ey:return t=e.displayName||null,t!==null?t:dg(e.type)||"Memo";case Ji:t=e._payload,e=e._init;try{return dg(e(t))}catch{}}return null}function qA(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return dg(t);case 8:return t===_y?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Co(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function y5(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function GA(e){var t=y5(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wd(e){e._valueTracker||(e._valueTracker=GA(e))}function b5(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=y5(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function tp(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function fg(e,t){var n=t.checked;return St({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function p2(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Co(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function x5(e,t){t=t.checked,t!=null&&Py(e,"checked",t,!1)}function pg(e,t){x5(e,t);var n=Co(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?mg(e,t.type,n):t.hasOwnProperty("defaultValue")&&mg(e,t.type,Co(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function m2(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function mg(e,t,n){(t!=="number"||tp(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ac=Array.isArray;function Ns(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=kd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Sc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},KA=["Webkit","ms","Moz","O"];Object.keys(Sc).forEach(function(e){KA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Sc[t]=Sc[e]})});function C5(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Sc.hasOwnProperty(e)&&Sc[e]?(""+t).trim():t+"px"}function j5(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=C5(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var XA=St({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vg(e,t){if(t){if(XA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function yg(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var bg=null;function Ay(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xg=null,Ds=null,Os=null;function v2(e){if(e=Vu(e)){if(typeof xg!="function")throw Error(H(280));var t=e.stateNode;t&&(t=tm(t),xg(e.stateNode,e.type,t))}}function P5(e){Ds?Os?Os.push(e):Os=[e]:Ds=e}function _5(){if(Ds){var e=Ds,t=Os;if(Os=Ds=null,v2(e),t)for(e=0;e>>=0,e===0?32:31-(a9(e)/s9|0)|0}var Cd=64,jd=4194304;function sc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function op(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~i;l!==0?r=sc(l):(o&=a,o!==0&&(r=sc(o)))}else a=n&~i,a!==0?r=sc(a):o!==0&&(r=sc(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Bu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Rr(t),e[t]=n}function d9(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=kc),P2=" ",_2=!1;function G5(e,t){switch(e){case"keyup":return O9.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function K5(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var us=!1;function B9(e,t){switch(e){case"compositionend":return K5(t);case"keypress":return t.which!==32?null:(_2=!0,P2);case"textInput":return e=t.data,e===P2&&_2?null:e;default:return null}}function W9(e,t){if(us)return e==="compositionend"||!Dy&&G5(e,t)?(e=H5(),vf=My=ao=null,us=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$2(n)}}function Z5(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Z5(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function J5(){for(var e=window,t=tp();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=tp(e.document)}return t}function Oy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Q9(e){var t=J5(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Z5(n.ownerDocument.documentElement,n)){if(r!==null&&Oy(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=z2(n,o);var a=z2(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ds=null,Pg=null,jc=null,_g=!1;function I2(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_g||ds==null||ds!==tp(r)||(r=ds,"selectionStart"in r&&Oy(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jc&&tu(jc,r)||(jc=r,r=lp(Pg,"onSelect"),0ms||(e.current=Ig[ms],Ig[ms]=null,ms--)}function ot(e,t){ms++,Ig[ms]=e.current,e.current=t}var jo={},Sn=Mo(jo),Ln=Mo(!1),Pa=jo;function tl(e,t){var n=e.type.contextTypes;if(!n)return jo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Nn(e){return e=e.childContextTypes,e!=null}function up(){lt(Ln),lt(Sn)}function F2(e,t,n){if(Sn.current!==jo)throw Error(H(168));ot(Sn,t),ot(Ln,n)}function lC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(H(108,qA(e)||"Unknown",i));return St({},n,r)}function dp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jo,Pa=Sn.current,ot(Sn,e),ot(Ln,Ln.current),!0}function B2(e,t,n){var r=e.stateNode;if(!r)throw Error(H(169));n?(e=lC(e,t,Pa),r.__reactInternalMemoizedMergedChildContext=e,lt(Ln),lt(Sn),ot(Sn,e)):lt(Ln),ot(Ln,n)}var pi=null,nm=!1,Bh=!1;function cC(e){pi===null?pi=[e]:pi.push(e)}function c$(e){nm=!0,cC(e)}function Lo(){if(!Bh&&pi!==null){Bh=!0;var e=0,t=Xe;try{var n=pi;for(Xe=1;e>=a,i-=a,yi=1<<32-Rr(t)+i|n<j?(R=P,P=null):R=P.sibling;var T=p(y,P,S[j],w);if(T===null){P===null&&(P=R);break}e&&P&&T.alternate===null&&t(y,P),g=o(T,g,j),C===null?k=T:C.sibling=T,C=T,P=R}if(j===S.length)return n(y,P),ht&&Zo(y,j),k;if(P===null){for(;jj?(R=P,P=null):R=P.sibling;var $=p(y,P,T.value,w);if($===null){P===null&&(P=R);break}e&&P&&$.alternate===null&&t(y,P),g=o($,g,j),C===null?k=$:C.sibling=$,C=$,P=R}if(T.done)return n(y,P),ht&&Zo(y,j),k;if(P===null){for(;!T.done;j++,T=S.next())T=f(y,T.value,w),T!==null&&(g=o(T,g,j),C===null?k=T:C.sibling=T,C=T);return ht&&Zo(y,j),k}for(P=r(y,P);!T.done;j++,T=S.next())T=h(P,y,j,T.value,w),T!==null&&(e&&T.alternate!==null&&P.delete(T.key===null?j:T.key),g=o(T,g,j),C===null?k=T:C.sibling=T,C=T);return e&&P.forEach(function(K){return t(y,K)}),ht&&Zo(y,j),k}function x(y,g,S,w){if(typeof S=="object"&&S!==null&&S.type===cs&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Sd:e:{for(var k=S.key,C=g;C!==null;){if(C.key===k){if(k=S.type,k===cs){if(C.tag===7){n(y,C.sibling),g=i(C,S.props.children),g.return=y,y=g;break e}}else if(C.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ji&&U2(k)===C.type){n(y,C.sibling),g=i(C,S.props),g.ref=ql(y,C,S),g.return=y,y=g;break e}n(y,C);break}else t(y,C);C=C.sibling}S.type===cs?(g=ha(S.props.children,y.mode,w,S.key),g.return=y,y=g):(w=jf(S.type,S.key,S.props,null,y.mode,w),w.ref=ql(y,g,S),w.return=y,y=w)}return a(y);case ls:e:{for(C=S.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===S.containerInfo&&g.stateNode.implementation===S.implementation){n(y,g.sibling),g=i(g,S.children||[]),g.return=y,y=g;break e}else{n(y,g);break}else t(y,g);g=g.sibling}g=Xh(S,y.mode,w),g.return=y,y=g}return a(y);case Ji:return C=S._init,x(y,g,C(S._payload),w)}if(ac(S))return v(y,g,S,w);if(Bl(S))return b(y,g,S,w);zd(y,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,g!==null&&g.tag===6?(n(y,g.sibling),g=i(g,S),g.return=y,y=g):(n(y,g),g=Kh(S,y.mode,w),g.return=y,y=g),a(y)):n(y,g)}return x}var rl=pC(!0),mC=pC(!1),mp=Mo(null),hp=null,vs=null,Vy=null;function Uy(){Vy=vs=hp=null}function Hy(e){var t=mp.current;lt(mp),e._currentValue=t}function Lg(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Bs(e,t){hp=e,Vy=vs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Mn=!0),e.firstContext=null)}function xr(e){var t=e._currentValue;if(Vy!==e)if(e={context:e,memoizedValue:t,next:null},vs===null){if(hp===null)throw Error(H(308));vs=e,hp.dependencies={lanes:0,firstContext:e}}else vs=vs.next=e;return t}var aa=null;function qy(e){aa===null?aa=[e]:aa.push(e)}function hC(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,qy(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ei(e,r)}function Ei(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var eo=!1;function Gy(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function gC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ki(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,De&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ei(e,n)}return i=r.interleaved,i===null?(t.next=t,qy(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ei(e,n)}function bf(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zy(e,n)}}function H2(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function gp(e,t,n,r){var i=e.updateQueue;eo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?o=u:a.next=u,a=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(o!==null){var f=i.baseState;a=0,d=u=c=null,l=o;do{var p=l.lane,h=l.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,b=l;switch(p=t,h=n,b.tag){case 1:if(v=b.payload,typeof v=="function"){f=v.call(h,f,p);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=b.payload,p=typeof v=="function"?v.call(h,f,p):v,p==null)break e;f=St({},f,p);break e;case 2:eo=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[l]:p.push(l))}else h={eventTime:h,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=h,c=f):d=d.next=h,a|=p;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;p=l,l=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(d===null&&(c=f),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Ea|=a,e.lanes=a,e.memoizedState=f}}function q2(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Vh.transition;Vh.transition={};try{e(!1),t()}finally{Xe=n,Vh.transition=r}}function IC(){return Sr().memoizedState}function p$(e,t,n){var r=So(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},RC(e))MC(t,n);else if(n=hC(e,t,n,r),n!==null){var i=Cn();Mr(n,e,r,i),LC(n,t,r)}}function m$(e,t,n){var r=So(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(RC(e))MC(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,Nr(l,a)){var c=t.interleaved;c===null?(i.next=i,qy(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=hC(e,t,i,r),n!==null&&(i=Cn(),Mr(n,e,r,i),LC(n,t,r))}}function RC(e){var t=e.alternate;return e===bt||t!==null&&t===bt}function MC(e,t){Pc=yp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function LC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zy(e,n)}}var bp={readContext:xr,useCallback:pn,useContext:pn,useEffect:pn,useImperativeHandle:pn,useInsertionEffect:pn,useLayoutEffect:pn,useMemo:pn,useReducer:pn,useRef:pn,useState:pn,useDebugValue:pn,useDeferredValue:pn,useTransition:pn,useMutableSource:pn,useSyncExternalStore:pn,useId:pn,unstable_isNewReconciler:!1},h$={readContext:xr,useCallback:function(e,t){return Ur().memoizedState=[e,t===void 0?null:t],e},useContext:xr,useEffect:K2,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Sf(4194308,4,TC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Sf(4194308,4,e,t)},useInsertionEffect:function(e,t){return Sf(4,2,e,t)},useMemo:function(e,t){var n=Ur();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ur();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=p$.bind(null,bt,e),[r.memoizedState,e]},useRef:function(e){var t=Ur();return e={current:e},t.memoizedState=e},useState:G2,useDebugValue:t1,useDeferredValue:function(e){return Ur().memoizedState=e},useTransition:function(){var e=G2(!1),t=e[0];return e=f$.bind(null,e[1]),Ur().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=bt,i=Ur();if(ht){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),Kt===null)throw Error(H(349));Ta&30||xC(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,K2(wC.bind(null,r,o,e),[e]),r.flags|=2048,cu(9,SC.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ur(),t=Kt.identifierPrefix;if(ht){var n=bi,r=yi;n=(r&~(1<<32-Rr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=su++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Kr]=t,e[iu]=r,qC(e,t,!1,!1),t.stateNode=e;e:{switch(a=yg(n,r),n){case"dialog":at("cancel",e),at("close",e),i=r;break;case"iframe":case"object":case"embed":at("load",e),i=r;break;case"video":case"audio":for(i=0;ial&&(t.flags|=128,r=!0,Gl(o,!1),t.lanes=4194304)}else{if(!r)if(e=vp(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Gl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!ht)return mn(t),null}else 2*It()-o.renderingStartTime>al&&n!==1073741824&&(t.flags|=128,r=!0,Gl(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=It(),t.sibling=null,n=vt.current,ot(vt,r?n&1|2:n&1),t):(mn(t),null);case 22:case 23:return s1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Hn&1073741824&&(mn(t),t.subtreeFlags&6&&(t.flags|=8192)):mn(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function k$(e,t){switch(By(t),t.tag){case 1:return Nn(t.type)&&up(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return il(),lt(Ln),lt(Sn),Yy(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Xy(t),null;case 13:if(lt(vt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));nl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return lt(vt),null;case 4:return il(),null;case 10:return Hy(t.type._context),null;case 22:case 23:return s1(),null;case 24:return null;default:return null}}var Rd=!1,vn=!1,C$=typeof WeakSet=="function"?WeakSet:Set,de=null;function ys(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pt(e,t,r)}else n.current=null}function Hg(e,t,n){try{n()}catch(r){Pt(e,t,r)}}var oS=!1;function j$(e,t){if(Tg=ap,e=J5(),Oy(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(l=a+i),f!==o||r!==0&&f.nodeType!==3||(c=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(l=a),p===o&&++d===r&&(c=a),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Eg={focusedElem:e,selectionRange:n},ap=!1,de=t;de!==null;)if(t=de,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,de=e;else for(;de!==null;){t=de;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var b=v.memoizedProps,x=v.memoizedState,y=t.stateNode,g=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:Er(t.type,b),x);y.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(w){Pt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,de=e;break}de=t.return}return v=oS,oS=!1,v}function _c(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Hg(t,n,o)}i=i.next}while(i!==r)}}function om(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function qg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function XC(e){var t=e.alternate;t!==null&&(e.alternate=null,XC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Kr],delete t[iu],delete t[zg],delete t[s$],delete t[l$])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function YC(e){return e.tag===5||e.tag===3||e.tag===4}function aS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||YC(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=cp));else if(r!==4&&(e=e.child,e!==null))for(Gg(e,t,n),e=e.sibling;e!==null;)Gg(e,t,n),e=e.sibling}function Kg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Kg(e,t,n),e=e.sibling;e!==null;)Kg(e,t,n),e=e.sibling}var en=null,Ar=!1;function Hi(e,t,n){for(n=n.child;n!==null;)QC(e,t,n),n=n.sibling}function QC(e,t,n){if(Jr&&typeof Jr.onCommitFiberUnmount=="function")try{Jr.onCommitFiberUnmount(Qp,n)}catch{}switch(n.tag){case 5:vn||ys(n,t);case 6:var r=en,i=Ar;en=null,Hi(e,t,n),en=r,Ar=i,en!==null&&(Ar?(e=en,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):en.removeChild(n.stateNode));break;case 18:en!==null&&(Ar?(e=en,n=n.stateNode,e.nodeType===8?Fh(e.parentNode,n):e.nodeType===1&&Fh(e,n),Jc(e)):Fh(en,n.stateNode));break;case 4:r=en,i=Ar,en=n.stateNode.containerInfo,Ar=!0,Hi(e,t,n),en=r,Ar=i;break;case 0:case 11:case 14:case 15:if(!vn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Hg(n,t,a),i=i.next}while(i!==r)}Hi(e,t,n);break;case 1:if(!vn&&(ys(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Pt(n,t,l)}Hi(e,t,n);break;case 21:Hi(e,t,n);break;case 22:n.mode&1?(vn=(r=vn)||n.memoizedState!==null,Hi(e,t,n),vn=r):Hi(e,t,n);break;default:Hi(e,t,n)}}function sS(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new C$),t.forEach(function(r){var i=R$.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function jr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=It()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_$(r/1960))-r,10e?16:e,so===null)var r=!1;else{if(e=so,so=null,wp=0,De&6)throw Error(H(331));var i=De;for(De|=4,de=e.current;de!==null;){var o=de,a=o.child;if(de.flags&16){var l=o.deletions;if(l!==null){for(var c=0;cIt()-o1?ma(e,0):i1|=n),Dn(e,t)}function oj(e,t){t===0&&(e.mode&1?(t=jd,jd<<=1,!(jd&130023424)&&(jd=4194304)):t=1);var n=Cn();e=Ei(e,t),e!==null&&(Bu(e,t,n),Dn(e,n))}function I$(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),oj(e,n)}function R$(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(H(314))}r!==null&&r.delete(t),oj(e,n)}var aj;aj=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ln.current)Mn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Mn=!1,S$(e,t,n);Mn=!!(e.flags&131072)}else Mn=!1,ht&&t.flags&1048576&&uC(t,pp,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;wf(e,t),e=t.pendingProps;var i=tl(t,Sn.current);Bs(t,n),i=Zy(null,t,r,e,i,n);var o=Jy();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Nn(r)?(o=!0,dp(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Gy(t),i.updater=im,t.stateNode=i,i._reactInternals=t,Dg(t,r,e,n),t=Bg(null,t,r,!0,o,n)):(t.tag=0,ht&&o&&Fy(t),kn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(wf(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=L$(r),e=Er(r,e),i){case 0:t=Fg(null,t,r,e,n);break e;case 1:t=nS(null,t,r,e,n);break e;case 11:t=eS(null,t,r,e,n);break e;case 14:t=tS(null,t,r,Er(r.type,e),n);break e}throw Error(H(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Er(r,i),Fg(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Er(r,i),nS(e,t,r,i,n);case 3:e:{if(VC(t),e===null)throw Error(H(387));r=t.pendingProps,o=t.memoizedState,i=o.element,gC(e,t),gp(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ol(Error(H(423)),t),t=rS(e,t,r,n,i);break e}else if(r!==i){i=ol(Error(H(424)),t),t=rS(e,t,r,n,i);break e}else for(qn=yo(t.stateNode.containerInfo.firstChild),Kn=t,ht=!0,$r=null,n=mC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(nl(),r===i){t=Ai(e,t,n);break e}kn(e,t,r,n)}t=t.child}return t;case 5:return vC(t),e===null&&Mg(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Ag(r,i)?a=null:o!==null&&Ag(r,o)&&(t.flags|=32),WC(e,t),kn(e,t,a,n),t.child;case 6:return e===null&&Mg(t),null;case 13:return UC(e,t,n);case 4:return Ky(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=rl(t,null,r,n):kn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Er(r,i),eS(e,t,r,i,n);case 7:return kn(e,t,t.pendingProps,n),t.child;case 8:return kn(e,t,t.pendingProps.children,n),t.child;case 12:return kn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,ot(mp,r._currentValue),r._currentValue=a,o!==null)if(Nr(o.value,a)){if(o.children===i.children&&!Ln.current){t=Ai(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){a=o.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=ki(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Lg(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(H(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Lg(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}kn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Bs(t,n),i=xr(i),r=r(i),t.flags|=1,kn(e,t,r,n),t.child;case 14:return r=t.type,i=Er(r,t.pendingProps),i=Er(r.type,i),tS(e,t,r,i,n);case 15:return FC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Er(r,i),wf(e,t),t.tag=1,Nn(r)?(e=!0,dp(t)):e=!1,Bs(t,n),NC(t,r,i),Dg(t,r,i,n),Bg(null,t,r,!0,e,n);case 19:return HC(e,t,n);case 22:return BC(e,t,n)}throw Error(H(156,t.tag))};function sj(e,t){return R5(e,t)}function M$(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hr(e,t,n,r){return new M$(e,t,n,r)}function c1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function L$(e){if(typeof e=="function")return c1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ty)return 11;if(e===Ey)return 14}return 2}function wo(e,t){var n=e.alternate;return n===null?(n=hr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jf(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")c1(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case cs:return ha(n.children,i,o,t);case _y:a=8,i|=8;break;case lg:return e=hr(12,n,t,i|2),e.elementType=lg,e.lanes=o,e;case cg:return e=hr(13,n,t,i),e.elementType=cg,e.lanes=o,e;case ug:return e=hr(19,n,t,i),e.elementType=ug,e.lanes=o,e;case v5:return sm(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case h5:a=10;break e;case g5:a=9;break e;case Ty:a=11;break e;case Ey:a=14;break e;case Ji:a=16,r=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=hr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ha(e,t,n,r){return e=hr(7,e,r,t),e.lanes=n,e}function sm(e,t,n,r){return e=hr(22,e,r,t),e.elementType=v5,e.lanes=n,e.stateNode={isHidden:!1},e}function Kh(e,t,n){return e=hr(6,e,null,t),e.lanes=n,e}function Xh(e,t,n){return t=hr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function N$(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Eh(0),this.expirationTimes=Eh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Eh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function u1(e,t,n,r,i,o,a,l,c){return e=new N$(e,t,n,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=hr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gy(o),e}function D$(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dj)}catch(e){console.error(e)}}dj(),d5.exports=tr;var m1=d5.exports,hS=m1;ag.createRoot=hS.createRoot,ag.hydrateRoot=hS.hydrateRoot;function fj(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function V$(){return!!(globalThis!=null&&globalThis.document)}function pj(e){return e.parentElement&&pj(e.parentElement)?!0:e.hidden}function U$(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function H$(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function q$(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&(i in n&&delete n[i],n[i]=r[i]);return n}const me=e=>e?"":void 0,yr=e=>e?!0:void 0;function Jg(e){return Array.isArray(e)}function Wt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Jg(e)}function G$(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function K$(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function ev(e){if(e==null)return e;const{unitless:t}=K$(e);return t||typeof e=="number"?`${e}px`:e}const mj=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,h1=e=>Object.fromEntries(Object.entries(e).sort(mj));function gS(e){const t=h1(e);return Object.assign(Object.values(t),t)}function X$(e){const t=Object.keys(h1(e));return new Set(t)}function vS(e){if(!e)return e;e=ev(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function cc(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${ev(e)})`),t&&n.push("and",`(max-width: ${ev(t)})`),n.join(" ")}function Y$(e){if(!e)return null;e.base=e.base??"0px";const t=gS(e),n=Object.entries(e).sort(mj).map(([o,a],l,c)=>{let[,u]=c[l+1]??[];return u=parseFloat(u)>0?vS(u):void 0,{_minW:vS(a),breakpoint:o,minW:a,maxW:u,maxWQuery:cc(null,u),minWQuery:cc(a),minMaxQuery:cc(a,u)}}),r=X$(e),i=Array.from(r.values());return{keys:r,normalized:t,isResponsive(o){const a=Object.keys(o);return a.length>0&&a.every(l=>r.has(l))},asObject:h1(e),asArray:gS(e),details:n,get(o){return n.find(a=>a.breakpoint===o)},media:[null,...t.map(o=>cc(o)).slice(1)],toArrayValue(o){if(!Wt(o))throw new Error("toArrayValue: value must be an object");const a=i.map(l=>o[l]??null);for(;G$(a)===null;)a.pop();return a},toObjectValue(o){if(!Array.isArray(o))throw new Error("toObjectValue: value must be an array");return o.reduce((a,l,c)=>{const u=i[c];return u!=null&&l!=null&&(a[u]=l),a},{})}}}function Q$(...e){return function(...n){e.forEach(r=>r==null?void 0:r(...n))}}function fe(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function g1(e){return m.Children.toArray(e).filter(t=>m.isValidElement(t))}function v1(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Z$(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Te(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:a}=e,l=m.createContext(a);l.displayName=t;function c(){var d;const u=m.useContext(l);if(!u&&n){const f=new Error(o??Z$(r,i));throw f.name="ContextError",(d=Error.captureStackTrace)==null||d.call(Error,f,c),f}return u}return[l.Provider,c,l]}const V=(...e)=>e.filter(Boolean).join(" "),J$=e=>e.hasAttribute("tabindex");function ez(e){if(!fj(e)||pj(e)||H$(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():U$(e)?!0:J$(e)}const tz=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],nz=tz.join(),rz=e=>e.offsetWidth>0&&e.offsetHeight>0;function iz(e){const t=Array.from(e.querySelectorAll(nz));return t.unshift(e),t.filter(n=>ez(n)&&rz(n))}function oz(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,a)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const l=t.get(r);if(l.has(i))return l.get(i);const c=e(r,i,o,a);return l.set(i,c),c}},hj=az(oz),sz=e=>e.default||e;function lz(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function gj(e,t){let n=lz(e);const r=10**(t??10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function yS(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function cz(e,t,n){return e==null?e:(nn===null?null:t(n)):Wt(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function uz(e,t=yj){const n={};return e.forEach((r,i)=>{const o=t[i];r!=null&&(n[o]=r)}),n}const dz=e=>typeof e=="function";function yn(e,...t){return dz(e)?e(...t):e}function fz(e){const t=e.ownerDocument.defaultView||window,{overflow:n,overflowX:r,overflowY:i}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(n+i+r)}function pz(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function bj(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:fj(e)&&fz(e)?e:bj(pz(e))}function xj(e,t){const n={},r={};for(const[i,o]of Object.entries(e))t.includes(i)?n[i]=o:r[i]=o;return[n,r]}function mz(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),i=a=>{const l={};for(let c=0;ci(Array.isArray(a)?a:r.filter(a));return t.map(o).concat(i(r))}function bS(e,t,n={}){const{stop:r,getKey:i}=n;function o(a,l=[]){if(Wt(a)||Array.isArray(a)){const c={};for(const[u,d]of Object.entries(a)){const f=(i==null?void 0:i(u))??u,p=[...l,f];if(r!=null&&r(a,p))return t(a,l);c[f]=o(d,p)}return c}return t(a,l)}return o(e)}var jp={exports:{}};jp.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",p="[object Error]",h="[object Function]",v="[object GeneratorFunction]",b="[object Map]",x="[object Number]",y="[object Null]",g="[object Object]",S="[object Proxy]",w="[object RegExp]",k="[object Set]",C="[object String]",P="[object Undefined]",j="[object WeakMap]",R="[object ArrayBuffer]",T="[object DataView]",$="[object Float32Array]",K="[object Float64Array]",X="[object Int8Array]",M="[object Int16Array]",N="[object Int32Array]",O="[object Uint8Array]",L="[object Uint8ClampedArray]",I="[object Uint16Array]",D="[object Uint32Array]",q=/[\\^$.*+?()[\]{}|]/g,J=/^\[object .+?Constructor\]$/,le=/^(?:0|[1-9]\d*)$/,oe={};oe[$]=oe[K]=oe[X]=oe[M]=oe[N]=oe[O]=oe[L]=oe[I]=oe[D]=!0,oe[l]=oe[c]=oe[R]=oe[d]=oe[T]=oe[f]=oe[p]=oe[h]=oe[b]=oe[x]=oe[g]=oe[w]=oe[k]=oe[C]=oe[j]=!1;var Q=typeof bd=="object"&&bd&&bd.Object===Object&&bd,ae=typeof self=="object"&&self&&self.Object===Object&&self,ce=Q||ae||Function("return this")(),Me=t&&!t.nodeType&&t,Ze=Me&&!0&&e&&!e.nodeType&&e,ne=Ze&&Ze.exports===Me,re=ne&&Q.process,_e=function(){try{var _=Ze&&Ze.require&&Ze.require("util").types;return _||re&&re.binding&&re.binding("util")}catch{}}(),ve=_e&&_e.isTypedArray;function Ke(_,A,B){switch(B.length){case 0:return _.call(A);case 1:return _.call(A,B[0]);case 2:return _.call(A,B[0],B[1]);case 3:return _.call(A,B[0],B[1],B[2])}return _.apply(A,B)}function se(_,A){for(var B=-1,pe=Array(_);++B<_;)pe[B]=A(B);return pe}function nt(_){return function(A){return _(A)}}function Oe(_,A){return _==null?void 0:_[A]}function kt(_,A){return function(B){return _(A(B))}}var je=Array.prototype,Jt=Function.prototype,At=Object.prototype,An=ce["__core-js_shared__"],$n=Jt.toString,ue=At.hasOwnProperty,sr=function(){var _=/[^.]+$/.exec(An&&An.keys&&An.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),ci=At.toString,Ga=$n.call(Object),Ka=RegExp("^"+$n.call(ue).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y=ne?ce.Buffer:void 0,rt=ce.Symbol,fn=ce.Uint8Array;Y&&Y.allocUnsafe;var lr=kt(Object.getPrototypeOf,Object),Ui=Object.create,pd=At.propertyIsEnumerable,f7=je.splice,Ho=rt?rt.toStringTag:void 0,md=function(){try{var _=hh(Object,"defineProperty");return _({},"",{}),_}catch{}}(),p7=Y?Y.isBuffer:void 0,Ux=Math.max,m7=Date.now,Hx=hh(ce,"Map"),Dl=hh(Object,"create"),h7=function(){function _(){}return function(A){if(!Go(A))return{};if(Ui)return Ui(A);_.prototype=A;var B=new _;return _.prototype=void 0,B}}();function qo(_){var A=-1,B=_==null?0:_.length;for(this.clear();++A-1}function j7(_,A){var B=this.__data__,pe=hd(B,_);return pe<0?(++this.size,B.push([_,A])):B[pe][1]=A,this}ui.prototype.clear=S7,ui.prototype.delete=w7,ui.prototype.get=k7,ui.prototype.has=C7,ui.prototype.set=j7;function Xa(_){var A=-1,B=_==null?0:_.length;for(this.clear();++A1?B[Re-1]:void 0,ft=Re>2?B[2]:void 0;for(Je=_.length>3&&typeof Je=="function"?(Re--,Je):void 0,ft&&eA(B[0],B[1],ft)&&(Je=Re<3?void 0:Je,Re=1),A=Object(A);++pe-1&&_%1==0&&_0){if(++A>=i)return arguments[0]}else A=0;return _.apply(void 0,arguments)}}function lA(_){if(_!=null){try{return $n.call(_)}catch{}try{return _+""}catch{}}return""}function yd(_,A){return _===A||_!==_&&A!==A}var vh=qx(function(){return arguments}())?qx:function(_){return Ol(_)&&ue.call(_,"callee")&&!pd.call(_,"callee")},yh=Array.isArray;function bh(_){return _!=null&&Qx(_.length)&&!xh(_)}function cA(_){return Ol(_)&&bh(_)}var Yx=p7||mA;function xh(_){if(!Go(_))return!1;var A=gd(_);return A==h||A==v||A==u||A==S}function Qx(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=a}function Go(_){var A=typeof _;return _!=null&&(A=="object"||A=="function")}function Ol(_){return _!=null&&typeof _=="object"}function uA(_){if(!Ol(_)||gd(_)!=g)return!1;var A=lr(_);if(A===null)return!0;var B=ue.call(A,"constructor")&&A.constructor;return typeof B=="function"&&B instanceof B&&$n.call(B)==Ga}var Zx=ve?nt(ve):F7;function dA(_){return X7(_,Jx(_))}function Jx(_){return bh(_)?L7(_):B7(_)}var fA=Y7(function(_,A,B,pe){Gx(_,A,B,pe)});function pA(_){return function(){return _}}function e2(_){return _}function mA(){return!1}e.exports=fA})(jp,jp.exports);var hz=jp.exports;const gr=by(hz);function Gt(e,t=[]){const n=m.useRef(e);return m.useEffect(()=>{n.current=e}),m.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function Ac(e,t,n,r){const i=Gt(n);return m.useEffect(()=>{const o=typeof e=="function"?e():e??document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e??document;o==null||o.removeEventListener(t,i,r)}}function Sj(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:i=(p,h)=>p!==h}=e,o=Gt(r),a=Gt(i),[l,c]=m.useState(n),u=t!==void 0,d=u?t:l,f=Gt(p=>{const v=typeof p=="function"?p(d):p;a(d,v)&&(u||c(v),o(v))},[u,o,d,a]);return[d,f]}function gz(e={}){const{onChange:t,precision:n,defaultValue:r,value:i,step:o=1,min:a=Number.MIN_SAFE_INTEGER,max:l=Number.MAX_SAFE_INTEGER,keepWithinRange:c=!0}=e,u=Gt(t),[d,f]=m.useState(()=>r==null?"":Yh(r,o,n)??""),p=typeof i<"u",h=p?i:d,v=wj(Xi(h),o),b=n??v,x=m.useCallback(T=>{T!==h&&(p||f(T.toString()),u==null||u(T.toString(),Xi(T)))},[u,p,h]),y=m.useCallback(T=>{let $=T;return c&&($=cz($,a,l)),gj($,b)},[b,c,l,a]),g=m.useCallback((T=o)=>{let $;h===""?$=Xi(T):$=Xi(h)+T,$=y($),x($)},[y,o,x,h]),S=m.useCallback((T=o)=>{let $;h===""?$=Xi(-T):$=Xi(h)-T,$=y($),x($)},[y,o,x,h]),w=m.useCallback(()=>{let T;r==null?T="":T=Yh(r,o,n)??a,x(T)},[r,n,o,x,a]),k=m.useCallback(T=>{const $=Yh(T,o,b)??a;x($)},[b,o,x,a]),C=Xi(h);return{isOutOfRange:C>l||C{d||c(!1),a==null||a()},[d,a]),v=m.useCallback(()=>{d||c(!0),o==null||o()},[d,o]),b=m.useCallback(()=>{u?h():v()},[u,v,h]);function x(g={}){return{...g,"aria-expanded":u,"aria-controls":p,onClick(S){var w;(w=g.onClick)==null||w.call(g,S),b()}}}function y(g={}){return{...g,hidden:!u,id:p}}return{isOpen:u,onOpen:v,onClose:h,onToggle:b,isControlled:d,getButtonProps:x,getDisclosureProps:y}}const ti=globalThis!=null&&globalThis.document?m.useLayoutEffect:m.useEffect,du=(e,t)=>{const n=m.useRef(!1),r=m.useRef(!1);m.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),m.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function vz(e){return"current"in e}const kj=()=>typeof window<"u";function yz(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}const bz=e=>kj()&&e.test(navigator.vendor),xz=e=>kj()&&e.test(yz()),Sz=()=>xz(/mac|iphone|ipad|ipod/i),wz=()=>Sz()&&bz(/apple/i);function kz(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var o;return((o=t.current)==null?void 0:o.ownerDocument)??document};Ac(i,"pointerdown",o=>{var u,d;if(!wz()||!r)return;const a=((d=(u=o.composedPath)==null?void 0:u.call(o))==null?void 0:d[0])??o.target,c=(n??[t]).some(f=>{const p=vz(f)?f.current:f;return(p==null?void 0:p.contains(a))||p===a});i().activeElement!==a&&c&&(o.preventDefault(),a.focus())})}function Cz(e,t){const n=Gt(e);m.useEffect(()=>{let r=null;const i=()=>n();return t!==null&&(r=window.setInterval(i,t)),()=>{r&&window.clearInterval(r)}},[t,n])}function jz(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function _t(...e){return t=>{e.forEach(n=>{jz(n,t)})}}function b1(...e){return m.useMemo(()=>_t(...e),e)}function Pz(e,t){const n=Gt(e);m.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const Dt={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Br=e=>Cj(t=>e(t,"&"),"[role=group]","[data-group]",".group"),di=e=>Cj(t=>e(t,"~ &"),"[data-peer]",".peer"),Cj=(e,...t)=>t.map(e).join(", "),Vs={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:Br(Dt.open),_groupClosed:Br(Dt.closed),_groupHover:Br(Dt.hover),_peerHover:di(Dt.hover),_groupFocus:Br(Dt.focus),_peerFocus:di(Dt.focus),_groupFocusVisible:Br(Dt.focusVisible),_peerFocusVisible:di(Dt.focusVisible),_groupActive:Br(Dt.active),_peerActive:di(Dt.active),_groupDisabled:Br(Dt.disabled),_peerDisabled:di(Dt.disabled),_groupInvalid:Br(Dt.invalid),_peerInvalid:di(Dt.invalid),_groupChecked:Br(Dt.checked),_peerChecked:di(Dt.checked),_groupFocusWithin:Br(Dt.focusWithin),_peerFocusWithin:di(Dt.focusWithin),_peerPlaceholderShown:di(Dt.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},jj=Object.keys(Vs),_z=e=>/!(important)?$/.test(e),xS=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,Tz=(e,t)=>n=>{const r=String(t),i=_z(r),o=xS(r),a=e?`${e}.${o}`:o;let l=Wt(n.__cssMap)&&a in n.__cssMap?n.__cssMap[a].varRef:t;return l=xS(l),i?`${l} !important`:l};function x1(e){const{scale:t,transform:n,compose:r}=e;return(o,a)=>{const l=Tz(t,o)(a);let c=(n==null?void 0:n(l,a))??l;return r&&(c=r(c,a)),c}}const Nd=(...e)=>t=>e.reduce((n,r)=>r(n),t);function cr(e,t){return n=>{const r={property:n,scale:e};return r.transform=x1({scale:e,transform:t}),r}}const Ez=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function Az(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:Ez(t),transform:n?x1({scale:n,compose:r}):r}}const Pj=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function $z(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...Pj].join(" ")}function zz(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...Pj].join(" ")}const Iz={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},Rz={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function Mz(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const Lz={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},tv={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},Nz=new Set(Object.values(tv)),nv=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Dz=e=>e.trim();function Oz(e,t){if(e==null||nv.has(e))return e;if(!(rv(e)||nv.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),o=i==null?void 0:i[1],a=i==null?void 0:i[2];if(!o||!a)return e;const l=o.includes("-gradient")?o:`${o}-gradient`,[c,...u]=a.split(",").map(Dz).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const d=c in tv?tv[c]:c;u.unshift(d);const f=u.map(p=>{if(Nz.has(p))return p;const h=p.indexOf(" "),[v,b]=h!==-1?[p.substr(0,h),p.substr(h+1)]:[p],x=rv(b)?b:b&&b.split(" "),y=`colors.${v}`,g=y in t.__cssMap?t.__cssMap[y].varRef:v;return x?[g,...Array.isArray(x)?x:[x]].join(" "):g});return`${l}(${f.join(", ")})`}const rv=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),Fz=(e,t)=>Oz(e,t??{});function Bz(e){return/^var\(--.+\)$/.test(e)}const Wz=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Wr=e=>t=>`${e}(${t})`,ze={filter(e){return e!=="auto"?e:Iz},backdropFilter(e){return e!=="auto"?e:Rz},ring(e){return Mz(ze.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?$z():e==="auto-gpu"?zz():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=Wz(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(Bz(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:Fz,blur:Wr("blur"),opacity:Wr("opacity"),brightness:Wr("brightness"),contrast:Wr("contrast"),dropShadow:Wr("drop-shadow"),grayscale:Wr("grayscale"),hueRotate:e=>Wr("hue-rotate")(ze.degree(e)),invert:Wr("invert"),saturate:Wr("saturate"),sepia:Wr("sepia"),bgImage(e){return e==null||rv(e)||nv.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=Lz[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},E={borderWidths:cr("borderWidths"),borderStyles:cr("borderStyles"),colors:cr("colors"),borders:cr("borders"),gradients:cr("gradients",ze.gradient),radii:cr("radii",ze.px),space:cr("space",Nd(ze.vh,ze.px)),spaceT:cr("space",Nd(ze.vh,ze.px)),degreeT(e){return{property:e,transform:ze.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:x1({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:cr("sizes",Nd(ze.vh,ze.px)),sizesT:cr("sizes",Nd(ze.vh,ze.fraction)),shadows:cr("shadows"),logical:Az,blur:cr("blur",ze.blur)},Pf={background:E.colors("background"),backgroundColor:E.colors("backgroundColor"),backgroundImage:E.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:ze.bgClip},bgSize:E.prop("backgroundSize"),bgPosition:E.prop("backgroundPosition"),bg:E.colors("background"),bgColor:E.colors("backgroundColor"),bgPos:E.prop("backgroundPosition"),bgRepeat:E.prop("backgroundRepeat"),bgAttachment:E.prop("backgroundAttachment"),bgGradient:E.gradients("backgroundImage"),bgClip:{transform:ze.bgClip}};Object.assign(Pf,{bgImage:Pf.backgroundImage,bgImg:Pf.backgroundImage});const We={border:E.borders("border"),borderWidth:E.borderWidths("borderWidth"),borderStyle:E.borderStyles("borderStyle"),borderColor:E.colors("borderColor"),borderRadius:E.radii("borderRadius"),borderTop:E.borders("borderTop"),borderBlockStart:E.borders("borderBlockStart"),borderTopLeftRadius:E.radii("borderTopLeftRadius"),borderStartStartRadius:E.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:E.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:E.radii("borderTopRightRadius"),borderStartEndRadius:E.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:E.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:E.borders("borderRight"),borderInlineEnd:E.borders("borderInlineEnd"),borderBottom:E.borders("borderBottom"),borderBlockEnd:E.borders("borderBlockEnd"),borderBottomLeftRadius:E.radii("borderBottomLeftRadius"),borderBottomRightRadius:E.radii("borderBottomRightRadius"),borderLeft:E.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:E.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:E.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:E.borders(["borderLeft","borderRight"]),borderInline:E.borders("borderInline"),borderY:E.borders(["borderTop","borderBottom"]),borderBlock:E.borders("borderBlock"),borderTopWidth:E.borderWidths("borderTopWidth"),borderBlockStartWidth:E.borderWidths("borderBlockStartWidth"),borderTopColor:E.colors("borderTopColor"),borderBlockStartColor:E.colors("borderBlockStartColor"),borderTopStyle:E.borderStyles("borderTopStyle"),borderBlockStartStyle:E.borderStyles("borderBlockStartStyle"),borderBottomWidth:E.borderWidths("borderBottomWidth"),borderBlockEndWidth:E.borderWidths("borderBlockEndWidth"),borderBottomColor:E.colors("borderBottomColor"),borderBlockEndColor:E.colors("borderBlockEndColor"),borderBottomStyle:E.borderStyles("borderBottomStyle"),borderBlockEndStyle:E.borderStyles("borderBlockEndStyle"),borderLeftWidth:E.borderWidths("borderLeftWidth"),borderInlineStartWidth:E.borderWidths("borderInlineStartWidth"),borderLeftColor:E.colors("borderLeftColor"),borderInlineStartColor:E.colors("borderInlineStartColor"),borderLeftStyle:E.borderStyles("borderLeftStyle"),borderInlineStartStyle:E.borderStyles("borderInlineStartStyle"),borderRightWidth:E.borderWidths("borderRightWidth"),borderInlineEndWidth:E.borderWidths("borderInlineEndWidth"),borderRightColor:E.colors("borderRightColor"),borderInlineEndColor:E.colors("borderInlineEndColor"),borderRightStyle:E.borderStyles("borderRightStyle"),borderInlineEndStyle:E.borderStyles("borderInlineEndStyle"),borderTopRadius:E.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:E.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:E.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:E.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(We,{rounded:We.borderRadius,roundedTop:We.borderTopRadius,roundedTopLeft:We.borderTopLeftRadius,roundedTopRight:We.borderTopRightRadius,roundedTopStart:We.borderStartStartRadius,roundedTopEnd:We.borderStartEndRadius,roundedBottom:We.borderBottomRadius,roundedBottomLeft:We.borderBottomLeftRadius,roundedBottomRight:We.borderBottomRightRadius,roundedBottomStart:We.borderEndStartRadius,roundedBottomEnd:We.borderEndEndRadius,roundedLeft:We.borderLeftRadius,roundedRight:We.borderRightRadius,roundedStart:We.borderInlineStartRadius,roundedEnd:We.borderInlineEndRadius,borderStart:We.borderInlineStart,borderEnd:We.borderInlineEnd,borderTopStartRadius:We.borderStartStartRadius,borderTopEndRadius:We.borderStartEndRadius,borderBottomStartRadius:We.borderEndStartRadius,borderBottomEndRadius:We.borderEndEndRadius,borderStartRadius:We.borderInlineStartRadius,borderEndRadius:We.borderInlineEndRadius,borderStartWidth:We.borderInlineStartWidth,borderEndWidth:We.borderInlineEndWidth,borderStartColor:We.borderInlineStartColor,borderEndColor:We.borderInlineEndColor,borderStartStyle:We.borderInlineStartStyle,borderEndStyle:We.borderInlineEndStyle});const Vz={color:E.colors("color"),textColor:E.colors("color"),fill:E.colors("fill"),stroke:E.colors("stroke"),accentColor:E.colors("accentColor"),textFillColor:E.colors("textFillColor")},Pp={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:ze.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:E.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:E.space("gap"),rowGap:E.space("rowGap"),columnGap:E.space("columnGap")};Object.assign(Pp,{flexDir:Pp.flexDirection});const dr={width:E.sizesT("width"),inlineSize:E.sizesT("inlineSize"),height:E.sizes("height"),blockSize:E.sizes("blockSize"),boxSize:E.sizes(["width","height"]),minWidth:E.sizes("minWidth"),minInlineSize:E.sizes("minInlineSize"),minHeight:E.sizes("minHeight"),minBlockSize:E.sizes("minBlockSize"),maxWidth:E.sizes("maxWidth"),maxInlineSize:E.sizes("maxInlineSize"),maxHeight:E.sizes("maxHeight"),maxBlockSize:E.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var i,o;return{[`@media screen and (min-width: ${((o=(i=t.__breakpoints)==null?void 0:i.get(e))==null?void 0:o.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var i,o;return{[`@media screen and (max-width: ${((o=(i=t.__breakpoints)==null?void 0:i.get(e))==null?void 0:o._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:E.propT("float",ze.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(dr,{w:dr.width,h:dr.height,minW:dr.minWidth,maxW:dr.maxWidth,minH:dr.minHeight,maxH:dr.maxHeight,overscroll:dr.overscrollBehavior,overscrollX:dr.overscrollBehaviorX,overscrollY:dr.overscrollBehaviorY});const Uz={filter:{transform:ze.filter},blur:E.blur("--chakra-blur"),brightness:E.propT("--chakra-brightness",ze.brightness),contrast:E.propT("--chakra-contrast",ze.contrast),hueRotate:E.propT("--chakra-hue-rotate",ze.hueRotate),invert:E.propT("--chakra-invert",ze.invert),saturate:E.propT("--chakra-saturate",ze.saturate),dropShadow:E.propT("--chakra-drop-shadow",ze.dropShadow),backdropFilter:{transform:ze.backdropFilter},backdropBlur:E.blur("--chakra-backdrop-blur"),backdropBrightness:E.propT("--chakra-backdrop-brightness",ze.brightness),backdropContrast:E.propT("--chakra-backdrop-contrast",ze.contrast),backdropHueRotate:E.propT("--chakra-backdrop-hue-rotate",ze.hueRotate),backdropInvert:E.propT("--chakra-backdrop-invert",ze.invert),backdropSaturate:E.propT("--chakra-backdrop-saturate",ze.saturate)},Hz={ring:{transform:ze.ring},ringColor:E.colors("--chakra-ring-color"),ringOffset:E.prop("--chakra-ring-offset-width"),ringOffsetColor:E.colors("--chakra-ring-offset-color"),ringInset:E.prop("--chakra-ring-inset")},qz={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:ze.outline},outlineOffset:!0,outlineColor:E.colors("outlineColor")},_j={gridGap:E.space("gridGap"),gridColumnGap:E.space("gridColumnGap"),gridRowGap:E.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function Gz(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,a)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const l=t.get(r);if(l.has(i))return l.get(i);const c=e(r,i,o,a);return l.set(i,c),c}},Xz=Kz(Gz),Yz={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Qz={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Qh=(e,t,n)=>{const r={},i=Xz(e,t,{});for(const o in i)o in n&&n[o]!=null||(r[o]=i[o]);return r},Zz={srOnly:{transform(e){return e===!0?Yz:e==="focusable"?Qz:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>Qh(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>Qh(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>Qh(t,e,n)}},$c={position:!0,pos:E.prop("position"),zIndex:E.prop("zIndex","zIndices"),inset:E.spaceT("inset"),insetX:E.spaceT(["left","right"]),insetInline:E.spaceT("insetInline"),insetY:E.spaceT(["top","bottom"]),insetBlock:E.spaceT("insetBlock"),top:E.spaceT("top"),insetBlockStart:E.spaceT("insetBlockStart"),bottom:E.spaceT("bottom"),insetBlockEnd:E.spaceT("insetBlockEnd"),left:E.spaceT("left"),insetInlineStart:E.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:E.spaceT("right"),insetInlineEnd:E.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign($c,{insetStart:$c.insetInlineStart,insetEnd:$c.insetInlineEnd});const iv={boxShadow:E.shadows("boxShadow"),mixBlendMode:!0,blendMode:E.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:E.prop("backgroundBlendMode"),opacity:!0};Object.assign(iv,{shadow:iv.boxShadow});const st={margin:E.spaceT("margin"),marginTop:E.spaceT("marginTop"),marginBlockStart:E.spaceT("marginBlockStart"),marginRight:E.spaceT("marginRight"),marginInlineEnd:E.spaceT("marginInlineEnd"),marginBottom:E.spaceT("marginBottom"),marginBlockEnd:E.spaceT("marginBlockEnd"),marginLeft:E.spaceT("marginLeft"),marginInlineStart:E.spaceT("marginInlineStart"),marginX:E.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:E.spaceT("marginInline"),marginY:E.spaceT(["marginTop","marginBottom"]),marginBlock:E.spaceT("marginBlock"),padding:E.space("padding"),paddingTop:E.space("paddingTop"),paddingBlockStart:E.space("paddingBlockStart"),paddingRight:E.space("paddingRight"),paddingBottom:E.space("paddingBottom"),paddingBlockEnd:E.space("paddingBlockEnd"),paddingLeft:E.space("paddingLeft"),paddingInlineStart:E.space("paddingInlineStart"),paddingInlineEnd:E.space("paddingInlineEnd"),paddingX:E.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:E.space("paddingInline"),paddingY:E.space(["paddingTop","paddingBottom"]),paddingBlock:E.space("paddingBlock")};Object.assign(st,{m:st.margin,mt:st.marginTop,mr:st.marginRight,me:st.marginInlineEnd,marginEnd:st.marginInlineEnd,mb:st.marginBottom,ml:st.marginLeft,ms:st.marginInlineStart,marginStart:st.marginInlineStart,mx:st.marginX,my:st.marginY,p:st.padding,pt:st.paddingTop,py:st.paddingY,px:st.paddingX,pb:st.paddingBottom,pl:st.paddingLeft,ps:st.paddingInlineStart,paddingStart:st.paddingInlineStart,pr:st.paddingRight,pe:st.paddingInlineEnd,paddingEnd:st.paddingInlineEnd});const Jz={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:E.spaceT("scrollMargin"),scrollMarginTop:E.spaceT("scrollMarginTop"),scrollMarginBottom:E.spaceT("scrollMarginBottom"),scrollMarginLeft:E.spaceT("scrollMarginLeft"),scrollMarginRight:E.spaceT("scrollMarginRight"),scrollMarginX:E.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:E.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:E.spaceT("scrollPadding"),scrollPaddingTop:E.spaceT("scrollPaddingTop"),scrollPaddingBottom:E.spaceT("scrollPaddingBottom"),scrollPaddingLeft:E.spaceT("scrollPaddingLeft"),scrollPaddingRight:E.spaceT("scrollPaddingRight"),scrollPaddingX:E.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:E.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},eI={fontFamily:E.prop("fontFamily","fonts"),fontSize:E.prop("fontSize","fontSizes",ze.px),fontWeight:E.prop("fontWeight","fontWeights"),lineHeight:E.prop("lineHeight","lineHeights"),letterSpacing:E.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},tI={textDecorationColor:E.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:E.shadows("textShadow")},nI={clipPath:!0,transform:E.propT("transform",ze.transform),transformOrigin:!0,translateX:E.spaceT("--chakra-translate-x"),translateY:E.spaceT("--chakra-translate-y"),skewX:E.degreeT("--chakra-skew-x"),skewY:E.degreeT("--chakra-skew-y"),scaleX:E.prop("--chakra-scale-x"),scaleY:E.prop("--chakra-scale-y"),scale:E.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:E.degreeT("--chakra-rotate")},rI={listStyleType:!0,listStylePosition:!0,listStylePos:E.prop("listStylePosition"),listStyleImage:!0,listStyleImg:E.prop("listStyleImage")},iI={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:E.prop("transitionDuration","transition.duration"),transitionProperty:E.prop("transitionProperty","transition.property"),transitionTimingFunction:E.prop("transitionTimingFunction","transition.easing")},S1=gr({},Pf,We,Vz,Pp,dr,Uz,Hz,qz,_j,Zz,$c,iv,st,Jz,eI,tI,nI,rI,iI),oI=Object.assign({},st,dr,Pp,_j,$c),Tj=Object.keys(oI),aI=[...Object.keys(S1),...jj],sI={...S1,...Vs},lI=e=>e in sI,cI=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:i}=t.__breakpoints,o={};for(const a in e){let l=yn(e[a],t);if(l==null)continue;if(l=Wt(l)&&n(l)?r(l):l,!Array.isArray(l)){o[a]=l;continue}const c=l.slice(0,i.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!dI(t),pI=(e,t)=>{if(t==null)return t;const n=a=>{var l,c;return(c=(l=e.__cssMap)==null?void 0:l[a])==null?void 0:c.varRef},r=a=>n(a)??a,[i,o]=uI(t);return t=n(i)??r(o)??r(t),t};function mI(e){const{configs:t={},pseudos:n={},theme:r}=e,i=(o,a=!1)=>{var d;const l=yn(o,r),c=cI(l)(r);let u={};for(let f in c){const p=c[f];let h=yn(p,r);f in n&&(f=n[f]),fI(f,h)&&(h=pI(r,h));let v=t[f];if(v===!0&&(v={property:f}),Wt(h)){u[f]=u[f]??{},u[f]=gr({},u[f],i(h,!0));continue}let b=((d=v==null?void 0:v.transform)==null?void 0:d.call(v,h,r,l))??h;b=v!=null&&v.processResult?i(b,!0):b;const x=yn(v==null?void 0:v.property,r);if(!a&&(v!=null&&v.static)){const y=yn(v.static,r);u=gr({},u,y)}if(x&&Array.isArray(x)){for(const y of x)u[y]=b;continue}if(x){x==="&"&&Wt(b)?u=gr({},u,b):u[x]=b;continue}if(Wt(b)){u=gr({},u,b);continue}u[f]=b}return u};return i}const Ej=e=>t=>mI({theme:t,pseudos:Vs,configs:S1})(e);function ge(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function hI(e,t,n){var r,i;return((i=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:i.varRef)??n}function gI(e,t){if(Array.isArray(e))return e;if(Wt(e))return t(e);if(e!=null)return[e]}function vI(e,t){for(let n=t+1;n{gr(l,{[S]:d?g[S]:{[y]:g[S]}})});continue}if(!f){d?gr(l,g):l[y]=g;continue}l[y]=g}}return l}}function bI(e){return t=>{const{variant:n,size:r,theme:i}=t,o=yI(i);return gr({},yn(e.baseStyle??{},t),o(e,"sizes",r,t),o(e,"variants",n,t))}}function Ie(e){return fm(e,["styleConfig","size","variant","colorScheme"])}function Aj(e){return Wt(e)&&e.reference?e.reference:String(e)}const pm=(e,...t)=>t.map(Aj).join(` ${e} `).replace(/calc/g,""),SS=(...e)=>`calc(${pm("+",...e)})`,wS=(...e)=>`calc(${pm("-",...e)})`,ov=(...e)=>`calc(${pm("*",...e)})`,kS=(...e)=>`calc(${pm("/",...e)})`,CS=e=>{const t=Aj(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ov(t,-1)},mi=Object.assign(e=>({add:(...t)=>mi(SS(e,...t)),subtract:(...t)=>mi(wS(e,...t)),multiply:(...t)=>mi(ov(e,...t)),divide:(...t)=>mi(kS(e,...t)),negate:()=>mi(CS(e)),toString:()=>e.toString()}),{add:SS,subtract:wS,multiply:ov,divide:kS,negate:CS});function xI(e,t="-"){return e.replace(/\s+/g,t)}function SI(e){const t=xI(e.toString());return kI(wI(t))}function wI(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function kI(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function CI(e,t=""){return[t,e].filter(Boolean).join("-")}function jI(e,t){return`var(${e}${t?`, ${t}`:""})`}function PI(e,t=""){return SI(`--${CI(e,t)}`)}function te(e,t,n){const r=PI(e,n);return{variable:r,reference:jI(r,t)}}function $j(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[i,o]=r;n[i]=te(`${e}-${i}`,o);continue}n[r]=te(`${e}-${r}`)}return n}const _I=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function TI(e){return vj(e,_I)}function EI(e){return e.semanticTokens}function AI(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}function $I(e){const t=TI(e),n=EI(e),r=o=>jj.includes(o)||o==="default",i={};return bS(t,(o,a)=>{o!=null&&(i[a.join(".")]={isSemantic:!1,value:o})}),bS(n,(o,a)=>{o!=null&&(i[a.join(".")]={isSemantic:!0,value:o})},{stop:o=>Object.keys(o).every(r)}),i}function jS(e,t){return te(String(e).replace(/\./g,"-"),void 0,t)}function zI(e){var a;const t=$I(e),n=(a=e.config)==null?void 0:a.cssVarPrefix;let r={};const i={};function o(l,c){const d=[String(l).split(".")[0],c].join(".");if(!t[d])return c;const{reference:p}=jS(d,n);return p}for(const[l,c]of Object.entries(t)){const{isSemantic:u,value:d}=c,{variable:f,reference:p}=jS(l,n);if(!u){if(l.startsWith("space")){const v=l.split("."),[b,...x]=v,y=`${b}.-${x.join(".")}`,g=mi.negate(d),S=mi.negate(p);i[y]={value:g,var:f,varRef:S}}r[f]=d,i[l]={value:d,var:f,varRef:p};continue}const h=Wt(d)?d:{default:d};r=gr(r,Object.entries(h).reduce((v,[b,x])=>{if(!x)return v;const y=o(l,`${x}`);if(b==="default")return v[f]=y,v;const g=(Vs==null?void 0:Vs[b])??b;return v[g]={[f]:y},v},{})),i[l]={value:p,var:f,varRef:p}}return{cssVars:r,cssMap:i}}function II(e){const t=AI(e),{cssMap:n,cssVars:r}=zI(t);return Object.assign(t,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...r},__cssMap:n,__breakpoints:Y$(t.breakpoints)}),t}function Fe(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...d){r();for(const f of d)t[f]=c(f);return Fe(e,t)}function o(...d){for(const f of d)f in t||(t[f]=c(f));return Fe(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function l(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function c(d){const h=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>d}}return{parts:i,toPart:c,extend:o,selectors:a,classnames:l,get keys(){return Object.keys(t)},__type:{}}}const RI=Fe("accordion").parts("root","container","button","panel","icon"),zj=Fe("alert").parts("title","description","container","icon","spinner"),MI=Fe("avatar").parts("label","badge","container","excessLabel","group"),LI=Fe("breadcrumb").parts("link","item","container","separator");Fe("button").parts();const Ij=Fe("checkbox").parts("control","icon","container","label");Fe("progress").parts("track","filledTrack","label");const NI=Fe("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),DI=Fe("editable").parts("preview","input","textarea"),Rj=Fe("form").parts("container","requiredIndicator","helperText"),OI=Fe("formError").parts("text","icon"),w1=Fe("input").parts("addon","field","element","group"),FI=Fe("list").parts("container","item","icon"),Mj=Fe("menu").parts("button","list","item","groupTitle","icon","command","divider"),Lj=Fe("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),BI=Fe("numberinput").parts("root","field","stepperGroup","stepper");Fe("pininput").parts("field");const WI=Fe("popover").parts("content","header","body","footer","popper","arrow","closeButton"),Nj=Fe("progress").parts("label","filledTrack","track"),Dj=Fe("radio").parts("container","control","label"),VI=Fe("select").parts("field","icon"),Oj=Fe("slider").parts("container","track","thumb","filledTrack","mark"),UI=Fe("stat").parts("container","label","helpText","number","icon"),Fj=Fe("switch").parts("container","track","thumb","label"),HI=Fe("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),qI=Fe("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),GI=Fe("tag").parts("container","label","closeButton"),Bj=Fe("card").parts("container","header","body","footer");Fe("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:KI,defineMultiStyleConfig:XI}=ge(RI.keys),YI={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},QI={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},ZI={pt:"2",px:"4",pb:"5"},JI={fontSize:"1.25em"},eR=KI({container:YI,button:QI,panel:ZI,icon:JI}),tR=XI({baseStyle:eR});function la(e,t,n){return Math.min(Math.max(e,n),t)}class uc extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}function k1(e){if(typeof e!="string")throw new uc(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=cR.test(e)?iR(e):e;const n=oR.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(l=>parseInt(fu(l,2),16)),parseInt(fu(a[3]||"f",2),16)/255]}const r=aR.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(l=>parseInt(l,16)),parseInt(a[3]||"ff",16)/255]}const i=sR.exec(t);if(i){const a=Array.from(i).slice(1);return[...a.slice(0,3).map(l=>parseInt(l,10)),parseFloat(a[3]||"1")]}const o=lR.exec(t);if(o){const[a,l,c,u]=Array.from(o).slice(1).map(parseFloat);if(la(0,100,l)!==l)throw new uc(e);if(la(0,100,c)!==c)throw new uc(e);return[...uR(a,l,c),Number.isNaN(u)?1:u]}throw new uc(e)}function nR(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const PS=e=>parseInt(e.replace(/_/g,""),36),rR="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=PS(t.substring(0,3)),r=PS(t.substring(3)).toString(16);let i="";for(let o=0;o<6-r.length;o++)i+="0";return e[n]=`${i}${r}`,e},{});function iR(e){const t=e.toLowerCase().trim(),n=rR[nR(t)];if(!n)throw new uc(e);return`#${n}`}const fu=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),oR=new RegExp(`^#${fu("([a-f0-9])",3)}([a-f0-9])?$`,"i"),aR=new RegExp(`^#${fu("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),sR=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${fu(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),lR=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,cR=/^[a-z]+$/i,_S=e=>Math.round(e*255),uR=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(_S);const i=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*(t/100),a=o*(1-Math.abs(i%2-1));let l=0,c=0,u=0;i>=0&&i<1?(l=o,c=a):i>=1&&i<2?(l=a,c=o):i>=2&&i<3?(c=o,u=a):i>=3&&i<4?(c=a,u=o):i>=4&&i<5?(l=a,u=o):i>=5&&i<6&&(l=o,u=a);const d=r-o/2,f=l+d,p=c+d,h=u+d;return[f,p,h].map(_S)};function dR(e,t,n,r){return`rgba(${la(0,255,e).toFixed()}, ${la(0,255,t).toFixed()}, ${la(0,255,n).toFixed()}, ${parseFloat(la(0,1,r).toFixed(3))})`}function fR(e,t){const[n,r,i,o]=k1(e);return dR(n,r,i,o-t)}function pR(e){const[t,n,r,i]=k1(e);let o=a=>{const l=la(0,255,a).toString(16);return l.length===1?`0${l}`:l};return`#${o(t)}${o(n)}${o(r)}${i<1?o(Math.round(i*255)):""}`}const mR=e=>Object.keys(e).length===0;function hR(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r{const r=hR(e,`colors.${t}`,t);try{return pR(r),r}catch{return n??"#000000"}},gR=e=>{const[t,n,r]=k1(e);return(t*299+n*587+r*114)/1e3},vR=e=>t=>{const n=ct(t,e);return gR(n)<128?"dark":"light"},yR=e=>t=>vR(e)(t)==="dark",Xt=(e,t)=>n=>{const r=ct(n,e);return fR(r,1-t)};function TS(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + 45deg, + ${t} 25%, + transparent 25%, + transparent 50%, + ${t} 50%, + ${t} 75%, + transparent 75%, + transparent + )`,backgroundSize:`${e} ${e}`}}const bR=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function xR(e){const t=bR();return!e||mR(e)?t:e.string&&e.colors?wR(e.string,e.colors):e.string&&!e.colors?SR(e.string):e.colors&&!e.string?kR(e.colors):t}function SR(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function wR(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function C1(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function Wj(e){return Wt(e)&&e.reference?e.reference:String(e)}const mm=(e,...t)=>t.map(Wj).join(` ${e} `).replace(/calc/g,""),ES=(...e)=>`calc(${mm("+",...e)})`,AS=(...e)=>`calc(${mm("-",...e)})`,av=(...e)=>`calc(${mm("*",...e)})`,$S=(...e)=>`calc(${mm("/",...e)})`,zS=e=>{const t=Wj(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:av(t,-1)},hi=Object.assign(e=>({add:(...t)=>hi(ES(e,...t)),subtract:(...t)=>hi(AS(e,...t)),multiply:(...t)=>hi(av(e,...t)),divide:(...t)=>hi($S(e,...t)),negate:()=>hi(zS(e)),toString:()=>e.toString()}),{add:ES,subtract:AS,multiply:av,divide:$S,negate:zS});function CR(e){return!Number.isInteger(parseFloat(e.toString()))}function jR(e,t="-"){return e.replace(/\s+/g,t)}function Vj(e){const t=jR(e.toString());return t.includes("\\.")?e:CR(e)?t.replace(".","\\."):e}function PR(e,t=""){return[t,Vj(e)].filter(Boolean).join("-")}function _R(e,t){return`var(${Vj(e)}${t?`, ${t}`:""})`}function TR(e,t=""){return`--${PR(e,t)}`}function Et(e,t){const n=TR(e,t==null?void 0:t.prefix);return{variable:n,reference:_R(n,ER(t==null?void 0:t.fallback))}}function ER(e){return e==null?void 0:e.reference}const{definePartsStyle:qu,defineMultiStyleConfig:AR}=ge(zj.keys),Xn=te("alert-fg"),$i=te("alert-bg"),$R=qu({container:{bg:$i.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Xn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Xn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function j1(e){const{theme:t,colorScheme:n}=e,r=Xt(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const zR=qu(e=>{const{colorScheme:t}=e,n=j1(e);return{container:{[Xn.variable]:`colors.${t}.600`,[$i.variable]:n.light,_dark:{[Xn.variable]:`colors.${t}.200`,[$i.variable]:n.dark}}}}),IR=qu(e=>{const{colorScheme:t}=e,n=j1(e);return{container:{[Xn.variable]:`colors.${t}.600`,[$i.variable]:n.light,_dark:{[Xn.variable]:`colors.${t}.200`,[$i.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Xn.reference}}}),RR=qu(e=>{const{colorScheme:t}=e,n=j1(e);return{container:{[Xn.variable]:`colors.${t}.600`,[$i.variable]:n.light,_dark:{[Xn.variable]:`colors.${t}.200`,[$i.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Xn.reference}}}),MR=qu(e=>{const{colorScheme:t}=e;return{container:{[Xn.variable]:"colors.white",[$i.variable]:`colors.${t}.600`,_dark:{[Xn.variable]:"colors.gray.900",[$i.variable]:`colors.${t}.200`},color:Xn.reference}}}),LR={subtle:zR,"left-accent":IR,"top-accent":RR,solid:MR},NR=AR({baseStyle:$R,variants:LR,defaultProps:{variant:"subtle",colorScheme:"blue"}}),Uj={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},DR={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},OR={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Hj={...Uj,...DR,container:OR},FR=e=>typeof e=="function";function jn(e,...t){return FR(e)?e(...t):e}const{definePartsStyle:qj,defineMultiStyleConfig:BR}=ge(MI.keys),Us=te("avatar-border-color"),zc=te("avatar-bg"),pu=te("avatar-font-size"),sl=te("avatar-size"),WR={borderRadius:"full",border:"0.2em solid",borderColor:Us.reference,[Us.variable]:"white",_dark:{[Us.variable]:"colors.gray.800"}},VR={bg:zc.reference,fontSize:pu.reference,width:sl.reference,height:sl.reference,lineHeight:"1",[zc.variable]:"colors.gray.200",_dark:{[zc.variable]:"colors.whiteAlpha.400"}},UR=e=>{const{name:t,theme:n}=e,r=t?xR({string:t}):"colors.gray.400",i=yR(r)(n);let o="white";return i||(o="gray.800"),{bg:zc.reference,fontSize:pu.reference,color:o,borderColor:Us.reference,verticalAlign:"top",width:sl.reference,height:sl.reference,"&:not([data-loaded])":{[zc.variable]:r},[Us.variable]:"colors.white",_dark:{[Us.variable]:"colors.gray.800"}}},HR={fontSize:pu.reference,lineHeight:"1"},qR=qj(e=>({badge:jn(WR,e),excessLabel:jn(VR,e),container:jn(UR,e),label:HR}));function qi(e){const t=e!=="100%"?Hj[e]:void 0;return qj({container:{[sl.variable]:t??e,[pu.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[sl.variable]:t??e,[pu.variable]:`calc(${t??e} / 2.5)`}})}const GR={"2xs":qi(4),xs:qi(6),sm:qi(8),md:qi(12),lg:qi(16),xl:qi(24),"2xl":qi(32),full:qi("100%")},KR=BR({baseStyle:qR,sizes:GR,defaultProps:{size:"md"}}),Rt=$j("badge",["bg","color","shadow"]),XR={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Rt.bg.reference,color:Rt.color.reference,boxShadow:Rt.shadow.reference},YR=e=>{const{colorScheme:t,theme:n}=e,r=Xt(`${t}.500`,.6)(n);return{[Rt.bg.variable]:`colors.${t}.500`,[Rt.color.variable]:"colors.white",_dark:{[Rt.bg.variable]:r,[Rt.color.variable]:"colors.whiteAlpha.800"}}},QR=e=>{const{colorScheme:t,theme:n}=e,r=Xt(`${t}.200`,.16)(n);return{[Rt.bg.variable]:`colors.${t}.100`,[Rt.color.variable]:`colors.${t}.800`,_dark:{[Rt.bg.variable]:r,[Rt.color.variable]:`colors.${t}.200`}}},ZR=e=>{const{colorScheme:t,theme:n}=e,r=Xt(`${t}.200`,.8)(n);return{[Rt.color.variable]:`colors.${t}.500`,_dark:{[Rt.color.variable]:r},[Rt.shadow.variable]:`inset 0 0 0px 1px ${Rt.color.reference}`}},JR={solid:YR,subtle:QR,outline:ZR},Ic={baseStyle:XR,variants:JR,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:eM,definePartsStyle:tM}=ge(LI.keys),Zh=te("breadcrumb-link-decor"),nM={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Zh.reference,[Zh.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Zh.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},rM=tM({link:nM}),iM=eM({baseStyle:rM}),oM={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},Gj=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:ie("gray.800","whiteAlpha.900")(e),_hover:{bg:ie("gray.100","whiteAlpha.200")(e)},_active:{bg:ie("gray.200","whiteAlpha.300")(e)}};const r=Xt(`${t}.200`,.12)(n),i=Xt(`${t}.200`,.24)(n);return{color:ie(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:ie(`${t}.50`,r)(e)},_active:{bg:ie(`${t}.100`,i)(e)}}},aM=e=>{const{colorScheme:t}=e,n=ie("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...jn(Gj,e)}},sM={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},lM=e=>{const{colorScheme:t}=e;if(t==="gray"){const l=ie("gray.100","whiteAlpha.200")(e);return{bg:l,color:ie("gray.800","whiteAlpha.900")(e),_hover:{bg:ie("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:ie("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:i=`${t}.600`,activeBg:o=`${t}.700`}=sM[t]??{},a=ie(n,`${t}.200`)(e);return{bg:a,color:ie(r,"gray.800")(e),_hover:{bg:ie(i,`${t}.300`)(e),_disabled:{bg:a}},_active:{bg:ie(o,`${t}.400`)(e)}}},cM=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:ie(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:ie(`${t}.700`,`${t}.500`)(e)}}},uM={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},dM={ghost:Gj,outline:aM,solid:lM,link:cM,unstyled:uM},fM={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},pM={baseStyle:oM,variants:dM,sizes:fM,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:ga,defineMultiStyleConfig:mM}=ge(Bj.keys),_p=te("card-bg"),Ci=te("card-padding"),Kj=te("card-shadow"),_f=te("card-radius"),Xj=te("card-border-width","0"),Yj=te("card-border-color"),hM=ga({container:{[_p.variable]:"colors.chakra-body-bg",backgroundColor:_p.reference,boxShadow:Kj.reference,borderRadius:_f.reference,color:"chakra-body-text",borderWidth:Xj.reference,borderColor:Yj.reference},body:{padding:Ci.reference,flex:"1 1 0%"},header:{padding:Ci.reference},footer:{padding:Ci.reference}}),gM={sm:ga({container:{[_f.variable]:"radii.base",[Ci.variable]:"space.3"}}),md:ga({container:{[_f.variable]:"radii.md",[Ci.variable]:"space.5"}}),lg:ga({container:{[_f.variable]:"radii.xl",[Ci.variable]:"space.7"}})},vM={elevated:ga({container:{[Kj.variable]:"shadows.base",_dark:{[_p.variable]:"colors.gray.700"}}}),outline:ga({container:{[Xj.variable]:"1px",[Yj.variable]:"colors.chakra-border-color"}}),filled:ga({container:{[_p.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Ci.variable]:0},header:{[Ci.variable]:0},footer:{[Ci.variable]:0}}},yM=mM({baseStyle:hM,variants:vM,sizes:gM,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:Tf,defineMultiStyleConfig:bM}=ge(Ij.keys),Rc=te("checkbox-size"),xM=e=>{const{colorScheme:t}=e;return{w:Rc.reference,h:Rc.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:ie(`${t}.500`,`${t}.200`)(e),borderColor:ie(`${t}.500`,`${t}.200`)(e),color:ie("white","gray.900")(e),_hover:{bg:ie(`${t}.600`,`${t}.300`)(e),borderColor:ie(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:ie("gray.200","transparent")(e),bg:ie("gray.200","whiteAlpha.300")(e),color:ie("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:ie(`${t}.500`,`${t}.200`)(e),borderColor:ie(`${t}.500`,`${t}.200`)(e),color:ie("white","gray.900")(e)},_disabled:{bg:ie("gray.100","whiteAlpha.100")(e),borderColor:ie("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:ie("red.500","red.300")(e)}}},SM={_disabled:{cursor:"not-allowed"}},wM={userSelect:"none",_disabled:{opacity:.4}},kM={transitionProperty:"transform",transitionDuration:"normal"},CM=Tf(e=>({icon:kM,container:SM,control:jn(xM,e),label:wM})),jM={sm:Tf({control:{[Rc.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Tf({control:{[Rc.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Tf({control:{[Rc.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},to=bM({baseStyle:CM,sizes:jM,defaultProps:{size:"md",colorScheme:"blue"}}),Mc=Et("close-button-size"),Xl=Et("close-button-bg"),PM={w:[Mc.reference],h:[Mc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Xl.variable]:"colors.blackAlpha.100",_dark:{[Xl.variable]:"colors.whiteAlpha.100"}},_active:{[Xl.variable]:"colors.blackAlpha.200",_dark:{[Xl.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Xl.reference},_M={lg:{[Mc.variable]:"sizes.10",fontSize:"md"},md:{[Mc.variable]:"sizes.8",fontSize:"xs"},sm:{[Mc.variable]:"sizes.6",fontSize:"2xs"}},TM={baseStyle:PM,sizes:_M,defaultProps:{size:"md"}},{variants:EM,defaultProps:AM}=Ic,$M={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Rt.bg.reference,color:Rt.color.reference,boxShadow:Rt.shadow.reference},zM={baseStyle:$M,variants:EM,defaultProps:AM},IM={w:"100%",mx:"auto",maxW:"prose",px:"4"},RM={baseStyle:IM},MM={opacity:.6,borderColor:"inherit"},LM={borderStyle:"solid"},NM={borderStyle:"dashed"},DM={solid:LM,dashed:NM},OM={baseStyle:MM,variants:DM,defaultProps:{variant:"solid"}},{definePartsStyle:sv,defineMultiStyleConfig:FM}=ge(NI.keys),Jh=te("drawer-bg"),e0=te("drawer-box-shadow");function Za(e){return sv(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const BM={bg:"blackAlpha.600",zIndex:"modal"},WM={display:"flex",zIndex:"modal",justifyContent:"center"},VM=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Jh.variable]:"colors.white",[e0.variable]:"shadows.lg",_dark:{[Jh.variable]:"colors.gray.700",[e0.variable]:"shadows.dark-lg"},bg:Jh.reference,boxShadow:e0.reference}},UM={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},HM={position:"absolute",top:"2",insetEnd:"3"},qM={px:"6",py:"2",flex:"1",overflow:"auto"},GM={px:"6",py:"4"},KM=sv(e=>({overlay:BM,dialogContainer:WM,dialog:jn(VM,e),header:UM,closeButton:HM,body:qM,footer:GM})),XM={xs:Za("xs"),sm:Za("md"),md:Za("lg"),lg:Za("2xl"),xl:Za("4xl"),full:Za("full")},YM=FM({baseStyle:KM,sizes:XM,defaultProps:{size:"xs"}}),{definePartsStyle:QM,defineMultiStyleConfig:ZM}=ge(DI.keys),JM={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},eL={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},tL={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},nL=QM({preview:JM,input:eL,textarea:tL}),rL=ZM({baseStyle:nL}),{definePartsStyle:iL,defineMultiStyleConfig:oL}=ge(Rj.keys),Hs=te("form-control-color"),aL={marginStart:"1",[Hs.variable]:"colors.red.500",_dark:{[Hs.variable]:"colors.red.300"},color:Hs.reference},sL={mt:"2",[Hs.variable]:"colors.gray.600",_dark:{[Hs.variable]:"colors.whiteAlpha.600"},color:Hs.reference,lineHeight:"normal",fontSize:"sm"},lL=iL({container:{width:"100%",position:"relative"},requiredIndicator:aL,helperText:sL}),cL=oL({baseStyle:lL}),{definePartsStyle:uL,defineMultiStyleConfig:dL}=ge(OI.keys),qs=te("form-error-color"),fL={[qs.variable]:"colors.red.500",_dark:{[qs.variable]:"colors.red.300"},color:qs.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},pL={marginEnd:"0.5em",[qs.variable]:"colors.red.500",_dark:{[qs.variable]:"colors.red.300"},color:qs.reference},mL=uL({text:fL,icon:pL}),hL=dL({baseStyle:mL}),gL={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},vL={baseStyle:gL},yL={fontFamily:"heading",fontWeight:"bold"},bL={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},xL={baseStyle:yL,sizes:bL,defaultProps:{size:"xl"}},{definePartsStyle:xi,defineMultiStyleConfig:SL}=ge(w1.keys),xs=te("input-height"),Ss=te("input-font-size"),ws=te("input-padding"),ks=te("input-border-radius"),wL=xi({addon:{height:xs.reference,fontSize:Ss.reference,px:ws.reference,borderRadius:ks.reference},field:{width:"100%",height:xs.reference,fontSize:Ss.reference,px:ws.reference,borderRadius:ks.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Gi={lg:{[Ss.variable]:"fontSizes.lg",[ws.variable]:"space.4",[ks.variable]:"radii.md",[xs.variable]:"sizes.12"},md:{[Ss.variable]:"fontSizes.md",[ws.variable]:"space.4",[ks.variable]:"radii.md",[xs.variable]:"sizes.10"},sm:{[Ss.variable]:"fontSizes.sm",[ws.variable]:"space.3",[ks.variable]:"radii.sm",[xs.variable]:"sizes.8"},xs:{[Ss.variable]:"fontSizes.xs",[ws.variable]:"space.2",[ks.variable]:"radii.sm",[xs.variable]:"sizes.6"}},kL={lg:xi({field:Gi.lg,group:Gi.lg}),md:xi({field:Gi.md,group:Gi.md}),sm:xi({field:Gi.sm,group:Gi.sm}),xs:xi({field:Gi.xs,group:Gi.xs})};function P1(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||ie("blue.500","blue.300")(e),errorBorderColor:n||ie("red.500","red.300")(e)}}const CL=xi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=P1(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:ie("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ct(t,r),boxShadow:`0 0 0 1px ${ct(t,r)}`},_focusVisible:{zIndex:1,borderColor:ct(t,n),boxShadow:`0 0 0 1px ${ct(t,n)}`}},addon:{border:"1px solid",borderColor:ie("inherit","whiteAlpha.50")(e),bg:ie("gray.100","whiteAlpha.300")(e)}}}),jL=xi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=P1(e);return{field:{border:"2px solid",borderColor:"transparent",bg:ie("gray.100","whiteAlpha.50")(e),_hover:{bg:ie("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ct(t,r)},_focusVisible:{bg:"transparent",borderColor:ct(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:ie("gray.100","whiteAlpha.50")(e)}}}),PL=xi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=P1(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ct(t,r),boxShadow:`0px 1px 0px 0px ${ct(t,r)}`},_focusVisible:{borderColor:ct(t,n),boxShadow:`0px 1px 0px 0px ${ct(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),_L=xi({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),TL={outline:CL,filled:jL,flushed:PL,unstyled:_L},He=SL({baseStyle:wL,sizes:kL,variants:TL,defaultProps:{size:"md",variant:"outline"}}),t0=te("kbd-bg"),EL={[t0.variable]:"colors.gray.100",_dark:{[t0.variable]:"colors.whiteAlpha.100"},bg:t0.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},AL={baseStyle:EL},$L={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},zL={baseStyle:$L},{defineMultiStyleConfig:IL,definePartsStyle:RL}=ge(FI.keys),ML={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},LL=RL({icon:ML}),NL=IL({baseStyle:LL}),{defineMultiStyleConfig:DL,definePartsStyle:OL}=ge(Mj.keys),Hr=te("menu-bg"),n0=te("menu-shadow"),FL={[Hr.variable]:"#fff",[n0.variable]:"shadows.sm",_dark:{[Hr.variable]:"colors.gray.700",[n0.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Hr.reference,boxShadow:n0.reference},BL={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Hr.variable]:"colors.gray.100",_dark:{[Hr.variable]:"colors.whiteAlpha.100"}},_active:{[Hr.variable]:"colors.gray.200",_dark:{[Hr.variable]:"colors.whiteAlpha.200"}},_expanded:{[Hr.variable]:"colors.gray.100",_dark:{[Hr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Hr.reference},WL={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},VL={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},UL={opacity:.6},HL={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},qL={transitionProperty:"common",transitionDuration:"normal"},GL=OL({button:qL,list:FL,item:BL,groupTitle:WL,icon:VL,command:UL,divider:HL}),KL=DL({baseStyle:GL}),{defineMultiStyleConfig:XL,definePartsStyle:lv}=ge(Lj.keys),r0=te("modal-bg"),i0=te("modal-shadow"),YL={bg:"blackAlpha.600",zIndex:"modal"},QL=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},ZL=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[r0.variable]:"colors.white",[i0.variable]:"shadows.lg",_dark:{[r0.variable]:"colors.gray.700",[i0.variable]:"shadows.dark-lg"},bg:r0.reference,boxShadow:i0.reference}},JL={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},eN={position:"absolute",top:"2",insetEnd:"3"},tN=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},nN={px:"6",py:"4"},rN=lv(e=>({overlay:YL,dialogContainer:jn(QL,e),dialog:jn(ZL,e),header:JL,closeButton:eN,body:jn(tN,e),footer:nN}));function Pr(e){return lv(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const iN={xs:Pr("xs"),sm:Pr("sm"),md:Pr("md"),lg:Pr("lg"),xl:Pr("xl"),"2xl":Pr("2xl"),"3xl":Pr("3xl"),"4xl":Pr("4xl"),"5xl":Pr("5xl"),"6xl":Pr("6xl"),full:Pr("full")},oN=XL({baseStyle:rN,sizes:iN,defaultProps:{size:"md"}}),Qj={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:aN,definePartsStyle:Zj}=ge(BI.keys),_1=Et("number-input-stepper-width"),Jj=Et("number-input-input-padding"),sN=hi(_1).add("0.5rem").toString(),o0=Et("number-input-bg"),a0=Et("number-input-color"),s0=Et("number-input-border-color"),lN={[_1.variable]:"sizes.6",[Jj.variable]:sN},cN=e=>{var t;return((t=jn(He.baseStyle,e))==null?void 0:t.field)??{}},uN={width:_1.reference},dN={borderStart:"1px solid",borderStartColor:s0.reference,color:a0.reference,bg:o0.reference,[a0.variable]:"colors.chakra-body-text",[s0.variable]:"colors.chakra-border-color",_dark:{[a0.variable]:"colors.whiteAlpha.800",[s0.variable]:"colors.whiteAlpha.300"},_active:{[o0.variable]:"colors.gray.200",_dark:{[o0.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},fN=Zj(e=>({root:lN,field:jn(cN,e)??{},stepperGroup:uN,stepper:dN}));function Dd(e){var o,a;const t=(o=He.sizes)==null?void 0:o[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=((a=t.field)==null?void 0:a.fontSize)??"md",i=Qj.fontSizes[r];return Zj({field:{...t.field,paddingInlineEnd:Jj.reference,verticalAlign:"top"},stepper:{fontSize:hi(i).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const pN={xs:Dd("xs"),sm:Dd("sm"),md:Dd("md"),lg:Dd("lg")},mN=aN({baseStyle:fN,sizes:pN,variants:He.variants,defaultProps:He.defaultProps});var Nk;const hN={...(Nk=He.baseStyle)==null?void 0:Nk.field,textAlign:"center"},gN={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}};var Dk;const vN={outline:e=>{var t,n;return((n=jn((t=He.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=jn((t=He.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=jn((t=He.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((Dk=He.variants)==null?void 0:Dk.unstyled.field)??{}},yN={baseStyle:hN,sizes:gN,variants:vN,defaultProps:He.defaultProps},{defineMultiStyleConfig:bN,definePartsStyle:xN}=ge(WI.keys),Od=Et("popper-bg"),SN=Et("popper-arrow-bg"),IS=Et("popper-arrow-shadow-color"),wN={zIndex:"popover"},kN={[Od.variable]:"colors.white",bg:Od.reference,[SN.variable]:Od.reference,[IS.variable]:"colors.gray.200",_dark:{[Od.variable]:"colors.gray.700",[IS.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},CN={px:3,py:2,borderBottomWidth:"1px"},jN={px:3,py:2},PN={px:3,py:2,borderTopWidth:"1px"},_N={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},TN=xN({popper:wN,content:kN,header:CN,body:jN,footer:PN,closeButton:_N}),EN=bN({baseStyle:TN}),{defineMultiStyleConfig:AN,definePartsStyle:dc}=ge(Nj.keys),$N=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,o=ie(TS(),TS("1rem","rgba(0,0,0,0.1)"))(e),a=ie(`${t}.500`,`${t}.200`)(e),l=`linear-gradient( + to right, + transparent 0%, + ${ct(n,a)} 50%, + transparent 100% + )`;return{...!r&&i&&o,...r?{bgImage:l}:{bgColor:a}}},zN={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},IN=e=>({bg:ie("gray.100","whiteAlpha.300")(e)}),RN=e=>({transitionProperty:"common",transitionDuration:"slow",...$N(e)}),MN=dc(e=>({label:zN,filledTrack:RN(e),track:IN(e)})),LN={xs:dc({track:{h:"1"}}),sm:dc({track:{h:"2"}}),md:dc({track:{h:"3"}}),lg:dc({track:{h:"4"}})},NN=AN({sizes:LN,baseStyle:MN,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:DN,definePartsStyle:Ef}=ge(Dj.keys),ON=e=>{var n;const t=(n=jn(to.baseStyle,e))==null?void 0:n.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},FN=Ef(e=>{var t,n;return{label:(t=to.baseStyle)==null?void 0:t.call(to,e).label,container:(n=to.baseStyle)==null?void 0:n.call(to,e).container,control:ON(e)}}),BN={md:Ef({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Ef({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Ef({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},WN=DN({baseStyle:FN,sizes:BN,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:VN,definePartsStyle:UN}=ge(VI.keys),Fd=te("select-bg");var Ok;const HN={...(Ok=He.baseStyle)==null?void 0:Ok.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Fd.reference,[Fd.variable]:"colors.white",_dark:{[Fd.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Fd.reference}},qN={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},GN=UN({field:HN,icon:qN}),Bd={paddingInlineEnd:"8"};var Fk,Bk,Wk,Vk,Uk,Hk,qk,Gk;const KN={lg:{...(Fk=He.sizes)==null?void 0:Fk.lg,field:{...(Bk=He.sizes)==null?void 0:Bk.lg.field,...Bd}},md:{...(Wk=He.sizes)==null?void 0:Wk.md,field:{...(Vk=He.sizes)==null?void 0:Vk.md.field,...Bd}},sm:{...(Uk=He.sizes)==null?void 0:Uk.sm,field:{...(Hk=He.sizes)==null?void 0:Hk.sm.field,...Bd}},xs:{...(qk=He.sizes)==null?void 0:qk.xs,field:{...(Gk=He.sizes)==null?void 0:Gk.xs.field,...Bd},icon:{insetEnd:"1"}}},XN=VN({baseStyle:GN,sizes:KN,variants:He.variants,defaultProps:He.defaultProps}),l0=te("skeleton-start-color"),c0=te("skeleton-end-color"),YN={[l0.variable]:"colors.gray.100",[c0.variable]:"colors.gray.400",_dark:{[l0.variable]:"colors.gray.800",[c0.variable]:"colors.gray.600"},background:l0.reference,borderColor:c0.reference,opacity:.7,borderRadius:"sm"},QN={baseStyle:YN},u0=te("skip-link-bg"),ZN={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[u0.variable]:"colors.white",_dark:{[u0.variable]:"colors.gray.700"},bg:u0.reference}},JN={baseStyle:ZN},{defineMultiStyleConfig:eD,definePartsStyle:hm}=ge(Oj.keys),$a=te("slider-thumb-size"),mu=te("slider-track-size"),io=te("slider-bg"),tD=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...C1({orientation:t,vertical:{h:"100%",px:mi($a.reference).divide(2).toString()},horizontal:{w:"100%",py:mi($a.reference).divide(2).toString()}})}},nD=e=>({...C1({orientation:e.orientation,horizontal:{h:mu.reference},vertical:{w:mu.reference}}),overflow:"hidden",borderRadius:"sm",[io.variable]:"colors.gray.200",_dark:{[io.variable]:"colors.whiteAlpha.200"},_disabled:{[io.variable]:"colors.gray.300",_dark:{[io.variable]:"colors.whiteAlpha.300"}},bg:io.reference}),rD=e=>{const{orientation:t}=e;return{...C1({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:$a.reference,h:$a.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_active:{"--slider-thumb-scale":"1.15"},_disabled:{bg:"gray.300"}}},iD=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[io.variable]:`colors.${t}.500`,_dark:{[io.variable]:`colors.${t}.200`},bg:io.reference}},oD=hm(e=>({container:tD(e),track:nD(e),thumb:rD(e),filledTrack:iD(e)})),aD=hm({container:{[$a.variable]:"sizes.4",[mu.variable]:"sizes.1"}}),sD=hm({container:{[$a.variable]:"sizes.3.5",[mu.variable]:"sizes.1"}}),lD=hm({container:{[$a.variable]:"sizes.2.5",[mu.variable]:"sizes.0.5"}}),cD={lg:aD,md:sD,sm:lD},uD=eD({baseStyle:oD,sizes:cD,defaultProps:{size:"md",colorScheme:"blue"}}),ia=Et("spinner-size"),dD={width:[ia.reference],height:[ia.reference]},fD={xs:{[ia.variable]:"sizes.3"},sm:{[ia.variable]:"sizes.4"},md:{[ia.variable]:"sizes.6"},lg:{[ia.variable]:"sizes.8"},xl:{[ia.variable]:"sizes.12"}},pD={baseStyle:dD,sizes:fD,defaultProps:{size:"md"}},{defineMultiStyleConfig:mD,definePartsStyle:e6}=ge(UI.keys),hD={fontWeight:"medium"},gD={opacity:.8,marginBottom:"2"},vD={verticalAlign:"baseline",fontWeight:"semibold"},yD={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},bD=e6({container:{},label:hD,helpText:gD,number:vD,icon:yD}),xD={md:e6({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},SD=mD({baseStyle:bD,sizes:xD,defaultProps:{size:"md"}}),{defineMultiStyleConfig:wD,definePartsStyle:fc}=ge(["stepper","step","title","description","indicator","separator","icon","number"]),gi=te("stepper-indicator-size"),Cs=te("stepper-icon-size"),js=te("stepper-title-font-size"),pc=te("stepper-description-font-size"),Yl=te("stepper-accent-color"),kD=fc(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[Yl.variable]:`colors.${e}.500`,_dark:{[Yl.variable]:`colors.${e}.200`}},title:{fontSize:js.reference,fontWeight:"medium"},description:{fontSize:pc.reference,color:"chakra-subtle-text"},number:{fontSize:js.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Cs.reference,height:Cs.reference},indicator:{flexShrink:0,borderRadius:"full",width:gi.reference,height:gi.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Yl.reference},"&[data-status=complete]":{bg:Yl.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Yl.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${gi.reference} - 8px)`,top:`calc(${gi.reference} + 4px)`,insetStart:`calc(${gi.reference} / 2 - 1px)`}}})),CD=wD({baseStyle:kD,sizes:{xs:fc({stepper:{[gi.variable]:"sizes.4",[Cs.variable]:"sizes.3",[js.variable]:"fontSizes.xs",[pc.variable]:"fontSizes.xs"}}),sm:fc({stepper:{[gi.variable]:"sizes.6",[Cs.variable]:"sizes.4",[js.variable]:"fontSizes.sm",[pc.variable]:"fontSizes.xs"}}),md:fc({stepper:{[gi.variable]:"sizes.8",[Cs.variable]:"sizes.5",[js.variable]:"fontSizes.md",[pc.variable]:"fontSizes.sm"}}),lg:fc({stepper:{[gi.variable]:"sizes.10",[Cs.variable]:"sizes.6",[js.variable]:"fontSizes.lg",[pc.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:jD,definePartsStyle:Af}=ge(Fj.keys),Lc=Et("switch-track-width"),va=Et("switch-track-height"),d0=Et("switch-track-diff"),PD=hi.subtract(Lc,va),cv=Et("switch-thumb-x"),Ql=Et("switch-bg"),_D=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Lc.reference],height:[va.reference],transitionProperty:"common",transitionDuration:"fast",[Ql.variable]:"colors.gray.300",_dark:{[Ql.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Ql.variable]:`colors.${t}.500`,_dark:{[Ql.variable]:`colors.${t}.200`}},bg:Ql.reference}},TD={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[va.reference],height:[va.reference],_checked:{transform:`translateX(${cv.reference})`}},ED=Af(e=>({container:{[d0.variable]:PD,[cv.variable]:d0.reference,_rtl:{[cv.variable]:hi(d0).negate().toString()}},track:_D(e),thumb:TD})),AD={sm:Af({container:{[Lc.variable]:"1.375rem",[va.variable]:"sizes.3"}}),md:Af({container:{[Lc.variable]:"1.875rem",[va.variable]:"sizes.4"}}),lg:Af({container:{[Lc.variable]:"2.875rem",[va.variable]:"sizes.6"}})},$D=jD({baseStyle:ED,sizes:AD,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:zD,definePartsStyle:Gs}=ge(HI.keys),ID=Gs({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Tp={"&[data-is-numeric=true]":{textAlign:"end"}},RD=Gs(e=>{const{colorScheme:t}=e;return{th:{color:ie("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ie(`${t}.100`,`${t}.700`)(e),...Tp},td:{borderBottom:"1px",borderColor:ie(`${t}.100`,`${t}.700`)(e),...Tp},caption:{color:ie("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),MD=Gs(e=>{const{colorScheme:t}=e;return{th:{color:ie("gray.600","gray.400")(e),borderBottom:"1px",borderColor:ie(`${t}.100`,`${t}.700`)(e),...Tp},td:{borderBottom:"1px",borderColor:ie(`${t}.100`,`${t}.700`)(e),...Tp},caption:{color:ie("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:ie(`${t}.100`,`${t}.700`)(e)},td:{background:ie(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),LD={simple:RD,striped:MD,unstyled:{}},ND={sm:Gs({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Gs({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Gs({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},DD=zD({baseStyle:ID,variants:LD,sizes:ND,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Rn=te("tabs-color"),zr=te("tabs-bg"),Wd=te("tabs-border-color"),{defineMultiStyleConfig:OD,definePartsStyle:ni}=ge(qI.keys),FD=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},BD=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},WD=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},VD={p:4},UD=ni(e=>({root:FD(e),tab:BD(e),tablist:WD(e),tabpanel:VD})),HD={sm:ni({tab:{py:1,px:4,fontSize:"sm"}}),md:ni({tab:{fontSize:"md",py:2,px:4}}),lg:ni({tab:{fontSize:"lg",py:3,px:4}})},qD=ni(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",i=r?"borderStart":"borderBottom",o=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[o]:"-2px",_selected:{[Rn.variable]:`colors.${t}.600`,_dark:{[Rn.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[zr.variable]:"colors.gray.200",_dark:{[zr.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Rn.reference,bg:zr.reference}}}),GD=ni(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Wd.variable]:"transparent",_selected:{[Rn.variable]:`colors.${t}.600`,[Wd.variable]:"colors.white",_dark:{[Rn.variable]:`colors.${t}.300`,[Wd.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Wd.reference},color:Rn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),KD=ni(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[zr.variable]:"colors.gray.50",_dark:{[zr.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[zr.variable]:"colors.white",[Rn.variable]:`colors.${t}.600`,_dark:{[zr.variable]:"colors.gray.800",[Rn.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Rn.reference,bg:zr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),XD=ni(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:ct(n,`${t}.700`),bg:ct(n,`${t}.100`)}}}}),YD=ni(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Rn.variable]:"colors.gray.600",_dark:{[Rn.variable]:"inherit"},_selected:{[Rn.variable]:"colors.white",[zr.variable]:`colors.${t}.600`,_dark:{[Rn.variable]:"colors.gray.800",[zr.variable]:`colors.${t}.300`}},color:Rn.reference,bg:zr.reference}}}),QD=ni({}),ZD={line:qD,enclosed:GD,"enclosed-colored":KD,"soft-rounded":XD,"solid-rounded":YD,unstyled:QD},JD=OD({baseStyle:UD,sizes:HD,variants:ZD,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:eO,definePartsStyle:ya}=ge(GI.keys),RS=te("tag-bg"),MS=te("tag-color"),f0=te("tag-shadow"),$f=te("tag-min-height"),zf=te("tag-min-width"),If=te("tag-font-size"),Rf=te("tag-padding-inline"),tO={fontWeight:"medium",lineHeight:1.2,outline:0,[MS.variable]:Rt.color.reference,[RS.variable]:Rt.bg.reference,[f0.variable]:Rt.shadow.reference,color:MS.reference,bg:RS.reference,boxShadow:f0.reference,borderRadius:"md",minH:$f.reference,minW:zf.reference,fontSize:If.reference,px:Rf.reference,_focusVisible:{[f0.variable]:"shadows.outline"}},nO={lineHeight:1.2,overflow:"visible"},rO={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},iO=ya({container:tO,label:nO,closeButton:rO}),oO={sm:ya({container:{[$f.variable]:"sizes.5",[zf.variable]:"sizes.5",[If.variable]:"fontSizes.xs",[Rf.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:ya({container:{[$f.variable]:"sizes.6",[zf.variable]:"sizes.6",[If.variable]:"fontSizes.sm",[Rf.variable]:"space.2"}}),lg:ya({container:{[$f.variable]:"sizes.8",[zf.variable]:"sizes.8",[If.variable]:"fontSizes.md",[Rf.variable]:"space.3"}})},aO={subtle:ya(e=>{var t;return{container:(t=Ic.variants)==null?void 0:t.subtle(e)}}),solid:ya(e=>{var t;return{container:(t=Ic.variants)==null?void 0:t.solid(e)}}),outline:ya(e=>{var t;return{container:(t=Ic.variants)==null?void 0:t.outline(e)}})},sO=eO({variants:aO,baseStyle:iO,sizes:oO,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var Kk;const lO={...(Kk=He.baseStyle)==null?void 0:Kk.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var Xk;const cO={outline:e=>{var t;return((t=He.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=He.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=He.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((Xk=He.variants)==null?void 0:Xk.unstyled.field)??{}};var Yk,Qk,Zk,Jk;const uO={xs:((Yk=He.sizes)==null?void 0:Yk.xs.field)??{},sm:((Qk=He.sizes)==null?void 0:Qk.sm.field)??{},md:((Zk=He.sizes)==null?void 0:Zk.md.field)??{},lg:((Jk=He.sizes)==null?void 0:Jk.lg.field)??{}},dO={baseStyle:lO,sizes:uO,variants:cO,defaultProps:{size:"md",variant:"outline"}},Vd=Et("tooltip-bg"),p0=Et("tooltip-fg"),fO=Et("popper-arrow-bg"),pO={bg:Vd.reference,color:p0.reference,[Vd.variable]:"colors.gray.700",[p0.variable]:"colors.whiteAlpha.900",_dark:{[Vd.variable]:"colors.gray.300",[p0.variable]:"colors.gray.900"},[fO.variable]:Vd.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},mO={baseStyle:pO},hO={Accordion:tR,Alert:NR,Avatar:KR,Badge:Ic,Breadcrumb:iM,Button:pM,Checkbox:to,CloseButton:TM,Code:zM,Container:RM,Divider:OM,Drawer:YM,Editable:rL,Form:cL,FormError:hL,FormLabel:vL,Heading:xL,Input:He,Kbd:AL,Link:zL,List:NL,Menu:KL,Modal:oN,NumberInput:mN,PinInput:yN,Popover:EN,Progress:NN,Radio:WN,Select:XN,Skeleton:QN,SkipLink:JN,Slider:uD,Spinner:pD,Stat:SD,Switch:$D,Table:DD,Tabs:JD,Tag:sO,Textarea:dO,Tooltip:mO,Card:yM,Stepper:CD},gO={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},vO={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},yO={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},bO={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},xO={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},SO={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},wO={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},kO={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},CO={property:SO,easing:wO,duration:kO},jO={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},PO={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},_O={breakpoints:vO,zIndices:jO,radii:bO,blur:PO,colors:yO,...Qj,sizes:Hj,shadows:xO,space:Uj,borders:gO,transition:CO},TO={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},EO={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, *::after":{borderColor:"chakra-border-color"}}},AO=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function $O(e){return Wt(e)?AO.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}const zO="ltr",IO={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},ca={semanticTokens:TO,direction:zO,..._O,components:hO,styles:EO,config:IO};function RO(e){if(e.sheet)return e.sheet;for(var t=0;t0?on(Pl,--Bn):0,ll--,Lt===10&&(ll=1,vm--),Lt}function Yn(){return Lt=Bn2||gu(Lt)>3?"":" "}function GO(e,t){for(;--t&&Yn()&&!(Lt<48||Lt>102||Lt>57&&Lt<65||Lt>70&&Lt<97););return Gu(e,Mf()+(t<6&&ri()==32&&Yn()==32))}function dv(e){for(;Yn();)switch(Lt){case e:return Bn;case 34:case 39:e!==34&&e!==39&&dv(Lt);break;case 40:e===41&&dv(e);break;case 92:Yn();break}return Bn}function KO(e,t){for(;Yn()&&e+Lt!==57;)if(e+Lt===84&&ri()===47)break;return"/*"+Gu(t,Bn-1)+"*"+gm(e===47?e:Yn())}function XO(e){for(;!gu(ri());)Yn();return Gu(e,Bn)}function YO(e){return a6(Nf("",null,null,null,[""],e=o6(e),0,[0],e))}function Nf(e,t,n,r,i,o,a,l,c){for(var u=0,d=0,f=a,p=0,h=0,v=0,b=1,x=1,y=1,g=0,S="",w=i,k=o,C=r,P=S;x;)switch(v=g,g=Yn()){case 40:if(v!=108&&on(P,f-1)==58){uv(P+=Ue(Lf(g),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:P+=Lf(g);break;case 9:case 10:case 13:case 32:P+=qO(v);break;case 92:P+=GO(Mf()-1,7);continue;case 47:switch(ri()){case 42:case 47:Ud(QO(KO(Yn(),Mf()),t,n),c);break;default:P+="/"}break;case 123*b:l[u++]=qr(P)*y;case 125*b:case 59:case 0:switch(g){case 0:case 125:x=0;case 59+d:y==-1&&(P=Ue(P,/\f/g,"")),h>0&&qr(P)-f&&Ud(h>32?NS(P+";",r,n,f-1):NS(Ue(P," ","")+";",r,n,f-2),c);break;case 59:P+=";";default:if(Ud(C=LS(P,t,n,u,d,i,l,S,w=[],k=[],f),o),g===123)if(d===0)Nf(P,t,C,C,w,o,f,l,k);else switch(p===99&&on(P,3)===110?100:p){case 100:case 108:case 109:case 115:Nf(e,C,C,r&&Ud(LS(e,C,C,0,0,i,l,S,i,w=[],f),k),i,k,f,l,r?w:k);break;default:Nf(P,C,C,C,[""],k,0,l,k)}}u=d=h=0,b=y=1,S=P="",f=a;break;case 58:f=1+qr(P),h=v;default:if(b<1){if(g==123)--b;else if(g==125&&b++==0&&HO()==125)continue}switch(P+=gm(g),g*b){case 38:y=d>0?1:(P+="\f",-1);break;case 44:l[u++]=(qr(P)-1)*y,y=1;break;case 64:ri()===45&&(P+=Lf(Yn())),p=ri(),d=f=qr(S=P+=XO(Mf())),g++;break;case 45:v===45&&qr(P)==2&&(b=0)}}return o}function LS(e,t,n,r,i,o,a,l,c,u,d){for(var f=i-1,p=i===0?o:[""],h=A1(p),v=0,b=0,x=0;v0?p[y]+" "+g:Ue(g,/&\f/g,p[y])))&&(c[x++]=S);return ym(e,t,n,i===0?T1:l,c,u,d)}function QO(e,t,n){return ym(e,t,n,t6,gm(UO()),hu(e,2,-2),0)}function NS(e,t,n,r){return ym(e,t,n,E1,hu(e,0,r),hu(e,r+1,-1),r)}function Ks(e,t){for(var n="",r=A1(e),i=0;i6)switch(on(e,t+1)){case 109:if(on(e,t+4)!==45)break;case 102:return Ue(e,/(.+:)(.+)-([^]+)/,"$1"+Ve+"$2-$3$1"+Ep+(on(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~uv(e,"stretch")?l6(Ue(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(on(e,t+1)!==115)break;case 6444:switch(on(e,qr(e)-3-(~uv(e,"!important")&&10))){case 107:return Ue(e,":",":"+Ve)+e;case 101:return Ue(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ve+(on(e,14)===45?"inline-":"")+"box$3$1"+Ve+"$2$3$1"+hn+"$2box$3")+e}break;case 5936:switch(on(e,t+11)){case 114:return Ve+e+hn+Ue(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ve+e+hn+Ue(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ve+e+hn+Ue(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ve+e+hn+e+e}return e}var aF=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case E1:t.return=l6(t.value,t.length);break;case n6:return Ks([Zl(t,{value:Ue(t.value,"@","@"+Ve)})],i);case T1:if(t.length)return VO(t.props,function(o){switch(WO(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ks([Zl(t,{props:[Ue(o,/:(read-\w+)/,":"+Ep+"$1")]})],i);case"::placeholder":return Ks([Zl(t,{props:[Ue(o,/:(plac\w+)/,":"+Ve+"input-$1")]}),Zl(t,{props:[Ue(o,/:(plac\w+)/,":"+Ep+"$1")]}),Zl(t,{props:[Ue(o,/:(plac\w+)/,hn+"input-$1")]})],i)}return""})}},sF=[aF],lF=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var x=b.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var i=t.stylisPlugins||sF,o={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var x=b.getAttribute("data-emotion").split(" "),y=1;y=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var bF={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},xF=/[A-Z]|^ms/g,SF=/_EMO_([^_]+?)_([^]*?)_EMO_/g,m6=function(t){return t.charCodeAt(1)===45},FS=function(t){return t!=null&&typeof t!="boolean"},m0=s6(function(e){return m6(e)?e:e.replace(xF,"-$&").toLowerCase()}),BS=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(SF,function(r,i,o){return Gr={name:i,styles:o,next:Gr},i})}return bF[t]!==1&&!m6(t)&&typeof n=="number"&&n!==0?n+"px":n};function vu(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Gr={name:i.name,styles:i.styles,next:Gr},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Gr={name:a.name,styles:a.styles,next:Gr},a=a.next;var l=o.styles+";";return l}return wF(e,t,n)}case"function":{if(e!==void 0){var c=Gr,u=n(e);return Gr=c,vu(e,t,u)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function wF(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=i,document.documentElement.style.colorScheme=i,o==null||o()},setClassName(i){document.body.classList.add(i?Hd.dark:Hd.light),document.body.classList.remove(i?Hd.light:Hd.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(i){return r.query().matches??i==="dark"?"dark":"light"},addListener(i){const o=r.query(),a=l=>{i(l.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(a):o.addEventListener("change",a),()=>{typeof o.removeListener=="function"?o.removeListener(a):o.removeEventListener("change",a)}},preventTransition(){const i=document.createElement("style");return i.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n!==void 0&&(i.nonce=n),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(i)})})}}};return r}const RF="chakra-ui-color-mode";function MF(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const LF=MF(RF),HS=()=>{},NF=V$()?m.useLayoutEffect:m.useEffect;function qS(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const v6=function(t){const{value:n,children:r,options:{useSystemColorMode:i,initialColorMode:o,disableTransitionOnChange:a}={},colorModeManager:l=LF}=t,c=CF(),u=o==="dark"?"dark":"light",[d,f]=m.useState(()=>qS(l,u)),[p,h]=m.useState(()=>qS(l)),{getSystemTheme:v,setClassName:b,setDataset:x,addListener:y}=m.useMemo(()=>IF({preventTransition:a,nonce:c==null?void 0:c.nonce}),[a,c==null?void 0:c.nonce]),g=o==="system"&&!d?p:d,S=m.useCallback(C=>{const P=C==="system"?v():C;f(P),b(P==="dark"),x(P),l.set(P)},[l,v,b,x]);NF(()=>{o==="system"&&h(v())},[]),m.useEffect(()=>{const C=l.get();if(C){S(C);return}if(o==="system"){S("system");return}S(u)},[l,u,o,S]);const w=m.useCallback(()=>{S(g==="dark"?"light":"dark")},[g,S]);m.useEffect(()=>{if(i)return y(S)},[i,y,S]);const k=m.useMemo(()=>({colorMode:n??g,toggleColorMode:n?HS:w,setColorMode:n?HS:S,forced:n!==void 0}),[g,w,S,n]);return s.jsx(O1.Provider,{value:k,children:r})};v6.displayName="ColorModeProvider";const y6=String.raw,b6=y6` + :root, + :host { + --chakra-vh: 100vh; + } + + @supports (height: -webkit-fill-available) { + :root, + :host { + --chakra-vh: -webkit-fill-available; + } + } + + @supports (height: -moz-fill-available) { + :root, + :host { + --chakra-vh: -moz-fill-available; + } + } + + @supports (height: 100dvh) { + :root, + :host { + --chakra-vh: 100dvh; + } + } +`,DF=()=>s.jsx(Am,{styles:b6}),OF=({scope:e=""})=>s.jsx(Am,{styles:y6` + html { + line-height: 1.5; + -webkit-text-size-adjust: 100%; + font-family: system-ui, sans-serif; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; + -moz-osx-font-smoothing: grayscale; + touch-action: manipulation; + } + + body { + position: relative; + min-height: 100%; + margin: 0; + font-feature-settings: "kern"; + } + + ${e} :where(*, *::before, *::after) { + border-width: 0; + border-style: solid; + box-sizing: border-box; + word-wrap: break-word; + } + + main { + display: block; + } + + ${e} hr { + border-top-width: 1px; + box-sizing: content-box; + height: 0; + overflow: visible; + } + + ${e} :where(pre, code, kbd,samp) { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 1em; + } + + ${e} a { + background-color: transparent; + color: inherit; + text-decoration: inherit; + } + + ${e} abbr[title] { + border-bottom: none; + text-decoration: underline; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; + } + + ${e} :where(b, strong) { + font-weight: bold; + } + + ${e} small { + font-size: 80%; + } + + ${e} :where(sub,sup) { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + } + + ${e} sub { + bottom: -0.25em; + } + + ${e} sup { + top: -0.5em; + } + + ${e} img { + border-style: none; + } + + ${e} :where(button, input, optgroup, select, textarea) { + font-family: inherit; + font-size: 100%; + line-height: 1.15; + margin: 0; + } + + ${e} :where(button, input) { + overflow: visible; + } + + ${e} :where(button, select) { + text-transform: none; + } + + ${e} :where( + button::-moz-focus-inner, + [type="button"]::-moz-focus-inner, + [type="reset"]::-moz-focus-inner, + [type="submit"]::-moz-focus-inner + ) { + border-style: none; + padding: 0; + } + + ${e} fieldset { + padding: 0.35em 0.75em 0.625em; + } + + ${e} legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; + } + + ${e} progress { + vertical-align: baseline; + } + + ${e} textarea { + overflow: auto; + } + + ${e} :where([type="checkbox"], [type="radio"]) { + box-sizing: border-box; + padding: 0; + } + + ${e} input[type="number"]::-webkit-inner-spin-button, + ${e} input[type="number"]::-webkit-outer-spin-button { + -webkit-appearance: none !important; + } + + ${e} input[type="number"] { + -moz-appearance: textfield; + } + + ${e} input[type="search"] { + -webkit-appearance: textfield; + outline-offset: -2px; + } + + ${e} input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none !important; + } + + ${e} ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; + } + + ${e} details { + display: block; + } + + ${e} summary { + display: list-item; + } + + template { + display: none; + } + + [hidden] { + display: none !important; + } + + ${e} :where( + blockquote, + dl, + dd, + h1, + h2, + h3, + h4, + h5, + h6, + hr, + figure, + p, + pre + ) { + margin: 0; + } + + ${e} button { + background: transparent; + padding: 0; + } + + ${e} fieldset { + margin: 0; + padding: 0; + } + + ${e} :where(ol, ul) { + margin: 0; + padding: 0; + } + + ${e} textarea { + resize: vertical; + } + + ${e} :where(button, [role="button"]) { + cursor: pointer; + } + + ${e} button::-moz-focus-inner { + border: 0 !important; + } + + ${e} table { + border-collapse: collapse; + } + + ${e} :where(h1, h2, h3, h4, h5, h6) { + font-size: inherit; + font-weight: inherit; + } + + ${e} :where(button, input, optgroup, select, textarea) { + padding: 0; + line-height: inherit; + color: inherit; + } + + ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { + display: block; + } + + ${e} :where(img, video) { + max-width: 100%; + height: auto; + } + + [data-js-focus-visible] + :focus:not([data-focus-visible-added]):not( + [data-focus-visible-disabled] + ) { + outline: none; + box-shadow: none; + } + + ${e} select::-ms-expand { + display: none; + } + + ${b6} + `});function FF(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=m.useMemo(()=>II(n),[n]);return s.jsxs(_F,{theme:i,children:[s.jsx(BF,{root:t}),r]})}function BF({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return s.jsx(Am,{styles:n=>({[t]:n.__cssVars})})}Te({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function Or(e){return Te({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function WF(){const{colorMode:e}=Xu();return s.jsx(Am,{styles:t=>{const n=hj(t,"styles.global"),r=yn(n,{theme:t,colorMode:e});return r?Ej(r)(t):void 0}})}const[VF,UF]=Te({strict:!1,name:"PortalManagerContext"});function x6(e){const{children:t,zIndex:n}=e;return s.jsx(VF,{value:{zIndex:n},children:t})}x6.displayName="PortalManager";const F1=m.createContext({getDocument(){return document},getWindow(){return window}});F1.displayName="EnvironmentContext";function HF({defer:e}={}){const[,t]=m.useReducer(n=>n+1,0);return ti(()=>{e&&t()},[e]),m.useContext(F1)}function S6(e){const{children:t,environment:n,disabled:r}=e,i=m.useRef(null),o=m.useMemo(()=>n||{getDocument:()=>{var l;return((l=i.current)==null?void 0:l.ownerDocument)??document},getWindow:()=>{var l;return((l=i.current)==null?void 0:l.ownerDocument.defaultView)??window}},[n]),a=!r||!n;return s.jsxs(F1.Provider,{value:o,children:[t,a&&s.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}S6.displayName="EnvironmentProvider";const qF=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:o=!0,theme:a={},environment:l,cssVarsRoot:c,disableEnvironment:u,disableGlobalStyle:d}=e,f=s.jsx(S6,{environment:l,disabled:u,children:t});return s.jsx(FF,{theme:a,cssVarsRoot:c,children:s.jsxs(v6,{colorModeManager:n,options:a.config,children:[o?s.jsx(OF,{scope:i}):s.jsx(DF,{}),!d&&s.jsx(WF,{}),r?s.jsx(x6,{zIndex:r,children:f}):f]})})},B1=m.createContext({});function W1(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const Yu=m.createContext(null),V1=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class GF extends m.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function KF({children:e,isPresent:t}){const n=m.useId(),r=m.useRef(null),i=m.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=m.useContext(V1);return m.useInsertionEffect(()=>{const{width:a,height:l,top:c,left:u}=i.current;if(t||!r.current||!a||!l)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return o&&(d.nonce=o),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` + [data-motion-pop-id="${n}"] { + position: absolute !important; + width: ${a}px !important; + height: ${l}px !important; + top: ${c}px !important; + left: ${u}px !important; + } + `),()=>{document.head.removeChild(d)}},[t]),s.jsx(GF,{isPresent:t,childRef:r,sizeRef:i,children:m.cloneElement(e,{ref:r})})}const XF=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const l=W1(YF),c=m.useId(),u=m.useCallback(f=>{l.set(f,!0);for(const p of l.values())if(!p)return;r&&r()},[l,r]),d=m.useMemo(()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),o?[Math.random(),u]:[n,u]);return m.useMemo(()=>{l.forEach((f,p)=>l.set(p,!1))},[n]),m.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),a==="popLayout"&&(e=s.jsx(KF,{isPresent:n,children:e})),s.jsx(Yu.Provider,{value:d,children:e})};function YF(){return new Map}function U1(e=!0){const t=m.useContext(Yu);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=m.useId();m.useEffect(()=>{e&&i(o)},[e]);const a=m.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}function QF(){return ZF(m.useContext(Yu))}function ZF(e){return e===null?!0:e.isPresent}const qd=e=>e.key||"";function GS(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const H1=typeof window<"u",w6=H1?m.useLayoutEffect:m.useEffect,Ni=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1})=>{const[l,c]=U1(a),u=m.useMemo(()=>GS(e),[e]),d=a&&!l?[]:u.map(qd),f=m.useRef(!0),p=m.useRef(u),h=W1(()=>new Map),[v,b]=m.useState(u),[x,y]=m.useState(u);w6(()=>{f.current=!1,p.current=u;for(let w=0;w{const k=qd(w),C=a&&!l?!1:u===x||d.includes(k),P=()=>{if(h.has(k))h.set(k,!0);else return;let j=!0;h.forEach(R=>{R||(j=!1)}),j&&(S==null||S(),y(p.current),a&&(c==null||c()),r&&r())};return s.jsx(XF,{isPresent:C,initial:!f.current||n?void 0:!1,custom:C?void 0:t,presenceAffectsLayout:i,mode:o,onExitComplete:C?void 0:P,children:w},k)})})},Qn=e=>e;let k6=Qn;function q1(e){let t;return()=>(t===void 0&&(t=e()),t)}const ul=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ji=e=>e*1e3,Pi=e=>e/1e3,JF={useManualTiming:!1};function eB(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,f=!1)=>{const h=f&&r?t:n;return d&&o.add(u),h.has(u)||h.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(a=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,c.process(u))}};return c}const Gd=["read","resolveKeyframes","update","preRender","render","postRender"],tB=40;function C6(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Gd.reduce((y,g)=>(y[g]=eB(o),y),{}),{read:l,resolveKeyframes:c,update:u,preRender:d,render:f,postRender:p}=a,h=()=>{const y=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(y-i.timestamp,tB),1),i.timestamp=y,i.isProcessing=!0,l.process(i),c.process(i),u.process(i),d.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},v=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Gd.reduce((y,g)=>{const S=a[g];return y[g]=(w,k=!1,C=!1)=>(n||v(),S.schedule(w,k,C)),y},{}),cancel:y=>{for(let g=0;gKS[e].some(n=>!!t[n])};function nB(e){for(const t in e)dl[t]={...dl[t],...e[t]}}const rB=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 $p(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rB.has(e)}let P6=e=>!$p(e);function iB(e){e&&(P6=t=>t.startsWith("on")?!$p(t):e(t))}try{iB(require("@emotion/is-prop-valid").default)}catch{}function oB(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(P6(i)||n===!0&&$p(i)||!t&&!$p(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function aB(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const $m=m.createContext({});function yu(e){return typeof e=="string"||Array.isArray(e)}function zm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const G1=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],K1=["initial",...G1];function Im(e){return zm(e.animate)||K1.some(t=>yu(e[t]))}function _6(e){return!!(Im(e)||e.variants)}function sB(e,t){if(Im(e)){const{initial:n,animate:r}=e;return{initial:n===!1||yu(n)?n:void 0,animate:yu(r)?r:void 0}}return e.inherit!==!1?t:{}}function lB(e){const{initial:t,animate:n}=sB(e,m.useContext($m));return m.useMemo(()=>({initial:t,animate:n}),[XS(t),XS(n)])}function XS(e){return Array.isArray(e)?e.join(" "):e}const cB=Symbol.for("motionComponentSymbol");function Ps(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function uB(e,t,n){return m.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ps(n)&&(n.current=r))},[t])}const X1=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),dB="framerAppearId",T6="data-"+X1(dB),{schedule:Y1}=C6(queueMicrotask,!1),E6=m.createContext({});function fB(e,t,n,r,i){var o,a;const{visualElement:l}=m.useContext($m),c=m.useContext(j6),u=m.useContext(Yu),d=m.useContext(V1).reducedMotion,f=m.useRef(null);r=r||c.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const p=f.current,h=m.useContext(E6);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&pB(f.current,n,i,h);const v=m.useRef(!1);m.useInsertionEffect(()=>{p&&v.current&&p.update(n,u)});const b=n[T6],x=m.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return w6(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Y1.render(p.render),x.current&&p.animationState&&p.animationState.animateChanges())}),m.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,b)}),x.current=!1))}),p}function pB(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:A6(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||l&&Ps(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:u})}function A6(e){if(e)return e.options.allowProjection!==!1?e.projection:A6(e.parent)}function mB({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&nB(e);function l(u,d){let f;const p={...m.useContext(V1),...u,layoutId:hB(u)},{isStatic:h}=p,v=lB(u),b=r(u,h);if(!h&&H1){gB();const x=vB(p);f=x.MeasureLayout,v.visualElement=fB(i,b,p,t,x.ProjectionNode)}return s.jsxs($m.Provider,{value:v,children:[f&&v.visualElement?s.jsx(f,{visualElement:v.visualElement,...p}):null,n(i,u,uB(b,v.visualElement,d),b,h,v.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const c=m.forwardRef(l);return c[cB]=i,c}function hB({layoutId:e}){const t=m.useContext(B1).id;return t&&e!==void 0?t+"-"+e:e}function gB(e,t){m.useContext(j6).strict}function vB(e){const{drag:t,layout:n}=dl;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const yB=["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 Q1(e){return typeof e!="string"||e.includes("-")?!1:!!(yB.indexOf(e)>-1||/[A-Z]/u.test(e))}function YS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Z1(e,t,n,r){if(typeof t=="function"){const[i,o]=YS(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]=YS(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const pv=e=>Array.isArray(e),bB=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),xB=e=>pv(e)?e[e.length-1]||0:e,bn=e=>!!(e&&e.getVelocity);function Df(e){const t=bn(e)?e.get():e;return bB(t)?t.toValue():t}function SB({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:wB(r,i,o,e),renderState:t()};return n&&(a.onMount=l=>n({props:r,current:l,...a}),a.onUpdate=l=>n(l)),a}const $6=e=>(t,n)=>{const r=m.useContext($m),i=m.useContext(Yu),o=()=>SB(e,t,r,i);return n?o():W1(o)};function wB(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=Df(o[p]);let{initial:a,animate:l}=e;const c=Im(e),u=_6(e);t&&u&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?l:a;if(f&&typeof f!="boolean"&&!zm(f)){const p=Array.isArray(f)?f:[f];for(let h=0;ht=>typeof t=="string"&&t.startsWith(e),I6=z6("--"),kB=z6("var(--"),J1=e=>kB(e)?CB.test(e.split("/*")[0].trim()):!1,CB=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,R6=(e,t)=>t&&typeof e=="number"?t.transform(e):e,zi=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},bu={...Tl,transform:e=>zi(0,1,e)},Kd={...Tl,default:1},Qu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Yi=Qu("deg"),ii=Qu("%"),Se=Qu("px"),jB=Qu("vh"),PB=Qu("vw"),QS={...ii,parse:e=>ii.parse(e)/100,transform:e=>ii.transform(e*100)},_B={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,backgroundPositionX:Se,backgroundPositionY:Se},TB={rotate:Yi,rotateX:Yi,rotateY:Yi,rotateZ:Yi,scale:Kd,scaleX:Kd,scaleY:Kd,scaleZ:Kd,skew:Yi,skewX:Yi,skewY:Yi,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:bu,originX:QS,originY:QS,originZ:Se},ZS={...Tl,transform:Math.round},eb={..._B,...TB,zIndex:ZS,size:Se,fillOpacity:bu,strokeOpacity:bu,numOctaves:ZS},EB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},AB=_l.length;function $B(e,t,n){let r="",i=!0;for(let o=0;o({style:{},transform:{},transformOrigin:{},vars:{}}),M6=()=>({...rb(),attrs:{}}),ib=e=>typeof e=="string"&&e.toLowerCase()==="svg";function L6(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const N6=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 D6(e,t,n,r){L6(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(N6.has(i)?i:X1(i),t.attrs[i])}const zp={};function LB(e){Object.assign(zp,e)}function O6(e,{layout:t,layoutId:n}){return Ba.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!zp[e]||e==="opacity")}function ob(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(bn(i[a])||t.style&&bn(t.style[a])||O6(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function F6(e,t,n){const r=ob(e,t,n);for(const i in e)if(bn(e[i])||bn(t[i])){const o=_l.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function NB(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const e4=["x","y","width","height","cx","cy","r"],DB={useVisualState:$6({scrapeMotionValuesFromProps:F6,createRenderState:M6,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const l in i)if(Ba.has(l)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let l=0;l{NB(n,r),dt.render(()=>{nb(r,i,ib(n.tagName),e.transformTemplate),D6(n,r)})})}})},OB={useVisualState:$6({scrapeMotionValuesFromProps:ob,createRenderState:rb})};function B6(e,t,n){for(const r in t)!bn(t[r])&&!O6(r,n)&&(e[r]=t[r])}function FB({transformTemplate:e},t){return m.useMemo(()=>{const n=rb();return tb(n,t,e),Object.assign({},n.vars,n.style)},[t])}function BB(e,t){const n=e.style||{},r={};return B6(r,n,e),Object.assign(r,FB(e,t)),r}function WB(e,t){const n={},r=BB(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}function VB(e,t,n,r){const i=m.useMemo(()=>{const o=M6();return nb(o,t,ib(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};B6(o,e.style,e),i.style={...o,...i.style}}return i}function UB(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(Q1(n)?VB:WB)(r,o,a,n),u=oB(r,typeof n=="string",e),d=n!==m.Fragment?{...u,...c,ref:i}:{},{children:f}=r,p=m.useMemo(()=>bn(f)?f.get():f,[f]);return m.createElement(n,{...d,children:p})}}function HB(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Q1(r)?DB:OB,preloadedFeatures:e,useRender:UB(i),createVisualElement:t,Component:r};return mB(a)}}function W6(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rwindow.ScrollTimeline!==void 0);class GB{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(qB()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class KB extends GB{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function ab(e,t){return e?e[t]||e.default||e:void 0}const mv=2e4;function V6(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=mv?1/0:t}function sb(e){return typeof e=="function"}function t4(e,t){e.timeline=t,e.onfinish=null}const lb=e=>Array.isArray(e)&&typeof e[0]=="number",XB={linearEasing:void 0};function YB(e,t){const n=q1(e);return()=>{var r;return(r=XB[t])!==null&&r!==void 0?r:n()}}const Ip=YB(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),U6=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o`cubic-bezier(${e}, ${t}, ${n}, ${r})`,hv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:mc([0,.65,.55,1]),circOut:mc([.55,0,1,.45]),backIn:mc([.31,.01,.66,-.59]),backOut:mc([.33,1.53,.69,.99])};function q6(e,t){if(e)return typeof e=="function"&&Ip()?U6(e,t):lb(e)?mc(e):Array.isArray(e)?e.map(n=>q6(n,t)||hv.easeOut):hv[e]}const Tr={x:!1,y:!1};function G6(){return Tr.x||Tr.y}function QB(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function K6(e,t){const n=QB(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function n4(e){return t=>{t.pointerType==="touch"||G6()||e(t)}}function ZB(e,t,n={}){const[r,i,o]=K6(e,n),a=n4(l=>{const{target:c}=l,u=t(l);if(typeof u!="function"||!c)return;const d=n4(f=>{u(f),c.removeEventListener("pointerleave",d)});c.addEventListener("pointerleave",d,i)});return r.forEach(l=>{l.addEventListener("pointerenter",a,i)}),o}const X6=(e,t)=>t?e===t?!0:X6(e,t.parentElement):!1,cb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,JB=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function eW(e){return JB.has(e.tagName)||e.tabIndex!==-1}const hc=new WeakSet;function r4(e){return t=>{t.key==="Enter"&&e(t)}}function g0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const tW=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=r4(()=>{if(hc.has(n))return;g0(n,"down");const i=r4(()=>{g0(n,"up")}),o=()=>g0(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 i4(e){return cb(e)&&!G6()}function nW(e,t,n={}){const[r,i,o]=K6(e,n),a=l=>{const c=l.currentTarget;if(!i4(l)||hc.has(c))return;hc.add(c);const u=t(l),d=(h,v)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),!(!i4(h)||!hc.has(c))&&(hc.delete(c),typeof u=="function"&&u(h,{success:v}))},f=h=>{d(h,n.useGlobalTarget||X6(c,h.target))},p=h=>{d(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",p,i)};return r.forEach(l=>{!eW(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,i),l.addEventListener("focus",u=>tW(u,i),i)}),o}function rW(e){return e==="x"||e==="y"?Tr[e]?null:(Tr[e]=!0,()=>{Tr[e]=!1}):Tr.x||Tr.y?null:(Tr.x=Tr.y=!0,()=>{Tr.x=Tr.y=!1})}const Y6=new Set(["width","height","top","left","right","bottom",..._l]);let Of;function iW(){Of=void 0}const oi={now:()=>(Of===void 0&&oi.set(tn.isProcessing||JF.useManualTiming?tn.timestamp:performance.now()),Of),set:e=>{Of=e,queueMicrotask(iW)}};function ub(e,t){e.indexOf(t)===-1&&e.push(t)}function db(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class fb{constructor(){this.subscriptions=[]}add(t){return ub(this.subscriptions,t),()=>db(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!isNaN(parseFloat(e));class aW{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=oi.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=oi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=oW(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new fb);const r=this.events[t].add(n);return t==="change"?()=>{r(),dt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=oi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>o4)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,o4);return Q6(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xu(e,t){return new aW(e,t)}function sW(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xu(n))}function lW(e,t){const n=Rm(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const l=xB(o[a]);sW(e,a,l)}}function cW(e){return!!(bn(e)&&e.add)}function gv(e,t){const n=e.getValue("willChange");if(cW(n))return n.add(t)}function Z6(e){return e.props[T6]}const J6=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,uW=1e-7,dW=12;function fW(e,t,n,r,i){let o,a,l=0;do a=t+(n-t)/2,o=J6(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>uW&&++lfW(o,0,1,e,n);return o=>o===0||o===1?o:J6(i(o),t,r)}const eP=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tP=e=>t=>1-e(1-t),nP=Zu(.33,1.53,.69,.99),pb=tP(nP),rP=eP(pb),iP=e=>(e*=2)<1?.5*pb(e):.5*(2-Math.pow(2,-10*(e-1))),mb=e=>1-Math.sin(Math.acos(e)),oP=tP(mb),aP=eP(mb),sP=e=>/^0[^.\s]+$/u.test(e);function pW(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||sP(e):!0}const Nc=e=>Math.round(e*1e5)/1e5,hb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function mW(e){return e==null}const hW=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,gb=(e,t)=>n=>!!(typeof n=="string"&&hW.test(n)&&n.startsWith(e)||t&&!mW(n)&&Object.prototype.hasOwnProperty.call(n,t)),lP=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,l]=r.match(hb);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},gW=e=>zi(0,255,e),v0={...Tl,transform:e=>Math.round(gW(e))},ua={test:gb("rgb","red"),parse:lP("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+v0.transform(e)+", "+v0.transform(t)+", "+v0.transform(n)+", "+Nc(bu.transform(r))+")"};function vW(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 vv={test:gb("#"),parse:vW,transform:ua.transform},_s={test:gb("hsl","hue"),parse:lP("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ii.transform(Nc(t))+", "+ii.transform(Nc(n))+", "+Nc(bu.transform(r))+")"},gn={test:e=>ua.test(e)||vv.test(e)||_s.test(e),parse:e=>ua.test(e)?ua.parse(e):_s.test(e)?_s.parse(e):vv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ua.transform(e):_s.transform(e)},yW=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function bW(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(hb))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(yW))===null||n===void 0?void 0:n.length)||0)>0}const cP="number",uP="color",xW="var",SW="var(",a4="${}",wW=/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 Su(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(wW,c=>(gn.test(c)?(r.color.push(o),i.push(uP),n.push(gn.parse(c))):c.startsWith(SW)?(r.var.push(o),i.push(xW),n.push(c)):(r.number.push(o),i.push(cP),n.push(parseFloat(c))),++o,a4)).split(a4);return{values:n,split:l,indexes:r,types:i}}function dP(e){return Su(e).values}function fP(e){const{split:t,types:n}=Su(e),r=t.length;return i=>{let o="";for(let a=0;atypeof e=="number"?0:e;function CW(e){const t=dP(e);return fP(e)(t.map(kW))}const _o={test:bW,parse:dP,createTransformer:fP,getAnimatableNone:CW},jW=new Set(["brightness","contrast","saturate","opacity"]);function PW(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(hb)||[];if(!r)return e;const i=n.replace(r,"");let o=jW.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const _W=/\b([a-z-]*)\(.*?\)/gu,yv={..._o,getAnimatableNone:e=>{const t=e.match(_W);return t?t.map(PW).join(" "):e}},TW={...eb,color:gn,backgroundColor:gn,outlineColor:gn,fill:gn,stroke:gn,borderColor:gn,borderTopColor:gn,borderRightColor:gn,borderBottomColor:gn,borderLeftColor:gn,filter:yv,WebkitFilter:yv},vb=e=>TW[e];function pP(e,t){let n=vb(e);return n!==yv&&(n=_o),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const EW=new Set(["auto","none","0"]);function AW(e,t,n){let r=0,i;for(;re===Tl||e===Se,l4=(e,t)=>parseFloat(e.split(", ")[t]),c4=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return l4(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?l4(o[1],e):0}},$W=new Set(["x","y","z"]),zW=_l.filter(e=>!$W.has(e));function IW(e){const t=[];return zW.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const fl={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:c4(4,13),y:c4(5,14)};fl.translateX=fl.x;fl.translateY=fl.y;const ba=new Set;let bv=!1,xv=!1;function mP(){if(xv){const e=Array.from(ba).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=IW(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,a])=>{var l;(l=r.getValue(o))===null||l===void 0||l.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}xv=!1,bv=!1,ba.forEach(e=>e.complete()),ba.clear()}function hP(){ba.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(xv=!0)})}function RW(){hP(),mP()}class yb{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ba.add(this),bv||(bv=!0,dt.read(hP),dt.resolveKeyframes(mP))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),MW=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function LW(e){const t=MW.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function vP(e,t,n=1){const[r,i]=LW(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return gP(a)?parseFloat(a):a}return J1(i)?vP(i,t,n+1):i}const yP=e=>t=>t.test(e),NW={test:e=>e==="auto",parse:e=>e},bP=[Tl,Se,ii,Yi,PB,jB,NW],u4=e=>bP.find(yP(e));class xP extends yb{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 c=0;c{n.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const d4=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(_o.test(e)||e==="0")&&!e.startsWith("url("));function DW(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function Mm(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(FW),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const BW=40;class SP{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=oi.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>BW?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&RW(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=oi.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:l,onUpdate:c,isGenerator:u}=this.options;if(!u&&!OW(t,r,i,o))if(a)this.options.duration=0;else{c&&c(Mm(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const yt=(e,t,n)=>e+(t-e)*n;function y0(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 WW({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=y0(c,l,e+1/3),o=y0(c,l,e),a=y0(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Rp(e,t){return n=>n>0?t:e}const b0=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},VW=[vv,ua,_s],UW=e=>VW.find(t=>t.test(e));function f4(e){const t=UW(e);if(!t)return!1;let n=t.parse(e);return t===_s&&(n=WW(n)),n}const p4=(e,t)=>{const n=f4(e),r=f4(t);if(!n||!r)return Rp(e,t);const i={...n};return o=>(i.red=b0(n.red,r.red,o),i.green=b0(n.green,r.green,o),i.blue=b0(n.blue,r.blue,o),i.alpha=yt(n.alpha,r.alpha,o),ua.transform(i))},HW=(e,t)=>n=>t(e(n)),Ju=(...e)=>e.reduce(HW),Sv=new Set(["none","hidden"]);function qW(e,t){return Sv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function GW(e,t){return n=>yt(e,t,n)}function bb(e){return typeof e=="number"?GW:typeof e=="string"?J1(e)?Rp:gn.test(e)?p4:YW:Array.isArray(e)?wP:typeof e=="object"?gn.test(e)?p4:KW:Rp}function wP(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>bb(o)(o,t[a]));return o=>{for(let a=0;a{for(const o in r)n[o]=r[o](i);return n}}function XW(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o{const n=_o.createTransformer(t),r=Su(e),i=Su(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?Sv.has(e)&&!i.values.length||Sv.has(t)&&!r.values.length?qW(e,t):Ju(wP(XW(r,i),i.values),n):Rp(e,t)};function kP(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?yt(e,t,n):bb(e)(e,t)}const QW=5;function CP(e,t,n){const r=Math.max(t-QW,0);return Q6(n-e(r),t-r)}const jt={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},x0=.001;function ZW({duration:e=jt.duration,bounce:t=jt.bounce,velocity:n=jt.velocity,mass:r=jt.mass}){let i,o,a=1-t;a=zi(jt.minDamping,jt.maxDamping,a),e=zi(jt.minDuration,jt.maxDuration,Pi(e)),a<1?(i=u=>{const d=u*a,f=d*e,p=d-n,h=wv(u,a),v=Math.exp(-f);return x0-p/h*v},o=u=>{const f=u*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(u,2)*e,v=Math.exp(-f),b=wv(Math.pow(u,2),a);return(-i(u)+x0>0?-1:1)*((p-h)*v)/b}):(i=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-x0+d*f},o=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=eV(i,o,l);if(e=ji(e),isNaN(c))return{stiffness:jt.stiffness,damping:jt.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const JW=12;function eV(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function rV(e){let t={velocity:jt.velocity,stiffness:jt.stiffness,damping:jt.damping,mass:jt.mass,isResolvedFromDuration:!1,...e};if(!m4(e,nV)&&m4(e,tV))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*zi(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:jt.mass,stiffness:i,damping:o}}else{const n=ZW(e);t={...t,...n,mass:jt.mass},t.isResolvedFromDuration=!0}return t}function jP(e=jt.visualDuration,t=jt.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],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:c,damping:u,mass:d,duration:f,velocity:p,isResolvedFromDuration:h}=rV({...n,velocity:-Pi(n.velocity||0)}),v=p||0,b=u/(2*Math.sqrt(c*d)),x=a-o,y=Pi(Math.sqrt(c/d)),g=Math.abs(x)<5;r||(r=g?jt.restSpeed.granular:jt.restSpeed.default),i||(i=g?jt.restDelta.granular:jt.restDelta.default);let S;if(b<1){const k=wv(y,b);S=C=>{const P=Math.exp(-b*y*C);return a-P*((v+b*y*x)/k*Math.sin(k*C)+x*Math.cos(k*C))}}else if(b===1)S=k=>a-Math.exp(-y*k)*(x+(v+y*x)*k);else{const k=y*Math.sqrt(b*b-1);S=C=>{const P=Math.exp(-b*y*C),j=Math.min(k*C,300);return a-P*((v+b*y*x)*Math.sinh(j)+k*x*Math.cosh(j))/k}}const w={calculatedDuration:h&&f||null,next:k=>{const C=S(k);if(h)l.done=k>=f;else{let P=0;b<1&&(P=k===0?ji(v):CP(S,k,C));const j=Math.abs(P)<=r,R=Math.abs(a-C)<=i;l.done=j&&R}return l.value=l.done?a:C,l},toString:()=>{const k=Math.min(V6(w),mv),C=U6(P=>w.next(k*P).value,k,30);return k+"ms "+C}};return w}function h4({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:d}){const f=e[0],p={done:!1,value:f},h=j=>l!==void 0&&jc,v=j=>l===void 0?c:c===void 0||Math.abs(l-j)-b*Math.exp(-j/r),S=j=>y+g(j),w=j=>{const R=g(j),T=S(j);p.done=Math.abs(R)<=u,p.value=p.done?y:T};let k,C;const P=j=>{h(p.value)&&(k=j,C=jP({keyframes:[p.value,v(p.value)],velocity:CP(S,j,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:d}))};return P(0),{calculatedDuration:null,next:j=>{let R=!1;return!C&&k===void 0&&(R=!0,w(j),P(j)),k!==void 0&&j>=k?C.next(j-k):(!R&&w(j),p)}}}const iV=Zu(.42,0,1,1),oV=Zu(0,0,.58,1),PP=Zu(.42,0,.58,1),aV=e=>Array.isArray(e)&&typeof e[0]!="number",sV={linear:Qn,easeIn:iV,easeInOut:PP,easeOut:oV,circIn:mb,circInOut:aP,circOut:oP,backIn:pb,backInOut:rP,backOut:nP,anticipate:iP},g4=e=>{if(lb(e)){k6(e.length===4);const[t,n,r,i]=e;return Zu(t,n,r,i)}else if(typeof e=="string")return sV[e];return e};function lV(e,t,n){const r=[],i=n||kP,o=e.length-1;for(let a=0;at[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=lV(t,r,i),c=l.length,u=d=>{if(a&&d1)for(;fu(zi(e[0],e[o-1],d)):u}function uV(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ul(0,t,r);e.push(yt(n,1,i))}}function dV(e){const t=[0];return uV(t,e.length-1),t}function fV(e,t){return e.map(n=>n*t)}function pV(e,t){return e.map(()=>t||PP).splice(0,e.length-1)}function Mp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=aV(r)?r.map(g4):g4(r),o={done:!1,value:t[0]},a=fV(n&&n.length===t.length?n:dV(t),e),l=cV(a,t,{ease:Array.isArray(i)?i:pV(t,i)});return{calculatedDuration:e,next:c=>(o.value=l(c),o.done=c>=e,o)}}const mV=e=>{const t=({timestamp:n})=>e(n);return{start:()=>dt.update(t,!0),stop:()=>Po(t),now:()=>tn.isProcessing?tn.timestamp:oi.now()}},hV={decay:h4,inertia:h4,tween:Mp,keyframes:Mp,spring:jP},gV=e=>e/100;class xb extends SP{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||yb,l=(c,u)=>this.onKeyframesResolved(c,u);this.resolver=new a(o,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,l=sb(n)?n:hV[n]||Mp;let c,u;l!==Mp&&typeof t[0]!="number"&&(c=Ju(gV,kP(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});o==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=V6(d));const{calculatedDuration:f}=d,p=f+i,h=p*(r+1)-i;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:c,calculatedDuration:f,resolvedDuration:p,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:j}=this.options;return{done:!0,value:j[j.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:u,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:h,repeatType:v,repeatDelay:b,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-p*(this.speed>=0?1:-1),g=this.speed>=0?y<0:y>d;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let S=this.currentTime,w=o;if(h){const j=Math.min(this.currentTime,d)/f;let R=Math.floor(j),T=j%1;!T&&j>=1&&(T=1),T===1&&R--,R=Math.min(R,h+1),!!(R%2)&&(v==="reverse"?(T=1-T,b&&(T-=b/f)):v==="mirror"&&(w=a)),S=zi(0,1,T)*f}const k=g?{done:!1,value:c[0]}:w.next(S);l&&(k.value=l(k.value));let{done:C}=k;!g&&u!==null&&(C=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return P&&i!==void 0&&(k.value=Mm(c,this.options,i)),x&&x(k.value),P&&this.finish(),k}get duration(){const{resolved:t}=this;return t?Pi(t.calculatedDuration):0}get time(){return Pi(this.currentTime)}set time(t){t=ji(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Pi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=mV,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const vV=new Set(["opacity","clipPath","filter","transform"]);function yV(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:l="easeInOut",times:c}={}){const u={[t]:n};c&&(u.offset=c);const d=q6(l,i);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const bV=q1(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Lp=10,xV=2e4;function SV(e){return sb(e.type)||e.type==="spring"||!H6(e.ease)}function wV(e,t){const n=new xb({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&othis.onKeyframesResolved(a,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:l,name:c,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof o=="string"&&Ip()&&kV(o)&&(o=_P[o]),SV(this.options)){const{onComplete:f,onUpdate:p,motionValue:h,element:v,...b}=this.options,x=wV(t,b);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,i=x.times,o=x.ease,a="keyframes"}const d=yV(l.owner.current,c,t,{...this.options,duration:r,times:i,ease:o});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(t4(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(Mm(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Pi(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Pi(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ji(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Qn;const{animation:r}=n;t4(r,t)}return Qn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:f,element:p,...h}=this.options,v=new xb({...h,keyframes:r,duration:i,type:o,ease:a,times:l,isGenerator:!0}),b=ji(this.time);u.setWithVelocity(v.sample(b-Lp).value,v.sample(b).value,Lp)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=n.owner.getProps();return bV()&&r&&vV.has(r)&&!c&&!u&&!i&&o!=="mirror"&&a!==0&&l!=="inertia"}}const CV={type:"spring",stiffness:500,damping:25,restSpeed:10},jV=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),PV={type:"keyframes",duration:.8},_V={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},TV=(e,{keyframes:t})=>t.length>2?PV:Ba.has(e)?e.startsWith("scale")?jV(t[1]):CV:_V;function EV({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const Sb=(e,t,n,r={},i,o)=>a=>{const l=ab(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ji(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:p=>{t.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};EV(l)||(d={...d,...TV(e,d)}),d.duration&&(d.duration=ji(d.duration)),d.repeatDelay&&(d.repeatDelay=ji(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const p=Mm(d.keyframes,l);if(p!==void 0)return dt.update(()=>{d.onUpdate(p),d.onComplete()}),new KB([])}return!o&&v4.supports(d)?new v4(d):new xb(d)};function AV({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function TP(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(a=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in c){const p=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),h=c[f];if(h===void 0||d&&AV(d,f))continue;const v={delay:n,...ab(a||{},f)};let b=!1;if(window.MotionHandoffAnimation){const y=Z6(e);if(y){const g=window.MotionHandoffAnimation(y,f,dt);g!==null&&(v.startTime=g,b=!0)}}gv(e,f),p.start(Sb(f,p,h,e.shouldReduceMotion&&Y6.has(f)?{type:!1}:v,e,b));const x=p.animation;x&&u.push(x)}return l&&Promise.all(u).then(()=>{dt.update(()=>{l&&lW(e,l)})}),u}function kv(e,t,n={}){var r;const i=Rm(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(TP(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=o;return $V(e,t,d+u,f,p,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[u,d]=c==="beforeChildren"?[a,l]:[l,a];return u().then(()=>d())}else return Promise.all([a(),l(n.delay)])}function $V(e,t,n=0,r=0,i=1,o){const a=[],l=(e.variantChildren.size-1)*r,c=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(zV).forEach((u,d)=>{u.notify("AnimationStart",t),a.push(kv(u,t,{...o,delay:n+c(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function zV(e,t){return e.sortNodePosition(t)}function IV(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>kv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=kv(e,t,n);else{const i=typeof t=="function"?Rm(e,t,n.custom):t;r=Promise.all(TP(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const RV=K1.length;function EP(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?EP(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>IV(e,n,r)))}function DV(e){let t=NV(e),n=y4(),r=!0;const i=c=>(u,d)=>{var f;const p=Rm(e,d,c==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){const{transition:h,transitionEnd:v,...b}=p;u={...u,...b,...v}}return u};function o(c){t=c(e)}function a(c){const{props:u}=e,d=EP(e.parent)||{},f=[],p=new Set;let h={},v=1/0;for(let x=0;xv&&w,R=!1;const T=Array.isArray(S)?S:[S];let $=T.reduce(i(y),{});k===!1&&($={});const{prevResolvedValues:K={}}=g,X={...K,...$},M=L=>{j=!0,p.has(L)&&(R=!0,p.delete(L)),g.needsAnimating[L]=!0;const I=e.getValue(L);I&&(I.liveStyle=!1)};for(const L in X){const I=$[L],D=K[L];if(h.hasOwnProperty(L))continue;let q=!1;pv(I)&&pv(D)?q=!W6(I,D):q=I!==D,q?I!=null?M(L):p.add(L):I!==void 0&&p.has(L)?M(L):g.protectedKeys[L]=!0}g.prevProp=S,g.prevResolvedValues=$,g.isActive&&(h={...h,...$}),r&&e.blockInitialAnimation&&(j=!1),j&&(!(C&&P)||R)&&f.push(...T.map(L=>({animation:L,options:{type:y}})))}if(p.size){const x={};p.forEach(y=>{const g=e.getBaseTarget(y),S=e.getValue(y);S&&(S.liveStyle=!0),x[y]=g??null}),f.push({animation:x})}let b=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(f):Promise.resolve()}function l(c,u){var d;if(n[c].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var h;return(h=p.animationState)===null||h===void 0?void 0:h.setActive(c,u)}),n[c].isActive=u;const f=a(c);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=y4(),r=!0}}}function OV(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!W6(t,e):!1}function Ko(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function y4(){return{animate:Ko(!0),whileInView:Ko(),whileHover:Ko(),whileTap:Ko(),whileDrag:Ko(),whileFocus:Ko(),exit:Ko()}}class No{constructor(t){this.isMounted=!1,this.node=t}update(){}}class FV extends No{constructor(t){super(t),t.animationState||(t.animationState=DV(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();zm(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let BV=0;class WV extends No{constructor(){super(...arguments),this.id=BV++}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}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const VV={animation:{Feature:FV},exit:{Feature:WV}};function wu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ed(e){return{point:{x:e.pageX,y:e.pageY}}}const UV=e=>t=>cb(t)&&e(t,ed(t));function Dc(e,t,n,r){return wu(e,t,UV(n),r)}const b4=(e,t)=>Math.abs(e-t);function HV(e,t){const n=b4(e.x,t.x),r=b4(e.y,t.y);return Math.sqrt(n**2+r**2)}class AP{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=w0(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=HV(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:v}=f,{timestamp:b}=tn;this.history.push({...v,timestamp:b});const{onStart:x,onMove:y}=this.handlers;p||(x&&x(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=S0(p,this.transformPagePoint),dt.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:v,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=w0(f.type==="pointercancel"?this.lastMoveEventInfo:S0(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,x),v&&v(f,x)},!cb(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=ed(t),l=S0(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=tn;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,w0(l,this.history)),this.removeListeners=Ju(Dc(this.contextWindow,"pointermove",this.handlePointerMove),Dc(this.contextWindow,"pointerup",this.handlePointerUp),Dc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Po(this.updatePoint)}}function S0(e,t){return t?{point:t(e.point)}:e}function x4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function w0({point:e},t){return{point:e,delta:x4(e,$P(t)),offset:x4(e,qV(t)),velocity:GV(t,.1)}}function qV(e){return e[0]}function $P(e){return e[e.length-1]}function GV(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=$P(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ji(t)));)n--;if(!r)return{x:0,y:0};const o=Pi(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const zP=1e-4,KV=1-zP,XV=1+zP,IP=.01,YV=0-IP,QV=0+IP;function Jn(e){return e.max-e.min}function ZV(e,t,n){return Math.abs(e-t)<=n}function S4(e,t,n,r=.5){e.origin=r,e.originPoint=yt(t.min,t.max,e.origin),e.scale=Jn(n)/Jn(t),e.translate=yt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=KV&&e.scale<=XV||isNaN(e.scale))&&(e.scale=1),(e.translate>=YV&&e.translate<=QV||isNaN(e.translate))&&(e.translate=0)}function Oc(e,t,n,r){S4(e.x,t.x,n.x,r?r.originX:void 0),S4(e.y,t.y,n.y,r?r.originY:void 0)}function w4(e,t,n){e.min=n.min+t.min,e.max=e.min+Jn(t)}function JV(e,t,n){w4(e.x,t.x,n.x),w4(e.y,t.y,n.y)}function k4(e,t,n){e.min=t.min-n.min,e.max=e.min+Jn(t)}function Fc(e,t,n){k4(e.x,t.x,n.x),k4(e.y,t.y,n.y)}function eU(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?yt(n,e,r.max):Math.min(e,n)),e}function C4(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 tU(e,{top:t,left:n,bottom:r,right:i}){return{x:C4(e.x,n,i),y:C4(e.y,t,r)}}function j4(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ul(t.min,t.max-r,e.min):r>i&&(n=ul(e.min,e.max-i,t.min)),zi(0,1,n)}function iU(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 Cv=.35;function oU(e=Cv){return e===!1?e=0:e===!0&&(e=Cv),{x:P4(e,"left","right"),y:P4(e,"top","bottom")}}function P4(e,t,n){return{min:_4(e,t),max:_4(e,n)}}function _4(e,t){return typeof e=="number"?e:e[t]||0}const T4=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ts=()=>({x:T4(),y:T4()}),E4=()=>({min:0,max:0}),zt=()=>({x:E4(),y:E4()});function fr(e){return[e("x"),e("y")]}function RP({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function aU({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function sU(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 k0(e){return e===void 0||e===1}function jv({scale:e,scaleX:t,scaleY:n}){return!k0(e)||!k0(t)||!k0(n)}function ea(e){return jv(e)||MP(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function MP(e){return A4(e.x)||A4(e.y)}function A4(e){return e&&e!=="0%"}function Np(e,t,n){const r=e-n,i=t*r;return n+i}function $4(e,t,n,r,i){return i!==void 0&&(e=Np(e,i,r)),Np(e,n,r)+t}function Pv(e,t=0,n=1,r,i){e.min=$4(e.min,t,n,r,i),e.max=$4(e.max,t,n,r,i)}function LP(e,{x:t,y:n}){Pv(e.x,t.translate,t.scale,t.originPoint),Pv(e.y,n.translate,n.scale,n.originPoint)}const z4=.999999999999,I4=1.0000000000001;function lU(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let l=0;lz4&&(t.x=1),t.yz4&&(t.y=1)}function Es(e,t){e.min=e.min+t,e.max=e.max+t}function R4(e,t,n,r,i=.5){const o=yt(e.min,e.max,i);Pv(e,t,n,o,r)}function As(e,t){R4(e.x,t.x,t.scaleX,t.scale,t.originX),R4(e.y,t.y,t.scaleY,t.scale,t.originY)}function NP(e,t){return RP(sU(e.getBoundingClientRect(),t))}function cU(e,t,n){const r=NP(e,n),{scroll:i}=t;return i&&(Es(r.x,i.offset.x),Es(r.y,i.offset.y)),r}const DP=({current:e})=>e?e.ownerDocument.defaultView:null,uU=new WeakMap;class dU{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=zt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ed(d).point)},o=(d,f)=>{const{drag:p,dragPropagation:h,onDragStart:v}=this.getProps();if(p&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=rW(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fr(x=>{let y=this.getAxisMotionValue(x).get()||0;if(ii.test(y)){const{projection:g}=this.visualElement;if(g&&g.layout){const S=g.layout.layoutBox[x];S&&(y=Jn(S)*(parseFloat(y)/100))}}this.originPoint[x]=y}),v&&dt.postRender(()=>v(d,f)),gv(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(d,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:v,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:x}=f;if(h&&this.currentDirection===null){this.currentDirection=fU(x),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),b&&b(d,f)},l=(d,f)=>this.stop(d,f),c=()=>fr(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new AP(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:DP(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&dt.postRender(()=>o(t,n))}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||!Xd(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=eU(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Ps(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=tU(i.layoutBox,n):this.constraints=!1,this.elastic=oU(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&fr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=iU(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ps(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=cU(r,i.root,this.visualElement.getTransformPagePoint());let a=nU(i.layout.layoutBox,o);if(n){const l=n(aU(a));this.hasMutatedConstraints=!!l,l&&(a=RP(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=fr(d=>{if(!Xd(d,n,this.currentDirection))return;let f=c&&c[d]||{};a&&(f={min:0,max:0});const p=i?200:1e6,h=i?40:1e7,v={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(d,v)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return gv(this.visualElement,t),r.start(Sb(t,r,0,n,this.visualElement,!1))}stopAnimation(){fr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){fr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.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){fr(n=>{const{drag:r}=this.getProps();if(!Xd(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:l}=i.layout.layoutBox[n];o.set(t[n]-yt(a,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ps(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};fr(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();i[a]=rU({min:c,max:c},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),fr(a=>{if(!Xd(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(yt(c,u,i[a]))})}addListeners(){if(!this.visualElement.current)return;uU.set(this.visualElement,this);const t=this.visualElement.current,n=Dc(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Ps(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),dt.read(r);const a=wu(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(fr(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=Cv,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:l}}}function Xd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function fU(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class pU extends No{constructor(t){super(t),this.removeGroupControls=Qn,this.removeListeners=Qn,this.controls=new dU(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qn}unmount(){this.removeGroupControls(),this.removeListeners()}}const M4=e=>(t,n)=>{e&&dt.postRender(()=>e(t,n))};class mU extends No{constructor(){super(...arguments),this.removePointerDownListener=Qn}onPointerDown(t){this.session=new AP(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:DP(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:M4(t),onStart:M4(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&dt.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=Dc(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 Ff={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function L4(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Jl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=L4(e,t.target.x),r=L4(e,t.target.y);return`${n}% ${r}%`}},hU={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=_o.parse(e);if(i.length>5)return r;const o=_o.createTransformer(e),a=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;i[0+a]/=l,i[1+a]/=c;const u=yt(l,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=u),typeof i[3+a]=="number"&&(i[3+a]/=u),o(i)}};class gU extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;LB(vU),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ff.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||dt.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Y1.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;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 OP(e){const[t,n]=U1(),r=m.useContext(B1);return s.jsx(gU,{...e,layoutGroup:r,switchLayoutGroup:m.useContext(E6),isPresent:t,safeToRemove:n})}const vU={borderRadius:{...Jl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Jl,borderTopRightRadius:Jl,borderBottomLeftRadius:Jl,borderBottomRightRadius:Jl,boxShadow:hU};function yU(e,t,n){const r=bn(e)?e:xu(e);return r.start(Sb("",r,t,n)),r.animation}function bU(e){return e instanceof SVGElement&&e.tagName!=="svg"}const xU=(e,t)=>e.depth-t.depth;class SU{constructor(){this.children=[],this.isDirty=!1}add(t){ub(this.children,t),this.isDirty=!0}remove(t){db(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(xU),this.isDirty=!1,this.children.forEach(t)}}function wU(e,t){const n=oi.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Po(r),e(o-t))};return dt.read(r,!0),()=>Po(r)}const FP=["TopLeft","TopRight","BottomLeft","BottomRight"],kU=FP.length,N4=e=>typeof e=="string"?parseFloat(e):e,D4=e=>typeof e=="number"||Se.test(e);function CU(e,t,n,r,i,o){i?(e.opacity=yt(0,n.opacity!==void 0?n.opacity:1,jU(r)),e.opacityExit=yt(t.opacity!==void 0?t.opacity:1,0,PU(r))):o&&(e.opacity=yt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;art?1:n(ul(e,t,r))}function F4(e,t){e.min=t.min,e.max=t.max}function ur(e,t){F4(e.x,t.x),F4(e.y,t.y)}function B4(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function W4(e,t,n,r,i){return e-=t,e=Np(e,1/n,r),i!==void 0&&(e=Np(e,1/i,r)),e}function _U(e,t=0,n=1,r=.5,i,o=e,a=e){if(ii.test(t)&&(t=parseFloat(t),t=yt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=yt(o.min,o.max,r);e===o&&(l-=t),e.min=W4(e.min,t,n,l,i),e.max=W4(e.max,t,n,l,i)}function V4(e,t,[n,r,i],o,a){_U(e,t[n],t[r],t[i],t.scale,o,a)}const TU=["x","scaleX","originX"],EU=["y","scaleY","originY"];function U4(e,t,n,r){V4(e.x,t,TU,n?n.x:void 0,r?r.x:void 0),V4(e.y,t,EU,n?n.y:void 0,r?r.y:void 0)}function H4(e){return e.translate===0&&e.scale===1}function WP(e){return H4(e.x)&&H4(e.y)}function q4(e,t){return e.min===t.min&&e.max===t.max}function AU(e,t){return q4(e.x,t.x)&&q4(e.y,t.y)}function G4(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function VP(e,t){return G4(e.x,t.x)&&G4(e.y,t.y)}function K4(e){return Jn(e.x)/Jn(e.y)}function X4(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class $U{constructor(){this.members=[]}add(t){ub(this.members,t),t.scheduleRender()}remove(t){if(db(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 zU(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:p,skewX:h,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),h&&(r+=`skewX(${h}deg) `),v&&(r+=`skewY(${v}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const ta={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},gc=typeof window<"u"&&window.MotionDebug!==void 0,C0=["","X","Y","Z"],IU={visibility:"hidden"},Y4=1e3;let RU=0;function j0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function UP(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Z6(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",dt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&UP(r)}function HP({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},l=t==null?void 0:t()){this.id=RU++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,gc&&(ta.totalNodes=ta.resolvedTargetDeltas=ta.recalculatedProjection=0),this.nodes.forEach(NU),this.nodes.forEach(WU),this.nodes.forEach(VU),this.nodes.forEach(DU),gc&&window.MotionDebug.record(ta)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;cthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=wU(p,250),Ff.hasAnimatedSinceResize&&(Ff.hasAnimatedSinceResize=!1,this.nodes.forEach(Z4))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||d.getDefaultTransition()||KU,{onLayoutAnimationStart:x,onLayoutAnimationComplete:y}=d.getProps(),g=!this.targetLayout||!VP(this.targetLayout,v)||h,S=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||p&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,S);const w={...ab(b,"layout"),onPlay:x,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else p||Z4(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Po(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(UU),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&UP(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c{const k=w/1e3;J4(f.x,a.x,k),J4(f.y,a.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Fc(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),qU(this.relativeTarget,this.relativeTargetOrigin,p,k),S&&AU(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=zt()),ur(S,this.relativeTarget)),b&&(this.animationValues=d,CU(d,u,this.latestValues,k,g,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Po(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=dt.update(()=>{Ff.hasAnimatedSinceResize=!0,this.currentAnimation=yU(0,Y4,{...a,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Y4),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=a;if(!(!l||!c||!u)){if(this!==a&&this.layout&&u&&qP(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||zt();const f=Jn(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const p=Jn(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+p}ur(l,c),As(l,d),Oc(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new $U),this.sharedNodes.get(a).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:l}=this.options;return l?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:l}=this.options;return l?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&j0("z",a,u,this.animationValues);for(let d=0;d{var l;return(l=a.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Q4),this.root.sharedNodes.clear()}}}function MU(e){e.updateLayout()}function LU(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?fr(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=Jn(p);p.min=r[f].min,p.max=p.min+h}):qP(o,n.layoutBox,r)&&fr(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=Jn(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const l=Ts();Oc(l,r,n.layoutBox);const c=Ts();a?Oc(c,e.applyTransform(i,!0),n.measuredBox):Oc(c,r,n.layoutBox);const u=!WP(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const v=zt();Fc(v,n.layoutBox,p.layoutBox);const b=zt();Fc(b,r,h.layoutBox),VP(v,b)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=v,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function NU(e){gc&&ta.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function DU(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function OU(e){e.clearSnapshot()}function Q4(e){e.clearMeasurements()}function FU(e){e.isLayoutDirty=!1}function BU(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Z4(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function WU(e){e.resolveTargetDelta()}function VU(e){e.calcProjection()}function UU(e){e.resetSkewAndRotation()}function HU(e){e.removeLeadSnapshot()}function J4(e,t,n){e.translate=yt(t.translate,0,n),e.scale=yt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ew(e,t,n,r){e.min=yt(t.min,n.min,r),e.max=yt(t.max,n.max,r)}function qU(e,t,n,r){ew(e.x,t.x,n.x,r),ew(e.y,t.y,n.y,r)}function GU(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const KU={duration:.45,ease:[.4,0,.1,1]},tw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),nw=tw("applewebkit/")&&!tw("chrome/")?Math.round:Qn;function rw(e){e.min=nw(e.min),e.max=nw(e.max)}function XU(e){rw(e.x),rw(e.y)}function qP(e,t,n){return e==="position"||e==="preserve-aspect"&&!ZV(K4(t),K4(n),.2)}function YU(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const QU=HP({attachResizeListener:(e,t)=>wu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),P0={current:void 0},GP=HP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!P0.current){const e=new QU({});e.mount(window),e.setOptions({layoutScroll:!0}),P0.current=e}return P0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ZU={pan:{Feature:mU},drag:{Feature:pU,ProjectionNode:GP,MeasureLayout:OP}};function iw(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&&dt.postRender(()=>o(t,ed(t)))}class JU extends No{mount(){const{current:t}=this.node;t&&(this.unmount=ZB(t,n=>(iw(this.node,n,"Start"),r=>iw(this.node,r,"End"))))}unmount(){}}class eH extends No{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=Ju(wu(this.node.current,"focus",()=>this.onFocus()),wu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ow(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&dt.postRender(()=>o(t,ed(t)))}class tH extends No{mount(){const{current:t}=this.node;t&&(this.unmount=nW(t,n=>(ow(this.node,n,"Start"),(r,{success:i})=>ow(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const _v=new WeakMap,_0=new WeakMap,nH=e=>{const t=_v.get(e.target);t&&t(e)},rH=e=>{e.forEach(nH)};function iH({root:e,...t}){const n=e||document;_0.has(n)||_0.set(n,{});const r=_0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(rH,{root:e,...t})),r[i]}function oH(e,t,n){const r=iH(t);return _v.set(e,n),r.observe(e),()=>{_v.delete(e),r.unobserve(e)}}const aH={some:0,all:1};class sH extends No{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,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:aH[i]},l=c=>{const{isIntersecting:u}=c;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:d,onViewportLeave:f}=this.node.getProps(),p=u?d:f;p&&p(c)};return oH(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(lH(t,n))&&this.startObserver()}unmount(){}}function lH({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const cH={inView:{Feature:sH},tap:{Feature:tH},focus:{Feature:eH},hover:{Feature:JU}},uH={layout:{ProjectionNode:GP,MeasureLayout:OP}},Tv={current:null},KP={current:!1};function dH(){if(KP.current=!0,!!H1)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Tv.current=e.matches;e.addListener(t),t()}else Tv.current=!1}const fH=[...bP,gn,_o],pH=e=>fH.find(yP(e)),aw=new WeakMap;function mH(e,t,n){for(const r in t){const i=t[r],o=n[r];if(bn(i))e.addValue(r,i);else if(bn(o))e.addValue(r,xu(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,xu(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const sw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class hH{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=yb,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=oi.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),KP.current||dH(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Tv.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){aw.delete(this.current),this.projection&&this.projection.unmount(),Po(this.notifyUpdate),Po(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Ba.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&dt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),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 dl){const n=dl[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):zt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=xu(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(gP(i)||sP(i))?i=parseFloat(i):!pH(i)&&_o.test(n)&&(i=pP(t,n)),this.setBaseTarget(t,bn(i)?i.get():i)),bn(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Z1(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!bn(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new fb),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class XP extends hH{constructor(){super(...arguments),this.KeyframeResolver=xP}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;bn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function gH(e){return window.getComputedStyle(e)}class vH extends XP{constructor(){super(...arguments),this.type="html",this.renderInstance=L6}readValueFromInstance(t,n){if(Ba.has(n)){const r=vb(n);return r&&r.default||0}else{const r=gH(t),i=(I6(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return NP(t,n)}build(t,n,r){tb(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return ob(t,n,r)}}class yH extends XP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=zt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ba.has(n)){const r=vb(n);return r&&r.default||0}return n=N6.has(n)?n:X1(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return F6(t,n,r)}build(t,n,r){nb(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){D6(t,n,r,i)}mount(t){this.isSVGTag=ib(t.tagName),super.mount(t)}}const bH=(e,t)=>Q1(e)?new yH(t):new vH(t,{allowProjection:e!==m.Fragment}),xH=HB({...VV,...cH,...ZU,...uH},bH),ir=aB(xH),SH=(e,t)=>e.find(n=>n.id===t);function lw(e,t){const n=YP(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function YP(e,t){for(const[n,r]of Object.entries(e))if(SH(r,t))return n}function wH(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function kH(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,o=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",a=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:i,right:o,left:a}}var CH=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,jH=s6(function(e){return CH.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),PH=jH,_H=function(t){return t!=="theme"},cw=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?PH:_H},uw=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},TH=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return R1(n,r,i),g6(function(){return M1(n,r,i)}),null},EH=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var l=uw(t,n,r),c=l||cw(i),u=!c("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var h=d.length,v=1;vt=>{const{theme:n,css:r,__css:i,sx:o,...a}=t,[l]=mz(a,lI),c=yn(e,t),u=q$({},i,c,v1(l),o),d=Ej(u)(t.theme);return r?[d,r]:d};function T0(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=IH);const i=MH({baseStyle:n}),o=RH(e,r)(i);return m.forwardRef(function(c,u){const{children:d,...f}=c,{colorMode:p,forced:h}=Xu(),v=h?p:void 0;return m.createElement(o,{ref:u,"data-theme":v,...f},d)})}function LH(){const e=new Map;return new Proxy(T0,{apply(t,n,r){return T0(...r)},get(t,n){return e.has(n)||e.set(n,T0(n)),e.get(n)}})}const F=LH(),NH={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},QP=m.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:a="bottom",duration:l=5e3,containerStyle:c,motionVariants:u=NH,toastSpacing:d="0.5rem"}=e,[f,p]=m.useState(l),h=QF();du(()=>{h||r==null||r()},[h]),du(()=>{p(l)},[l]);const v=()=>p(null),b=()=>p(l),x=()=>{h&&i()};m.useEffect(()=>{h&&o&&i()},[h,o,i]),Pz(x,f);const y=m.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...c}),[c,d]),g=m.useMemo(()=>wH(a),[a]);return s.jsx(ir.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:v,onHoverEnd:b,custom:{position:a},style:g,children:s.jsx(F.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:y,children:yn(n,{id:t,onClose:x})})})});QP.displayName="ToastComponent";function W(e){return m.forwardRef(e)}var DH=typeof Element<"u",OH=typeof Map=="function",FH=typeof Set=="function",BH=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Bf(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Bf(e[r],t[r]))return!1;return!0}var o;if(OH&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Bf(r.value[1],t.get(r.value[0])))return!1;return!0}if(FH&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(BH&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(DH&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Bf(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var WH=function(t,n){try{return Bf(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const VH=by(WH);function Di(){const e=m.useContext(cl);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function ZP(){const e=Xu(),t=Di();return{...e,theme:t}}function UH(e,t,n){if(t==null)return t;const r=i=>{var o,a;return(a=(o=e.__cssMap)==null?void 0:o[i])==null?void 0:a.value};return r(t)??r(n)??n}function HH(e,t,n){const r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return o=>{const a=i.filter(Boolean),l=r.map((c,u)=>{const d=`${e}.${c}`;return UH(o,d,a[u]??c)});return Array.isArray(t)?l:l[0]}}function qH(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0&&t!=="children"&&!m.isValidElement(n)))}function JP(e,t={}){const{styleConfig:n,...r}=t,{theme:i,colorMode:o}=ZP(),a=e?hj(i,`components.${e}`):void 0,l=n||a,c=gr({theme:i,colorMode:o},(l==null?void 0:l.defaultProps)??{},qH(r),(d,f)=>d?void 0:f),u=m.useRef({});if(l){const f=bI(l)(c);VH(u.current,f)||(u.current=f)}return u.current}function or(e,t={}){return JP(e,t)}function tt(e,t={}){return JP(e,t)}const dw={path:s.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[s.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),s.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),s.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},wt=W((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:o=!1,children:a,className:l,__css:c,...u}=e,d=V("chakra-icon",l),f=or("Icon",e),p={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...c,...f},h={ref:t,focusable:o,className:d,__css:p},v=r??dw.viewBox;if(n&&typeof n!="string")return s.jsx(F.svg,{as:n,...h,...u});const b=a??dw.path;return s.jsx(F.svg,{verticalAlign:"middle",viewBox:v,...h,...u,children:b})});wt.displayName="Icon";function GH(e){return s.jsx(wt,{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function KH(e){return s.jsx(wt,{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function fw(e){return s.jsx(wt,{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const XH=Ku({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),un=W((e,t)=>{const n=or("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:l,...c}=Ie(e),u=V("chakra-spinner",l),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${XH} ${o} linear infinite`,...n};return s.jsx(F.div,{ref:t,__css:d,className:u,...c,children:r&&s.jsx(F.span,{srOnly:!0,children:r})})});un.displayName="Spinner";const[YH,wb]=Te({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[QH,kb]=Te({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),e_={info:{icon:KH,colorScheme:"blue"},warning:{icon:fw,colorScheme:"orange"},success:{icon:GH,colorScheme:"green"},error:{icon:fw,colorScheme:"red"},loading:{icon:un,colorScheme:"blue"}};function ZH(e){return e_[e].colorScheme}function JH(e){return e_[e].icon}const t_=W(function(t,n){const{status:r="info",addRole:i=!0,...o}=Ie(t),a=t.colorScheme??ZH(r),l=tt("Alert",{...t,colorScheme:a}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return s.jsx(YH,{value:{status:r},children:s.jsx(QH,{value:l,children:s.jsx(F.div,{"data-status":r,role:i?"alert":void 0,ref:n,...o,className:V("chakra-alert",t.className),__css:c})})})});t_.displayName="Alert";function n_(e){const{status:t}=wb(),n=JH(t),r=kb(),i=t==="loading"?r.spinner:r.icon;return s.jsx(F.span,{display:"inherit","data-status":t,...e,className:V("chakra-alert__icon",e.className),__css:i,children:e.children||s.jsx(n,{h:"100%",w:"100%"})})}n_.displayName="AlertIcon";const r_=W(function(t,n){const r=kb(),{status:i}=wb();return s.jsx(F.div,{ref:n,"data-status":i,...t,className:V("chakra-alert__title",t.className),__css:r.title})});r_.displayName="AlertTitle";const i_=W(function(t,n){const{status:r}=wb(),i=kb(),o={display:"inline",...i.description};return s.jsx(F.div,{ref:n,"data-status":r,...t,className:V("chakra-alert__desc",t.className),__css:o})});i_.displayName="AlertDescription";function eq(e){return s.jsx(wt,{focusable:"false","aria-hidden":!0,...e,children:s.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const Lm=W(function(t,n){const r=or("CloseButton",t),{children:i,isDisabled:o,__css:a,...l}=Ie(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return s.jsx(F.button,{type:"button","aria-label":"Close",ref:n,disabled:o,__css:{...c,...r,...a},...l,children:i||s.jsx(eq,{width:"1em",height:"1em"})})});Lm.displayName="CloseButton";const tq=e=>{const{status:t,variant:n="solid",id:r,title:i,isClosable:o,onClose:a,description:l,colorScheme:c,icon:u}=e,d=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return s.jsxs(t_,{addRole:!1,status:t,variant:n,id:d==null?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:c,children:[s.jsx(n_,{children:u}),s.jsxs(F.div,{flex:"1",maxWidth:"100%",children:[i&&s.jsx(r_,{id:d==null?void 0:d.title,children:i}),l&&s.jsx(i_,{id:d==null?void 0:d.description,display:"block",children:l})]}),o&&s.jsx(Lm,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function o_(e={}){const{render:t,toastComponent:n=tq}=e;return i=>typeof t=="function"?t({...i,...e}):s.jsx(n,{...i,...e})}const nq={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Xr=rq(nq);function rq(e){let t=e;const n=new Set,r=i=>{t=i(t),n.forEach(o=>o())};return{getState:()=>t,subscribe:i=>(n.add(i),()=>{r(()=>e),n.delete(i)}),removeToast:(i,o)=>{r(a=>({...a,[o]:a[o].filter(l=>l.id!=i)}))},notify:(i,o)=>{const a=iq(i,o),{position:l,id:c}=a;return r(u=>{const f=l.includes("top")?[a,...u[l]??[]]:[...u[l]??[],a];return{...u,[l]:f}}),c},update:(i,o)=>{i&&r(a=>{const l={...a},{position:c,index:u}=lw(l,i);return c&&u!==-1&&(l[c][u]={...l[c][u],...o,message:o_(o)}),l})},closeAll:({positions:i}={})=>{r(o=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((c,u)=>(c[u]=o[u].map(d=>({...d,requestClose:!0})),c),{...o}))},close:i=>{r(o=>{const a=YP(o,i);return a?{...o,[a]:o[a].map(l=>l.id==i?{...l,requestClose:!0}:l)}:o})},isActive:i=>!!lw(Xr.getState(),i).position}}let pw=0;function iq(e,t={}){pw+=1;const n=t.id??pw,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Xr.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[a_,oq]=Te({strict:!1,name:"PortalContext"}),Cb="chakra-portal",aq=".chakra-portal",sq=e=>s.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),lq=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=m.useState(null),o=m.useRef(null),[,a]=m.useState({});m.useEffect(()=>a({}),[]);const l=oq(),c=UF();ti(()=>{if(!r)return;const d=r.ownerDocument,f=t?l??d.body:d.body;if(!f)return;o.current=d.createElement("div"),o.current.className=Cb,f.appendChild(o.current),a({});const p=o.current;return()=>{f.contains(p)&&f.removeChild(p)}},[r]);const u=c!=null&&c.zIndex?s.jsx(sq,{zIndex:c==null?void 0:c.zIndex,children:n}):n;return o.current?m1.createPortal(s.jsx(a_,{value:o.current,children:u}),o.current):s.jsx("span",{ref:d=>{d&&i(d)}})},cq=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,i=n.current,o=i??(typeof window<"u"?document.body:void 0),a=m.useMemo(()=>{const c=i==null?void 0:i.ownerDocument.createElement("div");return c&&(c.className=Cb),c},[i]),[,l]=m.useState({});return ti(()=>l({}),[]),ti(()=>{if(!(!a||!o))return o.appendChild(a),()=>{o.removeChild(a)}},[a,o]),o&&a?m1.createPortal(s.jsx(a_,{value:r?a:null,children:t}),a):null};function El(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?s.jsx(cq,{containerRef:n,...r}):s.jsx(lq,{...r})}El.className=Cb;El.selector=aq;El.displayName="Portal";const[uq,dq]=Te({name:"ToastOptionsContext",strict:!1}),fq=e=>{const t=m.useSyncExternalStore(Xr.subscribe,Xr.getState,Xr.getState),{motionVariants:n,component:r=QP,portalProps:i,animatePresenceProps:o}=e,l=Object.keys(t).map(c=>{const u=t[c];return s.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${c}`,"aria-hidden":!u.length,id:`chakra-toast-manager-${c}`,style:kH(c),children:s.jsx(Ni,{...o,initial:!1,children:u.map(d=>s.jsx(r,{motionVariants:n,...d},d.id))})},c)});return s.jsx(El,{...i,children:l})},pq=e=>function({children:n,theme:r=e,toastOptions:i,...o}){return s.jsxs(qF,{theme:r,...o,children:[s.jsx(uq,{value:i==null?void 0:i.defaultOptions,children:n}),s.jsx(fq,{...i})]})},mq=pq(ca);function mw(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}const hq=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function hw(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function gw(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}const E0=typeof window<"u"?m.useLayoutEffect:m.useEffect,vw=e=>e;var gq=Object.defineProperty,vq=(e,t,n)=>t in e?gq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ct=(e,t,n)=>(vq(e,typeof t!="symbol"?t+"":t,n),n);class yq{constructor(){Ct(this,"descendants",new Map),Ct(this,"register",t=>{if(t!=null)return hq(t)?this.registerNode(t):n=>{this.registerNode(n,t)}}),Ct(this,"unregister",t=>{this.descendants.delete(t);const n=mw(Array.from(this.descendants.keys()));this.assignIndex(n)}),Ct(this,"destroy",()=>{this.descendants.clear()}),Ct(this,"assignIndex",t=>{this.descendants.forEach(n=>{const r=t.indexOf(n.node);n.index=r,n.node.dataset.index=n.index.toString()})}),Ct(this,"count",()=>this.descendants.size),Ct(this,"enabledCount",()=>this.enabledValues().length),Ct(this,"values",()=>Array.from(this.descendants.values()).sort((n,r)=>n.index-r.index)),Ct(this,"enabledValues",()=>this.values().filter(t=>!t.disabled)),Ct(this,"item",t=>{if(this.count()!==0)return this.values()[t]}),Ct(this,"enabledItem",t=>{if(this.enabledCount()!==0)return this.enabledValues()[t]}),Ct(this,"first",()=>this.item(0)),Ct(this,"firstEnabled",()=>this.enabledItem(0)),Ct(this,"last",()=>this.item(this.descendants.size-1)),Ct(this,"lastEnabled",()=>{const t=this.enabledValues().length-1;return this.enabledItem(t)}),Ct(this,"indexOf",t=>{var n;return t?((n=this.descendants.get(t))==null?void 0:n.index)??-1:-1}),Ct(this,"enabledIndexOf",t=>t==null?-1:this.enabledValues().findIndex(n=>n.node.isSameNode(t))),Ct(this,"next",(t,n=!0)=>{const r=hw(t,this.count(),n);return this.item(r)}),Ct(this,"nextEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const i=this.enabledIndexOf(r.node),o=hw(i,this.enabledCount(),n);return this.enabledItem(o)}),Ct(this,"prev",(t,n=!0)=>{const r=gw(t,this.count()-1,n);return this.item(r)}),Ct(this,"prevEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const i=this.enabledIndexOf(r.node),o=gw(i,this.enabledCount()-1,n);return this.enabledItem(o)}),Ct(this,"registerNode",(t,n)=>{if(!t||this.descendants.has(t))return;const r=Array.from(this.descendants.keys()).concat(t),i=mw(r);n!=null&&n.disabled&&(n.disabled=!!n.disabled);const o={node:t,index:-1,...n};this.descendants.set(t,o),this.assignIndex(i)})}}function bq(){const[e,t]=Te({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{const i=m.useRef(new yq);return E0(()=>()=>i.current.destroy()),i.current},i=>{const o=t(),[a,l]=m.useState(-1),c=m.useRef(null);E0(()=>()=>{c.current&&o.unregister(c.current)},[]),E0(()=>{if(!c.current)return;const d=Number(c.current.dataset.index);a!=d&&!Number.isNaN(d)&&l(d)});const u=vw(i?o.register(i):o.register);return{descendants:o,index:a,enabledIndex:o.enabledIndexOf(c.current),register:_t(u,c)}}]}const Si={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},ec={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function Av(e){switch((e==null?void 0:e.direction)??"right"){case"right":return ec.slideRight;case"left":return ec.slideLeft;case"bottom":return ec.slideDown;case"top":return ec.slideUp;default:return ec.slideRight}}const xa={enter:{duration:.2,ease:Si.easeOut},exit:{duration:.1,ease:Si.easeIn}},Lr={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},xq=e=>e!=null&&parseInt(e.toString(),10)>0,yw={exit:{height:{duration:.2,ease:Si.ease},opacity:{duration:.3,ease:Si.ease}},enter:{height:{duration:.3,ease:Si.ease},opacity:{duration:.4,ease:Si.ease}}},Sq={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:i})=>({...e&&{opacity:xq(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(n==null?void 0:n.exit)??Lr.exit(yw.exit,i)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:i})=>({...e&&{opacity:1},height:t,transitionEnd:r==null?void 0:r.enter,transition:(n==null?void 0:n.enter)??Lr.enter(yw.enter,i)})},Al=m.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:i=!0,startingHeight:o=0,endingHeight:a="auto",style:l,className:c,transition:u,transitionEnd:d,animatePresenceProps:f,...p}=e,[h,v]=m.useState(!1);m.useEffect(()=>{const S=setTimeout(()=>{v(!0)});return()=>clearTimeout(S)},[]);const b=parseFloat(o.toString())>0,x={startingHeight:o,endingHeight:a,animateOpacity:i,transition:h?u:{enter:{duration:0}},transitionEnd:{enter:d==null?void 0:d.enter,exit:r?d==null?void 0:d.exit:{...d==null?void 0:d.exit,display:b?"block":"none"}}},y=r?n:!0,g=n||r?"enter":"exit";return s.jsx(Ni,{...f,initial:!1,custom:x,children:y&&s.jsx(ir.div,{ref:t,...p,className:V("chakra-collapse",c),style:{overflow:"hidden",display:"block",...l},custom:x,variants:Sq,initial:r?"exit":!1,animate:g,exit:"exit"})})});Al.displayName="Collapse";const[wq,s_]=Te({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:""});function kq(e){const t=e.trim().split(" "),n=t[0]??"",r=t.length>1?t[t.length-1]:"";return n&&r?`${n.charAt(0)}${r.charAt(0)}`:n.charAt(0)}function l_(e){const{name:t,getInitials:n,...r}=e,i=s_();return s.jsx(F.div,{role:"img","aria-label":t,...r,__css:i.label,children:t?n==null?void 0:n(t):null})}l_.displayName="AvatarName";const c_=e=>s.jsxs(F.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[s.jsx("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),s.jsx("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]});function u_(e){const{loading:t,src:n,srcSet:r,onLoad:i,onError:o,crossOrigin:a,sizes:l,ignoreFallback:c}=e,[u,d]=m.useState("pending");m.useEffect(()=>{d(n?"loading":"pending")},[n]);const f=m.useRef(null),p=m.useCallback(()=>{if(!n)return;h();const v=new Image;v.src=n,a&&(v.crossOrigin=a),r&&(v.srcset=r),l&&(v.sizes=l),t&&(v.loading=t),v.onload=b=>{h(),d("loaded"),i==null||i(b)},v.onerror=b=>{h(),d("failed"),o==null||o(b)},f.current=v},[n,a,r,l,i,o,t]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return ti(()=>{if(!c)return u==="loading"&&p(),()=>{h()}},[u,p,c]),c?"loaded":u}const Cq=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function d_(e){const{src:t,srcSet:n,onError:r,onLoad:i,getInitials:o,name:a,borderRadius:l,loading:c,iconLabel:u,icon:d=s.jsx(c_,{}),ignoreFallback:f,referrerPolicy:p,crossOrigin:h}=e,b=u_({src:t,onError:r,crossOrigin:h,ignoreFallback:f})==="loaded";return!t||!b?a?s.jsx(l_,{className:"chakra-avatar__initials",getInitials:o,name:a}):m.cloneElement(d,{role:"img","aria-label":u}):s.jsx(F.img,{src:t,srcSet:n,alt:a??u,onLoad:i,referrerPolicy:p,crossOrigin:h??void 0,className:"chakra-avatar__img",loading:c,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:l}})}d_.displayName="AvatarImage";const jq={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},jb=W((e,t)=>{const n=tt("Avatar",e),[r,i]=m.useState(!1),{src:o,srcSet:a,name:l,showBorder:c,borderRadius:u="full",onError:d,onLoad:f,getInitials:p=kq,icon:h=s.jsx(c_,{}),iconLabel:v=" avatar",loading:b,children:x,borderColor:y,ignoreFallback:g,crossOrigin:S,referrerPolicy:w,...k}=Ie(e),C={borderRadius:u,borderWidth:c?"2px":void 0,...jq,...n.container};return y&&(C.borderColor=y),s.jsx(F.span,{ref:t,...k,className:V("chakra-avatar",e.className),"data-loaded":me(r),__css:C,children:s.jsxs(wq,{value:n,children:[s.jsx(d_,{src:o,srcSet:a,loading:b,onLoad:fe(f,()=>{i(!0)}),onError:d,getInitials:p,name:l,borderRadius:u,icon:h,iconLabel:v,ignoreFallback:g,crossOrigin:S,referrerPolicy:w}),x]})})});jb.displayName="Avatar";const Pq={"top-start":{top:"0",insetStart:"0",transform:"translate(-25%, -25%)"},"top-end":{top:"0",insetEnd:"0",transform:"translate(25%, -25%)"},"bottom-start":{bottom:"0",insetStart:"0",transform:"translate(-25%, 25%)"},"bottom-end":{bottom:"0",insetEnd:"0",transform:"translate(25%, 25%)"}},f_=W(function(t,n){const{placement:r="bottom-end",className:i,...o}=t,a=s_(),c={position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",...Pq[r],...a.badge};return s.jsx(F.div,{ref:n,...o,className:V("chakra-avatar__badge",i),__css:c})});f_.displayName="AvatarBadge";const Bt=W(function(t,n){const r=or("Badge",t),{className:i,...o}=Ie(t);return s.jsx(F.span,{ref:n,className:V("chakra-badge",t.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});Bt.displayName="Badge";const Z=F("div");Z.displayName="Box";const[_q,Tq]=Te({strict:!1,name:"ButtonGroupContext"});function vc(e){const{children:t,className:n,...r}=e,i=m.isValidElement(t)?m.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=V("chakra-button__icon",n);return s.jsx(F.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:o,children:i})}vc.displayName="ButtonIcon";function $v(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=s.jsx(un,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:a,...l}=e,c=V("chakra-button__spinner",o),u=n==="start"?"marginEnd":"marginStart",d=m.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,u,r]);return s.jsx(F.div,{className:c,...l,__css:d,children:i})}$v.displayName="ButtonSpinner";function Eq(e){const[t,n]=m.useState(!e);return{ref:m.useCallback(o=>{o&&n(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}const he=W((e,t)=>{const n=Tq(),r=or("Button",{...n,...e}),{isDisabled:i=n==null?void 0:n.isDisabled,isLoading:o,isActive:a,children:l,leftIcon:c,rightIcon:u,loadingText:d,iconSpacing:f="0.5rem",type:p,spinner:h,spinnerPlacement:v="start",className:b,as:x,shouldWrapChildren:y,...g}=Ie(e),S=m.useMemo(()=>{const P={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:P}}},[r,n]),{ref:w,type:k}=Eq(x),C={rightIcon:u,leftIcon:c,iconSpacing:f,children:l,shouldWrapChildren:y};return s.jsxs(F.button,{disabled:i||o,ref:b1(t,w),as:x,type:p??k,"data-active":me(a),"data-loading":me(o),__css:S,className:V("chakra-button",b),...g,children:[o&&v==="start"&&s.jsx($v,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:h}),o?d||s.jsx(F.span,{opacity:0,children:s.jsx(bw,{...C})}):s.jsx(bw,{...C}),o&&v==="end"&&s.jsx($v,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:h})]})});he.displayName="Button";function bw(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i,shouldWrapChildren:o}=e;return o?s.jsxs("span",{style:{display:"contents"},children:[t&&s.jsx(vc,{marginEnd:i,children:t}),r,n&&s.jsx(vc,{marginStart:i,children:n})]}):s.jsxs(s.Fragment,{children:[t&&s.jsx(vc,{marginEnd:i,children:t}),r,n&&s.jsx(vc,{marginStart:i,children:n})]})}const Aq={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},$q={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},Nm=W(function(t,n){const{size:r,colorScheme:i,variant:o,className:a,spacing:l="0.5rem",isAttached:c,isDisabled:u,orientation:d="horizontal",...f}=t,p=V("chakra-button__group",a),h=m.useMemo(()=>({size:r,colorScheme:i,variant:o,isDisabled:u}),[r,i,o,u]);let v={display:"inline-flex",...c?Aq[d]:$q[d](l)};const b=d==="vertical";return s.jsx(_q,{value:h,children:s.jsx(F.div,{ref:n,role:"group",__css:v,className:p,"data-attached":c?"":void 0,"data-orientation":d,flexDir:b?"column":void 0,...f})})});Nm.displayName="ButtonGroup";const xn=W((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":o,...a}=e,l=n||r,c=m.isValidElement(l)?m.cloneElement(l,{"aria-hidden":!0,focusable:!1}):null;return s.jsx(he,{px:"0",py:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...a,children:c})});xn.displayName="IconButton";const[zq,Iq]=Or("Card"),Pb=W(function(t,n){const{className:r,children:i,direction:o="column",justify:a,align:l,...c}=Ie(t),u=tt("Card",t);return s.jsx(F.div,{ref:n,className:V("chakra-card",r),__css:{display:"flex",flexDirection:o,justifyContent:a,alignItems:l,position:"relative",minWidth:0,wordWrap:"break-word",...u.container},...c,children:s.jsx(zq,{value:u,children:i})})}),_b=W(function(t,n){const{className:r,...i}=t,o=Iq();return s.jsx(F.div,{ref:n,className:V("chakra-card__body",r),__css:o.body,...i})}),p_=F("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});p_.displayName="Center";const Rq={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};W(function(t,n){const{axis:r="both",...i}=t;return s.jsx(F.div,{ref:n,__css:Rq[r],...i,position:"absolute"})});var Mq=()=>typeof document<"u",xw=!1,td=null,Ia=!1,zv=!1,Iv=new Set;function Tb(e,t){Iv.forEach(n=>n(e,t))}var Lq=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function Nq(e){return!(e.metaKey||!Lq&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Sw(e){Ia=!0,Nq(e)&&(td="keyboard",Tb("keyboard",e))}function Ja(e){if(td="pointer",e.type==="mousedown"||e.type==="pointerdown"){Ia=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;Tb("pointer",e)}}function Dq(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function Oq(e){Dq(e)&&(Ia=!0,td="virtual")}function Fq(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(!Ia&&!zv&&(td="virtual",Tb("virtual",e)),Ia=!1,zv=!1)}function Bq(){Ia=!1,zv=!0}function ww(){return td!=="pointer"}function Wq(){if(!Mq()||xw)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){Ia=!0,e.apply(this,n)},document.addEventListener("keydown",Sw,!0),document.addEventListener("keyup",Sw,!0),document.addEventListener("click",Oq,!0),window.addEventListener("focus",Fq,!0),window.addEventListener("blur",Bq,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Ja,!0),document.addEventListener("pointermove",Ja,!0),document.addEventListener("pointerup",Ja,!0)):(document.addEventListener("mousedown",Ja,!0),document.addEventListener("mousemove",Ja,!0),document.addEventListener("mouseup",Ja,!0)),xw=!0}function m_(e){Wq(),e(ww());const t=()=>e(ww());return Iv.add(t),()=>{Iv.delete(t)}}const[Vq,h_]=Te({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[Uq,nd]=Te({strict:!1,name:"FormControlContext"});function Hq(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:o,...a}=e,l=m.useId(),c=t||`field-${l}`,u=`${c}-label`,d=`${c}-feedback`,f=`${c}-helptext`,[p,h]=m.useState(!1),[v,b]=m.useState(!1),[x,y]=m.useState(!1),g=m.useCallback((P={},j=null)=>({id:f,...P,ref:_t(j,R=>{R&&b(!0)})}),[f]),S=m.useCallback((P={},j=null)=>({...P,ref:j,"data-focus":me(x),"data-disabled":me(i),"data-invalid":me(r),"data-readonly":me(o),id:P.id!==void 0?P.id:u,htmlFor:P.htmlFor!==void 0?P.htmlFor:c}),[c,i,x,r,o,u]),w=m.useCallback((P={},j=null)=>({id:d,...P,ref:_t(j,R=>{R&&h(!0)}),"aria-live":"polite"}),[d]),k=m.useCallback((P={},j=null)=>({...P,...a,ref:j,role:"group","data-focus":me(x),"data-disabled":me(i),"data-invalid":me(r),"data-readonly":me(o)}),[a,i,x,r,o]),C=m.useCallback((P={},j=null)=>({...P,ref:j,role:"presentation","aria-hidden":!0,children:P.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!o,isDisabled:!!i,isFocused:!!x,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:p,setHasFeedbackText:h,hasHelpText:v,setHasHelpText:b,id:c,labelId:u,feedbackId:d,helpTextId:f,htmlProps:a,getHelpTextProps:g,getErrorMessageProps:w,getRootProps:k,getLabelProps:S,getRequiredIndicatorProps:C}}const ke=W(function(t,n){const r=tt("Form",t),i=Ie(t),{getRootProps:o,htmlProps:a,...l}=Hq(i),c=V("chakra-form-control",t.className);return s.jsx(Uq,{value:l,children:s.jsx(Vq,{value:r,children:s.jsx(F.div,{...o({},n),className:c,__css:r.container})})})});ke.displayName="FormControl";const Qr=W(function(t,n){const r=nd(),i=h_(),o=V("chakra-form__helper-text",t.className);return s.jsx(F.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:i.helperText,className:o})});Qr.displayName="FormHelperText";function g_(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:i,...o}=Eb(e);return{...o,disabled:t,readOnly:r,required:i,"aria-invalid":yr(n),"aria-required":yr(i),"aria-readonly":yr(r)}}function Eb(e){const t=nd(),{id:n,disabled:r,readOnly:i,required:o,isRequired:a,isInvalid:l,isReadOnly:c,isDisabled:u,onFocus:d,onBlur:f,...p}=e,h=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.hasFeedbackText&&(t!=null&&t.isInvalid)&&h.push(t.feedbackId),t!=null&&t.hasHelpText&&h.push(t.helpTextId),{...p,"aria-describedby":h.join(" ")||void 0,id:n??(t==null?void 0:t.id),isDisabled:r??u??(t==null?void 0:t.isDisabled),isReadOnly:i??c??(t==null?void 0:t.isReadOnly),isRequired:o??a??(t==null?void 0:t.isRequired),isInvalid:l??(t==null?void 0:t.isInvalid),onFocus:fe(t==null?void 0:t.onFocus,d),onBlur:fe(t==null?void 0:t.onBlur,f)}}const v_={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function qq(e={}){const t=Eb(e),{isDisabled:n,isReadOnly:r,isRequired:i,isInvalid:o,id:a,onBlur:l,onFocus:c,"aria-describedby":u}=t,{defaultChecked:d,isChecked:f,isFocusable:p,onChange:h,isIndeterminate:v,name:b,value:x,tabIndex:y=void 0,"aria-label":g,"aria-labelledby":S,"aria-invalid":w,...k}=e,C=fm(k,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),P=Gt(h),j=Gt(l),R=Gt(c),[T,$]=m.useState(!1),[K,X]=m.useState(!1),[M,N]=m.useState(!1),O=m.useRef(!1);m.useEffect(()=>m_(se=>{O.current=se}),[]);const L=m.useRef(null),[I,D]=m.useState(!0),[q,J]=m.useState(!!d),le=f!==void 0,oe=le?f:q,Q=m.useCallback(se=>{if(r||n){se.preventDefault();return}le||J(oe?se.currentTarget.checked:v?!0:se.currentTarget.checked),P==null||P(se)},[r,n,oe,le,v,P]);ti(()=>{L.current&&(L.current.indeterminate=!!v)},[v]),du(()=>{n&&$(!1)},[n,$]),ti(()=>{const se=L.current;if(!(se!=null&&se.form))return;const nt=()=>{J(!!d)};return se.form.addEventListener("reset",nt),()=>{var Oe;return(Oe=se.form)==null?void 0:Oe.removeEventListener("reset",nt)}},[]);const ae=n&&!p,ce=m.useCallback(se=>{se.key===" "&&N(!0)},[N]),Me=m.useCallback(se=>{se.key===" "&&N(!1)},[N]);ti(()=>{if(!L.current)return;L.current.checked!==oe&&J(L.current.checked)},[L.current]);const Ze=m.useCallback((se={},nt=null)=>{const Oe=kt=>{T&&kt.preventDefault(),N(!0)};return{...se,ref:nt,"data-active":me(M),"data-hover":me(K),"data-checked":me(oe),"data-focus":me(T),"data-focus-visible":me(T&&O.current),"data-indeterminate":me(v),"data-disabled":me(n),"data-invalid":me(o),"data-readonly":me(r),"aria-hidden":!0,onMouseDown:fe(se.onMouseDown,Oe),onMouseUp:fe(se.onMouseUp,()=>N(!1)),onMouseEnter:fe(se.onMouseEnter,()=>X(!0)),onMouseLeave:fe(se.onMouseLeave,()=>X(!1))}},[M,oe,n,T,K,v,o,r]),ne=m.useCallback((se={},nt=null)=>({...se,ref:nt,"data-active":me(M),"data-hover":me(K),"data-checked":me(oe),"data-focus":me(T),"data-focus-visible":me(T&&O.current),"data-indeterminate":me(v),"data-disabled":me(n),"data-invalid":me(o),"data-readonly":me(r)}),[M,oe,n,T,K,v,o,r]),re=m.useCallback((se={},nt=null)=>({...C,...se,ref:_t(nt,Oe=>{Oe&&D(Oe.tagName==="LABEL")}),onClick:fe(se.onClick,()=>{var Oe;I||((Oe=L.current)==null||Oe.click(),requestAnimationFrame(()=>{var kt;(kt=L.current)==null||kt.focus({preventScroll:!0})}))}),"data-disabled":me(n),"data-checked":me(oe),"data-invalid":me(o)}),[C,n,oe,o,I]),_e=m.useCallback((se={},nt=null)=>({...se,ref:_t(L,nt),type:"checkbox",name:b,value:x,id:a,tabIndex:y,onChange:fe(se.onChange,Q),onBlur:fe(se.onBlur,j,()=>$(!1)),onFocus:fe(se.onFocus,R,()=>$(!0)),onKeyDown:fe(se.onKeyDown,ce),onKeyUp:fe(se.onKeyUp,Me),required:i,checked:oe,disabled:ae,readOnly:r,"aria-label":g,"aria-labelledby":S,"aria-invalid":w?!!w:o,"aria-describedby":u,"aria-disabled":n,"aria-checked":v?"mixed":oe,style:v_}),[b,x,a,y,Q,j,R,ce,Me,i,oe,ae,r,g,S,w,o,u,n,v]),ve=m.useCallback((se={},nt=null)=>({...se,ref:nt,onMouseDown:fe(se.onMouseDown,Gq),"data-disabled":me(n),"data-checked":me(oe),"data-invalid":me(o)}),[oe,n,o]);return{state:{isInvalid:o,isFocused:T,isChecked:oe,isActive:M,isHovered:K,isIndeterminate:v,isDisabled:n,isReadOnly:r,isRequired:i},getRootProps:re,getCheckboxProps:Ze,getIndicatorProps:ne,getInputProps:_e,getLabelProps:ve,htmlProps:C}}function Gq(e){e.preventDefault(),e.stopPropagation()}const Kq=new Set(["dark","light","system"]);function Xq(e){let t=e;return Kq.has(t)||(t="light"),t}function Yq(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,i=Xq(t),o=n==="cookie",a=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${i}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); + `,l=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${i}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); + `;return`!${o?a:l}`.trim()}function Qq(e={}){const{nonce:t}=e;return s.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:Yq(e)}})}const Tt=W(function(t,n){const{className:r,centerContent:i,...o}=Ie(t),a=or("Container",t);return s.jsx(F.div,{ref:n,className:V("chakra-container",r),...o,__css:{...a,...i&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});Tt.displayName="Container";const Sa=W(function(t,n){const{borderLeftWidth:r,borderBottomWidth:i,borderTopWidth:o,borderRightWidth:a,borderWidth:l,borderStyle:c,borderColor:u,...d}=or("Divider",t),{className:f,orientation:p="horizontal",__css:h,...v}=Ie(t),b={vertical:{borderLeftWidth:r||a||l||"1px",height:"100%"},horizontal:{borderBottomWidth:i||o||l||"1px",width:"100%"}};return s.jsx(F.hr,{ref:n,"aria-orientation":p,...v,__css:{...d,border:"0",borderColor:u,borderStyle:c,...b[p],...h},className:V("chakra-divider",f)})});Sa.displayName="Divider";const[Zq,y_]=Te({name:"EditableStylesContext",errorMessage:`useEditableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[Jq,Ab]=Te({name:"EditableContext",errorMessage:"useEditableContext: context is undefined. Seems you forgot to wrap the editable components in ``"});function kw(e,t){return e?e===t||e.contains(t):!1}function eG(e={}){const{onChange:t,onCancel:n,onSubmit:r,onBlur:i,value:o,isDisabled:a,defaultValue:l,startWithEditView:c,isPreviewFocusable:u=!0,submitOnBlur:d=!0,selectAllOnFocus:f=!0,placeholder:p,onEdit:h,finalFocusRef:v,...b}=e,x=Gt(h),y=!!(c&&!a),[g,S]=m.useState(y),[w,k]=Sj({defaultValue:l||"",value:o,onChange:t}),[C,P]=m.useState(w),j=m.useRef(null),R=m.useRef(null),T=m.useRef(null),$=m.useRef(null),K=m.useRef(null);kz({ref:j,enabled:g,elements:[$,K]});const X=!g&&!a;ti(()=>{var ne,re;g&&((ne=j.current)==null||ne.focus(),f&&((re=j.current)==null||re.select()))},[]),du(()=>{var ne,re,_e,ve;if(!g){v?(ne=v.current)==null||ne.focus():(re=T.current)==null||re.focus();return}(_e=j.current)==null||_e.focus(),f&&((ve=j.current)==null||ve.select()),x==null||x()},[g,x,f]);const M=m.useCallback(()=>{X&&S(!0)},[X]),N=m.useCallback(()=>{P(w)},[w]),O=m.useCallback(()=>{S(!1),k(C),n==null||n(C),i==null||i(C)},[n,i,k,C]),L=m.useCallback(()=>{S(!1),P(w),r==null||r(w),i==null||i(C)},[w,r,i,C]);m.useEffect(()=>{if(g)return;const ne=j.current;(ne==null?void 0:ne.ownerDocument.activeElement)===ne&&(ne==null||ne.blur())},[g]);const I=m.useCallback(ne=>{k(ne.currentTarget.value)},[k]),D=m.useCallback(ne=>{const re=ne.key,ve={Escape:O,Enter:Ke=>{!Ke.shiftKey&&!Ke.metaKey&&L()}}[re];ve&&(ne.preventDefault(),ve(ne))},[O,L]),q=m.useCallback(ne=>{const re=ne.key,ve={Escape:O}[re];ve&&(ne.preventDefault(),ve(ne))},[O]),J=w.length===0,le=m.useCallback(ne=>{if(!g)return;const re=ne.currentTarget.ownerDocument,_e=ne.relatedTarget??re.activeElement,ve=kw($.current,_e),Ke=kw(K.current,_e);!ve&&!Ke&&(d?L():O())},[d,L,O,g]),oe=m.useCallback((ne={},re=null)=>{const _e=X&&u?0:void 0;return{...ne,ref:_t(re,R),children:J?p:w,hidden:g,"aria-disabled":yr(a),tabIndex:_e,onFocus:fe(ne.onFocus,M,N)}},[a,g,X,u,J,M,N,p,w]),Q=m.useCallback((ne={},re=null)=>({...ne,hidden:!g,placeholder:p,ref:_t(re,j),disabled:a,"aria-disabled":yr(a),value:w,onBlur:fe(ne.onBlur,le),onChange:fe(ne.onChange,I),onKeyDown:fe(ne.onKeyDown,D),onFocus:fe(ne.onFocus,N)}),[a,g,le,I,D,N,p,w]),ae=m.useCallback((ne={},re=null)=>({...ne,hidden:!g,placeholder:p,ref:_t(re,j),disabled:a,"aria-disabled":yr(a),value:w,onBlur:fe(ne.onBlur,le),onChange:fe(ne.onChange,I),onKeyDown:fe(ne.onKeyDown,q),onFocus:fe(ne.onFocus,N)}),[a,g,le,I,q,N,p,w]),ce=m.useCallback((ne={},re=null)=>({"aria-label":"Edit",...ne,type:"button",onClick:fe(ne.onClick,M),ref:_t(re,T),disabled:a}),[M,a]),Me=m.useCallback((ne={},re=null)=>({...ne,"aria-label":"Submit",ref:_t(K,re),type:"button",onClick:fe(ne.onClick,L),disabled:a}),[L,a]),Ze=m.useCallback((ne={},re=null)=>({"aria-label":"Cancel",id:"cancel",...ne,ref:_t($,re),type:"button",onClick:fe(ne.onClick,O),disabled:a}),[O,a]);return{isEditing:g,isDisabled:a,isValueEmpty:J,value:w,onEdit:M,onCancel:O,onSubmit:L,getPreviewProps:oe,getInputProps:Q,getTextareaProps:ae,getEditButtonProps:ce,getSubmitButtonProps:Me,getCancelButtonProps:Ze,htmlProps:b}}const Wf=W(function(t,n){const r=tt("Editable",t),i=Ie(t),{htmlProps:o,...a}=eG(i),{isEditing:l,onSubmit:c,onCancel:u,onEdit:d}=a,f=V("chakra-editable",t.className),p=yn(t.children,{isEditing:l,onSubmit:c,onCancel:u,onEdit:d});return s.jsx(Jq,{value:a,children:s.jsx(Zq,{value:r,children:s.jsx(F.div,{ref:n,...o,className:f,children:p})})})});Wf.displayName="Editable";const b_={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent"},Vf=W(function(t,n){const{getInputProps:r}=Ab(),i=y_(),o=r(t,n),a=V("chakra-editable__input",t.className);return s.jsx(F.input,{...o,__css:{outline:0,...b_,...i.input},className:a})});Vf.displayName="EditableInput";const Uf=W(function(t,n){const{getPreviewProps:r}=Ab(),i=y_(),o=r(t,n),a=V("chakra-editable__preview",t.className);return s.jsx(F.span,{...o,__css:{cursor:"text",display:"inline-block",...b_,...i.preview},className:a})});Uf.displayName="EditablePreview";function tG(){const{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}=Ab();return{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}}function yc(e){return typeof e=="function"}function nG(...e){return t=>e.reduce((n,r)=>r(n),t)}const rG=e=>function(...n){let r=[...n],i=n[n.length-1];return $O(i)&&r.length>1?r=r.slice(0,r.length-1):i=e,nG(...r.map(o=>a=>yc(o)?o(a):iG(a,o)))(i)},$b=rG(ca);function iG(...e){return gr({},...e,x_)}function x_(e,t,n,r){if((yc(e)||yc(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...i)=>{const o=yc(e)?e(...i):e,a=yc(t)?t(...i):t;return gr({},o,a,x_)};if(Wt(e)&&Jg(t)||Jg(e)&&Wt(t))return t}const gt=W(function(t,n){const{direction:r,align:i,justify:o,wrap:a,basis:l,grow:c,shrink:u,...d}=t,f={display:"flex",flexDirection:r,alignItems:i,justifyContent:o,flexWrap:a,flexBasis:l,flexGrow:c,flexShrink:u};return s.jsx(F.div,{ref:n,__css:f,...d})});gt.displayName="Flex";function oG(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Rv="data-focus-lock",S_="data-focus-lock-disabled",aG="data-no-focus-lock",sG="data-autofocus-inside",lG="data-no-autofocus";function A0(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function cG(e,t){var n=m.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var uG=typeof window<"u"?m.useLayoutEffect:m.useEffect,Cw=new WeakMap;function w_(e,t){var n=cG(null,function(r){return e.forEach(function(i){return A0(i,r)})});return uG(function(){var r=Cw.get(n);if(r){var i=new Set(r),o=new Set(e),a=n.current;i.forEach(function(l){o.has(l)||A0(l,null)}),o.forEach(function(l){i.has(l)||A0(l,a)})}Cw.set(n,e)},[e]),n}var $0={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Yr=function(){return Yr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r=0}).sort(AG)},zG=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Lb=zG.join(","),IG="".concat(Lb,", [data-focus-guard]"),D_=function(e,t){return li((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?IG:Lb)?[r]:[],D_(r))},[])},RG=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?pl([e.contentDocument.body],t):[e]},pl=function(e,t){return e.reduce(function(n,r){var i,o=D_(r,t),a=(i=[]).concat.apply(i,o.map(function(l){return RG(l,t)}));return n.concat(a,r.parentNode?li(r.parentNode.querySelectorAll(Lb)).filter(function(l){return l===r}):[])},[])},MG=function(e){var t=e.querySelectorAll("[".concat(sG,"]"));return li(t).map(function(n){return pl([n])}).reduce(function(n,r){return n.concat(r)},[])},Nb=function(e,t){return li(e).filter(function(n){return I_(t,n)}).filter(function(n){return _G(n)})},jw=function(e,t){return t===void 0&&(t=new Map),li(e).filter(function(n){return R_(t,n)})},Db=function(e,t,n){return Mb(Nb(pl(e,n),t),!0,n)},Cu=function(e,t){return Mb(Nb(pl(e),t),!1)},LG=function(e,t){return Nb(MG(e),t)},wa=function(e,t){return e.shadowRoot?wa(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:li(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var i=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return i?wa(i,t):!1}return wa(n,t)})},NG=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(a,l){return!t.has(l)})},O_=function(e){return e.parentNode?O_(e.parentNode):e},Ob=function(e){var t=Ra(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(Rv);return n.push.apply(n,i?NG(li(O_(r).querySelectorAll("[".concat(Rv,'="').concat(i,'"]:not([').concat(S_,'="disabled"])')))):[r]),n},[])},DG=function(e){try{return e()}catch{return}},ju=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?ju(t.shadowRoot):t instanceof HTMLIFrameElement&&DG(function(){return t.contentWindow.document})?ju(t.contentWindow.document):t}},OG=function(e,t){return e===t},FG=function(e,t){return!!li(e.querySelectorAll("iframe")).some(function(n){return OG(n,t)})},F_=function(e,t){return t===void 0&&(t=ju(A_(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:Ob(e).some(function(n){return wa(n,t)||FG(n,t)})},BG=function(e){e===void 0&&(e=document);var t=ju(e);return t?li(e.querySelectorAll("[".concat(aG,"]"))).some(function(n){return wa(n,t)}):!1},WG=function(e,t){return t.filter(N_).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},Fb=function(e,t){return N_(e)&&e.name?WG(e,t):e},VG=function(e){var t=new Set;return e.forEach(function(n){return t.add(Fb(n,e))}),e.filter(function(n){return t.has(n)})},Pw=function(e){return e[0]&&e.length>1?Fb(e[0],e):e[0]},_w=function(e,t){return e.indexOf(Fb(t,e))},Nv="NEW_FOCUS",UG=function(e,t,n,r,i){var o=e.length,a=e[0],l=e[o-1],c=Rb(r);if(!(r&&e.indexOf(r)>=0)){var u=r!==void 0?n.indexOf(r):-1,d=i?n.indexOf(i):u,f=i?e.indexOf(i):-1;if(u===-1)return f!==-1?f:Nv;if(f===-1)return Nv;var p=u-d,h=n.indexOf(a),v=n.indexOf(l),b=VG(n),x=r!==void 0?b.indexOf(r):-1,y=i?b.indexOf(i):x,g=b.filter(function(j){return j.tabIndex>=0}),S=r!==void 0?g.indexOf(r):-1,w=i?g.indexOf(i):S,k=S>=0&&w>=0?w-S:y-x;if(!p&&f>=0||t.length===0)return f;var C=_w(e,t[0]),P=_w(e,t[t.length-1]);if(u<=h&&c&&Math.abs(p)>1)return P;if(u>=v&&c&&Math.abs(p)>1)return C;if(p&&Math.abs(k)>1)return f;if(u<=h)return P;if(u>v)return C;if(p)return Math.abs(p)>1?f:(o+f+p)%o}},HG=function(e){return function(t){var n,r=(n=M_(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},Tw=function(e,t,n){var r=e.map(function(o){var a=o.node;return a}),i=jw(r.filter(HG(n)));return i&&i.length?Pw(i):Pw(jw(t))},Dv=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Dv(e.parentNode.host||e.parentNode,t),t},z0=function(e,t){for(var n=Dv(e),r=Dv(t),i=0;i=0)return o}return!1},B_=function(e,t,n){var r=Ra(e),i=Ra(t),o=r[0],a=!1;return i.filter(Boolean).forEach(function(l){a=z0(a||l,l)||a,n.filter(Boolean).forEach(function(c){var u=z0(o,c);u&&(!a||wa(u,a)?a=u:a=z0(u,a))})}),a},Ew=function(e,t){return e.reduce(function(n,r){return n.concat(LG(r,t))},[])},qG=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(EG)},GG=function(e,t){var n=ju(Ra(e).length>0?document:A_(e).ownerDocument),r=Ob(e).filter(Lv),i=B_(n||e,e,r),o=new Map,a=Cu(r,o),l=a.filter(function(v){var b=v.node;return Lv(b)});if(l[0]){var c=Cu([i],o).map(function(v){var b=v.node;return b}),u=qG(c,l),d=u.map(function(v){var b=v.node;return b}),f=u.filter(function(v){var b=v.tabIndex;return b>=0}).map(function(v){var b=v.node;return b}),p=UG(d,f,c,n,t);if(p===Nv){var h=Tw(a,f,Ew(r,o))||Tw(a,d,Ew(r,o));if(h)return{node:h};console.warn("focus-lock: cannot find any node to move focus into");return}return p===void 0?p:u[p]}},KG=function(e){var t=Ob(e).filter(Lv),n=B_(e,e,t),r=Mb(pl([n],!0),!0,!0),i=pl(t,!1);return r.map(function(o){var a=o.node,l=o.index;return{node:a,index:l,lockItem:i.indexOf(a)>=0,guard:Rb(a)}})},Bb=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},I0=0,R0=!1,W_=function(e,t,n){n===void 0&&(n={});var r=GG(e,t);if(!R0&&r){if(I0>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),R0=!0,setTimeout(function(){R0=!1},1);return}I0++,Bb(r.node,n.focusOptions),I0--}};function tc(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var XG=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:tc(n),parent:tc(n.parentElement),left:tc(n.previousElementSibling),right:tc(n.nextElementSibling)}),n=n.parentElement;return{element:tc(e),stack:t,ownerDocument:e.ownerDocument}},YG=function(e){var t,n,r,i,o;if(e)for(var a=e.stack,l=e.ownerDocument,c=new Map,u=0,d=a;u-1&&(x.filter(function(g){var S=g.guard,w=g.node;return S&&w.dataset.focusAutoGuard}).forEach(function(g){var S=g.node;return S.removeAttribute("tabIndex")}),$w(y,x.length,1,x),$w(y,-1,-1,x))}}}return t},K_=function(t){Dp()&&t&&(t.stopPropagation(),t.preventDefault())},Ub=function(){return Wb(Dp)},mK=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||lK(r,n)},hK=function(){return null},X_=function(){Vb=!0},Y_=function(){Vb=!1,Pu="just",Wb(function(){Pu="meanwhile"})},gK=function(){document.addEventListener("focusin",K_),document.addEventListener("focusout",Ub),window.addEventListener("focus",X_),window.addEventListener("blur",Y_)},vK=function(){document.removeEventListener("focusin",K_),document.removeEventListener("focusout",Ub),window.removeEventListener("focus",X_),window.removeEventListener("blur",Y_)};function yK(e){return e.filter(function(t){var n=t.disabled;return!n})}var Q_={moveFocusInside:W_,focusInside:F_,focusNextElement:eK,focusPrevElement:tK,focusFirstElement:nK,focusLastElement:rK,captureFocusRestore:V_};function bK(e){var t=e.slice(-1)[0];t&&!Xs&&gK();var n=Xs,r=n&&t&&t.id===n.id;Xs=t,n&&!r&&(n.onDeactivation(),e.filter(function(i){var o=i.id;return o===n.id}).length||n.returnFocus(!t)),t?(zn=null,(!r||n.observed!==t.observed)&&t.onActivation(Q_),Dp(),Wb(Dp)):(vK(),zn=null)}T_.assignSyncMedium(mK);E_.assignMedium(Ub);pG.assignMedium(function(e){return e(Q_)});const xK=SG(yK,bK)(hK);var Ov=m.forwardRef(function(t,n){return rn.createElement(Ib,za({sideCar:xK,ref:n},t))}),Z_=Ib.propTypes||{};Z_.sideCar;oG(Z_,["sideCar"]);Ov.propTypes={};const SK=Ov.default??Ov,J_=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:o,isDisabled:a,autoFocus:l,persistentFocus:c,lockFocusAcrossFrames:u}=e,d=m.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&iz(r.current).length===0&&requestAnimationFrame(()=>{var v;(v=r.current)==null||v.focus()})},[t,r]),f=m.useCallback(()=>{var h;(h=n==null?void 0:n.current)==null||h.focus()},[n]),p=i&&!n;return s.jsx(SK,{crossFrame:u,persistentFocus:c,autoFocus:l,disabled:a,onActivation:d,onDeactivation:f,returnFocus:p,children:o})};J_.displayName="FocusLock";const Ce=W(function(t,n){const r=or("FormLabel",t),i=Ie(t),{className:o,children:a,requiredIndicator:l=s.jsx(eT,{}),optionalIndicator:c=null,...u}=i,d=nd(),f=(d==null?void 0:d.getLabelProps(u,n))??{ref:n,...u};return s.jsxs(F.label,{...f,className:V("chakra-form__label",i.className),__css:{display:"block",textAlign:"start",...r},children:[a,d!=null&&d.isRequired?l:c]})});Ce.displayName="FormLabel";const eT=W(function(t,n){const r=nd(),i=h_();if(!(r!=null&&r.isRequired))return null;const o=V("chakra-form__required-indicator",t.className);return s.jsx(F.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:i.requiredIndicator,className:o})});eT.displayName="RequiredIndicator";const tT=W(function(t,n){const{templateAreas:r,gap:i,rowGap:o,columnGap:a,column:l,row:c,autoFlow:u,autoRows:d,templateRows:f,autoColumns:p,templateColumns:h,...v}=t,b={display:"grid",gridTemplateAreas:r,gridGap:i,gridRowGap:o,gridColumnGap:a,gridAutoColumns:p,gridColumn:l,gridRow:c,gridAutoFlow:u,gridAutoRows:d,gridTemplateRows:f,gridTemplateColumns:h};return s.jsx(F.div,{ref:n,__css:b,...v})});tT.displayName="Grid";const Yt=W(function(t,n){const{columns:r,spacingX:i,spacingY:o,spacing:a,minChildWidth:l,...c}=t,u=Di(),d=l?kK(l,u):CK(r);return s.jsx(tT,{ref:n,gap:a,columnGap:i,rowGap:o,templateColumns:d,...c})});Yt.displayName="SimpleGrid";function wK(e){return typeof e=="number"?`${e}px`:e}function kK(e,t){return y1(e,n=>{const r=HH("sizes",n,wK(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function CK(e){return y1(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}function Dm(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:i={}}=e,o=m.Children.toArray(e.path),a=W((l,c)=>s.jsx(wt,{ref:c,viewBox:t,...i,...l,children:o.length?o:s.jsx("path",{fill:"currentColor",d:n})}));return a.displayName=r,a}const Fv=W(function(t,n){const{htmlWidth:r,htmlHeight:i,alt:o,...a}=t;return s.jsx("img",{width:r,height:i,ref:n,alt:o,...a})});Fv.displayName="NativeImage";const nT=W(function(t,n){const{fallbackSrc:r,fallback:i,src:o,srcSet:a,align:l,fit:c,loading:u,ignoreFallback:d,crossOrigin:f,fallbackStrategy:p="beforeLoadOrError",referrerPolicy:h,...v}=t,b=r!==void 0||i!==void 0,x=u!=null||d||!b,y=u_({...t,crossOrigin:f,ignoreFallback:x}),g=Cq(y,p),S={ref:n,objectFit:c,objectPosition:l,...x?v:fm(v,["onError","onLoad"])};return g?i||s.jsx(F.img,{as:Fv,className:"chakra-image__placeholder",src:r,...S}):s.jsx(F.img,{as:Fv,src:o,srcSet:a,crossOrigin:f,loading:u,referrerPolicy:h,className:"chakra-image",...S})});nT.displayName="Image";const mt=W(function(t,n){const{htmlSize:r,...i}=t,o=tt("Input",i),a=Ie(i),l=g_(a),c=V("chakra-input",t.className);return s.jsx(F.input,{size:r,...l,__css:o.field,ref:n,className:c})});mt.displayName="Input";mt.id="Input";const[jK,PK]=Te({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Hb=W(function(t,n){const r=tt("Input",t),{children:i,className:o,...a}=Ie(t),l=V("chakra-input__group",o),c={},u=g1(i),d=r.field;u.forEach(p=>{r&&(d&&p.type.id==="InputLeftElement"&&(c.paddingStart=d.height??d.h),d&&p.type.id==="InputRightElement"&&(c.paddingEnd=d.height??d.h),p.type.id==="InputRightAddon"&&(c.borderEndRadius=0),p.type.id==="InputLeftAddon"&&(c.borderStartRadius=0))});const f=u.map(p=>{var v,b;const h=v1({size:((v=p.props)==null?void 0:v.size)||t.size,variant:((b=p.props)==null?void 0:b.variant)||t.variant});return p.type.id!=="Input"?m.cloneElement(p,h):m.cloneElement(p,Object.assign(h,c,p.props))});return s.jsx(F.div,{className:l,ref:n,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...a,children:s.jsx(jK,{value:r,children:f})})});Hb.displayName="InputGroup";const _K=F("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Om=W(function(t,n){const{placement:r="left",...i}=t,o=PK(),a=o.field,c={[r==="left"?"insetStart":"insetEnd"]:"0",width:(a==null?void 0:a.height)??(a==null?void 0:a.h),height:(a==null?void 0:a.height)??(a==null?void 0:a.h),fontSize:a==null?void 0:a.fontSize,...o.element};return s.jsx(_K,{ref:n,__css:c,...i})});Om.id="InputElement";Om.displayName="InputElement";const qb=W(function(t,n){const{className:r,...i}=t,o=V("chakra-input__left-element",r);return s.jsx(Om,{ref:n,placement:"left",className:o,...i})});qb.id="InputLeftElement";qb.displayName="InputLeftElement";const Fm=W(function(t,n){const{className:r,...i}=t,o=V("chakra-input__right-element",r);return s.jsx(Om,{ref:n,placement:"right",className:o,...i})});Fm.id="InputRightElement";Fm.displayName="InputRightElement";const Oi=W(function(t,n){const r=or("Link",t),{className:i,isExternal:o,...a}=Ie(t);return s.jsx(F.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:n,className:V("chakra-link",i),...a,__css:r})});Oi.displayName="Link";const[TK,rT]=Te({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),$l=W(function(t,n){const r=tt("List",t),{children:i,styleType:o="none",stylePosition:a,spacing:l,...c}=Ie(t),u=g1(i),f=l?{["& > *:not(style) ~ *:not(style)"]:{mt:l}}:{};return s.jsx(TK,{value:r,children:s.jsx(F.ul,{ref:n,listStyleType:o,listStylePosition:a,role:"list",__css:{...r.container,...f},...c,children:u})})});$l.displayName="List";const EK=W((e,t)=>{const{as:n,...r}=e;return s.jsx($l,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});EK.displayName="OrderedList";const AK=W(function(t,n){const{as:r,...i}=t;return s.jsx($l,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...i})});AK.displayName="UnorderedList";const Bm=W(function(t,n){const r=rT();return s.jsx(F.li,{ref:n,...t,__css:r.item})});Bm.displayName="ListItem";const Gb=W(function(t,n){const r=rT();return s.jsx(wt,{ref:n,role:"presentation",...t,__css:r.icon})});Gb.displayName="ListIcon";function $K(e,t={}){const{ssr:n=!0,fallback:r}=t,{getWindow:i}=HF(),o=Array.isArray(e)?e:[e];let a=Array.isArray(r)?r:[r];a=a.filter(u=>u!=null);const[l,c]=m.useState(()=>o.map((u,d)=>({media:u,matches:n?!!a[d]:i().matchMedia(u).matches})));return m.useEffect(()=>{const u=i();c(o.map(p=>({media:p,matches:u.matchMedia(p).matches})));const d=o.map(p=>u.matchMedia(p)),f=p=>{c(h=>h.slice().map(v=>v.media===p.media?{...v,matches:p.matches}:v))};return d.forEach(p=>{typeof p.addListener=="function"?p.addListener(f):p.addEventListener("change",f)}),()=>{d.forEach(p=>{typeof p.removeListener=="function"?p.removeListener(f):p.removeEventListener("change",f)})}},[i]),l.map(u=>u.matches)}function zK(e){var l;const t=Wt(e)?e:{fallback:e??"base"},r=Di().__breakpoints.details.map(({minMaxQuery:c,breakpoint:u})=>({breakpoint:u,query:c.replace("@media screen and ","")})),i=r.map(c=>c.breakpoint===t.fallback),a=$K(r.map(c=>c.query),{fallback:i,ssr:t.ssr}).findIndex(c=>c==!0);return((l=r[a])==null?void 0:l.breakpoint)??t.fallback}function IK(e,t,n=yj){let r=Object.keys(e).indexOf(t);if(r!==-1)return e[t];let i=n.indexOf(t);for(;i>=0;){const o=n[i];if(e.hasOwnProperty(o)){r=i;break}i-=1}if(r!==-1){const o=n[r];return e[o]}}function Op(e,t){var l;const n=Wt(t)?t:{fallback:t??"base"},r=zK(n),i=Di();if(!r)return;const o=Array.from(((l=i.__breakpoints)==null?void 0:l.keys)||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(uz(e,o)).map(([c,u])=>[c,u])):e;return IK(a,r,o)}var On="top",wr="bottom",kr="right",Fn="left",Kb="auto",rd=[On,wr,kr,Fn],ml="start",_u="end",RK="clippingParents",iT="viewport",nc="popper",MK="reference",zw=rd.reduce(function(e,t){return e.concat([t+"-"+ml,t+"-"+_u])},[]),oT=[].concat(rd,[Kb]).reduce(function(e,t){return e.concat([t,t+"-"+ml,t+"-"+_u])},[]),LK="beforeRead",NK="read",DK="afterRead",OK="beforeMain",FK="main",BK="afterMain",WK="beforeWrite",VK="write",UK="afterWrite",HK=[LK,NK,DK,OK,FK,BK,WK,VK,UK];function si(e){return e?(e.nodeName||"").toLowerCase():null}function er(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ma(e){var t=er(e).Element;return e instanceof t||e instanceof Element}function br(e){var t=er(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Xb(e){if(typeof ShadowRoot>"u")return!1;var t=er(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function qK(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!br(o)||!si(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var l=i[a];l===!1?o.removeAttribute(a):o.setAttribute(a,l===!0?"":l)}))})}function GK(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,u){return c[u]="",c},{});!br(i)||!si(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const KK={name:"applyStyles",enabled:!0,phase:"write",fn:qK,effect:GK,requires:["computeStyles"]};function ai(e){return e.split("-")[0]}var ka=Math.max,Fp=Math.min,hl=Math.round;function Bv(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function aT(){return!/^((?!chrome|android).)*safari/i.test(Bv())}function gl(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&br(e)&&(i=e.offsetWidth>0&&hl(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&hl(r.height)/e.offsetHeight||1);var a=Ma(e)?er(e):window,l=a.visualViewport,c=!aT()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/i,d=(r.top+(c&&l?l.offsetTop:0))/o,f=r.width/i,p=r.height/o;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Yb(e){var t=gl(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function sT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Xb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ii(e){return er(e).getComputedStyle(e)}function XK(e){return["table","td","th"].indexOf(si(e))>=0}function Do(e){return((Ma(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wm(e){return si(e)==="html"?e:e.assignedSlot||e.parentNode||(Xb(e)?e.host:null)||Do(e)}function Iw(e){return!br(e)||Ii(e).position==="fixed"?null:e.offsetParent}function YK(e){var t=/firefox/i.test(Bv()),n=/Trident/i.test(Bv());if(n&&br(e)){var r=Ii(e);if(r.position==="fixed")return null}var i=Wm(e);for(Xb(i)&&(i=i.host);br(i)&&["html","body"].indexOf(si(i))<0;){var o=Ii(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function id(e){for(var t=er(e),n=Iw(e);n&&XK(n)&&Ii(n).position==="static";)n=Iw(n);return n&&(si(n)==="html"||si(n)==="body"&&Ii(n).position==="static")?t:n||YK(e)||t}function Qb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bc(e,t,n){return ka(e,Fp(t,n))}function QK(e,t,n){var r=Bc(e,t,n);return r>n?n:r}function lT(){return{top:0,right:0,bottom:0,left:0}}function cT(e){return Object.assign({},lT(),e)}function uT(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ZK=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,cT(typeof t!="number"?t:uT(t,rd))};function JK(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,l=ai(n.placement),c=Qb(l),u=[Fn,kr].indexOf(l)>=0,d=u?"height":"width";if(!(!o||!a)){var f=ZK(i.padding,n),p=Yb(o),h=c==="y"?On:Fn,v=c==="y"?wr:kr,b=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],x=a[c]-n.rects.reference[c],y=id(o),g=y?c==="y"?y.clientHeight||0:y.clientWidth||0:0,S=b/2-x/2,w=f[h],k=g-p[d]-f[v],C=g/2-p[d]/2+S,P=Bc(w,C,k),j=c;n.modifiersData[r]=(t={},t[j]=P,t.centerOffset=P-C,t)}}function eX(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||sT(t.elements.popper,i)&&(t.elements.arrow=i))}const tX={name:"arrow",enabled:!0,phase:"main",fn:JK,effect:eX,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vl(e){return e.split("-")[1]}var nX={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rX(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:hl(n*i)/i||0,y:hl(r*i)/i||0}}function Rw(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,h=p===void 0?0:p,v=a.y,b=v===void 0?0:v,x=typeof d=="function"?d({x:h,y:b}):{x:h,y:b};h=x.x,b=x.y;var y=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),S=Fn,w=On,k=window;if(u){var C=id(n),P="clientHeight",j="clientWidth";if(C===er(n)&&(C=Do(n),Ii(C).position!=="static"&&l==="absolute"&&(P="scrollHeight",j="scrollWidth")),C=C,i===On||(i===Fn||i===kr)&&o===_u){w=wr;var R=f&&C===k&&k.visualViewport?k.visualViewport.height:C[P];b-=R-r.height,b*=c?1:-1}if(i===Fn||(i===On||i===wr)&&o===_u){S=kr;var T=f&&C===k&&k.visualViewport?k.visualViewport.width:C[j];h-=T-r.width,h*=c?1:-1}}var $=Object.assign({position:l},u&&nX),K=d===!0?rX({x:h,y:b},er(n)):{x:h,y:b};if(h=K.x,b=K.y,c){var X;return Object.assign({},$,(X={},X[w]=g?"0":"",X[S]=y?"0":"",X.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",X))}return Object.assign({},$,(t={},t[w]=g?b+"px":"",t[S]=y?h+"px":"",t.transform="",t))}function iX(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:ai(t.placement),variation:vl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Rw(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Rw(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const oX={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:iX,data:{}};var Yd={passive:!0};function aX(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,l=a===void 0?!0:a,c=er(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",n.update,Yd)}),l&&c.addEventListener("resize",n.update,Yd),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Yd)}),l&&c.removeEventListener("resize",n.update,Yd)}}const sX={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:aX,data:{}};var lX={left:"right",right:"left",bottom:"top",top:"bottom"};function Hf(e){return e.replace(/left|right|bottom|top/g,function(t){return lX[t]})}var cX={start:"end",end:"start"};function Mw(e){return e.replace(/start|end/g,function(t){return cX[t]})}function Zb(e){var t=er(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Jb(e){return gl(Do(e)).left+Zb(e).scrollLeft}function uX(e,t){var n=er(e),r=Do(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;var u=aT();(u||!u&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:l+Jb(e),y:c}}function dX(e){var t,n=Do(e),r=Zb(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=ka(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=ka(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Jb(e),c=-r.scrollTop;return Ii(i||n).direction==="rtl"&&(l+=ka(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:l,y:c}}function ex(e){var t=Ii(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function dT(e){return["html","body","#document"].indexOf(si(e))>=0?e.ownerDocument.body:br(e)&&ex(e)?e:dT(Wm(e))}function Wc(e,t){var n;t===void 0&&(t=[]);var r=dT(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=er(r),a=i?[o].concat(o.visualViewport||[],ex(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(Wc(Wm(a)))}function Wv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fX(e,t){var n=gl(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Lw(e,t,n){return t===iT?Wv(uX(e,n)):Ma(t)?fX(t,n):Wv(dX(Do(e)))}function pX(e){var t=Wc(Wm(e)),n=["absolute","fixed"].indexOf(Ii(e).position)>=0,r=n&&br(e)?id(e):e;return Ma(r)?t.filter(function(i){return Ma(i)&&sT(i,r)&&si(i)!=="body"}):[]}function mX(e,t,n,r){var i=t==="clippingParents"?pX(e):[].concat(t),o=[].concat(i,[n]),a=o[0],l=o.reduce(function(c,u){var d=Lw(e,u,r);return c.top=ka(d.top,c.top),c.right=Fp(d.right,c.right),c.bottom=Fp(d.bottom,c.bottom),c.left=ka(d.left,c.left),c},Lw(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function fT(e){var t=e.reference,n=e.element,r=e.placement,i=r?ai(r):null,o=r?vl(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(i){case On:c={x:a,y:t.y-n.height};break;case wr:c={x:a,y:t.y+t.height};break;case kr:c={x:t.x+t.width,y:l};break;case Fn:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=i?Qb(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case ml:c[u]=c[u]-(t[d]/2-n[d]/2);break;case _u:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Tu(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,l=n.boundary,c=l===void 0?RK:l,u=n.rootBoundary,d=u===void 0?iT:u,f=n.elementContext,p=f===void 0?nc:f,h=n.altBoundary,v=h===void 0?!1:h,b=n.padding,x=b===void 0?0:b,y=cT(typeof x!="number"?x:uT(x,rd)),g=p===nc?MK:nc,S=e.rects.popper,w=e.elements[v?g:p],k=mX(Ma(w)?w:w.contextElement||Do(e.elements.popper),c,d,a),C=gl(e.elements.reference),P=fT({reference:C,element:S,placement:i}),j=Wv(Object.assign({},S,P)),R=p===nc?j:C,T={top:k.top-R.top+y.top,bottom:R.bottom-k.bottom+y.bottom,left:k.left-R.left+y.left,right:R.right-k.right+y.right},$=e.modifiersData.offset;if(p===nc&&$){var K=$[i];Object.keys(T).forEach(function(X){var M=[kr,wr].indexOf(X)>=0?1:-1,N=[On,wr].indexOf(X)>=0?"y":"x";T[X]+=K[N]*M})}return T}function hX(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?oT:c,d=vl(r),f=d?l?zw:zw.filter(function(v){return vl(v)===d}):rd,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var h=p.reduce(function(v,b){return v[b]=Tu(e,{placement:b,boundary:i,rootBoundary:o,padding:a})[ai(b)],v},{});return Object.keys(h).sort(function(v,b){return h[v]-h[b]})}function gX(e){if(ai(e)===Kb)return[];var t=Hf(e);return[Mw(e),t,Mw(t)]}function vX(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,b=n.allowedAutoPlacements,x=t.options.placement,y=ai(x),g=y===x,S=c||(g||!v?[Hf(x)]:gX(x)),w=[x].concat(S).reduce(function(Q,ae){return Q.concat(ai(ae)===Kb?hX(t,{placement:ae,boundary:d,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:b}):ae)},[]),k=t.rects.reference,C=t.rects.popper,P=new Map,j=!0,R=w[0],T=0;T=0,N=M?"width":"height",O=Tu(t,{placement:$,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),L=M?X?kr:Fn:X?wr:On;k[N]>C[N]&&(L=Hf(L));var I=Hf(L),D=[];if(o&&D.push(O[K]<=0),l&&D.push(O[L]<=0,O[I]<=0),D.every(function(Q){return Q})){R=$,j=!1;break}P.set($,D)}if(j)for(var q=v?3:1,J=function(ae){var ce=w.find(function(Me){var Ze=P.get(Me);if(Ze)return Ze.slice(0,ae).every(function(ne){return ne})});if(ce)return R=ce,"break"},le=q;le>0;le--){var oe=J(le);if(oe==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const yX={name:"flip",enabled:!0,phase:"main",fn:vX,requiresIfExists:["offset"],data:{_skip:!1}};function Nw(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Dw(e){return[On,kr,wr,Fn].some(function(t){return e[t]>=0})}function bX(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Tu(t,{elementContext:"reference"}),l=Tu(t,{altBoundary:!0}),c=Nw(a,r),u=Nw(l,i,o),d=Dw(c),f=Dw(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const xX={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:bX};function SX(e,t,n){var r=ai(e),i=[Fn,On].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],l=o[1];return a=a||0,l=(l||0)*i,[Fn,kr].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function wX(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=oT.reduce(function(d,f){return d[f]=SX(f,t.rects,o),d},{}),l=a[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const kX={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wX};function CX(e){var t=e.state,n=e.name;t.modifiersData[n]=fT({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const jX={name:"popperOffsets",enabled:!0,phase:"read",fn:CX,data:{}};function PX(e){return e==="x"?"y":"x"}function _X(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,v=n.tetherOffset,b=v===void 0?0:v,x=Tu(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),y=ai(t.placement),g=vl(t.placement),S=!g,w=Qb(y),k=PX(w),C=t.modifiersData.popperOffsets,P=t.rects.reference,j=t.rects.popper,R=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,T=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,K={x:0,y:0};if(C){if(o){var X,M=w==="y"?On:Fn,N=w==="y"?wr:kr,O=w==="y"?"height":"width",L=C[w],I=L+x[M],D=L-x[N],q=h?-j[O]/2:0,J=g===ml?P[O]:j[O],le=g===ml?-j[O]:-P[O],oe=t.elements.arrow,Q=h&&oe?Yb(oe):{width:0,height:0},ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:lT(),ce=ae[M],Me=ae[N],Ze=Bc(0,P[O],Q[O]),ne=S?P[O]/2-q-Ze-ce-T.mainAxis:J-Ze-ce-T.mainAxis,re=S?-P[O]/2+q+Ze+Me+T.mainAxis:le+Ze+Me+T.mainAxis,_e=t.elements.arrow&&id(t.elements.arrow),ve=_e?w==="y"?_e.clientTop||0:_e.clientLeft||0:0,Ke=(X=$==null?void 0:$[w])!=null?X:0,se=L+ne-Ke-ve,nt=L+re-Ke,Oe=Bc(h?Fp(I,se):I,L,h?ka(D,nt):D);C[w]=Oe,K[w]=Oe-L}if(l){var kt,je=w==="x"?On:Fn,Jt=w==="x"?wr:kr,At=C[k],An=k==="y"?"height":"width",$n=At+x[je],ue=At-x[Jt],sr=[On,Fn].indexOf(y)!==-1,ci=(kt=$==null?void 0:$[k])!=null?kt:0,Ga=sr?$n:At-P[An]-j[An]-ci+T.altAxis,Ka=sr?At+P[An]+j[An]-ci-T.altAxis:ue,Y=h&&sr?QK(Ga,At,Ka):Bc(h?Ga:$n,At,h?Ka:ue);C[k]=Y,K[k]=Y-At}t.modifiersData[r]=K}}const TX={name:"preventOverflow",enabled:!0,phase:"main",fn:_X,requiresIfExists:["offset"]};function EX(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function AX(e){return e===er(e)||!br(e)?Zb(e):EX(e)}function $X(e){var t=e.getBoundingClientRect(),n=hl(t.width)/e.offsetWidth||1,r=hl(t.height)/e.offsetHeight||1;return n!==1||r!==1}function zX(e,t,n){n===void 0&&(n=!1);var r=br(t),i=br(t)&&$X(t),o=Do(t),a=gl(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((si(t)!=="body"||ex(o))&&(l=AX(t)),br(t)?(c=gl(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Jb(o))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function IX(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function RX(e){var t=IX(e);return HK.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function MX(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function LX(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ow={placement:"bottom",modifiers:[],strategy:"absolute"};function Fw(){for(var e=arguments.length,t=new Array(e),n=0;n({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),an={arrowShadowColor:es("--popper-arrow-shadow-color"),arrowSize:es("--popper-arrow-size","8px"),arrowSizeHalf:es("--popper-arrow-size-half"),arrowBg:es("--popper-arrow-bg"),transformOrigin:es("--popper-transform-origin"),arrowOffset:es("--popper-arrow-offset")};function FX(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}const BX={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},WX=e=>BX[e],Bw={scroll:!0,resize:!0};function VX(e){let t;return typeof e=="object"?t={enabled:!0,options:{...Bw,...e}}:t={enabled:e,options:Bw},t}const UX={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},HX={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Ww(e)},effect:({state:e})=>()=>{Ww(e)}},Ww=e=>{e.elements.popper.style.setProperty(an.transformOrigin.var,WX(e.placement))},qX={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{GX(e)}},GX=e=>{var n;if(!e.placement)return;const t=KX(e.placement);if((n=e.elements)!=null&&n.arrow&&t){Object.assign(e.elements.arrow.style,{[t.property]:t.value,width:an.arrowSize.varRef,height:an.arrowSize.varRef,zIndex:-1});const r={[an.arrowSizeHalf.var]:`calc(${an.arrowSize.varRef} / 2 - 1px)`,[an.arrowOffset.var]:`calc(${an.arrowSizeHalf.varRef} * -1)`};for(const i in r)e.elements.arrow.style.setProperty(i,r[i])}},KX=e=>{if(e.startsWith("top"))return{property:"bottom",value:an.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:an.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:an.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:an.arrowOffset.varRef}},XX={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Vw(e)},effect:({state:e})=>()=>{Vw(e)}},Vw=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=FX(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:an.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},YX={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},QX={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function ZX(e,t="ltr"){var r;const n=((r=YX[e])==null?void 0:r[t])||e;return t==="ltr"?n:QX[e]??n}function JX(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:i="absolute",arrowPadding:o=8,eventListeners:a=!0,offset:l,gutter:c=8,flip:u=!0,boundary:d="clippingParents",preventOverflow:f=!0,matchWidth:p,direction:h="ltr"}=e,v=m.useRef(null),b=m.useRef(null),x=m.useRef(null),y=ZX(r,h),g=m.useRef(()=>{}),S=m.useCallback(()=>{var T;!t||!v.current||!b.current||((T=g.current)==null||T.call(g),x.current=OX(v.current,b.current,{placement:y,modifiers:[XX,qX,HX,{...UX,enabled:!!p},{name:"eventListeners",...VX(a)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:l??[0,c]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:d}},...n??[]],strategy:i}),x.current.forceUpdate(),g.current=x.current.destroy)},[y,t,n,p,a,o,l,c,u,f,d,i]);m.useEffect(()=>()=>{var T;!v.current&&!b.current&&((T=x.current)==null||T.destroy(),x.current=null)},[]);const w=m.useCallback(T=>{v.current=T,S()},[S]),k=m.useCallback((T={},$=null)=>({...T,ref:_t(w,$)}),[w]),C=m.useCallback(T=>{b.current=T,S()},[S]),P=m.useCallback((T={},$=null)=>({...T,ref:_t(C,$),style:{...T.style,position:i,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[i,C,p]),j=m.useCallback((T={},$=null)=>{const{size:K,shadowColor:X,bg:M,style:N,...O}=T;return{...O,ref:$,"data-popper-arrow":"",style:eY(T)}},[]),R=m.useCallback((T={},$=null)=>({...T,ref:$,"data-popper-arrow-inner":""}),[]);return{update(){var T;(T=x.current)==null||T.update()},forceUpdate(){var T;(T=x.current)==null||T.forceUpdate()},transformOrigin:an.transformOrigin.varRef,referenceRef:w,popperRef:C,getPopperProps:P,getArrowProps:j,getArrowInnerProps:R,getReferenceProps:k}}function eY(e){const{size:t,shadowColor:n,bg:r,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}const[ade,sde,lde,cde]=bq(),[ude,tY]=Te({strict:!1,name:"MenuContext"});var nY=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ts=new WeakMap,Qd=new WeakMap,Zd={},M0=0,pT=function(e){return e&&(e.host||pT(e.parentNode))},rY=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=pT(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},iY=function(e,t,n,r){var i=rY(t,Array.isArray(e)?e:[e]);Zd[n]||(Zd[n]=new WeakMap);var o=Zd[n],a=[],l=new Set,c=new Set(i),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};i.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(p){if(l.has(p))d(p);else try{var h=p.getAttribute(r),v=h!==null&&h!=="false",b=(ts.get(p)||0)+1,x=(o.get(p)||0)+1;ts.set(p,b),o.set(p,x),a.push(p),b===1&&v&&Qd.set(p,!0),x===1&&p.setAttribute(n,"true"),v||p.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return d(t),l.clear(),M0++,function(){a.forEach(function(f){var p=ts.get(f)-1,h=o.get(f)-1;ts.set(f,p),o.set(f,h),p||(Qd.has(f)||f.removeAttribute(r),Qd.delete(f)),h||f.removeAttribute(n)}),M0--,M0||(ts=new WeakMap,ts=new WeakMap,Qd=new WeakMap,Zd={})}},oY=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=nY(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),iY(r,i,n,"aria-hidden")):function(){return null}},aY=Object.defineProperty,sY=(e,t,n)=>t in e?aY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lY=(e,t,n)=>(sY(e,t+"",n),n);class cY{constructor(){lY(this,"modals"),this.modals=new Set}add(t){return this.modals.add(t),this.modals.size}remove(t){this.modals.delete(t)}isTopModal(t){if(!t)return!1;const n=Array.from(this.modals)[this.modals.size-1];return t===n}}const Vv=new cY;function mT(e,t){const[n,r]=m.useState(0);return m.useEffect(()=>{const i=e.current;if(i){if(t){const o=Vv.add(i);r(o)}return()=>{Vv.remove(i),r(0)}}},[t,e]),n}function uY(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:l,onEsc:c}=e,u=m.useRef(null),d=m.useRef(null),[f,p,h]=fY(r,"chakra-modal","chakra-modal--header","chakra-modal--body");dY(u,t&&a);const v=mT(u,t),b=m.useRef(null),x=m.useCallback(R=>{b.current=R.target},[]),y=m.useCallback(R=>{R.key==="Escape"&&(R.stopPropagation(),o&&(n==null||n()),c==null||c())},[o,n,c]),[g,S]=m.useState(!1),[w,k]=m.useState(!1),C=m.useCallback((R={},T=null)=>({role:"dialog",...R,ref:_t(T,u),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":g?p:void 0,"aria-describedby":w?h:void 0,onClick:fe(R.onClick,$=>$.stopPropagation())}),[h,w,f,p,g]),P=m.useCallback(R=>{R.stopPropagation(),b.current===R.target&&Vv.isTopModal(u.current)&&(i&&(n==null||n()),l==null||l())},[n,i,l]),j=m.useCallback((R={},T=null)=>({...R,ref:_t(T,d),onClick:fe(R.onClick,P),onKeyDown:fe(R.onKeyDown,y),onMouseDown:fe(R.onMouseDown,x)}),[y,x,P]);return{isOpen:t,onClose:n,headerId:p,bodyId:h,setBodyMounted:k,setHeaderMounted:S,dialogRef:u,overlayRef:d,getDialogProps:C,getDialogContainerProps:j,index:v}}function dY(e,t){const n=e.current;m.useEffect(()=>{if(!(!e.current||!t))return oY(e.current)},[t,e,n])}function fY(e,...t){const n=m.useId(),r=e||n;return m.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}const[pY,Wa]=Te({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[mY,To]=Te({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),Va=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames??!0},{portalProps:n,children:r,autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:l,returnFocusOnClose:c,blockScrollOnMount:u,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h,animatePresenceProps:v,onCloseComplete:b}=t,x=tt("Modal",t),g={...uY(t),autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:l,returnFocusOnClose:c,blockScrollOnMount:u,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h};return s.jsx(mY,{value:g,children:s.jsx(pY,{value:x,children:s.jsx(Ni,{...v,onExitComplete:b,children:g.isOpen&&s.jsx(El,{...n,children:r})})})})};Va.displayName="Modal";var qf="right-scroll-bar-position",Gf="width-before-scroll-bar",hY="with-scroll-bars-hidden",gY="--removed-body-scroll-bar-size",hT=P_(),L0=function(){},Vm=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:L0,onWheelCapture:L0,onTouchMoveCapture:L0}),i=r[0],o=r[1],a=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noRelative,v=e.noIsolation,b=e.inert,x=e.allowPinchZoom,y=e.as,g=y===void 0?"div":y,S=e.gapMode,w=k_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,C=w_([n,t]),P=Yr(Yr({},w),i);return m.createElement(m.Fragment,null,d&&m.createElement(k,{sideCar:hT,removeScrollBar:u,shards:f,noRelative:h,noIsolation:v,inert:b,setCallbacks:o,allowPinchZoom:!!x,lockRef:n,gapMode:S}),a?m.cloneElement(m.Children.only(l),Yr(Yr({},P),{ref:C})):m.createElement(g,Yr({},P,{className:c,ref:C}),l))});Vm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vm.classNames={fullWidth:Gf,zeroRight:qf};var vY=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function yY(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=vY();return t&&e.setAttribute("nonce",t),e}function bY(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function xY(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var SY=function(){var e=0,t=null;return{add:function(n){e==0&&(t=yY())&&(bY(t,n),xY(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},wY=function(){var e=SY();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},gT=function(){var e=wY(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},kY={left:0,top:0,right:0,gap:0},N0=function(e){return parseInt(e||"",10)||0},CY=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[N0(n),N0(r),N0(i)]},jY=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return kY;var t=CY(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},PY=gT(),Qs="data-scroll-locked",_Y=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),` + .`.concat(hY,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(l,"px ").concat(r,`; + } + body[`).concat(Qs,`] { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(i,`px; + padding-top: `).concat(o,`px; + padding-right: `).concat(a,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(l,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(qf,` { + right: `).concat(l,"px ").concat(r,`; + } + + .`).concat(Gf,` { + margin-right: `).concat(l,"px ").concat(r,`; + } + + .`).concat(qf," .").concat(qf,` { + right: 0 `).concat(r,`; + } + + .`).concat(Gf," .").concat(Gf,` { + margin-right: 0 `).concat(r,`; + } + + body[`).concat(Qs,`] { + `).concat(gY,": ").concat(l,`px; + } +`)},Uw=function(){var e=parseInt(document.body.getAttribute(Qs)||"0",10);return isFinite(e)?e:0},TY=function(){m.useEffect(function(){return document.body.setAttribute(Qs,(Uw()+1).toString()),function(){var e=Uw()-1;e<=0?document.body.removeAttribute(Qs):document.body.setAttribute(Qs,e.toString())}},[])},EY=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;TY();var o=m.useMemo(function(){return jY(i)},[i]);return m.createElement(PY,{styles:_Y(o,!t,i,n?"":"!important")})},Uv=!1;if(typeof window<"u")try{var Jd=Object.defineProperty({},"passive",{get:function(){return Uv=!0,!0}});window.addEventListener("test",Jd,Jd),window.removeEventListener("test",Jd,Jd)}catch{Uv=!1}var ns=Uv?{passive:!1}:!1,AY=function(e){return e.tagName==="TEXTAREA"},vT=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!AY(e)&&n[t]==="visible")},$Y=function(e){return vT(e,"overflowY")},zY=function(e){return vT(e,"overflowX")},Hw=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=yT(e,r);if(i){var o=bT(e,r),a=o[1],l=o[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},IY=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},RY=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},yT=function(e,t){return e==="v"?$Y(t):zY(t)},bT=function(e,t){return e==="v"?IY(t):RY(t)},MY=function(e,t){return e==="h"&&t==="rtl"?-1:1},LY=function(e,t,n,r,i){var o=MY(e,window.getComputedStyle(t).direction),a=o*r,l=n.target,c=t.contains(l),u=!1,d=a>0,f=0,p=0;do{if(!l)break;var h=bT(e,l),v=h[0],b=h[1],x=h[2],y=b-x-o*v;(v||y)&&yT(e,l)&&(f+=y,p+=v);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&Math.abs(f)<1||!d&&Math.abs(p)<1)&&(u=!0),u},ef=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qw=function(e){return[e.deltaX,e.deltaY]},Gw=function(e){return e&&"current"in e?e.current:e},NY=function(e,t){return e[0]===t[0]&&e[1]===t[1]},DY=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},OY=0,rs=[];function FY(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),i=m.useState(OY++)[0],o=m.useState(gT)[0],a=m.useRef(e);m.useEffect(function(){a.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var b=dG([e.lockRef.current],(e.shards||[]).map(Gw),!0).filter(Boolean);return b.forEach(function(x){return x.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),b.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=m.useCallback(function(b,x){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!a.current.allowPinchZoom;var y=ef(b),g=n.current,S="deltaX"in b?b.deltaX:g[0]-y[0],w="deltaY"in b?b.deltaY:g[1]-y[1],k,C=b.target,P=Math.abs(S)>Math.abs(w)?"h":"v";if("touches"in b&&P==="h"&&C.type==="range")return!1;var j=window.getSelection(),R=j&&j.anchorNode,T=R?R===C||R.contains(C):!1;if(T)return!1;var $=Hw(P,C);if(!$)return!0;if($?k=P:(k=P==="v"?"h":"v",$=Hw(P,C)),!$)return!1;if(!r.current&&"changedTouches"in b&&(S||w)&&(r.current=k),!k)return!0;var K=r.current||k;return LY(K,x,b,K==="h"?S:w)},[]),c=m.useCallback(function(b){var x=b;if(!(!rs.length||rs[rs.length-1]!==o)){var y="deltaY"in x?qw(x):ef(x),g=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&NY(k.delta,y)})[0];if(g&&g.should){x.cancelable&&x.preventDefault();return}if(!g){var S=(a.current.shards||[]).map(Gw).filter(Boolean).filter(function(k){return k.contains(x.target)}),w=S.length>0?l(x,S[0]):!a.current.noIsolation;w&&x.cancelable&&x.preventDefault()}}},[]),u=m.useCallback(function(b,x,y,g){var S={name:b,delta:x,target:y,should:g,shadowParent:BY(y)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(w){return w!==S})},1)},[]),d=m.useCallback(function(b){n.current=ef(b),r.current=void 0},[]),f=m.useCallback(function(b){u(b.type,qw(b),b.target,l(b,e.lockRef.current))},[]),p=m.useCallback(function(b){u(b.type,ef(b),b.target,l(b,e.lockRef.current))},[]);m.useEffect(function(){return rs.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,ns),document.addEventListener("touchmove",c,ns),document.addEventListener("touchstart",d,ns),function(){rs=rs.filter(function(b){return b!==o}),document.removeEventListener("wheel",c,ns),document.removeEventListener("touchmove",c,ns),document.removeEventListener("touchstart",d,ns)}},[]);var h=e.removeScrollBar,v=e.inert;return m.createElement(m.Fragment,null,v?m.createElement(o,{styles:DY(i)}):null,h?m.createElement(EY,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function BY(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const WY=fG(hT,FY);var xT=m.forwardRef(function(e,t){return m.createElement(Vm,Yr({},e,{ref:t,sideCar:WY}))});xT.classNames=Vm.classNames;function ST(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:a,finalFocusRef:l,returnFocusOnClose:c,preserveScrollBarGap:u,lockFocusAcrossFrames:d,isOpen:f}=To(),[p,h]=U1();m.useEffect(()=>{!p&&h&&setTimeout(h)},[p,h]);const v=mT(r,f);return s.jsx(J_,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:l,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:d,children:s.jsx(xT,{removeScrollBar:!u,allowPinchZoom:a,enabled:v===1&&o,forwardProps:!0,children:e.children})})}const VY={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:i})=>({opacity:0,x:e,y:t,transition:(n==null?void 0:n.exit)??Lr.exit(xa.exit,i),transitionEnd:r==null?void 0:r.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:(e==null?void 0:e.enter)??Lr.enter(xa.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:i,delay:o})=>{const a={x:t,y:e};return{opacity:0,transition:(n==null?void 0:n.exit)??Lr.exit(xa.exit,o),...i?{...a,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...a,...r==null?void 0:r.exit}}}}},lo={initial:"initial",animate:"enter",exit:"exit",variants:VY},UY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:o=!0,className:a,offsetX:l=0,offsetY:c=8,transition:u,transitionEnd:d,delay:f,animatePresenceProps:p,...h}=t,v=r?i&&r:!0,b=i||r?"enter":"exit",x={offsetX:l,offsetY:c,reverse:o,transition:u,transitionEnd:d,delay:f};return s.jsx(Ni,{...p,custom:x,children:v&&s.jsx(ir.div,{ref:n,className:V("chakra-offset-slide",a),custom:x,...lo,animate:b,...h})})});UY.displayName="SlideFade";const HY={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:i})=>({opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(n==null?void 0:n.exit)??Lr.exit(xa.exit,i)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:(t==null?void 0:t.enter)??Lr.enter(xa.enter,n),transitionEnd:e==null?void 0:e.enter})},tx={initial:"exit",animate:"enter",exit:"exit",variants:HY},qY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:o=!0,initialScale:a=.95,className:l,transition:c,transitionEnd:u,delay:d,animatePresenceProps:f,...p}=t,h=r?i&&r:!0,v=i||r?"enter":"exit",b={initialScale:a,reverse:o,transition:c,transitionEnd:u,delay:d};return s.jsx(Ni,{...f,custom:b,children:h&&s.jsx(ir.div,{ref:n,className:V("chakra-offset-slide",l),...tx,animate:v,custom:b,...p})})});qY.displayName="ScaleFade";const GY={slideInBottom:{...lo,custom:{offsetY:16,reverse:!0}},slideInRight:{...lo,custom:{offsetX:16,reverse:!0}},slideInTop:{...lo,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...lo,custom:{offsetX:-16,reverse:!0}},scale:{...tx,custom:{initialScale:.95,reverse:!0}},none:{}},KY=F(ir.section),XY=e=>GY[e||"none"],wT=m.forwardRef((e,t)=>{const{preset:n,motionProps:r=XY(n),...i}=e;return s.jsx(KY,{ref:t,...r,...i})});wT.displayName="ModalTransition";const zl=W((e,t)=>{const{className:n,children:r,containerProps:i,motionProps:o,...a}=e,{getDialogProps:l,getDialogContainerProps:c}=To(),u=l(a,t),d=c(i),f=V("chakra-modal__content",n),p=Wa(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...p.dialog},v={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...p.dialogContainer},{motionPreset:b}=To();return s.jsx(ST,{children:s.jsx(F.div,{...d,className:"chakra-modal__content-container",tabIndex:-1,__css:v,children:s.jsx(wT,{preset:b,motionProps:o,className:f,...u,__css:h,children:r})})})});zl.displayName="ModalContent";const Oo=W((e,t)=>{const{className:n,...r}=e,{bodyId:i,setBodyMounted:o}=To();m.useEffect(()=>(o(!0),()=>o(!1)),[o]);const a=V("chakra-modal__body",n),l=Wa();return s.jsx(F.div,{ref:t,className:a,id:i,...r,__css:l.body})});Oo.displayName="ModalBody";const Ua=W((e,t)=>{const{onClick:n,className:r,...i}=e,{onClose:o}=To(),a=V("chakra-modal__close-btn",r),l=Wa();return s.jsx(Lm,{ref:t,__css:l.closeButton,className:a,onClick:fe(n,c=>{c.stopPropagation(),o()}),...i})});Ua.displayName="ModalCloseButton";const Il=W((e,t)=>{const{className:n,...r}=e,i=V("chakra-modal__footer",n),o=Wa(),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...o.footer};return s.jsx(F.footer,{ref:t,...r,__css:a,className:i})});Il.displayName="ModalFooter";const Fo=W((e,t)=>{const{className:n,...r}=e,{headerId:i,setHeaderMounted:o}=To();m.useEffect(()=>(o(!0),()=>o(!1)),[o]);const a=V("chakra-modal__header",n),l=Wa(),c={flex:0,...l.header};return s.jsx(F.header,{ref:t,className:a,id:i,...r,__css:c})});Fo.displayName="ModalHeader";const YY={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:(e==null?void 0:e.enter)??Lr.enter(xa.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:(e==null?void 0:e.exit)??Lr.exit(xa.exit,n),transitionEnd:t==null?void 0:t.exit})},kT={initial:"exit",animate:"enter",exit:"exit",variants:YY},QY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:i,className:o,transition:a,transitionEnd:l,delay:c,animatePresenceProps:u,...d}=t,f=i||r?"enter":"exit",p=r?i&&r:!0,h={transition:a,transitionEnd:l,delay:c};return s.jsx(Ni,{...u,custom:h,children:p&&s.jsx(ir.div,{ref:n,className:V("chakra-fade",o),custom:h,...kT,animate:f,...d})})});QY.displayName="Fade";const ZY=F(ir.div),Bo=W((e,t)=>{const{className:n,transition:r,motionProps:i,...o}=e,a=V("chakra-modal__overlay",n),c={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Wa().overlay},{motionPreset:u}=To(),f=i||(u==="none"?{}:kT);return s.jsx(ZY,{...f,__css:c,ref:t,className:a,...o})});Bo.displayName="ModalOverlay";function JY(e){const{leastDestructiveRef:t,...n}=e;return s.jsx(Va,{...n,initialFocusRef:t})}const eQ=W((e,t)=>s.jsx(zl,{ref:t,role:"alertdialog",...e})),[tQ,nQ]=Te(),rQ={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function iQ(e,t){var n;if(e)return((n=rQ[e])==null?void 0:n[t])??e}function CT(e){var u;const{isOpen:t,onClose:n,placement:r="right",children:i,...o}=e,a=Di(),l=(u=a.components)==null?void 0:u.Drawer,c=iQ(r,a.direction);return s.jsx(tQ,{value:{placement:c},children:s.jsx(Va,{isOpen:t,onClose:n,styleConfig:l,...o,children:i})})}const Kw={exit:{duration:.15,ease:Si.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},oQ={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:i}=Av({direction:e});return{...i,transition:(t==null?void 0:t.exit)??Lr.exit(Kw.exit,r),transitionEnd:n==null?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:i}=Av({direction:e});return{...i,transition:(n==null?void 0:n.enter)??Lr.enter(Kw.enter,r),transitionEnd:t==null?void 0:t.enter}}},jT=m.forwardRef(function(t,n){const{direction:r="right",style:i,unmountOnExit:o,in:a,className:l,transition:c,transitionEnd:u,delay:d,motionProps:f,animatePresenceProps:p,...h}=t,v=Av({direction:r}),b=Object.assign({position:"fixed"},v.position,i),x=o?a&&o:!0,y=a||o?"enter":"exit",g={transitionEnd:u,transition:c,direction:r,delay:d};return s.jsx(Ni,{...p,custom:g,children:x&&s.jsx(ir.div,{...h,ref:n,initial:"exit",className:V("chakra-slide",l),animate:y,exit:"exit",custom:g,variants:oQ,style:b,...f})})});jT.displayName="Slide";const aQ=F(jT),nx=W((e,t)=>{const{className:n,children:r,motionProps:i,containerProps:o,...a}=e,{getDialogProps:l,getDialogContainerProps:c,isOpen:u}=To(),d=l(a,t),f=c(o),p=V("chakra-modal__content",n),h=Wa(),v={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},b={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{placement:x}=nQ();return s.jsx(ST,{children:s.jsx(F.div,{...f,className:"chakra-modal__content-container",__css:b,children:s.jsx(aQ,{motionProps:i,direction:x,in:u,className:p,...d,__css:v,children:r})})})});nx.displayName="DrawerContent";const sQ=e=>s.jsx(wt,{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),lQ=e=>s.jsx(wt,{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function Xw(e,t,n,r){m.useEffect(()=>{if(!e.current||!r)return;const i=e.current.ownerDocument.defaultView??window,o=Array.isArray(t)?t:[t],a=new i.MutationObserver(l=>{for(const c of l)c.type==="attributes"&&c.attributeName&&o.includes(c.attributeName)&&n(c)});return a.observe(e.current,{attributes:!0,attributeFilter:o}),()=>a.disconnect()})}const cQ=50,Yw=300;function uQ(e,t){const[n,r]=m.useState(!1),[i,o]=m.useState(null),[a,l]=m.useState(!0),c=m.useRef(null),u=()=>clearTimeout(c.current);Cz(()=>{i==="increment"&&e(),i==="decrement"&&t()},n?cQ:null);const d=m.useCallback(()=>{a&&e(),c.current=setTimeout(()=>{l(!1),r(!0),o("increment")},Yw)},[e,a]),f=m.useCallback(()=>{a&&t(),c.current=setTimeout(()=>{l(!1),r(!0),o("decrement")},Yw)},[t,a]),p=m.useCallback(()=>{l(!0),r(!1),u()},[]);return m.useEffect(()=>()=>u(),[]),{up:d,down:f,stop:p,isSpinning:n}}const dQ=/^[Ee0-9+\-.]$/;function fQ(e){return dQ.test(e)}function pQ(e,t){if(e.key==null)return!0;const n=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||n?!0:t(e.key)}function mQ(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:i=Number.MIN_SAFE_INTEGER,max:o=Number.MAX_SAFE_INTEGER,step:a=1,isReadOnly:l,isDisabled:c,isRequired:u,isInvalid:d,pattern:f="[0-9]*(.[0-9]+)?",inputMode:p="decimal",allowMouseWheel:h,id:v,onChange:b,precision:x,name:y,"aria-describedby":g,"aria-label":S,"aria-labelledby":w,onFocus:k,onBlur:C,onInvalid:P,getAriaValueText:j,isValidCharacter:R,format:T,parse:$,...K}=e,X=Gt(k),M=Gt(C),N=Gt(P),O=Gt(R??fQ),L=Gt(j),I=gz(e),{update:D,increment:q,decrement:J}=I,[le,oe]=m.useState(!1),Q=!(l||c),ae=m.useRef(null),ce=m.useRef(null),Me=m.useRef(null),Ze=m.useRef(null),ne=m.useCallback(Y=>Y.split("").filter(O).join(""),[O]),re=m.useCallback(Y=>($==null?void 0:$(Y))??Y,[$]),_e=m.useCallback(Y=>((T==null?void 0:T(Y))??Y).toString(),[T]);du(()=>{(I.valueAsNumber>o||I.valueAsNumber{if(!ae.current)return;if(ae.current.value!=I.value){const rt=re(ae.current.value);I.setValue(ne(rt))}},[re,ne]);const ve=m.useCallback((Y=a)=>{Q&&q(Y)},[q,Q,a]),Ke=m.useCallback((Y=a)=>{Q&&J(Y)},[J,Q,a]),se=uQ(ve,Ke);Xw(Me,"disabled",se.stop,se.isSpinning),Xw(Ze,"disabled",se.stop,se.isSpinning);const nt=m.useCallback(Y=>{if(Y.nativeEvent.isComposing)return;const fn=re(Y.currentTarget.value);D(ne(fn)),ce.current={start:Y.currentTarget.selectionStart,end:Y.currentTarget.selectionEnd}},[D,ne,re]),Oe=m.useCallback(Y=>{var rt;X==null||X(Y),ce.current&&(Y.currentTarget.selectionStart=ce.current.start??((rt=Y.currentTarget.value)==null?void 0:rt.length),Y.currentTarget.selectionEnd=ce.current.end??Y.currentTarget.selectionStart)},[X]),kt=m.useCallback(Y=>{if(Y.nativeEvent.isComposing)return;pQ(Y,O)||Y.preventDefault();const rt=je(Y)*a,fn=Y.key,Ui={ArrowUp:()=>ve(rt),ArrowDown:()=>Ke(rt),Home:()=>D(i),End:()=>D(o)}[fn];Ui&&(Y.preventDefault(),Ui(Y))},[O,a,ve,Ke,D,i,o]),je=Y=>{let rt=1;return(Y.metaKey||Y.ctrlKey)&&(rt=.1),Y.shiftKey&&(rt=10),rt},Jt=m.useMemo(()=>{const Y=L==null?void 0:L(I.value);if(Y!=null)return Y;const rt=I.value.toString();return rt||void 0},[I.value,L]),At=m.useCallback(()=>{let Y=I.value;if(I.value==="")return;/^[eE]/.test(I.value.toString())?I.setValue(""):(I.valueAsNumbero&&(Y=o),I.cast(Y))},[I,o,i]),An=m.useCallback(()=>{oe(!1),n&&At()},[n,oe,At]),$n=m.useCallback(()=>{t&&requestAnimationFrame(()=>{var Y;(Y=ae.current)==null||Y.focus()})},[t]),ue=m.useCallback(Y=>{Y.preventDefault(),se.up(),$n()},[$n,se]),sr=m.useCallback(Y=>{Y.preventDefault(),se.down(),$n()},[$n,se]);Ac(()=>ae.current,"wheel",Y=>{var pd;const fn=(((pd=ae.current)==null?void 0:pd.ownerDocument)??document).activeElement===ae.current;if(!h||!fn)return;Y.preventDefault();const lr=je(Y)*a,Ui=Math.sign(Y.deltaY);Ui===-1?ve(lr):Ui===1&&Ke(lr)},{passive:!1});const ci=m.useCallback((Y={},rt=null)=>{const fn=c||r&&I.isAtMax;return{...Y,ref:_t(rt,Me),role:"button",tabIndex:-1,onPointerDown:fe(Y.onPointerDown,lr=>{lr.button!==0||fn||ue(lr)}),onPointerLeave:fe(Y.onPointerLeave,se.stop),onPointerUp:fe(Y.onPointerUp,se.stop),disabled:fn,"aria-disabled":yr(fn)}},[I.isAtMax,r,ue,se.stop,c]),Ga=m.useCallback((Y={},rt=null)=>{const fn=c||r&&I.isAtMin;return{...Y,ref:_t(rt,Ze),role:"button",tabIndex:-1,onPointerDown:fe(Y.onPointerDown,lr=>{lr.button!==0||fn||sr(lr)}),onPointerLeave:fe(Y.onPointerLeave,se.stop),onPointerUp:fe(Y.onPointerUp,se.stop),disabled:fn,"aria-disabled":yr(fn)}},[I.isAtMin,r,sr,se.stop,c]),Ka=m.useCallback((Y={},rt=null)=>({name:y,inputMode:p,type:"text",pattern:f,"aria-labelledby":w,"aria-label":S,"aria-describedby":g,id:v,disabled:c,role:"spinbutton",...Y,readOnly:Y.readOnly??l,"aria-readonly":Y.readOnly??l,"aria-required":Y.required??u,required:Y.required??u,ref:_t(ae,rt),value:_e(I.value),"aria-valuemin":i,"aria-valuemax":o,"aria-valuenow":Number.isNaN(I.valueAsNumber)?void 0:I.valueAsNumber,"aria-invalid":yr(d??I.isOutOfRange),"aria-valuetext":Jt,autoComplete:"off",autoCorrect:"off",onChange:fe(Y.onChange,nt),onKeyDown:fe(Y.onKeyDown,kt),onFocus:fe(Y.onFocus,Oe,()=>oe(!0)),onBlur:fe(Y.onBlur,M,An)}),[y,p,f,w,S,_e,g,v,c,u,l,d,I.value,I.valueAsNumber,I.isOutOfRange,i,o,Jt,nt,kt,Oe,M,An]);return{value:_e(I.value),valueAsNumber:I.valueAsNumber,isFocused:le,isDisabled:c,isReadOnly:l,getIncrementButtonProps:ci,getDecrementButtonProps:Ga,getInputProps:Ka,htmlProps:K}}const[hQ,Um]=Te({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[gQ,rx]=Te({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),PT=W(function(t,n){const r=tt("NumberInput",t),i=Ie(t),o=Eb(i),{htmlProps:a,...l}=mQ(o),c=m.useMemo(()=>l,[l]);return s.jsx(gQ,{value:c,children:s.jsx(hQ,{value:r,children:s.jsx(F.div,{...a,ref:n,className:V("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...r.root}})})})});PT.displayName="NumberInput";const _T=W(function(t,n){const r=Um();return s.jsx(F.div,{"aria-hidden":!0,ref:n,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...r.stepperGroup}})});_T.displayName="NumberInputStepper";const TT=W(function(t,n){const{getInputProps:r}=rx(),i=r(t,n),o=Um();return s.jsx(F.input,{...i,className:V("chakra-numberinput__field",t.className),__css:{width:"100%",...o.field}})});TT.displayName="NumberInputField";const ET=F("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),AT=W(function(t,n){const r=Um(),{getDecrementButtonProps:i}=rx(),o=i(t,n);return s.jsx(ET,{...o,__css:r.stepper,children:t.children??s.jsx(sQ,{})})});AT.displayName="NumberDecrementStepper";const $T=W(function(t,n){const{getIncrementButtonProps:r}=rx(),i=r(t,n),o=Um();return s.jsx(ET,{...i,__css:o.stepper,children:t.children??s.jsx(lQ,{})})});$T.displayName="NumberIncrementStepper";function vQ(e){var n;const t=m.version;return typeof t!="string"||t.startsWith("18.")?e==null?void 0:e.ref:(n=e==null?void 0:e.props)==null?void 0:n.ref}function yQ(e,t,n){return(e-t)*100/(n-t)}Ku({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});Ku({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});const bQ=Ku({"0%":{left:"-40%"},"100%":{left:"100%"}}),xQ=Ku({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function SQ(e){const{value:t=0,min:n,max:r,valueText:i,getValueText:o,isIndeterminate:a,role:l="progressbar"}=e,c=yQ(t,n,r);return{bind:{"data-indeterminate":a?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":a?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof o=="function"?o(t,c):i})(),role:l},percent:c,value:t}}const[wQ,kQ]=Te({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),CQ=W((e,t)=>{const{min:n,max:r,value:i,isIndeterminate:o,role:a,...l}=e,c=SQ({value:i,min:n,max:r,isIndeterminate:o,role:a}),d={height:"100%",...kQ().filledTrack};return s.jsx(F.div,{ref:t,style:{width:`${c.percent}%`,...l.style},...c.bind,...l,__css:d})}),Bp=W((e,t)=>{var P;const{value:n,min:r=0,max:i=100,hasStripe:o,isAnimated:a,children:l,borderRadius:c,isIndeterminate:u,"aria-label":d,"aria-labelledby":f,"aria-valuetext":p,title:h,role:v,...b}=Ie(e),x=tt("Progress",e),y=c??((P=x.track)==null?void 0:P.borderRadius),g={animation:`${xQ} 1s linear infinite`},k={...!u&&o&&a&&g,...u&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${bQ} 1s ease infinite normal none running`}},C={overflow:"hidden",position:"relative",...x.track};return s.jsx(F.div,{ref:t,borderRadius:y,__css:C,...b,children:s.jsxs(wQ,{value:x,children:[s.jsx(CQ,{"aria-label":d,"aria-labelledby":f,"aria-valuetext":p,min:r,max:i,value:n,isIndeterminate:u,css:k,borderRadius:y,title:h,role:v}),l]})})});Bp.displayName="Progress";function jQ(e){return e&&Wt(e)&&Wt(e.target)}function PQ(e={}){const{onChange:t,value:n,defaultValue:r,name:i,isDisabled:o,isFocusable:a,isNative:l,...c}=e,[u,d]=m.useState(r||""),f=typeof n<"u",p=f?n:u,h=m.useRef(null),v=m.useCallback(()=>{const k=h.current;if(!k)return;let C="input:not(:disabled):checked";const P=k.querySelector(C);if(P){P.focus();return}C="input:not(:disabled)";const j=k.querySelector(C);j==null||j.focus()},[]),x=`radio-${m.useId()}`,y=i||x,g=m.useCallback(k=>{const C=jQ(k)?k.target.value:k;f||d(C),t==null||t(String(C))},[t,f]),S=m.useCallback((k={},C=null)=>({...k,ref:_t(C,h),role:"radiogroup"}),[]),w=m.useCallback((k={},C=null)=>({...k,ref:C,name:y,[l?"checked":"isChecked"]:p!=null?k.value===p:void 0,onChange(j){g(j)},"data-radiogroup":!0}),[l,y,g,p]);return{getRootProps:S,getRadioProps:w,name:y,ref:h,focus:v,setValue:d,value:p,onChange:g,isDisabled:o,isFocusable:a,htmlProps:c}}const[_Q,zT]=Te({name:"RadioGroupContext",strict:!1}),IT=W((e,t)=>{const{colorScheme:n,size:r,variant:i,children:o,className:a,isDisabled:l,isFocusable:c,...u}=e,{value:d,onChange:f,getRootProps:p,name:h,htmlProps:v}=PQ(u),b=m.useMemo(()=>({name:h,size:r,onChange:f,colorScheme:n,value:d,variant:i,isDisabled:l,isFocusable:c}),[h,r,f,n,d,i,l,c]);return s.jsx(_Q,{value:b,children:s.jsx(F.div,{...p(v,t),className:V("chakra-radio-group",a),children:o})})});IT.displayName="RadioGroup";function TQ(e={}){const{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:i,isReadOnly:o,isRequired:a,onChange:l,isInvalid:c,name:u,value:d,id:f,"data-radiogroup":p,"aria-describedby":h,...v}=e,b=`radio-${m.useId()}`,x=nd(),g=!!zT()||!!p;let w=!!x&&!g?x.id:b;w=f??w;const k=i??(x==null?void 0:x.isDisabled),C=o??(x==null?void 0:x.isReadOnly),P=a??(x==null?void 0:x.isRequired),j=c??(x==null?void 0:x.isInvalid),[R,T]=m.useState(!1),[$,K]=m.useState(!1),[X,M]=m.useState(!1),[N,O]=m.useState(!!t),L=typeof n<"u",I=L?n:N,D=m.useRef(!1);m.useEffect(()=>m_(re=>{D.current=re}),[]);const q=m.useCallback(re=>{if(C||k){re.preventDefault();return}L||O(re.currentTarget.checked),l==null||l(re)},[L,k,C,l]),J=m.useCallback(re=>{re.key===" "&&M(!0)},[M]),le=m.useCallback(re=>{re.key===" "&&M(!1)},[M]),oe=m.useCallback((re={},_e=null)=>({...re,ref:_e,"data-active":me(X),"data-hover":me($),"data-disabled":me(k),"data-invalid":me(j),"data-checked":me(I),"data-focus":me(R),"data-focus-visible":me(R&&D.current),"data-readonly":me(C),"aria-hidden":!0,onMouseDown:fe(re.onMouseDown,()=>M(!0)),onMouseUp:fe(re.onMouseUp,()=>M(!1)),onMouseEnter:fe(re.onMouseEnter,()=>K(!0)),onMouseLeave:fe(re.onMouseLeave,()=>K(!1))}),[X,$,k,j,I,R,C]),{onFocus:Q,onBlur:ae}=x??{},ce=m.useCallback((re={},_e=null)=>{const ve=k&&!r;return{...re,id:w,ref:_e,type:"radio",name:u,value:d,onChange:fe(re.onChange,q),onBlur:fe(ae,re.onBlur,()=>T(!1)),onFocus:fe(Q,re.onFocus,()=>T(!0)),onKeyDown:fe(re.onKeyDown,J),onKeyUp:fe(re.onKeyUp,le),checked:I,disabled:ve,readOnly:C,required:P,"aria-invalid":yr(j),"aria-disabled":yr(ve),"aria-required":yr(P),"data-readonly":me(C),"aria-describedby":h,style:v_}},[k,r,w,u,d,q,ae,Q,J,le,I,C,P,j,h]);return{state:{isInvalid:j,isFocused:R,isChecked:I,isActive:X,isHovered:$,isDisabled:k,isReadOnly:C,isRequired:P},getRadioProps:oe,getInputProps:ce,getLabelProps:(re={},_e=null)=>({...re,ref:_e,onMouseDown:fe(re.onMouseDown,EQ),"data-disabled":me(k),"data-checked":me(I),"data-invalid":me(j)}),getRootProps:(re,_e=null)=>({htmlFor:w,...re,ref:_e,"data-disabled":me(k),"data-checked":me(I),"data-invalid":me(j)}),htmlProps:v}}function EQ(e){e.preventDefault(),e.stopPropagation()}const Hv=W((e,t)=>{const n=zT(),{onChange:r,value:i}=e,o=tt("Radio",{...n,...e}),a=Ie(e),{spacing:l="0.5rem",children:c,isDisabled:u=n==null?void 0:n.isDisabled,isFocusable:d=n==null?void 0:n.isFocusable,inputProps:f,...p}=a;let h=e.isChecked;(n==null?void 0:n.value)!=null&&i!=null&&(h=n.value===i);let v=r;n!=null&&n.onChange&&i!=null&&(v=Q$(n.onChange,r));const b=(e==null?void 0:e.name)??(n==null?void 0:n.name),{getInputProps:x,getRadioProps:y,getLabelProps:g,getRootProps:S,htmlProps:w}=TQ({...p,isChecked:h,isFocusable:d,isDisabled:u,onChange:v,name:b}),[k,C]=xj(w,Tj),P=y(C),j=x(f,t),R=g(),T=Object.assign({},k,S()),$={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...o.container},K={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...o.control},X={userSelect:"none",marginStart:l,...o.label};return s.jsxs(F.label,{className:"chakra-radio",...T,__css:$,children:[s.jsx("input",{className:"chakra-radio__input",...j}),s.jsx(F.span,{className:"chakra-radio__control",...P,__css:K}),c&&s.jsx(F.span,{className:"chakra-radio__label",...R,__css:X,children:c})]})});Hv.displayName="Radio";const RT=W(function(t,n){const{children:r,placeholder:i,className:o,...a}=t;return s.jsxs(F.select,{...a,ref:n,className:V("chakra-select",o),children:[i&&s.jsx("option",{value:"",children:i}),r]})});RT.displayName="SelectField";const Hm=W((e,t)=>{var S;const n=tt("Select",e),{rootProps:r,placeholder:i,icon:o,color:a,height:l,h:c,minH:u,minHeight:d,iconColor:f,iconSize:p,...h}=Ie(e),[v,b]=xj(h,Tj),x=g_(b),y={width:"100%",height:"fit-content",position:"relative",color:a},g={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(S=n.field)==null?void 0:S._focus}};return s.jsxs(F.div,{className:"chakra-select__wrapper",__css:y,...v,...r,children:[s.jsx(RT,{ref:t,height:c??l,minH:u??d,placeholder:i,...x,__css:g,children:e.children}),s.jsx(MT,{"data-disabled":me(x.disabled),...(f||a)&&{color:f||a},__css:n.icon,...p&&{fontSize:p},children:o})]})});Hm.displayName="Select";const AQ=e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),$Q=F("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),MT=e=>{const{children:t=s.jsx(AQ,{}),...n}=e,r=m.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return s.jsx($Q,{...n,className:"chakra-select__icon-wrapper",children:m.isValidElement(t)?r:null})};MT.displayName="SelectIcon";const Fi=F("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});Fi.displayName="Spacer";const LT=e=>s.jsx(F.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});LT.displayName="StackItem";function zQ(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":y1(n,i=>r[i])}}const we=W((e,t)=>{const{isInline:n,direction:r,align:i,justify:o,spacing:a="0.5rem",wrap:l,children:c,divider:u,className:d,shouldWrapChildren:f,...p}=e,h=n?"row":r??"column",v=m.useMemo(()=>zQ({spacing:a,direction:h}),[a,h]),b=!!u,x=!f&&!b,y=m.useMemo(()=>{const S=g1(c);return x?S:S.map((w,k)=>{const C=typeof w.key<"u"?w.key:k,P=k+1===S.length,R=f?s.jsx(LT,{children:w},C):w;if(!b)return R;const T=m.cloneElement(u,{__css:v}),$=P?null:T;return s.jsxs(m.Fragment,{children:[R,$]},C)})},[u,v,b,x,f,c]),g=V("chakra-stack",d);return s.jsx(F.div,{ref:t,display:"flex",alignItems:i,justifyContent:o,flexDirection:h,flexWrap:l,gap:b?void 0:a,className:g,...p,children:y})});we.displayName="Stack";const ye=W((e,t)=>s.jsx(we,{align:"center",...e,direction:"row",ref:t}));ye.displayName="HStack";const od=W((e,t)=>s.jsx(we,{align:"center",...e,direction:"column",ref:t}));od.displayName="VStack";const[IQ,NT]=Te({name:"StatStylesContext",errorMessage:`useStatStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),na=W(function(t,n){const r=tt("Stat",t),i={position:"relative",flex:"1 1 0%",...r.container},{className:o,children:a,...l}=Ie(t);return s.jsx(IQ,{value:r,children:s.jsx(F.div,{ref:n,...l,className:V("chakra-stat",o),__css:i,children:s.jsx("dl",{children:a})})})});na.displayName="Stat";const ra=W(function(t,n){const r=NT();return s.jsx(F.dt,{ref:n,...t,className:V("chakra-stat__label",t.className),__css:r.label})});ra.displayName="StatLabel";const Qi=W(function(t,n){const r=NT();return s.jsx(F.dd,{ref:n,...t,className:V("chakra-stat__number",t.className),__css:{...r.number,fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}})});Qi.displayName="StatNumber";const[RQ,Wo]=Te({name:"StepContext"}),[MQ,Ha]=Or("Stepper"),LQ=W(function(t,n){const{orientation:r,status:i,showLastSeparator:o}=Wo(),a=Ha();return s.jsx(F.div,{ref:n,"data-status":i,"data-orientation":r,"data-stretch":me(o),__css:a.step,...t,className:V("chakra-step",t.className)})}),NQ=W(function(t,n){const{status:r}=Wo(),i=Ha();return s.jsx(F.p,{ref:n,"data-status":r,...t,className:V("chakra-step__description",t.className),__css:i.description})});function DQ(e){return s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1em",width:"1em",...e,children:s.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function OQ(e){const{status:t}=Wo(),n=Ha(),r=t==="complete"?DQ:void 0;return s.jsx(wt,{as:r,__css:n.icon,...e,className:V("chakra-step__icon",e.className)})}const Qw=W(function(t,n){const{children:r,...i}=t,{status:o,index:a}=Wo(),l=Ha();return s.jsx(F.div,{ref:n,"data-status":o,__css:l.number,...i,className:V("chakra-step__number",t.className),children:r||a+1})});function FQ(e){const{complete:t,incomplete:n,active:r}=e,i=Wo();let o=null;switch(i.status){case"complete":o=yn(t,i);break;case"incomplete":o=yn(n,i);break;case"active":o=yn(r,i);break}return o?s.jsx(s.Fragment,{children:o}):null}const BQ=W(function(t,n){const{status:r}=Wo(),i=Ha();return s.jsx(F.div,{ref:n,"data-status":r,...t,__css:i.indicator,className:V("chakra-step__indicator",t.className)})}),DT=W(function(t,n){const{orientation:r,status:i,isLast:o,showLastSeparator:a}=Wo(),l=Ha();return o&&!a?null:s.jsx(F.div,{ref:n,role:"separator","data-orientation":r,"data-status":i,__css:l.separator,...t,className:V("chakra-step__separator",t.className)})}),WQ=W(function(t,n){const{status:r}=Wo(),i=Ha();return s.jsx(F.h3,{ref:n,"data-status":r,...t,__css:i.title,className:V("chakra-step__title",t.className)})}),VQ=W(function(t,n){const r=tt("Stepper",t),{children:i,index:o,orientation:a="horizontal",showLastSeparator:l=!1,...c}=Ie(t),u=m.Children.toArray(i),d=u.length;function f(p){return po?"incomplete":"active"}return s.jsx(F.div,{ref:n,"aria-label":"Progress","data-orientation":a,...c,__css:r.stepper,className:V("chakra-stepper",t.className),children:s.jsx(MQ,{value:r,children:u.map((p,h)=>s.jsx(RQ,{value:{index:h,status:f(h),orientation:a,showLastSeparator:l,count:d,isFirst:h===0,isLast:h===d-1},children:p},h))})})}),bc=W(function(t,n){const r=tt("Switch",t),{spacing:i="0.5rem",children:o,...a}=Ie(t),{getIndicatorProps:l,getInputProps:c,getCheckboxProps:u,getRootProps:d,getLabelProps:f}=qq(a),p=m.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),h=m.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),v=m.useMemo(()=>({userSelect:"none",marginStart:i,...r.label}),[i,r.label]);return s.jsxs(F.label,{...d(),className:V("chakra-switch",t.className),__css:p,children:[s.jsx("input",{className:"chakra-switch__input",...c({},n)}),s.jsx(F.span,{...u(),className:"chakra-switch__track",__css:h,children:s.jsx(F.span,{__css:r.thumb,className:"chakra-switch__thumb",...l()})}),o&&s.jsx(F.span,{className:"chakra-switch__label",...f(),__css:v,children:o})]})});bc.displayName="Switch";const[UQ,ad]=Te({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),yl=W((e,t)=>{const n=tt("Table",e),{className:r,layout:i,...o}=Ie(e);return s.jsx(UQ,{value:n,children:s.jsx(F.table,{ref:t,__css:{tableLayout:i,...n.table},className:V("chakra-table",r),...o})})});yl.displayName="Table";const Eu=W((e,t)=>{const{overflow:n,overflowX:r,className:i,...o}=e;return s.jsx(F.div,{ref:t,className:V("chakra-table__container",i),...o,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:n??r??"auto",overflowY:"hidden",maxWidth:"100%"}})}),Au=W((e,t)=>{const n=ad();return s.jsx(F.tbody,{...e,ref:t,__css:n.tbody})}),Ge=W(({isNumeric:e,...t},n)=>{const r=ad();return s.jsx(F.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})}),et=W(({isNumeric:e,...t},n)=>{const r=ad();return s.jsx(F.th,{...t,ref:n,__css:r.th,"data-is-numeric":e})}),$u=W((e,t)=>{const n=ad();return s.jsx(F.thead,{...e,ref:t,__css:n.thead})}),Gn=W((e,t)=>{const n=ad();return s.jsx(F.tr,{...e,ref:t,__css:n.tr})});function HQ(e,t){const n=e??"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(i==null?void 0:i[t])??n}function qQ(e,t){const n=i=>({...t,...i,position:HQ((i==null?void 0:i.position)??(t==null?void 0:t.position),e)}),r=i=>{const o=n(i),a=o_(o);return Xr.notify(a,o)};return r.update=(i,o)=>{Xr.update(i,n(o))},r.promise=(i,o)=>{const a=r({...o.loading,status:"loading",duration:null});i.then(l=>r.update(a,{status:"success",duration:5e3,...yn(o.success,l)})).catch(l=>r.update(a,{status:"error",duration:5e3,...yn(o.error,l)}))},r.closeAll=Xr.closeAll,r.close=Xr.close,r.isActive=Xr.isActive,r}function Tn(e){const{theme:t}=ZP(),n=dq();return m.useMemo(()=>qQ(t.direction,{...n,...e}),[e,t.direction,n])}const GQ={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},qv=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},Kf=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function KQ(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:i,closeOnScroll:o,closeOnPointerDown:a=i,closeOnEsc:l=!0,onOpen:c,onClose:u,placement:d,id:f,isOpen:p,defaultIsOpen:h,arrowSize:v=10,arrowShadowColor:b,arrowPadding:x,modifiers:y,isDisabled:g,gutter:S,offset:w,direction:k,...C}=e,{isOpen:P,onOpen:j,onClose:R}=Hu({isOpen:p,defaultIsOpen:h,onOpen:c,onClose:u}),{referenceRef:T,getPopperProps:$,getArrowInnerProps:K,getArrowProps:X}=JX({enabled:P,placement:d,arrowPadding:x,modifiers:y,gutter:S,offset:w,direction:k}),M=m.useId(),O=`tooltip-${f??M}`,L=m.useRef(null),I=m.useRef(void 0),D=m.useCallback(()=>{I.current&&(clearTimeout(I.current),I.current=void 0)},[]),q=m.useRef(void 0),J=m.useCallback(()=>{q.current&&(clearTimeout(q.current),q.current=void 0)},[]),le=m.useCallback(()=>{J(),R()},[R,J]),oe=XQ(L,le),Q=m.useCallback(()=>{if(!g&&!I.current){P&&oe();const ve=Kf(L);I.current=ve.setTimeout(j,t)}},[oe,g,P,j,t]),ae=m.useCallback(()=>{D();const ve=Kf(L);q.current=ve.setTimeout(le,n)},[n,le,D]),ce=m.useCallback(()=>{P&&r&&ae()},[r,ae,P]),Me=m.useCallback(()=>{P&&a&&ae()},[a,ae,P]),Ze=m.useCallback(ve=>{P&&ve.key==="Escape"&&ae()},[P,ae]);Ac(()=>qv(L),"keydown",l?Ze:void 0),Ac(()=>{if(!o)return null;const ve=L.current;if(!ve)return null;const Ke=bj(ve);return Ke.localName==="body"?Kf(L):Ke},"scroll",()=>{P&&o&&le()},{passive:!0,capture:!0}),m.useEffect(()=>{g&&(D(),P&&R())},[g,P,R,D]),m.useEffect(()=>()=>{D(),J()},[D,J]),Ac(()=>L.current,"pointerleave",ae);const ne=m.useCallback((ve={},Ke=null)=>({...ve,ref:_t(L,Ke,T),onPointerEnter:fe(ve.onPointerEnter,nt=>{nt.pointerType!=="touch"&&Q()}),onClick:fe(ve.onClick,ce),onPointerDown:fe(ve.onPointerDown,Me),onFocus:fe(ve.onFocus,Q),onBlur:fe(ve.onBlur,ae),"aria-describedby":P?O:void 0}),[Q,ae,Me,P,O,ce,T]),re=m.useCallback((ve={},Ke=null)=>$({...ve,style:{...ve.style,[an.arrowSize.var]:v?`${v}px`:void 0,[an.arrowShadowColor.var]:b}},Ke),[$,v,b]),_e=m.useCallback((ve={},Ke=null)=>{const se={...ve.style,position:"relative",transformOrigin:an.transformOrigin.varRef};return{ref:Ke,...C,...ve,id:O,role:"tooltip",style:se}},[C,O]);return{isOpen:P,show:Q,hide:ae,getTriggerProps:ne,getTooltipProps:_e,getTooltipPositionerProps:re,getArrowProps:X,getArrowInnerProps:K}}const D0="chakra-ui:close-tooltip";function XQ(e,t){return m.useEffect(()=>{const n=qv(e);return n.addEventListener(D0,t),()=>n.removeEventListener(D0,t)},[t,e]),()=>{const n=qv(e),r=Kf(e);n.dispatchEvent(new r.CustomEvent(D0))}}const YQ=F(ir.div),ix=W((e,t)=>{const n=or("Tooltip",e),r=Ie(e),i=Di(),{children:o,label:a,shouldWrapChildren:l,"aria-label":c,hasArrow:u,bg:d,portalProps:f,background:p,backgroundColor:h,bgColor:v,motionProps:b,animatePresenceProps:x,...y}=r,g=p??h??d??v;if(g){n.bg=g;const T=hI(i,"colors",g);n[an.arrowBg.var]=T}const S=KQ({...y,direction:i.direction}),w=!m.isValidElement(o)||l;let k;if(w)k=s.jsx(F.span,{display:"inline-block",tabIndex:0,...S.getTriggerProps(),children:o});else{const T=m.Children.only(o);k=m.cloneElement(T,S.getTriggerProps(T.props,vQ(T)))}const C=!!c,P=S.getTooltipProps({},t),j=C?fm(P,["role","id"]):P,R=vj(P,["role","id"]);return a?s.jsxs(s.Fragment,{children:[k,s.jsx(Ni,{...x,children:S.isOpen&&s.jsx(El,{...f,children:s.jsx(F.div,{...S.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"},children:s.jsxs(YQ,{variants:GQ,initial:"exit",animate:"enter",exit:"exit",...b,...j,__css:n,children:[a,C&&s.jsx(F.span,{srOnly:!0,...R,children:c}),u&&s.jsx(F.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:s.jsx(F.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}})})]})})})})]}):s.jsx(s.Fragment,{children:o})});ix.displayName="Tooltip";const Ne=W(function(t,n){const r=or("Heading",t),{className:i,...o}=Ie(t);return s.jsx(F.h2,{ref:n,className:V("chakra-heading",t.className),...o,__css:r})});Ne.displayName="Heading";const U=W(function(t,n){const r=or("Text",t),{className:i,align:o,decoration:a,casing:l,...c}=Ie(t),u=v1({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return s.jsx(F.p,{ref:n,className:V("chakra-text",t.className),...u,...c,__css:r})});U.displayName="Text";const ox=W(function(t,n){const{spacing:r="0.5rem",spacingX:i,spacingY:o,children:a,justify:l,direction:c,align:u,className:d,shouldWrapChildren:f,...p}=t,h=m.useMemo(()=>f?m.Children.map(a,(v,b)=>s.jsx(ax,{children:v},b)):a,[a,f]);return s.jsx(F.div,{ref:n,className:V("chakra-wrap",d),...p,children:s.jsx(F.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:l,alignItems:u,flexDirection:c,listStyleType:"none",gap:r,columnGap:i,rowGap:o,padding:"0"},children:h})})});ox.displayName="Wrap";const ax=W(function(t,n){const{className:r,...i}=t;return s.jsx(F.li,{ref:n,__css:{display:"flex",alignItems:"flex-start"},className:V("chakra-wrap__listitem",r),...i})});ax.displayName="WrapItem";var Wn=e=>Dm({viewBox:"0 0 24 24",defaultProps:{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},...e});Wn({displayName:"ChevronUpIcon",path:s.jsx("polyline",{points:"18 15 12 9 6 15"})});Wn({displayName:"ChevronDownIcon",path:s.jsx("polyline",{points:"6 9 12 15 18 9"})});Wn({displayName:"ChevronLeftIcon",path:s.jsx("polyline",{points:"15 18 9 12 15 6"})});Wn({displayName:"ChevronRightIcon",path:s.jsx("polyline",{points:"9 18 15 12 9 6"})});Wn({displayName:"ChevronDownIcon",path:s.jsxs("g",{fill:"none",children:[s.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),s.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),s.jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})});var QQ=Wn({displayName:"CloseIcon",path:s.jsxs("g",{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})});Wn({displayName:"FilterIcon",path:s.jsx("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})});Wn({displayName:"CalendarIcon",path:s.jsxs("g",{children:[s.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),s.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),s.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),s.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})});Wn({displayName:"PlusIcon",path:s.jsxs("g",{children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})});Wn({displayName:"MinusIcon",path:s.jsx("g",{children:s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})});Wn({displayName:"ViewOffIcon",path:s.jsxs("g",{children:[s.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),s.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]})});Wn({displayName:"ViewOffIcon",path:s.jsxs("g",{children:[s.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),s.jsx("circle",{cx:"12",cy:"12",r:"3"})]})});var ZQ=Wn({displayName:"SearchIcon",path:s.jsxs("g",{children:[s.jsx("circle",{cx:"11",cy:"11",r:"8"}),s.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})});Wn({displayName:"CheckIcon",path:s.jsx("g",{children:s.jsx("polyline",{points:"20 6 9 17 4 12"})})});function Qt(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...d){r();for(const f of d)t[f]=c(f);return Qt(e,t)}function o(...d){for(const f of d)f in t||(t[f]=c(f));return Qt(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function l(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function c(d){const h=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>d}}return{parts:i,toPart:c,extend:o,selectors:a,classnames:l,get keys(){return Object.keys(t)},__type:{}}}var JQ=Qt("app-shell").parts("container","inner","main"),OT=Qt("emptystate").parts("container","body","icon","title","descripton","actions","footer"),eZ=Qt("banner").parts("container","icon","content","title","description","actions","close"),tZ=Qt("hotkeys").parts("container","group","groupTitle","item","command","then"),nZ=Qt("loading-overlay").parts("overlay","text"),rZ=Qt("nav-group").parts("container","title","icon","content"),iZ=Qt("nav-item").parts("item","link","inner","icon","label"),oZ=Qt("nprogress").parts("container","bar"),aZ=Qt("persona").parts("container","details","avatar","label","secondaryLabel","tertiaryLabel"),sZ=Qt("search-input").parts("input","reset"),lZ=Qt("sidebar").parts("container","overlay","section","toggleWrapper","toggle");Qt("stepper").parts("container","steps","icon","content","title","separator");var cZ=Qt("structured-list").parts("list","item","button","header","cell","icon"),FT=Qt("property").parts("property","label","value"),uZ=Qt("select").parts("addon","field","element"),dZ=Qt("timeline").parts("container","item","separator","icon","dot","track","content"),{definePartsStyle:BT,defineMultiStyleConfig:fZ}=ge(zj.keys),pZ=BT(e=>{const{colorScheme:t}=e;return{container:{bg:"white",_dark:{bg:"black"},borderWidth:"1px"},icon:{color:`${t}.500`,_dark:{color:`${t}.500`},"& .chakra-spinner":{color:"black",_dark:{color:"white"}}},title:{fontWeight:"semibold",fontSize:"md"},description:{fontSize:"sm",color:"gray.500",_dark:{color:"gray.400"}}}}),mZ=BT({container:{borderRadius:"md"}}),hZ=fZ({defaultProps:{size:"sm"},baseStyle:mZ,variants:{snackbar:pZ}}),vi=$j("badge",["bg","color","shadow","border"]),Zw=e=>{const{colorScheme:t,theme:n}=e,r=Xt(`${t}.200`,.8)(n);return{[vi.color.variable]:`colors.${t}.500`,_dark:{[vi.color.variable]:r},[vi.shadow.variable]:`inset 0 0 0px 1px ${vi.color.reference}`}},gZ={variants:{outline:e=>{const t=Zw(e);return{...t,_dark:{...t==null?void 0:t._dark,[vi.shadow.variable]:`inset 0 0 0px 1px ${vi.border.reference}`,[vi.color.variable]:`colors.${e.colorScheme}.200`,[vi.border.variable]:`colors.${e.colorScheme}.500`}}},ghost:e=>{const t=Zw(e);return{...t,shadow:"none",_dark:{...t==null?void 0:t._dark,[vi.color.variable]:`colors.${e.colorScheme}.200`}}}}},WT=e=>{const{colorScheme:t}=e;return t==="gray"?{base:ie("gray.100","whiteAlpha.300")(e),hover:ie("gray.200","whiteAlpha.400")(e),active:ie("gray.300","whiteAlpha.500")(e)}:t==="white"?{base:"whiteAlpha.900",hover:"whiteAlpha.700",active:"whiteAlpha.500"}:{base:ie(`${t}.500`,`${t}.500`)(e),hover:ie(`${t}.600`,`${t}.600`)(e),active:ie(`${t}.700`,`${t}.700`)(e)}},vZ={yellow:{bg:"yellow.400",hoverBg:"yellow.500",activeBg:"yellow.600",color:"black"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},qm=e=>{var t;const{colorScheme:n,colorMode:r}=e;if(n==="white")return{bg:"white",color:"black",_hover:{bg:"whiteAlpha.900",_dark:{bg:"whiteAlpha.900"},_disabled:{bg:"white"}},_active:{bg:"whiteAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700"}};if(n==="neutral")return{bg:"black",color:"white",_dark:{bg:"white",color:"black"},_hover:{bg:"blackAlpha.800",_disabled:{bg:"black"},_dark:{bg:"whiteAlpha.800",_disabled:{bg:"white"}}},_active:{bg:"blackAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700",_dark:{color:"whiteAlpha.700"}}};const{base:i,hover:o,active:a}=WT(e),{color:l=n==="gray"?ie("black","white")(e):"white",bg:c=i,hoverBg:u=o,activeBg:d=a}=(t=vZ[n])!=null?t:{};return{bg:c,color:l,_hover:{bg:u,_disabled:{bg:c}},_active:{bg:d}}},yZ=e=>({shadow:"md",...qm(e)}),VT=e=>{const{colorScheme:t}=e,{base:n,hover:r,active:i}=WT(e);return{...UT(e),borderColor:t==="gray"?r:n,borderWidth:"1px",_hover:{borderColor:t==="gray"?i:r}}},UT=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:"inherit",_dark:{color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:{bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.300"}}};if(t==="white")return{color:"white",_hover:{bg:"whiteAlpha.200"},_active:"whiteAlpha.300"};const r=Xt(`${t}.200`,.12)(n),i=Xt(`${t}.200`,.24)(n);return{color:`${t}.600`,_dark:{color:`${t}.200`},bg:"transparent",_hover:{bg:`${t}.50`,_dark:{bg:r}},_active:{bg:`${t}.100`,_dark:{bg:i}}}},bZ=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100",color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.200",_dark:{color:"white.200"}},_active:{bg:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"}}};const r=t==="white"?"white":ie(`${t}.500`,`${t}.200`)(e),i=Xt(r,.1)(n),o=Xt(r,.16)(n),a=Xt(r,.24)(n);return{color:t==="white"?"white":ie(`${t}.600`,`${t}.200`)(e),bg:i,_hover:{bg:o},_active:{bg:a}}},xZ=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:t==="white"?"white":ie(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:t==="white"?"whiteAlpha.800":ie(`${t}.700`,`${t}.500`)(e)}}},SZ=e=>{let{colorScheme:t}=e;return t==="gray"&&(t="primary"),qm({...e,variant:"solid",colorScheme:t})},wZ=e=>qm({...e,variant:"solid"}),kZ=e=>VT({...e,variant:"outline"}),CZ={defaultProps:{size:"sm"},variants:{solid:qm,ghost:UT,outline:VT,subtle:bZ,elevated:yZ,link:xZ,primary:SZ,secondary:wZ,tertiary:kZ}},{definePartsStyle:Ca,defineMultiStyleConfig:jZ}=ge(Bj.keys),da=te("card-bg"),O0=te("card-padding"),sx=te("card-shadow"),F0=te("card-radius"),lx=te("card-border-width","0"),co=te("card-border-color"),PZ=Ca(()=>({container:{transitionProperty:"common",transitionDuration:"normal"}})),_Z=Ca(e=>({container:{[da.variable]:"colors.white",[co.variable]:"colors.blackAlpha.200",[lx.variable]:"1px",[sx.variable]:"shadows.sm",_dark:{[da.variable]:"colors.whiteAlpha.200",[co.variable]:"colors.whiteAlpha.50"},"&.chakra-linkbox:hover":{[co.variable]:"colors.blackAlpha.300",_dark:{[co.variable]:"colors.whiteAlpha.300"}}}})),TZ=Ca(e=>{const{colorScheme:t}=e,n=t?"white":"inherit";return{container:{[lx.variable]:"0",[sx.variable]:"none",[da.variable]:t?`${t}.500`:"colors.blackAlpha.100",color:n,"&.chakra-linkbox:hover":{[da.variable]:t?`${t}.600`:"colors.blackAlpha.200"},_dark:{[da.variable]:t?`${t}.500`:"colors.whiteAlpha.100","&.chakra-linkbox:hover":{[da.variable]:t?`${t}.600`:"colors.whiteAlpha.200"}}}}}),EZ=Ca(e=>{const{colorScheme:t}=e;return{container:{[lx.variable]:"1px",[sx.variable]:"none",[co.variable]:t?`${t}.500`:"colors.blackAlpha.200",[da.variable]:"transparent","&.chakra-linkbox:hover":{[co.variable]:t?`${t}.600`:"colors.blackAlpha.300"},_dark:{[co.variable]:t?`${t}.500`:"colors.whiteAlpha.300","&.chakra-linkbox:hover":{[co.variable]:t?`${t}.600`:"colors.whiteAlpha.400"}}}}}),AZ={sm:Ca({container:{[F0.variable]:"radii.base",[O0.variable]:"space.3"}}),md:Ca({container:{[F0.variable]:"radii.md",[O0.variable]:"space.4"}}),lg:Ca({container:{[F0.variable]:"radii.xl",[O0.variable]:"space.6"}})},$Z=jZ({defaultProps:{variant:"elevated"},baseStyle:PZ,variants:{elevated:_Z,outline:EZ,filled:TZ},sizes:AZ}),{definePartsStyle:zZ,defineMultiStyleConfig:IZ}=ge(Ij.keys),RZ=zZ(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}}),MZ=IZ({baseStyle:RZ,defaultProps:{colorScheme:"primary"}}),LZ={defaultProps:{size:"sm"}},{definePartsStyle:Xf,defineMultiStyleConfig:NZ}=ge(w1.keys),tf=te("input-height"),nf=te("input-padding"),Jw=te("input-border-radius"),HT={sm:Xf({field:{[Jw.variable]:"radii.md"},group:{[Jw.variable]:"radii.md"}}),md:Xf({field:{[nf.variable]:"space.3",[tf.variable]:"sizes.9"},group:{[nf.variable]:"space.3",[tf.variable]:"sizes.9"}}),lg:Xf({field:{[nf.variable]:"space.3",[tf.variable]:"sizes.10"},group:{[nf.variable]:"space.3",[tf.variable]:"sizes.10"}})},qT=Xf(e=>({field:{borderColor:"blackAlpha.300",_dark:{borderColor:"whiteAlpha.300"},_hover:{borderColor:"blackAlpha.400",_dark:{borderColor:"whiteAlpha.400"}}}})),cx=NZ({defaultProps:{focusBorderColor:"primary.500"},variants:{outline:qT},sizes:HT}),DZ={variants:{horizontal:{mb:0,marginStart:"0.5rem"}}},Vc=cx,OZ=cx,FZ={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:qT},sizes:HT},BZ={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:e=>{var t,n;return(n=(t=Vc.variants)==null?void 0:t.outline(e).field)!=null?n:{}}}},WZ=cx,{definePartsStyle:wi,defineMultiStyleConfig:VZ}=ge(w1.keys),$s=te("input-height"),zs=te("input-font-size"),Is=te("input-padding"),Rs=te("input-border-radius"),UZ=wi({addon:{height:$s.reference,fontSize:zs.reference,px:Is.reference,borderRadius:Rs.reference},field:{width:"100%",height:$s.reference,fontSize:zs.reference,px:Is.reference,borderRadius:Rs.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Ki={lg:{[zs.variable]:"fontSizes.lg",[Is.variable]:"space.4",[Rs.variable]:"radii.md",[$s.variable]:"sizes.12"},md:{[zs.variable]:"fontSizes.md",[Is.variable]:"space.4",[Rs.variable]:"radii.md",[$s.variable]:"sizes.10"},sm:{[zs.variable]:"fontSizes.sm",[Is.variable]:"space.3",[Rs.variable]:"radii.sm",[$s.variable]:"sizes.8"},xs:{[zs.variable]:"fontSizes.xs",[Is.variable]:"space.2",[Rs.variable]:"radii.sm",[$s.variable]:"sizes.6"}},HZ={lg:wi({field:Ki.lg,group:Ki.lg}),md:wi({field:Ki.md,group:Ki.md}),sm:wi({field:Ki.sm,group:Ki.sm}),xs:wi({field:Ki.xs,group:Ki.xs})};function ux(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||ie("blue.500","blue.300")(e),errorBorderColor:n||ie("red.500","red.300")(e)}}var qZ=wi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=ux(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:ie("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ct(t,r),boxShadow:`0 0 0 1px ${ct(t,r)}`},_focusVisible:{zIndex:1,borderColor:ct(t,n),boxShadow:`0 0 0 1px ${ct(t,n)}`}},addon:{border:"1px solid",borderColor:ie("inherit","whiteAlpha.50")(e),bg:ie("gray.100","whiteAlpha.300")(e)}}}),GZ=wi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=ux(e);return{field:{border:"2px solid",borderColor:"transparent",bg:ie("gray.100","whiteAlpha.50")(e),_hover:{bg:ie("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ct(t,r)},_focusVisible:{bg:"transparent",borderColor:ct(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:ie("gray.100","whiteAlpha.50")(e)}}}),KZ=wi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=ux(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ct(t,r),boxShadow:`0px 1px 0px 0px ${ct(t,r)}`},_focusVisible:{borderColor:ct(t,n),boxShadow:`0px 1px 0px 0px ${ct(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),XZ=wi({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),YZ={outline:qZ,filled:GZ,flushed:KZ,unstyled:XZ},uo=VZ({baseStyle:UZ,sizes:HZ,variants:YZ,defaultProps:{size:"md",variant:"outline"}}),e3,t3,QZ={...uo,defaultProps:Vc.defaultProps,variants:{outline:e=>{var t,n;return{...(n=(t=Vc.variants)==null?void 0:t.outline(e))!=null?n:{}}},flushed:e=>{var t,n;return(n=(t=uo.variants)==null?void 0:t.flushed(e))!=null?n:{}},filled:e=>{var t,n;return(n=(t=uo.variants)==null?void 0:t.filled(e))!=null?n:{}},unstyled:(t3=(e3=uo.variants)==null?void 0:e3.unstyled)!=null?t3:{}},sizes:Vc.sizes},ZZ={defaultProps:{size:"lg"}},JZ=e=>({color:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"},borderWidth:0,borderBottomWidth:0,padding:"1px",display:"inline-block",borderRadius:"3px",minW:"20px",textAlign:"center",mr:1,":last-child":{mr:0}}),eJ={defaultProps:{variant:"solid"},variants:{basic:{opacity:.6},solid:JZ}},{definePartsStyle:GT,defineMultiStyleConfig:tJ}=ge(Mj.keys),nJ=GT(e=>({list:{borderWidth:1,borderColor:"blackAlpha.200",boxShadow:"lg",_dark:{borderWidth:0,borderColor:"whiteAlpha.300",boxShadow:"dark-lg"}},divider:{borderColor:"blackAlpha.200",_dark:{borderColor:"whiteAlpha.300"}},groupTitle:{mx:3}})),rJ=GT(()=>({item:{px:6},groupTitle:{color:"muted",px:3}})),iJ=tJ({baseStyle:nJ,variants:{dialog:rJ}}),{definePartsStyle:oJ,defineMultiStyleConfig:aJ}=ge(Lj.keys),sJ=oJ(e=>({closeButton:{top:4,insetEnd:4}})),lJ=aJ({baseStyle:sJ}),{definePartsStyle:cJ,defineMultiStyleConfig:uJ}=ge(Nj.keys),dJ=uJ({defaultProps:{colorScheme:"primary"},baseStyle:cJ(e=>{const{colorScheme:t}=e;return{track:{borderRadius:"md"},filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:fJ,defineMultiStyleConfig:pJ}=ge(Dj.keys),mJ=pJ({defaultProps:{colorScheme:"primary"},baseStyle:fJ(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}})}),{definePartsStyle:hJ,defineMultiStyleConfig:gJ}=ge(Oj.keys),vJ=gJ({defaultProps:{colorScheme:"primary"},baseStyle:hJ(e=>{const{colorScheme:t}=e;return{filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:yJ,defineMultiStyleConfig:bJ}=ge(Fj.keys),xJ=bJ({defaultProps:{colorScheme:"primary"},baseStyle:yJ(e=>{const{colorScheme:t}=e;return{track:{_checked:{bg:`${t}.500`}}}})}),rf=Et("tooltip-bg"),n3=Et("tooltip-fg"),SJ=Et("popper-arrow-bg"),wJ=e=>({display:"flex",[rf.variable]:"colors.white",[n3.variable]:"colors.blackAlpha.900",_dark:{[rf.variable]:"colors.gray.700",[n3.variable]:"colors.whiteAlpha.900"},px:"8px",py:"2px",bg:[rf.reference],[SJ.variable]:[rf.reference],borderRadius:"sm",fontWeight:"medium",fontSize:"xs",boxShadow:"md",maxW:"320px",zIndex:"tooltip",borderWidth:"1px"}),kJ={baseStyle:wJ},of=te("stepper-indicator-size"),ja=te("stepper-accent-color"),fa=te("stepper-vertical-seperator-offset"),{defineMultiStyleConfig:CJ,definePartsStyle:fo}=ge(["container","item","content","stepper","step","title","description","indicator","separator","icon","number"]),jJ=fo(({colorScheme:e})=>({container:{display:"flex",flexDirection:"column",gap:4},item:{w:"full"},content:{"&[data-orientation=vertical]":{mt:2,ms:fa.reference,borderLeftWidth:"1px",ps:6}},stepper:{gap:"2",[fa.variable]:"10px",[ja.variable]:`colors.${e}.500`,_dark:{[ja.variable]:`colors.${e}.500`}},separator:{transitionProperty:"common",transitionDuration:"normal","&[data-orientation=horizontal]":{height:"1px"},"&[data-orientation=vertical]":{width:"1px"},".sui-steps__item .chakra-step &[data-orientation=vertical]":{display:"none"},".sui-steps__item &[data-orientation=vertical]":{position:"static",minH:4,height:"auto",ms:fa.reference}},step:{"&[data-orientation=vertical]":{alignItems:"center"}}})),PJ=fo(e=>({})),_J=fo(e=>({indicator:{"&[data-status=active]":{borderWidth:"0",bg:ja.reference,color:"chakra-inverse-text"},"&[data-status=complete]":{bg:ja.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}}}})),TJ=fo(e=>{const{theme:t,colorScheme:n}=e;return{stepper:{[ja.variable]:`colors.${n}.100`},indicator:{"&[data-status=active]":{borderWidth:"0",bg:ja.reference,color:`${n}.500`,_dark:{bg:Xt(`${n}.200`,.16)(t)}},"&[data-status=complete]":{bg:ja.reference,color:`${n}.500`,_dark:{bg:Xt(`${n}.200`,.24)(t),color:`${n}.200`}},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",color:"blackAlpha.700",_dark:{bg:"whiteAlpha.200",color:"whiteAlpha.600"}}}}}),EJ=CJ({defaultProps:{variant:"outline",colorScheme:"primary",size:"md"},baseStyle:jJ,variants:{outline:PJ,solid:_J,subtle:TJ},sizes:{xs:fo({stepper:{[of.variable]:"sizes.4",[fa.variable]:"7px"}}),sm:fo({stepper:{[of.variable]:"sizes.6",[fa.variable]:"11px"}}),md:fo({stepper:{[of.variable]:"sizes.7",[fa.variable]:"14px"}}),lg:fo({stepper:{[of.variable]:"sizes.8",[fa.variable]:"16px"}})}}),{definePartsStyle:AJ,defineMultiStyleConfig:$J}=ge(OT.keys),zJ=AJ(e=>{const{colorScheme:t}=e;return{icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.500`}}}}),IJ=$J({baseStyle:zJ}),{definePartsStyle:KT,defineMultiStyleConfig:XT}=ge(oZ.keys),RJ=KT(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.300`}}}}),MJ=XT({defaultProps:{colorScheme:"teal"},baseStyle:RJ}),LJ=KT(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.500`}}}}),NJ=XT({defaultProps:{colorScheme:"primary"},baseStyle:LJ}),{defineMultiStyleConfig:DJ}=ge(FT.keys),OJ=DJ({baseStyle:{label:{color:"muted",_dark:{color:"muted"}}}}),FJ={Alert:hZ,Badge:gZ,Button:CZ,Card:$Z,Checkbox:MZ,CloseButton:LZ,Heading:ZZ,Kbd:eJ,Menu:iJ,Modal:lJ,Progress:dJ,Radio:mJ,Slider:vJ,Switch:xJ,Stepper:EJ,Tooltip:kJ,Input:Vc,PinInput:FZ,FormLabel:DZ,NumberInput:OZ,Select:WZ,Textarea:BZ,SuiEmptyState:IJ,SuiNProgress:NJ,SuiProperty:OJ,SuiSelect:QZ},{definePartsStyle:BJ,defineMultiStyleConfig:WJ}=ge(JQ.keys),VJ=BJ({container:{},inner:{},main:{}}),UJ=WJ({defaultProps:{variant:"fullscreen"},variants:{static:{},fullscreen:{container:{position:"absolute",inset:0}}},baseStyle:VJ}),{definePartsStyle:dx,defineMultiStyleConfig:HJ}=ge(eZ.keys),qJ=dx({container:{px:4,py:3},content:{display:"flex",flex:1,flexDirection:["column",null,"row"]},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6,marginEnd:2},actions:{marginEnd:2},icon:{flexShrink:0,marginEnd:3,w:5,h:6}}),GJ=dx(e=>{const{theme:t,colorScheme:n}=e;return{container:{bg:`${n}.100`,_dark:{bg:Xt(`${n}.200`,.16)(t)}},icon:{color:`${n}.500`,_dark:{color:`${n}.200`}}}}),KJ=dx(e=>{const{colorScheme:t}=e;return{container:{bg:`${t}.500`,color:"white"}}}),XJ=HJ({baseStyle:qJ,variants:{subtle:GJ,solid:KJ},defaultProps:{variant:"subtle",colorScheme:"blue"}}),YJ={baseStyle:{fontSize:"xs","[role=tooltip] > &":{ms:1,_before:{content:'"•"',me:1,fontSize:"xs"}}}},{definePartsStyle:YT,defineMultiStyleConfig:QJ}=ge(OT.keys),ZJ=YT(e=>{const{colorScheme:t}=e;return{icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.200`}},title:{mt:8,fontWeight:"bold",fontSize:"xl"},actions:{mt:8}}}),JJ=YT(e=>({body:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center"}})),eee=QJ({baseStyle:ZJ,variants:{centered:JJ}}),{definePartsStyle:tee,defineMultiStyleConfig:nee}=ge(Rj.keys),ree=tee({container:{display:"grid",gridTemplateColumns:"1fr 2fr",alignItems:"flex-start",flexDirection:"row",justifyContent:"flex-end"}}),iee=nee({variants:{horizontal:ree}}),oee={defaultProps:{spacing:4}},aee={baseStyle:{fontWeight:"semibold",mb:4}},{defineMultiStyleConfig:see}=ge(tZ.keys),lee=see({baseStyle:{container:{fontSize:"md"},group:{my:2,py:2},groupTitle:{py:2,fontWeight:"semibold",fontSize:"sm"},item:{display:"flex",alignItems:"center",textAlign:"start",flex:"0 0 auto",py:2},then:{mr:1,fontSize:"sm",color:"muted"}}}),{defineMultiStyleConfig:cee,definePartsStyle:Gm}=ge(nZ.keys),uee=Gm({overlay:{p:4}}),dee=Gm(()=>({overlay:{flex:1,height:"100%"}})),fee=Gm(()=>({overlay:{position:"fixed",inset:0,zIndex:"modal",bg:"white",_dark:{bg:"gray.800"}}})),pee=Gm(()=>({overlay:{position:"absolute",inset:0,bg:"whiteAlpha.300",_dark:{bg:"blackAlpha.300"}}})),mee=cee({defaultProps:{variant:"fill"},baseStyle:uee,variants:{fill:dee,fullscreen:fee,overlay:pee}}),{definePartsStyle:hee,defineMultiStyleConfig:gee}=ge(rZ.keys),vee=hee(e=>({container:{"&:not(:last-of-type)":{mb:4}},title:{display:"flex",alignItems:"center",px:3,my:1,height:6,fontSize:"sm",fontWeight:"medium",color:"muted",transitionProperty:"common",transitionDuration:"normal","&.sui-collapse-toggle .chakra-icon":{opacity:0},"&.sui-collapse-toggle":{cursor:"pointer",borderRadius:"md",_hover:{bg:"blackAlpha.100","& .chakra-icon":{opacity:1},_dark:{bg:"whiteAlpha.200"}}},"[data-compact] &":{opacity:0}},content:{}})),yee=gee({baseStyle:vee}),{definePartsStyle:sd,defineMultiStyleConfig:bee}=ge(iZ.keys),xee=sd(e=>({item:{my:"2px",color:"gray.900",minW:1,_dark:{color:"whiteAlpha.900"}},link:{display:"flex",rounded:"md",justifyContent:"flex-start",alignItems:"center",textDecoration:"none",transitionProperty:"common",transitionDuration:"normal",minW:1,_hover:{textDecoration:"none"},_focusVisible:{outline:"none",boxShadow:"outline"}},inner:{display:"flex",flex:1,w:"100%",alignItems:"center",minW:1},label:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},icon:{display:"flex",transitionProperty:"common",transitionDuration:"normal",alignItems:"center",justifyContent:"center",width:"4",ml:"-0.25rem",color:"currentColor"}})),See=sd(e=>{const t={bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100"}},_active:t,"&[aria-current=page]":t},icon:{opacity:.8,"[data-active] &":{opacity:1}}}}),wee=sd(e=>{const{colorScheme:t,theme:n}=e,r={bg:Xt(`${t}.500`,.3)(n),fontWeight:"semibold",color:`${t}.600`,_dark:{bg:Xt(`${t}.500`,.3)(n),color:`${t}.100`}};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:r,"&[aria-current=page]":r}}}),kee=sd(e=>{const{colorScheme:t}=e,n={bg:`${t}.500`};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:n,"&[aria-current=page]":n,color:"white"},icon:{color:"white"},label:{}}}),Cee=sd(e=>{const{colorScheme:t}=e,n={_before:{content:'""',display:"block",position:"absolute",top:0,bottom:0,left:-3,width:"3px",bg:`${t}.500`}};return{item:{position:"relative"},link:{_hover:{color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:n,"&[aria-current=page]":n},icon:{"[data-active] &":{color:"currentColor"}},label:{}}}),r3,i3,o3,a3,jee=bee({defaultProps:{size:"sm",colorScheme:"primary",variant:"neutral"},baseStyle:xee,sizes:{xs:{link:(r3=ca.components.Button.sizes)==null?void 0:r3.xs,icon:{me:1,fontSize:"xs"}},sm:{link:(i3=ca.components.Button.sizes)==null?void 0:i3.sm,icon:{me:2,fontSize:"sm"}},md:{link:(o3=ca.components.Button.sizes)==null?void 0:o3.md,icon:{me:2,fontSize:"md"}},lg:{link:(a3=ca.components.Button.sizes)==null?void 0:a3.lg,icon:{me:3,fontSize:"lg"}}},variants:{neutral:See,subtle:wee,solid:kee,"left-accent":Cee}}),{definePartsStyle:Zi,defineMultiStyleConfig:Pee}=ge(aZ.keys),s3=e=>({color:"gray.500",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minW:0,_dark:{color:"whiteAlpha.600"}}),_ee=Zi(e=>({details:{minW:0},secondaryLabel:s3(e),tertiaryLabel:s3(e)})),Tee={"2xs":Zi({details:{ms:2},label:{fontSize:"xs"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),xs:Zi({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),sm:Zi({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),md:Zi({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),lg:Zi({details:{ms:3},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{fontSize:"sm"}}),xl:Zi({details:{ms:3},label:{fontSize:"xl"},secondaryLabel:{fontSize:"md"},tertiaryLabel:{fontSize:"md"}}),"2xl":Zi({details:{ms:4},label:{fontSize:"2xl"},secondaryLabel:{fontSize:"lg"},tertiaryLabel:{fontSize:"lg"}})},Eee=Pee({defaultProps:{size:"md"},baseStyle:_ee,sizes:Tee}),{defineMultiStyleConfig:Aee}=ge(FT.keys),$ee=Aee({baseStyle:{label:{display:"flex",flexDirection:"row",minWidth:"100px",width:"30%",marginEnd:2,py:2,color:"gray.500",_dark:{color:"gray.400"}}}}),{defineMultiStyleConfig:zee}=ge(sZ.keys),Iee=zee({baseStyle:{input:{pr:8}},sizes:{sm:{reset:{fontSize:"0.7em"}},lg:{input:{pr:10}}}}),{definePartsStyle:fx,defineMultiStyleConfig:Ree}=ge(lZ.keys),Mee=fx(e=>{const{colorScheme:t}=e;return{container:{bg:t?`${t}.500`:"white",display:"flex",flexDirection:"column",borderRightWidth:"1px",_dark:{bg:t?`${t}.500`:"gray.800"}},overlay:{bg:"blackAlpha.200"}}}),Lee=fx(e=>({container:{width:"280px",maxWidth:["100vw","320px"],minWidth:"220px",py:3,"&[data-collapsible]":{pt:14}},section:{px:3},toggleWrapper:{h:8,mb:4,display:"none","[data-collapsible] &":{display:"block"}}})),Nee=fx(e=>({container:{width:"14",py:3},section:{px:3},toggleWrapper:{display:"none"}})),Dee=Ree({defaultProps:{variant:"default"},baseStyle:Mee,variants:{default:Lee,compact:Nee}}),{defineMultiStyleConfig:Oee}=ge(uZ.keys),Fee=Oee({defaultProps:uo.defaultProps,baseStyle:uo.baseStyle,sizes:uo.sizes,variants:uo.variants}),{definePartsStyle:Bee,defineMultiStyleConfig:Wee}=ge(cZ.keys),Vee=Bee(e=>({item:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",fontSize:"md"},button:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",flex:1,cursor:"pointer",userSelect:"none",transitionProperty:"common",transitionDuration:"normal",borderRadius:"inherit",outline:"none",_hover:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_focusVisible:{boxShadow:"outline"},_focus:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_active:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100"}},_disabled:{cursor:"inherit",opacity:.5,_hover:{bg:"transparent",_dark:{bg:"transparent"}},_active:{bg:"transparent",_dark:{bg:"transparent"}}}},header:{display:"flex",flexDirection:"row",position:"sticky",fontSize:"md",fontWeight:"semibold",color:"muted"},icon:{display:"flex",flexShrink:0}})),Uee=Wee({defaultProps:{size:"md"},baseStyle:Vee,sizes:{sm:{item:{py:1,px:1},header:{py:1,px:1},button:{py:1,px:1},cell:{px:1},icon:{px:1}},md:{item:{py:2,px:2},header:{py:2,px:2},button:{py:2,px:2},cell:{px:2},icon:{px:2}}}}),{definePartsStyle:px,defineMultiStyleConfig:Hee}=ge(dZ.keys),l3=te("timeline-row-start","minmax(0,1fr)"),qee=te("timeline-row-end","minmax(0,1fr)"),c3=te("timeline-col-start","minmax(0,1fr)"),u3=te("timeline-col-end","minmax(0,1fr)"),Gee=px(e=>({container:{display:"flex",[l3.variable]:"minmax(0,1fr)",[qee.variable]:"minmax(0,1fr)",[c3.variable]:"auto",[u3.variable]:"2fr",flexDirection:"column",justifyItems:"center"},item:{display:"grid",alignItems:"center",justifyItems:"start",gridTemplateRows:`${l3.reference}`,gridTemplateColumns:`${c3.reference} ${u3.reference}`,position:"relative"},separator:{mx:1,minW:"24px",flexShrink:0,gridColumnStart:1,gap:2,height:"100%",_before:{content:'""',display:"block",flex:1,minH:"0.5em"},_after:{content:'""',display:"block",flex:1,minH:"0.5em"},"&:has(.sui-timeline__track:first-of-type):before":{display:"none"},"&:has(.sui-timeline__track:last-of-type):after":{display:"none"}},icon:{color:"gray.300",_dark:{color:"gray.600"}},dot:{width:"9px",height:"9px",bg:"currentColor",borderRadius:"full"},track:{bg:"gray.300",width:"1px",flex:1,minH:"0.5em",_dark:{bg:"gray.600"}},content:{px:"2",_first:{gridColumnStart:1},_last:{gridColumnStart:2,justifySelf:"start"}}})),Kee=px(e=>({icon:{}})),Xee=px(e=>({dot:{bg:"transparent",borderColor:"currentColor",borderWidth:"2px"}})),Yee=Hee({defaultProps:{variant:"solid",size:"sm"},baseStyle:Gee,variants:{solid:Kee,outline:Xee},sizes:{sm:{icon:{minH:"8px",minW:"8px"}}}}),Qee={baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center"},variants:{outline:({colorScheme:e})=>({borderWidth:"1px",borderColor:e?`${e}.500`:"chakra-border-color",color:e?`${e}.500`:"currentColor"}),solid:({colorScheme:e="gray"})=>({bg:`${e}.500`,color:"white"})},sizes:{sm:{borderRadius:"sm",fontSize:"0.9em",w:6,h:6},md:{borderRadius:"md",fontSize:"1.1em",w:8,h:8},lg:{borderRadius:"md",fontSize:"1.3em",w:10,h:10},xl:{borderRadius:"md",fontSize:"1.5em",w:12,h:12}},defaultProps:{variant:"outline",size:"md"}},Zee=Fe("navbar").parts("container","inner","brand","content","item","link"),{defineMultiStyleConfig:Jee,definePartsStyle:ete}=ge(Zee.keys),d3=te("navbar-bg"),f3=te("navbar-text-color","currentColor"),B0=te("navbar-link-bg","transparent"),tte=["yellow","cyan"],nte=Jee({baseStyle:ete(({colorScheme:e})=>{let t="currentColor";return e&&(t=tte.includes(e)?"colors.black":"colors.white"),{container:{display:"flex",[d3.variable]:e?`colors.${e}.500`:"colors.chakra-body-bg",[f3.variable]:t,bg:d3.reference,color:f3.reference,zIndex:"overlay",width:"full",height:"auto",alignItems:"center",justifyContent:"center",data:{"& [data-menu-open=true]":{border:"none"}}},inner:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",height:"var(--navbar-height)",px:{base:4,lg:6},gap:4,flexWrap:"nowrap"},toggle:{display:"flex",alignItems:"center",justifyContent:"center",width:6,height:"full",outline:"none",borderRadius:"sm"},brand:{display:"flex",alignItems:"center",justifyContent:"flex-start",height:"full",bg:"transparent",textDecoration:"none",color:"inherit",whiteSpace:"nowrap",boxSizing:"border-box"},content:{display:"flex",alignItems:"center",justifyContent:"flex-start",flex:1,listStyle:"none"},item:{display:"inline-flex",p:0},link:{bg:B0.reference,color:"current",display:"inline-flex",alignItems:"center",justifyContent:"center",textDecoration:"none",whiteSpace:"nowrap",boxSizing:"border-box",borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",lineHeight:1,px:3,h:8,_focusVisible:{outline:"none",boxShadow:"outline"},_hover:{[B0.variable]:"colors.blackAlpha.100",textDecoration:"none",_dark:{[B0.variable]:"colors.whiteAlpha.200"}},_active:{fontWeight:"semibold"}}}})}),rte={Form:iee,SuiAppShell:UJ,SuiBanner:XJ,SuiCommand:YJ,SuiEmptyState:eee,SuiFormLayout:oee,SuiFormLegend:aee,SuiHotkeys:lee,SuiStructuredList:Uee,SuiLoadingOverlay:mee,SuiNavGroup:yee,SuiNavItem:jee,SuiPersona:Eee,SuiProperty:$ee,SuiNProgress:MJ,SuiSearchInput:Iee,SuiSelect:Fee,SuiSidebar:Dee,SuiTimeline:Yee,SuiIconBadge:Qee,SuiNavbar:nte},ite=$b({colors:{primary:ca.colors.blue},semanticTokens:{colors:{"presence.online":"green.500","presence.offline":"gray.400","presence.busy":"orange.500","presence.dnd":"red.500","presence.away":"gray.400"}},components:rte}),ote={global:e=>({body:{WebkitFontSmoothing:"antialiased",TextRendering:"optimizelegibility"}})},W0={black:"#0e1012",gray:{50:"#f9fafa",100:"#f1f1f2",200:"#e7e7e8",300:"#d3d4d5",400:"#abadaf",500:"#7d7f83",600:"#52555a",700:"#33373d",800:"#1d2025",900:"#171a1d"},purple:{50:"#f9f6fd",100:"#e5daf8",200:"#d3bef4",300:"#b795ec",400:"#a379e7",500:"#8952e0",600:"#7434db",700:"#6023c0",800:"#4f1d9e",900:"#3b1676"},pink:{50:"#fdf5f9",100:"#f8d9e7",200:"#f3b9d3",300:"#eb8db8",400:"#e56ba2",500:"#dc3882",600:"#c4246c",700:"#a01d58",800:"#7d1745",900:"#5d1133"},red:{50:"#fdf6f5",100:"#f8d9d8",200:"#f1b8b4",300:"#e98d87",400:"#e4726c",500:"#dc4a41",600:"#d2140a",700:"#ac0900",800:"#930800",900:"#6d0600"},orange:{50:"#fdfaf6",100:"#f9ebdb",200:"#f1d4b1",300:"#e6b273",400:"#dc9239",500:"#c37b24",600:"#a5681e",700:"#835318",800:"#674113",900:"#553610"},yellow:{50:"#fffefb",100:"#fff8e9",200:"#feecbd",300:"#fddc87",400:"#fbc434",500:"#d2a01e",600:"#a88018",700:"#836413",800:"#624b0e",900:"#513e0c"},green:{50:"#f7fdfb",100:"#d2f2e7",200:"#9fe3cd",300:"#64d2ad",400:"#1dbd88",500:"#0ea371",600:"#0c875e",700:"#096949",800:"#07563c",900:"#064731"},teal:{50:"#f1fcfc",100:"#c0f1f4",200:"#84e4e9",300:"#2dd1da",400:"#22b2ba",500:"#1d979e",600:"#187b80",700:"#125f64",800:"#0f5053",900:"#0d4244"},cyan:{50:"#f4fbfd",100:"#d0eef7",200:"#bae7f3",300:"#a2deee",400:"#53c2e1",500:"#2ab4d9",600:"#24a2c4",700:"#1e86a2",800:"#196e85",900:"#135567"},blue:{50:"#f1f6fd",100:"#cde0f6",200:"#a8c8f0",300:"#7fafe8",400:"#5896e1",500:"#347fdb",600:"#236abf",700:"#1b5192",800:"#164278",900:"#123662"},indigo:{50:"#f8f7fc",100:"#e1ddf5",200:"#c8c0ec",300:"#a89de2",400:"#9789dc",500:"#7f6ed4",600:"#6a58c9",700:"#5546a1",800:"#483c88",900:"#342b62"}},Gv={primary:W0.purple,secondary:W0.cyan,...W0},ate={heading:"InterVariable, Inter, sans-serif",body:"InterVariable, Inter, sans-serif"},ste={"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.8125rem",md:"0.875rem",lg:"1rem",xl:"1.125rem","2xl":"1.25rem","3xl":"1.5rem","4xl":"1.875rem","5xl":"2.25rem","6xl":"3rem","7xl":"3.75rem","8xl":"4.5rem","9xl":"6rem"},lte={h1:{fontSize:["5xl","6xl","7xl"],fontWeight:"extrabold",lineHeight:"1.2",letterSpacing:"-2%"},h2:{fontSize:["3xl","4xl","5xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},h3:{fontSize:["lg","xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},subtitle:{fontSize:["lg",null,"2xl"],fontWeight:"normal"}},cte={container:{sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}},ute=cte,dte={outline:`0 0 0 2px ${Xt(Gv.primary[500],.6)({colors:Gv})}`},fte=dte,pte={colors:{"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.200"},muted:{default:"gray.500",_dark:"gray.400"},neutral:{default:"black",_dark:"white"},"neutral-fg":{default:"white",_dark:"black"}}},mte={colors:Gv,fonts:ate,fontSizes:ste,textStyles:lte,sizes:ute,shadows:fte,semanticTokens:pte},QT=$b({...mte,styles:ote,components:FJ},ite);function ZT(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}function hte(e,t){return e.find(n=>n.id===t)}function JT(e,t){const n=hte(e,t);return n?e.indexOf(n):-1}function gte(e,t,n=!0){let r=JT(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function vte(e,t,n=!0){let r=JT(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}const po=e=>(e==null?void 0:e.ownerDocument)??document,Eo=e=>e&&"window"in e&&e.window===e?e:po(e).defaultView||window;function yte(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function bte(e){return yte(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}const xte=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Ste(e){const t=Eo(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=Eo(e);let{display:a,visibility:l}=o(e);i=a!=="none"&&l!=="hidden"&&l!=="collapse"}return i}function wte(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function e8(e,t){return xte?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&Ste(e)&&wte(e,t)&&(!e.parentElement||e8(e.parentElement,e))}const t8=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],kte=t8.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";t8.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function Cte(e,t){return e.matches(kte)&&!jte(e)&&((t==null?void 0:t.skipVisibilityCheck)||e8(e))}function jte(e){let t=e;for(;t!=null;){if(t instanceof Eo(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function n8(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const mx=typeof document<"u"?rn.useLayoutEffect:()=>{};let Kv=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{Kv.delete(e)});function Pte(e,t){if(e===t)return e;let n=Kv.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Kv.get(t);return r?(r.forEach(i=>i.current=e),e):t}function _te(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(i=>{const o=p3(i,t);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():p3(e[o],null)})}}}function p3(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function r8(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t=65&&i.charCodeAt(2)<=90?t[i]=n8(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?t[i]=Tte(o,a):i==="id"&&o&&a?t.id=Pte(o,a):i==="ref"&&o&&a?t.ref=_te(o,a):t[i]=a!==void 0?a:o}}return t}function zu(e){if(Ete())e.focus({preventScroll:!0});else{let t=Ate(e);e.focus(),$te(t)}}let af=null;function Ete(){if(af==null){af=!1;try{document.createElement("div").focus({get preventScroll(){return af=!0,!0}})}catch{}}return af}function Ate(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeightt.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Rte(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Mte(e){for(;e&&!Cte(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=Eo(e),n=t.document.activeElement;if(!n||n===e)return;let r=!1,i=d=>{(Ht(d)===n||r)&&d.stopImmediatePropagation()},o=d=>{(Ht(d)===n||r)&&(d.stopImmediatePropagation(),!e&&!r&&(r=!0,zu(n),c()))},a=d=>{(Ht(d)===e||r)&&d.stopImmediatePropagation()},l=d=>{(Ht(d)===e||r)&&(d.stopImmediatePropagation(),r||(r=!0,zu(n),c()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",o,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",a,!0);let c=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",o,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",a,!0),r=!1},u=requestAnimationFrame(c);return c}function Km(e){var n;if(typeof window>"u"||window.navigator==null)return!1;let t=(n=window.navigator.userAgentData)==null?void 0:n.brands;return Array.isArray(t)&&t.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function gx(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)==null?void 0:t.platform)||window.navigator.platform):!1}function Vo(e){let t=null;return()=>(t==null&&(t=e()),t)}const Wp=Vo(function(){return gx(/^Mac/i)}),Lte=Vo(function(){return gx(/^iPhone/i)}),o8=Vo(function(){return gx(/^iPad/i)||Wp()&&navigator.maxTouchPoints>1}),a8=Vo(function(){return Lte()||o8()}),Nte=Vo(function(){return Km(/AppleWebKit/i)&&!Dte()}),Dte=Vo(function(){return Km(/Chrome/i)}),s8=Vo(function(){return Km(/Android/i)}),Ote=Vo(function(){return Km(/Firefox/i)});let oo=new Map,Xv=new Set;function m3(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{let i=Ht(r);if(!e(r)||!i)return;let o=oo.get(i);o||(o=new Set,oo.set(i,o),i.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{let i=Ht(r);if(!e(r)||!i)return;let o=oo.get(i);if(o&&(o.delete(r.propertyName),o.size===0&&(i.removeEventListener("transitioncancel",n),oo.delete(i)),oo.size===0)){for(let a of Xv)a();Xv.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?m3():document.addEventListener("DOMContentLoaded",m3));function Fte(){for(const[e]of oo)"isConnected"in e&&!e.isConnected&&oo.delete(e)}function Bte(e){requestAnimationFrame(()=>{Fte(),oo.size===0?e():Xv.add(e)})}let Ms="default",Yv="",Yf=new WeakMap;function Wte(e){if(a8()){if(Ms==="default"){const t=po(e);Yv=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ms="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Yf.set(e,e.style[t]),e.style[t]="none"}}function h3(e){if(a8()){if(Ms!=="disabled")return;Ms="restoring",setTimeout(()=>{Bte(()=>{if(Ms==="restoring"){const t=po(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Yv||""),Yv="",Ms="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Yf.has(e)){let t=Yf.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Yf.delete(e)}}function g3(e){let t=e==null?void 0:e.defaultView;return(t==null?void 0:t.__webpack_nonce__)||globalThis.__webpack_nonce__||void 0}let V0=new WeakMap;function Vte(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return g3(t);if(V0.has(t))return V0.get(t);let n=t.querySelector('meta[property="csp-nonce"]'),r=n&&n instanceof Eo(n).HTMLMetaElement&&(n.nonce||n.content)||g3(t)||void 0;return r!==void 0&&V0.set(t,r),r}function Ute(e){return e.pointerType===""&&e.isTrusted?!0:s8()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Hte(e){return!s8()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Iu(e,t,n=!0){var c,u;let{metaKey:r,ctrlKey:i,altKey:o,shiftKey:a}=t;Ote()&&((u=(c=window.event)==null?void 0:c.type)!=null&&u.startsWith("key"))&&e.target==="_blank"&&(Wp()?r=!0:i=!0);let l=Nte()&&Wp()&&!o8()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:i,altKey:o,shiftKey:a}):new MouseEvent("click",{metaKey:r,ctrlKey:i,altKey:o,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});Iu.isOpening=n,zu(e),e.dispatchEvent(l),Iu.isOpening=!1}Iu.isOpening=!1;const l8=rn.createContext({register:()=>{}});l8.displayName="PressResponderContext";const qte=rn.useInsertionEffect??mx;function Qf(e){const t=m.useRef(null);return qte(()=>{t.current=e},[e]),m.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function c8(){let e=m.useRef(new Map),t=m.useCallback((i,o,a,l)=>{let c=l!=null&&l.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:o,eventTarget:i,fn:c,options:l}),i.addEventListener(o,c,l)},[]),n=m.useCallback((i,o,a,l)=>{var u;let c=((u=e.current.get(a))==null?void 0:u.fn)||a;i.removeEventListener(o,c,l),e.current.delete(a)},[]),r=m.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return m.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Gte(e,t){mx(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Kte(e){let t=m.useContext(l8);if(t){let{register:n,ref:r,...i}=t;e=hx(i,e),n()}return Gte(t,e.ref),e}var Js;class sf{constructor(t,n,r,i){a2(this,Js);kh(this,Js,!0);let o=(i==null?void 0:i.target)??r.currentTarget;const a=o==null?void 0:o.getBoundingClientRect();let l,c=0,u,d=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,d=r.clientY),a&&(u!=null&&d!=null?(l=u-a.left,c=d-a.top):(l=a.width/2,c=a.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=c,this.key=r.key}continuePropagation(){kh(this,Js,!1)}get shouldStopPropagation(){return o2(this,Js)}}Js=new WeakMap;const v3=Symbol("linkClicked"),y3="react-aria-pressable-style",b3="data-react-aria-pressable";function Xte(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:a,isDisabled:l,isPressed:c,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...h}=Kte(e),[v,b]=m.useState(!1),x=m.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:g}=c8(),S=m.useCallback((M,N)=>{let O=x.current;if(l||O.didFirePressStart)return!1;let L=!0;if(O.isTriggeringEvent=!0,r){let I=new sf("pressstart",N,M);r(I),L=I.shouldStopPropagation}return n&&n(!0),O.isTriggeringEvent=!1,O.didFirePressStart=!0,b(!0),L},[l,r,n]),w=m.useCallback((M,N,O=!0)=>{let L=x.current;if(!L.didFirePressStart)return!1;L.didFirePressStart=!1,L.isTriggeringEvent=!0;let I=!0;if(i){let D=new sf("pressend",N,M);i(D),I=D.shouldStopPropagation}if(n&&n(!1),b(!1),t&&O&&!l){let D=new sf("press",N,M);t(D),I&&(I=D.shouldStopPropagation)}return L.isTriggeringEvent=!1,I},[l,i,n,t]),k=Qf(w),C=m.useCallback((M,N)=>{let O=x.current;if(l)return!1;if(o){O.isTriggeringEvent=!0;let L=new sf("pressup",N,M);return o(L),O.isTriggeringEvent=!1,L.shouldStopPropagation}return!0},[l,o]),P=Qf(C),j=m.useCallback(M=>{let N=x.current;if(N.isPressed&&N.target){N.didFirePressStart&&N.pointerType!=null&&w(Xo(N.target,M),N.pointerType,!1),N.isPressed=!1,N.isOverTarget=!1,N.activePointerId=null,N.pointerType=null,g(),f||h3(N.target);for(let O of N.disposables)O();N.disposables=[]}},[f,g,w]),R=Qf(j);m.useEffect(()=>{l&&x.current.isPressed&&R({currentTarget:x.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[l]);let T=m.useCallback(M=>{d&&j(M)},[d,j]),$=m.useCallback(M=>{l||a==null||a(M)},[l,a]),K=m.useCallback((M,N)=>{if(!l&&a){let O=new MouseEvent("click",M);Rte(O,N),a(Ite(O))}},[l,a]),X=m.useMemo(()=>{let M=x.current,N={onKeyDown(L){var I;if(U0(L.nativeEvent,L.currentTarget)&&Vr(L.currentTarget,Ht(L))){x3(Ht(L),L.key)&&L.preventDefault();let D=!0;!M.isPressed&&!L.repeat&&(M.target=L.currentTarget,M.isPressed=!0,M.pointerType="keyboard",D=S(L,"keyboard"));let q=L.currentTarget,J=le=>{U0(le,q)&&!le.repeat&&Vr(q,Ht(le))&&M.target&&P(Xo(M.target,le),"keyboard")};y(po(L.currentTarget),"keyup",n8(J,O),!0),D&&L.stopPropagation(),L.metaKey&&Wp()&&((I=M.metaKeyEvents)==null||I.set(L.key,L.nativeEvent))}else L.key==="Meta"&&(M.metaKeyEvents=new Map)},onClick(L){if(!(L&&!Vr(L.currentTarget,Ht(L)))&&L&&L.button===0&&!M.isTriggeringEvent&&!Iu.isOpening){let I=!0;if(l&&L.preventDefault(),!M.ignoreEmulatedMouseEvents&&!M.isPressed&&(M.pointerType==="virtual"||Ute(L.nativeEvent))){let D=S(L,"virtual"),q=P(L,"virtual"),J=k(L,"virtual");$(L),I=D&&q&&J}else if(M.isPressed&&M.pointerType!=="keyboard"){let D=M.pointerType||L.nativeEvent.pointerType||"virtual",q=P(Xo(L.currentTarget,L),D),J=k(Xo(L.currentTarget,L),D,!0);I=q&&J,M.isOverTarget=!1,$(L),R(L)}M.ignoreEmulatedMouseEvents=!1,I&&L.stopPropagation()}}},O=L=>{var I,D,q;if(M.isPressed&&M.target&&U0(L,M.target)){x3(Ht(L),L.key)&&L.preventDefault();let J=Ht(L),le=Vr(M.target,J);k(Xo(M.target,L),"keyboard",le),le&&K(L,M.target),g(),L.key!=="Enter"&&vx(M.target)&&Vr(M.target,J)&&!L[v3]&&(L[v3]=!0,Iu(M.target,L,!1)),M.isPressed=!1,(I=M.metaKeyEvents)==null||I.delete(L.key)}else if(L.key==="Meta"&&((D=M.metaKeyEvents)!=null&&D.size)){let J=M.metaKeyEvents;M.metaKeyEvents=void 0;for(let le of J.values())(q=M.target)==null||q.dispatchEvent(new KeyboardEvent("keyup",le))}};if(typeof PointerEvent<"u"){N.onPointerDown=D=>{if(D.button!==0||!Vr(D.currentTarget,Ht(D)))return;if(Hte(D.nativeEvent)){M.pointerType="virtual";return}M.pointerType=D.pointerType;let q=!0;if(!M.isPressed){M.isPressed=!0,M.isOverTarget=!0,M.activePointerId=D.pointerId,M.target=D.currentTarget,f||Wte(M.target),q=S(D,M.pointerType);let J=Ht(D);"releasePointerCapture"in J&&("hasPointerCapture"in J?J.hasPointerCapture(D.pointerId)&&J.releasePointerCapture(D.pointerId):J.releasePointerCapture(D.pointerId)),y(po(D.currentTarget),"pointerup",L,!1),y(po(D.currentTarget),"pointercancel",I,!1)}q&&D.stopPropagation()},N.onMouseDown=D=>{if(Vr(D.currentTarget,Ht(D))&&D.button===0){if(u){let q=Mte(D.target);q&&M.disposables.push(q)}D.stopPropagation()}},N.onPointerUp=D=>{!Vr(D.currentTarget,Ht(D))||M.pointerType==="virtual"||D.button===0&&!M.isPressed&&P(D,M.pointerType||D.pointerType)},N.onPointerEnter=D=>{D.pointerId===M.activePointerId&&M.target&&!M.isOverTarget&&M.pointerType!=null&&(M.isOverTarget=!0,S(Xo(M.target,D),M.pointerType))},N.onPointerLeave=D=>{D.pointerId===M.activePointerId&&M.target&&M.isOverTarget&&M.pointerType!=null&&(M.isOverTarget=!1,k(Xo(M.target,D),M.pointerType,!1),T(D))};let L=D=>{if(D.pointerId===M.activePointerId&&M.isPressed&&D.button===0&&M.target){if(Vr(M.target,Ht(D))&&M.pointerType!=null){let q=!1,J=setTimeout(()=>{M.isPressed&&M.target instanceof HTMLElement&&(q?R(D):(zu(M.target),M.target.click()))},80);y(D.currentTarget,"click",()=>q=!0,!0),M.disposables.push(()=>clearTimeout(J))}else R(D);M.isOverTarget=!1}},I=D=>{R(D)};N.onDragStart=D=>{Vr(D.currentTarget,Ht(D))&&R(D)}}return N},[y,l,u,g,f,T,S,$,K]);return m.useEffect(()=>{if(!p)return;const M=po(p.current);if(!M||!M.head||M.getElementById(y3))return;const N=M.createElement("style");N.id=y3;let O=Vte(M);O&&(N.nonce=O),N.textContent=` +@layer { + [${b3}] { + touch-action: pan-x pan-y pinch-zoom; + } +} + `.trim(),M.head.prepend(N)},[p]),m.useEffect(()=>{let M=x.current;return()=>{f||h3(M.target??void 0);for(let N of M.disposables)N();M.disposables=[]}},[f]),{isPressed:c||v,pressProps:hx(h,X,{[b3]:!0})}}function vx(e){return e.tagName==="A"&&e.hasAttribute("href")}function U0(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Eo(i).HTMLInputElement&&!u8(i,n)||i instanceof Eo(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&vx(i))&&n!=="Enter")}function Xo(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function Yte(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!vx(e)}function x3(e,t){return e instanceof HTMLInputElement?!u8(e,t):Yte(e)}const Qte=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function u8(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Qte.has(e.type)}let Zte=0;const H0=new Map;function Jte(e){let[t,n]=m.useState();return mx(()=>{if(!e)return;let r=H0.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${Zte++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=e,document.body.appendChild(o),r={refCount:0,element:o},H0.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),H0.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}const ene=500;function tne(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=ene,accessibilityDescription:a}=e;const l=m.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:u}=c8(),{pressProps:d}=Xte({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),l.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),po(p.target).activeElement!==p.target&&zu(p.target),i&&i({...p,type:"longpress"}),l.current=void 0},o),p.pointerType==="touch")){let h=b=>{b.preventDefault()},v=Eo(p.target);c(p.target,"contextmenu",h,{once:!0}),c(v,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){l.current&&clearTimeout(l.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=Jte(i&&!t?a:void 0);return{longPressProps:hx(d,f)}}function nne(){return typeof window.ResizeObserver<"u"}function rne(e){const{ref:t,box:n,onResize:r}=e;let i=Qf(r);m.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(nne()){const a=new window.ResizeObserver(l=>{l.length&&i()});return a.observe(o,{box:n}),()=>{o&&a.unobserve(o)}}else return window.addEventListener("resize",i,!1),()=>{window.removeEventListener("resize",i,!1)}},[t,n])}function ine(e,t){return m.Children.toArray(e).find(n=>n.type===t)}function one(e,t){return m.Children.toArray(e).filter(n=>Array.isArray(t)?t.some(r=>r===n.type):n.type===t)}var ane=(e,t)=>Array.isArray(e)?e:typeof e=="object"?t==null?void 0:t(e):e!=null?[e]:[],S3=(e,t)=>{var n;const r=Di(),i=ane(e,(n=r.__breakpoints)==null?void 0:n.toArrayValue);return Op(i,t)},[dde,sne]=Or("SuiEmptyState"),lne=W((e,t)=>{var n;const r=sne();return s.jsx(wt,{ref:t,role:"presentation",...e,boxSize:(n=e.boxSize)!=null?n:10,sx:{...r.icon,...e.sx},className:V("sui-empty-state__icon",e.className)})});lne.displayName="EmptyStateIcon";var yx=m.createContext({});function cne(e){const{theme:t,linkComponent:n,onError:r,children:i,...o}=e,a={linkComponent:n,onError:r};return s.jsx(yx.Provider,{value:a,children:s.jsx(mq,{...o,theme:t||QT,children:i})})}var une=()=>m.useContext(yx),dne=e=>s.jsx(F.a,{...e});function bx(){const e=une();return e!=null&&e.linkComponent?e.linkComponent:dne}var fne=class extends m.Component{constructor(e){super(e),this.onError=(t,n)=>{var r,i,o,a;(i=(r=this.props).onError)==null||i.call(r,t,n),(a=(o=this.context).onError)==null||a.call(o,t,n)},this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.onError(e,t)}render(){return this.state.error?this.props.fallback||s.jsx("h1",{children:"Something went wrong."}):this.props.children}};fne.contextType=yx;var d8=(e="lg")=>e?{base:!0,[e]:!1}:{base:!1},[pne,mne]=Te({strict:!1,errorMessage:"AppShell context not available."}),hne=e=>{const t=Hu(),n=d8(e.toggleBreakpoint),r=Op(n,{fallback:e.toggleBreakpoint||"lg"});return{isSidebarOpen:t.isOpen,closeSidebar:t.onClose,openSidebar:t.onOpen,toggleSidebar:t.onToggle,isMobile:r}},[gne]=Or("SuiAppShell"),vne=W((e,t)=>{const n=tt("SuiAppShell",e),{navbar:r,sidebar:i,aside:o,footer:a,children:l,mainRef:c,...u}=Ie(e),d={flexDirection:"column",...n.container},f={flex:1,minHeight:0,minWidth:0,...n.inner},p={flex:1,flexDirection:"column",minWidth:0,...n.main},h=m.isValidElement(i)&&i.type.id==="Sidebar",v=hne({toggleBreakpoint:h?i==null?void 0:i.props.toggleBreakpoint:void 0});return s.jsx(pne,{value:v,children:s.jsx(gne,{value:n,children:s.jsxs(gt,{ref:t,...u,sx:d,className:V("sui-app-shell",e.className),children:[r,s.jsxs(gt,{sx:f,className:"saas-app-shell__inner",children:[i,s.jsx(gt,{ref:c,sx:p,className:"saas-app-shell__main",children:l}),o]}),a]})})})});vne.displayName="AppShell";function yne(e){return s.jsx(wt,{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function bne(e){return s.jsx(wt,{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function w3(e){return s.jsx(wt,{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var lf={enter:{duration:.2,ease:Si.easeOut},exit:{duration:.2,ease:Si.easeIn}},xne={slideOutTop:{...lo,custom:{offsetY:"-100%",reverse:!0,transition:lf},initial:"enter"},slideOutBottom:{...lo,custom:{offsetY:"100%",reverse:!0,transition:lf},initial:"enter"},fade:{...lo,custom:{transition:lf},initial:"enter"},scale:{...tx,custom:{initialScale:.1,reverse:!0,transition:lf},initial:"enter"},none:{custom:{}}},Sne=F(ir.div),wne=m.forwardRef((e,t)=>{const{motionPreset:n,...r}=e,o={...xne[n]};return s.jsx(Sne,{ref:t,...o,...r})}),[kne,ld]=Or("SuiBanner"),Cne={info:{icon:bne,colorScheme:"blue"},warning:{icon:w3,colorScheme:"orange"},success:{icon:yne,colorScheme:"green"},error:{icon:w3,colorScheme:"red"}},[jne,Pne]=Te({name:"BannerContext",errorMessage:"useBannerContext: `context` is undefined. Seems you forgot to wrap banner components in ``"}),_ne=W((e,t)=>{var n;const{id:r,status:i="info",isOpen:o=!0,onClose:a,motionPreset:l="slideOutTop",...c}=Ie(e),u=(n=e.colorScheme)!=null?n:Cne[i].colorScheme,d=tt("SuiBanner",{...e,colorScheme:u}),f={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...d.container},p={id:r||`banner-${m.useId()}`,status:i,onClose:a,isOpen:o},h=["warning","error"].includes(i)?"alert":"status",v=o?"enter":"exit";return s.jsx(jne,{value:p,children:s.jsx(kne,{value:d,children:s.jsx(Ni,{children:o&&s.jsx(wne,{id:p.id,role:h,ref:t,motionPreset:l,animate:v,...c,className:V("sui-banner",e.className),__css:f})})})})});_ne.displayName="Banner";var Tne=W((e,t)=>{const n=ld();return s.jsx(F.div,{ref:t,...e,className:V("sui-banner__content",e.className),__css:n.content})});Tne.displayName="BannerContent";var Ene=W((e,t)=>{const n=ld();return s.jsx(F.div,{ref:t,...e,className:V("sui-banner__title",e.className),__css:n.title})});Ene.displayName="BannerTitle";var Ane=W((e,t)=>{const r={display:"inline",...ld().description};return s.jsx(F.div,{ref:t,...e,className:V("sui-banner__desc",e.className),__css:r})});Ane.displayName="BannerDescription";var $ne=W((e,t)=>{const{children:n,variant:r}=e,i=ld();return s.jsx(F.div,{ref:t,...e,className:V("sui-banner__actions",e.className),__css:i.actions,children:s.jsx(Nm,{variant:r,children:n})})});$ne.displayName="BannerActions";var zne=W((e,t)=>{const{onClick:n,className:r,...i}=e,{onClose:o,isOpen:a,id:l}=Pne(),c=V("sui-banner__close-btn",r),u=ld();return s.jsx(Lm,{ref:t,__css:u.closeButton,className:c,onClick:fe(n,d=>{d.stopPropagation(),o==null||o()}),"aria-controls":l,"aria-expanded":a!=null&&a.toString()?"true":"false",...i})});zne.displayName="BannerCloseButton";Te({name:"UseCollapseReturn"});var[Ine,xx]=Or("SuiStructuredList"),[Rne,Mne]=Te({name:"StructuredListContext",errorMessage:"useStructuredListContext: `context` is undefined. Seems you forgot to wrap the components in ``"});function Lne(e){return ZT(e,"[role='button']:not([disabled])")}var Nne=e=>{var t;const n=m.useId(),r=m.useRef(null),[i,o]=m.useState(null),a={onBlur:fe(e.onBlur,l=>{l.relatedTarget&&(Lne(r.current).includes(l.relatedTarget)||o(null))})};return{id:(t=e.id)!=null?t:n,containerRef:r,focusId:i,setFocusId:o,listProps:a}},Dne=W((e,t)=>{const{items:n,children:r,...i}=e,o=tt("SuiStructuredList",i),a=Ie(i);let l;n?l=n.map((f,p)=>m.createElement(f8,{...f,key:f.id||p})):l=r;const c={py:2,position:"relative",...o.list},{listProps:u,...d}=Nne(e);return s.jsx(Rne,{value:d,children:s.jsx(Ine,{value:o,children:s.jsx(F.ul,{ref:b1(t,d.containerRef),__css:c,...a,...u,className:V("sui-list",e.className),children:l})})})});Dne.displayName="StructuredList";var One=W((e,t)=>{const{children:n,onClick:r,action:i,role:o="heading",level:a=1,...l}=e,c=xx();return s.jsxs(F.li,{ref:t,__css:c.header,onClick:r,...l,className:V("sui-list__header",e.className),children:[s.jsx(F.span,{flex:"1",userSelect:"none",role:o,"aria-level":a,children:n}),i]})});One.displayName="StructuredListHeader";var f8=W((e,t)=>{const{onClick:n,href:r,as:i,children:o,isDisabled:a,...l}=e,c=xx(),u=!!(n||r),d=u?p8:m.Fragment,f=!!u,p={...c.item,...f?{py:0,px:0}:{}},h=u?{onClick:n,href:r,as:i,isDisabled:a}:{},v=u?s.jsx(d,{...h,children:o}):o;return s.jsx(F.li,{ref:t,__css:p,...l,className:V("sui-list__item",e.className),children:v})});f8.displayName="StructuredListItem";var Fne=e=>{var t;const{id:n,containerRef:r,focusId:i,setFocusId:o}=Mne(),a=`${n}-${m.useId()}`,l=(t=e.id)!=null?t:a,c=i===l;function u(){return ZT(r.current,".sui-list__item-button:not([aria-disabled=true])")}return{buttonProps:{id:l,"data-focus":me(c),"aria-disabled":e.isDisabled?"true":void 0,tabIndex:e.isDisabled?-1:0,onFocus:fe(e.onFocus,()=>{o(l)}),onKeyDown:fe(e.onKeyDown,m.useCallback(f=>{const p=u(),h={ArrowUp:()=>{var v;(v=vte(p,l))==null||v.focus()},ArrowDown:()=>{var v;(v=gte(p,l))==null||v.focus()},Home:()=>{var v;(v=p[0])==null||v.focus()},End:()=>{var v;(v=p[p.length-1])==null||v.focus()}};h[f.key]&&(f.preventDefault(),h[f.key](f))},[l])),onClick:f=>{var p;if(e.isDisabled){f.preventDefault(),f.stopPropagation();return}(p=e.onClick)==null||p.call(e,f)}}}},p8=W((e,t)=>{const{children:n,isDisabled:r,...i}=e,{buttonProps:o}=Fne(e),a=xx();return s.jsx(F.div,{ref:t,__css:a.button,role:"button",...i,...o,className:V("sui-list__item-button",e.className),children:n})});p8.displayName="StructuredListButton";var Bne=W((e,t)=>{const n=bx(),{href:r,...i}=e;return s.jsx(Oi,{as:n,ref:t,href:r,...i})});Bne.displayName="Link";Or("SuiLoadingOverlay");F(ir.div);var Wne=typeof window<"u";function k3(e){return Wne?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var Vne=e=>{const{elementRef:t,delay:n=30,callback:r,isEnabled:i}=e,o=m.useRef(i?k3(t==null?void 0:t.current):{x:0,y:0});let a=null;const l=()=>{const c=k3(t==null?void 0:t.current);typeof r=="function"&&r({prevPos:o.current,currPos:c}),o.current=c,a=null};return m.useEffect(()=>{if(!i)return;const c=()=>{n?a===null&&(a=setTimeout(l,n)):l()},u=(t==null?void 0:t.current)||window;return u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)},[t==null?void 0:t.current,n,i]),o.current},[fde,Une]=Te({name:"UseContextMenuContext",strict:!1}),C3=(e=0,t=0)=>()=>({width:0,height:0,top:t,left:e,right:e,bottom:t}),Hne=()=>typeof window!==void 0&&window.matchMedia("(hover: none)").matches,qne=(e,t)=>{const{triggerRef:n,onOpen:r,onClose:i,anchor:o}=Une(),a=tY(),{popper:l,openAndFocusFirstItem:c}=a,{longPressProps:u}=tne({isDisabled:e.longPressDisabled,accessibilityDescription:"Long press to open context menu",onLongPressStart:h=>{i()},onLongPress:h=>{h.pointerType!=="mouse"&&h.type==="longpress"&&(r(h),c())}}),d=m.useRef({getBoundingClientRect:C3(o.x,o.y)});return m.useEffect(()=>{l.referenceRef(d.current)},[]),m.useEffect(()=>{d.current.getBoundingClientRect=C3(o.x,o.y),a.popper.update()},[o]),{triggerProps:{...u,onPointerDown:h=>{var v;h.pointerType!=="mouse"&&((v=u.onPointerDown)==null||v.call(u,h))},onMouseDown:h=>{var v;Hne()&&((v=u.onMouseDown)==null||v.call(u,h))},onContextMenu:fe(h=>{h.preventDefault(),r(h),c()},e.onContextMenu),ref:_t(n,t)}}},Gne=W((e,t)=>{const{children:n,longPressDisabled:r,...i}=e,{triggerProps:o}=qne(e,t);return s.jsx(F.span,{...i,sx:{WebkitTouchCallout:"none"},...o,children:n})});Gne.displayName="ContextMenuTrigger";var[Kne,Xm]=Or("SuiPersona"),j3={online:{label:"Online",color:"presence.online"},offline:{label:"Offline",color:"presence.offline"},busy:{label:"Busy",color:"presence.busy"},dnd:{label:"Do-not-disturb",color:"presence.dnd"},away:{label:"Away",color:"presence.away"}},Xne={online:"green.500",offline:"gray.400",busy:"orange.500",dnd:"red.500",away:"gray.400"},Yne=W((e,t)=>{const{children:n,...r}=e,i=tt("SuiPersona",e),o=Ie(r),l={...{display:"flex",flexDirection:"row",alignItems:"center"},...i.container};return s.jsx(Kne,{value:i,children:s.jsx(F.div,{ref:t,__css:l,...o,className:V("sui-persona",e.className),children:n})})});Yne.displayName="PersonaContainer";var Qne=W((e,t)=>{var n,r,i,o,a;const{name:l,presence:c,presenceLabel:u,presenceIcon:d,isOutOfOffice:f,badgeSize:p="1em",size:h,getInitials:v,icon:b,iconLabel:x,ignoreFallback:y,loading:g,onError:S,src:w,srcSet:k,...C}=e,P={};let j;const R=Di(),T=((n=R.colors)==null?void 0:n.presence)||Xne,$=!!((i=(r=R.semanticTokens)==null?void 0:r.colors)!=null&&i["presence.online"]);if(c){const K=u||((o=j3[c])==null?void 0:o.label),X=$?((a=j3[c])==null?void 0:a.color)||`presence.${c}`:T[c];f?(P.sx={_before:{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:"0.2em solid",borderColor:X,borderRadius:"50%",boxSizing:"border-box"}},P.borderWidth="0.15em",P.bg=Ap("white","gray.800")):P.bg=X,j=s.jsx(f_,{boxSize:p,...P,children:d}),K&&(j=s.jsx(ix,{label:K,children:j}))}return s.jsx(jb,{ref:t,name:l,size:h,getInitials:v,icon:b,iconLabel:x,ignoreFallback:y,loading:g,onError:S,src:w,srcSet:k,...C,children:j})});Qne.displayName="PersonaAvatar";var Zne=W((e,t)=>{const{children:n,className:r,...i}=e,o=Xm(),l={...{display:"flex",flexDirection:"column"},...o.details};return s.jsx(F.div,{ref:t,...i,__css:l,className:V("sui-persona__details",r),children:n})});Zne.displayName="PersonaDetails";var Jne=W((e,t)=>{const n=Xm();return s.jsx(F.span,{ref:t,...e,__css:n.label,className:V("sui-persona__label",e.className)})});Jne.displayName="PersonaLabel";var ere=W((e,t)=>{const n=Xm();return s.jsx(F.span,{ref:t,...e,__css:n.secondaryLabel,className:V("sui-persona__secondary-label",e.className)})});ere.displayName="PersonaSecondaryLabel";var tre=W((e,t)=>{const n=Xm();return s.jsx(F.span,{ref:t,...e,__css:n.tertiaryLabel,className:V("sui-persona__tertiary-label",e.className)})});tre.displayName="PersonaTertiaryLabel";var[nre,m8]=Or("SuiProperty"),rre=W((e,t)=>{const n=tt("SuiProperty",e),{children:r,label:i,value:o,labelWidth:a,spacing:l,...c}=Ie(e),u={minW:0,display:"flex",flexDirection:"row",alignItems:"center",...n.property};return s.jsx(nre,{value:n,children:s.jsxs(F.dl,{ref:t,__css:u,...c,className:V("sui-property",e.className),children:[i&&s.jsx(h8,{width:a,minWidth:a,marginEnd:l,children:i}),o&&s.jsx(g8,{children:o}),r]})})});rre.displayName="Property";var h8=W((e,t)=>{const n=m8(),{children:r,noOfLines:i=1,width:o,minWidth:a,...l}=e,c={display:"flex",flexDirection:"row",...n.label};return o&&(c.minWidth=a||"auto",c.width=o),s.jsx(F.dt,{ref:t,__css:c,...l,className:V("sui-property__label",e.className),children:s.jsx(F.span,{flex:"1",noOfLines:i,children:r})})});h8.displayName="PropertyLabel";var g8=W((e,t)=>{const n=m8(),{children:r,...i}=e,o={display:"flex",flexDirection:"row",alignItems:"center",flex:1,...n.value};return s.jsx(F.dd,{ref:t,__css:o,...i,className:V("sui-property__value",e.className),children:r})});g8.displayName="PropertyValue";function ire(e){const{ref:t,parentRef:n,height:r="3.5rem",shouldHideOnScroll:i=!1,disableScrollHandler:o=!1,onScrollPositionChange:a,motionProps:l,...c}=e,u=m.useRef(null);m.useImperativeHandle(t,()=>u.current);const d=m.useRef(0),f=m.useRef(0),[p,h]=m.useState(!1),v=()=>{if(u.current){const x=u.current.offsetWidth;x!==d.current&&(d.current=x)}};return rne({ref:u,onResize:()=>{var x;((x=u.current)==null?void 0:x.offsetWidth)!==d.current&&v()}}),m.useEffect(()=>{var x;v(),f.current=((x=u.current)==null?void 0:x.offsetHeight)||0},[]),Vne({elementRef:n,isEnabled:i||!o,callback:({prevPos:x,currPos:y})=>{a==null||a(y.y),i&&h(g=>{const S=y.y>x.y&&y.y>f.current;return S!==g?S:g})}}),{containerRef:u,height:r,isHidden:p,shouldHideOnScroll:i,motionProps:l,getContainerProps:(x={})=>({...c,...l,"data-hidden":me(p),ref:u,style:{"--navbar-height":r,...c.style,...x==null?void 0:x.style}})}}var[ore]=Te({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within "}),[are,Ym]=Te({name:"NavBarStylesContext",hookName:"useNavItemStyles",providerName:""}),sre=F(ir.nav),lre=W((e,t)=>{const{children:n,...r}=e,i=ire({...r,ref:t}),o=tt("SuiNavbar",e),a=s.jsx(F.header,{__css:o.inner,className:"sui-navbar__inner",children:n}),l={top:e.position==="sticky"?"0":void 0,insetX:e.position==="sticky"?"0":void 0,...o.container};return s.jsx(are,{value:o,children:s.jsx(ore,{value:i,children:s.jsx(sre,{__css:l,animate:i.isHidden?"hidden":"visible",initial:!1,variants:{hidden:{y:"-100%"},visible:{y:0,transition:{ease:"easeInOut"}}},className:V("sui-navbar",e.className),...i.getContainerProps(e),children:a})})})});lre.displayName="Navbar";var cre=W((e,t)=>{const{className:n,children:r,...i}=e,o=Ym();return s.jsx(F.div,{ref:t,__css:o.brand,className:V("sui-navbar__brand"),...i,children:r})});cre.displayName="NavbarBrand";var ure=W((e,t)=>{const{className:n,children:r,spacing:i=0,...o}=e,l={...Ym().content,"& > *:not(style) ~ *:not(style)":{marginStart:i}};return s.jsx(F.ul,{ref:t,__css:l,className:V("sui-navbar__content",n),...o,children:r})});ure.displayName="NavbarContent";var dre=W((e,t)=>{const{className:n,children:r,isActive:i,...o}=e,a=Ym();return s.jsx(F.li,{ref:t,__css:a.item,className:V("sui-navbar__item",n),"data-active":me(i),...o,children:r})});dre.displayName="NavbarItem";var fre=W((e,t)=>{const{className:n,children:r,isActive:i,...o}=e,a=bx(),l=Ym();return s.jsx(F.a,{as:a,ref:t,__css:l.link,"data-active":me(i),className:V("sui-navbar__link",n),...o,children:r})});fre.displayName="NavbarLink";var[pre,mre]=Te({name:"SidebarContext",strict:!1}),[hre]=Te({name:"SidebarStylesContext",hookName:"useSidebarStyles",providerName:""}),gre=F(ir.nav),vre={slideInOut:{enter:{left:0,transition:{type:"spring",duration:.6,bounce:.15}},exit:{left:"-100%"}},none:{}},v8=W((e,t)=>{var n,r,i;const o=tt("SuiSidebar",e),l=(n=Di().components.SuiSidebar)==null?void 0:n.defaultProps,c=S3((r=e.variant)!=null?r:l==null?void 0:l.variant,{fallback:"base"}),u=S3((i=e.size)!=null?i:l==null?void 0:l.size,{fallback:"base"}),d=c==="compact",{spacing:f=4,children:p,toggleBreakpoint:h="lg",className:v,motionPreset:b="slideInOut",isOpen:x,onOpen:y,onClose:g,...S}=Ie(e),w=mne(),k=d8(h),C=Op(k,{fallback:void 0}),P=Op(k),j=typeof C>"u",R=typeof x<"u",T=(C||R)&&!d,$=Hu({isOpen:x||(w==null?void 0:w.isSidebarOpen),onOpen:y||(w==null?void 0:w.openSidebar),onClose:g||(w==null?void 0:w.closeSidebar)}),{isOpen:K,onClose:X,onOpen:M}=$;m.useEffect(()=>{j&&P||d||R||(P?X():M())},[j,d,P]);const N={"& > *:not(style) ~ *:not(style, .sui-resize-handle, .sui-sidebar__toggle-button + *)":{marginTop:f},display:"flex",flexDirection:"column",...C&&T?{position:"absolute",zIndex:"modal",top:0,left:{base:"-100%",lg:"0"},bottom:0}:{position:"relative"}},O={...$,breakpoints:k,isMobile:C,variant:c,size:u},L=vre[d?"none":b||"none"];return s.jsx(pre,{value:O,children:s.jsx(hre,{value:o,children:s.jsx(gre,{ref:t,initial:!1,animate:!j&&(!T||K?"enter":"exit"),variants:L,__css:{...N,...o.container},...S,id:$.getDisclosureProps().id,className:V("sui-sidebar",v),"data-compact":me(d),"data-collapsible":me(C&&T),children:p})})})});v8.displayName="Sidebar";v8.id="Sidebar";Te({name:"NavGroupStylesContext",hookName:"useNavItemStyles",providerName:""});var[yre,y8]=Te({name:"NavItemStylesContext",hookName:"useNavItemStyles",providerName:""}),b8=W(({children:e,...t},n)=>{const r=y8();return s.jsx(F.span,{ref:n,__css:r.label,...t,className:V("sui-nav-item__label",t.className),children:e})});b8.displayName="NavItemLabel";var x8=e=>{const t=y8(),{className:n,children:r,...i}=e,o=m.Children.only(r),a=m.isValidElement(o)?m.cloneElement(o,{focusable:"false","aria-hidden":!0}):null;return s.jsx(F.span,{...i,className:V("sui-nav-item__icon",e.className),__css:{flexShrink:0,...t.icon},children:a})};x8.displayName="NavItemIcon";var bre=W((e,t)=>{const{as:n,href:r,icon:i,inset:o,className:a,tooltipProps:l,isActive:c,children:u,...d}=Ie(e),f=bx(),{onClose:p,variant:h}=mre()||{},v=h==="compact",b=tt("SuiNavItem",e);let x=u,y=l==null?void 0:l.label;typeof x=="string"&&(!y&&v&&(y=x),x=s.jsx(b8,{children:x}));let g=n;r&&!n&&(g=f);const S=s.jsx(F.a,{as:g,"aria-current":c?"page":void 0,...d,ref:t,href:r,className:"sui-nav-item__link","data-active":me(c),__css:b.link,children:s.jsxs(F.span,{__css:{...b.inner,pl:o},className:"sui-nav-item__inner",children:[i&&s.jsx(x8,{children:i}),x]})});return s.jsx(yre,{value:b,children:s.jsx(ix,{label:y,placement:"right",openDelay:400,...l,children:s.jsx(F.div,{__css:b.item,onClick:p,"data-compact":me(v),className:V("sui-nav-item",a),children:S})})})});bre.displayName="NavItem";var xre=W((e,t)=>{const{placeholder:n="Search",value:r,defaultValue:i,size:o,variant:a,width:l,icon:c,resetIcon:u,rightElement:d,onChange:f,onReset:p,onKeyDown:h,...v}=e,b=tt("SuiSearchInput",e),x=m.useRef(null),[y,g]=Sj({value:r,defaultValue:i}),S=m.useCallback(j=>{g(j.target.value)},[g]),w=m.useCallback(j=>{j.key==="Escape"&&(g(""),k())},[p,g]),k=()=>{var j;g(""),p==null||p(),(j=x.current)==null||j.focus()},C=o==="lg"?"sm":"xs",P=y&&!e.isDisabled;return s.jsxs(Hb,{size:o,width:l,children:[s.jsx(qb,{children:c||s.jsx(ZQ,{})}),s.jsx(mt,{type:"text",placeholder:n,variant:a,size:o,value:y,ref:b1(t,x),sx:b.input,onChange:fe(S,f),onKeyDown:fe(w,h),...v}),s.jsx(Fm,{children:P?s.jsx(xn,{onClick:k,size:C,variant:"ghost","aria-label":"Reset search",icon:u||s.jsx(QQ,{}),sx:b.reset}):d})]})});xre.displayName="SearchInput";var[Sre,wre]=Te({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in ``"});function kre(e){const{step:t,onChange:n}=e,[r,i]=m.useState(0),o=m.useRef([]),[,a]=m.useState(Date.now()),l=m.useCallback(h=>{const v=[...o.current];v.indexOf(h)===-1&&v.push(h),o.current=v,a(Date.now())},[o,a]),c=h=>{o.current=o.current.slice(o.current.indexOf(h),1)},u=h=>{const v=o.current.indexOf(h);v!==-1&&i(v)},d=()=>{i(r+1)},f=()=>{i(r-1)};return m.useEffect(()=>{typeof t=="string"?u(t):typeof t=="number"?i(t):r===-1&&i(0)},[t]),m.useEffect(()=>{n==null||n(r)},[r,n]),{stepsRef:o,activeStep:o.current[r],activeIndex:r,isFirstStep:r===0,isLastStep:r===o.current.length-1,isCompleted:r>=o.current.length,setIndex:i,setStep:u,nextStep:d,prevStep:f,registerStep:l,unregisterStep:c}}function Cre(e){const{name:t,isActive:n,isCompleted:r}=e,{registerStep:i,unregisterStep:o,activeStep:a}=wre();return m.useEffect(()=>{if(t)return i(t),()=>{o(t)}},[]),{isActive:t?a===t:n,isCompleted:r}}var[jre,Pre]=Or("Stepper"),_re=W((e,t)=>{var n,r,i,o;const{children:a,orientation:l="horizontal",index:c,step:u,onChange:d,variant:f,colorScheme:p,size:h,stepperProps:v,...b}=e,x=tt("Stepper",e),y=kre({step:u??c,onChange:d}),{activeIndex:g}=y,S=l==="vertical",w=one(a,S8),k={position:"relative",...x.item},C=w.reduce((T,$,K,X)=>{const M=m.cloneElement($,{key:K,...$.props,isActive:g===K,isCompleted:$.props.isCompleted||g>K});return S?T.push(s.jsxs(F.div,{className:"sui-steps__item",__css:k,children:[M,s.jsx(Qv,{isOpen:g===K,orientation:l,children:$.props.children}),K=w.length?P:!S&&j?s.jsx(Qv,{orientation:l,children:(o=(i=w[g])==null?void 0:i.props)==null?void 0:o.children}):null;return s.jsx(jre,{value:x,children:s.jsx(Sre,{value:y,children:s.jsxs(F.div,{ref:t,__css:x.container,...b,className:V("sui-steps",e.className),children:[s.jsx(VQ,{index:g,orientation:l,variant:f,colorScheme:p,size:h,...v,children:C}),R]})})})});_re.displayName="Steps";var S8=e=>{const{render:t,icon:n,title:r,description:i,...o}=e,a=Cre(o);return t?t({...a,...e}):s.jsxs(LQ,{children:[s.jsx(BQ,{children:s.jsx(FQ,{complete:s.jsx(OQ,{}),incomplete:s.jsx(Qw,{children:n}),active:s.jsx(Qw,{})})}),s.jsxs(Z,{flexShrink:"0",children:[s.jsx(WQ,{children:r}),i&&s.jsx(NQ,{children:i})]}),s.jsx(DT,{})]})};S8.displayName="StepsItem";var Qv=e=>{const{children:t,isOpen:n=!0,orientation:r="horizontal",...i}=e,o=Pre();return s.jsx(F.div,{...i,__css:o.content,className:V("sui-steps__content",e.className),"data-orientation":r,children:r==="vertical"?s.jsx(Al,{in:n,style:{overflow:n?"visible":"hidden"},children:s.jsx(F.div,{p:"2px",children:n?t:null})}):t})};Qv.displayName="StepsContent";var w8=e=>{const t={};return s.jsx(F.div,{__css:t,...e,className:V("sui-steps__completed",e.className)})};w8.displayName="StepsCompleted";var[pde,Tre]=Or("SuiTimeline"),Ere=W((e,t)=>{const{children:n,...r}=e,i=Tre();return s.jsx(F.li,{...r,ref:t,__css:i.item,className:V("sui-timeline__item",e.className),children:n})});Ere.displayName="TimelineItem";W((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":o,...a}=e,l=or("SuiIconBadge",e),c=Ie(a),u=n||r,d=m.isValidElement(u)?m.cloneElement(u,{"aria-hidden":!0,focusable:!1}):null,f={display:"inline-flex",alignItems:"center",justifyContent:"center",...l};return s.jsx(F.div,{ref:t,__css:f,borderRadius:i?"full":void 0,"aria-label":o,...c,className:V("sui-icon-badge",e.className),children:d})});/** + * @remix-run/router v1.23.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Ru(){return Ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Sx(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function $re(){return Math.random().toString(36).substr(2,8)}function _3(e,t){return{usr:e.state,key:e.key,idx:t}}function Zv(e,t,n,r){return n===void 0&&(n=null),Ru({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Rl(t):t,{state:n,key:t&&t.key||r||$re()})}function Vp(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Rl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function zre(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,l=mo.Pop,c=null,u=d();u==null&&(u=0,a.replaceState(Ru({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function f(){l=mo.Pop;let x=d(),y=x==null?null:x-u;u=x,c&&c({action:l,location:b.location,delta:y})}function p(x,y){l=mo.Push;let g=Zv(b.location,x,y);u=d()+1;let S=_3(g,u),w=b.createHref(g);try{a.pushState(S,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(w)}o&&c&&c({action:l,location:b.location,delta:1})}function h(x,y){l=mo.Replace;let g=Zv(b.location,x,y);u=d();let S=_3(g,u),w=b.createHref(g);a.replaceState(S,"",w),o&&c&&c({action:l,location:b.location,delta:0})}function v(x){let y=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof x=="string"?x:Vp(x);return g=g.replace(/ $/,"%20"),xt(y,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,y)}let b={get action(){return l},get location(){return e(i,a)},listen(x){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(P3,f),c=x,()=>{i.removeEventListener(P3,f),c=null}},createHref(x){return t(i,x)},createURL:v,encodeLocation(x){let y=v(x);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:h,go(x){return a.go(x)}};return b}var T3;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(T3||(T3={}));function Ire(e,t,n){return n===void 0&&(n="/"),Rre(e,t,n)}function Rre(e,t,n,r){let i=typeof t=="string"?Rl(t):t,o=bl(i.pathname||"/",n);if(o==null)return null;let a=k8(e);Mre(a);let l=null,c=qre(o);for(let u=0;l==null&&u{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(xt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=ko([r,c.relativePath]),d=n.concat(c);o.children&&o.children.length>0&&(xt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),k8(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Wre(u,o.index),routesMeta:d})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let c of C8(o.path))i(o,a,c)}),t}function C8(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=C8(r.join("/")),l=[];return l.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function Mre(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Vre(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Lre=/^:[\w-]+$/,Nre=3,Dre=2,Ore=1,Fre=10,Bre=-2,E3=e=>e==="*";function Wre(e,t){let n=e.split("/"),r=n.length;return n.some(E3)&&(r+=Bre),t&&(r+=Dre),n.filter(i=>!E3(i)).reduce((i,o)=>i+(Lre.test(o)?Nre:o===""?Ore:Fre),r)}function Vre(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Ure(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let l=0;l{let{paramName:p,isOptional:h}=d;if(p==="*"){let b=l[f]||"";a=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const v=l[f];return h&&!v?u[p]=void 0:u[p]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function Hre(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Sx(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function qre(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Sx(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function bl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Gre=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kre=e=>Gre.test(e);function Xre(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Rl(e):e,o;if(n)if(Kre(n))o=n;else{if(n.includes("//")){let a=n;n=j8(n),Sx(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?o=A3(n.substring(1),"/"):o=A3(n,t)}else o=t;return{pathname:o,search:Zre(r),hash:Jre(i)}}function A3(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function q0(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Yre(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function wx(e,t){let n=Yre(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function kx(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Rl(e):(i=Ru({},e),xt(!i.pathname||!i.pathname.includes("?"),q0("?","pathname","search",i)),xt(!i.pathname||!i.pathname.includes("#"),q0("#","pathname","hash",i)),xt(!i.search||!i.search.includes("#"),q0("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}l=f>=0?t[f]:"/"}let c=Xre(i,l),u=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const j8=e=>e.replace(/\/\/+/g,"/"),ko=e=>j8(e.join("/")),Qre=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Zre=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Jre=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function eie(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const P8=["post","put","patch","delete"];new Set(P8);const tie=["get",...P8];new Set(tie);/** + * React Router v6.30.4 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Mu(){return Mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),m.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=kx(u,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:ko([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,o,e])}const iie=m.createContext(null);function oie(e){let t=m.useContext(Wi).outlet;return t&&m.createElement(iie.Provider,{value:e},t)}function Jm(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(Bi),{matches:i}=m.useContext(Wi),{pathname:o}=qa(),a=JSON.stringify(wx(i,r.v7_relativeSplatPath));return m.useMemo(()=>kx(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function aie(e,t){return sie(e,t)}function sie(e,t,n,r){Ml()||xt(!1);let{navigator:i}=m.useContext(Bi),{matches:o}=m.useContext(Wi),a=o[o.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=qa(),d;if(t){var f;let x=typeof t=="string"?Rl(t):t;c==="/"||(f=x.pathname)!=null&&f.startsWith(c)||xt(!1),d=x}else d=u;let p=d.pathname||"/",h=p;if(c!=="/"){let x=c.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=Ire(e,{pathname:h}),b=fie(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:ko([c,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:ko([c,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&b?m.createElement(Zm.Provider,{value:{location:Mu({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:mo.Pop}},b):b}function lie(){let e=gie(),t=eie(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:i},n):null,null)}const cie=m.createElement(lie,null);class uie extends m.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?m.createElement(Wi.Provider,{value:this.props.routeContext},m.createElement(T8.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function die(e){let{routeContext:t,match:n,children:r}=e,i=m.useContext(Qm);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(Wi.Provider,{value:t},r)}function fie(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let d=a.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||xt(!1),a=a.slice(0,Math.min(a.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let h,v=!1,b=null,x=null;n&&(h=l&&f.route.id?l[f.route.id]:void 0,b=f.route.errorElement||cie,c&&(u<0&&p===0?(yie("route-fallback"),v=!0,x=null):u===p&&(v=!0,x=f.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,p+1)),g=()=>{let S;return h?S=b:v?S=x:f.route.Component?S=m.createElement(f.route.Component,null):f.route.element?S=f.route.element:S=d,m.createElement(die,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:S})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?m.createElement(uie,{location:n.location,revalidation:n.revalidation,component:b,error:h,children:g(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):g()},null)}var A8=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(A8||{}),$8=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}($8||{});function pie(e){let t=m.useContext(Qm);return t||xt(!1),t}function mie(e){let t=m.useContext(_8);return t||xt(!1),t}function hie(e){let t=m.useContext(Wi);return t||xt(!1),t}function z8(e){let t=hie(),n=t.matches[t.matches.length-1];return n.route.id||xt(!1),n.route.id}function gie(){var e;let t=m.useContext(T8),n=mie(),r=z8();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function vie(){let{router:e}=pie(A8.UseNavigateStable),t=z8($8.UseNavigateStable),n=m.useRef(!1);return E8(()=>{n.current=!0}),m.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Mu({fromRouteId:t},o)))},[e,t])}const $3={};function yie(e,t,n){$3[e]||($3[e]=!0)}function bie(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Lu(e){let{to:t,replace:n,state:r,relative:i}=e;Ml()||xt(!1);let{future:o,static:a}=m.useContext(Bi),{matches:l}=m.useContext(Wi),{pathname:c}=qa(),u=Vn(),d=kx(t,wx(l,o.v7_relativeSplatPath),c,i==="path"),f=JSON.stringify(d);return m.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:i}),[u,f,i,n,r]),null}function I8(e){return oie(e.context)}function $t(e){xt(!1)}function xie(e){let{basename:t="/",children:n=null,location:r,navigationType:i=mo.Pop,navigator:o,static:a=!1,future:l}=e;Ml()&&xt(!1);let c=t.replace(/^\/*/,"/"),u=m.useMemo(()=>({basename:c,navigator:o,static:a,future:Mu({v7_relativeSplatPath:!1},l)}),[c,l,o,a]);typeof r=="string"&&(r=Rl(r));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:v="default"}=r,b=m.useMemo(()=>{let x=bl(d,c);return x==null?null:{location:{pathname:x,search:f,hash:p,state:h,key:v},navigationType:i}},[c,d,f,p,h,v,i]);return b==null?null:m.createElement(Bi.Provider,{value:u},m.createElement(Zm.Provider,{children:n,value:b}))}function Sie(e){let{children:t,location:n}=e;return aie(ey(t),n)}new Promise(()=>{});function ey(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,i)=>{if(!m.isValidElement(r))return;let o=[...t,i];if(r.type===m.Fragment){n.push.apply(n,ey(r.props.children,o));return}r.type!==$t&&xt(!1),!r.props.index||!r.props.children||xt(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=ey(r.props.children,o)),n.push(a)}),n}/** + * React Router DOM v6.30.4 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Up(){return Up=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u&&z3?z3(()=>c(f)):c(f)},[c,u]);return m.useLayoutEffect(()=>a.listen(d),[a,d]),m.useEffect(()=>bie(r),[r]),m.createElement(xie,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const Aie=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$ie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sn=m.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:l,target:c,to:u,preventScrollReset:d,viewTransition:f}=t,p=R8(t,Cie),{basename:h}=m.useContext(Bi),v,b=!1;if(typeof u=="string"&&$ie.test(u)&&(v=u,Aie))try{let S=new URL(window.location.href),w=u.startsWith("//")?new URL(S.protocol+u):new URL(u),k=bl(w.pathname,h);w.origin===S.origin&&k!=null?u=k+w.search+w.hash:b=!0}catch{}let x=nie(u,{relative:i}),y=Iie(u,{replace:a,state:l,target:c,preventScrollReset:d,relative:i,viewTransition:f});function g(S){r&&r(S),S.defaultPrevented||y(S)}return m.createElement("a",Up({},p,{href:v||x,onClick:b||o?r:g,ref:n,target:c}))}),M8=m.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:l,to:c,viewTransition:u,children:d}=t,f=R8(t,jie),p=Jm(c,{relative:f.relative}),h=qa(),v=m.useContext(_8),{navigator:b,basename:x}=m.useContext(Bi),y=v!=null&&Rie(p)&&u===!0,g=b.encodeLocation?b.encodeLocation(p).pathname:p.pathname,S=h.pathname,w=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(S=S.toLowerCase(),w=w?w.toLowerCase():null,g=g.toLowerCase()),w&&x&&(w=bl(w,x)||w);const k=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let C=S===g||!a&&S.startsWith(g)&&S.charAt(k)==="/",P=w!=null&&(w===g||!a&&w.startsWith(g)&&w.charAt(g.length)==="/"),j={isActive:C,isPending:P,isTransitioning:y},R=C?r:void 0,T;typeof o=="function"?T=o(j):T=[o,C?"active":null,P?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let $=typeof l=="function"?l(j):l;return m.createElement(sn,Up({},f,{"aria-current":R,className:T,ref:n,style:$,to:c,viewTransition:u}),typeof d=="function"?d(j):d)});var ty;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ty||(ty={}));var I3;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(I3||(I3={}));function zie(e){let t=m.useContext(Qm);return t||xt(!1),t}function Iie(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:l}=t===void 0?{}:t,c=Vn(),u=qa(),d=Jm(e,{relative:a});return m.useCallback(f=>{if(kie(f,n)){f.preventDefault();let p=r!==void 0?r:Vp(u)===Vp(d);c(e,{replace:p,state:i,preventScrollReset:o,relative:a,viewTransition:l})}},[u,c,d,r,i,n,e,o,a,l])}function Rie(e,t){t===void 0&&(t={});let n=m.useContext(_ie);n==null&&xt(!1);let{basename:r}=zie(ty.useViewTransitionState),i=Jm(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=bl(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=bl(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Jv(i.pathname,a)!=null||Jv(i.pathname,o)!=null}const Mie=[{title:"Gestion de commandes",desc:"Client, admin, cabine, livreur — un flux complet de bout en bout."},{title:"Livraison temps réel",desc:"GPS, auto-assignation des livreurs, ETA et navigation."},{title:"Paiements & notifications",desc:"NowPayments (crypto), Telegram."},{title:"Sécurisé par design",desc:"Sécurité maximale avec RBAC, TLSv3, WAF et isolation de chaque plateforme."}];function Lie(){return s.jsxs(Z,{children:[s.jsx(Z,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:16,md:24},children:s.jsx(Tt,{maxW:"container.lg",children:s.jsxs(we,{spacing:6,textAlign:"center",align:"center",children:[s.jsx(Ne,{size:"2xl",children:"La plateforme de gestion de commandes & livraison"}),s.jsx(U,{fontSize:"xl",color:"gray.600",maxW:"2xl",children:"Testez la solution complète en conditions réelles. Une démo isolée, déployée en un clic, disponible pendant 30 jours."}),s.jsxs(we,{direction:{base:"column",sm:"row"},spacing:4,w:{base:"full",sm:"auto"},children:[s.jsx(he,{as:sn,to:"/register",colorScheme:"primary",size:"lg",w:{base:"full",sm:"auto"},children:"Créer un compte"}),s.jsx(he,{as:sn,to:"/tarifs",variant:"outline",size:"lg",w:{base:"full",sm:"auto"},children:"Voir les tarifs"})]})]})})}),s.jsx(Tt,{maxW:"container.lg",py:16,children:s.jsx(Yt,{columns:{base:1,md:2},spacing:8,children:Mie.map(e=>s.jsxs(Z,{p:6,borderWidth:"1px",borderRadius:"lg",children:[s.jsx(Ne,{size:"md",mb:2,children:e.title}),s.jsx(U,{color:"gray.600",children:e.desc})]},e.title))})})]})}const Nu="https://t.me/OMNEX_CORP",Nie=[{name:"Démo",price:"Gratuit",period:"30 jours",description:"Une instance isolée et complète pour évaluer la solution.",features:["Plateforme complète en conditions réelles","Environnement dédié et isolé","Accompagnement commercial"],cta:"Créer un compte",ctaHref:"/register"},{name:"Premium",price:"Sur devis",period:"",description:"Passez en production : votre démo n'expire plus.",features:["Tout ce qui est inclus dans Démo","Support prioritaire","Domaine personnalisable à la demande","Sauvegarde constante et sécurisée","Haute disponibilité"],cta:"Nous contacter",ctaHref:Nu,ctaExternal:!0,highlighted:!0},{name:"Site vitrine",price:"Sur devis",period:"",description:"Une boutique en ligne hébergée par nos soins, avec son espace d'administration.",features:["Catalogue, panier et commandes","Durée de 1 à 12 mois, payée en une fois","Environnement dédié, sauvegardé et protégé"],cta:"Nous contacter",ctaHref:Nu,ctaExternal:!0}];function Die(){return s.jsxs(Tt,{maxW:"container.lg",py:{base:12,md:20},children:[s.jsxs(we,{spacing:4,textAlign:"center",mb:12,align:"center",children:[s.jsx(Ne,{size:"2xl",children:"Tarifs"}),s.jsx(U,{fontSize:"lg",color:"gray.600",maxW:"2xl",children:"Commencez par une démo gratuite de 30 jours, puis passez en premium quand vous êtes prêt. Les sites vitrines se commandent sur devis."})]}),s.jsx(Yt,{columns:{base:1,md:3},spacing:8,alignItems:"stretch",mx:"auto",children:Nie.map(e=>s.jsx(Oie,{plan:e},e.name))}),s.jsxs(U,{textAlign:"center",color:"gray.500",mt:10,fontSize:"sm",children:["Besoin d'un devis précis ?"," ",s.jsx(Fie,{href:Nu,children:"Contactez-nous"})," — un commercial vous recontacte."]})]})}function Oie({plan:e}){return s.jsxs(we,{spacing:6,p:8,borderWidth:e.highlighted?"2px":"1px",borderColor:e.highlighted?"primary.500":"inherit",borderRadius:"xl",position:"relative",boxShadow:e.highlighted?"lg":"sm",bg:"bg-surface",children:[e.highlighted&&s.jsx(Bt,{colorScheme:"primary",position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",px:3,py:1,borderRadius:"full",children:"Le plus choisi"}),s.jsxs(Z,{children:[s.jsx(Ne,{size:"md",children:e.name}),s.jsx(U,{color:"gray.500",mt:1,fontSize:"sm",children:e.description})]}),s.jsxs(ye,{align:"baseline",spacing:2,children:[s.jsx(U,{fontSize:"3xl",fontWeight:"bold",children:e.price}),e.period&&s.jsxs(U,{color:"gray.500",children:["/ ",e.period]})]}),s.jsx($l,{spacing:3,flex:"1",children:e.features.map(t=>s.jsxs(Bm,{display:"flex",alignItems:"flex-start",children:[s.jsx(wt,{as:Bie,color:"primary.500",mt:1,mr:2}),s.jsx(U,{fontSize:"sm",children:t})]},t))}),e.ctaExternal?s.jsx(he,{as:"a",href:e.ctaHref,target:"_blank",rel:"noopener noreferrer",colorScheme:"primary",variant:e.highlighted?"solid":"outline",size:"lg",children:e.cta}):s.jsx(he,{as:sn,to:e.ctaHref,colorScheme:"primary",variant:e.highlighted?"solid":"outline",size:"lg",children:e.cta})]})}function Fie({href:e,children:t}){return s.jsx(Z,{as:"a",href:e,target:"_blank",rel:"noopener noreferrer",color:"primary.500",fontWeight:"medium",display:"inline",children:t})}function Bie(e){return s.jsx(wt,{viewBox:"0 0 20 20",fill:"currentColor",...e,children:s.jsx("path",{fillRule:"evenodd",d:"M16.7 5.3a1 1 0 010 1.4l-7.5 7.5a1 1 0 01-1.4 0L3.3 9.7a1 1 0 011.4-1.4l3.8 3.8 6.8-6.8a1 1 0 011.4 0z",clipRule:"evenodd"})})}/*! + * Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) + * Copyright 2026 Fonticons, Inc. + */function ny(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){l=!0,o=c},f:function(){try{a||n.return==null||n.return()}finally{if(l)throw o}}}}function xe(e,t,n){return(t=L8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function Xie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yie(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return ut.head.insertBefore(t,r),e}}var ose="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function V3(){for(var e=12,t="";e-- >0;)t+=ose[Math.random()*62|0];return t}function Ll(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ex(e){return e.classList?Ll(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function wE(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function ase(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(wE(e[n]),'" ')},"").trim()}function th(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Ax(e){return e.size!==Zr.size||e.x!==Zr.x||e.y!==Zr.y||e.rotate!==Zr.rotate||e.flipX||e.flipY}function sse(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)"),c={transform:"".concat(o," ").concat(a," ").concat(l)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:c,path:u}}function lse(e){var t=e.transform,n=e.width,r=n===void 0?iy:n,i=e.height,o=i===void 0?iy:i,a="";return F8?a+="translate(".concat(t.x/is-r/2,"em, ").concat(t.y/is-o/2,"em) "):a+="translate(calc(-50% + ".concat(t.x/is,"em), calc(-50% + ").concat(t.y/is,"em)) "),a+="scale(".concat(t.size/is*(t.flipX?-1:1),", ").concat(t.size/is*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}var cse=`:root, :host { + --fa-font-solid: normal 900 1em/1 'Font Awesome 7 Free'; + --fa-font-regular: normal 400 1em/1 'Font Awesome 7 Free'; + --fa-font-light: normal 300 1em/1 'Font Awesome 7 Pro'; + --fa-font-thin: normal 100 1em/1 'Font Awesome 7 Pro'; + --fa-font-duotone: normal 900 1em/1 'Font Awesome 7 Duotone'; + --fa-font-duotone-regular: normal 400 1em/1 'Font Awesome 7 Duotone'; + --fa-font-duotone-light: normal 300 1em/1 'Font Awesome 7 Duotone'; + --fa-font-duotone-thin: normal 100 1em/1 'Font Awesome 7 Duotone'; + --fa-font-brands: normal 400 1em/1 'Font Awesome 7 Brands'; + --fa-font-sharp-solid: normal 900 1em/1 'Font Awesome 7 Sharp'; + --fa-font-sharp-regular: normal 400 1em/1 'Font Awesome 7 Sharp'; + --fa-font-sharp-light: normal 300 1em/1 'Font Awesome 7 Sharp'; + --fa-font-sharp-thin: normal 100 1em/1 'Font Awesome 7 Sharp'; + --fa-font-sharp-duotone-solid: normal 900 1em/1 'Font Awesome 7 Sharp Duotone'; + --fa-font-sharp-duotone-regular: normal 400 1em/1 'Font Awesome 7 Sharp Duotone'; + --fa-font-sharp-duotone-light: normal 300 1em/1 'Font Awesome 7 Sharp Duotone'; + --fa-font-sharp-duotone-thin: normal 100 1em/1 'Font Awesome 7 Sharp Duotone'; + --fa-font-slab-regular: normal 400 1em/1 'Font Awesome 7 Slab'; + --fa-font-slab-press-regular: normal 400 1em/1 'Font Awesome 7 Slab Press'; + --fa-font-slab-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Duo'; + --fa-font-slab-press-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Press Duo'; + --fa-font-pixel-regular: normal 400 1em/1 'Font Awesome 7 Pixel'; + --fa-font-mosaic-solid: normal 900 1em/1 'Font Awesome 7 Mosaic'; + --fa-font-vellum-solid: normal 900 1em/1 'Font Awesome 7 Vellum'; + --fa-font-whiteboard-semibold: normal 600 1em/1 'Font Awesome 7 Whiteboard'; + --fa-font-thumbprint-light: normal 300 1em/1 'Font Awesome 7 Thumbprint'; + --fa-font-notdog-solid: normal 900 1em/1 'Font Awesome 7 Notdog'; + --fa-font-notdog-duo-solid: normal 900 1em/1 'Font Awesome 7 Notdog Duo'; + --fa-font-etch-solid: normal 900 1em/1 'Font Awesome 7 Etch'; + --fa-font-graphite-thin: normal 100 1em/1 'Font Awesome 7 Graphite'; + --fa-font-jelly-regular: normal 400 1em/1 'Font Awesome 7 Jelly'; + --fa-font-jelly-fill-regular: normal 400 1em/1 'Font Awesome 7 Jelly Fill'; + --fa-font-jelly-duo-regular: normal 400 1em/1 'Font Awesome 7 Jelly Duo'; + --fa-font-chisel-regular: normal 400 1em/1 'Font Awesome 7 Chisel'; + --fa-font-utility-semibold: normal 600 1em/1 'Font Awesome 7 Utility'; + --fa-font-utility-duo-semibold: normal 600 1em/1 'Font Awesome 7 Utility Duo'; + --fa-font-utility-fill-semibold: normal 600 1em/1 'Font Awesome 7 Utility Fill'; +} + +.svg-inline--fa { + box-sizing: content-box; + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; + width: var(--fa-width, 1.25em); +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285714em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left, +.svg-inline--fa .fa-pull-start { + float: inline-start; + margin-inline-end: var(--fa-pull-margin, 0.3em); +} +.svg-inline--fa.fa-pull-right, +.svg-inline--fa .fa-pull-end { + float: inline-end; + margin-inline-start: var(--fa-pull-margin, 0.3em); +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + inset-inline-start: calc(-1 * var(--fa-li-width, 2em)); + inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */ +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: var(--fa-width, 1.25em); +} +.fa-layers .svg-inline--fa { + inset: 0; + margin: auto; + position: absolute; + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + transform: scale(var(--fa-counter-scale, 0.25)); + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */ + line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */ + vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ +} + +.fa-xs { + font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */ + line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */ + vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ +} + +.fa-sm { + font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */ + line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */ + vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ +} + +.fa-lg { + font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */ + line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */ + vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ +} + +.fa-xl { + font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */ + line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */ + vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ +} + +.fa-2xl { + font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */ + line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */ + vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ +} + +.fa-width-auto { + --fa-width: auto; +} + +.fa-fw, +.fa-width-fixed { + --fa-width: 1.25em; +} + +.fa-canvas-square { + padding-block: 0.125em; + margin-block-end: -0.125em; +} + +.fa-canvas-roomy { + padding-block: 0.25em; + padding-inline: 0.125em; + margin-block-end: -0.25em; + box-sizing: content-box; +} + +.fa-ul { + list-style-type: none; + margin-inline-start: var(--fa-li-margin, 2.5em); + padding-inline-start: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + inset-inline-start: calc(-1 * var(--fa-li-width, 2em)); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +/* Heads Up: Bordered Icons will not be supported in the future! + - This feature will be deprecated in the next major release of Font Awesome (v8)! + - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8. +*/ +/* Notes: +* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size) +* --@{v.$css-prefix}-border-padding = + ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment) + ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon) +*/ +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.0625em); + box-sizing: var(--fa-border-box-sizing, content-box); + padding: var(--fa-border-padding, 0.1875em 0.25em); +} + +.fa-pull-left, +.fa-pull-start { + float: inline-start; + margin-inline-end: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right, +.fa-pull-end { + float: inline-end; + margin-inline-start: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + animation-name: fa-beat; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + animation-name: fa-bounce; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + animation-name: fa-fade; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-beat-fade { + animation-name: fa-beat-fade; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-flip { + animation-name: fa-flip; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1.5s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-flip-360 { + animation-name: fa-flip-360; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + animation-name: fa-shake; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 0.75s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-spin { + animation-name: fa-spin; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 2s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + animation-name: fa-spin; + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +.fa-spin-snap { + animation-name: fa-spin-snap; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 3s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-snap-4 { + animation-name: fa-spin-snap-4; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 2.4s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-snap-8 { + animation-name: fa-spin-snap-8; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 4s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-buzz { + animation-name: fa-buzz; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 0.6s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-wag { + animation-name: fa-wag; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 0.9s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-out); + transform-origin: bottom center; +} + +.fa-float { + animation-name: fa-float; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 3s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); + will-change: transform; +} + +.fa-swing { + animation-name: fa-swing; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1.2s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-out); + transform-origin: top center; +} + +.fa-jello { + animation-name: fa-jello; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 0.9s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-out); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, + .fa-bounce, + .fa-fade, + .fa-beat-fade, + .fa-flip, + .fa-flip-360, + .fa-pulse, + .fa-shake, + .fa-spin, + .fa-spin-pulse, + .fa-buzz, + .fa-float, + .fa-jello, + .fa-spin-snap, + .fa-spin-snap-4, + .fa-spin-snap-8, + .fa-swing, + .fa-wag { + animation: none !important; + transition: none !important; + } +} +@keyframes fa-beat { + 0% { + transform: scale(1); + } + 25% { + transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25))); + } + 45% { + transform: scale(calc(1.22 * var(--fa-beat-scale, 1.22))); + } + 65% { + transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25))); + } + 90% { + transform: scale(1); + } +} +@keyframes fa-bounce { + 0% { + transform: scale(1, 1) translateY(0); + animation-timing-function: var(--fa-animation-timing); + } + 14% { + transform: scale(var(--fa-bounce-start-scale-x, 1.06), var(--fa-bounce-start-scale-y, 0.94)) translateY(var(--fa-bounce-anticipation, 3px)); + animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); + } + 32% { + transform: scale(var(--fa-bounce-jump-scale-x, 0.94), var(--fa-bounce-jump-scale-y, 1.12)) translateY(calc(-1 * var(--fa-bounce-height, 0.5em))); + animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); + } + 52% { + transform: scale(1, 1) translateY(calc(-1 * var(--fa-bounce-height, 0.5em) * 1.1)); + animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5); + } + 70% { + transform: scale(var(--fa-bounce-land-scale-x, 1.06), var(--fa-bounce-land-scale-y, 0.92)) translateY(0); + animation-timing-function: cubic-bezier(0.33, 0.33, 0.66, 1); + } + 85% { + transform: scale(0.98, 1.04) translateY(calc(-2px * var(--fa-bounce-rebound, 1))); + animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1); + } + 100% { + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-fade { + 0% { + opacity: 1; + transform: scale(1); + animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1); + } + 40% { + opacity: var(--fa-fade-opacity, 0.4); + transform: scale(0.98); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 100% { + opacity: 1; + transform: scale(1); + } +} +@keyframes fa-beat-fade { + 0% { + opacity: var(--fa-beat-fade-opacity, 0.4); + transform: scale(1); + animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1); + } + 25% { + opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4); + transform: scale(var(--fa-beat-fade-scale, 1.28)); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 45% { + opacity: 1; + transform: scale(var(--fa-beat-fade-scale, 1.25)); + animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + } + 65% { + opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4); + transform: scale(var(--fa-beat-fade-scale, 1.28)); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + transform: scale(1); + } +} +@keyframes fa-flip { + 0% { + transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg); + animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1); + } + 8% { + transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg); + animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); + } + 35% { + transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6)); + animation-timing-function: linear; + } + 65% { + transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.5)); + animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); + } + 92% { + transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04))); + animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1); + } + 100% { + transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg)); + } +} +@keyframes fa-flip-360 { + 0% { + transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg); + animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1); + } + 8% { + transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg); + animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); + } + 50% { + transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6)); + animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); + } + 80% { + transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04))); + animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1); + } + 100% { + transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg)); + } +} +@keyframes fa-shake { + 0% { + transform: rotate(0deg); + animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1); + } + 8% { + transform: rotate(35deg) translateX(1px); + animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); + } + 20% { + transform: rotate(-22deg) translateX(-1px); + animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); + } + 35% { + transform: rotate(15deg) translateX(1px); + animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); + } + 50% { + transform: rotate(-9deg); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 65% { + transform: rotate(5deg); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 78% { + transform: rotate(-3deg); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 90% { + transform: rotate(1deg); + animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + } + 100% { + transform: rotate(0deg); + } +} +@keyframes fa-spin { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } +} +@keyframes fa-spin-snap { + 0% { + transform: rotate(0deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 12% { + transform: rotate(60deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 16.67% { + transform: rotate(60deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 28.67% { + transform: rotate(120deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 33.33% { + transform: rotate(120deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 45.33% { + transform: rotate(180deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 50% { + transform: rotate(180deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 62% { + transform: rotate(240deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 66.67% { + transform: rotate(240deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 78.67% { + transform: rotate(300deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 83.33% { + transform: rotate(300deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 95.33% { + transform: rotate(360deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 100% { + transform: rotate(360deg); + } +} +@keyframes fa-spin-snap-4 { + 0% { + transform: rotate(0deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 15% { + transform: rotate(90deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 25% { + transform: rotate(90deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 40% { + transform: rotate(180deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 50% { + transform: rotate(180deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 65% { + transform: rotate(270deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 75% { + transform: rotate(270deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 90% { + transform: rotate(360deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 100% { + transform: rotate(360deg); + } +} +@keyframes fa-spin-snap-8 { + 0% { + transform: rotate(0deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 9% { + transform: rotate(45deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 12.5% { + transform: rotate(45deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 21.5% { + transform: rotate(90deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 25% { + transform: rotate(90deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 34% { + transform: rotate(135deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 37.5% { + transform: rotate(135deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 46.5% { + transform: rotate(180deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 50% { + transform: rotate(180deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 59% { + transform: rotate(225deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 62.5% { + transform: rotate(225deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 71.5% { + transform: rotate(270deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 75% { + transform: rotate(270deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 84% { + transform: rotate(315deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 87.5% { + transform: rotate(315deg); + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + 96.5% { + transform: rotate(360deg); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 100% { + transform: rotate(360deg); + } +} +@keyframes fa-buzz { + 0% { + transform: translateX(0) rotate(0deg); + animation-timing-function: cubic-bezier(0.1, 0, 0.9, 1); + } + 5% { + transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.5deg); + } + 10% { + transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.5deg); + } + 15% { + transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.3deg); + } + 20% { + transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.3deg); + } + 25% { + transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.7)) rotate(0.2deg); + } + 30% { + transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px) * 0.7)) rotate(-0.2deg); + } + 35% { + transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.4)) rotate(0.1deg); + } + 40% { + transform: translateX(0) rotate(0deg); + } + 100% { + transform: translateX(0) rotate(0deg); + } +} +@keyframes fa-wag { + 0% { + transform: rotate(0deg); + animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1); + } + 12% { + transform: rotate(var(--fa-wag-angle, 12deg)); + animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + } + 24% { + transform: rotate(2deg); + animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1); + } + 36% { + transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.85)); + animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + } + 48% { + transform: rotate(1deg); + animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1); + } + 58% { + transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.6)); + animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + } + 68% { + transform: rotate(0deg); + } + 100% { + transform: rotate(0deg); + } +} +@keyframes fa-float { + 0% { + transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98)); + animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); + } + 15% { + transform: translateY(calc(-0.4 * var(--fa-float-height, 6px))) translateX(var(--fa-float-drift, 1px)) rotate(var(--fa-float-tilt, 1deg)) scale(1, 1); + animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); + } + 35% { + transform: translateY(calc(-1 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-stretch-x, 0.98), var(--fa-float-stretch-y, 1.03)); + animation-timing-function: cubic-bezier(0.5, 0, 0.5, 0); + } + 50% { + transform: translateY(calc(-0.92 * var(--fa-float-height, 6px))) translateX(calc(-0.5 * var(--fa-float-drift, 1px))) rotate(calc(-0.5 * var(--fa-float-tilt, 1deg))) scale(0.995, 1.01); + animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); + } + 70% { + transform: translateY(calc(-0.3 * var(--fa-float-height, 6px))) translateX(calc(-1 * var(--fa-float-drift, 1px))) rotate(calc(-1 * var(--fa-float-tilt, 1deg))) scale(1, 1); + animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); + } + 90% { + transform: translateY(calc(0.05 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98)); + animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1); + } + 100% { + transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98)); + } +} +@keyframes fa-swing { + 0% { + transform: rotate(0deg); + animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1); + } + 8% { + transform: rotate(var(--fa-swing-angle, 22deg)); + animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); + } + 18% { + transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.85)); + animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); + } + 28% { + transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.65)); + animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1); + } + 38% { + transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.45)); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 48% { + transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.25)); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 56% { + transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.1)); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 64% { + transform: rotate(0deg); + } + 100% { + transform: rotate(0deg); + } +} +@keyframes fa-jello { + 0% { + transform: scale(1, 1); + animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1); + } + 12% { + transform: scale(var(--fa-jello-scale-x, 1.15), calc(2 - var(--fa-jello-scale-x, 1.15))); + animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); + } + 24% { + transform: scale(calc(2 - var(--fa-jello-scale-y, 1.12)), var(--fa-jello-scale-y, 1.12)); + animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); + } + 36% { + transform: scale(calc(1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5), calc(2 - (1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5))); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 48% { + transform: scale(calc(2 - (1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3)), calc(1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3)); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + } + 58% { + transform: scale(1.02, 0.98); + animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); + } + 68% { + transform: scale(1, 1); + } + 100% { + transform: scale(1, 1); + } +} +.fa-rotate-90 { + transform: rotate(90deg); +} + +.fa-rotate-180 { + transform: rotate(180deg); +} + +.fa-rotate-270 { + transform: rotate(270deg); +} + +.fa-flip-horizontal { + transform: scale(-1, 1); +} + +.fa-flip-vertical { + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + transform: scale(-1, -1); +} + +.fa-rotate-by { + transform: rotate(var(--fa-rotate-angle, 0)); +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.svg-inline--fa.fa-inverse { + fill: var(--fa-inverse, #fff); +} + +.fa-stack { + display: inline-block; + height: 2em; + line-height: 2em; + position: relative; + vertical-align: middle; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.svg-inline--fa.fa-stack-1x { + --fa-width: 1.25em; + height: 1em; + width: var(--fa-width); +} +.svg-inline--fa.fa-stack-2x { + --fa-width: 2.5em; + height: 2em; + width: var(--fa-width); +} + +.fa-stack-1x, +.fa-stack-2x { + inset: 0; + margin: auto; + position: absolute; + z-index: var(--fa-stack-z-index, auto); +}`;function kE(){var e=hE,t=gE,n=be.cssPrefix,r=be.replacementClass,i=cse;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(l,".".concat(r))}return i}var U3=!1;function K0(){be.autoAddCss&&!U3&&(ise(kE()),U3=!0)}var use={mixout:function(){return{dom:{css:kE,insertCss:K0}}},hooks:function(){return{beforeDOMElementCreation:function(){K0()},beforeI2svg:function(){K0()}}}},Mi=Ao||{};Mi[Ri]||(Mi[Ri]={});Mi[Ri].styles||(Mi[Ri].styles={});Mi[Ri].hooks||(Mi[Ri].hooks={});Mi[Ri].shims||(Mi[Ri].shims=[]);var Ir=Mi[Ri],CE=[],jE=function(){ut.removeEventListener("DOMContentLoaded",jE),qp=1,CE.map(function(t){return t()})},qp=!1;Vi&&(qp=(ut.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ut.readyState),qp||ut.addEventListener("DOMContentLoaded",jE));function dse(e){Vi&&(qp?setTimeout(e,0):CE.push(e))}function dd(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,o=i===void 0?[]:i;return typeof e=="string"?wE(e):"<".concat(t," ").concat(ase(r),">").concat(o.map(dd).join(""),"")}function H3(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var X0=function(t,n,r,i){var o=Object.keys(t),a=o.length,l=n,c,u,d;for(r===void 0?(c=1,d=t[o[0]]):(c=0,d=r);c2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=q3(t);typeof Ir.hooks.addPack=="function"&&!i?Ir.hooks.addPack(e,q3(t)):Ir.styles[e]=G(G({},Ir.styles[e]||{}),o),e==="fas"&&cy("fa",t)}var Du=Ir.styles,fse=Ir.shims,_E=Object.keys(Tx),pse=_E.reduce(function(e,t){return e[t]=Object.keys(Tx[t]),e},{}),$x=null,TE={},EE={},AE={},$E={},zE={};function mse(e){return~Jae.indexOf(e)}function hse(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!mse(i)?i:null}var IE=function(){var t=function(o){return X0(Du,function(a,l,c){return a[c]=X0(l,o,{}),a},{})};TE=t(function(i,o,a){if(o[3]&&(i[o[3]]=a),o[2]){var l=o[2].filter(function(c){return typeof c=="number"});l.forEach(function(c){i[c.toString(16)]=a})}return i}),EE=t(function(i,o,a){if(i[a]=a,o[2]){var l=o[2].filter(function(c){return typeof c=="string"});l.forEach(function(c){i[c]=a})}return i}),zE=t(function(i,o,a){var l=o[2];return i[a]=a,l.forEach(function(c){i[c]=a}),i});var n="far"in Du||be.autoFetchSvg,r=X0(fse,function(i,o){var a=o[0],l=o[1],c=o[2];return l==="far"&&!n&&(l="fas"),typeof a=="string"&&(i.names[a]={prefix:l,iconName:c}),typeof a=="number"&&(i.unicodes[a.toString(16)]={prefix:l,iconName:c}),i},{names:{},unicodes:{}});AE=r.names,$E=r.unicodes,$x=nh(be.styleDefault,{family:be.familyDefault})};rse(function(e){$x=nh(e.styleDefault,{family:be.familyDefault})});IE();function zx(e,t){return(TE[e]||{})[t]}function gse(e,t){return(EE[e]||{})[t]}function pa(e,t){return(zE[e]||{})[t]}function RE(e){return AE[e]||{prefix:null,iconName:null}}function vse(e){var t=$E[e],n=zx("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function $o(){return $x}var ME=function(){return{prefix:null,iconName:null,rest:[]}};function yse(e){var t=dn,n=_E.reduce(function(r,i){return r[i]="".concat(be.cssPrefix,"-").concat(i),r},{});return dE.forEach(function(r){(e.includes(n[r])||e.some(function(i){return pse[r].includes(i)}))&&(t=r)}),t}function nh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?dn:n,i=Kae[r][e];if(r===cd&&!e)return"fad";var o=W3[r][e]||W3[r][i],a=e in Ir.styles?e:null,l=o||a||null;return l}function bse(e){var t=[],n=null;return e.forEach(function(r){var i=hse(be.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function G3(e){return e.sort().filter(function(t,n,r){return r.indexOf(t)===n})}var K3=pE.concat(fE);function rh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,i=null,o=G3(e.filter(function(h){return K3.includes(h)})),a=G3(e.filter(function(h){return!K3.includes(h)})),l=o.filter(function(h){return i=h,!W8.includes(h)}),c=eh(l,1),u=c[0],d=u===void 0?null:u,f=yse(o),p=G(G({},bse(a)),{},{prefix:nh(d,{family:f})});return G(G(G({},p),kse({values:e,family:f,styles:Du,config:be,canonical:p,givenPrefix:i})),xse(r,i,p))}function xse(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var o=t==="fa"?RE(i):{},a=pa(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!Du.far&&Du.fas&&!be.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}var Sse=dE.filter(function(e){return e!==dn||e!==cd}),wse=Object.keys(ry).filter(function(e){return e!==dn}).map(function(e){return Object.keys(ry[e])}).flat();function kse(e){var t=e.values,n=e.family,r=e.canonical,i=e.givenPrefix,o=i===void 0?"":i,a=e.styles,l=a===void 0?{}:a,c=e.config,u=c===void 0?{}:c,d=n===cd,f=t.includes("fa-duotone")||t.includes("fad"),p=u.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!d&&(f||p||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&Sse.includes(n)){var v=Object.keys(l).find(function(x){return wse.includes(x)});if(v||u.autoFetchSvg){var b=Toe.get(n).defaultShortPrefixId;r.prefix=b,r.iconName=pa(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||o==="fa")&&(r.prefix=$o()||"fas"),r}var Cse=function(){function e(){Uie(this,e),this.definitions={}}return qie(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o0&&d.forEach(function(f){typeof f=="string"&&(n[l][f]=u)}),n[l][c]=u}),n}}])}(),X3=[],Ls={},Zs={},jse=Object.keys(Zs);function Pse(e,t){var n=t.mixoutsTo;return X3=e,Ls={},Object.keys(Zs).forEach(function(r){jse.indexOf(r)===-1&&delete Zs[r]}),X3.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(a){typeof i[a]=="function"&&(n[a]=i[a]),Hp(i[a])==="object"&&Object.keys(i[a]).forEach(function(l){n[a]||(n[a]={}),n[a][l]=i[a][l]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(a){Ls[a]||(Ls[a]=[]),Ls[a].push(o[a])})}r.provides&&r.provides(Zs)}),n}function uy(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return Vi?(Na("beforeI2svg",t),zo("pseudoElements2svg",t),zo("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;be.autoReplaceSvg===!1&&(be.autoReplaceSvg=!0),be.observeMutations=!0,dse(function(){Ase({autoReplaceSvgRoot:n}),Na("watch",t)})}},Ese={icon:function(t){if(t===null)return null;if(Hp(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:pa(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=nh(t[0]);return{prefix:r,iconName:pa(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(be.cssPrefix,"-"))>-1||t.match(Xae))){var i=rh(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||$o(),iconName:pa(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=$o();return{prefix:o,iconName:pa(o,t)||t}}}},ar={noAuto:_se,config:be,dom:Tse,parse:Ese,library:LE,findIconDefinition:dy,toHtml:dd},Ase=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?ut:n;(Object.keys(Ir.styles).length>0||be.autoFetchSvg)&&Vi&&be.autoReplaceSvg&&ar.dom.i2svg({node:r})};function ih(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return dd(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Vi){var r=ut.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function $se(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(Ax(a)&&n.found&&!r.found){var l=n.width,c=n.height,u={x:l/c/2,y:.5};i.style=th(G(G({},o),{},{"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function zse(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,a=o===!0?"".concat(t,"-").concat(be.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:G(G({},i),{},{id:a}),children:r}]}]}function Ise(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function Ix(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,a=e.transform,l=e.symbol,c=e.maskId,u=e.extra,d=e.watchable,f=d===void 0?!1:d,p=r.found?r:n,h=p.width,v=p.height,b=[be.replacementClass,o?"".concat(be.cssPrefix,"-").concat(o):""].filter(function(k){return u.classes.indexOf(k)===-1}).filter(function(k){return k!==""||!!k}).concat(u.classes).join(" "),x={children:[],attributes:G(G({},u.attributes),{},{"data-prefix":i,"data-icon":o,class:b,role:u.attributes.role||"img",viewBox:"0 0 ".concat(h," ").concat(v)})};!Ise(u.attributes)&&!u.attributes["aria-hidden"]&&(x.attributes["aria-hidden"]="true"),f&&(x.attributes[La]="");var y=G(G({},x),{},{prefix:i,iconName:o,main:n,mask:r,maskId:c,transform:a,symbol:l,styles:G({},u.styles)}),g=r.found&&n.found?zo("generateAbstractMask",y)||{children:[],attributes:{}}:zo("generateAbstractIcon",y)||{children:[],attributes:{}},S=g.children,w=g.attributes;return y.children=S,y.attributes=w,l?zse(y):$se(y)}function Y3(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.extra,a=e.watchable,l=a===void 0?!1:a,c=G(G({},o.attributes),{},{class:o.classes.join(" ")});l&&(c[La]="");var u=G({},o.styles);Ax(i)&&(u.transform=lse({transform:i,width:n,height:r}),u["-webkit-transform"]=u.transform);var d=th(u);d.length>0&&(c.style=d);var f=[];return f.push({tag:"span",attributes:c,children:[t]}),f}function Rse(e){var t=e.content,n=e.extra,r=G(G({},n.attributes),{},{class:n.classes.join(" ")}),i=th(n.styles);i.length>0&&(r.style=i);var o=[];return o.push({tag:"span",attributes:r,children:[t]}),o}var Y0=Ir.styles;function fy(e){var t=e[0],n=e[1],r=e.slice(4),i=eh(r,1),o=i[0],a=null;return Array.isArray(o)?a={tag:"g",attributes:{class:"".concat(be.cssPrefix,"-").concat(G0.GROUP)},children:[{tag:"path",attributes:{class:"".concat(be.cssPrefix,"-").concat(G0.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(be.cssPrefix,"-").concat(G0.PRIMARY),fill:"currentColor",d:o[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:a}}var Mse={found:!1,width:512,height:512};function Lse(e,t){!yE&&!be.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function py(e,t){var n=t;return t==="fa"&&be.styleDefault!==null&&(t=$o()),new Promise(function(r,i){if(n==="fa"){var o=RE(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&Y0[t]&&Y0[t][e]){var a=Y0[t][e];return r(fy(a))}Lse(e,t),r(G(G({},Mse),{},{icon:be.showMissingIcons&&e?zo("missingIconAbstract")||{}:{}}))})}var Q3=function(){},my=be.measurePerformance&&cf&&cf.mark&&cf.measure?cf:{mark:Q3,measure:Q3},xc='FA "7.3.1"',Nse=function(t){return my.mark("".concat(xc," ").concat(t," begins")),function(){return NE(t)}},NE=function(t){my.mark("".concat(xc," ").concat(t," ends")),my.measure("".concat(xc," ").concat(t),"".concat(xc," ").concat(t," begins"),"".concat(xc," ").concat(t," ends"))},Rx={begin:Nse,end:NE},Jf=function(){};function Z3(e){var t=e.getAttribute?e.getAttribute(La):null;return typeof t=="string"}function Dse(e){var t=e.getAttribute?e.getAttribute(Px):null,n=e.getAttribute?e.getAttribute(_x):null;return t&&n}function Ose(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(be.replacementClass)}function Fse(){if(be.autoReplaceSvg===!0)return ep.replace;var e=ep[be.autoReplaceSvg];return e||ep.replace}function Bse(e){return ut.createElementNS("http://www.w3.org/2000/svg",e)}function Wse(e){return ut.createElement(e)}function DE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?Bse:Wse:n;if(typeof e=="string")return ut.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(a){i.setAttribute(a,e.attributes[a])});var o=e.children||[];return o.forEach(function(a){i.appendChild(DE(a,{ceFn:r}))}),i}function Vse(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var ep={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(DE(i),n)}),n.getAttribute(La)===null&&be.keepOriginalSource){var r=ut.createComment(Vse(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~Ex(n).indexOf(be.replacementClass))return ep.replace(t);var i=new RegExp("".concat(be.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(l,c){return c===be.replacementClass||c.match(i)?l.toSvg.push(c):l.toNode.push(c),l},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var a=r.map(function(l){return dd(l)}).join(` +`);n.setAttribute(La,""),n.innerHTML=a}};function J3(e){e()}function OE(e,t){var n=typeof t=="function"?t:Jf;if(e.length===0)n();else{var r=J3;be.mutateApproach===qae&&(r=Ao.requestAnimationFrame||J3),r(function(){var i=Fse(),o=Rx.begin("mutate");e.map(i),o(),n()})}}var Mx=!1;function FE(){Mx=!0}function hy(){Mx=!1}var Gp=null;function ek(e){if(D3&&be.observeMutations){var t=e.treeCallback,n=t===void 0?Jf:t,r=e.nodeCallback,i=r===void 0?Jf:r,o=e.pseudoElementsCallback,a=o===void 0?Jf:o,l=e.observeMutationsRoot,c=l===void 0?ut:l;Gp=new D3(function(u){if(!Mx){var d=$o();Ll(u).forEach(function(f){if(f.type==="childList"&&f.addedNodes.length>0&&!Z3(f.addedNodes[0])&&(be.searchPseudoElements&&a(f.target),n(f.target)),f.type==="attributes"&&f.target.parentNode&&be.searchPseudoElements&&a([f.target],!0),f.type==="attributes"&&Z3(f.target)&&~Zae.indexOf(f.attributeName))if(f.attributeName==="class"&&Dse(f.target)){var p=rh(Ex(f.target)),h=p.prefix,v=p.iconName;f.target.setAttribute(Px,h||d),v&&f.target.setAttribute(_x,v)}else Ose(f.target)&&i(f.target)})}}),Vi&&Gp.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Use(){Gp&&Gp.disconnect()}function Hse(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),a=o[0],l=o.slice(1);return a&&l.length>0&&(r[a]=l.join(":").trim()),r},{})),n}function qse(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=rh(Ex(e));return i.prefix||(i.prefix=$o()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=gse(i.prefix,e.innerText)||zx(i.prefix,PE(e.innerText))),!i.iconName&&be.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function Gse(e){var t=Ll(e.attributes).reduce(function(n,r){return n.name!=="class"&&n.name!=="style"&&(n[r.name]=r.value),n},{});return t}function Kse(){return{iconName:null,prefix:null,transform:Zr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function tk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=qse(e),r=n.iconName,i=n.prefix,o=n.rest,a=Gse(e),l=uy("parseNodeAttributes",{},e),c=t.styleParser?Hse(e):[];return G({iconName:r,prefix:i,transform:Zr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:c,attributes:a}},l)}var Xse=Ir.styles;function BE(e){var t=be.autoReplaceSvg==="nest"?tk(e,{styleParser:!1}):tk(e);return~t.extra.classes.indexOf(xE)?zo("generateLayersText",e,t):zo("generateSvgReplacementMutation",e,t)}function Yse(){return[].concat(Dr(fE),Dr(pE))}function nk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Vi)return Promise.resolve();var n=ut.documentElement.classList,r=function(f){return n.add("".concat(B3,"-").concat(f))},i=function(f){return n.remove("".concat(B3,"-").concat(f))},o=be.autoFetchSvg?Yse():W8.concat(Object.keys(Xse));o.includes("fa")||o.push("fa");var a=[".".concat(xE,":not([").concat(La,"])")].concat(o.map(function(d){return".".concat(d,":not([").concat(La,"])")})).join(", ");if(a.length===0)return Promise.resolve();var l=[];try{l=Ll(e.querySelectorAll(a))}catch{}if(l.length>0)r("pending"),i("complete");else return Promise.resolve();var c=Rx.begin("onTree"),u=l.reduce(function(d,f){try{var p=BE(f);p&&d.push(p)}catch(h){yE||h.name==="MissingIcon"&&console.error(h)}return d},[]);return new Promise(function(d,f){Promise.all(u).then(function(p){OE(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),c(),d()})}).catch(function(p){c(),f(p)})})}function Qse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;BE(e).then(function(n){n&&OE([n],t)})}function Zse(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:dy(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:dy(i||{})),e(r,G(G({},n),{},{mask:i}))}}var Jse=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Zr:r,o=n.symbol,a=o===void 0?!1:o,l=n.mask,c=l===void 0?null:l,u=n.maskId,d=u===void 0?null:u,f=n.classes,p=f===void 0?[]:f,h=n.attributes,v=h===void 0?{}:h,b=n.styles,x=b===void 0?{}:b;if(t){var y=t.prefix,g=t.iconName,S=t.icon;return ih(G({type:"icon"},t),function(){return Na("beforeDOMElementCreation",{iconDefinition:t,params:n}),Ix({icons:{main:fy(S),mask:c?fy(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:y,iconName:g,transform:G(G({},Zr),i),symbol:a,maskId:d,extra:{attributes:v,styles:x,classes:p}})})}},ele={mixout:function(){return{icon:Zse(Jse)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=nk,n.nodeCallback=Qse,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?ut:r,o=n.callback,a=o===void 0?function(){}:o;return nk(i,a)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.prefix,a=r.transform,l=r.symbol,c=r.mask,u=r.maskId,d=r.extra;return new Promise(function(f,p){Promise.all([py(i,o),c.iconName?py(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(h){var v=eh(h,2),b=v[0],x=v[1];f([n,Ix({icons:{main:b,mask:x},prefix:o,iconName:i,transform:a,symbol:l,maskId:u,extra:d,watchable:!0})])}).catch(p)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.transform,l=n.styles,c=th(l);c.length>0&&(i.style=c);var u;return Ax(a)&&(u=zo("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),r.push(u||o.icon),{children:r,attributes:i}}}},tle={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,o=i===void 0?[]:i;return ih({type:"layer"},function(){Na("beforeDOMElementCreation",{assembler:n,params:r});var a=[];return n(function(l){Array.isArray(l)?l.map(function(c){a=a.concat(c.abstract)}):a=a.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(be.cssPrefix,"-layers")].concat(Dr(o)).join(" ")},children:a}]})}}}},nle={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.title;var i=r.classes,o=i===void 0?[]:i,a=r.attributes,l=a===void 0?{}:a,c=r.styles,u=c===void 0?{}:c;return ih({type:"counter",content:n},function(){return Na("beforeDOMElementCreation",{content:n,params:r}),Rse({content:n.toString(),extra:{attributes:l,styles:u,classes:["".concat(be.cssPrefix,"-layers-counter")].concat(Dr(o))}})})}}}},rle={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?Zr:i,a=r.classes,l=a===void 0?[]:a,c=r.attributes,u=c===void 0?{}:c,d=r.styles,f=d===void 0?{}:d;return ih({type:"text",content:n},function(){return Na("beforeDOMElementCreation",{content:n,params:r}),Y3({content:n,transform:G(G({},Zr),o),extra:{attributes:u,styles:f,classes:["".concat(be.cssPrefix,"-layers-text")].concat(Dr(l))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.transform,o=r.extra,a=null,l=null;if(F8){var c=parseInt(getComputedStyle(n).fontSize,10),u=n.getBoundingClientRect();a=u.width/c,l=u.height/c}return Promise.resolve([n,Y3({content:n.innerHTML,width:a,height:l,transform:i,extra:o,watchable:!0})])}}},WE=new RegExp('"',"ug"),rk=[1105920,1112319],ik=G(G(G(G({},{FontAwesome:{normal:"fas",400:"fas"}}),_oe),Uae),Loe),gy=Object.keys(ik).reduce(function(e,t){return e[t.toLowerCase()]=ik[t],e},{}),ile=Object.keys(gy).reduce(function(e,t){var n=gy[t];return e[t]=n[900]||Dr(Object.entries(n))[0][1],e},{});function ole(e){var t=e.replace(WE,"");return PE(Dr(t)[0]||"")}function ale(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),r=n.replace(WE,""),i=r.codePointAt(0),o=i>=rk[0]&&i<=rk[1],a=r.length===2?r[0]===r[1]:!1;return o||a||t}function sle(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(gy[n]||{})[i]||ile[n]}function ok(e,t){var n="".concat(Hae).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=Ll(e.children),a=o.filter(function(C){return C.getAttribute(oy)===t})[0],l=Ao.getComputedStyle(e,t),c=l.getPropertyValue("font-family"),u=c.match(Yae),d=l.getPropertyValue("font-weight"),f=l.getPropertyValue("content");if(a&&!u)return e.removeChild(a),r();if(u&&f!=="none"&&f!==""){var p=l.getPropertyValue("content"),h=sle(c,d),v=ole(p),b=u[0].startsWith("FontAwesome"),x=ale(l),y=zx(h,v),g=y;if(b){var S=vse(v);S.iconName&&S.prefix&&(y=S.iconName,h=S.prefix)}if(y&&!x&&(!a||a.getAttribute(Px)!==h||a.getAttribute(_x)!==g)){e.setAttribute(n,g),a&&e.removeChild(a);var w=Kse(),k=w.extra;k.attributes[oy]=t,py(y,h).then(function(C){var P=Ix(G(G({},w),{},{icons:{main:C,mask:ME()},prefix:h,iconName:g,extra:k,watchable:!0})),j=ut.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(j,e.firstChild):e.appendChild(j),j.outerHTML=P.map(function(R){return dd(R)}).join(` +`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function lle(e){return Promise.all([ok(e,"::before"),ok(e,"::after")])}function cle(e){return e.parentNode!==document.head&&!~Gae.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(oy)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var ule=function(t){return!!t&&vE.some(function(n){return t.includes(n)})},dle=function(t){if(!t)return[];var n=new Set,r=t.split(/,(?![^()]*\))/).map(function(c){return c.trim()});r=r.flatMap(function(c){return c.includes("(")?c:c.split(",").map(function(u){return u.trim()})});var i=Zf(r),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;if(ule(a)){var l=vE.reduce(function(c,u){return c.replace(u,"")},a);l!==""&&l!=="*"&&n.add(l)}}}catch(c){i.e(c)}finally{i.f()}return n};function ak(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Vi){var n;if(t)n=e;else if(be.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var r=new Set,i=Zf(document.styleSheets),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;try{var l=Zf(a.cssRules),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,d=dle(u.selectorText),f=Zf(d),p;try{for(f.s();!(p=f.n()).done;){var h=p.value;r.add(h)}}catch(b){f.e(b)}finally{f.f()}}}catch(b){l.e(b)}finally{l.f()}}catch(b){be.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(a.href," (").concat(b.message,`) +If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the , enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(b){i.e(b)}finally{i.f()}if(!r.size)return;var v=Array.from(r).join(", ");try{n=e.querySelectorAll(v)}catch{}}return new Promise(function(b,x){var y=Ll(n).filter(cle).map(lle),g=Rx.begin("searchPseudoElements");FE(),Promise.all(y).then(function(){g(),hy(),b()}).catch(function(){g(),hy(),x()})})}}var fle={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=ak,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?ut:r;be.searchPseudoElements&&ak(i)}}},sk=!1,ple={mixout:function(){return{dom:{unwatch:function(){FE(),sk=!0}}}},hooks:function(){return{bootstrap:function(){ek(uy("mutationObserverCallbacks",{}))},noAuto:function(){Use()},watch:function(n){var r=n.observeMutationsRoot;sk?hy():ek(uy("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},lk=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var o=i.toLowerCase().split("-"),a=o[0],l=o.slice(1).join("-");if(a&&l==="h")return r.flipX=!0,r;if(a&&l==="v")return r.flipY=!0,r;if(l=parseFloat(l),isNaN(l))return r;switch(a){case"grow":r.size=r.size+l;break;case"shrink":r.size=r.size-l;break;case"left":r.x=r.x-l;break;case"right":r.x=r.x+l;break;case"up":r.y=r.y-l;break;case"down":r.y=r.y+l;break;case"rotate":r.rotate=r.rotate+l;break}return r},n)},mle={mixout:function(){return{parse:{transform:function(n){return lk(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=lk(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,a=n.iconWidth,l={transform:"translate(".concat(o/2," 256)")},c="translate(".concat(i.x*32,", ").concat(i.y*32,") "),u="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),d="rotate(".concat(i.rotate," 0 0)"),f={transform:"".concat(c," ").concat(u," ").concat(d)},p={transform:"translate(".concat(a/2*-1," -256)")},h={outer:l,inner:f,path:p};return{tag:"g",attributes:G({},h.outer),children:[{tag:"g",attributes:G({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:G(G({},r.icon.attributes),h.path)}]}]}}}},Q0={x:0,y:0,width:"100%",height:"100%"};function ck(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function hle(e){return e.tag==="g"?e.children:[e]}var gle={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?rh(i.split(" ").map(function(a){return a.trim()})):ME();return o.prefix||(o.prefix=$o()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.mask,l=n.maskId,c=n.transform,u=o.width,d=o.icon,f=a.width,p=a.icon,h=sse({transform:c,containerWidth:f,iconWidth:u}),v={tag:"rect",attributes:G(G({},Q0),{},{fill:"white"})},b=d.children?{children:d.children.map(ck)}:{},x={tag:"g",attributes:G({},h.inner),children:[ck(G({tag:d.tag,attributes:G(G({},d.attributes),h.path)},b))]},y={tag:"g",attributes:G({},h.outer),children:[x]},g="mask-".concat(l||V3()),S="clip-".concat(l||V3()),w={tag:"mask",attributes:G(G({},Q0),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,y]},k={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:hle(p)},w]};return r.push(k,{tag:"rect",attributes:G({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(g,")")},Q0)}),{children:r,attributes:i}}}},vle={provides:function(t){var n=!1;Ao.matchMedia&&(n=Ao.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:G(G({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=G(G({},o),{},{attributeName:"opacity"}),l={tag:"circle",attributes:G(G({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||l.children.push({tag:"animate",attributes:G(G({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:G(G({},a),{},{values:"1;0;1;1;0;1;"})}),r.push(l),r.push({tag:"path",attributes:G(G({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:G(G({},a),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:G(G({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:G(G({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},yle={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},ble=[use,ele,tle,nle,rle,fle,ple,mle,gle,vle,yle];Pse(ble,{mixoutsTo:ar});ar.noAuto;var Sl=ar.config;ar.library;ar.dom;var VE=ar.parse;ar.findIconDefinition;ar.toHtml;var xle=ar.icon;ar.layer;ar.text;ar.counter;function Sle(e){return e=e-0,e===e}function UE(e){return Sle(e)?e:(e=e.replace(/[_-]+(.)?/g,(t,n)=>n?n.toUpperCase():""),e.charAt(0).toLowerCase()+e.slice(1))}var wle=(e,t)=>rn.createElement("stop",{key:`${t}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function kle(e){return e.charAt(0).toUpperCase()+e.slice(1)}var os=new Map,Cle=1e3;function jle(e){if(os.has(e))return os.get(e);const t={};let n=0;const r=e.length;for(;n0){const c=a.slice(0,l).trim(),u=a.slice(l+1).trim();if(c&&u){const d=UE(c);t[d.startsWith("webkit")?kle(d):d]=u}}}n=o+1}if(os.size===Cle){const i=os.keys().next().value;i&&os.delete(i)}return os.set(e,t),t}function HE(e,t,n={}){if(typeof t=="string")return t;const r=(t.children||[]).map(f=>{let p=f;return("fill"in n||n.gradientFill)&&f.tag==="path"&&"fill"in f.attributes&&(p={...f,attributes:{...f.attributes,fill:void 0}}),HE(e,p)}),i=t.attributes||{},o={};for(const[f,p]of Object.entries(i))switch(!0){case f==="class":{o.className=p;break}case f==="style":{o.style=jle(String(p));break}case f.startsWith("aria-"):case f.startsWith("data-"):{o[f.toLowerCase()]=p;break}default:o[UE(f)]=p}const{style:a,role:l,"aria-label":c,gradientFill:u,...d}=n;if(a&&(o.style=o.style?{...o.style,...a}:a),l&&(o.role=l),c&&(o["aria-label"]=c,o["aria-hidden"]="false"),u){o.fill=`url(#${u.id})`;const{type:f,stops:p=[],...h}=u;r.unshift(e(f==="linear"?"linearGradient":"radialGradient",{...h,id:u.id},p.map(wle)))}return e(t.tag,{...o,...d},...r)}var Ple=HE.bind(null,rn.createElement),uk=(e,t)=>{const n=m.useId();return e||(t?n:void 0)},_le=class{constructor(e="react-fontawesome"){this.enabled=!1;let t=!1;try{t=typeof process<"u"&&!1}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}},Tle="searchPseudoElementsFullScan"in Sl&&typeof Sl.searchPseudoElementsFullScan=="boolean"?"7.0.0":"6.0.0",Ele=Number.parseInt(Tle)>=7,Ale=()=>Ele,qc="fa",Ut={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse",flip360:"fa-flip-360",buzz:"fa-buzz",float:"fa-float",jello:"fa-jello",spinSnap:"fa-spin-snap",spinSnap4:"fa-spin-snap-4",spinSnap8:"fa-spin-snap-8",swing:"fa-swing",wag:"fa-wag"},$le={left:"fa-pull-left",right:"fa-pull-right"},zle={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},Ile={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},_r={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto",canvasSquare:"fa-canvas-square",canvasRoomy:"fa-canvas-roomy"};function Rle(e){const t=Sl.cssPrefix||Sl.familyPrefix||qc;return t===qc?e:e.replace(new RegExp(String.raw`(?<=^|\s)${qc}-`,"g"),`${t}-`)}function Mle(e){const{beat:t,fade:n,beatFade:r,bounce:i,shake:o,spin:a,spinPulse:l,spinReverse:c,pulse:u,fixedWidth:d,inverse:f,border:p,flip:h,size:v,rotation:b,pull:x,swapOpacity:y,rotateBy:g,widthAuto:S,canvasSquare:w,canvasRoomy:k,flip360:C,buzz:P,float:j,jello:R,spinSnap:T,spinSnap4:$,spinSnap8:K,swing:X,wag:M,className:N}=e,O=[];return N&&O.push(...N.split(" ")),t&&O.push(Ut.beat),n&&O.push(Ut.fade),r&&O.push(Ut.beatFade),i&&O.push(Ut.bounce),o&&O.push(Ut.shake),a&&O.push(Ut.spin),c&&O.push(Ut.spinReverse),l&&O.push(Ut.spinPulse),u&&O.push(Ut.pulse),d&&O.push(_r.fixedWidth),f&&O.push(_r.inverse),p&&O.push(_r.border),h===!0&&O.push(_r.flip),(h==="horizontal"||h==="both")&&O.push(_r.flipHorizontal),(h==="vertical"||h==="both")&&O.push(_r.flipVertical),v!=null&&O.push(Ile[v]),b!=null&&b!==0&&O.push(zle[b]),x!=null&&O.push($le[x]),y&&O.push(_r.swapOpacity),Ale()?(g&&O.push(_r.rotateBy),S&&O.push(_r.widthAuto),w&&O.push(_r.canvasSquare),k&&O.push(_r.canvasRoomy),C&&O.push(Ut.flip360),P&&O.push(Ut.buzz),j&&O.push(Ut.float),R&&O.push(Ut.jello),T&&O.push(Ut.spinSnap),$&&O.push(Ut.spinSnap4),K&&O.push(Ut.spinSnap8),X&&O.push(Ut.swing),M&&O.push(Ut.wag),(Sl.cssPrefix||Sl.familyPrefix||qc)===qc?O:O.map(Rle)):O}var Lle=e=>typeof e=="object"&&"icon"in e&&!!e.icon;function dk(e){if(e)return Lle(e)?e:VE.icon(e)}function Nle(e){return Object.keys(e)}var fk=new _le("FontAwesomeIcon"),qE={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1,canvasSquare:!1,canvasRoomy:!1,flip360:!1,buzz:!1,float:!1,jello:!1,spinSnap:!1,spinSnap4:!1,spinSnap8:!1,swing:!1,wag:!1},Dle=new Set(Object.keys(qE)),qe=rn.forwardRef((e,t)=>{const n={...qE,...e},{icon:r,mask:i,symbol:o,title:a,titleId:l,maskId:c,transform:u}=n,d=uk(c,!!i),f=uk(l,!!a),p=dk(r);if(!p)return fk.error("Icon lookup is undefined",r),null;const h=Mle(n),v=typeof u=="string"?VE.transform(u):u,b=dk(i),x=xle(p,{...h.length>0&&{classes:h},...v&&{transform:v},...b&&{mask:b},symbol:o,title:a,titleId:f,maskId:d});if(!x)return fk.error("Could not find icon",p),null;const{abstract:y}=x,g={ref:t};for(const S of Nle(n))Dle.has(S)||(g[S]=n[S]);return Ple(y[0],g)});qe.displayName="FontAwesomeIcon";/*! + * Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) + * Copyright 2026 Fonticons, Inc. + */var vy={prefix:"fas",iconName:"truck",icon:[576,512,[128666,9951],"f0d1","M0 96C0 60.7 28.7 32 64 32l288 0c35.3 0 64 28.7 64 64l0 32 50.7 0c17 0 33.3 6.7 45.3 18.7L557.3 192c12 12 18.7 28.3 18.7 45.3L576 384c0 35.3-28.7 64-64 64l-3.3 0c-10.4 36.9-44.4 64-84.7 64s-74.2-27.1-84.7-64l-102.6 0c-10.4 36.9-44.4 64-84.7 64s-74.2-27.1-84.7-64L64 448c-35.3 0-64-28.7-64-64L0 96zM512 288l0-50.7-45.3-45.3-50.7 0 0 96 96 0zM192 424a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm232 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},Lx={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M286 304c98.5 0 178.3 79.8 178.3 178.3 0 16.4-13.3 29.7-29.7 29.7L78 512c-16.4 0-29.7-13.3-29.7-29.7 0-98.5 79.8-178.3 178.3-178.3l59.4 0zM585.7 105.9c7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5L522.1 274.9c-4.2 5.7-10.7 9.4-17.7 9.8s-14-2.2-18.9-7.3l-46.4-48c-9.2-9.5-9-24.7 .6-33.9 9.5-9.2 24.7-8.9 33.9 .6l26.5 27.4 85.6-117.7zM256.3 248a120 120 0 1 1 0-240 120 120 0 1 1 0 240z"]},Nx={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 3.2C119 50 64 114.6 64 192l0 21.7c0 48.1-16.4 94.8-46.4 132.4L7.8 358.3C2.7 364.6 0 372.4 0 380.5 0 400.1 15.9 416 35.5 416l376.9 0c19.6 0 35.5-15.9 35.5-35.5 0-8.1-2.7-15.9-7.8-22.2l-9.8-12.2C400.4 308.5 384 261.8 384 213.7l0-21.7c0-77.4-55-142-128-156.8l0-3.2c0-17.7-14.3-32-32-32zM162 464c7.1 27.6 32.2 48 62 48s54.9-20.4 62-48l-124 0z"]},pk={prefix:"fas",iconName:"trophy",icon:[512,512,[127942],"f091","M144.3 0l224 0c26.5 0 48.1 21.8 47.1 48.2-.2 5.3-.4 10.6-.7 15.8l49.6 0c26.1 0 49.1 21.6 47.1 49.8-7.5 103.7-60.5 160.7-118 190.5-15.8 8.2-31.9 14.3-47.2 18.8-20.2 28.6-41.2 43.7-57.9 51.8l0 73.1 64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0 0-73.1c-16-7.7-35.9-22-55.3-48.3-18.4-4.8-38.4-12.1-57.9-23.1-54.1-30.3-102.9-87.4-109.9-189.9-1.9-28.1 21-49.7 47.1-49.7l49.6 0c-.3-5.2-.5-10.4-.7-15.8-1-26.5 20.6-48.2 47.1-48.2zM101.5 112l-52.4 0c6.2 84.7 45.1 127.1 85.2 149.6-14.4-37.3-26.3-86-32.8-149.6zM380 256.8c40.5-23.8 77.1-66.1 83.3-144.8L411 112c-6.2 60.9-17.4 108.2-31 144.8z"]},Ole={prefix:"fas",iconName:"gift",icon:[512,512,[127873],"f06b","M321.5 68.8C329.1 55.9 342.9 48 357.8 48l2.2 0c22.1 0 40 17.9 40 40s-17.9 40-40 40l-73.3 0 34.8-59.2zm-131 0l34.8 59.2-73.3 0c-22.1 0-40-17.9-40-40s17.9-40 40-40l2.2 0c14.9 0 28.8 7.9 36.3 20.8zm89.6-24.3l-24.1 41-24.1-41C215.7 16.9 186.1 0 154.2 0L152 0c-48.6 0-88 39.4-88 88 0 14.4 3.5 28 9.6 40L32 128c-17.7 0-32 14.3-32 32l0 32c0 17.7 14.3 32 32 32l448 0c17.7 0 32-14.3 32-32l0-32c0-17.7-14.3-32-32-32l-41.6 0c6.1-12 9.6-25.6 9.6-40 0-48.6-39.4-88-88-88l-2.2 0c-31.9 0-61.5 16.9-77.7 44.4zM480 272l-200 0 0 208 136 0c35.3 0 64-28.7 64-64l0-144zm-248 0l-200 0 0 144c0 35.3 28.7 64 64 64l136 0 0-208z"]},GE={prefix:"fas",iconName:"power-off",icon:[512,512,[9211],"f011","M288 0c0-17.7-14.3-32-32-32S224-17.7 224 0l0 256c0 17.7 14.3 32 32 32s32-14.3 32-32L288 0zM146.3 98.4c14.5-10.1 18-30.1 7.9-44.6s-30.1-18-44.6-7.9C43.4 92.1 0 169 0 256 0 397.4 114.6 512 256 512S512 397.4 512 256c0-87-43.4-163.9-109.7-210.1-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6c49.8 34.8 82.3 92.4 82.3 157.6 0 106-86 192-192 192S64 362 64 256c0-65.2 32.5-122.9 82.3-157.6z"]},Fle={prefix:"fas",iconName:"cash-register",icon:[512,512,[],"f788","M96 0C60.7 0 32 28.7 32 64s28.7 64 64 64l48 0 0 32-57 0c-31.6 0-58.5 23.1-63.3 54.4L1.1 364.1C.4 368.8 0 373.6 0 378.4L0 448c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-69.6c0-4.8-.4-9.6-1.1-14.4L488.2 214.4C483.5 183.1 456.6 160 425 160l-217 0 0-32 48 0c35.3 0 64-28.7 64-64S291.3 0 256 0L96 0zm0 48l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16L96 80c-8.8 0-16-7.2-16-16s7.2-16 16-16zM64 424c0-13.3 10.7-24 24-24l336 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L88 448c-13.3 0-24-10.7-24-24zm48-160a24 24 0 1 1 0-48 24 24 0 1 1 0 48zm120-24a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM160 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48zM328 240a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM256 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48zM424 240a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM352 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48z"]},Ble={prefix:"fas",iconName:"map-location-dot",icon:[640,512,["map-marked-alt"],"f5a0","M576 48c0-11.1-5.7-21.4-15.2-27.2s-21.2-6.4-31.1-1.4L413.5 77.5 234.1 17.6c-8.1-2.7-16.8-2.1-24.4 1.7l-128 64C70.8 88.8 64 99.9 64 112l0 352c0 11.1 5.7 21.4 15.2 27.2s21.2 6.4 31.1 1.4l116.1-58.1 173.3 57.8c-4.3-6.4-8.5-13.1-12.6-19.9-11-18.3-21.9-39.3-30-61.8l-101.2-33.7 0-284.5 128 42.7 0 99.3c31-35.8 77-58.4 128-58.4 22.6 0 44.2 4.4 64 12.5L576 48zM512 224c-66.3 0-120 52.8-120 117.9 0 68.9 64.1 150.4 98.6 189.3 11.6 13 31.3 13 42.9 0 34.5-38.9 98.6-120.4 98.6-189.3 0-65.1-53.7-117.9-120-117.9zM472 344a40 40 0 1 1 80 0 40 40 0 1 1 -80 0z"]},Wle={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Vle={prefix:"fas",iconName:"boxes-stacked",icon:[512,512,[62625,"boxes","boxes-alt"],"f468","M224 0l0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-64 32 0c35.3 0 64 28.7 64 64l0 128c0 5.5-.7 10.9-2 16l-252 0c-1.3-5.1-2-10.5-2-16l0-128c0-35.3 28.7-64 64-64l32 0zm96 512c-11.2 0-21.8-2.9-31-8 9.5-16.5 15-35.6 15-56l0-128c0-20.4-5.5-39.5-15-56 9.2-5.1 19.7-8 31-8l32 0 0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-64 32 0c35.3 0 64 28.7 64 64l0 128c0 35.3-28.7 64-64 64l-128 0zM0 320c0-35.3 28.7-64 64-64l32 0 0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-64 32 0c35.3 0 64 28.7 64 64l0 128c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 320z"]},KE={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8c-22.4 31.4-35.5 69.8-35.5 111.2 0 106 86 192 192 192 41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3c22.4-31.4 35.5-69.8 35.5-111.2 0-106-86-192-192-192-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"]},mk={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48 0 3.4 .4 6.7 1 9.9 2.1 10.2 6.5 20 10.8 29.9 6.1 13.8 12.1 27.5 12.1 42 0 31.8-21.6 60.7-53.4 62-3.5 .1-7 .2-10.6 .2-141.4 0-256-114.6-256-256S114.6 0 256 0 512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Ule={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6-46.8 43.5-78.1 95.4-93 131.1-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64-11.5 0-22.3-3-31.7-8.4-1 10.9-.1 22.1 2.9 33.2 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-12.2-45.7-55.5-74.8-101.1-70.8 5.3 9.3 8.4 20.1 8.4 31.7z"]},XE={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M136.7 5.9L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-8.7-26.1C306.9-7.2 294.7-16 280.9-16L167.1-16c-13.8 0-26 8.8-30.4 21.9zM416 144L32 144 53.1 467.1C54.7 492.4 75.7 512 101 512L347 512c25.3 0 46.3-19.6 47.9-44.9L416 144z"]},Hle={prefix:"fas",iconName:"receipt",icon:[384,512,[129534],"f543","M14 2.2C22.5-1.7 32.5-.3 39.6 5.8L80 40.4 120.4 5.8c9-7.7 22.3-7.7 31.2 0L192 40.4 232.4 5.8c9-7.7 22.2-7.7 31.2 0L304 40.4 344.4 5.8c7.1-6.1 17.1-7.5 25.6-3.6S384 14.6 384 24l0 464c0 9.4-5.5 17.9-14 21.8s-18.5 2.5-25.6-3.6l-40.4-34.6-40.4 34.6c-9 7.7-22.2 7.7-31.2 0l-40.4-34.6-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L80 471.6 39.6 506.2c-7.1 6.1-17.1 7.5-25.6 3.6S0 497.4 0 488L0 24C0 14.6 5.5 6.1 14 2.2zM104 136c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0zM80 352c0 13.3 10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0c-13.3 0-24 10.7-24 24zm24-120c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0z"]},YE={prefix:"fas",iconName:"chevron-up",icon:[448,512,[],"f077","M201.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L224 173.3 54.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},fd={prefix:"fas",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M256 0a256 256 0 1 1 0 512 256 256 0 1 1 0-512zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},qle={prefix:"fas",iconName:"paper-plane",icon:[576,512,[61913],"f1d8","M536.4-26.3c9.8-3.5 20.6-1 28 6.3s9.8 18.2 6.3 28l-178 496.9c-5 13.9-18.1 23.1-32.8 23.1-14.2 0-27-8.6-32.3-21.7l-64.2-158c-4.5-11-2.5-23.6 5.2-32.6l94.5-112.4c5.1-6.1 4.7-15-.9-20.6s-14.6-6-20.6-.9L229.2 276.1c-9.1 7.6-21.6 9.6-32.6 5.2L38.1 216.8c-13.1-5.3-21.7-18.1-21.7-32.3 0-14.7 9.2-27.8 23.1-32.8l496.9-178z"]},Gle={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},Kle={prefix:"fas",iconName:"fire",icon:[448,512,[128293],"f06d","M160.5-26.4c9.3-7.8 23-7.5 31.9 .9 12.3 11.6 23.3 24.4 33.9 37.4 13.5 16.5 29.7 38.3 45.3 64.2 5.2-6.8 10-12.8 14.2-17.9 1.1-1.3 2.2-2.7 3.3-4.1 7.9-9.8 17.7-22.1 30.8-22.1 13.4 0 22.8 11.9 30.8 22.1 1.3 1.7 2.6 3.3 3.9 4.8 10.3 12.4 24 30.3 37.7 52.4 27.2 43.9 55.6 106.4 55.6 176.6 0 123.7-100.3 224-224 224S0 411.7 0 288c0-91.1 41.1-170 80.5-225 19.9-27.7 39.7-49.9 54.6-65.1 8.2-8.4 16.5-16.7 25.5-24.2zM225.7 416c25.3 0 47.7-7 68.8-21 42.1-29.4 53.4-88.2 28.1-134.4-4.5-9-16-9.6-22.5-2l-25.2 29.3c-6.6 7.6-18.5 7.4-24.7-.5-17.3-22.1-49.1-62.4-65.3-83-5.4-6.9-15.2-8-21.5-1.9-18.3 17.8-51.5 56.8-51.5 104.3 0 68.6 50.6 109.2 113.7 109.2z"]},QE={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M320 16a104 104 0 1 1 0 208 104 104 0 1 1 0-208zM96 88a72 72 0 1 1 0 144 72 72 0 1 1 0-144zM0 416c0-70.7 57.3-128 128-128 12.8 0 25.2 1.9 36.9 5.4-32.9 36.8-52.9 85.4-52.9 138.6l0 16c0 11.4 2.4 22.2 6.7 32L32 480c-17.7 0-32-14.3-32-32l0-32zm521.3 64c4.3-9.8 6.7-20.6 6.7-32l0-16c0-53.2-20-101.8-52.9-138.6 11.7-3.5 24.1-5.4 36.9-5.4 70.7 0 128 57.3 128 128l0 32c0 17.7-14.3 32-32 32l-86.7 0zM472 160a72 72 0 1 1 144 0 72 72 0 1 1 -144 0zM160 432c0-88.4 71.6-160 160-160s160 71.6 160 160l0 16c0 17.7-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32l0-16z"]},ZE={prefix:"fas",iconName:"location-arrow",icon:[512,512,[],"f124","M477.9 75.5c4.5-11.8 1.7-25.2-7.2-34.1s-22.3-11.8-34.1-7.2l-416 160C7.9 199-.3 211.2 0 224.7s9.1 25.4 21.9 29.6l176.8 58.9 58.9 176.8c4.3 12.8 16.1 21.6 29.6 21.9s25.7-7.9 30.6-20.5l160-416z"]},Xle={prefix:"fas",iconName:"video",icon:[576,512,["video-camera"],"f03d","M96 64c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L96 64zM464 336l73.5 58.8c4.2 3.4 9.4 5.2 14.8 5.2 13.1 0 23.7-10.6 23.7-23.7l0-240.6c0-13.1-10.6-23.7-23.7-23.7-5.4 0-10.6 1.8-14.8 5.2L464 176 464 336z"]},Yle={prefix:"fas",iconName:"utensils",icon:[512,512,[127860,61685,"cutlery"],"f2e7","M63.9 14.4C63.1 6.2 56.2 0 48 0s-15.1 6.2-16 14.3L17.9 149.7c-1.3 6-1.9 12.1-1.9 18.2 0 45.9 35.1 83.6 80 87.7L96 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-224.4c44.9-4.1 80-41.8 80-87.7 0-6.1-.6-12.2-1.9-18.2L223.9 14.3C223.1 6.2 216.2 0 208 0s-15.1 6.2-15.9 14.4L178.5 149.9c-.6 5.7-5.4 10.1-11.1 10.1-5.8 0-10.6-4.4-11.2-10.2L143.9 14.6C143.2 6.3 136.3 0 128 0s-15.2 6.3-15.9 14.6L99.8 149.8c-.5 5.8-5.4 10.2-11.2 10.2-5.8 0-10.6-4.4-11.1-10.1L63.9 14.4zM448 0C432 0 320 32 320 176l0 112c0 35.3 28.7 64 64 64l32 0 0 128c0 17.7 14.3 32 32 32s32-14.3 32-32l0-448c0-17.7-14.3-32-32-32z"]},Qle={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c9.4-9.4 24.6-9.4 33.9 0l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9z"]},Dx={prefix:"fas",iconName:"user-clock",icon:[576,512,[],"f4fd","M224 8a120 120 0 1 1 0 240 120 120 0 1 1 0-240zM194.3 304l59.4 0c3.9 0 7.9 .1 11.8 .4-16.2 28.2-25.5 60.8-25.5 95.6 0 41.8 13.4 80.5 36 112L45.7 512C29.3 512 16 498.7 16 482.3 16 383.8 95.8 304 194.3 304zM288 400a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-80c-8.8 0-16 7.2-16 16l0 64c0 8.8 7.2 16 16 16l48 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-48c0-8.8-7.2-16-16-16z"]},Zle={prefix:"fas",iconName:"image",icon:[448,512,[],"f03e","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm64 80a48 48 0 1 1 0 96 48 48 0 1 1 0-96zM272 224c8.4 0 16.1 4.4 20.5 11.5l88 144c4.5 7.4 4.7 16.7 .5 24.3S368.7 416 360 416L88 416c-8.9 0-17.2-5-21.3-12.9s-3.5-17.5 1.6-24.8l56-80c4.5-6.4 11.8-10.2 19.7-10.2s15.2 3.8 19.7 10.2l26.4 37.8 61.4-100.5c4.4-7.1 12.1-11.5 20.5-11.5z"]},Jle={prefix:"fas",iconName:"user-plus",icon:[640,512,[],"f234","M285.7 304c98.5 0 178.3 79.8 178.3 178.3 0 16.4-13.3 29.7-29.7 29.7L77.7 512C61.3 512 48 498.7 48 482.3 48 383.8 127.8 304 226.3 304l59.4 0zM528 80c13.3 0 24 10.7 24 24l0 48 48 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-48 0 0 48c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-48-48 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0 0-48c0-13.3 10.7-24 24-24zM256 248a120 120 0 1 1 0-240 120 120 0 1 1 0 240z"]},JE={prefix:"fas",iconName:"link",icon:[576,512,[128279,"chain"],"f0c1","M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z"]},e7={prefix:"fas",iconName:"bicycle",icon:[640,512,[128690],"f206","M331.7 43.3C336 36.3 343.7 32 352 32l104 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-65.6 0 72.2 148.4c10.7-2.9 21.9-4.4 33.4-4.4 70.7 0 128 57.3 128 128s-57.3 128-128 128-128-57.3-128-128c0-42 20.2-79.2 51.4-102.6l-20.4-41.9-73.5 147c-2.3 4.8-6.3 8.8-11.4 11.2-.6 .3-1.2 .5-1.8 .7-2.9 1.1-5.9 1.6-8.9 1.5L271 368c-7.9 63.1-61.7 112-127 112-70.7 0-128-57.3-128-128S73.3 224 144 224c10.8 0 21.2 1.3 31.2 3.8l28.5-56.9-11.5-26.9-40.2 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l56 0c9.6 0 18.3 5.7 22.1 14.5l14.3 33.5 123.7 0-37.7-77.5c-3.6-7.4-3.2-16.2 1.2-23.2zM228.5 228.7l-45.6 91.3 84.8 0-39.1-91.3zM305.7 287l47.5-95-88.2 0 40.7 95zm168.7 75.5l-29.7-61c-12.8 13-20.7 30.8-20.7 50.5 0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72c-2.7 0-5.5 .2-8.1 .5l29.7 61c5.8 11.9 .8 26.3-11.1 32.1s-26.3 .8-32.1-11.1zM149.2 368c-20.2 0-33.4-21.3-24.3-39.4l24.2-48.5c-1.7-.1-3.4-.2-5.1-.2-39.8 0-72 32.2-72 72s32.2 72 72 72c34.3 0 62.9-23.9 70.2-56l-65 0z"]},ece={prefix:"fas",iconName:"bell-concierge",icon:[512,512,[128718,"concierge-bell"],"f562","M216 64c-13.3 0-24 10.7-24 24s10.7 24 24 24l16 0 0 33.3C124.8 156.7 40.2 243.7 32.6 352l446.9 0C471.8 243.7 387.2 156.7 280 145.3l0-33.3 16 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0zM24 400c-13.3 0-24 10.7-24 24s10.7 24 24 24l464 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L24 400z"]},Io={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"]},Ox={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144,62470,"user-alt","user-large"],"f007","M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z"]},tce={prefix:"fas",iconName:"tags",icon:[576,512,[],"f02c","M401.2 39.1L549.4 189.4c27.7 28.1 27.7 73.1 0 101.2L393 448.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L515.3 256.8c9.2-9.3 9.2-24.4 0-33.7L367 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM32.1 229.5L32.1 96c0-35.3 28.7-64 64-64l133.5 0c17 0 33.3 6.7 45.3 18.7l144 144c25 25 25 65.5 0 90.5L285.4 418.7c-25 25-65.5 25-90.5 0l-144-144c-12-12-18.7-28.3-18.7-45.3zm144-85.5a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},nce={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zM374 145.7c-10.7-7.8-25.7-5.4-33.5 5.3L221.1 315.2 169 263.1c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l72 72c5 5 11.8 7.5 18.8 7s13.4-4.1 17.5-9.8L379.3 179.2c7.8-10.7 5.4-25.7-5.3-33.5z"]},rce={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M352.9 21.2L308 66.1 445.9 204 490.8 159.1C504.4 145.6 512 127.2 512 108s-7.6-37.6-21.2-51.1L455.1 21.2C441.6 7.6 423.2 0 404 0s-37.6 7.6-51.1 21.2zM274.1 100L58.9 315.1c-10.7 10.7-18.5 24.1-22.6 38.7L.9 481.6c-2.3 8.3 0 17.3 6.2 23.4s15.1 8.5 23.4 6.2l127.8-35.5c14.6-4.1 27.9-11.8 38.7-22.6L412 237.9 274.1 100z"]},ice={prefix:"fas",iconName:"phone",icon:[512,512,[128222,128379],"f095","M160.2 25C152.3 6.1 131.7-3.9 112.1 1.4l-5.5 1.5c-64.6 17.6-119.8 80.2-103.7 156.4 37.1 175 174.8 312.7 349.8 349.8 76.3 16.2 138.8-39.1 156.4-103.7l1.5-5.5c5.4-19.7-4.7-40.3-23.5-48.1l-97.3-40.5c-16.5-6.9-35.6-2.1-47 11.8l-38.6 47.2C233.9 335.4 177.3 277 144.8 205.3L189 169.3c13.9-11.3 18.6-30.4 11.8-47L160.2 25z"]},t7={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},oce={prefix:"fas",iconName:"hourglass-half",icon:[384,512,["hourglass-2"],"f252","M32 0C14.3 0 0 14.3 0 32S14.3 64 32 64l0 11c0 42.4 16.9 83.1 46.9 113.1l67.9 67.9-67.9 67.9C48.9 353.9 32 394.6 32 437l0 11c-17.7 0-32 14.3-32 32s14.3 32 32 32l320 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-11c0-42.4-16.9-83.1-46.9-113.1l-67.9-67.9 67.9-67.9c30-30 46.9-70.7 46.9-113.1l0-11c17.7 0 32-14.3 32-32S369.7 0 352 0L32 0zM96 75l0-11 192 0 0 11c0 19-5.6 37.4-16 53L112 128c-10.3-15.6-16-34-16-53zm16 309c3.5-5.3 7.6-10.3 12.1-14.9l67.9-67.9 67.9 67.9c4.6 4.6 8.6 9.6 12.2 14.9L112 384z"]},ace={prefix:"fas",iconName:"credit-card",icon:[512,512,[128179,62083,"credit-card-alt"],"f09d","M0 128l0 32 512 0 0-32c0-35.3-28.7-64-64-64L64 64C28.7 64 0 92.7 0 128zm0 80L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-176-512 0zM64 360c0-13.3 10.7-24 24-24l48 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-48 0c-13.3 0-24-10.7-24-24zm144 0c0-13.3 10.7-24 24-24l64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24z"]},sce={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},Kp={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z"]},oh={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},ah={prefix:"fas",iconName:"shield-halved",icon:[512,512,["shield-alt"],"f3ed","M256 0c4.6 0 9.2 1 13.4 2.9L457.8 82.8c22 9.3 38.4 31 38.3 57.2-.5 99.2-41.3 280.7-213.6 363.2-16.7 8-36.1 8-52.8 0-172.4-82.5-213.1-264-213.6-363.2-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.9 1 251.4 0 256 0zm0 66.8l0 378.1c138-66.8 175.1-214.8 176-303.4l-176-74.6 0 0z"]},lce={prefix:"fas",iconName:"check-double",icon:[384,512,[],"f560","M249.9 66.8c10.4-14.3 7.2-34.3-7.1-44.7s-34.3-7.2-44.7 7.1l-106 145.7-37.5-37.5c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l64 64c6.6 6.6 15.8 10 25.1 9.3s17.9-5.5 23.4-13.1l128-176zm128 136c10.4-14.3 7.2-34.3-7.1-44.7s-34.3-7.2-44.7 7.1l-170 233.7-69.5-69.5c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96c6.6 6.6 15.8 10 25.1 9.3s17.9-5.5 23.4-13.1l192-264z"]},Fx={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"]},n7={prefix:"fas",iconName:"box",icon:[448,512,[128230],"f466","M335.1 16c20.7 0 40.1 10 52.1 26.8l48.9 68.5c7.7 10.8 11.9 23.9 11.9 37.2L448 416c0 35.3-28.7 64-64 64l-320 0-6.5-.3C25.2 476.4 0 449.1 0 416L0 148.5c0-11.7 3.2-23.1 9.2-33l2.7-4.2 48.9-68.5c10.5-14.7 26.7-24.2 44.4-26.3l7.7-.5 222.1 0zM248 128l121.3 0-34.3-48-87.1 0 0 48zM78.7 128l121.3 0 0-48-87.1 0-34.3 48z"]},r7={prefix:"fas",iconName:"link-slash",icon:[576,512,["chain-broken","chain-slash","unlink"],"f127","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-122-122c4.2-3.4 8.3-7.1 12.1-10.9l71.1-71.1c29.3-29.3 45.8-69.1 45.8-110.6 0-86.4-70-156.5-156.5-156.5-37.3 0-73.1 13.3-101.3 37.2 20.3 10.1 38.7 23.5 54.5 39.5 14.1-8.3 30.2-12.7 46.8-12.7 51.1 0 92.5 41.4 92.5 92.5 0 24.5-9.7 48-27.1 65.4l-71.1 71.1c-3.9 3.9-8.1 7.4-12.6 10.5l-47.5-47.5c16.5-.9 29.7-14.4 30.2-31.1 0-1.3 0-2.6 0-3.9 0-86.3-69.9-156.9-156.5-156.9-19.2 0-37.9 3.5-55.5 10.2L41-24.9zM225.9 160c.6 0 1.1 0 1.7 0 15.1 0 29.5 3.7 42.1 10.2 1.8 1.2 3.6 2.3 5.5 3.1 26.8 16.3 44.8 45.9 44.8 79.6 0 .4 0 .8 0 1.2L225.9 160zM346.2 416L192 261.8c1.2 84.6 69.6 152.9 154.1 154.1zM139.7 209.5l-45.3-45.3-48.6 48.6c-29.3 29.3-45.8 69.1-45.8 110.6 0 86.4 70 156.5 156.5 156.5 37.2 0 73.1-13.3 101.3-37.2-20.3-10.1-38.8-23.5-54.6-39.5-14 8.2-30.1 12.6-46.7 12.6-51.1 0-92.5-41.4-92.5-92.5 0-24.5 9.7-48 27.1-65.4l48.6-48.6z"]},cce={prefix:"fas",iconName:"arrow-rotate-right",icon:[512,512,[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],"f01e","M436.7 74.7L448 85.4 448 32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 128c0 17.7-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l47.9 0-7.6-7.2c-.2-.2-.4-.4-.6-.6-75-75-196.5-75-271.5 0s-75 196.5 0 271.5 196.5 75 271.5 0c8.2-8.2 15.5-16.9 21.9-26.1 10.1-14.5 30.1-18 44.6-7.9s18 30.1 7.9 44.6c-8.5 12.2-18.2 23.8-29.1 34.7-100 100-262.1 100-362 0S-25 175 75 75c99.9-99.9 261.7-100 361.7-.3z"]},uce={prefix:"fas",iconName:"eye-slash",icon:[576,512,[],"f070","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM204.5 138.7c23.5-16.8 52.4-26.7 83.5-26.7 79.5 0 144 64.5 144 144 0 31.1-9.9 59.9-26.7 83.5l-34.7-34.7c12.7-21.4 17-47.7 10.1-73.7-13.7-51.2-66.4-81.6-117.6-67.9-8.6 2.3-16.7 5.7-24 10l-34.7-34.7zM325.3 395.1c-11.9 3.2-24.4 4.9-37.3 4.9-79.5 0-144-64.5-144-144 0-12.9 1.7-25.4 4.9-37.3L69.4 139.2c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6l-64.2-64.2z"]},Xp={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M256 64c-56.8 0-107.9 24.7-143.1 64l47.1 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 192c-17.7 0-32-14.3-32-32L0 32C0 14.3 14.3 0 32 0S64 14.3 64 32l0 54.7C110.9 33.6 179.5 0 256 0 397.4 0 512 114.6 512 256S397.4 512 256 512c-87 0-163.9-43.4-210.1-109.7-10.1-14.5-6.6-34.4 7.9-44.6s34.4-6.6 44.6 7.9c34.8 49.8 92.4 82.3 157.6 82.3 106 0 192-86 192-192S362 64 256 64z"]},dce={prefix:"fas",iconName:"desktop",icon:[512,512,[128421,61704,"desktop-alt"],"f390","M64 32C28.7 32 0 60.7 0 96L0 352c0 35.3 28.7 64 64 64l144 0-16 48-72 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l272 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-72 0-16-48 144 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 32zM96 96l320 0c17.7 0 32 14.3 32 32l0 160c0 17.7-14.3 32-32 32L96 320c-17.7 0-32-14.3-32-32l0-160c0-17.7 14.3-32 32-32z"]},fce={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 502.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 402.7 224 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 370.7-105.4-105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},sh={prefix:"fas",iconName:"location-dot",icon:[384,512,["map-marker-alt"],"f3c5","M0 188.6C0 84.4 86 0 192 0S384 84.4 384 188.6c0 119.3-120.2 262.3-170.4 316.8-11.8 12.8-31.5 12.8-43.3 0-50.2-54.5-170.4-197.5-170.4-316.8zM192 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128z"]},Bx={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M512 96c0 50.2-59.1 125.1-84.6 155-3.8 4.4-9.4 6.1-14.5 5L320 256c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c53 0 96 43 96 96s-43 96-96 96l-276.4 0c8.7-9.9 19.3-22.6 30-36.8 6.3-8.4 12.8-17.6 19-27.2L416 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0c-53 0-96-43-96-96s43-96 96-96l39.8 0c-21-31.5-39.8-67.7-39.8-96 0-53 43-96 96-96s96 43 96 96zM117.1 489.1c-3.8 4.3-7.2 8.1-10.1 11.3l-1.8 2-.2-.2c-6 4.6-14.6 4-20-1.8-25.2-27.4-85-97.9-85-148.4 0-53 43-96 96-96s96 43 96 96c0 30-21.1 67-43.5 97.9-10.7 14.7-21.7 28-30.8 38.5l-.6 .7zM128 352a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM416 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},pce={prefix:"fas",iconName:"file-export",icon:[576,512,["arrow-right-from-file"],"f56e","M96.5 0c-35.3 0-64 28.7-64 64l0 384c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-96 78.1 0-31 31c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l72-72c9.4-9.4 9.4-24.6 0-33.9l-72-72c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l31 31-78.1 0 0-133.5c0-17-6.7-33.3-18.7-45.3L291.2 18.7C279.2 6.7 263 0 246 0L96.5 0zM358 176l-93.5 0c-13.3 0-24-10.7-24-24L240.5 58.5 358 176zM224.5 328c0-13.3 10.7-24 24-24l104 0 0 48-104 0c-13.3 0-24-10.7-24-24z"]},mce={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M65.9 228.5c13.3-93 93.4-164.5 190.1-164.5 53 0 101 21.5 135.8 56.2 .2 .2 .4 .4 .6 .6l7.6 7.2-47.9 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 53.4-11.3-10.7C390.5 28.6 326.5 0 256 0 127 0 20.3 95.4 2.6 219.5 .1 237 12.2 253.2 29.7 255.7s33.7-9.7 36.2-27.1zm443.5 64c2.5-17.5-9.7-33.7-27.1-36.2s-33.7 9.7-36.2 27.1c-13.3 93-93.4 164.5-190.1 164.5-53 0-101-21.5-135.8-56.2-.2-.2-.4-.4-.6-.6l-7.6-7.2 47.9 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 320c-8.5 0-16.7 3.4-22.7 9.5S-.1 343.7 0 352.3l1 127c.1 17.7 14.6 31.9 32.3 31.7S65.2 496.4 65 478.7l-.4-51.5 10.7 10.1c46.3 46.1 110.2 74.7 180.7 74.7 129 0 235.7-95.4 253.4-219.5z"]},hce=mce;const z={bg:"#0a0a0a",card:"#1e1e1e",border:"#333333",text:"rgba(255,255,255,.87)",text2:"rgba(255,255,255,.6)",text3:"rgba(255,255,255,.4)",accent:"#7c3aed",accentLight:"#8b5cf6",secondary:"#22d3ee",success:"#4ade80",danger:"#ef4444",warning:"#f59e0b",info:"#3b82f6"};function Vt({children:e}){return s.jsx(Z,{bg:z.bg,borderRadius:"24px",p:"14px",maxW:"380px",mx:"auto",boxShadow:"0 30px 60px -20px rgba(60,20,110,.45)",border:"1px solid",borderColor:"whiteAlpha.100",children:s.jsx(Z,{bg:z.bg,borderRadius:"16px",p:"16px 14px 20px",minH:"220px",children:e})})}function En({title:e,subtitle:t,action:n}){return s.jsxs(gt,{justify:"space-between",align:"flex-start",mb:4,children:[s.jsxs(Z,{children:[s.jsx(U,{color:z.text,fontSize:"1rem",fontWeight:"800",mb:0,children:e}),t&&s.jsx(U,{color:z.text3,fontSize:"0.72rem",children:t})]}),n]})}function Ye({children:e,mb:t=2.5,onClick:n,active:r=!1}){return s.jsx(Z,{bg:z.card,border:"1px solid",borderColor:r?z.accent:z.border,borderRadius:"12px",p:3,mb:t,cursor:n?"pointer":void 0,transition:"border-color .15s, transform .1s",onClick:n,_hover:n?{borderColor:z.accentLight}:void 0,_active:n?{transform:"scale(0.99)"}:void 0,children:e})}function it({icon:e,value:t,label:n,color:r=z.accentLight}){return s.jsxs(Z,{bg:z.card,border:"1px solid",borderColor:z.border,borderRadius:"12px",p:2.5,children:[s.jsx(gt,{w:"26px",h:"26px",borderRadius:"full",align:"center",justify:"center",bg:`${r}30`,mb:2,children:s.jsx(qe,{icon:e,style:{color:r,fontSize:"0.7rem"}})}),s.jsx(U,{color:z.text,fontSize:"1.15rem",fontWeight:"800",lineHeight:"1",children:t}),s.jsx(U,{color:z.text3,fontSize:"0.62rem",mt:1,textTransform:"uppercase",letterSpacing:"0.02em",children:n})]})}function ee({children:e,variant:t="primary",mono:n=!1,size:r}){const i={primary:z.text,secondary:z.text2,muted:z.text3,success:z.success,danger:z.danger};return s.jsx(U,{color:i[t],fontSize:r??"0.78rem",fontFamily:n?"mono":void 0,as:"span",children:e})}function Mt({children:e}){return s.jsx(ye,{justify:"space-between",align:"center",children:e})}function gce({value:e,color:t=z.accent}){return s.jsx(Bp,{value:e,size:"xs",borderRadius:"full",mt:1,sx:{"& > div":{background:t,transition:"width .4s ease"},background:"#2a2a2a"}})}function wl({color:e,size:t="9px"}){return s.jsx(Z,{as:"span",display:"inline-block",w:t,h:t,borderRadius:"full",bg:e,mr:1.5,flexShrink:0})}function i7({icon:e,color:t,size:n="0.75rem"}){return s.jsx(qe,{icon:e,style:{color:t??z.text2,fontSize:n,marginRight:6}})}function $e({children:e,tone:t="outline",icon:n,onClick:r,isActive:i=!1}){const o={accent:{bg:z.accent,color:"white",border:"none"},outline:{bg:"transparent",color:z.text2,border:`1px solid ${z.border}`},outlineDanger:{bg:"transparent",color:z.danger,border:`1px solid ${z.danger}`},success:{bg:z.success,color:"#0a0a0a",border:"none"}}[t];return s.jsxs(Z,{as:"button",type:"button",display:"inline-flex",alignItems:"center",borderRadius:"8px",px:3,py:1.5,fontSize:"0.68rem",fontWeight:"700",cursor:r?"pointer":"default",transition:"filter .15s, transform .1s",opacity:i?1:.92,_hover:r?{filter:"brightness(1.15)"}:void 0,_active:r?{transform:"scale(0.96)"}:void 0,onClick:r,...o,children:[n&&s.jsx(qe,{icon:n,style:{marginRight:6,fontSize:"0.68rem"}}),e]})}function Wx({tabs:e,active:t,onChange:n}){return s.jsx(ye,{spacing:1.5,mb:3,flexWrap:"wrap",children:e.map(r=>{const i=r.key===t;return s.jsx(Z,{as:"button",type:"button",onClick:()=>n(r.key),px:2.5,py:1,borderRadius:"999px",fontSize:"0.66rem",fontWeight:"700",cursor:"pointer",transition:"all .15s",bg:i?z.accent:"transparent",color:i?"white":z.text3,border:"1px solid",borderColor:i?z.accent:z.border,_hover:{borderColor:z.accentLight,color:i?"white":z.text2},children:r.label},r.key)})})}function vce({value:e,onChange:t,placeholder:n}){return s.jsxs(Z,{position:"relative",my:2,children:[s.jsx(qe,{icon:Wle,style:{position:"absolute",left:10,top:"50%",transform:"translateY(-50%)",color:z.text3,fontSize:"0.65rem"}}),s.jsx(Z,{as:"input",value:e,onChange:r=>t(r.target.value),placeholder:n,w:"100%",bg:z.bg,border:"1px solid",borderColor:z.border,borderRadius:"8px",color:z.text,fontSize:"0.7rem",py:1.5,pl:"26px",pr:2,outline:"none"})]})}function lh({children:e}){return s.jsx(Z,{border:"1px dashed",borderColor:z.border,borderRadius:"10px",p:2.5,mt:2,children:s.jsx(U,{color:z.text3,fontSize:"0.64rem",fontStyle:"italic",children:e})})}function yce({isOn:e,onToggle:t}){return s.jsx(Z,{as:"button",type:"button",onClick:t,w:"34px",h:"20px",borderRadius:"full",bg:e?z.accent:z.border,position:"relative",cursor:"pointer",transition:"background .2s",flexShrink:0,children:s.jsx(Z,{position:"absolute",top:"2px",left:e?"16px":"2px",w:"16px",h:"16px",borderRadius:"full",bg:"white",transition:"left .2s"})})}function bce(){const[e,t]=m.useState(!0);return s.jsxs(Vt,{children:[s.jsx(En,{title:"Bonjour, Admin",subtitle:"Vue d'ensemble"}),s.jsxs(Yt,{columns:2,spacing:2,mb:2.5,children:[s.jsx(it,{icon:n7,value:312,label:"Total commandes",color:z.accentLight}),s.jsx(it,{icon:fd,value:8,label:"En attente",color:z.warning}),s.jsx(it,{icon:ZE,value:5,label:"En route",color:z.info}),s.jsx(it,{icon:Io,value:299,label:"Terminées",color:z.success}),s.jsx(it,{icon:Ox,value:184,label:"Clients",color:z.accentLight}),s.jsx(it,{icon:QE,value:6,label:"Livreurs",color:z.secondary})]}),s.jsxs(Ye,{mb:0,children:[s.jsxs(Mt,{children:[s.jsxs(ee,{children:[s.jsx(i7,{icon:Nx,color:z.secondary}),"Notifications Telegram"]}),s.jsx($e,{tone:e?"outlineDanger":"accent",icon:e?r7:JE,onClick:()=>t(n=>!n),children:e?"Délier":"Lier Telegram"})]}),s.jsx(ee,{variant:"muted",size:"0.68rem",children:e?"Compte Telegram lié — alertes actives.":"Aucun compte lié — cliquez pour connecter."})]})]})}const hk=[{id:"#1042",client:"client_marie · 12 rue des Lilas",extra:"il y a 4 min",tone:"warning",label:"En attente",amount:"46,00 €"},{id:"#1041",client:"client_paul · Livreur: lucas_d",extra:"Net après parrainage",tone:"info",label:"En route",amount:"33,00 €"},{id:"#1040",client:"client_lea · 8 avenue Foch",extra:"en attente d’assignation",tone:"accent",label:"Livreur arrivé",amount:"58,50 €"}],gk=[{id:"#1038",client:"client_sam · 3 rue Victor Hugo",extra:"Terminée il y a 1 h",tone:"info",label:"Livrée",amount:"27,00 €"},{id:"#1036",client:"client_ana · 21 bd Voltaire",extra:"Terminée hier",tone:"info",label:"Livrée",amount:"41,00 €"},{id:"#1030",client:"client_marie · 5 rue de Rivoli",extra:"Terminée il y a 3 j",tone:"info",label:"Livrée",amount:"22,00 €"}],vk=[{id:"#1029",client:"client_theo · adresse introuvable",extra:"Annulée par le livreur",tone:"warning",label:"Annulée",amount:"19,00 €"}],yk={warning:z.warning,info:z.info,accent:z.accentLight};function bk({o:e,isOpen:t,onClick:n,children:r}){return s.jsxs(Ye,{active:t,onClick:n,children:[s.jsxs(Mt,{children:[s.jsx(ee,{mono:!0,children:e.id}),s.jsx("span",{style:{background:`${yk[e.tone]}26`,color:yk[e.tone],padding:"2px 9px",borderRadius:999,fontWeight:800,fontSize:"0.62rem"},children:e.label})]}),s.jsx(ee,{variant:"secondary",size:"0.7rem",children:e.client}),s.jsxs(Mt,{children:[s.jsx(ee,{variant:"muted",size:"0.65rem",children:e.extra}),s.jsx(ee,{variant:"primary",size:"0.75rem",children:e.amount})]}),r]})}function xce(){const[e,t]=m.useState("#1040"),[n,r]=m.useState(null),[i,o]=m.useState(""),a=n==="approuvees"?gk:n==="annulees"?vk:[],l=m.useMemo(()=>a.filter(u=>u.client.toLowerCase().includes(i.toLowerCase())),[a,i]),c=u=>{r(d=>d===u?null:u),o("")};return s.jsxs(Vt,{children:[s.jsxs(Mt,{children:[s.jsx($e,{tone:"outline",icon:hce,children:"Actualiser"}),s.jsx($e,{tone:"outline",icon:pce,children:"Export CSV"})]}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:10,marginBottom:6},children:[s.jsxs("div",{onClick:()=>c("approuvees"),style:{cursor:"pointer",flex:1,textAlign:"center",padding:"6px 4px",borderRadius:999,fontSize:"0.66rem",fontWeight:700,border:`1px solid ${n==="approuvees"?z.success:z.border}`,background:n==="approuvees"?`${z.success}22`:"transparent",color:n==="approuvees"?z.success:z.text3},children:["Approuvées (",gk.length,")"]}),s.jsxs("div",{onClick:()=>c("annulees"),style:{cursor:"pointer",flex:1,textAlign:"center",padding:"6px 4px",borderRadius:999,fontSize:"0.66rem",fontWeight:700,border:`1px solid ${n==="annulees"?z.danger:z.border}`,background:n==="annulees"?`${z.danger}22`:"transparent",color:n==="annulees"?z.danger:z.text3},children:["Annulées (",vk.length,")"]})]}),n&&s.jsxs("div",{style:{marginBottom:10},children:[s.jsx(vce,{value:i,onChange:o,placeholder:"Rechercher par username..."}),s.jsxs(ee,{variant:"muted",size:"0.62rem",children:[l.length," résultat",l.length>1?"s":""]}),l.map(u=>s.jsx(bk,{o:u,isOpen:!1,onClick:()=>{}},u.id)),s.jsx("div",{style:{borderTop:`1px solid ${z.border}`,margin:"10px 0"}})]}),s.jsxs(ee,{size:"0.78rem",variant:"primary",children:["Commandes actives (",hk.length,")"]}),s.jsx("div",{style:{marginTop:8},children:hk.map(u=>{const d=e===u.id;return s.jsx(bk,{o:u,isOpen:d,onClick:()=>t(d?null:u.id),children:d&&s.jsxs("div",{style:{marginTop:10,paddingTop:10,borderTop:`1px solid ${z.border}`,display:"flex",gap:6,flexWrap:"wrap"},children:[s.jsx($e,{tone:"accent",icon:Lx,children:"Assigner livreur"}),s.jsx($e,{tone:"outline",icon:vy,children:"Passer en route"}),s.jsx($e,{tone:"outline",icon:cce,children:"Proposer adresse"})]})},u.id)})})]})}const xk=[{name:"lucas_d",status:"busy",queue:1,today:14,total:512,distance:"1,8 km",eta:"6 min"},{name:"emma_l",status:"available",queue:0,today:9,total:340,distance:"0,6 km",eta:"2 min"},{name:"yanis_b",status:"offline",queue:0,today:5,total:128,distance:"—",eta:"—"}],as={available:z.success,busy:z.warning,offline:z.text3},Sce={available:"Disponible",busy:"Occupé",offline:"Hors ligne"};function wce(){const[e,t]=m.useState("lucas_d"),n=xk.find(r=>r.name===e);return s.jsxs(Vt,{children:[s.jsxs(Yt,{columns:3,spacing:2,mb:2.5,children:[s.jsx(it,{icon:sh,value:1,label:"Dispo",color:z.success}),s.jsx(it,{icon:fd,value:1,label:"Occupés",color:z.warning}),s.jsx(it,{icon:GE,value:1,label:"Hors ligne",color:z.text3})]}),s.jsxs(Ye,{children:[s.jsx("div",{style:{height:110,borderRadius:8,position:"relative",backgroundImage:"linear-gradient(135deg,#161022 25%,#1c1330 25%,#1c1330 50%,#161022 50%,#161022 75%,#1c1330 75%)",backgroundSize:"18px 18px",marginBottom:6},children:s.jsxs("span",{style:{position:"absolute",top:8,left:8,background:`${as[n.status]}26`,color:as[n.status],fontSize:"0.62rem",fontWeight:800,padding:"3px 9px",borderRadius:999},children:[s.jsx(wl,{color:as[n.status],size:"7px"}),n.name," — ",n.distance," · ",n.eta]})}),s.jsx(ee,{variant:"muted",size:"0.62rem",children:"Cliquez un livreur ci-dessous pour suivre son trajet en direct"})]}),xk.map(r=>{const i=r.name===e;return s.jsxs(Ye,{active:i,onClick:()=>t(r.name),children:[s.jsxs(Mt,{children:[s.jsxs(ee,{children:[s.jsx(wl,{color:as[r.status]}),r.name]}),s.jsx("span",{style:{background:`${as[r.status]}26`,color:as[r.status],fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:Sce[r.status]})]}),s.jsxs(ee,{variant:"muted",size:"0.62rem",children:[r.queue," en attente · ",r.today," aujourd'hui · ",r.total," total"]}),i&&s.jsxs("div",{style:{marginTop:8,display:"flex",gap:6},children:[s.jsx($e,{tone:"outline",icon:Kp,children:"Avis"}),s.jsx($e,{tone:r.status!=="offline"?"accent":"outline",icon:Bx,children:r.status!=="offline"?"Suivre l'itinéraire":"Indisponible"})]})]},r.name)})]})}const kce=[{label:"1u",price:"12€",active:!0},{label:"3u",price:"30€",active:!0},{label:"5u",price:"45€",active:!1}];function Cce(){const[e,t]=m.useState(kce),n=r=>{t(i=>i.map((o,a)=>a===r?{...o,active:!o.active}:o))};return s.jsxs(Vt,{children:[s.jsx(En,{title:"Produits (48)",action:s.jsx($e,{tone:"accent",icon:Fx,children:"Créer"})}),s.jsxs(Ye,{children:[s.jsxs(Mt,{children:[s.jsx(ee,{variant:"primary",size:"0.82rem",children:"Pack Découverte"}),s.jsx("span",{style:{background:`${z.accentLight}26`,color:z.accentLight,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:"Premium"})]}),s.jsxs(ee,{variant:"muted",size:"0.65rem",children:[s.jsx(qe,{icon:Zle,style:{marginRight:4}}),"3 images ·"," ",s.jsx(qe,{icon:Xle,style:{marginRight:4}}),"1 vidéo · Stock: 24 u"]}),s.jsx(ee,{variant:"muted",size:"0.66rem",children:"Cliquez un tarif pour l'activer / le désactiver"}),s.jsx("div",{style:{display:"flex",gap:6,marginTop:6,flexWrap:"wrap"},children:e.map((r,i)=>s.jsxs("div",{onClick:()=>n(i),style:{cursor:"pointer",display:"flex",alignItems:"center",gap:5,padding:"4px 9px",borderRadius:8,border:`1px solid ${z.border}`,opacity:r.active?1:.5,textDecoration:r.active?"none":"line-through"},children:[s.jsx(qe,{icon:r.active?nce:Qle,style:{color:r.active?z.success:z.danger,fontSize:"0.7rem"}}),s.jsxs("span",{style:{color:z.text,fontSize:"0.72rem"},children:[r.label," = ",r.price]})]},r.label))}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:10},children:[s.jsx($e,{tone:"outline",icon:rce,children:"Modifier"}),s.jsx($e,{tone:"outlineDanger",icon:XE,children:"Supprimer"})]})]}),s.jsxs(Ye,{mb:0,children:[s.jsxs(Mt,{children:[s.jsx(ee,{variant:"primary",size:"0.82rem",children:"Édition Limitée"}),s.jsx("span",{style:{background:`${z.warning}26`,color:z.warning,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:"À venir"})]}),s.jsx(ee,{variant:"muted",size:"0.65rem",children:"Stock: 0 u — masqué du catalogue tant que le stock est vide"})]})]})}const jce=[{id:"a",name:"Fleurs",color:"#10b981"},{id:"b",name:"Résines",color:"#9333ea"},{id:"c",name:"Comestibles",color:"#3dc2f7",soon:!0}];function Pce(){const[e,t]=m.useState(jce),n=(r,i)=>{const o=r+i;o<0||o>=e.length||t(a=>{const l=[...a];return[l[r],l[o]]=[l[o],l[r]],l})};return s.jsxs(Vt,{children:[s.jsx(En,{title:"Catégories",action:s.jsx($e,{tone:"accent",icon:Fx,children:"Ajouter"})}),e.map((r,i)=>s.jsx(Ye,{children:s.jsxs(Mt,{children:[s.jsxs(ee,{children:[s.jsx(wl,{color:r.color}),r.name,r.soon&&s.jsx("span",{style:{marginLeft:8,background:`${z.warning}26`,color:z.warning,fontSize:"0.58rem",fontWeight:800,padding:"2px 7px",borderRadius:999},children:"Prochainement"})]}),s.jsxs("div",{style:{display:"flex",gap:4},children:[s.jsx("button",{onClick:()=>n(i,-1),disabled:i===0,style:{background:"transparent",border:"none",cursor:i===0?"default":"pointer",color:i===0?z.border:z.text2,padding:4},"aria-label":"Monter",children:s.jsx(qe,{icon:YE,style:{fontSize:"0.7rem"}})}),s.jsx("button",{onClick:()=>n(i,1),disabled:i===e.length-1,style:{background:"transparent",border:"none",cursor:i===e.length-1?"default":"pointer",color:i===e.length-1?z.border:z.text2,padding:4},"aria-label":"Descendre",children:s.jsx(qe,{icon:t7,style:{fontSize:"0.7rem"}})})]})]})},r.id)),s.jsx(ee,{variant:"muted",size:"0.62rem",children:"Essayez les flèches ↑ / ↓ pour réordonner"})]})}function rc({title:e,onReset:t,since:n,children:r}){return s.jsxs(Ye,{children:[s.jsxs(Mt,{children:[s.jsx(ee,{variant:"secondary",size:"0.72rem",children:e}),t&&s.jsx($e,{tone:"outlineDanger",icon:Xp,onClick:t,children:"Réinitialiser"})]}),n&&s.jsxs(ee,{variant:"muted",size:"0.58rem",children:["Depuis le ",n]}),s.jsx("div",{style:{marginTop:8},children:r})]})}function Yo({label:e,value:t,pct:n,color:r,highlight:i}){return s.jsxs("div",{style:{marginBottom:6},children:[s.jsxs(Mt,{children:[s.jsxs(ee,{variant:i?"primary":"muted",size:"0.64rem",children:[i&&s.jsx(qe,{icon:Kle,style:{color:z.warning,marginRight:4}}),e]}),s.jsx(ee,{variant:i?"primary":"muted",size:"0.64rem",children:t})]}),s.jsx(gce,{value:n,color:i?z.warning:r})]})}const ss=["Mai 2026","Juin 2026","Juillet 2026","Août 2026"],_ce=[{day:"02/08",orders:14,revenue:"312€",best:!1},{day:"01/08",orders:22,revenue:"498€",best:!0},{day:"31/07",orders:9,revenue:"201€",best:!1}],Tce=[{key:"quantite",label:"Quantité"},{key:"commandes",label:"Commandes"},{key:"revenus",label:"Revenus"}],Ece={quantite:[{name:"Pack Découverte",value:210,display:"210"},{name:"Édition Standard",value:140,display:"140"},{name:"Format Duo",value:96,display:"96"}],commandes:[{name:"Pack Découverte",value:86,display:"86"},{name:"Édition Standard",value:54,display:"54"},{name:"Format Duo",value:41,display:"41"}],revenus:[{name:"Pack Découverte",value:1032,display:"1032€"},{name:"Édition Standard",value:648,display:"648€"},{name:"Format Duo",value:492,display:"492€"}]},Z0=[{label:"10h",value:4},{label:"12h",value:18},{label:"14h",value:9},{label:"18h",value:22},{label:"20h",value:31},{label:"22h",value:12}],J0=[{label:"Lun",value:32},{label:"Mar",value:28},{label:"Mer",value:35},{label:"Jeu",value:41},{label:"Ven",value:58},{label:"Sam",value:71},{label:"Dim",value:47}],Sk=[{label:"1g",value:40},{label:"3.5g",value:86},{label:"5g",value:22},{label:"10g",value:12}];function Ace(){const[e,t]=m.useState(ss.length-1),[n,r]=m.useState("revenus"),i=m.useMemo(()=>[...Ece[n]].sort((f,p)=>p.value-f.value),[n]),o=i[0].value,a=Math.max(...Z0.map(f=>f.value)),l=Z0.reduce((f,p)=>p.value>f.value?p:f),c=Math.max(...J0.map(f=>f.value)),u=J0.reduce((f,p)=>p.value>f.value?p:f),d=Math.max(...Sk.map(f=>f.value));return s.jsxs(Vt,{children:[s.jsx(En,{title:"Statistiques",subtitle:"Activité globale & produits"}),s.jsxs("div",{style:{maxHeight:560,overflowY:"auto",paddingRight:2},children:[s.jsxs(Yt,{columns:2,spacing:2,mb:2.5,children:[s.jsx(it,{icon:Hle,value:312,label:"Commandes totales",color:z.accentLight}),s.jsx(it,{icon:Fle,value:"6,4k€",label:"Revenus (terminées)",color:z.success}),s.jsx(it,{icon:fd,value:"10,4",label:"Moy. commandes/jour",color:z.info}),s.jsx(it,{icon:pk,value:"Samedi",label:"Jour de pointe",color:z.warning})]}),s.jsxs(Ye,{children:[s.jsx(ee,{variant:"secondary",size:"0.72rem",children:"Activité du jour"}),s.jsxs("div",{style:{display:"flex",gap:10,margin:"6px 0 8px"},children:[s.jsx(ee,{variant:"muted",size:"0.6rem",children:"18 commandes"}),s.jsx(ee,{variant:"muted",size:"0.6rem",children:"420g vendus"}),s.jsx(ee,{variant:"muted",size:"0.6rem",children:"312€"})]}),s.jsx(Yo,{label:"Fleurs — Pack Découverte",value:"86 · 1032€",pct:90,color:z.accent}),s.jsx(Yo,{label:"Résines — Format Duo",value:"41 · 492€",pct:45,color:z.info})]}),s.jsxs(Ye,{children:[s.jsxs(Mt,{children:[s.jsx("button",{onClick:()=>t(f=>Math.max(0,f-1)),disabled:e===0,style:{background:"none",border:"none",cursor:e===0?"default":"pointer",color:e===0?z.border:z.text2},children:s.jsx(qe,{icon:sce})}),s.jsx(ee,{variant:"primary",size:"0.72rem",children:ss[e]}),s.jsx("button",{onClick:()=>t(f=>Math.min(ss.length-1,f+1)),disabled:e===ss.length-1,style:{background:"none",border:"none",cursor:e===ss.length-1?"default":"pointer",color:e===ss.length-1?z.border:z.text2},children:s.jsx(qe,{icon:Gle})})]}),s.jsx(ee,{variant:"muted",size:"0.6rem",children:"Historique mensuel — cliquez les flèches"}),s.jsx("div",{style:{marginTop:8},children:_ce.map(f=>s.jsx(Yo,{label:f.day,value:`${f.orders} cmd · ${f.revenue}`,pct:f.orders/22*100,color:z.accent,highlight:f.best},f.day))})]}),s.jsx(rc,{title:"30 derniers jours — commandes",onReset:()=>{},since:"15/07/2026",children:s.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:3,height:50},children:[4,8,6,10,7,12,9,14,6,11].map((f,p)=>s.jsx("div",{style:{flex:1,height:`${f/14*100}%`,background:z.accent,borderRadius:2}},p))})}),s.jsxs(rc,{title:"Revenus par jour (30j)",onReset:()=>{},since:"15/07/2026",children:[s.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:3,height:50,marginBottom:6},children:[120,240,180,300,210,360,260,410,190,330].map((f,p)=>s.jsx("div",{style:{flex:1,height:`${f/410*100}%`,background:z.success,borderRadius:2}},p))}),s.jsxs(ee,{variant:"muted",size:"0.6rem",children:[s.jsx(qe,{icon:pk,style:{color:z.warning,marginRight:4}}),"Meilleure journée : 01/08 — 498€"]})]}),s.jsxs(rc,{title:"Heures d'affluence",onReset:()=>{},since:"15/07/2026",children:[Z0.map(f=>s.jsx(Yo,{label:f.label,value:String(f.value),pct:f.value/a*100,color:z.info,highlight:f.label===l.label},f.label)),s.jsxs(ee,{variant:"muted",size:"0.6rem",children:["Heure de pointe : ",l.label," (",l.value," commandes)"]})]}),s.jsxs(rc,{title:"Jours d'affluence",onReset:()=>{},since:"15/07/2026",children:[J0.map(f=>s.jsx(Yo,{label:f.label,value:String(f.value),pct:f.value/c*100,color:z.accent,highlight:f.label===u.label},f.label)),s.jsxs(ee,{variant:"muted",size:"0.6rem",children:["Pic d'activité : ",u.label]})]}),s.jsx(rc,{title:"Doses populaires — Pack Découverte",onReset:()=>{},since:"15/07/2026",children:Sk.map(f=>s.jsx(Yo,{label:f.label,value:String(f.value),pct:f.value/d*100,color:z.secondary,highlight:f.value===d},f.label))}),s.jsxs(Ye,{mb:0,children:[s.jsxs(Mt,{children:[s.jsx(ee,{variant:"secondary",size:"0.72rem",children:"Top produits"}),s.jsx($e,{tone:"outlineDanger",icon:Xp,onClick:()=>{},children:"Réinitialiser"})]}),s.jsx("div",{style:{marginTop:8},children:s.jsx(Wx,{tabs:Tce,active:n,onChange:r})}),i.map((f,p)=>s.jsx(Yo,{label:f.name,value:f.display,pct:f.value/o*100,color:z.accent,highlight:p===0},f.name)),s.jsxs(ee,{variant:"muted",size:"0.6rem",children:["Moins vendu : ",i[i.length-1].name]})]})]})]})}const wk=[{name:"client_marie",role:"clients",icon:Ox,tone:z.info,detail:"Cmd: 12 · Points: 340 · Parrain: +8€"},{name:"lucas_d",role:"livreurs",icon:e7,tone:z.success,detail:"512 livraisons · connecté aujourd’hui"},{name:"admin_yas",role:"admins",icon:ah,tone:z.accentLight,detail:"Accès complet à la plateforme"}],$ce=[{key:"tous",label:"Tous",icon:QE,count:3},{key:"clients",label:"Clients",icon:Ox,count:1},{key:"livreurs",label:"Livreurs",icon:e7,count:1},{key:"admins",label:"Admins",icon:ah,count:1}];function zce(){const[e,t]=m.useState("tous"),n=e==="tous"?wk:wk.filter(r=>r.role===e);return s.jsxs(Vt,{children:[s.jsx(Yt,{columns:4,spacing:1.5,mb:2.5,children:$ce.map(r=>{const i=r.key===e;return s.jsxs("div",{onClick:()=>t(r.key),style:{cursor:"pointer",textAlign:"center",padding:"8px 2px",borderRadius:10,border:`1px solid ${i?z.accent:z.border}`,background:i?`${z.accent}22`:z.card},children:[s.jsx(qe,{icon:r.icon,style:{color:i?z.accentLight:z.text3,fontSize:"0.75rem"}}),s.jsx("div",{style:{color:z.text,fontSize:"0.72rem",fontWeight:800,marginTop:4},children:r.count}),s.jsx("div",{style:{color:z.text3,fontSize:"0.55rem"},children:r.label})]},r.key)})}),n.map(r=>s.jsxs(Ye,{children:[s.jsxs(Mt,{children:[s.jsxs(ee,{children:[s.jsx(qe,{icon:r.icon,style:{color:r.tone,marginRight:6,fontSize:"0.72rem"}}),r.name]}),s.jsx("span",{style:{background:`${r.tone}26`,color:r.tone,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999,textTransform:"capitalize"},children:r.role==="clients"?"Client":r.role==="livreurs"?"Livreur":"Admin"})]}),s.jsx(ee,{variant:"muted",size:"0.65rem",children:r.detail})]},r.name))]})}const kk=[{id:"perso",icon:mk,title:"Personnalisation",body:"Nom du shop affiché dans l’app · dégradé de couleur du titre (2 couleurs, aperçu en direct)."},{id:"amendes",icon:KE,title:"Amendes",body:"Barème par nombre d’annulations : 0 → 20€, 1 → 50€, 2 → 100€, 3 → 150€. Score affichable au client ou non.",hasSwitch:!0},{id:"parrainage",icon:Jle,title:"Parrainage",body:"Active le solde de parrainage, utilisable directement au moment du paiement par le filleul.",hasSwitch:!0},{id:"points",icon:Kp,title:"Système de points",body:"Créez vos propres types de points (nom + couleur), chacun avec son propre barème €→points.",hasSwitch:!0},{id:"attribution",icon:tce,title:"Attribution catégories → points",body:"Chaque catégorie de produit peut être reliée à un type de points précis, ou à aucun."},{id:"baremes",icon:Kp,title:"Barème — Points Fidélité",body:"Paliers Min € / Max € / Points : ex. 0–20€ = 5 pts, 20–50€ = 15 pts, 50€+ = 40 pts."},{id:"recompense",icon:Ole,title:"Récompenses par palier",body:"Seuil de points → produit offert ou à -50%. Récapitulatif généré automatiquement.",hasSwitch:!0},{id:"horaires",icon:vy,title:"Horaires de livraison",body:"Lundi → Vendredi : 11h00–22h30 · Samedi : 12h00–23h00 · Dimanche : fermé."},{id:"zones",icon:Ble,title:"Zones de livraison",body:"3 zones actives · minimum de commande et liste de codes postaux par zone, ajout en masse."},{id:"crypto",icon:ace,title:"Paiement crypto",body:"BTC, ETH, LTC, USDT acceptés (NowPayments). Clé API et secret IPN masqués.",hasSwitch:!0},{id:"telegram",icon:qle,title:"Notifications Telegram",body:"Bot configuré — @votre_bot · authentification à deux facteurs activée.",hasSwitch:!0},{id:"mode-livraison",icon:vy,title:"Mode de livraison",body:"« Par catégorie » : chaque livreur ne reçoit que les commandes des catégories qui lui sont assignées."},{id:"couleurs",icon:mk,title:"Couleurs de l'interface",body:"Palette séparée pour l’espace admin et pour l’app client — 5 couleurs, restaurables en un clic."}];function Ice(){const[e,t]=m.useState("crypto"),[n,r]=m.useState(!0),[i,o]=m.useState(!0);return s.jsxs(Vt,{children:[s.jsx(En,{title:"Paramètres",subtitle:`${kk.length} sections — cliquez pour ouvrir`}),s.jsx("div",{style:{maxHeight:480,overflowY:"auto",paddingRight:2},children:kk.map(a=>{const l=e===a.id,c=a.id==="crypto"?n:a.id==="telegram"?i:!0,u=a.id==="crypto"?r:o;return s.jsxs(Ye,{onClick:()=>t(l?null:a.id),children:[s.jsxs(Mt,{children:[s.jsxs(ee,{size:"0.72rem",children:[s.jsx(qe,{icon:a.icon,style:{color:z.accentLight,marginRight:8,fontSize:"0.68rem"}}),a.title]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[a.hasSwitch&&(a.id==="crypto"||a.id==="telegram")&&s.jsx("span",{onClick:d=>d.stopPropagation(),children:s.jsx(yce,{isOn:c,onToggle:()=>u(d=>!d)})}),a.hasSwitch&&a.id!=="crypto"&&a.id!=="telegram"&&s.jsx(qe,{icon:Nx,style:{color:z.success,fontSize:"0.55rem"}}),s.jsx(qe,{icon:l?YE:t7,style:{color:z.text3,fontSize:"0.6rem"}})]})]}),l&&s.jsx("div",{style:{marginTop:8,paddingTop:8,borderTop:`1px solid ${z.border}`},children:s.jsx(ee,{variant:"muted",size:"0.66rem",children:a.body})})]},a.id)})})]})}const Rce=[{id:"1",driver:"lucas_d",message:"Guet-apens",time:"03/08/2026, 14:32",active:!0},{id:"2",driver:"emma_l",message:"Contrôle de police",time:"02/08/2026, 19:05",active:!1}];function Mce(){const[e,t]=m.useState(Rce),n=r=>{t(i=>i.map(o=>o.id===r?{...o,active:!1}:o))};return s.jsxs(Vt,{children:[s.jsx(En,{title:"Alertes",subtitle:"Cliquez « Résoudre » pour tester"}),e.map(r=>s.jsxs(Ye,{children:[s.jsxs(Mt,{children:[s.jsxs(ee,{variant:r.active?"danger":"secondary",children:[s.jsx(qe,{icon:oh,style:{color:r.active?z.danger:z.text3,marginRight:6,fontSize:"0.72rem"}}),r.driver]}),s.jsx("span",{style:{background:r.active?`${z.danger}26`:`${z.success}26`,color:r.active?z.danger:z.success,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:r.active?"Active":"Terminée"})]}),r.active&&s.jsxs(ee,{variant:"danger",size:"0.7rem",children:['"',r.message,'"']}),s.jsxs(Mt,{children:[s.jsx(ee,{variant:"muted",size:"0.62rem",children:r.time}),r.active&&s.jsx($e,{tone:"success",icon:Io,onClick:()=>n(r.id),children:"Résoudre"})]})]},r.id))]})}const Lce=[{id:"1",wrong:"10 rue de la paix",right:"10 Rue de la Paix, 75001 Paris"}];function Nce(){const[e,t]=m.useState(Lce),[n,r]=m.useState(!1),[i,o]=m.useState(""),[a,l]=m.useState(""),c=()=>{!i.trim()||!a.trim()||(t(u=>[...u,{id:String(u.length+1),wrong:i,right:a}]),o(""),l(""),r(!1))};return s.jsxs(Vt,{children:[s.jsx(En,{title:"Corrections d'adresses",action:s.jsx($e,{tone:"accent",icon:Fx,onClick:()=>r(u=>!u),children:n?"Fermer":"Ajouter"})}),n&&s.jsxs(Ye,{children:[s.jsx("input",{placeholder:"Adresse invalide (ex: 10 rue de la paix)",value:i,onChange:u=>o(u.target.value),style:{width:"100%",background:z.bg,border:`1px solid ${z.border}`,borderRadius:8,color:z.text,fontSize:"0.7rem",padding:"6px 8px",marginBottom:6,outline:"none"}}),s.jsx("input",{placeholder:"Adresse correcte (ex: 10 Rue de la Paix, 75001 Paris)",value:a,onChange:u=>l(u.target.value),style:{width:"100%",background:z.bg,border:`1px solid ${z.border}`,borderRadius:8,color:z.text,fontSize:"0.7rem",padding:"6px 8px",marginBottom:8,outline:"none"}}),s.jsx($e,{tone:"accent",onClick:c,children:"Ajouter la correction"})]}),e.map(u=>s.jsxs(Ye,{children:[s.jsx(ee,{variant:"danger",size:"0.72rem",children:u.wrong}),s.jsx("div",{style:{margin:"3px 0"},children:s.jsx(qe,{icon:fce,style:{color:z.text3,fontSize:"0.62rem"}})}),s.jsx(ee,{variant:"success",size:"0.72rem",children:u.right})]},u.id))]})}function Dce(){const[e,t]=m.useState(!1);return s.jsxs(Vt,{children:[s.jsx(En,{title:"Cabine — Nadia",subtitle:"Suivi des opérations"}),s.jsxs(Yt,{columns:2,spacing:2,mb:2.5,children:[s.jsx(it,{icon:n7,value:11,label:"Commandes actives",color:z.info}),s.jsx(it,{icon:ZE,value:4,label:"En route",color:z.warning}),s.jsx(it,{icon:fd,value:3,label:"En attente",color:z.accentLight}),s.jsx(it,{icon:Lx,value:4,label:"Livreurs dispo",color:z.success}),s.jsx(it,{icon:Dx,value:2,label:"Livreurs occupés",color:z.warning}),s.jsx(it,{icon:lce,value:299,label:"Total terminées",color:z.success})]}),s.jsx(Ye,{mb:0,children:s.jsxs(Mt,{children:[s.jsxs(ee,{children:[s.jsx(i7,{icon:Nx,color:z.secondary}),"Notifications Telegram"]}),s.jsx($e,{tone:e?"outlineDanger":"accent",icon:e?r7:JE,onClick:()=>t(n=>!n),children:e?"Délier":"Lier Telegram"})]})})]})}const Oce=[{id:"#1042",client:"client_marie",address:"12 rue des Lilas",total:"46,00 €",label:"En attente",tone:z.warning},{id:"#1040",client:"client_lea",address:"8 avenue Foch",total:"58,50 €",label:"Livreur arrivé",tone:z.accentLight}];function Fce(){const[e,t]=m.useState("#1042");return s.jsxs(Vt,{children:[s.jsx(En,{title:"Commandes actives",subtitle:"Cliquez une commande"}),Oce.map(n=>{const r=e===n.id;return s.jsxs(Ye,{active:r,onClick:()=>t(r?null:n.id),children:[s.jsxs(Mt,{children:[s.jsx(ee,{mono:!0,children:n.id}),s.jsx("span",{style:{background:`${n.tone}26`,color:n.tone,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:n.label})]}),s.jsxs(ee,{variant:"secondary",size:"0.7rem",children:[n.client," · ",n.address]}),s.jsx(ee,{variant:"primary",size:"0.75rem",children:n.total}),r&&s.jsxs("div",{style:{marginTop:10,paddingTop:10,borderTop:`1px solid ${z.border}`,display:"flex",gap:6,flexWrap:"wrap"},children:[s.jsx($e,{tone:"accent",icon:ece,children:"Le livreur est là"}),s.jsx($e,{tone:"outline",icon:Lx,children:"Assigner livreur"}),s.jsx($e,{tone:"outline",icon:sh,children:"Proposer adresse"}),s.jsx($e,{tone:"outlineDanger",icon:XE,children:"Supprimer"})]})]},n.id)}),s.jsx(lh,{children:"Contrairement à l'espace admin, la cabine ne peut pas modifier le contenu d'une commande — seulement la faire avancer ou la supprimer."})]})}const Bce=[{name:"lucas_d",status:"busy",queue:1,total:512},{name:"emma_l",status:"available",queue:0,total:340}],eg={available:z.success,busy:z.warning,offline:z.text3},Wce={available:"Disponible",busy:"Occupé",offline:"Hors ligne"};function Vce(){const[e,t]=m.useState("lucas_d");return s.jsxs(Vt,{children:[s.jsxs(Yt,{columns:3,spacing:2,mb:2.5,children:[s.jsx(it,{icon:sh,value:1,label:"Dispo",color:z.success}),s.jsx(it,{icon:Dx,value:1,label:"Occupés",color:z.warning}),s.jsx(it,{icon:GE,value:0,label:"Offline",color:z.text3})]}),Bce.map(n=>{const r=e===n.name;return s.jsxs(Ye,{active:r,children:[s.jsxs(Mt,{children:[s.jsxs(ee,{children:[s.jsx(wl,{color:eg[n.status]}),n.name]}),s.jsx("span",{style:{background:`${eg[n.status]}26`,color:eg[n.status],fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:Wce[n.status]})]}),s.jsxs(ee,{variant:"muted",size:"0.62rem",children:["Queue: ",n.queue," · Total: ",n.total]}),s.jsx("div",{style:{marginTop:8},children:s.jsx($e,{tone:r?"accent":"outline",icon:Bx,onClick:()=>t(r?null:n.name),children:r?"Arrêter le suivi":"Suivre"})})]},n.name)}),s.jsx(lh,{children:"La cabine visualise et suit les livreurs en direct, mais l'assignation d'une commande se fait depuis l'écran Commandes."})]})}const Ck=[{id:"1",driver:"lucas_d",message:"Accès bloqué, portail fermé",time:"14:32",active:!0},{id:"2",driver:"emma_l",message:"Client injoignable",time:"hier 19:05",active:!1}];function Uce(){const[e,t]=m.useState("toutes"),n=e==="toutes"?Ck:Ck.filter(r=>r.active);return s.jsxs(Vt,{children:[s.jsx(En,{title:"Alertes livreurs"}),s.jsx(Wx,{tabs:[{key:"toutes",label:"Toutes"},{key:"actives",label:"Actives"}],active:e,onChange:t}),n.map(r=>s.jsxs(Ye,{children:[s.jsxs(Mt,{children:[s.jsxs(ee,{variant:r.active?"danger":"secondary",children:[s.jsx(qe,{icon:oh,style:{color:r.active?z.danger:z.text3,marginRight:6,fontSize:"0.72rem"}}),r.driver]}),s.jsx("span",{style:{background:r.active?`${z.danger}26`:`${z.success}26`,color:r.active?z.danger:z.success,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:r.active?"Active":"Terminée"})]}),r.active&&s.jsxs(ee,{variant:"danger",size:"0.7rem",children:['"',r.message,'"']}),s.jsx(ee,{variant:"muted",size:"0.62rem",children:r.time})]},r.id)),s.jsx(lh,{children:"La résolution des alertes reste réservée à l'espace admin."})]})}function Hce(){const[e,t]=m.useState("35 €"),[n,r]=m.useState(340);return s.jsxs(Vt,{children:[s.jsx(En,{title:"Clients",subtitle:"Réinitialisations rapides"}),s.jsxs(Ye,{mb:0,children:[s.jsx(ee,{variant:"primary",size:"0.82rem",children:"client_marie"}),s.jsx(ee,{variant:"muted",size:"0.66rem",children:"Marie D. · 06 12 34 56 78"}),s.jsxs("div",{style:{display:"flex",gap:12,margin:"8px 0"},children:[s.jsx(ee,{variant:"danger",size:"0.68rem",children:"Annul.: 2"}),s.jsxs(ee,{variant:"secondary",size:"0.68rem",mono:!0,children:["Amende: ",e]}),s.jsxs(ee,{variant:"success",size:"0.68rem",mono:!0,children:["Points: ",n]})]}),s.jsxs("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[s.jsx($e,{tone:"outline",icon:Xp,onClick:()=>t("0 €"),children:"Reset pénalités"}),s.jsx($e,{tone:"outline",icon:Xp,onClick:()=>r(0),children:"Reset points"})]})]}),s.jsx(lh,{children:"Pas de création, modification ni suppression de compte ici — uniquement des remises à zéro ponctuelles."})]})}const tg=["pending","in_progress","arrived","completed"],ng={pending:{label:"En attente",tone:z.info},in_progress:{label:"En cours",tone:z.warning},arrived:{label:"Arrivé",tone:z.accentLight},completed:{label:"Terminée",tone:z.success}},qce=[{key:"available",label:"Disponible",tone:z.success},{key:"busy",label:"Occupé",tone:z.warning},{key:"offline",label:"Hors ligne",tone:z.text3}];function Gce(){const[e,t]=m.useState("available"),[n,r]=m.useState("in_progress"),i=()=>{const o=tg.indexOf(n);o{const a=e===o.key;return s.jsxs("div",{onClick:()=>t(o.key),style:{cursor:"pointer",display:"flex",alignItems:"center",padding:"5px 10px",borderRadius:999,fontSize:"0.65rem",fontWeight:700,border:`1px solid ${a?o.tone:z.border}`,background:a?`${o.tone}22`:"transparent",color:a?o.tone:z.text3},children:[s.jsx(wl,{color:o.tone,size:"7px"}),o.label]},o.key)})}),s.jsx(Ye,{children:s.jsx("div",{style:{height:96,borderRadius:8,position:"relative",backgroundImage:"linear-gradient(135deg,#161022 25%,#1c1330 25%,#1c1330 50%,#161022 50%,#161022 75%,#1c1330 75%)",backgroundSize:"18px 18px",marginBottom:6},children:s.jsxs("span",{style:{position:"absolute",top:8,left:8,background:`${z.success}26`,color:z.success,fontSize:"0.6rem",fontWeight:800,padding:"3px 9px",borderRadius:999},children:[s.jsx(wl,{color:z.success,size:"7px"}),"GPS actif — 48.85, 2.35"]})})}),s.jsx(ee,{variant:"muted",size:"0.66rem",children:"Mes livraisons (1) — cliquez « avancer » pour tester le cycle complet"}),s.jsxs(Ye,{mb:0,children:[s.jsxs(Mt,{children:[s.jsx(ee,{mono:!0,children:"Commande #1041"}),s.jsx("span",{style:{background:`${ng[n].tone}26`,color:ng[n].tone,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:ng[n].label})]}),s.jsx(ee,{variant:"secondary",size:"0.7rem",children:"client_paul · 12 rue des Lilas"}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:8,flexWrap:"wrap"},children:[s.jsx($e,{tone:"outline",icon:sh,children:"Itinéraire"}),s.jsx($e,{tone:"outline",icon:ice,children:"Appeler"})]}),s.jsxs("div",{style:{marginTop:10,paddingTop:10,borderTop:`1px solid ${z.border}`,display:"flex",gap:6,flexWrap:"wrap"},children:[n==="pending"&&s.jsx($e,{tone:"success",icon:Bx,onClick:i,children:"Démarrer la livraison"}),n==="in_progress"&&s.jsx($e,{tone:"accent",icon:Dx,onClick:i,children:"J'arrive"}),n==="arrived"&&s.jsxs(s.Fragment,{children:[s.jsx($e,{tone:"accent",icon:Io,onClick:i,children:"Terminer"}),s.jsx($e,{tone:"outlineDanger",icon:KE,children:"Annuler"})]}),n==="completed"&&s.jsxs(ee,{variant:"success",size:"0.7rem",children:[s.jsx(qe,{icon:Io,style:{marginRight:6}}),"Livraison terminée"]})]})]})]})}const Qo={police:{title:"Contrôle de police",icon:ah,hint:"Restez calme, coopérez avec les forces de l’ordre. L’équipe est prévenue."},ambush:{title:"Guet-apens",icon:oh,hint:"Éloignez-vous du danger si possible. L’équipe et les secours sont prévenus."}};function Kce(){const[e,t]=m.useState("idle"),[n,r]=m.useState("police");return s.jsxs(Vt,{children:[s.jsx(En,{title:"Alerte",subtitle:"Bouton d'urgence pour les livreurs"}),e==="idle"&&s.jsx($e,{tone:"outlineDanger",icon:oh,onClick:()=>t("pick"),children:"Déclencher alerte police"}),e==="pick"&&s.jsxs(Ye,{mb:0,children:[s.jsx(ee,{size:"0.78rem",variant:"primary",children:"Type d'alerte"}),s.jsx(ee,{variant:"muted",size:"0.65rem",children:"Sélectionnez la raison de l'alerte."}),s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6,marginTop:8},children:Object.keys(Qo).map(i=>s.jsxs("div",{onClick:()=>{r(i),t("confirm")},style:{cursor:"pointer",display:"flex",alignItems:"center",gap:8,padding:"8px 10px",borderRadius:8,border:`1px solid ${z.border}`},children:[s.jsx(qe,{icon:Qo[i].icon,style:{color:z.danger,fontSize:"0.8rem"}}),s.jsx("span",{style:{color:z.text,fontSize:"0.74rem"},children:Qo[i].title})]},i))}),s.jsx("div",{style:{marginTop:10},children:s.jsx($e,{tone:"outline",onClick:()=>t("idle"),children:"Annuler"})})]}),e==="confirm"&&s.jsxs(Ye,{mb:0,children:[s.jsxs(ee,{size:"0.78rem",variant:"danger",children:[s.jsx(qe,{icon:Qo[n].icon,style:{marginRight:6}}),"Alerte — ",Qo[n].title]}),s.jsx(ee,{variant:"muted",size:"0.66rem",children:Qo[n].hint}),s.jsx(ee,{variant:"primary",size:"0.74rem",children:"Confirmez-vous le déclenchement ?"}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:10},children:[s.jsx($e,{tone:"outline",onClick:()=>t("idle"),children:"Annuler"}),s.jsx($e,{tone:"outlineDanger",onClick:()=>t("sent"),children:"Déclencher"})]})]}),e==="sent"&&s.jsxs(Ye,{mb:0,children:[s.jsx(qe,{icon:Io,style:{color:z.success,fontSize:"1.4rem",marginBottom:8}}),s.jsx(ee,{size:"0.8rem",variant:"success",children:"Alerte envoyée"}),s.jsx(ee,{variant:"muted",size:"0.66rem",children:"L'équipe admin a été notifiée immédiatement."}),s.jsx(ee,{variant:"secondary",size:"0.66rem",children:Qo[n].hint}),s.jsx("div",{style:{marginTop:10},children:s.jsx($e,{tone:"accent",onClick:()=>t("idle"),children:"Compris"})})]})]})}function jk({value:e}){return s.jsx("span",{children:[1,2,3,4,5].map(t=>s.jsx(qe,{icon:Kp,style:{color:t<=e?z.warning:z.border,fontSize:"0.7rem",marginRight:2}},t))})}const Xce=[{client:"client_marie",order:"#1038",rating:5,comment:"Livraison rapide et sympa, merci !"},{client:"client_theo",order:"#1029",rating:4,comment:"Tout est arrivé nickel."}];function Yce(){return s.jsxs(Vt,{children:[s.jsx(En,{title:"Mes avis"}),s.jsxs(Ye,{children:[s.jsx(ee,{size:"1.5rem",variant:"primary",children:"4.7"}),s.jsx("div",{style:{marginTop:4},children:s.jsx(jk,{value:5})}),s.jsx(ee,{variant:"muted",size:"0.66rem",children:"38 avis clients"})]}),Xce.map(e=>s.jsxs(Ye,{children:[s.jsx(ee,{size:"0.74rem",variant:"primary",children:e.client}),s.jsxs(ee,{variant:"muted",size:"0.62rem",children:["Commande ",e.order]}),s.jsx("div",{style:{margin:"4px 0"},children:s.jsx(jk,{value:e.rating})}),s.jsxs(ee,{variant:"secondary",size:"0.68rem",children:["« ",e.comment," »"]})]},e.order))]})}const Qce={jour:[2,4,3,6,5,8,4],semaine:[18,24,21,27,15,30,22],mois:[80,92,76,101]},Zce={jour:["L","M","M","J","V","S","D"],semaine:["S1","S2","S3","S4","S5","S6","S7"],mois:["Mai","Juin","Juil","Août"]};function Jce(){const[e,t]=m.useState("semaine"),n=Qce[e],r=Zce[e],i=m.useMemo(()=>Math.max(...n),[n]);return s.jsxs(Vt,{children:[s.jsx(En,{title:"Mes performances"}),s.jsxs(Yt,{columns:2,spacing:2,mb:2.5,children:[s.jsx(it,{icon:Vle,value:512,label:"Total livraisons",color:z.accentLight}),s.jsx(it,{icon:Io,value:489,label:"Complétées",color:z.success}),s.jsx(it,{icon:fd,value:14,label:"Livraisons du jour",color:z.accentLight}),s.jsx(it,{icon:oce,value:3,label:"En attente",color:z.info})]}),s.jsxs(Ye,{mb:0,children:[s.jsx(ee,{variant:"secondary",size:"0.72rem",children:"Évolution"}),s.jsx("div",{style:{marginTop:8},children:s.jsx(Wx,{tabs:[{key:"jour",label:"Jour"},{key:"semaine",label:"Semaine"},{key:"mois",label:"Mois"}],active:e,onChange:t})}),s.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:6,height:90,marginTop:6},children:n.map((o,a)=>s.jsxs("div",{style:{flex:1,textAlign:"center"},children:[s.jsx("div",{style:{height:`${o/i*70}px`,background:z.accent,borderRadius:4,transition:"height .3s ease"}}),s.jsx("div",{style:{color:z.text3,fontSize:"0.55rem",marginTop:4},children:r[a]})]},a))}),s.jsxs(ee,{variant:"muted",size:"0.62rem",children:[n.reduce((o,a)=>o+a,0)," livraisons sur la période"]})]})]})}const eue=[{id:"admin-dashboard",kicker:"Vue d'ensemble",title:"Toute votre activité en un coup d’œil",lead:"Dès l'ouverture, vous voyez l'essentiel : commandes en attente ou en route, clients et livreurs actifs — sans avoir à chercher l'information.",points:["Chiffres mis à jour en temps réel","Notifications Telegram liées à votre compte","Accès identique sur mobile et sur ordinateur"],mockup:s.jsx(bce,{})},{id:"admin-commandes",kicker:"Suivi opérationnel",title:"Suivez chaque commande, de la validation à la livraison",lead:"Chaque commande apparaît avec son statut, son montant et le livreur assigné. Un menu d'actions par commande permet d'assigner un livreur ou de la finaliser en un geste.",points:["Archives des commandes approuvées et annulées, recherche instantanée","Export CSV pour votre comptabilité","Parrainage et fidélité pris en compte automatiquement dans le total"],mockup:s.jsx(xce,{}),reverse:!0},{id:"admin-livraison",kicker:"Géolocalisation en direct",title:"Localisez vos livreurs en temps réel, sur la carte",lead:"La position de chaque livreur s'affiche en direct, avec la distance et le temps restant estimé. Vue d'ensemble de toute la flotte : disponible, occupée ou hors ligne.",points:["Distance et temps de trajet calculés automatiquement","Avis clients et historique de connexion par livreur",'Notification client en un tap : "le livreur est arrivé"'],mockup:s.jsx(wce,{})},{id:"admin-produits",kicker:"Catalogue",title:"Un catalogue que vous gérez vous-même",lead:"Ajoutez, modifiez ou retirez un produit en quelques secondes : photos, vidéos, stock, description, et plusieurs tarifs par produit.",points:["Photos et vidéos multiples par produit","Plusieurs paliers de prix, activables indépendamment","Statut « à venir » pour annoncer un produit avant sa mise en vente"],mockup:s.jsx(Cce,{}),reverse:!0},{id:"admin-categories",kicker:"Organisation",title:"Organisez votre catalogue comme vous le souhaitez",lead:"Créez vos propres catégories, attribuez-leur une couleur, réordonnez-les en un clic. Une catégorie peut être marquée « prochainement » avant sa mise en ligne.",points:["Couleur personnalisée par catégorie","Réorganisation manuelle de l'ordre d'affichage","Aperçu immédiat du rendu côté client"],mockup:s.jsx(Pce,{})},{id:"admin-statistiques",kicker:"Pilotage",title:"Des chiffres clairs pour piloter votre activité",lead:"Chiffre d'affaires, produits les plus vendus, heures et jours d'affluence : tout est visualisé simplement, sans éplucher vos commandes une par une.",points:["Historique mensuel navigable, jour par jour","Classement des meilleurs produits (quantité, commandes ou revenus)","Repérage automatique du jour et de l'heure de pointe"],mockup:s.jsx(Ace,{}),reverse:!0},{id:"admin-utilisateurs",kicker:"Équipe & clients",title:"Clients, livreurs, équipe : tout au même endroit",lead:"Un seul espace pour gérer tous les comptes. Ajustez les points de fidélité, appliquez une pénalité ou consultez l'historique d'un client.",points:["Filtre par rôle et recherche instantanée","Gestion des points de fidélité et du parrainage","Suivi des annulations et de l'historique de connexion"],mockup:s.jsx(zce,{})},{id:"admin-parametres",kicker:"Personnalisation",title:"Une plateforme qui s'adapte à votre activité",lead:"13 sections de réglages : fidélité, parrainage, pénalités, zones et horaires de livraison, paiement crypto, Telegram, couleurs de l’interface... Tout est configurable vous-même.",points:["Zones de livraison par code postal avec minimum de commande","Paiement crypto (NowPayments) et bot Telegram intégrés","Couleurs de l'espace admin et de l'app client personnalisables"],mockup:s.jsx(Ice,{}),reverse:!0},{id:"admin-alertes",kicker:"Réactivité",title:"Réagissez immédiatement en cas de problème",lead:"Si un livreur rencontre un souci sur le terrain, l'alerte remonte instantanément — avec son message et l'horodatage — jusqu'à ce qu'elle soit résolue.",points:["Distinction claire entre alerte active et résolue","Historique complet conservé"],mockup:s.jsx(Mce,{})},{id:"admin-adresses",kicker:"Fiabilité livraison",title:"Zéro commande perdue à cause d’une adresse mal saisie",lead:"Quand un client tape une adresse imprécise, corrigez-la une bonne fois pour toutes : les prochaines commandes utiliseront automatiquement la bonne adresse.",points:["Association simple « adresse saisie → adresse correcte »","Moins d’erreurs de livraison, moins d’allers-retours"],mockup:s.jsx(Nce,{}),reverse:!0}],tue=[{id:"cabine-dashboard",kicker:"Opérations du jour",title:"Un espace dédié pour votre équipe en cuisine",lead:"Vos préparateurs voient uniquement ce qui les concerne : commandes en cours, livreurs disponibles — sans chiffre d'affaires ni réglages sensibles.",points:["Aucune donnée financière exposée","Notifications Telegram propres à chaque compte","Rafraîchissement en direct"],mockup:s.jsx(Dce,{})},{id:"cabine-commandes",kicker:"Suivi des commandes",title:"Faire avancer une commande, en toute sécurité",lead:"La cabine assigne un livreur, prévient le client, propose une correction d’adresse — mais ne peut ni modifier ni voir les réglages de la commande.",points:["Actions limitées et guidées, pas de menu complexe","Confirmation demandée avant chaque action sensible","Zéro risque de modification accidentelle"],mockup:s.jsx(Fce,{}),reverse:!0},{id:"cabine-livraison",kicker:"Suivi livreurs",title:"Suivre les livreurs en direct, sans les gérer",lead:"La cabine voit la carte, la disponibilité et la position de chaque livreur pour coordonner la préparation — la gestion des comptes reste réservée à l’admin.",points:["Carte et statuts en temps réel","Suivi d’itinéraire en un clic","Aucun accès à la création ou modification de compte"],mockup:s.jsx(Vce,{})},{id:"cabine-alertes",kicker:"Information",title:"Rester informé, sans pouvoir de décision",lead:"Les alertes remontées par les livreurs sont visibles par la cabine pour garder tout le monde informé — seule l’équipe admin peut les résoudre.",points:['Filtre "Toutes" / "Actives"',"Lecture seule, aucune action destructrice possible"],mockup:s.jsx(Uce,{}),reverse:!0},{id:"cabine-utilisateurs",kicker:"Service client",title:"Un geste commercial, sans accès aux comptes",lead:"Besoin d’annuler une pénalité ou d’offrir des points en guise de geste commercial ? La cabine peut le faire en un clic, sans jamais toucher au reste du compte client.",points:["Reset pénalités et points uniquement","Aucune création, édition ou suppression de compte"],mockup:s.jsx(Hce,{})}],nue=[{id:"livreur-dashboard",kicker:"Terrain",title:"Le compagnon de route de vos livreurs",lead:"Statut en un tap (disponible / occupé / hors ligne), position GPS en direct, et un cycle de livraison guidé étape par étape jusqu’à la remise au client.",points:["Cycle complet : Démarrer → J’arrive → Terminer","Appel client et itinéraire en un tap","Gestion des cas « client absent » avec compte à rebours"],mockup:s.jsx(Gce,{})},{id:"livreur-alertes",kicker:"Sécurité",title:"Un bouton d’urgence, toujours à portée de main",lead:"En cas de contrôle de police ou de situation dangereuse, le livreur alerte l’équipe admin en 2 taps — avec des consignes de sécurité affichées immédiatement.",points:["Deux types d’alerte : contrôle de police / guet-apens","Confirmation avant envoi pour éviter les fausses alertes","Consignes de sécurité affichées après envoi"],mockup:s.jsx(Kce,{}),reverse:!0},{id:"livreur-avis",kicker:"Reconnaissance",title:"Chaque livreur voit ses propres avis clients",lead:"Note moyenne et commentaires clients, pour valoriser le travail de vos livreurs et repérer rapidement un souci de service.",points:["Note moyenne calculée automatiquement","Commentaires clients horodatés"],mockup:s.jsx(Yce,{})},{id:"livreur-stats",kicker:"Performance",title:"Un livreur qui suit sa propre performance reste motivé",lead:"Nombre de livraisons, taux de complétion, évolution jour / semaine / mois : chaque livreur a une vision claire de son activité.",points:["Bascule Jour / Semaine / Mois","Totaux recalculés automatiquement"],mockup:s.jsx(Jce,{}),reverse:!0}],Pk=[{key:"admin",label:"Espace Admin",icon:dce,features:eue,blurb:"Contrôle total de la plateforme."},{key:"cabine",label:"Espace Cabine",icon:Yle,features:tue,blurb:"Équipe de préparation, accès restreint."},{key:"livreur",label:"Espace Livreur",icon:ah,features:nue,blurb:"Application dédiée aux livreurs."}];function rue(){const[e,t]=m.useState("admin"),n=Pk.find(r=>r.key===e);return s.jsxs(Z,{children:[s.jsx(Z,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:14,md:20},children:s.jsx(Tt,{maxW:"container.lg",children:s.jsxs(we,{spacing:5,textAlign:"center",align:"center",children:[s.jsxs(ye,{spacing:2,children:[s.jsx(Z,{as:"span",px:3,py:1,borderRadius:"full",fontSize:"xs",fontWeight:"bold",bg:"primary.500",color:"white",children:"3 espaces, 1 seule plateforme"}),s.jsx(Z,{as:"span",px:3,py:1,borderRadius:"full",fontSize:"xs",fontWeight:"bold",borderWidth:"1px",children:"Démo interactive"})]}),s.jsx(Ne,{size:"2xl",children:"Admin, cabine, livreur : chacun son espace"}),s.jsx(U,{fontSize:"lg",color:"gray.500",maxW:"2xl",children:"Chaque rôle a exactement les écrans dont il a besoin — rien de plus. Choisissez un espace ci-dessous et essayez les aperçus : ils sont interactifs, comme dans l'application réelle."})]})})}),s.jsx(Z,{borderTopWidth:"1px",borderBottomWidth:"1px",bg:"chakra-subtle-bg",position:"sticky",top:0,zIndex:2,children:s.jsxs(Tt,{maxW:"container.lg",py:{base:2,md:3},children:[s.jsx(ye,{spacing:2,mb:{base:0,md:2},overflowX:"auto",children:Pk.map(r=>s.jsx(he,{size:"sm",leftIcon:s.jsx(qe,{icon:r.icon}),colorScheme:e===r.key?"primary":void 0,variant:e===r.key?"solid":"outline",onClick:()=>t(r.key),flexShrink:0,children:r.label},r.key))}),s.jsx(ox,{spacing:4,shouldWrapChildren:!0,display:{base:"none",md:"flex"},children:n.features.map(r=>s.jsx(ax,{children:s.jsx(U,{as:"a",href:`#${r.id}`,fontSize:"xs",fontWeight:"medium",color:"gray.500",whiteSpace:"nowrap",_hover:{color:"primary.500",textDecoration:"underline"},children:r.kicker})},r.id))})]})}),s.jsxs(Tt,{maxW:"container.lg",children:[s.jsx(Z,{py:6,children:s.jsx(U,{color:"gray.500",fontSize:"sm",textAlign:"center",children:n.blurb})}),n.features.map(r=>s.jsxs(we,{id:r.id,direction:{base:"column",md:r.reverse?"row-reverse":"row"},spacing:{base:10,md:16},align:"center",py:{base:14,md:20},borderBottomWidth:"1px",scrollMarginTop:"120px",children:[s.jsxs(Z,{flex:"0.9",minW:0,children:[s.jsx(U,{fontSize:"xs",fontWeight:"extrabold",letterSpacing:"wide",textTransform:"uppercase",color:"primary.500",mb:2,children:r.kicker}),s.jsx(Ne,{size:"lg",mb:4,children:r.title}),s.jsx(U,{color:"gray.500",mb:5,children:r.lead}),s.jsx($l,{spacing:2,children:r.points.map(i=>s.jsxs(Bm,{fontSize:"sm",color:"gray.600",display:"flex",children:[s.jsx(Gb,{as:()=>s.jsx(qe,{icon:Io}),color:"green.400",mt:1,mr:2}),s.jsx("span",{children:i})]},i))})]}),s.jsx(Z,{flex:"1",minW:0,w:"full",children:r.mockup})]},r.id))]}),s.jsx(Z,{bg:"gray.900",color:"white",py:20,textAlign:"center",children:s.jsxs(Tt,{maxW:"container.md",children:[s.jsx(Ne,{size:"xl",mb:4,children:"Prêt à essayer votre propre espace admin ?"}),s.jsx(U,{color:"whiteAlpha.700",mb:8,children:"Une démo dédiée et isolée, prête en quelques minutes, pour tester la plateforme en conditions réelles."}),s.jsxs(Yt,{columns:{base:1,sm:2},spacing:4,maxW:"sm",mx:"auto",children:[s.jsx(he,{as:sn,to:"/register",colorScheme:"primary",size:"lg",children:"Créer un compte"}),s.jsx(he,{as:sn,to:"/tarifs",variant:"outline",colorScheme:"whiteAlpha",size:"lg",children:"Voir les tarifs"})]})]})})]})}const iue=[{kicker:"Catalogue",title:"Vos produits, classés par catégories",lead:"Photos et vidéos par produit, catégories ordonnées à votre convenance, et plusieurs tarifs par produit selon la quantité et l'unité de vente.",points:["Paliers de prix par unité (g, kg, pièce…)","Catégories avec image, ordre d'affichage libre","Fiche produit avec galerie média"]},{kicker:"Commande",title:"Un panier et une commande en quelques clics",lead:"Le visiteur compose son panier et valide sa commande. Vous la recevez dans votre espace admin et suivez son avancement jusqu'à la fin.",points:["Statuts : en attente, confirmée, en préparation, expédiée, terminée, annulée","Historique des commandes pour les clients connectés","Ouverture et fermeture des commandes d'un simple interrupteur"]},{kicker:"Comptes clients",title:"Des comptes clients, activables à la demande",lead:"Laissez commander sans compte, ou exigez-en un. Vous pouvez aussi demander une vérification d'identité avant d'autoriser l'accès.",points:["Création de compte activable ou non","Vérification par pièce d'identité (recto / verso), validée ou refusée par vos soins","Pièces stockées dans un volume dédié, séparé des médias publics"]},{kicker:"Contact",title:"Vos réseaux et messageries, sur une page dédiée",lead:"Ajoutez les liens de votre choix (Telegram, WhatsApp, réseaux sociaux…) avec leur icône et leur couleur, et choisissez ceux qui sont visibles.",points:["Liens ordonnés et activables un par un","Icône et couleur par lien","Style des cartes (transparent ou plein) réglable"]}],oue=[{kicker:"Apparence",title:"Un site à vos couleurs",lead:"Couleurs de l'en-tête, du fond, du texte, du pied de page et de l'accent, avec le logo et l'image d'accueil de votre choix.",points:["Produits en grille ou en liste, nombre de colonnes réglable","Défilement vertical ou horizontal","Thème clair ou sombre pour vos visiteurs"]},{kicker:"Langues",title:"Quatre langues pour vos visiteurs",lead:"Le site s'affiche en français, anglais, espagnol ou allemand, au choix du visiteur.",points:["Sélecteur de langue intégré","Choix mémorisé pour les visites suivantes"]},{kicker:"Notifications",title:"Chaque nouvelle commande sur Telegram",lead:"Reliez un bot Telegram : vous êtes prévenu dès qu'une commande arrive, et, si vous le souhaitez, à chaque changement de statut.",points:["Alerte de nouvelle commande","Alerte de changement de statut, en option"]},{kicker:"Équipe",title:"Un espace admin, avec le nombre de comptes que vous choisissez",lead:"Le nombre de comptes administrateurs est fixé à la commande du site, de 1 à 20, pour partager la gestion avec votre équipe.",points:["Tableau de bord, commandes, produits, catégories, unités","Gestion des comptes clients et des vérifications"]}],aue=[{title:"Environnement dédié",text:"Chaque site tourne dans son propre espace isolé, avec sa base de données et son cache. Rien n'est partagé avec les autres clients."},{title:"HTTPS et pare-feu applicatif",text:"Le site est servi en HTTPS, derrière un pare-feu applicatif (WAF) qui filtre les requêtes malveillantes."},{title:"Sauvegardes automatiques",text:"Les données (base et médias) sont sauvegardées automatiquement et stockées sur des volumes répliqués."},{title:"Votre propre nom de domaine",text:"Le site est livré sur une adresse Omnex. Si vous le souhaitez, il peut aussi répondre sur votre domaine (par exemple boutique.votre-marque.fr) : demandez-le-nous au moment de la commande."},{title:"Mis en ligne sans attente",text:"Une fois votre commande validée, le site est déployé en quelques minutes et accessible sur son adresse dédiée."}];function _k({block:e}){return s.jsxs(Z,{p:6,borderWidth:"1px",borderRadius:"xl",bg:"bg-surface",children:[s.jsx(U,{fontSize:"xs",fontWeight:"extrabold",letterSpacing:"wide",textTransform:"uppercase",color:"primary.500",mb:2,children:e.kicker}),s.jsx(Ne,{size:"md",mb:3,children:e.title}),s.jsx(U,{color:"gray.500",mb:4,fontSize:"sm",children:e.lead}),s.jsx($l,{spacing:2,children:e.points.map(t=>s.jsxs(Bm,{fontSize:"sm",color:"gray.600",display:"flex",children:[s.jsx(Gb,{as:()=>s.jsx(qe,{icon:Io}),color:"green.400",mt:1,mr:2}),s.jsx("span",{children:t})]},t))})]})}function sue(){return s.jsxs(Z,{children:[s.jsx(Z,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:14,md:20},children:s.jsx(Tt,{maxW:"container.lg",children:s.jsxs(we,{spacing:5,textAlign:"center",align:"center",children:[s.jsxs(ye,{spacing:2,children:[s.jsx(Bt,{colorScheme:"primary",px:3,py:1,borderRadius:"full",children:"Site vitrine"}),s.jsx(Bt,{variant:"outline",px:3,py:1,borderRadius:"full",children:"Abonnement de 1 à 12 mois"})]}),s.jsx(Ne,{size:"2xl",children:"Votre boutique en ligne, prête à l'emploi"}),s.jsx(U,{fontSize:"lg",color:"gray.500",maxW:"2xl",children:"Un site complet pour présenter vos produits et recevoir des commandes, avec son espace d'administration. Nous le déployons, l'hébergeons et le sauvegardons pour vous, pour la durée de votre abonnement."}),s.jsx(he,{as:"a",href:Nu,target:"_blank",rel:"noopener noreferrer",colorScheme:"primary",size:"lg",mt:2,children:"Nous contacter"})]})})}),s.jsxs(Tt,{maxW:"container.lg",py:{base:10,md:14},children:[s.jsxs(we,{spacing:2,mb:8,textAlign:"center",children:[s.jsx(Ne,{size:"lg",children:"Ce que vos clients voient"}),s.jsx(U,{color:"gray.500",children:"La boutique : catalogue, panier, commande, compte et contact."})]}),s.jsx(Yt,{columns:{base:1,md:2},spacing:5,children:iue.map(e=>s.jsx(_k,{block:e},e.kicker))})]}),s.jsx(Z,{bg:"chakra-subtle-bg",borderTopWidth:"1px",borderBottomWidth:"1px",children:s.jsxs(Tt,{maxW:"container.lg",py:{base:10,md:14},children:[s.jsxs(we,{spacing:2,mb:8,textAlign:"center",children:[s.jsx(Ne,{size:"lg",children:"Ce que vous réglez vous-même"}),s.jsx(U,{color:"gray.500",children:"Un espace d'administration pour faire vivre le site sans nous solliciter."})]}),s.jsx(Yt,{columns:{base:1,md:2},spacing:5,children:oue.map(e=>s.jsx(_k,{block:e},e.kicker))})]})}),s.jsxs(Tt,{maxW:"container.lg",py:{base:10,md:14},children:[s.jsxs(we,{spacing:2,mb:8,textAlign:"center",children:[s.jsx(Ne,{size:"lg",children:"Hébergé et surveillé par Omnex"}),s.jsx(U,{color:"gray.500",children:"Vous n'installez rien : nous nous occupons de l'infrastructure."})]}),s.jsx(Yt,{columns:{base:1,sm:2},spacing:5,children:aue.map(e=>s.jsxs(Z,{p:5,borderWidth:"1px",borderRadius:"lg",children:[s.jsx(Ne,{size:"sm",mb:2,children:e.title}),s.jsx(U,{fontSize:"sm",color:"gray.500",children:e.text})]},e.title))})]}),s.jsx(Z,{borderTopWidth:"1px",py:{base:10,md:14},children:s.jsx(Tt,{maxW:"container.md",children:s.jsxs(we,{spacing:4,textAlign:"center",align:"center",children:[s.jsx(Ne,{size:"lg",children:"Un abonnement que vous choisissez"}),s.jsx(U,{color:"gray.500",children:"Vous commandez une durée de 1 à 12 mois. Elle se renouvelle à tout moment, en ajoutant des mois à votre échéance. Sans renouvellement avant l'échéance, le site et ses données sont supprimés : pensez à prolonger à temps."})]})})}),s.jsx(Z,{bg:"gray.900",color:"white",py:20,textAlign:"center",children:s.jsxs(Tt,{maxW:"container.md",children:[s.jsx(Ne,{size:"xl",mb:4,children:"Un site vitrine pour votre activité ?"}),s.jsx(U,{color:"whiteAlpha.700",mb:8,children:"Parlez-nous de votre projet sur Telegram : nous vous répondons avec une offre adaptée."}),s.jsx(he,{as:"a",href:Nu,target:"_blank",rel:"noopener noreferrer",colorScheme:"primary",size:"lg",children:"Nous contacter"})]})})]})}const o7="";class Ee extends Error{constructor(n,r){super(r);r2(this,"status");this.status=n}}async function Le(e,t,n){const r={"Content-Type":"application/json"},i=await fetch(`${o7}/api/v1${t}`,{method:e,headers:r,credentials:"include",body:n?JSON.stringify(n):void 0});if(!i.ok){const o=await i.json().catch(()=>({error:`HTTP ${i.status}`}));throw new Ee(i.status,o.error??`HTTP ${i.status}`)}return i.status===204?void 0:await i.json()}const Pe={login:(e,t,n)=>Le("POST","/auth/login",{username:e,password:t,role:n}),register:(e,t)=>Le("POST","/auth/register",{username:e,password:t}),me:()=>Le("GET","/auth/me"),logout:()=>Le("POST","/auth/logout"),listDemos:()=>Le("GET","/demos"),listMyDemos:()=>Le("GET","/demos/mine"),getDemo:e=>Le("GET",`/demos/${e}`),createDemo:e=>Le("POST","/demos",{username:e.username,...e.telegramBotUsername?{telegram_bot_username:e.telegramBotUsername}:{},...e.telegramBotToken?{telegram_bot_token:e.telegramBotToken}:{},...e.nowPaymentsApiKey?{nowpayments_api_key:e.nowPaymentsApiKey}:{},...e.nowPaymentsIpnSecret?{nowpayments_ipn_secret:e.nowPaymentsIpnSecret}:{},storage_driver:e.storageDriver,...e.storageDriver==="s3"?{s3_bucket:e.s3Bucket,s3_endpoint:e.s3Endpoint}:{},...e.tomtomApiKey?{tomtom_api_key:e.tomtomApiKey}:{},...e.tomtomApiKey1?{tomtom_api_key_1:e.tomtomApiKey1}:{},...e.tomtomApiKey2?{tomtom_api_key_2:e.tomtomApiKey2}:{},...e.tomtomApiKey3?{tomtom_api_key_3:e.tomtomApiKey3}:{},...e.lbBot1Username?{lb_bot1_username:e.lbBot1Username,lb_bot1_token:e.lbBot1Token}:{},...e.lbBot2Username?{lb_bot2_username:e.lbBot2Username,lb_bot2_token:e.lbBot2Token}:{},...e.lbStrategy?{lb_strategy:e.lbStrategy}:{},...e.lbJwtTtlSeconds?{lb_jwt_ttl_seconds:e.lbJwtTtlSeconds}:{},...e.lbHealthCheckInterval?{lb_health_check_interval:e.lbHealthCheckInterval}:{},admin_username:e.adminUsername,admin_password:e.adminPassword}),extendDemo:e=>Le("POST",`/demos/${e}/extend`),deleteDemo:e=>Le("DELETE",`/demos/${e}`),setDemoDomain:(e,t)=>Le("POST",`/demos/${e}/domain`,{domain:t}),transferDemoToPremium:e=>Le("POST",`/demos/${e}/premium`),listProjects:()=>Le("GET","/projects"),getProjectDetails:e=>Le("GET",`/projects/${e}/details`),createProject:e=>Le("POST","/projects",{client_name:e.clientName,months:e.months,admin_username:e.adminUsername,admin_password:e.adminPassword,admin_number:e.adminNumber}),setProjectDomain:(e,t)=>Le("POST",`/projects/${e}/domain`,{domain:t}),extendProject:(e,t)=>Le("POST",`/projects/${e}/extend`,{months:t}),deleteProject:e=>Le("DELETE",`/projects/${e}`),listCodes:()=>Le("GET","/codes"),listPremiumUsers:()=>Le("GET","/premium"),createCode:e=>Le("POST","/codes",{username:e}),addCode:e=>Le("POST","/subscription",{code_verif:e}),sendMessage:(e,t,n,r)=>Le("POST","/send/message",{username:e,telegram:t,sujet:n,message:r}),getMessage:()=>Le("GET","/messages"),getDemoDetails:e=>Le("POST","/demos/details",{namespace:e}),updateUsername:e=>Le("POST","/profile/username",{username:e}),updatePassword:e=>Le("POST","/profile/password",{password:e}),getTelegram:()=>Le("GET","/profile/telegram"),setTelegram:e=>Le("POST","/profile/telegram",{telegram:e}),getAlertSettings:()=>Le("GET","/profile/alerts"),setAlertSettings:e=>Le("POST","/profile/alerts",e),testAlertSettings:e=>Le("POST","/profile/alerts/test",e),listAppDownloads:()=>Le("GET","/apps")};function lue(e){return`${o7}/api/v1/apps/${encodeURIComponent(e)}`}const a7=m.createContext(null);function cue({children:e}){const[t,n]=m.useState(null),[r,i]=m.useState(null),[o,a]=m.useState(!0);m.useEffect(()=>{let p=!0;return Pe.me().then(h=>{p&&(n(h.role),i(h.type_abonnement))}).catch(()=>{}).finally(()=>{p&&a(!1)}),()=>{p=!1}},[]);const l=m.useCallback(async(p,h,v)=>{await Pe.login(p,h,v);const b=await Pe.me();n(b.role),i(b.type_abonnement)},[]),c=m.useCallback(async(p,h)=>{await Pe.register(p,h);const v=await Pe.me();n(v.role),i(v.type_abonnement)},[]),u=m.useCallback(async()=>{try{await Pe.logout()}finally{n(null),i(null)}},[]),d=m.useCallback(async()=>{const p=await Pe.me();i(p.type_abonnement)},[]),f=m.useMemo(()=>({isAuthenticated:!!t,isAdmin:t==="admin",isClient:t==="client",isPremium:r==="premium",role:t,typeAbo:r,initializing:o,login:l,register:c,logout:u,refreshAbo:d}),[t,r,o,l,c,u,d]);return s.jsx(a7.Provider,{value:f,children:e})}function Uo(){const e=m.useContext(a7);if(!e)throw new Error("useAuth doit être utilisé dans ");return e}function Da(e){const{toggleColorMode:t}=Xu(),n=Ap("Passer en mode sombre","Passer en mode clair");return s.jsx(xn,{"aria-label":n,title:n,variant:"ghost",size:e.size??"sm",onClick:t,icon:Ap(s.jsx(due,{}),s.jsx(uue,{}))})}function uue(){return s.jsxs(wt,{viewBox:"0 0 24 24",boxSize:5,fill:"none",stroke:"currentColor",strokeWidth:2,children:[s.jsx("circle",{cx:"12",cy:"12",r:"4"}),s.jsx("path",{strokeLinecap:"round",d:"M12 2v2m0 16v2M2 12h2m16 0h2M4.9 4.9l1.4 1.4m11.4 11.4l1.4 1.4M19.1 4.9l-1.4 1.4M6.3 17.7l-1.4 1.4"})]})}function due(){return s.jsx(wt,{viewBox:"0 0 24 24",boxSize:5,fill:"currentColor",children:s.jsx("path",{d:"M21 12.8A9 9 0 1111.2 3a7 7 0 009.8 9.8z"})})}const nn=m.forwardRef((e,t)=>{const[n,r]=m.useState(!1);return s.jsxs(Hb,{children:[s.jsx(mt,{ref:t,type:n?"text":"password",...e}),s.jsx(Fm,{children:s.jsx(xn,{"aria-label":n?"Masquer le mot de passe":"Afficher le mot de passe",icon:s.jsx(qe,{icon:n?uce:Ule}),size:"sm",variant:"ghost",tabIndex:-1,onClick:()=>r(i=>!i)})})]})});nn.displayName="PasswordInput";function fue(){const{login:e}=Uo(),t=Vn(),n=Tn(),[r,i]=m.useState(""),[o,a]=m.useState(""),[l,c]=m.useState(!1),u=async d=>{d.preventDefault(),c(!0);try{await e(r.trim(),o,"client"),t("/app",{replace:!0})}catch(f){const p=f instanceof Ee?f.message:"Connexion impossible";n({status:"error",title:"Échec de connexion",description:p})}finally{c(!1)}};return s.jsxs(Tt,{maxW:"sm",py:20,position:"relative",children:[s.jsx(Z,{position:"absolute",top:4,right:4,children:s.jsx(Da,{})}),s.jsxs(we,{spacing:6,children:[s.jsxs(Z,{textAlign:"center",children:[s.jsx(Ne,{size:"lg",children:"Espace client"}),s.jsx(U,{color:"gray.500",children:"Connectez-vous pour gérer votre abonnement."})]}),s.jsx(Pb,{children:s.jsx(_b,{children:s.jsx("form",{onSubmit:u,children:s.jsxs(we,{spacing:4,children:[s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{children:"Nom d'utilisateur"}),s.jsx(mt,{value:r,onChange:d=>i(d.target.value),autoComplete:"username"})]}),s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{children:"Mot de passe"}),s.jsx(nn,{value:o,onChange:d=>a(d.target.value),autoComplete:"current-password"})]}),s.jsx(he,{type:"submit",colorScheme:"primary",isLoading:l,children:"Se connecter"})]})})})}),s.jsxs(ye,{justify:"center",spacing:1,children:[s.jsx(U,{fontSize:"sm",color:"gray.500",children:"Pas encore de compte ?"}),s.jsx(he,{as:sn,to:"/register",variant:"link",size:"sm",children:"Créer un compte"})]}),s.jsx(he,{as:sn,to:"/",variant:"outline",size:"sm",children:"← Retour au site"})]})]})}function pue(){const{login:e}=Uo(),t=Vn(),n=Tn(),[r,i]=m.useState(""),[o,a]=m.useState(""),[l,c]=m.useState(!1),u=async d=>{d.preventDefault(),c(!0);try{await e(r.trim(),o,"admin"),t("/app",{replace:!0})}catch(f){const p=f instanceof Ee?f.message:"Connexion impossible";n({status:"error",title:"Échec de connexion",description:p})}finally{c(!1)}};return s.jsxs(Tt,{maxW:"sm",py:20,position:"relative",children:[s.jsx(Z,{position:"absolute",top:4,right:4,children:s.jsx(Da,{})}),s.jsxs(we,{spacing:6,children:[s.jsxs(Z,{textAlign:"center",children:[s.jsx(Ne,{size:"lg",children:"Espace admin"}),s.jsx(U,{color:"gray.500",children:"Connectez-vous pour administrer la plateforme."})]}),s.jsx(Pb,{children:s.jsx(_b,{children:s.jsx("form",{onSubmit:u,children:s.jsxs(we,{spacing:4,children:[s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{children:"Nom d'utilisateur"}),s.jsx(mt,{value:r,onChange:d=>i(d.target.value),autoComplete:"username"})]}),s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{children:"Mot de passe"}),s.jsx(nn,{value:o,onChange:d=>a(d.target.value),autoComplete:"current-password"})]}),s.jsx(he,{type:"submit",colorScheme:"primary",isLoading:l,children:"Se connecter"})]})})})}),s.jsx(he,{as:sn,to:"/",variant:"outline",size:"sm",children:"← Retour au site"})]})]})}function mue(){const{register:e}=Uo(),t=Vn(),n=Tn(),[r,i]=m.useState(""),[o,a]=m.useState(""),[l,c]=m.useState(""),[u,d]=m.useState(!1),f=/^[a-zA-Z0-9]{3,64}$/.test(r),p=o.length>=10,h=o===l,v=f&&p&&h,b=async x=>{if(x.preventDefault(),!!v){d(!0);try{await e(r.trim(),o),t("/app",{replace:!0})}catch(y){const g=y instanceof Ee?y.message:"Inscription impossible";n({status:"error",title:"Échec de l’inscription",description:g})}finally{d(!1)}}};return s.jsxs(Tt,{maxW:"sm",py:16,position:"relative",children:[s.jsx(Z,{position:"absolute",top:4,right:4,children:s.jsx(Da,{})}),s.jsxs(we,{spacing:6,children:[s.jsxs(Z,{textAlign:"center",children:[s.jsx(Ne,{size:"lg",children:"Créer un compte"}),s.jsx(U,{color:"gray.500",children:"Rejoignez l’espace commercial Omnex."})]}),s.jsx(Pb,{children:s.jsx(_b,{children:s.jsx("form",{onSubmit:b,children:s.jsxs(we,{spacing:4,children:[s.jsxs(ke,{isRequired:!0,isInvalid:r.length>0&&!f,children:[s.jsx(Ce,{children:"Nom d'utilisateur"}),s.jsx(mt,{value:r,onChange:x=>i(x.target.value),autoComplete:"username"}),s.jsx(Qr,{children:"3 à 64 caractères alphanumériques."})]}),s.jsxs(ke,{isRequired:!0,isInvalid:o.length>0&&!p,children:[s.jsx(Ce,{children:"Mot de passe"}),s.jsx(nn,{value:o,onChange:x=>a(x.target.value),autoComplete:"new-password"}),s.jsx(Qr,{children:"10 caractères minimum."})]}),s.jsxs(ke,{isRequired:!0,isInvalid:l.length>0&&!h,children:[s.jsx(Ce,{children:"Confirmer le mot de passe"}),s.jsx(nn,{value:l,onChange:x=>c(x.target.value),autoComplete:"new-password"})]}),s.jsx(he,{type:"submit",colorScheme:"primary",isLoading:u,isDisabled:!v,children:"Créer mon compte"})]})})})}),s.jsxs(ye,{justify:"center",spacing:1,children:[s.jsx(U,{fontSize:"sm",color:"gray.500",children:"Déjà un compte ?"}),s.jsx(he,{as:sn,to:"/login",variant:"link",size:"sm",children:"Se connecter"})]})]})]})}const Nl=Dm({displayName:"EditIcon",path:s.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[s.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),s.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),s7=Dm({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),l7=Dm({viewBox:"0 0 14 14",path:s.jsx("g",{fill:"currentColor",children:s.jsx("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})});function ch(e){switch(e){case"ready":return"green";case"provisioning":case"pending":return"blue";case"expiring":return"orange";case"failed":return"red";case"expired":default:return"gray"}}function uh(e){return{pending:"En attente",provisioning:"Déploiement…",ready:"Active",expiring:"Suppression…",expired:"Expirée",failed:"Échec"}[e]??e}function Tk(e){switch(e){case"Running":return"green";case"Pending":return"yellow";case"Succeeded":return"blue";case"Failed":return"red";case"Unknown":case"":default:return"gray"}}function hue(e){return{Running:"En ligne",Pending:"En attente",Succeeded:"Terminé",Failed:"Down",Unknown:"Inconnu"}[e]??"Introuvable"}function yy(e,t=Date.now()){const n=new Date(e).getTime()-t;if(n<=0)return"expirée";const r=Math.floor(n/864e5),i=Math.floor(n%864e5/36e5);if(r>0)return`${r} j ${i} h`;const o=Math.floor(n%36e5/6e4);return`${i} h ${o} min`}function gue(e){if(e<1024)return`${e} o`;const t=["Ko","Mo","Go"];let n=e/1024,r=0;for(;n>=1024&&rt+1);function Ou(e){return`${e} mois`}function Gc({isOpen:e,title:t,children:n,confirmLabel:r="Confirmer",cancelLabel:i="Annuler",confirmColorScheme:o="red",isLoading:a=!1,onConfirm:l,onClose:c}){const u=m.useRef(null);return s.jsx(JY,{isOpen:e,leastDestructiveRef:u,onClose:c,isCentered:!0,motionPreset:"slideInBottom",children:s.jsx(Bo,{backdropFilter:"blur(2px)",children:s.jsxs(eQ,{borderRadius:"xl",children:[s.jsx(Fo,{fontSize:"lg",fontWeight:"bold",children:t}),s.jsx(Oo,{children:n}),s.jsxs(Il,{gap:3,children:[s.jsx(he,{ref:u,onClick:c,variant:"ghost",isDisabled:a,children:i}),s.jsx(he,{colorScheme:o,onClick:l,isLoading:a,children:r})]})]})})})}function u7({isOpen:e,onClose:t,onCreated:n}){const r=Tn(),[i,o]=m.useState(""),[a,l]=m.useState("admin"),[c,u]=m.useState(""),[d,f]=m.useState(!1),[p,h]=m.useState(""),[v,b]=m.useState(""),[x,y]=m.useState(!1),[g,S]=m.useState(""),[w,k]=m.useState(""),[C,P]=m.useState(!1),[j,R]=m.useState(""),[T,$]=m.useState(""),[K,X]=m.useState(""),[M,N]=m.useState(""),[O,L]=m.useState(!1),[I,D]=m.useState(""),[q,J]=m.useState(""),[le,oe]=m.useState(""),[Q,ae]=m.useState(""),[ce,Me]=m.useState("failover"),[Ze,ne]=m.useState(""),[re,_e]=m.useState(""),[ve,Ke]=m.useState("local"),[se,nt]=m.useState(""),[Oe,kt]=m.useState(""),[je,Jt]=m.useState(!1),At=()=>{o(""),l("admin"),u(""),f(!1),h(""),b(""),y(!1),S(""),k(""),P(!1),R(""),$(""),X(""),N(""),L(!1),D(""),J(""),oe(""),ae(""),Me("failover"),ne(""),_e(""),Ke("local"),nt(""),kt("")},An=()=>{je||(At(),t())},$n=async()=>{if(!i.trim()){r({status:"warning",title:"Username requis"});return}if(!a.trim()||c.trim().length<8){r({status:"warning",title:"Identifiants admin requis (mot de passe : 8 caractères min.)"});return}if(ve==="s3"&&(!se.trim()||!Oe.trim())){r({status:"warning",title:"Bucket et endpoint S3 requis"});return}if(O&&!I.trim()&&!le.trim()){r({status:"warning",title:"Au moins un bot (username) requis pour le load-balancer"});return}if(C&&!j.trim()){r({status:"warning",title:"La clé API TomTom principale est requise"});return}const ue={username:i.trim(),adminUsername:a.trim(),adminPassword:c.trim(),telegramBotUsername:d&&p.trim()||void 0,telegramBotToken:d&&v.trim()||void 0,nowPaymentsApiKey:x&&g.trim()||void 0,nowPaymentsIpnSecret:x&&w.trim()||void 0,storageDriver:ve,...ve==="s3"?{s3Bucket:se.trim(),s3Endpoint:Oe.trim()}:{},...C?{tomtomApiKey:j.trim(),tomtomApiKey1:T.trim()||void 0,tomtomApiKey2:K.trim()||void 0,tomtomApiKey3:M.trim()||void 0}:{},...O?{lbBot1Username:I.trim()||void 0,lbBot1Token:q.trim()||void 0,lbBot2Username:le.trim()||void 0,lbBot2Token:Q.trim()||void 0,lbStrategy:ce,lbJwtTtlSeconds:Ze.trim()||void 0,lbHealthCheckInterval:re.trim()||void 0}:{}};Jt(!0);try{await Pe.createDemo(ue),r({status:"success",title:"Démo lancée",description:"Provisioning en cours."}),At(),n(),t()}catch(sr){const ci=sr instanceof Ee?sr.message:"Erreur";r({status:"error",title:"Lancement impossible",description:ci})}finally{Jt(!1)}};return s.jsxs(Va,{isOpen:e,onClose:An,size:"lg",closeOnOverlayClick:!je,children:[s.jsx(Bo,{}),s.jsxs(zl,{children:[s.jsx(Fo,{children:"Nouvelle démo"}),s.jsx(Ua,{isDisabled:je}),s.jsx(Oo,{children:s.jsxs(we,{spacing:5,children:[s.jsxs(ke,{isRequired:!0,isDisabled:je,children:[s.jsx(Ce,{children:"Username"}),s.jsx(mt,{placeholder:"ex: acme-corp",value:i,onChange:ue=>o(ue.target.value)})]}),s.jsxs(we,{spacing:3,p:3,borderWidth:"1px",borderRadius:"md",children:[s.jsx(U,{fontSize:"sm",fontWeight:"semibold",children:"Compte admin de la démo"}),s.jsx(U,{fontSize:"xs",color:"gray.500",children:"Créé une fois postgres/redis/backend/frontend démarrés — c'est ce que le client utilisera pour se connecter au backoffice de sa démo."}),s.jsxs(ye,{spacing:3,align:"start",children:[s.jsxs(ke,{isRequired:!0,isDisabled:je,children:[s.jsx(Ce,{fontSize:"sm",children:"Username"}),s.jsx(mt,{value:a,onChange:ue=>l(ue.target.value)})]}),s.jsxs(ke,{isRequired:!0,isDisabled:je,children:[s.jsx(Ce,{fontSize:"sm",children:"Mot de passe"}),s.jsx(nn,{placeholder:"8 caractères min.",value:c,onChange:ue=>u(ue.target.value),autoComplete:"off"})]})]})]}),s.jsx(ke,{isDisabled:je,children:s.jsxs(ye,{justify:"space-between",children:[s.jsx(Ce,{mb:0,children:"Bot Telegram"}),s.jsx(bc,{isChecked:d,onChange:ue=>f(ue.target.checked)})]})}),d&&s.jsxs(we,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsxs(ke,{isDisabled:je,children:[s.jsx(Ce,{fontSize:"sm",children:"Nom du bot (username)"}),s.jsx(mt,{placeholder:"mon_bot",value:p,onChange:ue=>h(ue.target.value)})]}),s.jsxs(ke,{isDisabled:je,children:[s.jsx(Ce,{fontSize:"sm",children:"Token bot Telegram"}),s.jsx(nn,{placeholder:"123456:ABC-DEF...",value:v,onChange:ue=>b(ue.target.value),autoComplete:"off"})]})]}),s.jsx(ke,{isDisabled:je,children:s.jsxs(ye,{justify:"space-between",children:[s.jsx(Ce,{mb:0,children:"NowPayments (paiement crypto)"}),s.jsx(bc,{isChecked:x,onChange:ue=>y(ue.target.checked)})]})}),x&&s.jsxs(we,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsxs(ke,{isDisabled:je,children:[s.jsx(Ce,{fontSize:"sm",children:"Clé API NowPayments"}),s.jsx(nn,{placeholder:"clé API du compte marchand",value:g,onChange:ue=>S(ue.target.value),autoComplete:"off"})]}),s.jsxs(ke,{isDisabled:je,children:[s.jsx(Ce,{fontSize:"sm",children:"Secret IPN NowPayments"}),s.jsx(nn,{placeholder:"secret configuré côté NowPayments",value:w,onChange:ue=>k(ue.target.value),autoComplete:"off"}),s.jsx(U,{fontSize:"xs",color:"gray.500",mt:1,children:"Laissez vide pour garder celui pré-généré automatiquement."})]})]}),s.jsx(ke,{isDisabled:je,children:s.jsxs(ye,{justify:"space-between",children:[s.jsx(Ce,{mb:0,children:"TomTom (GPS livreur)"}),s.jsx(bc,{isChecked:C,onChange:ue=>P(ue.target.checked)})]})}),C&&s.jsxs(we,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsx(U,{fontSize:"xs",color:"gray.500",children:"Géocodage, itinéraire et ETA des livreurs. Jusqu'à 4 clés — le backend bascule automatiquement sur la suivante si une clé atteint son quota."}),s.jsxs(ke,{isRequired:!0,isDisabled:je,children:[s.jsx(Ce,{fontSize:"sm",children:"Clé API TomTom (principale)"}),s.jsx(nn,{placeholder:"clé API TomTom",value:j,onChange:ue=>R(ue.target.value),autoComplete:"off"})]}),s.jsxs(ke,{isDisabled:je,children:[s.jsx(Ce,{fontSize:"sm",children:"Clé API TomTom #2 (optionnelle)"}),s.jsx(nn,{placeholder:"clé de secours",value:T,onChange:ue=>$(ue.target.value),autoComplete:"off"})]}),s.jsxs(ke,{isDisabled:je,children:[s.jsx(Ce,{fontSize:"sm",children:"Clé API TomTom #3 (optionnelle)"}),s.jsx(nn,{placeholder:"clé de secours",value:K,onChange:ue=>X(ue.target.value),autoComplete:"off"})]}),s.jsxs(ke,{isDisabled:je,children:[s.jsx(Ce,{fontSize:"sm",children:"Clé API TomTom #4 (optionnelle)"}),s.jsx(nn,{placeholder:"clé de secours",value:M,onChange:ue=>N(ue.target.value),autoComplete:"off"})]})]}),s.jsx(ke,{isDisabled:je,children:s.jsxs(ye,{justify:"space-between",children:[s.jsx(Ce,{mb:0,children:"Load-balancer Telegram"}),s.jsx(bc,{isChecked:O,onChange:ue=>L(ue.target.checked)})]})}),O&&s.jsxs(we,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsx(U,{fontSize:"xs",color:"gray.500",children:"Répartit le trafic entre plusieurs bots. Renseignez au moins le bot 1 ; le bot 2 est optionnel."}),s.jsxs(ye,{spacing:3,align:"start",children:[s.jsxs(ke,{isDisabled:je,children:[s.jsx(Ce,{fontSize:"sm",children:"Bot 1 — username"}),s.jsx(mt,{placeholder:"mon_bot_1",value:I,onChange:ue=>D(ue.target.value)})]}),s.jsxs(ke,{isDisabled:je,children:[s.jsx(Ce,{fontSize:"sm",children:"Bot 1 — token"}),s.jsx(nn,{placeholder:"123456:ABC-DEF...",value:q,onChange:ue=>J(ue.target.value),autoComplete:"off"})]})]}),s.jsxs(ye,{spacing:3,align:"start",children:[s.jsxs(ke,{isDisabled:je,children:[s.jsx(Ce,{fontSize:"sm",children:"Bot 2 — username (optionnel)"}),s.jsx(mt,{placeholder:"mon_bot_2",value:le,onChange:ue=>oe(ue.target.value)})]}),s.jsxs(ke,{isDisabled:je,children:[s.jsx(Ce,{fontSize:"sm",children:"Bot 2 — token"}),s.jsx(nn,{placeholder:"123456:ABC-DEF...",value:Q,onChange:ue=>ae(ue.target.value),autoComplete:"off"})]})]}),s.jsxs(ye,{spacing:3,align:"start",children:[s.jsxs(ke,{isDisabled:je,children:[s.jsx(Ce,{fontSize:"sm",children:"Stratégie de répartition"}),s.jsxs(Hm,{value:ce,onChange:ue=>Me(ue.target.value),children:[s.jsx("option",{value:"failover",children:"Failover"}),s.jsx("option",{value:"roundrobin",children:"Round-robin"}),s.jsx("option",{value:"leastconn",children:"Moins de connexions"})]})]}),s.jsxs(ke,{isDisabled:je,children:[s.jsx(Ce,{fontSize:"sm",children:"TTL JWT (secondes)"}),s.jsx(mt,{placeholder:"300",value:Ze,onChange:ue=>ne(ue.target.value),type:"number"})]}),s.jsxs(ke,{isDisabled:je,children:[s.jsx(Ce,{fontSize:"sm",children:"Intervalle health-check (s)"}),s.jsx(mt,{placeholder:"30",value:re,onChange:ue=>_e(ue.target.value),type:"number"})]})]})]}),s.jsxs(ke,{isDisabled:je,children:[s.jsx(Ce,{children:"Stockage des fichiers"}),s.jsx(IT,{value:ve,onChange:ue=>Ke(ue),children:s.jsxs(we,{direction:"row",spacing:6,children:[s.jsx(Hv,{value:"local",children:"Local (disque du cluster)"}),s.jsx(Hv,{value:"s3",children:"S3"})]})})]}),ve==="s3"&&s.jsxs(we,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsxs(ke,{isRequired:!0,isDisabled:je,children:[s.jsx(Ce,{fontSize:"sm",children:"Nom du bucket"}),s.jsx(mt,{placeholder:"mon-bucket-demo",value:se,onChange:ue=>nt(ue.target.value)})]}),s.jsxs(ke,{isRequired:!0,isDisabled:je,children:[s.jsx(Ce,{fontSize:"sm",children:"Endpoint S3"}),s.jsx(mt,{placeholder:"https://s3.exemple.com",value:Oe,onChange:ue=>kt(ue.target.value)})]})]})]})}),s.jsxs(Il,{children:[s.jsx(he,{variant:"ghost",mr:3,onClick:An,isDisabled:je,children:"Annuler"}),s.jsx(he,{colorScheme:"primary",onClick:$n,isLoading:je,children:"Lancer la démo"})]})]})]})}function Vx({demo:e,onClose:t,onSaved:n,save:r,title:i,helpText:o}){const a=Tn(),[l,c]=m.useState(""),[u,d]=m.useState(!1);m.useEffect(()=>{c((e==null?void 0:e.custom_domain)??"")},[e]);const f=()=>{u||t()},p=async()=>{if(e){d(!0);try{await(r??Pe.setDemoDomain)(e.id,l.trim()),a({status:"success",title:"Domaine mis à jour"}),n(),t()}catch(h){const v=h instanceof Ee?h.message:"Erreur";a({status:"error",title:"Mise à jour impossible",description:v})}finally{d(!1)}}};return s.jsxs(Va,{isOpen:!!e,onClose:f,closeOnOverlayClick:!u,children:[s.jsx(Bo,{}),s.jsxs(zl,{children:[s.jsx(Fo,{children:i??"Domaine de la plateforme"}),s.jsx(Ua,{isDisabled:u}),s.jsx(Oo,{children:s.jsxs(ke,{children:[s.jsx(Ce,{fontSize:"sm",children:"Domaine personnalisé"}),s.jsx(mt,{placeholder:"boutique.mon-domaine.com",value:l,onChange:h=>c(h.target.value),isDisabled:u,fontFamily:"mono"}),s.jsx(Qr,{children:o??s.jsxs(s.Fragment,{children:["Laissez vide pour revenir au domaine par défaut (",e==null?void 0:e.namespace,".). Le DNS du domaine choisi doit pointer vers le cluster, et un certificat TLS valide doit le couvrir — le certificat wildcard partagé ne couvre que le domaine par défaut."]})})]})}),s.jsxs(Il,{children:[s.jsx(he,{variant:"ghost",mr:3,onClick:f,isDisabled:u,children:"Annuler"}),s.jsx(he,{colorScheme:"primary",onClick:p,isLoading:u,children:"Enregistrer"})]})]})]})}const xue=[{key:"api",label:"Backend"},{key:"web",label:"Frontend"},{key:"db",label:"PostgreSQL"},{key:"dbm",label:"Redis"}],Sue=[{key:"lb",label:"Load-balancer Telegram"}];function dh({state:e}){const t=Sue.filter(o=>e[o.key].phase!==""),n=[...xue,...t],r=n.every(o=>e[o.key].phase==="Running"),i=n.filter(o=>e[o.key].phase!=="Running").length;return s.jsxs(we,{spacing:3,children:[s.jsxs(ye,{spacing:2,children:[s.jsx(Z,{w:"8px",h:"8px",borderRadius:"full",bg:r?"green.400":"red.400",flexShrink:0}),s.jsx(U,{fontSize:"sm",fontWeight:"medium",children:r?"Tous les services sont opérationnels":`${i} service${i>1?"s":""} indisponible${i>1?"s":""}`})]}),s.jsx(Yt,{columns:{base:1,lg:4},spacing:3,children:n.map(o=>s.jsx(wue,{title:o.label,cs:e[o.key]},o.key))})]})}function wue({title:e,cs:t}){const n=t.cpu_limit_milli>0?Math.min(100,Math.round(t.cpu_milli/t.cpu_limit_milli*100)):0,r=t.memory_limit_mi>0?Math.min(100,Math.round(t.memory_mi/t.memory_limit_mi*100)):0;return s.jsxs(Z,{p:3,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",minW:0,children:[s.jsxs(ye,{justify:"space-between",mb:3,children:[s.jsx(U,{fontSize:"sm",fontWeight:"semibold",noOfLines:1,children:e}),s.jsxs(ye,{spacing:1.5,children:[s.jsx(Z,{w:"7px",h:"7px",borderRadius:"full",bg:`${Tk(t.phase)}.400`,flexShrink:0}),s.jsx(Bt,{colorScheme:Tk(t.phase),fontSize:"10px",children:hue(t.phase)})]})]}),s.jsxs(we,{spacing:2,children:[s.jsxs(Z,{children:[s.jsxs(gt,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[s.jsx(U,{children:"CPU"}),s.jsxs(U,{fontFamily:"mono",children:[t.cpu_milli,"m / ",t.cpu_limit_milli,"m"]})]}),s.jsx(Bp,{value:n,size:"xs",borderRadius:"full",colorScheme:n>85?"red":n>60?"orange":"primary"})]}),s.jsxs(Z,{children:[s.jsxs(gt,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[s.jsx(U,{children:"Mémoire"}),s.jsxs(U,{fontFamily:"mono",children:[t.memory_mi,"Mi / ",t.memory_limit_mi,"Mi"]})]}),s.jsx(Bp,{value:r,size:"xs",borderRadius:"full",colorScheme:r>85?"red":r>60?"orange":"primary"})]})]})]})}function fh(e){return s.jsx(wt,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,...e,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 18l6-6-6-6"})})}function d7({demo:e,isOpen:t,onToggle:n,detailsLoading:r,details:i,onEditDomain:o,expiresLabel:a,actions:l}){return s.jsxs(Z,{borderWidth:"1px",borderRadius:"lg",overflow:"hidden",bg:"bg-surface",children:[s.jsxs(Z,{p:4,cursor:"pointer",onClick:n,_active:{bg:"chakra-subtle-bg"},children:[s.jsxs(ye,{justify:"space-between",align:"start",children:[s.jsxs(ye,{spacing:2,minW:0,flex:"1",children:[s.jsx(wt,{as:fh,boxSize:3,color:"gray.400",flexShrink:0,transform:t?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(U,{fontFamily:"mono",fontSize:"sm",noOfLines:1,wordBreak:"break-all",minW:0,flex:"1",children:e.namespace})]}),s.jsx(Bt,{colorScheme:ch(e.status),flexShrink:0,children:uh(e.status)})]}),s.jsxs(we,{spacing:1,mt:3,fontSize:"sm",children:[s.jsxs(ye,{justify:"space-between",children:[s.jsx(U,{color:"gray.500",children:"Client"}),s.jsx(U,{children:e.username||"—"})]}),s.jsxs(ye,{justify:"space-between",align:"start",children:[s.jsx(U,{color:"gray.500",flexShrink:0,children:"URL"}),s.jsxs(ye,{spacing:1,minW:0,flex:"1",justify:"flex-end",children:[e.status==="ready"?s.jsx(Oi,{href:e.url,color:"primary.500",isExternal:!0,noOfLines:1,wordBreak:"break-all",minW:0,flex:"1",onClick:c=>c.stopPropagation(),children:e.url}):s.jsx(U,{color:"gray.400",children:"—"}),s.jsx(xn,{"aria-label":"Modifier le domaine",icon:s.jsx(Nl,{}),size:"xs",variant:"ghost",flexShrink:0,onClick:c=>{c.stopPropagation(),o()}})]})]}),a&&s.jsxs(ye,{justify:"space-between",children:[s.jsx(U,{color:"gray.500",children:"Expire dans"}),s.jsx(U,{children:a})]})]}),l&&s.jsx(ye,{mt:3,spacing:2,flexWrap:"wrap",rowGap:2,onClick:c=>c.stopPropagation(),children:l})]}),s.jsx(Al,{in:t,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(Z,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:r&&!i?s.jsx(ye,{justify:"center",py:2,children:s.jsx(un,{size:"sm"})}):i?s.jsx(dh,{state:i.state}):s.jsx(U,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})]})}const kue=5e3,Cue=5e3;function jue(){const e=Tn(),t=Vn(),[n,r]=m.useState([]),[i,o]=m.useState(!0),[a,l]=m.useState(null),[c,u]=m.useState(null),[d,f]=m.useState(null),[p,h]=m.useState(null),[v,b]=m.useState(!1),[x,y]=m.useState(null),[g,S]=m.useState(null),[w,k]=m.useState(null),[C,P]=m.useState(!1),j=m.useCallback(async()=>{try{const N=await Pe.listDemos();r((N.items??[]).filter(O=>O.type_abonnement!=="premium"&&O.status!=="expired"))}catch(N){N instanceof Ee&&N.status===401?t("/admin/login"):e({status:"error",title:"Chargement des démos impossible"})}finally{o(!1)}},[t,e]);m.useEffect(()=>{j();const N=setInterval(()=>void j(),kue);return()=>clearInterval(N)},[j]);const R=async()=>{if(!p)return;const N=p;l(N.id);try{await Pe.extendDemo(N.id),e({status:"success",title:"Démo prolongée de 30 jours"}),h(null),await j()}catch(O){const L=O instanceof Ee?O.message:"Erreur";e({status:"error",title:"Prolongation impossible",description:L})}finally{l(null)}},T=async()=>{if(!c)return;const N=c;l(N.id);try{await Pe.deleteDemo(N.id),e({status:"success",title:"Démo détruite"}),u(null),await j()}catch(O){const L=O instanceof Ee?O.message:"Erreur";e({status:"error",title:"Destruction impossible",description:L})}finally{l(null)}},$=async()=>{if(!d)return;const N=d;l(N.id);try{await Pe.transferDemoToPremium(N.id),e({status:"success",title:"Démo passée en premium",description:"La migration des données tourne en tâche de fond."}),f(null),await j()}catch(O){const L=O instanceof Ee?O.message:"Erreur";e({status:"error",title:"Passage en premium impossible",description:L})}finally{l(null)}},K=async N=>{if(g===N.id){S(null),k(null);return}S(N.id),k(null),P(!0);try{const O=await Pe.getDemoDetails(N.namespace);k(O)}catch(O){const L=O instanceof Ee?O.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:L}),S(null)}finally{P(!1)}};m.useEffect(()=>{const N=n.find(I=>I.id===g);if(!N)return;const O=N.namespace,L=setInterval(()=>{Pe.getDemoDetails(O).then(k).catch(()=>{})},Cue);return()=>clearInterval(L)},[g]);const X=N=>N!=="expired"&&N!=="failed",M=N=>s.jsxs(s.Fragment,{children:[s.jsx(he,{size:"sm",variant:"outline",isDisabled:!X(N.status)||a===N.id,onClick:O=>{O.stopPropagation(),h(N)},children:"+30 j"}),s.jsx(he,{size:"sm",colorScheme:"purple",variant:"outline",isDisabled:!X(N.status)||a===N.id,onClick:O=>{O.stopPropagation(),f(N)},children:"Passer en premium"}),s.jsx(he,{size:"sm",colorScheme:"red",variant:"outline",isDisabled:!X(N.status),onClick:O=>{O.stopPropagation(),u(N)},children:"Détruire"})]});return s.jsxs(s.Fragment,{children:[s.jsxs(gt,{mb:6,align:"center",gap:4,wrap:"wrap",children:[s.jsx(Ne,{size:"md",mr:4,children:"Démos"}),s.jsx(Fi,{}),s.jsx(he,{colorScheme:"primary",onClick:()=>b(!0),children:"Nouvelle démo"})]}),s.jsx(u7,{isOpen:v,onClose:()=>b(!1),onCreated:()=>void j()}),i?s.jsx(un,{}):n.length===0?s.jsx(U,{color:"gray.500",children:"Aucune démo active. Lancez-en une avec le bouton ci-dessus."}):s.jsxs(s.Fragment,{children:[s.jsx(Eu,{borderWidth:"1px",borderRadius:"lg",display:{base:"none",md:"block"},children:s.jsxs(yl,{children:[s.jsx($u,{children:s.jsxs(Gn,{children:[s.jsx(et,{children:"Namespace"}),s.jsx(et,{children:"Client"}),s.jsx(et,{children:"Statut"}),s.jsx(et,{children:"URL"}),s.jsx(et,{children:"Expire dans"}),s.jsx(et,{})]})}),s.jsx(Au,{children:n.map(N=>{const O=g===N.id;return s.jsxs(m.Fragment,{children:[s.jsxs(Gn,{cursor:"pointer",bg:O?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>K(N),children:[s.jsx(Ge,{fontFamily:"mono",children:s.jsxs(ye,{spacing:2,children:[s.jsx(wt,{as:fh,boxSize:3,color:"gray.400",transform:O?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(U,{children:N.namespace})]})}),s.jsx(Ge,{children:N.username?s.jsx(U,{children:N.username}):s.jsx(U,{color:"gray.400",children:"—"})}),s.jsx(Ge,{children:s.jsx(Bt,{colorScheme:ch(N.status),children:uh(N.status)})}),s.jsx(Ge,{children:s.jsxs(ye,{spacing:1,children:[N.status==="ready"?s.jsx(Oi,{href:N.url,color:"primary.500",isExternal:!0,onClick:L=>L.stopPropagation(),children:N.url}):s.jsx(U,{color:"gray.400",children:"—"}),s.jsx(xn,{"aria-label":"Modifier le domaine",icon:s.jsx(Nl,{}),size:"xs",variant:"ghost",onClick:L=>{L.stopPropagation(),y(N)}})]})}),s.jsx(Ge,{children:X(N.status)?yy(N.expires_at):"—"}),s.jsx(Ge,{textAlign:"right",children:s.jsx(ye,{justify:"flex-end",children:M(N)})})]}),s.jsx(Gn,{children:s.jsx(Ge,{p:0,border:O?void 0:"none",colSpan:6,children:s.jsx(Al,{in:O,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(Z,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:C&&!w?s.jsx(gt,{justify:"center",py:4,children:s.jsx(un,{size:"sm"})}):w?s.jsx(dh,{state:w.state}):s.jsx(U,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},N.id)})})]})}),s.jsx(we,{spacing:3,display:{base:"flex",md:"none"},children:n.map(N=>s.jsx(d7,{demo:N,isOpen:g===N.id,onToggle:()=>K(N),detailsLoading:C,details:g===N.id?w:null,onEditDomain:()=>y(N),expiresLabel:X(N.status)?yy(N.expires_at):"—",actions:M(N)},N.id))})]}),s.jsxs(Gc,{isOpen:!!p,title:"Prolonger la démo de 30 jours ?",confirmLabel:"Prolonger",confirmColorScheme:"primary",isLoading:!!p&&a===p.id,onConfirm:R,onClose:()=>h(null),children:["La démo"," ",s.jsx(U,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:p==null?void 0:p.namespace})," ","verra sa date d'expiration repoussée de 30 jours."]}),s.jsxs(Gc,{isOpen:!!c,title:"Détruire la démo ?",confirmLabel:"Détruire",isLoading:!!c&&a===c.id,onConfirm:T,onClose:()=>u(null),children:["La démo"," ",s.jsx(U,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:c==null?void 0:c.namespace})," ","et toutes ses données seront supprimées définitivement. Les ressources du pool seront libérées. Cette action est irréversible."]}),s.jsxs(Gc,{isOpen:!!d,title:"Passer cette démo en premium ?",confirmLabel:"Passer en premium",confirmColorScheme:"purple",isLoading:!!d&&a===d.id,onConfirm:$,onClose:()=>f(null),children:["La démo"," ",s.jsx(U,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:d==null?void 0:d.namespace})," ","n'expirera plus et sera migrée vers un namespace dédié (données conservées). Cette opération tourne en tâche de fond et n'est pas instantanée."]}),s.jsx(Vx,{demo:x,onClose:()=>y(null),onSaved:()=>void j()})]})}const Pue=5e3,_ue=5e3;function Tue(){const e=Tn(),t=Vn(),[n,r]=m.useState([]),[i,o]=m.useState(!0),[a,l]=m.useState(null),[c,u]=m.useState(null),[d,f]=m.useState(!1),[p,h]=m.useState(null),[v,b]=m.useState(null),[x,y]=m.useState(null),[g,S]=m.useState(!1),w=m.useCallback(async()=>{try{const j=await Pe.listDemos();r((j.items??[]).filter(R=>R.type_abonnement==="premium"&&R.status!=="expired"))}catch(j){j instanceof Ee&&j.status===401?t("/admin/login"):e({status:"error",title:"Chargement des démos impossible"})}finally{o(!1)}},[t,e]);m.useEffect(()=>{w();const j=setInterval(()=>void w(),Pue);return()=>clearInterval(j)},[w]);const k=async()=>{if(!c)return;const j=c;l(j.id);try{await Pe.deleteDemo(j.id),e({status:"success",title:"Plateforme détruite"}),u(null),await w()}catch(R){const T=R instanceof Ee?R.message:"Erreur";e({status:"error",title:"Destruction impossible",description:T})}finally{l(null)}},C=async j=>{if(v===j.id){b(null),y(null);return}b(j.id),y(null),S(!0);try{const R=await Pe.getDemoDetails(j.namespace);y(R)}catch(R){const T=R instanceof Ee?R.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:T}),b(null)}finally{S(!1)}};m.useEffect(()=>{const j=n.find($=>$.id===v);if(!j)return;const R=j.namespace,T=setInterval(()=>{Pe.getDemoDetails(R).then(y).catch(()=>{})},_ue);return()=>clearInterval(T)},[v]);const P=j=>s.jsx(he,{size:"sm",colorScheme:"red",variant:"outline",isDisabled:a===j.id,onClick:R=>{R.stopPropagation(),u(j)},children:"Détruire"});return s.jsxs(s.Fragment,{children:[s.jsxs(gt,{mb:2,align:"center",gap:4,wrap:"wrap",children:[s.jsx(Ne,{size:"md",mr:4,children:"Plateforme Premium"}),s.jsx(Fi,{}),s.jsx(he,{colorScheme:"primary",onClick:()=>f(!0),children:"Déployer une plateforme"})]}),s.jsx(U,{color:"gray.500",mb:6,fontSize:"sm",children:"Démos rattachées à un client passé en abonnement payant — stockage persistant, n'expirent plus."}),s.jsx(u7,{isOpen:d,onClose:()=>f(!1),onCreated:()=>void w()}),i?s.jsx(un,{}):n.length===0?s.jsx(U,{color:"gray.500",children:"Aucune démo premium pour le moment."}):s.jsxs(s.Fragment,{children:[s.jsx(Eu,{borderWidth:"1px",borderRadius:"lg",display:{base:"none",md:"block"},children:s.jsxs(yl,{children:[s.jsx($u,{children:s.jsxs(Gn,{children:[s.jsx(et,{children:"Namespace"}),s.jsx(et,{children:"Client"}),s.jsx(et,{children:"Statut"}),s.jsx(et,{children:"URL"}),s.jsx(et,{})]})}),s.jsx(Au,{children:n.map(j=>{const R=v===j.id;return s.jsxs(m.Fragment,{children:[s.jsxs(Gn,{cursor:"pointer",bg:R?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>C(j),children:[s.jsx(Ge,{fontFamily:"mono",children:s.jsxs(ye,{spacing:2,children:[s.jsx(wt,{as:fh,boxSize:3,color:"gray.400",transform:R?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(U,{children:j.namespace})]})}),s.jsx(Ge,{children:j.username||s.jsx(U,{color:"gray.400",children:"—"})}),s.jsx(Ge,{children:s.jsx(Bt,{colorScheme:ch(j.status),children:uh(j.status)})}),s.jsx(Ge,{children:s.jsxs(ye,{spacing:1,children:[j.status==="ready"?s.jsx(Oi,{href:j.url,color:"primary.500",isExternal:!0,onClick:T=>T.stopPropagation(),children:j.url}):s.jsx(U,{color:"gray.400",children:"—"}),s.jsx(xn,{"aria-label":"Modifier le domaine",icon:s.jsx(Nl,{}),size:"xs",variant:"ghost",onClick:T=>{T.stopPropagation(),h(j)}})]})}),s.jsx(Ge,{textAlign:"right",children:s.jsx(ye,{justify:"flex-end",children:P(j)})})]}),s.jsx(Gn,{children:s.jsx(Ge,{p:0,border:R?void 0:"none",colSpan:5,children:s.jsx(Al,{in:R,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(Z,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:g&&!x?s.jsx(un,{size:"sm"}):x?s.jsx(dh,{state:x.state}):s.jsx(U,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},j.id)})})]})}),s.jsx(we,{spacing:3,display:{base:"flex",md:"none"},children:n.map(j=>s.jsx(d7,{demo:j,isOpen:v===j.id,onToggle:()=>C(j),detailsLoading:g,details:v===j.id?x:null,onEditDomain:()=>h(j),actions:P(j)},j.id))})]}),s.jsxs(Gc,{isOpen:!!c,title:"Détruire la plateforme premium ?",confirmLabel:"Détruire",isLoading:!!c&&a===c.id,onConfirm:k,onClose:()=>u(null),children:["La plateforme"," ",s.jsx(U,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:c==null?void 0:c.namespace})," ","et toutes ses données (client payant) seront supprimées définitivement. Cette action est irréversible."]}),s.jsx(Vx,{demo:p,onClose:()=>h(null),onSaved:()=>void w()})]})}const Eue=1e4;function Ek(e){if(!e)return"—";const t=new Date(e);return Number.isNaN(t.getTime())?"—":t.toLocaleDateString("fr-FR",{day:"2-digit",month:"long",year:"numeric"})}function Aue(e){if(!e)return null;const t=new Date(e);return Number.isNaN(t.getTime())?null:Math.ceil((t.getTime()-Date.now())/(1e3*60*60*24))}function $ue(){const e=Tn(),t=Vn(),[n,r]=m.useState([]),[i,o]=m.useState([]),[a,l]=m.useState(!0),[c,u]=m.useState(null),[d,f]=m.useState(""),[p,h]=m.useState(null),v=m.useCallback(async()=>{try{const[y,g]=await Promise.all([Pe.listCodes(),Pe.listPremiumUsers()]);r(y.items??[]),o(g.items??[])}catch(y){y instanceof Ee&&y.status===401?t("/admin/login"):e({status:"error",title:"Chargement des codes impossible"})}finally{l(!1)}},[t,e]);m.useEffect(()=>{v();const y=setInterval(()=>void v(),Eue);return()=>clearInterval(y)},[v]);const b=async y=>{if(y.preventDefault(),!d.trim()){e({status:"error",title:"Veuillez entrer un nom d'utilisateur"});return}u("generate");try{const g=await Pe.createCode(d.trim());h(g.code),f(""),e({status:"success",title:"Code généré avec succès !"}),await v()}catch(g){const S=g instanceof Ee?g.message:"Erreur";e({status:"error",title:"Génération impossible",description:S})}finally{u(null)}},x=async y=>{try{await navigator.clipboard.writeText(y),e({status:"success",title:"Code copié dans le presse-papiers !"})}catch{const S=document.createElement("textarea");S.value=y,S.style.position="fixed",S.style.opacity="0",document.body.appendChild(S),S.select();const w=document.execCommand("copy");document.body.removeChild(S),e(w?{status:"success",title:"Code copié dans le presse-papiers !"}:{status:"error",title:"Impossible de copier. Essayez manuellement."})}};return s.jsxs(s.Fragment,{children:[s.jsxs(gt,{mb:6,align:"center",children:[s.jsx(Ne,{size:"md",children:"Gestion des codes de souscription"}),s.jsx(Fi,{})]}),s.jsx(Z,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:s.jsx("form",{onSubmit:b,children:s.jsxs(od,{spacing:4,align:"stretch",children:[s.jsxs(we,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{children:"Nom d\\'utilisateur"}),s.jsx(mt,{type:"text",value:d,onChange:y=>f(y.target.value),placeholder:"Entrez le nom d'utilisateur",isDisabled:c==="generate",maxLength:64})]}),s.jsx(he,{colorScheme:"primary",type:"submit",isLoading:c==="generate",mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},children:"Générer un code"})]}),p&&s.jsxs(Z,{p:4,bg:"gray.900",borderRadius:"md",borderWidth:"1px",borderColor:"whiteAlpha.200",children:[s.jsxs(U,{fontSize:"sm",color:"gray.400",mb:2,children:["Code généré pour ",s.jsx("strong",{children:d})," :"]}),s.jsxs(ye,{children:[s.jsx(U,{fontFamily:"mono",fontSize:"xl",fontWeight:"bold",letterSpacing:"widest",children:p}),s.jsx(he,{size:"sm",variant:"outline",onClick:()=>x(p),children:"Copier"})]})]})]})})}),s.jsx(Ne,{size:"sm",mb:3,children:"Codes générés (non encore utilisés)"}),a?s.jsx(un,{}):n.length===0?s.jsx(U,{color:"gray.500",children:"Aucun code de souscription généré."}):s.jsx(Eu,{borderWidth:"1px",borderRadius:"lg",children:s.jsxs(yl,{children:[s.jsx($u,{children:s.jsxs(Gn,{children:[s.jsx(et,{children:"ID"}),s.jsx(et,{children:"Utilisateur"}),s.jsx(et,{children:"Code"}),s.jsx(et,{children:"Date de création"}),s.jsx(et,{})]})}),s.jsx(Au,{children:n.map(y=>s.jsxs(Gn,{children:[s.jsxs(Ge,{fontFamily:"mono",fontSize:"sm",children:[y.id.slice(0,8),"..."]}),s.jsx(Ge,{children:s.jsx(Bt,{colorScheme:"gray",px:2,py:1,children:y.username})}),s.jsx(Ge,{fontFamily:"mono",letterSpacing:"wide",children:y.code_verif}),s.jsx(Ge,{fontSize:"sm",color:"gray.400",children:new Date(y.created_at).toLocaleString("fr-FR")}),s.jsx(Ge,{textAlign:"right",children:s.jsx(he,{size:"sm",variant:"outline",onClick:()=>x(y.code_verif),children:"Copier"})})]},y.id))})]})}),s.jsx(Ne,{size:"sm",mt:10,mb:3,children:"Clients premium"}),a?s.jsx(un,{}):i.length===0?s.jsx(U,{color:"gray.500",children:"Aucun client premium pour le moment."}):s.jsx(Eu,{borderWidth:"1px",borderRadius:"lg",children:s.jsxs(yl,{children:[s.jsx($u,{children:s.jsxs(Gn,{children:[s.jsx(et,{children:"Client"}),s.jsx(et,{children:"Code activé le"}),s.jsx(et,{children:"Abonnement expire le"}),s.jsx(et,{children:"Statut"})]})}),s.jsx(Au,{children:i.map(y=>{const g=Aue(y.expired_at);return s.jsxs(Gn,{children:[s.jsx(Ge,{children:s.jsx(Bt,{colorScheme:"purple",px:2,py:1,children:y.username})}),s.jsx(Ge,{fontSize:"sm",color:"gray.400",children:Ek(y.activated_at)}),s.jsx(Ge,{fontSize:"sm",color:"gray.400",children:Ek(y.expired_at)}),s.jsx(Ge,{children:g===null?s.jsx(U,{color:"gray.400",children:"—"}):g<0?s.jsx(Bt,{colorScheme:"red",children:"Expiré"}):s.jsxs(Bt,{colorScheme:g<=7?"orange":"green",children:[g," j restant",g>1?"s":""]})})]},y.username)})})]})})]})}const rg=12;function zue({isOpen:e,onClose:t,onCreated:n}){const r=Tn(),[i,o]=m.useState(""),[a,l]=m.useState(1),[c,u]=m.useState(""),[d,f]=m.useState(""),[p,h]=m.useState(1),[v,b]=m.useState(!1),x=/^[A-Za-z0-9]{3,64}$/.test(c),y=i.trim().length>0&&x&&d.length>=rg&&p>=1,g=()=>{o(""),l(1),u(""),f(""),h(1)},S=()=>{v||(g(),t())},w=async()=>{b(!0);try{await Pe.createProject({clientName:i.trim(),months:a,adminUsername:c,adminPassword:d,adminNumber:p}),r({status:"success",title:"Déploiement lancé",description:`Abonnement de ${Ou(a)}`}),g(),n(),t()}catch(k){const C=k instanceof Ee?k.message:"Erreur";r({status:"error",title:"Déploiement impossible",description:C})}finally{b(!1)}};return s.jsxs(Va,{isOpen:e,onClose:S,closeOnOverlayClick:!v,children:[s.jsx(Bo,{}),s.jsxs(zl,{children:[s.jsx(Fo,{children:"Déployer un projet"}),s.jsx(Ua,{isDisabled:v}),s.jsx(Oo,{children:s.jsxs(we,{spacing:4,children:[s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{fontSize:"sm",children:"Client"}),s.jsx(mt,{value:i,maxLength:64,onChange:k=>o(k.target.value),isDisabled:v})]}),s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{fontSize:"sm",children:"Durée de l'abonnement"}),s.jsx(Hm,{value:a,onChange:k=>l(Number(k.target.value)),isDisabled:v,children:c7.map(k=>s.jsx("option",{value:k,children:Ou(k)},k))}),s.jsx(Qr,{children:"Durée réellement payée par le client. À l'échéance le projet est supprimé s'il n'est pas renouvelé."})]}),s.jsxs(ke,{isRequired:!0,isInvalid:c!==""&&!x,children:[s.jsx(Ce,{fontSize:"sm",children:"Identifiant admin du projet"}),s.jsx(mt,{value:c,maxLength:64,onChange:k=>u(k.target.value),isDisabled:v,autoComplete:"off"}),s.jsx(Qr,{children:"3 à 64 caractères alphanumériques."})]}),s.jsxs(ke,{isRequired:!0,isInvalid:d!==""&&d.lengthf(k.target.value),isDisabled:v,autoComplete:"new-password"}),s.jsxs(Qr,{children:[rg," caractères minimum. Il n'est pas conservé par Omnex."]})]}),s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{fontSize:"sm",children:"Nombre d'admins autorisés"}),s.jsxs(PT,{min:1,max:20,value:p,onChange:(k,C)=>h(Number.isNaN(C)?1:C),isDisabled:v,children:[s.jsx(TT,{}),s.jsxs(_T,{children:[s.jsx($T,{}),s.jsx(AT,{})]})]}),s.jsx(Qr,{children:"Nombre maximum de comptes admin dans le projet (1 à 20)."})]})]})}),s.jsxs(Il,{children:[s.jsx(he,{variant:"ghost",mr:3,onClick:S,isDisabled:v,children:"Annuler"}),s.jsx(he,{colorScheme:"primary",onClick:w,isLoading:v,isDisabled:!y,children:"Déployer"})]})]})]})}function Iue({project:e,onClose:t,onExtended:n}){const r=Tn(),[i,o]=m.useState(1),[a,l]=m.useState(!1);m.useEffect(()=>{o(1)},[e]);const c=()=>{a||t()},u=async()=>{if(e){l(!0);try{await Pe.extendProject(e.id,i),r({status:"success",title:`Abonnement prolongé de ${Ou(i)}`}),n(),t()}catch(d){const f=d instanceof Ee?d.message:"Erreur";r({status:"error",title:"Renouvellement impossible",description:f})}finally{l(!1)}}};return s.jsxs(Va,{isOpen:!!e,onClose:c,closeOnOverlayClick:!a,children:[s.jsx(Bo,{}),s.jsxs(zl,{children:[s.jsx(Fo,{children:"Renouveler l'abonnement"}),s.jsx(Ua,{isDisabled:a}),s.jsx(Oo,{children:s.jsxs(ke,{children:[s.jsxs(Ce,{fontSize:"sm",children:["Mois à ajouter — ",e==null?void 0:e.client_name]}),s.jsx(Hm,{value:i,onChange:d=>o(Number(d.target.value)),isDisabled:a,children:c7.map(d=>s.jsx("option",{value:d,children:Ou(d)},d))}),s.jsx(Qr,{children:"Les mois s'ajoutent à l'échéance actuelle."})]})}),s.jsxs(Il,{children:[s.jsx(he,{variant:"ghost",mr:3,onClick:c,isDisabled:a,children:"Annuler"}),s.jsx(he,{colorScheme:"primary",onClick:u,isLoading:a,children:"Renouveler"})]})]})]})}const Rue=5e3,Mue=5e3;function Lue(){const e=Tn(),t=Vn(),[n,r]=m.useState([]),[i,o]=m.useState(!0),[a,l]=m.useState(null),[c,u]=m.useState(!1),[d,f]=m.useState(null),[p,h]=m.useState(null),[v,b]=m.useState(null),[x,y]=m.useState(null),[g,S]=m.useState(null),[w,k]=m.useState(!1),C=m.useCallback(async()=>{try{const $=await Pe.listProjects();r(($.items??[]).filter(K=>K.status!=="deleted"))}catch($){$ instanceof Ee&&$.status===401?t("/admin/login"):e({status:"error",title:"Chargement des projets impossible"})}finally{o(!1)}},[t,e]);m.useEffect(()=>{C();const $=setInterval(()=>void C(),Rue);return()=>clearInterval($)},[C]);const P=async()=>{if(!p)return;const $=p;l($.id);try{await Pe.deleteProject($.id),e({status:"success",title:"Projet supprimé"}),h(null),await C()}catch(K){const X=K instanceof Ee?K.message:"Erreur";e({status:"error",title:"Suppression impossible",description:X})}finally{l(null)}},j=$=>$.status==="ready"||$.status==="provisioning",R=async $=>{if(j($)){if(x===$.id){y(null),S(null);return}y($.id),S(null),k(!0);try{S(await Pe.getProjectDetails($.id))}catch(K){const X=K instanceof Ee?K.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:X}),y(null)}finally{k(!1)}}};m.useEffect(()=>{if(!x)return;const $=setInterval(()=>{Pe.getProjectDetails(x).then(S).catch(()=>{})},Mue);return()=>clearInterval($)},[x]),m.useEffect(()=>{if(!x)return;const $=n.find(K=>K.id===x);(!$||!j($))&&(y(null),S(null))},[n,x]);const T=$=>s.jsxs(U,{fontSize:"sm",children:[vue($.expires_at)," · ",yy($.expires_at)]});return s.jsxs(Z,{p:{base:4,md:8},children:[s.jsxs(gt,{mb:6,align:"center",gap:3,children:[s.jsx(Ne,{size:"md",children:"Projets"}),s.jsx(Fi,{}),s.jsx(he,{colorScheme:"primary",onClick:()=>u(!0),children:"Déployer un projet"})]}),i?s.jsx(un,{}):n.length===0?s.jsx(U,{color:"gray.500",children:"Aucun projet déployé."}):s.jsx(Eu,{children:s.jsxs(yl,{size:"sm",children:[s.jsx($u,{children:s.jsxs(Gn,{children:[s.jsx(et,{children:"Client"}),s.jsx(et,{children:"Statut"}),s.jsx(et,{children:"Adresse"}),s.jsx(et,{children:"Abonnement"}),s.jsx(et,{children:"Échéance"}),s.jsx(et,{children:"Admins"}),s.jsx(et,{})]})}),s.jsx(Au,{children:n.map($=>{const K=a===$.id,X=j($),M=x===$.id;return s.jsxs(m.Fragment,{children:[s.jsxs(Gn,{cursor:j($)?"pointer":void 0,_hover:j($)?{bg:"chakra-subtle-bg"}:void 0,onClick:()=>void R($),children:[s.jsx(Ge,{children:s.jsxs(ye,{spacing:2,children:[j($)&&s.jsx(wt,{as:fh,boxSize:3,color:"gray.400",transform:M?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(U,{children:$.client_name})]})}),s.jsx(Ge,{children:s.jsx(Bt,{colorScheme:yue($.status),children:bue($.status)})}),s.jsx(Ge,{children:s.jsxs(ye,{spacing:1,children:[s.jsx(Oi,{href:$.url,isExternal:!0,fontFamily:"mono",fontSize:"sm",onClick:N=>N.stopPropagation(),children:$.custom_domain||$.host}),s.jsx(xn,{"aria-label":"Modifier le domaine",icon:s.jsx(Nl,{}),size:"xs",variant:"ghost",isDisabled:$.status!=="ready",onClick:N=>{N.stopPropagation(),b($)}})]})}),s.jsxs(Ge,{children:[Ou($.months_purchased)," au total"]}),s.jsx(Ge,{children:T($)}),s.jsxs(Ge,{children:[$.admin_username," · max ",$.admin_number]}),s.jsx(Ge,{children:s.jsxs(ox,{justify:"flex-end",spacing:2,children:[s.jsx(he,{size:"xs",colorScheme:"primary",isDisabled:!X||K,onClick:N=>{N.stopPropagation(),f($)},children:"Renouveler"}),s.jsx(he,{size:"xs",variant:"outline",colorScheme:"red",isDisabled:$.status==="deleting"||K,onClick:N=>{N.stopPropagation(),h($)},children:"Supprimer"})]})})]}),s.jsx(Gn,{children:s.jsx(Ge,{p:0,border:M?void 0:"none",colSpan:7,children:s.jsx(Al,{in:M,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(Z,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:w&&!g?s.jsx(gt,{justify:"center",py:4,children:s.jsx(un,{size:"sm"})}):g?s.jsx(dh,{state:g.state}):s.jsx(U,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},$.id)})})]})}),s.jsx(zue,{isOpen:c,onClose:()=>u(!1),onCreated:()=>void C()}),s.jsx(Vx,{demo:v,onClose:()=>b(null),onSaved:()=>void C(),save:Pe.setProjectDomain,title:"Domaine du site",helpText:s.jsxs(s.Fragment,{children:["Domaine du client (ex. boutique.client.fr), servi en plus de l'adresse par défaut",v?` (${v.host})`:"",", qui reste active. Laissez vide pour retirer le domaine. Avant de l'enregistrer : le DNS du domaine doit pointer vers les nœuds du cluster, et son certificat TLS doit être ajouté au WAF (voir deploy/chart-vitrine/README.md), sans quoi le navigateur affichera une erreur de certificat."]})}),s.jsx(Iue,{project:d,onClose:()=>f(null),onExtended:()=>void C()}),s.jsxs(Gc,{isOpen:!!p,title:"Supprimer le projet",confirmLabel:"Supprimer définitivement",confirmColorScheme:"red",isLoading:a===(p==null?void 0:p.id),onConfirm:()=>void P(),onClose:()=>h(null),children:["Le projet de ",p==null?void 0:p.client_name," sera supprimé immédiatement, avec ses données et ses sauvegardes. Cette action est irréversible."]})]})}function Nue(){const e=Tn(),t=Vn(),[n,r]=m.useState(null),[i,o]=m.useState(null),[a,l]=m.useState(!0),[c,u]=m.useState(!1),[d,f]=m.useState(""),[p,h]=m.useState(!1),v=m.useCallback(async()=>{try{const S=await Pe.me();r(S.type_abonnement??null),o(S.expired_at?new Date(S.expired_at):null)}catch(S){S instanceof Ee&&S.status===401?t("/login"):e({status:"error",title:"Chargement de l'abonnement impossible"})}finally{l(!1)}},[t,e]);m.useEffect(()=>{v()},[v]);const b=async S=>{if(S.preventDefault(),!d.trim()){e({status:"error",title:"Veuillez entrer un code"});return}u(!0);try{await Pe.addCode(d.trim()),e({status:"success",title:"Abonnement premium activé !"}),f(""),h(!1),await v()}catch(w){const k=w instanceof Ee?w.message:"Erreur";e({status:"error",title:"Code invalide",description:k})}finally{u(!1)}},x=n==="premium",y=!x||p,g=i?Math.ceil((i.getTime()-Date.now())/(1e3*60*60*24)):null;return s.jsxs(s.Fragment,{children:[s.jsxs(gt,{mb:6,align:"center",children:[s.jsx(Ne,{size:"md",children:"Mon abonnement"}),s.jsx(Fi,{})]}),s.jsx(Z,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:a?s.jsx(un,{}):s.jsxs(od,{align:"stretch",spacing:4,children:[s.jsxs(ye,{flexWrap:"wrap",rowGap:2,children:[s.jsx(U,{color:"gray.400",children:"Statut actuel :"}),s.jsx(Bt,{colorScheme:x?"purple":"gray",px:2,py:1,children:x?"Premium":"Demo"}),x&&!p&&s.jsx(he,{size:"sm",variant:"link",ml:2,whiteSpace:"normal",textAlign:"left",onClick:()=>h(!0),children:"Renouveler avec un nouveau code"})]}),x&&i&&s.jsx(U,{fontSize:"sm",color:g!==null&&g<=5?"orange.400":"gray.400",children:g!==null&&g>0?`Expire dans ${g} jour${g>1?"s":""} (le ${i.toLocaleDateString("fr-FR")})`:`Expiré depuis le ${i.toLocaleDateString("fr-FR")}`}),y&&s.jsx("form",{onSubmit:b,children:s.jsxs(we,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[s.jsxs(ke,{isRequired:!0,children:[s.jsx(Ce,{children:x?"Nouveau code de renouvellement":"Code de souscription"}),s.jsx(mt,{type:"text",value:d,onChange:S=>f(S.target.value.toUpperCase()),placeholder:"XXXX-XXXX-XXXX-XXXX",isDisabled:c,fontFamily:"mono",letterSpacing:"wide"})]}),s.jsxs(ye,{flexShrink:0,children:[s.jsx(he,{colorScheme:"primary",type:"submit",isLoading:c,mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},children:x?"Renouveler":"Activer"}),x&&s.jsx(he,{variant:"ghost",mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},onClick:()=>{h(!1),f("")},isDisabled:c,children:"Annuler"})]})]})})]})})]})}const Due=()=>s.jsx(Z,{as:"svg",w:"16px",h:"16px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:s.jsx(Z,{as:"path",d:"M12 3v12m0 0-4-4m4 4 4-4M5 21h14"})});function Oue(){const e=Tn(),t=Vn(),[n,r]=m.useState([]),[i,o]=m.useState(!1),[a,l]=m.useState(!0),c=m.useCallback(async()=>{try{const u=await Pe.listAppDownloads();r(u.items??[]),o(u.eligible)}catch(u){u instanceof Ee&&u.status===401?t("/login"):e({status:"error",title:"Chargement des applications impossible"})}finally{l(!1)}},[t,e]);return m.useEffect(()=>{c()},[c]),s.jsxs(s.Fragment,{children:[s.jsxs(gt,{mb:6,align:"center",children:[s.jsx(Ne,{size:"md",children:"Applications"}),s.jsx(Fi,{})]}),s.jsx(Z,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:a?s.jsx(un,{}):i?n.length===0?s.jsx(U,{color:"gray.500",children:"Aucune application disponible pour le moment."}):s.jsx(od,{align:"stretch",spacing:3,children:n.map(u=>s.jsxs(ye,{justify:"space-between",flexWrap:"wrap",rowGap:2,children:[s.jsxs(we,{spacing:0,children:[s.jsx(U,{fontFamily:"mono",children:u.name}),s.jsx(U,{fontSize:"sm",color:"gray.500",children:gue(u.size_bytes)})]}),s.jsx(he,{as:"a",href:lue(u.name),download:u.name,size:"sm",colorScheme:"primary",leftIcon:s.jsx(Due,{}),children:"Télécharger"})]},u.name))}):s.jsx(U,{color:"gray.500",children:"Le téléchargement des applications nécessite une démo ou un abonnement actif."})})]})}function Ak(e){return e==="admin"?"Administrateur":"Client"}function Fue(e){return e==="admin"?"purple":"blue"}function Bue(e){const t=(e==null?void 0:e.toLowerCase())??"";return t.includes("premium")||t.includes("pro")?"green":t.includes("expired")||t===""?"red":"gray"}function Wue(e){if(!e)return"—";const t=new Date(e);return Number.isNaN(t.getTime())?"—":t.toLocaleDateString("fr-FR",{day:"2-digit",month:"long",year:"numeric"})}function ig(){const{isEditing:e,getSubmitButtonProps:t,getCancelButtonProps:n,getEditButtonProps:r}=tG();return e?s.jsxs(Nm,{size:"sm",spacing:1,children:[s.jsx(xn,{"aria-label":"Enregistrer",icon:s.jsx(l7,{}),...t()}),s.jsx(xn,{"aria-label":"Annuler",icon:s.jsx(s7,{}),...n()})]}):s.jsx(xn,{"aria-label":"Modifier le nom d'utilisateur",size:"sm",variant:"ghost",icon:s.jsx(Nl,{}),...r()})}function Vue(){const e=Tn(),t=Vn(),{logout:n}=Uo(),[r,i]=m.useState(null),[o,a]=m.useState(!0),[l,c]=m.useState(!1),[u,d]=m.useState(!1),[f,p]=m.useState(!1),[h,v]=m.useState(!1),[b,x]=m.useState(""),[y,g]=m.useState(""),[S,w]=m.useState(!1),[k,C]=m.useState(!1),[P,j]=m.useState(""),[R,T]=m.useState(""),[$,K]=m.useState(""),[X,M]=m.useState(!1),[N,O]=m.useState(!1);m.useEffect(()=>{let Q=!1;return(async()=>{try{const[ae,ce]=await Promise.all([Pe.me(),Pe.getTelegram()]);if(Q)return;if(i(ae),g(ce.telegram??""),ae.role==="admin"){const Me=await Pe.getAlertSettings();if(Q)return;j(Me.discord_webhook_url),T(Me.telegram_bot_token),K(Me.telegram_chat_id)}}catch(ae){if(ae instanceof Ee&&ae.status===401){t("/login");return}e({status:"error",title:"Impossible de charger le profil"})}finally{Q||a(!1)}})(),()=>{Q=!0}},[t,e]);const L=async()=>{M(!0);try{const Q=await Pe.setAlertSettings({discord_webhook_url:P.trim(),telegram_bot_token:R.trim(),telegram_chat_id:$.trim()});j(Q.discord_webhook_url),T(Q.telegram_bot_token),K(Q.telegram_chat_id),e({status:"success",title:"Alertes enregistrées"})}catch(Q){if(Q instanceof Ee&&Q.status===401){t("/login");return}e({status:"error",title:"Impossible d'enregistrer les alertes",description:Q instanceof Ee?Q.message:void 0})}finally{M(!1)}},I=async()=>{O(!0);try{const Q=await Pe.testAlertSettings({discord_webhook_url:P.trim(),telegram_bot_token:R.trim(),telegram_chat_id:$.trim()}),ae=[Q.discord&&{label:"Discord",...Q.discord},Q.telegram&&{label:"Telegram",...Q.telegram}].filter(ce=>!!ce);ae.every(ce=>ce.ok)?e({status:"success",title:"Notification de test envoyée",description:ae.map(ce=>ce.label).join(" et ")}):e({status:"error",title:"Échec du test",description:ae.filter(ce=>!ce.ok).map(ce=>`${ce.label} : ${ce.error}`).join(" — ")})}catch(Q){if(Q instanceof Ee&&Q.status===401){t("/login");return}e({status:"warning",title:"Test impossible",description:Q instanceof Ee?Q.message:void 0})}finally{O(!1)}},D=async Q=>{const ae=Q.trim();if(!(!r||!ae||ae===r.username)){d(!0);try{const ce=await Pe.updateUsername(ae);i({...r,username:ce.username}),e({status:"success",title:"Nom d'utilisateur mis à jour"})}catch(ce){if(ce instanceof Ee&&ce.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le nom d'utilisateur",description:ce instanceof Ee?ce.message:void 0})}finally{d(!1)}}},q=async()=>{const Q=b.trim();if(Q.length<8){e({status:"warning",title:"Le mot de passe doit contenir au moins 8 caractères"});return}p(!0);try{await Pe.updatePassword(Q),e({status:"success",title:"Mot de passe mis à jour"}),v(!1),x("")}catch(ae){if(ae instanceof Ee&&ae.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le mot de passe",description:ae instanceof Ee?ae.message:void 0})}finally{p(!1)}},J=()=>{x(""),v(!1)},le=async Q=>{const ae=Q.trim();if(!ae){C(!1);return}w(!0);try{const ce=await Pe.setTelegram(ae);g(ce.telegram),C(!1),e({status:"success",title:"Telegram enregistré"})}catch(ce){if(ce instanceof Ee&&ce.status===401){t("/login");return}e({status:"error",title:"Impossible d'enregistrer le Telegram",description:ce instanceof Ee?ce.message:void 0})}finally{w(!1)}},oe=async()=>{c(!0);try{await Pe.logout(),n==null||n(),t("/login")}catch{e({status:"error",title:"Déconnexion impossible"})}finally{c(!1)}};return s.jsx(Z,{bg:"chakra-subtle-bg",py:{base:10,md:14},minH:"100%",children:s.jsxs(Tt,{maxW:"container.md",children:[s.jsxs(we,{spacing:3,mb:8,children:[s.jsx(Ne,{size:"lg",children:"Mon profil"}),s.jsx(U,{color:"gray.400",fontSize:"md",children:"Informations de votre compte et de votre abonnement."})]}),s.jsx(Z,{bg:"bg-surface",borderWidth:"1px",borderColor:"chakra-border-color",borderRadius:"xl",p:{base:6,md:10},boxShadow:"lg",children:o?s.jsx(gt,{justify:"center",py:10,children:s.jsx(un,{})}):r?s.jsxs(we,{spacing:8,children:[s.jsxs(gt,{align:"center",gap:5,wrap:"wrap",children:[s.jsx(jb,{name:r.username,size:"xl"}),s.jsxs(Z,{children:[s.jsx(Wf,{defaultValue:r.username,onSubmit:D,isDisabled:u,submitOnBlur:!1,children:s.jsxs(ye,{spacing:2,children:[s.jsx(Uf,{as:Ne,size:"md",fontFamily:"mono"}),s.jsx(Vf,{fontFamily:"mono",fontSize:"md",fontWeight:"bold"}),s.jsx(ig,{})]})},r.username),s.jsxs(ye,{mt:2,spacing:2,children:[s.jsx(Bt,{colorScheme:Fue(r.role),children:Ak(r.role)}),r.type_abonnement&&s.jsx(Bt,{colorScheme:Bue(r.type_abonnement),children:r.type_abonnement})]})]})]}),s.jsx(Sa,{borderColor:"chakra-border-color"}),s.jsxs(Yt,{columns:{base:1,sm:2},spacing:6,children:[s.jsxs(na,{children:[s.jsx(ra,{children:"Identifiant"}),s.jsx(Qi,{fontSize:"md",fontFamily:"mono",children:r.user_id})]}),s.jsxs(na,{children:[s.jsx(ra,{children:"Rôle"}),s.jsx(Qi,{fontSize:"md",children:Ak(r.role)})]}),s.jsxs(na,{children:[s.jsx(ra,{children:"Type d'abonnement"}),s.jsx(Qi,{fontSize:"md",children:r.type_abonnement||"—"})]}),s.jsxs(na,{children:[s.jsx(ra,{children:"Mot de passe"}),h?s.jsxs(ye,{spacing:2,children:[s.jsx(nn,{size:"sm",fontFamily:"mono",fontSize:"md",value:b,onChange:Q=>x(Q.target.value),isDisabled:f,autoFocus:!0}),s.jsxs(Nm,{size:"sm",spacing:1,children:[s.jsx(xn,{"aria-label":"Enregistrer",icon:s.jsx(l7,{}),isLoading:f,onClick:q}),s.jsx(xn,{"aria-label":"Annuler",icon:s.jsx(s7,{}),isDisabled:f,onClick:J})]})]}):s.jsxs(ye,{spacing:2,children:[s.jsx(Qi,{fontSize:"md",fontFamily:"mono",children:"••••••••"}),s.jsx(xn,{"aria-label":"Modifier le mot de passe",size:"sm",variant:"ghost",icon:s.jsx(Nl,{}),onClick:()=>v(!0)})]})]}),s.jsxs(na,{children:[s.jsx(ra,{children:"Telegram"}),y?s.jsx(Wf,{defaultValue:y,onSubmit:le,isDisabled:S,submitOnBlur:!1,children:s.jsxs(ye,{spacing:2,children:[s.jsx(Uf,{as:Qi,fontSize:"md",fontFamily:"mono"}),s.jsx(Vf,{fontSize:"md",fontFamily:"mono"}),s.jsx(ig,{})]})},y):k?s.jsx(Wf,{defaultValue:"",placeholder:"@monpseudo",startWithEditView:!0,onSubmit:le,onCancel:()=>C(!1),isDisabled:S,submitOnBlur:!1,children:s.jsxs(ye,{spacing:2,children:[s.jsx(Uf,{as:Qi,fontSize:"md",fontFamily:"mono"}),s.jsx(Vf,{fontSize:"md",fontFamily:"mono"}),s.jsx(ig,{})]})}):s.jsx(he,{size:"sm",variant:"outline",onClick:()=>C(!0),children:"Ajouter mon Telegram"})]}),s.jsxs(na,{children:[s.jsx(ra,{children:"Expire le"}),s.jsx(Qi,{fontSize:"md",children:Wue(r.expired_at)})]})]}),r.role==="admin"&&s.jsxs(s.Fragment,{children:[s.jsx(Sa,{borderColor:"chakra-border-color"}),s.jsxs(we,{spacing:4,children:[s.jsxs(Z,{children:[s.jsx(Ne,{size:"sm",children:"Alertes monitoring"}),s.jsx(U,{color:"gray.500",fontSize:"sm",children:"Recevez une notification quand un pod d'une démo tombe en erreur (ou se rétablit). Réglages propres à votre compte."})]}),s.jsxs(ke,{children:[s.jsx(Ce,{fontSize:"sm",children:"Webhook Discord"}),s.jsx(mt,{fontFamily:"mono",fontSize:"sm",placeholder:"https://discord.com/api/webhooks/...",value:P,onChange:Q=>j(Q.target.value),isDisabled:X})]}),s.jsxs(Yt,{columns:{base:1,sm:2},spacing:4,children:[s.jsxs(ke,{children:[s.jsx(Ce,{fontSize:"sm",children:"Bot Telegram (token)"}),s.jsx(mt,{fontFamily:"mono",fontSize:"sm",placeholder:"123456789:AAExemple...",value:R,onChange:Q=>T(Q.target.value),isDisabled:X})]}),s.jsxs(ke,{children:[s.jsx(Ce,{fontSize:"sm",children:"Telegram (chat ID)"}),s.jsx(mt,{fontFamily:"mono",fontSize:"sm",placeholder:"-100123456789",value:$,onChange:Q=>K(Q.target.value),isDisabled:X}),s.jsx(Qr,{children:"Envoyez un message au bot puis récupérez le chat_id via son API."})]})]}),s.jsxs(gt,{justify:"flex-end",gap:2,children:[s.jsx(he,{size:"sm",variant:"outline",isDisabled:!P.trim()&&!(R.trim()&&$.trim()),isLoading:N,onClick:I,children:"Tester les notifications"}),s.jsx(he,{size:"sm",colorScheme:"primary",isLoading:X,onClick:L,children:"Enregistrer les alertes"})]})]})]}),s.jsx(Sa,{borderColor:"chakra-border-color"}),s.jsx(gt,{justify:"flex-end",children:s.jsx(he,{colorScheme:"red",variant:"outline",isLoading:l,onClick:oe,children:"Se déconnecter"})})]}):s.jsx(U,{color:"gray.500",children:"Aucune information disponible."})})]})})}function $k(e){const t=Ap("/omnex-blanc.jpg","/omnex-black.jpg");return s.jsx(nT,{src:t,alt:"Omnex",objectFit:"contain",...e})}const zk=[{to:"/",label:"Accueil",end:!0},{to:"/tarifs",label:"Tarifs",end:!1},{to:"/documentation",label:"Documentation",end:!1},{to:"/vitrine",label:"Site vitrine",end:!1},{to:"/contact",label:"Contact",end:!1}],Uue=()=>s.jsx(Z,{as:"svg",w:"24px",h:"24px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:s.jsx(Z,{as:"path",d:"M3 12h18M3 6h18M3 18h18"})});function Hue(){const{isOpen:e,onOpen:t,onClose:n}=Hu();return s.jsxs(Z,{as:"header",position:"sticky",top:0,zIndex:"sticky",bg:"chakra-body-bg",borderBottomWidth:"1px",backdropFilter:"saturate(180%) blur(6px)",children:[s.jsx(Tt,{maxW:"container.lg",children:s.jsxs(gt,{h:16,align:"center",justify:"space-between",children:[s.jsxs(ye,{spacing:8,children:[s.jsx(Z,{as:sn,to:"/",display:"flex",alignItems:"center",children:s.jsx($k,{h:10})}),s.jsx(ye,{as:"nav",spacing:1,display:{base:"none",md:"flex"},children:zk.map(r=>s.jsx(Ik,{to:r.to,end:r.end,children:r.label},r.to))})]}),s.jsxs(ye,{spacing:2,display:{base:"none",md:"flex"},children:[s.jsx(Da,{}),s.jsx(he,{as:sn,to:"/login",variant:"ghost",size:"sm",children:"Espace client"}),s.jsx(he,{as:sn,to:"/register",colorScheme:"primary",size:"sm",children:"Créer un compte"})]}),s.jsxs(ye,{spacing:1,display:{base:"flex",md:"none"},children:[s.jsx(Da,{}),s.jsx(xn,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:t,icon:s.jsx(Uue,{})})]})]})}),s.jsxs(CT,{isOpen:e,placement:"right",onClose:n,size:"xs",children:[s.jsx(Bo,{}),s.jsxs(nx,{bg:"chakra-body-bg",children:[s.jsx(Ua,{size:"lg"}),s.jsx(Fo,{borderBottomWidth:"1px",children:s.jsx($k,{h:9})}),s.jsxs(Oo,{py:6,children:[s.jsx(we,{as:"nav",spacing:1,children:zk.map(r=>s.jsx(Ik,{to:r.to,end:r.end,onClick:n,mobile:!0,children:r.label},r.to))}),s.jsx(Sa,{my:6}),s.jsxs(we,{spacing:3,children:[s.jsx(he,{as:sn,to:"/login",variant:"outline",justifyContent:"flex-start",onClick:n,children:"Espace client"}),s.jsx(he,{as:sn,to:"/register",colorScheme:"primary",justifyContent:"flex-start",onClick:n,children:"Créer un compte"})]})]})]})]})]})}function Ik({to:e,end:t,children:n,onClick:r,mobile:i=!1}){return s.jsx(he,{as:M8,to:e,end:t,size:i?"lg":"sm",variant:"ghost",justifyContent:i?"flex-start":"center",onClick:r,_activeLink:{fontWeight:"bold",color:"primary.500"},children:n})}function que(){return s.jsx(Z,{as:"footer",borderTopWidth:"1px",mt:20,bg:"chakra-subtle-bg",children:s.jsxs(Tt,{maxW:"container.lg",py:12,children:[s.jsxs(Yt,{columns:{base:1,md:4},spacing:8,children:[s.jsxs(we,{spacing:3,children:[s.jsx(U,{fontWeight:"bold",fontSize:"lg",children:"Omnex"}),s.jsx(U,{fontSize:"sm",color:"gray.500",children:"Plateforme de gestion de commandes & livraison."})]}),s.jsxs(Gue,{title:"Produit",children:[s.jsx(ic,{to:"/",children:"Présentation"}),s.jsx(ic,{to:"/tarifs",children:"Tarifs"}),s.jsx(ic,{to:"/register",children:"Créer un compte"}),s.jsx(ic,{to:"/documentation",children:"Documentation"}),s.jsx(ic,{to:"/vitrine",children:"Site vitrine"})]})]}),s.jsx(Sa,{my:8}),s.jsxs(ye,{justify:"space-between",flexWrap:"wrap",spacing:4,children:[s.jsxs(U,{fontSize:"sm",color:"gray.500",children:["© ",new Date().getFullYear()," Omnex. Tous droits réservés."]}),s.jsxs(ye,{spacing:6,fontSize:"sm",color:"gray.500",children:[s.jsx(Rk,{href:"#",children:"Mentions légales"}),s.jsx(Rk,{href:"#",children:"Confidentialité"})]})]})]})})}function Gue({title:e,children:t}){return s.jsxs(we,{spacing:2,children:[s.jsx(U,{fontWeight:"semibold",fontSize:"sm",textTransform:"uppercase",color:"gray.500",children:e}),t]})}function ic({to:e,children:t}){return s.jsx(Oi,{as:sn,to:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function Rk({href:e,children:t}){return s.jsx(Oi,{href:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function Kue(){return s.jsxs(gt,{direction:"column",minH:"100vh",children:[s.jsx(Hue,{}),s.jsx(Z,{as:"main",flex:"1",children:s.jsx(I8,{})}),s.jsx(que,{})]})}const Xue=()=>s.jsx(Z,{as:"svg",w:"20px",h:"20px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:s.jsx(Z,{as:"path",d:"M3 12h18M3 6h18M3 18h18"})}),Mk="https://t.me/OMNEX_CORP";function Yue(){const[e,t]=m.useState(null),{logout:n,isAdmin:r,isClient:i}=Uo(),o=Vn(),{isOpen:a,onOpen:l,onClose:c}=Hu(),u=e==="premium",d=m.useCallback(async()=>{try{const v=await Pe.me();t(v.type_abonnement??null)}catch(v){v instanceof Ee&&v.status===401&&o("/login")}},[o]);m.useEffect(()=>{d()},[d]);const f=async()=>{const v=r?"/admin/login":"/login";await n(),o(v,{replace:!0})},p=r?"Admin":i?"Client":"Utilisateur",h=r?"purple":"gray";return s.jsxs(Z,{minH:"100vh",bg:"chakra-subtle-bg",overflowX:"hidden",children:[s.jsxs(gt,{as:"header",px:6,py:3,borderBottomWidth:"1px",align:"center",gap:6,children:[s.jsxs(Ne,{size:"sm",as:sn,to:"/app",children:["Omnex · ",r?"Espace admin":"Espace client"]}),s.jsxs(ye,{spacing:1,display:{base:"none",md:"flex"},children:[i&&s.jsx(wn,{to:"/app/subscription",children:"Abonnement"}),i&&s.jsx(wn,{to:"/app/downloads",children:"Applications"}),(r||i)&&s.jsx(wn,{to:"/app/profile",children:"Profile"}),i&&s.jsx(wn,{to:"/app/myservices",children:u?"Ma plateforme":"Ma démo"}),r&&s.jsx(wn,{to:"/app/demos",children:"Démos"}),r&&s.jsx(wn,{to:"/app/premium",children:"Premium"}),r&&s.jsx(wn,{to:"/app/projects",children:"Projets"}),r&&s.jsx(wn,{to:"/app/codes",children:"Codes"})]}),s.jsx(Fi,{}),s.jsxs(ye,{spacing:2,display:{base:"none",md:"flex"},children:[s.jsx(Bt,{colorScheme:h,children:p}),s.jsx(he,{as:"a",href:Mk,target:"_blank",rel:"noopener noreferrer",size:"sm",variant:"outline",children:"Support"}),s.jsx(Da,{}),s.jsx(he,{size:"sm",variant:"outline",onClick:f,children:"Déconnexion"})]}),s.jsxs(ye,{spacing:1,display:{base:"flex",md:"none"},children:[s.jsx(Bt,{colorScheme:h,children:p}),s.jsx(Da,{}),s.jsx(xn,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:l,icon:s.jsx(Xue,{})})]})]}),s.jsxs(CT,{isOpen:a,placement:"right",onClose:c,size:"xs",children:[s.jsx(Bo,{}),s.jsxs(nx,{bg:"chakra-body-bg",children:[s.jsx(Ua,{size:"lg"}),s.jsxs(Fo,{borderBottomWidth:"1px",fontWeight:"bold",fontSize:"xl",children:["Omnex · ",r?"Espace admin":"Espace client"]}),s.jsxs(Oo,{py:6,children:[s.jsxs(we,{as:"nav",spacing:1,children:[i&&s.jsx(wn,{to:"/app/subscription",onClick:c,mobile:!0,children:"Abonnement"}),i&&s.jsx(wn,{to:"/app/downloads",onClick:c,mobile:!0,children:"Applications"}),r&&s.jsx(wn,{to:"/app/demos",onClick:c,mobile:!0,children:"Démos"}),r&&s.jsx(wn,{to:"/app/premium",onClick:c,mobile:!0,children:"Premium"}),r&&s.jsx(wn,{to:"/app/projects",onClick:c,mobile:!0,children:"Projets"}),r&&s.jsx(wn,{to:"/app/codes",onClick:c,mobile:!0,children:"Codes"}),(r||i)&&s.jsx(wn,{to:"/app/profile",onClick:c,mobile:!0,children:"Profile"})]}),s.jsx(Sa,{my:6}),s.jsxs(we,{spacing:3,children:[s.jsx(he,{as:"a",href:Mk,target:"_blank",rel:"noopener noreferrer",variant:"outline",justifyContent:"flex-start",onClick:c,children:"Support"}),s.jsx(he,{variant:"outline",justifyContent:"flex-start",onClick:f,children:"Déconnexion"})]})]})]})]}),s.jsx(Tt,{maxW:"container.xl",py:8,children:s.jsx(I8,{})})]})}function wn({to:e,children:t,onClick:n,mobile:r=!1}){return s.jsx(he,{as:M8,to:e,size:r?"lg":"sm",variant:"ghost",onClick:n,_activeLink:{fontWeight:"bold",color:"primary.500"},justifyContent:"flex-start",children:t})}function Que(){return s.jsx(Z,{children:s.jsx(Z,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:16,md:24},children:s.jsx(Tt,{maxW:"container.lg",children:s.jsxs(we,{spacing:6,textAlign:"center",align:"center",children:[s.jsx(Ne,{size:"2xl",children:"Contactez-nous"}),s.jsx(U,{fontSize:"xl",color:"gray.600",maxW:"2xl",children:"Une question ? Notre équipe vous répond directement sur Telegram."}),s.jsx(he,{as:"a",href:"https://t.me/OMNEX_CORP",target:"_blank",rel:"noopener noreferrer",colorScheme:"primary",size:"lg",children:"Nous contacter sur Telegram"})]})})})})}function Zue(){const e=Tn(),t=Vn(),[n,r]=m.useState(null),[i,o]=m.useState([]),[a,l]=m.useState(!0),c=m.useCallback(async()=>{try{const f=await Pe.me();r(f.type_abonnement??null)}catch(f){f instanceof Ee&&f.status===401&&t("/login")}},[t]),u=m.useCallback(async()=>{try{const f=await Pe.listMyDemos();o(f.items??[])}catch{e({status:"error",title:"Chargement des démos impossible"})}finally{l(!1)}},[e]);m.useEffect(()=>{c(),u()},[c,u]);const d=n==="premium";return s.jsxs(s.Fragment,{children:[s.jsxs(gt,{mb:6,align:"center",children:[s.jsx(Ne,{size:"md",children:d?"Ma plateforme":"Ma démo"}),s.jsx(Fi,{})]}),s.jsx(Z,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:a?s.jsx(un,{size:"sm"}):i.length===0?s.jsx(U,{color:"gray.500",children:d?"Aucune plateforme pour le moment.":"Aucune démo pour le moment."}):s.jsx(od,{align:"stretch",spacing:3,children:i.map(f=>s.jsxs(ye,{justify:"space-between",flexWrap:"wrap",rowGap:2,children:[f.status==="ready"?s.jsx(Oi,{href:f.url,color:"primary.500",isExternal:!0,fontFamily:"mono",children:f.url}):s.jsx(U,{color:"gray.400",fontFamily:"mono",children:f.url||"—"}),s.jsx(Bt,{colorScheme:ch(f.status),children:uh(f.status)})]},f.id))})})]})}const Jue=["/app/demos","/app/premium","/app/projects","/app/codes"];function ede({children:e}){const{isAuthenticated:t,initializing:n}=Uo(),r=qa();if(n)return s.jsx(p_,{h:"100vh",children:s.jsx(un,{})});if(t)return e;const i=Jue.some(o=>r.pathname.startsWith(o));return s.jsx(Lu,{to:i?"/admin/login":"/login",replace:!0})}function pf({children:e}){const{isAdmin:t}=Uo();return t?e:s.jsx(Lu,{to:"/app/subscription",replace:!0})}function tde(){const{role:e}=Uo();switch(e){case"admin":return s.jsx(Lu,{to:"/app/demos",replace:!0});default:return s.jsx(Lu,{to:"/app/subscription",replace:!0})}}function nde(){return s.jsxs(Sie,{children:[s.jsxs($t,{element:s.jsx(Kue,{}),children:[s.jsx($t,{path:"/",element:s.jsx(Lie,{})}),s.jsx($t,{path:"/tarifs",element:s.jsx(Die,{})}),s.jsx($t,{path:"/documentation",element:s.jsx(rue,{})}),s.jsx($t,{path:"/vitrine",element:s.jsx(sue,{})}),s.jsx($t,{path:"/contact",element:s.jsx(Que,{})})]}),s.jsx($t,{path:"/login",element:s.jsx(fue,{})}),s.jsx($t,{path:"/admin/login",element:s.jsx(pue,{})}),s.jsx($t,{path:"/register",element:s.jsx(mue,{})}),s.jsxs($t,{path:"/app",element:s.jsx(ede,{children:s.jsx(Yue,{})}),children:[s.jsx($t,{index:!0,element:s.jsx(tde,{})}),s.jsx($t,{path:"demos",element:s.jsx(pf,{children:s.jsx(jue,{})})}),s.jsx($t,{path:"codes",element:s.jsx(pf,{children:s.jsx($ue,{})})}),s.jsx($t,{path:"projects",element:s.jsx(pf,{children:s.jsx(Lue,{})})}),s.jsx($t,{path:"premium",element:s.jsx(pf,{children:s.jsx(Tue,{})})}),s.jsx($t,{path:"subscription",element:s.jsx(Nue,{})}),s.jsx($t,{path:"downloads",element:s.jsx(Oue,{})}),s.jsx($t,{path:"profile",element:s.jsx(Vue,{})}),s.jsx($t,{path:"myservices",element:s.jsx(Zue,{})})]}),s.jsx($t,{path:"*",element:s.jsx(Lu,{to:"/",replace:!0})})]})}const rde={initialColorMode:"system",useSystemColorMode:!1},Lk=$b({config:rde,colors:{black:"#000000",gray:{50:"#f7f7f8",100:"#e8e8ea",200:"#c5c5c9",300:"#a2a2a9",400:"#7f7f88",500:"#5c5c66",600:"#43434c",700:"#2a2a33",800:"#15151b",900:"#0a0a0f"},midnight:{50:"#e9ebf5",100:"#c7cce6",200:"#a3abd6",300:"#7f8ac6",400:"#5b69b6",500:"#2d3a7d",600:"#232e63",700:"#1a2249",800:"#11172f",900:"#080b16"}},semanticTokens:{colors:{"chakra-body-bg":{_light:"white",_dark:"#000000"},"chakra-subtle-bg":{_light:"gray.50",_dark:"#050508"},"bg-surface":{_light:"white",_dark:"#08080c"},"chakra-body-text":{_light:"gray.800",_dark:"#f5f5f7"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.100"},"primary.50":{default:"purple.50",_dark:"midnight.50"},"primary.100":{default:"purple.100",_dark:"midnight.100"},"primary.200":{default:"purple.200",_dark:"midnight.200"},"primary.300":{default:"purple.300",_dark:"midnight.300"},"primary.400":{default:"purple.400",_dark:"midnight.400"},"primary.500":{default:"purple.500",_dark:"midnight.500"},"primary.600":{default:"purple.600",_dark:"midnight.600"},"primary.700":{default:"purple.700",_dark:"midnight.700"},"primary.800":{default:"purple.800",_dark:"midnight.800"},"primary.900":{default:"purple.900",_dark:"midnight.900"}}},styles:{global:{body:{bg:"chakra-body-bg",color:"chakra-body-text"}}},components:{Card:{baseStyle:{container:{bg:"bg-surface",borderColor:"whiteAlpha.50"}}},Button:{baseStyle:{_dark:{bg:"gray.800",_hover:{bg:"gray.700"}}}},Input:{baseStyle:{field:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200",_focus:{borderColor:"whiteAlpha.400"}}}}},Select:{baseStyle:{field:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200"}}}},Textarea:{baseStyle:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200"}}},Modal:{baseStyle:{overlay:{_dark:{bg:"blackAlpha.800"}},content:{_dark:{bg:"#08080c"}}}}}},QT);ag.createRoot(document.getElementById("root")).render(s.jsxs(rn.StrictMode,{children:[s.jsx(Qq,{initialColorMode:Lk.config.initialColorMode}),s.jsx(cne,{theme:Lk,children:s.jsx(cue,{children:s.jsx(Eie,{children:s.jsx(nde,{})})})})]})); diff --git a/web/dist/assets/index-rDhSK02l.js b/web/dist/assets/index-rDhSK02l.js deleted file mode 100644 index 828f04d..0000000 --- a/web/dist/assets/index-rDhSK02l.js +++ /dev/null @@ -1,1510 +0,0 @@ -var mA=Object.defineProperty;var Jx=e=>{throw TypeError(e)};var hA=(e,t,n)=>t in e?mA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var e2=(e,t,n)=>hA(e,typeof t!="symbol"?t+"":t,n),t2=(e,t,n)=>t.has(e)||Jx("Cannot "+n);var n2=(e,t,n)=>(t2(e,t,"read from private field"),n?n.call(e):t.get(e)),r2=(e,t,n)=>t.has(e)?Jx("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Sh=(e,t,n,r)=>(t2(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function gA(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var vd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yk={exports:{}},Xp={},Qk={exports:{}},Ae={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Lu=Symbol.for("react.element"),vA=Symbol.for("react.portal"),yA=Symbol.for("react.fragment"),bA=Symbol.for("react.strict_mode"),xA=Symbol.for("react.profiler"),SA=Symbol.for("react.provider"),wA=Symbol.for("react.context"),kA=Symbol.for("react.forward_ref"),CA=Symbol.for("react.suspense"),jA=Symbol.for("react.memo"),PA=Symbol.for("react.lazy"),i2=Symbol.iterator;function _A(e){return e===null||typeof e!="object"?null:(e=i2&&e[i2]||e["@@iterator"],typeof e=="function"?e:null)}var Zk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jk=Object.assign,e5={};function kl(e,t,n){this.props=e,this.context=t,this.refs=e5,this.updater=n||Zk}kl.prototype.isReactComponent={};kl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};kl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function t5(){}t5.prototype=kl.prototype;function yy(e,t,n){this.props=e,this.context=t,this.refs=e5,this.updater=n||Zk}var by=yy.prototype=new t5;by.constructor=yy;Jk(by,kl.prototype);by.isPureReactComponent=!0;var o2=Array.isArray,n5=Object.prototype.hasOwnProperty,xy={current:null},r5={key:!0,ref:!0,__self:!0,__source:!0};function i5(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)n5.call(t,r)&&!r5.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,le=I[Z];if(0>>1;Zi(oe,H))cei(Me,oe)?(I[Z]=Me,I[ce]=H,Z=ce):(I[Z]=oe,I[Q]=H,Z=Q);else if(cei(Me,H))I[Z]=Me,I[ce]=H,Z=ce;else break e}}return L}function i(I,L){var H=I.sortIndex-L.sortIndex;return H!==0?H:I.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,g=!1,b=!1,x=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(I){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=I)r(u),L.sortIndex=L.expirationTime,t(c,L);else break;L=n(u)}}function w(I){if(b=!1,S(I),!g)if(n(c)!==null)g=!0,D(k);else{var L=n(u);L!==null&&R(w,L.startTime-I)}}function k(I,L){g=!1,b&&(b=!1,y(j),j=-1),h=!0;var H=p;try{for(S(L),f=n(c);f!==null&&(!(f.expirationTime>L)||I&&!F());){var Z=f.callback;if(typeof Z=="function"){f.callback=null,p=f.priorityLevel;var le=Z(f.expirationTime<=L);L=e.unstable_now(),typeof le=="function"?f.callback=le:f===n(c)&&r(c),S(L)}else r(c);f=n(c)}if(f!==null)var ie=!0;else{var Q=n(u);Q!==null&&R(w,Q.startTime-L),ie=!1}return ie}finally{f=null,p=H,h=!1}}var C=!1,P=null,j=-1,T=5,E=-1;function F(){return!(e.unstable_now()-EI||125Z?(I.sortIndex=H,t(u,I),n(c)===null&&I===n(u)&&(b?(y(j),j=-1):b=!0,R(w,H-Z))):(I.sortIndex=le,t(c,I),g||h||(g=!0,D(k))),I},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(I){var L=p;return function(){var H=p;p=L;try{return I.apply(this,arguments)}finally{p=H}}}})(c5);l5.exports=c5;var DA=l5.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var OA=m,Zn=DA;function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),og=Object.prototype.hasOwnProperty,FA=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,s2={},l2={};function BA(e){return og.call(l2,e)?!0:og.call(s2,e)?!1:FA.test(e)?l2[e]=!0:(s2[e]=!0,!1)}function VA(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function WA(e,t,n,r){if(t===null||typeof t>"u"||VA(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function _n(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var sn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){sn[e]=new _n(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];sn[t]=new _n(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){sn[e]=new _n(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){sn[e]=new _n(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){sn[e]=new _n(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){sn[e]=new _n(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){sn[e]=new _n(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){sn[e]=new _n(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){sn[e]=new _n(e,5,!1,e.toLowerCase(),null,!1,!1)});var wy=/[\-:]([a-z])/g;function ky(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wy,ky);sn[t]=new _n(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wy,ky);sn[t]=new _n(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wy,ky);sn[t]=new _n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){sn[e]=new _n(e,1,!1,e.toLowerCase(),null,!1,!1)});sn.xlinkHref=new _n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){sn[e]=new _n(e,1,!1,e.toLowerCase(),null,!0,!0)});function Cy(e,t,n,r){var i=sn.hasOwnProperty(t)?sn[t]:null;(i!==null?i.type!==0:r||!(2l||i[a]!==o[l]){var c=` -`+i[a].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=a&&0<=l);break}}}finally{Ch=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?nc(e):""}function UA(e){switch(e.tag){case 5:return nc(e.type);case 16:return nc("Lazy");case 13:return nc("Suspense");case 19:return nc("SuspenseList");case 0:case 2:case 15:return e=jh(e.type,!1),e;case 11:return e=jh(e.type.render,!1),e;case 1:return e=jh(e.type,!0),e;default:return""}}function cg(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case cs:return"Fragment";case ls:return"Portal";case ag:return"Profiler";case jy:return"StrictMode";case sg:return"Suspense";case lg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f5:return(e.displayName||"Context")+".Consumer";case d5:return(e._context.displayName||"Context")+".Provider";case Py:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _y:return t=e.displayName||null,t!==null?t:cg(e.type)||"Memo";case Ji:t=e._payload,e=e._init;try{return cg(e(t))}catch{}}return null}function HA(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return cg(t);case 8:return t===jy?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Co(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function m5(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function GA(e){var t=m5(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xd(e){e._valueTracker||(e._valueTracker=GA(e))}function h5(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=m5(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ep(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ug(e,t){var n=t.checked;return St({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function u2(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Co(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function g5(e,t){t=t.checked,t!=null&&Cy(e,"checked",t,!1)}function dg(e,t){g5(e,t);var n=Co(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fg(e,t.type,n):t.hasOwnProperty("defaultValue")&&fg(e,t.type,Co(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function d2(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function fg(e,t,n){(t!=="number"||ep(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var rc=Array.isArray;function Ns(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Sd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Gc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},KA=["Webkit","ms","Moz","O"];Object.keys(yc).forEach(function(e){KA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yc[t]=yc[e]})});function x5(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||yc.hasOwnProperty(e)&&yc[e]?(""+t).trim():t+"px"}function S5(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=x5(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var qA=St({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function hg(e,t){if(t){if(qA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function gg(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vg=null;function Ty(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yg=null,Ds=null,Os=null;function m2(e){if(e=Ou(e)){if(typeof yg!="function")throw Error(U(280));var t=e.stateNode;t&&(t=em(t),yg(e.stateNode,e.type,t))}}function w5(e){Ds?Os?Os.push(e):Os=[e]:Ds=e}function k5(){if(Ds){var e=Ds,t=Os;if(Os=Ds=null,m2(e),t)for(e=0;e>>=0,e===0?32:31-(o9(e)/a9|0)|0}var wd=64,kd=4194304;function ic(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ip(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~i;l!==0?r=ic(l):(o&=a,o!==0&&(r=ic(o)))}else a=n&~i,a!==0?r=ic(a):o!==0&&(r=ic(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Nu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Rr(t),e[t]=n}function u9(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=xc),k2=" ",C2=!1;function W5(e,t){switch(e){case"keyup":return D9.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function U5(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var us=!1;function F9(e,t){switch(e){case"compositionend":return U5(t);case"keypress":return t.which!==32?null:(C2=!0,k2);case"textInput":return e=t.data,e===k2&&C2?null:e;default:return null}}function B9(e,t){if(us)return e==="compositionend"||!Ly&&W5(e,t)?(e=B5(),gf=Iy=ao=null,us=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=T2(n)}}function q5(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?q5(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function X5(){for(var e=window,t=ep();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ep(e.document)}return t}function Ny(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Y9(e){var t=X5(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&q5(n.ownerDocument.documentElement,n)){if(r!==null&&Ny(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=E2(n,o);var a=E2(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ds=null,Cg=null,wc=null,jg=!1;function A2(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jg||ds==null||ds!==ep(r)||(r=ds,"selectionStart"in r&&Ny(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),wc&&Zc(wc,r)||(wc=r,r=sp(Cg,"onSelect"),0ms||(e.current=$g[ms],$g[ms]=null,ms--)}function it(e,t){ms++,$g[ms]=e.current,e.current=t}var jo={},bn=Ro(jo),Ln=Ro(!1),ja=jo;function tl(e,t){var n=e.type.contextTypes;if(!n)return jo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Nn(e){return e=e.childContextTypes,e!=null}function cp(){st(Ln),st(bn)}function N2(e,t,n){if(bn.current!==jo)throw Error(U(168));it(bn,t),it(Ln,n)}function iC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(U(108,HA(e)||"Unknown",i));return St({},n,r)}function up(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jo,ja=bn.current,it(bn,e),it(Ln,Ln.current),!0}function D2(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=iC(e,t,ja),r.__reactInternalMemoizedMergedChildContext=e,st(Ln),st(bn),it(bn,e)):st(Ln),it(Ln,n)}var pi=null,tm=!1,Oh=!1;function oC(e){pi===null?pi=[e]:pi.push(e)}function l$(e){tm=!0,oC(e)}function Mo(){if(!Oh&&pi!==null){Oh=!0;var e=0,t=qe;try{var n=pi;for(qe=1;e>=a,i-=a,yi=1<<32-Rr(t)+i|n<j?(T=P,P=null):T=P.sibling;var E=p(y,P,S[j],w);if(E===null){P===null&&(P=T);break}e&&P&&E.alternate===null&&t(y,P),v=o(E,v,j),C===null?k=E:C.sibling=E,C=E,P=T}if(j===S.length)return n(y,P),ht&&Qo(y,j),k;if(P===null){for(;jj?(T=P,P=null):T=P.sibling;var F=p(y,P,E.value,w);if(F===null){P===null&&(P=T);break}e&&P&&F.alternate===null&&t(y,P),v=o(F,v,j),C===null?k=F:C.sibling=F,C=F,P=T}if(E.done)return n(y,P),ht&&Qo(y,j),k;if(P===null){for(;!E.done;j++,E=S.next())E=f(y,E.value,w),E!==null&&(v=o(E,v,j),C===null?k=E:C.sibling=E,C=E);return ht&&Qo(y,j),k}for(P=r(y,P);!E.done;j++,E=S.next())E=h(P,y,j,E.value,w),E!==null&&(e&&E.alternate!==null&&P.delete(E.key===null?j:E.key),v=o(E,v,j),C===null?k=E:C.sibling=E,C=E);return e&&P.forEach(function(Y){return t(y,Y)}),ht&&Qo(y,j),k}function x(y,v,S,w){if(typeof S=="object"&&S!==null&&S.type===cs&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case bd:e:{for(var k=S.key,C=v;C!==null;){if(C.key===k){if(k=S.type,k===cs){if(C.tag===7){n(y,C.sibling),v=i(C,S.props.children),v.return=y,y=v;break e}}else if(C.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ji&&B2(k)===C.type){n(y,C.sibling),v=i(C,S.props),v.ref=Ul(y,C,S),v.return=y,y=v;break e}n(y,C);break}else t(y,C);C=C.sibling}S.type===cs?(v=ma(S.props.children,y.mode,w,S.key),v.return=y,y=v):(w=Cf(S.type,S.key,S.props,null,y.mode,w),w.ref=Ul(y,v,S),w.return=y,y=w)}return a(y);case ls:e:{for(C=S.key;v!==null;){if(v.key===C)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){n(y,v.sibling),v=i(v,S.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=Kh(S,y.mode,w),v.return=y,y=v}return a(y);case Ji:return C=S._init,x(y,v,C(S._payload),w)}if(rc(S))return g(y,v,S,w);if(Ol(S))return b(y,v,S,w);Ad(y,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,v!==null&&v.tag===6?(n(y,v.sibling),v=i(v,S),v.return=y,y=v):(n(y,v),v=Gh(S,y.mode,w),v.return=y,y=v),a(y)):n(y,v)}return x}var rl=cC(!0),uC=cC(!1),pp=Ro(null),mp=null,vs=null,By=null;function Vy(){By=vs=mp=null}function Wy(e){var t=pp.current;st(pp),e._currentValue=t}function Rg(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Bs(e,t){mp=e,By=vs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Mn=!0),e.firstContext=null)}function xr(e){var t=e._currentValue;if(By!==e)if(e={context:e,memoizedValue:t,next:null},vs===null){if(mp===null)throw Error(U(308));vs=e,mp.dependencies={lanes:0,firstContext:e}}else vs=vs.next=e;return t}var oa=null;function Uy(e){oa===null?oa=[e]:oa.push(e)}function dC(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Uy(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ei(e,r)}function Ei(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var eo=!1;function Hy(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ki(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Le&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ei(e,n)}return i=r.interleaved,i===null?(t.next=t,Uy(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ei(e,n)}function yf(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ay(e,n)}}function V2(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hp(e,t,n,r){var i=e.updateQueue;eo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?o=u:a.next=u,a=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(o!==null){var f=i.baseState;a=0,d=u=c=null,l=o;do{var p=l.lane,h=l.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,b=l;switch(p=t,h=n,b.tag){case 1:if(g=b.payload,typeof g=="function"){f=g.call(h,f,p);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=b.payload,p=typeof g=="function"?g.call(h,f,p):g,p==null)break e;f=St({},f,p);break e;case 2:eo=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[l]:p.push(l))}else h={eventTime:h,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=h,c=f):d=d.next=h,a|=p;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;p=l,l=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(d===null&&(c=f),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Ta|=a,e.lanes=a,e.memoizedState=f}}function W2(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Bh.transition;Bh.transition={};try{e(!1),t()}finally{qe=n,Bh.transition=r}}function EC(){return Sr().memoizedState}function f$(e,t,n){var r=So(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},AC(e))$C(t,n);else if(n=dC(e,t,n,r),n!==null){var i=wn();Mr(n,e,r,i),zC(n,t,r)}}function p$(e,t,n){var r=So(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(AC(e))$C(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,Nr(l,a)){var c=t.interleaved;c===null?(i.next=i,Uy(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=dC(e,t,i,r),n!==null&&(i=wn(),Mr(n,e,r,i),zC(n,t,r))}}function AC(e){var t=e.alternate;return e===bt||t!==null&&t===bt}function $C(e,t){kc=vp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ay(e,n)}}var yp={readContext:xr,useCallback:dn,useContext:dn,useEffect:dn,useImperativeHandle:dn,useInsertionEffect:dn,useLayoutEffect:dn,useMemo:dn,useReducer:dn,useRef:dn,useState:dn,useDebugValue:dn,useDeferredValue:dn,useTransition:dn,useMutableSource:dn,useSyncExternalStore:dn,useId:dn,unstable_isNewReconciler:!1},m$={readContext:xr,useCallback:function(e,t){return Ur().memoizedState=[e,t===void 0?null:t],e},useContext:xr,useEffect:H2,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,xf(4194308,4,CC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xf(4194308,4,e,t)},useInsertionEffect:function(e,t){return xf(4,2,e,t)},useMemo:function(e,t){var n=Ur();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ur();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=f$.bind(null,bt,e),[r.memoizedState,e]},useRef:function(e){var t=Ur();return e={current:e},t.memoizedState=e},useState:U2,useDebugValue:Jy,useDeferredValue:function(e){return Ur().memoizedState=e},useTransition:function(){var e=U2(!1),t=e[0];return e=d$.bind(null,e[1]),Ur().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=bt,i=Ur();if(ht){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Gt===null)throw Error(U(349));_a&30||gC(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,H2(yC.bind(null,r,o,e),[e]),r.flags|=2048,au(9,vC.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ur(),t=Gt.identifierPrefix;if(ht){var n=bi,r=yi;n=(r&~(1<<32-Rr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=iu++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[qr]=t,e[tu]=r,VC(e,t,!1,!1),t.stateNode=e;e:{switch(a=gg(n,r),n){case"dialog":ot("cancel",e),ot("close",e),i=r;break;case"iframe":case"object":case"embed":ot("load",e),i=r;break;case"video":case"audio":for(i=0;ial&&(t.flags|=128,r=!0,Hl(o,!1),t.lanes=4194304)}else{if(!r)if(e=gp(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Hl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!ht)return fn(t),null}else 2*$t()-o.renderingStartTime>al&&n!==1073741824&&(t.flags|=128,r=!0,Hl(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=$t(),t.sibling=null,n=vt.current,it(vt,r?n&1|2:n&1),t):(fn(t),null);case 22:case 23:return o1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Hn&1073741824&&(fn(t),t.subtreeFlags&6&&(t.flags|=8192)):fn(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function w$(e,t){switch(Oy(t),t.tag){case 1:return Nn(t.type)&&cp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return il(),st(Ln),st(bn),qy(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ky(t),null;case 13:if(st(vt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));nl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return st(vt),null;case 4:return il(),null;case 10:return Wy(t.type._context),null;case 22:case 23:return o1(),null;case 24:return null;default:return null}}var zd=!1,hn=!1,k$=typeof WeakSet=="function"?WeakSet:Set,de=null;function ys(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pt(e,t,r)}else n.current=null}function Wg(e,t,n){try{n()}catch(r){Pt(e,t,r)}}var nS=!1;function C$(e,t){if(Pg=op,e=X5(),Ny(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(l=a+i),f!==o||r!==0&&f.nodeType!==3||(c=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===i&&(l=a),p===o&&++d===r&&(c=a),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(_g={focusedElem:e,selectionRange:n},op=!1,de=t;de!==null;)if(t=de,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,de=e;else for(;de!==null;){t=de;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var b=g.memoizedProps,x=g.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:Er(t.type,b),x);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(w){Pt(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,de=e;break}de=t.return}return g=nS,nS=!1,g}function Cc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Wg(t,n,o)}i=i.next}while(i!==r)}}function im(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ug(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function HC(e){var t=e.alternate;t!==null&&(e.alternate=null,HC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[qr],delete t[tu],delete t[Ag],delete t[a$],delete t[s$])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function GC(e){return e.tag===5||e.tag===3||e.tag===4}function rS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||GC(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=lp));else if(r!==4&&(e=e.child,e!==null))for(Hg(e,t,n),e=e.sibling;e!==null;)Hg(e,t,n),e=e.sibling}function Gg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Gg(e,t,n),e=e.sibling;e!==null;)Gg(e,t,n),e=e.sibling}var Qt=null,Ar=!1;function Hi(e,t,n){for(n=n.child;n!==null;)KC(e,t,n),n=n.sibling}function KC(e,t,n){if(Jr&&typeof Jr.onCommitFiberUnmount=="function")try{Jr.onCommitFiberUnmount(Yp,n)}catch{}switch(n.tag){case 5:hn||ys(n,t);case 6:var r=Qt,i=Ar;Qt=null,Hi(e,t,n),Qt=r,Ar=i,Qt!==null&&(Ar?(e=Qt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Qt.removeChild(n.stateNode));break;case 18:Qt!==null&&(Ar?(e=Qt,n=n.stateNode,e.nodeType===8?Dh(e.parentNode,n):e.nodeType===1&&Dh(e,n),Yc(e)):Dh(Qt,n.stateNode));break;case 4:r=Qt,i=Ar,Qt=n.stateNode.containerInfo,Ar=!0,Hi(e,t,n),Qt=r,Ar=i;break;case 0:case 11:case 14:case 15:if(!hn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Wg(n,t,a),i=i.next}while(i!==r)}Hi(e,t,n);break;case 1:if(!hn&&(ys(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Pt(n,t,l)}Hi(e,t,n);break;case 21:Hi(e,t,n);break;case 22:n.mode&1?(hn=(r=hn)||n.memoizedState!==null,Hi(e,t,n),hn=r):Hi(e,t,n);break;default:Hi(e,t,n)}}function iS(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new k$),t.forEach(function(r){var i=I$.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function jr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=$t()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*P$(r/1960))-r,10e?16:e,so===null)var r=!1;else{if(e=so,so=null,Sp=0,Le&6)throw Error(U(331));var i=Le;for(Le|=4,de=e.current;de!==null;){var o=de,a=o.child;if(de.flags&16){var l=o.deletions;if(l!==null){for(var c=0;c$t()-r1?pa(e,0):n1|=n),Dn(e,t)}function t6(e,t){t===0&&(e.mode&1?(t=kd,kd<<=1,!(kd&130023424)&&(kd=4194304)):t=1);var n=wn();e=Ei(e,t),e!==null&&(Nu(e,t,n),Dn(e,n))}function z$(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),t6(e,n)}function I$(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),t6(e,n)}var n6;n6=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ln.current)Mn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Mn=!1,x$(e,t,n);Mn=!!(e.flags&131072)}else Mn=!1,ht&&t.flags&1048576&&aC(t,fp,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Sf(e,t),e=t.pendingProps;var i=tl(t,bn.current);Bs(t,n),i=Yy(null,t,r,e,i,n);var o=Qy();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Nn(r)?(o=!0,up(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Hy(t),i.updater=rm,t.stateNode=i,i._reactInternals=t,Lg(t,r,e,n),t=Og(null,t,r,!0,o,n)):(t.tag=0,ht&&o&&Dy(t),Sn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Sf(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=M$(r),e=Er(r,e),i){case 0:t=Dg(null,t,r,e,n);break e;case 1:t=J2(null,t,r,e,n);break e;case 11:t=Q2(null,t,r,e,n);break e;case 14:t=Z2(null,t,r,Er(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Er(r,i),Dg(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Er(r,i),J2(e,t,r,i,n);case 3:e:{if(OC(t),e===null)throw Error(U(387));r=t.pendingProps,o=t.memoizedState,i=o.element,fC(e,t),hp(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ol(Error(U(423)),t),t=eS(e,t,r,n,i);break e}else if(r!==i){i=ol(Error(U(424)),t),t=eS(e,t,r,n,i);break e}else for(Gn=yo(t.stateNode.containerInfo.firstChild),qn=t,ht=!0,$r=null,n=uC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(nl(),r===i){t=Ai(e,t,n);break e}Sn(e,t,r,n)}t=t.child}return t;case 5:return pC(t),e===null&&Ig(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Tg(r,i)?a=null:o!==null&&Tg(r,o)&&(t.flags|=32),DC(e,t),Sn(e,t,a,n),t.child;case 6:return e===null&&Ig(t),null;case 13:return FC(e,t,n);case 4:return Gy(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=rl(t,null,r,n):Sn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Er(r,i),Q2(e,t,r,i,n);case 7:return Sn(e,t,t.pendingProps,n),t.child;case 8:return Sn(e,t,t.pendingProps.children,n),t.child;case 12:return Sn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,it(pp,r._currentValue),r._currentValue=a,o!==null)if(Nr(o.value,a)){if(o.children===i.children&&!Ln.current){t=Ai(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){a=o.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=ki(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Rg(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(U(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Rg(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Sn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Bs(t,n),i=xr(i),r=r(i),t.flags|=1,Sn(e,t,r,n),t.child;case 14:return r=t.type,i=Er(r,t.pendingProps),i=Er(r.type,i),Z2(e,t,r,i,n);case 15:return LC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Er(r,i),Sf(e,t),t.tag=1,Nn(r)?(e=!0,up(t)):e=!1,Bs(t,n),IC(t,r,i),Lg(t,r,i,n),Og(null,t,r,!0,e,n);case 19:return BC(e,t,n);case 22:return NC(e,t,n)}throw Error(U(156,t.tag))};function r6(e,t){return A5(e,t)}function R$(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hr(e,t,n,r){return new R$(e,t,n,r)}function s1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function M$(e){if(typeof e=="function")return s1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Py)return 11;if(e===_y)return 14}return 2}function wo(e,t){var n=e.alternate;return n===null?(n=hr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Cf(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")s1(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case cs:return ma(n.children,i,o,t);case jy:a=8,i|=8;break;case ag:return e=hr(12,n,t,i|2),e.elementType=ag,e.lanes=o,e;case sg:return e=hr(13,n,t,i),e.elementType=sg,e.lanes=o,e;case lg:return e=hr(19,n,t,i),e.elementType=lg,e.lanes=o,e;case p5:return am(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case d5:a=10;break e;case f5:a=9;break e;case Py:a=11;break e;case _y:a=14;break e;case Ji:a=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=hr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ma(e,t,n,r){return e=hr(7,e,r,t),e.lanes=n,e}function am(e,t,n,r){return e=hr(22,e,r,t),e.elementType=p5,e.lanes=n,e.stateNode={isHidden:!1},e}function Gh(e,t,n){return e=hr(6,e,null,t),e.lanes=n,e}function Kh(e,t,n){return t=hr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function L$(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_h(0),this.expirationTimes=_h(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_h(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function l1(e,t,n,r,i,o,a,l,c){return e=new L$(e,t,n,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=hr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hy(o),e}function N$(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s6)}catch(e){console.error(e)}}s6(),s5.exports=tr;var f1=s5.exports,fS=f1;ig.createRoot=fS.createRoot,ig.hydrateRoot=fS.hydrateRoot;function l6(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function V$(){return!!(globalThis!=null&&globalThis.document)}function c6(e){return e.parentElement&&c6(e.parentElement)?!0:e.hidden}function W$(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function U$(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function H$(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&(i in n&&delete n[i],n[i]=r[i]);return n}const me=e=>e?"":void 0,yr=e=>e?!0:void 0;function Qg(e){return Array.isArray(e)}function Ft(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Qg(e)}function G$(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function K$(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Zg(e){if(e==null)return e;const{unitless:t}=K$(e);return t||typeof e=="number"?`${e}px`:e}const u6=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,p1=e=>Object.fromEntries(Object.entries(e).sort(u6));function pS(e){const t=p1(e);return Object.assign(Object.values(t),t)}function q$(e){const t=Object.keys(p1(e));return new Set(t)}function mS(e){if(!e)return e;e=Zg(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function ac(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Zg(e)})`),t&&n.push("and",`(max-width: ${Zg(t)})`),n.join(" ")}function X$(e){if(!e)return null;e.base=e.base??"0px";const t=pS(e),n=Object.entries(e).sort(u6).map(([o,a],l,c)=>{let[,u]=c[l+1]??[];return u=parseFloat(u)>0?mS(u):void 0,{_minW:mS(a),breakpoint:o,minW:a,maxW:u,maxWQuery:ac(null,u),minWQuery:ac(a),minMaxQuery:ac(a,u)}}),r=q$(e),i=Array.from(r.values());return{keys:r,normalized:t,isResponsive(o){const a=Object.keys(o);return a.length>0&&a.every(l=>r.has(l))},asObject:p1(e),asArray:pS(e),details:n,get(o){return n.find(a=>a.breakpoint===o)},media:[null,...t.map(o=>ac(o)).slice(1)],toArrayValue(o){if(!Ft(o))throw new Error("toArrayValue: value must be an object");const a=i.map(l=>o[l]??null);for(;G$(a)===null;)a.pop();return a},toObjectValue(o){if(!Array.isArray(o))throw new Error("toObjectValue: value must be an array");return o.reduce((a,l,c)=>{const u=i[c];return u!=null&&l!=null&&(a[u]=l),a},{})}}}function Y$(...e){return function(...n){e.forEach(r=>r==null?void 0:r(...n))}}function fe(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function m1(e){return m.Children.toArray(e).filter(t=>m.isValidElement(t))}function h1(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Q$(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Te(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:a}=e,l=m.createContext(a);l.displayName=t;function c(){var d;const u=m.useContext(l);if(!u&&n){const f=new Error(o??Q$(r,i));throw f.name="ContextError",(d=Error.captureStackTrace)==null||d.call(Error,f,c),f}return u}return[l.Provider,c,l]}const W=(...e)=>e.filter(Boolean).join(" "),Z$=e=>e.hasAttribute("tabindex");function J$(e){if(!l6(e)||c6(e)||U$(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():W$(e)?!0:Z$(e)}const ez=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],tz=ez.join(),nz=e=>e.offsetWidth>0&&e.offsetHeight>0;function rz(e){const t=Array.from(e.querySelectorAll(tz));return t.unshift(e),t.filter(n=>J$(n)&&nz(n))}function iz(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,a)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const l=t.get(r);if(l.has(i))return l.get(i);const c=e(r,i,o,a);return l.set(i,c),c}},d6=oz(iz),az=e=>e.default||e;function sz(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function f6(e,t){let n=sz(e);const r=10**(t??10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function hS(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function lz(e,t,n){return e==null?e:(nn===null?null:t(n)):Ft(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function cz(e,t=m6){const n={};return e.forEach((r,i)=>{const o=t[i];r!=null&&(n[o]=r)}),n}const uz=e=>typeof e=="function";function gn(e,...t){return uz(e)?e(...t):e}function dz(e){const t=e.ownerDocument.defaultView||window,{overflow:n,overflowX:r,overflowY:i}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(n+i+r)}function fz(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function h6(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:l6(e)&&dz(e)?e:h6(fz(e))}function g6(e,t){const n={},r={};for(const[i,o]of Object.entries(e))t.includes(i)?n[i]=o:r[i]=o;return[n,r]}function pz(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),i=a=>{const l={};for(let c=0;ci(Array.isArray(a)?a:r.filter(a));return t.map(o).concat(i(r))}function gS(e,t,n={}){const{stop:r,getKey:i}=n;function o(a,l=[]){if(Ft(a)||Array.isArray(a)){const c={};for(const[u,d]of Object.entries(a)){const f=(i==null?void 0:i(u))??u,p=[...l,f];if(r!=null&&r(a,p))return t(a,l);c[f]=o(d,p)}return c}return t(a,l)}return o(e)}var Cp={exports:{}};Cp.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,a=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",p="[object Error]",h="[object Function]",g="[object GeneratorFunction]",b="[object Map]",x="[object Number]",y="[object Null]",v="[object Object]",S="[object Proxy]",w="[object RegExp]",k="[object Set]",C="[object String]",P="[object Undefined]",j="[object WeakMap]",T="[object ArrayBuffer]",E="[object DataView]",F="[object Float32Array]",Y="[object Float64Array]",q="[object Int8Array]",M="[object Int16Array]",N="[object Int32Array]",D="[object Uint8Array]",R="[object Uint8ClampedArray]",I="[object Uint16Array]",L="[object Uint32Array]",H=/[\\^$.*+?()[\]{}|]/g,Z=/^\[object .+?Constructor\]$/,le=/^(?:0|[1-9]\d*)$/,ie={};ie[F]=ie[Y]=ie[q]=ie[M]=ie[N]=ie[D]=ie[R]=ie[I]=ie[L]=!0,ie[l]=ie[c]=ie[T]=ie[d]=ie[E]=ie[f]=ie[p]=ie[h]=ie[b]=ie[x]=ie[v]=ie[w]=ie[k]=ie[C]=ie[j]=!1;var Q=typeof vd=="object"&&vd&&vd.Object===Object&&vd,oe=typeof self=="object"&&self&&self.Object===Object&&self,ce=Q||oe||Function("return this")(),Me=t&&!t.nodeType&&t,Qe=Me&&!0&&e&&!e.nodeType&&e,te=Qe&&Qe.exports===Me,ne=te&&Q.process,_e=function(){try{var _=Qe&&Qe.require&&Qe.require("util").types;return _||ne&&ne.binding&&ne.binding("util")}catch{}}(),ve=_e&&_e.isTypedArray;function Ke(_,$,B){switch(B.length){case 0:return _.call($);case 1:return _.call($,B[0]);case 2:return _.call($,B[0],B[1]);case 3:return _.call($,B[0],B[1],B[2])}return _.apply($,B)}function se(_,$){for(var B=-1,pe=Array(_);++B<_;)pe[B]=$(B);return pe}function tt(_){return function($){return _($)}}function Ne(_,$){return _==null?void 0:_[$]}function kt(_,$){return function(B){return _($(B))}}var Ce=Array.prototype,Yt=Function.prototype,Et=Object.prototype,An=ce["__core-js_shared__"],$n=Yt.toString,ue=Et.hasOwnProperty,sr=function(){var _=/[^.]+$/.exec(An&&An.keys&&An.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),ci=Et.toString,Ka=$n.call(Object),qa=RegExp("^"+$n.call(ue).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=te?ce.Buffer:void 0,nt=ce.Symbol,un=ce.Uint8Array;X&&X.allocUnsafe;var lr=kt(Object.getPrototypeOf,Object),Ui=Object.create,dd=Et.propertyIsEnumerable,d7=Ce.splice,Uo=nt?nt.toStringTag:void 0,fd=function(){try{var _=ph(Object,"defineProperty");return _({},"",{}),_}catch{}}(),f7=X?X.isBuffer:void 0,Bx=Math.max,p7=Date.now,Vx=ph(ce,"Map"),Ll=ph(Object,"create"),m7=function(){function _(){}return function($){if(!Go($))return{};if(Ui)return Ui($);_.prototype=$;var B=new _;return _.prototype=void 0,B}}();function Ho(_){var $=-1,B=_==null?0:_.length;for(this.clear();++$-1}function C7(_,$){var B=this.__data__,pe=pd(B,_);return pe<0?(++this.size,B.push([_,$])):B[pe][1]=$,this}ui.prototype.clear=x7,ui.prototype.delete=S7,ui.prototype.get=w7,ui.prototype.has=k7,ui.prototype.set=C7;function Xa(_){var $=-1,B=_==null?0:_.length;for(this.clear();++$1?B[Re-1]:void 0,ft=Re>2?B[2]:void 0;for(Ze=_.length>3&&typeof Ze=="function"?(Re--,Ze):void 0,ft&&J7(B[0],B[1],ft)&&(Ze=Re<3?void 0:Ze,Re=1),$=Object($);++pe-1&&_%1==0&&_<$}function J7(_,$,B){if(!Go(B))return!1;var pe=typeof $;return(pe=="number"?vh(B)&&Hx($,B.length):pe=="string"&&$ in B)?gd(B[$],_):!1}function eA(_){var $=typeof _;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?_!=="__proto__":_===null}function tA(_){return!!sr&&sr in _}function Gx(_){var $=_&&_.constructor,B=typeof $=="function"&&$.prototype||Et;return _===B}function nA(_){var $=[];if(_!=null)for(var B in Object(_))$.push(B);return $}function rA(_){return ci.call(_)}function iA(_,$,B){return $=Bx($===void 0?_.length-1:$,0),function(){for(var pe=arguments,Re=-1,Ze=Bx(pe.length-$,0),ft=Array(Ze);++Re0){if(++$>=i)return arguments[0]}else $=0;return _.apply(void 0,arguments)}}function sA(_){if(_!=null){try{return $n.call(_)}catch{}try{return _+""}catch{}}return""}function gd(_,$){return _===$||_!==_&&$!==$}var hh=Wx(function(){return arguments}())?Wx:function(_){return Nl(_)&&ue.call(_,"callee")&&!dd.call(_,"callee")},gh=Array.isArray;function vh(_){return _!=null&&qx(_.length)&&!yh(_)}function lA(_){return Nl(_)&&vh(_)}var Kx=f7||pA;function yh(_){if(!Go(_))return!1;var $=md(_);return $==h||$==g||$==u||$==S}function qx(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=a}function Go(_){var $=typeof _;return _!=null&&($=="object"||$=="function")}function Nl(_){return _!=null&&typeof _=="object"}function cA(_){if(!Nl(_)||md(_)!=v)return!1;var $=lr(_);if($===null)return!0;var B=ue.call($,"constructor")&&$.constructor;return typeof B=="function"&&B instanceof B&&$n.call(B)==Ka}var Xx=ve?tt(ve):O7;function uA(_){return q7(_,Yx(_))}function Yx(_){return vh(_)?M7(_):F7(_)}var dA=X7(function(_,$,B,pe){Ux(_,$,B,pe)});function fA(_){return function(){return _}}function Qx(_){return _}function pA(){return!1}e.exports=dA})(Cp,Cp.exports);var mz=Cp.exports;const gr=vy(mz);function Ht(e,t=[]){const n=m.useRef(e);return m.useEffect(()=>{n.current=e}),m.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function _c(e,t,n,r){const i=Ht(n);return m.useEffect(()=>{const o=typeof e=="function"?e():e??document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e??document;o==null||o.removeEventListener(t,i,r)}}function v6(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:i=(p,h)=>p!==h}=e,o=Ht(r),a=Ht(i),[l,c]=m.useState(n),u=t!==void 0,d=u?t:l,f=Ht(p=>{const g=typeof p=="function"?p(d):p;a(d,g)&&(u||c(g),o(g))},[u,o,d,a]);return[d,f]}function hz(e={}){const{onChange:t,precision:n,defaultValue:r,value:i,step:o=1,min:a=Number.MIN_SAFE_INTEGER,max:l=Number.MAX_SAFE_INTEGER,keepWithinRange:c=!0}=e,u=Ht(t),[d,f]=m.useState(()=>r==null?"":qh(r,o,n)??""),p=typeof i<"u",h=p?i:d,g=y6(Xi(h),o),b=n??g,x=m.useCallback(E=>{E!==h&&(p||f(E.toString()),u==null||u(E.toString(),Xi(E)))},[u,p,h]),y=m.useCallback(E=>{let F=E;return c&&(F=lz(F,a,l)),f6(F,b)},[b,c,l,a]),v=m.useCallback((E=o)=>{let F;h===""?F=Xi(E):F=Xi(h)+E,F=y(F),x(F)},[y,o,x,h]),S=m.useCallback((E=o)=>{let F;h===""?F=Xi(-E):F=Xi(h)-E,F=y(F),x(F)},[y,o,x,h]),w=m.useCallback(()=>{let E;r==null?E="":E=qh(r,o,n)??a,x(E)},[r,n,o,x,a]),k=m.useCallback(E=>{const F=qh(E,o,b)??a;x(F)},[b,o,x,a]),C=Xi(h);return{isOutOfRange:C>l||C{d||c(!1),a==null||a()},[d,a]),g=m.useCallback(()=>{d||c(!0),o==null||o()},[d,o]),b=m.useCallback(()=>{u?h():g()},[u,g,h]);function x(v={}){return{...v,"aria-expanded":u,"aria-controls":p,onClick(S){var w;(w=v.onClick)==null||w.call(v,S),b()}}}function y(v={}){return{...v,hidden:!u,id:p}}return{isOpen:u,onOpen:g,onClose:h,onToggle:b,isControlled:d,getButtonProps:x,getDisclosureProps:y}}const ti=globalThis!=null&&globalThis.document?m.useLayoutEffect:m.useEffect,lu=(e,t)=>{const n=m.useRef(!1),r=m.useRef(!1);m.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),m.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function gz(e){return"current"in e}const b6=()=>typeof window<"u";function vz(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}const yz=e=>b6()&&e.test(navigator.vendor),bz=e=>b6()&&e.test(vz()),xz=()=>bz(/mac|iphone|ipad|ipod/i),Sz=()=>xz()&&yz(/apple/i);function wz(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var o;return((o=t.current)==null?void 0:o.ownerDocument)??document};_c(i,"pointerdown",o=>{var u,d;if(!Sz()||!r)return;const a=((d=(u=o.composedPath)==null?void 0:u.call(o))==null?void 0:d[0])??o.target,c=(n??[t]).some(f=>{const p=gz(f)?f.current:f;return(p==null?void 0:p.contains(a))||p===a});i().activeElement!==a&&c&&(o.preventDefault(),a.focus())})}function kz(e,t){const n=Ht(e);m.useEffect(()=>{let r=null;const i=()=>n();return t!==null&&(r=window.setInterval(i,t)),()=>{r&&window.clearInterval(r)}},[t,n])}function Cz(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function _t(...e){return t=>{e.forEach(n=>{Cz(n,t)})}}function v1(...e){return m.useMemo(()=>_t(...e),e)}function jz(e,t){const n=Ht(e);m.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const Nt={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Br=e=>x6(t=>e(t,"&"),"[role=group]","[data-group]",".group"),di=e=>x6(t=>e(t,"~ &"),"[data-peer]",".peer"),x6=(e,...t)=>t.map(e).join(", "),Ws={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:Br(Nt.open),_groupClosed:Br(Nt.closed),_groupHover:Br(Nt.hover),_peerHover:di(Nt.hover),_groupFocus:Br(Nt.focus),_peerFocus:di(Nt.focus),_groupFocusVisible:Br(Nt.focusVisible),_peerFocusVisible:di(Nt.focusVisible),_groupActive:Br(Nt.active),_peerActive:di(Nt.active),_groupDisabled:Br(Nt.disabled),_peerDisabled:di(Nt.disabled),_groupInvalid:Br(Nt.invalid),_peerInvalid:di(Nt.invalid),_groupChecked:Br(Nt.checked),_peerChecked:di(Nt.checked),_groupFocusWithin:Br(Nt.focusWithin),_peerFocusWithin:di(Nt.focusWithin),_peerPlaceholderShown:di(Nt.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},S6=Object.keys(Ws),Pz=e=>/!(important)?$/.test(e),vS=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,_z=(e,t)=>n=>{const r=String(t),i=Pz(r),o=vS(r),a=e?`${e}.${o}`:o;let l=Ft(n.__cssMap)&&a in n.__cssMap?n.__cssMap[a].varRef:t;return l=vS(l),i?`${l} !important`:l};function y1(e){const{scale:t,transform:n,compose:r}=e;return(o,a)=>{const l=_z(t,o)(a);let c=(n==null?void 0:n(l,a))??l;return r&&(c=r(c,a)),c}}const Md=(...e)=>t=>e.reduce((n,r)=>r(n),t);function cr(e,t){return n=>{const r={property:n,scale:e};return r.transform=y1({scale:e,transform:t}),r}}const Tz=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function Ez(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:Tz(t),transform:n?y1({scale:n,compose:r}):r}}const w6=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function Az(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...w6].join(" ")}function $z(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...w6].join(" ")}const zz={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},Iz={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function Rz(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const Mz={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Jg={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},Lz=new Set(Object.values(Jg)),ev=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Nz=e=>e.trim();function Dz(e,t){if(e==null||ev.has(e))return e;if(!(tv(e)||ev.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),o=i==null?void 0:i[1],a=i==null?void 0:i[2];if(!o||!a)return e;const l=o.includes("-gradient")?o:`${o}-gradient`,[c,...u]=a.split(",").map(Nz).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const d=c in Jg?Jg[c]:c;u.unshift(d);const f=u.map(p=>{if(Lz.has(p))return p;const h=p.indexOf(" "),[g,b]=h!==-1?[p.substr(0,h),p.substr(h+1)]:[p],x=tv(b)?b:b&&b.split(" "),y=`colors.${g}`,v=y in t.__cssMap?t.__cssMap[y].varRef:g;return x?[v,...Array.isArray(x)?x:[x]].join(" "):v});return`${l}(${f.join(", ")})`}const tv=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),Oz=(e,t)=>Dz(e,t??{});function Fz(e){return/^var\(--.+\)$/.test(e)}const Bz=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Vr=e=>t=>`${e}(${t})`,ze={filter(e){return e!=="auto"?e:zz},backdropFilter(e){return e!=="auto"?e:Iz},ring(e){return Rz(ze.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Az():e==="auto-gpu"?$z():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=Bz(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(Fz(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:Oz,blur:Vr("blur"),opacity:Vr("opacity"),brightness:Vr("brightness"),contrast:Vr("contrast"),dropShadow:Vr("drop-shadow"),grayscale:Vr("grayscale"),hueRotate:e=>Vr("hue-rotate")(ze.degree(e)),invert:Vr("invert"),saturate:Vr("saturate"),sepia:Vr("sepia"),bgImage(e){return e==null||tv(e)||ev.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=Mz[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},A={borderWidths:cr("borderWidths"),borderStyles:cr("borderStyles"),colors:cr("colors"),borders:cr("borders"),gradients:cr("gradients",ze.gradient),radii:cr("radii",ze.px),space:cr("space",Md(ze.vh,ze.px)),spaceT:cr("space",Md(ze.vh,ze.px)),degreeT(e){return{property:e,transform:ze.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:y1({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:cr("sizes",Md(ze.vh,ze.px)),sizesT:cr("sizes",Md(ze.vh,ze.fraction)),shadows:cr("shadows"),logical:Ez,blur:cr("blur",ze.blur)},jf={background:A.colors("background"),backgroundColor:A.colors("backgroundColor"),backgroundImage:A.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:ze.bgClip},bgSize:A.prop("backgroundSize"),bgPosition:A.prop("backgroundPosition"),bg:A.colors("background"),bgColor:A.colors("backgroundColor"),bgPos:A.prop("backgroundPosition"),bgRepeat:A.prop("backgroundRepeat"),bgAttachment:A.prop("backgroundAttachment"),bgGradient:A.gradients("backgroundImage"),bgClip:{transform:ze.bgClip}};Object.assign(jf,{bgImage:jf.backgroundImage,bgImg:jf.backgroundImage});const Be={border:A.borders("border"),borderWidth:A.borderWidths("borderWidth"),borderStyle:A.borderStyles("borderStyle"),borderColor:A.colors("borderColor"),borderRadius:A.radii("borderRadius"),borderTop:A.borders("borderTop"),borderBlockStart:A.borders("borderBlockStart"),borderTopLeftRadius:A.radii("borderTopLeftRadius"),borderStartStartRadius:A.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:A.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:A.radii("borderTopRightRadius"),borderStartEndRadius:A.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:A.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:A.borders("borderRight"),borderInlineEnd:A.borders("borderInlineEnd"),borderBottom:A.borders("borderBottom"),borderBlockEnd:A.borders("borderBlockEnd"),borderBottomLeftRadius:A.radii("borderBottomLeftRadius"),borderBottomRightRadius:A.radii("borderBottomRightRadius"),borderLeft:A.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:A.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:A.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:A.borders(["borderLeft","borderRight"]),borderInline:A.borders("borderInline"),borderY:A.borders(["borderTop","borderBottom"]),borderBlock:A.borders("borderBlock"),borderTopWidth:A.borderWidths("borderTopWidth"),borderBlockStartWidth:A.borderWidths("borderBlockStartWidth"),borderTopColor:A.colors("borderTopColor"),borderBlockStartColor:A.colors("borderBlockStartColor"),borderTopStyle:A.borderStyles("borderTopStyle"),borderBlockStartStyle:A.borderStyles("borderBlockStartStyle"),borderBottomWidth:A.borderWidths("borderBottomWidth"),borderBlockEndWidth:A.borderWidths("borderBlockEndWidth"),borderBottomColor:A.colors("borderBottomColor"),borderBlockEndColor:A.colors("borderBlockEndColor"),borderBottomStyle:A.borderStyles("borderBottomStyle"),borderBlockEndStyle:A.borderStyles("borderBlockEndStyle"),borderLeftWidth:A.borderWidths("borderLeftWidth"),borderInlineStartWidth:A.borderWidths("borderInlineStartWidth"),borderLeftColor:A.colors("borderLeftColor"),borderInlineStartColor:A.colors("borderInlineStartColor"),borderLeftStyle:A.borderStyles("borderLeftStyle"),borderInlineStartStyle:A.borderStyles("borderInlineStartStyle"),borderRightWidth:A.borderWidths("borderRightWidth"),borderInlineEndWidth:A.borderWidths("borderInlineEndWidth"),borderRightColor:A.colors("borderRightColor"),borderInlineEndColor:A.colors("borderInlineEndColor"),borderRightStyle:A.borderStyles("borderRightStyle"),borderInlineEndStyle:A.borderStyles("borderInlineEndStyle"),borderTopRadius:A.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:A.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:A.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:A.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Be,{rounded:Be.borderRadius,roundedTop:Be.borderTopRadius,roundedTopLeft:Be.borderTopLeftRadius,roundedTopRight:Be.borderTopRightRadius,roundedTopStart:Be.borderStartStartRadius,roundedTopEnd:Be.borderStartEndRadius,roundedBottom:Be.borderBottomRadius,roundedBottomLeft:Be.borderBottomLeftRadius,roundedBottomRight:Be.borderBottomRightRadius,roundedBottomStart:Be.borderEndStartRadius,roundedBottomEnd:Be.borderEndEndRadius,roundedLeft:Be.borderLeftRadius,roundedRight:Be.borderRightRadius,roundedStart:Be.borderInlineStartRadius,roundedEnd:Be.borderInlineEndRadius,borderStart:Be.borderInlineStart,borderEnd:Be.borderInlineEnd,borderTopStartRadius:Be.borderStartStartRadius,borderTopEndRadius:Be.borderStartEndRadius,borderBottomStartRadius:Be.borderEndStartRadius,borderBottomEndRadius:Be.borderEndEndRadius,borderStartRadius:Be.borderInlineStartRadius,borderEndRadius:Be.borderInlineEndRadius,borderStartWidth:Be.borderInlineStartWidth,borderEndWidth:Be.borderInlineEndWidth,borderStartColor:Be.borderInlineStartColor,borderEndColor:Be.borderInlineEndColor,borderStartStyle:Be.borderInlineStartStyle,borderEndStyle:Be.borderInlineEndStyle});const Vz={color:A.colors("color"),textColor:A.colors("color"),fill:A.colors("fill"),stroke:A.colors("stroke"),accentColor:A.colors("accentColor"),textFillColor:A.colors("textFillColor")},jp={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:ze.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:A.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:A.space("gap"),rowGap:A.space("rowGap"),columnGap:A.space("columnGap")};Object.assign(jp,{flexDir:jp.flexDirection});const dr={width:A.sizesT("width"),inlineSize:A.sizesT("inlineSize"),height:A.sizes("height"),blockSize:A.sizes("blockSize"),boxSize:A.sizes(["width","height"]),minWidth:A.sizes("minWidth"),minInlineSize:A.sizes("minInlineSize"),minHeight:A.sizes("minHeight"),minBlockSize:A.sizes("minBlockSize"),maxWidth:A.sizes("maxWidth"),maxInlineSize:A.sizes("maxInlineSize"),maxHeight:A.sizes("maxHeight"),maxBlockSize:A.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var i,o;return{[`@media screen and (min-width: ${((o=(i=t.__breakpoints)==null?void 0:i.get(e))==null?void 0:o.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var i,o;return{[`@media screen and (max-width: ${((o=(i=t.__breakpoints)==null?void 0:i.get(e))==null?void 0:o._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:A.propT("float",ze.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(dr,{w:dr.width,h:dr.height,minW:dr.minWidth,maxW:dr.maxWidth,minH:dr.minHeight,maxH:dr.maxHeight,overscroll:dr.overscrollBehavior,overscrollX:dr.overscrollBehaviorX,overscrollY:dr.overscrollBehaviorY});const Wz={filter:{transform:ze.filter},blur:A.blur("--chakra-blur"),brightness:A.propT("--chakra-brightness",ze.brightness),contrast:A.propT("--chakra-contrast",ze.contrast),hueRotate:A.propT("--chakra-hue-rotate",ze.hueRotate),invert:A.propT("--chakra-invert",ze.invert),saturate:A.propT("--chakra-saturate",ze.saturate),dropShadow:A.propT("--chakra-drop-shadow",ze.dropShadow),backdropFilter:{transform:ze.backdropFilter},backdropBlur:A.blur("--chakra-backdrop-blur"),backdropBrightness:A.propT("--chakra-backdrop-brightness",ze.brightness),backdropContrast:A.propT("--chakra-backdrop-contrast",ze.contrast),backdropHueRotate:A.propT("--chakra-backdrop-hue-rotate",ze.hueRotate),backdropInvert:A.propT("--chakra-backdrop-invert",ze.invert),backdropSaturate:A.propT("--chakra-backdrop-saturate",ze.saturate)},Uz={ring:{transform:ze.ring},ringColor:A.colors("--chakra-ring-color"),ringOffset:A.prop("--chakra-ring-offset-width"),ringOffsetColor:A.colors("--chakra-ring-offset-color"),ringInset:A.prop("--chakra-ring-inset")},Hz={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:ze.outline},outlineOffset:!0,outlineColor:A.colors("outlineColor")},k6={gridGap:A.space("gridGap"),gridColumnGap:A.space("gridColumnGap"),gridRowGap:A.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function Gz(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,a)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const l=t.get(r);if(l.has(i))return l.get(i);const c=e(r,i,o,a);return l.set(i,c),c}},qz=Kz(Gz),Xz={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Yz={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Xh=(e,t,n)=>{const r={},i=qz(e,t,{});for(const o in i)o in n&&n[o]!=null||(r[o]=i[o]);return r},Qz={srOnly:{transform(e){return e===!0?Xz:e==="focusable"?Yz:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>Xh(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>Xh(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>Xh(t,e,n)}},Tc={position:!0,pos:A.prop("position"),zIndex:A.prop("zIndex","zIndices"),inset:A.spaceT("inset"),insetX:A.spaceT(["left","right"]),insetInline:A.spaceT("insetInline"),insetY:A.spaceT(["top","bottom"]),insetBlock:A.spaceT("insetBlock"),top:A.spaceT("top"),insetBlockStart:A.spaceT("insetBlockStart"),bottom:A.spaceT("bottom"),insetBlockEnd:A.spaceT("insetBlockEnd"),left:A.spaceT("left"),insetInlineStart:A.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:A.spaceT("right"),insetInlineEnd:A.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Tc,{insetStart:Tc.insetInlineStart,insetEnd:Tc.insetInlineEnd});const nv={boxShadow:A.shadows("boxShadow"),mixBlendMode:!0,blendMode:A.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:A.prop("backgroundBlendMode"),opacity:!0};Object.assign(nv,{shadow:nv.boxShadow});const at={margin:A.spaceT("margin"),marginTop:A.spaceT("marginTop"),marginBlockStart:A.spaceT("marginBlockStart"),marginRight:A.spaceT("marginRight"),marginInlineEnd:A.spaceT("marginInlineEnd"),marginBottom:A.spaceT("marginBottom"),marginBlockEnd:A.spaceT("marginBlockEnd"),marginLeft:A.spaceT("marginLeft"),marginInlineStart:A.spaceT("marginInlineStart"),marginX:A.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:A.spaceT("marginInline"),marginY:A.spaceT(["marginTop","marginBottom"]),marginBlock:A.spaceT("marginBlock"),padding:A.space("padding"),paddingTop:A.space("paddingTop"),paddingBlockStart:A.space("paddingBlockStart"),paddingRight:A.space("paddingRight"),paddingBottom:A.space("paddingBottom"),paddingBlockEnd:A.space("paddingBlockEnd"),paddingLeft:A.space("paddingLeft"),paddingInlineStart:A.space("paddingInlineStart"),paddingInlineEnd:A.space("paddingInlineEnd"),paddingX:A.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:A.space("paddingInline"),paddingY:A.space(["paddingTop","paddingBottom"]),paddingBlock:A.space("paddingBlock")};Object.assign(at,{m:at.margin,mt:at.marginTop,mr:at.marginRight,me:at.marginInlineEnd,marginEnd:at.marginInlineEnd,mb:at.marginBottom,ml:at.marginLeft,ms:at.marginInlineStart,marginStart:at.marginInlineStart,mx:at.marginX,my:at.marginY,p:at.padding,pt:at.paddingTop,py:at.paddingY,px:at.paddingX,pb:at.paddingBottom,pl:at.paddingLeft,ps:at.paddingInlineStart,paddingStart:at.paddingInlineStart,pr:at.paddingRight,pe:at.paddingInlineEnd,paddingEnd:at.paddingInlineEnd});const Zz={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:A.spaceT("scrollMargin"),scrollMarginTop:A.spaceT("scrollMarginTop"),scrollMarginBottom:A.spaceT("scrollMarginBottom"),scrollMarginLeft:A.spaceT("scrollMarginLeft"),scrollMarginRight:A.spaceT("scrollMarginRight"),scrollMarginX:A.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:A.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:A.spaceT("scrollPadding"),scrollPaddingTop:A.spaceT("scrollPaddingTop"),scrollPaddingBottom:A.spaceT("scrollPaddingBottom"),scrollPaddingLeft:A.spaceT("scrollPaddingLeft"),scrollPaddingRight:A.spaceT("scrollPaddingRight"),scrollPaddingX:A.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:A.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},Jz={fontFamily:A.prop("fontFamily","fonts"),fontSize:A.prop("fontSize","fontSizes",ze.px),fontWeight:A.prop("fontWeight","fontWeights"),lineHeight:A.prop("lineHeight","lineHeights"),letterSpacing:A.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},eI={textDecorationColor:A.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:A.shadows("textShadow")},tI={clipPath:!0,transform:A.propT("transform",ze.transform),transformOrigin:!0,translateX:A.spaceT("--chakra-translate-x"),translateY:A.spaceT("--chakra-translate-y"),skewX:A.degreeT("--chakra-skew-x"),skewY:A.degreeT("--chakra-skew-y"),scaleX:A.prop("--chakra-scale-x"),scaleY:A.prop("--chakra-scale-y"),scale:A.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:A.degreeT("--chakra-rotate")},nI={listStyleType:!0,listStylePosition:!0,listStylePos:A.prop("listStylePosition"),listStyleImage:!0,listStyleImg:A.prop("listStyleImage")},rI={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:A.prop("transitionDuration","transition.duration"),transitionProperty:A.prop("transitionProperty","transition.property"),transitionTimingFunction:A.prop("transitionTimingFunction","transition.easing")},b1=gr({},jf,Be,Vz,jp,dr,Wz,Uz,Hz,k6,Qz,Tc,nv,at,Zz,Jz,eI,tI,nI,rI),iI=Object.assign({},at,dr,jp,k6,Tc),C6=Object.keys(iI),oI=[...Object.keys(b1),...S6],aI={...b1,...Ws},sI=e=>e in aI,lI=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:i}=t.__breakpoints,o={};for(const a in e){let l=gn(e[a],t);if(l==null)continue;if(l=Ft(l)&&n(l)?r(l):l,!Array.isArray(l)){o[a]=l;continue}const c=l.slice(0,i.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!uI(t),fI=(e,t)=>{if(t==null)return t;const n=a=>{var l,c;return(c=(l=e.__cssMap)==null?void 0:l[a])==null?void 0:c.varRef},r=a=>n(a)??a,[i,o]=cI(t);return t=n(i)??r(o)??r(t),t};function pI(e){const{configs:t={},pseudos:n={},theme:r}=e,i=(o,a=!1)=>{var d;const l=gn(o,r),c=lI(l)(r);let u={};for(let f in c){const p=c[f];let h=gn(p,r);f in n&&(f=n[f]),dI(f,h)&&(h=fI(r,h));let g=t[f];if(g===!0&&(g={property:f}),Ft(h)){u[f]=u[f]??{},u[f]=gr({},u[f],i(h,!0));continue}let b=((d=g==null?void 0:g.transform)==null?void 0:d.call(g,h,r,l))??h;b=g!=null&&g.processResult?i(b,!0):b;const x=gn(g==null?void 0:g.property,r);if(!a&&(g!=null&&g.static)){const y=gn(g.static,r);u=gr({},u,y)}if(x&&Array.isArray(x)){for(const y of x)u[y]=b;continue}if(x){x==="&"&&Ft(b)?u=gr({},u,b):u[x]=b;continue}if(Ft(b)){u=gr({},u,b);continue}u[f]=b}return u};return i}const j6=e=>t=>pI({theme:t,pseudos:Ws,configs:b1})(e);function ge(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function mI(e,t,n){var r,i;return((i=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:i.varRef)??n}function hI(e,t){if(Array.isArray(e))return e;if(Ft(e))return t(e);if(e!=null)return[e]}function gI(e,t){for(let n=t+1;n{gr(l,{[S]:d?v[S]:{[y]:v[S]}})});continue}if(!f){d?gr(l,v):l[y]=v;continue}l[y]=v}}return l}}function yI(e){return t=>{const{variant:n,size:r,theme:i}=t,o=vI(i);return gr({},gn(e.baseStyle??{},t),o(e,"sizes",r,t),o(e,"variants",n,t))}}function Ie(e){return dm(e,["styleConfig","size","variant","colorScheme"])}function P6(e){return Ft(e)&&e.reference?e.reference:String(e)}const fm=(e,...t)=>t.map(P6).join(` ${e} `).replace(/calc/g,""),yS=(...e)=>`calc(${fm("+",...e)})`,bS=(...e)=>`calc(${fm("-",...e)})`,rv=(...e)=>`calc(${fm("*",...e)})`,xS=(...e)=>`calc(${fm("/",...e)})`,SS=e=>{const t=P6(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:rv(t,-1)},mi=Object.assign(e=>({add:(...t)=>mi(yS(e,...t)),subtract:(...t)=>mi(bS(e,...t)),multiply:(...t)=>mi(rv(e,...t)),divide:(...t)=>mi(xS(e,...t)),negate:()=>mi(SS(e)),toString:()=>e.toString()}),{add:yS,subtract:bS,multiply:rv,divide:xS,negate:SS});function bI(e,t="-"){return e.replace(/\s+/g,t)}function xI(e){const t=bI(e.toString());return wI(SI(t))}function SI(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function wI(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function kI(e,t=""){return[t,e].filter(Boolean).join("-")}function CI(e,t){return`var(${e}${t?`, ${t}`:""})`}function jI(e,t=""){return xI(`--${kI(e,t)}`)}function ee(e,t,n){const r=jI(e,n);return{variable:r,reference:CI(r,t)}}function _6(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[i,o]=r;n[i]=ee(`${e}-${i}`,o);continue}n[r]=ee(`${e}-${r}`)}return n}const PI=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function _I(e){return p6(e,PI)}function TI(e){return e.semanticTokens}function EI(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}function AI(e){const t=_I(e),n=TI(e),r=o=>S6.includes(o)||o==="default",i={};return gS(t,(o,a)=>{o!=null&&(i[a.join(".")]={isSemantic:!1,value:o})}),gS(n,(o,a)=>{o!=null&&(i[a.join(".")]={isSemantic:!0,value:o})},{stop:o=>Object.keys(o).every(r)}),i}function wS(e,t){return ee(String(e).replace(/\./g,"-"),void 0,t)}function $I(e){var a;const t=AI(e),n=(a=e.config)==null?void 0:a.cssVarPrefix;let r={};const i={};function o(l,c){const d=[String(l).split(".")[0],c].join(".");if(!t[d])return c;const{reference:p}=wS(d,n);return p}for(const[l,c]of Object.entries(t)){const{isSemantic:u,value:d}=c,{variable:f,reference:p}=wS(l,n);if(!u){if(l.startsWith("space")){const g=l.split("."),[b,...x]=g,y=`${b}.-${x.join(".")}`,v=mi.negate(d),S=mi.negate(p);i[y]={value:v,var:f,varRef:S}}r[f]=d,i[l]={value:d,var:f,varRef:p};continue}const h=Ft(d)?d:{default:d};r=gr(r,Object.entries(h).reduce((g,[b,x])=>{if(!x)return g;const y=o(l,`${x}`);if(b==="default")return g[f]=y,g;const v=(Ws==null?void 0:Ws[b])??b;return g[v]={[f]:y},g},{})),i[l]={value:p,var:f,varRef:p}}return{cssVars:r,cssMap:i}}function zI(e){const t=EI(e),{cssMap:n,cssVars:r}=$I(t);return Object.assign(t,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...r},__cssMap:n,__breakpoints:X$(t.breakpoints)}),t}function Oe(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...d){r();for(const f of d)t[f]=c(f);return Oe(e,t)}function o(...d){for(const f of d)f in t||(t[f]=c(f));return Oe(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function l(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function c(d){const h=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>d}}return{parts:i,toPart:c,extend:o,selectors:a,classnames:l,get keys(){return Object.keys(t)},__type:{}}}const II=Oe("accordion").parts("root","container","button","panel","icon"),T6=Oe("alert").parts("title","description","container","icon","spinner"),RI=Oe("avatar").parts("label","badge","container","excessLabel","group"),MI=Oe("breadcrumb").parts("link","item","container","separator");Oe("button").parts();const E6=Oe("checkbox").parts("control","icon","container","label");Oe("progress").parts("track","filledTrack","label");const LI=Oe("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),NI=Oe("editable").parts("preview","input","textarea"),A6=Oe("form").parts("container","requiredIndicator","helperText"),DI=Oe("formError").parts("text","icon"),x1=Oe("input").parts("addon","field","element","group"),OI=Oe("list").parts("container","item","icon"),$6=Oe("menu").parts("button","list","item","groupTitle","icon","command","divider"),z6=Oe("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),FI=Oe("numberinput").parts("root","field","stepperGroup","stepper");Oe("pininput").parts("field");const BI=Oe("popover").parts("content","header","body","footer","popper","arrow","closeButton"),I6=Oe("progress").parts("label","filledTrack","track"),R6=Oe("radio").parts("container","control","label"),VI=Oe("select").parts("field","icon"),M6=Oe("slider").parts("container","track","thumb","filledTrack","mark"),WI=Oe("stat").parts("container","label","helpText","number","icon"),L6=Oe("switch").parts("container","track","thumb","label"),UI=Oe("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),HI=Oe("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),GI=Oe("tag").parts("container","label","closeButton"),N6=Oe("card").parts("container","header","body","footer");Oe("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:KI,defineMultiStyleConfig:qI}=ge(II.keys),XI={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},YI={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},QI={pt:"2",px:"4",pb:"5"},ZI={fontSize:"1.25em"},JI=KI({container:XI,button:YI,panel:QI,icon:ZI}),eR=qI({baseStyle:JI});function sa(e,t,n){return Math.min(Math.max(e,n),t)}class sc extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}function S1(e){if(typeof e!="string")throw new sc(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=lR.test(e)?rR(e):e;const n=iR.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(l=>parseInt(cu(l,2),16)),parseInt(cu(a[3]||"f",2),16)/255]}const r=oR.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(l=>parseInt(l,16)),parseInt(a[3]||"ff",16)/255]}const i=aR.exec(t);if(i){const a=Array.from(i).slice(1);return[...a.slice(0,3).map(l=>parseInt(l,10)),parseFloat(a[3]||"1")]}const o=sR.exec(t);if(o){const[a,l,c,u]=Array.from(o).slice(1).map(parseFloat);if(sa(0,100,l)!==l)throw new sc(e);if(sa(0,100,c)!==c)throw new sc(e);return[...cR(a,l,c),Number.isNaN(u)?1:u]}throw new sc(e)}function tR(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const kS=e=>parseInt(e.replace(/_/g,""),36),nR="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=kS(t.substring(0,3)),r=kS(t.substring(3)).toString(16);let i="";for(let o=0;o<6-r.length;o++)i+="0";return e[n]=`${i}${r}`,e},{});function rR(e){const t=e.toLowerCase().trim(),n=nR[tR(t)];if(!n)throw new sc(e);return`#${n}`}const cu=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),iR=new RegExp(`^#${cu("([a-f0-9])",3)}([a-f0-9])?$`,"i"),oR=new RegExp(`^#${cu("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),aR=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${cu(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),sR=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,lR=/^[a-z]+$/i,CS=e=>Math.round(e*255),cR=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(CS);const i=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*(t/100),a=o*(1-Math.abs(i%2-1));let l=0,c=0,u=0;i>=0&&i<1?(l=o,c=a):i>=1&&i<2?(l=a,c=o):i>=2&&i<3?(c=o,u=a):i>=3&&i<4?(c=a,u=o):i>=4&&i<5?(l=a,u=o):i>=5&&i<6&&(l=o,u=a);const d=r-o/2,f=l+d,p=c+d,h=u+d;return[f,p,h].map(CS)};function uR(e,t,n,r){return`rgba(${sa(0,255,e).toFixed()}, ${sa(0,255,t).toFixed()}, ${sa(0,255,n).toFixed()}, ${parseFloat(sa(0,1,r).toFixed(3))})`}function dR(e,t){const[n,r,i,o]=S1(e);return uR(n,r,i,o-t)}function fR(e){const[t,n,r,i]=S1(e);let o=a=>{const l=sa(0,255,a).toString(16);return l.length===1?`0${l}`:l};return`#${o(t)}${o(n)}${o(r)}${i<1?o(Math.round(i*255)):""}`}const pR=e=>Object.keys(e).length===0;function mR(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r{const r=mR(e,`colors.${t}`,t);try{return fR(r),r}catch{return n??"#000000"}},hR=e=>{const[t,n,r]=S1(e);return(t*299+n*587+r*114)/1e3},gR=e=>t=>{const n=lt(t,e);return hR(n)<128?"dark":"light"},vR=e=>t=>gR(e)(t)==="dark",Kt=(e,t)=>n=>{const r=lt(n,e);return dR(r,1-t)};function jS(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( - 45deg, - ${t} 25%, - transparent 25%, - transparent 50%, - ${t} 50%, - ${t} 75%, - transparent 75%, - transparent - )`,backgroundSize:`${e} ${e}`}}const yR=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function bR(e){const t=yR();return!e||pR(e)?t:e.string&&e.colors?SR(e.string,e.colors):e.string&&!e.colors?xR(e.string):e.colors&&!e.string?wR(e.colors):t}function xR(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function SR(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function w1(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function D6(e){return Ft(e)&&e.reference?e.reference:String(e)}const pm=(e,...t)=>t.map(D6).join(` ${e} `).replace(/calc/g,""),PS=(...e)=>`calc(${pm("+",...e)})`,_S=(...e)=>`calc(${pm("-",...e)})`,iv=(...e)=>`calc(${pm("*",...e)})`,TS=(...e)=>`calc(${pm("/",...e)})`,ES=e=>{const t=D6(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:iv(t,-1)},hi=Object.assign(e=>({add:(...t)=>hi(PS(e,...t)),subtract:(...t)=>hi(_S(e,...t)),multiply:(...t)=>hi(iv(e,...t)),divide:(...t)=>hi(TS(e,...t)),negate:()=>hi(ES(e)),toString:()=>e.toString()}),{add:PS,subtract:_S,multiply:iv,divide:TS,negate:ES});function kR(e){return!Number.isInteger(parseFloat(e.toString()))}function CR(e,t="-"){return e.replace(/\s+/g,t)}function O6(e){const t=CR(e.toString());return t.includes("\\.")?e:kR(e)?t.replace(".","\\."):e}function jR(e,t=""){return[t,O6(e)].filter(Boolean).join("-")}function PR(e,t){return`var(${O6(e)}${t?`, ${t}`:""})`}function _R(e,t=""){return`--${jR(e,t)}`}function Tt(e,t){const n=_R(e,t==null?void 0:t.prefix);return{variable:n,reference:PR(n,TR(t==null?void 0:t.fallback))}}function TR(e){return e==null?void 0:e.reference}const{definePartsStyle:Vu,defineMultiStyleConfig:ER}=ge(T6.keys),Xn=ee("alert-fg"),$i=ee("alert-bg"),AR=Vu({container:{bg:$i.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Xn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Xn.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function k1(e){const{theme:t,colorScheme:n}=e,r=Kt(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const $R=Vu(e=>{const{colorScheme:t}=e,n=k1(e);return{container:{[Xn.variable]:`colors.${t}.600`,[$i.variable]:n.light,_dark:{[Xn.variable]:`colors.${t}.200`,[$i.variable]:n.dark}}}}),zR=Vu(e=>{const{colorScheme:t}=e,n=k1(e);return{container:{[Xn.variable]:`colors.${t}.600`,[$i.variable]:n.light,_dark:{[Xn.variable]:`colors.${t}.200`,[$i.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Xn.reference}}}),IR=Vu(e=>{const{colorScheme:t}=e,n=k1(e);return{container:{[Xn.variable]:`colors.${t}.600`,[$i.variable]:n.light,_dark:{[Xn.variable]:`colors.${t}.200`,[$i.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Xn.reference}}}),RR=Vu(e=>{const{colorScheme:t}=e;return{container:{[Xn.variable]:"colors.white",[$i.variable]:`colors.${t}.600`,_dark:{[Xn.variable]:"colors.gray.900",[$i.variable]:`colors.${t}.200`},color:Xn.reference}}}),MR={subtle:$R,"left-accent":zR,"top-accent":IR,solid:RR},LR=ER({baseStyle:AR,variants:MR,defaultProps:{variant:"subtle",colorScheme:"blue"}}),F6={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},NR={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},DR={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},B6={...F6,...NR,container:DR},OR=e=>typeof e=="function";function kn(e,...t){return OR(e)?e(...t):e}const{definePartsStyle:V6,defineMultiStyleConfig:FR}=ge(RI.keys),Us=ee("avatar-border-color"),Ec=ee("avatar-bg"),uu=ee("avatar-font-size"),sl=ee("avatar-size"),BR={borderRadius:"full",border:"0.2em solid",borderColor:Us.reference,[Us.variable]:"white",_dark:{[Us.variable]:"colors.gray.800"}},VR={bg:Ec.reference,fontSize:uu.reference,width:sl.reference,height:sl.reference,lineHeight:"1",[Ec.variable]:"colors.gray.200",_dark:{[Ec.variable]:"colors.whiteAlpha.400"}},WR=e=>{const{name:t,theme:n}=e,r=t?bR({string:t}):"colors.gray.400",i=vR(r)(n);let o="white";return i||(o="gray.800"),{bg:Ec.reference,fontSize:uu.reference,color:o,borderColor:Us.reference,verticalAlign:"top",width:sl.reference,height:sl.reference,"&:not([data-loaded])":{[Ec.variable]:r},[Us.variable]:"colors.white",_dark:{[Us.variable]:"colors.gray.800"}}},UR={fontSize:uu.reference,lineHeight:"1"},HR=V6(e=>({badge:kn(BR,e),excessLabel:kn(VR,e),container:kn(WR,e),label:UR}));function Gi(e){const t=e!=="100%"?B6[e]:void 0;return V6({container:{[sl.variable]:t??e,[uu.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[sl.variable]:t??e,[uu.variable]:`calc(${t??e} / 2.5)`}})}const GR={"2xs":Gi(4),xs:Gi(6),sm:Gi(8),md:Gi(12),lg:Gi(16),xl:Gi(24),"2xl":Gi(32),full:Gi("100%")},KR=FR({baseStyle:HR,sizes:GR,defaultProps:{size:"md"}}),zt=_6("badge",["bg","color","shadow"]),qR={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:zt.bg.reference,color:zt.color.reference,boxShadow:zt.shadow.reference},XR=e=>{const{colorScheme:t,theme:n}=e,r=Kt(`${t}.500`,.6)(n);return{[zt.bg.variable]:`colors.${t}.500`,[zt.color.variable]:"colors.white",_dark:{[zt.bg.variable]:r,[zt.color.variable]:"colors.whiteAlpha.800"}}},YR=e=>{const{colorScheme:t,theme:n}=e,r=Kt(`${t}.200`,.16)(n);return{[zt.bg.variable]:`colors.${t}.100`,[zt.color.variable]:`colors.${t}.800`,_dark:{[zt.bg.variable]:r,[zt.color.variable]:`colors.${t}.200`}}},QR=e=>{const{colorScheme:t,theme:n}=e,r=Kt(`${t}.200`,.8)(n);return{[zt.color.variable]:`colors.${t}.500`,_dark:{[zt.color.variable]:r},[zt.shadow.variable]:`inset 0 0 0px 1px ${zt.color.reference}`}},ZR={solid:XR,subtle:YR,outline:QR},Ac={baseStyle:qR,variants:ZR,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:JR,definePartsStyle:eM}=ge(MI.keys),Yh=ee("breadcrumb-link-decor"),tM={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Yh.reference,[Yh.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Yh.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},nM=eM({link:tM}),rM=JR({baseStyle:nM}),iM={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},W6=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:re("gray.800","whiteAlpha.900")(e),_hover:{bg:re("gray.100","whiteAlpha.200")(e)},_active:{bg:re("gray.200","whiteAlpha.300")(e)}};const r=Kt(`${t}.200`,.12)(n),i=Kt(`${t}.200`,.24)(n);return{color:re(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:re(`${t}.50`,r)(e)},_active:{bg:re(`${t}.100`,i)(e)}}},oM=e=>{const{colorScheme:t}=e,n=re("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...kn(W6,e)}},aM={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},sM=e=>{const{colorScheme:t}=e;if(t==="gray"){const l=re("gray.100","whiteAlpha.200")(e);return{bg:l,color:re("gray.800","whiteAlpha.900")(e),_hover:{bg:re("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:re("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:i=`${t}.600`,activeBg:o=`${t}.700`}=aM[t]??{},a=re(n,`${t}.200`)(e);return{bg:a,color:re(r,"gray.800")(e),_hover:{bg:re(i,`${t}.300`)(e),_disabled:{bg:a}},_active:{bg:re(o,`${t}.400`)(e)}}},lM=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:re(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:re(`${t}.700`,`${t}.500`)(e)}}},cM={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},uM={ghost:W6,outline:oM,solid:sM,link:lM,unstyled:cM},dM={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},fM={baseStyle:iM,variants:uM,sizes:dM,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:ha,defineMultiStyleConfig:pM}=ge(N6.keys),Pp=ee("card-bg"),Ci=ee("card-padding"),U6=ee("card-shadow"),Pf=ee("card-radius"),H6=ee("card-border-width","0"),G6=ee("card-border-color"),mM=ha({container:{[Pp.variable]:"colors.chakra-body-bg",backgroundColor:Pp.reference,boxShadow:U6.reference,borderRadius:Pf.reference,color:"chakra-body-text",borderWidth:H6.reference,borderColor:G6.reference},body:{padding:Ci.reference,flex:"1 1 0%"},header:{padding:Ci.reference},footer:{padding:Ci.reference}}),hM={sm:ha({container:{[Pf.variable]:"radii.base",[Ci.variable]:"space.3"}}),md:ha({container:{[Pf.variable]:"radii.md",[Ci.variable]:"space.5"}}),lg:ha({container:{[Pf.variable]:"radii.xl",[Ci.variable]:"space.7"}})},gM={elevated:ha({container:{[U6.variable]:"shadows.base",_dark:{[Pp.variable]:"colors.gray.700"}}}),outline:ha({container:{[H6.variable]:"1px",[G6.variable]:"colors.chakra-border-color"}}),filled:ha({container:{[Pp.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Ci.variable]:0},header:{[Ci.variable]:0},footer:{[Ci.variable]:0}}},vM=pM({baseStyle:mM,variants:gM,sizes:hM,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:_f,defineMultiStyleConfig:yM}=ge(E6.keys),$c=ee("checkbox-size"),bM=e=>{const{colorScheme:t}=e;return{w:$c.reference,h:$c.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:re(`${t}.500`,`${t}.200`)(e),borderColor:re(`${t}.500`,`${t}.200`)(e),color:re("white","gray.900")(e),_hover:{bg:re(`${t}.600`,`${t}.300`)(e),borderColor:re(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:re("gray.200","transparent")(e),bg:re("gray.200","whiteAlpha.300")(e),color:re("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:re(`${t}.500`,`${t}.200`)(e),borderColor:re(`${t}.500`,`${t}.200`)(e),color:re("white","gray.900")(e)},_disabled:{bg:re("gray.100","whiteAlpha.100")(e),borderColor:re("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:re("red.500","red.300")(e)}}},xM={_disabled:{cursor:"not-allowed"}},SM={userSelect:"none",_disabled:{opacity:.4}},wM={transitionProperty:"transform",transitionDuration:"normal"},kM=_f(e=>({icon:wM,container:xM,control:kn(bM,e),label:SM})),CM={sm:_f({control:{[$c.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:_f({control:{[$c.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:_f({control:{[$c.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},to=yM({baseStyle:kM,sizes:CM,defaultProps:{size:"md",colorScheme:"blue"}}),zc=Tt("close-button-size"),Kl=Tt("close-button-bg"),jM={w:[zc.reference],h:[zc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Kl.variable]:"colors.blackAlpha.100",_dark:{[Kl.variable]:"colors.whiteAlpha.100"}},_active:{[Kl.variable]:"colors.blackAlpha.200",_dark:{[Kl.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Kl.reference},PM={lg:{[zc.variable]:"sizes.10",fontSize:"md"},md:{[zc.variable]:"sizes.8",fontSize:"xs"},sm:{[zc.variable]:"sizes.6",fontSize:"2xs"}},_M={baseStyle:jM,sizes:PM,defaultProps:{size:"md"}},{variants:TM,defaultProps:EM}=Ac,AM={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:zt.bg.reference,color:zt.color.reference,boxShadow:zt.shadow.reference},$M={baseStyle:AM,variants:TM,defaultProps:EM},zM={w:"100%",mx:"auto",maxW:"prose",px:"4"},IM={baseStyle:zM},RM={opacity:.6,borderColor:"inherit"},MM={borderStyle:"solid"},LM={borderStyle:"dashed"},NM={solid:MM,dashed:LM},DM={baseStyle:RM,variants:NM,defaultProps:{variant:"solid"}},{definePartsStyle:ov,defineMultiStyleConfig:OM}=ge(LI.keys),Qh=ee("drawer-bg"),Zh=ee("drawer-box-shadow");function Za(e){return ov(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const FM={bg:"blackAlpha.600",zIndex:"modal"},BM={display:"flex",zIndex:"modal",justifyContent:"center"},VM=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Qh.variable]:"colors.white",[Zh.variable]:"shadows.lg",_dark:{[Qh.variable]:"colors.gray.700",[Zh.variable]:"shadows.dark-lg"},bg:Qh.reference,boxShadow:Zh.reference}},WM={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},UM={position:"absolute",top:"2",insetEnd:"3"},HM={px:"6",py:"2",flex:"1",overflow:"auto"},GM={px:"6",py:"4"},KM=ov(e=>({overlay:FM,dialogContainer:BM,dialog:kn(VM,e),header:WM,closeButton:UM,body:HM,footer:GM})),qM={xs:Za("xs"),sm:Za("md"),md:Za("lg"),lg:Za("2xl"),xl:Za("4xl"),full:Za("full")},XM=OM({baseStyle:KM,sizes:qM,defaultProps:{size:"xs"}}),{definePartsStyle:YM,defineMultiStyleConfig:QM}=ge(NI.keys),ZM={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},JM={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},eL={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},tL=YM({preview:ZM,input:JM,textarea:eL}),nL=QM({baseStyle:tL}),{definePartsStyle:rL,defineMultiStyleConfig:iL}=ge(A6.keys),Hs=ee("form-control-color"),oL={marginStart:"1",[Hs.variable]:"colors.red.500",_dark:{[Hs.variable]:"colors.red.300"},color:Hs.reference},aL={mt:"2",[Hs.variable]:"colors.gray.600",_dark:{[Hs.variable]:"colors.whiteAlpha.600"},color:Hs.reference,lineHeight:"normal",fontSize:"sm"},sL=rL({container:{width:"100%",position:"relative"},requiredIndicator:oL,helperText:aL}),lL=iL({baseStyle:sL}),{definePartsStyle:cL,defineMultiStyleConfig:uL}=ge(DI.keys),Gs=ee("form-error-color"),dL={[Gs.variable]:"colors.red.500",_dark:{[Gs.variable]:"colors.red.300"},color:Gs.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},fL={marginEnd:"0.5em",[Gs.variable]:"colors.red.500",_dark:{[Gs.variable]:"colors.red.300"},color:Gs.reference},pL=cL({text:dL,icon:fL}),mL=uL({baseStyle:pL}),hL={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},gL={baseStyle:hL},vL={fontFamily:"heading",fontWeight:"bold"},yL={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},bL={baseStyle:vL,sizes:yL,defaultProps:{size:"xl"}},{definePartsStyle:xi,defineMultiStyleConfig:xL}=ge(x1.keys),xs=ee("input-height"),Ss=ee("input-font-size"),ws=ee("input-padding"),ks=ee("input-border-radius"),SL=xi({addon:{height:xs.reference,fontSize:Ss.reference,px:ws.reference,borderRadius:ks.reference},field:{width:"100%",height:xs.reference,fontSize:Ss.reference,px:ws.reference,borderRadius:ks.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Ki={lg:{[Ss.variable]:"fontSizes.lg",[ws.variable]:"space.4",[ks.variable]:"radii.md",[xs.variable]:"sizes.12"},md:{[Ss.variable]:"fontSizes.md",[ws.variable]:"space.4",[ks.variable]:"radii.md",[xs.variable]:"sizes.10"},sm:{[Ss.variable]:"fontSizes.sm",[ws.variable]:"space.3",[ks.variable]:"radii.sm",[xs.variable]:"sizes.8"},xs:{[Ss.variable]:"fontSizes.xs",[ws.variable]:"space.2",[ks.variable]:"radii.sm",[xs.variable]:"sizes.6"}},wL={lg:xi({field:Ki.lg,group:Ki.lg}),md:xi({field:Ki.md,group:Ki.md}),sm:xi({field:Ki.sm,group:Ki.sm}),xs:xi({field:Ki.xs,group:Ki.xs})};function C1(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||re("blue.500","blue.300")(e),errorBorderColor:n||re("red.500","red.300")(e)}}const kL=xi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=C1(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:re("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:lt(t,r),boxShadow:`0 0 0 1px ${lt(t,r)}`},_focusVisible:{zIndex:1,borderColor:lt(t,n),boxShadow:`0 0 0 1px ${lt(t,n)}`}},addon:{border:"1px solid",borderColor:re("inherit","whiteAlpha.50")(e),bg:re("gray.100","whiteAlpha.300")(e)}}}),CL=xi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=C1(e);return{field:{border:"2px solid",borderColor:"transparent",bg:re("gray.100","whiteAlpha.50")(e),_hover:{bg:re("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:lt(t,r)},_focusVisible:{bg:"transparent",borderColor:lt(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:re("gray.100","whiteAlpha.50")(e)}}}),jL=xi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=C1(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:lt(t,r),boxShadow:`0px 1px 0px 0px ${lt(t,r)}`},_focusVisible:{borderColor:lt(t,n),boxShadow:`0px 1px 0px 0px ${lt(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),PL=xi({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),_L={outline:kL,filled:CL,flushed:jL,unstyled:PL},Ue=xL({baseStyle:SL,sizes:wL,variants:_L,defaultProps:{size:"md",variant:"outline"}}),Jh=ee("kbd-bg"),TL={[Jh.variable]:"colors.gray.100",_dark:{[Jh.variable]:"colors.whiteAlpha.100"},bg:Jh.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},EL={baseStyle:TL},AL={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},$L={baseStyle:AL},{defineMultiStyleConfig:zL,definePartsStyle:IL}=ge(OI.keys),RL={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},ML=IL({icon:RL}),LL=zL({baseStyle:ML}),{defineMultiStyleConfig:NL,definePartsStyle:DL}=ge($6.keys),Hr=ee("menu-bg"),e0=ee("menu-shadow"),OL={[Hr.variable]:"#fff",[e0.variable]:"shadows.sm",_dark:{[Hr.variable]:"colors.gray.700",[e0.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Hr.reference,boxShadow:e0.reference},FL={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Hr.variable]:"colors.gray.100",_dark:{[Hr.variable]:"colors.whiteAlpha.100"}},_active:{[Hr.variable]:"colors.gray.200",_dark:{[Hr.variable]:"colors.whiteAlpha.200"}},_expanded:{[Hr.variable]:"colors.gray.100",_dark:{[Hr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Hr.reference},BL={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},VL={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},WL={opacity:.6},UL={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},HL={transitionProperty:"common",transitionDuration:"normal"},GL=DL({button:HL,list:OL,item:FL,groupTitle:BL,icon:VL,command:WL,divider:UL}),KL=NL({baseStyle:GL}),{defineMultiStyleConfig:qL,definePartsStyle:av}=ge(z6.keys),t0=ee("modal-bg"),n0=ee("modal-shadow"),XL={bg:"blackAlpha.600",zIndex:"modal"},YL=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},QL=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[t0.variable]:"colors.white",[n0.variable]:"shadows.lg",_dark:{[t0.variable]:"colors.gray.700",[n0.variable]:"shadows.dark-lg"},bg:t0.reference,boxShadow:n0.reference}},ZL={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},JL={position:"absolute",top:"2",insetEnd:"3"},eN=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},tN={px:"6",py:"4"},nN=av(e=>({overlay:XL,dialogContainer:kn(YL,e),dialog:kn(QL,e),header:ZL,closeButton:JL,body:kn(eN,e),footer:tN}));function Pr(e){return av(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const rN={xs:Pr("xs"),sm:Pr("sm"),md:Pr("md"),lg:Pr("lg"),xl:Pr("xl"),"2xl":Pr("2xl"),"3xl":Pr("3xl"),"4xl":Pr("4xl"),"5xl":Pr("5xl"),"6xl":Pr("6xl"),full:Pr("full")},iN=qL({baseStyle:nN,sizes:rN,defaultProps:{size:"md"}}),K6={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:oN,definePartsStyle:q6}=ge(FI.keys),j1=Tt("number-input-stepper-width"),X6=Tt("number-input-input-padding"),aN=hi(j1).add("0.5rem").toString(),r0=Tt("number-input-bg"),i0=Tt("number-input-color"),o0=Tt("number-input-border-color"),sN={[j1.variable]:"sizes.6",[X6.variable]:aN},lN=e=>{var t;return((t=kn(Ue.baseStyle,e))==null?void 0:t.field)??{}},cN={width:j1.reference},uN={borderStart:"1px solid",borderStartColor:o0.reference,color:i0.reference,bg:r0.reference,[i0.variable]:"colors.chakra-body-text",[o0.variable]:"colors.chakra-border-color",_dark:{[i0.variable]:"colors.whiteAlpha.800",[o0.variable]:"colors.whiteAlpha.300"},_active:{[r0.variable]:"colors.gray.200",_dark:{[r0.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},dN=q6(e=>({root:sN,field:kn(lN,e)??{},stepperGroup:cN,stepper:uN}));function Ld(e){var o,a;const t=(o=Ue.sizes)==null?void 0:o[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=((a=t.field)==null?void 0:a.fontSize)??"md",i=K6.fontSizes[r];return q6({field:{...t.field,paddingInlineEnd:X6.reference,verticalAlign:"top"},stepper:{fontSize:hi(i).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const fN={xs:Ld("xs"),sm:Ld("sm"),md:Ld("md"),lg:Ld("lg")},pN=oN({baseStyle:dN,sizes:fN,variants:Ue.variants,defaultProps:Ue.defaultProps});var Ik;const mN={...(Ik=Ue.baseStyle)==null?void 0:Ik.field,textAlign:"center"},hN={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}};var Rk;const gN={outline:e=>{var t,n;return((n=kn((t=Ue.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=kn((t=Ue.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=kn((t=Ue.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((Rk=Ue.variants)==null?void 0:Rk.unstyled.field)??{}},vN={baseStyle:mN,sizes:hN,variants:gN,defaultProps:Ue.defaultProps},{defineMultiStyleConfig:yN,definePartsStyle:bN}=ge(BI.keys),Nd=Tt("popper-bg"),xN=Tt("popper-arrow-bg"),AS=Tt("popper-arrow-shadow-color"),SN={zIndex:"popover"},wN={[Nd.variable]:"colors.white",bg:Nd.reference,[xN.variable]:Nd.reference,[AS.variable]:"colors.gray.200",_dark:{[Nd.variable]:"colors.gray.700",[AS.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},kN={px:3,py:2,borderBottomWidth:"1px"},CN={px:3,py:2},jN={px:3,py:2,borderTopWidth:"1px"},PN={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},_N=bN({popper:SN,content:wN,header:kN,body:CN,footer:jN,closeButton:PN}),TN=yN({baseStyle:_N}),{defineMultiStyleConfig:EN,definePartsStyle:lc}=ge(I6.keys),AN=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,o=re(jS(),jS("1rem","rgba(0,0,0,0.1)"))(e),a=re(`${t}.500`,`${t}.200`)(e),l=`linear-gradient( - to right, - transparent 0%, - ${lt(n,a)} 50%, - transparent 100% - )`;return{...!r&&i&&o,...r?{bgImage:l}:{bgColor:a}}},$N={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},zN=e=>({bg:re("gray.100","whiteAlpha.300")(e)}),IN=e=>({transitionProperty:"common",transitionDuration:"slow",...AN(e)}),RN=lc(e=>({label:$N,filledTrack:IN(e),track:zN(e)})),MN={xs:lc({track:{h:"1"}}),sm:lc({track:{h:"2"}}),md:lc({track:{h:"3"}}),lg:lc({track:{h:"4"}})},LN=EN({sizes:MN,baseStyle:RN,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:NN,definePartsStyle:Tf}=ge(R6.keys),DN=e=>{var n;const t=(n=kn(to.baseStyle,e))==null?void 0:n.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},ON=Tf(e=>{var t,n;return{label:(t=to.baseStyle)==null?void 0:t.call(to,e).label,container:(n=to.baseStyle)==null?void 0:n.call(to,e).container,control:DN(e)}}),FN={md:Tf({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Tf({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Tf({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},BN=NN({baseStyle:ON,sizes:FN,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:VN,definePartsStyle:WN}=ge(VI.keys),Dd=ee("select-bg");var Mk;const UN={...(Mk=Ue.baseStyle)==null?void 0:Mk.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Dd.reference,[Dd.variable]:"colors.white",_dark:{[Dd.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Dd.reference}},HN={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},GN=WN({field:UN,icon:HN}),Od={paddingInlineEnd:"8"};var Lk,Nk,Dk,Ok,Fk,Bk,Vk,Wk;const KN={lg:{...(Lk=Ue.sizes)==null?void 0:Lk.lg,field:{...(Nk=Ue.sizes)==null?void 0:Nk.lg.field,...Od}},md:{...(Dk=Ue.sizes)==null?void 0:Dk.md,field:{...(Ok=Ue.sizes)==null?void 0:Ok.md.field,...Od}},sm:{...(Fk=Ue.sizes)==null?void 0:Fk.sm,field:{...(Bk=Ue.sizes)==null?void 0:Bk.sm.field,...Od}},xs:{...(Vk=Ue.sizes)==null?void 0:Vk.xs,field:{...(Wk=Ue.sizes)==null?void 0:Wk.xs.field,...Od},icon:{insetEnd:"1"}}},qN=VN({baseStyle:GN,sizes:KN,variants:Ue.variants,defaultProps:Ue.defaultProps}),a0=ee("skeleton-start-color"),s0=ee("skeleton-end-color"),XN={[a0.variable]:"colors.gray.100",[s0.variable]:"colors.gray.400",_dark:{[a0.variable]:"colors.gray.800",[s0.variable]:"colors.gray.600"},background:a0.reference,borderColor:s0.reference,opacity:.7,borderRadius:"sm"},YN={baseStyle:XN},l0=ee("skip-link-bg"),QN={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[l0.variable]:"colors.white",_dark:{[l0.variable]:"colors.gray.700"},bg:l0.reference}},ZN={baseStyle:QN},{defineMultiStyleConfig:JN,definePartsStyle:mm}=ge(M6.keys),Aa=ee("slider-thumb-size"),du=ee("slider-track-size"),io=ee("slider-bg"),eD=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...w1({orientation:t,vertical:{h:"100%",px:mi(Aa.reference).divide(2).toString()},horizontal:{w:"100%",py:mi(Aa.reference).divide(2).toString()}})}},tD=e=>({...w1({orientation:e.orientation,horizontal:{h:du.reference},vertical:{w:du.reference}}),overflow:"hidden",borderRadius:"sm",[io.variable]:"colors.gray.200",_dark:{[io.variable]:"colors.whiteAlpha.200"},_disabled:{[io.variable]:"colors.gray.300",_dark:{[io.variable]:"colors.whiteAlpha.300"}},bg:io.reference}),nD=e=>{const{orientation:t}=e;return{...w1({orientation:t,vertical:{left:"50%"},horizontal:{top:"50%"}}),w:Aa.reference,h:Aa.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_active:{"--slider-thumb-scale":"1.15"},_disabled:{bg:"gray.300"}}},rD=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[io.variable]:`colors.${t}.500`,_dark:{[io.variable]:`colors.${t}.200`},bg:io.reference}},iD=mm(e=>({container:eD(e),track:tD(e),thumb:nD(e),filledTrack:rD(e)})),oD=mm({container:{[Aa.variable]:"sizes.4",[du.variable]:"sizes.1"}}),aD=mm({container:{[Aa.variable]:"sizes.3.5",[du.variable]:"sizes.1"}}),sD=mm({container:{[Aa.variable]:"sizes.2.5",[du.variable]:"sizes.0.5"}}),lD={lg:oD,md:aD,sm:sD},cD=JN({baseStyle:iD,sizes:lD,defaultProps:{size:"md",colorScheme:"blue"}}),ra=Tt("spinner-size"),uD={width:[ra.reference],height:[ra.reference]},dD={xs:{[ra.variable]:"sizes.3"},sm:{[ra.variable]:"sizes.4"},md:{[ra.variable]:"sizes.6"},lg:{[ra.variable]:"sizes.8"},xl:{[ra.variable]:"sizes.12"}},fD={baseStyle:uD,sizes:dD,defaultProps:{size:"md"}},{defineMultiStyleConfig:pD,definePartsStyle:Y6}=ge(WI.keys),mD={fontWeight:"medium"},hD={opacity:.8,marginBottom:"2"},gD={verticalAlign:"baseline",fontWeight:"semibold"},vD={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},yD=Y6({container:{},label:mD,helpText:hD,number:gD,icon:vD}),bD={md:Y6({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},xD=pD({baseStyle:yD,sizes:bD,defaultProps:{size:"md"}}),{defineMultiStyleConfig:SD,definePartsStyle:cc}=ge(["stepper","step","title","description","indicator","separator","icon","number"]),gi=ee("stepper-indicator-size"),Cs=ee("stepper-icon-size"),js=ee("stepper-title-font-size"),uc=ee("stepper-description-font-size"),ql=ee("stepper-accent-color"),wD=cc(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[ql.variable]:`colors.${e}.500`,_dark:{[ql.variable]:`colors.${e}.200`}},title:{fontSize:js.reference,fontWeight:"medium"},description:{fontSize:uc.reference,color:"chakra-subtle-text"},number:{fontSize:js.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Cs.reference,height:Cs.reference},indicator:{flexShrink:0,borderRadius:"full",width:gi.reference,height:gi.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ql.reference},"&[data-status=complete]":{bg:ql.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ql.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${gi.reference} - 8px)`,top:`calc(${gi.reference} + 4px)`,insetStart:`calc(${gi.reference} / 2 - 1px)`}}})),kD=SD({baseStyle:wD,sizes:{xs:cc({stepper:{[gi.variable]:"sizes.4",[Cs.variable]:"sizes.3",[js.variable]:"fontSizes.xs",[uc.variable]:"fontSizes.xs"}}),sm:cc({stepper:{[gi.variable]:"sizes.6",[Cs.variable]:"sizes.4",[js.variable]:"fontSizes.sm",[uc.variable]:"fontSizes.xs"}}),md:cc({stepper:{[gi.variable]:"sizes.8",[Cs.variable]:"sizes.5",[js.variable]:"fontSizes.md",[uc.variable]:"fontSizes.sm"}}),lg:cc({stepper:{[gi.variable]:"sizes.10",[Cs.variable]:"sizes.6",[js.variable]:"fontSizes.lg",[uc.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:CD,definePartsStyle:Ef}=ge(L6.keys),Ic=Tt("switch-track-width"),ga=Tt("switch-track-height"),c0=Tt("switch-track-diff"),jD=hi.subtract(Ic,ga),sv=Tt("switch-thumb-x"),Xl=Tt("switch-bg"),PD=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Ic.reference],height:[ga.reference],transitionProperty:"common",transitionDuration:"fast",[Xl.variable]:"colors.gray.300",_dark:{[Xl.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Xl.variable]:`colors.${t}.500`,_dark:{[Xl.variable]:`colors.${t}.200`}},bg:Xl.reference}},_D={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[ga.reference],height:[ga.reference],_checked:{transform:`translateX(${sv.reference})`}},TD=Ef(e=>({container:{[c0.variable]:jD,[sv.variable]:c0.reference,_rtl:{[sv.variable]:hi(c0).negate().toString()}},track:PD(e),thumb:_D})),ED={sm:Ef({container:{[Ic.variable]:"1.375rem",[ga.variable]:"sizes.3"}}),md:Ef({container:{[Ic.variable]:"1.875rem",[ga.variable]:"sizes.4"}}),lg:Ef({container:{[Ic.variable]:"2.875rem",[ga.variable]:"sizes.6"}})},AD=CD({baseStyle:TD,sizes:ED,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:$D,definePartsStyle:Ks}=ge(UI.keys),zD=Ks({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),_p={"&[data-is-numeric=true]":{textAlign:"end"}},ID=Ks(e=>{const{colorScheme:t}=e;return{th:{color:re("gray.600","gray.400")(e),borderBottom:"1px",borderColor:re(`${t}.100`,`${t}.700`)(e),..._p},td:{borderBottom:"1px",borderColor:re(`${t}.100`,`${t}.700`)(e),..._p},caption:{color:re("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),RD=Ks(e=>{const{colorScheme:t}=e;return{th:{color:re("gray.600","gray.400")(e),borderBottom:"1px",borderColor:re(`${t}.100`,`${t}.700`)(e),..._p},td:{borderBottom:"1px",borderColor:re(`${t}.100`,`${t}.700`)(e),..._p},caption:{color:re("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:re(`${t}.100`,`${t}.700`)(e)},td:{background:re(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),MD={simple:ID,striped:RD,unstyled:{}},LD={sm:Ks({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Ks({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Ks({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},ND=$D({baseStyle:zD,variants:MD,sizes:LD,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Rn=ee("tabs-color"),zr=ee("tabs-bg"),Fd=ee("tabs-border-color"),{defineMultiStyleConfig:DD,definePartsStyle:ni}=ge(HI.keys),OD=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},FD=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},BD=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},VD={p:4},WD=ni(e=>({root:OD(e),tab:FD(e),tablist:BD(e),tabpanel:VD})),UD={sm:ni({tab:{py:1,px:4,fontSize:"sm"}}),md:ni({tab:{fontSize:"md",py:2,px:4}}),lg:ni({tab:{fontSize:"lg",py:3,px:4}})},HD=ni(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",i=r?"borderStart":"borderBottom",o=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[o]:"-2px",_selected:{[Rn.variable]:`colors.${t}.600`,_dark:{[Rn.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[zr.variable]:"colors.gray.200",_dark:{[zr.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Rn.reference,bg:zr.reference}}}),GD=ni(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Fd.variable]:"transparent",_selected:{[Rn.variable]:`colors.${t}.600`,[Fd.variable]:"colors.white",_dark:{[Rn.variable]:`colors.${t}.300`,[Fd.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Fd.reference},color:Rn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),KD=ni(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[zr.variable]:"colors.gray.50",_dark:{[zr.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[zr.variable]:"colors.white",[Rn.variable]:`colors.${t}.600`,_dark:{[zr.variable]:"colors.gray.800",[Rn.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Rn.reference,bg:zr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),qD=ni(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:lt(n,`${t}.700`),bg:lt(n,`${t}.100`)}}}}),XD=ni(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Rn.variable]:"colors.gray.600",_dark:{[Rn.variable]:"inherit"},_selected:{[Rn.variable]:"colors.white",[zr.variable]:`colors.${t}.600`,_dark:{[Rn.variable]:"colors.gray.800",[zr.variable]:`colors.${t}.300`}},color:Rn.reference,bg:zr.reference}}}),YD=ni({}),QD={line:HD,enclosed:GD,"enclosed-colored":KD,"soft-rounded":qD,"solid-rounded":XD,unstyled:YD},ZD=DD({baseStyle:WD,sizes:UD,variants:QD,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:JD,definePartsStyle:va}=ge(GI.keys),$S=ee("tag-bg"),zS=ee("tag-color"),u0=ee("tag-shadow"),Af=ee("tag-min-height"),$f=ee("tag-min-width"),zf=ee("tag-font-size"),If=ee("tag-padding-inline"),eO={fontWeight:"medium",lineHeight:1.2,outline:0,[zS.variable]:zt.color.reference,[$S.variable]:zt.bg.reference,[u0.variable]:zt.shadow.reference,color:zS.reference,bg:$S.reference,boxShadow:u0.reference,borderRadius:"md",minH:Af.reference,minW:$f.reference,fontSize:zf.reference,px:If.reference,_focusVisible:{[u0.variable]:"shadows.outline"}},tO={lineHeight:1.2,overflow:"visible"},nO={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},rO=va({container:eO,label:tO,closeButton:nO}),iO={sm:va({container:{[Af.variable]:"sizes.5",[$f.variable]:"sizes.5",[zf.variable]:"fontSizes.xs",[If.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:va({container:{[Af.variable]:"sizes.6",[$f.variable]:"sizes.6",[zf.variable]:"fontSizes.sm",[If.variable]:"space.2"}}),lg:va({container:{[Af.variable]:"sizes.8",[$f.variable]:"sizes.8",[zf.variable]:"fontSizes.md",[If.variable]:"space.3"}})},oO={subtle:va(e=>{var t;return{container:(t=Ac.variants)==null?void 0:t.subtle(e)}}),solid:va(e=>{var t;return{container:(t=Ac.variants)==null?void 0:t.solid(e)}}),outline:va(e=>{var t;return{container:(t=Ac.variants)==null?void 0:t.outline(e)}})},aO=JD({variants:oO,baseStyle:rO,sizes:iO,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var Uk;const sO={...(Uk=Ue.baseStyle)==null?void 0:Uk.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var Hk;const lO={outline:e=>{var t;return((t=Ue.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=Ue.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=Ue.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((Hk=Ue.variants)==null?void 0:Hk.unstyled.field)??{}};var Gk,Kk,qk,Xk;const cO={xs:((Gk=Ue.sizes)==null?void 0:Gk.xs.field)??{},sm:((Kk=Ue.sizes)==null?void 0:Kk.sm.field)??{},md:((qk=Ue.sizes)==null?void 0:qk.md.field)??{},lg:((Xk=Ue.sizes)==null?void 0:Xk.lg.field)??{}},uO={baseStyle:sO,sizes:cO,variants:lO,defaultProps:{size:"md",variant:"outline"}},Bd=Tt("tooltip-bg"),d0=Tt("tooltip-fg"),dO=Tt("popper-arrow-bg"),fO={bg:Bd.reference,color:d0.reference,[Bd.variable]:"colors.gray.700",[d0.variable]:"colors.whiteAlpha.900",_dark:{[Bd.variable]:"colors.gray.300",[d0.variable]:"colors.gray.900"},[dO.variable]:Bd.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},pO={baseStyle:fO},mO={Accordion:eR,Alert:LR,Avatar:KR,Badge:Ac,Breadcrumb:rM,Button:fM,Checkbox:to,CloseButton:_M,Code:$M,Container:IM,Divider:DM,Drawer:XM,Editable:nL,Form:lL,FormError:mL,FormLabel:gL,Heading:bL,Input:Ue,Kbd:EL,Link:$L,List:LL,Menu:KL,Modal:iN,NumberInput:pN,PinInput:vN,Popover:TN,Progress:LN,Radio:BN,Select:qN,Skeleton:YN,SkipLink:ZN,Slider:cD,Spinner:fD,Stat:xD,Switch:AD,Table:ND,Tabs:ZD,Tag:aO,Textarea:uO,Tooltip:pO,Card:vM,Stepper:kD},hO={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},gO={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},vO={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},yO={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},bO={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},xO={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},SO={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},wO={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},kO={property:xO,easing:SO,duration:wO},CO={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},jO={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},PO={breakpoints:gO,zIndices:CO,radii:yO,blur:jO,colors:vO,...K6,sizes:B6,shadows:bO,space:F6,borders:hO,transition:kO},_O={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},TO={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, *::after":{borderColor:"chakra-border-color"}}},EO=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function AO(e){return Ft(e)?EO.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}const $O="ltr",zO={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},la={semanticTokens:_O,direction:$O,...PO,components:mO,styles:TO,config:zO};function IO(e){if(e.sheet)return e.sheet;for(var t=0;t0?tn(Pl,--Bn):0,ll--,Mt===10&&(ll=1,gm--),Mt}function Yn(){return Mt=Bn2||pu(Mt)>3?"":" "}function GO(e,t){for(;--t&&Yn()&&!(Mt<48||Mt>102||Mt>57&&Mt<65||Mt>70&&Mt<97););return Wu(e,Rf()+(t<6&&ri()==32&&Yn()==32))}function cv(e){for(;Yn();)switch(Mt){case e:return Bn;case 34:case 39:e!==34&&e!==39&&cv(Mt);break;case 40:e===41&&cv(e);break;case 92:Yn();break}return Bn}function KO(e,t){for(;Yn()&&e+Mt!==57;)if(e+Mt===84&&ri()===47)break;return"/*"+Wu(t,Bn-1)+"*"+hm(e===47?e:Yn())}function qO(e){for(;!pu(ri());)Yn();return Wu(e,Bn)}function XO(e){return nj(Lf("",null,null,null,[""],e=tj(e),0,[0],e))}function Lf(e,t,n,r,i,o,a,l,c){for(var u=0,d=0,f=a,p=0,h=0,g=0,b=1,x=1,y=1,v=0,S="",w=i,k=o,C=r,P=S;x;)switch(g=v,v=Yn()){case 40:if(g!=108&&tn(P,f-1)==58){lv(P+=We(Mf(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:P+=Mf(v);break;case 9:case 10:case 13:case 32:P+=HO(g);break;case 92:P+=GO(Rf()-1,7);continue;case 47:switch(ri()){case 42:case 47:Vd(YO(KO(Yn(),Rf()),t,n),c);break;default:P+="/"}break;case 123*b:l[u++]=Gr(P)*y;case 125*b:case 59:case 0:switch(v){case 0:case 125:x=0;case 59+d:y==-1&&(P=We(P,/\f/g,"")),h>0&&Gr(P)-f&&Vd(h>32?RS(P+";",r,n,f-1):RS(We(P," ","")+";",r,n,f-2),c);break;case 59:P+=";";default:if(Vd(C=IS(P,t,n,u,d,i,l,S,w=[],k=[],f),o),v===123)if(d===0)Lf(P,t,C,C,w,o,f,l,k);else switch(p===99&&tn(P,3)===110?100:p){case 100:case 108:case 109:case 115:Lf(e,C,C,r&&Vd(IS(e,C,C,0,0,i,l,S,i,w=[],f),k),i,k,f,l,r?w:k);break;default:Lf(P,C,C,C,[""],k,0,l,k)}}u=d=h=0,b=y=1,S=P="",f=a;break;case 58:f=1+Gr(P),h=g;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&UO()==125)continue}switch(P+=hm(v),v*b){case 38:y=d>0?1:(P+="\f",-1);break;case 44:l[u++]=(Gr(P)-1)*y,y=1;break;case 64:ri()===45&&(P+=Mf(Yn())),p=ri(),d=f=Gr(S=P+=qO(Rf())),v++;break;case 45:g===45&&Gr(P)==2&&(b=0)}}return o}function IS(e,t,n,r,i,o,a,l,c,u,d){for(var f=i-1,p=i===0?o:[""],h=T1(p),g=0,b=0,x=0;g0?p[y]+" "+v:We(v,/&\f/g,p[y])))&&(c[x++]=S);return vm(e,t,n,i===0?P1:l,c,u,d)}function YO(e,t,n){return vm(e,t,n,Q6,hm(WO()),fu(e,2,-2),0)}function RS(e,t,n,r){return vm(e,t,n,_1,fu(e,0,r),fu(e,r+1,-1),r)}function qs(e,t){for(var n="",r=T1(e),i=0;i6)switch(tn(e,t+1)){case 109:if(tn(e,t+4)!==45)break;case 102:return We(e,/(.+:)(.+)-([^]+)/,"$1"+Ve+"$2-$3$1"+Tp+(tn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~lv(e,"stretch")?ij(We(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(tn(e,t+1)!==115)break;case 6444:switch(tn(e,Gr(e)-3-(~lv(e,"!important")&&10))){case 107:return We(e,":",":"+Ve)+e;case 101:return We(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ve+(tn(e,14)===45?"inline-":"")+"box$3$1"+Ve+"$2$3$1"+pn+"$2box$3")+e}break;case 5936:switch(tn(e,t+11)){case 114:return Ve+e+pn+We(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ve+e+pn+We(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ve+e+pn+We(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ve+e+pn+e+e}return e}var oF=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case _1:t.return=ij(t.value,t.length);break;case Z6:return qs([Yl(t,{value:We(t.value,"@","@"+Ve)})],i);case P1:if(t.length)return VO(t.props,function(o){switch(BO(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qs([Yl(t,{props:[We(o,/:(read-\w+)/,":"+Tp+"$1")]})],i);case"::placeholder":return qs([Yl(t,{props:[We(o,/:(plac\w+)/,":"+Ve+"input-$1")]}),Yl(t,{props:[We(o,/:(plac\w+)/,":"+Tp+"$1")]}),Yl(t,{props:[We(o,/:(plac\w+)/,pn+"input-$1")]})],i)}return""})}},aF=[oF],sF=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var x=b.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var i=t.stylisPlugins||aF,o={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var x=b.getAttribute("data-emotion").split(" "),y=1;y=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var yF={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},bF=/[A-Z]|^ms/g,xF=/_EMO_([^_]+?)_([^]*?)_EMO_/g,uj=function(t){return t.charCodeAt(1)===45},NS=function(t){return t!=null&&typeof t!="boolean"},f0=rj(function(e){return uj(e)?e:e.replace(bF,"-$&").toLowerCase()}),DS=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(xF,function(r,i,o){return Kr={name:i,styles:o,next:Kr},i})}return yF[t]!==1&&!uj(t)&&typeof n=="number"&&n!==0?n+"px":n};function mu(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Kr={name:i.name,styles:i.styles,next:Kr},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Kr={name:a.name,styles:a.styles,next:Kr},a=a.next;var l=o.styles+";";return l}return SF(e,t,n)}case"function":{if(e!==void 0){var c=Kr,u=n(e);return Kr=c,mu(e,t,u)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function SF(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=i,document.documentElement.style.colorScheme=i,o==null||o()},setClassName(i){document.body.classList.add(i?Wd.dark:Wd.light),document.body.classList.remove(i?Wd.light:Wd.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(i){return r.query().matches??i==="dark"?"dark":"light"},addListener(i){const o=r.query(),a=l=>{i(l.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(a):o.addEventListener("change",a),()=>{typeof o.removeListener=="function"?o.removeListener(a):o.removeEventListener("change",a)}},preventTransition(){const i=document.createElement("style");return i.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n!==void 0&&(i.nonce=n),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(i)})})}}};return r}const IF="chakra-ui-color-mode";function RF(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const MF=RF(IF),VS=()=>{},LF=V$()?m.useLayoutEffect:m.useEffect;function WS(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const pj=function(t){const{value:n,children:r,options:{useSystemColorMode:i,initialColorMode:o,disableTransitionOnChange:a}={},colorModeManager:l=MF}=t,c=kF(),u=o==="dark"?"dark":"light",[d,f]=m.useState(()=>WS(l,u)),[p,h]=m.useState(()=>WS(l)),{getSystemTheme:g,setClassName:b,setDataset:x,addListener:y}=m.useMemo(()=>zF({preventTransition:a,nonce:c==null?void 0:c.nonce}),[a,c==null?void 0:c.nonce]),v=o==="system"&&!d?p:d,S=m.useCallback(C=>{const P=C==="system"?g():C;f(P),b(P==="dark"),x(P),l.set(P)},[l,g,b,x]);LF(()=>{o==="system"&&h(g())},[]),m.useEffect(()=>{const C=l.get();if(C){S(C);return}if(o==="system"){S("system");return}S(u)},[l,u,o,S]);const w=m.useCallback(()=>{S(v==="dark"?"light":"dark")},[v,S]);m.useEffect(()=>{if(i)return y(S)},[i,y,S]);const k=m.useMemo(()=>({colorMode:n??v,toggleColorMode:n?VS:w,setColorMode:n?VS:S,forced:n!==void 0}),[v,w,S,n]);return s.jsx(N1.Provider,{value:k,children:r})};pj.displayName="ColorModeProvider";const mj=String.raw,hj=mj` - :root, - :host { - --chakra-vh: 100vh; - } - - @supports (height: -webkit-fill-available) { - :root, - :host { - --chakra-vh: -webkit-fill-available; - } - } - - @supports (height: -moz-fill-available) { - :root, - :host { - --chakra-vh: -moz-fill-available; - } - } - - @supports (height: 100dvh) { - :root, - :host { - --chakra-vh: 100dvh; - } - } -`,NF=()=>s.jsx(Em,{styles:hj}),DF=({scope:e=""})=>s.jsx(Em,{styles:mj` - html { - line-height: 1.5; - -webkit-text-size-adjust: 100%; - font-family: system-ui, sans-serif; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - -moz-osx-font-smoothing: grayscale; - touch-action: manipulation; - } - - body { - position: relative; - min-height: 100%; - margin: 0; - font-feature-settings: "kern"; - } - - ${e} :where(*, *::before, *::after) { - border-width: 0; - border-style: solid; - box-sizing: border-box; - word-wrap: break-word; - } - - main { - display: block; - } - - ${e} hr { - border-top-width: 1px; - box-sizing: content-box; - height: 0; - overflow: visible; - } - - ${e} :where(pre, code, kbd,samp) { - font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; - font-size: 1em; - } - - ${e} a { - background-color: transparent; - color: inherit; - text-decoration: inherit; - } - - ${e} abbr[title] { - border-bottom: none; - text-decoration: underline; - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - } - - ${e} :where(b, strong) { - font-weight: bold; - } - - ${e} small { - font-size: 80%; - } - - ${e} :where(sub,sup) { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; - } - - ${e} sub { - bottom: -0.25em; - } - - ${e} sup { - top: -0.5em; - } - - ${e} img { - border-style: none; - } - - ${e} :where(button, input, optgroup, select, textarea) { - font-family: inherit; - font-size: 100%; - line-height: 1.15; - margin: 0; - } - - ${e} :where(button, input) { - overflow: visible; - } - - ${e} :where(button, select) { - text-transform: none; - } - - ${e} :where( - button::-moz-focus-inner, - [type="button"]::-moz-focus-inner, - [type="reset"]::-moz-focus-inner, - [type="submit"]::-moz-focus-inner - ) { - border-style: none; - padding: 0; - } - - ${e} fieldset { - padding: 0.35em 0.75em 0.625em; - } - - ${e} legend { - box-sizing: border-box; - color: inherit; - display: table; - max-width: 100%; - padding: 0; - white-space: normal; - } - - ${e} progress { - vertical-align: baseline; - } - - ${e} textarea { - overflow: auto; - } - - ${e} :where([type="checkbox"], [type="radio"]) { - box-sizing: border-box; - padding: 0; - } - - ${e} input[type="number"]::-webkit-inner-spin-button, - ${e} input[type="number"]::-webkit-outer-spin-button { - -webkit-appearance: none !important; - } - - ${e} input[type="number"] { - -moz-appearance: textfield; - } - - ${e} input[type="search"] { - -webkit-appearance: textfield; - outline-offset: -2px; - } - - ${e} input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none !important; - } - - ${e} ::-webkit-file-upload-button { - -webkit-appearance: button; - font: inherit; - } - - ${e} details { - display: block; - } - - ${e} summary { - display: list-item; - } - - template { - display: none; - } - - [hidden] { - display: none !important; - } - - ${e} :where( - blockquote, - dl, - dd, - h1, - h2, - h3, - h4, - h5, - h6, - hr, - figure, - p, - pre - ) { - margin: 0; - } - - ${e} button { - background: transparent; - padding: 0; - } - - ${e} fieldset { - margin: 0; - padding: 0; - } - - ${e} :where(ol, ul) { - margin: 0; - padding: 0; - } - - ${e} textarea { - resize: vertical; - } - - ${e} :where(button, [role="button"]) { - cursor: pointer; - } - - ${e} button::-moz-focus-inner { - border: 0 !important; - } - - ${e} table { - border-collapse: collapse; - } - - ${e} :where(h1, h2, h3, h4, h5, h6) { - font-size: inherit; - font-weight: inherit; - } - - ${e} :where(button, input, optgroup, select, textarea) { - padding: 0; - line-height: inherit; - color: inherit; - } - - ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { - display: block; - } - - ${e} :where(img, video) { - max-width: 100%; - height: auto; - } - - [data-js-focus-visible] - :focus:not([data-focus-visible-added]):not( - [data-focus-visible-disabled] - ) { - outline: none; - box-shadow: none; - } - - ${e} select::-ms-expand { - display: none; - } - - ${hj} - `});function OF(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=m.useMemo(()=>zI(n),[n]);return s.jsxs(PF,{theme:i,children:[s.jsx(FF,{root:t}),r]})}function FF({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return s.jsx(Em,{styles:n=>({[t]:n.__cssVars})})}Te({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function Or(e){return Te({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function BF(){const{colorMode:e}=Hu();return s.jsx(Em,{styles:t=>{const n=d6(t,"styles.global"),r=gn(n,{theme:t,colorMode:e});return r?j6(r)(t):void 0}})}const[VF,WF]=Te({strict:!1,name:"PortalManagerContext"});function gj(e){const{children:t,zIndex:n}=e;return s.jsx(VF,{value:{zIndex:n},children:t})}gj.displayName="PortalManager";const D1=m.createContext({getDocument(){return document},getWindow(){return window}});D1.displayName="EnvironmentContext";function UF({defer:e}={}){const[,t]=m.useReducer(n=>n+1,0);return ti(()=>{e&&t()},[e]),m.useContext(D1)}function vj(e){const{children:t,environment:n,disabled:r}=e,i=m.useRef(null),o=m.useMemo(()=>n||{getDocument:()=>{var l;return((l=i.current)==null?void 0:l.ownerDocument)??document},getWindow:()=>{var l;return((l=i.current)==null?void 0:l.ownerDocument.defaultView)??window}},[n]),a=!r||!n;return s.jsxs(D1.Provider,{value:o,children:[t,a&&s.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}vj.displayName="EnvironmentProvider";const HF=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:o=!0,theme:a={},environment:l,cssVarsRoot:c,disableEnvironment:u,disableGlobalStyle:d}=e,f=s.jsx(vj,{environment:l,disabled:u,children:t});return s.jsx(OF,{theme:a,cssVarsRoot:c,children:s.jsxs(pj,{colorModeManager:n,options:a.config,children:[o?s.jsx(DF,{scope:i}):s.jsx(NF,{}),!d&&s.jsx(BF,{}),r?s.jsx(gj,{zIndex:r,children:f}):f]})})},O1=m.createContext({});function F1(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const Gu=m.createContext(null),B1=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class GF extends m.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function KF({children:e,isPresent:t}){const n=m.useId(),r=m.useRef(null),i=m.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=m.useContext(B1);return m.useInsertionEffect(()=>{const{width:a,height:l,top:c,left:u}=i.current;if(t||!r.current||!a||!l)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return o&&(d.nonce=o),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(` - [data-motion-pop-id="${n}"] { - position: absolute !important; - width: ${a}px !important; - height: ${l}px !important; - top: ${c}px !important; - left: ${u}px !important; - } - `),()=>{document.head.removeChild(d)}},[t]),s.jsx(GF,{isPresent:t,childRef:r,sizeRef:i,children:m.cloneElement(e,{ref:r})})}const qF=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const l=F1(XF),c=m.useId(),u=m.useCallback(f=>{l.set(f,!0);for(const p of l.values())if(!p)return;r&&r()},[l,r]),d=m.useMemo(()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:u,register:f=>(l.set(f,!1),()=>l.delete(f))}),o?[Math.random(),u]:[n,u]);return m.useMemo(()=>{l.forEach((f,p)=>l.set(p,!1))},[n]),m.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),a==="popLayout"&&(e=s.jsx(KF,{isPresent:n,children:e})),s.jsx(Gu.Provider,{value:d,children:e})};function XF(){return new Map}function V1(e=!0){const t=m.useContext(Gu);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=m.useId();m.useEffect(()=>{e&&i(o)},[e]);const a=m.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}function YF(){return QF(m.useContext(Gu))}function QF(e){return e===null?!0:e.isPresent}const Ud=e=>e.key||"";function US(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const W1=typeof window<"u",yj=W1?m.useLayoutEffect:m.useEffect,Ni=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1})=>{const[l,c]=V1(a),u=m.useMemo(()=>US(e),[e]),d=a&&!l?[]:u.map(Ud),f=m.useRef(!0),p=m.useRef(u),h=F1(()=>new Map),[g,b]=m.useState(u),[x,y]=m.useState(u);yj(()=>{f.current=!1,p.current=u;for(let w=0;w{const k=Ud(w),C=a&&!l?!1:u===x||d.includes(k),P=()=>{if(h.has(k))h.set(k,!0);else return;let j=!0;h.forEach(T=>{T||(j=!1)}),j&&(S==null||S(),y(p.current),a&&(c==null||c()),r&&r())};return s.jsx(qF,{isPresent:C,initial:!f.current||n?void 0:!1,custom:C?void 0:t,presenceAffectsLayout:i,mode:o,onExitComplete:C?void 0:P,children:w},k)})})},Qn=e=>e;let bj=Qn;function U1(e){let t;return()=>(t===void 0&&(t=e()),t)}const ul=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ji=e=>e*1e3,Pi=e=>e/1e3,ZF={useManualTiming:!1};function JF(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){o.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,f=!1)=>{const h=f&&r?t:n;return d&&o.add(u),h.has(u)||h.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(a=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,c.process(u))}};return c}const Hd=["read","resolveKeyframes","update","preRender","render","postRender"],eB=40;function xj(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Hd.reduce((y,v)=>(y[v]=JF(o),y),{}),{read:l,resolveKeyframes:c,update:u,preRender:d,render:f,postRender:p}=a,h=()=>{const y=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(y-i.timestamp,eB),1),i.timestamp=y,i.isProcessing=!0,l.process(i),c.process(i),u.process(i),d.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Hd.reduce((y,v)=>{const S=a[v];return y[v]=(w,k=!1,C=!1)=>(n||g(),S.schedule(w,k,C)),y},{}),cancel:y=>{for(let v=0;vHS[e].some(n=>!!t[n])};function tB(e){for(const t in e)dl[t]={...dl[t],...e[t]}}const nB=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 Ap(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||nB.has(e)}let wj=e=>!Ap(e);function rB(e){e&&(wj=t=>t.startsWith("on")?!Ap(t):e(t))}try{rB(require("@emotion/is-prop-valid").default)}catch{}function iB(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(wj(i)||n===!0&&Ap(i)||!t&&!Ap(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function oB(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Am=m.createContext({});function hu(e){return typeof e=="string"||Array.isArray(e)}function $m(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const H1=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],G1=["initial",...H1];function zm(e){return $m(e.animate)||G1.some(t=>hu(e[t]))}function kj(e){return!!(zm(e)||e.variants)}function aB(e,t){if(zm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||hu(n)?n:void 0,animate:hu(r)?r:void 0}}return e.inherit!==!1?t:{}}function sB(e){const{initial:t,animate:n}=aB(e,m.useContext(Am));return m.useMemo(()=>({initial:t,animate:n}),[GS(t),GS(n)])}function GS(e){return Array.isArray(e)?e.join(" "):e}const lB=Symbol.for("motionComponentSymbol");function Ps(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function cB(e,t,n){return m.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ps(n)&&(n.current=r))},[t])}const K1=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),uB="framerAppearId",Cj="data-"+K1(uB),{schedule:q1}=xj(queueMicrotask,!1),jj=m.createContext({});function dB(e,t,n,r,i){var o,a;const{visualElement:l}=m.useContext(Am),c=m.useContext(Sj),u=m.useContext(Gu),d=m.useContext(B1).reducedMotion,f=m.useRef(null);r=r||c.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const p=f.current,h=m.useContext(jj);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&fB(f.current,n,i,h);const g=m.useRef(!1);m.useInsertionEffect(()=>{p&&g.current&&p.update(n,u)});const b=n[Cj],x=m.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return yj(()=>{p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),q1.render(p.render),x.current&&p.animationState&&p.animationState.animateChanges())}),m.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,b)}),x.current=!1))}),p}function fB(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Pj(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||l&&Ps(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:u})}function Pj(e){if(e)return e.options.allowProjection!==!1?e.projection:Pj(e.parent)}function pB({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&tB(e);function l(u,d){let f;const p={...m.useContext(B1),...u,layoutId:mB(u)},{isStatic:h}=p,g=sB(u),b=r(u,h);if(!h&&W1){hB();const x=gB(p);f=x.MeasureLayout,g.visualElement=dB(i,b,p,t,x.ProjectionNode)}return s.jsxs(Am.Provider,{value:g,children:[f&&g.visualElement?s.jsx(f,{visualElement:g.visualElement,...p}):null,n(i,u,cB(b,g.visualElement,d),b,h,g.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const c=m.forwardRef(l);return c[lB]=i,c}function mB({layoutId:e}){const t=m.useContext(O1).id;return t&&e!==void 0?t+"-"+e:e}function hB(e,t){m.useContext(Sj).strict}function gB(e){const{drag:t,layout:n}=dl;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const vB=["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 X1(e){return typeof e!="string"||e.includes("-")?!1:!!(vB.indexOf(e)>-1||/[A-Z]/u.test(e))}function KS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Y1(e,t,n,r){if(typeof t=="function"){const[i,o]=KS(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]=KS(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const dv=e=>Array.isArray(e),yB=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),bB=e=>dv(e)?e[e.length-1]||0:e,vn=e=>!!(e&&e.getVelocity);function Nf(e){const t=vn(e)?e.get():e;return yB(t)?t.toValue():t}function xB({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:SB(r,i,o,e),renderState:t()};return n&&(a.onMount=l=>n({props:r,current:l,...a}),a.onUpdate=l=>n(l)),a}const _j=e=>(t,n)=>{const r=m.useContext(Am),i=m.useContext(Gu),o=()=>xB(e,t,r,i);return n?o():F1(o)};function SB(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=Nf(o[p]);let{initial:a,animate:l}=e;const c=zm(e),u=kj(e);t&&u&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?l:a;if(f&&typeof f!="boolean"&&!$m(f)){const p=Array.isArray(f)?f:[f];for(let h=0;ht=>typeof t=="string"&&t.startsWith(e),Ej=Tj("--"),wB=Tj("var(--"),Q1=e=>wB(e)?kB.test(e.split("/*")[0].trim()):!1,kB=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Aj=(e,t)=>t&&typeof e=="number"?t.transform(e):e,zi=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},gu={...Tl,transform:e=>zi(0,1,e)},Gd={...Tl,default:1},Ku=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Yi=Ku("deg"),ii=Ku("%"),Se=Ku("px"),CB=Ku("vh"),jB=Ku("vw"),qS={...ii,parse:e=>ii.parse(e)/100,transform:e=>ii.transform(e*100)},PB={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,backgroundPositionX:Se,backgroundPositionY:Se},_B={rotate:Yi,rotateX:Yi,rotateY:Yi,rotateZ:Yi,scale:Gd,scaleX:Gd,scaleY:Gd,scaleZ:Gd,skew:Yi,skewX:Yi,skewY:Yi,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:gu,originX:qS,originY:qS,originZ:Se},XS={...Tl,transform:Math.round},Z1={...PB,..._B,zIndex:XS,size:Se,fillOpacity:gu,strokeOpacity:gu,numOctaves:XS},TB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},EB=_l.length;function AB(e,t,n){let r="",i=!0;for(let o=0;o({style:{},transform:{},transformOrigin:{},vars:{}}),$j=()=>({...tb(),attrs:{}}),nb=e=>typeof e=="string"&&e.toLowerCase()==="svg";function zj(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Ij=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 Rj(e,t,n,r){zj(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Ij.has(i)?i:K1(i),t.attrs[i])}const $p={};function MB(e){Object.assign($p,e)}function Mj(e,{layout:t,layoutId:n}){return Ba.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!$p[e]||e==="opacity")}function rb(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(vn(i[a])||t.style&&vn(t.style[a])||Mj(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function Lj(e,t,n){const r=rb(e,t,n);for(const i in e)if(vn(e[i])||vn(t[i])){const o=_l.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function LB(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const QS=["x","y","width","height","cx","cy","r"],NB={useVisualState:_j({scrapeMotionValuesFromProps:Lj,createRenderState:$j,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const l in i)if(Ba.has(l)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let l=0;l{LB(n,r),ut.render(()=>{eb(r,i,nb(n.tagName),e.transformTemplate),Rj(n,r)})})}})},DB={useVisualState:_j({scrapeMotionValuesFromProps:rb,createRenderState:tb})};function Nj(e,t,n){for(const r in t)!vn(t[r])&&!Mj(r,n)&&(e[r]=t[r])}function OB({transformTemplate:e},t){return m.useMemo(()=>{const n=tb();return J1(n,t,e),Object.assign({},n.vars,n.style)},[t])}function FB(e,t){const n=e.style||{},r={};return Nj(r,n,e),Object.assign(r,OB(e,t)),r}function BB(e,t){const n={},r=FB(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}function VB(e,t,n,r){const i=m.useMemo(()=>{const o=$j();return eb(o,t,nb(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Nj(o,e.style,e),i.style={...o,...i.style}}return i}function WB(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(X1(n)?VB:BB)(r,o,a,n),u=iB(r,typeof n=="string",e),d=n!==m.Fragment?{...u,...c,ref:i}:{},{children:f}=r,p=m.useMemo(()=>vn(f)?f.get():f,[f]);return m.createElement(n,{...d,children:p})}}function UB(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...X1(r)?NB:DB,preloadedFeatures:e,useRender:WB(i),createVisualElement:t,Component:r};return pB(a)}}function Dj(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rwindow.ScrollTimeline!==void 0);class GB{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(HB()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class KB extends GB{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function ib(e,t){return e?e[t]||e.default||e:void 0}const fv=2e4;function Oj(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=fv?1/0:t}function ob(e){return typeof e=="function"}function ZS(e,t){e.timeline=t,e.onfinish=null}const ab=e=>Array.isArray(e)&&typeof e[0]=="number",qB={linearEasing:void 0};function XB(e,t){const n=U1(e);return()=>{var r;return(r=qB[t])!==null&&r!==void 0?r:n()}}const zp=XB(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Fj=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o`cubic-bezier(${e}, ${t}, ${n}, ${r})`,pv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:dc([0,.65,.55,1]),circOut:dc([.55,0,1,.45]),backIn:dc([.31,.01,.66,-.59]),backOut:dc([.33,1.53,.69,.99])};function Vj(e,t){if(e)return typeof e=="function"&&zp()?Fj(e,t):ab(e)?dc(e):Array.isArray(e)?e.map(n=>Vj(n,t)||pv.easeOut):pv[e]}const Tr={x:!1,y:!1};function Wj(){return Tr.x||Tr.y}function YB(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function Uj(e,t){const n=YB(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function JS(e){return t=>{t.pointerType==="touch"||Wj()||e(t)}}function QB(e,t,n={}){const[r,i,o]=Uj(e,n),a=JS(l=>{const{target:c}=l,u=t(l);if(typeof u!="function"||!c)return;const d=JS(f=>{u(f),c.removeEventListener("pointerleave",d)});c.addEventListener("pointerleave",d,i)});return r.forEach(l=>{l.addEventListener("pointerenter",a,i)}),o}const Hj=(e,t)=>t?e===t?!0:Hj(e,t.parentElement):!1,sb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,ZB=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function JB(e){return ZB.has(e.tagName)||e.tabIndex!==-1}const fc=new WeakSet;function e4(e){return t=>{t.key==="Enter"&&e(t)}}function m0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const eV=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=e4(()=>{if(fc.has(n))return;m0(n,"down");const i=e4(()=>{m0(n,"up")}),o=()=>m0(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 t4(e){return sb(e)&&!Wj()}function tV(e,t,n={}){const[r,i,o]=Uj(e,n),a=l=>{const c=l.currentTarget;if(!t4(l)||fc.has(c))return;fc.add(c);const u=t(l),d=(h,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),!(!t4(h)||!fc.has(c))&&(fc.delete(c),typeof u=="function"&&u(h,{success:g}))},f=h=>{d(h,n.useGlobalTarget||Hj(c,h.target))},p=h=>{d(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",p,i)};return r.forEach(l=>{!JB(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,i),l.addEventListener("focus",u=>eV(u,i),i)}),o}function nV(e){return e==="x"||e==="y"?Tr[e]?null:(Tr[e]=!0,()=>{Tr[e]=!1}):Tr.x||Tr.y?null:(Tr.x=Tr.y=!0,()=>{Tr.x=Tr.y=!1})}const Gj=new Set(["width","height","top","left","right","bottom",..._l]);let Df;function rV(){Df=void 0}const oi={now:()=>(Df===void 0&&oi.set(Zt.isProcessing||ZF.useManualTiming?Zt.timestamp:performance.now()),Df),set:e=>{Df=e,queueMicrotask(rV)}};function lb(e,t){e.indexOf(t)===-1&&e.push(t)}function cb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ub{constructor(){this.subscriptions=[]}add(t){return lb(this.subscriptions,t),()=>cb(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!isNaN(parseFloat(e));class oV{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=oi.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=oi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=iV(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ub);const r=this.events[t].add(n);return t==="change"?()=>{r(),ut.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=oi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>n4)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,n4);return Kj(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vu(e,t){return new oV(e,t)}function aV(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vu(n))}function sV(e,t){const n=Im(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const l=bB(o[a]);aV(e,a,l)}}function lV(e){return!!(vn(e)&&e.add)}function mv(e,t){const n=e.getValue("willChange");if(lV(n))return n.add(t)}function qj(e){return e.props[Cj]}const Xj=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,cV=1e-7,uV=12;function dV(e,t,n,r,i){let o,a,l=0;do a=t+(n-t)/2,o=Xj(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>cV&&++ldV(o,0,1,e,n);return o=>o===0||o===1?o:Xj(i(o),t,r)}const Yj=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Qj=e=>t=>1-e(1-t),Zj=qu(.33,1.53,.69,.99),db=Qj(Zj),Jj=Yj(db),eP=e=>(e*=2)<1?.5*db(e):.5*(2-Math.pow(2,-10*(e-1))),fb=e=>1-Math.sin(Math.acos(e)),tP=Qj(fb),nP=Yj(fb),rP=e=>/^0[^.\s]+$/u.test(e);function fV(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||rP(e):!0}const Rc=e=>Math.round(e*1e5)/1e5,pb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function pV(e){return e==null}const mV=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mb=(e,t)=>n=>!!(typeof n=="string"&&mV.test(n)&&n.startsWith(e)||t&&!pV(n)&&Object.prototype.hasOwnProperty.call(n,t)),iP=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,l]=r.match(pb);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},hV=e=>zi(0,255,e),h0={...Tl,transform:e=>Math.round(hV(e))},ca={test:mb("rgb","red"),parse:iP("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+h0.transform(e)+", "+h0.transform(t)+", "+h0.transform(n)+", "+Rc(gu.transform(r))+")"};function gV(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 hv={test:mb("#"),parse:gV,transform:ca.transform},_s={test:mb("hsl","hue"),parse:iP("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ii.transform(Rc(t))+", "+ii.transform(Rc(n))+", "+Rc(gu.transform(r))+")"},mn={test:e=>ca.test(e)||hv.test(e)||_s.test(e),parse:e=>ca.test(e)?ca.parse(e):_s.test(e)?_s.parse(e):hv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ca.transform(e):_s.transform(e)},vV=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function yV(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(pb))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(vV))===null||n===void 0?void 0:n.length)||0)>0}const oP="number",aP="color",bV="var",xV="var(",r4="${}",SV=/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 yu(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(SV,c=>(mn.test(c)?(r.color.push(o),i.push(aP),n.push(mn.parse(c))):c.startsWith(xV)?(r.var.push(o),i.push(bV),n.push(c)):(r.number.push(o),i.push(oP),n.push(parseFloat(c))),++o,r4)).split(r4);return{values:n,split:l,indexes:r,types:i}}function sP(e){return yu(e).values}function lP(e){const{split:t,types:n}=yu(e),r=t.length;return i=>{let o="";for(let a=0;atypeof e=="number"?0:e;function kV(e){const t=sP(e);return lP(e)(t.map(wV))}const _o={test:yV,parse:sP,createTransformer:lP,getAnimatableNone:kV},CV=new Set(["brightness","contrast","saturate","opacity"]);function jV(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(pb)||[];if(!r)return e;const i=n.replace(r,"");let o=CV.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const PV=/\b([a-z-]*)\(.*?\)/gu,gv={..._o,getAnimatableNone:e=>{const t=e.match(PV);return t?t.map(jV).join(" "):e}},_V={...Z1,color:mn,backgroundColor:mn,outlineColor:mn,fill:mn,stroke:mn,borderColor:mn,borderTopColor:mn,borderRightColor:mn,borderBottomColor:mn,borderLeftColor:mn,filter:gv,WebkitFilter:gv},hb=e=>_V[e];function cP(e,t){let n=hb(e);return n!==gv&&(n=_o),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const TV=new Set(["auto","none","0"]);function EV(e,t,n){let r=0,i;for(;re===Tl||e===Se,o4=(e,t)=>parseFloat(e.split(", ")[t]),a4=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return o4(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?o4(o[1],e):0}},AV=new Set(["x","y","z"]),$V=_l.filter(e=>!AV.has(e));function zV(e){const t=[];return $V.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const fl={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:a4(4,13),y:a4(5,14)};fl.translateX=fl.x;fl.translateY=fl.y;const ya=new Set;let vv=!1,yv=!1;function uP(){if(yv){const e=Array.from(ya).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=zV(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,a])=>{var l;(l=r.getValue(o))===null||l===void 0||l.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}yv=!1,vv=!1,ya.forEach(e=>e.complete()),ya.clear()}function dP(){ya.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(yv=!0)})}function IV(){dP(),uP()}class gb{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ya.add(this),vv||(vv=!0,ut.read(dP),ut.resolveKeyframes(uP))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),RV=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function MV(e){const t=RV.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function pP(e,t,n=1){const[r,i]=MV(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return fP(a)?parseFloat(a):a}return Q1(i)?pP(i,t,n+1):i}const mP=e=>t=>t.test(e),LV={test:e=>e==="auto",parse:e=>e},hP=[Tl,Se,ii,Yi,jB,CB,LV],s4=e=>hP.find(mP(e));class gP extends gb{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 c=0;c{n.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const l4=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(_o.test(e)||e==="0")&&!e.startsWith("url("));function NV(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function Rm(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(OV),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const FV=40;class vP{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=oi.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>FV?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&IV(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=oi.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:l,onUpdate:c,isGenerator:u}=this.options;if(!u&&!DV(t,r,i,o))if(a)this.options.duration=0;else{c&&c(Rm(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const yt=(e,t,n)=>e+(t-e)*n;function g0(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 BV({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=g0(c,l,e+1/3),o=g0(c,l,e),a=g0(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Ip(e,t){return n=>n>0?t:e}const v0=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},VV=[hv,ca,_s],WV=e=>VV.find(t=>t.test(e));function c4(e){const t=WV(e);if(!t)return!1;let n=t.parse(e);return t===_s&&(n=BV(n)),n}const u4=(e,t)=>{const n=c4(e),r=c4(t);if(!n||!r)return Ip(e,t);const i={...n};return o=>(i.red=v0(n.red,r.red,o),i.green=v0(n.green,r.green,o),i.blue=v0(n.blue,r.blue,o),i.alpha=yt(n.alpha,r.alpha,o),ca.transform(i))},UV=(e,t)=>n=>t(e(n)),Xu=(...e)=>e.reduce(UV),bv=new Set(["none","hidden"]);function HV(e,t){return bv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function GV(e,t){return n=>yt(e,t,n)}function vb(e){return typeof e=="number"?GV:typeof e=="string"?Q1(e)?Ip:mn.test(e)?u4:XV:Array.isArray(e)?yP:typeof e=="object"?mn.test(e)?u4:KV:Ip}function yP(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>vb(o)(o,t[a]));return o=>{for(let a=0;a{for(const o in r)n[o]=r[o](i);return n}}function qV(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o{const n=_o.createTransformer(t),r=yu(e),i=yu(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?bv.has(e)&&!i.values.length||bv.has(t)&&!r.values.length?HV(e,t):Xu(yP(qV(r,i),i.values),n):Ip(e,t)};function bP(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?yt(e,t,n):vb(e)(e,t)}const YV=5;function xP(e,t,n){const r=Math.max(t-YV,0);return Kj(n-e(r),t-r)}const jt={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},y0=.001;function QV({duration:e=jt.duration,bounce:t=jt.bounce,velocity:n=jt.velocity,mass:r=jt.mass}){let i,o,a=1-t;a=zi(jt.minDamping,jt.maxDamping,a),e=zi(jt.minDuration,jt.maxDuration,Pi(e)),a<1?(i=u=>{const d=u*a,f=d*e,p=d-n,h=xv(u,a),g=Math.exp(-f);return y0-p/h*g},o=u=>{const f=u*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(u,2)*e,g=Math.exp(-f),b=xv(Math.pow(u,2),a);return(-i(u)+y0>0?-1:1)*((p-h)*g)/b}):(i=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-y0+d*f},o=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=JV(i,o,l);if(e=ji(e),isNaN(c))return{stiffness:jt.stiffness,damping:jt.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const ZV=12;function JV(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function nW(e){let t={velocity:jt.velocity,stiffness:jt.stiffness,damping:jt.damping,mass:jt.mass,isResolvedFromDuration:!1,...e};if(!d4(e,tW)&&d4(e,eW))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*zi(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:jt.mass,stiffness:i,damping:o}}else{const n=QV(e);t={...t,...n,mass:jt.mass},t.isResolvedFromDuration=!0}return t}function SP(e=jt.visualDuration,t=jt.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],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:c,damping:u,mass:d,duration:f,velocity:p,isResolvedFromDuration:h}=nW({...n,velocity:-Pi(n.velocity||0)}),g=p||0,b=u/(2*Math.sqrt(c*d)),x=a-o,y=Pi(Math.sqrt(c/d)),v=Math.abs(x)<5;r||(r=v?jt.restSpeed.granular:jt.restSpeed.default),i||(i=v?jt.restDelta.granular:jt.restDelta.default);let S;if(b<1){const k=xv(y,b);S=C=>{const P=Math.exp(-b*y*C);return a-P*((g+b*y*x)/k*Math.sin(k*C)+x*Math.cos(k*C))}}else if(b===1)S=k=>a-Math.exp(-y*k)*(x+(g+y*x)*k);else{const k=y*Math.sqrt(b*b-1);S=C=>{const P=Math.exp(-b*y*C),j=Math.min(k*C,300);return a-P*((g+b*y*x)*Math.sinh(j)+k*x*Math.cosh(j))/k}}const w={calculatedDuration:h&&f||null,next:k=>{const C=S(k);if(h)l.done=k>=f;else{let P=0;b<1&&(P=k===0?ji(g):xP(S,k,C));const j=Math.abs(P)<=r,T=Math.abs(a-C)<=i;l.done=j&&T}return l.value=l.done?a:C,l},toString:()=>{const k=Math.min(Oj(w),fv),C=Fj(P=>w.next(k*P).value,k,30);return k+"ms "+C}};return w}function f4({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:d}){const f=e[0],p={done:!1,value:f},h=j=>l!==void 0&&jc,g=j=>l===void 0?c:c===void 0||Math.abs(l-j)-b*Math.exp(-j/r),S=j=>y+v(j),w=j=>{const T=v(j),E=S(j);p.done=Math.abs(T)<=u,p.value=p.done?y:E};let k,C;const P=j=>{h(p.value)&&(k=j,C=SP({keyframes:[p.value,g(p.value)],velocity:xP(S,j,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:d}))};return P(0),{calculatedDuration:null,next:j=>{let T=!1;return!C&&k===void 0&&(T=!0,w(j),P(j)),k!==void 0&&j>=k?C.next(j-k):(!T&&w(j),p)}}}const rW=qu(.42,0,1,1),iW=qu(0,0,.58,1),wP=qu(.42,0,.58,1),oW=e=>Array.isArray(e)&&typeof e[0]!="number",aW={linear:Qn,easeIn:rW,easeInOut:wP,easeOut:iW,circIn:fb,circInOut:nP,circOut:tP,backIn:db,backInOut:Jj,backOut:Zj,anticipate:eP},p4=e=>{if(ab(e)){bj(e.length===4);const[t,n,r,i]=e;return qu(t,n,r,i)}else if(typeof e=="string")return aW[e];return e};function sW(e,t,n){const r=[],i=n||bP,o=e.length-1;for(let a=0;at[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=sW(t,r,i),c=l.length,u=d=>{if(a&&d1)for(;fu(zi(e[0],e[o-1],d)):u}function cW(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ul(0,t,r);e.push(yt(n,1,i))}}function uW(e){const t=[0];return cW(t,e.length-1),t}function dW(e,t){return e.map(n=>n*t)}function fW(e,t){return e.map(()=>t||wP).splice(0,e.length-1)}function Rp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=oW(r)?r.map(p4):p4(r),o={done:!1,value:t[0]},a=dW(n&&n.length===t.length?n:uW(t),e),l=lW(a,t,{ease:Array.isArray(i)?i:fW(t,i)});return{calculatedDuration:e,next:c=>(o.value=l(c),o.done=c>=e,o)}}const pW=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ut.update(t,!0),stop:()=>Po(t),now:()=>Zt.isProcessing?Zt.timestamp:oi.now()}},mW={decay:f4,inertia:f4,tween:Rp,keyframes:Rp,spring:SP},hW=e=>e/100;class yb extends vP{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||gb,l=(c,u)=>this.onKeyframesResolved(c,u);this.resolver=new a(o,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,l=ob(n)?n:mW[n]||Rp;let c,u;l!==Rp&&typeof t[0]!="number"&&(c=Xu(hW,bP(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});o==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=Oj(d));const{calculatedDuration:f}=d,p=f+i,h=p*(r+1)-i;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:c,calculatedDuration:f,resolvedDuration:p,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:j}=this.options;return{done:!0,value:j[j.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:u,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:h,repeatType:g,repeatDelay:b,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-p*(this.speed>=0?1:-1),v=this.speed>=0?y<0:y>d;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let S=this.currentTime,w=o;if(h){const j=Math.min(this.currentTime,d)/f;let T=Math.floor(j),E=j%1;!E&&j>=1&&(E=1),E===1&&T--,T=Math.min(T,h+1),!!(T%2)&&(g==="reverse"?(E=1-E,b&&(E-=b/f)):g==="mirror"&&(w=a)),S=zi(0,1,E)*f}const k=v?{done:!1,value:c[0]}:w.next(S);l&&(k.value=l(k.value));let{done:C}=k;!v&&u!==null&&(C=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return P&&i!==void 0&&(k.value=Rm(c,this.options,i)),x&&x(k.value),P&&this.finish(),k}get duration(){const{resolved:t}=this;return t?Pi(t.calculatedDuration):0}get time(){return Pi(this.currentTime)}set time(t){t=ji(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Pi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=pW,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const gW=new Set(["opacity","clipPath","filter","transform"]);function vW(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:l="easeInOut",times:c}={}){const u={[t]:n};c&&(u.offset=c);const d=Vj(l,i);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const yW=U1(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Mp=10,bW=2e4;function xW(e){return ob(e.type)||e.type==="spring"||!Bj(e.ease)}function SW(e,t){const n=new yb({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&othis.onKeyframesResolved(a,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:l,name:c,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof o=="string"&&zp()&&wW(o)&&(o=kP[o]),xW(this.options)){const{onComplete:f,onUpdate:p,motionValue:h,element:g,...b}=this.options,x=SW(t,b);t=x.keyframes,t.length===1&&(t[1]=t[0]),r=x.duration,i=x.times,o=x.ease,a="keyframes"}const d=vW(l.owner.current,c,t,{...this.options,duration:r,times:i,ease:o});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(ZS(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(Rm(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Pi(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Pi(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ji(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Qn;const{animation:r}=n;ZS(r,t)}return Qn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:f,element:p,...h}=this.options,g=new yb({...h,keyframes:r,duration:i,type:o,ease:a,times:l,isGenerator:!0}),b=ji(this.time);u.setWithVelocity(g.sample(b-Mp).value,g.sample(b).value,Mp)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=n.owner.getProps();return yW()&&r&&gW.has(r)&&!c&&!u&&!i&&o!=="mirror"&&a!==0&&l!=="inertia"}}const kW={type:"spring",stiffness:500,damping:25,restSpeed:10},CW=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),jW={type:"keyframes",duration:.8},PW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_W=(e,{keyframes:t})=>t.length>2?jW:Ba.has(e)?e.startsWith("scale")?CW(t[1]):kW:PW;function TW({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const bb=(e,t,n,r={},i,o)=>a=>{const l=ib(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ji(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:p=>{t.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};TW(l)||(d={...d,..._W(e,d)}),d.duration&&(d.duration=ji(d.duration)),d.repeatDelay&&(d.repeatDelay=ji(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const p=Rm(d.keyframes,l);if(p!==void 0)return ut.update(()=>{d.onUpdate(p),d.onComplete()}),new KB([])}return!o&&m4.supports(d)?new m4(d):new yb(d)};function EW({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function CP(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(a=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in c){const p=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),h=c[f];if(h===void 0||d&&EW(d,f))continue;const g={delay:n,...ib(a||{},f)};let b=!1;if(window.MotionHandoffAnimation){const y=qj(e);if(y){const v=window.MotionHandoffAnimation(y,f,ut);v!==null&&(g.startTime=v,b=!0)}}mv(e,f),p.start(bb(f,p,h,e.shouldReduceMotion&&Gj.has(f)?{type:!1}:g,e,b));const x=p.animation;x&&u.push(x)}return l&&Promise.all(u).then(()=>{ut.update(()=>{l&&sV(e,l)})}),u}function Sv(e,t,n={}){var r;const i=Im(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(CP(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=o;return AW(e,t,d+u,f,p,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[u,d]=c==="beforeChildren"?[a,l]:[l,a];return u().then(()=>d())}else return Promise.all([a(),l(n.delay)])}function AW(e,t,n=0,r=0,i=1,o){const a=[],l=(e.variantChildren.size-1)*r,c=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort($W).forEach((u,d)=>{u.notify("AnimationStart",t),a.push(Sv(u,t,{...o,delay:n+c(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function $W(e,t){return e.sortNodePosition(t)}function zW(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Sv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Sv(e,t,n);else{const i=typeof t=="function"?Im(e,t,n.custom):t;r=Promise.all(CP(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const IW=G1.length;function jP(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?jP(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>zW(e,n,r)))}function NW(e){let t=LW(e),n=h4(),r=!0;const i=c=>(u,d)=>{var f;const p=Im(e,d,c==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(p){const{transition:h,transitionEnd:g,...b}=p;u={...u,...b,...g}}return u};function o(c){t=c(e)}function a(c){const{props:u}=e,d=jP(e.parent)||{},f=[],p=new Set;let h={},g=1/0;for(let x=0;xg&&w,T=!1;const E=Array.isArray(S)?S:[S];let F=E.reduce(i(y),{});k===!1&&(F={});const{prevResolvedValues:Y={}}=v,q={...Y,...F},M=R=>{j=!0,p.has(R)&&(T=!0,p.delete(R)),v.needsAnimating[R]=!0;const I=e.getValue(R);I&&(I.liveStyle=!1)};for(const R in q){const I=F[R],L=Y[R];if(h.hasOwnProperty(R))continue;let H=!1;dv(I)&&dv(L)?H=!Dj(I,L):H=I!==L,H?I!=null?M(R):p.add(R):I!==void 0&&p.has(R)?M(R):v.protectedKeys[R]=!0}v.prevProp=S,v.prevResolvedValues=F,v.isActive&&(h={...h,...F}),r&&e.blockInitialAnimation&&(j=!1),j&&(!(C&&P)||T)&&f.push(...E.map(R=>({animation:R,options:{type:y}})))}if(p.size){const x={};p.forEach(y=>{const v=e.getBaseTarget(y),S=e.getValue(y);S&&(S.liveStyle=!0),x[y]=v??null}),f.push({animation:x})}let b=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(f):Promise.resolve()}function l(c,u){var d;if(n[c].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var h;return(h=p.animationState)===null||h===void 0?void 0:h.setActive(c,u)}),n[c].isActive=u;const f=a(c);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=h4(),r=!0}}}function DW(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Dj(t,e):!1}function Ko(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function h4(){return{animate:Ko(!0),whileInView:Ko(),whileHover:Ko(),whileTap:Ko(),whileDrag:Ko(),whileFocus:Ko(),exit:Ko()}}class Lo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class OW extends Lo{constructor(t){super(t),t.animationState||(t.animationState=NW(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();$m(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let FW=0;class BW extends Lo{constructor(){super(...arguments),this.id=FW++}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}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const VW={animation:{Feature:OW},exit:{Feature:BW}};function bu(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Yu(e){return{point:{x:e.pageX,y:e.pageY}}}const WW=e=>t=>sb(t)&&e(t,Yu(t));function Mc(e,t,n,r){return bu(e,t,WW(n),r)}const g4=(e,t)=>Math.abs(e-t);function UW(e,t){const n=g4(e.x,t.x),r=g4(e.y,t.y);return Math.sqrt(n**2+r**2)}class PP{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=x0(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=UW(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:g}=f,{timestamp:b}=Zt;this.history.push({...g,timestamp:b});const{onStart:x,onMove:y}=this.handlers;p||(x&&x(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=b0(p,this.transformPagePoint),ut.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:g,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=x0(f.type==="pointercancel"?this.lastMoveEventInfo:b0(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,x),g&&g(f,x)},!sb(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Yu(t),l=b0(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=Zt;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,x0(l,this.history)),this.removeListeners=Xu(Mc(this.contextWindow,"pointermove",this.handlePointerMove),Mc(this.contextWindow,"pointerup",this.handlePointerUp),Mc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Po(this.updatePoint)}}function b0(e,t){return t?{point:t(e.point)}:e}function v4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function x0({point:e},t){return{point:e,delta:v4(e,_P(t)),offset:v4(e,HW(t)),velocity:GW(t,.1)}}function HW(e){return e[0]}function _P(e){return e[e.length-1]}function GW(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=_P(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ji(t)));)n--;if(!r)return{x:0,y:0};const o=Pi(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const TP=1e-4,KW=1-TP,qW=1+TP,EP=.01,XW=0-EP,YW=0+EP;function Jn(e){return e.max-e.min}function QW(e,t,n){return Math.abs(e-t)<=n}function y4(e,t,n,r=.5){e.origin=r,e.originPoint=yt(t.min,t.max,e.origin),e.scale=Jn(n)/Jn(t),e.translate=yt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=KW&&e.scale<=qW||isNaN(e.scale))&&(e.scale=1),(e.translate>=XW&&e.translate<=YW||isNaN(e.translate))&&(e.translate=0)}function Lc(e,t,n,r){y4(e.x,t.x,n.x,r?r.originX:void 0),y4(e.y,t.y,n.y,r?r.originY:void 0)}function b4(e,t,n){e.min=n.min+t.min,e.max=e.min+Jn(t)}function ZW(e,t,n){b4(e.x,t.x,n.x),b4(e.y,t.y,n.y)}function x4(e,t,n){e.min=t.min-n.min,e.max=e.min+Jn(t)}function Nc(e,t,n){x4(e.x,t.x,n.x),x4(e.y,t.y,n.y)}function JW(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?yt(n,e,r.max):Math.min(e,n)),e}function S4(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 eU(e,{top:t,left:n,bottom:r,right:i}){return{x:S4(e.x,n,i),y:S4(e.y,t,r)}}function w4(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ul(t.min,t.max-r,e.min):r>i&&(n=ul(e.min,e.max-i,t.min)),zi(0,1,n)}function rU(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 wv=.35;function iU(e=wv){return e===!1?e=0:e===!0&&(e=wv),{x:k4(e,"left","right"),y:k4(e,"top","bottom")}}function k4(e,t,n){return{min:C4(e,t),max:C4(e,n)}}function C4(e,t){return typeof e=="number"?e:e[t]||0}const j4=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ts=()=>({x:j4(),y:j4()}),P4=()=>({min:0,max:0}),At=()=>({x:P4(),y:P4()});function fr(e){return[e("x"),e("y")]}function AP({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function oU({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function aU(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 S0(e){return e===void 0||e===1}function kv({scale:e,scaleX:t,scaleY:n}){return!S0(e)||!S0(t)||!S0(n)}function Jo(e){return kv(e)||$P(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function $P(e){return _4(e.x)||_4(e.y)}function _4(e){return e&&e!=="0%"}function Lp(e,t,n){const r=e-n,i=t*r;return n+i}function T4(e,t,n,r,i){return i!==void 0&&(e=Lp(e,i,r)),Lp(e,n,r)+t}function Cv(e,t=0,n=1,r,i){e.min=T4(e.min,t,n,r,i),e.max=T4(e.max,t,n,r,i)}function zP(e,{x:t,y:n}){Cv(e.x,t.translate,t.scale,t.originPoint),Cv(e.y,n.translate,n.scale,n.originPoint)}const E4=.999999999999,A4=1.0000000000001;function sU(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let l=0;lE4&&(t.x=1),t.yE4&&(t.y=1)}function Es(e,t){e.min=e.min+t,e.max=e.max+t}function $4(e,t,n,r,i=.5){const o=yt(e.min,e.max,i);Cv(e,t,n,o,r)}function As(e,t){$4(e.x,t.x,t.scaleX,t.scale,t.originX),$4(e.y,t.y,t.scaleY,t.scale,t.originY)}function IP(e,t){return AP(aU(e.getBoundingClientRect(),t))}function lU(e,t,n){const r=IP(e,n),{scroll:i}=t;return i&&(Es(r.x,i.offset.x),Es(r.y,i.offset.y)),r}const RP=({current:e})=>e?e.ownerDocument.defaultView:null,cU=new WeakMap;class uU{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=At(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Yu(d).point)},o=(d,f)=>{const{drag:p,dragPropagation:h,onDragStart:g}=this.getProps();if(p&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=nV(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fr(x=>{let y=this.getAxisMotionValue(x).get()||0;if(ii.test(y)){const{projection:v}=this.visualElement;if(v&&v.layout){const S=v.layout.layoutBox[x];S&&(y=Jn(S)*(parseFloat(y)/100))}}this.originPoint[x]=y}),g&&ut.postRender(()=>g(d,f)),mv(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(d,f)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:g,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:x}=f;if(h&&this.currentDirection===null){this.currentDirection=dU(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),b&&b(d,f)},l=(d,f)=>this.stop(d,f),c=()=>fr(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new PP(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:RP(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&ut.postRender(()=>o(t,n))}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||!Kd(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=JW(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Ps(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=eU(i.layoutBox,n):this.constraints=!1,this.elastic=iU(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&fr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=rU(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ps(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=lU(r,i.root,this.visualElement.getTransformPagePoint());let a=tU(i.layout.layoutBox,o);if(n){const l=n(oU(a));this.hasMutatedConstraints=!!l,l&&(a=AP(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=fr(d=>{if(!Kd(d,n,this.currentDirection))return;let f=c&&c[d]||{};a&&(f={min:0,max:0});const p=i?200:1e6,h=i?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return mv(this.visualElement,t),r.start(bb(t,r,0,n,this.visualElement,!1))}stopAnimation(){fr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){fr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.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){fr(n=>{const{drag:r}=this.getProps();if(!Kd(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:l}=i.layout.layoutBox[n];o.set(t[n]-yt(a,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ps(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};fr(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();i[a]=nU({min:c,max:c},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),fr(a=>{if(!Kd(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(yt(c,u,i[a]))})}addListeners(){if(!this.visualElement.current)return;cU.set(this.visualElement,this);const t=this.visualElement.current,n=Mc(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Ps(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ut.read(r);const a=bu(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(fr(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=wv,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:l}}}function Kd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function dU(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class fU extends Lo{constructor(t){super(t),this.removeGroupControls=Qn,this.removeListeners=Qn,this.controls=new uU(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qn}unmount(){this.removeGroupControls(),this.removeListeners()}}const z4=e=>(t,n)=>{e&&ut.postRender(()=>e(t,n))};class pU extends Lo{constructor(){super(...arguments),this.removePointerDownListener=Qn}onPointerDown(t){this.session=new PP(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:RP(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:z4(t),onStart:z4(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&ut.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=Mc(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 Of={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function I4(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ql={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=I4(e,t.target.x),r=I4(e,t.target.y);return`${n}% ${r}%`}},mU={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=_o.parse(e);if(i.length>5)return r;const o=_o.createTransformer(e),a=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;i[0+a]/=l,i[1+a]/=c;const u=yt(l,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=u),typeof i[3+a]=="number"&&(i[3+a]/=u),o(i)}};class hU extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;MB(gU),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Of.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||ut.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),q1.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;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 MP(e){const[t,n]=V1(),r=m.useContext(O1);return s.jsx(hU,{...e,layoutGroup:r,switchLayoutGroup:m.useContext(jj),isPresent:t,safeToRemove:n})}const gU={borderRadius:{...Ql,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ql,borderTopRightRadius:Ql,borderBottomLeftRadius:Ql,borderBottomRightRadius:Ql,boxShadow:mU};function vU(e,t,n){const r=vn(e)?e:vu(e);return r.start(bb("",r,t,n)),r.animation}function yU(e){return e instanceof SVGElement&&e.tagName!=="svg"}const bU=(e,t)=>e.depth-t.depth;class xU{constructor(){this.children=[],this.isDirty=!1}add(t){lb(this.children,t),this.isDirty=!0}remove(t){cb(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(bU),this.isDirty=!1,this.children.forEach(t)}}function SU(e,t){const n=oi.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Po(r),e(o-t))};return ut.read(r,!0),()=>Po(r)}const LP=["TopLeft","TopRight","BottomLeft","BottomRight"],wU=LP.length,R4=e=>typeof e=="string"?parseFloat(e):e,M4=e=>typeof e=="number"||Se.test(e);function kU(e,t,n,r,i,o){i?(e.opacity=yt(0,n.opacity!==void 0?n.opacity:1,CU(r)),e.opacityExit=yt(t.opacity!==void 0?t.opacity:1,0,jU(r))):o&&(e.opacity=yt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;art?1:n(ul(e,t,r))}function N4(e,t){e.min=t.min,e.max=t.max}function ur(e,t){N4(e.x,t.x),N4(e.y,t.y)}function D4(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function O4(e,t,n,r,i){return e-=t,e=Lp(e,1/n,r),i!==void 0&&(e=Lp(e,1/i,r)),e}function PU(e,t=0,n=1,r=.5,i,o=e,a=e){if(ii.test(t)&&(t=parseFloat(t),t=yt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=yt(o.min,o.max,r);e===o&&(l-=t),e.min=O4(e.min,t,n,l,i),e.max=O4(e.max,t,n,l,i)}function F4(e,t,[n,r,i],o,a){PU(e,t[n],t[r],t[i],t.scale,o,a)}const _U=["x","scaleX","originX"],TU=["y","scaleY","originY"];function B4(e,t,n,r){F4(e.x,t,_U,n?n.x:void 0,r?r.x:void 0),F4(e.y,t,TU,n?n.y:void 0,r?r.y:void 0)}function V4(e){return e.translate===0&&e.scale===1}function DP(e){return V4(e.x)&&V4(e.y)}function W4(e,t){return e.min===t.min&&e.max===t.max}function EU(e,t){return W4(e.x,t.x)&&W4(e.y,t.y)}function U4(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function OP(e,t){return U4(e.x,t.x)&&U4(e.y,t.y)}function H4(e){return Jn(e.x)/Jn(e.y)}function G4(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class AU{constructor(){this.members=[]}add(t){lb(this.members,t),t.scheduleRender()}remove(t){if(cb(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 $U(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:p,skewX:h,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),h&&(r+=`skewX(${h}deg) `),g&&(r+=`skewY(${g}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const ea={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},pc=typeof window<"u"&&window.MotionDebug!==void 0,w0=["","X","Y","Z"],zU={visibility:"hidden"},K4=1e3;let IU=0;function k0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function FP(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=qj(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ut,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&FP(r)}function BP({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},l=t==null?void 0:t()){this.id=IU++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,pc&&(ea.totalNodes=ea.resolvedTargetDeltas=ea.recalculatedProjection=0),this.nodes.forEach(LU),this.nodes.forEach(BU),this.nodes.forEach(VU),this.nodes.forEach(NU),pc&&window.MotionDebug.record(ea)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;cthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=SU(p,250),Of.hasAnimatedSinceResize&&(Of.hasAnimatedSinceResize=!1,this.nodes.forEach(X4))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||d.getDefaultTransition()||KU,{onLayoutAnimationStart:x,onLayoutAnimationComplete:y}=d.getProps(),v=!this.targetLayout||!OP(this.targetLayout,g)||h,S=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||p&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,S);const w={...ib(b,"layout"),onPlay:x,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else p||X4(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Po(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(WU),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&FP(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c{const k=w/1e3;Y4(f.x,a.x,k),Y4(f.y,a.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Nc(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),HU(this.relativeTarget,this.relativeTargetOrigin,p,k),S&&EU(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=At()),ur(S,this.relativeTarget)),b&&(this.animationValues=d,kU(d,u,this.latestValues,k,v,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Po(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ut.update(()=>{Of.hasAnimatedSinceResize=!0,this.currentAnimation=vU(0,K4,{...a,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(K4),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=a;if(!(!l||!c||!u)){if(this!==a&&this.layout&&u&&VP(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||At();const f=Jn(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const p=Jn(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+p}ur(l,c),As(l,d),Lc(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new AU),this.sharedNodes.get(a).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:l}=this.options;return l?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:l}=this.options;return l?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&k0("z",a,u,this.animationValues);for(let d=0;d{var l;return(l=a.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(q4),this.root.sharedNodes.clear()}}}function RU(e){e.updateLayout()}function MU(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?fr(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=Jn(p);p.min=r[f].min,p.max=p.min+h}):VP(o,n.layoutBox,r)&&fr(f=>{const p=a?n.measuredBox[f]:n.layoutBox[f],h=Jn(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const l=Ts();Lc(l,r,n.layoutBox);const c=Ts();a?Lc(c,e.applyTransform(i,!0),n.measuredBox):Lc(c,r,n.layoutBox);const u=!DP(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const g=At();Nc(g,n.layoutBox,p.layoutBox);const b=At();Nc(b,r,h.layoutBox),OP(g,b)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function LU(e){pc&&ea.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function NU(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function DU(e){e.clearSnapshot()}function q4(e){e.clearMeasurements()}function OU(e){e.isLayoutDirty=!1}function FU(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function X4(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function BU(e){e.resolveTargetDelta()}function VU(e){e.calcProjection()}function WU(e){e.resetSkewAndRotation()}function UU(e){e.removeLeadSnapshot()}function Y4(e,t,n){e.translate=yt(t.translate,0,n),e.scale=yt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Q4(e,t,n,r){e.min=yt(t.min,n.min,r),e.max=yt(t.max,n.max,r)}function HU(e,t,n,r){Q4(e.x,t.x,n.x,r),Q4(e.y,t.y,n.y,r)}function GU(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const KU={duration:.45,ease:[.4,0,.1,1]},Z4=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),J4=Z4("applewebkit/")&&!Z4("chrome/")?Math.round:Qn;function ew(e){e.min=J4(e.min),e.max=J4(e.max)}function qU(e){ew(e.x),ew(e.y)}function VP(e,t,n){return e==="position"||e==="preserve-aspect"&&!QW(H4(t),H4(n),.2)}function XU(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const YU=BP({attachResizeListener:(e,t)=>bu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),C0={current:void 0},WP=BP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!C0.current){const e=new YU({});e.mount(window),e.setOptions({layoutScroll:!0}),C0.current=e}return C0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),QU={pan:{Feature:pU},drag:{Feature:fU,ProjectionNode:WP,MeasureLayout:MP}};function tw(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&&ut.postRender(()=>o(t,Yu(t)))}class ZU extends Lo{mount(){const{current:t}=this.node;t&&(this.unmount=QB(t,n=>(tw(this.node,n,"Start"),r=>tw(this.node,r,"End"))))}unmount(){}}class JU extends Lo{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=Xu(bu(this.node.current,"focus",()=>this.onFocus()),bu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function nw(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&ut.postRender(()=>o(t,Yu(t)))}class eH extends Lo{mount(){const{current:t}=this.node;t&&(this.unmount=tV(t,n=>(nw(this.node,n,"Start"),(r,{success:i})=>nw(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const jv=new WeakMap,j0=new WeakMap,tH=e=>{const t=jv.get(e.target);t&&t(e)},nH=e=>{e.forEach(tH)};function rH({root:e,...t}){const n=e||document;j0.has(n)||j0.set(n,{});const r=j0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(nH,{root:e,...t})),r[i]}function iH(e,t,n){const r=rH(t);return jv.set(e,n),r.observe(e),()=>{jv.delete(e),r.unobserve(e)}}const oH={some:0,all:1};class aH extends Lo{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,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:oH[i]},l=c=>{const{isIntersecting:u}=c;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:d,onViewportLeave:f}=this.node.getProps(),p=u?d:f;p&&p(c)};return iH(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(sH(t,n))&&this.startObserver()}unmount(){}}function sH({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const lH={inView:{Feature:aH},tap:{Feature:eH},focus:{Feature:JU},hover:{Feature:ZU}},cH={layout:{ProjectionNode:WP,MeasureLayout:MP}},Pv={current:null},UP={current:!1};function uH(){if(UP.current=!0,!!W1)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Pv.current=e.matches;e.addListener(t),t()}else Pv.current=!1}const dH=[...hP,mn,_o],fH=e=>dH.find(mP(e)),rw=new WeakMap;function pH(e,t,n){for(const r in t){const i=t[r],o=n[r];if(vn(i))e.addValue(r,i);else if(vn(o))e.addValue(r,vu(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,vu(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const iw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class mH{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=gb,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=oi.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),UP.current||uH(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Pv.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){rw.delete(this.current),this.projection&&this.projection.unmount(),Po(this.notifyUpdate),Po(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Ba.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&ut.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),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 dl){const n=dl[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):At()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=vu(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(fP(i)||rP(i))?i=parseFloat(i):!fH(i)&&_o.test(n)&&(i=cP(t,n)),this.setBaseTarget(t,vn(i)?i.get():i)),vn(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Y1(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!vn(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ub),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class HP extends mH{constructor(){super(...arguments),this.KeyframeResolver=gP}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;vn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function hH(e){return window.getComputedStyle(e)}class gH extends HP{constructor(){super(...arguments),this.type="html",this.renderInstance=zj}readValueFromInstance(t,n){if(Ba.has(n)){const r=hb(n);return r&&r.default||0}else{const r=hH(t),i=(Ej(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return IP(t,n)}build(t,n,r){J1(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return rb(t,n,r)}}class vH extends HP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=At}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ba.has(n)){const r=hb(n);return r&&r.default||0}return n=Ij.has(n)?n:K1(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Lj(t,n,r)}build(t,n,r){eb(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Rj(t,n,r,i)}mount(t){this.isSVGTag=nb(t.tagName),super.mount(t)}}const yH=(e,t)=>X1(e)?new vH(t):new gH(t,{allowProjection:e!==m.Fragment}),bH=UB({...VW,...lH,...QU,...cH},yH),ir=oB(bH),xH=(e,t)=>e.find(n=>n.id===t);function ow(e,t){const n=GP(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function GP(e,t){for(const[n,r]of Object.entries(e))if(xH(r,t))return n}function SH(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function wH(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,o=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",a=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:i,right:o,left:a}}var kH=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,CH=rj(function(e){return kH.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),jH=CH,PH=function(t){return t!=="theme"},aw=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?jH:PH},sw=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},_H=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return z1(n,r,i),fj(function(){return I1(n,r,i)}),null},TH=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var l=sw(t,n,r),c=l||aw(i),u=!c("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var h=d.length,g=1;gt=>{const{theme:n,css:r,__css:i,sx:o,...a}=t,[l]=pz(a,sI),c=gn(e,t),u=H$({},i,c,h1(l),o),d=j6(u)(t.theme);return r?[d,r]:d};function P0(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=zH);const i=RH({baseStyle:n}),o=IH(e,r)(i);return m.forwardRef(function(c,u){const{children:d,...f}=c,{colorMode:p,forced:h}=Hu(),g=h?p:void 0;return m.createElement(o,{ref:u,"data-theme":g,...f},d)})}function MH(){const e=new Map;return new Proxy(P0,{apply(t,n,r){return P0(...r)},get(t,n){return e.has(n)||e.set(n,P0(n)),e.get(n)}})}const O=MH(),LH={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},KP=m.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:a="bottom",duration:l=5e3,containerStyle:c,motionVariants:u=LH,toastSpacing:d="0.5rem"}=e,[f,p]=m.useState(l),h=YF();lu(()=>{h||r==null||r()},[h]),lu(()=>{p(l)},[l]);const g=()=>p(null),b=()=>p(l),x=()=>{h&&i()};m.useEffect(()=>{h&&o&&i()},[h,o,i]),jz(x,f);const y=m.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...c}),[c,d]),v=m.useMemo(()=>SH(a),[a]);return s.jsx(ir.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:g,onHoverEnd:b,custom:{position:a},style:v,children:s.jsx(O.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:y,children:gn(n,{id:t,onClose:x})})})});KP.displayName="ToastComponent";function V(e){return m.forwardRef(e)}var NH=typeof Element<"u",DH=typeof Map=="function",OH=typeof Set=="function",FH=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ff(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ff(e[r],t[r]))return!1;return!0}var o;if(DH&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Ff(r.value[1],t.get(r.value[0])))return!1;return!0}if(OH&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(FH&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(NH&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Ff(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var BH=function(t,n){try{return Ff(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const VH=vy(BH);function Di(){const e=m.useContext(cl);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function qP(){const e=Hu(),t=Di();return{...e,theme:t}}function WH(e,t,n){if(t==null)return t;const r=i=>{var o,a;return(a=(o=e.__cssMap)==null?void 0:o[i])==null?void 0:a.value};return r(t)??r(n)??n}function UH(e,t,n){const r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return o=>{const a=i.filter(Boolean),l=r.map((c,u)=>{const d=`${e}.${c}`;return WH(o,d,a[u]??c)});return Array.isArray(t)?l:l[0]}}function HH(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0&&t!=="children"&&!m.isValidElement(n)))}function XP(e,t={}){const{styleConfig:n,...r}=t,{theme:i,colorMode:o}=qP(),a=e?d6(i,`components.${e}`):void 0,l=n||a,c=gr({theme:i,colorMode:o},(l==null?void 0:l.defaultProps)??{},HH(r),(d,f)=>d?void 0:f),u=m.useRef({});if(l){const f=yI(l)(c);VH(u.current,f)||(u.current=f)}return u.current}function or(e,t={}){return XP(e,t)}function et(e,t={}){return XP(e,t)}const lw={path:s.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[s.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),s.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),s.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},wt=V((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:o=!1,children:a,className:l,__css:c,...u}=e,d=W("chakra-icon",l),f=or("Icon",e),p={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...c,...f},h={ref:t,focusable:o,className:d,__css:p},g=r??lw.viewBox;if(n&&typeof n!="string")return s.jsx(O.svg,{as:n,...h,...u});const b=a??lw.path;return s.jsx(O.svg,{verticalAlign:"middle",viewBox:g,...h,...u,children:b})});wt.displayName="Icon";function GH(e){return s.jsx(wt,{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function KH(e){return s.jsx(wt,{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function cw(e){return s.jsx(wt,{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const qH=Uu({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),ln=V((e,t)=>{const n=or("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:a="transparent",className:l,...c}=Ie(e),u=W("chakra-spinner",l),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:a,borderLeftColor:a,animation:`${qH} ${o} linear infinite`,...n};return s.jsx(O.div,{ref:t,__css:d,className:u,...c,children:r&&s.jsx(O.span,{srOnly:!0,children:r})})});ln.displayName="Spinner";const[XH,xb]=Te({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[YH,Sb]=Te({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),YP={info:{icon:KH,colorScheme:"blue"},warning:{icon:cw,colorScheme:"orange"},success:{icon:GH,colorScheme:"green"},error:{icon:cw,colorScheme:"red"},loading:{icon:ln,colorScheme:"blue"}};function QH(e){return YP[e].colorScheme}function ZH(e){return YP[e].icon}const QP=V(function(t,n){const{status:r="info",addRole:i=!0,...o}=Ie(t),a=t.colorScheme??QH(r),l=et("Alert",{...t,colorScheme:a}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return s.jsx(XH,{value:{status:r},children:s.jsx(YH,{value:l,children:s.jsx(O.div,{"data-status":r,role:i?"alert":void 0,ref:n,...o,className:W("chakra-alert",t.className),__css:c})})})});QP.displayName="Alert";function ZP(e){const{status:t}=xb(),n=ZH(t),r=Sb(),i=t==="loading"?r.spinner:r.icon;return s.jsx(O.span,{display:"inherit","data-status":t,...e,className:W("chakra-alert__icon",e.className),__css:i,children:e.children||s.jsx(n,{h:"100%",w:"100%"})})}ZP.displayName="AlertIcon";const JP=V(function(t,n){const r=Sb(),{status:i}=xb();return s.jsx(O.div,{ref:n,"data-status":i,...t,className:W("chakra-alert__title",t.className),__css:r.title})});JP.displayName="AlertTitle";const e_=V(function(t,n){const{status:r}=xb(),i=Sb(),o={display:"inline",...i.description};return s.jsx(O.div,{ref:n,"data-status":r,...t,className:W("chakra-alert__desc",t.className),__css:o})});e_.displayName="AlertDescription";function JH(e){return s.jsx(wt,{focusable:"false","aria-hidden":!0,...e,children:s.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const Mm=V(function(t,n){const r=or("CloseButton",t),{children:i,isDisabled:o,__css:a,...l}=Ie(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return s.jsx(O.button,{type:"button","aria-label":"Close",ref:n,disabled:o,__css:{...c,...r,...a},...l,children:i||s.jsx(JH,{width:"1em",height:"1em"})})});Mm.displayName="CloseButton";const eG=e=>{const{status:t,variant:n="solid",id:r,title:i,isClosable:o,onClose:a,description:l,colorScheme:c,icon:u}=e,d=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return s.jsxs(QP,{addRole:!1,status:t,variant:n,id:d==null?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:c,children:[s.jsx(ZP,{children:u}),s.jsxs(O.div,{flex:"1",maxWidth:"100%",children:[i&&s.jsx(JP,{id:d==null?void 0:d.title,children:i}),l&&s.jsx(e_,{id:d==null?void 0:d.description,display:"block",children:l})]}),o&&s.jsx(Mm,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function t_(e={}){const{render:t,toastComponent:n=eG}=e;return i=>typeof t=="function"?t({...i,...e}):s.jsx(n,{...i,...e})}const tG={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Xr=nG(tG);function nG(e){let t=e;const n=new Set,r=i=>{t=i(t),n.forEach(o=>o())};return{getState:()=>t,subscribe:i=>(n.add(i),()=>{r(()=>e),n.delete(i)}),removeToast:(i,o)=>{r(a=>({...a,[o]:a[o].filter(l=>l.id!=i)}))},notify:(i,o)=>{const a=rG(i,o),{position:l,id:c}=a;return r(u=>{const f=l.includes("top")?[a,...u[l]??[]]:[...u[l]??[],a];return{...u,[l]:f}}),c},update:(i,o)=>{i&&r(a=>{const l={...a},{position:c,index:u}=ow(l,i);return c&&u!==-1&&(l[c][u]={...l[c][u],...o,message:t_(o)}),l})},closeAll:({positions:i}={})=>{r(o=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((c,u)=>(c[u]=o[u].map(d=>({...d,requestClose:!0})),c),{...o}))},close:i=>{r(o=>{const a=GP(o,i);return a?{...o,[a]:o[a].map(l=>l.id==i?{...l,requestClose:!0}:l)}:o})},isActive:i=>!!ow(Xr.getState(),i).position}}let uw=0;function rG(e,t={}){uw+=1;const n=t.id??uw,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Xr.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[n_,iG]=Te({strict:!1,name:"PortalContext"}),wb="chakra-portal",oG=".chakra-portal",aG=e=>s.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),sG=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=m.useState(null),o=m.useRef(null),[,a]=m.useState({});m.useEffect(()=>a({}),[]);const l=iG(),c=WF();ti(()=>{if(!r)return;const d=r.ownerDocument,f=t?l??d.body:d.body;if(!f)return;o.current=d.createElement("div"),o.current.className=wb,f.appendChild(o.current),a({});const p=o.current;return()=>{f.contains(p)&&f.removeChild(p)}},[r]);const u=c!=null&&c.zIndex?s.jsx(aG,{zIndex:c==null?void 0:c.zIndex,children:n}):n;return o.current?f1.createPortal(s.jsx(n_,{value:o.current,children:u}),o.current):s.jsx("span",{ref:d=>{d&&i(d)}})},lG=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,i=n.current,o=i??(typeof window<"u"?document.body:void 0),a=m.useMemo(()=>{const c=i==null?void 0:i.ownerDocument.createElement("div");return c&&(c.className=wb),c},[i]),[,l]=m.useState({});return ti(()=>l({}),[]),ti(()=>{if(!(!a||!o))return o.appendChild(a),()=>{o.removeChild(a)}},[a,o]),o&&a?f1.createPortal(s.jsx(n_,{value:r?a:null,children:t}),a):null};function El(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?s.jsx(lG,{containerRef:n,...r}):s.jsx(sG,{...r})}El.className=wb;El.selector=oG;El.displayName="Portal";const[cG,uG]=Te({name:"ToastOptionsContext",strict:!1}),dG=e=>{const t=m.useSyncExternalStore(Xr.subscribe,Xr.getState,Xr.getState),{motionVariants:n,component:r=KP,portalProps:i,animatePresenceProps:o}=e,l=Object.keys(t).map(c=>{const u=t[c];return s.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${c}`,"aria-hidden":!u.length,id:`chakra-toast-manager-${c}`,style:wH(c),children:s.jsx(Ni,{...o,initial:!1,children:u.map(d=>s.jsx(r,{motionVariants:n,...d},d.id))})},c)});return s.jsx(El,{...i,children:l})},fG=e=>function({children:n,theme:r=e,toastOptions:i,...o}){return s.jsxs(HF,{theme:r,...o,children:[s.jsx(cG,{value:i==null?void 0:i.defaultOptions,children:n}),s.jsx(dG,{...i})]})},pG=fG(la);function dw(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}const mG=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function fw(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function pw(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}const _0=typeof window<"u"?m.useLayoutEffect:m.useEffect,mw=e=>e;var hG=Object.defineProperty,gG=(e,t,n)=>t in e?hG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ct=(e,t,n)=>(gG(e,typeof t!="symbol"?t+"":t,n),n);class vG{constructor(){Ct(this,"descendants",new Map),Ct(this,"register",t=>{if(t!=null)return mG(t)?this.registerNode(t):n=>{this.registerNode(n,t)}}),Ct(this,"unregister",t=>{this.descendants.delete(t);const n=dw(Array.from(this.descendants.keys()));this.assignIndex(n)}),Ct(this,"destroy",()=>{this.descendants.clear()}),Ct(this,"assignIndex",t=>{this.descendants.forEach(n=>{const r=t.indexOf(n.node);n.index=r,n.node.dataset.index=n.index.toString()})}),Ct(this,"count",()=>this.descendants.size),Ct(this,"enabledCount",()=>this.enabledValues().length),Ct(this,"values",()=>Array.from(this.descendants.values()).sort((n,r)=>n.index-r.index)),Ct(this,"enabledValues",()=>this.values().filter(t=>!t.disabled)),Ct(this,"item",t=>{if(this.count()!==0)return this.values()[t]}),Ct(this,"enabledItem",t=>{if(this.enabledCount()!==0)return this.enabledValues()[t]}),Ct(this,"first",()=>this.item(0)),Ct(this,"firstEnabled",()=>this.enabledItem(0)),Ct(this,"last",()=>this.item(this.descendants.size-1)),Ct(this,"lastEnabled",()=>{const t=this.enabledValues().length-1;return this.enabledItem(t)}),Ct(this,"indexOf",t=>{var n;return t?((n=this.descendants.get(t))==null?void 0:n.index)??-1:-1}),Ct(this,"enabledIndexOf",t=>t==null?-1:this.enabledValues().findIndex(n=>n.node.isSameNode(t))),Ct(this,"next",(t,n=!0)=>{const r=fw(t,this.count(),n);return this.item(r)}),Ct(this,"nextEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const i=this.enabledIndexOf(r.node),o=fw(i,this.enabledCount(),n);return this.enabledItem(o)}),Ct(this,"prev",(t,n=!0)=>{const r=pw(t,this.count()-1,n);return this.item(r)}),Ct(this,"prevEnabled",(t,n=!0)=>{const r=this.item(t);if(!r)return;const i=this.enabledIndexOf(r.node),o=pw(i,this.enabledCount()-1,n);return this.enabledItem(o)}),Ct(this,"registerNode",(t,n)=>{if(!t||this.descendants.has(t))return;const r=Array.from(this.descendants.keys()).concat(t),i=dw(r);n!=null&&n.disabled&&(n.disabled=!!n.disabled);const o={node:t,index:-1,...n};this.descendants.set(t,o),this.assignIndex(i)})}}function yG(){const[e,t]=Te({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{const i=m.useRef(new vG);return _0(()=>()=>i.current.destroy()),i.current},i=>{const o=t(),[a,l]=m.useState(-1),c=m.useRef(null);_0(()=>()=>{c.current&&o.unregister(c.current)},[]),_0(()=>{if(!c.current)return;const d=Number(c.current.dataset.index);a!=d&&!Number.isNaN(d)&&l(d)});const u=mw(i?o.register(i):o.register);return{descendants:o,index:a,enabledIndex:o.enabledIndexOf(c.current),register:_t(u,c)}}]}const Si={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Zl={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function Tv(e){switch((e==null?void 0:e.direction)??"right"){case"right":return Zl.slideRight;case"left":return Zl.slideLeft;case"bottom":return Zl.slideDown;case"top":return Zl.slideUp;default:return Zl.slideRight}}const ba={enter:{duration:.2,ease:Si.easeOut},exit:{duration:.1,ease:Si.easeIn}},Lr={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},bG=e=>e!=null&&parseInt(e.toString(),10)>0,hw={exit:{height:{duration:.2,ease:Si.ease},opacity:{duration:.3,ease:Si.ease}},enter:{height:{duration:.3,ease:Si.ease},opacity:{duration:.4,ease:Si.ease}}},xG={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:i})=>({...e&&{opacity:bG(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(n==null?void 0:n.exit)??Lr.exit(hw.exit,i)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:i})=>({...e&&{opacity:1},height:t,transitionEnd:r==null?void 0:r.enter,transition:(n==null?void 0:n.enter)??Lr.enter(hw.enter,i)})},Al=m.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:i=!0,startingHeight:o=0,endingHeight:a="auto",style:l,className:c,transition:u,transitionEnd:d,animatePresenceProps:f,...p}=e,[h,g]=m.useState(!1);m.useEffect(()=>{const S=setTimeout(()=>{g(!0)});return()=>clearTimeout(S)},[]);const b=parseFloat(o.toString())>0,x={startingHeight:o,endingHeight:a,animateOpacity:i,transition:h?u:{enter:{duration:0}},transitionEnd:{enter:d==null?void 0:d.enter,exit:r?d==null?void 0:d.exit:{...d==null?void 0:d.exit,display:b?"block":"none"}}},y=r?n:!0,v=n||r?"enter":"exit";return s.jsx(Ni,{...f,initial:!1,custom:x,children:y&&s.jsx(ir.div,{ref:t,...p,className:W("chakra-collapse",c),style:{overflow:"hidden",display:"block",...l},custom:x,variants:xG,initial:r?"exit":!1,animate:v,exit:"exit"})})});Al.displayName="Collapse";const[SG,r_]=Te({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:""});function wG(e){const t=e.trim().split(" "),n=t[0]??"",r=t.length>1?t[t.length-1]:"";return n&&r?`${n.charAt(0)}${r.charAt(0)}`:n.charAt(0)}function i_(e){const{name:t,getInitials:n,...r}=e,i=r_();return s.jsx(O.div,{role:"img","aria-label":t,...r,__css:i.label,children:t?n==null?void 0:n(t):null})}i_.displayName="AvatarName";const o_=e=>s.jsxs(O.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[s.jsx("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),s.jsx("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]});function a_(e){const{loading:t,src:n,srcSet:r,onLoad:i,onError:o,crossOrigin:a,sizes:l,ignoreFallback:c}=e,[u,d]=m.useState("pending");m.useEffect(()=>{d(n?"loading":"pending")},[n]);const f=m.useRef(null),p=m.useCallback(()=>{if(!n)return;h();const g=new Image;g.src=n,a&&(g.crossOrigin=a),r&&(g.srcset=r),l&&(g.sizes=l),t&&(g.loading=t),g.onload=b=>{h(),d("loaded"),i==null||i(b)},g.onerror=b=>{h(),d("failed"),o==null||o(b)},f.current=g},[n,a,r,l,i,o,t]),h=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return ti(()=>{if(!c)return u==="loading"&&p(),()=>{h()}},[u,p,c]),c?"loaded":u}const kG=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function s_(e){const{src:t,srcSet:n,onError:r,onLoad:i,getInitials:o,name:a,borderRadius:l,loading:c,iconLabel:u,icon:d=s.jsx(o_,{}),ignoreFallback:f,referrerPolicy:p,crossOrigin:h}=e,b=a_({src:t,onError:r,crossOrigin:h,ignoreFallback:f})==="loaded";return!t||!b?a?s.jsx(i_,{className:"chakra-avatar__initials",getInitials:o,name:a}):m.cloneElement(d,{role:"img","aria-label":u}):s.jsx(O.img,{src:t,srcSet:n,alt:a??u,onLoad:i,referrerPolicy:p,crossOrigin:h??void 0,className:"chakra-avatar__img",loading:c,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:l}})}s_.displayName="AvatarImage";const CG={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},kb=V((e,t)=>{const n=et("Avatar",e),[r,i]=m.useState(!1),{src:o,srcSet:a,name:l,showBorder:c,borderRadius:u="full",onError:d,onLoad:f,getInitials:p=wG,icon:h=s.jsx(o_,{}),iconLabel:g=" avatar",loading:b,children:x,borderColor:y,ignoreFallback:v,crossOrigin:S,referrerPolicy:w,...k}=Ie(e),C={borderRadius:u,borderWidth:c?"2px":void 0,...CG,...n.container};return y&&(C.borderColor=y),s.jsx(O.span,{ref:t,...k,className:W("chakra-avatar",e.className),"data-loaded":me(r),__css:C,children:s.jsxs(SG,{value:n,children:[s.jsx(s_,{src:o,srcSet:a,loading:b,onLoad:fe(f,()=>{i(!0)}),onError:d,getInitials:p,name:l,borderRadius:u,icon:h,iconLabel:g,ignoreFallback:v,crossOrigin:S,referrerPolicy:w}),x]})})});kb.displayName="Avatar";const jG={"top-start":{top:"0",insetStart:"0",transform:"translate(-25%, -25%)"},"top-end":{top:"0",insetEnd:"0",transform:"translate(25%, -25%)"},"bottom-start":{bottom:"0",insetStart:"0",transform:"translate(-25%, 25%)"},"bottom-end":{bottom:"0",insetEnd:"0",transform:"translate(25%, 25%)"}},l_=V(function(t,n){const{placement:r="bottom-end",className:i,...o}=t,a=r_(),c={position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",...jG[r],...a.badge};return s.jsx(O.div,{ref:n,...o,className:W("chakra-avatar__badge",i),__css:c})});l_.displayName="AvatarBadge";const on=V(function(t,n){const r=or("Badge",t),{className:i,...o}=Ie(t);return s.jsx(O.span,{ref:n,className:W("chakra-badge",t.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});on.displayName="Badge";const ae=O("div");ae.displayName="Box";const[PG,_G]=Te({strict:!1,name:"ButtonGroupContext"});function mc(e){const{children:t,className:n,...r}=e,i=m.isValidElement(t)?m.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=W("chakra-button__icon",n);return s.jsx(O.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:o,children:i})}mc.displayName="ButtonIcon";function Ev(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=s.jsx(ln,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:a,...l}=e,c=W("chakra-button__spinner",o),u=n==="start"?"marginEnd":"marginStart",d=m.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,u,r]);return s.jsx(O.div,{className:c,...l,__css:d,children:i})}Ev.displayName="ButtonSpinner";function TG(e){const[t,n]=m.useState(!e);return{ref:m.useCallback(o=>{o&&n(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}const he=V((e,t)=>{const n=_G(),r=or("Button",{...n,...e}),{isDisabled:i=n==null?void 0:n.isDisabled,isLoading:o,isActive:a,children:l,leftIcon:c,rightIcon:u,loadingText:d,iconSpacing:f="0.5rem",type:p,spinner:h,spinnerPlacement:g="start",className:b,as:x,shouldWrapChildren:y,...v}=Ie(e),S=m.useMemo(()=>{const P={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:P}}},[r,n]),{ref:w,type:k}=TG(x),C={rightIcon:u,leftIcon:c,iconSpacing:f,children:l,shouldWrapChildren:y};return s.jsxs(O.button,{disabled:i||o,ref:v1(t,w),as:x,type:p??k,"data-active":me(a),"data-loading":me(o),__css:S,className:W("chakra-button",b),...v,children:[o&&g==="start"&&s.jsx(Ev,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:h}),o?d||s.jsx(O.span,{opacity:0,children:s.jsx(gw,{...C})}):s.jsx(gw,{...C}),o&&g==="end"&&s.jsx(Ev,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:h})]})});he.displayName="Button";function gw(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i,shouldWrapChildren:o}=e;return o?s.jsxs("span",{style:{display:"contents"},children:[t&&s.jsx(mc,{marginEnd:i,children:t}),r,n&&s.jsx(mc,{marginStart:i,children:n})]}):s.jsxs(s.Fragment,{children:[t&&s.jsx(mc,{marginEnd:i,children:t}),r,n&&s.jsx(mc,{marginStart:i,children:n})]})}const EG={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},AG={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},Lm=V(function(t,n){const{size:r,colorScheme:i,variant:o,className:a,spacing:l="0.5rem",isAttached:c,isDisabled:u,orientation:d="horizontal",...f}=t,p=W("chakra-button__group",a),h=m.useMemo(()=>({size:r,colorScheme:i,variant:o,isDisabled:u}),[r,i,o,u]);let g={display:"inline-flex",...c?EG[d]:AG[d](l)};const b=d==="vertical";return s.jsx(PG,{value:h,children:s.jsx(O.div,{ref:n,role:"group",__css:g,className:p,"data-attached":c?"":void 0,"data-orientation":d,flexDir:b?"column":void 0,...f})})});Lm.displayName="ButtonGroup";const Cn=V((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":o,...a}=e,l=n||r,c=m.isValidElement(l)?m.cloneElement(l,{"aria-hidden":!0,focusable:!1}):null;return s.jsx(he,{px:"0",py:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...a,children:c})});Cn.displayName="IconButton";const[$G,zG]=Or("Card"),Cb=V(function(t,n){const{className:r,children:i,direction:o="column",justify:a,align:l,...c}=Ie(t),u=et("Card",t);return s.jsx(O.div,{ref:n,className:W("chakra-card",r),__css:{display:"flex",flexDirection:o,justifyContent:a,alignItems:l,position:"relative",minWidth:0,wordWrap:"break-word",...u.container},...c,children:s.jsx($G,{value:u,children:i})})}),jb=V(function(t,n){const{className:r,...i}=t,o=zG();return s.jsx(O.div,{ref:n,className:W("chakra-card__body",r),__css:o.body,...i})}),c_=O("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});c_.displayName="Center";const IG={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};V(function(t,n){const{axis:r="both",...i}=t;return s.jsx(O.div,{ref:n,__css:IG[r],...i,position:"absolute"})});var RG=()=>typeof document<"u",vw=!1,Qu=null,za=!1,Av=!1,$v=new Set;function Pb(e,t){$v.forEach(n=>n(e,t))}var MG=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function LG(e){return!(e.metaKey||!MG&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function yw(e){za=!0,LG(e)&&(Qu="keyboard",Pb("keyboard",e))}function Ja(e){if(Qu="pointer",e.type==="mousedown"||e.type==="pointerdown"){za=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;Pb("pointer",e)}}function NG(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function DG(e){NG(e)&&(za=!0,Qu="virtual")}function OG(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(!za&&!Av&&(Qu="virtual",Pb("virtual",e)),za=!1,Av=!1)}function FG(){za=!1,Av=!0}function bw(){return Qu!=="pointer"}function BG(){if(!RG()||vw)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){za=!0,e.apply(this,n)},document.addEventListener("keydown",yw,!0),document.addEventListener("keyup",yw,!0),document.addEventListener("click",DG,!0),window.addEventListener("focus",OG,!0),window.addEventListener("blur",FG,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Ja,!0),document.addEventListener("pointermove",Ja,!0),document.addEventListener("pointerup",Ja,!0)):(document.addEventListener("mousedown",Ja,!0),document.addEventListener("mousemove",Ja,!0),document.addEventListener("mouseup",Ja,!0)),vw=!0}function u_(e){BG(),e(bw());const t=()=>e(bw());return $v.add(t),()=>{$v.delete(t)}}const[VG,d_]=Te({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[WG,Zu]=Te({strict:!1,name:"FormControlContext"});function UG(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:o,...a}=e,l=m.useId(),c=t||`field-${l}`,u=`${c}-label`,d=`${c}-feedback`,f=`${c}-helptext`,[p,h]=m.useState(!1),[g,b]=m.useState(!1),[x,y]=m.useState(!1),v=m.useCallback((P={},j=null)=>({id:f,...P,ref:_t(j,T=>{T&&b(!0)})}),[f]),S=m.useCallback((P={},j=null)=>({...P,ref:j,"data-focus":me(x),"data-disabled":me(i),"data-invalid":me(r),"data-readonly":me(o),id:P.id!==void 0?P.id:u,htmlFor:P.htmlFor!==void 0?P.htmlFor:c}),[c,i,x,r,o,u]),w=m.useCallback((P={},j=null)=>({id:d,...P,ref:_t(j,T=>{T&&h(!0)}),"aria-live":"polite"}),[d]),k=m.useCallback((P={},j=null)=>({...P,...a,ref:j,role:"group","data-focus":me(x),"data-disabled":me(i),"data-invalid":me(r),"data-readonly":me(o)}),[a,i,x,r,o]),C=m.useCallback((P={},j=null)=>({...P,ref:j,role:"presentation","aria-hidden":!0,children:P.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!o,isDisabled:!!i,isFocused:!!x,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:p,setHasFeedbackText:h,hasHelpText:g,setHasHelpText:b,id:c,labelId:u,feedbackId:d,helpTextId:f,htmlProps:a,getHelpTextProps:v,getErrorMessageProps:w,getRootProps:k,getLabelProps:S,getRequiredIndicatorProps:C}}const we=V(function(t,n){const r=et("Form",t),i=Ie(t),{getRootProps:o,htmlProps:a,...l}=UG(i),c=W("chakra-form-control",t.className);return s.jsx(WG,{value:l,children:s.jsx(VG,{value:r,children:s.jsx(O.div,{...o({},n),className:c,__css:r.container})})})});we.displayName="FormControl";const Qr=V(function(t,n){const r=Zu(),i=d_(),o=W("chakra-form__helper-text",t.className);return s.jsx(O.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:i.helperText,className:o})});Qr.displayName="FormHelperText";function f_(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:i,...o}=_b(e);return{...o,disabled:t,readOnly:r,required:i,"aria-invalid":yr(n),"aria-required":yr(i),"aria-readonly":yr(r)}}function _b(e){const t=Zu(),{id:n,disabled:r,readOnly:i,required:o,isRequired:a,isInvalid:l,isReadOnly:c,isDisabled:u,onFocus:d,onBlur:f,...p}=e,h=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.hasFeedbackText&&(t!=null&&t.isInvalid)&&h.push(t.feedbackId),t!=null&&t.hasHelpText&&h.push(t.helpTextId),{...p,"aria-describedby":h.join(" ")||void 0,id:n??(t==null?void 0:t.id),isDisabled:r??u??(t==null?void 0:t.isDisabled),isReadOnly:i??c??(t==null?void 0:t.isReadOnly),isRequired:o??a??(t==null?void 0:t.isRequired),isInvalid:l??(t==null?void 0:t.isInvalid),onFocus:fe(t==null?void 0:t.onFocus,d),onBlur:fe(t==null?void 0:t.onBlur,f)}}const p_={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function HG(e={}){const t=_b(e),{isDisabled:n,isReadOnly:r,isRequired:i,isInvalid:o,id:a,onBlur:l,onFocus:c,"aria-describedby":u}=t,{defaultChecked:d,isChecked:f,isFocusable:p,onChange:h,isIndeterminate:g,name:b,value:x,tabIndex:y=void 0,"aria-label":v,"aria-labelledby":S,"aria-invalid":w,...k}=e,C=dm(k,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),P=Ht(h),j=Ht(l),T=Ht(c),[E,F]=m.useState(!1),[Y,q]=m.useState(!1),[M,N]=m.useState(!1),D=m.useRef(!1);m.useEffect(()=>u_(se=>{D.current=se}),[]);const R=m.useRef(null),[I,L]=m.useState(!0),[H,Z]=m.useState(!!d),le=f!==void 0,ie=le?f:H,Q=m.useCallback(se=>{if(r||n){se.preventDefault();return}le||Z(ie?se.currentTarget.checked:g?!0:se.currentTarget.checked),P==null||P(se)},[r,n,ie,le,g,P]);ti(()=>{R.current&&(R.current.indeterminate=!!g)},[g]),lu(()=>{n&&F(!1)},[n,F]),ti(()=>{const se=R.current;if(!(se!=null&&se.form))return;const tt=()=>{Z(!!d)};return se.form.addEventListener("reset",tt),()=>{var Ne;return(Ne=se.form)==null?void 0:Ne.removeEventListener("reset",tt)}},[]);const oe=n&&!p,ce=m.useCallback(se=>{se.key===" "&&N(!0)},[N]),Me=m.useCallback(se=>{se.key===" "&&N(!1)},[N]);ti(()=>{if(!R.current)return;R.current.checked!==ie&&Z(R.current.checked)},[R.current]);const Qe=m.useCallback((se={},tt=null)=>{const Ne=kt=>{E&&kt.preventDefault(),N(!0)};return{...se,ref:tt,"data-active":me(M),"data-hover":me(Y),"data-checked":me(ie),"data-focus":me(E),"data-focus-visible":me(E&&D.current),"data-indeterminate":me(g),"data-disabled":me(n),"data-invalid":me(o),"data-readonly":me(r),"aria-hidden":!0,onMouseDown:fe(se.onMouseDown,Ne),onMouseUp:fe(se.onMouseUp,()=>N(!1)),onMouseEnter:fe(se.onMouseEnter,()=>q(!0)),onMouseLeave:fe(se.onMouseLeave,()=>q(!1))}},[M,ie,n,E,Y,g,o,r]),te=m.useCallback((se={},tt=null)=>({...se,ref:tt,"data-active":me(M),"data-hover":me(Y),"data-checked":me(ie),"data-focus":me(E),"data-focus-visible":me(E&&D.current),"data-indeterminate":me(g),"data-disabled":me(n),"data-invalid":me(o),"data-readonly":me(r)}),[M,ie,n,E,Y,g,o,r]),ne=m.useCallback((se={},tt=null)=>({...C,...se,ref:_t(tt,Ne=>{Ne&&L(Ne.tagName==="LABEL")}),onClick:fe(se.onClick,()=>{var Ne;I||((Ne=R.current)==null||Ne.click(),requestAnimationFrame(()=>{var kt;(kt=R.current)==null||kt.focus({preventScroll:!0})}))}),"data-disabled":me(n),"data-checked":me(ie),"data-invalid":me(o)}),[C,n,ie,o,I]),_e=m.useCallback((se={},tt=null)=>({...se,ref:_t(R,tt),type:"checkbox",name:b,value:x,id:a,tabIndex:y,onChange:fe(se.onChange,Q),onBlur:fe(se.onBlur,j,()=>F(!1)),onFocus:fe(se.onFocus,T,()=>F(!0)),onKeyDown:fe(se.onKeyDown,ce),onKeyUp:fe(se.onKeyUp,Me),required:i,checked:ie,disabled:oe,readOnly:r,"aria-label":v,"aria-labelledby":S,"aria-invalid":w?!!w:o,"aria-describedby":u,"aria-disabled":n,"aria-checked":g?"mixed":ie,style:p_}),[b,x,a,y,Q,j,T,ce,Me,i,ie,oe,r,v,S,w,o,u,n,g]),ve=m.useCallback((se={},tt=null)=>({...se,ref:tt,onMouseDown:fe(se.onMouseDown,GG),"data-disabled":me(n),"data-checked":me(ie),"data-invalid":me(o)}),[ie,n,o]);return{state:{isInvalid:o,isFocused:E,isChecked:ie,isActive:M,isHovered:Y,isIndeterminate:g,isDisabled:n,isReadOnly:r,isRequired:i},getRootProps:ne,getCheckboxProps:Qe,getIndicatorProps:te,getInputProps:_e,getLabelProps:ve,htmlProps:C}}function GG(e){e.preventDefault(),e.stopPropagation()}const KG=new Set(["dark","light","system"]);function qG(e){let t=e;return KG.has(t)||(t="light"),t}function XG(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,i=qG(t),o=n==="cookie",a=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${i}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); - `,l=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${i}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); - `;return`!${o?a:l}`.trim()}function YG(e={}){const{nonce:t}=e;return s.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:XG(e)}})}const yn=V(function(t,n){const{className:r,centerContent:i,...o}=Ie(t),a=or("Container",t);return s.jsx(O.div,{ref:n,className:W("chakra-container",r),...o,__css:{...a,...i&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});yn.displayName="Container";const xa=V(function(t,n){const{borderLeftWidth:r,borderBottomWidth:i,borderTopWidth:o,borderRightWidth:a,borderWidth:l,borderStyle:c,borderColor:u,...d}=or("Divider",t),{className:f,orientation:p="horizontal",__css:h,...g}=Ie(t),b={vertical:{borderLeftWidth:r||a||l||"1px",height:"100%"},horizontal:{borderBottomWidth:i||o||l||"1px",width:"100%"}};return s.jsx(O.hr,{ref:n,"aria-orientation":p,...g,__css:{...d,border:"0",borderColor:u,borderStyle:c,...b[p],...h},className:W("chakra-divider",f)})});xa.displayName="Divider";const[QG,m_]=Te({name:"EditableStylesContext",errorMessage:`useEditableStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[ZG,Tb]=Te({name:"EditableContext",errorMessage:"useEditableContext: context is undefined. Seems you forgot to wrap the editable components in ``"});function xw(e,t){return e?e===t||e.contains(t):!1}function JG(e={}){const{onChange:t,onCancel:n,onSubmit:r,onBlur:i,value:o,isDisabled:a,defaultValue:l,startWithEditView:c,isPreviewFocusable:u=!0,submitOnBlur:d=!0,selectAllOnFocus:f=!0,placeholder:p,onEdit:h,finalFocusRef:g,...b}=e,x=Ht(h),y=!!(c&&!a),[v,S]=m.useState(y),[w,k]=v6({defaultValue:l||"",value:o,onChange:t}),[C,P]=m.useState(w),j=m.useRef(null),T=m.useRef(null),E=m.useRef(null),F=m.useRef(null),Y=m.useRef(null);wz({ref:j,enabled:v,elements:[F,Y]});const q=!v&&!a;ti(()=>{var te,ne;v&&((te=j.current)==null||te.focus(),f&&((ne=j.current)==null||ne.select()))},[]),lu(()=>{var te,ne,_e,ve;if(!v){g?(te=g.current)==null||te.focus():(ne=E.current)==null||ne.focus();return}(_e=j.current)==null||_e.focus(),f&&((ve=j.current)==null||ve.select()),x==null||x()},[v,x,f]);const M=m.useCallback(()=>{q&&S(!0)},[q]),N=m.useCallback(()=>{P(w)},[w]),D=m.useCallback(()=>{S(!1),k(C),n==null||n(C),i==null||i(C)},[n,i,k,C]),R=m.useCallback(()=>{S(!1),P(w),r==null||r(w),i==null||i(C)},[w,r,i,C]);m.useEffect(()=>{if(v)return;const te=j.current;(te==null?void 0:te.ownerDocument.activeElement)===te&&(te==null||te.blur())},[v]);const I=m.useCallback(te=>{k(te.currentTarget.value)},[k]),L=m.useCallback(te=>{const ne=te.key,ve={Escape:D,Enter:Ke=>{!Ke.shiftKey&&!Ke.metaKey&&R()}}[ne];ve&&(te.preventDefault(),ve(te))},[D,R]),H=m.useCallback(te=>{const ne=te.key,ve={Escape:D}[ne];ve&&(te.preventDefault(),ve(te))},[D]),Z=w.length===0,le=m.useCallback(te=>{if(!v)return;const ne=te.currentTarget.ownerDocument,_e=te.relatedTarget??ne.activeElement,ve=xw(F.current,_e),Ke=xw(Y.current,_e);!ve&&!Ke&&(d?R():D())},[d,R,D,v]),ie=m.useCallback((te={},ne=null)=>{const _e=q&&u?0:void 0;return{...te,ref:_t(ne,T),children:Z?p:w,hidden:v,"aria-disabled":yr(a),tabIndex:_e,onFocus:fe(te.onFocus,M,N)}},[a,v,q,u,Z,M,N,p,w]),Q=m.useCallback((te={},ne=null)=>({...te,hidden:!v,placeholder:p,ref:_t(ne,j),disabled:a,"aria-disabled":yr(a),value:w,onBlur:fe(te.onBlur,le),onChange:fe(te.onChange,I),onKeyDown:fe(te.onKeyDown,L),onFocus:fe(te.onFocus,N)}),[a,v,le,I,L,N,p,w]),oe=m.useCallback((te={},ne=null)=>({...te,hidden:!v,placeholder:p,ref:_t(ne,j),disabled:a,"aria-disabled":yr(a),value:w,onBlur:fe(te.onBlur,le),onChange:fe(te.onChange,I),onKeyDown:fe(te.onKeyDown,H),onFocus:fe(te.onFocus,N)}),[a,v,le,I,H,N,p,w]),ce=m.useCallback((te={},ne=null)=>({"aria-label":"Edit",...te,type:"button",onClick:fe(te.onClick,M),ref:_t(ne,E),disabled:a}),[M,a]),Me=m.useCallback((te={},ne=null)=>({...te,"aria-label":"Submit",ref:_t(Y,ne),type:"button",onClick:fe(te.onClick,R),disabled:a}),[R,a]),Qe=m.useCallback((te={},ne=null)=>({"aria-label":"Cancel",id:"cancel",...te,ref:_t(F,ne),type:"button",onClick:fe(te.onClick,D),disabled:a}),[D,a]);return{isEditing:v,isDisabled:a,isValueEmpty:Z,value:w,onEdit:M,onCancel:D,onSubmit:R,getPreviewProps:ie,getInputProps:Q,getTextareaProps:oe,getEditButtonProps:ce,getSubmitButtonProps:Me,getCancelButtonProps:Qe,htmlProps:b}}const Bf=V(function(t,n){const r=et("Editable",t),i=Ie(t),{htmlProps:o,...a}=JG(i),{isEditing:l,onSubmit:c,onCancel:u,onEdit:d}=a,f=W("chakra-editable",t.className),p=gn(t.children,{isEditing:l,onSubmit:c,onCancel:u,onEdit:d});return s.jsx(ZG,{value:a,children:s.jsx(QG,{value:r,children:s.jsx(O.div,{ref:n,...o,className:f,children:p})})})});Bf.displayName="Editable";const h_={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent"},Vf=V(function(t,n){const{getInputProps:r}=Tb(),i=m_(),o=r(t,n),a=W("chakra-editable__input",t.className);return s.jsx(O.input,{...o,__css:{outline:0,...h_,...i.input},className:a})});Vf.displayName="EditableInput";const Wf=V(function(t,n){const{getPreviewProps:r}=Tb(),i=m_(),o=r(t,n),a=W("chakra-editable__preview",t.className);return s.jsx(O.span,{...o,__css:{cursor:"text",display:"inline-block",...h_,...i.preview},className:a})});Wf.displayName="EditablePreview";function eK(){const{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}=Tb();return{isEditing:e,getEditButtonProps:t,getCancelButtonProps:n,getSubmitButtonProps:r}}function hc(e){return typeof e=="function"}function tK(...e){return t=>e.reduce((n,r)=>r(n),t)}const nK=e=>function(...n){let r=[...n],i=n[n.length-1];return AO(i)&&r.length>1?r=r.slice(0,r.length-1):i=e,tK(...r.map(o=>a=>hc(o)?o(a):rK(a,o)))(i)},Eb=nK(la);function rK(...e){return gr({},...e,g_)}function g_(e,t,n,r){if((hc(e)||hc(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...i)=>{const o=hc(e)?e(...i):e,a=hc(t)?t(...i):t;return gr({},o,a,g_)};if(Ft(e)&&Qg(t)||Qg(e)&&Ft(t))return t}const gt=V(function(t,n){const{direction:r,align:i,justify:o,wrap:a,basis:l,grow:c,shrink:u,...d}=t,f={display:"flex",flexDirection:r,alignItems:i,justifyContent:o,flexWrap:a,flexBasis:l,flexGrow:c,flexShrink:u};return s.jsx(O.div,{ref:n,__css:f,...d})});gt.displayName="Flex";function iK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var zv="data-focus-lock",v_="data-focus-lock-disabled",oK="data-no-focus-lock",aK="data-autofocus-inside",sK="data-no-autofocus";function T0(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function lK(e,t){var n=m.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var cK=typeof window<"u"?m.useLayoutEffect:m.useEffect,Sw=new WeakMap;function y_(e,t){var n=lK(null,function(r){return e.forEach(function(i){return T0(i,r)})});return cK(function(){var r=Sw.get(n);if(r){var i=new Set(r),o=new Set(e),a=n.current;i.forEach(function(l){o.has(l)||T0(l,null)}),o.forEach(function(l){i.has(l)||T0(l,a)})}Sw.set(n,e)},[e]),n}var E0={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Yr=function(){return Yr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r=0}).sort(EK)},$K=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Rb=$K.join(","),zK="".concat(Rb,", [data-focus-guard]"),R_=function(e,t){return li((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?zK:Rb)?[r]:[],R_(r))},[])},IK=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?pl([e.contentDocument.body],t):[e]},pl=function(e,t){return e.reduce(function(n,r){var i,o=R_(r,t),a=(i=[]).concat.apply(i,o.map(function(l){return IK(l,t)}));return n.concat(a,r.parentNode?li(r.parentNode.querySelectorAll(Rb)).filter(function(l){return l===r}):[])},[])},RK=function(e){var t=e.querySelectorAll("[".concat(aK,"]"));return li(t).map(function(n){return pl([n])}).reduce(function(n,r){return n.concat(r)},[])},Mb=function(e,t){return li(e).filter(function(n){return E_(t,n)}).filter(function(n){return PK(n)})},ww=function(e,t){return t===void 0&&(t=new Map),li(e).filter(function(n){return A_(t,n)})},Lb=function(e,t,n){return Ib(Mb(pl(e,n),t),!0,n)},Su=function(e,t){return Ib(Mb(pl(e),t),!1)},MK=function(e,t){return Mb(RK(e),t)},Sa=function(e,t){return e.shadowRoot?Sa(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:li(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var i=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return i?Sa(i,t):!1}return Sa(n,t)})},LK=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(a,l){return!t.has(l)})},M_=function(e){return e.parentNode?M_(e.parentNode):e},Nb=function(e){var t=Ia(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(zv);return n.push.apply(n,i?LK(li(M_(r).querySelectorAll("[".concat(zv,'="').concat(i,'"]:not([').concat(v_,'="disabled"])')))):[r]),n},[])},NK=function(e){try{return e()}catch{return}},wu=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?wu(t.shadowRoot):t instanceof HTMLIFrameElement&&NK(function(){return t.contentWindow.document})?wu(t.contentWindow.document):t}},DK=function(e,t){return e===t},OK=function(e,t){return!!li(e.querySelectorAll("iframe")).some(function(n){return DK(n,t)})},L_=function(e,t){return t===void 0&&(t=wu(P_(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:Nb(e).some(function(n){return Sa(n,t)||OK(n,t)})},FK=function(e){e===void 0&&(e=document);var t=wu(e);return t?li(e.querySelectorAll("[".concat(oK,"]"))).some(function(n){return Sa(n,t)}):!1},BK=function(e,t){return t.filter(I_).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},Db=function(e,t){return I_(e)&&e.name?BK(e,t):e},VK=function(e){var t=new Set;return e.forEach(function(n){return t.add(Db(n,e))}),e.filter(function(n){return t.has(n)})},kw=function(e){return e[0]&&e.length>1?Db(e[0],e):e[0]},Cw=function(e,t){return e.indexOf(Db(t,e))},Mv="NEW_FOCUS",WK=function(e,t,n,r,i){var o=e.length,a=e[0],l=e[o-1],c=zb(r);if(!(r&&e.indexOf(r)>=0)){var u=r!==void 0?n.indexOf(r):-1,d=i?n.indexOf(i):u,f=i?e.indexOf(i):-1;if(u===-1)return f!==-1?f:Mv;if(f===-1)return Mv;var p=u-d,h=n.indexOf(a),g=n.indexOf(l),b=VK(n),x=r!==void 0?b.indexOf(r):-1,y=i?b.indexOf(i):x,v=b.filter(function(j){return j.tabIndex>=0}),S=r!==void 0?v.indexOf(r):-1,w=i?v.indexOf(i):S,k=S>=0&&w>=0?w-S:y-x;if(!p&&f>=0||t.length===0)return f;var C=Cw(e,t[0]),P=Cw(e,t[t.length-1]);if(u<=h&&c&&Math.abs(p)>1)return P;if(u>=g&&c&&Math.abs(p)>1)return C;if(p&&Math.abs(k)>1)return f;if(u<=h)return P;if(u>g)return C;if(p)return Math.abs(p)>1?f:(o+f+p)%o}},UK=function(e){return function(t){var n,r=(n=$_(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},jw=function(e,t,n){var r=e.map(function(o){var a=o.node;return a}),i=ww(r.filter(UK(n)));return i&&i.length?kw(i):kw(ww(t))},Lv=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Lv(e.parentNode.host||e.parentNode,t),t},A0=function(e,t){for(var n=Lv(e),r=Lv(t),i=0;i=0)return o}return!1},N_=function(e,t,n){var r=Ia(e),i=Ia(t),o=r[0],a=!1;return i.filter(Boolean).forEach(function(l){a=A0(a||l,l)||a,n.filter(Boolean).forEach(function(c){var u=A0(o,c);u&&(!a||Sa(u,a)?a=u:a=A0(u,a))})}),a},Pw=function(e,t){return e.reduce(function(n,r){return n.concat(MK(r,t))},[])},HK=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(TK)},GK=function(e,t){var n=wu(Ia(e).length>0?document:P_(e).ownerDocument),r=Nb(e).filter(Rv),i=N_(n||e,e,r),o=new Map,a=Su(r,o),l=a.filter(function(g){var b=g.node;return Rv(b)});if(l[0]){var c=Su([i],o).map(function(g){var b=g.node;return b}),u=HK(c,l),d=u.map(function(g){var b=g.node;return b}),f=u.filter(function(g){var b=g.tabIndex;return b>=0}).map(function(g){var b=g.node;return b}),p=WK(d,f,c,n,t);if(p===Mv){var h=jw(a,f,Pw(r,o))||jw(a,d,Pw(r,o));if(h)return{node:h};console.warn("focus-lock: cannot find any node to move focus into");return}return p===void 0?p:u[p]}},KK=function(e){var t=Nb(e).filter(Rv),n=N_(e,e,t),r=Ib(pl([n],!0),!0,!0),i=pl(t,!1);return r.map(function(o){var a=o.node,l=o.index;return{node:a,index:l,lockItem:i.indexOf(a)>=0,guard:zb(a)}})},Ob=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},$0=0,z0=!1,D_=function(e,t,n){n===void 0&&(n={});var r=GK(e,t);if(!z0&&r){if($0>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),z0=!0,setTimeout(function(){z0=!1},1);return}$0++,Ob(r.node,n.focusOptions),$0--}};function Jl(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var qK=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Jl(n),parent:Jl(n.parentElement),left:Jl(n.previousElementSibling),right:Jl(n.nextElementSibling)}),n=n.parentElement;return{element:Jl(e),stack:t,ownerDocument:e.ownerDocument}},XK=function(e){var t,n,r,i,o;if(e)for(var a=e.stack,l=e.ownerDocument,c=new Map,u=0,d=a;u-1&&(x.filter(function(v){var S=v.guard,w=v.node;return S&&w.dataset.focusAutoGuard}).forEach(function(v){var S=v.node;return S.removeAttribute("tabIndex")}),Tw(y,x.length,1,x),Tw(y,-1,-1,x))}}}return t},U_=function(t){Np()&&t&&(t.stopPropagation(),t.preventDefault())},Vb=function(){return Fb(Np)},pq=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||sq(r,n)},mq=function(){return null},H_=function(){Bb=!0},G_=function(){Bb=!1,ku="just",Fb(function(){ku="meanwhile"})},hq=function(){document.addEventListener("focusin",U_),document.addEventListener("focusout",Vb),window.addEventListener("focus",H_),window.addEventListener("blur",G_)},gq=function(){document.removeEventListener("focusin",U_),document.removeEventListener("focusout",Vb),window.removeEventListener("focus",H_),window.removeEventListener("blur",G_)};function vq(e){return e.filter(function(t){var n=t.disabled;return!n})}var K_={moveFocusInside:D_,focusInside:L_,focusNextElement:JK,focusPrevElement:eq,focusFirstElement:tq,focusLastElement:nq,captureFocusRestore:O_};function yq(e){var t=e.slice(-1)[0];t&&!Xs&&hq();var n=Xs,r=n&&t&&t.id===n.id;Xs=t,n&&!r&&(n.onDeactivation(),e.filter(function(i){var o=i.id;return o===n.id}).length||n.returnFocus(!t)),t?(zn=null,(!r||n.observed!==t.observed)&&t.onActivation(K_),Np(),Fb(Np)):(gq(),zn=null)}C_.assignSyncMedium(pq);j_.assignMedium(Vb);fK.assignMedium(function(e){return e(K_)});const bq=xK(vq,yq)(mq);var Nv=m.forwardRef(function(t,n){return en.createElement($b,$a({sideCar:bq,ref:n},t))}),q_=$b.propTypes||{};q_.sideCar;iK(q_,["sideCar"]);Nv.propTypes={};const xq=Nv.default??Nv,X_=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:o,isDisabled:a,autoFocus:l,persistentFocus:c,lockFocusAcrossFrames:u}=e,d=m.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&rz(r.current).length===0&&requestAnimationFrame(()=>{var g;(g=r.current)==null||g.focus()})},[t,r]),f=m.useCallback(()=>{var h;(h=n==null?void 0:n.current)==null||h.focus()},[n]),p=i&&!n;return s.jsx(xq,{crossFrame:u,persistentFocus:c,autoFocus:l,disabled:a,onActivation:d,onDeactivation:f,returnFocus:p,children:o})};X_.displayName="FocusLock";const ke=V(function(t,n){const r=or("FormLabel",t),i=Ie(t),{className:o,children:a,requiredIndicator:l=s.jsx(Y_,{}),optionalIndicator:c=null,...u}=i,d=Zu(),f=(d==null?void 0:d.getLabelProps(u,n))??{ref:n,...u};return s.jsxs(O.label,{...f,className:W("chakra-form__label",i.className),__css:{display:"block",textAlign:"start",...r},children:[a,d!=null&&d.isRequired?l:c]})});ke.displayName="FormLabel";const Y_=V(function(t,n){const r=Zu(),i=d_();if(!(r!=null&&r.isRequired))return null;const o=W("chakra-form__required-indicator",t.className);return s.jsx(O.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:i.requiredIndicator,className:o})});Y_.displayName="RequiredIndicator";const Q_=V(function(t,n){const{templateAreas:r,gap:i,rowGap:o,columnGap:a,column:l,row:c,autoFlow:u,autoRows:d,templateRows:f,autoColumns:p,templateColumns:h,...g}=t,b={display:"grid",gridTemplateAreas:r,gridGap:i,gridRowGap:o,gridColumnGap:a,gridAutoColumns:p,gridColumn:l,gridRow:c,gridAutoFlow:u,gridAutoRows:d,gridTemplateRows:f,gridTemplateColumns:h};return s.jsx(O.div,{ref:n,__css:b,...g})});Q_.displayName="Grid";const jn=V(function(t,n){const{columns:r,spacingX:i,spacingY:o,spacing:a,minChildWidth:l,...c}=t,u=Di(),d=l?wq(l,u):kq(r);return s.jsx(Q_,{ref:n,gap:a,columnGap:i,rowGap:o,templateColumns:d,...c})});jn.displayName="SimpleGrid";function Sq(e){return typeof e=="number"?`${e}px`:e}function wq(e,t){return g1(e,n=>{const r=UH("sizes",n,Sq(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function kq(e){return g1(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}function Nm(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:i={}}=e,o=m.Children.toArray(e.path),a=V((l,c)=>s.jsx(wt,{ref:c,viewBox:t,...i,...l,children:o.length?o:s.jsx("path",{fill:"currentColor",d:n})}));return a.displayName=r,a}const Dv=V(function(t,n){const{htmlWidth:r,htmlHeight:i,alt:o,...a}=t;return s.jsx("img",{width:r,height:i,ref:n,alt:o,...a})});Dv.displayName="NativeImage";const Z_=V(function(t,n){const{fallbackSrc:r,fallback:i,src:o,srcSet:a,align:l,fit:c,loading:u,ignoreFallback:d,crossOrigin:f,fallbackStrategy:p="beforeLoadOrError",referrerPolicy:h,...g}=t,b=r!==void 0||i!==void 0,x=u!=null||d||!b,y=a_({...t,crossOrigin:f,ignoreFallback:x}),v=kG(y,p),S={ref:n,objectFit:c,objectPosition:l,...x?g:dm(g,["onError","onLoad"])};return v?i||s.jsx(O.img,{as:Dv,className:"chakra-image__placeholder",src:r,...S}):s.jsx(O.img,{as:Dv,src:o,srcSet:a,crossOrigin:f,loading:u,referrerPolicy:h,className:"chakra-image",...S})});Z_.displayName="Image";const mt=V(function(t,n){const{htmlSize:r,...i}=t,o=et("Input",i),a=Ie(i),l=f_(a),c=W("chakra-input",t.className);return s.jsx(O.input,{size:r,...l,__css:o.field,ref:n,className:c})});mt.displayName="Input";mt.id="Input";const[Cq,jq]=Te({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Wb=V(function(t,n){const r=et("Input",t),{children:i,className:o,...a}=Ie(t),l=W("chakra-input__group",o),c={},u=m1(i),d=r.field;u.forEach(p=>{r&&(d&&p.type.id==="InputLeftElement"&&(c.paddingStart=d.height??d.h),d&&p.type.id==="InputRightElement"&&(c.paddingEnd=d.height??d.h),p.type.id==="InputRightAddon"&&(c.borderEndRadius=0),p.type.id==="InputLeftAddon"&&(c.borderStartRadius=0))});const f=u.map(p=>{var g,b;const h=h1({size:((g=p.props)==null?void 0:g.size)||t.size,variant:((b=p.props)==null?void 0:b.variant)||t.variant});return p.type.id!=="Input"?m.cloneElement(p,h):m.cloneElement(p,Object.assign(h,c,p.props))});return s.jsx(O.div,{className:l,ref:n,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...a,children:s.jsx(Cq,{value:r,children:f})})});Wb.displayName="InputGroup";const Pq=O("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Dm=V(function(t,n){const{placement:r="left",...i}=t,o=jq(),a=o.field,c={[r==="left"?"insetStart":"insetEnd"]:"0",width:(a==null?void 0:a.height)??(a==null?void 0:a.h),height:(a==null?void 0:a.height)??(a==null?void 0:a.h),fontSize:a==null?void 0:a.fontSize,...o.element};return s.jsx(Pq,{ref:n,__css:c,...i})});Dm.id="InputElement";Dm.displayName="InputElement";const Ub=V(function(t,n){const{className:r,...i}=t,o=W("chakra-input__left-element",r);return s.jsx(Dm,{ref:n,placement:"left",className:o,...i})});Ub.id="InputLeftElement";Ub.displayName="InputLeftElement";const Om=V(function(t,n){const{className:r,...i}=t,o=W("chakra-input__right-element",r);return s.jsx(Dm,{ref:n,placement:"right",className:o,...i})});Om.id="InputRightElement";Om.displayName="InputRightElement";const Oi=V(function(t,n){const r=or("Link",t),{className:i,isExternal:o,...a}=Ie(t);return s.jsx(O.a,{target:o?"_blank":void 0,rel:o?"noopener":void 0,ref:n,className:W("chakra-link",i),...a,__css:r})});Oi.displayName="Link";const[_q,J_]=Te({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Ju=V(function(t,n){const r=et("List",t),{children:i,styleType:o="none",stylePosition:a,spacing:l,...c}=Ie(t),u=m1(i),f=l?{["& > *:not(style) ~ *:not(style)"]:{mt:l}}:{};return s.jsx(_q,{value:r,children:s.jsx(O.ul,{ref:n,listStyleType:o,listStylePosition:a,role:"list",__css:{...r.container,...f},...c,children:u})})});Ju.displayName="List";const Tq=V((e,t)=>{const{as:n,...r}=e;return s.jsx(Ju,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});Tq.displayName="OrderedList";const Eq=V(function(t,n){const{as:r,...i}=t;return s.jsx(Ju,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...i})});Eq.displayName="UnorderedList";const Hb=V(function(t,n){const r=J_();return s.jsx(O.li,{ref:n,...t,__css:r.item})});Hb.displayName="ListItem";const eT=V(function(t,n){const r=J_();return s.jsx(wt,{ref:n,role:"presentation",...t,__css:r.icon})});eT.displayName="ListIcon";function Aq(e,t={}){const{ssr:n=!0,fallback:r}=t,{getWindow:i}=UF(),o=Array.isArray(e)?e:[e];let a=Array.isArray(r)?r:[r];a=a.filter(u=>u!=null);const[l,c]=m.useState(()=>o.map((u,d)=>({media:u,matches:n?!!a[d]:i().matchMedia(u).matches})));return m.useEffect(()=>{const u=i();c(o.map(p=>({media:p,matches:u.matchMedia(p).matches})));const d=o.map(p=>u.matchMedia(p)),f=p=>{c(h=>h.slice().map(g=>g.media===p.media?{...g,matches:p.matches}:g))};return d.forEach(p=>{typeof p.addListener=="function"?p.addListener(f):p.addEventListener("change",f)}),()=>{d.forEach(p=>{typeof p.removeListener=="function"?p.removeListener(f):p.removeEventListener("change",f)})}},[i]),l.map(u=>u.matches)}function $q(e){var l;const t=Ft(e)?e:{fallback:e??"base"},r=Di().__breakpoints.details.map(({minMaxQuery:c,breakpoint:u})=>({breakpoint:u,query:c.replace("@media screen and ","")})),i=r.map(c=>c.breakpoint===t.fallback),a=Aq(r.map(c=>c.query),{fallback:i,ssr:t.ssr}).findIndex(c=>c==!0);return((l=r[a])==null?void 0:l.breakpoint)??t.fallback}function zq(e,t,n=m6){let r=Object.keys(e).indexOf(t);if(r!==-1)return e[t];let i=n.indexOf(t);for(;i>=0;){const o=n[i];if(e.hasOwnProperty(o)){r=i;break}i-=1}if(r!==-1){const o=n[r];return e[o]}}function Dp(e,t){var l;const n=Ft(t)?t:{fallback:t??"base"},r=$q(n),i=Di();if(!r)return;const o=Array.from(((l=i.__breakpoints)==null?void 0:l.keys)||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(cz(e,o)).map(([c,u])=>[c,u])):e;return zq(a,r,o)}var On="top",wr="bottom",kr="right",Fn="left",Gb="auto",ed=[On,wr,kr,Fn],ml="start",Cu="end",Iq="clippingParents",tT="viewport",ec="popper",Rq="reference",Ew=ed.reduce(function(e,t){return e.concat([t+"-"+ml,t+"-"+Cu])},[]),nT=[].concat(ed,[Gb]).reduce(function(e,t){return e.concat([t,t+"-"+ml,t+"-"+Cu])},[]),Mq="beforeRead",Lq="read",Nq="afterRead",Dq="beforeMain",Oq="main",Fq="afterMain",Bq="beforeWrite",Vq="write",Wq="afterWrite",Uq=[Mq,Lq,Nq,Dq,Oq,Fq,Bq,Vq,Wq];function si(e){return e?(e.nodeName||"").toLowerCase():null}function er(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ra(e){var t=er(e).Element;return e instanceof t||e instanceof Element}function br(e){var t=er(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Kb(e){if(typeof ShadowRoot>"u")return!1;var t=er(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Hq(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!br(o)||!si(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var l=i[a];l===!1?o.removeAttribute(a):o.setAttribute(a,l===!0?"":l)}))})}function Gq(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,u){return c[u]="",c},{});!br(i)||!si(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const Kq={name:"applyStyles",enabled:!0,phase:"write",fn:Hq,effect:Gq,requires:["computeStyles"]};function ai(e){return e.split("-")[0]}var wa=Math.max,Op=Math.min,hl=Math.round;function Ov(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function rT(){return!/^((?!chrome|android).)*safari/i.test(Ov())}function gl(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&br(e)&&(i=e.offsetWidth>0&&hl(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&hl(r.height)/e.offsetHeight||1);var a=Ra(e)?er(e):window,l=a.visualViewport,c=!rT()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/i,d=(r.top+(c&&l?l.offsetTop:0))/o,f=r.width/i,p=r.height/o;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function qb(e){var t=gl(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function iT(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Kb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ii(e){return er(e).getComputedStyle(e)}function qq(e){return["table","td","th"].indexOf(si(e))>=0}function No(e){return((Ra(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fm(e){return si(e)==="html"?e:e.assignedSlot||e.parentNode||(Kb(e)?e.host:null)||No(e)}function Aw(e){return!br(e)||Ii(e).position==="fixed"?null:e.offsetParent}function Xq(e){var t=/firefox/i.test(Ov()),n=/Trident/i.test(Ov());if(n&&br(e)){var r=Ii(e);if(r.position==="fixed")return null}var i=Fm(e);for(Kb(i)&&(i=i.host);br(i)&&["html","body"].indexOf(si(i))<0;){var o=Ii(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function td(e){for(var t=er(e),n=Aw(e);n&&qq(n)&&Ii(n).position==="static";)n=Aw(n);return n&&(si(n)==="html"||si(n)==="body"&&Ii(n).position==="static")?t:n||Xq(e)||t}function Xb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dc(e,t,n){return wa(e,Op(t,n))}function Yq(e,t,n){var r=Dc(e,t,n);return r>n?n:r}function oT(){return{top:0,right:0,bottom:0,left:0}}function aT(e){return Object.assign({},oT(),e)}function sT(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Qq=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,aT(typeof t!="number"?t:sT(t,ed))};function Zq(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,l=ai(n.placement),c=Xb(l),u=[Fn,kr].indexOf(l)>=0,d=u?"height":"width";if(!(!o||!a)){var f=Qq(i.padding,n),p=qb(o),h=c==="y"?On:Fn,g=c==="y"?wr:kr,b=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],x=a[c]-n.rects.reference[c],y=td(o),v=y?c==="y"?y.clientHeight||0:y.clientWidth||0:0,S=b/2-x/2,w=f[h],k=v-p[d]-f[g],C=v/2-p[d]/2+S,P=Dc(w,C,k),j=c;n.modifiersData[r]=(t={},t[j]=P,t.centerOffset=P-C,t)}}function Jq(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||iT(t.elements.popper,i)&&(t.elements.arrow=i))}const eX={name:"arrow",enabled:!0,phase:"main",fn:Zq,effect:Jq,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vl(e){return e.split("-")[1]}var tX={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nX(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:hl(n*i)/i||0,y:hl(r*i)/i||0}}function $w(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,h=p===void 0?0:p,g=a.y,b=g===void 0?0:g,x=typeof d=="function"?d({x:h,y:b}):{x:h,y:b};h=x.x,b=x.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),S=Fn,w=On,k=window;if(u){var C=td(n),P="clientHeight",j="clientWidth";if(C===er(n)&&(C=No(n),Ii(C).position!=="static"&&l==="absolute"&&(P="scrollHeight",j="scrollWidth")),C=C,i===On||(i===Fn||i===kr)&&o===Cu){w=wr;var T=f&&C===k&&k.visualViewport?k.visualViewport.height:C[P];b-=T-r.height,b*=c?1:-1}if(i===Fn||(i===On||i===wr)&&o===Cu){S=kr;var E=f&&C===k&&k.visualViewport?k.visualViewport.width:C[j];h-=E-r.width,h*=c?1:-1}}var F=Object.assign({position:l},u&&tX),Y=d===!0?nX({x:h,y:b},er(n)):{x:h,y:b};if(h=Y.x,b=Y.y,c){var q;return Object.assign({},F,(q={},q[w]=v?"0":"",q[S]=y?"0":"",q.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",q))}return Object.assign({},F,(t={},t[w]=v?b+"px":"",t[S]=y?h+"px":"",t.transform="",t))}function rX(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:ai(t.placement),variation:vl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,$w(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$w(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const iX={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:rX,data:{}};var qd={passive:!0};function oX(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,l=a===void 0?!0:a,c=er(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",n.update,qd)}),l&&c.addEventListener("resize",n.update,qd),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",n.update,qd)}),l&&c.removeEventListener("resize",n.update,qd)}}const aX={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oX,data:{}};var sX={left:"right",right:"left",bottom:"top",top:"bottom"};function Uf(e){return e.replace(/left|right|bottom|top/g,function(t){return sX[t]})}var lX={start:"end",end:"start"};function zw(e){return e.replace(/start|end/g,function(t){return lX[t]})}function Yb(e){var t=er(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Qb(e){return gl(No(e)).left+Yb(e).scrollLeft}function cX(e,t){var n=er(e),r=No(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;var u=rT();(u||!u&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:l+Qb(e),y:c}}function uX(e){var t,n=No(e),r=Yb(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=wa(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=wa(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Qb(e),c=-r.scrollTop;return Ii(i||n).direction==="rtl"&&(l+=wa(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:l,y:c}}function Zb(e){var t=Ii(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function lT(e){return["html","body","#document"].indexOf(si(e))>=0?e.ownerDocument.body:br(e)&&Zb(e)?e:lT(Fm(e))}function Oc(e,t){var n;t===void 0&&(t=[]);var r=lT(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=er(r),a=i?[o].concat(o.visualViewport||[],Zb(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(Oc(Fm(a)))}function Fv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dX(e,t){var n=gl(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Iw(e,t,n){return t===tT?Fv(cX(e,n)):Ra(t)?dX(t,n):Fv(uX(No(e)))}function fX(e){var t=Oc(Fm(e)),n=["absolute","fixed"].indexOf(Ii(e).position)>=0,r=n&&br(e)?td(e):e;return Ra(r)?t.filter(function(i){return Ra(i)&&iT(i,r)&&si(i)!=="body"}):[]}function pX(e,t,n,r){var i=t==="clippingParents"?fX(e):[].concat(t),o=[].concat(i,[n]),a=o[0],l=o.reduce(function(c,u){var d=Iw(e,u,r);return c.top=wa(d.top,c.top),c.right=Op(d.right,c.right),c.bottom=Op(d.bottom,c.bottom),c.left=wa(d.left,c.left),c},Iw(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function cT(e){var t=e.reference,n=e.element,r=e.placement,i=r?ai(r):null,o=r?vl(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(i){case On:c={x:a,y:t.y-n.height};break;case wr:c={x:a,y:t.y+t.height};break;case kr:c={x:t.x+t.width,y:l};break;case Fn:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=i?Xb(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case ml:c[u]=c[u]-(t[d]/2-n[d]/2);break;case Cu:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function ju(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,l=n.boundary,c=l===void 0?Iq:l,u=n.rootBoundary,d=u===void 0?tT:u,f=n.elementContext,p=f===void 0?ec:f,h=n.altBoundary,g=h===void 0?!1:h,b=n.padding,x=b===void 0?0:b,y=aT(typeof x!="number"?x:sT(x,ed)),v=p===ec?Rq:ec,S=e.rects.popper,w=e.elements[g?v:p],k=pX(Ra(w)?w:w.contextElement||No(e.elements.popper),c,d,a),C=gl(e.elements.reference),P=cT({reference:C,element:S,placement:i}),j=Fv(Object.assign({},S,P)),T=p===ec?j:C,E={top:k.top-T.top+y.top,bottom:T.bottom-k.bottom+y.bottom,left:k.left-T.left+y.left,right:T.right-k.right+y.right},F=e.modifiersData.offset;if(p===ec&&F){var Y=F[i];Object.keys(E).forEach(function(q){var M=[kr,wr].indexOf(q)>=0?1:-1,N=[On,wr].indexOf(q)>=0?"y":"x";E[q]+=Y[N]*M})}return E}function mX(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?nT:c,d=vl(r),f=d?l?Ew:Ew.filter(function(g){return vl(g)===d}):ed,p=f.filter(function(g){return u.indexOf(g)>=0});p.length===0&&(p=f);var h=p.reduce(function(g,b){return g[b]=ju(e,{placement:b,boundary:i,rootBoundary:o,padding:a})[ai(b)],g},{});return Object.keys(h).sort(function(g,b){return h[g]-h[b]})}function hX(e){if(ai(e)===Gb)return[];var t=Uf(e);return[zw(e),t,zw(t)]}function gX(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,b=n.allowedAutoPlacements,x=t.options.placement,y=ai(x),v=y===x,S=c||(v||!g?[Uf(x)]:hX(x)),w=[x].concat(S).reduce(function(Q,oe){return Q.concat(ai(oe)===Gb?mX(t,{placement:oe,boundary:d,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:b}):oe)},[]),k=t.rects.reference,C=t.rects.popper,P=new Map,j=!0,T=w[0],E=0;E=0,N=M?"width":"height",D=ju(t,{placement:F,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),R=M?q?kr:Fn:q?wr:On;k[N]>C[N]&&(R=Uf(R));var I=Uf(R),L=[];if(o&&L.push(D[Y]<=0),l&&L.push(D[R]<=0,D[I]<=0),L.every(function(Q){return Q})){T=F,j=!1;break}P.set(F,L)}if(j)for(var H=g?3:1,Z=function(oe){var ce=w.find(function(Me){var Qe=P.get(Me);if(Qe)return Qe.slice(0,oe).every(function(te){return te})});if(ce)return T=ce,"break"},le=H;le>0;le--){var ie=Z(le);if(ie==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const vX={name:"flip",enabled:!0,phase:"main",fn:gX,requiresIfExists:["offset"],data:{_skip:!1}};function Rw(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Mw(e){return[On,kr,wr,Fn].some(function(t){return e[t]>=0})}function yX(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ju(t,{elementContext:"reference"}),l=ju(t,{altBoundary:!0}),c=Rw(a,r),u=Rw(l,i,o),d=Mw(c),f=Mw(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const bX={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yX};function xX(e,t,n){var r=ai(e),i=[Fn,On].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],l=o[1];return a=a||0,l=(l||0)*i,[Fn,kr].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function SX(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=nT.reduce(function(d,f){return d[f]=xX(f,t.rects,o),d},{}),l=a[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const wX={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:SX};function kX(e){var t=e.state,n=e.name;t.modifiersData[n]=cT({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const CX={name:"popperOffsets",enabled:!0,phase:"read",fn:kX,data:{}};function jX(e){return e==="x"?"y":"x"}function PX(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,g=n.tetherOffset,b=g===void 0?0:g,x=ju(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),y=ai(t.placement),v=vl(t.placement),S=!v,w=Xb(y),k=jX(w),C=t.modifiersData.popperOffsets,P=t.rects.reference,j=t.rects.popper,T=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,E=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(C){if(o){var q,M=w==="y"?On:Fn,N=w==="y"?wr:kr,D=w==="y"?"height":"width",R=C[w],I=R+x[M],L=R-x[N],H=h?-j[D]/2:0,Z=v===ml?P[D]:j[D],le=v===ml?-j[D]:-P[D],ie=t.elements.arrow,Q=h&&ie?qb(ie):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:oT(),ce=oe[M],Me=oe[N],Qe=Dc(0,P[D],Q[D]),te=S?P[D]/2-H-Qe-ce-E.mainAxis:Z-Qe-ce-E.mainAxis,ne=S?-P[D]/2+H+Qe+Me+E.mainAxis:le+Qe+Me+E.mainAxis,_e=t.elements.arrow&&td(t.elements.arrow),ve=_e?w==="y"?_e.clientTop||0:_e.clientLeft||0:0,Ke=(q=F==null?void 0:F[w])!=null?q:0,se=R+te-Ke-ve,tt=R+ne-Ke,Ne=Dc(h?Op(I,se):I,R,h?wa(L,tt):L);C[w]=Ne,Y[w]=Ne-R}if(l){var kt,Ce=w==="x"?On:Fn,Yt=w==="x"?wr:kr,Et=C[k],An=k==="y"?"height":"width",$n=Et+x[Ce],ue=Et-x[Yt],sr=[On,Fn].indexOf(y)!==-1,ci=(kt=F==null?void 0:F[k])!=null?kt:0,Ka=sr?$n:Et-P[An]-j[An]-ci+E.altAxis,qa=sr?Et+P[An]+j[An]-ci-E.altAxis:ue,X=h&&sr?Yq(Ka,Et,qa):Dc(h?Ka:$n,Et,h?qa:ue);C[k]=X,Y[k]=X-Et}t.modifiersData[r]=Y}}const _X={name:"preventOverflow",enabled:!0,phase:"main",fn:PX,requiresIfExists:["offset"]};function TX(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function EX(e){return e===er(e)||!br(e)?Yb(e):TX(e)}function AX(e){var t=e.getBoundingClientRect(),n=hl(t.width)/e.offsetWidth||1,r=hl(t.height)/e.offsetHeight||1;return n!==1||r!==1}function $X(e,t,n){n===void 0&&(n=!1);var r=br(t),i=br(t)&&AX(t),o=No(t),a=gl(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((si(t)!=="body"||Zb(o))&&(l=EX(t)),br(t)?(c=gl(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Qb(o))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function zX(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function IX(e){var t=zX(e);return Uq.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function RX(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function MX(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Lw={placement:"bottom",modifiers:[],strategy:"absolute"};function Nw(){for(var e=arguments.length,t=new Array(e),n=0;n({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),nn={arrowShadowColor:es("--popper-arrow-shadow-color"),arrowSize:es("--popper-arrow-size","8px"),arrowSizeHalf:es("--popper-arrow-size-half"),arrowBg:es("--popper-arrow-bg"),transformOrigin:es("--popper-transform-origin"),arrowOffset:es("--popper-arrow-offset")};function OX(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}const FX={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},BX=e=>FX[e],Dw={scroll:!0,resize:!0};function VX(e){let t;return typeof e=="object"?t={enabled:!0,options:{...Dw,...e}}:t={enabled:e,options:Dw},t}const WX={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},UX={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Ow(e)},effect:({state:e})=>()=>{Ow(e)}},Ow=e=>{e.elements.popper.style.setProperty(nn.transformOrigin.var,BX(e.placement))},HX={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{GX(e)}},GX=e=>{var n;if(!e.placement)return;const t=KX(e.placement);if((n=e.elements)!=null&&n.arrow&&t){Object.assign(e.elements.arrow.style,{[t.property]:t.value,width:nn.arrowSize.varRef,height:nn.arrowSize.varRef,zIndex:-1});const r={[nn.arrowSizeHalf.var]:`calc(${nn.arrowSize.varRef} / 2 - 1px)`,[nn.arrowOffset.var]:`calc(${nn.arrowSizeHalf.varRef} * -1)`};for(const i in r)e.elements.arrow.style.setProperty(i,r[i])}},KX=e=>{if(e.startsWith("top"))return{property:"bottom",value:nn.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:nn.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:nn.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:nn.arrowOffset.varRef}},qX={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Fw(e)},effect:({state:e})=>()=>{Fw(e)}},Fw=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=OX(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:nn.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},XX={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},YX={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function QX(e,t="ltr"){var r;const n=((r=XX[e])==null?void 0:r[t])||e;return t==="ltr"?n:YX[e]??n}function ZX(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:i="absolute",arrowPadding:o=8,eventListeners:a=!0,offset:l,gutter:c=8,flip:u=!0,boundary:d="clippingParents",preventOverflow:f=!0,matchWidth:p,direction:h="ltr"}=e,g=m.useRef(null),b=m.useRef(null),x=m.useRef(null),y=QX(r,h),v=m.useRef(()=>{}),S=m.useCallback(()=>{var E;!t||!g.current||!b.current||((E=v.current)==null||E.call(v),x.current=DX(g.current,b.current,{placement:y,modifiers:[qX,HX,UX,{...WX,enabled:!!p},{name:"eventListeners",...VX(a)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:l??[0,c]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!f,options:{boundary:d}},...n??[]],strategy:i}),x.current.forceUpdate(),v.current=x.current.destroy)},[y,t,n,p,a,o,l,c,u,f,d,i]);m.useEffect(()=>()=>{var E;!g.current&&!b.current&&((E=x.current)==null||E.destroy(),x.current=null)},[]);const w=m.useCallback(E=>{g.current=E,S()},[S]),k=m.useCallback((E={},F=null)=>({...E,ref:_t(w,F)}),[w]),C=m.useCallback(E=>{b.current=E,S()},[S]),P=m.useCallback((E={},F=null)=>({...E,ref:_t(C,F),style:{...E.style,position:i,minWidth:p?void 0:"max-content",inset:"0 auto auto 0"}}),[i,C,p]),j=m.useCallback((E={},F=null)=>{const{size:Y,shadowColor:q,bg:M,style:N,...D}=E;return{...D,ref:F,"data-popper-arrow":"",style:JX(E)}},[]),T=m.useCallback((E={},F=null)=>({...E,ref:F,"data-popper-arrow-inner":""}),[]);return{update(){var E;(E=x.current)==null||E.update()},forceUpdate(){var E;(E=x.current)==null||E.forceUpdate()},transformOrigin:nn.transformOrigin.varRef,referenceRef:w,popperRef:C,getPopperProps:P,getArrowProps:j,getArrowInnerProps:T,getReferenceProps:k}}function JX(e){const{size:t,shadowColor:n,bg:r,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}const[tde,nde,rde,ide]=yG(),[ode,eY]=Te({strict:!1,name:"MenuContext"});var tY=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ts=new WeakMap,Xd=new WeakMap,Yd={},I0=0,uT=function(e){return e&&(e.host||uT(e.parentNode))},nY=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=uT(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},rY=function(e,t,n,r){var i=nY(t,Array.isArray(e)?e:[e]);Yd[n]||(Yd[n]=new WeakMap);var o=Yd[n],a=[],l=new Set,c=new Set(i),u=function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))};i.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(p){if(l.has(p))d(p);else try{var h=p.getAttribute(r),g=h!==null&&h!=="false",b=(ts.get(p)||0)+1,x=(o.get(p)||0)+1;ts.set(p,b),o.set(p,x),a.push(p),b===1&&g&&Xd.set(p,!0),x===1&&p.setAttribute(n,"true"),g||p.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return d(t),l.clear(),I0++,function(){a.forEach(function(f){var p=ts.get(f)-1,h=o.get(f)-1;ts.set(f,p),o.set(f,h),p||(Xd.has(f)||f.removeAttribute(r),Xd.delete(f)),h||f.removeAttribute(n)}),I0--,I0||(ts=new WeakMap,ts=new WeakMap,Xd=new WeakMap,Yd={})}},iY=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=tY(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),rY(r,i,n,"aria-hidden")):function(){return null}},oY=Object.defineProperty,aY=(e,t,n)=>t in e?oY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sY=(e,t,n)=>(aY(e,t+"",n),n);class lY{constructor(){sY(this,"modals"),this.modals=new Set}add(t){return this.modals.add(t),this.modals.size}remove(t){this.modals.delete(t)}isTopModal(t){if(!t)return!1;const n=Array.from(this.modals)[this.modals.size-1];return t===n}}const Bv=new lY;function dT(e,t){const[n,r]=m.useState(0);return m.useEffect(()=>{const i=e.current;if(i){if(t){const o=Bv.add(i);r(o)}return()=>{Bv.remove(i),r(0)}}},[t,e]),n}function cY(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:a=!0,onOverlayClick:l,onEsc:c}=e,u=m.useRef(null),d=m.useRef(null),[f,p,h]=dY(r,"chakra-modal","chakra-modal--header","chakra-modal--body");uY(u,t&&a);const g=dT(u,t),b=m.useRef(null),x=m.useCallback(T=>{b.current=T.target},[]),y=m.useCallback(T=>{T.key==="Escape"&&(T.stopPropagation(),o&&(n==null||n()),c==null||c())},[o,n,c]),[v,S]=m.useState(!1),[w,k]=m.useState(!1),C=m.useCallback((T={},E=null)=>({role:"dialog",...T,ref:_t(E,u),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":v?p:void 0,"aria-describedby":w?h:void 0,onClick:fe(T.onClick,F=>F.stopPropagation())}),[h,w,f,p,v]),P=m.useCallback(T=>{T.stopPropagation(),b.current===T.target&&Bv.isTopModal(u.current)&&(i&&(n==null||n()),l==null||l())},[n,i,l]),j=m.useCallback((T={},E=null)=>({...T,ref:_t(E,d),onClick:fe(T.onClick,P),onKeyDown:fe(T.onKeyDown,y),onMouseDown:fe(T.onMouseDown,x)}),[y,x,P]);return{isOpen:t,onClose:n,headerId:p,bodyId:h,setBodyMounted:k,setHeaderMounted:S,dialogRef:u,overlayRef:d,getDialogProps:C,getDialogContainerProps:j,index:g}}function uY(e,t){const n=e.current;m.useEffect(()=>{if(!(!e.current||!t))return iY(e.current)},[t,e,n])}function dY(e,...t){const n=m.useId(),r=e||n;return m.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}const[fY,Va]=Te({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[pY,To]=Te({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),Wa=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames??!0},{portalProps:n,children:r,autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:l,returnFocusOnClose:c,blockScrollOnMount:u,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h,animatePresenceProps:g,onCloseComplete:b}=t,x=et("Modal",t),v={...cY(t),autoFocus:i,trapFocus:o,initialFocusRef:a,finalFocusRef:l,returnFocusOnClose:c,blockScrollOnMount:u,allowPinchZoom:d,preserveScrollBarGap:f,motionPreset:p,lockFocusAcrossFrames:h};return s.jsx(pY,{value:v,children:s.jsx(fY,{value:x,children:s.jsx(Ni,{...g,onExitComplete:b,children:v.isOpen&&s.jsx(El,{...n,children:r})})})})};Wa.displayName="Modal";var Hf="right-scroll-bar-position",Gf="width-before-scroll-bar",mY="with-scroll-bars-hidden",hY="--removed-body-scroll-bar-size",fT=w_(),R0=function(){},Bm=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:R0,onWheelCapture:R0,onTouchMoveCapture:R0}),i=r[0],o=r[1],a=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noRelative,g=e.noIsolation,b=e.inert,x=e.allowPinchZoom,y=e.as,v=y===void 0?"div":y,S=e.gapMode,w=b_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,C=y_([n,t]),P=Yr(Yr({},w),i);return m.createElement(m.Fragment,null,d&&m.createElement(k,{sideCar:fT,removeScrollBar:u,shards:f,noRelative:h,noIsolation:g,inert:b,setCallbacks:o,allowPinchZoom:!!x,lockRef:n,gapMode:S}),a?m.cloneElement(m.Children.only(l),Yr(Yr({},P),{ref:C})):m.createElement(v,Yr({},P,{className:c,ref:C}),l))});Bm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Bm.classNames={fullWidth:Gf,zeroRight:Hf};var gY=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function vY(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=gY();return t&&e.setAttribute("nonce",t),e}function yY(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function bY(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var xY=function(){var e=0,t=null;return{add:function(n){e==0&&(t=vY())&&(yY(t,n),bY(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},SY=function(){var e=xY();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},pT=function(){var e=SY(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},wY={left:0,top:0,right:0,gap:0},M0=function(e){return parseInt(e||"",10)||0},kY=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[M0(n),M0(r),M0(i)]},CY=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return wY;var t=kY(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},jY=pT(),Qs="data-scroll-locked",PY=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),` - .`.concat(mY,` { - overflow: hidden `).concat(r,`; - padding-right: `).concat(l,"px ").concat(r,`; - } - body[`).concat(Qs,`] { - overflow: hidden `).concat(r,`; - overscroll-behavior: contain; - `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` - padding-left: `.concat(i,`px; - padding-top: `).concat(o,`px; - padding-right: `).concat(a,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(l,"px ").concat(r,`; - `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),` - } - - .`).concat(Hf,` { - right: `).concat(l,"px ").concat(r,`; - } - - .`).concat(Gf,` { - margin-right: `).concat(l,"px ").concat(r,`; - } - - .`).concat(Hf," .").concat(Hf,` { - right: 0 `).concat(r,`; - } - - .`).concat(Gf," .").concat(Gf,` { - margin-right: 0 `).concat(r,`; - } - - body[`).concat(Qs,`] { - `).concat(hY,": ").concat(l,`px; - } -`)},Bw=function(){var e=parseInt(document.body.getAttribute(Qs)||"0",10);return isFinite(e)?e:0},_Y=function(){m.useEffect(function(){return document.body.setAttribute(Qs,(Bw()+1).toString()),function(){var e=Bw()-1;e<=0?document.body.removeAttribute(Qs):document.body.setAttribute(Qs,e.toString())}},[])},TY=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;_Y();var o=m.useMemo(function(){return CY(i)},[i]);return m.createElement(jY,{styles:PY(o,!t,i,n?"":"!important")})},Vv=!1;if(typeof window<"u")try{var Qd=Object.defineProperty({},"passive",{get:function(){return Vv=!0,!0}});window.addEventListener("test",Qd,Qd),window.removeEventListener("test",Qd,Qd)}catch{Vv=!1}var ns=Vv?{passive:!1}:!1,EY=function(e){return e.tagName==="TEXTAREA"},mT=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!EY(e)&&n[t]==="visible")},AY=function(e){return mT(e,"overflowY")},$Y=function(e){return mT(e,"overflowX")},Vw=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=hT(e,r);if(i){var o=gT(e,r),a=o[1],l=o[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},zY=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},IY=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},hT=function(e,t){return e==="v"?AY(t):$Y(t)},gT=function(e,t){return e==="v"?zY(t):IY(t)},RY=function(e,t){return e==="h"&&t==="rtl"?-1:1},MY=function(e,t,n,r,i){var o=RY(e,window.getComputedStyle(t).direction),a=o*r,l=n.target,c=t.contains(l),u=!1,d=a>0,f=0,p=0;do{if(!l)break;var h=gT(e,l),g=h[0],b=h[1],x=h[2],y=b-x-o*g;(g||y)&&hT(e,l)&&(f+=y,p+=g);var v=l.parentNode;l=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&Math.abs(f)<1||!d&&Math.abs(p)<1)&&(u=!0),u},Zd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ww=function(e){return[e.deltaX,e.deltaY]},Uw=function(e){return e&&"current"in e?e.current:e},LY=function(e,t){return e[0]===t[0]&&e[1]===t[1]},NY=function(e){return` - .block-interactivity-`.concat(e,` {pointer-events: none;} - .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},DY=0,rs=[];function OY(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),i=m.useState(DY++)[0],o=m.useState(pT)[0],a=m.useRef(e);m.useEffect(function(){a.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var b=uK([e.lockRef.current],(e.shards||[]).map(Uw),!0).filter(Boolean);return b.forEach(function(x){return x.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),b.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=m.useCallback(function(b,x){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!a.current.allowPinchZoom;var y=Zd(b),v=n.current,S="deltaX"in b?b.deltaX:v[0]-y[0],w="deltaY"in b?b.deltaY:v[1]-y[1],k,C=b.target,P=Math.abs(S)>Math.abs(w)?"h":"v";if("touches"in b&&P==="h"&&C.type==="range")return!1;var j=window.getSelection(),T=j&&j.anchorNode,E=T?T===C||T.contains(C):!1;if(E)return!1;var F=Vw(P,C);if(!F)return!0;if(F?k=P:(k=P==="v"?"h":"v",F=Vw(P,C)),!F)return!1;if(!r.current&&"changedTouches"in b&&(S||w)&&(r.current=k),!k)return!0;var Y=r.current||k;return MY(Y,x,b,Y==="h"?S:w)},[]),c=m.useCallback(function(b){var x=b;if(!(!rs.length||rs[rs.length-1]!==o)){var y="deltaY"in x?Ww(x):Zd(x),v=t.current.filter(function(k){return k.name===x.type&&(k.target===x.target||x.target===k.shadowParent)&&LY(k.delta,y)})[0];if(v&&v.should){x.cancelable&&x.preventDefault();return}if(!v){var S=(a.current.shards||[]).map(Uw).filter(Boolean).filter(function(k){return k.contains(x.target)}),w=S.length>0?l(x,S[0]):!a.current.noIsolation;w&&x.cancelable&&x.preventDefault()}}},[]),u=m.useCallback(function(b,x,y,v){var S={name:b,delta:x,target:y,should:v,shadowParent:FY(y)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(w){return w!==S})},1)},[]),d=m.useCallback(function(b){n.current=Zd(b),r.current=void 0},[]),f=m.useCallback(function(b){u(b.type,Ww(b),b.target,l(b,e.lockRef.current))},[]),p=m.useCallback(function(b){u(b.type,Zd(b),b.target,l(b,e.lockRef.current))},[]);m.useEffect(function(){return rs.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,ns),document.addEventListener("touchmove",c,ns),document.addEventListener("touchstart",d,ns),function(){rs=rs.filter(function(b){return b!==o}),document.removeEventListener("wheel",c,ns),document.removeEventListener("touchmove",c,ns),document.removeEventListener("touchstart",d,ns)}},[]);var h=e.removeScrollBar,g=e.inert;return m.createElement(m.Fragment,null,g?m.createElement(o,{styles:NY(i)}):null,h?m.createElement(TY,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function FY(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const BY=dK(fT,OY);var vT=m.forwardRef(function(e,t){return m.createElement(Bm,Yr({},e,{ref:t,sideCar:BY}))});vT.classNames=Bm.classNames;function yT(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:a,finalFocusRef:l,returnFocusOnClose:c,preserveScrollBarGap:u,lockFocusAcrossFrames:d,isOpen:f}=To(),[p,h]=V1();m.useEffect(()=>{!p&&h&&setTimeout(h)},[p,h]);const g=dT(r,f);return s.jsx(X_,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:l,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:d,children:s.jsx(vT,{removeScrollBar:!u,allowPinchZoom:a,enabled:g===1&&o,forwardProps:!0,children:e.children})})}const VY={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:i})=>({opacity:0,x:e,y:t,transition:(n==null?void 0:n.exit)??Lr.exit(ba.exit,i),transitionEnd:r==null?void 0:r.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:(e==null?void 0:e.enter)??Lr.enter(ba.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:i,delay:o})=>{const a={x:t,y:e};return{opacity:0,transition:(n==null?void 0:n.exit)??Lr.exit(ba.exit,o),...i?{...a,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...a,...r==null?void 0:r.exit}}}}},lo={initial:"initial",animate:"enter",exit:"exit",variants:VY},WY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:o=!0,className:a,offsetX:l=0,offsetY:c=8,transition:u,transitionEnd:d,delay:f,animatePresenceProps:p,...h}=t,g=r?i&&r:!0,b=i||r?"enter":"exit",x={offsetX:l,offsetY:c,reverse:o,transition:u,transitionEnd:d,delay:f};return s.jsx(Ni,{...p,custom:x,children:g&&s.jsx(ir.div,{ref:n,className:W("chakra-offset-slide",a),custom:x,...lo,animate:b,...h})})});WY.displayName="SlideFade";const UY={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:i})=>({opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(n==null?void 0:n.exit)??Lr.exit(ba.exit,i)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:(t==null?void 0:t.enter)??Lr.enter(ba.enter,n),transitionEnd:e==null?void 0:e.enter})},Jb={initial:"exit",animate:"enter",exit:"exit",variants:UY},HY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:o=!0,initialScale:a=.95,className:l,transition:c,transitionEnd:u,delay:d,animatePresenceProps:f,...p}=t,h=r?i&&r:!0,g=i||r?"enter":"exit",b={initialScale:a,reverse:o,transition:c,transitionEnd:u,delay:d};return s.jsx(Ni,{...f,custom:b,children:h&&s.jsx(ir.div,{ref:n,className:W("chakra-offset-slide",l),...Jb,animate:g,custom:b,...p})})});HY.displayName="ScaleFade";const GY={slideInBottom:{...lo,custom:{offsetY:16,reverse:!0}},slideInRight:{...lo,custom:{offsetX:16,reverse:!0}},slideInTop:{...lo,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...lo,custom:{offsetX:-16,reverse:!0}},scale:{...Jb,custom:{initialScale:.95,reverse:!0}},none:{}},KY=O(ir.section),qY=e=>GY[e||"none"],bT=m.forwardRef((e,t)=>{const{preset:n,motionProps:r=qY(n),...i}=e;return s.jsx(KY,{ref:t,...r,...i})});bT.displayName="ModalTransition";const $l=V((e,t)=>{const{className:n,children:r,containerProps:i,motionProps:o,...a}=e,{getDialogProps:l,getDialogContainerProps:c}=To(),u=l(a,t),d=c(i),f=W("chakra-modal__content",n),p=Va(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...p.dialog},g={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...p.dialogContainer},{motionPreset:b}=To();return s.jsx(yT,{children:s.jsx(O.div,{...d,className:"chakra-modal__content-container",tabIndex:-1,__css:g,children:s.jsx(bT,{preset:b,motionProps:o,className:f,...u,__css:h,children:r})})})});$l.displayName="ModalContent";const Do=V((e,t)=>{const{className:n,...r}=e,{bodyId:i,setBodyMounted:o}=To();m.useEffect(()=>(o(!0),()=>o(!1)),[o]);const a=W("chakra-modal__body",n),l=Va();return s.jsx(O.div,{ref:t,className:a,id:i,...r,__css:l.body})});Do.displayName="ModalBody";const Ua=V((e,t)=>{const{onClick:n,className:r,...i}=e,{onClose:o}=To(),a=W("chakra-modal__close-btn",r),l=Va();return s.jsx(Mm,{ref:t,__css:l.closeButton,className:a,onClick:fe(n,c=>{c.stopPropagation(),o()}),...i})});Ua.displayName="ModalCloseButton";const zl=V((e,t)=>{const{className:n,...r}=e,i=W("chakra-modal__footer",n),o=Va(),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...o.footer};return s.jsx(O.footer,{ref:t,...r,__css:a,className:i})});zl.displayName="ModalFooter";const Oo=V((e,t)=>{const{className:n,...r}=e,{headerId:i,setHeaderMounted:o}=To();m.useEffect(()=>(o(!0),()=>o(!1)),[o]);const a=W("chakra-modal__header",n),l=Va(),c={flex:0,...l.header};return s.jsx(O.header,{ref:t,className:a,id:i,...r,__css:c})});Oo.displayName="ModalHeader";const XY={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:(e==null?void 0:e.enter)??Lr.enter(ba.enter,n),transitionEnd:t==null?void 0:t.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:(e==null?void 0:e.exit)??Lr.exit(ba.exit,n),transitionEnd:t==null?void 0:t.exit})},xT={initial:"exit",animate:"enter",exit:"exit",variants:XY},YY=m.forwardRef(function(t,n){const{unmountOnExit:r,in:i,className:o,transition:a,transitionEnd:l,delay:c,animatePresenceProps:u,...d}=t,f=i||r?"enter":"exit",p=r?i&&r:!0,h={transition:a,transitionEnd:l,delay:c};return s.jsx(Ni,{...u,custom:h,children:p&&s.jsx(ir.div,{ref:n,className:W("chakra-fade",o),custom:h,...xT,animate:f,...d})})});YY.displayName="Fade";const QY=O(ir.div),Fo=V((e,t)=>{const{className:n,transition:r,motionProps:i,...o}=e,a=W("chakra-modal__overlay",n),c={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Va().overlay},{motionPreset:u}=To(),f=i||(u==="none"?{}:xT);return s.jsx(QY,{...f,__css:c,ref:t,className:a,...o})});Fo.displayName="ModalOverlay";function ZY(e){const{leastDestructiveRef:t,...n}=e;return s.jsx(Wa,{...n,initialFocusRef:t})}const JY=V((e,t)=>s.jsx($l,{ref:t,role:"alertdialog",...e})),[eQ,tQ]=Te(),nQ={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function rQ(e,t){var n;if(e)return((n=nQ[e])==null?void 0:n[t])??e}function ST(e){var u;const{isOpen:t,onClose:n,placement:r="right",children:i,...o}=e,a=Di(),l=(u=a.components)==null?void 0:u.Drawer,c=rQ(r,a.direction);return s.jsx(eQ,{value:{placement:c},children:s.jsx(Wa,{isOpen:t,onClose:n,styleConfig:l,...o,children:i})})}const Hw={exit:{duration:.15,ease:Si.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},iQ={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:i}=Tv({direction:e});return{...i,transition:(t==null?void 0:t.exit)??Lr.exit(Hw.exit,r),transitionEnd:n==null?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:i}=Tv({direction:e});return{...i,transition:(n==null?void 0:n.enter)??Lr.enter(Hw.enter,r),transitionEnd:t==null?void 0:t.enter}}},wT=m.forwardRef(function(t,n){const{direction:r="right",style:i,unmountOnExit:o,in:a,className:l,transition:c,transitionEnd:u,delay:d,motionProps:f,animatePresenceProps:p,...h}=t,g=Tv({direction:r}),b=Object.assign({position:"fixed"},g.position,i),x=o?a&&o:!0,y=a||o?"enter":"exit",v={transitionEnd:u,transition:c,direction:r,delay:d};return s.jsx(Ni,{...p,custom:v,children:x&&s.jsx(ir.div,{...h,ref:n,initial:"exit",className:W("chakra-slide",l),animate:y,exit:"exit",custom:v,variants:iQ,style:b,...f})})});wT.displayName="Slide";const oQ=O(wT),ex=V((e,t)=>{const{className:n,children:r,motionProps:i,containerProps:o,...a}=e,{getDialogProps:l,getDialogContainerProps:c,isOpen:u}=To(),d=l(a,t),f=c(o),p=W("chakra-modal__content",n),h=Va(),g={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},b={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{placement:x}=tQ();return s.jsx(yT,{children:s.jsx(O.div,{...f,className:"chakra-modal__content-container",__css:b,children:s.jsx(oQ,{motionProps:i,direction:x,in:u,className:p,...d,__css:g,children:r})})})});ex.displayName="DrawerContent";const aQ=e=>s.jsx(wt,{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),sQ=e=>s.jsx(wt,{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function Gw(e,t,n,r){m.useEffect(()=>{if(!e.current||!r)return;const i=e.current.ownerDocument.defaultView??window,o=Array.isArray(t)?t:[t],a=new i.MutationObserver(l=>{for(const c of l)c.type==="attributes"&&c.attributeName&&o.includes(c.attributeName)&&n(c)});return a.observe(e.current,{attributes:!0,attributeFilter:o}),()=>a.disconnect()})}const lQ=50,Kw=300;function cQ(e,t){const[n,r]=m.useState(!1),[i,o]=m.useState(null),[a,l]=m.useState(!0),c=m.useRef(null),u=()=>clearTimeout(c.current);kz(()=>{i==="increment"&&e(),i==="decrement"&&t()},n?lQ:null);const d=m.useCallback(()=>{a&&e(),c.current=setTimeout(()=>{l(!1),r(!0),o("increment")},Kw)},[e,a]),f=m.useCallback(()=>{a&&t(),c.current=setTimeout(()=>{l(!1),r(!0),o("decrement")},Kw)},[t,a]),p=m.useCallback(()=>{l(!0),r(!1),u()},[]);return m.useEffect(()=>()=>u(),[]),{up:d,down:f,stop:p,isSpinning:n}}const uQ=/^[Ee0-9+\-.]$/;function dQ(e){return uQ.test(e)}function fQ(e,t){if(e.key==null)return!0;const n=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||n?!0:t(e.key)}function pQ(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:i=Number.MIN_SAFE_INTEGER,max:o=Number.MAX_SAFE_INTEGER,step:a=1,isReadOnly:l,isDisabled:c,isRequired:u,isInvalid:d,pattern:f="[0-9]*(.[0-9]+)?",inputMode:p="decimal",allowMouseWheel:h,id:g,onChange:b,precision:x,name:y,"aria-describedby":v,"aria-label":S,"aria-labelledby":w,onFocus:k,onBlur:C,onInvalid:P,getAriaValueText:j,isValidCharacter:T,format:E,parse:F,...Y}=e,q=Ht(k),M=Ht(C),N=Ht(P),D=Ht(T??dQ),R=Ht(j),I=hz(e),{update:L,increment:H,decrement:Z}=I,[le,ie]=m.useState(!1),Q=!(l||c),oe=m.useRef(null),ce=m.useRef(null),Me=m.useRef(null),Qe=m.useRef(null),te=m.useCallback(X=>X.split("").filter(D).join(""),[D]),ne=m.useCallback(X=>(F==null?void 0:F(X))??X,[F]),_e=m.useCallback(X=>((E==null?void 0:E(X))??X).toString(),[E]);lu(()=>{(I.valueAsNumber>o||I.valueAsNumber{if(!oe.current)return;if(oe.current.value!=I.value){const nt=ne(oe.current.value);I.setValue(te(nt))}},[ne,te]);const ve=m.useCallback((X=a)=>{Q&&H(X)},[H,Q,a]),Ke=m.useCallback((X=a)=>{Q&&Z(X)},[Z,Q,a]),se=cQ(ve,Ke);Gw(Me,"disabled",se.stop,se.isSpinning),Gw(Qe,"disabled",se.stop,se.isSpinning);const tt=m.useCallback(X=>{if(X.nativeEvent.isComposing)return;const un=ne(X.currentTarget.value);L(te(un)),ce.current={start:X.currentTarget.selectionStart,end:X.currentTarget.selectionEnd}},[L,te,ne]),Ne=m.useCallback(X=>{var nt;q==null||q(X),ce.current&&(X.currentTarget.selectionStart=ce.current.start??((nt=X.currentTarget.value)==null?void 0:nt.length),X.currentTarget.selectionEnd=ce.current.end??X.currentTarget.selectionStart)},[q]),kt=m.useCallback(X=>{if(X.nativeEvent.isComposing)return;fQ(X,D)||X.preventDefault();const nt=Ce(X)*a,un=X.key,Ui={ArrowUp:()=>ve(nt),ArrowDown:()=>Ke(nt),Home:()=>L(i),End:()=>L(o)}[un];Ui&&(X.preventDefault(),Ui(X))},[D,a,ve,Ke,L,i,o]),Ce=X=>{let nt=1;return(X.metaKey||X.ctrlKey)&&(nt=.1),X.shiftKey&&(nt=10),nt},Yt=m.useMemo(()=>{const X=R==null?void 0:R(I.value);if(X!=null)return X;const nt=I.value.toString();return nt||void 0},[I.value,R]),Et=m.useCallback(()=>{let X=I.value;if(I.value==="")return;/^[eE]/.test(I.value.toString())?I.setValue(""):(I.valueAsNumbero&&(X=o),I.cast(X))},[I,o,i]),An=m.useCallback(()=>{ie(!1),n&&Et()},[n,ie,Et]),$n=m.useCallback(()=>{t&&requestAnimationFrame(()=>{var X;(X=oe.current)==null||X.focus()})},[t]),ue=m.useCallback(X=>{X.preventDefault(),se.up(),$n()},[$n,se]),sr=m.useCallback(X=>{X.preventDefault(),se.down(),$n()},[$n,se]);_c(()=>oe.current,"wheel",X=>{var dd;const un=(((dd=oe.current)==null?void 0:dd.ownerDocument)??document).activeElement===oe.current;if(!h||!un)return;X.preventDefault();const lr=Ce(X)*a,Ui=Math.sign(X.deltaY);Ui===-1?ve(lr):Ui===1&&Ke(lr)},{passive:!1});const ci=m.useCallback((X={},nt=null)=>{const un=c||r&&I.isAtMax;return{...X,ref:_t(nt,Me),role:"button",tabIndex:-1,onPointerDown:fe(X.onPointerDown,lr=>{lr.button!==0||un||ue(lr)}),onPointerLeave:fe(X.onPointerLeave,se.stop),onPointerUp:fe(X.onPointerUp,se.stop),disabled:un,"aria-disabled":yr(un)}},[I.isAtMax,r,ue,se.stop,c]),Ka=m.useCallback((X={},nt=null)=>{const un=c||r&&I.isAtMin;return{...X,ref:_t(nt,Qe),role:"button",tabIndex:-1,onPointerDown:fe(X.onPointerDown,lr=>{lr.button!==0||un||sr(lr)}),onPointerLeave:fe(X.onPointerLeave,se.stop),onPointerUp:fe(X.onPointerUp,se.stop),disabled:un,"aria-disabled":yr(un)}},[I.isAtMin,r,sr,se.stop,c]),qa=m.useCallback((X={},nt=null)=>({name:y,inputMode:p,type:"text",pattern:f,"aria-labelledby":w,"aria-label":S,"aria-describedby":v,id:g,disabled:c,role:"spinbutton",...X,readOnly:X.readOnly??l,"aria-readonly":X.readOnly??l,"aria-required":X.required??u,required:X.required??u,ref:_t(oe,nt),value:_e(I.value),"aria-valuemin":i,"aria-valuemax":o,"aria-valuenow":Number.isNaN(I.valueAsNumber)?void 0:I.valueAsNumber,"aria-invalid":yr(d??I.isOutOfRange),"aria-valuetext":Yt,autoComplete:"off",autoCorrect:"off",onChange:fe(X.onChange,tt),onKeyDown:fe(X.onKeyDown,kt),onFocus:fe(X.onFocus,Ne,()=>ie(!0)),onBlur:fe(X.onBlur,M,An)}),[y,p,f,w,S,_e,v,g,c,u,l,d,I.value,I.valueAsNumber,I.isOutOfRange,i,o,Yt,tt,kt,Ne,M,An]);return{value:_e(I.value),valueAsNumber:I.valueAsNumber,isFocused:le,isDisabled:c,isReadOnly:l,getIncrementButtonProps:ci,getDecrementButtonProps:Ka,getInputProps:qa,htmlProps:Y}}const[mQ,Vm]=Te({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[hQ,tx]=Te({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),kT=V(function(t,n){const r=et("NumberInput",t),i=Ie(t),o=_b(i),{htmlProps:a,...l}=pQ(o),c=m.useMemo(()=>l,[l]);return s.jsx(hQ,{value:c,children:s.jsx(mQ,{value:r,children:s.jsx(O.div,{...a,ref:n,className:W("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...r.root}})})})});kT.displayName="NumberInput";const CT=V(function(t,n){const r=Vm();return s.jsx(O.div,{"aria-hidden":!0,ref:n,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...r.stepperGroup}})});CT.displayName="NumberInputStepper";const jT=V(function(t,n){const{getInputProps:r}=tx(),i=r(t,n),o=Vm();return s.jsx(O.input,{...i,className:W("chakra-numberinput__field",t.className),__css:{width:"100%",...o.field}})});jT.displayName="NumberInputField";const PT=O("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),_T=V(function(t,n){const r=Vm(),{getDecrementButtonProps:i}=tx(),o=i(t,n);return s.jsx(PT,{...o,__css:r.stepper,children:t.children??s.jsx(aQ,{})})});_T.displayName="NumberDecrementStepper";const TT=V(function(t,n){const{getIncrementButtonProps:r}=tx(),i=r(t,n),o=Vm();return s.jsx(PT,{...i,__css:o.stepper,children:t.children??s.jsx(sQ,{})})});TT.displayName="NumberIncrementStepper";function gQ(e){var n;const t=m.version;return typeof t!="string"||t.startsWith("18.")?e==null?void 0:e.ref:(n=e==null?void 0:e.props)==null?void 0:n.ref}function vQ(e,t,n){return(e-t)*100/(n-t)}Uu({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});Uu({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});const yQ=Uu({"0%":{left:"-40%"},"100%":{left:"100%"}}),bQ=Uu({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function xQ(e){const{value:t=0,min:n,max:r,valueText:i,getValueText:o,isIndeterminate:a,role:l="progressbar"}=e,c=vQ(t,n,r);return{bind:{"data-indeterminate":a?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":a?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof o=="function"?o(t,c):i})(),role:l},percent:c,value:t}}const[SQ,wQ]=Te({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),kQ=V((e,t)=>{const{min:n,max:r,value:i,isIndeterminate:o,role:a,...l}=e,c=xQ({value:i,min:n,max:r,isIndeterminate:o,role:a}),d={height:"100%",...wQ().filledTrack};return s.jsx(O.div,{ref:t,style:{width:`${c.percent}%`,...l.style},...c.bind,...l,__css:d})}),Fp=V((e,t)=>{var P;const{value:n,min:r=0,max:i=100,hasStripe:o,isAnimated:a,children:l,borderRadius:c,isIndeterminate:u,"aria-label":d,"aria-labelledby":f,"aria-valuetext":p,title:h,role:g,...b}=Ie(e),x=et("Progress",e),y=c??((P=x.track)==null?void 0:P.borderRadius),v={animation:`${bQ} 1s linear infinite`},k={...!u&&o&&a&&v,...u&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${yQ} 1s ease infinite normal none running`}},C={overflow:"hidden",position:"relative",...x.track};return s.jsx(O.div,{ref:t,borderRadius:y,__css:C,...b,children:s.jsxs(SQ,{value:x,children:[s.jsx(kQ,{"aria-label":d,"aria-labelledby":f,"aria-valuetext":p,min:r,max:i,value:n,isIndeterminate:u,css:k,borderRadius:y,title:h,role:g}),l]})})});Fp.displayName="Progress";function CQ(e){return e&&Ft(e)&&Ft(e.target)}function jQ(e={}){const{onChange:t,value:n,defaultValue:r,name:i,isDisabled:o,isFocusable:a,isNative:l,...c}=e,[u,d]=m.useState(r||""),f=typeof n<"u",p=f?n:u,h=m.useRef(null),g=m.useCallback(()=>{const k=h.current;if(!k)return;let C="input:not(:disabled):checked";const P=k.querySelector(C);if(P){P.focus();return}C="input:not(:disabled)";const j=k.querySelector(C);j==null||j.focus()},[]),x=`radio-${m.useId()}`,y=i||x,v=m.useCallback(k=>{const C=CQ(k)?k.target.value:k;f||d(C),t==null||t(String(C))},[t,f]),S=m.useCallback((k={},C=null)=>({...k,ref:_t(C,h),role:"radiogroup"}),[]),w=m.useCallback((k={},C=null)=>({...k,ref:C,name:y,[l?"checked":"isChecked"]:p!=null?k.value===p:void 0,onChange(j){v(j)},"data-radiogroup":!0}),[l,y,v,p]);return{getRootProps:S,getRadioProps:w,name:y,ref:h,focus:g,setValue:d,value:p,onChange:v,isDisabled:o,isFocusable:a,htmlProps:c}}const[PQ,ET]=Te({name:"RadioGroupContext",strict:!1}),AT=V((e,t)=>{const{colorScheme:n,size:r,variant:i,children:o,className:a,isDisabled:l,isFocusable:c,...u}=e,{value:d,onChange:f,getRootProps:p,name:h,htmlProps:g}=jQ(u),b=m.useMemo(()=>({name:h,size:r,onChange:f,colorScheme:n,value:d,variant:i,isDisabled:l,isFocusable:c}),[h,r,f,n,d,i,l,c]);return s.jsx(PQ,{value:b,children:s.jsx(O.div,{...p(g,t),className:W("chakra-radio-group",a),children:o})})});AT.displayName="RadioGroup";function _Q(e={}){const{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:i,isReadOnly:o,isRequired:a,onChange:l,isInvalid:c,name:u,value:d,id:f,"data-radiogroup":p,"aria-describedby":h,...g}=e,b=`radio-${m.useId()}`,x=Zu(),v=!!ET()||!!p;let w=!!x&&!v?x.id:b;w=f??w;const k=i??(x==null?void 0:x.isDisabled),C=o??(x==null?void 0:x.isReadOnly),P=a??(x==null?void 0:x.isRequired),j=c??(x==null?void 0:x.isInvalid),[T,E]=m.useState(!1),[F,Y]=m.useState(!1),[q,M]=m.useState(!1),[N,D]=m.useState(!!t),R=typeof n<"u",I=R?n:N,L=m.useRef(!1);m.useEffect(()=>u_(ne=>{L.current=ne}),[]);const H=m.useCallback(ne=>{if(C||k){ne.preventDefault();return}R||D(ne.currentTarget.checked),l==null||l(ne)},[R,k,C,l]),Z=m.useCallback(ne=>{ne.key===" "&&M(!0)},[M]),le=m.useCallback(ne=>{ne.key===" "&&M(!1)},[M]),ie=m.useCallback((ne={},_e=null)=>({...ne,ref:_e,"data-active":me(q),"data-hover":me(F),"data-disabled":me(k),"data-invalid":me(j),"data-checked":me(I),"data-focus":me(T),"data-focus-visible":me(T&&L.current),"data-readonly":me(C),"aria-hidden":!0,onMouseDown:fe(ne.onMouseDown,()=>M(!0)),onMouseUp:fe(ne.onMouseUp,()=>M(!1)),onMouseEnter:fe(ne.onMouseEnter,()=>Y(!0)),onMouseLeave:fe(ne.onMouseLeave,()=>Y(!1))}),[q,F,k,j,I,T,C]),{onFocus:Q,onBlur:oe}=x??{},ce=m.useCallback((ne={},_e=null)=>{const ve=k&&!r;return{...ne,id:w,ref:_e,type:"radio",name:u,value:d,onChange:fe(ne.onChange,H),onBlur:fe(oe,ne.onBlur,()=>E(!1)),onFocus:fe(Q,ne.onFocus,()=>E(!0)),onKeyDown:fe(ne.onKeyDown,Z),onKeyUp:fe(ne.onKeyUp,le),checked:I,disabled:ve,readOnly:C,required:P,"aria-invalid":yr(j),"aria-disabled":yr(ve),"aria-required":yr(P),"data-readonly":me(C),"aria-describedby":h,style:p_}},[k,r,w,u,d,H,oe,Q,Z,le,I,C,P,j,h]);return{state:{isInvalid:j,isFocused:T,isChecked:I,isActive:q,isHovered:F,isDisabled:k,isReadOnly:C,isRequired:P},getRadioProps:ie,getInputProps:ce,getLabelProps:(ne={},_e=null)=>({...ne,ref:_e,onMouseDown:fe(ne.onMouseDown,TQ),"data-disabled":me(k),"data-checked":me(I),"data-invalid":me(j)}),getRootProps:(ne,_e=null)=>({htmlFor:w,...ne,ref:_e,"data-disabled":me(k),"data-checked":me(I),"data-invalid":me(j)}),htmlProps:g}}function TQ(e){e.preventDefault(),e.stopPropagation()}const Wv=V((e,t)=>{const n=ET(),{onChange:r,value:i}=e,o=et("Radio",{...n,...e}),a=Ie(e),{spacing:l="0.5rem",children:c,isDisabled:u=n==null?void 0:n.isDisabled,isFocusable:d=n==null?void 0:n.isFocusable,inputProps:f,...p}=a;let h=e.isChecked;(n==null?void 0:n.value)!=null&&i!=null&&(h=n.value===i);let g=r;n!=null&&n.onChange&&i!=null&&(g=Y$(n.onChange,r));const b=(e==null?void 0:e.name)??(n==null?void 0:n.name),{getInputProps:x,getRadioProps:y,getLabelProps:v,getRootProps:S,htmlProps:w}=_Q({...p,isChecked:h,isFocusable:d,isDisabled:u,onChange:g,name:b}),[k,C]=g6(w,C6),P=y(C),j=x(f,t),T=v(),E=Object.assign({},k,S()),F={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...o.container},Y={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...o.control},q={userSelect:"none",marginStart:l,...o.label};return s.jsxs(O.label,{className:"chakra-radio",...E,__css:F,children:[s.jsx("input",{className:"chakra-radio__input",...j}),s.jsx(O.span,{className:"chakra-radio__control",...P,__css:Y}),c&&s.jsx(O.span,{className:"chakra-radio__label",...T,__css:q,children:c})]})});Wv.displayName="Radio";const $T=V(function(t,n){const{children:r,placeholder:i,className:o,...a}=t;return s.jsxs(O.select,{...a,ref:n,className:W("chakra-select",o),children:[i&&s.jsx("option",{value:"",children:i}),r]})});$T.displayName="SelectField";const Wm=V((e,t)=>{var S;const n=et("Select",e),{rootProps:r,placeholder:i,icon:o,color:a,height:l,h:c,minH:u,minHeight:d,iconColor:f,iconSize:p,...h}=Ie(e),[g,b]=g6(h,C6),x=f_(b),y={width:"100%",height:"fit-content",position:"relative",color:a},v={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(S=n.field)==null?void 0:S._focus}};return s.jsxs(O.div,{className:"chakra-select__wrapper",__css:y,...g,...r,children:[s.jsx($T,{ref:t,height:c??l,minH:u??d,placeholder:i,...x,__css:v,children:e.children}),s.jsx(zT,{"data-disabled":me(x.disabled),...(f||a)&&{color:f||a},__css:n.icon,...p&&{fontSize:p},children:o})]})});Wm.displayName="Select";const EQ=e=>s.jsx("svg",{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),AQ=O("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),zT=e=>{const{children:t=s.jsx(EQ,{}),...n}=e,r=m.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return s.jsx(AQ,{...n,className:"chakra-select__icon-wrapper",children:m.isValidElement(t)?r:null})};zT.displayName="SelectIcon";const Fi=O("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});Fi.displayName="Spacer";const IT=e=>s.jsx(O.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});IT.displayName="StackItem";function $Q(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":g1(n,i=>r[i])}}const Pe=V((e,t)=>{const{isInline:n,direction:r,align:i,justify:o,spacing:a="0.5rem",wrap:l,children:c,divider:u,className:d,shouldWrapChildren:f,...p}=e,h=n?"row":r??"column",g=m.useMemo(()=>$Q({spacing:a,direction:h}),[a,h]),b=!!u,x=!f&&!b,y=m.useMemo(()=>{const S=m1(c);return x?S:S.map((w,k)=>{const C=typeof w.key<"u"?w.key:k,P=k+1===S.length,T=f?s.jsx(IT,{children:w},C):w;if(!b)return T;const E=m.cloneElement(u,{__css:g}),F=P?null:E;return s.jsxs(m.Fragment,{children:[T,F]},C)})},[u,g,b,x,f,c]),v=W("chakra-stack",d);return s.jsx(O.div,{ref:t,display:"flex",alignItems:i,justifyContent:o,flexDirection:h,flexWrap:l,gap:b?void 0:a,className:v,...p,children:y})});Pe.displayName="Stack";const be=V((e,t)=>s.jsx(Pe,{align:"center",...e,direction:"row",ref:t}));be.displayName="HStack";const nd=V((e,t)=>s.jsx(Pe,{align:"center",...e,direction:"column",ref:t}));nd.displayName="VStack";const[zQ,RT]=Te({name:"StatStylesContext",errorMessage:`useStatStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),ta=V(function(t,n){const r=et("Stat",t),i={position:"relative",flex:"1 1 0%",...r.container},{className:o,children:a,...l}=Ie(t);return s.jsx(zQ,{value:r,children:s.jsx(O.div,{ref:n,...l,className:W("chakra-stat",o),__css:i,children:s.jsx("dl",{children:a})})})});ta.displayName="Stat";const na=V(function(t,n){const r=RT();return s.jsx(O.dt,{ref:n,...t,className:W("chakra-stat__label",t.className),__css:r.label})});na.displayName="StatLabel";const Qi=V(function(t,n){const r=RT();return s.jsx(O.dd,{ref:n,...t,className:W("chakra-stat__number",t.className),__css:{...r.number,fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}})});Qi.displayName="StatNumber";const[IQ,Bo]=Te({name:"StepContext"}),[RQ,Ha]=Or("Stepper"),MQ=V(function(t,n){const{orientation:r,status:i,showLastSeparator:o}=Bo(),a=Ha();return s.jsx(O.div,{ref:n,"data-status":i,"data-orientation":r,"data-stretch":me(o),__css:a.step,...t,className:W("chakra-step",t.className)})}),LQ=V(function(t,n){const{status:r}=Bo(),i=Ha();return s.jsx(O.p,{ref:n,"data-status":r,...t,className:W("chakra-step__description",t.className),__css:i.description})});function NQ(e){return s.jsx("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 20 20","aria-hidden":"true",height:"1em",width:"1em",...e,children:s.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})}function DQ(e){const{status:t}=Bo(),n=Ha(),r=t==="complete"?NQ:void 0;return s.jsx(wt,{as:r,__css:n.icon,...e,className:W("chakra-step__icon",e.className)})}const qw=V(function(t,n){const{children:r,...i}=t,{status:o,index:a}=Bo(),l=Ha();return s.jsx(O.div,{ref:n,"data-status":o,__css:l.number,...i,className:W("chakra-step__number",t.className),children:r||a+1})});function OQ(e){const{complete:t,incomplete:n,active:r}=e,i=Bo();let o=null;switch(i.status){case"complete":o=gn(t,i);break;case"incomplete":o=gn(n,i);break;case"active":o=gn(r,i);break}return o?s.jsx(s.Fragment,{children:o}):null}const FQ=V(function(t,n){const{status:r}=Bo(),i=Ha();return s.jsx(O.div,{ref:n,"data-status":r,...t,__css:i.indicator,className:W("chakra-step__indicator",t.className)})}),MT=V(function(t,n){const{orientation:r,status:i,isLast:o,showLastSeparator:a}=Bo(),l=Ha();return o&&!a?null:s.jsx(O.div,{ref:n,role:"separator","data-orientation":r,"data-status":i,__css:l.separator,...t,className:W("chakra-step__separator",t.className)})}),BQ=V(function(t,n){const{status:r}=Bo(),i=Ha();return s.jsx(O.h3,{ref:n,"data-status":r,...t,__css:i.title,className:W("chakra-step__title",t.className)})}),VQ=V(function(t,n){const r=et("Stepper",t),{children:i,index:o,orientation:a="horizontal",showLastSeparator:l=!1,...c}=Ie(t),u=m.Children.toArray(i),d=u.length;function f(p){return po?"incomplete":"active"}return s.jsx(O.div,{ref:n,"aria-label":"Progress","data-orientation":a,...c,__css:r.stepper,className:W("chakra-stepper",t.className),children:s.jsx(RQ,{value:r,children:u.map((p,h)=>s.jsx(IQ,{value:{index:h,status:f(h),orientation:a,showLastSeparator:l,count:d,isFirst:h===0,isLast:h===d-1},children:p},h))})})}),gc=V(function(t,n){const r=et("Switch",t),{spacing:i="0.5rem",children:o,...a}=Ie(t),{getIndicatorProps:l,getInputProps:c,getCheckboxProps:u,getRootProps:d,getLabelProps:f}=HG(a),p=m.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),h=m.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),g=m.useMemo(()=>({userSelect:"none",marginStart:i,...r.label}),[i,r.label]);return s.jsxs(O.label,{...d(),className:W("chakra-switch",t.className),__css:p,children:[s.jsx("input",{className:"chakra-switch__input",...c({},n)}),s.jsx(O.span,{...u(),className:"chakra-switch__track",__css:h,children:s.jsx(O.span,{__css:r.thumb,className:"chakra-switch__thumb",...l()})}),o&&s.jsx(O.span,{className:"chakra-switch__label",...f(),__css:g,children:o})]})});gc.displayName="Switch";const[WQ,rd]=Te({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "
" `}),yl=V((e,t)=>{const n=et("Table",e),{className:r,layout:i,...o}=Ie(e);return s.jsx(WQ,{value:n,children:s.jsx(O.table,{ref:t,__css:{tableLayout:i,...n.table},className:W("chakra-table",r),...o})})});yl.displayName="Table";const Pu=V((e,t)=>{const{overflow:n,overflowX:r,className:i,...o}=e;return s.jsx(O.div,{ref:t,className:W("chakra-table__container",i),...o,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:n??r??"auto",overflowY:"hidden",maxWidth:"100%"}})}),_u=V((e,t)=>{const n=rd();return s.jsx(O.tbody,{...e,ref:t,__css:n.tbody})}),He=V(({isNumeric:e,...t},n)=>{const r=rd();return s.jsx(O.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})}),Je=V(({isNumeric:e,...t},n)=>{const r=rd();return s.jsx(O.th,{...t,ref:n,__css:r.th,"data-is-numeric":e})}),Tu=V((e,t)=>{const n=rd();return s.jsx(O.thead,{...e,ref:t,__css:n.thead})}),Kn=V((e,t)=>{const n=rd();return s.jsx(O.tr,{...e,ref:t,__css:n.tr})});function UQ(e,t){const n=e??"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return(i==null?void 0:i[t])??n}function HQ(e,t){const n=i=>({...t,...i,position:UQ((i==null?void 0:i.position)??(t==null?void 0:t.position),e)}),r=i=>{const o=n(i),a=t_(o);return Xr.notify(a,o)};return r.update=(i,o)=>{Xr.update(i,n(o))},r.promise=(i,o)=>{const a=r({...o.loading,status:"loading",duration:null});i.then(l=>r.update(a,{status:"success",duration:5e3,...gn(o.success,l)})).catch(l=>r.update(a,{status:"error",duration:5e3,...gn(o.error,l)}))},r.closeAll=Xr.closeAll,r.close=Xr.close,r.isActive=Xr.isActive,r}function Tn(e){const{theme:t}=qP(),n=uG();return m.useMemo(()=>HQ(t.direction,{...n,...e}),[e,t.direction,n])}const GQ={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},Uv=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},Kf=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function KQ(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:i,closeOnScroll:o,closeOnPointerDown:a=i,closeOnEsc:l=!0,onOpen:c,onClose:u,placement:d,id:f,isOpen:p,defaultIsOpen:h,arrowSize:g=10,arrowShadowColor:b,arrowPadding:x,modifiers:y,isDisabled:v,gutter:S,offset:w,direction:k,...C}=e,{isOpen:P,onOpen:j,onClose:T}=Bu({isOpen:p,defaultIsOpen:h,onOpen:c,onClose:u}),{referenceRef:E,getPopperProps:F,getArrowInnerProps:Y,getArrowProps:q}=ZX({enabled:P,placement:d,arrowPadding:x,modifiers:y,gutter:S,offset:w,direction:k}),M=m.useId(),D=`tooltip-${f??M}`,R=m.useRef(null),I=m.useRef(void 0),L=m.useCallback(()=>{I.current&&(clearTimeout(I.current),I.current=void 0)},[]),H=m.useRef(void 0),Z=m.useCallback(()=>{H.current&&(clearTimeout(H.current),H.current=void 0)},[]),le=m.useCallback(()=>{Z(),T()},[T,Z]),ie=qQ(R,le),Q=m.useCallback(()=>{if(!v&&!I.current){P&&ie();const ve=Kf(R);I.current=ve.setTimeout(j,t)}},[ie,v,P,j,t]),oe=m.useCallback(()=>{L();const ve=Kf(R);H.current=ve.setTimeout(le,n)},[n,le,L]),ce=m.useCallback(()=>{P&&r&&oe()},[r,oe,P]),Me=m.useCallback(()=>{P&&a&&oe()},[a,oe,P]),Qe=m.useCallback(ve=>{P&&ve.key==="Escape"&&oe()},[P,oe]);_c(()=>Uv(R),"keydown",l?Qe:void 0),_c(()=>{if(!o)return null;const ve=R.current;if(!ve)return null;const Ke=h6(ve);return Ke.localName==="body"?Kf(R):Ke},"scroll",()=>{P&&o&&le()},{passive:!0,capture:!0}),m.useEffect(()=>{v&&(L(),P&&T())},[v,P,T,L]),m.useEffect(()=>()=>{L(),Z()},[L,Z]),_c(()=>R.current,"pointerleave",oe);const te=m.useCallback((ve={},Ke=null)=>({...ve,ref:_t(R,Ke,E),onPointerEnter:fe(ve.onPointerEnter,tt=>{tt.pointerType!=="touch"&&Q()}),onClick:fe(ve.onClick,ce),onPointerDown:fe(ve.onPointerDown,Me),onFocus:fe(ve.onFocus,Q),onBlur:fe(ve.onBlur,oe),"aria-describedby":P?D:void 0}),[Q,oe,Me,P,D,ce,E]),ne=m.useCallback((ve={},Ke=null)=>F({...ve,style:{...ve.style,[nn.arrowSize.var]:g?`${g}px`:void 0,[nn.arrowShadowColor.var]:b}},Ke),[F,g,b]),_e=m.useCallback((ve={},Ke=null)=>{const se={...ve.style,position:"relative",transformOrigin:nn.transformOrigin.varRef};return{ref:Ke,...C,...ve,id:D,role:"tooltip",style:se}},[C,D]);return{isOpen:P,show:Q,hide:oe,getTriggerProps:te,getTooltipProps:_e,getTooltipPositionerProps:ne,getArrowProps:q,getArrowInnerProps:Y}}const L0="chakra-ui:close-tooltip";function qQ(e,t){return m.useEffect(()=>{const n=Uv(e);return n.addEventListener(L0,t),()=>n.removeEventListener(L0,t)},[t,e]),()=>{const n=Uv(e),r=Kf(e);n.dispatchEvent(new r.CustomEvent(L0))}}const XQ=O(ir.div),nx=V((e,t)=>{const n=or("Tooltip",e),r=Ie(e),i=Di(),{children:o,label:a,shouldWrapChildren:l,"aria-label":c,hasArrow:u,bg:d,portalProps:f,background:p,backgroundColor:h,bgColor:g,motionProps:b,animatePresenceProps:x,...y}=r,v=p??h??d??g;if(v){n.bg=v;const E=mI(i,"colors",v);n[nn.arrowBg.var]=E}const S=KQ({...y,direction:i.direction}),w=!m.isValidElement(o)||l;let k;if(w)k=s.jsx(O.span,{display:"inline-block",tabIndex:0,...S.getTriggerProps(),children:o});else{const E=m.Children.only(o);k=m.cloneElement(E,S.getTriggerProps(E.props,gQ(E)))}const C=!!c,P=S.getTooltipProps({},t),j=C?dm(P,["role","id"]):P,T=p6(P,["role","id"]);return a?s.jsxs(s.Fragment,{children:[k,s.jsx(Ni,{...x,children:S.isOpen&&s.jsx(El,{...f,children:s.jsx(O.div,{...S.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"},children:s.jsxs(XQ,{variants:GQ,initial:"exit",animate:"enter",exit:"exit",...b,...j,__css:n,children:[a,C&&s.jsx(O.span,{srOnly:!0,...T,children:c}),u&&s.jsx(O.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:s.jsx(O.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}})})]})})})})]}):s.jsx(s.Fragment,{children:o})});nx.displayName="Tooltip";const dt=V(function(t,n){const r=or("Heading",t),{className:i,...o}=Ie(t);return s.jsx(O.h2,{ref:n,className:W("chakra-heading",t.className),...o,__css:r})});dt.displayName="Heading";const K=V(function(t,n){const r=or("Text",t),{className:i,align:o,decoration:a,casing:l,...c}=Ie(t),u=h1({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return s.jsx(O.p,{ref:n,className:W("chakra-text",t.className),...u,...c,__css:r})});K.displayName="Text";const rx=V(function(t,n){const{spacing:r="0.5rem",spacingX:i,spacingY:o,children:a,justify:l,direction:c,align:u,className:d,shouldWrapChildren:f,...p}=t,h=m.useMemo(()=>f?m.Children.map(a,(g,b)=>s.jsx(ix,{children:g},b)):a,[a,f]);return s.jsx(O.div,{ref:n,className:W("chakra-wrap",d),...p,children:s.jsx(O.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:l,alignItems:u,flexDirection:c,listStyleType:"none",gap:r,columnGap:i,rowGap:o,padding:"0"},children:h})})});rx.displayName="Wrap";const ix=V(function(t,n){const{className:r,...i}=t;return s.jsx(O.li,{ref:n,__css:{display:"flex",alignItems:"flex-start"},className:W("chakra-wrap__listitem",r),...i})});ix.displayName="WrapItem";var Vn=e=>Nm({viewBox:"0 0 24 24",defaultProps:{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},...e});Vn({displayName:"ChevronUpIcon",path:s.jsx("polyline",{points:"18 15 12 9 6 15"})});Vn({displayName:"ChevronDownIcon",path:s.jsx("polyline",{points:"6 9 12 15 18 9"})});Vn({displayName:"ChevronLeftIcon",path:s.jsx("polyline",{points:"15 18 9 12 15 6"})});Vn({displayName:"ChevronRightIcon",path:s.jsx("polyline",{points:"9 18 15 12 9 6"})});Vn({displayName:"ChevronDownIcon",path:s.jsxs("g",{fill:"none",children:[s.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),s.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),s.jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})});var YQ=Vn({displayName:"CloseIcon",path:s.jsxs("g",{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})});Vn({displayName:"FilterIcon",path:s.jsx("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})});Vn({displayName:"CalendarIcon",path:s.jsxs("g",{children:[s.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),s.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),s.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),s.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})});Vn({displayName:"PlusIcon",path:s.jsxs("g",{children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})});Vn({displayName:"MinusIcon",path:s.jsx("g",{children:s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})});Vn({displayName:"ViewOffIcon",path:s.jsxs("g",{children:[s.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),s.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]})});Vn({displayName:"ViewOffIcon",path:s.jsxs("g",{children:[s.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),s.jsx("circle",{cx:"12",cy:"12",r:"3"})]})});var QQ=Vn({displayName:"SearchIcon",path:s.jsxs("g",{children:[s.jsx("circle",{cx:"11",cy:"11",r:"8"}),s.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})});Vn({displayName:"CheckIcon",path:s.jsx("g",{children:s.jsx("polyline",{points:"20 6 9 17 4 12"})})});function qt(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...d){r();for(const f of d)t[f]=c(f);return qt(e,t)}function o(...d){for(const f of d)f in t||(t[f]=c(f));return qt(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.selector]))}function l(){return Object.fromEntries(Object.entries(t).map(([f,p])=>[f,p.className]))}function c(d){const h=`chakra-${(["container","root"].includes(d??"")?[e]:[e,d]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>d}}return{parts:i,toPart:c,extend:o,selectors:a,classnames:l,get keys(){return Object.keys(t)},__type:{}}}var ZQ=qt("app-shell").parts("container","inner","main"),LT=qt("emptystate").parts("container","body","icon","title","descripton","actions","footer"),JQ=qt("banner").parts("container","icon","content","title","description","actions","close"),eZ=qt("hotkeys").parts("container","group","groupTitle","item","command","then"),tZ=qt("loading-overlay").parts("overlay","text"),nZ=qt("nav-group").parts("container","title","icon","content"),rZ=qt("nav-item").parts("item","link","inner","icon","label"),iZ=qt("nprogress").parts("container","bar"),oZ=qt("persona").parts("container","details","avatar","label","secondaryLabel","tertiaryLabel"),aZ=qt("search-input").parts("input","reset"),sZ=qt("sidebar").parts("container","overlay","section","toggleWrapper","toggle");qt("stepper").parts("container","steps","icon","content","title","separator");var lZ=qt("structured-list").parts("list","item","button","header","cell","icon"),NT=qt("property").parts("property","label","value"),cZ=qt("select").parts("addon","field","element"),uZ=qt("timeline").parts("container","item","separator","icon","dot","track","content"),{definePartsStyle:DT,defineMultiStyleConfig:dZ}=ge(T6.keys),fZ=DT(e=>{const{colorScheme:t}=e;return{container:{bg:"white",_dark:{bg:"black"},borderWidth:"1px"},icon:{color:`${t}.500`,_dark:{color:`${t}.500`},"& .chakra-spinner":{color:"black",_dark:{color:"white"}}},title:{fontWeight:"semibold",fontSize:"md"},description:{fontSize:"sm",color:"gray.500",_dark:{color:"gray.400"}}}}),pZ=DT({container:{borderRadius:"md"}}),mZ=dZ({defaultProps:{size:"sm"},baseStyle:pZ,variants:{snackbar:fZ}}),vi=_6("badge",["bg","color","shadow","border"]),Xw=e=>{const{colorScheme:t,theme:n}=e,r=Kt(`${t}.200`,.8)(n);return{[vi.color.variable]:`colors.${t}.500`,_dark:{[vi.color.variable]:r},[vi.shadow.variable]:`inset 0 0 0px 1px ${vi.color.reference}`}},hZ={variants:{outline:e=>{const t=Xw(e);return{...t,_dark:{...t==null?void 0:t._dark,[vi.shadow.variable]:`inset 0 0 0px 1px ${vi.border.reference}`,[vi.color.variable]:`colors.${e.colorScheme}.200`,[vi.border.variable]:`colors.${e.colorScheme}.500`}}},ghost:e=>{const t=Xw(e);return{...t,shadow:"none",_dark:{...t==null?void 0:t._dark,[vi.color.variable]:`colors.${e.colorScheme}.200`}}}}},OT=e=>{const{colorScheme:t}=e;return t==="gray"?{base:re("gray.100","whiteAlpha.300")(e),hover:re("gray.200","whiteAlpha.400")(e),active:re("gray.300","whiteAlpha.500")(e)}:t==="white"?{base:"whiteAlpha.900",hover:"whiteAlpha.700",active:"whiteAlpha.500"}:{base:re(`${t}.500`,`${t}.500`)(e),hover:re(`${t}.600`,`${t}.600`)(e),active:re(`${t}.700`,`${t}.700`)(e)}},gZ={yellow:{bg:"yellow.400",hoverBg:"yellow.500",activeBg:"yellow.600",color:"black"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Um=e=>{var t;const{colorScheme:n,colorMode:r}=e;if(n==="white")return{bg:"white",color:"black",_hover:{bg:"whiteAlpha.900",_dark:{bg:"whiteAlpha.900"},_disabled:{bg:"white"}},_active:{bg:"whiteAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700"}};if(n==="neutral")return{bg:"black",color:"white",_dark:{bg:"white",color:"black"},_hover:{bg:"blackAlpha.800",_disabled:{bg:"black"},_dark:{bg:"whiteAlpha.800",_disabled:{bg:"white"}}},_active:{bg:"blackAlpha.800",_dark:{bg:"whiteAlpha.800"}},_disabled:{color:"blackAlpha.700",_dark:{color:"whiteAlpha.700"}}};const{base:i,hover:o,active:a}=OT(e),{color:l=n==="gray"?re("black","white")(e):"white",bg:c=i,hoverBg:u=o,activeBg:d=a}=(t=gZ[n])!=null?t:{};return{bg:c,color:l,_hover:{bg:u,_disabled:{bg:c}},_active:{bg:d}}},vZ=e=>({shadow:"md",...Um(e)}),FT=e=>{const{colorScheme:t}=e,{base:n,hover:r,active:i}=OT(e);return{...BT(e),borderColor:t==="gray"?r:n,borderWidth:"1px",_hover:{borderColor:t==="gray"?i:r}}},BT=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:"inherit",_dark:{color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:{bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.300"}}};if(t==="white")return{color:"white",_hover:{bg:"whiteAlpha.200"},_active:"whiteAlpha.300"};const r=Kt(`${t}.200`,.12)(n),i=Kt(`${t}.200`,.24)(n);return{color:`${t}.600`,_dark:{color:`${t}.200`},bg:"transparent",_hover:{bg:`${t}.50`,_dark:{bg:r}},_active:{bg:`${t}.100`,_dark:{bg:i}}}},yZ=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100",color:"whiteAlpha.900"},_hover:{bg:"blackAlpha.200",_dark:{color:"white.200"}},_active:{bg:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"}}};const r=t==="white"?"white":re(`${t}.500`,`${t}.200`)(e),i=Kt(r,.1)(n),o=Kt(r,.16)(n),a=Kt(r,.24)(n);return{color:t==="white"?"white":re(`${t}.600`,`${t}.200`)(e),bg:i,_hover:{bg:o},_active:{bg:a}}},bZ=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:t==="white"?"white":re(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:t==="white"?"whiteAlpha.800":re(`${t}.700`,`${t}.500`)(e)}}},xZ=e=>{let{colorScheme:t}=e;return t==="gray"&&(t="primary"),Um({...e,variant:"solid",colorScheme:t})},SZ=e=>Um({...e,variant:"solid"}),wZ=e=>FT({...e,variant:"outline"}),kZ={defaultProps:{size:"sm"},variants:{solid:Um,ghost:BT,outline:FT,subtle:yZ,elevated:vZ,link:bZ,primary:xZ,secondary:SZ,tertiary:wZ}},{definePartsStyle:ka,defineMultiStyleConfig:CZ}=ge(N6.keys),ua=ee("card-bg"),N0=ee("card-padding"),ox=ee("card-shadow"),D0=ee("card-radius"),ax=ee("card-border-width","0"),co=ee("card-border-color"),jZ=ka(()=>({container:{transitionProperty:"common",transitionDuration:"normal"}})),PZ=ka(e=>({container:{[ua.variable]:"colors.white",[co.variable]:"colors.blackAlpha.200",[ax.variable]:"1px",[ox.variable]:"shadows.sm",_dark:{[ua.variable]:"colors.whiteAlpha.200",[co.variable]:"colors.whiteAlpha.50"},"&.chakra-linkbox:hover":{[co.variable]:"colors.blackAlpha.300",_dark:{[co.variable]:"colors.whiteAlpha.300"}}}})),_Z=ka(e=>{const{colorScheme:t}=e,n=t?"white":"inherit";return{container:{[ax.variable]:"0",[ox.variable]:"none",[ua.variable]:t?`${t}.500`:"colors.blackAlpha.100",color:n,"&.chakra-linkbox:hover":{[ua.variable]:t?`${t}.600`:"colors.blackAlpha.200"},_dark:{[ua.variable]:t?`${t}.500`:"colors.whiteAlpha.100","&.chakra-linkbox:hover":{[ua.variable]:t?`${t}.600`:"colors.whiteAlpha.200"}}}}}),TZ=ka(e=>{const{colorScheme:t}=e;return{container:{[ax.variable]:"1px",[ox.variable]:"none",[co.variable]:t?`${t}.500`:"colors.blackAlpha.200",[ua.variable]:"transparent","&.chakra-linkbox:hover":{[co.variable]:t?`${t}.600`:"colors.blackAlpha.300"},_dark:{[co.variable]:t?`${t}.500`:"colors.whiteAlpha.300","&.chakra-linkbox:hover":{[co.variable]:t?`${t}.600`:"colors.whiteAlpha.400"}}}}}),EZ={sm:ka({container:{[D0.variable]:"radii.base",[N0.variable]:"space.3"}}),md:ka({container:{[D0.variable]:"radii.md",[N0.variable]:"space.4"}}),lg:ka({container:{[D0.variable]:"radii.xl",[N0.variable]:"space.6"}})},AZ=CZ({defaultProps:{variant:"elevated"},baseStyle:jZ,variants:{elevated:PZ,outline:TZ,filled:_Z},sizes:EZ}),{definePartsStyle:$Z,defineMultiStyleConfig:zZ}=ge(E6.keys),IZ=$Z(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}}),RZ=zZ({baseStyle:IZ,defaultProps:{colorScheme:"primary"}}),MZ={defaultProps:{size:"sm"}},{definePartsStyle:qf,defineMultiStyleConfig:LZ}=ge(x1.keys),Jd=ee("input-height"),ef=ee("input-padding"),Yw=ee("input-border-radius"),VT={sm:qf({field:{[Yw.variable]:"radii.md"},group:{[Yw.variable]:"radii.md"}}),md:qf({field:{[ef.variable]:"space.3",[Jd.variable]:"sizes.9"},group:{[ef.variable]:"space.3",[Jd.variable]:"sizes.9"}}),lg:qf({field:{[ef.variable]:"space.3",[Jd.variable]:"sizes.10"},group:{[ef.variable]:"space.3",[Jd.variable]:"sizes.10"}})},WT=qf(e=>({field:{borderColor:"blackAlpha.300",_dark:{borderColor:"whiteAlpha.300"},_hover:{borderColor:"blackAlpha.400",_dark:{borderColor:"whiteAlpha.400"}}}})),sx=LZ({defaultProps:{focusBorderColor:"primary.500"},variants:{outline:WT},sizes:VT}),NZ={variants:{horizontal:{mb:0,marginStart:"0.5rem"}}},Fc=sx,DZ=sx,OZ={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:WT},sizes:VT},FZ={defaultProps:{focusBorderColor:"primary.500"},variants:{outline:e=>{var t,n;return(n=(t=Fc.variants)==null?void 0:t.outline(e).field)!=null?n:{}}}},BZ=sx,{definePartsStyle:wi,defineMultiStyleConfig:VZ}=ge(x1.keys),$s=ee("input-height"),zs=ee("input-font-size"),Is=ee("input-padding"),Rs=ee("input-border-radius"),WZ=wi({addon:{height:$s.reference,fontSize:zs.reference,px:Is.reference,borderRadius:Rs.reference},field:{width:"100%",height:$s.reference,fontSize:zs.reference,px:Is.reference,borderRadius:Rs.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),qi={lg:{[zs.variable]:"fontSizes.lg",[Is.variable]:"space.4",[Rs.variable]:"radii.md",[$s.variable]:"sizes.12"},md:{[zs.variable]:"fontSizes.md",[Is.variable]:"space.4",[Rs.variable]:"radii.md",[$s.variable]:"sizes.10"},sm:{[zs.variable]:"fontSizes.sm",[Is.variable]:"space.3",[Rs.variable]:"radii.sm",[$s.variable]:"sizes.8"},xs:{[zs.variable]:"fontSizes.xs",[Is.variable]:"space.2",[Rs.variable]:"radii.sm",[$s.variable]:"sizes.6"}},UZ={lg:wi({field:qi.lg,group:qi.lg}),md:wi({field:qi.md,group:qi.md}),sm:wi({field:qi.sm,group:qi.sm}),xs:wi({field:qi.xs,group:qi.xs})};function lx(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||re("blue.500","blue.300")(e),errorBorderColor:n||re("red.500","red.300")(e)}}var HZ=wi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=lx(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:re("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:lt(t,r),boxShadow:`0 0 0 1px ${lt(t,r)}`},_focusVisible:{zIndex:1,borderColor:lt(t,n),boxShadow:`0 0 0 1px ${lt(t,n)}`}},addon:{border:"1px solid",borderColor:re("inherit","whiteAlpha.50")(e),bg:re("gray.100","whiteAlpha.300")(e)}}}),GZ=wi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=lx(e);return{field:{border:"2px solid",borderColor:"transparent",bg:re("gray.100","whiteAlpha.50")(e),_hover:{bg:re("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:lt(t,r)},_focusVisible:{bg:"transparent",borderColor:lt(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:re("gray.100","whiteAlpha.50")(e)}}}),KZ=wi(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=lx(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:lt(t,r),boxShadow:`0px 1px 0px 0px ${lt(t,r)}`},_focusVisible:{borderColor:lt(t,n),boxShadow:`0px 1px 0px 0px ${lt(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),qZ=wi({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),XZ={outline:HZ,filled:GZ,flushed:KZ,unstyled:qZ},uo=VZ({baseStyle:WZ,sizes:UZ,variants:XZ,defaultProps:{size:"md",variant:"outline"}}),Qw,Zw,YZ={...uo,defaultProps:Fc.defaultProps,variants:{outline:e=>{var t,n;return{...(n=(t=Fc.variants)==null?void 0:t.outline(e))!=null?n:{}}},flushed:e=>{var t,n;return(n=(t=uo.variants)==null?void 0:t.flushed(e))!=null?n:{}},filled:e=>{var t,n;return(n=(t=uo.variants)==null?void 0:t.filled(e))!=null?n:{}},unstyled:(Zw=(Qw=uo.variants)==null?void 0:Qw.unstyled)!=null?Zw:{}},sizes:Fc.sizes},QZ={defaultProps:{size:"lg"}},ZZ=e=>({color:"blackAlpha.300",_dark:{bg:"whiteAlpha.300"},borderWidth:0,borderBottomWidth:0,padding:"1px",display:"inline-block",borderRadius:"3px",minW:"20px",textAlign:"center",mr:1,":last-child":{mr:0}}),JZ={defaultProps:{variant:"solid"},variants:{basic:{opacity:.6},solid:ZZ}},{definePartsStyle:UT,defineMultiStyleConfig:eJ}=ge($6.keys),tJ=UT(e=>({list:{borderWidth:1,borderColor:"blackAlpha.200",boxShadow:"lg",_dark:{borderWidth:0,borderColor:"whiteAlpha.300",boxShadow:"dark-lg"}},divider:{borderColor:"blackAlpha.200",_dark:{borderColor:"whiteAlpha.300"}},groupTitle:{mx:3}})),nJ=UT(()=>({item:{px:6},groupTitle:{color:"muted",px:3}})),rJ=eJ({baseStyle:tJ,variants:{dialog:nJ}}),{definePartsStyle:iJ,defineMultiStyleConfig:oJ}=ge(z6.keys),aJ=iJ(e=>({closeButton:{top:4,insetEnd:4}})),sJ=oJ({baseStyle:aJ}),{definePartsStyle:lJ,defineMultiStyleConfig:cJ}=ge(I6.keys),uJ=cJ({defaultProps:{colorScheme:"primary"},baseStyle:lJ(e=>{const{colorScheme:t}=e;return{track:{borderRadius:"md"},filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:dJ,defineMultiStyleConfig:fJ}=ge(R6.keys),pJ=fJ({defaultProps:{colorScheme:"primary"},baseStyle:dJ(e=>{const{colorScheme:t}=e;return{control:{_checked:{borderColor:`${t}.500`,bg:`${t}.500`,color:"white"}}}})}),{definePartsStyle:mJ,defineMultiStyleConfig:hJ}=ge(M6.keys),gJ=hJ({defaultProps:{colorScheme:"primary"},baseStyle:mJ(e=>{const{colorScheme:t}=e;return{filledTrack:{bg:`${t}.500`}}})}),{definePartsStyle:vJ,defineMultiStyleConfig:yJ}=ge(L6.keys),bJ=yJ({defaultProps:{colorScheme:"primary"},baseStyle:vJ(e=>{const{colorScheme:t}=e;return{track:{_checked:{bg:`${t}.500`}}}})}),tf=Tt("tooltip-bg"),Jw=Tt("tooltip-fg"),xJ=Tt("popper-arrow-bg"),SJ=e=>({display:"flex",[tf.variable]:"colors.white",[Jw.variable]:"colors.blackAlpha.900",_dark:{[tf.variable]:"colors.gray.700",[Jw.variable]:"colors.whiteAlpha.900"},px:"8px",py:"2px",bg:[tf.reference],[xJ.variable]:[tf.reference],borderRadius:"sm",fontWeight:"medium",fontSize:"xs",boxShadow:"md",maxW:"320px",zIndex:"tooltip",borderWidth:"1px"}),wJ={baseStyle:SJ},nf=ee("stepper-indicator-size"),Ca=ee("stepper-accent-color"),da=ee("stepper-vertical-seperator-offset"),{defineMultiStyleConfig:kJ,definePartsStyle:fo}=ge(["container","item","content","stepper","step","title","description","indicator","separator","icon","number"]),CJ=fo(({colorScheme:e})=>({container:{display:"flex",flexDirection:"column",gap:4},item:{w:"full"},content:{"&[data-orientation=vertical]":{mt:2,ms:da.reference,borderLeftWidth:"1px",ps:6}},stepper:{gap:"2",[da.variable]:"10px",[Ca.variable]:`colors.${e}.500`,_dark:{[Ca.variable]:`colors.${e}.500`}},separator:{transitionProperty:"common",transitionDuration:"normal","&[data-orientation=horizontal]":{height:"1px"},"&[data-orientation=vertical]":{width:"1px"},".sui-steps__item .chakra-step &[data-orientation=vertical]":{display:"none"},".sui-steps__item &[data-orientation=vertical]":{position:"static",minH:4,height:"auto",ms:da.reference}},step:{"&[data-orientation=vertical]":{alignItems:"center"}}})),jJ=fo(e=>({})),PJ=fo(e=>({indicator:{"&[data-status=active]":{borderWidth:"0",bg:Ca.reference,color:"chakra-inverse-text"},"&[data-status=complete]":{bg:Ca.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}}}})),_J=fo(e=>{const{theme:t,colorScheme:n}=e;return{stepper:{[Ca.variable]:`colors.${n}.100`},indicator:{"&[data-status=active]":{borderWidth:"0",bg:Ca.reference,color:`${n}.500`,_dark:{bg:Kt(`${n}.200`,.16)(t)}},"&[data-status=complete]":{bg:Ca.reference,color:`${n}.500`,_dark:{bg:Kt(`${n}.200`,.24)(t),color:`${n}.200`}},"&[data-status=incomplete]":{borderWidth:"0",bg:"blackAlpha.200",color:"blackAlpha.700",_dark:{bg:"whiteAlpha.200",color:"whiteAlpha.600"}}}}}),TJ=kJ({defaultProps:{variant:"outline",colorScheme:"primary",size:"md"},baseStyle:CJ,variants:{outline:jJ,solid:PJ,subtle:_J},sizes:{xs:fo({stepper:{[nf.variable]:"sizes.4",[da.variable]:"7px"}}),sm:fo({stepper:{[nf.variable]:"sizes.6",[da.variable]:"11px"}}),md:fo({stepper:{[nf.variable]:"sizes.7",[da.variable]:"14px"}}),lg:fo({stepper:{[nf.variable]:"sizes.8",[da.variable]:"16px"}})}}),{definePartsStyle:EJ,defineMultiStyleConfig:AJ}=ge(LT.keys),$J=EJ(e=>{const{colorScheme:t}=e;return{icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.500`}}}}),zJ=AJ({baseStyle:$J}),{definePartsStyle:HT,defineMultiStyleConfig:GT}=ge(iZ.keys),IJ=HT(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.300`}}}}),RJ=GT({defaultProps:{colorScheme:"teal"},baseStyle:IJ}),MJ=HT(e=>{const{colorScheme:t}=e;return{bar:{bg:`${t}.500`,_dark:{bg:`${t}.500`}}}}),LJ=GT({defaultProps:{colorScheme:"primary"},baseStyle:MJ}),{defineMultiStyleConfig:NJ}=ge(NT.keys),DJ=NJ({baseStyle:{label:{color:"muted",_dark:{color:"muted"}}}}),OJ={Alert:mZ,Badge:hZ,Button:kZ,Card:AZ,Checkbox:RZ,CloseButton:MZ,Heading:QZ,Kbd:JZ,Menu:rJ,Modal:sJ,Progress:uJ,Radio:pJ,Slider:gJ,Switch:bJ,Stepper:TJ,Tooltip:wJ,Input:Fc,PinInput:OZ,FormLabel:NZ,NumberInput:DZ,Select:BZ,Textarea:FZ,SuiEmptyState:zJ,SuiNProgress:LJ,SuiProperty:DJ,SuiSelect:YZ},{definePartsStyle:FJ,defineMultiStyleConfig:BJ}=ge(ZQ.keys),VJ=FJ({container:{},inner:{},main:{}}),WJ=BJ({defaultProps:{variant:"fullscreen"},variants:{static:{},fullscreen:{container:{position:"absolute",inset:0}}},baseStyle:VJ}),{definePartsStyle:cx,defineMultiStyleConfig:UJ}=ge(JQ.keys),HJ=cx({container:{px:4,py:3},content:{display:"flex",flex:1,flexDirection:["column",null,"row"]},title:{fontWeight:"bold",lineHeight:6,marginEnd:2},description:{lineHeight:6,marginEnd:2},actions:{marginEnd:2},icon:{flexShrink:0,marginEnd:3,w:5,h:6}}),GJ=cx(e=>{const{theme:t,colorScheme:n}=e;return{container:{bg:`${n}.100`,_dark:{bg:Kt(`${n}.200`,.16)(t)}},icon:{color:`${n}.500`,_dark:{color:`${n}.200`}}}}),KJ=cx(e=>{const{colorScheme:t}=e;return{container:{bg:`${t}.500`,color:"white"}}}),qJ=UJ({baseStyle:HJ,variants:{subtle:GJ,solid:KJ},defaultProps:{variant:"subtle",colorScheme:"blue"}}),XJ={baseStyle:{fontSize:"xs","[role=tooltip] > &":{ms:1,_before:{content:'"•"',me:1,fontSize:"xs"}}}},{definePartsStyle:KT,defineMultiStyleConfig:YJ}=ge(LT.keys),QJ=KT(e=>{const{colorScheme:t}=e;return{icon:{boxSize:[10,null,12],color:`${t}.500`,_dark:{color:`${t}.200`}},title:{mt:8,fontWeight:"bold",fontSize:"xl"},actions:{mt:8}}}),ZJ=KT(e=>({body:{display:"flex",flexDirection:"column",textAlign:"center",alignItems:"center"}})),JJ=YJ({baseStyle:QJ,variants:{centered:ZJ}}),{definePartsStyle:eee,defineMultiStyleConfig:tee}=ge(A6.keys),nee=eee({container:{display:"grid",gridTemplateColumns:"1fr 2fr",alignItems:"flex-start",flexDirection:"row",justifyContent:"flex-end"}}),ree=tee({variants:{horizontal:nee}}),iee={defaultProps:{spacing:4}},oee={baseStyle:{fontWeight:"semibold",mb:4}},{defineMultiStyleConfig:aee}=ge(eZ.keys),see=aee({baseStyle:{container:{fontSize:"md"},group:{my:2,py:2},groupTitle:{py:2,fontWeight:"semibold",fontSize:"sm"},item:{display:"flex",alignItems:"center",textAlign:"start",flex:"0 0 auto",py:2},then:{mr:1,fontSize:"sm",color:"muted"}}}),{defineMultiStyleConfig:lee,definePartsStyle:Hm}=ge(tZ.keys),cee=Hm({overlay:{p:4}}),uee=Hm(()=>({overlay:{flex:1,height:"100%"}})),dee=Hm(()=>({overlay:{position:"fixed",inset:0,zIndex:"modal",bg:"white",_dark:{bg:"gray.800"}}})),fee=Hm(()=>({overlay:{position:"absolute",inset:0,bg:"whiteAlpha.300",_dark:{bg:"blackAlpha.300"}}})),pee=lee({defaultProps:{variant:"fill"},baseStyle:cee,variants:{fill:uee,fullscreen:dee,overlay:fee}}),{definePartsStyle:mee,defineMultiStyleConfig:hee}=ge(nZ.keys),gee=mee(e=>({container:{"&:not(:last-of-type)":{mb:4}},title:{display:"flex",alignItems:"center",px:3,my:1,height:6,fontSize:"sm",fontWeight:"medium",color:"muted",transitionProperty:"common",transitionDuration:"normal","&.sui-collapse-toggle .chakra-icon":{opacity:0},"&.sui-collapse-toggle":{cursor:"pointer",borderRadius:"md",_hover:{bg:"blackAlpha.100","& .chakra-icon":{opacity:1},_dark:{bg:"whiteAlpha.200"}}},"[data-compact] &":{opacity:0}},content:{}})),vee=hee({baseStyle:gee}),{definePartsStyle:id,defineMultiStyleConfig:yee}=ge(rZ.keys),bee=id(e=>({item:{my:"2px",color:"gray.900",minW:1,_dark:{color:"whiteAlpha.900"}},link:{display:"flex",rounded:"md",justifyContent:"flex-start",alignItems:"center",textDecoration:"none",transitionProperty:"common",transitionDuration:"normal",minW:1,_hover:{textDecoration:"none"},_focusVisible:{outline:"none",boxShadow:"outline"}},inner:{display:"flex",flex:1,w:"100%",alignItems:"center",minW:1},label:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},icon:{display:"flex",transitionProperty:"common",transitionDuration:"normal",alignItems:"center",justifyContent:"center",width:"4",ml:"-0.25rem",color:"currentColor"}})),xee=id(e=>{const t={bg:"blackAlpha.200",_dark:{bg:"whiteAlpha.200"}};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100"}},_active:t,"&[aria-current=page]":t},icon:{opacity:.8,"[data-active] &":{opacity:1}}}}),See=id(e=>{const{colorScheme:t,theme:n}=e,r={bg:Kt(`${t}.500`,.3)(n),fontWeight:"semibold",color:`${t}.600`,_dark:{bg:Kt(`${t}.500`,.3)(n),color:`${t}.100`}};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:r,"&[aria-current=page]":r}}}),wee=id(e=>{const{colorScheme:t}=e,n={bg:`${t}.500`};return{link:{_hover:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:n,"&[aria-current=page]":n,color:"white"},icon:{color:"white"},label:{}}}),kee=id(e=>{const{colorScheme:t}=e,n={_before:{content:'""',display:"block",position:"absolute",top:0,bottom:0,left:-3,width:"3px",bg:`${t}.500`}};return{item:{position:"relative"},link:{_hover:{color:"inherit",bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.200"}},_active:n,"&[aria-current=page]":n},icon:{"[data-active] &":{color:"currentColor"}},label:{}}}),e3,t3,n3,r3,Cee=yee({defaultProps:{size:"sm",colorScheme:"primary",variant:"neutral"},baseStyle:bee,sizes:{xs:{link:(e3=la.components.Button.sizes)==null?void 0:e3.xs,icon:{me:1,fontSize:"xs"}},sm:{link:(t3=la.components.Button.sizes)==null?void 0:t3.sm,icon:{me:2,fontSize:"sm"}},md:{link:(n3=la.components.Button.sizes)==null?void 0:n3.md,icon:{me:2,fontSize:"md"}},lg:{link:(r3=la.components.Button.sizes)==null?void 0:r3.lg,icon:{me:3,fontSize:"lg"}}},variants:{neutral:xee,subtle:See,solid:wee,"left-accent":kee}}),{definePartsStyle:Zi,defineMultiStyleConfig:jee}=ge(oZ.keys),i3=e=>({color:"gray.500",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minW:0,_dark:{color:"whiteAlpha.600"}}),Pee=Zi(e=>({details:{minW:0},secondaryLabel:i3(e),tertiaryLabel:i3(e)})),_ee={"2xs":Zi({details:{ms:2},label:{fontSize:"xs"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),xs:Zi({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{display:"none"},tertiaryLabel:{display:"none"}}),sm:Zi({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),md:Zi({details:{ms:2},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{display:"none"}}),lg:Zi({details:{ms:3},label:{fontSize:"md"},secondaryLabel:{fontSize:"sm"},tertiaryLabel:{fontSize:"sm"}}),xl:Zi({details:{ms:3},label:{fontSize:"xl"},secondaryLabel:{fontSize:"md"},tertiaryLabel:{fontSize:"md"}}),"2xl":Zi({details:{ms:4},label:{fontSize:"2xl"},secondaryLabel:{fontSize:"lg"},tertiaryLabel:{fontSize:"lg"}})},Tee=jee({defaultProps:{size:"md"},baseStyle:Pee,sizes:_ee}),{defineMultiStyleConfig:Eee}=ge(NT.keys),Aee=Eee({baseStyle:{label:{display:"flex",flexDirection:"row",minWidth:"100px",width:"30%",marginEnd:2,py:2,color:"gray.500",_dark:{color:"gray.400"}}}}),{defineMultiStyleConfig:$ee}=ge(aZ.keys),zee=$ee({baseStyle:{input:{pr:8}},sizes:{sm:{reset:{fontSize:"0.7em"}},lg:{input:{pr:10}}}}),{definePartsStyle:ux,defineMultiStyleConfig:Iee}=ge(sZ.keys),Ree=ux(e=>{const{colorScheme:t}=e;return{container:{bg:t?`${t}.500`:"white",display:"flex",flexDirection:"column",borderRightWidth:"1px",_dark:{bg:t?`${t}.500`:"gray.800"}},overlay:{bg:"blackAlpha.200"}}}),Mee=ux(e=>({container:{width:"280px",maxWidth:["100vw","320px"],minWidth:"220px",py:3,"&[data-collapsible]":{pt:14}},section:{px:3},toggleWrapper:{h:8,mb:4,display:"none","[data-collapsible] &":{display:"block"}}})),Lee=ux(e=>({container:{width:"14",py:3},section:{px:3},toggleWrapper:{display:"none"}})),Nee=Iee({defaultProps:{variant:"default"},baseStyle:Ree,variants:{default:Mee,compact:Lee}}),{defineMultiStyleConfig:Dee}=ge(cZ.keys),Oee=Dee({defaultProps:uo.defaultProps,baseStyle:uo.baseStyle,sizes:uo.sizes,variants:uo.variants}),{definePartsStyle:Fee,defineMultiStyleConfig:Bee}=ge(lZ.keys),Vee=Fee(e=>({item:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",fontSize:"md"},button:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",flex:1,cursor:"pointer",userSelect:"none",transitionProperty:"common",transitionDuration:"normal",borderRadius:"inherit",outline:"none",_hover:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_focusVisible:{boxShadow:"outline"},_focus:{bg:"blackAlpha.50",_dark:{bg:"whiteAlpha.50"}},_active:{bg:"blackAlpha.100",_dark:{bg:"whiteAlpha.100"}},_disabled:{cursor:"inherit",opacity:.5,_hover:{bg:"transparent",_dark:{bg:"transparent"}},_active:{bg:"transparent",_dark:{bg:"transparent"}}}},header:{display:"flex",flexDirection:"row",position:"sticky",fontSize:"md",fontWeight:"semibold",color:"muted"},icon:{display:"flex",flexShrink:0}})),Wee=Bee({defaultProps:{size:"md"},baseStyle:Vee,sizes:{sm:{item:{py:1,px:1},header:{py:1,px:1},button:{py:1,px:1},cell:{px:1},icon:{px:1}},md:{item:{py:2,px:2},header:{py:2,px:2},button:{py:2,px:2},cell:{px:2},icon:{px:2}}}}),{definePartsStyle:dx,defineMultiStyleConfig:Uee}=ge(uZ.keys),o3=ee("timeline-row-start","minmax(0,1fr)"),Hee=ee("timeline-row-end","minmax(0,1fr)"),a3=ee("timeline-col-start","minmax(0,1fr)"),s3=ee("timeline-col-end","minmax(0,1fr)"),Gee=dx(e=>({container:{display:"flex",[o3.variable]:"minmax(0,1fr)",[Hee.variable]:"minmax(0,1fr)",[a3.variable]:"auto",[s3.variable]:"2fr",flexDirection:"column",justifyItems:"center"},item:{display:"grid",alignItems:"center",justifyItems:"start",gridTemplateRows:`${o3.reference}`,gridTemplateColumns:`${a3.reference} ${s3.reference}`,position:"relative"},separator:{mx:1,minW:"24px",flexShrink:0,gridColumnStart:1,gap:2,height:"100%",_before:{content:'""',display:"block",flex:1,minH:"0.5em"},_after:{content:'""',display:"block",flex:1,minH:"0.5em"},"&:has(.sui-timeline__track:first-of-type):before":{display:"none"},"&:has(.sui-timeline__track:last-of-type):after":{display:"none"}},icon:{color:"gray.300",_dark:{color:"gray.600"}},dot:{width:"9px",height:"9px",bg:"currentColor",borderRadius:"full"},track:{bg:"gray.300",width:"1px",flex:1,minH:"0.5em",_dark:{bg:"gray.600"}},content:{px:"2",_first:{gridColumnStart:1},_last:{gridColumnStart:2,justifySelf:"start"}}})),Kee=dx(e=>({icon:{}})),qee=dx(e=>({dot:{bg:"transparent",borderColor:"currentColor",borderWidth:"2px"}})),Xee=Uee({defaultProps:{variant:"solid",size:"sm"},baseStyle:Gee,variants:{solid:Kee,outline:qee},sizes:{sm:{icon:{minH:"8px",minW:"8px"}}}}),Yee={baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center"},variants:{outline:({colorScheme:e})=>({borderWidth:"1px",borderColor:e?`${e}.500`:"chakra-border-color",color:e?`${e}.500`:"currentColor"}),solid:({colorScheme:e="gray"})=>({bg:`${e}.500`,color:"white"})},sizes:{sm:{borderRadius:"sm",fontSize:"0.9em",w:6,h:6},md:{borderRadius:"md",fontSize:"1.1em",w:8,h:8},lg:{borderRadius:"md",fontSize:"1.3em",w:10,h:10},xl:{borderRadius:"md",fontSize:"1.5em",w:12,h:12}},defaultProps:{variant:"outline",size:"md"}},Qee=Oe("navbar").parts("container","inner","brand","content","item","link"),{defineMultiStyleConfig:Zee,definePartsStyle:Jee}=ge(Qee.keys),l3=ee("navbar-bg"),c3=ee("navbar-text-color","currentColor"),O0=ee("navbar-link-bg","transparent"),ete=["yellow","cyan"],tte=Zee({baseStyle:Jee(({colorScheme:e})=>{let t="currentColor";return e&&(t=ete.includes(e)?"colors.black":"colors.white"),{container:{display:"flex",[l3.variable]:e?`colors.${e}.500`:"colors.chakra-body-bg",[c3.variable]:t,bg:l3.reference,color:c3.reference,zIndex:"overlay",width:"full",height:"auto",alignItems:"center",justifyContent:"center",data:{"& [data-menu-open=true]":{border:"none"}}},inner:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",height:"var(--navbar-height)",px:{base:4,lg:6},gap:4,flexWrap:"nowrap"},toggle:{display:"flex",alignItems:"center",justifyContent:"center",width:6,height:"full",outline:"none",borderRadius:"sm"},brand:{display:"flex",alignItems:"center",justifyContent:"flex-start",height:"full",bg:"transparent",textDecoration:"none",color:"inherit",whiteSpace:"nowrap",boxSizing:"border-box"},content:{display:"flex",alignItems:"center",justifyContent:"flex-start",flex:1,listStyle:"none"},item:{display:"inline-flex",p:0},link:{bg:O0.reference,color:"current",display:"inline-flex",alignItems:"center",justifyContent:"center",textDecoration:"none",whiteSpace:"nowrap",boxSizing:"border-box",borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",lineHeight:1,px:3,h:8,_focusVisible:{outline:"none",boxShadow:"outline"},_hover:{[O0.variable]:"colors.blackAlpha.100",textDecoration:"none",_dark:{[O0.variable]:"colors.whiteAlpha.200"}},_active:{fontWeight:"semibold"}}}})}),nte={Form:ree,SuiAppShell:WJ,SuiBanner:qJ,SuiCommand:XJ,SuiEmptyState:JJ,SuiFormLayout:iee,SuiFormLegend:oee,SuiHotkeys:see,SuiStructuredList:Wee,SuiLoadingOverlay:pee,SuiNavGroup:vee,SuiNavItem:Cee,SuiPersona:Tee,SuiProperty:Aee,SuiNProgress:RJ,SuiSearchInput:zee,SuiSelect:Oee,SuiSidebar:Nee,SuiTimeline:Xee,SuiIconBadge:Yee,SuiNavbar:tte},rte=Eb({colors:{primary:la.colors.blue},semanticTokens:{colors:{"presence.online":"green.500","presence.offline":"gray.400","presence.busy":"orange.500","presence.dnd":"red.500","presence.away":"gray.400"}},components:nte}),ite={global:e=>({body:{WebkitFontSmoothing:"antialiased",TextRendering:"optimizelegibility"}})},F0={black:"#0e1012",gray:{50:"#f9fafa",100:"#f1f1f2",200:"#e7e7e8",300:"#d3d4d5",400:"#abadaf",500:"#7d7f83",600:"#52555a",700:"#33373d",800:"#1d2025",900:"#171a1d"},purple:{50:"#f9f6fd",100:"#e5daf8",200:"#d3bef4",300:"#b795ec",400:"#a379e7",500:"#8952e0",600:"#7434db",700:"#6023c0",800:"#4f1d9e",900:"#3b1676"},pink:{50:"#fdf5f9",100:"#f8d9e7",200:"#f3b9d3",300:"#eb8db8",400:"#e56ba2",500:"#dc3882",600:"#c4246c",700:"#a01d58",800:"#7d1745",900:"#5d1133"},red:{50:"#fdf6f5",100:"#f8d9d8",200:"#f1b8b4",300:"#e98d87",400:"#e4726c",500:"#dc4a41",600:"#d2140a",700:"#ac0900",800:"#930800",900:"#6d0600"},orange:{50:"#fdfaf6",100:"#f9ebdb",200:"#f1d4b1",300:"#e6b273",400:"#dc9239",500:"#c37b24",600:"#a5681e",700:"#835318",800:"#674113",900:"#553610"},yellow:{50:"#fffefb",100:"#fff8e9",200:"#feecbd",300:"#fddc87",400:"#fbc434",500:"#d2a01e",600:"#a88018",700:"#836413",800:"#624b0e",900:"#513e0c"},green:{50:"#f7fdfb",100:"#d2f2e7",200:"#9fe3cd",300:"#64d2ad",400:"#1dbd88",500:"#0ea371",600:"#0c875e",700:"#096949",800:"#07563c",900:"#064731"},teal:{50:"#f1fcfc",100:"#c0f1f4",200:"#84e4e9",300:"#2dd1da",400:"#22b2ba",500:"#1d979e",600:"#187b80",700:"#125f64",800:"#0f5053",900:"#0d4244"},cyan:{50:"#f4fbfd",100:"#d0eef7",200:"#bae7f3",300:"#a2deee",400:"#53c2e1",500:"#2ab4d9",600:"#24a2c4",700:"#1e86a2",800:"#196e85",900:"#135567"},blue:{50:"#f1f6fd",100:"#cde0f6",200:"#a8c8f0",300:"#7fafe8",400:"#5896e1",500:"#347fdb",600:"#236abf",700:"#1b5192",800:"#164278",900:"#123662"},indigo:{50:"#f8f7fc",100:"#e1ddf5",200:"#c8c0ec",300:"#a89de2",400:"#9789dc",500:"#7f6ed4",600:"#6a58c9",700:"#5546a1",800:"#483c88",900:"#342b62"}},Hv={primary:F0.purple,secondary:F0.cyan,...F0},ote={heading:"InterVariable, Inter, sans-serif",body:"InterVariable, Inter, sans-serif"},ate={"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.8125rem",md:"0.875rem",lg:"1rem",xl:"1.125rem","2xl":"1.25rem","3xl":"1.5rem","4xl":"1.875rem","5xl":"2.25rem","6xl":"3rem","7xl":"3.75rem","8xl":"4.5rem","9xl":"6rem"},ste={h1:{fontSize:["5xl","6xl","7xl"],fontWeight:"extrabold",lineHeight:"1.2",letterSpacing:"-2%"},h2:{fontSize:["3xl","4xl","5xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},h3:{fontSize:["lg","xl"],fontWeight:"extrabold",lineHeight:"1.1",letterSpacing:"-1%"},subtitle:{fontSize:["lg",null,"2xl"],fontWeight:"normal"}},lte={container:{sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}},cte=lte,ute={outline:`0 0 0 2px ${Kt(Hv.primary[500],.6)({colors:Hv})}`},dte=ute,fte={colors:{"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.200"},muted:{default:"gray.500",_dark:"gray.400"},neutral:{default:"black",_dark:"white"},"neutral-fg":{default:"white",_dark:"black"}}},pte={colors:Hv,fonts:ote,fontSizes:ate,textStyles:ste,sizes:cte,shadows:dte,semanticTokens:fte},qT=Eb({...pte,styles:ite,components:OJ},rte);function XT(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}function mte(e,t){return e.find(n=>n.id===t)}function YT(e,t){const n=mte(e,t);return n?e.indexOf(n):-1}function hte(e,t,n=!0){let r=YT(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function gte(e,t,n=!0){let r=YT(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}const po=e=>(e==null?void 0:e.ownerDocument)??document,Eo=e=>e&&"window"in e&&e.window===e?e:po(e).defaultView||window;function vte(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function yte(e){return vte(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}const bte=typeof Element<"u"&&"checkVisibility"in Element.prototype;function xte(e){const t=Eo(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=Eo(e);let{display:a,visibility:l}=o(e);i=a!=="none"&&l!=="hidden"&&l!=="collapse"}return i}function Ste(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function QT(e,t){return bte?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&xte(e)&&Ste(e,t)&&(!e.parentElement||QT(e.parentElement,e))}const ZT=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],wte=ZT.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ZT.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function kte(e,t){return e.matches(wte)&&!Cte(e)&&((t==null?void 0:t.skipVisibilityCheck)||QT(e))}function Cte(e){let t=e;for(;t!=null;){if(t instanceof Eo(t).HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function JT(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const fx=typeof document<"u"?en.useLayoutEffect:()=>{};let Gv=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{Gv.delete(e)});function jte(e,t){if(e===t)return e;let n=Gv.get(e);if(n)return n.forEach(i=>i.current=t),t;let r=Gv.get(t);return r?(r.forEach(i=>i.current=e),e):t}function Pte(...e){return e.length===1&&e[0]?e[0]:t=>{let n=!1;const r=e.map(i=>{const o=u3(i,t);return n||(n=typeof o=="function"),o});if(n)return()=>{r.forEach((i,o)=>{typeof i=="function"?i():u3(e[o],null)})}}}function u3(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function e8(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t=65&&i.charCodeAt(2)<=90?t[i]=JT(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?t[i]=_te(o,a):i==="id"&&o&&a?t.id=jte(o,a):i==="ref"&&o&&a?t.ref=Pte(o,a):t[i]=a!==void 0?a:o}}return t}function Eu(e){if(Tte())e.focus({preventScroll:!0});else{let t=Ete(e);e.focus(),Ate(t)}}let rf=null;function Tte(){if(rf==null){rf=!1;try{document.createElement("div").focus({get preventScroll(){return rf=!0,!0}})}catch{}}return rf}function Ete(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeightt.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Ite(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Rte(e){for(;e&&!kte(e,{skipVisibilityCheck:!0});)e=e.parentElement;let t=Eo(e),n=t.document.activeElement;if(!n||n===e)return;let r=!1,i=d=>{(Wt(d)===n||r)&&d.stopImmediatePropagation()},o=d=>{(Wt(d)===n||r)&&(d.stopImmediatePropagation(),!e&&!r&&(r=!0,Eu(n),c()))},a=d=>{(Wt(d)===e||r)&&d.stopImmediatePropagation()},l=d=>{(Wt(d)===e||r)&&(d.stopImmediatePropagation(),r||(r=!0,Eu(n),c()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",o,!0),t.addEventListener("focusin",l,!0),t.addEventListener("focus",a,!0);let c=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",o,!0),t.removeEventListener("focusin",l,!0),t.removeEventListener("focus",a,!0),r=!1},u=requestAnimationFrame(c);return c}function Gm(e){var n;if(typeof window>"u"||window.navigator==null)return!1;let t=(n=window.navigator.userAgentData)==null?void 0:n.brands;return Array.isArray(t)&&t.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function mx(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)==null?void 0:t.platform)||window.navigator.platform):!1}function Vo(e){let t=null;return()=>(t==null&&(t=e()),t)}const Bp=Vo(function(){return mx(/^Mac/i)}),Mte=Vo(function(){return mx(/^iPhone/i)}),n8=Vo(function(){return mx(/^iPad/i)||Bp()&&navigator.maxTouchPoints>1}),r8=Vo(function(){return Mte()||n8()}),Lte=Vo(function(){return Gm(/AppleWebKit/i)&&!Nte()}),Nte=Vo(function(){return Gm(/Chrome/i)}),i8=Vo(function(){return Gm(/Android/i)}),Dte=Vo(function(){return Gm(/Firefox/i)});let oo=new Map,Kv=new Set;function d3(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{let i=Wt(r);if(!e(r)||!i)return;let o=oo.get(i);o||(o=new Set,oo.set(i,o),i.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{let i=Wt(r);if(!e(r)||!i)return;let o=oo.get(i);if(o&&(o.delete(r.propertyName),o.size===0&&(i.removeEventListener("transitioncancel",n),oo.delete(i)),oo.size===0)){for(let a of Kv)a();Kv.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?d3():document.addEventListener("DOMContentLoaded",d3));function Ote(){for(const[e]of oo)"isConnected"in e&&!e.isConnected&&oo.delete(e)}function Fte(e){requestAnimationFrame(()=>{Ote(),oo.size===0?e():Kv.add(e)})}let Ms="default",qv="",Xf=new WeakMap;function Bte(e){if(r8()){if(Ms==="default"){const t=po(e);qv=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ms="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Xf.set(e,e.style[t]),e.style[t]="none"}}function f3(e){if(r8()){if(Ms!=="disabled")return;Ms="restoring",setTimeout(()=>{Fte(()=>{if(Ms==="restoring"){const t=po(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=qv||""),qv="",Ms="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Xf.has(e)){let t=Xf.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[n]==="none"&&(e.style[n]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Xf.delete(e)}}function p3(e){let t=e==null?void 0:e.defaultView;return(t==null?void 0:t.__webpack_nonce__)||globalThis.__webpack_nonce__||void 0}let B0=new WeakMap;function Vte(e){let t=e??(typeof document<"u"?document:void 0);if(!t)return p3(t);if(B0.has(t))return B0.get(t);let n=t.querySelector('meta[property="csp-nonce"]'),r=n&&n instanceof Eo(n).HTMLMetaElement&&(n.nonce||n.content)||p3(t)||void 0;return r!==void 0&&B0.set(t,r),r}function Wte(e){return e.pointerType===""&&e.isTrusted?!0:i8()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Ute(e){return!i8()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Au(e,t,n=!0){var c,u;let{metaKey:r,ctrlKey:i,altKey:o,shiftKey:a}=t;Dte()&&((u=(c=window.event)==null?void 0:c.type)!=null&&u.startsWith("key"))&&e.target==="_blank"&&(Bp()?r=!0:i=!0);let l=Lte()&&Bp()&&!n8()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:i,altKey:o,shiftKey:a}):new MouseEvent("click",{metaKey:r,ctrlKey:i,altKey:o,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});Au.isOpening=n,Eu(e),e.dispatchEvent(l),Au.isOpening=!1}Au.isOpening=!1;const o8=en.createContext({register:()=>{}});o8.displayName="PressResponderContext";const Hte=en.useInsertionEffect??fx;function Yf(e){const t=m.useRef(null);return Hte(()=>{t.current=e},[e]),m.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function a8(){let e=m.useRef(new Map),t=m.useCallback((i,o,a,l)=>{let c=l!=null&&l.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:o,eventTarget:i,fn:c,options:l}),i.addEventListener(o,c,l)},[]),n=m.useCallback((i,o,a,l)=>{var u;let c=((u=e.current.get(a))==null?void 0:u.fn)||a;i.removeEventListener(o,c,l),e.current.delete(a)},[]),r=m.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return m.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Gte(e,t){fx(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Kte(e){let t=m.useContext(o8);if(t){let{register:n,ref:r,...i}=t;e=px(i,e),n()}return Gte(t,e.ref),e}var Js;class of{constructor(t,n,r,i){r2(this,Js);Sh(this,Js,!0);let o=(i==null?void 0:i.target)??r.currentTarget;const a=o==null?void 0:o.getBoundingClientRect();let l,c=0,u,d=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,d=r.clientY),a&&(u!=null&&d!=null?(l=u-a.left,c=d-a.top):(l=a.width/2,c=a.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=c,this.key=r.key}continuePropagation(){Sh(this,Js,!1)}get shouldStopPropagation(){return n2(this,Js)}}Js=new WeakMap;const m3=Symbol("linkClicked"),h3="react-aria-pressable-style",g3="data-react-aria-pressable";function qte(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,onClick:a,isDisabled:l,isPressed:c,preventFocusOnPress:u,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...h}=Kte(e),[g,b]=m.useState(!1),x=m.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:y,removeAllGlobalListeners:v}=a8(),S=m.useCallback((M,N)=>{let D=x.current;if(l||D.didFirePressStart)return!1;let R=!0;if(D.isTriggeringEvent=!0,r){let I=new of("pressstart",N,M);r(I),R=I.shouldStopPropagation}return n&&n(!0),D.isTriggeringEvent=!1,D.didFirePressStart=!0,b(!0),R},[l,r,n]),w=m.useCallback((M,N,D=!0)=>{let R=x.current;if(!R.didFirePressStart)return!1;R.didFirePressStart=!1,R.isTriggeringEvent=!0;let I=!0;if(i){let L=new of("pressend",N,M);i(L),I=L.shouldStopPropagation}if(n&&n(!1),b(!1),t&&D&&!l){let L=new of("press",N,M);t(L),I&&(I=L.shouldStopPropagation)}return R.isTriggeringEvent=!1,I},[l,i,n,t]),k=Yf(w),C=m.useCallback((M,N)=>{let D=x.current;if(l)return!1;if(o){D.isTriggeringEvent=!0;let R=new of("pressup",N,M);return o(R),D.isTriggeringEvent=!1,R.shouldStopPropagation}return!0},[l,o]),P=Yf(C),j=m.useCallback(M=>{let N=x.current;if(N.isPressed&&N.target){N.didFirePressStart&&N.pointerType!=null&&w(qo(N.target,M),N.pointerType,!1),N.isPressed=!1,N.isOverTarget=!1,N.activePointerId=null,N.pointerType=null,v(),f||f3(N.target);for(let D of N.disposables)D();N.disposables=[]}},[f,v,w]),T=Yf(j);m.useEffect(()=>{l&&x.current.isPressed&&T({currentTarget:x.current.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})},[l]);let E=m.useCallback(M=>{d&&j(M)},[d,j]),F=m.useCallback(M=>{l||a==null||a(M)},[l,a]),Y=m.useCallback((M,N)=>{if(!l&&a){let D=new MouseEvent("click",M);Ite(D,N),a(zte(D))}},[l,a]),q=m.useMemo(()=>{let M=x.current,N={onKeyDown(R){var I;if(V0(R.nativeEvent,R.currentTarget)&&Wr(R.currentTarget,Wt(R))){v3(Wt(R),R.key)&&R.preventDefault();let L=!0;!M.isPressed&&!R.repeat&&(M.target=R.currentTarget,M.isPressed=!0,M.pointerType="keyboard",L=S(R,"keyboard"));let H=R.currentTarget,Z=le=>{V0(le,H)&&!le.repeat&&Wr(H,Wt(le))&&M.target&&P(qo(M.target,le),"keyboard")};y(po(R.currentTarget),"keyup",JT(Z,D),!0),L&&R.stopPropagation(),R.metaKey&&Bp()&&((I=M.metaKeyEvents)==null||I.set(R.key,R.nativeEvent))}else R.key==="Meta"&&(M.metaKeyEvents=new Map)},onClick(R){if(!(R&&!Wr(R.currentTarget,Wt(R)))&&R&&R.button===0&&!M.isTriggeringEvent&&!Au.isOpening){let I=!0;if(l&&R.preventDefault(),!M.ignoreEmulatedMouseEvents&&!M.isPressed&&(M.pointerType==="virtual"||Wte(R.nativeEvent))){let L=S(R,"virtual"),H=P(R,"virtual"),Z=k(R,"virtual");F(R),I=L&&H&&Z}else if(M.isPressed&&M.pointerType!=="keyboard"){let L=M.pointerType||R.nativeEvent.pointerType||"virtual",H=P(qo(R.currentTarget,R),L),Z=k(qo(R.currentTarget,R),L,!0);I=H&&Z,M.isOverTarget=!1,F(R),T(R)}M.ignoreEmulatedMouseEvents=!1,I&&R.stopPropagation()}}},D=R=>{var I,L,H;if(M.isPressed&&M.target&&V0(R,M.target)){v3(Wt(R),R.key)&&R.preventDefault();let Z=Wt(R),le=Wr(M.target,Z);k(qo(M.target,R),"keyboard",le),le&&Y(R,M.target),v(),R.key!=="Enter"&&hx(M.target)&&Wr(M.target,Z)&&!R[m3]&&(R[m3]=!0,Au(M.target,R,!1)),M.isPressed=!1,(I=M.metaKeyEvents)==null||I.delete(R.key)}else if(R.key==="Meta"&&((L=M.metaKeyEvents)!=null&&L.size)){let Z=M.metaKeyEvents;M.metaKeyEvents=void 0;for(let le of Z.values())(H=M.target)==null||H.dispatchEvent(new KeyboardEvent("keyup",le))}};if(typeof PointerEvent<"u"){N.onPointerDown=L=>{if(L.button!==0||!Wr(L.currentTarget,Wt(L)))return;if(Ute(L.nativeEvent)){M.pointerType="virtual";return}M.pointerType=L.pointerType;let H=!0;if(!M.isPressed){M.isPressed=!0,M.isOverTarget=!0,M.activePointerId=L.pointerId,M.target=L.currentTarget,f||Bte(M.target),H=S(L,M.pointerType);let Z=Wt(L);"releasePointerCapture"in Z&&("hasPointerCapture"in Z?Z.hasPointerCapture(L.pointerId)&&Z.releasePointerCapture(L.pointerId):Z.releasePointerCapture(L.pointerId)),y(po(L.currentTarget),"pointerup",R,!1),y(po(L.currentTarget),"pointercancel",I,!1)}H&&L.stopPropagation()},N.onMouseDown=L=>{if(Wr(L.currentTarget,Wt(L))&&L.button===0){if(u){let H=Rte(L.target);H&&M.disposables.push(H)}L.stopPropagation()}},N.onPointerUp=L=>{!Wr(L.currentTarget,Wt(L))||M.pointerType==="virtual"||L.button===0&&!M.isPressed&&P(L,M.pointerType||L.pointerType)},N.onPointerEnter=L=>{L.pointerId===M.activePointerId&&M.target&&!M.isOverTarget&&M.pointerType!=null&&(M.isOverTarget=!0,S(qo(M.target,L),M.pointerType))},N.onPointerLeave=L=>{L.pointerId===M.activePointerId&&M.target&&M.isOverTarget&&M.pointerType!=null&&(M.isOverTarget=!1,k(qo(M.target,L),M.pointerType,!1),E(L))};let R=L=>{if(L.pointerId===M.activePointerId&&M.isPressed&&L.button===0&&M.target){if(Wr(M.target,Wt(L))&&M.pointerType!=null){let H=!1,Z=setTimeout(()=>{M.isPressed&&M.target instanceof HTMLElement&&(H?T(L):(Eu(M.target),M.target.click()))},80);y(L.currentTarget,"click",()=>H=!0,!0),M.disposables.push(()=>clearTimeout(Z))}else T(L);M.isOverTarget=!1}},I=L=>{T(L)};N.onDragStart=L=>{Wr(L.currentTarget,Wt(L))&&T(L)}}return N},[y,l,u,v,f,E,S,F,Y]);return m.useEffect(()=>{if(!p)return;const M=po(p.current);if(!M||!M.head||M.getElementById(h3))return;const N=M.createElement("style");N.id=h3;let D=Vte(M);D&&(N.nonce=D),N.textContent=` -@layer { - [${g3}] { - touch-action: pan-x pan-y pinch-zoom; - } -} - `.trim(),M.head.prepend(N)},[p]),m.useEffect(()=>{let M=x.current;return()=>{f||f3(M.target??void 0);for(let N of M.disposables)N();M.disposables=[]}},[f]),{isPressed:c||g,pressProps:px(h,q,{[g3]:!0})}}function hx(e){return e.tagName==="A"&&e.hasAttribute("href")}function V0(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Eo(i).HTMLInputElement&&!s8(i,n)||i instanceof Eo(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&hx(i))&&n!=="Enter")}function qo(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function Xte(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!hx(e)}function v3(e,t){return e instanceof HTMLInputElement?!s8(e,t):Xte(e)}const Yte=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function s8(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Yte.has(e.type)}let Qte=0;const W0=new Map;function Zte(e){let[t,n]=m.useState();return fx(()=>{if(!e)return;let r=W0.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${Qte++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=e,document.body.appendChild(o),r={refCount:0,element:o},W0.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),W0.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}const Jte=500;function ene(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=Jte,accessibilityDescription:a}=e;const l=m.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:u}=a8(),{pressProps:d}=qte({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),l.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),po(p.target).activeElement!==p.target&&Eu(p.target),i&&i({...p,type:"longpress"}),l.current=void 0},o),p.pointerType==="touch")){let h=b=>{b.preventDefault()},g=Eo(p.target);c(p.target,"contextmenu",h,{once:!0}),c(g,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){l.current&&clearTimeout(l.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=Zte(i&&!t?a:void 0);return{longPressProps:px(d,f)}}function tne(){return typeof window.ResizeObserver<"u"}function nne(e){const{ref:t,box:n,onResize:r}=e;let i=Yf(r);m.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(tne()){const a=new window.ResizeObserver(l=>{l.length&&i()});return a.observe(o,{box:n}),()=>{o&&a.unobserve(o)}}else return window.addEventListener("resize",i,!1),()=>{window.removeEventListener("resize",i,!1)}},[t,n])}function rne(e,t){return m.Children.toArray(e).find(n=>n.type===t)}function ine(e,t){return m.Children.toArray(e).filter(n=>Array.isArray(t)?t.some(r=>r===n.type):n.type===t)}var one=(e,t)=>Array.isArray(e)?e:typeof e=="object"?t==null?void 0:t(e):e!=null?[e]:[],y3=(e,t)=>{var n;const r=Di(),i=one(e,(n=r.__breakpoints)==null?void 0:n.toArrayValue);return Dp(i,t)},[ade,ane]=Or("SuiEmptyState"),sne=V((e,t)=>{var n;const r=ane();return s.jsx(wt,{ref:t,role:"presentation",...e,boxSize:(n=e.boxSize)!=null?n:10,sx:{...r.icon,...e.sx},className:W("sui-empty-state__icon",e.className)})});sne.displayName="EmptyStateIcon";var gx=m.createContext({});function lne(e){const{theme:t,linkComponent:n,onError:r,children:i,...o}=e,a={linkComponent:n,onError:r};return s.jsx(gx.Provider,{value:a,children:s.jsx(pG,{...o,theme:t||qT,children:i})})}var cne=()=>m.useContext(gx),une=e=>s.jsx(O.a,{...e});function vx(){const e=cne();return e!=null&&e.linkComponent?e.linkComponent:une}var dne=class extends m.Component{constructor(e){super(e),this.onError=(t,n)=>{var r,i,o,a;(i=(r=this.props).onError)==null||i.call(r,t,n),(a=(o=this.context).onError)==null||a.call(o,t,n)},this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.onError(e,t)}render(){return this.state.error?this.props.fallback||s.jsx("h1",{children:"Something went wrong."}):this.props.children}};dne.contextType=gx;var l8=(e="lg")=>e?{base:!0,[e]:!1}:{base:!1},[fne,pne]=Te({strict:!1,errorMessage:"AppShell context not available."}),mne=e=>{const t=Bu(),n=l8(e.toggleBreakpoint),r=Dp(n,{fallback:e.toggleBreakpoint||"lg"});return{isSidebarOpen:t.isOpen,closeSidebar:t.onClose,openSidebar:t.onOpen,toggleSidebar:t.onToggle,isMobile:r}},[hne]=Or("SuiAppShell"),gne=V((e,t)=>{const n=et("SuiAppShell",e),{navbar:r,sidebar:i,aside:o,footer:a,children:l,mainRef:c,...u}=Ie(e),d={flexDirection:"column",...n.container},f={flex:1,minHeight:0,minWidth:0,...n.inner},p={flex:1,flexDirection:"column",minWidth:0,...n.main},h=m.isValidElement(i)&&i.type.id==="Sidebar",g=mne({toggleBreakpoint:h?i==null?void 0:i.props.toggleBreakpoint:void 0});return s.jsx(fne,{value:g,children:s.jsx(hne,{value:n,children:s.jsxs(gt,{ref:t,...u,sx:d,className:W("sui-app-shell",e.className),children:[r,s.jsxs(gt,{sx:f,className:"saas-app-shell__inner",children:[i,s.jsx(gt,{ref:c,sx:p,className:"saas-app-shell__main",children:l}),o]}),a]})})})});gne.displayName="AppShell";function vne(e){return s.jsx(wt,{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function yne(e){return s.jsx(wt,{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function b3(e){return s.jsx(wt,{viewBox:"0 0 24 24",...e,children:s.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var af={enter:{duration:.2,ease:Si.easeOut},exit:{duration:.2,ease:Si.easeIn}},bne={slideOutTop:{...lo,custom:{offsetY:"-100%",reverse:!0,transition:af},initial:"enter"},slideOutBottom:{...lo,custom:{offsetY:"100%",reverse:!0,transition:af},initial:"enter"},fade:{...lo,custom:{transition:af},initial:"enter"},scale:{...Jb,custom:{initialScale:.1,reverse:!0,transition:af},initial:"enter"},none:{custom:{}}},xne=O(ir.div),Sne=m.forwardRef((e,t)=>{const{motionPreset:n,...r}=e,o={...bne[n]};return s.jsx(xne,{ref:t,...o,...r})}),[wne,od]=Or("SuiBanner"),kne={info:{icon:yne,colorScheme:"blue"},warning:{icon:b3,colorScheme:"orange"},success:{icon:vne,colorScheme:"green"},error:{icon:b3,colorScheme:"red"}},[Cne,jne]=Te({name:"BannerContext",errorMessage:"useBannerContext: `context` is undefined. Seems you forgot to wrap banner components in ``"}),Pne=V((e,t)=>{var n;const{id:r,status:i="info",isOpen:o=!0,onClose:a,motionPreset:l="slideOutTop",...c}=Ie(e),u=(n=e.colorScheme)!=null?n:kne[i].colorScheme,d=et("SuiBanner",{...e,colorScheme:u}),f={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...d.container},p={id:r||`banner-${m.useId()}`,status:i,onClose:a,isOpen:o},h=["warning","error"].includes(i)?"alert":"status",g=o?"enter":"exit";return s.jsx(Cne,{value:p,children:s.jsx(wne,{value:d,children:s.jsx(Ni,{children:o&&s.jsx(Sne,{id:p.id,role:h,ref:t,motionPreset:l,animate:g,...c,className:W("sui-banner",e.className),__css:f})})})})});Pne.displayName="Banner";var _ne=V((e,t)=>{const n=od();return s.jsx(O.div,{ref:t,...e,className:W("sui-banner__content",e.className),__css:n.content})});_ne.displayName="BannerContent";var Tne=V((e,t)=>{const n=od();return s.jsx(O.div,{ref:t,...e,className:W("sui-banner__title",e.className),__css:n.title})});Tne.displayName="BannerTitle";var Ene=V((e,t)=>{const r={display:"inline",...od().description};return s.jsx(O.div,{ref:t,...e,className:W("sui-banner__desc",e.className),__css:r})});Ene.displayName="BannerDescription";var Ane=V((e,t)=>{const{children:n,variant:r}=e,i=od();return s.jsx(O.div,{ref:t,...e,className:W("sui-banner__actions",e.className),__css:i.actions,children:s.jsx(Lm,{variant:r,children:n})})});Ane.displayName="BannerActions";var $ne=V((e,t)=>{const{onClick:n,className:r,...i}=e,{onClose:o,isOpen:a,id:l}=jne(),c=W("sui-banner__close-btn",r),u=od();return s.jsx(Mm,{ref:t,__css:u.closeButton,className:c,onClick:fe(n,d=>{d.stopPropagation(),o==null||o()}),"aria-controls":l,"aria-expanded":a!=null&&a.toString()?"true":"false",...i})});$ne.displayName="BannerCloseButton";Te({name:"UseCollapseReturn"});var[zne,yx]=Or("SuiStructuredList"),[Ine,Rne]=Te({name:"StructuredListContext",errorMessage:"useStructuredListContext: `context` is undefined. Seems you forgot to wrap the components in ``"});function Mne(e){return XT(e,"[role='button']:not([disabled])")}var Lne=e=>{var t;const n=m.useId(),r=m.useRef(null),[i,o]=m.useState(null),a={onBlur:fe(e.onBlur,l=>{l.relatedTarget&&(Mne(r.current).includes(l.relatedTarget)||o(null))})};return{id:(t=e.id)!=null?t:n,containerRef:r,focusId:i,setFocusId:o,listProps:a}},Nne=V((e,t)=>{const{items:n,children:r,...i}=e,o=et("SuiStructuredList",i),a=Ie(i);let l;n?l=n.map((f,p)=>m.createElement(c8,{...f,key:f.id||p})):l=r;const c={py:2,position:"relative",...o.list},{listProps:u,...d}=Lne(e);return s.jsx(Ine,{value:d,children:s.jsx(zne,{value:o,children:s.jsx(O.ul,{ref:v1(t,d.containerRef),__css:c,...a,...u,className:W("sui-list",e.className),children:l})})})});Nne.displayName="StructuredList";var Dne=V((e,t)=>{const{children:n,onClick:r,action:i,role:o="heading",level:a=1,...l}=e,c=yx();return s.jsxs(O.li,{ref:t,__css:c.header,onClick:r,...l,className:W("sui-list__header",e.className),children:[s.jsx(O.span,{flex:"1",userSelect:"none",role:o,"aria-level":a,children:n}),i]})});Dne.displayName="StructuredListHeader";var c8=V((e,t)=>{const{onClick:n,href:r,as:i,children:o,isDisabled:a,...l}=e,c=yx(),u=!!(n||r),d=u?u8:m.Fragment,f=!!u,p={...c.item,...f?{py:0,px:0}:{}},h=u?{onClick:n,href:r,as:i,isDisabled:a}:{},g=u?s.jsx(d,{...h,children:o}):o;return s.jsx(O.li,{ref:t,__css:p,...l,className:W("sui-list__item",e.className),children:g})});c8.displayName="StructuredListItem";var One=e=>{var t;const{id:n,containerRef:r,focusId:i,setFocusId:o}=Rne(),a=`${n}-${m.useId()}`,l=(t=e.id)!=null?t:a,c=i===l;function u(){return XT(r.current,".sui-list__item-button:not([aria-disabled=true])")}return{buttonProps:{id:l,"data-focus":me(c),"aria-disabled":e.isDisabled?"true":void 0,tabIndex:e.isDisabled?-1:0,onFocus:fe(e.onFocus,()=>{o(l)}),onKeyDown:fe(e.onKeyDown,m.useCallback(f=>{const p=u(),h={ArrowUp:()=>{var g;(g=gte(p,l))==null||g.focus()},ArrowDown:()=>{var g;(g=hte(p,l))==null||g.focus()},Home:()=>{var g;(g=p[0])==null||g.focus()},End:()=>{var g;(g=p[p.length-1])==null||g.focus()}};h[f.key]&&(f.preventDefault(),h[f.key](f))},[l])),onClick:f=>{var p;if(e.isDisabled){f.preventDefault(),f.stopPropagation();return}(p=e.onClick)==null||p.call(e,f)}}}},u8=V((e,t)=>{const{children:n,isDisabled:r,...i}=e,{buttonProps:o}=One(e),a=yx();return s.jsx(O.div,{ref:t,__css:a.button,role:"button",...i,...o,className:W("sui-list__item-button",e.className),children:n})});u8.displayName="StructuredListButton";var Fne=V((e,t)=>{const n=vx(),{href:r,...i}=e;return s.jsx(Oi,{as:n,ref:t,href:r,...i})});Fne.displayName="Link";Or("SuiLoadingOverlay");O(ir.div);var Bne=typeof window<"u";function x3(e){return Bne?e?{x:e.scrollLeft,y:e.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}var Vne=e=>{const{elementRef:t,delay:n=30,callback:r,isEnabled:i}=e,o=m.useRef(i?x3(t==null?void 0:t.current):{x:0,y:0});let a=null;const l=()=>{const c=x3(t==null?void 0:t.current);typeof r=="function"&&r({prevPos:o.current,currPos:c}),o.current=c,a=null};return m.useEffect(()=>{if(!i)return;const c=()=>{n?a===null&&(a=setTimeout(l,n)):l()},u=(t==null?void 0:t.current)||window;return u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)},[t==null?void 0:t.current,n,i]),o.current},[sde,Wne]=Te({name:"UseContextMenuContext",strict:!1}),S3=(e=0,t=0)=>()=>({width:0,height:0,top:t,left:e,right:e,bottom:t}),Une=()=>typeof window!==void 0&&window.matchMedia("(hover: none)").matches,Hne=(e,t)=>{const{triggerRef:n,onOpen:r,onClose:i,anchor:o}=Wne(),a=eY(),{popper:l,openAndFocusFirstItem:c}=a,{longPressProps:u}=ene({isDisabled:e.longPressDisabled,accessibilityDescription:"Long press to open context menu",onLongPressStart:h=>{i()},onLongPress:h=>{h.pointerType!=="mouse"&&h.type==="longpress"&&(r(h),c())}}),d=m.useRef({getBoundingClientRect:S3(o.x,o.y)});return m.useEffect(()=>{l.referenceRef(d.current)},[]),m.useEffect(()=>{d.current.getBoundingClientRect=S3(o.x,o.y),a.popper.update()},[o]),{triggerProps:{...u,onPointerDown:h=>{var g;h.pointerType!=="mouse"&&((g=u.onPointerDown)==null||g.call(u,h))},onMouseDown:h=>{var g;Une()&&((g=u.onMouseDown)==null||g.call(u,h))},onContextMenu:fe(h=>{h.preventDefault(),r(h),c()},e.onContextMenu),ref:_t(n,t)}}},Gne=V((e,t)=>{const{children:n,longPressDisabled:r,...i}=e,{triggerProps:o}=Hne(e,t);return s.jsx(O.span,{...i,sx:{WebkitTouchCallout:"none"},...o,children:n})});Gne.displayName="ContextMenuTrigger";var[Kne,Km]=Or("SuiPersona"),w3={online:{label:"Online",color:"presence.online"},offline:{label:"Offline",color:"presence.offline"},busy:{label:"Busy",color:"presence.busy"},dnd:{label:"Do-not-disturb",color:"presence.dnd"},away:{label:"Away",color:"presence.away"}},qne={online:"green.500",offline:"gray.400",busy:"orange.500",dnd:"red.500",away:"gray.400"},Xne=V((e,t)=>{const{children:n,...r}=e,i=et("SuiPersona",e),o=Ie(r),l={...{display:"flex",flexDirection:"row",alignItems:"center"},...i.container};return s.jsx(Kne,{value:i,children:s.jsx(O.div,{ref:t,__css:l,...o,className:W("sui-persona",e.className),children:n})})});Xne.displayName="PersonaContainer";var Yne=V((e,t)=>{var n,r,i,o,a;const{name:l,presence:c,presenceLabel:u,presenceIcon:d,isOutOfOffice:f,badgeSize:p="1em",size:h,getInitials:g,icon:b,iconLabel:x,ignoreFallback:y,loading:v,onError:S,src:w,srcSet:k,...C}=e,P={};let j;const T=Di(),E=((n=T.colors)==null?void 0:n.presence)||qne,F=!!((i=(r=T.semanticTokens)==null?void 0:r.colors)!=null&&i["presence.online"]);if(c){const Y=u||((o=w3[c])==null?void 0:o.label),q=F?((a=w3[c])==null?void 0:a.color)||`presence.${c}`:E[c];f?(P.sx={_before:{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:"0.2em solid",borderColor:q,borderRadius:"50%",boxSizing:"border-box"}},P.borderWidth="0.15em",P.bg=Ep("white","gray.800")):P.bg=q,j=s.jsx(l_,{boxSize:p,...P,children:d}),Y&&(j=s.jsx(nx,{label:Y,children:j}))}return s.jsx(kb,{ref:t,name:l,size:h,getInitials:g,icon:b,iconLabel:x,ignoreFallback:y,loading:v,onError:S,src:w,srcSet:k,...C,children:j})});Yne.displayName="PersonaAvatar";var Qne=V((e,t)=>{const{children:n,className:r,...i}=e,o=Km(),l={...{display:"flex",flexDirection:"column"},...o.details};return s.jsx(O.div,{ref:t,...i,__css:l,className:W("sui-persona__details",r),children:n})});Qne.displayName="PersonaDetails";var Zne=V((e,t)=>{const n=Km();return s.jsx(O.span,{ref:t,...e,__css:n.label,className:W("sui-persona__label",e.className)})});Zne.displayName="PersonaLabel";var Jne=V((e,t)=>{const n=Km();return s.jsx(O.span,{ref:t,...e,__css:n.secondaryLabel,className:W("sui-persona__secondary-label",e.className)})});Jne.displayName="PersonaSecondaryLabel";var ere=V((e,t)=>{const n=Km();return s.jsx(O.span,{ref:t,...e,__css:n.tertiaryLabel,className:W("sui-persona__tertiary-label",e.className)})});ere.displayName="PersonaTertiaryLabel";var[tre,d8]=Or("SuiProperty"),nre=V((e,t)=>{const n=et("SuiProperty",e),{children:r,label:i,value:o,labelWidth:a,spacing:l,...c}=Ie(e),u={minW:0,display:"flex",flexDirection:"row",alignItems:"center",...n.property};return s.jsx(tre,{value:n,children:s.jsxs(O.dl,{ref:t,__css:u,...c,className:W("sui-property",e.className),children:[i&&s.jsx(f8,{width:a,minWidth:a,marginEnd:l,children:i}),o&&s.jsx(p8,{children:o}),r]})})});nre.displayName="Property";var f8=V((e,t)=>{const n=d8(),{children:r,noOfLines:i=1,width:o,minWidth:a,...l}=e,c={display:"flex",flexDirection:"row",...n.label};return o&&(c.minWidth=a||"auto",c.width=o),s.jsx(O.dt,{ref:t,__css:c,...l,className:W("sui-property__label",e.className),children:s.jsx(O.span,{flex:"1",noOfLines:i,children:r})})});f8.displayName="PropertyLabel";var p8=V((e,t)=>{const n=d8(),{children:r,...i}=e,o={display:"flex",flexDirection:"row",alignItems:"center",flex:1,...n.value};return s.jsx(O.dd,{ref:t,__css:o,...i,className:W("sui-property__value",e.className),children:r})});p8.displayName="PropertyValue";function rre(e){const{ref:t,parentRef:n,height:r="3.5rem",shouldHideOnScroll:i=!1,disableScrollHandler:o=!1,onScrollPositionChange:a,motionProps:l,...c}=e,u=m.useRef(null);m.useImperativeHandle(t,()=>u.current);const d=m.useRef(0),f=m.useRef(0),[p,h]=m.useState(!1),g=()=>{if(u.current){const x=u.current.offsetWidth;x!==d.current&&(d.current=x)}};return nne({ref:u,onResize:()=>{var x;((x=u.current)==null?void 0:x.offsetWidth)!==d.current&&g()}}),m.useEffect(()=>{var x;g(),f.current=((x=u.current)==null?void 0:x.offsetHeight)||0},[]),Vne({elementRef:n,isEnabled:i||!o,callback:({prevPos:x,currPos:y})=>{a==null||a(y.y),i&&h(v=>{const S=y.y>x.y&&y.y>f.current;return S!==v?S:v})}}),{containerRef:u,height:r,isHidden:p,shouldHideOnScroll:i,motionProps:l,getContainerProps:(x={})=>({...c,...l,"data-hidden":me(p),ref:u,style:{"--navbar-height":r,...c.style,...x==null?void 0:x.style}})}}var[ire]=Te({name:"NavbarContext",strict:!0,errorMessage:"useNavbarContext: `context` is undefined. Seems you forgot to wrap component within "}),[ore,qm]=Te({name:"NavBarStylesContext",hookName:"useNavItemStyles",providerName:""}),are=O(ir.nav),sre=V((e,t)=>{const{children:n,...r}=e,i=rre({...r,ref:t}),o=et("SuiNavbar",e),a=s.jsx(O.header,{__css:o.inner,className:"sui-navbar__inner",children:n}),l={top:e.position==="sticky"?"0":void 0,insetX:e.position==="sticky"?"0":void 0,...o.container};return s.jsx(ore,{value:o,children:s.jsx(ire,{value:i,children:s.jsx(are,{__css:l,animate:i.isHidden?"hidden":"visible",initial:!1,variants:{hidden:{y:"-100%"},visible:{y:0,transition:{ease:"easeInOut"}}},className:W("sui-navbar",e.className),...i.getContainerProps(e),children:a})})})});sre.displayName="Navbar";var lre=V((e,t)=>{const{className:n,children:r,...i}=e,o=qm();return s.jsx(O.div,{ref:t,__css:o.brand,className:W("sui-navbar__brand"),...i,children:r})});lre.displayName="NavbarBrand";var cre=V((e,t)=>{const{className:n,children:r,spacing:i=0,...o}=e,l={...qm().content,"& > *:not(style) ~ *:not(style)":{marginStart:i}};return s.jsx(O.ul,{ref:t,__css:l,className:W("sui-navbar__content",n),...o,children:r})});cre.displayName="NavbarContent";var ure=V((e,t)=>{const{className:n,children:r,isActive:i,...o}=e,a=qm();return s.jsx(O.li,{ref:t,__css:a.item,className:W("sui-navbar__item",n),"data-active":me(i),...o,children:r})});ure.displayName="NavbarItem";var dre=V((e,t)=>{const{className:n,children:r,isActive:i,...o}=e,a=vx(),l=qm();return s.jsx(O.a,{as:a,ref:t,__css:l.link,"data-active":me(i),className:W("sui-navbar__link",n),...o,children:r})});dre.displayName="NavbarLink";var[fre,pre]=Te({name:"SidebarContext",strict:!1}),[mre]=Te({name:"SidebarStylesContext",hookName:"useSidebarStyles",providerName:""}),hre=O(ir.nav),gre={slideInOut:{enter:{left:0,transition:{type:"spring",duration:.6,bounce:.15}},exit:{left:"-100%"}},none:{}},m8=V((e,t)=>{var n,r,i;const o=et("SuiSidebar",e),l=(n=Di().components.SuiSidebar)==null?void 0:n.defaultProps,c=y3((r=e.variant)!=null?r:l==null?void 0:l.variant,{fallback:"base"}),u=y3((i=e.size)!=null?i:l==null?void 0:l.size,{fallback:"base"}),d=c==="compact",{spacing:f=4,children:p,toggleBreakpoint:h="lg",className:g,motionPreset:b="slideInOut",isOpen:x,onOpen:y,onClose:v,...S}=Ie(e),w=pne(),k=l8(h),C=Dp(k,{fallback:void 0}),P=Dp(k),j=typeof C>"u",T=typeof x<"u",E=(C||T)&&!d,F=Bu({isOpen:x||(w==null?void 0:w.isSidebarOpen),onOpen:y||(w==null?void 0:w.openSidebar),onClose:v||(w==null?void 0:w.closeSidebar)}),{isOpen:Y,onClose:q,onOpen:M}=F;m.useEffect(()=>{j&&P||d||T||(P?q():M())},[j,d,P]);const N={"& > *:not(style) ~ *:not(style, .sui-resize-handle, .sui-sidebar__toggle-button + *)":{marginTop:f},display:"flex",flexDirection:"column",...C&&E?{position:"absolute",zIndex:"modal",top:0,left:{base:"-100%",lg:"0"},bottom:0}:{position:"relative"}},D={...F,breakpoints:k,isMobile:C,variant:c,size:u},R=gre[d?"none":b||"none"];return s.jsx(fre,{value:D,children:s.jsx(mre,{value:o,children:s.jsx(hre,{ref:t,initial:!1,animate:!j&&(!E||Y?"enter":"exit"),variants:R,__css:{...N,...o.container},...S,id:F.getDisclosureProps().id,className:W("sui-sidebar",g),"data-compact":me(d),"data-collapsible":me(C&&E),children:p})})})});m8.displayName="Sidebar";m8.id="Sidebar";Te({name:"NavGroupStylesContext",hookName:"useNavItemStyles",providerName:""});var[vre,h8]=Te({name:"NavItemStylesContext",hookName:"useNavItemStyles",providerName:""}),g8=V(({children:e,...t},n)=>{const r=h8();return s.jsx(O.span,{ref:n,__css:r.label,...t,className:W("sui-nav-item__label",t.className),children:e})});g8.displayName="NavItemLabel";var v8=e=>{const t=h8(),{className:n,children:r,...i}=e,o=m.Children.only(r),a=m.isValidElement(o)?m.cloneElement(o,{focusable:"false","aria-hidden":!0}):null;return s.jsx(O.span,{...i,className:W("sui-nav-item__icon",e.className),__css:{flexShrink:0,...t.icon},children:a})};v8.displayName="NavItemIcon";var yre=V((e,t)=>{const{as:n,href:r,icon:i,inset:o,className:a,tooltipProps:l,isActive:c,children:u,...d}=Ie(e),f=vx(),{onClose:p,variant:h}=pre()||{},g=h==="compact",b=et("SuiNavItem",e);let x=u,y=l==null?void 0:l.label;typeof x=="string"&&(!y&&g&&(y=x),x=s.jsx(g8,{children:x}));let v=n;r&&!n&&(v=f);const S=s.jsx(O.a,{as:v,"aria-current":c?"page":void 0,...d,ref:t,href:r,className:"sui-nav-item__link","data-active":me(c),__css:b.link,children:s.jsxs(O.span,{__css:{...b.inner,pl:o},className:"sui-nav-item__inner",children:[i&&s.jsx(v8,{children:i}),x]})});return s.jsx(vre,{value:b,children:s.jsx(nx,{label:y,placement:"right",openDelay:400,...l,children:s.jsx(O.div,{__css:b.item,onClick:p,"data-compact":me(g),className:W("sui-nav-item",a),children:S})})})});yre.displayName="NavItem";var bre=V((e,t)=>{const{placeholder:n="Search",value:r,defaultValue:i,size:o,variant:a,width:l,icon:c,resetIcon:u,rightElement:d,onChange:f,onReset:p,onKeyDown:h,...g}=e,b=et("SuiSearchInput",e),x=m.useRef(null),[y,v]=v6({value:r,defaultValue:i}),S=m.useCallback(j=>{v(j.target.value)},[v]),w=m.useCallback(j=>{j.key==="Escape"&&(v(""),k())},[p,v]),k=()=>{var j;v(""),p==null||p(),(j=x.current)==null||j.focus()},C=o==="lg"?"sm":"xs",P=y&&!e.isDisabled;return s.jsxs(Wb,{size:o,width:l,children:[s.jsx(Ub,{children:c||s.jsx(QQ,{})}),s.jsx(mt,{type:"text",placeholder:n,variant:a,size:o,value:y,ref:v1(t,x),sx:b.input,onChange:fe(S,f),onKeyDown:fe(w,h),...g}),s.jsx(Om,{children:P?s.jsx(Cn,{onClick:k,size:C,variant:"ghost","aria-label":"Reset search",icon:u||s.jsx(YQ,{}),sx:b.reset}):d})]})});bre.displayName="SearchInput";var[xre,Sre]=Te({name:"StepperContext",errorMessage:"useStepperContext: `context` is undefined. Seems you forgot to wrap stepper components in ``"});function wre(e){const{step:t,onChange:n}=e,[r,i]=m.useState(0),o=m.useRef([]),[,a]=m.useState(Date.now()),l=m.useCallback(h=>{const g=[...o.current];g.indexOf(h)===-1&&g.push(h),o.current=g,a(Date.now())},[o,a]),c=h=>{o.current=o.current.slice(o.current.indexOf(h),1)},u=h=>{const g=o.current.indexOf(h);g!==-1&&i(g)},d=()=>{i(r+1)},f=()=>{i(r-1)};return m.useEffect(()=>{typeof t=="string"?u(t):typeof t=="number"?i(t):r===-1&&i(0)},[t]),m.useEffect(()=>{n==null||n(r)},[r,n]),{stepsRef:o,activeStep:o.current[r],activeIndex:r,isFirstStep:r===0,isLastStep:r===o.current.length-1,isCompleted:r>=o.current.length,setIndex:i,setStep:u,nextStep:d,prevStep:f,registerStep:l,unregisterStep:c}}function kre(e){const{name:t,isActive:n,isCompleted:r}=e,{registerStep:i,unregisterStep:o,activeStep:a}=Sre();return m.useEffect(()=>{if(t)return i(t),()=>{o(t)}},[]),{isActive:t?a===t:n,isCompleted:r}}var[Cre,jre]=Or("Stepper"),Pre=V((e,t)=>{var n,r,i,o;const{children:a,orientation:l="horizontal",index:c,step:u,onChange:d,variant:f,colorScheme:p,size:h,stepperProps:g,...b}=e,x=et("Stepper",e),y=wre({step:u??c,onChange:d}),{activeIndex:v}=y,S=l==="vertical",w=ine(a,y8),k={position:"relative",...x.item},C=w.reduce((E,F,Y,q)=>{const M=m.cloneElement(F,{key:Y,...F.props,isActive:v===Y,isCompleted:F.props.isCompleted||v>Y});return S?E.push(s.jsxs(O.div,{className:"sui-steps__item",__css:k,children:[M,s.jsx(Xv,{isOpen:v===Y,orientation:l,children:F.props.children}),Y=w.length?P:!S&&j?s.jsx(Xv,{orientation:l,children:(o=(i=w[v])==null?void 0:i.props)==null?void 0:o.children}):null;return s.jsx(Cre,{value:x,children:s.jsx(xre,{value:y,children:s.jsxs(O.div,{ref:t,__css:x.container,...b,className:W("sui-steps",e.className),children:[s.jsx(VQ,{index:v,orientation:l,variant:f,colorScheme:p,size:h,...g,children:C}),T]})})})});Pre.displayName="Steps";var y8=e=>{const{render:t,icon:n,title:r,description:i,...o}=e,a=kre(o);return t?t({...a,...e}):s.jsxs(MQ,{children:[s.jsx(FQ,{children:s.jsx(OQ,{complete:s.jsx(DQ,{}),incomplete:s.jsx(qw,{children:n}),active:s.jsx(qw,{})})}),s.jsxs(ae,{flexShrink:"0",children:[s.jsx(BQ,{children:r}),i&&s.jsx(LQ,{children:i})]}),s.jsx(MT,{})]})};y8.displayName="StepsItem";var Xv=e=>{const{children:t,isOpen:n=!0,orientation:r="horizontal",...i}=e,o=jre();return s.jsx(O.div,{...i,__css:o.content,className:W("sui-steps__content",e.className),"data-orientation":r,children:r==="vertical"?s.jsx(Al,{in:n,style:{overflow:n?"visible":"hidden"},children:s.jsx(O.div,{p:"2px",children:n?t:null})}):t})};Xv.displayName="StepsContent";var b8=e=>{const t={};return s.jsx(O.div,{__css:t,...e,className:W("sui-steps__completed",e.className)})};b8.displayName="StepsCompleted";var[lde,_re]=Or("SuiTimeline"),Tre=V((e,t)=>{const{children:n,...r}=e,i=_re();return s.jsx(O.li,{...r,ref:t,__css:i.item,className:W("sui-timeline__item",e.className),children:n})});Tre.displayName="TimelineItem";V((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":o,...a}=e,l=or("SuiIconBadge",e),c=Ie(a),u=n||r,d=m.isValidElement(u)?m.cloneElement(u,{"aria-hidden":!0,focusable:!1}):null,f={display:"inline-flex",alignItems:"center",justifyContent:"center",...l};return s.jsx(O.div,{ref:t,__css:f,borderRadius:i?"full":void 0,"aria-label":o,...c,className:W("sui-icon-badge",e.className),children:d})});/** - * @remix-run/router v1.23.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function $u(){return $u=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function bx(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Are(){return Math.random().toString(36).substr(2,8)}function C3(e,t){return{usr:e.state,key:e.key,idx:t}}function Yv(e,t,n,r){return n===void 0&&(n=null),$u({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Il(t):t,{state:n,key:t&&t.key||r||Are()})}function Vp(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Il(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function $re(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,l=mo.Pop,c=null,u=d();u==null&&(u=0,a.replaceState($u({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function f(){l=mo.Pop;let x=d(),y=x==null?null:x-u;u=x,c&&c({action:l,location:b.location,delta:y})}function p(x,y){l=mo.Push;let v=Yv(b.location,x,y);u=d()+1;let S=C3(v,u),w=b.createHref(v);try{a.pushState(S,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(w)}o&&c&&c({action:l,location:b.location,delta:1})}function h(x,y){l=mo.Replace;let v=Yv(b.location,x,y);u=d();let S=C3(v,u),w=b.createHref(v);a.replaceState(S,"",w),o&&c&&c({action:l,location:b.location,delta:0})}function g(x){let y=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof x=="string"?x:Vp(x);return v=v.replace(/ $/,"%20"),xt(y,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,y)}let b={get action(){return l},get location(){return e(i,a)},listen(x){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(k3,f),c=x,()=>{i.removeEventListener(k3,f),c=null}},createHref(x){return t(i,x)},createURL:g,encodeLocation(x){let y=g(x);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:p,replace:h,go(x){return a.go(x)}};return b}var j3;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(j3||(j3={}));function zre(e,t,n){return n===void 0&&(n="/"),Ire(e,t,n)}function Ire(e,t,n,r){let i=typeof t=="string"?Il(t):t,o=bl(i.pathname||"/",n);if(o==null)return null;let a=x8(e);Rre(a);let l=null,c=Hre(o);for(let u=0;l==null&&u{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(xt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=ko([r,c.relativePath]),d=n.concat(c);o.children&&o.children.length>0&&(xt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),x8(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Bre(u,o.index),routesMeta:d})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let c of S8(o.path))i(o,a,c)}),t}function S8(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=S8(r.join("/")),l=[];return l.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function Rre(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Vre(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Mre=/^:[\w-]+$/,Lre=3,Nre=2,Dre=1,Ore=10,Fre=-2,P3=e=>e==="*";function Bre(e,t){let n=e.split("/"),r=n.length;return n.some(P3)&&(r+=Fre),t&&(r+=Nre),n.filter(i=>!P3(i)).reduce((i,o)=>i+(Mre.test(o)?Lre:o===""?Dre:Ore),r)}function Vre(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Wre(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let l=0;l{let{paramName:p,isOptional:h}=d;if(p==="*"){let b=l[f]||"";a=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const g=l[f];return h&&!g?u[p]=void 0:u[p]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function Ure(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),bx(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Hre(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return bx(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function bl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Gre=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kre=e=>Gre.test(e);function qre(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Il(e):e,o;if(n)if(Kre(n))o=n;else{if(n.includes("//")){let a=n;n=w8(n),bx(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?o=_3(n.substring(1),"/"):o=_3(n,t)}else o=t;return{pathname:o,search:Qre(r),hash:Zre(i)}}function _3(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function U0(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Xre(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function xx(e,t){let n=Xre(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Sx(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Il(e):(i=$u({},e),xt(!i.pathname||!i.pathname.includes("?"),U0("?","pathname","search",i)),xt(!i.pathname||!i.pathname.includes("#"),U0("#","pathname","hash",i)),xt(!i.search||!i.search.includes("#"),U0("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}l=f>=0?t[f]:"/"}let c=qre(i,l),u=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const w8=e=>e.replace(/\/\/+/g,"/"),ko=e=>w8(e.join("/")),Yre=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Qre=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Zre=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Jre(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const k8=["post","put","patch","delete"];new Set(k8);const eie=["get",...k8];new Set(eie);/** - * React Router v6.30.4 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function zu(){return zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),m.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=Sx(u,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:ko([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,o,e])}const rie=m.createContext(null);function iie(e){let t=m.useContext(Vi).outlet;return t&&m.createElement(rie.Provider,{value:e},t)}function Qm(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(Bi),{matches:i}=m.useContext(Vi),{pathname:o}=Ga(),a=JSON.stringify(xx(i,r.v7_relativeSplatPath));return m.useMemo(()=>Sx(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function oie(e,t){return aie(e,t)}function aie(e,t,n,r){Rl()||xt(!1);let{navigator:i}=m.useContext(Bi),{matches:o}=m.useContext(Vi),a=o[o.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=Ga(),d;if(t){var f;let x=typeof t=="string"?Il(t):t;c==="/"||(f=x.pathname)!=null&&f.startsWith(c)||xt(!1),d=x}else d=u;let p=d.pathname||"/",h=p;if(c!=="/"){let x=c.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let g=zre(e,{pathname:h}),b=die(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:ko([c,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:ko([c,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&b?m.createElement(Ym.Provider,{value:{location:zu({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:mo.Pop}},b):b}function sie(){let e=hie(),t=Jre(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:i},n):null,null)}const lie=m.createElement(sie,null);class cie extends m.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?m.createElement(Vi.Provider,{value:this.props.routeContext},m.createElement(j8.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function uie(e){let{routeContext:t,match:n,children:r}=e,i=m.useContext(Xm);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(Vi.Provider,{value:t},r)}function die(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let d=a.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||xt(!1),a=a.slice(0,Math.min(a.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,f,p)=>{let h,g=!1,b=null,x=null;n&&(h=l&&f.route.id?l[f.route.id]:void 0,b=f.route.errorElement||lie,c&&(u<0&&p===0?(vie("route-fallback"),g=!0,x=null):u===p&&(g=!0,x=f.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,p+1)),v=()=>{let S;return h?S=b:g?S=x:f.route.Component?S=m.createElement(f.route.Component,null):f.route.element?S=f.route.element:S=d,m.createElement(uie,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:S})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?m.createElement(cie,{location:n.location,revalidation:n.revalidation,component:b,error:h,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}var _8=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(_8||{}),T8=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(T8||{});function fie(e){let t=m.useContext(Xm);return t||xt(!1),t}function pie(e){let t=m.useContext(C8);return t||xt(!1),t}function mie(e){let t=m.useContext(Vi);return t||xt(!1),t}function E8(e){let t=mie(),n=t.matches[t.matches.length-1];return n.route.id||xt(!1),n.route.id}function hie(){var e;let t=m.useContext(j8),n=pie(),r=E8();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function gie(){let{router:e}=fie(_8.UseNavigateStable),t=E8(T8.UseNavigateStable),n=m.useRef(!1);return P8(()=>{n.current=!0}),m.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,zu({fromRouteId:t},o)))},[e,t])}const T3={};function vie(e,t,n){T3[e]||(T3[e]=!0)}function yie(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Iu(e){let{to:t,replace:n,state:r,relative:i}=e;Rl()||xt(!1);let{future:o,static:a}=m.useContext(Bi),{matches:l}=m.useContext(Vi),{pathname:c}=Ga(),u=Wn(),d=Sx(t,xx(l,o.v7_relativeSplatPath),c,i==="path"),f=JSON.stringify(d);return m.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:i}),[u,f,i,n,r]),null}function A8(e){return iie(e.context)}function Rt(e){xt(!1)}function bie(e){let{basename:t="/",children:n=null,location:r,navigationType:i=mo.Pop,navigator:o,static:a=!1,future:l}=e;Rl()&&xt(!1);let c=t.replace(/^\/*/,"/"),u=m.useMemo(()=>({basename:c,navigator:o,static:a,future:zu({v7_relativeSplatPath:!1},l)}),[c,l,o,a]);typeof r=="string"&&(r=Il(r));let{pathname:d="/",search:f="",hash:p="",state:h=null,key:g="default"}=r,b=m.useMemo(()=>{let x=bl(d,c);return x==null?null:{location:{pathname:x,search:f,hash:p,state:h,key:g},navigationType:i}},[c,d,f,p,h,g,i]);return b==null?null:m.createElement(Bi.Provider,{value:u},m.createElement(Ym.Provider,{children:n,value:b}))}function xie(e){let{children:t,location:n}=e;return oie(Zv(t),n)}new Promise(()=>{});function Zv(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,i)=>{if(!m.isValidElement(r))return;let o=[...t,i];if(r.type===m.Fragment){n.push.apply(n,Zv(r.props.children,o));return}r.type!==Rt&&xt(!1),!r.props.index||!r.props.children||xt(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Zv(r.props.children,o)),n.push(a)}),n}/** - * React Router DOM v6.30.4 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Wp(){return Wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u&&E3?E3(()=>c(f)):c(f)},[c,u]);return m.useLayoutEffect(()=>a.listen(d),[a,d]),m.useEffect(()=>yie(r),[r]),m.createElement(bie,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const Eie=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Aie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rn=m.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:l,target:c,to:u,preventScrollReset:d,viewTransition:f}=t,p=$8(t,kie),{basename:h}=m.useContext(Bi),g,b=!1;if(typeof u=="string"&&Aie.test(u)&&(g=u,Eie))try{let S=new URL(window.location.href),w=u.startsWith("//")?new URL(S.protocol+u):new URL(u),k=bl(w.pathname,h);w.origin===S.origin&&k!=null?u=k+w.search+w.hash:b=!0}catch{}let x=tie(u,{relative:i}),y=zie(u,{replace:a,state:l,target:c,preventScrollReset:d,relative:i,viewTransition:f});function v(S){r&&r(S),S.defaultPrevented||y(S)}return m.createElement("a",Wp({},p,{href:g||x,onClick:b||o?r:v,ref:n,target:c}))}),z8=m.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:l,to:c,viewTransition:u,children:d}=t,f=$8(t,Cie),p=Qm(c,{relative:f.relative}),h=Ga(),g=m.useContext(C8),{navigator:b,basename:x}=m.useContext(Bi),y=g!=null&&Iie(p)&&u===!0,v=b.encodeLocation?b.encodeLocation(p).pathname:p.pathname,S=h.pathname,w=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(S=S.toLowerCase(),w=w?w.toLowerCase():null,v=v.toLowerCase()),w&&x&&(w=bl(w,x)||w);const k=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let C=S===v||!a&&S.startsWith(v)&&S.charAt(k)==="/",P=w!=null&&(w===v||!a&&w.startsWith(v)&&w.charAt(v.length)==="/"),j={isActive:C,isPending:P,isTransitioning:y},T=C?r:void 0,E;typeof o=="function"?E=o(j):E=[o,C?"active":null,P?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let F=typeof l=="function"?l(j):l;return m.createElement(rn,Wp({},f,{"aria-current":T,className:E,ref:n,style:F,to:c,viewTransition:u}),typeof d=="function"?d(j):d)});var Jv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Jv||(Jv={}));var A3;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(A3||(A3={}));function $ie(e){let t=m.useContext(Xm);return t||xt(!1),t}function zie(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:l}=t===void 0?{}:t,c=Wn(),u=Ga(),d=Qm(e,{relative:a});return m.useCallback(f=>{if(wie(f,n)){f.preventDefault();let p=r!==void 0?r:Vp(u)===Vp(d);c(e,{replace:p,state:i,preventScrollReset:o,relative:a,viewTransition:l})}},[u,c,d,r,i,n,e,o,a,l])}function Iie(e,t){t===void 0&&(t={});let n=m.useContext(Pie);n==null&&xt(!1);let{basename:r}=$ie(Jv.useViewTransitionState),i=Qm(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=bl(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=bl(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Qv(i.pathname,a)!=null||Qv(i.pathname,o)!=null}const Rie=[{title:"Gestion de commandes",desc:"Client, admin, cabine, livreur — un flux complet de bout en bout."},{title:"Livraison temps réel",desc:"GPS, auto-assignation des livreurs, ETA et navigation."},{title:"Paiements & notifications",desc:"NowPayments (crypto), Telegram."},{title:"Sécurisé par design",desc:"Sécurité maximale avec RBAC, TLSv3, WAF et isolation de chaque plateforme."}];function Mie(){return s.jsxs(ae,{children:[s.jsx(ae,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:16,md:24},children:s.jsx(yn,{maxW:"container.lg",children:s.jsxs(Pe,{spacing:6,textAlign:"center",align:"center",children:[s.jsx(dt,{size:"2xl",children:"La plateforme de gestion de commandes & livraison"}),s.jsx(K,{fontSize:"xl",color:"gray.600",maxW:"2xl",children:"Testez la solution complète en conditions réelles. Une démo isolée, déployée en un clic, disponible pendant 30 jours."}),s.jsxs(Pe,{direction:{base:"column",sm:"row"},spacing:4,w:{base:"full",sm:"auto"},children:[s.jsx(he,{as:rn,to:"/register",colorScheme:"primary",size:"lg",w:{base:"full",sm:"auto"},children:"Créer un compte"}),s.jsx(he,{as:rn,to:"/tarifs",variant:"outline",size:"lg",w:{base:"full",sm:"auto"},children:"Voir les tarifs"})]})]})})}),s.jsx(yn,{maxW:"container.lg",py:16,children:s.jsx(jn,{columns:{base:1,md:2},spacing:8,children:Rie.map(e=>s.jsxs(ae,{p:6,borderWidth:"1px",borderRadius:"lg",children:[s.jsx(dt,{size:"md",mb:2,children:e.title}),s.jsx(K,{color:"gray.600",children:e.desc})]},e.title))})})]})}const I8="https://t.me/OMNEX_CORP",Lie=[{name:"Démo",price:"Gratuit",period:"30 jours",description:"Une instance isolée et complète pour évaluer la solution.",features:["Plateforme complète en conditions réelles","Environnement dédié et isolé","Accompagnement commercial"],cta:"Créer un compte",ctaHref:"/register"},{name:"Premium",price:"Sur devis",period:"",description:"Passez en production : votre démo n'expire plus.",features:["Tout ce qui est inclus dans Démo","Support prioritaire","Domaine personnalisable à la demande","Sauvegarde constante et sécurisée","Haute disponibilité"],cta:"Nous contacter",ctaHref:I8,ctaExternal:!0,highlighted:!0}];function Nie(){return s.jsxs(yn,{maxW:"container.lg",py:{base:12,md:20},children:[s.jsxs(Pe,{spacing:4,textAlign:"center",mb:12,align:"center",children:[s.jsx(dt,{size:"2xl",children:"Tarifs"}),s.jsx(K,{fontSize:"lg",color:"gray.600",maxW:"2xl",children:"Commencez par une démo gratuite de 30 jours, puis passez en premium quand vous êtes prêt."})]}),s.jsx(jn,{columns:{base:1,md:2},spacing:8,alignItems:"stretch",maxW:"2xl",mx:"auto",children:Lie.map(e=>s.jsx(Die,{plan:e},e.name))}),s.jsxs(K,{textAlign:"center",color:"gray.500",mt:10,fontSize:"sm",children:["Besoin d'un devis précis ?"," ",s.jsx(Oie,{href:I8,children:"Contactez-nous"})," — un commercial vous recontacte."]})]})}function Die({plan:e}){return s.jsxs(Pe,{spacing:6,p:8,borderWidth:e.highlighted?"2px":"1px",borderColor:e.highlighted?"primary.500":"inherit",borderRadius:"xl",position:"relative",boxShadow:e.highlighted?"lg":"sm",bg:"bg-surface",children:[e.highlighted&&s.jsx(on,{colorScheme:"primary",position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",px:3,py:1,borderRadius:"full",children:"Le plus choisi"}),s.jsxs(ae,{children:[s.jsx(dt,{size:"md",children:e.name}),s.jsx(K,{color:"gray.500",mt:1,fontSize:"sm",children:e.description})]}),s.jsxs(be,{align:"baseline",spacing:2,children:[s.jsx(K,{fontSize:"3xl",fontWeight:"bold",children:e.price}),e.period&&s.jsxs(K,{color:"gray.500",children:["/ ",e.period]})]}),s.jsx(Ju,{spacing:3,flex:"1",children:e.features.map(t=>s.jsxs(Hb,{display:"flex",alignItems:"flex-start",children:[s.jsx(wt,{as:Fie,color:"primary.500",mt:1,mr:2}),s.jsx(K,{fontSize:"sm",children:t})]},t))}),e.ctaExternal?s.jsx(he,{as:"a",href:e.ctaHref,target:"_blank",rel:"noopener noreferrer",colorScheme:"primary",variant:e.highlighted?"solid":"outline",size:"lg",children:e.cta}):s.jsx(he,{as:rn,to:e.ctaHref,colorScheme:"primary",variant:e.highlighted?"solid":"outline",size:"lg",children:e.cta})]})}function Oie({href:e,children:t}){return s.jsx(ae,{as:"a",href:e,target:"_blank",rel:"noopener noreferrer",color:"primary.500",fontWeight:"medium",display:"inline",children:t})}function Fie(e){return s.jsx(wt,{viewBox:"0 0 20 20",fill:"currentColor",...e,children:s.jsx("path",{fillRule:"evenodd",d:"M16.7 5.3a1 1 0 010 1.4l-7.5 7.5a1 1 0 01-1.4 0L3.3 9.7a1 1 0 011.4-1.4l3.8 3.8 6.8-6.8a1 1 0 011.4 0z",clipRule:"evenodd"})})}/*! - * Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com - * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) - * Copyright 2026 Fonticons, Inc. - */function ey(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){l=!0,o=c},f:function(){try{a||n.return==null||n.return()}finally{if(l)throw o}}}}function xe(e,t,n){return(t=R8(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function qie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xie(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return ct.head.insertBefore(t,r),e}}var ise="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function F3(){for(var e=12,t="";e-- >0;)t+=ise[Math.random()*62|0];return t}function Ml(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function _x(e){return e.classList?Ml(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function xE(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function ose(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(xE(e[n]),'" ')},"").trim()}function Jm(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function Tx(e){return e.size!==Zr.size||e.x!==Zr.x||e.y!==Zr.y||e.rotate!==Zr.rotate||e.flipX||e.flipY}function ase(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)"),c={transform:"".concat(o," ").concat(a," ").concat(l)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:c,path:u}}function sse(e){var t=e.transform,n=e.width,r=n===void 0?ny:n,i=e.height,o=i===void 0?ny:i,a="";return D8?a+="translate(".concat(t.x/is-r/2,"em, ").concat(t.y/is-o/2,"em) "):a+="translate(calc(-50% + ".concat(t.x/is,"em), calc(-50% + ").concat(t.y/is,"em)) "),a+="scale(".concat(t.size/is*(t.flipX?-1:1),", ").concat(t.size/is*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}var lse=`:root, :host { - --fa-font-solid: normal 900 1em/1 'Font Awesome 7 Free'; - --fa-font-regular: normal 400 1em/1 'Font Awesome 7 Free'; - --fa-font-light: normal 300 1em/1 'Font Awesome 7 Pro'; - --fa-font-thin: normal 100 1em/1 'Font Awesome 7 Pro'; - --fa-font-duotone: normal 900 1em/1 'Font Awesome 7 Duotone'; - --fa-font-duotone-regular: normal 400 1em/1 'Font Awesome 7 Duotone'; - --fa-font-duotone-light: normal 300 1em/1 'Font Awesome 7 Duotone'; - --fa-font-duotone-thin: normal 100 1em/1 'Font Awesome 7 Duotone'; - --fa-font-brands: normal 400 1em/1 'Font Awesome 7 Brands'; - --fa-font-sharp-solid: normal 900 1em/1 'Font Awesome 7 Sharp'; - --fa-font-sharp-regular: normal 400 1em/1 'Font Awesome 7 Sharp'; - --fa-font-sharp-light: normal 300 1em/1 'Font Awesome 7 Sharp'; - --fa-font-sharp-thin: normal 100 1em/1 'Font Awesome 7 Sharp'; - --fa-font-sharp-duotone-solid: normal 900 1em/1 'Font Awesome 7 Sharp Duotone'; - --fa-font-sharp-duotone-regular: normal 400 1em/1 'Font Awesome 7 Sharp Duotone'; - --fa-font-sharp-duotone-light: normal 300 1em/1 'Font Awesome 7 Sharp Duotone'; - --fa-font-sharp-duotone-thin: normal 100 1em/1 'Font Awesome 7 Sharp Duotone'; - --fa-font-slab-regular: normal 400 1em/1 'Font Awesome 7 Slab'; - --fa-font-slab-press-regular: normal 400 1em/1 'Font Awesome 7 Slab Press'; - --fa-font-slab-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Duo'; - --fa-font-slab-press-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Press Duo'; - --fa-font-pixel-regular: normal 400 1em/1 'Font Awesome 7 Pixel'; - --fa-font-mosaic-solid: normal 900 1em/1 'Font Awesome 7 Mosaic'; - --fa-font-vellum-solid: normal 900 1em/1 'Font Awesome 7 Vellum'; - --fa-font-whiteboard-semibold: normal 600 1em/1 'Font Awesome 7 Whiteboard'; - --fa-font-thumbprint-light: normal 300 1em/1 'Font Awesome 7 Thumbprint'; - --fa-font-notdog-solid: normal 900 1em/1 'Font Awesome 7 Notdog'; - --fa-font-notdog-duo-solid: normal 900 1em/1 'Font Awesome 7 Notdog Duo'; - --fa-font-etch-solid: normal 900 1em/1 'Font Awesome 7 Etch'; - --fa-font-graphite-thin: normal 100 1em/1 'Font Awesome 7 Graphite'; - --fa-font-jelly-regular: normal 400 1em/1 'Font Awesome 7 Jelly'; - --fa-font-jelly-fill-regular: normal 400 1em/1 'Font Awesome 7 Jelly Fill'; - --fa-font-jelly-duo-regular: normal 400 1em/1 'Font Awesome 7 Jelly Duo'; - --fa-font-chisel-regular: normal 400 1em/1 'Font Awesome 7 Chisel'; - --fa-font-utility-semibold: normal 600 1em/1 'Font Awesome 7 Utility'; - --fa-font-utility-duo-semibold: normal 600 1em/1 'Font Awesome 7 Utility Duo'; - --fa-font-utility-fill-semibold: normal 600 1em/1 'Font Awesome 7 Utility Fill'; -} - -.svg-inline--fa { - box-sizing: content-box; - display: var(--fa-display, inline-block); - height: 1em; - overflow: visible; - vertical-align: -0.125em; - width: var(--fa-width, 1.25em); -} -.svg-inline--fa.fa-2xs { - vertical-align: 0.1em; -} -.svg-inline--fa.fa-xs { - vertical-align: 0em; -} -.svg-inline--fa.fa-sm { - vertical-align: -0.0714285714em; -} -.svg-inline--fa.fa-lg { - vertical-align: -0.2em; -} -.svg-inline--fa.fa-xl { - vertical-align: -0.25em; -} -.svg-inline--fa.fa-2xl { - vertical-align: -0.3125em; -} -.svg-inline--fa.fa-pull-left, -.svg-inline--fa .fa-pull-start { - float: inline-start; - margin-inline-end: var(--fa-pull-margin, 0.3em); -} -.svg-inline--fa.fa-pull-right, -.svg-inline--fa .fa-pull-end { - float: inline-end; - margin-inline-start: var(--fa-pull-margin, 0.3em); -} -.svg-inline--fa.fa-li { - width: var(--fa-li-width, 2em); - inset-inline-start: calc(-1 * var(--fa-li-width, 2em)); - inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */ -} - -.fa-layers-counter, .fa-layers-text { - display: inline-block; - position: absolute; - text-align: center; -} - -.fa-layers { - display: inline-block; - height: 1em; - position: relative; - text-align: center; - vertical-align: -0.125em; - width: var(--fa-width, 1.25em); -} -.fa-layers .svg-inline--fa { - inset: 0; - margin: auto; - position: absolute; - transform-origin: center center; -} - -.fa-layers-text { - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - transform-origin: center center; -} - -.fa-layers-counter { - background-color: var(--fa-counter-background-color, #ff253a); - border-radius: var(--fa-counter-border-radius, 1em); - box-sizing: border-box; - color: var(--fa-inverse, #fff); - line-height: var(--fa-counter-line-height, 1); - max-width: var(--fa-counter-max-width, 5em); - min-width: var(--fa-counter-min-width, 1.5em); - overflow: hidden; - padding: var(--fa-counter-padding, 0.25em 0.5em); - right: var(--fa-right, 0); - text-overflow: ellipsis; - top: var(--fa-top, 0); - transform: scale(var(--fa-counter-scale, 0.25)); - transform-origin: top right; -} - -.fa-layers-bottom-right { - bottom: var(--fa-bottom, 0); - right: var(--fa-right, 0); - top: auto; - transform: scale(var(--fa-layers-scale, 0.25)); - transform-origin: bottom right; -} - -.fa-layers-bottom-left { - bottom: var(--fa-bottom, 0); - left: var(--fa-left, 0); - right: auto; - top: auto; - transform: scale(var(--fa-layers-scale, 0.25)); - transform-origin: bottom left; -} - -.fa-layers-top-right { - top: var(--fa-top, 0); - right: var(--fa-right, 0); - transform: scale(var(--fa-layers-scale, 0.25)); - transform-origin: top right; -} - -.fa-layers-top-left { - left: var(--fa-left, 0); - right: auto; - top: var(--fa-top, 0); - transform: scale(var(--fa-layers-scale, 0.25)); - transform-origin: top left; -} - -.fa-1x { - font-size: 1em; -} - -.fa-2x { - font-size: 2em; -} - -.fa-3x { - font-size: 3em; -} - -.fa-4x { - font-size: 4em; -} - -.fa-5x { - font-size: 5em; -} - -.fa-6x { - font-size: 6em; -} - -.fa-7x { - font-size: 7em; -} - -.fa-8x { - font-size: 8em; -} - -.fa-9x { - font-size: 9em; -} - -.fa-10x { - font-size: 10em; -} - -.fa-2xs { - font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */ - line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */ - vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ -} - -.fa-xs { - font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */ - line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */ - vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ -} - -.fa-sm { - font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */ - line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */ - vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ -} - -.fa-lg { - font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */ - line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */ - vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ -} - -.fa-xl { - font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */ - line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */ - vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ -} - -.fa-2xl { - font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */ - line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */ - vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */ -} - -.fa-width-auto { - --fa-width: auto; -} - -.fa-fw, -.fa-width-fixed { - --fa-width: 1.25em; -} - -.fa-canvas-square { - padding-block: 0.125em; - margin-block-end: -0.125em; -} - -.fa-canvas-roomy { - padding-block: 0.25em; - padding-inline: 0.125em; - margin-block-end: -0.25em; - box-sizing: content-box; -} - -.fa-ul { - list-style-type: none; - margin-inline-start: var(--fa-li-margin, 2.5em); - padding-inline-start: 0; -} -.fa-ul > li { - position: relative; -} - -.fa-li { - inset-inline-start: calc(-1 * var(--fa-li-width, 2em)); - position: absolute; - text-align: center; - width: var(--fa-li-width, 2em); - line-height: inherit; -} - -/* Heads Up: Bordered Icons will not be supported in the future! - - This feature will be deprecated in the next major release of Font Awesome (v8)! - - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8. -*/ -/* Notes: -* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size) -* --@{v.$css-prefix}-border-padding = - ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment) - ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon) -*/ -.fa-border { - border-color: var(--fa-border-color, #eee); - border-radius: var(--fa-border-radius, 0.1em); - border-style: var(--fa-border-style, solid); - border-width: var(--fa-border-width, 0.0625em); - box-sizing: var(--fa-border-box-sizing, content-box); - padding: var(--fa-border-padding, 0.1875em 0.25em); -} - -.fa-pull-left, -.fa-pull-start { - float: inline-start; - margin-inline-end: var(--fa-pull-margin, 0.3em); -} - -.fa-pull-right, -.fa-pull-end { - float: inline-end; - margin-inline-start: var(--fa-pull-margin, 0.3em); -} - -.fa-beat { - animation-name: fa-beat; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-bounce { - animation-name: fa-bounce; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); -} - -.fa-fade { - animation-name: fa-fade; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-beat-fade { - animation-name: fa-beat-fade; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-flip { - animation-name: fa-flip; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1.5s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-flip-360 { - animation-name: fa-flip-360; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-shake { - animation-name: fa-shake; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 0.75s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-spin { - animation-name: fa-spin; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 2s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-spin-reverse { - --fa-animation-direction: reverse; -} - -.fa-pulse, -.fa-spin-pulse { - animation-name: fa-spin; - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, steps(8)); -} - -.fa-spin-snap { - animation-name: fa-spin-snap; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 3s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-spin-snap-4 { - animation-name: fa-spin-snap-4; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 2.4s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-spin-snap-8 { - animation-name: fa-spin-snap-8; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 4s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-buzz { - animation-name: fa-buzz; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 0.6s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-wag { - animation-name: fa-wag; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 0.9s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-out); - transform-origin: bottom center; -} - -.fa-float { - animation-name: fa-float; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 3s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-in-out); - will-change: transform; -} - -.fa-swing { - animation-name: fa-swing; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1.2s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-out); - transform-origin: top center; -} - -.fa-jello { - animation-name: fa-jello; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 0.9s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-out); -} - -@media (prefers-reduced-motion: reduce) { - .fa-beat, - .fa-bounce, - .fa-fade, - .fa-beat-fade, - .fa-flip, - .fa-flip-360, - .fa-pulse, - .fa-shake, - .fa-spin, - .fa-spin-pulse, - .fa-buzz, - .fa-float, - .fa-jello, - .fa-spin-snap, - .fa-spin-snap-4, - .fa-spin-snap-8, - .fa-swing, - .fa-wag { - animation: none !important; - transition: none !important; - } -} -@keyframes fa-beat { - 0% { - transform: scale(1); - } - 25% { - transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25))); - } - 45% { - transform: scale(calc(1.22 * var(--fa-beat-scale, 1.22))); - } - 65% { - transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25))); - } - 90% { - transform: scale(1); - } -} -@keyframes fa-bounce { - 0% { - transform: scale(1, 1) translateY(0); - animation-timing-function: var(--fa-animation-timing); - } - 14% { - transform: scale(var(--fa-bounce-start-scale-x, 1.06), var(--fa-bounce-start-scale-y, 0.94)) translateY(var(--fa-bounce-anticipation, 3px)); - animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); - } - 32% { - transform: scale(var(--fa-bounce-jump-scale-x, 0.94), var(--fa-bounce-jump-scale-y, 1.12)) translateY(calc(-1 * var(--fa-bounce-height, 0.5em))); - animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); - } - 52% { - transform: scale(1, 1) translateY(calc(-1 * var(--fa-bounce-height, 0.5em) * 1.1)); - animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5); - } - 70% { - transform: scale(var(--fa-bounce-land-scale-x, 1.06), var(--fa-bounce-land-scale-y, 0.92)) translateY(0); - animation-timing-function: cubic-bezier(0.33, 0.33, 0.66, 1); - } - 85% { - transform: scale(0.98, 1.04) translateY(calc(-2px * var(--fa-bounce-rebound, 1))); - animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1); - } - 100% { - transform: scale(1, 1) translateY(0); - } -} -@keyframes fa-fade { - 0% { - opacity: 1; - transform: scale(1); - animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1); - } - 40% { - opacity: var(--fa-fade-opacity, 0.4); - transform: scale(0.98); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 100% { - opacity: 1; - transform: scale(1); - } -} -@keyframes fa-beat-fade { - 0% { - opacity: var(--fa-beat-fade-opacity, 0.4); - transform: scale(1); - animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1); - } - 25% { - opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4); - transform: scale(var(--fa-beat-fade-scale, 1.28)); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 45% { - opacity: 1; - transform: scale(var(--fa-beat-fade-scale, 1.25)); - animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - } - 65% { - opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4); - transform: scale(var(--fa-beat-fade-scale, 1.28)); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 100% { - opacity: var(--fa-beat-fade-opacity, 0.4); - transform: scale(1); - } -} -@keyframes fa-flip { - 0% { - transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg); - animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1); - } - 8% { - transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg); - animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); - } - 35% { - transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6)); - animation-timing-function: linear; - } - 65% { - transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.5)); - animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); - } - 92% { - transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04))); - animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1); - } - 100% { - transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg)); - } -} -@keyframes fa-flip-360 { - 0% { - transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg); - animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1); - } - 8% { - transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg); - animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); - } - 50% { - transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6)); - animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); - } - 80% { - transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04))); - animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1); - } - 100% { - transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg)); - } -} -@keyframes fa-shake { - 0% { - transform: rotate(0deg); - animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1); - } - 8% { - transform: rotate(35deg) translateX(1px); - animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); - } - 20% { - transform: rotate(-22deg) translateX(-1px); - animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); - } - 35% { - transform: rotate(15deg) translateX(1px); - animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); - } - 50% { - transform: rotate(-9deg); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 65% { - transform: rotate(5deg); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 78% { - transform: rotate(-3deg); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 90% { - transform: rotate(1deg); - animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - } - 100% { - transform: rotate(0deg); - } -} -@keyframes fa-spin { - 0% { - transform: rotate(0deg); - } - 100% { - transform: rotate(360deg); - } -} -@keyframes fa-spin-snap { - 0% { - transform: rotate(0deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 12% { - transform: rotate(60deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 16.67% { - transform: rotate(60deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 28.67% { - transform: rotate(120deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 33.33% { - transform: rotate(120deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 45.33% { - transform: rotate(180deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 50% { - transform: rotate(180deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 62% { - transform: rotate(240deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 66.67% { - transform: rotate(240deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 78.67% { - transform: rotate(300deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 83.33% { - transform: rotate(300deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 95.33% { - transform: rotate(360deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 100% { - transform: rotate(360deg); - } -} -@keyframes fa-spin-snap-4 { - 0% { - transform: rotate(0deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 15% { - transform: rotate(90deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 25% { - transform: rotate(90deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 40% { - transform: rotate(180deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 50% { - transform: rotate(180deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 65% { - transform: rotate(270deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 75% { - transform: rotate(270deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 90% { - transform: rotate(360deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 100% { - transform: rotate(360deg); - } -} -@keyframes fa-spin-snap-8 { - 0% { - transform: rotate(0deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 9% { - transform: rotate(45deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 12.5% { - transform: rotate(45deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 21.5% { - transform: rotate(90deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 25% { - transform: rotate(90deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 34% { - transform: rotate(135deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 37.5% { - transform: rotate(135deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 46.5% { - transform: rotate(180deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 50% { - transform: rotate(180deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 59% { - transform: rotate(225deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 62.5% { - transform: rotate(225deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 71.5% { - transform: rotate(270deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 75% { - transform: rotate(270deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 84% { - transform: rotate(315deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 87.5% { - transform: rotate(315deg); - animation-timing-function: cubic-bezier(0, 0, 0.2, 1); - } - 96.5% { - transform: rotate(360deg); - animation-timing-function: cubic-bezier(0.8, 0, 1, 1); - } - 100% { - transform: rotate(360deg); - } -} -@keyframes fa-buzz { - 0% { - transform: translateX(0) rotate(0deg); - animation-timing-function: cubic-bezier(0.1, 0, 0.9, 1); - } - 5% { - transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.5deg); - } - 10% { - transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.5deg); - } - 15% { - transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.3deg); - } - 20% { - transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.3deg); - } - 25% { - transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.7)) rotate(0.2deg); - } - 30% { - transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px) * 0.7)) rotate(-0.2deg); - } - 35% { - transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.4)) rotate(0.1deg); - } - 40% { - transform: translateX(0) rotate(0deg); - } - 100% { - transform: translateX(0) rotate(0deg); - } -} -@keyframes fa-wag { - 0% { - transform: rotate(0deg); - animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1); - } - 12% { - transform: rotate(var(--fa-wag-angle, 12deg)); - animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - } - 24% { - transform: rotate(2deg); - animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1); - } - 36% { - transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.85)); - animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - } - 48% { - transform: rotate(1deg); - animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1); - } - 58% { - transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.6)); - animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - } - 68% { - transform: rotate(0deg); - } - 100% { - transform: rotate(0deg); - } -} -@keyframes fa-float { - 0% { - transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98)); - animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); - } - 15% { - transform: translateY(calc(-0.4 * var(--fa-float-height, 6px))) translateX(var(--fa-float-drift, 1px)) rotate(var(--fa-float-tilt, 1deg)) scale(1, 1); - animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); - } - 35% { - transform: translateY(calc(-1 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-stretch-x, 0.98), var(--fa-float-stretch-y, 1.03)); - animation-timing-function: cubic-bezier(0.5, 0, 0.5, 0); - } - 50% { - transform: translateY(calc(-0.92 * var(--fa-float-height, 6px))) translateX(calc(-0.5 * var(--fa-float-drift, 1px))) rotate(calc(-0.5 * var(--fa-float-tilt, 1deg))) scale(0.995, 1.01); - animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33); - } - 70% { - transform: translateY(calc(-0.3 * var(--fa-float-height, 6px))) translateX(calc(-1 * var(--fa-float-drift, 1px))) rotate(calc(-1 * var(--fa-float-tilt, 1deg))) scale(1, 1); - animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1); - } - 90% { - transform: translateY(calc(0.05 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98)); - animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1); - } - 100% { - transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98)); - } -} -@keyframes fa-swing { - 0% { - transform: rotate(0deg); - animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1); - } - 8% { - transform: rotate(var(--fa-swing-angle, 22deg)); - animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); - } - 18% { - transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.85)); - animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); - } - 28% { - transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.65)); - animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1); - } - 38% { - transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.45)); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 48% { - transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.25)); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 56% { - transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.1)); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 64% { - transform: rotate(0deg); - } - 100% { - transform: rotate(0deg); - } -} -@keyframes fa-jello { - 0% { - transform: scale(1, 1); - animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1); - } - 12% { - transform: scale(var(--fa-jello-scale-x, 1.15), calc(2 - var(--fa-jello-scale-x, 1.15))); - animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); - } - 24% { - transform: scale(calc(2 - var(--fa-jello-scale-y, 1.12)), var(--fa-jello-scale-y, 1.12)); - animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1); - } - 36% { - transform: scale(calc(1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5), calc(2 - (1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5))); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 48% { - transform: scale(calc(2 - (1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3)), calc(1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3)); - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - 58% { - transform: scale(1.02, 0.98); - animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - } - 68% { - transform: scale(1, 1); - } - 100% { - transform: scale(1, 1); - } -} -.fa-rotate-90 { - transform: rotate(90deg); -} - -.fa-rotate-180 { - transform: rotate(180deg); -} - -.fa-rotate-270 { - transform: rotate(270deg); -} - -.fa-flip-horizontal { - transform: scale(-1, 1); -} - -.fa-flip-vertical { - transform: scale(1, -1); -} - -.fa-flip-both, -.fa-flip-horizontal.fa-flip-vertical { - transform: scale(-1, -1); -} - -.fa-rotate-by { - transform: rotate(var(--fa-rotate-angle, 0)); -} - -.svg-inline--fa .fa-primary { - fill: var(--fa-primary-color, currentColor); - opacity: var(--fa-primary-opacity, 1); -} - -.svg-inline--fa .fa-secondary { - fill: var(--fa-secondary-color, currentColor); - opacity: var(--fa-secondary-opacity, 0.4); -} - -.svg-inline--fa.fa-swap-opacity .fa-primary { - opacity: var(--fa-secondary-opacity, 0.4); -} - -.svg-inline--fa.fa-swap-opacity .fa-secondary { - opacity: var(--fa-primary-opacity, 1); -} - -.svg-inline--fa mask .fa-primary, -.svg-inline--fa mask .fa-secondary { - fill: black; -} - -.svg-inline--fa.fa-inverse { - fill: var(--fa-inverse, #fff); -} - -.fa-stack { - display: inline-block; - height: 2em; - line-height: 2em; - position: relative; - vertical-align: middle; - width: 2.5em; -} - -.fa-inverse { - color: var(--fa-inverse, #fff); -} - -.svg-inline--fa.fa-stack-1x { - --fa-width: 1.25em; - height: 1em; - width: var(--fa-width); -} -.svg-inline--fa.fa-stack-2x { - --fa-width: 2.5em; - height: 2em; - width: var(--fa-width); -} - -.fa-stack-1x, -.fa-stack-2x { - inset: 0; - margin: auto; - position: absolute; - z-index: var(--fa-stack-z-index, auto); -}`;function SE(){var e=pE,t=mE,n=ye.cssPrefix,r=ye.replacementClass,i=lse;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(l,".".concat(r))}return i}var B3=!1;function G0(){ye.autoAddCss&&!B3&&(rse(SE()),B3=!0)}var cse={mixout:function(){return{dom:{css:SE,insertCss:G0}}},hooks:function(){return{beforeDOMElementCreation:function(){G0()},beforeI2svg:function(){G0()}}}},Mi=Ao||{};Mi[Ri]||(Mi[Ri]={});Mi[Ri].styles||(Mi[Ri].styles={});Mi[Ri].hooks||(Mi[Ri].hooks={});Mi[Ri].shims||(Mi[Ri].shims=[]);var Ir=Mi[Ri],wE=[],kE=function(){ct.removeEventListener("DOMContentLoaded",kE),Hp=1,wE.map(function(t){return t()})},Hp=!1;Wi&&(Hp=(ct.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ct.readyState),Hp||ct.addEventListener("DOMContentLoaded",kE));function use(e){Wi&&(Hp?setTimeout(e,0):wE.push(e))}function ld(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,o=i===void 0?[]:i;return typeof e=="string"?xE(e):"<".concat(t," ").concat(ose(r),">").concat(o.map(ld).join(""),"")}function V3(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var K0=function(t,n,r,i){var o=Object.keys(t),a=o.length,l=n,c,u,d;for(r===void 0?(c=1,d=t[o[0]]):(c=0,d=r);c2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=W3(t);typeof Ir.hooks.addPack=="function"&&!i?Ir.hooks.addPack(e,W3(t)):Ir.styles[e]=G(G({},Ir.styles[e]||{}),o),e==="fas"&&sy("fa",t)}var Ru=Ir.styles,dse=Ir.shims,jE=Object.keys(Px),fse=jE.reduce(function(e,t){return e[t]=Object.keys(Px[t]),e},{}),Ex=null,PE={},_E={},TE={},EE={},AE={};function pse(e){return~Zae.indexOf(e)}function mse(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!pse(i)?i:null}var $E=function(){var t=function(o){return K0(Ru,function(a,l,c){return a[c]=K0(l,o,{}),a},{})};PE=t(function(i,o,a){if(o[3]&&(i[o[3]]=a),o[2]){var l=o[2].filter(function(c){return typeof c=="number"});l.forEach(function(c){i[c.toString(16)]=a})}return i}),_E=t(function(i,o,a){if(i[a]=a,o[2]){var l=o[2].filter(function(c){return typeof c=="string"});l.forEach(function(c){i[c]=a})}return i}),AE=t(function(i,o,a){var l=o[2];return i[a]=a,l.forEach(function(c){i[c]=a}),i});var n="far"in Ru||ye.autoFetchSvg,r=K0(dse,function(i,o){var a=o[0],l=o[1],c=o[2];return l==="far"&&!n&&(l="fas"),typeof a=="string"&&(i.names[a]={prefix:l,iconName:c}),typeof a=="number"&&(i.unicodes[a.toString(16)]={prefix:l,iconName:c}),i},{names:{},unicodes:{}});TE=r.names,EE=r.unicodes,Ex=eh(ye.styleDefault,{family:ye.familyDefault})};nse(function(e){Ex=eh(e.styleDefault,{family:ye.familyDefault})});$E();function Ax(e,t){return(PE[e]||{})[t]}function hse(e,t){return(_E[e]||{})[t]}function fa(e,t){return(AE[e]||{})[t]}function zE(e){return TE[e]||{prefix:null,iconName:null}}function gse(e){var t=EE[e],n=Ax("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function $o(){return Ex}var IE=function(){return{prefix:null,iconName:null,rest:[]}};function vse(e){var t=cn,n=jE.reduce(function(r,i){return r[i]="".concat(ye.cssPrefix,"-").concat(i),r},{});return cE.forEach(function(r){(e.includes(n[r])||e.some(function(i){return fse[r].includes(i)}))&&(t=r)}),t}function eh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?cn:n,i=Kae[r][e];if(r===ad&&!e)return"fad";var o=O3[r][e]||O3[r][i],a=e in Ir.styles?e:null,l=o||a||null;return l}function yse(e){var t=[],n=null;return e.forEach(function(r){var i=mse(ye.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function U3(e){return e.sort().filter(function(t,n,r){return r.indexOf(t)===n})}var H3=dE.concat(uE);function th(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,i=null,o=U3(e.filter(function(h){return H3.includes(h)})),a=U3(e.filter(function(h){return!H3.includes(h)})),l=o.filter(function(h){return i=h,!F8.includes(h)}),c=Zm(l,1),u=c[0],d=u===void 0?null:u,f=vse(o),p=G(G({},yse(a)),{},{prefix:eh(d,{family:f})});return G(G(G({},p),wse({values:e,family:f,styles:Ru,config:ye,canonical:p,givenPrefix:i})),bse(r,i,p))}function bse(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var o=t==="fa"?zE(i):{},a=fa(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!Ru.far&&Ru.fas&&!ye.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}var xse=cE.filter(function(e){return e!==cn||e!==ad}),Sse=Object.keys(ty).filter(function(e){return e!==cn}).map(function(e){return Object.keys(ty[e])}).flat();function wse(e){var t=e.values,n=e.family,r=e.canonical,i=e.givenPrefix,o=i===void 0?"":i,a=e.styles,l=a===void 0?{}:a,c=e.config,u=c===void 0?{}:c,d=n===ad,f=t.includes("fa-duotone")||t.includes("fad"),p=u.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!d&&(f||p||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&xse.includes(n)){var g=Object.keys(l).find(function(x){return Sse.includes(x)});if(g||u.autoFetchSvg){var b=_oe.get(n).defaultShortPrefixId;r.prefix=b,r.iconName=fa(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||o==="fa")&&(r.prefix=$o()||"fas"),r}var kse=function(){function e(){Wie(this,e),this.definitions={}}return Hie(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o0&&d.forEach(function(f){typeof f=="string"&&(n[l][f]=u)}),n[l][c]=u}),n}}])}(),G3=[],Ls={},Zs={},Cse=Object.keys(Zs);function jse(e,t){var n=t.mixoutsTo;return G3=e,Ls={},Object.keys(Zs).forEach(function(r){Cse.indexOf(r)===-1&&delete Zs[r]}),G3.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(a){typeof i[a]=="function"&&(n[a]=i[a]),Up(i[a])==="object"&&Object.keys(i[a]).forEach(function(l){n[a]||(n[a]={}),n[a][l]=i[a][l]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(a){Ls[a]||(Ls[a]=[]),Ls[a].push(o[a])})}r.provides&&r.provides(Zs)}),n}function ly(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return Wi?(La("beforeI2svg",t),zo("pseudoElements2svg",t),zo("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;ye.autoReplaceSvg===!1&&(ye.autoReplaceSvg=!0),ye.observeMutations=!0,use(function(){Ese({autoReplaceSvgRoot:n}),La("watch",t)})}},Tse={icon:function(t){if(t===null)return null;if(Up(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:fa(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=eh(t[0]);return{prefix:r,iconName:fa(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(ye.cssPrefix,"-"))>-1||t.match(qae))){var i=th(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||$o(),iconName:fa(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=$o();return{prefix:o,iconName:fa(o,t)||t}}}},ar={noAuto:Pse,config:ye,dom:_se,parse:Tse,library:RE,findIconDefinition:cy,toHtml:ld},Ese=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?ct:n;(Object.keys(Ir.styles).length>0||ye.autoFetchSvg)&&Wi&&ye.autoReplaceSvg&&ar.dom.i2svg({node:r})};function nh(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return ld(r)})}}),Object.defineProperty(e,"node",{get:function(){if(Wi){var r=ct.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Ase(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(Tx(a)&&n.found&&!r.found){var l=n.width,c=n.height,u={x:l/c/2,y:.5};i.style=Jm(G(G({},o),{},{"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function $se(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,a=o===!0?"".concat(t,"-").concat(ye.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:G(G({},i),{},{id:a}),children:r}]}]}function zse(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function $x(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,a=e.transform,l=e.symbol,c=e.maskId,u=e.extra,d=e.watchable,f=d===void 0?!1:d,p=r.found?r:n,h=p.width,g=p.height,b=[ye.replacementClass,o?"".concat(ye.cssPrefix,"-").concat(o):""].filter(function(k){return u.classes.indexOf(k)===-1}).filter(function(k){return k!==""||!!k}).concat(u.classes).join(" "),x={children:[],attributes:G(G({},u.attributes),{},{"data-prefix":i,"data-icon":o,class:b,role:u.attributes.role||"img",viewBox:"0 0 ".concat(h," ").concat(g)})};!zse(u.attributes)&&!u.attributes["aria-hidden"]&&(x.attributes["aria-hidden"]="true"),f&&(x.attributes[Ma]="");var y=G(G({},x),{},{prefix:i,iconName:o,main:n,mask:r,maskId:c,transform:a,symbol:l,styles:G({},u.styles)}),v=r.found&&n.found?zo("generateAbstractMask",y)||{children:[],attributes:{}}:zo("generateAbstractIcon",y)||{children:[],attributes:{}},S=v.children,w=v.attributes;return y.children=S,y.attributes=w,l?$se(y):Ase(y)}function K3(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.extra,a=e.watchable,l=a===void 0?!1:a,c=G(G({},o.attributes),{},{class:o.classes.join(" ")});l&&(c[Ma]="");var u=G({},o.styles);Tx(i)&&(u.transform=sse({transform:i,width:n,height:r}),u["-webkit-transform"]=u.transform);var d=Jm(u);d.length>0&&(c.style=d);var f=[];return f.push({tag:"span",attributes:c,children:[t]}),f}function Ise(e){var t=e.content,n=e.extra,r=G(G({},n.attributes),{},{class:n.classes.join(" ")}),i=Jm(n.styles);i.length>0&&(r.style=i);var o=[];return o.push({tag:"span",attributes:r,children:[t]}),o}var q0=Ir.styles;function uy(e){var t=e[0],n=e[1],r=e.slice(4),i=Zm(r,1),o=i[0],a=null;return Array.isArray(o)?a={tag:"g",attributes:{class:"".concat(ye.cssPrefix,"-").concat(H0.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat(H0.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat(H0.PRIMARY),fill:"currentColor",d:o[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:a}}var Rse={found:!1,width:512,height:512};function Mse(e,t){!gE&&!ye.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function dy(e,t){var n=t;return t==="fa"&&ye.styleDefault!==null&&(t=$o()),new Promise(function(r,i){if(n==="fa"){var o=zE(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&q0[t]&&q0[t][e]){var a=q0[t][e];return r(uy(a))}Mse(e,t),r(G(G({},Rse),{},{icon:ye.showMissingIcons&&e?zo("missingIconAbstract")||{}:{}}))})}var q3=function(){},fy=ye.measurePerformance&&sf&&sf.mark&&sf.measure?sf:{mark:q3,measure:q3},vc='FA "7.3.1"',Lse=function(t){return fy.mark("".concat(vc," ").concat(t," begins")),function(){return ME(t)}},ME=function(t){fy.mark("".concat(vc," ").concat(t," ends")),fy.measure("".concat(vc," ").concat(t),"".concat(vc," ").concat(t," begins"),"".concat(vc," ").concat(t," ends"))},zx={begin:Lse,end:ME},Zf=function(){};function X3(e){var t=e.getAttribute?e.getAttribute(Ma):null;return typeof t=="string"}function Nse(e){var t=e.getAttribute?e.getAttribute(Cx):null,n=e.getAttribute?e.getAttribute(jx):null;return t&&n}function Dse(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ye.replacementClass)}function Ose(){if(ye.autoReplaceSvg===!0)return Jf.replace;var e=Jf[ye.autoReplaceSvg];return e||Jf.replace}function Fse(e){return ct.createElementNS("http://www.w3.org/2000/svg",e)}function Bse(e){return ct.createElement(e)}function LE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?Fse:Bse:n;if(typeof e=="string")return ct.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(a){i.setAttribute(a,e.attributes[a])});var o=e.children||[];return o.forEach(function(a){i.appendChild(LE(a,{ceFn:r}))}),i}function Vse(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Jf={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(LE(i),n)}),n.getAttribute(Ma)===null&&ye.keepOriginalSource){var r=ct.createComment(Vse(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~_x(n).indexOf(ye.replacementClass))return Jf.replace(t);var i=new RegExp("".concat(ye.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(l,c){return c===ye.replacementClass||c.match(i)?l.toSvg.push(c):l.toNode.push(c),l},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var a=r.map(function(l){return ld(l)}).join(` -`);n.setAttribute(Ma,""),n.innerHTML=a}};function Y3(e){e()}function NE(e,t){var n=typeof t=="function"?t:Zf;if(e.length===0)n();else{var r=Y3;ye.mutateApproach===Hae&&(r=Ao.requestAnimationFrame||Y3),r(function(){var i=Ose(),o=zx.begin("mutate");e.map(i),o(),n()})}}var Ix=!1;function DE(){Ix=!0}function py(){Ix=!1}var Gp=null;function Q3(e){if(M3&&ye.observeMutations){var t=e.treeCallback,n=t===void 0?Zf:t,r=e.nodeCallback,i=r===void 0?Zf:r,o=e.pseudoElementsCallback,a=o===void 0?Zf:o,l=e.observeMutationsRoot,c=l===void 0?ct:l;Gp=new M3(function(u){if(!Ix){var d=$o();Ml(u).forEach(function(f){if(f.type==="childList"&&f.addedNodes.length>0&&!X3(f.addedNodes[0])&&(ye.searchPseudoElements&&a(f.target),n(f.target)),f.type==="attributes"&&f.target.parentNode&&ye.searchPseudoElements&&a([f.target],!0),f.type==="attributes"&&X3(f.target)&&~Qae.indexOf(f.attributeName))if(f.attributeName==="class"&&Nse(f.target)){var p=th(_x(f.target)),h=p.prefix,g=p.iconName;f.target.setAttribute(Cx,h||d),g&&f.target.setAttribute(jx,g)}else Dse(f.target)&&i(f.target)})}}),Wi&&Gp.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Wse(){Gp&&Gp.disconnect()}function Use(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),a=o[0],l=o.slice(1);return a&&l.length>0&&(r[a]=l.join(":").trim()),r},{})),n}function Hse(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=th(_x(e));return i.prefix||(i.prefix=$o()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=hse(i.prefix,e.innerText)||Ax(i.prefix,CE(e.innerText))),!i.iconName&&ye.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function Gse(e){var t=Ml(e.attributes).reduce(function(n,r){return n.name!=="class"&&n.name!=="style"&&(n[r.name]=r.value),n},{});return t}function Kse(){return{iconName:null,prefix:null,transform:Zr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Z3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Hse(e),r=n.iconName,i=n.prefix,o=n.rest,a=Gse(e),l=ly("parseNodeAttributes",{},e),c=t.styleParser?Use(e):[];return G({iconName:r,prefix:i,transform:Zr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:c,attributes:a}},l)}var qse=Ir.styles;function OE(e){var t=ye.autoReplaceSvg==="nest"?Z3(e,{styleParser:!1}):Z3(e);return~t.extra.classes.indexOf(yE)?zo("generateLayersText",e,t):zo("generateSvgReplacementMutation",e,t)}function Xse(){return[].concat(Dr(uE),Dr(dE))}function J3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Wi)return Promise.resolve();var n=ct.documentElement.classList,r=function(f){return n.add("".concat(D3,"-").concat(f))},i=function(f){return n.remove("".concat(D3,"-").concat(f))},o=ye.autoFetchSvg?Xse():F8.concat(Object.keys(qse));o.includes("fa")||o.push("fa");var a=[".".concat(yE,":not([").concat(Ma,"])")].concat(o.map(function(d){return".".concat(d,":not([").concat(Ma,"])")})).join(", ");if(a.length===0)return Promise.resolve();var l=[];try{l=Ml(e.querySelectorAll(a))}catch{}if(l.length>0)r("pending"),i("complete");else return Promise.resolve();var c=zx.begin("onTree"),u=l.reduce(function(d,f){try{var p=OE(f);p&&d.push(p)}catch(h){gE||h.name==="MissingIcon"&&console.error(h)}return d},[]);return new Promise(function(d,f){Promise.all(u).then(function(p){NE(p,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),c(),d()})}).catch(function(p){c(),f(p)})})}function Yse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;OE(e).then(function(n){n&&NE([n],t)})}function Qse(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:cy(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:cy(i||{})),e(r,G(G({},n),{},{mask:i}))}}var Zse=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?Zr:r,o=n.symbol,a=o===void 0?!1:o,l=n.mask,c=l===void 0?null:l,u=n.maskId,d=u===void 0?null:u,f=n.classes,p=f===void 0?[]:f,h=n.attributes,g=h===void 0?{}:h,b=n.styles,x=b===void 0?{}:b;if(t){var y=t.prefix,v=t.iconName,S=t.icon;return nh(G({type:"icon"},t),function(){return La("beforeDOMElementCreation",{iconDefinition:t,params:n}),$x({icons:{main:uy(S),mask:c?uy(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:y,iconName:v,transform:G(G({},Zr),i),symbol:a,maskId:d,extra:{attributes:g,styles:x,classes:p}})})}},Jse={mixout:function(){return{icon:Qse(Zse)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=J3,n.nodeCallback=Yse,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?ct:r,o=n.callback,a=o===void 0?function(){}:o;return J3(i,a)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.prefix,a=r.transform,l=r.symbol,c=r.mask,u=r.maskId,d=r.extra;return new Promise(function(f,p){Promise.all([dy(i,o),c.iconName?dy(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(h){var g=Zm(h,2),b=g[0],x=g[1];f([n,$x({icons:{main:b,mask:x},prefix:o,iconName:i,transform:a,symbol:l,maskId:u,extra:d,watchable:!0})])}).catch(p)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.transform,l=n.styles,c=Jm(l);c.length>0&&(i.style=c);var u;return Tx(a)&&(u=zo("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),r.push(u||o.icon),{children:r,attributes:i}}}},ele={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,o=i===void 0?[]:i;return nh({type:"layer"},function(){La("beforeDOMElementCreation",{assembler:n,params:r});var a=[];return n(function(l){Array.isArray(l)?l.map(function(c){a=a.concat(c.abstract)}):a=a.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(ye.cssPrefix,"-layers")].concat(Dr(o)).join(" ")},children:a}]})}}}},tle={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.title;var i=r.classes,o=i===void 0?[]:i,a=r.attributes,l=a===void 0?{}:a,c=r.styles,u=c===void 0?{}:c;return nh({type:"counter",content:n},function(){return La("beforeDOMElementCreation",{content:n,params:r}),Ise({content:n.toString(),extra:{attributes:l,styles:u,classes:["".concat(ye.cssPrefix,"-layers-counter")].concat(Dr(o))}})})}}}},nle={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?Zr:i,a=r.classes,l=a===void 0?[]:a,c=r.attributes,u=c===void 0?{}:c,d=r.styles,f=d===void 0?{}:d;return nh({type:"text",content:n},function(){return La("beforeDOMElementCreation",{content:n,params:r}),K3({content:n,transform:G(G({},Zr),o),extra:{attributes:u,styles:f,classes:["".concat(ye.cssPrefix,"-layers-text")].concat(Dr(l))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.transform,o=r.extra,a=null,l=null;if(D8){var c=parseInt(getComputedStyle(n).fontSize,10),u=n.getBoundingClientRect();a=u.width/c,l=u.height/c}return Promise.resolve([n,K3({content:n.innerHTML,width:a,height:l,transform:i,extra:o,watchable:!0})])}}},FE=new RegExp('"',"ug"),ek=[1105920,1112319],tk=G(G(G(G({},{FontAwesome:{normal:"fas",400:"fas"}}),Poe),Wae),Moe),my=Object.keys(tk).reduce(function(e,t){return e[t.toLowerCase()]=tk[t],e},{}),rle=Object.keys(my).reduce(function(e,t){var n=my[t];return e[t]=n[900]||Dr(Object.entries(n))[0][1],e},{});function ile(e){var t=e.replace(FE,"");return CE(Dr(t)[0]||"")}function ole(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),r=n.replace(FE,""),i=r.codePointAt(0),o=i>=ek[0]&&i<=ek[1],a=r.length===2?r[0]===r[1]:!1;return o||a||t}function ale(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(my[n]||{})[i]||rle[n]}function nk(e,t){var n="".concat(Uae).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=Ml(e.children),a=o.filter(function(C){return C.getAttribute(ry)===t})[0],l=Ao.getComputedStyle(e,t),c=l.getPropertyValue("font-family"),u=c.match(Xae),d=l.getPropertyValue("font-weight"),f=l.getPropertyValue("content");if(a&&!u)return e.removeChild(a),r();if(u&&f!=="none"&&f!==""){var p=l.getPropertyValue("content"),h=ale(c,d),g=ile(p),b=u[0].startsWith("FontAwesome"),x=ole(l),y=Ax(h,g),v=y;if(b){var S=gse(g);S.iconName&&S.prefix&&(y=S.iconName,h=S.prefix)}if(y&&!x&&(!a||a.getAttribute(Cx)!==h||a.getAttribute(jx)!==v)){e.setAttribute(n,v),a&&e.removeChild(a);var w=Kse(),k=w.extra;k.attributes[ry]=t,dy(y,h).then(function(C){var P=$x(G(G({},w),{},{icons:{main:C,mask:IE()},prefix:h,iconName:v,extra:k,watchable:!0})),j=ct.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(j,e.firstChild):e.appendChild(j),j.outerHTML=P.map(function(T){return ld(T)}).join(` -`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function sle(e){return Promise.all([nk(e,"::before"),nk(e,"::after")])}function lle(e){return e.parentNode!==document.head&&!~Gae.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(ry)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var cle=function(t){return!!t&&hE.some(function(n){return t.includes(n)})},ule=function(t){if(!t)return[];var n=new Set,r=t.split(/,(?![^()]*\))/).map(function(c){return c.trim()});r=r.flatMap(function(c){return c.includes("(")?c:c.split(",").map(function(u){return u.trim()})});var i=Qf(r),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;if(cle(a)){var l=hE.reduce(function(c,u){return c.replace(u,"")},a);l!==""&&l!=="*"&&n.add(l)}}}catch(c){i.e(c)}finally{i.f()}return n};function rk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Wi){var n;if(t)n=e;else if(ye.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var r=new Set,i=Qf(document.styleSheets),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;try{var l=Qf(a.cssRules),c;try{for(l.s();!(c=l.n()).done;){var u=c.value,d=ule(u.selectorText),f=Qf(d),p;try{for(f.s();!(p=f.n()).done;){var h=p.value;r.add(h)}}catch(b){f.e(b)}finally{f.f()}}}catch(b){l.e(b)}finally{l.f()}}catch(b){ye.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(a.href," (").concat(b.message,`) -If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the , enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(b){i.e(b)}finally{i.f()}if(!r.size)return;var g=Array.from(r).join(", ");try{n=e.querySelectorAll(g)}catch{}}return new Promise(function(b,x){var y=Ml(n).filter(lle).map(sle),v=zx.begin("searchPseudoElements");DE(),Promise.all(y).then(function(){v(),py(),b()}).catch(function(){v(),py(),x()})})}}var dle={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=rk,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?ct:r;ye.searchPseudoElements&&rk(i)}}},ik=!1,fle={mixout:function(){return{dom:{unwatch:function(){DE(),ik=!0}}}},hooks:function(){return{bootstrap:function(){Q3(ly("mutationObserverCallbacks",{}))},noAuto:function(){Wse()},watch:function(n){var r=n.observeMutationsRoot;ik?py():Q3(ly("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},ok=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var o=i.toLowerCase().split("-"),a=o[0],l=o.slice(1).join("-");if(a&&l==="h")return r.flipX=!0,r;if(a&&l==="v")return r.flipY=!0,r;if(l=parseFloat(l),isNaN(l))return r;switch(a){case"grow":r.size=r.size+l;break;case"shrink":r.size=r.size-l;break;case"left":r.x=r.x-l;break;case"right":r.x=r.x+l;break;case"up":r.y=r.y-l;break;case"down":r.y=r.y+l;break;case"rotate":r.rotate=r.rotate+l;break}return r},n)},ple={mixout:function(){return{parse:{transform:function(n){return ok(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=ok(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,a=n.iconWidth,l={transform:"translate(".concat(o/2," 256)")},c="translate(".concat(i.x*32,", ").concat(i.y*32,") "),u="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),d="rotate(".concat(i.rotate," 0 0)"),f={transform:"".concat(c," ").concat(u," ").concat(d)},p={transform:"translate(".concat(a/2*-1," -256)")},h={outer:l,inner:f,path:p};return{tag:"g",attributes:G({},h.outer),children:[{tag:"g",attributes:G({},h.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:G(G({},r.icon.attributes),h.path)}]}]}}}},X0={x:0,y:0,width:"100%",height:"100%"};function ak(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function mle(e){return e.tag==="g"?e.children:[e]}var hle={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?th(i.split(" ").map(function(a){return a.trim()})):IE();return o.prefix||(o.prefix=$o()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,o=n.main,a=n.mask,l=n.maskId,c=n.transform,u=o.width,d=o.icon,f=a.width,p=a.icon,h=ase({transform:c,containerWidth:f,iconWidth:u}),g={tag:"rect",attributes:G(G({},X0),{},{fill:"white"})},b=d.children?{children:d.children.map(ak)}:{},x={tag:"g",attributes:G({},h.inner),children:[ak(G({tag:d.tag,attributes:G(G({},d.attributes),h.path)},b))]},y={tag:"g",attributes:G({},h.outer),children:[x]},v="mask-".concat(l||F3()),S="clip-".concat(l||F3()),w={tag:"mask",attributes:G(G({},X0),{},{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[g,y]},k={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:mle(p)},w]};return r.push(k,{tag:"rect",attributes:G({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(v,")")},X0)}),{children:r,attributes:i}}}},gle={provides:function(t){var n=!1;Ao.matchMedia&&(n=Ao.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:G(G({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=G(G({},o),{},{attributeName:"opacity"}),l={tag:"circle",attributes:G(G({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||l.children.push({tag:"animate",attributes:G(G({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:G(G({},a),{},{values:"1;0;1;1;0;1;"})}),r.push(l),r.push({tag:"path",attributes:G(G({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:G(G({},a),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:G(G({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:G(G({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},vle={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},yle=[cse,Jse,ele,tle,nle,dle,fle,ple,hle,gle,vle];jse(yle,{mixoutsTo:ar});ar.noAuto;var Sl=ar.config;ar.library;ar.dom;var BE=ar.parse;ar.findIconDefinition;ar.toHtml;var ble=ar.icon;ar.layer;ar.text;ar.counter;function xle(e){return e=e-0,e===e}function VE(e){return xle(e)?e:(e=e.replace(/[_-]+(.)?/g,(t,n)=>n?n.toUpperCase():""),e.charAt(0).toLowerCase()+e.slice(1))}var Sle=(e,t)=>en.createElement("stop",{key:`${t}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function wle(e){return e.charAt(0).toUpperCase()+e.slice(1)}var os=new Map,kle=1e3;function Cle(e){if(os.has(e))return os.get(e);const t={};let n=0;const r=e.length;for(;n0){const c=a.slice(0,l).trim(),u=a.slice(l+1).trim();if(c&&u){const d=VE(c);t[d.startsWith("webkit")?wle(d):d]=u}}}n=o+1}if(os.size===kle){const i=os.keys().next().value;i&&os.delete(i)}return os.set(e,t),t}function WE(e,t,n={}){if(typeof t=="string")return t;const r=(t.children||[]).map(f=>{let p=f;return("fill"in n||n.gradientFill)&&f.tag==="path"&&"fill"in f.attributes&&(p={...f,attributes:{...f.attributes,fill:void 0}}),WE(e,p)}),i=t.attributes||{},o={};for(const[f,p]of Object.entries(i))switch(!0){case f==="class":{o.className=p;break}case f==="style":{o.style=Cle(String(p));break}case f.startsWith("aria-"):case f.startsWith("data-"):{o[f.toLowerCase()]=p;break}default:o[VE(f)]=p}const{style:a,role:l,"aria-label":c,gradientFill:u,...d}=n;if(a&&(o.style=o.style?{...o.style,...a}:a),l&&(o.role=l),c&&(o["aria-label"]=c,o["aria-hidden"]="false"),u){o.fill=`url(#${u.id})`;const{type:f,stops:p=[],...h}=u;r.unshift(e(f==="linear"?"linearGradient":"radialGradient",{...h,id:u.id},p.map(Sle)))}return e(t.tag,{...o,...d},...r)}var jle=WE.bind(null,en.createElement),sk=(e,t)=>{const n=m.useId();return e||(t?n:void 0)},Ple=class{constructor(e="react-fontawesome"){this.enabled=!1;let t=!1;try{t=typeof process<"u"&&!1}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}},_le="searchPseudoElementsFullScan"in Sl&&typeof Sl.searchPseudoElementsFullScan=="boolean"?"7.0.0":"6.0.0",Tle=Number.parseInt(_le)>=7,Ele=()=>Tle,Wc="fa",Vt={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse",flip360:"fa-flip-360",buzz:"fa-buzz",float:"fa-float",jello:"fa-jello",spinSnap:"fa-spin-snap",spinSnap4:"fa-spin-snap-4",spinSnap8:"fa-spin-snap-8",swing:"fa-swing",wag:"fa-wag"},Ale={left:"fa-pull-left",right:"fa-pull-right"},$le={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},zle={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},_r={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto",canvasSquare:"fa-canvas-square",canvasRoomy:"fa-canvas-roomy"};function Ile(e){const t=Sl.cssPrefix||Sl.familyPrefix||Wc;return t===Wc?e:e.replace(new RegExp(String.raw`(?<=^|\s)${Wc}-`,"g"),`${t}-`)}function Rle(e){const{beat:t,fade:n,beatFade:r,bounce:i,shake:o,spin:a,spinPulse:l,spinReverse:c,pulse:u,fixedWidth:d,inverse:f,border:p,flip:h,size:g,rotation:b,pull:x,swapOpacity:y,rotateBy:v,widthAuto:S,canvasSquare:w,canvasRoomy:k,flip360:C,buzz:P,float:j,jello:T,spinSnap:E,spinSnap4:F,spinSnap8:Y,swing:q,wag:M,className:N}=e,D=[];return N&&D.push(...N.split(" ")),t&&D.push(Vt.beat),n&&D.push(Vt.fade),r&&D.push(Vt.beatFade),i&&D.push(Vt.bounce),o&&D.push(Vt.shake),a&&D.push(Vt.spin),c&&D.push(Vt.spinReverse),l&&D.push(Vt.spinPulse),u&&D.push(Vt.pulse),d&&D.push(_r.fixedWidth),f&&D.push(_r.inverse),p&&D.push(_r.border),h===!0&&D.push(_r.flip),(h==="horizontal"||h==="both")&&D.push(_r.flipHorizontal),(h==="vertical"||h==="both")&&D.push(_r.flipVertical),g!=null&&D.push(zle[g]),b!=null&&b!==0&&D.push($le[b]),x!=null&&D.push(Ale[x]),y&&D.push(_r.swapOpacity),Ele()?(v&&D.push(_r.rotateBy),S&&D.push(_r.widthAuto),w&&D.push(_r.canvasSquare),k&&D.push(_r.canvasRoomy),C&&D.push(Vt.flip360),P&&D.push(Vt.buzz),j&&D.push(Vt.float),T&&D.push(Vt.jello),E&&D.push(Vt.spinSnap),F&&D.push(Vt.spinSnap4),Y&&D.push(Vt.spinSnap8),q&&D.push(Vt.swing),M&&D.push(Vt.wag),(Sl.cssPrefix||Sl.familyPrefix||Wc)===Wc?D:D.map(Ile)):D}var Mle=e=>typeof e=="object"&&"icon"in e&&!!e.icon;function lk(e){if(e)return Mle(e)?e:BE.icon(e)}function Lle(e){return Object.keys(e)}var ck=new Ple("FontAwesomeIcon"),UE={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1,canvasSquare:!1,canvasRoomy:!1,flip360:!1,buzz:!1,float:!1,jello:!1,spinSnap:!1,spinSnap4:!1,spinSnap8:!1,swing:!1,wag:!1},Nle=new Set(Object.keys(UE)),Ge=en.forwardRef((e,t)=>{const n={...UE,...e},{icon:r,mask:i,symbol:o,title:a,titleId:l,maskId:c,transform:u}=n,d=sk(c,!!i),f=sk(l,!!a),p=lk(r);if(!p)return ck.error("Icon lookup is undefined",r),null;const h=Rle(n),g=typeof u=="string"?BE.transform(u):u,b=lk(i),x=ble(p,{...h.length>0&&{classes:h},...g&&{transform:g},...b&&{mask:b},symbol:o,title:a,titleId:f,maskId:d});if(!x)return ck.error("Could not find icon",p),null;const{abstract:y}=x,v={ref:t};for(const S of Lle(n))Nle.has(S)||(v[S]=n[S]);return jle(y[0],v)});Ge.displayName="FontAwesomeIcon";/*! - * Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com - * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) - * Copyright 2026 Fonticons, Inc. - */var hy={prefix:"fas",iconName:"truck",icon:[576,512,[128666,9951],"f0d1","M0 96C0 60.7 28.7 32 64 32l288 0c35.3 0 64 28.7 64 64l0 32 50.7 0c17 0 33.3 6.7 45.3 18.7L557.3 192c12 12 18.7 28.3 18.7 45.3L576 384c0 35.3-28.7 64-64 64l-3.3 0c-10.4 36.9-44.4 64-84.7 64s-74.2-27.1-84.7-64l-102.6 0c-10.4 36.9-44.4 64-84.7 64s-74.2-27.1-84.7-64L64 448c-35.3 0-64-28.7-64-64L0 96zM512 288l0-50.7-45.3-45.3-50.7 0 0 96 96 0zM192 424a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm232 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},Rx={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M286 304c98.5 0 178.3 79.8 178.3 178.3 0 16.4-13.3 29.7-29.7 29.7L78 512c-16.4 0-29.7-13.3-29.7-29.7 0-98.5 79.8-178.3 178.3-178.3l59.4 0zM585.7 105.9c7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5L522.1 274.9c-4.2 5.7-10.7 9.4-17.7 9.8s-14-2.2-18.9-7.3l-46.4-48c-9.2-9.5-9-24.7 .6-33.9 9.5-9.2 24.7-8.9 33.9 .6l26.5 27.4 85.6-117.7zM256.3 248a120 120 0 1 1 0-240 120 120 0 1 1 0 240z"]},Mx={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 3.2C119 50 64 114.6 64 192l0 21.7c0 48.1-16.4 94.8-46.4 132.4L7.8 358.3C2.7 364.6 0 372.4 0 380.5 0 400.1 15.9 416 35.5 416l376.9 0c19.6 0 35.5-15.9 35.5-35.5 0-8.1-2.7-15.9-7.8-22.2l-9.8-12.2C400.4 308.5 384 261.8 384 213.7l0-21.7c0-77.4-55-142-128-156.8l0-3.2c0-17.7-14.3-32-32-32zM162 464c7.1 27.6 32.2 48 62 48s54.9-20.4 62-48l-124 0z"]},uk={prefix:"fas",iconName:"trophy",icon:[512,512,[127942],"f091","M144.3 0l224 0c26.5 0 48.1 21.8 47.1 48.2-.2 5.3-.4 10.6-.7 15.8l49.6 0c26.1 0 49.1 21.6 47.1 49.8-7.5 103.7-60.5 160.7-118 190.5-15.8 8.2-31.9 14.3-47.2 18.8-20.2 28.6-41.2 43.7-57.9 51.8l0 73.1 64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0 0-73.1c-16-7.7-35.9-22-55.3-48.3-18.4-4.8-38.4-12.1-57.9-23.1-54.1-30.3-102.9-87.4-109.9-189.9-1.9-28.1 21-49.7 47.1-49.7l49.6 0c-.3-5.2-.5-10.4-.7-15.8-1-26.5 20.6-48.2 47.1-48.2zM101.5 112l-52.4 0c6.2 84.7 45.1 127.1 85.2 149.6-14.4-37.3-26.3-86-32.8-149.6zM380 256.8c40.5-23.8 77.1-66.1 83.3-144.8L411 112c-6.2 60.9-17.4 108.2-31 144.8z"]},Dle={prefix:"fas",iconName:"gift",icon:[512,512,[127873],"f06b","M321.5 68.8C329.1 55.9 342.9 48 357.8 48l2.2 0c22.1 0 40 17.9 40 40s-17.9 40-40 40l-73.3 0 34.8-59.2zm-131 0l34.8 59.2-73.3 0c-22.1 0-40-17.9-40-40s17.9-40 40-40l2.2 0c14.9 0 28.8 7.9 36.3 20.8zm89.6-24.3l-24.1 41-24.1-41C215.7 16.9 186.1 0 154.2 0L152 0c-48.6 0-88 39.4-88 88 0 14.4 3.5 28 9.6 40L32 128c-17.7 0-32 14.3-32 32l0 32c0 17.7 14.3 32 32 32l448 0c17.7 0 32-14.3 32-32l0-32c0-17.7-14.3-32-32-32l-41.6 0c6.1-12 9.6-25.6 9.6-40 0-48.6-39.4-88-88-88l-2.2 0c-31.9 0-61.5 16.9-77.7 44.4zM480 272l-200 0 0 208 136 0c35.3 0 64-28.7 64-64l0-144zm-248 0l-200 0 0 144c0 35.3 28.7 64 64 64l136 0 0-208z"]},HE={prefix:"fas",iconName:"power-off",icon:[512,512,[9211],"f011","M288 0c0-17.7-14.3-32-32-32S224-17.7 224 0l0 256c0 17.7 14.3 32 32 32s32-14.3 32-32L288 0zM146.3 98.4c14.5-10.1 18-30.1 7.9-44.6s-30.1-18-44.6-7.9C43.4 92.1 0 169 0 256 0 397.4 114.6 512 256 512S512 397.4 512 256c0-87-43.4-163.9-109.7-210.1-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6c49.8 34.8 82.3 92.4 82.3 157.6 0 106-86 192-192 192S64 362 64 256c0-65.2 32.5-122.9 82.3-157.6z"]},Ole={prefix:"fas",iconName:"cash-register",icon:[512,512,[],"f788","M96 0C60.7 0 32 28.7 32 64s28.7 64 64 64l48 0 0 32-57 0c-31.6 0-58.5 23.1-63.3 54.4L1.1 364.1C.4 368.8 0 373.6 0 378.4L0 448c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-69.6c0-4.8-.4-9.6-1.1-14.4L488.2 214.4C483.5 183.1 456.6 160 425 160l-217 0 0-32 48 0c35.3 0 64-28.7 64-64S291.3 0 256 0L96 0zm0 48l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16L96 80c-8.8 0-16-7.2-16-16s7.2-16 16-16zM64 424c0-13.3 10.7-24 24-24l336 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L88 448c-13.3 0-24-10.7-24-24zm48-160a24 24 0 1 1 0-48 24 24 0 1 1 0 48zm120-24a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM160 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48zM328 240a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM256 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48zM424 240a24 24 0 1 1 -48 0 24 24 0 1 1 48 0zM352 344a24 24 0 1 1 0-48 24 24 0 1 1 0 48z"]},Fle={prefix:"fas",iconName:"map-location-dot",icon:[640,512,["map-marked-alt"],"f5a0","M576 48c0-11.1-5.7-21.4-15.2-27.2s-21.2-6.4-31.1-1.4L413.5 77.5 234.1 17.6c-8.1-2.7-16.8-2.1-24.4 1.7l-128 64C70.8 88.8 64 99.9 64 112l0 352c0 11.1 5.7 21.4 15.2 27.2s21.2 6.4 31.1 1.4l116.1-58.1 173.3 57.8c-4.3-6.4-8.5-13.1-12.6-19.9-11-18.3-21.9-39.3-30-61.8l-101.2-33.7 0-284.5 128 42.7 0 99.3c31-35.8 77-58.4 128-58.4 22.6 0 44.2 4.4 64 12.5L576 48zM512 224c-66.3 0-120 52.8-120 117.9 0 68.9 64.1 150.4 98.6 189.3 11.6 13 31.3 13 42.9 0 34.5-38.9 98.6-120.4 98.6-189.3 0-65.1-53.7-117.9-120-117.9zM472 344a40 40 0 1 1 80 0 40 40 0 1 1 -80 0z"]},Ble={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Vle={prefix:"fas",iconName:"boxes-stacked",icon:[512,512,[62625,"boxes","boxes-alt"],"f468","M224 0l0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-64 32 0c35.3 0 64 28.7 64 64l0 128c0 5.5-.7 10.9-2 16l-252 0c-1.3-5.1-2-10.5-2-16l0-128c0-35.3 28.7-64 64-64l32 0zm96 512c-11.2 0-21.8-2.9-31-8 9.5-16.5 15-35.6 15-56l0-128c0-20.4-5.5-39.5-15-56 9.2-5.1 19.7-8 31-8l32 0 0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-64 32 0c35.3 0 64 28.7 64 64l0 128c0 35.3-28.7 64-64 64l-128 0zM0 320c0-35.3 28.7-64 64-64l32 0 0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-64 32 0c35.3 0 64 28.7 64 64l0 128c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 320z"]},GE={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8c-22.4 31.4-35.5 69.8-35.5 111.2 0 106 86 192 192 192 41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3c22.4-31.4 35.5-69.8 35.5-111.2 0-106-86-192-192-192-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"]},dk={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48 0 3.4 .4 6.7 1 9.9 2.1 10.2 6.5 20 10.8 29.9 6.1 13.8 12.1 27.5 12.1 42 0 31.8-21.6 60.7-53.4 62-3.5 .1-7 .2-10.6 .2-141.4 0-256-114.6-256-256S114.6 0 256 0 512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Wle={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6-46.8 43.5-78.1 95.4-93 131.1-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64-11.5 0-22.3-3-31.7-8.4-1 10.9-.1 22.1 2.9 33.2 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-12.2-45.7-55.5-74.8-101.1-70.8 5.3 9.3 8.4 20.1 8.4 31.7z"]},KE={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M136.7 5.9L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-8.7-26.1C306.9-7.2 294.7-16 280.9-16L167.1-16c-13.8 0-26 8.8-30.4 21.9zM416 144L32 144 53.1 467.1C54.7 492.4 75.7 512 101 512L347 512c25.3 0 46.3-19.6 47.9-44.9L416 144z"]},Ule={prefix:"fas",iconName:"receipt",icon:[384,512,[129534],"f543","M14 2.2C22.5-1.7 32.5-.3 39.6 5.8L80 40.4 120.4 5.8c9-7.7 22.3-7.7 31.2 0L192 40.4 232.4 5.8c9-7.7 22.2-7.7 31.2 0L304 40.4 344.4 5.8c7.1-6.1 17.1-7.5 25.6-3.6S384 14.6 384 24l0 464c0 9.4-5.5 17.9-14 21.8s-18.5 2.5-25.6-3.6l-40.4-34.6-40.4 34.6c-9 7.7-22.2 7.7-31.2 0l-40.4-34.6-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L80 471.6 39.6 506.2c-7.1 6.1-17.1 7.5-25.6 3.6S0 497.4 0 488L0 24C0 14.6 5.5 6.1 14 2.2zM104 136c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0zM80 352c0 13.3 10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0c-13.3 0-24 10.7-24 24zm24-120c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0z"]},qE={prefix:"fas",iconName:"chevron-up",icon:[448,512,[],"f077","M201.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L224 173.3 54.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},cd={prefix:"fas",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M256 0a256 256 0 1 1 0 512 256 256 0 1 1 0-512zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},Hle={prefix:"fas",iconName:"paper-plane",icon:[576,512,[61913],"f1d8","M536.4-26.3c9.8-3.5 20.6-1 28 6.3s9.8 18.2 6.3 28l-178 496.9c-5 13.9-18.1 23.1-32.8 23.1-14.2 0-27-8.6-32.3-21.7l-64.2-158c-4.5-11-2.5-23.6 5.2-32.6l94.5-112.4c5.1-6.1 4.7-15-.9-20.6s-14.6-6-20.6-.9L229.2 276.1c-9.1 7.6-21.6 9.6-32.6 5.2L38.1 216.8c-13.1-5.3-21.7-18.1-21.7-32.3 0-14.7 9.2-27.8 23.1-32.8l496.9-178z"]},Gle={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},Kle={prefix:"fas",iconName:"fire",icon:[448,512,[128293],"f06d","M160.5-26.4c9.3-7.8 23-7.5 31.9 .9 12.3 11.6 23.3 24.4 33.9 37.4 13.5 16.5 29.7 38.3 45.3 64.2 5.2-6.8 10-12.8 14.2-17.9 1.1-1.3 2.2-2.7 3.3-4.1 7.9-9.8 17.7-22.1 30.8-22.1 13.4 0 22.8 11.9 30.8 22.1 1.3 1.7 2.6 3.3 3.9 4.8 10.3 12.4 24 30.3 37.7 52.4 27.2 43.9 55.6 106.4 55.6 176.6 0 123.7-100.3 224-224 224S0 411.7 0 288c0-91.1 41.1-170 80.5-225 19.9-27.7 39.7-49.9 54.6-65.1 8.2-8.4 16.5-16.7 25.5-24.2zM225.7 416c25.3 0 47.7-7 68.8-21 42.1-29.4 53.4-88.2 28.1-134.4-4.5-9-16-9.6-22.5-2l-25.2 29.3c-6.6 7.6-18.5 7.4-24.7-.5-17.3-22.1-49.1-62.4-65.3-83-5.4-6.9-15.2-8-21.5-1.9-18.3 17.8-51.5 56.8-51.5 104.3 0 68.6 50.6 109.2 113.7 109.2z"]},XE={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M320 16a104 104 0 1 1 0 208 104 104 0 1 1 0-208zM96 88a72 72 0 1 1 0 144 72 72 0 1 1 0-144zM0 416c0-70.7 57.3-128 128-128 12.8 0 25.2 1.9 36.9 5.4-32.9 36.8-52.9 85.4-52.9 138.6l0 16c0 11.4 2.4 22.2 6.7 32L32 480c-17.7 0-32-14.3-32-32l0-32zm521.3 64c4.3-9.8 6.7-20.6 6.7-32l0-16c0-53.2-20-101.8-52.9-138.6 11.7-3.5 24.1-5.4 36.9-5.4 70.7 0 128 57.3 128 128l0 32c0 17.7-14.3 32-32 32l-86.7 0zM472 160a72 72 0 1 1 144 0 72 72 0 1 1 -144 0zM160 432c0-88.4 71.6-160 160-160s160 71.6 160 160l0 16c0 17.7-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32l0-16z"]},YE={prefix:"fas",iconName:"location-arrow",icon:[512,512,[],"f124","M477.9 75.5c4.5-11.8 1.7-25.2-7.2-34.1s-22.3-11.8-34.1-7.2l-416 160C7.9 199-.3 211.2 0 224.7s9.1 25.4 21.9 29.6l176.8 58.9 58.9 176.8c4.3 12.8 16.1 21.6 29.6 21.9s25.7-7.9 30.6-20.5l160-416z"]},qle={prefix:"fas",iconName:"video",icon:[576,512,["video-camera"],"f03d","M96 64c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L96 64zM464 336l73.5 58.8c4.2 3.4 9.4 5.2 14.8 5.2 13.1 0 23.7-10.6 23.7-23.7l0-240.6c0-13.1-10.6-23.7-23.7-23.7-5.4 0-10.6 1.8-14.8 5.2L464 176 464 336z"]},Xle={prefix:"fas",iconName:"utensils",icon:[512,512,[127860,61685,"cutlery"],"f2e7","M63.9 14.4C63.1 6.2 56.2 0 48 0s-15.1 6.2-16 14.3L17.9 149.7c-1.3 6-1.9 12.1-1.9 18.2 0 45.9 35.1 83.6 80 87.7L96 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-224.4c44.9-4.1 80-41.8 80-87.7 0-6.1-.6-12.2-1.9-18.2L223.9 14.3C223.1 6.2 216.2 0 208 0s-15.1 6.2-15.9 14.4L178.5 149.9c-.6 5.7-5.4 10.1-11.1 10.1-5.8 0-10.6-4.4-11.2-10.2L143.9 14.6C143.2 6.3 136.3 0 128 0s-15.2 6.3-15.9 14.6L99.8 149.8c-.5 5.8-5.4 10.2-11.2 10.2-5.8 0-10.6-4.4-11.1-10.1L63.9 14.4zM448 0C432 0 320 32 320 176l0 112c0 35.3 28.7 64 64 64l32 0 0 128c0 17.7 14.3 32 32 32s32-14.3 32-32l0-448c0-17.7-14.3-32-32-32z"]},Yle={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c9.4-9.4 24.6-9.4 33.9 0l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9z"]},Lx={prefix:"fas",iconName:"user-clock",icon:[576,512,[],"f4fd","M224 8a120 120 0 1 1 0 240 120 120 0 1 1 0-240zM194.3 304l59.4 0c3.9 0 7.9 .1 11.8 .4-16.2 28.2-25.5 60.8-25.5 95.6 0 41.8 13.4 80.5 36 112L45.7 512C29.3 512 16 498.7 16 482.3 16 383.8 95.8 304 194.3 304zM288 400a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-80c-8.8 0-16 7.2-16 16l0 64c0 8.8 7.2 16 16 16l48 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-48c0-8.8-7.2-16-16-16z"]},Qle={prefix:"fas",iconName:"image",icon:[448,512,[],"f03e","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm64 80a48 48 0 1 1 0 96 48 48 0 1 1 0-96zM272 224c8.4 0 16.1 4.4 20.5 11.5l88 144c4.5 7.4 4.7 16.7 .5 24.3S368.7 416 360 416L88 416c-8.9 0-17.2-5-21.3-12.9s-3.5-17.5 1.6-24.8l56-80c4.5-6.4 11.8-10.2 19.7-10.2s15.2 3.8 19.7 10.2l26.4 37.8 61.4-100.5c4.4-7.1 12.1-11.5 20.5-11.5z"]},Zle={prefix:"fas",iconName:"user-plus",icon:[640,512,[],"f234","M285.7 304c98.5 0 178.3 79.8 178.3 178.3 0 16.4-13.3 29.7-29.7 29.7L77.7 512C61.3 512 48 498.7 48 482.3 48 383.8 127.8 304 226.3 304l59.4 0zM528 80c13.3 0 24 10.7 24 24l0 48 48 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-48 0 0 48c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-48-48 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0 0-48c0-13.3 10.7-24 24-24zM256 248a120 120 0 1 1 0-240 120 120 0 1 1 0 240z"]},QE={prefix:"fas",iconName:"link",icon:[576,512,[128279,"chain"],"f0c1","M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z"]},ZE={prefix:"fas",iconName:"bicycle",icon:[640,512,[128690],"f206","M331.7 43.3C336 36.3 343.7 32 352 32l104 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-65.6 0 72.2 148.4c10.7-2.9 21.9-4.4 33.4-4.4 70.7 0 128 57.3 128 128s-57.3 128-128 128-128-57.3-128-128c0-42 20.2-79.2 51.4-102.6l-20.4-41.9-73.5 147c-2.3 4.8-6.3 8.8-11.4 11.2-.6 .3-1.2 .5-1.8 .7-2.9 1.1-5.9 1.6-8.9 1.5L271 368c-7.9 63.1-61.7 112-127 112-70.7 0-128-57.3-128-128S73.3 224 144 224c10.8 0 21.2 1.3 31.2 3.8l28.5-56.9-11.5-26.9-40.2 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l56 0c9.6 0 18.3 5.7 22.1 14.5l14.3 33.5 123.7 0-37.7-77.5c-3.6-7.4-3.2-16.2 1.2-23.2zM228.5 228.7l-45.6 91.3 84.8 0-39.1-91.3zM305.7 287l47.5-95-88.2 0 40.7 95zm168.7 75.5l-29.7-61c-12.8 13-20.7 30.8-20.7 50.5 0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72c-2.7 0-5.5 .2-8.1 .5l29.7 61c5.8 11.9 .8 26.3-11.1 32.1s-26.3 .8-32.1-11.1zM149.2 368c-20.2 0-33.4-21.3-24.3-39.4l24.2-48.5c-1.7-.1-3.4-.2-5.1-.2-39.8 0-72 32.2-72 72s32.2 72 72 72c34.3 0 62.9-23.9 70.2-56l-65 0z"]},Jle={prefix:"fas",iconName:"bell-concierge",icon:[512,512,[128718,"concierge-bell"],"f562","M216 64c-13.3 0-24 10.7-24 24s10.7 24 24 24l16 0 0 33.3C124.8 156.7 40.2 243.7 32.6 352l446.9 0C471.8 243.7 387.2 156.7 280 145.3l0-33.3 16 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0zM24 400c-13.3 0-24 10.7-24 24s10.7 24 24 24l464 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L24 400z"]},Na={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"]},Nx={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144,62470,"user-alt","user-large"],"f007","M224 248a120 120 0 1 0 0-240 120 120 0 1 0 0 240zm-29.7 56C95.8 304 16 383.8 16 482.3 16 498.7 29.3 512 45.7 512l356.6 0c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3l-59.4 0z"]},ece={prefix:"fas",iconName:"tags",icon:[576,512,[],"f02c","M401.2 39.1L549.4 189.4c27.7 28.1 27.7 73.1 0 101.2L393 448.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L515.3 256.8c9.2-9.3 9.2-24.4 0-33.7L367 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM32.1 229.5L32.1 96c0-35.3 28.7-64 64-64l133.5 0c17 0 33.3 6.7 45.3 18.7l144 144c25 25 25 65.5 0 90.5L285.4 418.7c-25 25-65.5 25-90.5 0l-144-144c-12-12-18.7-28.3-18.7-45.3zm144-85.5a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},tce={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zM374 145.7c-10.7-7.8-25.7-5.4-33.5 5.3L221.1 315.2 169 263.1c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l72 72c5 5 11.8 7.5 18.8 7s13.4-4.1 17.5-9.8L379.3 179.2c7.8-10.7 5.4-25.7-5.3-33.5z"]},nce={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M352.9 21.2L308 66.1 445.9 204 490.8 159.1C504.4 145.6 512 127.2 512 108s-7.6-37.6-21.2-51.1L455.1 21.2C441.6 7.6 423.2 0 404 0s-37.6 7.6-51.1 21.2zM274.1 100L58.9 315.1c-10.7 10.7-18.5 24.1-22.6 38.7L.9 481.6c-2.3 8.3 0 17.3 6.2 23.4s15.1 8.5 23.4 6.2l127.8-35.5c14.6-4.1 27.9-11.8 38.7-22.6L412 237.9 274.1 100z"]},rce={prefix:"fas",iconName:"phone",icon:[512,512,[128222,128379],"f095","M160.2 25C152.3 6.1 131.7-3.9 112.1 1.4l-5.5 1.5c-64.6 17.6-119.8 80.2-103.7 156.4 37.1 175 174.8 312.7 349.8 349.8 76.3 16.2 138.8-39.1 156.4-103.7l1.5-5.5c5.4-19.7-4.7-40.3-23.5-48.1l-97.3-40.5c-16.5-6.9-35.6-2.1-47 11.8l-38.6 47.2C233.9 335.4 177.3 277 144.8 205.3L189 169.3c13.9-11.3 18.6-30.4 11.8-47L160.2 25z"]},JE={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},ice={prefix:"fas",iconName:"hourglass-half",icon:[384,512,["hourglass-2"],"f252","M32 0C14.3 0 0 14.3 0 32S14.3 64 32 64l0 11c0 42.4 16.9 83.1 46.9 113.1l67.9 67.9-67.9 67.9C48.9 353.9 32 394.6 32 437l0 11c-17.7 0-32 14.3-32 32s14.3 32 32 32l320 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-11c0-42.4-16.9-83.1-46.9-113.1l-67.9-67.9 67.9-67.9c30-30 46.9-70.7 46.9-113.1l0-11c17.7 0 32-14.3 32-32S369.7 0 352 0L32 0zM96 75l0-11 192 0 0 11c0 19-5.6 37.4-16 53L112 128c-10.3-15.6-16-34-16-53zm16 309c3.5-5.3 7.6-10.3 12.1-14.9l67.9-67.9 67.9 67.9c4.6 4.6 8.6 9.6 12.2 14.9L112 384z"]},oce={prefix:"fas",iconName:"credit-card",icon:[512,512,[128179,62083,"credit-card-alt"],"f09d","M0 128l0 32 512 0 0-32c0-35.3-28.7-64-64-64L64 64C28.7 64 0 92.7 0 128zm0 80L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-176-512 0zM64 360c0-13.3 10.7-24 24-24l48 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-48 0c-13.3 0-24-10.7-24-24zm144 0c0-13.3 10.7-24 24-24l64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0c-13.3 0-24-10.7-24-24z"]},ace={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},Kp={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z"]},rh={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},ih={prefix:"fas",iconName:"shield-halved",icon:[512,512,["shield-alt"],"f3ed","M256 0c4.6 0 9.2 1 13.4 2.9L457.8 82.8c22 9.3 38.4 31 38.3 57.2-.5 99.2-41.3 280.7-213.6 363.2-16.7 8-36.1 8-52.8 0-172.4-82.5-213.1-264-213.6-363.2-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.9 1 251.4 0 256 0zm0 66.8l0 378.1c138-66.8 175.1-214.8 176-303.4l-176-74.6 0 0z"]},sce={prefix:"fas",iconName:"check-double",icon:[384,512,[],"f560","M249.9 66.8c10.4-14.3 7.2-34.3-7.1-44.7s-34.3-7.2-44.7 7.1l-106 145.7-37.5-37.5c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l64 64c6.6 6.6 15.8 10 25.1 9.3s17.9-5.5 23.4-13.1l128-176zm128 136c10.4-14.3 7.2-34.3-7.1-44.7s-34.3-7.2-44.7 7.1l-170 233.7-69.5-69.5c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96c6.6 6.6 15.8 10 25.1 9.3s17.9-5.5 23.4-13.1l192-264z"]},Dx={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"]},e7={prefix:"fas",iconName:"box",icon:[448,512,[128230],"f466","M335.1 16c20.7 0 40.1 10 52.1 26.8l48.9 68.5c7.7 10.8 11.9 23.9 11.9 37.2L448 416c0 35.3-28.7 64-64 64l-320 0-6.5-.3C25.2 476.4 0 449.1 0 416L0 148.5c0-11.7 3.2-23.1 9.2-33l2.7-4.2 48.9-68.5c10.5-14.7 26.7-24.2 44.4-26.3l7.7-.5 222.1 0zM248 128l121.3 0-34.3-48-87.1 0 0 48zM78.7 128l121.3 0 0-48-87.1 0-34.3 48z"]},t7={prefix:"fas",iconName:"link-slash",icon:[576,512,["chain-broken","chain-slash","unlink"],"f127","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-122-122c4.2-3.4 8.3-7.1 12.1-10.9l71.1-71.1c29.3-29.3 45.8-69.1 45.8-110.6 0-86.4-70-156.5-156.5-156.5-37.3 0-73.1 13.3-101.3 37.2 20.3 10.1 38.7 23.5 54.5 39.5 14.1-8.3 30.2-12.7 46.8-12.7 51.1 0 92.5 41.4 92.5 92.5 0 24.5-9.7 48-27.1 65.4l-71.1 71.1c-3.9 3.9-8.1 7.4-12.6 10.5l-47.5-47.5c16.5-.9 29.7-14.4 30.2-31.1 0-1.3 0-2.6 0-3.9 0-86.3-69.9-156.9-156.5-156.9-19.2 0-37.9 3.5-55.5 10.2L41-24.9zM225.9 160c.6 0 1.1 0 1.7 0 15.1 0 29.5 3.7 42.1 10.2 1.8 1.2 3.6 2.3 5.5 3.1 26.8 16.3 44.8 45.9 44.8 79.6 0 .4 0 .8 0 1.2L225.9 160zM346.2 416L192 261.8c1.2 84.6 69.6 152.9 154.1 154.1zM139.7 209.5l-45.3-45.3-48.6 48.6c-29.3 29.3-45.8 69.1-45.8 110.6 0 86.4 70 156.5 156.5 156.5 37.2 0 73.1-13.3 101.3-37.2-20.3-10.1-38.8-23.5-54.6-39.5-14 8.2-30.1 12.6-46.7 12.6-51.1 0-92.5-41.4-92.5-92.5 0-24.5 9.7-48 27.1-65.4l48.6-48.6z"]},lce={prefix:"fas",iconName:"arrow-rotate-right",icon:[512,512,[8635,"arrow-right-rotate","arrow-rotate-forward","redo"],"f01e","M436.7 74.7L448 85.4 448 32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 128c0 17.7-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l47.9 0-7.6-7.2c-.2-.2-.4-.4-.6-.6-75-75-196.5-75-271.5 0s-75 196.5 0 271.5 196.5 75 271.5 0c8.2-8.2 15.5-16.9 21.9-26.1 10.1-14.5 30.1-18 44.6-7.9s18 30.1 7.9 44.6c-8.5 12.2-18.2 23.8-29.1 34.7-100 100-262.1 100-362 0S-25 175 75 75c99.9-99.9 261.7-100 361.7-.3z"]},cce={prefix:"fas",iconName:"eye-slash",icon:[576,512,[],"f070","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM204.5 138.7c23.5-16.8 52.4-26.7 83.5-26.7 79.5 0 144 64.5 144 144 0 31.1-9.9 59.9-26.7 83.5l-34.7-34.7c12.7-21.4 17-47.7 10.1-73.7-13.7-51.2-66.4-81.6-117.6-67.9-8.6 2.3-16.7 5.7-24 10l-34.7-34.7zM325.3 395.1c-11.9 3.2-24.4 4.9-37.3 4.9-79.5 0-144-64.5-144-144 0-12.9 1.7-25.4 4.9-37.3L69.4 139.2c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6l-64.2-64.2z"]},qp={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M256 64c-56.8 0-107.9 24.7-143.1 64l47.1 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 192c-17.7 0-32-14.3-32-32L0 32C0 14.3 14.3 0 32 0S64 14.3 64 32l0 54.7C110.9 33.6 179.5 0 256 0 397.4 0 512 114.6 512 256S397.4 512 256 512c-87 0-163.9-43.4-210.1-109.7-10.1-14.5-6.6-34.4 7.9-44.6s34.4-6.6 44.6 7.9c34.8 49.8 92.4 82.3 157.6 82.3 106 0 192-86 192-192S362 64 256 64z"]},uce={prefix:"fas",iconName:"desktop",icon:[512,512,[128421,61704,"desktop-alt"],"f390","M64 32C28.7 32 0 60.7 0 96L0 352c0 35.3 28.7 64 64 64l144 0-16 48-72 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l272 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-72 0-16-48 144 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 32zM96 96l320 0c17.7 0 32 14.3 32 32l0 160c0 17.7-14.3 32-32 32L96 320c-17.7 0-32-14.3-32-32l0-160c0-17.7 14.3-32 32-32z"]},dce={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 502.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 402.7 224 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 370.7-105.4-105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},oh={prefix:"fas",iconName:"location-dot",icon:[384,512,["map-marker-alt"],"f3c5","M0 188.6C0 84.4 86 0 192 0S384 84.4 384 188.6c0 119.3-120.2 262.3-170.4 316.8-11.8 12.8-31.5 12.8-43.3 0-50.2-54.5-170.4-197.5-170.4-316.8zM192 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128z"]},Ox={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M512 96c0 50.2-59.1 125.1-84.6 155-3.8 4.4-9.4 6.1-14.5 5L320 256c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c53 0 96 43 96 96s-43 96-96 96l-276.4 0c8.7-9.9 19.3-22.6 30-36.8 6.3-8.4 12.8-17.6 19-27.2L416 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0c-53 0-96-43-96-96s43-96 96-96l39.8 0c-21-31.5-39.8-67.7-39.8-96 0-53 43-96 96-96s96 43 96 96zM117.1 489.1c-3.8 4.3-7.2 8.1-10.1 11.3l-1.8 2-.2-.2c-6 4.6-14.6 4-20-1.8-25.2-27.4-85-97.9-85-148.4 0-53 43-96 96-96s96 43 96 96c0 30-21.1 67-43.5 97.9-10.7 14.7-21.7 28-30.8 38.5l-.6 .7zM128 352a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM416 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},fce={prefix:"fas",iconName:"file-export",icon:[576,512,["arrow-right-from-file"],"f56e","M96.5 0c-35.3 0-64 28.7-64 64l0 384c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-96 78.1 0-31 31c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l72-72c9.4-9.4 9.4-24.6 0-33.9l-72-72c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l31 31-78.1 0 0-133.5c0-17-6.7-33.3-18.7-45.3L291.2 18.7C279.2 6.7 263 0 246 0L96.5 0zM358 176l-93.5 0c-13.3 0-24-10.7-24-24L240.5 58.5 358 176zM224.5 328c0-13.3 10.7-24 24-24l104 0 0 48-104 0c-13.3 0-24-10.7-24-24z"]},pce={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M65.9 228.5c13.3-93 93.4-164.5 190.1-164.5 53 0 101 21.5 135.8 56.2 .2 .2 .4 .4 .6 .6l7.6 7.2-47.9 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 53.4-11.3-10.7C390.5 28.6 326.5 0 256 0 127 0 20.3 95.4 2.6 219.5 .1 237 12.2 253.2 29.7 255.7s33.7-9.7 36.2-27.1zm443.5 64c2.5-17.5-9.7-33.7-27.1-36.2s-33.7 9.7-36.2 27.1c-13.3 93-93.4 164.5-190.1 164.5-53 0-101-21.5-135.8-56.2-.2-.2-.4-.4-.6-.6l-7.6-7.2 47.9 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 320c-8.5 0-16.7 3.4-22.7 9.5S-.1 343.7 0 352.3l1 127c.1 17.7 14.6 31.9 32.3 31.7S65.2 496.4 65 478.7l-.4-51.5 10.7 10.1c46.3 46.1 110.2 74.7 180.7 74.7 129 0 235.7-95.4 253.4-219.5z"]},mce=pce;const z={bg:"#0a0a0a",card:"#1e1e1e",border:"#333333",text:"rgba(255,255,255,.87)",text2:"rgba(255,255,255,.6)",text3:"rgba(255,255,255,.4)",accent:"#7c3aed",accentLight:"#8b5cf6",secondary:"#22d3ee",success:"#4ade80",danger:"#ef4444",warning:"#f59e0b",info:"#3b82f6"};function Bt({children:e}){return s.jsx(ae,{bg:z.bg,borderRadius:"24px",p:"14px",maxW:"380px",mx:"auto",boxShadow:"0 30px 60px -20px rgba(60,20,110,.45)",border:"1px solid",borderColor:"whiteAlpha.100",children:s.jsx(ae,{bg:z.bg,borderRadius:"16px",p:"16px 14px 20px",minH:"220px",children:e})})}function En({title:e,subtitle:t,action:n}){return s.jsxs(gt,{justify:"space-between",align:"flex-start",mb:4,children:[s.jsxs(ae,{children:[s.jsx(K,{color:z.text,fontSize:"1rem",fontWeight:"800",mb:0,children:e}),t&&s.jsx(K,{color:z.text3,fontSize:"0.72rem",children:t})]}),n]})}function Xe({children:e,mb:t=2.5,onClick:n,active:r=!1}){return s.jsx(ae,{bg:z.card,border:"1px solid",borderColor:r?z.accent:z.border,borderRadius:"12px",p:3,mb:t,cursor:n?"pointer":void 0,transition:"border-color .15s, transform .1s",onClick:n,_hover:n?{borderColor:z.accentLight}:void 0,_active:n?{transform:"scale(0.99)"}:void 0,children:e})}function rt({icon:e,value:t,label:n,color:r=z.accentLight}){return s.jsxs(ae,{bg:z.card,border:"1px solid",borderColor:z.border,borderRadius:"12px",p:2.5,children:[s.jsx(gt,{w:"26px",h:"26px",borderRadius:"full",align:"center",justify:"center",bg:`${r}30`,mb:2,children:s.jsx(Ge,{icon:e,style:{color:r,fontSize:"0.7rem"}})}),s.jsx(K,{color:z.text,fontSize:"1.15rem",fontWeight:"800",lineHeight:"1",children:t}),s.jsx(K,{color:z.text3,fontSize:"0.62rem",mt:1,textTransform:"uppercase",letterSpacing:"0.02em",children:n})]})}function J({children:e,variant:t="primary",mono:n=!1,size:r}){const i={primary:z.text,secondary:z.text2,muted:z.text3,success:z.success,danger:z.danger};return s.jsx(K,{color:i[t],fontSize:r??"0.78rem",fontFamily:n?"mono":void 0,as:"span",children:e})}function It({children:e}){return s.jsx(be,{justify:"space-between",align:"center",children:e})}function hce({value:e,color:t=z.accent}){return s.jsx(Fp,{value:e,size:"xs",borderRadius:"full",mt:1,sx:{"& > div":{background:t,transition:"width .4s ease"},background:"#2a2a2a"}})}function wl({color:e,size:t="9px"}){return s.jsx(ae,{as:"span",display:"inline-block",w:t,h:t,borderRadius:"full",bg:e,mr:1.5,flexShrink:0})}function n7({icon:e,color:t,size:n="0.75rem"}){return s.jsx(Ge,{icon:e,style:{color:t??z.text2,fontSize:n,marginRight:6}})}function $e({children:e,tone:t="outline",icon:n,onClick:r,isActive:i=!1}){const o={accent:{bg:z.accent,color:"white",border:"none"},outline:{bg:"transparent",color:z.text2,border:`1px solid ${z.border}`},outlineDanger:{bg:"transparent",color:z.danger,border:`1px solid ${z.danger}`},success:{bg:z.success,color:"#0a0a0a",border:"none"}}[t];return s.jsxs(ae,{as:"button",type:"button",display:"inline-flex",alignItems:"center",borderRadius:"8px",px:3,py:1.5,fontSize:"0.68rem",fontWeight:"700",cursor:r?"pointer":"default",transition:"filter .15s, transform .1s",opacity:i?1:.92,_hover:r?{filter:"brightness(1.15)"}:void 0,_active:r?{transform:"scale(0.96)"}:void 0,onClick:r,...o,children:[n&&s.jsx(Ge,{icon:n,style:{marginRight:6,fontSize:"0.68rem"}}),e]})}function Fx({tabs:e,active:t,onChange:n}){return s.jsx(be,{spacing:1.5,mb:3,flexWrap:"wrap",children:e.map(r=>{const i=r.key===t;return s.jsx(ae,{as:"button",type:"button",onClick:()=>n(r.key),px:2.5,py:1,borderRadius:"999px",fontSize:"0.66rem",fontWeight:"700",cursor:"pointer",transition:"all .15s",bg:i?z.accent:"transparent",color:i?"white":z.text3,border:"1px solid",borderColor:i?z.accent:z.border,_hover:{borderColor:z.accentLight,color:i?"white":z.text2},children:r.label},r.key)})})}function gce({value:e,onChange:t,placeholder:n}){return s.jsxs(ae,{position:"relative",my:2,children:[s.jsx(Ge,{icon:Ble,style:{position:"absolute",left:10,top:"50%",transform:"translateY(-50%)",color:z.text3,fontSize:"0.65rem"}}),s.jsx(ae,{as:"input",value:e,onChange:r=>t(r.target.value),placeholder:n,w:"100%",bg:z.bg,border:"1px solid",borderColor:z.border,borderRadius:"8px",color:z.text,fontSize:"0.7rem",py:1.5,pl:"26px",pr:2,outline:"none"})]})}function ah({children:e}){return s.jsx(ae,{border:"1px dashed",borderColor:z.border,borderRadius:"10px",p:2.5,mt:2,children:s.jsx(K,{color:z.text3,fontSize:"0.64rem",fontStyle:"italic",children:e})})}function vce({isOn:e,onToggle:t}){return s.jsx(ae,{as:"button",type:"button",onClick:t,w:"34px",h:"20px",borderRadius:"full",bg:e?z.accent:z.border,position:"relative",cursor:"pointer",transition:"background .2s",flexShrink:0,children:s.jsx(ae,{position:"absolute",top:"2px",left:e?"16px":"2px",w:"16px",h:"16px",borderRadius:"full",bg:"white",transition:"left .2s"})})}function yce(){const[e,t]=m.useState(!0);return s.jsxs(Bt,{children:[s.jsx(En,{title:"Bonjour, Admin",subtitle:"Vue d'ensemble"}),s.jsxs(jn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(rt,{icon:e7,value:312,label:"Total commandes",color:z.accentLight}),s.jsx(rt,{icon:cd,value:8,label:"En attente",color:z.warning}),s.jsx(rt,{icon:YE,value:5,label:"En route",color:z.info}),s.jsx(rt,{icon:Na,value:299,label:"Terminées",color:z.success}),s.jsx(rt,{icon:Nx,value:184,label:"Clients",color:z.accentLight}),s.jsx(rt,{icon:XE,value:6,label:"Livreurs",color:z.secondary})]}),s.jsxs(Xe,{mb:0,children:[s.jsxs(It,{children:[s.jsxs(J,{children:[s.jsx(n7,{icon:Mx,color:z.secondary}),"Notifications Telegram"]}),s.jsx($e,{tone:e?"outlineDanger":"accent",icon:e?t7:QE,onClick:()=>t(n=>!n),children:e?"Délier":"Lier Telegram"})]}),s.jsx(J,{variant:"muted",size:"0.68rem",children:e?"Compte Telegram lié — alertes actives.":"Aucun compte lié — cliquez pour connecter."})]})]})}const fk=[{id:"#1042",client:"client_marie · 12 rue des Lilas",extra:"il y a 4 min",tone:"warning",label:"En attente",amount:"46,00 €"},{id:"#1041",client:"client_paul · Livreur: lucas_d",extra:"Net après parrainage",tone:"info",label:"En route",amount:"33,00 €"},{id:"#1040",client:"client_lea · 8 avenue Foch",extra:"en attente d’assignation",tone:"accent",label:"Livreur arrivé",amount:"58,50 €"}],pk=[{id:"#1038",client:"client_sam · 3 rue Victor Hugo",extra:"Terminée il y a 1 h",tone:"info",label:"Livrée",amount:"27,00 €"},{id:"#1036",client:"client_ana · 21 bd Voltaire",extra:"Terminée hier",tone:"info",label:"Livrée",amount:"41,00 €"},{id:"#1030",client:"client_marie · 5 rue de Rivoli",extra:"Terminée il y a 3 j",tone:"info",label:"Livrée",amount:"22,00 €"}],mk=[{id:"#1029",client:"client_theo · adresse introuvable",extra:"Annulée par le livreur",tone:"warning",label:"Annulée",amount:"19,00 €"}],hk={warning:z.warning,info:z.info,accent:z.accentLight};function gk({o:e,isOpen:t,onClick:n,children:r}){return s.jsxs(Xe,{active:t,onClick:n,children:[s.jsxs(It,{children:[s.jsx(J,{mono:!0,children:e.id}),s.jsx("span",{style:{background:`${hk[e.tone]}26`,color:hk[e.tone],padding:"2px 9px",borderRadius:999,fontWeight:800,fontSize:"0.62rem"},children:e.label})]}),s.jsx(J,{variant:"secondary",size:"0.7rem",children:e.client}),s.jsxs(It,{children:[s.jsx(J,{variant:"muted",size:"0.65rem",children:e.extra}),s.jsx(J,{variant:"primary",size:"0.75rem",children:e.amount})]}),r]})}function bce(){const[e,t]=m.useState("#1040"),[n,r]=m.useState(null),[i,o]=m.useState(""),a=n==="approuvees"?pk:n==="annulees"?mk:[],l=m.useMemo(()=>a.filter(u=>u.client.toLowerCase().includes(i.toLowerCase())),[a,i]),c=u=>{r(d=>d===u?null:u),o("")};return s.jsxs(Bt,{children:[s.jsxs(It,{children:[s.jsx($e,{tone:"outline",icon:mce,children:"Actualiser"}),s.jsx($e,{tone:"outline",icon:fce,children:"Export CSV"})]}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:10,marginBottom:6},children:[s.jsxs("div",{onClick:()=>c("approuvees"),style:{cursor:"pointer",flex:1,textAlign:"center",padding:"6px 4px",borderRadius:999,fontSize:"0.66rem",fontWeight:700,border:`1px solid ${n==="approuvees"?z.success:z.border}`,background:n==="approuvees"?`${z.success}22`:"transparent",color:n==="approuvees"?z.success:z.text3},children:["Approuvées (",pk.length,")"]}),s.jsxs("div",{onClick:()=>c("annulees"),style:{cursor:"pointer",flex:1,textAlign:"center",padding:"6px 4px",borderRadius:999,fontSize:"0.66rem",fontWeight:700,border:`1px solid ${n==="annulees"?z.danger:z.border}`,background:n==="annulees"?`${z.danger}22`:"transparent",color:n==="annulees"?z.danger:z.text3},children:["Annulées (",mk.length,")"]})]}),n&&s.jsxs("div",{style:{marginBottom:10},children:[s.jsx(gce,{value:i,onChange:o,placeholder:"Rechercher par username..."}),s.jsxs(J,{variant:"muted",size:"0.62rem",children:[l.length," résultat",l.length>1?"s":""]}),l.map(u=>s.jsx(gk,{o:u,isOpen:!1,onClick:()=>{}},u.id)),s.jsx("div",{style:{borderTop:`1px solid ${z.border}`,margin:"10px 0"}})]}),s.jsxs(J,{size:"0.78rem",variant:"primary",children:["Commandes actives (",fk.length,")"]}),s.jsx("div",{style:{marginTop:8},children:fk.map(u=>{const d=e===u.id;return s.jsx(gk,{o:u,isOpen:d,onClick:()=>t(d?null:u.id),children:d&&s.jsxs("div",{style:{marginTop:10,paddingTop:10,borderTop:`1px solid ${z.border}`,display:"flex",gap:6,flexWrap:"wrap"},children:[s.jsx($e,{tone:"accent",icon:Rx,children:"Assigner livreur"}),s.jsx($e,{tone:"outline",icon:hy,children:"Passer en route"}),s.jsx($e,{tone:"outline",icon:lce,children:"Proposer adresse"})]})},u.id)})})]})}const vk=[{name:"lucas_d",status:"busy",queue:1,today:14,total:512,distance:"1,8 km",eta:"6 min"},{name:"emma_l",status:"available",queue:0,today:9,total:340,distance:"0,6 km",eta:"2 min"},{name:"yanis_b",status:"offline",queue:0,today:5,total:128,distance:"—",eta:"—"}],as={available:z.success,busy:z.warning,offline:z.text3},xce={available:"Disponible",busy:"Occupé",offline:"Hors ligne"};function Sce(){const[e,t]=m.useState("lucas_d"),n=vk.find(r=>r.name===e);return s.jsxs(Bt,{children:[s.jsxs(jn,{columns:3,spacing:2,mb:2.5,children:[s.jsx(rt,{icon:oh,value:1,label:"Dispo",color:z.success}),s.jsx(rt,{icon:cd,value:1,label:"Occupés",color:z.warning}),s.jsx(rt,{icon:HE,value:1,label:"Hors ligne",color:z.text3})]}),s.jsxs(Xe,{children:[s.jsx("div",{style:{height:110,borderRadius:8,position:"relative",backgroundImage:"linear-gradient(135deg,#161022 25%,#1c1330 25%,#1c1330 50%,#161022 50%,#161022 75%,#1c1330 75%)",backgroundSize:"18px 18px",marginBottom:6},children:s.jsxs("span",{style:{position:"absolute",top:8,left:8,background:`${as[n.status]}26`,color:as[n.status],fontSize:"0.62rem",fontWeight:800,padding:"3px 9px",borderRadius:999},children:[s.jsx(wl,{color:as[n.status],size:"7px"}),n.name," — ",n.distance," · ",n.eta]})}),s.jsx(J,{variant:"muted",size:"0.62rem",children:"Cliquez un livreur ci-dessous pour suivre son trajet en direct"})]}),vk.map(r=>{const i=r.name===e;return s.jsxs(Xe,{active:i,onClick:()=>t(r.name),children:[s.jsxs(It,{children:[s.jsxs(J,{children:[s.jsx(wl,{color:as[r.status]}),r.name]}),s.jsx("span",{style:{background:`${as[r.status]}26`,color:as[r.status],fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:xce[r.status]})]}),s.jsxs(J,{variant:"muted",size:"0.62rem",children:[r.queue," en attente · ",r.today," aujourd'hui · ",r.total," total"]}),i&&s.jsxs("div",{style:{marginTop:8,display:"flex",gap:6},children:[s.jsx($e,{tone:"outline",icon:Kp,children:"Avis"}),s.jsx($e,{tone:r.status!=="offline"?"accent":"outline",icon:Ox,children:r.status!=="offline"?"Suivre l'itinéraire":"Indisponible"})]})]},r.name)})]})}const wce=[{label:"1u",price:"12€",active:!0},{label:"3u",price:"30€",active:!0},{label:"5u",price:"45€",active:!1}];function kce(){const[e,t]=m.useState(wce),n=r=>{t(i=>i.map((o,a)=>a===r?{...o,active:!o.active}:o))};return s.jsxs(Bt,{children:[s.jsx(En,{title:"Produits (48)",action:s.jsx($e,{tone:"accent",icon:Dx,children:"Créer"})}),s.jsxs(Xe,{children:[s.jsxs(It,{children:[s.jsx(J,{variant:"primary",size:"0.82rem",children:"Pack Découverte"}),s.jsx("span",{style:{background:`${z.accentLight}26`,color:z.accentLight,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:"Premium"})]}),s.jsxs(J,{variant:"muted",size:"0.65rem",children:[s.jsx(Ge,{icon:Qle,style:{marginRight:4}}),"3 images ·"," ",s.jsx(Ge,{icon:qle,style:{marginRight:4}}),"1 vidéo · Stock: 24 u"]}),s.jsx(J,{variant:"muted",size:"0.66rem",children:"Cliquez un tarif pour l'activer / le désactiver"}),s.jsx("div",{style:{display:"flex",gap:6,marginTop:6,flexWrap:"wrap"},children:e.map((r,i)=>s.jsxs("div",{onClick:()=>n(i),style:{cursor:"pointer",display:"flex",alignItems:"center",gap:5,padding:"4px 9px",borderRadius:8,border:`1px solid ${z.border}`,opacity:r.active?1:.5,textDecoration:r.active?"none":"line-through"},children:[s.jsx(Ge,{icon:r.active?tce:Yle,style:{color:r.active?z.success:z.danger,fontSize:"0.7rem"}}),s.jsxs("span",{style:{color:z.text,fontSize:"0.72rem"},children:[r.label," = ",r.price]})]},r.label))}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:10},children:[s.jsx($e,{tone:"outline",icon:nce,children:"Modifier"}),s.jsx($e,{tone:"outlineDanger",icon:KE,children:"Supprimer"})]})]}),s.jsxs(Xe,{mb:0,children:[s.jsxs(It,{children:[s.jsx(J,{variant:"primary",size:"0.82rem",children:"Édition Limitée"}),s.jsx("span",{style:{background:`${z.warning}26`,color:z.warning,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:"À venir"})]}),s.jsx(J,{variant:"muted",size:"0.65rem",children:"Stock: 0 u — masqué du catalogue tant que le stock est vide"})]})]})}const Cce=[{id:"a",name:"Fleurs",color:"#10b981"},{id:"b",name:"Résines",color:"#9333ea"},{id:"c",name:"Comestibles",color:"#3dc2f7",soon:!0}];function jce(){const[e,t]=m.useState(Cce),n=(r,i)=>{const o=r+i;o<0||o>=e.length||t(a=>{const l=[...a];return[l[r],l[o]]=[l[o],l[r]],l})};return s.jsxs(Bt,{children:[s.jsx(En,{title:"Catégories",action:s.jsx($e,{tone:"accent",icon:Dx,children:"Ajouter"})}),e.map((r,i)=>s.jsx(Xe,{children:s.jsxs(It,{children:[s.jsxs(J,{children:[s.jsx(wl,{color:r.color}),r.name,r.soon&&s.jsx("span",{style:{marginLeft:8,background:`${z.warning}26`,color:z.warning,fontSize:"0.58rem",fontWeight:800,padding:"2px 7px",borderRadius:999},children:"Prochainement"})]}),s.jsxs("div",{style:{display:"flex",gap:4},children:[s.jsx("button",{onClick:()=>n(i,-1),disabled:i===0,style:{background:"transparent",border:"none",cursor:i===0?"default":"pointer",color:i===0?z.border:z.text2,padding:4},"aria-label":"Monter",children:s.jsx(Ge,{icon:qE,style:{fontSize:"0.7rem"}})}),s.jsx("button",{onClick:()=>n(i,1),disabled:i===e.length-1,style:{background:"transparent",border:"none",cursor:i===e.length-1?"default":"pointer",color:i===e.length-1?z.border:z.text2,padding:4},"aria-label":"Descendre",children:s.jsx(Ge,{icon:JE,style:{fontSize:"0.7rem"}})})]})]})},r.id)),s.jsx(J,{variant:"muted",size:"0.62rem",children:"Essayez les flèches ↑ / ↓ pour réordonner"})]})}function tc({title:e,onReset:t,since:n,children:r}){return s.jsxs(Xe,{children:[s.jsxs(It,{children:[s.jsx(J,{variant:"secondary",size:"0.72rem",children:e}),t&&s.jsx($e,{tone:"outlineDanger",icon:qp,onClick:t,children:"Réinitialiser"})]}),n&&s.jsxs(J,{variant:"muted",size:"0.58rem",children:["Depuis le ",n]}),s.jsx("div",{style:{marginTop:8},children:r})]})}function Xo({label:e,value:t,pct:n,color:r,highlight:i}){return s.jsxs("div",{style:{marginBottom:6},children:[s.jsxs(It,{children:[s.jsxs(J,{variant:i?"primary":"muted",size:"0.64rem",children:[i&&s.jsx(Ge,{icon:Kle,style:{color:z.warning,marginRight:4}}),e]}),s.jsx(J,{variant:i?"primary":"muted",size:"0.64rem",children:t})]}),s.jsx(hce,{value:n,color:i?z.warning:r})]})}const ss=["Mai 2026","Juin 2026","Juillet 2026","Août 2026"],Pce=[{day:"02/08",orders:14,revenue:"312€",best:!1},{day:"01/08",orders:22,revenue:"498€",best:!0},{day:"31/07",orders:9,revenue:"201€",best:!1}],_ce=[{key:"quantite",label:"Quantité"},{key:"commandes",label:"Commandes"},{key:"revenus",label:"Revenus"}],Tce={quantite:[{name:"Pack Découverte",value:210,display:"210"},{name:"Édition Standard",value:140,display:"140"},{name:"Format Duo",value:96,display:"96"}],commandes:[{name:"Pack Découverte",value:86,display:"86"},{name:"Édition Standard",value:54,display:"54"},{name:"Format Duo",value:41,display:"41"}],revenus:[{name:"Pack Découverte",value:1032,display:"1032€"},{name:"Édition Standard",value:648,display:"648€"},{name:"Format Duo",value:492,display:"492€"}]},Y0=[{label:"10h",value:4},{label:"12h",value:18},{label:"14h",value:9},{label:"18h",value:22},{label:"20h",value:31},{label:"22h",value:12}],Q0=[{label:"Lun",value:32},{label:"Mar",value:28},{label:"Mer",value:35},{label:"Jeu",value:41},{label:"Ven",value:58},{label:"Sam",value:71},{label:"Dim",value:47}],yk=[{label:"1g",value:40},{label:"3.5g",value:86},{label:"5g",value:22},{label:"10g",value:12}];function Ece(){const[e,t]=m.useState(ss.length-1),[n,r]=m.useState("revenus"),i=m.useMemo(()=>[...Tce[n]].sort((f,p)=>p.value-f.value),[n]),o=i[0].value,a=Math.max(...Y0.map(f=>f.value)),l=Y0.reduce((f,p)=>p.value>f.value?p:f),c=Math.max(...Q0.map(f=>f.value)),u=Q0.reduce((f,p)=>p.value>f.value?p:f),d=Math.max(...yk.map(f=>f.value));return s.jsxs(Bt,{children:[s.jsx(En,{title:"Statistiques",subtitle:"Activité globale & produits"}),s.jsxs("div",{style:{maxHeight:560,overflowY:"auto",paddingRight:2},children:[s.jsxs(jn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(rt,{icon:Ule,value:312,label:"Commandes totales",color:z.accentLight}),s.jsx(rt,{icon:Ole,value:"6,4k€",label:"Revenus (terminées)",color:z.success}),s.jsx(rt,{icon:cd,value:"10,4",label:"Moy. commandes/jour",color:z.info}),s.jsx(rt,{icon:uk,value:"Samedi",label:"Jour de pointe",color:z.warning})]}),s.jsxs(Xe,{children:[s.jsx(J,{variant:"secondary",size:"0.72rem",children:"Activité du jour"}),s.jsxs("div",{style:{display:"flex",gap:10,margin:"6px 0 8px"},children:[s.jsx(J,{variant:"muted",size:"0.6rem",children:"18 commandes"}),s.jsx(J,{variant:"muted",size:"0.6rem",children:"420g vendus"}),s.jsx(J,{variant:"muted",size:"0.6rem",children:"312€"})]}),s.jsx(Xo,{label:"Fleurs — Pack Découverte",value:"86 · 1032€",pct:90,color:z.accent}),s.jsx(Xo,{label:"Résines — Format Duo",value:"41 · 492€",pct:45,color:z.info})]}),s.jsxs(Xe,{children:[s.jsxs(It,{children:[s.jsx("button",{onClick:()=>t(f=>Math.max(0,f-1)),disabled:e===0,style:{background:"none",border:"none",cursor:e===0?"default":"pointer",color:e===0?z.border:z.text2},children:s.jsx(Ge,{icon:ace})}),s.jsx(J,{variant:"primary",size:"0.72rem",children:ss[e]}),s.jsx("button",{onClick:()=>t(f=>Math.min(ss.length-1,f+1)),disabled:e===ss.length-1,style:{background:"none",border:"none",cursor:e===ss.length-1?"default":"pointer",color:e===ss.length-1?z.border:z.text2},children:s.jsx(Ge,{icon:Gle})})]}),s.jsx(J,{variant:"muted",size:"0.6rem",children:"Historique mensuel — cliquez les flèches"}),s.jsx("div",{style:{marginTop:8},children:Pce.map(f=>s.jsx(Xo,{label:f.day,value:`${f.orders} cmd · ${f.revenue}`,pct:f.orders/22*100,color:z.accent,highlight:f.best},f.day))})]}),s.jsx(tc,{title:"30 derniers jours — commandes",onReset:()=>{},since:"15/07/2026",children:s.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:3,height:50},children:[4,8,6,10,7,12,9,14,6,11].map((f,p)=>s.jsx("div",{style:{flex:1,height:`${f/14*100}%`,background:z.accent,borderRadius:2}},p))})}),s.jsxs(tc,{title:"Revenus par jour (30j)",onReset:()=>{},since:"15/07/2026",children:[s.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:3,height:50,marginBottom:6},children:[120,240,180,300,210,360,260,410,190,330].map((f,p)=>s.jsx("div",{style:{flex:1,height:`${f/410*100}%`,background:z.success,borderRadius:2}},p))}),s.jsxs(J,{variant:"muted",size:"0.6rem",children:[s.jsx(Ge,{icon:uk,style:{color:z.warning,marginRight:4}}),"Meilleure journée : 01/08 — 498€"]})]}),s.jsxs(tc,{title:"Heures d'affluence",onReset:()=>{},since:"15/07/2026",children:[Y0.map(f=>s.jsx(Xo,{label:f.label,value:String(f.value),pct:f.value/a*100,color:z.info,highlight:f.label===l.label},f.label)),s.jsxs(J,{variant:"muted",size:"0.6rem",children:["Heure de pointe : ",l.label," (",l.value," commandes)"]})]}),s.jsxs(tc,{title:"Jours d'affluence",onReset:()=>{},since:"15/07/2026",children:[Q0.map(f=>s.jsx(Xo,{label:f.label,value:String(f.value),pct:f.value/c*100,color:z.accent,highlight:f.label===u.label},f.label)),s.jsxs(J,{variant:"muted",size:"0.6rem",children:["Pic d'activité : ",u.label]})]}),s.jsx(tc,{title:"Doses populaires — Pack Découverte",onReset:()=>{},since:"15/07/2026",children:yk.map(f=>s.jsx(Xo,{label:f.label,value:String(f.value),pct:f.value/d*100,color:z.secondary,highlight:f.value===d},f.label))}),s.jsxs(Xe,{mb:0,children:[s.jsxs(It,{children:[s.jsx(J,{variant:"secondary",size:"0.72rem",children:"Top produits"}),s.jsx($e,{tone:"outlineDanger",icon:qp,onClick:()=>{},children:"Réinitialiser"})]}),s.jsx("div",{style:{marginTop:8},children:s.jsx(Fx,{tabs:_ce,active:n,onChange:r})}),i.map((f,p)=>s.jsx(Xo,{label:f.name,value:f.display,pct:f.value/o*100,color:z.accent,highlight:p===0},f.name)),s.jsxs(J,{variant:"muted",size:"0.6rem",children:["Moins vendu : ",i[i.length-1].name]})]})]})]})}const bk=[{name:"client_marie",role:"clients",icon:Nx,tone:z.info,detail:"Cmd: 12 · Points: 340 · Parrain: +8€"},{name:"lucas_d",role:"livreurs",icon:ZE,tone:z.success,detail:"512 livraisons · connecté aujourd’hui"},{name:"admin_yas",role:"admins",icon:ih,tone:z.accentLight,detail:"Accès complet à la plateforme"}],Ace=[{key:"tous",label:"Tous",icon:XE,count:3},{key:"clients",label:"Clients",icon:Nx,count:1},{key:"livreurs",label:"Livreurs",icon:ZE,count:1},{key:"admins",label:"Admins",icon:ih,count:1}];function $ce(){const[e,t]=m.useState("tous"),n=e==="tous"?bk:bk.filter(r=>r.role===e);return s.jsxs(Bt,{children:[s.jsx(jn,{columns:4,spacing:1.5,mb:2.5,children:Ace.map(r=>{const i=r.key===e;return s.jsxs("div",{onClick:()=>t(r.key),style:{cursor:"pointer",textAlign:"center",padding:"8px 2px",borderRadius:10,border:`1px solid ${i?z.accent:z.border}`,background:i?`${z.accent}22`:z.card},children:[s.jsx(Ge,{icon:r.icon,style:{color:i?z.accentLight:z.text3,fontSize:"0.75rem"}}),s.jsx("div",{style:{color:z.text,fontSize:"0.72rem",fontWeight:800,marginTop:4},children:r.count}),s.jsx("div",{style:{color:z.text3,fontSize:"0.55rem"},children:r.label})]},r.key)})}),n.map(r=>s.jsxs(Xe,{children:[s.jsxs(It,{children:[s.jsxs(J,{children:[s.jsx(Ge,{icon:r.icon,style:{color:r.tone,marginRight:6,fontSize:"0.72rem"}}),r.name]}),s.jsx("span",{style:{background:`${r.tone}26`,color:r.tone,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999,textTransform:"capitalize"},children:r.role==="clients"?"Client":r.role==="livreurs"?"Livreur":"Admin"})]}),s.jsx(J,{variant:"muted",size:"0.65rem",children:r.detail})]},r.name))]})}const xk=[{id:"perso",icon:dk,title:"Personnalisation",body:"Nom du shop affiché dans l’app · dégradé de couleur du titre (2 couleurs, aperçu en direct)."},{id:"amendes",icon:GE,title:"Amendes",body:"Barème par nombre d’annulations : 0 → 20€, 1 → 50€, 2 → 100€, 3 → 150€. Score affichable au client ou non.",hasSwitch:!0},{id:"parrainage",icon:Zle,title:"Parrainage",body:"Active le solde de parrainage, utilisable directement au moment du paiement par le filleul.",hasSwitch:!0},{id:"points",icon:Kp,title:"Système de points",body:"Créez vos propres types de points (nom + couleur), chacun avec son propre barème €→points.",hasSwitch:!0},{id:"attribution",icon:ece,title:"Attribution catégories → points",body:"Chaque catégorie de produit peut être reliée à un type de points précis, ou à aucun."},{id:"baremes",icon:Kp,title:"Barème — Points Fidélité",body:"Paliers Min € / Max € / Points : ex. 0–20€ = 5 pts, 20–50€ = 15 pts, 50€+ = 40 pts."},{id:"recompense",icon:Dle,title:"Récompenses par palier",body:"Seuil de points → produit offert ou à -50%. Récapitulatif généré automatiquement.",hasSwitch:!0},{id:"horaires",icon:hy,title:"Horaires de livraison",body:"Lundi → Vendredi : 11h00–22h30 · Samedi : 12h00–23h00 · Dimanche : fermé."},{id:"zones",icon:Fle,title:"Zones de livraison",body:"3 zones actives · minimum de commande et liste de codes postaux par zone, ajout en masse."},{id:"crypto",icon:oce,title:"Paiement crypto",body:"BTC, ETH, LTC, USDT acceptés (NowPayments). Clé API et secret IPN masqués.",hasSwitch:!0},{id:"telegram",icon:Hle,title:"Notifications Telegram",body:"Bot configuré — @votre_bot · authentification à deux facteurs activée.",hasSwitch:!0},{id:"mode-livraison",icon:hy,title:"Mode de livraison",body:"« Par catégorie » : chaque livreur ne reçoit que les commandes des catégories qui lui sont assignées."},{id:"couleurs",icon:dk,title:"Couleurs de l'interface",body:"Palette séparée pour l’espace admin et pour l’app client — 5 couleurs, restaurables en un clic."}];function zce(){const[e,t]=m.useState("crypto"),[n,r]=m.useState(!0),[i,o]=m.useState(!0);return s.jsxs(Bt,{children:[s.jsx(En,{title:"Paramètres",subtitle:`${xk.length} sections — cliquez pour ouvrir`}),s.jsx("div",{style:{maxHeight:480,overflowY:"auto",paddingRight:2},children:xk.map(a=>{const l=e===a.id,c=a.id==="crypto"?n:a.id==="telegram"?i:!0,u=a.id==="crypto"?r:o;return s.jsxs(Xe,{onClick:()=>t(l?null:a.id),children:[s.jsxs(It,{children:[s.jsxs(J,{size:"0.72rem",children:[s.jsx(Ge,{icon:a.icon,style:{color:z.accentLight,marginRight:8,fontSize:"0.68rem"}}),a.title]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[a.hasSwitch&&(a.id==="crypto"||a.id==="telegram")&&s.jsx("span",{onClick:d=>d.stopPropagation(),children:s.jsx(vce,{isOn:c,onToggle:()=>u(d=>!d)})}),a.hasSwitch&&a.id!=="crypto"&&a.id!=="telegram"&&s.jsx(Ge,{icon:Mx,style:{color:z.success,fontSize:"0.55rem"}}),s.jsx(Ge,{icon:l?qE:JE,style:{color:z.text3,fontSize:"0.6rem"}})]})]}),l&&s.jsx("div",{style:{marginTop:8,paddingTop:8,borderTop:`1px solid ${z.border}`},children:s.jsx(J,{variant:"muted",size:"0.66rem",children:a.body})})]},a.id)})})]})}const Ice=[{id:"1",driver:"lucas_d",message:"Guet-apens",time:"03/08/2026, 14:32",active:!0},{id:"2",driver:"emma_l",message:"Contrôle de police",time:"02/08/2026, 19:05",active:!1}];function Rce(){const[e,t]=m.useState(Ice),n=r=>{t(i=>i.map(o=>o.id===r?{...o,active:!1}:o))};return s.jsxs(Bt,{children:[s.jsx(En,{title:"Alertes",subtitle:"Cliquez « Résoudre » pour tester"}),e.map(r=>s.jsxs(Xe,{children:[s.jsxs(It,{children:[s.jsxs(J,{variant:r.active?"danger":"secondary",children:[s.jsx(Ge,{icon:rh,style:{color:r.active?z.danger:z.text3,marginRight:6,fontSize:"0.72rem"}}),r.driver]}),s.jsx("span",{style:{background:r.active?`${z.danger}26`:`${z.success}26`,color:r.active?z.danger:z.success,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:r.active?"Active":"Terminée"})]}),r.active&&s.jsxs(J,{variant:"danger",size:"0.7rem",children:['"',r.message,'"']}),s.jsxs(It,{children:[s.jsx(J,{variant:"muted",size:"0.62rem",children:r.time}),r.active&&s.jsx($e,{tone:"success",icon:Na,onClick:()=>n(r.id),children:"Résoudre"})]})]},r.id))]})}const Mce=[{id:"1",wrong:"10 rue de la paix",right:"10 Rue de la Paix, 75001 Paris"}];function Lce(){const[e,t]=m.useState(Mce),[n,r]=m.useState(!1),[i,o]=m.useState(""),[a,l]=m.useState(""),c=()=>{!i.trim()||!a.trim()||(t(u=>[...u,{id:String(u.length+1),wrong:i,right:a}]),o(""),l(""),r(!1))};return s.jsxs(Bt,{children:[s.jsx(En,{title:"Corrections d'adresses",action:s.jsx($e,{tone:"accent",icon:Dx,onClick:()=>r(u=>!u),children:n?"Fermer":"Ajouter"})}),n&&s.jsxs(Xe,{children:[s.jsx("input",{placeholder:"Adresse invalide (ex: 10 rue de la paix)",value:i,onChange:u=>o(u.target.value),style:{width:"100%",background:z.bg,border:`1px solid ${z.border}`,borderRadius:8,color:z.text,fontSize:"0.7rem",padding:"6px 8px",marginBottom:6,outline:"none"}}),s.jsx("input",{placeholder:"Adresse correcte (ex: 10 Rue de la Paix, 75001 Paris)",value:a,onChange:u=>l(u.target.value),style:{width:"100%",background:z.bg,border:`1px solid ${z.border}`,borderRadius:8,color:z.text,fontSize:"0.7rem",padding:"6px 8px",marginBottom:8,outline:"none"}}),s.jsx($e,{tone:"accent",onClick:c,children:"Ajouter la correction"})]}),e.map(u=>s.jsxs(Xe,{children:[s.jsx(J,{variant:"danger",size:"0.72rem",children:u.wrong}),s.jsx("div",{style:{margin:"3px 0"},children:s.jsx(Ge,{icon:dce,style:{color:z.text3,fontSize:"0.62rem"}})}),s.jsx(J,{variant:"success",size:"0.72rem",children:u.right})]},u.id))]})}function Nce(){const[e,t]=m.useState(!1);return s.jsxs(Bt,{children:[s.jsx(En,{title:"Cabine — Nadia",subtitle:"Suivi des opérations"}),s.jsxs(jn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(rt,{icon:e7,value:11,label:"Commandes actives",color:z.info}),s.jsx(rt,{icon:YE,value:4,label:"En route",color:z.warning}),s.jsx(rt,{icon:cd,value:3,label:"En attente",color:z.accentLight}),s.jsx(rt,{icon:Rx,value:4,label:"Livreurs dispo",color:z.success}),s.jsx(rt,{icon:Lx,value:2,label:"Livreurs occupés",color:z.warning}),s.jsx(rt,{icon:sce,value:299,label:"Total terminées",color:z.success})]}),s.jsx(Xe,{mb:0,children:s.jsxs(It,{children:[s.jsxs(J,{children:[s.jsx(n7,{icon:Mx,color:z.secondary}),"Notifications Telegram"]}),s.jsx($e,{tone:e?"outlineDanger":"accent",icon:e?t7:QE,onClick:()=>t(n=>!n),children:e?"Délier":"Lier Telegram"})]})})]})}const Dce=[{id:"#1042",client:"client_marie",address:"12 rue des Lilas",total:"46,00 €",label:"En attente",tone:z.warning},{id:"#1040",client:"client_lea",address:"8 avenue Foch",total:"58,50 €",label:"Livreur arrivé",tone:z.accentLight}];function Oce(){const[e,t]=m.useState("#1042");return s.jsxs(Bt,{children:[s.jsx(En,{title:"Commandes actives",subtitle:"Cliquez une commande"}),Dce.map(n=>{const r=e===n.id;return s.jsxs(Xe,{active:r,onClick:()=>t(r?null:n.id),children:[s.jsxs(It,{children:[s.jsx(J,{mono:!0,children:n.id}),s.jsx("span",{style:{background:`${n.tone}26`,color:n.tone,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:n.label})]}),s.jsxs(J,{variant:"secondary",size:"0.7rem",children:[n.client," · ",n.address]}),s.jsx(J,{variant:"primary",size:"0.75rem",children:n.total}),r&&s.jsxs("div",{style:{marginTop:10,paddingTop:10,borderTop:`1px solid ${z.border}`,display:"flex",gap:6,flexWrap:"wrap"},children:[s.jsx($e,{tone:"accent",icon:Jle,children:"Le livreur est là"}),s.jsx($e,{tone:"outline",icon:Rx,children:"Assigner livreur"}),s.jsx($e,{tone:"outline",icon:oh,children:"Proposer adresse"}),s.jsx($e,{tone:"outlineDanger",icon:KE,children:"Supprimer"})]})]},n.id)}),s.jsx(ah,{children:"Contrairement à l'espace admin, la cabine ne peut pas modifier le contenu d'une commande — seulement la faire avancer ou la supprimer."})]})}const Fce=[{name:"lucas_d",status:"busy",queue:1,total:512},{name:"emma_l",status:"available",queue:0,total:340}],Z0={available:z.success,busy:z.warning,offline:z.text3},Bce={available:"Disponible",busy:"Occupé",offline:"Hors ligne"};function Vce(){const[e,t]=m.useState("lucas_d");return s.jsxs(Bt,{children:[s.jsxs(jn,{columns:3,spacing:2,mb:2.5,children:[s.jsx(rt,{icon:oh,value:1,label:"Dispo",color:z.success}),s.jsx(rt,{icon:Lx,value:1,label:"Occupés",color:z.warning}),s.jsx(rt,{icon:HE,value:0,label:"Offline",color:z.text3})]}),Fce.map(n=>{const r=e===n.name;return s.jsxs(Xe,{active:r,children:[s.jsxs(It,{children:[s.jsxs(J,{children:[s.jsx(wl,{color:Z0[n.status]}),n.name]}),s.jsx("span",{style:{background:`${Z0[n.status]}26`,color:Z0[n.status],fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:Bce[n.status]})]}),s.jsxs(J,{variant:"muted",size:"0.62rem",children:["Queue: ",n.queue," · Total: ",n.total]}),s.jsx("div",{style:{marginTop:8},children:s.jsx($e,{tone:r?"accent":"outline",icon:Ox,onClick:()=>t(r?null:n.name),children:r?"Arrêter le suivi":"Suivre"})})]},n.name)}),s.jsx(ah,{children:"La cabine visualise et suit les livreurs en direct, mais l'assignation d'une commande se fait depuis l'écran Commandes."})]})}const Sk=[{id:"1",driver:"lucas_d",message:"Accès bloqué, portail fermé",time:"14:32",active:!0},{id:"2",driver:"emma_l",message:"Client injoignable",time:"hier 19:05",active:!1}];function Wce(){const[e,t]=m.useState("toutes"),n=e==="toutes"?Sk:Sk.filter(r=>r.active);return s.jsxs(Bt,{children:[s.jsx(En,{title:"Alertes livreurs"}),s.jsx(Fx,{tabs:[{key:"toutes",label:"Toutes"},{key:"actives",label:"Actives"}],active:e,onChange:t}),n.map(r=>s.jsxs(Xe,{children:[s.jsxs(It,{children:[s.jsxs(J,{variant:r.active?"danger":"secondary",children:[s.jsx(Ge,{icon:rh,style:{color:r.active?z.danger:z.text3,marginRight:6,fontSize:"0.72rem"}}),r.driver]}),s.jsx("span",{style:{background:r.active?`${z.danger}26`:`${z.success}26`,color:r.active?z.danger:z.success,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:r.active?"Active":"Terminée"})]}),r.active&&s.jsxs(J,{variant:"danger",size:"0.7rem",children:['"',r.message,'"']}),s.jsx(J,{variant:"muted",size:"0.62rem",children:r.time})]},r.id)),s.jsx(ah,{children:"La résolution des alertes reste réservée à l'espace admin."})]})}function Uce(){const[e,t]=m.useState("35 €"),[n,r]=m.useState(340);return s.jsxs(Bt,{children:[s.jsx(En,{title:"Clients",subtitle:"Réinitialisations rapides"}),s.jsxs(Xe,{mb:0,children:[s.jsx(J,{variant:"primary",size:"0.82rem",children:"client_marie"}),s.jsx(J,{variant:"muted",size:"0.66rem",children:"Marie D. · 06 12 34 56 78"}),s.jsxs("div",{style:{display:"flex",gap:12,margin:"8px 0"},children:[s.jsx(J,{variant:"danger",size:"0.68rem",children:"Annul.: 2"}),s.jsxs(J,{variant:"secondary",size:"0.68rem",mono:!0,children:["Amende: ",e]}),s.jsxs(J,{variant:"success",size:"0.68rem",mono:!0,children:["Points: ",n]})]}),s.jsxs("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[s.jsx($e,{tone:"outline",icon:qp,onClick:()=>t("0 €"),children:"Reset pénalités"}),s.jsx($e,{tone:"outline",icon:qp,onClick:()=>r(0),children:"Reset points"})]})]}),s.jsx(ah,{children:"Pas de création, modification ni suppression de compte ici — uniquement des remises à zéro ponctuelles."})]})}const J0=["pending","in_progress","arrived","completed"],eg={pending:{label:"En attente",tone:z.info},in_progress:{label:"En cours",tone:z.warning},arrived:{label:"Arrivé",tone:z.accentLight},completed:{label:"Terminée",tone:z.success}},Hce=[{key:"available",label:"Disponible",tone:z.success},{key:"busy",label:"Occupé",tone:z.warning},{key:"offline",label:"Hors ligne",tone:z.text3}];function Gce(){const[e,t]=m.useState("available"),[n,r]=m.useState("in_progress"),i=()=>{const o=J0.indexOf(n);o{const a=e===o.key;return s.jsxs("div",{onClick:()=>t(o.key),style:{cursor:"pointer",display:"flex",alignItems:"center",padding:"5px 10px",borderRadius:999,fontSize:"0.65rem",fontWeight:700,border:`1px solid ${a?o.tone:z.border}`,background:a?`${o.tone}22`:"transparent",color:a?o.tone:z.text3},children:[s.jsx(wl,{color:o.tone,size:"7px"}),o.label]},o.key)})}),s.jsx(Xe,{children:s.jsx("div",{style:{height:96,borderRadius:8,position:"relative",backgroundImage:"linear-gradient(135deg,#161022 25%,#1c1330 25%,#1c1330 50%,#161022 50%,#161022 75%,#1c1330 75%)",backgroundSize:"18px 18px",marginBottom:6},children:s.jsxs("span",{style:{position:"absolute",top:8,left:8,background:`${z.success}26`,color:z.success,fontSize:"0.6rem",fontWeight:800,padding:"3px 9px",borderRadius:999},children:[s.jsx(wl,{color:z.success,size:"7px"}),"GPS actif — 48.85, 2.35"]})})}),s.jsx(J,{variant:"muted",size:"0.66rem",children:"Mes livraisons (1) — cliquez « avancer » pour tester le cycle complet"}),s.jsxs(Xe,{mb:0,children:[s.jsxs(It,{children:[s.jsx(J,{mono:!0,children:"Commande #1041"}),s.jsx("span",{style:{background:`${eg[n].tone}26`,color:eg[n].tone,fontSize:"0.6rem",fontWeight:800,padding:"2px 8px",borderRadius:999},children:eg[n].label})]}),s.jsx(J,{variant:"secondary",size:"0.7rem",children:"client_paul · 12 rue des Lilas"}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:8,flexWrap:"wrap"},children:[s.jsx($e,{tone:"outline",icon:oh,children:"Itinéraire"}),s.jsx($e,{tone:"outline",icon:rce,children:"Appeler"})]}),s.jsxs("div",{style:{marginTop:10,paddingTop:10,borderTop:`1px solid ${z.border}`,display:"flex",gap:6,flexWrap:"wrap"},children:[n==="pending"&&s.jsx($e,{tone:"success",icon:Ox,onClick:i,children:"Démarrer la livraison"}),n==="in_progress"&&s.jsx($e,{tone:"accent",icon:Lx,onClick:i,children:"J'arrive"}),n==="arrived"&&s.jsxs(s.Fragment,{children:[s.jsx($e,{tone:"accent",icon:Na,onClick:i,children:"Terminer"}),s.jsx($e,{tone:"outlineDanger",icon:GE,children:"Annuler"})]}),n==="completed"&&s.jsxs(J,{variant:"success",size:"0.7rem",children:[s.jsx(Ge,{icon:Na,style:{marginRight:6}}),"Livraison terminée"]})]})]})]})}const Yo={police:{title:"Contrôle de police",icon:ih,hint:"Restez calme, coopérez avec les forces de l’ordre. L’équipe est prévenue."},ambush:{title:"Guet-apens",icon:rh,hint:"Éloignez-vous du danger si possible. L’équipe et les secours sont prévenus."}};function Kce(){const[e,t]=m.useState("idle"),[n,r]=m.useState("police");return s.jsxs(Bt,{children:[s.jsx(En,{title:"Alerte",subtitle:"Bouton d'urgence pour les livreurs"}),e==="idle"&&s.jsx($e,{tone:"outlineDanger",icon:rh,onClick:()=>t("pick"),children:"Déclencher alerte police"}),e==="pick"&&s.jsxs(Xe,{mb:0,children:[s.jsx(J,{size:"0.78rem",variant:"primary",children:"Type d'alerte"}),s.jsx(J,{variant:"muted",size:"0.65rem",children:"Sélectionnez la raison de l'alerte."}),s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6,marginTop:8},children:Object.keys(Yo).map(i=>s.jsxs("div",{onClick:()=>{r(i),t("confirm")},style:{cursor:"pointer",display:"flex",alignItems:"center",gap:8,padding:"8px 10px",borderRadius:8,border:`1px solid ${z.border}`},children:[s.jsx(Ge,{icon:Yo[i].icon,style:{color:z.danger,fontSize:"0.8rem"}}),s.jsx("span",{style:{color:z.text,fontSize:"0.74rem"},children:Yo[i].title})]},i))}),s.jsx("div",{style:{marginTop:10},children:s.jsx($e,{tone:"outline",onClick:()=>t("idle"),children:"Annuler"})})]}),e==="confirm"&&s.jsxs(Xe,{mb:0,children:[s.jsxs(J,{size:"0.78rem",variant:"danger",children:[s.jsx(Ge,{icon:Yo[n].icon,style:{marginRight:6}}),"Alerte — ",Yo[n].title]}),s.jsx(J,{variant:"muted",size:"0.66rem",children:Yo[n].hint}),s.jsx(J,{variant:"primary",size:"0.74rem",children:"Confirmez-vous le déclenchement ?"}),s.jsxs("div",{style:{display:"flex",gap:6,marginTop:10},children:[s.jsx($e,{tone:"outline",onClick:()=>t("idle"),children:"Annuler"}),s.jsx($e,{tone:"outlineDanger",onClick:()=>t("sent"),children:"Déclencher"})]})]}),e==="sent"&&s.jsxs(Xe,{mb:0,children:[s.jsx(Ge,{icon:Na,style:{color:z.success,fontSize:"1.4rem",marginBottom:8}}),s.jsx(J,{size:"0.8rem",variant:"success",children:"Alerte envoyée"}),s.jsx(J,{variant:"muted",size:"0.66rem",children:"L'équipe admin a été notifiée immédiatement."}),s.jsx(J,{variant:"secondary",size:"0.66rem",children:Yo[n].hint}),s.jsx("div",{style:{marginTop:10},children:s.jsx($e,{tone:"accent",onClick:()=>t("idle"),children:"Compris"})})]})]})}function wk({value:e}){return s.jsx("span",{children:[1,2,3,4,5].map(t=>s.jsx(Ge,{icon:Kp,style:{color:t<=e?z.warning:z.border,fontSize:"0.7rem",marginRight:2}},t))})}const qce=[{client:"client_marie",order:"#1038",rating:5,comment:"Livraison rapide et sympa, merci !"},{client:"client_theo",order:"#1029",rating:4,comment:"Tout est arrivé nickel."}];function Xce(){return s.jsxs(Bt,{children:[s.jsx(En,{title:"Mes avis"}),s.jsxs(Xe,{children:[s.jsx(J,{size:"1.5rem",variant:"primary",children:"4.7"}),s.jsx("div",{style:{marginTop:4},children:s.jsx(wk,{value:5})}),s.jsx(J,{variant:"muted",size:"0.66rem",children:"38 avis clients"})]}),qce.map(e=>s.jsxs(Xe,{children:[s.jsx(J,{size:"0.74rem",variant:"primary",children:e.client}),s.jsxs(J,{variant:"muted",size:"0.62rem",children:["Commande ",e.order]}),s.jsx("div",{style:{margin:"4px 0"},children:s.jsx(wk,{value:e.rating})}),s.jsxs(J,{variant:"secondary",size:"0.68rem",children:["« ",e.comment," »"]})]},e.order))]})}const Yce={jour:[2,4,3,6,5,8,4],semaine:[18,24,21,27,15,30,22],mois:[80,92,76,101]},Qce={jour:["L","M","M","J","V","S","D"],semaine:["S1","S2","S3","S4","S5","S6","S7"],mois:["Mai","Juin","Juil","Août"]};function Zce(){const[e,t]=m.useState("semaine"),n=Yce[e],r=Qce[e],i=m.useMemo(()=>Math.max(...n),[n]);return s.jsxs(Bt,{children:[s.jsx(En,{title:"Mes performances"}),s.jsxs(jn,{columns:2,spacing:2,mb:2.5,children:[s.jsx(rt,{icon:Vle,value:512,label:"Total livraisons",color:z.accentLight}),s.jsx(rt,{icon:Na,value:489,label:"Complétées",color:z.success}),s.jsx(rt,{icon:cd,value:14,label:"Livraisons du jour",color:z.accentLight}),s.jsx(rt,{icon:ice,value:3,label:"En attente",color:z.info})]}),s.jsxs(Xe,{mb:0,children:[s.jsx(J,{variant:"secondary",size:"0.72rem",children:"Évolution"}),s.jsx("div",{style:{marginTop:8},children:s.jsx(Fx,{tabs:[{key:"jour",label:"Jour"},{key:"semaine",label:"Semaine"},{key:"mois",label:"Mois"}],active:e,onChange:t})}),s.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:6,height:90,marginTop:6},children:n.map((o,a)=>s.jsxs("div",{style:{flex:1,textAlign:"center"},children:[s.jsx("div",{style:{height:`${o/i*70}px`,background:z.accent,borderRadius:4,transition:"height .3s ease"}}),s.jsx("div",{style:{color:z.text3,fontSize:"0.55rem",marginTop:4},children:r[a]})]},a))}),s.jsxs(J,{variant:"muted",size:"0.62rem",children:[n.reduce((o,a)=>o+a,0)," livraisons sur la période"]})]})]})}const Jce=[{id:"admin-dashboard",kicker:"Vue d'ensemble",title:"Toute votre activité en un coup d’œil",lead:"Dès l'ouverture, vous voyez l'essentiel : commandes en attente ou en route, clients et livreurs actifs — sans avoir à chercher l'information.",points:["Chiffres mis à jour en temps réel","Notifications Telegram liées à votre compte","Accès identique sur mobile et sur ordinateur"],mockup:s.jsx(yce,{})},{id:"admin-commandes",kicker:"Suivi opérationnel",title:"Suivez chaque commande, de la validation à la livraison",lead:"Chaque commande apparaît avec son statut, son montant et le livreur assigné. Un menu d'actions par commande permet d'assigner un livreur ou de la finaliser en un geste.",points:["Archives des commandes approuvées et annulées, recherche instantanée","Export CSV pour votre comptabilité","Parrainage et fidélité pris en compte automatiquement dans le total"],mockup:s.jsx(bce,{}),reverse:!0},{id:"admin-livraison",kicker:"Géolocalisation en direct",title:"Localisez vos livreurs en temps réel, sur la carte",lead:"La position de chaque livreur s'affiche en direct, avec la distance et le temps restant estimé. Vue d'ensemble de toute la flotte : disponible, occupée ou hors ligne.",points:["Distance et temps de trajet calculés automatiquement","Avis clients et historique de connexion par livreur",'Notification client en un tap : "le livreur est arrivé"'],mockup:s.jsx(Sce,{})},{id:"admin-produits",kicker:"Catalogue",title:"Un catalogue que vous gérez vous-même",lead:"Ajoutez, modifiez ou retirez un produit en quelques secondes : photos, vidéos, stock, description, et plusieurs tarifs par produit.",points:["Photos et vidéos multiples par produit","Plusieurs paliers de prix, activables indépendamment","Statut « à venir » pour annoncer un produit avant sa mise en vente"],mockup:s.jsx(kce,{}),reverse:!0},{id:"admin-categories",kicker:"Organisation",title:"Organisez votre catalogue comme vous le souhaitez",lead:"Créez vos propres catégories, attribuez-leur une couleur, réordonnez-les en un clic. Une catégorie peut être marquée « prochainement » avant sa mise en ligne.",points:["Couleur personnalisée par catégorie","Réorganisation manuelle de l'ordre d'affichage","Aperçu immédiat du rendu côté client"],mockup:s.jsx(jce,{})},{id:"admin-statistiques",kicker:"Pilotage",title:"Des chiffres clairs pour piloter votre activité",lead:"Chiffre d'affaires, produits les plus vendus, heures et jours d'affluence : tout est visualisé simplement, sans éplucher vos commandes une par une.",points:["Historique mensuel navigable, jour par jour","Classement des meilleurs produits (quantité, commandes ou revenus)","Repérage automatique du jour et de l'heure de pointe"],mockup:s.jsx(Ece,{}),reverse:!0},{id:"admin-utilisateurs",kicker:"Équipe & clients",title:"Clients, livreurs, équipe : tout au même endroit",lead:"Un seul espace pour gérer tous les comptes. Ajustez les points de fidélité, appliquez une pénalité ou consultez l'historique d'un client.",points:["Filtre par rôle et recherche instantanée","Gestion des points de fidélité et du parrainage","Suivi des annulations et de l'historique de connexion"],mockup:s.jsx($ce,{})},{id:"admin-parametres",kicker:"Personnalisation",title:"Une plateforme qui s'adapte à votre activité",lead:"13 sections de réglages : fidélité, parrainage, pénalités, zones et horaires de livraison, paiement crypto, Telegram, couleurs de l’interface... Tout est configurable vous-même.",points:["Zones de livraison par code postal avec minimum de commande","Paiement crypto (NowPayments) et bot Telegram intégrés","Couleurs de l'espace admin et de l'app client personnalisables"],mockup:s.jsx(zce,{}),reverse:!0},{id:"admin-alertes",kicker:"Réactivité",title:"Réagissez immédiatement en cas de problème",lead:"Si un livreur rencontre un souci sur le terrain, l'alerte remonte instantanément — avec son message et l'horodatage — jusqu'à ce qu'elle soit résolue.",points:["Distinction claire entre alerte active et résolue","Historique complet conservé"],mockup:s.jsx(Rce,{})},{id:"admin-adresses",kicker:"Fiabilité livraison",title:"Zéro commande perdue à cause d’une adresse mal saisie",lead:"Quand un client tape une adresse imprécise, corrigez-la une bonne fois pour toutes : les prochaines commandes utiliseront automatiquement la bonne adresse.",points:["Association simple « adresse saisie → adresse correcte »","Moins d’erreurs de livraison, moins d’allers-retours"],mockup:s.jsx(Lce,{}),reverse:!0}],eue=[{id:"cabine-dashboard",kicker:"Opérations du jour",title:"Un espace dédié pour votre équipe en cuisine",lead:"Vos préparateurs voient uniquement ce qui les concerne : commandes en cours, livreurs disponibles — sans chiffre d'affaires ni réglages sensibles.",points:["Aucune donnée financière exposée","Notifications Telegram propres à chaque compte","Rafraîchissement en direct"],mockup:s.jsx(Nce,{})},{id:"cabine-commandes",kicker:"Suivi des commandes",title:"Faire avancer une commande, en toute sécurité",lead:"La cabine assigne un livreur, prévient le client, propose une correction d’adresse — mais ne peut ni modifier ni voir les réglages de la commande.",points:["Actions limitées et guidées, pas de menu complexe","Confirmation demandée avant chaque action sensible","Zéro risque de modification accidentelle"],mockup:s.jsx(Oce,{}),reverse:!0},{id:"cabine-livraison",kicker:"Suivi livreurs",title:"Suivre les livreurs en direct, sans les gérer",lead:"La cabine voit la carte, la disponibilité et la position de chaque livreur pour coordonner la préparation — la gestion des comptes reste réservée à l’admin.",points:["Carte et statuts en temps réel","Suivi d’itinéraire en un clic","Aucun accès à la création ou modification de compte"],mockup:s.jsx(Vce,{})},{id:"cabine-alertes",kicker:"Information",title:"Rester informé, sans pouvoir de décision",lead:"Les alertes remontées par les livreurs sont visibles par la cabine pour garder tout le monde informé — seule l’équipe admin peut les résoudre.",points:['Filtre "Toutes" / "Actives"',"Lecture seule, aucune action destructrice possible"],mockup:s.jsx(Wce,{}),reverse:!0},{id:"cabine-utilisateurs",kicker:"Service client",title:"Un geste commercial, sans accès aux comptes",lead:"Besoin d’annuler une pénalité ou d’offrir des points en guise de geste commercial ? La cabine peut le faire en un clic, sans jamais toucher au reste du compte client.",points:["Reset pénalités et points uniquement","Aucune création, édition ou suppression de compte"],mockup:s.jsx(Uce,{})}],tue=[{id:"livreur-dashboard",kicker:"Terrain",title:"Le compagnon de route de vos livreurs",lead:"Statut en un tap (disponible / occupé / hors ligne), position GPS en direct, et un cycle de livraison guidé étape par étape jusqu’à la remise au client.",points:["Cycle complet : Démarrer → J’arrive → Terminer","Appel client et itinéraire en un tap","Gestion des cas « client absent » avec compte à rebours"],mockup:s.jsx(Gce,{})},{id:"livreur-alertes",kicker:"Sécurité",title:"Un bouton d’urgence, toujours à portée de main",lead:"En cas de contrôle de police ou de situation dangereuse, le livreur alerte l’équipe admin en 2 taps — avec des consignes de sécurité affichées immédiatement.",points:["Deux types d’alerte : contrôle de police / guet-apens","Confirmation avant envoi pour éviter les fausses alertes","Consignes de sécurité affichées après envoi"],mockup:s.jsx(Kce,{}),reverse:!0},{id:"livreur-avis",kicker:"Reconnaissance",title:"Chaque livreur voit ses propres avis clients",lead:"Note moyenne et commentaires clients, pour valoriser le travail de vos livreurs et repérer rapidement un souci de service.",points:["Note moyenne calculée automatiquement","Commentaires clients horodatés"],mockup:s.jsx(Xce,{})},{id:"livreur-stats",kicker:"Performance",title:"Un livreur qui suit sa propre performance reste motivé",lead:"Nombre de livraisons, taux de complétion, évolution jour / semaine / mois : chaque livreur a une vision claire de son activité.",points:["Bascule Jour / Semaine / Mois","Totaux recalculés automatiquement"],mockup:s.jsx(Zce,{}),reverse:!0}],kk=[{key:"admin",label:"Espace Admin",icon:uce,features:Jce,blurb:"Contrôle total de la plateforme."},{key:"cabine",label:"Espace Cabine",icon:Xle,features:eue,blurb:"Équipe de préparation, accès restreint."},{key:"livreur",label:"Espace Livreur",icon:ih,features:tue,blurb:"Application dédiée aux livreurs."}];function nue(){const[e,t]=m.useState("admin"),n=kk.find(r=>r.key===e);return s.jsxs(ae,{children:[s.jsx(ae,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:14,md:20},children:s.jsx(yn,{maxW:"container.lg",children:s.jsxs(Pe,{spacing:5,textAlign:"center",align:"center",children:[s.jsxs(be,{spacing:2,children:[s.jsx(ae,{as:"span",px:3,py:1,borderRadius:"full",fontSize:"xs",fontWeight:"bold",bg:"primary.500",color:"white",children:"3 espaces, 1 seule plateforme"}),s.jsx(ae,{as:"span",px:3,py:1,borderRadius:"full",fontSize:"xs",fontWeight:"bold",borderWidth:"1px",children:"Démo interactive"})]}),s.jsx(dt,{size:"2xl",children:"Admin, cabine, livreur : chacun son espace"}),s.jsx(K,{fontSize:"lg",color:"gray.500",maxW:"2xl",children:"Chaque rôle a exactement les écrans dont il a besoin — rien de plus. Choisissez un espace ci-dessous et essayez les aperçus : ils sont interactifs, comme dans l'application réelle."})]})})}),s.jsx(ae,{borderTopWidth:"1px",borderBottomWidth:"1px",bg:"chakra-subtle-bg",position:"sticky",top:0,zIndex:2,children:s.jsxs(yn,{maxW:"container.lg",py:{base:2,md:3},children:[s.jsx(be,{spacing:2,mb:{base:0,md:2},overflowX:"auto",children:kk.map(r=>s.jsx(he,{size:"sm",leftIcon:s.jsx(Ge,{icon:r.icon}),colorScheme:e===r.key?"primary":void 0,variant:e===r.key?"solid":"outline",onClick:()=>t(r.key),flexShrink:0,children:r.label},r.key))}),s.jsx(rx,{spacing:4,shouldWrapChildren:!0,display:{base:"none",md:"flex"},children:n.features.map(r=>s.jsx(ix,{children:s.jsx(K,{as:"a",href:`#${r.id}`,fontSize:"xs",fontWeight:"medium",color:"gray.500",whiteSpace:"nowrap",_hover:{color:"primary.500",textDecoration:"underline"},children:r.kicker})},r.id))})]})}),s.jsxs(yn,{maxW:"container.lg",children:[s.jsx(ae,{py:6,children:s.jsx(K,{color:"gray.500",fontSize:"sm",textAlign:"center",children:n.blurb})}),n.features.map(r=>s.jsxs(Pe,{id:r.id,direction:{base:"column",md:r.reverse?"row-reverse":"row"},spacing:{base:10,md:16},align:"center",py:{base:14,md:20},borderBottomWidth:"1px",scrollMarginTop:"120px",children:[s.jsxs(ae,{flex:"0.9",minW:0,children:[s.jsx(K,{fontSize:"xs",fontWeight:"extrabold",letterSpacing:"wide",textTransform:"uppercase",color:"primary.500",mb:2,children:r.kicker}),s.jsx(dt,{size:"lg",mb:4,children:r.title}),s.jsx(K,{color:"gray.500",mb:5,children:r.lead}),s.jsx(Ju,{spacing:2,children:r.points.map(i=>s.jsxs(Hb,{fontSize:"sm",color:"gray.600",display:"flex",children:[s.jsx(eT,{as:()=>s.jsx(Ge,{icon:Na}),color:"green.400",mt:1,mr:2}),s.jsx("span",{children:i})]},i))})]}),s.jsx(ae,{flex:"1",minW:0,w:"full",children:r.mockup})]},r.id))]}),s.jsx(ae,{bg:"gray.900",color:"white",py:20,textAlign:"center",children:s.jsxs(yn,{maxW:"container.md",children:[s.jsx(dt,{size:"xl",mb:4,children:"Prêt à essayer votre propre espace admin ?"}),s.jsx(K,{color:"whiteAlpha.700",mb:8,children:"Une démo dédiée et isolée, prête en quelques minutes, pour tester la plateforme en conditions réelles."}),s.jsxs(jn,{columns:{base:1,sm:2},spacing:4,maxW:"sm",mx:"auto",children:[s.jsx(he,{as:rn,to:"/register",colorScheme:"primary",size:"lg",children:"Créer un compte"}),s.jsx(he,{as:rn,to:"/tarifs",variant:"outline",colorScheme:"whiteAlpha",size:"lg",children:"Voir les tarifs"})]})]})})]})}const r7="";class Ee extends Error{constructor(n,r){super(r);e2(this,"status");this.status=n}}async function De(e,t,n){const r={"Content-Type":"application/json"},i=await fetch(`${r7}/api/v1${t}`,{method:e,headers:r,credentials:"include",body:n?JSON.stringify(n):void 0});if(!i.ok){const o=await i.json().catch(()=>({error:`HTTP ${i.status}`}));throw new Ee(i.status,o.error??`HTTP ${i.status}`)}return i.status===204?void 0:await i.json()}const je={login:(e,t,n)=>De("POST","/auth/login",{username:e,password:t,role:n}),register:(e,t)=>De("POST","/auth/register",{username:e,password:t}),me:()=>De("GET","/auth/me"),logout:()=>De("POST","/auth/logout"),listDemos:()=>De("GET","/demos"),listMyDemos:()=>De("GET","/demos/mine"),getDemo:e=>De("GET",`/demos/${e}`),createDemo:e=>De("POST","/demos",{username:e.username,...e.telegramBotUsername?{telegram_bot_username:e.telegramBotUsername}:{},...e.telegramBotToken?{telegram_bot_token:e.telegramBotToken}:{},...e.nowPaymentsApiKey?{nowpayments_api_key:e.nowPaymentsApiKey}:{},...e.nowPaymentsIpnSecret?{nowpayments_ipn_secret:e.nowPaymentsIpnSecret}:{},storage_driver:e.storageDriver,...e.storageDriver==="s3"?{s3_bucket:e.s3Bucket,s3_endpoint:e.s3Endpoint}:{},...e.tomtomApiKey?{tomtom_api_key:e.tomtomApiKey}:{},...e.tomtomApiKey1?{tomtom_api_key_1:e.tomtomApiKey1}:{},...e.tomtomApiKey2?{tomtom_api_key_2:e.tomtomApiKey2}:{},...e.tomtomApiKey3?{tomtom_api_key_3:e.tomtomApiKey3}:{},...e.lbBot1Username?{lb_bot1_username:e.lbBot1Username,lb_bot1_token:e.lbBot1Token}:{},...e.lbBot2Username?{lb_bot2_username:e.lbBot2Username,lb_bot2_token:e.lbBot2Token}:{},...e.lbStrategy?{lb_strategy:e.lbStrategy}:{},...e.lbJwtTtlSeconds?{lb_jwt_ttl_seconds:e.lbJwtTtlSeconds}:{},...e.lbHealthCheckInterval?{lb_health_check_interval:e.lbHealthCheckInterval}:{},admin_username:e.adminUsername,admin_password:e.adminPassword}),extendDemo:e=>De("POST",`/demos/${e}/extend`),deleteDemo:e=>De("DELETE",`/demos/${e}`),setDemoDomain:(e,t)=>De("POST",`/demos/${e}/domain`,{domain:t}),transferDemoToPremium:e=>De("POST",`/demos/${e}/premium`),listProjects:()=>De("GET","/projects"),getProjectDetails:e=>De("GET",`/projects/${e}/details`),createProject:e=>De("POST","/projects",{client_name:e.clientName,months:e.months,admin_username:e.adminUsername,admin_password:e.adminPassword,admin_number:e.adminNumber}),extendProject:(e,t)=>De("POST",`/projects/${e}/extend`,{months:t}),deleteProject:e=>De("DELETE",`/projects/${e}`),listCodes:()=>De("GET","/codes"),listPremiumUsers:()=>De("GET","/premium"),createCode:e=>De("POST","/codes",{username:e}),addCode:e=>De("POST","/subscription",{code_verif:e}),sendMessage:(e,t,n,r)=>De("POST","/send/message",{username:e,telegram:t,sujet:n,message:r}),getMessage:()=>De("GET","/messages"),getDemoDetails:e=>De("POST","/demos/details",{namespace:e}),updateUsername:e=>De("POST","/profile/username",{username:e}),updatePassword:e=>De("POST","/profile/password",{password:e}),getTelegram:()=>De("GET","/profile/telegram"),setTelegram:e=>De("POST","/profile/telegram",{telegram:e}),getAlertSettings:()=>De("GET","/profile/alerts"),setAlertSettings:e=>De("POST","/profile/alerts",e),testAlertSettings:e=>De("POST","/profile/alerts/test",e),listAppDownloads:()=>De("GET","/apps")};function rue(e){return`${r7}/api/v1/apps/${encodeURIComponent(e)}`}const i7=m.createContext(null);function iue({children:e}){const[t,n]=m.useState(null),[r,i]=m.useState(null),[o,a]=m.useState(!0);m.useEffect(()=>{let p=!0;return je.me().then(h=>{p&&(n(h.role),i(h.type_abonnement))}).catch(()=>{}).finally(()=>{p&&a(!1)}),()=>{p=!1}},[]);const l=m.useCallback(async(p,h,g)=>{await je.login(p,h,g);const b=await je.me();n(b.role),i(b.type_abonnement)},[]),c=m.useCallback(async(p,h)=>{await je.register(p,h);const g=await je.me();n(g.role),i(g.type_abonnement)},[]),u=m.useCallback(async()=>{try{await je.logout()}finally{n(null),i(null)}},[]),d=m.useCallback(async()=>{const p=await je.me();i(p.type_abonnement)},[]),f=m.useMemo(()=>({isAuthenticated:!!t,isAdmin:t==="admin",isClient:t==="client",isPremium:r==="premium",role:t,typeAbo:r,initializing:o,login:l,register:c,logout:u,refreshAbo:d}),[t,r,o,l,c,u,d]);return s.jsx(i7.Provider,{value:f,children:e})}function Wo(){const e=m.useContext(i7);if(!e)throw new Error("useAuth doit être utilisé dans ");return e}function Da(e){const{toggleColorMode:t}=Hu(),n=Ep("Passer en mode sombre","Passer en mode clair");return s.jsx(Cn,{"aria-label":n,title:n,variant:"ghost",size:e.size??"sm",onClick:t,icon:Ep(s.jsx(aue,{}),s.jsx(oue,{}))})}function oue(){return s.jsxs(wt,{viewBox:"0 0 24 24",boxSize:5,fill:"none",stroke:"currentColor",strokeWidth:2,children:[s.jsx("circle",{cx:"12",cy:"12",r:"4"}),s.jsx("path",{strokeLinecap:"round",d:"M12 2v2m0 16v2M2 12h2m16 0h2M4.9 4.9l1.4 1.4m11.4 11.4l1.4 1.4M19.1 4.9l-1.4 1.4M6.3 17.7l-1.4 1.4"})]})}function aue(){return s.jsx(wt,{viewBox:"0 0 24 24",boxSize:5,fill:"currentColor",children:s.jsx("path",{d:"M21 12.8A9 9 0 1111.2 3a7 7 0 009.8 9.8z"})})}const Jt=m.forwardRef((e,t)=>{const[n,r]=m.useState(!1);return s.jsxs(Wb,{children:[s.jsx(mt,{ref:t,type:n?"text":"password",...e}),s.jsx(Om,{children:s.jsx(Cn,{"aria-label":n?"Masquer le mot de passe":"Afficher le mot de passe",icon:s.jsx(Ge,{icon:n?cce:Wle}),size:"sm",variant:"ghost",tabIndex:-1,onClick:()=>r(i=>!i)})})]})});Jt.displayName="PasswordInput";function sue(){const{login:e}=Wo(),t=Wn(),n=Tn(),[r,i]=m.useState(""),[o,a]=m.useState(""),[l,c]=m.useState(!1),u=async d=>{d.preventDefault(),c(!0);try{await e(r.trim(),o,"client"),t("/app",{replace:!0})}catch(f){const p=f instanceof Ee?f.message:"Connexion impossible";n({status:"error",title:"Échec de connexion",description:p})}finally{c(!1)}};return s.jsxs(yn,{maxW:"sm",py:20,position:"relative",children:[s.jsx(ae,{position:"absolute",top:4,right:4,children:s.jsx(Da,{})}),s.jsxs(Pe,{spacing:6,children:[s.jsxs(ae,{textAlign:"center",children:[s.jsx(dt,{size:"lg",children:"Espace client"}),s.jsx(K,{color:"gray.500",children:"Connectez-vous pour gérer votre abonnement."})]}),s.jsx(Cb,{children:s.jsx(jb,{children:s.jsx("form",{onSubmit:u,children:s.jsxs(Pe,{spacing:4,children:[s.jsxs(we,{isRequired:!0,children:[s.jsx(ke,{children:"Nom d'utilisateur"}),s.jsx(mt,{value:r,onChange:d=>i(d.target.value),autoComplete:"username"})]}),s.jsxs(we,{isRequired:!0,children:[s.jsx(ke,{children:"Mot de passe"}),s.jsx(Jt,{value:o,onChange:d=>a(d.target.value),autoComplete:"current-password"})]}),s.jsx(he,{type:"submit",colorScheme:"primary",isLoading:l,children:"Se connecter"})]})})})}),s.jsxs(be,{justify:"center",spacing:1,children:[s.jsx(K,{fontSize:"sm",color:"gray.500",children:"Pas encore de compte ?"}),s.jsx(he,{as:rn,to:"/register",variant:"link",size:"sm",children:"Créer un compte"})]}),s.jsx(he,{as:rn,to:"/",variant:"outline",size:"sm",children:"← Retour au site"})]})]})}function lue(){const{login:e}=Wo(),t=Wn(),n=Tn(),[r,i]=m.useState(""),[o,a]=m.useState(""),[l,c]=m.useState(!1),u=async d=>{d.preventDefault(),c(!0);try{await e(r.trim(),o,"admin"),t("/app",{replace:!0})}catch(f){const p=f instanceof Ee?f.message:"Connexion impossible";n({status:"error",title:"Échec de connexion",description:p})}finally{c(!1)}};return s.jsxs(yn,{maxW:"sm",py:20,position:"relative",children:[s.jsx(ae,{position:"absolute",top:4,right:4,children:s.jsx(Da,{})}),s.jsxs(Pe,{spacing:6,children:[s.jsxs(ae,{textAlign:"center",children:[s.jsx(dt,{size:"lg",children:"Espace admin"}),s.jsx(K,{color:"gray.500",children:"Connectez-vous pour administrer la plateforme."})]}),s.jsx(Cb,{children:s.jsx(jb,{children:s.jsx("form",{onSubmit:u,children:s.jsxs(Pe,{spacing:4,children:[s.jsxs(we,{isRequired:!0,children:[s.jsx(ke,{children:"Nom d'utilisateur"}),s.jsx(mt,{value:r,onChange:d=>i(d.target.value),autoComplete:"username"})]}),s.jsxs(we,{isRequired:!0,children:[s.jsx(ke,{children:"Mot de passe"}),s.jsx(Jt,{value:o,onChange:d=>a(d.target.value),autoComplete:"current-password"})]}),s.jsx(he,{type:"submit",colorScheme:"primary",isLoading:l,children:"Se connecter"})]})})})}),s.jsx(he,{as:rn,to:"/",variant:"outline",size:"sm",children:"← Retour au site"})]})]})}function cue(){const{register:e}=Wo(),t=Wn(),n=Tn(),[r,i]=m.useState(""),[o,a]=m.useState(""),[l,c]=m.useState(""),[u,d]=m.useState(!1),f=/^[a-zA-Z0-9]{3,64}$/.test(r),p=o.length>=10,h=o===l,g=f&&p&&h,b=async x=>{if(x.preventDefault(),!!g){d(!0);try{await e(r.trim(),o),t("/app",{replace:!0})}catch(y){const v=y instanceof Ee?y.message:"Inscription impossible";n({status:"error",title:"Échec de l’inscription",description:v})}finally{d(!1)}}};return s.jsxs(yn,{maxW:"sm",py:16,position:"relative",children:[s.jsx(ae,{position:"absolute",top:4,right:4,children:s.jsx(Da,{})}),s.jsxs(Pe,{spacing:6,children:[s.jsxs(ae,{textAlign:"center",children:[s.jsx(dt,{size:"lg",children:"Créer un compte"}),s.jsx(K,{color:"gray.500",children:"Rejoignez l’espace commercial Omnex."})]}),s.jsx(Cb,{children:s.jsx(jb,{children:s.jsx("form",{onSubmit:b,children:s.jsxs(Pe,{spacing:4,children:[s.jsxs(we,{isRequired:!0,isInvalid:r.length>0&&!f,children:[s.jsx(ke,{children:"Nom d'utilisateur"}),s.jsx(mt,{value:r,onChange:x=>i(x.target.value),autoComplete:"username"}),s.jsx(Qr,{children:"3 à 64 caractères alphanumériques."})]}),s.jsxs(we,{isRequired:!0,isInvalid:o.length>0&&!p,children:[s.jsx(ke,{children:"Mot de passe"}),s.jsx(Jt,{value:o,onChange:x=>a(x.target.value),autoComplete:"new-password"}),s.jsx(Qr,{children:"10 caractères minimum."})]}),s.jsxs(we,{isRequired:!0,isInvalid:l.length>0&&!h,children:[s.jsx(ke,{children:"Confirmer le mot de passe"}),s.jsx(Jt,{value:l,onChange:x=>c(x.target.value),autoComplete:"new-password"})]}),s.jsx(he,{type:"submit",colorScheme:"primary",isLoading:u,isDisabled:!g,children:"Créer mon compte"})]})})})}),s.jsxs(be,{justify:"center",spacing:1,children:[s.jsx(K,{fontSize:"sm",color:"gray.500",children:"Déjà un compte ?"}),s.jsx(he,{as:rn,to:"/login",variant:"link",size:"sm",children:"Se connecter"})]})]})]})}const ud=Nm({displayName:"EditIcon",path:s.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[s.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),s.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),o7=Nm({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),a7=Nm({viewBox:"0 0 14 14",path:s.jsx("g",{fill:"currentColor",children:s.jsx("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})});function sh(e){switch(e){case"ready":return"green";case"provisioning":case"pending":return"blue";case"expiring":return"orange";case"failed":return"red";case"expired":default:return"gray"}}function lh(e){return{pending:"En attente",provisioning:"Déploiement…",ready:"Active",expiring:"Suppression…",expired:"Expirée",failed:"Échec"}[e]??e}function Ck(e){switch(e){case"Running":return"green";case"Pending":return"yellow";case"Succeeded":return"blue";case"Failed":return"red";case"Unknown":case"":default:return"gray"}}function uue(e){return{Running:"En ligne",Pending:"En attente",Succeeded:"Terminé",Failed:"Down",Unknown:"Inconnu"}[e]??"Introuvable"}function gy(e,t=Date.now()){const n=new Date(e).getTime()-t;if(n<=0)return"expirée";const r=Math.floor(n/864e5),i=Math.floor(n%864e5/36e5);if(r>0)return`${r} j ${i} h`;const o=Math.floor(n%36e5/6e4);return`${i} h ${o} min`}function due(e){if(e<1024)return`${e} o`;const t=["Ko","Mo","Go"];let n=e/1024,r=0;for(;n>=1024&&rt+1);function Mu(e){return`${e} mois`}function Uc({isOpen:e,title:t,children:n,confirmLabel:r="Confirmer",cancelLabel:i="Annuler",confirmColorScheme:o="red",isLoading:a=!1,onConfirm:l,onClose:c}){const u=m.useRef(null);return s.jsx(ZY,{isOpen:e,leastDestructiveRef:u,onClose:c,isCentered:!0,motionPreset:"slideInBottom",children:s.jsx(Fo,{backdropFilter:"blur(2px)",children:s.jsxs(JY,{borderRadius:"xl",children:[s.jsx(Oo,{fontSize:"lg",fontWeight:"bold",children:t}),s.jsx(Do,{children:n}),s.jsxs(zl,{gap:3,children:[s.jsx(he,{ref:u,onClick:c,variant:"ghost",isDisabled:a,children:i}),s.jsx(he,{colorScheme:o,onClick:l,isLoading:a,children:r})]})]})})})}function l7({isOpen:e,onClose:t,onCreated:n}){const r=Tn(),[i,o]=m.useState(""),[a,l]=m.useState("admin"),[c,u]=m.useState(""),[d,f]=m.useState(!1),[p,h]=m.useState(""),[g,b]=m.useState(""),[x,y]=m.useState(!1),[v,S]=m.useState(""),[w,k]=m.useState(""),[C,P]=m.useState(!1),[j,T]=m.useState(""),[E,F]=m.useState(""),[Y,q]=m.useState(""),[M,N]=m.useState(""),[D,R]=m.useState(!1),[I,L]=m.useState(""),[H,Z]=m.useState(""),[le,ie]=m.useState(""),[Q,oe]=m.useState(""),[ce,Me]=m.useState("failover"),[Qe,te]=m.useState(""),[ne,_e]=m.useState(""),[ve,Ke]=m.useState("local"),[se,tt]=m.useState(""),[Ne,kt]=m.useState(""),[Ce,Yt]=m.useState(!1),Et=()=>{o(""),l("admin"),u(""),f(!1),h(""),b(""),y(!1),S(""),k(""),P(!1),T(""),F(""),q(""),N(""),R(!1),L(""),Z(""),ie(""),oe(""),Me("failover"),te(""),_e(""),Ke("local"),tt(""),kt("")},An=()=>{Ce||(Et(),t())},$n=async()=>{if(!i.trim()){r({status:"warning",title:"Username requis"});return}if(!a.trim()||c.trim().length<8){r({status:"warning",title:"Identifiants admin requis (mot de passe : 8 caractères min.)"});return}if(ve==="s3"&&(!se.trim()||!Ne.trim())){r({status:"warning",title:"Bucket et endpoint S3 requis"});return}if(D&&!I.trim()&&!le.trim()){r({status:"warning",title:"Au moins un bot (username) requis pour le load-balancer"});return}if(C&&!j.trim()){r({status:"warning",title:"La clé API TomTom principale est requise"});return}const ue={username:i.trim(),adminUsername:a.trim(),adminPassword:c.trim(),telegramBotUsername:d&&p.trim()||void 0,telegramBotToken:d&&g.trim()||void 0,nowPaymentsApiKey:x&&v.trim()||void 0,nowPaymentsIpnSecret:x&&w.trim()||void 0,storageDriver:ve,...ve==="s3"?{s3Bucket:se.trim(),s3Endpoint:Ne.trim()}:{},...C?{tomtomApiKey:j.trim(),tomtomApiKey1:E.trim()||void 0,tomtomApiKey2:Y.trim()||void 0,tomtomApiKey3:M.trim()||void 0}:{},...D?{lbBot1Username:I.trim()||void 0,lbBot1Token:H.trim()||void 0,lbBot2Username:le.trim()||void 0,lbBot2Token:Q.trim()||void 0,lbStrategy:ce,lbJwtTtlSeconds:Qe.trim()||void 0,lbHealthCheckInterval:ne.trim()||void 0}:{}};Yt(!0);try{await je.createDemo(ue),r({status:"success",title:"Démo lancée",description:"Provisioning en cours."}),Et(),n(),t()}catch(sr){const ci=sr instanceof Ee?sr.message:"Erreur";r({status:"error",title:"Lancement impossible",description:ci})}finally{Yt(!1)}};return s.jsxs(Wa,{isOpen:e,onClose:An,size:"lg",closeOnOverlayClick:!Ce,children:[s.jsx(Fo,{}),s.jsxs($l,{children:[s.jsx(Oo,{children:"Nouvelle démo"}),s.jsx(Ua,{isDisabled:Ce}),s.jsx(Do,{children:s.jsxs(Pe,{spacing:5,children:[s.jsxs(we,{isRequired:!0,isDisabled:Ce,children:[s.jsx(ke,{children:"Username"}),s.jsx(mt,{placeholder:"ex: acme-corp",value:i,onChange:ue=>o(ue.target.value)})]}),s.jsxs(Pe,{spacing:3,p:3,borderWidth:"1px",borderRadius:"md",children:[s.jsx(K,{fontSize:"sm",fontWeight:"semibold",children:"Compte admin de la démo"}),s.jsx(K,{fontSize:"xs",color:"gray.500",children:"Créé une fois postgres/redis/backend/frontend démarrés — c'est ce que le client utilisera pour se connecter au backoffice de sa démo."}),s.jsxs(be,{spacing:3,align:"start",children:[s.jsxs(we,{isRequired:!0,isDisabled:Ce,children:[s.jsx(ke,{fontSize:"sm",children:"Username"}),s.jsx(mt,{value:a,onChange:ue=>l(ue.target.value)})]}),s.jsxs(we,{isRequired:!0,isDisabled:Ce,children:[s.jsx(ke,{fontSize:"sm",children:"Mot de passe"}),s.jsx(Jt,{placeholder:"8 caractères min.",value:c,onChange:ue=>u(ue.target.value),autoComplete:"off"})]})]})]}),s.jsx(we,{isDisabled:Ce,children:s.jsxs(be,{justify:"space-between",children:[s.jsx(ke,{mb:0,children:"Bot Telegram"}),s.jsx(gc,{isChecked:d,onChange:ue=>f(ue.target.checked)})]})}),d&&s.jsxs(Pe,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsxs(we,{isDisabled:Ce,children:[s.jsx(ke,{fontSize:"sm",children:"Nom du bot (username)"}),s.jsx(mt,{placeholder:"mon_bot",value:p,onChange:ue=>h(ue.target.value)})]}),s.jsxs(we,{isDisabled:Ce,children:[s.jsx(ke,{fontSize:"sm",children:"Token bot Telegram"}),s.jsx(Jt,{placeholder:"123456:ABC-DEF...",value:g,onChange:ue=>b(ue.target.value),autoComplete:"off"})]})]}),s.jsx(we,{isDisabled:Ce,children:s.jsxs(be,{justify:"space-between",children:[s.jsx(ke,{mb:0,children:"NowPayments (paiement crypto)"}),s.jsx(gc,{isChecked:x,onChange:ue=>y(ue.target.checked)})]})}),x&&s.jsxs(Pe,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsxs(we,{isDisabled:Ce,children:[s.jsx(ke,{fontSize:"sm",children:"Clé API NowPayments"}),s.jsx(Jt,{placeholder:"clé API du compte marchand",value:v,onChange:ue=>S(ue.target.value),autoComplete:"off"})]}),s.jsxs(we,{isDisabled:Ce,children:[s.jsx(ke,{fontSize:"sm",children:"Secret IPN NowPayments"}),s.jsx(Jt,{placeholder:"secret configuré côté NowPayments",value:w,onChange:ue=>k(ue.target.value),autoComplete:"off"}),s.jsx(K,{fontSize:"xs",color:"gray.500",mt:1,children:"Laissez vide pour garder celui pré-généré automatiquement."})]})]}),s.jsx(we,{isDisabled:Ce,children:s.jsxs(be,{justify:"space-between",children:[s.jsx(ke,{mb:0,children:"TomTom (GPS livreur)"}),s.jsx(gc,{isChecked:C,onChange:ue=>P(ue.target.checked)})]})}),C&&s.jsxs(Pe,{spacing:3,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsx(K,{fontSize:"xs",color:"gray.500",children:"Géocodage, itinéraire et ETA des livreurs. Jusqu'à 4 clés — le backend bascule automatiquement sur la suivante si une clé atteint son quota."}),s.jsxs(we,{isRequired:!0,isDisabled:Ce,children:[s.jsx(ke,{fontSize:"sm",children:"Clé API TomTom (principale)"}),s.jsx(Jt,{placeholder:"clé API TomTom",value:j,onChange:ue=>T(ue.target.value),autoComplete:"off"})]}),s.jsxs(we,{isDisabled:Ce,children:[s.jsx(ke,{fontSize:"sm",children:"Clé API TomTom #2 (optionnelle)"}),s.jsx(Jt,{placeholder:"clé de secours",value:E,onChange:ue=>F(ue.target.value),autoComplete:"off"})]}),s.jsxs(we,{isDisabled:Ce,children:[s.jsx(ke,{fontSize:"sm",children:"Clé API TomTom #3 (optionnelle)"}),s.jsx(Jt,{placeholder:"clé de secours",value:Y,onChange:ue=>q(ue.target.value),autoComplete:"off"})]}),s.jsxs(we,{isDisabled:Ce,children:[s.jsx(ke,{fontSize:"sm",children:"Clé API TomTom #4 (optionnelle)"}),s.jsx(Jt,{placeholder:"clé de secours",value:M,onChange:ue=>N(ue.target.value),autoComplete:"off"})]})]}),s.jsx(we,{isDisabled:Ce,children:s.jsxs(be,{justify:"space-between",children:[s.jsx(ke,{mb:0,children:"Load-balancer Telegram"}),s.jsx(gc,{isChecked:D,onChange:ue=>R(ue.target.checked)})]})}),D&&s.jsxs(Pe,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsx(K,{fontSize:"xs",color:"gray.500",children:"Répartit le trafic entre plusieurs bots. Renseignez au moins le bot 1 ; le bot 2 est optionnel."}),s.jsxs(be,{spacing:3,align:"start",children:[s.jsxs(we,{isDisabled:Ce,children:[s.jsx(ke,{fontSize:"sm",children:"Bot 1 — username"}),s.jsx(mt,{placeholder:"mon_bot_1",value:I,onChange:ue=>L(ue.target.value)})]}),s.jsxs(we,{isDisabled:Ce,children:[s.jsx(ke,{fontSize:"sm",children:"Bot 1 — token"}),s.jsx(Jt,{placeholder:"123456:ABC-DEF...",value:H,onChange:ue=>Z(ue.target.value),autoComplete:"off"})]})]}),s.jsxs(be,{spacing:3,align:"start",children:[s.jsxs(we,{isDisabled:Ce,children:[s.jsx(ke,{fontSize:"sm",children:"Bot 2 — username (optionnel)"}),s.jsx(mt,{placeholder:"mon_bot_2",value:le,onChange:ue=>ie(ue.target.value)})]}),s.jsxs(we,{isDisabled:Ce,children:[s.jsx(ke,{fontSize:"sm",children:"Bot 2 — token"}),s.jsx(Jt,{placeholder:"123456:ABC-DEF...",value:Q,onChange:ue=>oe(ue.target.value),autoComplete:"off"})]})]}),s.jsxs(be,{spacing:3,align:"start",children:[s.jsxs(we,{isDisabled:Ce,children:[s.jsx(ke,{fontSize:"sm",children:"Stratégie de répartition"}),s.jsxs(Wm,{value:ce,onChange:ue=>Me(ue.target.value),children:[s.jsx("option",{value:"failover",children:"Failover"}),s.jsx("option",{value:"roundrobin",children:"Round-robin"}),s.jsx("option",{value:"leastconn",children:"Moins de connexions"})]})]}),s.jsxs(we,{isDisabled:Ce,children:[s.jsx(ke,{fontSize:"sm",children:"TTL JWT (secondes)"}),s.jsx(mt,{placeholder:"300",value:Qe,onChange:ue=>te(ue.target.value),type:"number"})]}),s.jsxs(we,{isDisabled:Ce,children:[s.jsx(ke,{fontSize:"sm",children:"Intervalle health-check (s)"}),s.jsx(mt,{placeholder:"30",value:ne,onChange:ue=>_e(ue.target.value),type:"number"})]})]})]}),s.jsxs(we,{isDisabled:Ce,children:[s.jsx(ke,{children:"Stockage des fichiers"}),s.jsx(AT,{value:ve,onChange:ue=>Ke(ue),children:s.jsxs(Pe,{direction:"row",spacing:6,children:[s.jsx(Wv,{value:"local",children:"Local (disque du cluster)"}),s.jsx(Wv,{value:"s3",children:"S3"})]})})]}),ve==="s3"&&s.jsxs(Pe,{spacing:4,pl:3,borderLeftWidth:"2px",borderColor:"primary.500",children:[s.jsxs(we,{isRequired:!0,isDisabled:Ce,children:[s.jsx(ke,{fontSize:"sm",children:"Nom du bucket"}),s.jsx(mt,{placeholder:"mon-bucket-demo",value:se,onChange:ue=>tt(ue.target.value)})]}),s.jsxs(we,{isRequired:!0,isDisabled:Ce,children:[s.jsx(ke,{fontSize:"sm",children:"Endpoint S3"}),s.jsx(mt,{placeholder:"https://s3.exemple.com",value:Ne,onChange:ue=>kt(ue.target.value)})]})]})]})}),s.jsxs(zl,{children:[s.jsx(he,{variant:"ghost",mr:3,onClick:An,isDisabled:Ce,children:"Annuler"}),s.jsx(he,{colorScheme:"primary",onClick:$n,isLoading:Ce,children:"Lancer la démo"})]})]})]})}function c7({demo:e,onClose:t,onSaved:n}){const r=Tn(),[i,o]=m.useState(""),[a,l]=m.useState(!1);m.useEffect(()=>{o((e==null?void 0:e.custom_domain)??"")},[e]);const c=()=>{a||t()},u=async()=>{if(e){l(!0);try{await je.setDemoDomain(e.id,i.trim()),r({status:"success",title:"Domaine mis à jour"}),n(),t()}catch(d){const f=d instanceof Ee?d.message:"Erreur";r({status:"error",title:"Mise à jour impossible",description:f})}finally{l(!1)}}};return s.jsxs(Wa,{isOpen:!!e,onClose:c,closeOnOverlayClick:!a,children:[s.jsx(Fo,{}),s.jsxs($l,{children:[s.jsx(Oo,{children:"Domaine de la plateforme"}),s.jsx(Ua,{isDisabled:a}),s.jsx(Do,{children:s.jsxs(we,{children:[s.jsx(ke,{fontSize:"sm",children:"Domaine personnalisé"}),s.jsx(mt,{placeholder:"boutique.mon-domaine.com",value:i,onChange:d=>o(d.target.value),isDisabled:a,fontFamily:"mono"}),s.jsxs(Qr,{children:["Laissez vide pour revenir au domaine par défaut (",e==null?void 0:e.namespace,".). Le DNS du domaine choisi doit pointer vers le cluster, et un certificat TLS valide doit le couvrir — le certificat wildcard partagé ne couvre que le domaine par défaut."]})]})}),s.jsxs(zl,{children:[s.jsx(he,{variant:"ghost",mr:3,onClick:c,isDisabled:a,children:"Annuler"}),s.jsx(he,{colorScheme:"primary",onClick:u,isLoading:a,children:"Enregistrer"})]})]})]})}const hue=[{key:"api",label:"Backend"},{key:"web",label:"Frontend"},{key:"db",label:"PostgreSQL"},{key:"dbm",label:"Redis"}],gue=[{key:"lb",label:"Load-balancer Telegram"}];function ch({state:e}){const t=gue.filter(o=>e[o.key].phase!==""),n=[...hue,...t],r=n.every(o=>e[o.key].phase==="Running"),i=n.filter(o=>e[o.key].phase!=="Running").length;return s.jsxs(Pe,{spacing:3,children:[s.jsxs(be,{spacing:2,children:[s.jsx(ae,{w:"8px",h:"8px",borderRadius:"full",bg:r?"green.400":"red.400",flexShrink:0}),s.jsx(K,{fontSize:"sm",fontWeight:"medium",children:r?"Tous les services sont opérationnels":`${i} service${i>1?"s":""} indisponible${i>1?"s":""}`})]}),s.jsx(jn,{columns:{base:1,lg:4},spacing:3,children:n.map(o=>s.jsx(vue,{title:o.label,cs:e[o.key]},o.key))})]})}function vue({title:e,cs:t}){const n=t.cpu_limit_milli>0?Math.min(100,Math.round(t.cpu_milli/t.cpu_limit_milli*100)):0,r=t.memory_limit_mi>0?Math.min(100,Math.round(t.memory_mi/t.memory_limit_mi*100)):0;return s.jsxs(ae,{p:3,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",minW:0,children:[s.jsxs(be,{justify:"space-between",mb:3,children:[s.jsx(K,{fontSize:"sm",fontWeight:"semibold",noOfLines:1,children:e}),s.jsxs(be,{spacing:1.5,children:[s.jsx(ae,{w:"7px",h:"7px",borderRadius:"full",bg:`${Ck(t.phase)}.400`,flexShrink:0}),s.jsx(on,{colorScheme:Ck(t.phase),fontSize:"10px",children:uue(t.phase)})]})]}),s.jsxs(Pe,{spacing:2,children:[s.jsxs(ae,{children:[s.jsxs(gt,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[s.jsx(K,{children:"CPU"}),s.jsxs(K,{fontFamily:"mono",children:[t.cpu_milli,"m / ",t.cpu_limit_milli,"m"]})]}),s.jsx(Fp,{value:n,size:"xs",borderRadius:"full",colorScheme:n>85?"red":n>60?"orange":"primary"})]}),s.jsxs(ae,{children:[s.jsxs(gt,{justify:"space-between",fontSize:"xs",color:"gray.500",mb:1,children:[s.jsx(K,{children:"Mémoire"}),s.jsxs(K,{fontFamily:"mono",children:[t.memory_mi,"Mi / ",t.memory_limit_mi,"Mi"]})]}),s.jsx(Fp,{value:r,size:"xs",borderRadius:"full",colorScheme:r>85?"red":r>60?"orange":"primary"})]})]})]})}function uh(e){return s.jsx(wt,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,...e,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 18l6-6-6-6"})})}function u7({demo:e,isOpen:t,onToggle:n,detailsLoading:r,details:i,onEditDomain:o,expiresLabel:a,actions:l}){return s.jsxs(ae,{borderWidth:"1px",borderRadius:"lg",overflow:"hidden",bg:"bg-surface",children:[s.jsxs(ae,{p:4,cursor:"pointer",onClick:n,_active:{bg:"chakra-subtle-bg"},children:[s.jsxs(be,{justify:"space-between",align:"start",children:[s.jsxs(be,{spacing:2,minW:0,flex:"1",children:[s.jsx(wt,{as:uh,boxSize:3,color:"gray.400",flexShrink:0,transform:t?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(K,{fontFamily:"mono",fontSize:"sm",noOfLines:1,wordBreak:"break-all",minW:0,flex:"1",children:e.namespace})]}),s.jsx(on,{colorScheme:sh(e.status),flexShrink:0,children:lh(e.status)})]}),s.jsxs(Pe,{spacing:1,mt:3,fontSize:"sm",children:[s.jsxs(be,{justify:"space-between",children:[s.jsx(K,{color:"gray.500",children:"Client"}),s.jsx(K,{children:e.username||"—"})]}),s.jsxs(be,{justify:"space-between",align:"start",children:[s.jsx(K,{color:"gray.500",flexShrink:0,children:"URL"}),s.jsxs(be,{spacing:1,minW:0,flex:"1",justify:"flex-end",children:[e.status==="ready"?s.jsx(Oi,{href:e.url,color:"primary.500",isExternal:!0,noOfLines:1,wordBreak:"break-all",minW:0,flex:"1",onClick:c=>c.stopPropagation(),children:e.url}):s.jsx(K,{color:"gray.400",children:"—"}),s.jsx(Cn,{"aria-label":"Modifier le domaine",icon:s.jsx(ud,{}),size:"xs",variant:"ghost",flexShrink:0,onClick:c=>{c.stopPropagation(),o()}})]})]}),a&&s.jsxs(be,{justify:"space-between",children:[s.jsx(K,{color:"gray.500",children:"Expire dans"}),s.jsx(K,{children:a})]})]}),l&&s.jsx(be,{mt:3,spacing:2,flexWrap:"wrap",rowGap:2,onClick:c=>c.stopPropagation(),children:l})]}),s.jsx(Al,{in:t,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(ae,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:r&&!i?s.jsx(be,{justify:"center",py:2,children:s.jsx(ln,{size:"sm"})}):i?s.jsx(ch,{state:i.state}):s.jsx(K,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})]})}const yue=5e3,bue=5e3;function xue(){const e=Tn(),t=Wn(),[n,r]=m.useState([]),[i,o]=m.useState(!0),[a,l]=m.useState(null),[c,u]=m.useState(null),[d,f]=m.useState(null),[p,h]=m.useState(null),[g,b]=m.useState(!1),[x,y]=m.useState(null),[v,S]=m.useState(null),[w,k]=m.useState(null),[C,P]=m.useState(!1),j=m.useCallback(async()=>{try{const N=await je.listDemos();r((N.items??[]).filter(D=>D.type_abonnement!=="premium"&&D.status!=="expired"))}catch(N){N instanceof Ee&&N.status===401?t("/admin/login"):e({status:"error",title:"Chargement des démos impossible"})}finally{o(!1)}},[t,e]);m.useEffect(()=>{j();const N=setInterval(()=>void j(),yue);return()=>clearInterval(N)},[j]);const T=async()=>{if(!p)return;const N=p;l(N.id);try{await je.extendDemo(N.id),e({status:"success",title:"Démo prolongée de 30 jours"}),h(null),await j()}catch(D){const R=D instanceof Ee?D.message:"Erreur";e({status:"error",title:"Prolongation impossible",description:R})}finally{l(null)}},E=async()=>{if(!c)return;const N=c;l(N.id);try{await je.deleteDemo(N.id),e({status:"success",title:"Démo détruite"}),u(null),await j()}catch(D){const R=D instanceof Ee?D.message:"Erreur";e({status:"error",title:"Destruction impossible",description:R})}finally{l(null)}},F=async()=>{if(!d)return;const N=d;l(N.id);try{await je.transferDemoToPremium(N.id),e({status:"success",title:"Démo passée en premium",description:"La migration des données tourne en tâche de fond."}),f(null),await j()}catch(D){const R=D instanceof Ee?D.message:"Erreur";e({status:"error",title:"Passage en premium impossible",description:R})}finally{l(null)}},Y=async N=>{if(v===N.id){S(null),k(null);return}S(N.id),k(null),P(!0);try{const D=await je.getDemoDetails(N.namespace);k(D)}catch(D){const R=D instanceof Ee?D.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:R}),S(null)}finally{P(!1)}};m.useEffect(()=>{const N=n.find(I=>I.id===v);if(!N)return;const D=N.namespace,R=setInterval(()=>{je.getDemoDetails(D).then(k).catch(()=>{})},bue);return()=>clearInterval(R)},[v]);const q=N=>N!=="expired"&&N!=="failed",M=N=>s.jsxs(s.Fragment,{children:[s.jsx(he,{size:"sm",variant:"outline",isDisabled:!q(N.status)||a===N.id,onClick:D=>{D.stopPropagation(),h(N)},children:"+30 j"}),s.jsx(he,{size:"sm",colorScheme:"purple",variant:"outline",isDisabled:!q(N.status)||a===N.id,onClick:D=>{D.stopPropagation(),f(N)},children:"Passer en premium"}),s.jsx(he,{size:"sm",colorScheme:"red",variant:"outline",isDisabled:!q(N.status),onClick:D=>{D.stopPropagation(),u(N)},children:"Détruire"})]});return s.jsxs(s.Fragment,{children:[s.jsxs(gt,{mb:6,align:"center",gap:4,wrap:"wrap",children:[s.jsx(dt,{size:"md",mr:4,children:"Démos"}),s.jsx(Fi,{}),s.jsx(he,{colorScheme:"primary",onClick:()=>b(!0),children:"Nouvelle démo"})]}),s.jsx(l7,{isOpen:g,onClose:()=>b(!1),onCreated:()=>void j()}),i?s.jsx(ln,{}):n.length===0?s.jsx(K,{color:"gray.500",children:"Aucune démo active. Lancez-en une avec le bouton ci-dessus."}):s.jsxs(s.Fragment,{children:[s.jsx(Pu,{borderWidth:"1px",borderRadius:"lg",display:{base:"none",md:"block"},children:s.jsxs(yl,{children:[s.jsx(Tu,{children:s.jsxs(Kn,{children:[s.jsx(Je,{children:"Namespace"}),s.jsx(Je,{children:"Client"}),s.jsx(Je,{children:"Statut"}),s.jsx(Je,{children:"URL"}),s.jsx(Je,{children:"Expire dans"}),s.jsx(Je,{})]})}),s.jsx(_u,{children:n.map(N=>{const D=v===N.id;return s.jsxs(m.Fragment,{children:[s.jsxs(Kn,{cursor:"pointer",bg:D?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>Y(N),children:[s.jsx(He,{fontFamily:"mono",children:s.jsxs(be,{spacing:2,children:[s.jsx(wt,{as:uh,boxSize:3,color:"gray.400",transform:D?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(K,{children:N.namespace})]})}),s.jsx(He,{children:N.username?s.jsx(K,{children:N.username}):s.jsx(K,{color:"gray.400",children:"—"})}),s.jsx(He,{children:s.jsx(on,{colorScheme:sh(N.status),children:lh(N.status)})}),s.jsx(He,{children:s.jsxs(be,{spacing:1,children:[N.status==="ready"?s.jsx(Oi,{href:N.url,color:"primary.500",isExternal:!0,onClick:R=>R.stopPropagation(),children:N.url}):s.jsx(K,{color:"gray.400",children:"—"}),s.jsx(Cn,{"aria-label":"Modifier le domaine",icon:s.jsx(ud,{}),size:"xs",variant:"ghost",onClick:R=>{R.stopPropagation(),y(N)}})]})}),s.jsx(He,{children:q(N.status)?gy(N.expires_at):"—"}),s.jsx(He,{textAlign:"right",children:s.jsx(be,{justify:"flex-end",children:M(N)})})]}),s.jsx(Kn,{children:s.jsx(He,{p:0,border:D?void 0:"none",colSpan:6,children:s.jsx(Al,{in:D,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(ae,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:C&&!w?s.jsx(gt,{justify:"center",py:4,children:s.jsx(ln,{size:"sm"})}):w?s.jsx(ch,{state:w.state}):s.jsx(K,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},N.id)})})]})}),s.jsx(Pe,{spacing:3,display:{base:"flex",md:"none"},children:n.map(N=>s.jsx(u7,{demo:N,isOpen:v===N.id,onToggle:()=>Y(N),detailsLoading:C,details:v===N.id?w:null,onEditDomain:()=>y(N),expiresLabel:q(N.status)?gy(N.expires_at):"—",actions:M(N)},N.id))})]}),s.jsxs(Uc,{isOpen:!!p,title:"Prolonger la démo de 30 jours ?",confirmLabel:"Prolonger",confirmColorScheme:"primary",isLoading:!!p&&a===p.id,onConfirm:T,onClose:()=>h(null),children:["La démo"," ",s.jsx(K,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:p==null?void 0:p.namespace})," ","verra sa date d'expiration repoussée de 30 jours."]}),s.jsxs(Uc,{isOpen:!!c,title:"Détruire la démo ?",confirmLabel:"Détruire",isLoading:!!c&&a===c.id,onConfirm:E,onClose:()=>u(null),children:["La démo"," ",s.jsx(K,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:c==null?void 0:c.namespace})," ","et toutes ses données seront supprimées définitivement. Les ressources du pool seront libérées. Cette action est irréversible."]}),s.jsxs(Uc,{isOpen:!!d,title:"Passer cette démo en premium ?",confirmLabel:"Passer en premium",confirmColorScheme:"purple",isLoading:!!d&&a===d.id,onConfirm:F,onClose:()=>f(null),children:["La démo"," ",s.jsx(K,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:d==null?void 0:d.namespace})," ","n'expirera plus et sera migrée vers un namespace dédié (données conservées). Cette opération tourne en tâche de fond et n'est pas instantanée."]}),s.jsx(c7,{demo:x,onClose:()=>y(null),onSaved:()=>void j()})]})}const Sue=5e3,wue=5e3;function kue(){const e=Tn(),t=Wn(),[n,r]=m.useState([]),[i,o]=m.useState(!0),[a,l]=m.useState(null),[c,u]=m.useState(null),[d,f]=m.useState(!1),[p,h]=m.useState(null),[g,b]=m.useState(null),[x,y]=m.useState(null),[v,S]=m.useState(!1),w=m.useCallback(async()=>{try{const j=await je.listDemos();r((j.items??[]).filter(T=>T.type_abonnement==="premium"&&T.status!=="expired"))}catch(j){j instanceof Ee&&j.status===401?t("/admin/login"):e({status:"error",title:"Chargement des démos impossible"})}finally{o(!1)}},[t,e]);m.useEffect(()=>{w();const j=setInterval(()=>void w(),Sue);return()=>clearInterval(j)},[w]);const k=async()=>{if(!c)return;const j=c;l(j.id);try{await je.deleteDemo(j.id),e({status:"success",title:"Plateforme détruite"}),u(null),await w()}catch(T){const E=T instanceof Ee?T.message:"Erreur";e({status:"error",title:"Destruction impossible",description:E})}finally{l(null)}},C=async j=>{if(g===j.id){b(null),y(null);return}b(j.id),y(null),S(!0);try{const T=await je.getDemoDetails(j.namespace);y(T)}catch(T){const E=T instanceof Ee?T.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:E}),b(null)}finally{S(!1)}};m.useEffect(()=>{const j=n.find(F=>F.id===g);if(!j)return;const T=j.namespace,E=setInterval(()=>{je.getDemoDetails(T).then(y).catch(()=>{})},wue);return()=>clearInterval(E)},[g]);const P=j=>s.jsx(he,{size:"sm",colorScheme:"red",variant:"outline",isDisabled:a===j.id,onClick:T=>{T.stopPropagation(),u(j)},children:"Détruire"});return s.jsxs(s.Fragment,{children:[s.jsxs(gt,{mb:2,align:"center",gap:4,wrap:"wrap",children:[s.jsx(dt,{size:"md",mr:4,children:"Plateforme Premium"}),s.jsx(Fi,{}),s.jsx(he,{colorScheme:"primary",onClick:()=>f(!0),children:"Déployer une plateforme"})]}),s.jsx(K,{color:"gray.500",mb:6,fontSize:"sm",children:"Démos rattachées à un client passé en abonnement payant — stockage persistant, n'expirent plus."}),s.jsx(l7,{isOpen:d,onClose:()=>f(!1),onCreated:()=>void w()}),i?s.jsx(ln,{}):n.length===0?s.jsx(K,{color:"gray.500",children:"Aucune démo premium pour le moment."}):s.jsxs(s.Fragment,{children:[s.jsx(Pu,{borderWidth:"1px",borderRadius:"lg",display:{base:"none",md:"block"},children:s.jsxs(yl,{children:[s.jsx(Tu,{children:s.jsxs(Kn,{children:[s.jsx(Je,{children:"Namespace"}),s.jsx(Je,{children:"Client"}),s.jsx(Je,{children:"Statut"}),s.jsx(Je,{children:"URL"}),s.jsx(Je,{})]})}),s.jsx(_u,{children:n.map(j=>{const T=g===j.id;return s.jsxs(m.Fragment,{children:[s.jsxs(Kn,{cursor:"pointer",bg:T?"chakra-subtle-bg":void 0,_hover:{bg:"chakra-subtle-bg"},onClick:()=>C(j),children:[s.jsx(He,{fontFamily:"mono",children:s.jsxs(be,{spacing:2,children:[s.jsx(wt,{as:uh,boxSize:3,color:"gray.400",transform:T?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(K,{children:j.namespace})]})}),s.jsx(He,{children:j.username||s.jsx(K,{color:"gray.400",children:"—"})}),s.jsx(He,{children:s.jsx(on,{colorScheme:sh(j.status),children:lh(j.status)})}),s.jsx(He,{children:s.jsxs(be,{spacing:1,children:[j.status==="ready"?s.jsx(Oi,{href:j.url,color:"primary.500",isExternal:!0,onClick:E=>E.stopPropagation(),children:j.url}):s.jsx(K,{color:"gray.400",children:"—"}),s.jsx(Cn,{"aria-label":"Modifier le domaine",icon:s.jsx(ud,{}),size:"xs",variant:"ghost",onClick:E=>{E.stopPropagation(),h(j)}})]})}),s.jsx(He,{textAlign:"right",children:s.jsx(be,{justify:"flex-end",children:P(j)})})]}),s.jsx(Kn,{children:s.jsx(He,{p:0,border:T?void 0:"none",colSpan:5,children:s.jsx(Al,{in:T,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(ae,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:v&&!x?s.jsx(ln,{size:"sm"}):x?s.jsx(ch,{state:x.state}):s.jsx(K,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},j.id)})})]})}),s.jsx(Pe,{spacing:3,display:{base:"flex",md:"none"},children:n.map(j=>s.jsx(u7,{demo:j,isOpen:g===j.id,onToggle:()=>C(j),detailsLoading:v,details:g===j.id?x:null,onEditDomain:()=>h(j),actions:P(j)},j.id))})]}),s.jsxs(Uc,{isOpen:!!c,title:"Détruire la plateforme premium ?",confirmLabel:"Détruire",isLoading:!!c&&a===c.id,onConfirm:k,onClose:()=>u(null),children:["La plateforme"," ",s.jsx(K,{as:"span",fontFamily:"mono",fontWeight:"semibold",children:c==null?void 0:c.namespace})," ","et toutes ses données (client payant) seront supprimées définitivement. Cette action est irréversible."]}),s.jsx(c7,{demo:p,onClose:()=>h(null),onSaved:()=>void w()})]})}const Cue=1e4;function jk(e){if(!e)return"—";const t=new Date(e);return Number.isNaN(t.getTime())?"—":t.toLocaleDateString("fr-FR",{day:"2-digit",month:"long",year:"numeric"})}function jue(e){if(!e)return null;const t=new Date(e);return Number.isNaN(t.getTime())?null:Math.ceil((t.getTime()-Date.now())/(1e3*60*60*24))}function Pue(){const e=Tn(),t=Wn(),[n,r]=m.useState([]),[i,o]=m.useState([]),[a,l]=m.useState(!0),[c,u]=m.useState(null),[d,f]=m.useState(""),[p,h]=m.useState(null),g=m.useCallback(async()=>{try{const[y,v]=await Promise.all([je.listCodes(),je.listPremiumUsers()]);r(y.items??[]),o(v.items??[])}catch(y){y instanceof Ee&&y.status===401?t("/admin/login"):e({status:"error",title:"Chargement des codes impossible"})}finally{l(!1)}},[t,e]);m.useEffect(()=>{g();const y=setInterval(()=>void g(),Cue);return()=>clearInterval(y)},[g]);const b=async y=>{if(y.preventDefault(),!d.trim()){e({status:"error",title:"Veuillez entrer un nom d'utilisateur"});return}u("generate");try{const v=await je.createCode(d.trim());h(v.code),f(""),e({status:"success",title:"Code généré avec succès !"}),await g()}catch(v){const S=v instanceof Ee?v.message:"Erreur";e({status:"error",title:"Génération impossible",description:S})}finally{u(null)}},x=async y=>{try{await navigator.clipboard.writeText(y),e({status:"success",title:"Code copié dans le presse-papiers !"})}catch{const S=document.createElement("textarea");S.value=y,S.style.position="fixed",S.style.opacity="0",document.body.appendChild(S),S.select();const w=document.execCommand("copy");document.body.removeChild(S),e(w?{status:"success",title:"Code copié dans le presse-papiers !"}:{status:"error",title:"Impossible de copier. Essayez manuellement."})}};return s.jsxs(s.Fragment,{children:[s.jsxs(gt,{mb:6,align:"center",children:[s.jsx(dt,{size:"md",children:"Gestion des codes de souscription"}),s.jsx(Fi,{})]}),s.jsx(ae,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:s.jsx("form",{onSubmit:b,children:s.jsxs(nd,{spacing:4,align:"stretch",children:[s.jsxs(Pe,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[s.jsxs(we,{isRequired:!0,children:[s.jsx(ke,{children:"Nom d\\'utilisateur"}),s.jsx(mt,{type:"text",value:d,onChange:y=>f(y.target.value),placeholder:"Entrez le nom d'utilisateur",isDisabled:c==="generate",maxLength:64})]}),s.jsx(he,{colorScheme:"primary",type:"submit",isLoading:c==="generate",mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},children:"Générer un code"})]}),p&&s.jsxs(ae,{p:4,bg:"gray.900",borderRadius:"md",borderWidth:"1px",borderColor:"whiteAlpha.200",children:[s.jsxs(K,{fontSize:"sm",color:"gray.400",mb:2,children:["Code généré pour ",s.jsx("strong",{children:d})," :"]}),s.jsxs(be,{children:[s.jsx(K,{fontFamily:"mono",fontSize:"xl",fontWeight:"bold",letterSpacing:"widest",children:p}),s.jsx(he,{size:"sm",variant:"outline",onClick:()=>x(p),children:"Copier"})]})]})]})})}),s.jsx(dt,{size:"sm",mb:3,children:"Codes générés (non encore utilisés)"}),a?s.jsx(ln,{}):n.length===0?s.jsx(K,{color:"gray.500",children:"Aucun code de souscription généré."}):s.jsx(Pu,{borderWidth:"1px",borderRadius:"lg",children:s.jsxs(yl,{children:[s.jsx(Tu,{children:s.jsxs(Kn,{children:[s.jsx(Je,{children:"ID"}),s.jsx(Je,{children:"Utilisateur"}),s.jsx(Je,{children:"Code"}),s.jsx(Je,{children:"Date de création"}),s.jsx(Je,{})]})}),s.jsx(_u,{children:n.map(y=>s.jsxs(Kn,{children:[s.jsxs(He,{fontFamily:"mono",fontSize:"sm",children:[y.id.slice(0,8),"..."]}),s.jsx(He,{children:s.jsx(on,{colorScheme:"gray",px:2,py:1,children:y.username})}),s.jsx(He,{fontFamily:"mono",letterSpacing:"wide",children:y.code_verif}),s.jsx(He,{fontSize:"sm",color:"gray.400",children:new Date(y.created_at).toLocaleString("fr-FR")}),s.jsx(He,{textAlign:"right",children:s.jsx(he,{size:"sm",variant:"outline",onClick:()=>x(y.code_verif),children:"Copier"})})]},y.id))})]})}),s.jsx(dt,{size:"sm",mt:10,mb:3,children:"Clients premium"}),a?s.jsx(ln,{}):i.length===0?s.jsx(K,{color:"gray.500",children:"Aucun client premium pour le moment."}):s.jsx(Pu,{borderWidth:"1px",borderRadius:"lg",children:s.jsxs(yl,{children:[s.jsx(Tu,{children:s.jsxs(Kn,{children:[s.jsx(Je,{children:"Client"}),s.jsx(Je,{children:"Code activé le"}),s.jsx(Je,{children:"Abonnement expire le"}),s.jsx(Je,{children:"Statut"})]})}),s.jsx(_u,{children:i.map(y=>{const v=jue(y.expired_at);return s.jsxs(Kn,{children:[s.jsx(He,{children:s.jsx(on,{colorScheme:"purple",px:2,py:1,children:y.username})}),s.jsx(He,{fontSize:"sm",color:"gray.400",children:jk(y.activated_at)}),s.jsx(He,{fontSize:"sm",color:"gray.400",children:jk(y.expired_at)}),s.jsx(He,{children:v===null?s.jsx(K,{color:"gray.400",children:"—"}):v<0?s.jsx(on,{colorScheme:"red",children:"Expiré"}):s.jsxs(on,{colorScheme:v<=7?"orange":"green",children:[v," j restant",v>1?"s":""]})})]},y.username)})})]})})]})}const tg=12;function _ue({isOpen:e,onClose:t,onCreated:n}){const r=Tn(),[i,o]=m.useState(""),[a,l]=m.useState(1),[c,u]=m.useState(""),[d,f]=m.useState(""),[p,h]=m.useState(1),[g,b]=m.useState(!1),x=/^[A-Za-z0-9]{3,64}$/.test(c),y=i.trim().length>0&&x&&d.length>=tg&&p>=1,v=()=>{o(""),l(1),u(""),f(""),h(1)},S=()=>{g||(v(),t())},w=async()=>{b(!0);try{await je.createProject({clientName:i.trim(),months:a,adminUsername:c,adminPassword:d,adminNumber:p}),r({status:"success",title:"Déploiement lancé",description:`Abonnement de ${Mu(a)}`}),v(),n(),t()}catch(k){const C=k instanceof Ee?k.message:"Erreur";r({status:"error",title:"Déploiement impossible",description:C})}finally{b(!1)}};return s.jsxs(Wa,{isOpen:e,onClose:S,closeOnOverlayClick:!g,children:[s.jsx(Fo,{}),s.jsxs($l,{children:[s.jsx(Oo,{children:"Déployer un projet"}),s.jsx(Ua,{isDisabled:g}),s.jsx(Do,{children:s.jsxs(Pe,{spacing:4,children:[s.jsxs(we,{isRequired:!0,children:[s.jsx(ke,{fontSize:"sm",children:"Client"}),s.jsx(mt,{value:i,maxLength:64,onChange:k=>o(k.target.value),isDisabled:g})]}),s.jsxs(we,{isRequired:!0,children:[s.jsx(ke,{fontSize:"sm",children:"Durée de l'abonnement"}),s.jsx(Wm,{value:a,onChange:k=>l(Number(k.target.value)),isDisabled:g,children:s7.map(k=>s.jsx("option",{value:k,children:Mu(k)},k))}),s.jsx(Qr,{children:"Durée réellement payée par le client. À l'échéance le projet est supprimé s'il n'est pas renouvelé."})]}),s.jsxs(we,{isRequired:!0,isInvalid:c!==""&&!x,children:[s.jsx(ke,{fontSize:"sm",children:"Identifiant admin du projet"}),s.jsx(mt,{value:c,maxLength:64,onChange:k=>u(k.target.value),isDisabled:g,autoComplete:"off"}),s.jsx(Qr,{children:"3 à 64 caractères alphanumériques."})]}),s.jsxs(we,{isRequired:!0,isInvalid:d!==""&&d.lengthf(k.target.value),isDisabled:g,autoComplete:"new-password"}),s.jsxs(Qr,{children:[tg," caractères minimum. Il n'est pas conservé par Omnex."]})]}),s.jsxs(we,{isRequired:!0,children:[s.jsx(ke,{fontSize:"sm",children:"Nombre d'admins autorisés"}),s.jsxs(kT,{min:1,max:20,value:p,onChange:(k,C)=>h(Number.isNaN(C)?1:C),isDisabled:g,children:[s.jsx(jT,{}),s.jsxs(CT,{children:[s.jsx(TT,{}),s.jsx(_T,{})]})]}),s.jsx(Qr,{children:"Nombre maximum de comptes admin dans le projet (1 à 20)."})]})]})}),s.jsxs(zl,{children:[s.jsx(he,{variant:"ghost",mr:3,onClick:S,isDisabled:g,children:"Annuler"}),s.jsx(he,{colorScheme:"primary",onClick:w,isLoading:g,isDisabled:!y,children:"Déployer"})]})]})]})}function Tue({project:e,onClose:t,onExtended:n}){const r=Tn(),[i,o]=m.useState(1),[a,l]=m.useState(!1);m.useEffect(()=>{o(1)},[e]);const c=()=>{a||t()},u=async()=>{if(e){l(!0);try{await je.extendProject(e.id,i),r({status:"success",title:`Abonnement prolongé de ${Mu(i)}`}),n(),t()}catch(d){const f=d instanceof Ee?d.message:"Erreur";r({status:"error",title:"Renouvellement impossible",description:f})}finally{l(!1)}}};return s.jsxs(Wa,{isOpen:!!e,onClose:c,closeOnOverlayClick:!a,children:[s.jsx(Fo,{}),s.jsxs($l,{children:[s.jsx(Oo,{children:"Renouveler l'abonnement"}),s.jsx(Ua,{isDisabled:a}),s.jsx(Do,{children:s.jsxs(we,{children:[s.jsxs(ke,{fontSize:"sm",children:["Mois à ajouter — ",e==null?void 0:e.client_name]}),s.jsx(Wm,{value:i,onChange:d=>o(Number(d.target.value)),isDisabled:a,children:s7.map(d=>s.jsx("option",{value:d,children:Mu(d)},d))}),s.jsx(Qr,{children:"Les mois s'ajoutent à l'échéance actuelle."})]})}),s.jsxs(zl,{children:[s.jsx(he,{variant:"ghost",mr:3,onClick:c,isDisabled:a,children:"Annuler"}),s.jsx(he,{colorScheme:"primary",onClick:u,isLoading:a,children:"Renouveler"})]})]})]})}const Eue=5e3,Aue=5e3;function $ue(){const e=Tn(),t=Wn(),[n,r]=m.useState([]),[i,o]=m.useState(!0),[a,l]=m.useState(null),[c,u]=m.useState(!1),[d,f]=m.useState(null),[p,h]=m.useState(null),[g,b]=m.useState(null),[x,y]=m.useState(null),[v,S]=m.useState(!1),w=m.useCallback(async()=>{try{const T=await je.listProjects();r((T.items??[]).filter(E=>E.status!=="deleted"))}catch(T){T instanceof Ee&&T.status===401?t("/admin/login"):e({status:"error",title:"Chargement des projets impossible"})}finally{o(!1)}},[t,e]);m.useEffect(()=>{w();const T=setInterval(()=>void w(),Eue);return()=>clearInterval(T)},[w]);const k=async()=>{if(!p)return;const T=p;l(T.id);try{await je.deleteProject(T.id),e({status:"success",title:"Projet supprimé"}),h(null),await w()}catch(E){const F=E instanceof Ee?E.message:"Erreur";e({status:"error",title:"Suppression impossible",description:F})}finally{l(null)}},C=T=>T.status==="ready"||T.status==="provisioning",P=async T=>{if(C(T)){if(g===T.id){b(null),y(null);return}b(T.id),y(null),S(!0);try{y(await je.getProjectDetails(T.id))}catch(E){const F=E instanceof Ee?E.message:"Erreur";e({status:"error",title:"État des pods indisponible",description:F}),b(null)}finally{S(!1)}}};m.useEffect(()=>{if(!g)return;const T=setInterval(()=>{je.getProjectDetails(g).then(y).catch(()=>{})},Aue);return()=>clearInterval(T)},[g]),m.useEffect(()=>{if(!g)return;const T=n.find(E=>E.id===g);(!T||!C(T))&&(b(null),y(null))},[n,g]);const j=T=>s.jsxs(K,{fontSize:"sm",children:[fue(T.expires_at)," · ",gy(T.expires_at)]});return s.jsxs(ae,{p:{base:4,md:8},children:[s.jsxs(gt,{mb:6,align:"center",gap:3,children:[s.jsx(dt,{size:"md",children:"Projets"}),s.jsx(Fi,{}),s.jsx(he,{colorScheme:"primary",onClick:()=>u(!0),children:"Déployer un projet"})]}),i?s.jsx(ln,{}):n.length===0?s.jsx(K,{color:"gray.500",children:"Aucun projet déployé."}):s.jsx(Pu,{children:s.jsxs(yl,{size:"sm",children:[s.jsx(Tu,{children:s.jsxs(Kn,{children:[s.jsx(Je,{children:"Client"}),s.jsx(Je,{children:"Statut"}),s.jsx(Je,{children:"Adresse"}),s.jsx(Je,{children:"Abonnement"}),s.jsx(Je,{children:"Échéance"}),s.jsx(Je,{children:"Admins"}),s.jsx(Je,{})]})}),s.jsx(_u,{children:n.map(T=>{const E=a===T.id,F=C(T),Y=g===T.id;return s.jsxs(m.Fragment,{children:[s.jsxs(Kn,{cursor:C(T)?"pointer":void 0,_hover:C(T)?{bg:"chakra-subtle-bg"}:void 0,onClick:()=>void P(T),children:[s.jsx(He,{children:s.jsxs(be,{spacing:2,children:[C(T)&&s.jsx(wt,{as:uh,boxSize:3,color:"gray.400",transform:Y?"rotate(90deg)":void 0,transition:"transform 0.15s"}),s.jsx(K,{children:T.client_name})]})}),s.jsx(He,{children:s.jsx(on,{colorScheme:pue(T.status),children:mue(T.status)})}),s.jsx(He,{children:s.jsx(Oi,{href:T.url,isExternal:!0,fontFamily:"mono",fontSize:"sm",onClick:q=>q.stopPropagation(),children:T.host})}),s.jsxs(He,{children:[Mu(T.months_purchased)," au total"]}),s.jsx(He,{children:j(T)}),s.jsxs(He,{children:[T.admin_username," · max ",T.admin_number]}),s.jsx(He,{children:s.jsxs(rx,{justify:"flex-end",spacing:2,children:[s.jsx(he,{size:"xs",colorScheme:"primary",isDisabled:!F||E,onClick:q=>{q.stopPropagation(),f(T)},children:"Renouveler"}),s.jsx(he,{size:"xs",variant:"outline",colorScheme:"red",isDisabled:T.status==="deleting"||E,onClick:q=>{q.stopPropagation(),h(T)},children:"Supprimer"})]})})]}),s.jsx(Kn,{children:s.jsx(He,{p:0,border:Y?void 0:"none",colSpan:7,children:s.jsx(Al,{in:Y,unmountOnExit:!0,animateOpacity:!0,children:s.jsx(ae,{p:4,bg:"chakra-subtle-bg",borderTopWidth:"1px",children:v&&!x?s.jsx(gt,{justify:"center",py:4,children:s.jsx(ln,{size:"sm"})}):x?s.jsx(ch,{state:x.state}):s.jsx(K,{color:"gray.500",fontSize:"sm",children:"Aucune donnée."})})})})})]},T.id)})})]})}),s.jsx(_ue,{isOpen:c,onClose:()=>u(!1),onCreated:()=>void w()}),s.jsx(Tue,{project:d,onClose:()=>f(null),onExtended:()=>void w()}),s.jsxs(Uc,{isOpen:!!p,title:"Supprimer le projet",confirmLabel:"Supprimer définitivement",confirmColorScheme:"red",isLoading:a===(p==null?void 0:p.id),onConfirm:()=>void k(),onClose:()=>h(null),children:["Le projet de ",p==null?void 0:p.client_name," sera supprimé immédiatement, avec ses données et ses sauvegardes. Cette action est irréversible."]})]})}function zue(){const e=Tn(),t=Wn(),[n,r]=m.useState(null),[i,o]=m.useState(null),[a,l]=m.useState(!0),[c,u]=m.useState(!1),[d,f]=m.useState(""),[p,h]=m.useState(!1),g=m.useCallback(async()=>{try{const S=await je.me();r(S.type_abonnement??null),o(S.expired_at?new Date(S.expired_at):null)}catch(S){S instanceof Ee&&S.status===401?t("/login"):e({status:"error",title:"Chargement de l'abonnement impossible"})}finally{l(!1)}},[t,e]);m.useEffect(()=>{g()},[g]);const b=async S=>{if(S.preventDefault(),!d.trim()){e({status:"error",title:"Veuillez entrer un code"});return}u(!0);try{await je.addCode(d.trim()),e({status:"success",title:"Abonnement premium activé !"}),f(""),h(!1),await g()}catch(w){const k=w instanceof Ee?w.message:"Erreur";e({status:"error",title:"Code invalide",description:k})}finally{u(!1)}},x=n==="premium",y=!x||p,v=i?Math.ceil((i.getTime()-Date.now())/(1e3*60*60*24)):null;return s.jsxs(s.Fragment,{children:[s.jsxs(gt,{mb:6,align:"center",children:[s.jsx(dt,{size:"md",children:"Mon abonnement"}),s.jsx(Fi,{})]}),s.jsx(ae,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:a?s.jsx(ln,{}):s.jsxs(nd,{align:"stretch",spacing:4,children:[s.jsxs(be,{flexWrap:"wrap",rowGap:2,children:[s.jsx(K,{color:"gray.400",children:"Statut actuel :"}),s.jsx(on,{colorScheme:x?"purple":"gray",px:2,py:1,children:x?"Premium":"Demo"}),x&&!p&&s.jsx(he,{size:"sm",variant:"link",ml:2,whiteSpace:"normal",textAlign:"left",onClick:()=>h(!0),children:"Renouveler avec un nouveau code"})]}),x&&i&&s.jsx(K,{fontSize:"sm",color:v!==null&&v<=5?"orange.400":"gray.400",children:v!==null&&v>0?`Expire dans ${v} jour${v>1?"s":""} (le ${i.toLocaleDateString("fr-FR")})`:`Expiré depuis le ${i.toLocaleDateString("fr-FR")}`}),y&&s.jsx("form",{onSubmit:b,children:s.jsxs(Pe,{direction:{base:"column",sm:"row"},align:{base:"stretch",sm:"center"},gap:4,children:[s.jsxs(we,{isRequired:!0,children:[s.jsx(ke,{children:x?"Nouveau code de renouvellement":"Code de souscription"}),s.jsx(mt,{type:"text",value:d,onChange:S=>f(S.target.value.toUpperCase()),placeholder:"XXXX-XXXX-XXXX-XXXX",isDisabled:c,fontFamily:"mono",letterSpacing:"wide"})]}),s.jsxs(be,{flexShrink:0,children:[s.jsx(he,{colorScheme:"primary",type:"submit",isLoading:c,mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},children:x?"Renouveler":"Activer"}),x&&s.jsx(he,{variant:"ghost",mt:{base:0,sm:6},h:"40px",flexShrink:0,w:{base:"full",sm:"auto"},onClick:()=>{h(!1),f("")},isDisabled:c,children:"Annuler"})]})]})})]})})]})}const Iue=()=>s.jsx(ae,{as:"svg",w:"16px",h:"16px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:s.jsx(ae,{as:"path",d:"M12 3v12m0 0-4-4m4 4 4-4M5 21h14"})});function Rue(){const e=Tn(),t=Wn(),[n,r]=m.useState([]),[i,o]=m.useState(!1),[a,l]=m.useState(!0),c=m.useCallback(async()=>{try{const u=await je.listAppDownloads();r(u.items??[]),o(u.eligible)}catch(u){u instanceof Ee&&u.status===401?t("/login"):e({status:"error",title:"Chargement des applications impossible"})}finally{l(!1)}},[t,e]);return m.useEffect(()=>{c()},[c]),s.jsxs(s.Fragment,{children:[s.jsxs(gt,{mb:6,align:"center",children:[s.jsx(dt,{size:"md",children:"Applications"}),s.jsx(Fi,{})]}),s.jsx(ae,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:a?s.jsx(ln,{}):i?n.length===0?s.jsx(K,{color:"gray.500",children:"Aucune application disponible pour le moment."}):s.jsx(nd,{align:"stretch",spacing:3,children:n.map(u=>s.jsxs(be,{justify:"space-between",flexWrap:"wrap",rowGap:2,children:[s.jsxs(Pe,{spacing:0,children:[s.jsx(K,{fontFamily:"mono",children:u.name}),s.jsx(K,{fontSize:"sm",color:"gray.500",children:due(u.size_bytes)})]}),s.jsx(he,{as:"a",href:rue(u.name),download:u.name,size:"sm",colorScheme:"primary",leftIcon:s.jsx(Iue,{}),children:"Télécharger"})]},u.name))}):s.jsx(K,{color:"gray.500",children:"Le téléchargement des applications nécessite une démo ou un abonnement actif."})})]})}function Pk(e){return e==="admin"?"Administrateur":"Client"}function Mue(e){return e==="admin"?"purple":"blue"}function Lue(e){const t=(e==null?void 0:e.toLowerCase())??"";return t.includes("premium")||t.includes("pro")?"green":t.includes("expired")||t===""?"red":"gray"}function Nue(e){if(!e)return"—";const t=new Date(e);return Number.isNaN(t.getTime())?"—":t.toLocaleDateString("fr-FR",{day:"2-digit",month:"long",year:"numeric"})}function ng(){const{isEditing:e,getSubmitButtonProps:t,getCancelButtonProps:n,getEditButtonProps:r}=eK();return e?s.jsxs(Lm,{size:"sm",spacing:1,children:[s.jsx(Cn,{"aria-label":"Enregistrer",icon:s.jsx(a7,{}),...t()}),s.jsx(Cn,{"aria-label":"Annuler",icon:s.jsx(o7,{}),...n()})]}):s.jsx(Cn,{"aria-label":"Modifier le nom d'utilisateur",size:"sm",variant:"ghost",icon:s.jsx(ud,{}),...r()})}function Due(){const e=Tn(),t=Wn(),{logout:n}=Wo(),[r,i]=m.useState(null),[o,a]=m.useState(!0),[l,c]=m.useState(!1),[u,d]=m.useState(!1),[f,p]=m.useState(!1),[h,g]=m.useState(!1),[b,x]=m.useState(""),[y,v]=m.useState(""),[S,w]=m.useState(!1),[k,C]=m.useState(!1),[P,j]=m.useState(""),[T,E]=m.useState(""),[F,Y]=m.useState(""),[q,M]=m.useState(!1),[N,D]=m.useState(!1);m.useEffect(()=>{let Q=!1;return(async()=>{try{const[oe,ce]=await Promise.all([je.me(),je.getTelegram()]);if(Q)return;if(i(oe),v(ce.telegram??""),oe.role==="admin"){const Me=await je.getAlertSettings();if(Q)return;j(Me.discord_webhook_url),E(Me.telegram_bot_token),Y(Me.telegram_chat_id)}}catch(oe){if(oe instanceof Ee&&oe.status===401){t("/login");return}e({status:"error",title:"Impossible de charger le profil"})}finally{Q||a(!1)}})(),()=>{Q=!0}},[t,e]);const R=async()=>{M(!0);try{const Q=await je.setAlertSettings({discord_webhook_url:P.trim(),telegram_bot_token:T.trim(),telegram_chat_id:F.trim()});j(Q.discord_webhook_url),E(Q.telegram_bot_token),Y(Q.telegram_chat_id),e({status:"success",title:"Alertes enregistrées"})}catch(Q){if(Q instanceof Ee&&Q.status===401){t("/login");return}e({status:"error",title:"Impossible d'enregistrer les alertes",description:Q instanceof Ee?Q.message:void 0})}finally{M(!1)}},I=async()=>{D(!0);try{const Q=await je.testAlertSettings({discord_webhook_url:P.trim(),telegram_bot_token:T.trim(),telegram_chat_id:F.trim()}),oe=[Q.discord&&{label:"Discord",...Q.discord},Q.telegram&&{label:"Telegram",...Q.telegram}].filter(ce=>!!ce);oe.every(ce=>ce.ok)?e({status:"success",title:"Notification de test envoyée",description:oe.map(ce=>ce.label).join(" et ")}):e({status:"error",title:"Échec du test",description:oe.filter(ce=>!ce.ok).map(ce=>`${ce.label} : ${ce.error}`).join(" — ")})}catch(Q){if(Q instanceof Ee&&Q.status===401){t("/login");return}e({status:"warning",title:"Test impossible",description:Q instanceof Ee?Q.message:void 0})}finally{D(!1)}},L=async Q=>{const oe=Q.trim();if(!(!r||!oe||oe===r.username)){d(!0);try{const ce=await je.updateUsername(oe);i({...r,username:ce.username}),e({status:"success",title:"Nom d'utilisateur mis à jour"})}catch(ce){if(ce instanceof Ee&&ce.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le nom d'utilisateur",description:ce instanceof Ee?ce.message:void 0})}finally{d(!1)}}},H=async()=>{const Q=b.trim();if(Q.length<8){e({status:"warning",title:"Le mot de passe doit contenir au moins 8 caractères"});return}p(!0);try{await je.updatePassword(Q),e({status:"success",title:"Mot de passe mis à jour"}),g(!1),x("")}catch(oe){if(oe instanceof Ee&&oe.status===401){t("/login");return}e({status:"error",title:"Impossible de mettre à jour le mot de passe",description:oe instanceof Ee?oe.message:void 0})}finally{p(!1)}},Z=()=>{x(""),g(!1)},le=async Q=>{const oe=Q.trim();if(!oe){C(!1);return}w(!0);try{const ce=await je.setTelegram(oe);v(ce.telegram),C(!1),e({status:"success",title:"Telegram enregistré"})}catch(ce){if(ce instanceof Ee&&ce.status===401){t("/login");return}e({status:"error",title:"Impossible d'enregistrer le Telegram",description:ce instanceof Ee?ce.message:void 0})}finally{w(!1)}},ie=async()=>{c(!0);try{await je.logout(),n==null||n(),t("/login")}catch{e({status:"error",title:"Déconnexion impossible"})}finally{c(!1)}};return s.jsx(ae,{bg:"chakra-subtle-bg",py:{base:10,md:14},minH:"100%",children:s.jsxs(yn,{maxW:"container.md",children:[s.jsxs(Pe,{spacing:3,mb:8,children:[s.jsx(dt,{size:"lg",children:"Mon profil"}),s.jsx(K,{color:"gray.400",fontSize:"md",children:"Informations de votre compte et de votre abonnement."})]}),s.jsx(ae,{bg:"bg-surface",borderWidth:"1px",borderColor:"chakra-border-color",borderRadius:"xl",p:{base:6,md:10},boxShadow:"lg",children:o?s.jsx(gt,{justify:"center",py:10,children:s.jsx(ln,{})}):r?s.jsxs(Pe,{spacing:8,children:[s.jsxs(gt,{align:"center",gap:5,wrap:"wrap",children:[s.jsx(kb,{name:r.username,size:"xl"}),s.jsxs(ae,{children:[s.jsx(Bf,{defaultValue:r.username,onSubmit:L,isDisabled:u,submitOnBlur:!1,children:s.jsxs(be,{spacing:2,children:[s.jsx(Wf,{as:dt,size:"md",fontFamily:"mono"}),s.jsx(Vf,{fontFamily:"mono",fontSize:"md",fontWeight:"bold"}),s.jsx(ng,{})]})},r.username),s.jsxs(be,{mt:2,spacing:2,children:[s.jsx(on,{colorScheme:Mue(r.role),children:Pk(r.role)}),r.type_abonnement&&s.jsx(on,{colorScheme:Lue(r.type_abonnement),children:r.type_abonnement})]})]})]}),s.jsx(xa,{borderColor:"chakra-border-color"}),s.jsxs(jn,{columns:{base:1,sm:2},spacing:6,children:[s.jsxs(ta,{children:[s.jsx(na,{children:"Identifiant"}),s.jsx(Qi,{fontSize:"md",fontFamily:"mono",children:r.user_id})]}),s.jsxs(ta,{children:[s.jsx(na,{children:"Rôle"}),s.jsx(Qi,{fontSize:"md",children:Pk(r.role)})]}),s.jsxs(ta,{children:[s.jsx(na,{children:"Type d'abonnement"}),s.jsx(Qi,{fontSize:"md",children:r.type_abonnement||"—"})]}),s.jsxs(ta,{children:[s.jsx(na,{children:"Mot de passe"}),h?s.jsxs(be,{spacing:2,children:[s.jsx(Jt,{size:"sm",fontFamily:"mono",fontSize:"md",value:b,onChange:Q=>x(Q.target.value),isDisabled:f,autoFocus:!0}),s.jsxs(Lm,{size:"sm",spacing:1,children:[s.jsx(Cn,{"aria-label":"Enregistrer",icon:s.jsx(a7,{}),isLoading:f,onClick:H}),s.jsx(Cn,{"aria-label":"Annuler",icon:s.jsx(o7,{}),isDisabled:f,onClick:Z})]})]}):s.jsxs(be,{spacing:2,children:[s.jsx(Qi,{fontSize:"md",fontFamily:"mono",children:"••••••••"}),s.jsx(Cn,{"aria-label":"Modifier le mot de passe",size:"sm",variant:"ghost",icon:s.jsx(ud,{}),onClick:()=>g(!0)})]})]}),s.jsxs(ta,{children:[s.jsx(na,{children:"Telegram"}),y?s.jsx(Bf,{defaultValue:y,onSubmit:le,isDisabled:S,submitOnBlur:!1,children:s.jsxs(be,{spacing:2,children:[s.jsx(Wf,{as:Qi,fontSize:"md",fontFamily:"mono"}),s.jsx(Vf,{fontSize:"md",fontFamily:"mono"}),s.jsx(ng,{})]})},y):k?s.jsx(Bf,{defaultValue:"",placeholder:"@monpseudo",startWithEditView:!0,onSubmit:le,onCancel:()=>C(!1),isDisabled:S,submitOnBlur:!1,children:s.jsxs(be,{spacing:2,children:[s.jsx(Wf,{as:Qi,fontSize:"md",fontFamily:"mono"}),s.jsx(Vf,{fontSize:"md",fontFamily:"mono"}),s.jsx(ng,{})]})}):s.jsx(he,{size:"sm",variant:"outline",onClick:()=>C(!0),children:"Ajouter mon Telegram"})]}),s.jsxs(ta,{children:[s.jsx(na,{children:"Expire le"}),s.jsx(Qi,{fontSize:"md",children:Nue(r.expired_at)})]})]}),r.role==="admin"&&s.jsxs(s.Fragment,{children:[s.jsx(xa,{borderColor:"chakra-border-color"}),s.jsxs(Pe,{spacing:4,children:[s.jsxs(ae,{children:[s.jsx(dt,{size:"sm",children:"Alertes monitoring"}),s.jsx(K,{color:"gray.500",fontSize:"sm",children:"Recevez une notification quand un pod d'une démo tombe en erreur (ou se rétablit). Réglages propres à votre compte."})]}),s.jsxs(we,{children:[s.jsx(ke,{fontSize:"sm",children:"Webhook Discord"}),s.jsx(mt,{fontFamily:"mono",fontSize:"sm",placeholder:"https://discord.com/api/webhooks/...",value:P,onChange:Q=>j(Q.target.value),isDisabled:q})]}),s.jsxs(jn,{columns:{base:1,sm:2},spacing:4,children:[s.jsxs(we,{children:[s.jsx(ke,{fontSize:"sm",children:"Bot Telegram (token)"}),s.jsx(mt,{fontFamily:"mono",fontSize:"sm",placeholder:"123456789:AAExemple...",value:T,onChange:Q=>E(Q.target.value),isDisabled:q})]}),s.jsxs(we,{children:[s.jsx(ke,{fontSize:"sm",children:"Telegram (chat ID)"}),s.jsx(mt,{fontFamily:"mono",fontSize:"sm",placeholder:"-100123456789",value:F,onChange:Q=>Y(Q.target.value),isDisabled:q}),s.jsx(Qr,{children:"Envoyez un message au bot puis récupérez le chat_id via son API."})]})]}),s.jsxs(gt,{justify:"flex-end",gap:2,children:[s.jsx(he,{size:"sm",variant:"outline",isDisabled:!P.trim()&&!(T.trim()&&F.trim()),isLoading:N,onClick:I,children:"Tester les notifications"}),s.jsx(he,{size:"sm",colorScheme:"primary",isLoading:q,onClick:R,children:"Enregistrer les alertes"})]})]})]}),s.jsx(xa,{borderColor:"chakra-border-color"}),s.jsx(gt,{justify:"flex-end",children:s.jsx(he,{colorScheme:"red",variant:"outline",isLoading:l,onClick:ie,children:"Se déconnecter"})})]}):s.jsx(K,{color:"gray.500",children:"Aucune information disponible."})})]})})}function _k(e){const t=Ep("/omnex-blanc.jpg","/omnex-black.jpg");return s.jsx(Z_,{src:t,alt:"Omnex",objectFit:"contain",...e})}const Tk=[{to:"/",label:"Accueil",end:!0},{to:"/tarifs",label:"Tarifs",end:!1},{to:"/documentation",label:"Documentation",end:!1},{to:"/contact",label:"Contact",end:!1}],Oue=()=>s.jsx(ae,{as:"svg",w:"24px",h:"24px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:s.jsx(ae,{as:"path",d:"M3 12h18M3 6h18M3 18h18"})});function Fue(){const{isOpen:e,onOpen:t,onClose:n}=Bu();return s.jsxs(ae,{as:"header",position:"sticky",top:0,zIndex:"sticky",bg:"chakra-body-bg",borderBottomWidth:"1px",backdropFilter:"saturate(180%) blur(6px)",children:[s.jsx(yn,{maxW:"container.lg",children:s.jsxs(gt,{h:16,align:"center",justify:"space-between",children:[s.jsxs(be,{spacing:8,children:[s.jsx(ae,{as:rn,to:"/",display:"flex",alignItems:"center",children:s.jsx(_k,{h:10})}),s.jsx(be,{as:"nav",spacing:1,display:{base:"none",md:"flex"},children:Tk.map(r=>s.jsx(Ek,{to:r.to,end:r.end,children:r.label},r.to))})]}),s.jsxs(be,{spacing:2,display:{base:"none",md:"flex"},children:[s.jsx(Da,{}),s.jsx(he,{as:rn,to:"/login",variant:"ghost",size:"sm",children:"Espace client"}),s.jsx(he,{as:rn,to:"/register",colorScheme:"primary",size:"sm",children:"Créer un compte"})]}),s.jsxs(be,{spacing:1,display:{base:"flex",md:"none"},children:[s.jsx(Da,{}),s.jsx(Cn,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:t,icon:s.jsx(Oue,{})})]})]})}),s.jsxs(ST,{isOpen:e,placement:"right",onClose:n,size:"xs",children:[s.jsx(Fo,{}),s.jsxs(ex,{bg:"chakra-body-bg",children:[s.jsx(Ua,{size:"lg"}),s.jsx(Oo,{borderBottomWidth:"1px",children:s.jsx(_k,{h:9})}),s.jsxs(Do,{py:6,children:[s.jsx(Pe,{as:"nav",spacing:1,children:Tk.map(r=>s.jsx(Ek,{to:r.to,end:r.end,onClick:n,mobile:!0,children:r.label},r.to))}),s.jsx(xa,{my:6}),s.jsxs(Pe,{spacing:3,children:[s.jsx(he,{as:rn,to:"/login",variant:"outline",justifyContent:"flex-start",onClick:n,children:"Espace client"}),s.jsx(he,{as:rn,to:"/register",colorScheme:"primary",justifyContent:"flex-start",onClick:n,children:"Créer un compte"})]})]})]})]})]})}function Ek({to:e,end:t,children:n,onClick:r,mobile:i=!1}){return s.jsx(he,{as:z8,to:e,end:t,size:i?"lg":"sm",variant:"ghost",justifyContent:i?"flex-start":"center",onClick:r,_activeLink:{fontWeight:"bold",color:"primary.500"},children:n})}function Bue(){return s.jsx(ae,{as:"footer",borderTopWidth:"1px",mt:20,bg:"chakra-subtle-bg",children:s.jsxs(yn,{maxW:"container.lg",py:12,children:[s.jsxs(jn,{columns:{base:1,md:4},spacing:8,children:[s.jsxs(Pe,{spacing:3,children:[s.jsx(K,{fontWeight:"bold",fontSize:"lg",children:"Omnex"}),s.jsx(K,{fontSize:"sm",color:"gray.500",children:"Plateforme de gestion de commandes & livraison."})]}),s.jsxs(Vue,{title:"Produit",children:[s.jsx(df,{to:"/",children:"Présentation"}),s.jsx(df,{to:"/tarifs",children:"Tarifs"}),s.jsx(df,{to:"/register",children:"Créer un compte"}),s.jsx(df,{to:"/documentation",children:"Documentation"})]})]}),s.jsx(xa,{my:8}),s.jsxs(be,{justify:"space-between",flexWrap:"wrap",spacing:4,children:[s.jsxs(K,{fontSize:"sm",color:"gray.500",children:["© ",new Date().getFullYear()," Omnex. Tous droits réservés."]}),s.jsxs(be,{spacing:6,fontSize:"sm",color:"gray.500",children:[s.jsx(Ak,{href:"#",children:"Mentions légales"}),s.jsx(Ak,{href:"#",children:"Confidentialité"})]})]})]})})}function Vue({title:e,children:t}){return s.jsxs(Pe,{spacing:2,children:[s.jsx(K,{fontWeight:"semibold",fontSize:"sm",textTransform:"uppercase",color:"gray.500",children:e}),t]})}function df({to:e,children:t}){return s.jsx(Oi,{as:rn,to:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function Ak({href:e,children:t}){return s.jsx(Oi,{href:e,fontSize:"sm",color:"gray.600",_hover:{color:"primary.500"},children:t})}function Wue(){return s.jsxs(gt,{direction:"column",minH:"100vh",children:[s.jsx(Fue,{}),s.jsx(ae,{as:"main",flex:"1",children:s.jsx(A8,{})}),s.jsx(Bue,{})]})}const Uue=()=>s.jsx(ae,{as:"svg",w:"20px",h:"20px",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:s.jsx(ae,{as:"path",d:"M3 12h18M3 6h18M3 18h18"})}),$k="https://t.me/OMNEX_CORP";function Hue(){const[e,t]=m.useState(null),{logout:n,isAdmin:r,isClient:i}=Wo(),o=Wn(),{isOpen:a,onOpen:l,onClose:c}=Bu(),u=e==="premium",d=m.useCallback(async()=>{try{const g=await je.me();t(g.type_abonnement??null)}catch(g){g instanceof Ee&&g.status===401&&o("/login")}},[o]);m.useEffect(()=>{d()},[d]);const f=async()=>{const g=r?"/admin/login":"/login";await n(),o(g,{replace:!0})},p=r?"Admin":i?"Client":"Utilisateur",h=r?"purple":"gray";return s.jsxs(ae,{minH:"100vh",bg:"chakra-subtle-bg",overflowX:"hidden",children:[s.jsxs(gt,{as:"header",px:6,py:3,borderBottomWidth:"1px",align:"center",gap:6,children:[s.jsxs(dt,{size:"sm",as:rn,to:"/app",children:["Omnex · ",r?"Espace admin":"Espace client"]}),s.jsxs(be,{spacing:1,display:{base:"none",md:"flex"},children:[i&&s.jsx(xn,{to:"/app/subscription",children:"Abonnement"}),i&&s.jsx(xn,{to:"/app/downloads",children:"Applications"}),(r||i)&&s.jsx(xn,{to:"/app/profile",children:"Profile"}),i&&s.jsx(xn,{to:"/app/myservices",children:u?"Ma plateforme":"Ma démo"}),r&&s.jsx(xn,{to:"/app/demos",children:"Démos"}),r&&s.jsx(xn,{to:"/app/premium",children:"Premium"}),r&&s.jsx(xn,{to:"/app/projects",children:"Projets"}),r&&s.jsx(xn,{to:"/app/codes",children:"Codes"})]}),s.jsx(Fi,{}),s.jsxs(be,{spacing:2,display:{base:"none",md:"flex"},children:[s.jsx(on,{colorScheme:h,children:p}),s.jsx(he,{as:"a",href:$k,target:"_blank",rel:"noopener noreferrer",size:"sm",variant:"outline",children:"Support"}),s.jsx(Da,{}),s.jsx(he,{size:"sm",variant:"outline",onClick:f,children:"Déconnexion"})]}),s.jsxs(be,{spacing:1,display:{base:"flex",md:"none"},children:[s.jsx(on,{colorScheme:h,children:p}),s.jsx(Da,{}),s.jsx(Cn,{"aria-label":"Ouvrir le menu",variant:"ghost",onClick:l,icon:s.jsx(Uue,{})})]})]}),s.jsxs(ST,{isOpen:a,placement:"right",onClose:c,size:"xs",children:[s.jsx(Fo,{}),s.jsxs(ex,{bg:"chakra-body-bg",children:[s.jsx(Ua,{size:"lg"}),s.jsxs(Oo,{borderBottomWidth:"1px",fontWeight:"bold",fontSize:"xl",children:["Omnex · ",r?"Espace admin":"Espace client"]}),s.jsxs(Do,{py:6,children:[s.jsxs(Pe,{as:"nav",spacing:1,children:[i&&s.jsx(xn,{to:"/app/subscription",onClick:c,mobile:!0,children:"Abonnement"}),i&&s.jsx(xn,{to:"/app/downloads",onClick:c,mobile:!0,children:"Applications"}),r&&s.jsx(xn,{to:"/app/demos",onClick:c,mobile:!0,children:"Démos"}),r&&s.jsx(xn,{to:"/app/premium",onClick:c,mobile:!0,children:"Premium"}),r&&s.jsx(xn,{to:"/app/projects",onClick:c,mobile:!0,children:"Projets"}),r&&s.jsx(xn,{to:"/app/codes",onClick:c,mobile:!0,children:"Codes"}),(r||i)&&s.jsx(xn,{to:"/app/profile",onClick:c,mobile:!0,children:"Profile"})]}),s.jsx(xa,{my:6}),s.jsxs(Pe,{spacing:3,children:[s.jsx(he,{as:"a",href:$k,target:"_blank",rel:"noopener noreferrer",variant:"outline",justifyContent:"flex-start",onClick:c,children:"Support"}),s.jsx(he,{variant:"outline",justifyContent:"flex-start",onClick:f,children:"Déconnexion"})]})]})]})]}),s.jsx(yn,{maxW:"container.xl",py:8,children:s.jsx(A8,{})})]})}function xn({to:e,children:t,onClick:n,mobile:r=!1}){return s.jsx(he,{as:z8,to:e,size:r?"lg":"sm",variant:"ghost",onClick:n,_activeLink:{fontWeight:"bold",color:"primary.500"},justifyContent:"flex-start",children:t})}function Gue(){return s.jsx(ae,{children:s.jsx(ae,{bgGradient:"linear(to-b, blackAlpha.50, transparent)",py:{base:16,md:24},children:s.jsx(yn,{maxW:"container.lg",children:s.jsxs(Pe,{spacing:6,textAlign:"center",align:"center",children:[s.jsx(dt,{size:"2xl",children:"Contactez-nous"}),s.jsx(K,{fontSize:"xl",color:"gray.600",maxW:"2xl",children:"Une question ? Notre équipe vous répond directement sur Telegram."}),s.jsx(he,{as:"a",href:"https://t.me/OMNEX_CORP",target:"_blank",rel:"noopener noreferrer",colorScheme:"primary",size:"lg",children:"Nous contacter sur Telegram"})]})})})})}function Kue(){const e=Tn(),t=Wn(),[n,r]=m.useState(null),[i,o]=m.useState([]),[a,l]=m.useState(!0),c=m.useCallback(async()=>{try{const f=await je.me();r(f.type_abonnement??null)}catch(f){f instanceof Ee&&f.status===401&&t("/login")}},[t]),u=m.useCallback(async()=>{try{const f=await je.listMyDemos();o(f.items??[])}catch{e({status:"error",title:"Chargement des démos impossible"})}finally{l(!1)}},[e]);m.useEffect(()=>{c(),u()},[c,u]);const d=n==="premium";return s.jsxs(s.Fragment,{children:[s.jsxs(gt,{mb:6,align:"center",children:[s.jsx(dt,{size:"md",children:d?"Ma plateforme":"Ma démo"}),s.jsx(Fi,{})]}),s.jsx(ae,{mb:8,p:6,borderWidth:"1px",borderRadius:"lg",bg:"bg-surface",children:a?s.jsx(ln,{size:"sm"}):i.length===0?s.jsx(K,{color:"gray.500",children:d?"Aucune plateforme pour le moment.":"Aucune démo pour le moment."}):s.jsx(nd,{align:"stretch",spacing:3,children:i.map(f=>s.jsxs(be,{justify:"space-between",flexWrap:"wrap",rowGap:2,children:[f.status==="ready"?s.jsx(Oi,{href:f.url,color:"primary.500",isExternal:!0,fontFamily:"mono",children:f.url}):s.jsx(K,{color:"gray.400",fontFamily:"mono",children:f.url||"—"}),s.jsx(on,{colorScheme:sh(f.status),children:lh(f.status)})]},f.id))})})]})}const que=["/app/demos","/app/premium","/app/projects","/app/codes"];function Xue({children:e}){const{isAuthenticated:t,initializing:n}=Wo(),r=Ga();if(n)return s.jsx(c_,{h:"100vh",children:s.jsx(ln,{})});if(t)return e;const i=que.some(o=>r.pathname.startsWith(o));return s.jsx(Iu,{to:i?"/admin/login":"/login",replace:!0})}function ff({children:e}){const{isAdmin:t}=Wo();return t?e:s.jsx(Iu,{to:"/app/subscription",replace:!0})}function Yue(){const{role:e}=Wo();switch(e){case"admin":return s.jsx(Iu,{to:"/app/demos",replace:!0});default:return s.jsx(Iu,{to:"/app/subscription",replace:!0})}}function Que(){return s.jsxs(xie,{children:[s.jsxs(Rt,{element:s.jsx(Wue,{}),children:[s.jsx(Rt,{path:"/",element:s.jsx(Mie,{})}),s.jsx(Rt,{path:"/tarifs",element:s.jsx(Nie,{})}),s.jsx(Rt,{path:"/documentation",element:s.jsx(nue,{})}),s.jsx(Rt,{path:"/contact",element:s.jsx(Gue,{})})]}),s.jsx(Rt,{path:"/login",element:s.jsx(sue,{})}),s.jsx(Rt,{path:"/admin/login",element:s.jsx(lue,{})}),s.jsx(Rt,{path:"/register",element:s.jsx(cue,{})}),s.jsxs(Rt,{path:"/app",element:s.jsx(Xue,{children:s.jsx(Hue,{})}),children:[s.jsx(Rt,{index:!0,element:s.jsx(Yue,{})}),s.jsx(Rt,{path:"demos",element:s.jsx(ff,{children:s.jsx(xue,{})})}),s.jsx(Rt,{path:"codes",element:s.jsx(ff,{children:s.jsx(Pue,{})})}),s.jsx(Rt,{path:"projects",element:s.jsx(ff,{children:s.jsx($ue,{})})}),s.jsx(Rt,{path:"premium",element:s.jsx(ff,{children:s.jsx(kue,{})})}),s.jsx(Rt,{path:"subscription",element:s.jsx(zue,{})}),s.jsx(Rt,{path:"downloads",element:s.jsx(Rue,{})}),s.jsx(Rt,{path:"profile",element:s.jsx(Due,{})}),s.jsx(Rt,{path:"myservices",element:s.jsx(Kue,{})})]}),s.jsx(Rt,{path:"*",element:s.jsx(Iu,{to:"/",replace:!0})})]})}const Zue={initialColorMode:"system",useSystemColorMode:!1},zk=Eb({config:Zue,colors:{black:"#000000",gray:{50:"#f7f7f8",100:"#e8e8ea",200:"#c5c5c9",300:"#a2a2a9",400:"#7f7f88",500:"#5c5c66",600:"#43434c",700:"#2a2a33",800:"#15151b",900:"#0a0a0f"},midnight:{50:"#e9ebf5",100:"#c7cce6",200:"#a3abd6",300:"#7f8ac6",400:"#5b69b6",500:"#2d3a7d",600:"#232e63",700:"#1a2249",800:"#11172f",900:"#080b16"}},semanticTokens:{colors:{"chakra-body-bg":{_light:"white",_dark:"#000000"},"chakra-subtle-bg":{_light:"gray.50",_dark:"#050508"},"bg-surface":{_light:"white",_dark:"#08080c"},"chakra-body-text":{_light:"gray.800",_dark:"#f5f5f7"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.100"},"primary.50":{default:"purple.50",_dark:"midnight.50"},"primary.100":{default:"purple.100",_dark:"midnight.100"},"primary.200":{default:"purple.200",_dark:"midnight.200"},"primary.300":{default:"purple.300",_dark:"midnight.300"},"primary.400":{default:"purple.400",_dark:"midnight.400"},"primary.500":{default:"purple.500",_dark:"midnight.500"},"primary.600":{default:"purple.600",_dark:"midnight.600"},"primary.700":{default:"purple.700",_dark:"midnight.700"},"primary.800":{default:"purple.800",_dark:"midnight.800"},"primary.900":{default:"purple.900",_dark:"midnight.900"}}},styles:{global:{body:{bg:"chakra-body-bg",color:"chakra-body-text"}}},components:{Card:{baseStyle:{container:{bg:"bg-surface",borderColor:"whiteAlpha.50"}}},Button:{baseStyle:{_dark:{bg:"gray.800",_hover:{bg:"gray.700"}}}},Input:{baseStyle:{field:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200",_focus:{borderColor:"whiteAlpha.400"}}}}},Select:{baseStyle:{field:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200"}}}},Textarea:{baseStyle:{_dark:{bg:"gray.900",borderColor:"whiteAlpha.200"}}},Modal:{baseStyle:{overlay:{_dark:{bg:"blackAlpha.800"}},content:{_dark:{bg:"#08080c"}}}}}},qT);ig.createRoot(document.getElementById("root")).render(s.jsxs(en.StrictMode,{children:[s.jsx(YG,{initialColorMode:zk.config.initialColorMode}),s.jsx(lne,{theme:zk,children:s.jsx(iue,{children:s.jsx(Tie,{children:s.jsx(Que,{})})})})]})); diff --git a/web/dist/index.html b/web/dist/index.html index 7aff736..4545f7e 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -5,7 +5,7 @@ Omnex — Plateforme de gestion de commandes & livraison - +
diff --git a/web/src/App.tsx b/web/src/App.tsx index 19501dc..6372ced 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -3,6 +3,7 @@ import { Center, Spinner } from '@chakra-ui/react' import { Landing } from './pages/Landing' import { Pricing } from './pages/Pricing' import { Documentation } from './pages/Documentation' +import { Vitrine } from './pages/Vitrine' import { Login } from './pages/Login' import { AdminLogin } from './pages/AdminLogin' import { Register } from './pages/Register' @@ -64,6 +65,7 @@ export function App() { } /> } /> } /> + } /> } /> } /> diff --git a/web/src/components/EditDomainModal.tsx b/web/src/components/EditDomainModal.tsx index dd6abc2..1c85e18 100644 --- a/web/src/components/EditDomainModal.tsx +++ b/web/src/components/EditDomainModal.tsx @@ -1,4 +1,4 @@ -import { useEffect, useState } from 'react' +import { useEffect, useState, type ReactNode } from 'react' import { Button, FormControl, @@ -16,15 +16,22 @@ import { } from '@chakra-ui/react' import { api, ApiError, type Demo } from '../lib/api' +// Ce dont le modal a besoin : une démo ou un projet vitrine conviennent. +type DomainTarget = Pick + interface EditDomainModalProps { - demo: Demo | null + demo: DomainTarget | null onClose: () => void onSaved: () => void + // Enregistrement du domaine (défaut : démo). Les projets vitrine passent le leur. + save?: (id: string, domain: string) => Promise + title?: string + helpText?: ReactNode } -// Modal d'édition du domaine public d'une démo — partagé entre le dashboard -// Demos et le dashboard Premium. -export function EditDomainModal({ demo, onClose, onSaved }: EditDomainModalProps) { +// Modal d'édition du domaine public d'une démo ou d'un projet vitrine — +// partagé entre les dashboards Demos, Premium et Projets. +export function EditDomainModal({ demo, onClose, onSaved, save, title, helpText }: EditDomainModalProps) { const toast = useToast() const [domain, setDomain] = useState('') const [saving, setSaving] = useState(false) @@ -42,7 +49,7 @@ export function EditDomainModal({ demo, onClose, onSaved }: EditDomainModalProps if (!demo) return setSaving(true) try { - await api.setDemoDomain(demo.id, domain.trim()) + await (save ?? api.setDemoDomain)(demo.id, domain.trim()) toast({ status: 'success', title: 'Domaine mis à jour' }) onSaved() onClose() @@ -58,7 +65,7 @@ export function EditDomainModal({ demo, onClose, onSaved }: EditDomainModalProps - Domaine de la plateforme + {title ?? 'Domaine de la plateforme'} @@ -71,10 +78,14 @@ export function EditDomainModal({ demo, onClose, onSaved }: EditDomainModalProps fontFamily="mono" /> - Laissez vide pour revenir au domaine par défaut ({demo?.namespace}.<domaine - omnex>). Le DNS du domaine choisi doit pointer vers le cluster, et un certificat - TLS valide doit le couvrir — le certificat wildcard partagé ne couvre que le domaine - par défaut. + {helpText ?? ( + <> + Laissez vide pour revenir au domaine par défaut ({demo?.namespace}.<domaine + omnex>). Le DNS du domaine choisi doit pointer vers le cluster, et un certificat + TLS valide doit le couvrir — le certificat wildcard partagé ne couvre que le + domaine par défaut. + + )} diff --git a/web/src/components/Footer.tsx b/web/src/components/Footer.tsx index 0c1dd69..068d30d 100644 --- a/web/src/components/Footer.tsx +++ b/web/src/components/Footer.tsx @@ -20,6 +20,7 @@ export function Footer() { Tarifs Créer un compte Documentation + Site vitrine diff --git a/web/src/components/Header.tsx b/web/src/components/Header.tsx index b1e7160..3d148aa 100644 --- a/web/src/components/Header.tsx +++ b/web/src/components/Header.tsx @@ -23,6 +23,7 @@ const navLinks = [ { to: '/', label: 'Accueil', end: true }, { to: '/tarifs', label: 'Tarifs', end: false }, { to: '/documentation', label: 'Documentation', end: false }, + { to: '/vitrine', label: 'Site vitrine', end: false }, { to: '/contact', label: 'Contact', end: false }, ] diff --git a/web/src/lib/api.ts b/web/src/lib/api.ts index 4f2d9c3..a6d7d69 100644 --- a/web/src/lib/api.ts +++ b/web/src/lib/api.ts @@ -75,6 +75,8 @@ export interface Project { namespace: string host: string url: string + // Domaine du client, servi en plus de l'adresse par défaut (host). + custom_domain?: string admin_username: string admin_number: number months_purchased: number @@ -258,6 +260,8 @@ export const api = { admin_password: params.adminPassword, admin_number: params.adminNumber, }), + setProjectDomain: (id: string, domain: string) => + request('POST', `/projects/${id}/domain`, { domain }), extendProject: (id: string, months: number) => request('POST', `/projects/${id}/extend`, { months }), deleteProject: (id: string) => request('DELETE', `/projects/${id}`), diff --git a/web/src/lib/links.ts b/web/src/lib/links.ts new file mode 100644 index 0000000..34a59f5 --- /dev/null +++ b/web/src/lib/links.ts @@ -0,0 +1,2 @@ +// Contact commercial : toute demande de devis passe par Telegram. +export const SUPPORT_TELEGRAM_URL = 'https://t.me/OMNEX_CORP' diff --git a/web/src/pages/Pricing.tsx b/web/src/pages/Pricing.tsx index df25bc9..0610cb5 100644 --- a/web/src/pages/Pricing.tsx +++ b/web/src/pages/Pricing.tsx @@ -13,8 +13,8 @@ import { Text, } from '@chakra-ui/react' import { Link as RouterLink } from 'react-router-dom' +import { SUPPORT_TELEGRAM_URL } from '../lib/links' -const SUPPORT_TELEGRAM_URL = 'https://t.me/OMNEX_CORP' interface Plan { name: string @@ -62,6 +62,20 @@ const plans: Plan[] = [ ctaExternal: true, highlighted: true, }, + { + name: 'Site vitrine', + price: 'Sur devis', + period: '', + description: 'Une boutique en ligne hébergée par nos soins, avec son espace d\'administration.', + features: [ + 'Catalogue, panier et commandes', + 'Durée de 1 à 12 mois, payée en une fois', + 'Environnement dédié, sauvegardé et protégé', + ], + cta: 'Nous contacter', + ctaHref: SUPPORT_TELEGRAM_URL, + ctaExternal: true, + }, ] export function Pricing() { @@ -70,11 +84,11 @@ export function Pricing() { Tarifs - Commencez par une démo gratuite de 30 jours, puis passez en premium quand vous êtes prêt. + Commencez par une démo gratuite de 30 jours, puis passez en premium quand vous êtes prêt. Les sites vitrines se commandent sur devis. - + {plans.map((plan) => ( ))} diff --git a/web/src/pages/Vitrine.tsx b/web/src/pages/Vitrine.tsx new file mode 100644 index 0000000..a2bd20f --- /dev/null +++ b/web/src/pages/Vitrine.tsx @@ -0,0 +1,251 @@ +import { + Badge, + Box, + Button, + Container, + Heading, + HStack, + List, + ListIcon, + ListItem, + SimpleGrid, + Stack, + Text, +} from '@chakra-ui/react' +import { SUPPORT_TELEGRAM_URL } from '../lib/links' +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' +import { faCheck } from '@fortawesome/free-solid-svg-icons' + +interface Block { + kicker: string + title: string + lead: string + points: string[] +} + +// Ce que le client final voit : la boutique en ligne. +const STOREFRONT: Block[] = [ + { + kicker: 'Catalogue', + title: 'Vos produits, classés par catégories', + lead: 'Photos et vidéos par produit, catégories ordonnées à votre convenance, et plusieurs tarifs par produit selon la quantité et l\'unité de vente.', + points: [ + 'Paliers de prix par unité (g, kg, pièce…)', + 'Catégories avec image, ordre d\'affichage libre', + 'Fiche produit avec galerie média', + ], + }, + { + kicker: 'Commande', + title: 'Un panier et une commande en quelques clics', + lead: 'Le visiteur compose son panier et valide sa commande. Vous la recevez dans votre espace admin et suivez son avancement jusqu\'à la fin.', + points: [ + 'Statuts : en attente, confirmée, en préparation, expédiée, terminée, annulée', + 'Historique des commandes pour les clients connectés', + 'Ouverture et fermeture des commandes d\'un simple interrupteur', + ], + }, + { + kicker: 'Comptes clients', + title: 'Des comptes clients, activables à la demande', + lead: 'Laissez commander sans compte, ou exigez-en un. Vous pouvez aussi demander une vérification d\'identité avant d\'autoriser l\'accès.', + points: [ + 'Création de compte activable ou non', + 'Vérification par pièce d\'identité (recto / verso), validée ou refusée par vos soins', + 'Pièces stockées dans un volume dédié, séparé des médias publics', + ], + }, + { + kicker: 'Contact', + title: 'Vos réseaux et messageries, sur une page dédiée', + lead: 'Ajoutez les liens de votre choix (Telegram, WhatsApp, réseaux sociaux…) avec leur icône et leur couleur, et choisissez ceux qui sont visibles.', + points: ['Liens ordonnés et activables un par un', 'Icône et couleur par lien', 'Style des cartes (transparent ou plein) réglable'], + }, +] + +// Ce que l'administrateur du site peut régler lui-même. +const BACKOFFICE: Block[] = [ + { + kicker: 'Apparence', + title: 'Un site à vos couleurs', + lead: 'Couleurs de l\'en-tête, du fond, du texte, du pied de page et de l\'accent, avec le logo et l\'image d\'accueil de votre choix.', + points: [ + 'Produits en grille ou en liste, nombre de colonnes réglable', + 'Défilement vertical ou horizontal', + 'Thème clair ou sombre pour vos visiteurs', + ], + }, + { + kicker: 'Langues', + title: 'Quatre langues pour vos visiteurs', + lead: 'Le site s\'affiche en français, anglais, espagnol ou allemand, au choix du visiteur.', + points: ['Sélecteur de langue intégré', 'Choix mémorisé pour les visites suivantes'], + }, + { + kicker: 'Notifications', + title: 'Chaque nouvelle commande sur Telegram', + lead: 'Reliez un bot Telegram : vous êtes prévenu dès qu\'une commande arrive, et, si vous le souhaitez, à chaque changement de statut.', + points: ['Alerte de nouvelle commande', 'Alerte de changement de statut, en option'], + }, + { + kicker: 'Équipe', + title: 'Un espace admin, avec le nombre de comptes que vous choisissez', + lead: 'Le nombre de comptes administrateurs est fixé à la commande du site, de 1 à 20, pour partager la gestion avec votre équipe.', + points: ['Tableau de bord, commandes, produits, catégories, unités', 'Gestion des comptes clients et des vérifications'], + }, +] + +const HOSTING: { title: string; text: string }[] = [ + { + title: 'Environnement dédié', + text: 'Chaque site tourne dans son propre espace isolé, avec sa base de données et son cache. Rien n\'est partagé avec les autres clients.', + }, + { + title: 'HTTPS et pare-feu applicatif', + text: 'Le site est servi en HTTPS, derrière un pare-feu applicatif (WAF) qui filtre les requêtes malveillantes.', + }, + { + title: 'Sauvegardes automatiques', + text: 'Les données (base et médias) sont sauvegardées automatiquement et stockées sur des volumes répliqués.', + }, + { + title: 'Votre propre nom de domaine', + text: 'Le site est livré sur une adresse Omnex. Si vous le souhaitez, il peut aussi répondre sur votre domaine (par exemple boutique.votre-marque.fr) : demandez-le-nous au moment de la commande.', + }, + { + title: 'Mis en ligne sans attente', + text: 'Une fois votre commande validée, le site est déployé en quelques minutes et accessible sur son adresse dédiée.', + }, +] + +function FeatureBlock({ block }: { block: Block }) { + return ( + + + {block.kicker} + + + {block.title} + + + {block.lead} + + + {block.points.map((p) => ( + + } color="green.400" mt={1} mr={2} /> + {p} + + ))} + + + ) +} + +// Présentation du site vitrine vendu sur abonnement (voir deploy/chart-vitrine). +export function Vitrine() { + return ( + + {/* Hero */} + + + + + + Site vitrine + + + Abonnement de 1 à 12 mois + + + Votre boutique en ligne, prête à l'emploi + + Un site complet pour présenter vos produits et recevoir des commandes, avec son espace d'administration. + Nous le déployons, l'hébergeons et le sauvegardons pour vous, pour la durée de votre abonnement. + + + + + + + {/* Côté visiteur */} + + + Ce que vos clients voient + La boutique : catalogue, panier, commande, compte et contact. + + + {STOREFRONT.map((b) => ( + + ))} + + + + {/* Côté admin */} + + + + Ce que vous réglez vous-même + Un espace d'administration pour faire vivre le site sans nous solliciter. + + + {BACKOFFICE.map((b) => ( + + ))} + + + + + {/* Hébergement */} + + + Hébergé et surveillé par Omnex + Vous n'installez rien : nous nous occupons de l'infrastructure. + + + {HOSTING.map((h) => ( + + + {h.title} + + + {h.text} + + + ))} + + + + {/* Abonnement */} + + + + Un abonnement que vous choisissez + + Vous commandez une durée de 1 à 12 mois. Elle se renouvelle à tout moment, en ajoutant des mois à votre + échéance. Sans renouvellement avant l'échéance, le site et ses données sont supprimés : pensez à + prolonger à temps. + + + + + + {/* CTA */} + + + + Un site vitrine pour votre activité ? + + + Parlez-nous de votre projet sur Telegram : nous vous répondons avec une offre adaptée. + + + + + + ) +} diff --git a/web/src/pages/backoffice/Projects.tsx b/web/src/pages/backoffice/Projects.tsx index 2ba4f05..0b09365 100644 --- a/web/src/pages/backoffice/Projects.tsx +++ b/web/src/pages/backoffice/Projects.tsx @@ -8,6 +8,7 @@ import { Heading, HStack, Icon, + IconButton, Link, Spacer, Spinner, @@ -22,11 +23,13 @@ import { useToast, Wrap, } from '@chakra-ui/react' +import { EditIcon } from '@chakra-ui/icons' import { useNavigate } from 'react-router-dom' import { api, ApiError, type DemoDetails, type Project } from '../../lib/api' import { formatDate, monthsLabel, projectStatusColor, projectStatusLabel, timeRemaining } from '../../lib/format' import { ConfirmDialog } from '../../components/ConfirmDialog' import { CreateProjectModal } from '../../components/CreateProjectModal' +import { EditDomainModal } from '../../components/EditDomainModal' import { ExtendProjectModal } from '../../components/ExtendProjectModal' import { ChevronIcon, PodStatusPanel } from '../../components/PodStatusPanel' @@ -46,6 +49,7 @@ export function Projects() { const [createOpen, setCreateOpen] = useState(false) const [toExtend, setToExtend] = useState(null) const [toDelete, setToDelete] = useState(null) + const [editingDomain, setEditingDomain] = useState(null) // --- Ligne dépliée (état live des pods) --- const [expandedId, setExpandedId] = useState(null) @@ -201,15 +205,28 @@ export function Projects() { {projectStatusLabel(p.status)}
@@ -272,6 +289,22 @@ export function Projects() { )} setCreateOpen(false)} onCreated={() => void load()} /> + setEditingDomain(null)} + onSaved={() => void load()} + save={api.setProjectDomain} + title="Domaine du site" + helpText={ + <> + Domaine du client (ex. boutique.client.fr), servi en plus de l'adresse par défaut + {editingDomain ? ` (${editingDomain.host})` : ''}, qui reste active. Laissez vide pour retirer le + domaine. Avant de l'enregistrer : le DNS du domaine doit pointer vers les nœuds du cluster, et + son certificat TLS doit être ajouté au WAF (voir deploy/chart-vitrine/README.md), sans quoi le + navigateur affichera une erreur de certificat. + + } + /> setToExtend(null)} onExtended={() => void load()} />
- e.stopPropagation()} - > - {p.host} - + + e.stopPropagation()} + > + {p.custom_domain || p.host} + + } + size="xs" + variant="ghost" + isDisabled={p.status !== 'ready'} + onClick={(e) => { + e.stopPropagation() + setEditingDomain(p) + }} + /> + {monthsLabel(p.months_purchased)} au total {deadline(p)}