diff --git a/docs/setup-wizard-storyboard.md b/docs/setup-wizard-storyboard.md deleted file mode 100644 index 16c8d0c10..000000000 --- a/docs/setup-wizard-storyboard.md +++ /dev/null @@ -1,765 +0,0 @@ -# Wails Setup - OOBE Storyboard - -> An Apple/Microsoft-style Out-of-Box Experience for `wails3 setup` - ---- - -## Design Philosophy - -Transform the wizard into an OOBE (Out-of-Box Experience): - -- **No footer navigation** - Buttons appear contextually within content -- **Full-screen immersive pages** - Each step is its own moment -- **Progressive disclosure** - Show only what's needed -- **Branching paths** - Adapt flow based on system state -- **Conversational tone** - Guide users naturally through decisions - ---- - -## Page Layout Template - -All screens (except Splash) use this consistent layout: - -``` -+-------------------------------------------------------------+ -| [Sun/Moon] | -| | -| [Icon] | -| | -| Large Title Here | -| | -| Supporting text in a friendly tone | -| | -| +---------------------------------------------------+ | -| | | | -| | Content Area | | -| | (varies per screen) | | -| | | | -| +---------------------------------------------------+ | -| | -| [ Primary Action ] | -| secondary link | -| | -+-------------------------------------------------------------+ -``` - -Key principles: -- Theme toggle always visible (top-left) -- Centered content with generous whitespace -- Buttons appear only when relevant -- No persistent footer or step indicators - ---- - -## Flow Diagram - -``` - +----------------+ - | Splash | - | "Let's Start" | - +-------+--------+ - | - v - +------------------------+ - | Checking System... | - | (auto-transition) | - +------------+-----------+ - | - +------------------+------------------+ - | | - v v - +-----------------------+ +-----------------------+ - | All deps OK | | Missing deps | - | "You're all set!" | | "Almost there" | - +-----------+-----------+ +-----------+-----------+ - | | - | v - | +-----------------------+ - | | Install Instructions | - | | [Copy] [Re-check] | - | +-----------+-----------+ - | | - +<----------------------------------+ - | - v - +-----------------------+ - | Cross-Platform? | - | (always shown) | - +-----------+-----------+ - | - +-----------+-----------+ - | | - v v - +------------+ +------------------------+ - | Not now | | Yes, set this up | - +-----+------+ +------------+-----------+ - | | - | +-----------+-----------+ - | | | - | v v - | +------------------+ +------------------+ - | | Docker missing? | | Docker ready? | - | | -> Install link | | -> Build image | - | +--------+---------+ +--------+---------+ - | | | - | v v - | +------------------+ +------------------+ - | | [Check Again] | | Building... | - | | Skip -> | | (can continue) | - | +--------+---------+ +--------+---------+ - | | | - +<------------+-----------------------+ - | - v - +-----------------------+ - | Tell us about you | - | (Author details) | - +-----------+-----------+ - | - v - +-----------------------+ - | Project Defaults | - | (Bundle ID, etc) | - +-----------+-----------+ - | - v - +-----------------------+ - | Code Signing? | - | [Skip] or [Setup] | - +-----------+-----------+ - | - +-----------+-----------+ - | | - v v -+-------------+ +-------------+ -| macOS | | Windows | -| Signing | | Signing | -+------+------+ +------+------+ - | | - +--------+--------+ - | - v - +-----------------------+ - | All Done! | - | "Start Building" | - +-----------------------+ -``` - ---- - -## Screen-by-Screen Storyboard - -### 1. Splash Screen - -**Purpose:** Welcome, set tone, minimal interaction - -``` -+-------------------------------------------------------------+ -| [Sun/Moon] | -| | -| | -| | -| [Wails Logo] | -| with subtle glow | -| | -| | -| Welcome to Wails | -| | -| Build beautiful cross-platform apps | -| using Go and web tech | -| | -| | -| [ Let's Start ] | -| | -| | -+-------------------------------------------------------------+ -``` - -**Elements:** -- Theme toggle (top-left) - only UI control -- Logo with glow animation -- Minimal copy -- Single "Let's Start" button - -**On click:** Triggers dependency check, transitions to Checking screen - ---- - -### 2. Checking System (Transitional) - -**Purpose:** Brief loading while checking dependencies (2-3 seconds) - -``` -+-------------------------------------------------------------+ -| [Sun/Moon] | -| | -| | -| | -| [Spinner] | -| | -| Checking your system... | -| | -| This will only take a moment | -| | -| | -+-------------------------------------------------------------+ -``` - -**Behavior:** -- No user interaction needed -- Auto-advances when check completes -- Minimum 1.5s display (perceived thoroughness) - ---- - -### 3a. System Ready (Happy Path) - -**When:** All required dependencies installed - -``` -+-------------------------------------------------------------+ -| [Sun/Moon] | -| | -| [Checkmark] | -| (animated) | -| | -| You're all set! | -| | -| Your system has everything needed | -| to build Wails apps | -| | -| | -| [ Continue ] | -| | -+-------------------------------------------------------------+ -``` - -**Elements:** -- Green animated checkmark -- Simple confirmation message (no list of deps) -- Single "Continue" button - -**Next:** Goes to Cross-Platform question - ---- - -### 3b. Missing Dependencies - -**When:** Required dependencies not found - -``` -+-------------------------------------------------------------+ -| [Sun/Moon] | -| | -| [Warning] | -| (amber icon) | -| | -| Almost there! | -| | -| A few things need to be installed | -| | -| +---------------------------------------------------+ | -| | | | -| | [X] npm | | -| | Required for frontend tooling | | -| | | | -| | [X] GTK Development Libraries | | -| | Required for Linux builds | | -| | | | -| +---------------------------------------------------+ | -| | -| Run this command to install everything: | -| +---------------------------------------------------+ | -| | sudo pacman -S npm gtk3 webkit2gtk [Copy] | | -| +---------------------------------------------------+ | -| | -| [ Check Again ] | -| | -| Continue anyway -> | -| | -+-------------------------------------------------------------+ -``` - -**Dynamic content:** -- Platform-specific package manager (apt/dnf/pacman/brew) -- Combined command when possible -- Individual items if package managers differ - -**Actions:** -- Copy button for install command -- "Check Again" - re-runs dependency check -- "Continue anyway" - for advanced users (subtle link) - ---- - -### 4. Cross-Platform Question - -**When:** Always shown (Docker status doesn't matter) - -``` -+-------------------------------------------------------------+ -| [Sun/Moon] | -| | -| [Platform Icons] | -| Win / Mac / Linux | -| | -| Build for multiple platforms? | -| | -| Wails can compile your app for Windows, | -| macOS, and Linux from a single machine | -| | -| +---------------------------------------------------+ | -| | | | -| | From your {platform} machine, build for: | | -| | | | -| | - Windows (.exe) | | -| | - macOS (.app) | | -| | - Linux (AppImage, .deb, etc) | | -| | | | -| +---------------------------------------------------+ | -| | -| [ Yes, set this up ] | -| | -| Not right now -> | -| | -+-------------------------------------------------------------+ -``` - -**Branch logic:** -- Always shown to everyone -- "Yes" -> Checks Docker status, installs if needed, builds image -- "Not right now" -> Author details (faster path) - ---- - -### 5. Setting Up Cross-Platform Builds - -**When:** User chose "Yes" to cross-platform builds - -This is a single screen that handles all Docker states automatically: - -``` -+-------------------------------------------------------------+ -| [Sun/Moon] | -| | -| [Docker] | -| | -| Setting up cross-platform builds | -| | -| +---------------------------------------------------+ | -| | | | -| | [check] Checking Docker... | | -| | [spinner] Installing Docker... | | -| | [ ] Building cross-compiler image... | | -| | | | -| +---------------------------------------------------+ | -| | -| [ Continue in background ] | -| | -| The build will complete while you continue | -| | -+-------------------------------------------------------------+ -``` - -**States shown in sequence:** -1. Checking Docker... (quick check) -2. Installing Docker... (if not installed - opens install instructions) -3. Starting Docker... (if not running - prompts user) -4. Building image... (progress bar, can continue in background) - -**If Docker needs installing:** -``` -+-------------------------------------------------------------+ -| [Sun/Moon] | -| | -| [Docker] | -| | -| Install Docker | -| | -| Cross-platform builds require Docker Desktop | -| | -| +---------------------------------------------------+ | -| | | | -| | [Download Docker Desktop] | | -| | | | -| | After installing, come back and we'll | | -| | continue setting up. | | -| | | | -| +---------------------------------------------------+ | -| | -| [ Check Again ] | -| | -| Skip for now -> | -| | -+-------------------------------------------------------------+ -``` - -**If Docker not running:** -``` -+-------------------------------------------------------------+ -| [Sun/Moon] | -| | -| [Docker] | -| | -| Start Docker | -| | -| Please start Docker Desktop to continue | -| | -| [ Check Again ] | -| | -| Skip for now -> | -| | -+-------------------------------------------------------------+ -``` - -**Building image (can continue in background):** -``` -+-------------------------------------------------------------+ -| [Sun/Moon] | -| | -| [Docker] | -| | -| Building cross-compiler image | -| | -| +---------------------------------------------------+ | -| | | | -| | [===================> ] 65% | | -| | | | -| | This may take several minutes | | -| | | | -| +---------------------------------------------------+ | -| | -| [ Continue in background ] | -| | -+-------------------------------------------------------------+ -``` - -**Key UX:** -- Single flow handles all Docker states -- User can wait OR continue while image builds -- Background status indicator on subsequent screens - ---- - -### 6. Author Details - -**Purpose:** Personalize the setup - -``` -+-------------------------------------------------------------+ -| [Sun/Moon] | -| | -| [User] | -| | -| Tell us about yourself | -| | -| This information will be used in your apps | -| | -| +---------------------------------------------------+ | -| | | | -| | Your Name | | -| | +---------------------------------------------+ | | -| | | Jane Developer | | | -| | +---------------------------------------------+ | | -| | | | -| | Company (optional) | | -| | +---------------------------------------------+ | | -| | | Acme Corp | | | -| | +---------------------------------------------+ | | -| | | | -| +---------------------------------------------------+ | -| | -| [ Continue ] | -| | -+-------------------------------------------------------------+ -``` - -**Pre-population:** -- Name from `git config user.name` if available - ---- - -### 7. Project Defaults - -**Purpose:** Set app identifier conventions - -``` -+-------------------------------------------------------------+ -| [Sun/Moon] [Docker: 78%] | -| | -| [Package] | -| | -| Project defaults | -| | -| These will be used when creating new apps | -| | -| +---------------------------------------------------+ | -| | | | -| | Bundle ID Prefix | | -| | +---------------------------------------------+ | | -| | | com.acme | | | -| | +---------------------------------------------+ | | -| | Example: com.acme.myapp | | -| | | | -| | Default Version | | -| | +---------------------------------------------+ | | -| | | 0.1.0 | | | -| | +---------------------------------------------+ | | -| | | | -| | Preferred Template | | -| | +---------------------------------------------+ | | -| | | React + TypeScript [v] | | | -| | +---------------------------------------------+ | | -| | | | -| +---------------------------------------------------+ | -| | -| [ Continue ] | -| | -+-------------------------------------------------------------+ -``` - -**Note:** Docker status indicator (top-right) if build in progress - ---- - -### 8. Code Signing Question - -**Purpose:** Ask about app signing (platform-specific) - -``` -+-------------------------------------------------------------+ -| [Sun/Moon] | -| | -| [Lock] | -| | -| Set up code signing? | -| | -| Code signing lets you distribute apps through | -| stores and avoid security warnings | -| | -| +---------------------------------------------------+ | -| | | | -| | Code signing is optional during development. | | -| | You can configure this later in your project. | | -| | | | -| | Available for your platform: | | -| | - macOS Developer ID | | -| | | | -| +---------------------------------------------------+ | -| | -| [ Set up signing ] | -| | -| Skip -> | -| | -+-------------------------------------------------------------+ -``` - -**Branch logic:** -- macOS: Show Apple signing options next -- Windows: Show Windows signing options next -- Linux: Skip entirely (no signing needed) - ---- - -### 9a. macOS Code Signing (Optional) - -``` -+-------------------------------------------------------------+ -| [Sun/Moon] | -| | -| [Apple] | -| | -| macOS Code Signing | -| | -| Required for distribution outside the App Store | -| | -| +---------------------------------------------------+ | -| | | | -| | Developer ID | | -| | +---------------------------------------------+ | | -| | | Developer ID Application: Jane Dev... | | | -| | +---------------------------------------------+ | | -| | | | -| | Apple ID (for notarization) | | -| | +---------------------------------------------+ | | -| | | jane@example.com | | | -| | +---------------------------------------------+ | | -| | | | -| | Team ID | | -| | +---------------------------------------------+ | | -| | | ABCD1234 | | | -| | +---------------------------------------------+ | | -| | | | -| +---------------------------------------------------+ | -| | -| [ Continue ] | -| | -+-------------------------------------------------------------+ -``` - ---- - -### 9b. Windows Code Signing (Optional) - -``` -+-------------------------------------------------------------+ -| [Sun/Moon] | -| | -| [Windows] | -| | -| Windows Code Signing | -| | -| Prevents "Unknown Publisher" warnings | -| | -| +---------------------------------------------------+ | -| | | | -| | Certificate Path | | -| | +---------------------------------------------+ | | -| | | C:\certs\codesign.pfx [...] | | | -| | +---------------------------------------------+ | | -| | | | -| | Timestamp Server | | -| | +---------------------------------------------+ | | -| | | http://timestamp.digicert.com | | | -| | +---------------------------------------------+ | | -| | | | -| +---------------------------------------------------+ | -| | -| [ Continue ] | -| | -+-------------------------------------------------------------+ -``` - ---- - -### 10. Complete Screen - -**Purpose:** Celebrate and guide next steps - -``` -+-------------------------------------------------------------+ -| [Sun/Moon] | -| | -| [Party] | -| (animated) | -| | -| You're ready to build! | -| | -| Your development environment is all set up | -| | -| +---------------------------------------------------+ | -| | | | -| | Create your first app: | | -| | +---------------------------------------------+ | | -| | | wails3 init -n myapp [Copy] | | | -| | +---------------------------------------------+ | | -| | | | -| | Start developing: | | -| | +---------------------------------------------+ | | -| | | cd myapp && wails3 dev [Copy] | | | -| | +---------------------------------------------+ | | -| | | | -| | Build for production: | | -| | +---------------------------------------------+ | | -| | | wails3 build [Copy] | | | -| | +---------------------------------------------+ | | -| | | | -| +---------------------------------------------------+ | -| | -| [ Start Building ] | -| | -| Read the documentation | -| | -+-------------------------------------------------------------+ -``` - -**Persistent elements:** -- If Docker build still in progress, show status indicator -- "Start Building" closes the wizard - ---- - -## Branching Scenarios Summary - -| Scenario | Flow | -|----------|------| -| **Happy path** | Splash -> Check -> Ready -> Cross-Platform? -> Author -> Defaults -> Done | -| **Missing deps** | Splash -> Check -> Missing -> (install) -> Check -> Ready -> ... | -| **Want cross-platform, Docker ready** | ... -> Cross-Platform? (Yes) -> Building -> Author -> ... | -| **Want cross-platform, no Docker** | ... -> Cross-Platform? (Yes) -> Install Docker -> Check -> Building -> ... | -| **Skip cross-platform** | ... -> Cross-Platform? (Not now) -> Author -> ... | -| **Skip signing** | ... -> Signing? -> Skip -> Done | -| **macOS w/ signing** | ... -> Signing? -> macOS Signing -> Done | -| **Windows w/ signing** | ... -> Signing? -> Windows Signing -> Done | -| **Linux** | ... -> Defaults -> Done (signing skipped) | - ---- - -## State Machine - -```typescript -type OOBEStep = - | 'splash' - | 'checking' - | 'deps-ready' - | 'deps-missing' - | 'cross-platform-question' - | 'docker-setup' // handles install/start/build states - | 'docker-building' // can continue in background - | 'author' - | 'project-defaults' - | 'signing-question' - | 'signing-macos' - | 'signing-windows' - | 'complete' -``` - ---- - -## Background Processes - -### Docker Image Build -- Runs in background while user continues -- Persistent status indicator on subsequent screens -- Blocks wizard close only if still building -- User can wait on build screen OR continue setup - -### Dependency Check -- Runs immediately after "Let's Start" -- Shows transitional loading screen -- Auto-advances when complete - ---- - -## Animation Guidelines - -- **Page transitions:** Fade + slight slide up (Apple-style) -- **Checkmarks:** Draw animation with scale bounce -- **Progress bars:** Smooth continuous animation -- **Error states:** Gentle shake -- **Buttons:** Subtle glow on hover - ---- - -## Key Differences from Wizard Style - -| Wizard | OOBE | -|--------|------| -| Footer with Back/Next | Contextual buttons only | -| Step indicator (1 of 5) | No step counter | -| Linear progression | Branching based on state | -| All screens shown | Skip irrelevant screens | -| Form-heavy | Question-driven | - ---- - -## Implementation Priorities - -1. Remove footer navigation from all screens -2. Update Splash to only show theme toggle + "Let's Start" -3. Add "Checking" transitional screen -4. Split dependency results into Ready/Missing paths -5. Add cross-platform question (conditional on Docker) -6. Split Docker into sub-states -7. Add code signing question/screens (conditional on platform) -8. Update Complete screen with next steps diff --git a/docs/src/content/docs/getting-started/setup.mdx b/docs/src/content/docs/getting-started/setup.mdx new file mode 100644 index 000000000..d077bae9a --- /dev/null +++ b/docs/src/content/docs/getting-started/setup.mdx @@ -0,0 +1,71 @@ +--- +title: Setup +sidebar: + order: 15 + badge: + text: Experimental + variant: caution +--- + +import { Tabs, TabItem, Aside, Steps } from "@astrojs/starlight/components"; + +The `wails3 setup` command provides an interactive wizard that helps configure your development environment for building Wails applications. + + + +## Quick Start + +After [installing the Wails CLI](/docs/getting-started/installation#installation), run: + +```bash +wails3 setup +``` + +This launches a browser-based wizard that guides you through: + + +1. **System Check** - Verifies required dependencies (Go, npm, platform tooling) +2. **Cross-Platform Builds** - Optional Docker setup for building Windows/macOS/Linux from any host +3. **Project Defaults** - Configure author info, bundle ID prefix, preferred templates +4. **Code Signing** - Optional setup for macOS, Windows, and Linux signing + + +## What It Configures + +The setup wizard creates a global configuration file at `~/.config/wails/config.yaml` containing: + +- **Author defaults** - Name and company for new projects +- **Project defaults** - Bundle ID prefix, default template, version format +- **Signing configuration** - Platform-specific code signing settings + +These defaults are used when running `wails3 init` to create new projects. + +## Sub-Commands + +The setup command also includes focused wizards for specific tasks: + +### Code Signing Setup + +```bash +wails3 setup signing +``` + +Interactive wizard for configuring code signing on your current platform. + +### macOS Entitlements + +```bash +wails3 setup entitlements +``` + +Configure macOS entitlements for your application (sandbox, hardened runtime, etc). + +## Having Issues? + +If the setup wizard doesn't work on your system: + +1. Run `wails3 doctor` to diagnose dependency issues +2. Follow the [manual installation steps](/docs/getting-started/installation#platform-specific-dependencies) for your platform +3. [Report the issue](https://github.com/wailsapp/wails/issues/4904) with your `wails3 doctor` output so we can improve the wizard diff --git a/v3/cmd/wails3/main.go b/v3/cmd/wails3/main.go index aacfd5ec7..73e1a1107 100644 --- a/v3/cmd/wails3/main.go +++ b/v3/cmd/wails3/main.go @@ -109,7 +109,7 @@ func main() { }) // Setup commands - setup := app.NewSubCommand("setup", "Project setup wizards") + setup := app.NewSubCommandFunction("setup", "Project setup wizards", commands.Setup) setupSigning := setup.NewSubCommand("signing", "Configure code signing") var setupSigningFlags flags.SigningSetup setupSigning.AddFlags(&setupSigningFlags) diff --git a/v3/internal/commands/setup.go b/v3/internal/commands/setup.go index f1a04274b..82cd890a2 100644 --- a/v3/internal/commands/setup.go +++ b/v3/internal/commands/setup.go @@ -2,12 +2,20 @@ package commands import ( "github.com/wailsapp/wails/v3/internal/setupwizard" + "github.com/wailsapp/wails/v3/internal/term" ) type SetupOptions struct{} func Setup(_ *SetupOptions) error { DisableFooter = true + + term.Println("") + term.Warning("The setup wizard is experimental and not fully tested on all platforms.") + term.Println("If you encounter issues, please report them at:") + term.Println(" " + term.Hyperlink("https://github.com/wailsapp/wails/issues/4904", "GitHub Issue #4904")) + term.Println("") + wizard := setupwizard.New() return wizard.Run() } diff --git a/v3/internal/setupwizard/frontend/dist/assets/index-BVQMnJjn.css b/v3/internal/setupwizard/frontend/dist/assets/index-BVQMnJjn.css deleted file mode 100644 index 9a5e222ae..000000000 --- a/v3/internal/setupwizard/frontend/dist/assets/index-BVQMnJjn.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.static{position:static}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-4{left:1rem}.right-4{right:1rem}.top-4{top:1rem}.z-10{z-index:10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-9{margin-left:2.25rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-1{height:.25rem}.h-1\/2{height:50%}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-72{height:18rem}.h-8{height:2rem}.h-96{height:24rem}.h-\[200\%\]{height:200%}.h-\[75vh\]{height:75vh}.h-full{height:100%}.max-h-\[800px\]{max-height:800px}.min-h-0{min-height:0px}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-40{width:10rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-8{width:2rem}.w-\[75vw\]{width:75vw}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-\[1200px\]{max-width:1200px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-amber-500\/30{border-color:#f59e0b4d}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-200\/50{border-color:#e5e7eb80}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-purple-400{--tw-border-opacity: 1;border-color:rgb(192 132 252 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-white\/10{border-color:#ffffff1a}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity, 1))}.border-t-red-500{--tw-border-opacity: 1;border-top-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-amber-500\/20{background-color:#f59e0b33}.bg-blue-400\/10{background-color:#60a5fa1a}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-500\/20{background-color:#3b82f633}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-100\/80{background-color:#f3f4f6cc}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-green-500\/20{background-color:#22c55e33}.bg-purple-400\/10{background-color:#c084fc1a}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-500\/10{background-color:#ef44441a}.bg-red-500\/20{background-color:#ef444433}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/5{background-color:#ffffff0d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-400\/10{background-color:#facc151a}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.object-center{-o-object-position:center;object-position:center}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-6{padding-bottom:1.5rem}.pt-10{padding-top:2.5rem}.pt-4{padding-top:1rem}.pt-\[15\%\]{padding-top:15%}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-gray-100{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.opacity-50{opacity:.5}.opacity-\[0\.08\]{opacity:.08}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-400\/20{--tw-shadow-color: rgb(96 165 250 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-400\/20{--tw-shadow-color: rgb(192 132 252 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/10{--tw-shadow-color: rgb(239 68 68 / .1);--tw-shadow: var(--tw-shadow-colored)}.shadow-yellow-400\/20{--tw-shadow-color: rgb(250 204 21 / .2);--tw-shadow: var(--tw-shadow-colored)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}:root{--wails-red: #ef4444;--wails-red-dark: #dc2626;--wails-red-light: #f87171;--wails-blue: #1d63ed;--wails-blue-dark: #1554d0;--wails-blue-light: #3b7dff;--bg-primary: #05070b;--bg-secondary: #0a0e16;--bg-tertiary: #0f1420;--glass-bg: rgba(255, 255, 255, .06);--glass-border: rgba(255, 255, 255, .08)}*{box-sizing:border-box}html,body,#root{margin:0;padding:0;min-height:100vh;background:var(--bg-primary);color:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.gradient-text{background:linear-gradient(135deg,#fff,#ef4444);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.glass-card{background:linear-gradient(180deg,#ffffff14,#ffffff0a);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--glass-border);box-shadow:0 30px 80px #00000080}.glass-sidebar{background:#05070c8c;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);border-right:1px solid var(--glass-border)}.settings-row{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:52px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:background-color .12s ease}.settings-row:hover{background:#0000000a}.dark .settings-row:hover{background:#ffffff0f}.settings-row+.settings-row{border-top:1px solid rgba(0,0,0,.1)}.dark .settings-row+.settings-row{border-top:1px solid var(--glass-border)}.settings-group{border-radius:12px;background:#0000000a;box-shadow:0 4px 12px #00000014,0 0 0 1px #00000014 inset;overflow:hidden}.dark .settings-group{background:#ffffff1a;box-shadow:0 12px 30px #00000059,0 0 0 1px var(--glass-border) inset;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.grid-bg{background-image:linear-gradient(rgba(239,68,68,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(239,68,68,.03) 1px,transparent 1px);background-size:40px 40px}.radial-glow{background:radial-gradient(ellipse at center,rgba(239,68,68,.1) 0%,transparent 70%)}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:var(--bg-primary)}::-webkit-scrollbar-thumb{background:var(--bg-tertiary);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#4b5563}.scrollbar-thin::-webkit-scrollbar{width:4px}.scrollbar-thin::-webkit-scrollbar-track{background:transparent}.scrollbar-thin::-webkit-scrollbar-thumb{background:#9ca3af4d;border-radius:2px}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background:#9ca3af80}.btn-primary{border-radius:.75rem;background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #ef4444 var(--tw-gradient-from-position);--tw-gradient-to: rgb(239 68 68 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #dc2626 var(--tw-gradient-to-position);padding:.75rem 2rem;font-weight:600;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.btn-primary:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: rgb(239 68 68 / .3);--tw-shadow: var(--tw-shadow-colored)}.btn-primary:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.btn-secondary{border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1));background-color:transparent;padding:.75rem 2rem;font-weight:500;--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.btn-secondary:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1));background-color:#1f293780;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@keyframes spin{to{transform:rotate(360deg)}}.spinner{animation:spin 1s linear infinite}.check-path{stroke-dasharray:100;stroke-dashoffset:100;animation:drawCheck .5s ease-out forwards}@keyframes scrollBackground{0%{transform:translateY(0)}to{transform:translateY(-50%)}}.scrolling-bg{animation:scrollBackground 60s linear infinite}@media (prefers-reduced-motion: reduce){*:not(.animate-spin):not(.spinner),*:not(.animate-spin):not(.spinner):before,*:not(.animate-spin):not(.spinner):after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.settings-row:focus-visible{outline:2px solid #ef4444;outline-offset:-2px}.last\:border-0:last-child{border-width:0px}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-500\/10:hover{background-color:#3b82f61a}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\:bg-red-500\/10:hover{background-color:#ef44441a}.hover\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.hover\:bg-white\/10:hover{background-color:#ffffff1a}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.hover\:opacity-70:hover{opacity:.7}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-inset:focus{--tw-ring-inset: inset}.focus\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity, 1))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1))}.focus\:ring-gray-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity, 1))}.focus\:ring-purple-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(192 132 252 / var(--tw-ring-opacity, 1))}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity, 1))}.focus\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 204 21 / var(--tw-ring-opacity, 1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\:opacity-50:disabled{opacity:.5}.dark\:border-amber-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(146 64 14 / var(--tw-border-opacity, 1))}.dark\:border-blue-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1))}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.dark\:border-gray-800\/50:is(.dark *){border-color:#1f293780}.dark\:border-transparent:is(.dark *){border-color:transparent}.dark\:border-white\/10:is(.dark *){border-color:#ffffff1a}.dark\:bg-\[\#0f0f0f\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(15 15 15 / var(--tw-bg-opacity, 1))}.dark\:bg-amber-900\/20:is(.dark *){background-color:#78350f33}.dark\:bg-black\/30:is(.dark *){background-color:#0000004d}.dark\:bg-blue-900\/20:is(.dark *){background-color:#1e3a8a33}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800\/50:is(.dark *){background-color:#1f293780}.dark\:bg-gray-800\/80:is(.dark *){background-color:#1f2937cc}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-900\/50:is(.dark *){background-color:#11182780}.dark\:bg-transparent:is(.dark *){background-color:transparent}.dark\:bg-white\/5:is(.dark *){background-color:#ffffff0d}.dark\:bg-white\/\[0\.03\]:is(.dark *){background-color:#ffffff08}.dark\:text-amber-200:is(.dark *){--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}.dark\:text-amber-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.dark\:text-amber-400:is(.dark *){--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:text-white\/40:is(.dark *){color:#fff6}.dark\:text-white\/50:is(.dark *){color:#ffffff80}.dark\:text-white\/65:is(.dark *){color:#ffffffa6}.dark\:text-white\/70:is(.dark *){color:#ffffffb3}.dark\:text-white\/90:is(.dark *){color:#ffffffe6}.dark\:placeholder-gray-500:is(.dark *)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.dark\:placeholder-gray-500:is(.dark *)::placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.dark\:opacity-\[0\.06\]:is(.dark *){opacity:.06}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-800\/50:hover:is(.dark *){background-color:#1f293780}.dark\:hover\:bg-white\/10:hover:is(.dark *){background-color:#ffffff1a}.dark\:hover\:text-blue-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.dark\:hover\:text-gray-200:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.dark\:hover\:text-gray-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\:focus\:ring-offset-gray-900:focus:is(.dark *){--tw-ring-offset-color: #111827} diff --git a/v3/internal/setupwizard/frontend/dist/assets/index-BwhVCaCt.css b/v3/internal/setupwizard/frontend/dist/assets/index-BwhVCaCt.css new file mode 100644 index 000000000..e81853228 --- /dev/null +++ b/v3/internal/setupwizard/frontend/dist/assets/index-BwhVCaCt.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-4{left:1rem}.right-4{right:1rem}.top-4{top:1rem}.z-10{z-index:10}.z-50{z-index:50}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-9{margin-left:2.25rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-1{height:.25rem}.h-1\/2{height:50%}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-72{height:18rem}.h-8{height:2rem}.h-96{height:24rem}.h-\[200\%\]{height:200%}.h-\[75vh\]{height:75vh}.h-full{height:100%}.max-h-\[800px\]{max-height:800px}.min-h-0{min-height:0px}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-40{width:10rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-8{width:2rem}.w-\[75vw\]{width:75vw}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-\[1200px\]{max-width:1200px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-amber-500\/30{border-color:#f59e0b4d}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-200\/50{border-color:#e5e7eb80}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-purple-400{--tw-border-opacity: 1;border-color:rgb(192 132 252 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-white\/10{border-color:#ffffff1a}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity, 1))}.border-t-red-500{--tw-border-opacity: 1;border-top-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-amber-500\/20{background-color:#f59e0b33}.bg-black\/50{background-color:#00000080}.bg-blue-400\/10{background-color:#60a5fa1a}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-500\/20{background-color:#3b82f633}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-100\/80{background-color:#f3f4f6cc}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-green-500\/20{background-color:#22c55e33}.bg-purple-400\/10{background-color:#c084fc1a}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-500\/10{background-color:#ef44441a}.bg-red-500\/20{background-color:#ef444433}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/5{background-color:#ffffff0d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-400\/10{background-color:#facc151a}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.object-center{-o-object-position:center;object-position:center}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-6{padding-bottom:1.5rem}.pt-10{padding-top:2.5rem}.pt-4{padding-top:1rem}.pt-\[15\%\]{padding-top:15%}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-gray-100{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.opacity-50{opacity:.5}.opacity-\[0\.08\]{opacity:.08}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-400\/20{--tw-shadow-color: rgb(96 165 250 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-400\/20{--tw-shadow-color: rgb(192 132 252 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/10{--tw-shadow-color: rgb(239 68 68 / .1);--tw-shadow: var(--tw-shadow-colored)}.shadow-yellow-400\/20{--tw-shadow-color: rgb(250 204 21 / .2);--tw-shadow: var(--tw-shadow-colored)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}:root{--wails-red: #ef4444;--wails-red-dark: #dc2626;--wails-red-light: #f87171;--wails-blue: #1d63ed;--wails-blue-dark: #1554d0;--wails-blue-light: #3b7dff;--bg-primary: #05070b;--bg-secondary: #0a0e16;--bg-tertiary: #0f1420;--glass-bg: rgba(255, 255, 255, .06);--glass-border: rgba(255, 255, 255, .08)}*{box-sizing:border-box}html,body,#root{margin:0;padding:0;min-height:100vh;background:var(--bg-primary);color:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.gradient-text{background:linear-gradient(135deg,#fff,#ef4444);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.glass-card{background:linear-gradient(180deg,#ffffff14,#ffffff0a);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--glass-border);box-shadow:0 30px 80px #00000080}.glass-sidebar{background:#05070c8c;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);border-right:1px solid var(--glass-border)}.settings-row{display:flex;align-items:center;justify-content:space-between;padding:0 20px;height:52px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:background-color .12s ease}.settings-row:hover{background:#0000000a}.dark .settings-row:hover{background:#ffffff0f}.settings-row+.settings-row{border-top:1px solid rgba(0,0,0,.1)}.dark .settings-row+.settings-row{border-top:1px solid var(--glass-border)}.settings-group{border-radius:12px;background:#0000000a;box-shadow:0 4px 12px #00000014,0 0 0 1px #00000014 inset;overflow:hidden}.dark .settings-group{background:#ffffff1a;box-shadow:0 12px 30px #00000059,0 0 0 1px var(--glass-border) inset;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.grid-bg{background-image:linear-gradient(rgba(239,68,68,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(239,68,68,.03) 1px,transparent 1px);background-size:40px 40px}.radial-glow{background:radial-gradient(ellipse at center,rgba(239,68,68,.1) 0%,transparent 70%)}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:var(--bg-primary)}::-webkit-scrollbar-thumb{background:var(--bg-tertiary);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#4b5563}.scrollbar-thin::-webkit-scrollbar{width:4px}.scrollbar-thin::-webkit-scrollbar-track{background:transparent}.scrollbar-thin::-webkit-scrollbar-thumb{background:#9ca3af4d;border-radius:2px}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background:#9ca3af80}.btn-primary{border-radius:.75rem;background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #ef4444 var(--tw-gradient-from-position);--tw-gradient-to: rgb(239 68 68 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #dc2626 var(--tw-gradient-to-position);padding:.75rem 2rem;font-weight:600;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.btn-primary:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: rgb(239 68 68 / .3);--tw-shadow: var(--tw-shadow-colored)}.btn-primary:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.btn-secondary{border-radius:.75rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1));background-color:transparent;padding:.75rem 2rem;font-weight:500;--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.btn-secondary:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1));background-color:#1f293780;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@keyframes spin{to{transform:rotate(360deg)}}.spinner{animation:spin 1s linear infinite}.check-path{stroke-dasharray:100;stroke-dashoffset:100;animation:drawCheck .5s ease-out forwards}@keyframes scrollBackground{0%{transform:translateY(0)}to{transform:translateY(-50%)}}.scrolling-bg{animation:scrollBackground 60s linear infinite}@media (prefers-reduced-motion: reduce){*:not(.animate-spin):not(.spinner),*:not(.animate-spin):not(.spinner):before,*:not(.animate-spin):not(.spinner):after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.settings-row:focus-visible{outline:2px solid #ef4444;outline-offset:-2px}.last\:border-0:last-child{border-width:0px}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-500\/10:hover{background-color:#3b82f61a}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\:bg-red-500\/10:hover{background-color:#ef44441a}.hover\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.hover\:bg-white\/10:hover{background-color:#ffffff1a}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.hover\:opacity-70:hover{opacity:.7}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-inset:focus{--tw-ring-inset: inset}.focus\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity, 1))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1))}.focus\:ring-gray-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity, 1))}.focus\:ring-purple-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(192 132 252 / var(--tw-ring-opacity, 1))}.focus\:ring-red-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity, 1))}.focus\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 204 21 / var(--tw-ring-opacity, 1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\:opacity-50:disabled{opacity:.5}.dark\:border-amber-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(146 64 14 / var(--tw-border-opacity, 1))}.dark\:border-blue-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1))}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.dark\:border-gray-800\/50:is(.dark *){border-color:#1f293780}.dark\:border-transparent:is(.dark *){border-color:transparent}.dark\:border-white\/10:is(.dark *){border-color:#ffffff1a}.dark\:bg-\[\#0f0f0f\]:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(15 15 15 / var(--tw-bg-opacity, 1))}.dark\:bg-amber-900\/20:is(.dark *){background-color:#78350f33}.dark\:bg-black\/30:is(.dark *){background-color:#0000004d}.dark\:bg-blue-900\/20:is(.dark *){background-color:#1e3a8a33}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800\/50:is(.dark *){background-color:#1f293780}.dark\:bg-gray-800\/80:is(.dark *){background-color:#1f2937cc}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-900\/50:is(.dark *){background-color:#11182780}.dark\:bg-green-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(20 83 45 / var(--tw-bg-opacity, 1))}.dark\:bg-transparent:is(.dark *){background-color:transparent}.dark\:bg-white\/5:is(.dark *){background-color:#ffffff0d}.dark\:bg-white\/\[0\.03\]:is(.dark *){background-color:#ffffff08}.dark\:text-amber-200:is(.dark *){--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}.dark\:text-amber-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.dark\:text-amber-400:is(.dark *){--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.dark\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:text-white\/40:is(.dark *){color:#fff6}.dark\:text-white\/50:is(.dark *){color:#ffffff80}.dark\:text-white\/65:is(.dark *){color:#ffffffa6}.dark\:text-white\/70:is(.dark *){color:#ffffffb3}.dark\:text-white\/90:is(.dark *){color:#ffffffe6}.dark\:placeholder-gray-500:is(.dark *)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.dark\:placeholder-gray-500:is(.dark *)::placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.dark\:opacity-\[0\.06\]:is(.dark *){opacity:.06}.dark\:hover\:bg-gray-600:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-800\/50:hover:is(.dark *){background-color:#1f293780}.dark\:hover\:bg-white\/10:hover:is(.dark *){background-color:#ffffff1a}.dark\:hover\:text-blue-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.dark\:hover\:text-gray-200:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.dark\:hover\:text-gray-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\:focus\:ring-offset-gray-900:focus:is(.dark *){--tw-ring-offset-color: #111827} diff --git a/v3/internal/setupwizard/frontend/dist/assets/index-Cxh5b1cS.js b/v3/internal/setupwizard/frontend/dist/assets/index-Cxh5b1cS.js deleted file mode 100644 index a78c38d85..000000000 --- a/v3/internal/setupwizard/frontend/dist/assets/index-Cxh5b1cS.js +++ /dev/null @@ -1,60 +0,0 @@ -(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 s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function um(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tf={exports:{}},bs={},nf={exports:{}},F={};/** - * @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 oi=Symbol.for("react.element"),cm=Symbol.for("react.portal"),dm=Symbol.for("react.fragment"),fm=Symbol.for("react.strict_mode"),hm=Symbol.for("react.profiler"),pm=Symbol.for("react.provider"),mm=Symbol.for("react.context"),gm=Symbol.for("react.forward_ref"),ym=Symbol.for("react.suspense"),xm=Symbol.for("react.memo"),vm=Symbol.for("react.lazy"),Mu=Symbol.iterator;function wm(e){return e===null||typeof e!="object"?null:(e=Mu&&e[Mu]||e["@@iterator"],typeof e=="function"?e:null)}var rf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},sf=Object.assign,of={};function nr(e,t,n){this.props=e,this.context=t,this.refs=of,this.updater=n||rf}nr.prototype.isReactComponent={};nr.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")};nr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function af(){}af.prototype=nr.prototype;function el(e,t,n){this.props=e,this.context=t,this.refs=of,this.updater=n||rf}var tl=el.prototype=new af;tl.constructor=el;sf(tl,nr.prototype);tl.isPureReactComponent=!0;var Du=Array.isArray,lf=Object.prototype.hasOwnProperty,nl={current:null},uf={key:!0,ref:!0,__self:!0,__source:!0};function cf(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)lf.call(t,r)&&!uf.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,O=b[I];if(0>>1;Ii(lr,R))mti(kn,lr)?(b[I]=kn,b[mt]=R,I=mt):(b[I]=lr,b[pt]=R,I=pt);else if(mti(kn,R))b[I]=kn,b[mt]=R,I=mt;else break e}}return L}function i(b,L){var R=b.sortIndex-L.sortIndex;return R!==0?R:b.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],d=1,h=null,f=3,y=!1,x=!1,v=!1,P=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(b){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=b)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function w(b){if(v=!1,g(b),!x)if(n(l)!==null)x=!0,ie(k);else{var L=n(u);L!==null&&H(w,L.startTime-b)}}function k(b,L){x=!1,v&&(v=!1,m(C),C=-1),y=!0;var R=f;try{for(g(L),h=n(l);h!==null&&(!(h.expirationTime>L)||b&&!W());){var I=h.callback;if(typeof I=="function"){h.callback=null,f=h.priorityLevel;var O=I(h.expirationTime<=L);L=e.unstable_now(),typeof O=="function"?h.callback=O:h===n(l)&&r(l),g(L)}else r(l);h=n(l)}if(h!==null)var wn=!0;else{var pt=n(u);pt!==null&&H(w,pt.startTime-L),wn=!1}return wn}finally{h=null,f=R,y=!1}}var j=!1,T=null,C=-1,E=5,D=-1;function W(){return!(e.unstable_now()-Db||125I?(b.sortIndex=R,t(u,b),n(l)===null&&b===n(u)&&(v?(m(C),C=-1):v=!0,H(w,R-I))):(b.sortIndex=O,t(l,b),x||y||(x=!0,ie(k))),b},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(b){var L=f;return function(){var R=f;f=L;try{return b.apply(this,arguments)}finally{f=R}}}})(mf);pf.exports=mf;var Lm=pf.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 Am=S,Fe=Lm;function N(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"),Bo=Object.prototype.hasOwnProperty,Rm=/^[: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]*$/,Au={},Ru={};function Vm(e){return Bo.call(Ru,e)?!0:Bo.call(Au,e)?!1:Rm.test(e)?Ru[e]=!0:(Au[e]=!0,!1)}function Im(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 _m(e,t,n,r){if(t===null||typeof t>"u"||Im(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 Ee(e,t,n,r,i,s,o){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=s,this.removeEmptyString=o}var ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ye[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ye[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ye[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ye[e]=new Ee(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){ye[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ye[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ye[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ye[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ye[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var il=/[\-:]([a-z])/g;function sl(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(il,sl);ye[t]=new Ee(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(il,sl);ye[t]=new Ee(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(il,sl);ye[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ye[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});ye.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ye[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function ol(e,t,n,r){var i=ye.hasOwnProperty(t)?ye[t]:null;(i!==null?i.type!==0:r||!(2a||i[o]!==s[a]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Zs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function Fm(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=qs(e.type,!1),e;case 11:return e=qs(e.type.render,!1),e;case 1:return e=qs(e.type,!0),e;default:return""}}function $o(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 jn:return"Fragment";case Cn:return"Portal";case zo:return"Profiler";case al:return"StrictMode";case Uo:return"Suspense";case Wo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xf:return(e.displayName||"Context")+".Consumer";case yf:return(e._context.displayName||"Context")+".Provider";case ll:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ul:return t=e.displayName||null,t!==null?t:$o(e.type)||"Memo";case Mt:t=e._payload,e=e._init;try{return $o(e(t))}catch{}}return null}function Om(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 $o(t);case 8:return t===al?"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 $t(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bm(e){var t=wf(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yi(e){e._valueTracker||(e._valueTracker=Bm(e))}function kf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ji(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 Ho(e,t){var n=t.checked;return ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Iu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$t(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 Sf(e,t){t=t.checked,t!=null&&ol(e,"checked",t,!1)}function Ko(e,t){Sf(e,t);var n=$t(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")?Go(e,t.type,n):t.hasOwnProperty("defaultValue")&&Go(e,t.type,$t(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _u(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 Go(e,t,n){(t!=="number"||Ji(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wr=Array.isArray;function Bn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=xi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var jr={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},zm=["Webkit","ms","Moz","O"];Object.keys(jr).forEach(function(e){zm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jr[t]=jr[e]})});function Pf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||jr.hasOwnProperty(e)&&jr[e]?(""+t).trim():t+"px"}function Nf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Pf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Um=ee({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 Xo(e,t){if(t){if(Um[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function Zo(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 qo=null;function cl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jo=null,zn=null,Un=null;function Bu(e){if(e=ui(e)){if(typeof Jo!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Rs(t),Jo(e.stateNode,e.type,t))}}function Ef(e){zn?Un?Un.push(e):Un=[e]:zn=e}function bf(){if(zn){var e=zn,t=Un;if(Un=zn=null,Bu(e),t)for(e=0;e>>=0,e===0?32:31-(Jm(e)/eg|0)|0}var vi=64,wi=4194304;function kr(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 rs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=kr(a):(s&=o,s!==0&&(r=kr(s)))}else o=n&~i,o!==0?r=kr(o):s!==0&&(r=kr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&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 ai(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rt(t),e[t]=n}function ig(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=Pr),Qu=" ",Xu=!1;function Qf(e,t){switch(e){case"keyup":return Lg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tn=!1;function Rg(e,t){switch(e){case"compositionend":return Xf(t);case"keypress":return t.which!==32?null:(Xu=!0,Qu);case"textInput":return e=t.data,e===Qu&&Xu?null:e;default:return null}}function Vg(e,t){if(Tn)return e==="compositionend"||!xl&&Qf(e,t)?(e=Gf(),Bi=ml=Rt=null,Tn=!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=ec(n)}}function eh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?eh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function th(){for(var e=window,t=Ji();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ji(e.document)}return t}function vl(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 $g(e){var t=th(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&eh(n.ownerDocument.documentElement,n)){if(r!==null&&vl(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,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=tc(n,s);var o=tc(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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,Pn=null,sa=null,Er=null,oa=!1;function nc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;oa||Pn==null||Pn!==Ji(r)||(r=Pn,"selectionStart"in r&&vl(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}),Er&&$r(Er,r)||(Er=r,r=os(sa,"onSelect"),0bn||(e.current=fa[bn],fa[bn]=null,bn--)}function K(e,t){bn++,fa[bn]=e.current,e.current=t}var Ht={},Ce=Qt(Ht),Le=Qt(!1),hn=Ht;function Yn(e,t){var n=e.type.contextTypes;if(!n)return Ht;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ae(e){return e=e.childContextTypes,e!=null}function ls(){Y(Le),Y(Ce)}function uc(e,t,n){if(Ce.current!==Ht)throw Error(N(168));K(Ce,t),K(Le,n)}function ch(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(N(108,Om(e)||"Unknown",i));return ee({},n,r)}function us(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ht,hn=Ce.current,K(Ce,e),K(Le,Le.current),!0}function cc(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=ch(e,t,hn),r.__reactInternalMemoizedMergedChildContext=e,Y(Le),Y(Ce),K(Ce,e)):Y(Le),K(Le,n)}var yt=null,Vs=!1,ho=!1;function dh(e){yt===null?yt=[e]:yt.push(e)}function n1(e){Vs=!0,dh(e)}function Xt(){if(!ho&&yt!==null){ho=!0;var e=0,t=U;try{var n=yt;for(U=1;e>=o,i-=o,xt=1<<32-rt(t)+i|n<C?(E=T,T=null):E=T.sibling;var D=f(m,T,g[C],w);if(D===null){T===null&&(T=E);break}e&&T&&D.alternate===null&&t(m,T),p=s(D,p,C),j===null?k=D:j.sibling=D,j=D,T=E}if(C===g.length)return n(m,T),Q&&en(m,C),k;if(T===null){for(;CC?(E=T,T=null):E=T.sibling;var W=f(m,T,D.value,w);if(W===null){T===null&&(T=E);break}e&&T&&W.alternate===null&&t(m,T),p=s(W,p,C),j===null?k=W:j.sibling=W,j=W,T=E}if(D.done)return n(m,T),Q&&en(m,C),k;if(T===null){for(;!D.done;C++,D=g.next())D=h(m,D.value,w),D!==null&&(p=s(D,p,C),j===null?k=D:j.sibling=D,j=D);return Q&&en(m,C),k}for(T=r(m,T);!D.done;C++,D=g.next())D=y(T,m,C,D.value,w),D!==null&&(e&&D.alternate!==null&&T.delete(D.key===null?C:D.key),p=s(D,p,C),j===null?k=D:j.sibling=D,j=D);return e&&T.forEach(function(de){return t(m,de)}),Q&&en(m,C),k}function P(m,p,g,w){if(typeof g=="object"&&g!==null&&g.type===jn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case gi:e:{for(var k=g.key,j=p;j!==null;){if(j.key===k){if(k=g.type,k===jn){if(j.tag===7){n(m,j.sibling),p=i(j,g.props.children),p.return=m,m=p;break e}}else if(j.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Mt&&hc(k)===j.type){n(m,j.sibling),p=i(j,g.props),p.ref=pr(m,j,g),p.return=m,m=p;break e}n(m,j);break}else t(m,j);j=j.sibling}g.type===jn?(p=cn(g.props.children,m.mode,w,g.key),p.return=m,m=p):(w=Yi(g.type,g.key,g.props,null,m.mode,w),w.ref=pr(m,p,g),w.return=m,m=w)}return o(m);case Cn:e:{for(j=g.key;p!==null;){if(p.key===j)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(m,p.sibling),p=i(p,g.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=ko(g,m.mode,w),p.return=m,m=p}return o(m);case Mt:return j=g._init,P(m,p,j(g._payload),w)}if(wr(g))return x(m,p,g,w);if(ur(g))return v(m,p,g,w);Ni(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(m,p.sibling),p=i(p,g),p.return=m,m=p):(n(m,p),p=wo(g,m.mode,w),p.return=m,m=p),o(m)):n(m,p)}return P}var Xn=mh(!0),gh=mh(!1),fs=Qt(null),hs=null,Ln=null,Cl=null;function jl(){Cl=Ln=hs=null}function Tl(e){var t=fs.current;Y(fs),e._currentValue=t}function ma(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 $n(e,t){hs=e,Cl=Ln=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Me=!0),e.firstContext=null)}function Qe(e){var t=e._currentValue;if(Cl!==e)if(e={context:e,memoizedValue:t,next:null},Ln===null){if(hs===null)throw Error(N(308));Ln=e,hs.dependencies={lanes:0,firstContext:e}}else Ln=Ln.next=e;return t}var sn=null;function Pl(e){sn===null?sn=[e]:sn.push(e)}function yh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Pl(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ct(e,r)}function Ct(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 Dt=!1;function Nl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xh(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 wt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,B&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ct(e,n)}return i=r.interleaved,i===null?(t.next=t,Pl(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ct(e,n)}function Ui(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,fl(e,n)}}function pc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 ps(e,t,n,r){var i=e.updateQueue;Dt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(s!==null){var h=i.baseState;o=0,d=u=l=null,a=s;do{var f=a.lane,y=a.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,v=a;switch(f=t,y=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){h=x.call(y,h,f);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,f=typeof x=="function"?x.call(y,h,f):x,f==null)break e;h=ee({},h,f);break e;case 2:Dt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else y={eventTime:y,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=y,l=h):d=d.next=y,o|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(d===null&&(l=h),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);gn|=o,e.lanes=o,e.memoizedState=h}}function mc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=mo.transition;mo.transition={};try{e(!1),t()}finally{U=n,mo.transition=r}}function Vh(){return Xe().memoizedState}function o1(e,t,n){var r=Ut(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ih(e))_h(t,n);else if(n=yh(e,t,n,r),n!==null){var i=Pe();it(n,e,r,i),Fh(n,t,r)}}function a1(e,t,n){var r=Ut(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ih(e))_h(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,st(a,o)){var l=t.interleaved;l===null?(i.next=i,Pl(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=yh(e,t,i,r),n!==null&&(i=Pe(),it(n,e,r,i),Fh(n,t,r))}}function Ih(e){var t=e.alternate;return e===J||t!==null&&t===J}function _h(e,t){br=gs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fl(e,n)}}var ys={readContext:Qe,useCallback:xe,useContext:xe,useEffect:xe,useImperativeHandle:xe,useInsertionEffect:xe,useLayoutEffect:xe,useMemo:xe,useReducer:xe,useRef:xe,useState:xe,useDebugValue:xe,useDeferredValue:xe,useTransition:xe,useMutableSource:xe,useSyncExternalStore:xe,useId:xe,unstable_isNewReconciler:!1},l1={readContext:Qe,useCallback:function(e,t){return at().memoizedState=[e,t===void 0?null:t],e},useContext:Qe,useEffect:yc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$i(4194308,4,Mh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $i(4194308,4,e,t)},useInsertionEffect:function(e,t){return $i(4,2,e,t)},useMemo:function(e,t){var n=at();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=at();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=o1.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=at();return e={current:e},t.memoizedState=e},useState:gc,useDebugValue:Vl,useDeferredValue:function(e){return at().memoizedState=e},useTransition:function(){var e=gc(!1),t=e[0];return e=s1.bind(null,e[1]),at().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=J,i=at();if(Q){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),he===null)throw Error(N(349));mn&30||Sh(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,yc(jh.bind(null,r,s,e),[e]),r.flags|=2048,qr(9,Ch.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=at(),t=he.identifierPrefix;if(Q){var n=vt,r=xt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[lt]=t,e[Gr]=r,Yh(e,t,!1,!1),t.stateNode=e;e:{switch(o=Zo(n,r),n){case"dialog":G("cancel",e),G("close",e),i=r;break;case"iframe":case"object":case"embed":G("load",e),i=r;break;case"video":case"audio":for(i=0;iJn&&(t.flags|=128,r=!0,mr(s,!1),t.lanes=4194304)}else{if(!r)if(e=ms(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Q)return ve(t),null}else 2*re()-s.renderingStartTime>Jn&&n!==1073741824&&(t.flags|=128,r=!0,mr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=re(),t.sibling=null,n=Z.current,K(Z,r?n&1|2:n&1),t):(ve(t),null);case 22:case 23:return zl(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ve&1073741824&&(ve(t),t.subtreeFlags&6&&(t.flags|=8192)):ve(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function g1(e,t){switch(kl(t),t.tag){case 1:return Ae(t.type)&&ls(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(),Y(Le),Y(Ce),Ml(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bl(t),null;case 13:if(Y(Z),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Qn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(Z),null;case 4:return Zn(),null;case 10:return Tl(t.type._context),null;case 22:case 23:return zl(),null;case 24:return null;default:return null}}var bi=!1,we=!1,y1=typeof WeakSet=="function"?WeakSet:Set,M=null;function An(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ne(e,t,r)}else n.current=null}function ja(e,t,n){try{n()}catch(r){ne(e,t,r)}}var Ec=!1;function x1(e,t){if(aa=is,e=th(),vl(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,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var y;h!==n||i!==0&&h.nodeType!==3||(a=o+i),h!==s||r!==0&&h.nodeType!==3||(l=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(y=h.firstChild)!==null;)f=h,h=y;for(;;){if(h===e)break t;if(f===n&&++u===i&&(a=o),f===s&&++d===r&&(l=o),(y=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=y}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(la={focusedElem:e,selectionRange:n},is=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var v=x.memoizedProps,P=x.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:et(t.type,v),P);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(w){ne(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return x=Ec,Ec=!1,x}function Mr(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 s=i.destroy;i.destroy=void 0,s!==void 0&&ja(t,n,s)}i=i.next}while(i!==r)}}function Fs(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 Ta(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 Zh(e){var t=e.alternate;t!==null&&(e.alternate=null,Zh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[lt],delete t[Gr],delete t[da],delete t[e1],delete t[t1])),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 qh(e){return e.tag===5||e.tag===3||e.tag===4}function bc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qh(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 Pa(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=as));else if(r!==4&&(e=e.child,e!==null))for(Pa(e,t,n),e=e.sibling;e!==null;)Pa(e,t,n),e=e.sibling}function Na(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(Na(e,t,n),e=e.sibling;e!==null;)Na(e,t,n),e=e.sibling}var pe=null,tt=!1;function Et(e,t,n){for(n=n.child;n!==null;)Jh(e,t,n),n=n.sibling}function Jh(e,t,n){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(Ms,n)}catch{}switch(n.tag){case 5:we||An(n,t);case 6:var r=pe,i=tt;pe=null,Et(e,t,n),pe=r,tt=i,pe!==null&&(tt?(e=pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pe.removeChild(n.stateNode));break;case 18:pe!==null&&(tt?(e=pe,n=n.stateNode,e.nodeType===8?fo(e.parentNode,n):e.nodeType===1&&fo(e,n),Ur(e)):fo(pe,n.stateNode));break;case 4:r=pe,i=tt,pe=n.stateNode.containerInfo,tt=!0,Et(e,t,n),pe=r,tt=i;break;case 0:case 11:case 14:case 15:if(!we&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&ja(n,t,o),i=i.next}while(i!==r)}Et(e,t,n);break;case 1:if(!we&&(An(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ne(n,t,a)}Et(e,t,n);break;case 21:Et(e,t,n);break;case 22:n.mode&1?(we=(r=we)||n.memoizedState!==null,Et(e,t,n),we=r):Et(e,t,n);break;default:Et(e,t,n)}}function Mc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new y1),t.forEach(function(r){var i=N1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*w1(r/1960))-r,10e?16:e,Vt===null)var r=!1;else{if(e=Vt,Vt=null,ws=0,B&6)throw Error(N(331));var i=B;for(B|=4,M=e.current;M!==null;){var s=M,o=s.child;if(M.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lre()-Ol?un(e,0):Fl|=n),Re(e,t)}function a0(e,t){t===0&&(e.mode&1?(t=wi,wi<<=1,!(wi&130023424)&&(wi=4194304)):t=1);var n=Pe();e=Ct(e,t),e!==null&&(ai(e,t,n),Re(e,n))}function P1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),a0(e,n)}function N1(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(N(314))}r!==null&&r.delete(t),a0(e,n)}var l0;l0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Le.current)Me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Me=!1,p1(e,t,n);Me=!!(e.flags&131072)}else Me=!1,Q&&t.flags&1048576&&fh(t,ds,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hi(e,t),e=t.pendingProps;var i=Yn(t,Ce.current);$n(t,n),i=Ll(null,t,r,e,i,n);var s=Al();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,Ae(r)?(s=!0,us(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Nl(t),i.updater=_s,t.stateNode=i,i._reactInternals=t,ya(t,r,e,n),t=wa(null,t,r,!0,s,n)):(t.tag=0,Q&&s&&wl(t),je(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=b1(r),e=et(r,e),i){case 0:t=va(null,t,r,e,n);break e;case 1:t=Tc(null,t,r,e,n);break e;case 11:t=Cc(null,t,r,e,n);break e;case 14:t=jc(null,t,r,et(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),va(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Tc(e,t,r,i,n);case 3:e:{if(Hh(t),e===null)throw Error(N(387));r=t.pendingProps,s=t.memoizedState,i=s.element,xh(e,t),ps(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=qn(Error(N(423)),t),t=Pc(e,t,r,n,i);break e}else if(r!==i){i=qn(Error(N(424)),t),t=Pc(e,t,r,n,i);break e}else for(Ie=Ot(t.stateNode.containerInfo.firstChild),_e=t,Q=!0,nt=null,n=gh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Qn(),r===i){t=jt(e,t,n);break e}je(e,t,r,n)}t=t.child}return t;case 5:return vh(t),e===null&&pa(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,ua(r,i)?o=null:s!==null&&ua(r,s)&&(t.flags|=32),$h(e,t),je(e,t,o,n),t.child;case 6:return e===null&&pa(t),null;case 13:return Kh(e,t,n);case 4:return El(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xn(t,null,r,n):je(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Cc(e,t,r,i,n);case 7:return je(e,t,t.pendingProps,n),t.child;case 8:return je(e,t,t.pendingProps.children,n),t.child;case 12:return je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,K(fs,r._currentValue),r._currentValue=o,s!==null)if(st(s.value,o)){if(s.children===i.children&&!Le.current){t=jt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=wt(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ma(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(N(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),ma(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}je(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,$n(t,n),i=Qe(i),r=r(i),t.flags|=1,je(e,t,r,n),t.child;case 14:return r=t.type,i=et(r,t.pendingProps),i=et(r.type,i),jc(e,t,r,i,n);case 15:return Uh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Hi(e,t),t.tag=1,Ae(r)?(e=!0,us(t)):e=!1,$n(t,n),Oh(t,r,i),ya(t,r,i,n),wa(null,t,r,!0,e,n);case 19:return Gh(e,t,n);case 22:return Wh(e,t,n)}throw Error(N(156,t.tag))};function u0(e,t){return If(e,t)}function E1(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 He(e,t,n,r){return new E1(e,t,n,r)}function Wl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function b1(e){if(typeof e=="function")return Wl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ll)return 11;if(e===ul)return 14}return 2}function Wt(e,t){var n=e.alternate;return n===null?(n=He(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 Yi(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Wl(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case jn:return cn(n.children,i,s,t);case al:o=8,i|=8;break;case zo:return e=He(12,n,t,i|2),e.elementType=zo,e.lanes=s,e;case Uo:return e=He(13,n,t,i),e.elementType=Uo,e.lanes=s,e;case Wo:return e=He(19,n,t,i),e.elementType=Wo,e.lanes=s,e;case vf:return Bs(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case yf:o=10;break e;case xf:o=9;break e;case ll:o=11;break e;case ul:o=14;break e;case Mt:o=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=He(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function cn(e,t,n,r){return e=He(7,e,r,t),e.lanes=n,e}function Bs(e,t,n,r){return e=He(22,e,r,t),e.elementType=vf,e.lanes=n,e.stateNode={isHidden:!1},e}function wo(e,t,n){return e=He(6,e,null,t),e.lanes=n,e}function ko(e,t,n){return t=He(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function M1(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=eo(0),this.expirationTimes=eo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function $l(e,t,n,r,i,s,o,a,l){return e=new M1(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=He(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nl(s),e}function D1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(h0)}catch(e){console.error(e)}}h0(),hf.exports=Oe;var I1=hf.exports,Fc=I1;Oo.createRoot=Fc.createRoot,Oo.hydrateRoot=Fc.hydrateRoot;const Yl=S.createContext({});function Ql(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Xl=typeof window<"u",p0=Xl?S.useLayoutEffect:S.useEffect,Hs=S.createContext(null);function Zl(e,t){e.indexOf(t)===-1&&e.push(t)}function ql(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Tt=(e,t,n)=>n>t?t:n{};const Pt={},m0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function g0(e){return typeof e=="object"&&e!==null}const y0=e=>/^0[^.\s]+$/u.test(e);function eu(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ye=e=>e,_1=(e,t)=>n=>t(e(n)),di=(...e)=>e.reduce(_1),ei=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class tu{constructor(){this.subscriptions=[]}add(t){return Zl(this.subscriptions,t),()=>ql(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;se*1e3,Ke=e=>e/1e3;function x0(e,t){return t?e*(1e3/t):0}const v0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,F1=1e-7,O1=12;function B1(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=v0(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>F1&&++aB1(s,0,1,e,n);return s=>s===0||s===1?s:v0(i(s),t,r)}const w0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,k0=e=>t=>1-e(1-t),S0=fi(.33,1.53,.69,.99),nu=k0(S0),C0=w0(nu),j0=e=>(e*=2)<1?.5*nu(e):.5*(2-Math.pow(2,-10*(e-1))),ru=e=>1-Math.sin(Math.acos(e)),T0=k0(ru),P0=w0(ru),z1=fi(.42,0,1,1),U1=fi(0,0,.58,1),N0=fi(.42,0,.58,1),W1=e=>Array.isArray(e)&&typeof e[0]!="number",E0=e=>Array.isArray(e)&&typeof e[0]=="number",$1={linear:Ye,easeIn:z1,easeInOut:N0,easeOut:U1,circIn:ru,circInOut:P0,circOut:T0,backIn:nu,backInOut:C0,backOut:S0,anticipate:j0},H1=e=>typeof e=="string",Oc=e=>{if(E0(e)){Jl(e.length===4);const[t,n,r,i]=e;return fi(t,n,r,i)}else if(H1(e))return $1[e];return e},Li=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function K1(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(d){o.has(d)&&(u.schedule(d),e()),d(a)}const u={schedule:(d,h=!1,f=!1)=>{const x=f&&i?n:r;return h&&o.add(d),x.has(d)||x.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,u.process(d))}};return u}const G1=40;function b0(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Li.reduce((g,w)=>(g[w]=K1(s),g),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:d,update:h,preRender:f,render:y,postRender:x}=o,v=()=>{const g=Pt.useManualTiming?i.timestamp:performance.now();n=!1,Pt.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,G1),1)),i.timestamp=g,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),d.process(i),h.process(i),f.process(i),y.process(i),x.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},P=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:Li.reduce((g,w)=>{const k=o[w];return g[w]=(j,T=!1,C=!1)=>(n||P(),k.schedule(j,T,C)),g},{}),cancel:g=>{for(let w=0;w(Qi===void 0&&De.set(me.isProcessing||Pt.useManualTiming?me.timestamp:performance.now()),Qi),set:e=>{Qi=e,queueMicrotask(Y1)}},M0=e=>t=>typeof t=="string"&&t.startsWith(e),iu=M0("--"),Q1=M0("var(--"),su=e=>Q1(e)?X1.test(e.split("/*")[0].trim()):!1,X1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,sr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ti={...sr,transform:e=>Tt(0,1,e)},Ai={...sr,default:1},Ar=e=>Math.round(e*1e5)/1e5,ou=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Z1(e){return e==null}const q1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,au=(e,t)=>n=>!!(typeof n=="string"&&q1.test(n)&&n.startsWith(e)||t&&!Z1(n)&&Object.prototype.hasOwnProperty.call(n,t)),D0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(ou);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},J1=e=>Tt(0,255,e),Co={...sr,transform:e=>Math.round(J1(e))},an={test:au("rgb","red"),parse:D0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Co.transform(e)+", "+Co.transform(t)+", "+Co.transform(n)+", "+Ar(ti.transform(r))+")"};function ey(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 La={test:au("#"),parse:ey,transform:an.transform},hi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),bt=hi("deg"),ft=hi("%"),V=hi("px"),ty=hi("vh"),ny=hi("vw"),Bc={...ft,parse:e=>ft.parse(e)/100,transform:e=>ft.transform(e*100)},Vn={test:au("hsl","hue"),parse:D0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ft.transform(Ar(t))+", "+ft.transform(Ar(n))+", "+Ar(ti.transform(r))+")"},se={test:e=>an.test(e)||La.test(e)||Vn.test(e),parse:e=>an.test(e)?an.parse(e):Vn.test(e)?Vn.parse(e):La.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?an.transform(e):Vn.transform(e),getAnimatableNone:e=>{const t=se.parse(e);return t.alpha=0,se.transform(t)}},ry=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function iy(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ou))==null?void 0:t.length)||0)+(((n=e.match(ry))==null?void 0:n.length)||0)>0}const L0="number",A0="color",sy="var",oy="var(",zc="${}",ay=/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 ni(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(ay,l=>(se.test(l)?(r.color.push(s),i.push(A0),n.push(se.parse(l))):l.startsWith(oy)?(r.var.push(s),i.push(sy),n.push(l)):(r.number.push(s),i.push(L0),n.push(parseFloat(l))),++s,zc)).split(zc);return{values:n,split:a,indexes:r,types:i}}function R0(e){return ni(e).values}function V0(e){const{split:t,types:n}=ni(e),r=t.length;return i=>{let s="";for(let o=0;otypeof e=="number"?0:se.test(e)?se.getAnimatableNone(e):e;function uy(e){const t=R0(e);return V0(e)(t.map(ly))}const Gt={test:iy,parse:R0,createTransformer:V0,getAnimatableNone:uy};function jo(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 cy({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=jo(l,a,e+1/3),s=jo(l,a,e),o=jo(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Cs(e,t){return n=>n>0?t:e}const q=(e,t,n)=>e+(t-e)*n,To=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},dy=[La,an,Vn],fy=e=>dy.find(t=>t.test(e));function Uc(e){const t=fy(e);if(!t)return!1;let n=t.parse(e);return t===Vn&&(n=cy(n)),n}const Wc=(e,t)=>{const n=Uc(e),r=Uc(t);if(!n||!r)return Cs(e,t);const i={...n};return s=>(i.red=To(n.red,r.red,s),i.green=To(n.green,r.green,s),i.blue=To(n.blue,r.blue,s),i.alpha=q(n.alpha,r.alpha,s),an.transform(i))},Aa=new Set(["none","hidden"]);function hy(e,t){return Aa.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function py(e,t){return n=>q(e,t,n)}function lu(e){return typeof e=="number"?py:typeof e=="string"?su(e)?Cs:se.test(e)?Wc:yy:Array.isArray(e)?I0:typeof e=="object"?se.test(e)?Wc:my:Cs}function I0(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>lu(s)(s,t[o]));return s=>{for(let o=0;o{for(const s in r)n[s]=r[s](i);return n}}function gy(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=Gt.createTransformer(t),r=ni(e),i=ni(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?Aa.has(e)&&!i.values.length||Aa.has(t)&&!r.values.length?hy(e,t):di(I0(gy(r,i),i.values),n):Cs(e,t)};function _0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?q(e,t,n):lu(e)(e,t)}const xy=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>X.update(t,n),stop:()=>Kt(t),now:()=>me.isProcessing?me.timestamp:De.now()}},F0=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s=js?1/0:t}function vy(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(uu(r),js);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:Ke(i)}}const wy=5;function O0(e,t,n){const r=Math.max(t-wy,0);return x0(n-e(r),t-r)}const te={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},Po=.001;function ky({duration:e=te.duration,bounce:t=te.bounce,velocity:n=te.velocity,mass:r=te.mass}){let i,s,o=1-t;o=Tt(te.minDamping,te.maxDamping,o),e=Tt(te.minDuration,te.maxDuration,Ke(e)),o<1?(i=u=>{const d=u*o,h=d*e,f=d-n,y=Ra(u,o),x=Math.exp(-h);return Po-f/y*x},s=u=>{const h=u*o*e,f=h*n+n,y=Math.pow(o,2)*Math.pow(u,2)*e,x=Math.exp(-h),v=Ra(Math.pow(u,2),o);return(-i(u)+Po>0?-1:1)*((f-y)*x)/v}):(i=u=>{const d=Math.exp(-u*e),h=(u-n)*e+1;return-Po+d*h},s=u=>{const d=Math.exp(-u*e),h=(n-u)*(e*e);return d*h});const a=5/e,l=Cy(i,s,a);if(e=dt(e),isNaN(l))return{stiffness:te.stiffness,damping:te.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const Sy=12;function Cy(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function Py(e){let t={velocity:te.velocity,stiffness:te.stiffness,damping:te.damping,mass:te.mass,isResolvedFromDuration:!1,...e};if(!$c(e,Ty)&&$c(e,jy))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Tt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:te.mass,stiffness:i,damping:s}}else{const n=ky(e);t={...t,...n,mass:te.mass},t.isResolvedFromDuration=!0}return t}function Ts(e=te.visualDuration,t=te.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:d,duration:h,velocity:f,isResolvedFromDuration:y}=Py({...n,velocity:-Ke(n.velocity||0)}),x=f||0,v=u/(2*Math.sqrt(l*d)),P=o-s,m=Ke(Math.sqrt(l/d)),p=Math.abs(P)<5;r||(r=p?te.restSpeed.granular:te.restSpeed.default),i||(i=p?te.restDelta.granular:te.restDelta.default);let g;if(v<1){const k=Ra(m,v);g=j=>{const T=Math.exp(-v*m*j);return o-T*((x+v*m*P)/k*Math.sin(k*j)+P*Math.cos(k*j))}}else if(v===1)g=k=>o-Math.exp(-m*k)*(P+(x+m*P)*k);else{const k=m*Math.sqrt(v*v-1);g=j=>{const T=Math.exp(-v*m*j),C=Math.min(k*j,300);return o-T*((x+v*m*P)*Math.sinh(C)+k*P*Math.cosh(C))/k}}const w={calculatedDuration:y&&h||null,next:k=>{const j=g(k);if(y)a.done=k>=h;else{let T=k===0?x:0;v<1&&(T=k===0?dt(x):O0(g,k,j));const C=Math.abs(T)<=r,E=Math.abs(o-j)<=i;a.done=C&&E}return a.value=a.done?o:j,a},toString:()=>{const k=Math.min(uu(w),js),j=F0(T=>w.next(k*T).value,k,30);return k+"ms "+j},toTransition:()=>{}};return w}Ts.applyToOptions=e=>{const t=vy(e,100,Ts);return e.ease=t.ease,e.duration=dt(t.duration),e.type="keyframes",e};function Va({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:d}){const h=e[0],f={done:!1,value:h},y=C=>a!==void 0&&Cl,x=C=>a===void 0?l:l===void 0||Math.abs(a-C)-v*Math.exp(-C/r),g=C=>m+p(C),w=C=>{const E=p(C),D=g(C);f.done=Math.abs(E)<=u,f.value=f.done?m:D};let k,j;const T=C=>{y(f.value)&&(k=C,j=Ts({keyframes:[f.value,x(f.value)],velocity:O0(g,C,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:d}))};return T(0),{calculatedDuration:null,next:C=>{let E=!1;return!j&&k===void 0&&(E=!0,w(C),T(C)),k!==void 0&&C>=k?j.next(C-k):(!E&&w(C),f)}}}function Ny(e,t,n){const r=[],i=n||Pt.mix||_0,s=e.length-1;for(let o=0;ot[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Ny(t,r,i),l=a.length,u=d=>{if(o&&d1)for(;hu(Tt(e[0],e[s-1],d)):u}function by(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ei(0,t,r);e.push(q(n,1,i))}}function My(e){const t=[0];return by(t,e.length-1),t}function Dy(e,t){return e.map(n=>n*t)}function Ly(e,t){return e.map(()=>t||N0).splice(0,e.length-1)}function Rr({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=W1(r)?r.map(Oc):Oc(r),s={done:!1,value:t[0]},o=Dy(n&&n.length===t.length?n:My(t),e),a=Ey(o,t,{ease:Array.isArray(i)?i:Ly(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const Ay=e=>e!==null;function cu(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(Ay),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const Ry={decay:Va,inertia:Va,tween:Rr,keyframes:Rr,spring:Ts};function B0(e){typeof e.type=="string"&&(e.type=Ry[e.type])}class du{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Vy=e=>e/100;class fu extends du{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==De.now()&&this.tick(De.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;B0(t);const{type:n=Rr,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||Rr;l!==Rr&&typeof a[0]!="number"&&(this.mixKeyframes=di(Vy,_0(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=uu(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:d,repeat:h,repeatType:f,repeatDelay:y,type:x,onUpdate:v,finalKeyframe:P}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-u*(this.playbackSpeed>=0?1:-1),p=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let g=this.currentTime,w=r;if(h){const C=Math.min(this.currentTime,i)/a;let E=Math.floor(C),D=C%1;!D&&C>=1&&(D=1),D===1&&E--,E=Math.min(E,h+1),!!(E%2)&&(f==="reverse"?(D=1-D,y&&(D-=y/a)):f==="mirror"&&(w=o)),g=Tt(0,1,D)*a}const k=p?{done:!1,value:d[0]}:w.next(g);s&&(k.value=s(k.value));let{done:j}=k;!p&&l!==null&&(j=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&j);return T&&x!==Va&&(k.value=cu(d,this.options,P,this.speed)),v&&v(k.value),T&&this.finish(),k}then(t,n){return this.finished.then(t,n)}get duration(){return Ke(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ke(t)}get time(){return Ke(this.currentTime)}set time(t){var n;t=dt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(De.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ke(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=xy,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(De.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Iy(e){for(let t=1;te*180/Math.PI,Ia=e=>{const t=ln(Math.atan2(e[1],e[0]));return _a(t)},_y={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ia,rotateZ:Ia,skewX:e=>ln(Math.atan(e[1])),skewY:e=>ln(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},_a=e=>(e=e%360,e<0&&(e+=360),e),Hc=Ia,Kc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Gc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Fy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Kc,scaleY:Gc,scale:e=>(Kc(e)+Gc(e))/2,rotateX:e=>_a(ln(Math.atan2(e[6],e[5]))),rotateY:e=>_a(ln(Math.atan2(-e[2],e[0]))),rotateZ:Hc,rotate:Hc,skewX:e=>ln(Math.atan(e[4])),skewY:e=>ln(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Fa(e){return e.includes("scale")?1:0}function Oa(e,t){if(!e||e==="none")return Fa(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Fy,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=_y,i=a}if(!i)return Fa(t);const s=r[t],o=i[1].split(",").map(By);return typeof s=="function"?s(o):o[s]}const Oy=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Oa(n,t)};function By(e){return parseFloat(e.trim())}const or=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ar=new Set(or),Yc=e=>e===sr||e===V,zy=new Set(["x","y","z"]),Uy=or.filter(e=>!zy.has(e));function Wy(e){const t=[];return Uy.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const dn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Oa(t,"x"),y:(e,{transform:t})=>Oa(t,"y")};dn.translateX=dn.x;dn.translateY=dn.y;const fn=new Set;let Ba=!1,za=!1,Ua=!1;function z0(){if(za){const e=Array.from(fn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Wy(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}za=!1,Ba=!1,fn.forEach(e=>e.complete(Ua)),fn.clear()}function U0(){fn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(za=!0)})}function $y(){Ua=!0,U0(),z0(),Ua=!1}class hu{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(fn.add(this),Ba||(Ba=!0,X.read(U0),X.resolveKeyframes(z0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}Iy(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),fn.delete(this)}cancel(){this.state==="scheduled"&&(fn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Hy=e=>e.startsWith("--");function Ky(e,t,n){Hy(t)?e.style.setProperty(t,n):e.style[t]=n}const Gy=eu(()=>window.ScrollTimeline!==void 0),Yy={};function Qy(e,t){const n=eu(e);return()=>Yy[t]??n()}const W0=Qy(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Cr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Qc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Cr([0,.65,.55,1]),circOut:Cr([.55,0,1,.45]),backIn:Cr([.31,.01,.66,-.59]),backOut:Cr([.33,1.53,.69,.99])};function $0(e,t){if(e)return typeof e=="function"?W0()?F0(e,t):"ease-out":E0(e)?Cr(e):Array.isArray(e)?e.map(n=>$0(n,t)||Qc.easeOut):Qc[e]}function Xy(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const d={[t]:n};l&&(d.offset=l);const h=$0(a,i);Array.isArray(h)&&(d.easing=h);const f={delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(d,f)}function H0(e){return typeof e=="function"&&"applyToOptions"in e}function Zy({type:e,...t}){return H0(e)&&W0()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class qy extends du{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,Jl(typeof t.type!="string");const u=Zy(t);this.animation=Xy(n,r,i,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const d=cu(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):Ky(n,r,d),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Ke(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ke(t)}get time(){return Ke(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=dt(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Gy()?(this.animation.timeline=t,Ye):n(this)}}const K0={anticipate:j0,backInOut:C0,circInOut:P0};function Jy(e){return e in K0}function ex(e){typeof e.ease=="string"&&Jy(e.ease)&&(e.ease=K0[e.ease])}const Xc=10;class tx extends qy{constructor(t){ex(t),B0(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new fu({...o,autoplay:!1}),l=dt(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Xc).value,a.sample(l).value,Xc),a.stop()}}const Zc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Gt.test(e)||e==="0")&&!e.startsWith("url("));function nx(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function ox(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return sx()&&n&&ix.has(n)&&(n!=="transform"||!u)&&!l&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const ax=40;class lx extends du{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:d,...h}){var x;super(),this.stop=()=>{var v,P;this._animation&&(this._animation.stop(),(v=this.stopTimeline)==null||v.call(this)),(P=this.keyframeResolver)==null||P.cancel()},this.createdAt=De.now();const f={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:u,element:d,...h},y=(d==null?void 0:d.KeyframeResolver)||hu;this.keyframeResolver=new y(a,(v,P,m)=>this.onKeyframesResolved(v,P,f,!m),l,u,d),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:d}=r;this.resolvedAt=De.now(),rx(t,s,o,a)||((Pt.instantAnimations||!l)&&(d==null||d(cu(t,r,n))),t[0]=t[t.length-1],Wa(r),r.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ax?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=!u&&ox(f)?new tx({...f,element:f.motionValue.owner.current}):new fu(f);y.finished.then(()=>this.notifyFinished()).catch(Ye),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),$y()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const ux=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function cx(e){const t=ux.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function G0(e,t,n=1){const[r,i]=cx(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return m0(o)?parseFloat(o):o}return su(i)?G0(i,t,n+1):i}function pu(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Y0=new Set(["width","height","top","left","right","bottom",...or]),dx={test:e=>e==="auto",parse:e=>e},Q0=e=>t=>t.test(e),X0=[sr,V,ft,bt,ny,ty,dx],qc=e=>X0.find(Q0(e));function fx(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||y0(e):!0}const hx=new Set(["brightness","contrast","saturate","opacity"]);function px(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ou)||[];if(!r)return e;const i=n.replace(r,"");let s=hx.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const mx=/\b([a-z-]*)\(.*?\)/gu,$a={...Gt,getAnimatableNone:e=>{const t=e.match(mx);return t?t.map(px).join(" "):e}},Jc={...sr,transform:Math.round},gx={rotate:bt,rotateX:bt,rotateY:bt,rotateZ:bt,scale:Ai,scaleX:Ai,scaleY:Ai,scaleZ:Ai,skew:bt,skewX:bt,skewY:bt,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:ti,originX:Bc,originY:Bc,originZ:V},mu={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V,...gx,zIndex:Jc,fillOpacity:ti,strokeOpacity:ti,numOctaves:Jc},yx={...mu,color:se,backgroundColor:se,outlineColor:se,fill:se,stroke:se,borderColor:se,borderTopColor:se,borderRightColor:se,borderBottomColor:se,borderLeftColor:se,filter:$a,WebkitFilter:$a},Z0=e=>yx[e];function q0(e,t){let n=Z0(e);return n!==$a&&(n=Gt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const xx=new Set(["auto","none","0"]);function vx(e,t,n){let r=0,i;for(;r{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function kx(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const J0=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ep(e){return g0(e)&&"offsetHeight"in e}const ed=30,Sx=e=>!isNaN(parseFloat(e));class Cx{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=De.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=De.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Sx(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 tu);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=De.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ed)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ed);return x0(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function er(e,t){return new Cx(e,t)}const{schedule:gu}=b0(queueMicrotask,!1),Je={x:!1,y:!1};function tp(){return Je.x||Je.y}function jx(e){return e==="x"||e==="y"?Je[e]?null:(Je[e]=!0,()=>{Je[e]=!1}):Je.x||Je.y?null:(Je.x=Je.y=!0,()=>{Je.x=Je.y=!1})}function np(e,t){const n=kx(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function td(e){return!(e.pointerType==="touch"||tp())}function Tx(e,t,n={}){const[r,i,s]=np(e,n),o=a=>{if(!td(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const d=h=>{td(h)&&(u(h),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const rp=(e,t)=>t?e===t?!0:rp(e,t.parentElement):!1,yu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Px=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Nx(e){return Px.has(e.tagName)||e.tabIndex!==-1}const Xi=new WeakSet;function nd(e){return t=>{t.key==="Enter"&&e(t)}}function No(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Ex=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=nd(()=>{if(Xi.has(n))return;No(n,"down");const i=nd(()=>{No(n,"up")}),s=()=>No(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function rd(e){return yu(e)&&!tp()}function bx(e,t,n={}){const[r,i,s]=np(e,n),o=a=>{const l=a.currentTarget;if(!rd(a))return;Xi.add(l);const u=t(l,a),d=(y,x)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),Xi.has(l)&&Xi.delete(l),rd(y)&&typeof u=="function"&&u(y,{success:x})},h=y=>{d(y,l===window||l===document||n.useGlobalTarget||rp(l,y.target))},f=y=>{d(y,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),ep(a)&&(a.addEventListener("focus",u=>Ex(u,i)),!Nx(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function ip(e){return g0(e)&&"ownerSVGElement"in e}function Mx(e){return ip(e)&&e.tagName==="svg"}const Se=e=>!!(e&&e.getVelocity),Dx=[...X0,se,Gt],Lx=e=>Dx.find(Q0(e)),xu=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function id(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ax(...e){return t=>{let n=!1;const r=e.map(i=>{const s=id(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i{const{width:u,height:d,top:h,left:f,right:y}=o.current;if(t||!s.current||!u||!d)return;const x=n==="left"?`left: ${f}`:`right: ${y}`;s.current.dataset.motionPopId=i;const v=document.createElement("style");a&&(v.nonce=a);const P=r??document.head;return P.appendChild(v),v.sheet&&v.sheet.insertRule(` - [data-motion-pop-id="${i}"] { - position: absolute !important; - width: ${u}px !important; - height: ${d}px !important; - ${x}px !important; - top: ${h}px !important; - } - `),()=>{P.contains(v)&&P.removeChild(v)}},[t]),c.jsx(Vx,{isPresent:t,childRef:s,sizeRef:o,children:S.cloneElement(e,{ref:l})})}const _x=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a,root:l})=>{const u=Ql(Fx),d=S.useId();let h=!0,f=S.useMemo(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:y=>{u.set(y,!0);for(const x of u.values())if(!x)return;r&&r()},register:y=>(u.set(y,!1),()=>u.delete(y))}),[n,u,r]);return s&&h&&(f={...f}),S.useMemo(()=>{u.forEach((y,x)=>u.set(x,!1))},[n]),S.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),o==="popLayout"&&(e=c.jsx(Ix,{isPresent:n,anchorX:a,root:l,children:e})),c.jsx(Hs.Provider,{value:f,children:e})};function Fx(){return new Map}function sp(e=!0){const t=S.useContext(Hs);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=S.useId();S.useEffect(()=>{if(e)return i(s)},[e]);const o=S.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const Ri=e=>e.key||"";function sd(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const Ha=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left",root:l})=>{const[u,d]=sp(o),h=S.useMemo(()=>sd(e),[e]),f=o&&!u?[]:h.map(Ri),y=S.useRef(!0),x=S.useRef(h),v=Ql(()=>new Map),[P,m]=S.useState(h),[p,g]=S.useState(h);p0(()=>{y.current=!1,x.current=h;for(let j=0;j{const T=Ri(j),C=o&&!u?!1:h===p||f.includes(T),E=()=>{if(v.has(T))v.set(T,!0);else return;let D=!0;v.forEach(W=>{W||(D=!1)}),D&&(k==null||k(),g(x.current),o&&(d==null||d()),r&&r())};return c.jsx(_x,{isPresent:C,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:l,onExitComplete:C?void 0:E,anchorX:a,children:j},T)})})},op=S.createContext({strict:!1}),od={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},tr={};for(const e in od)tr[e]={isEnabled:t=>od[e].some(n=>!!t[n])};function Ox(e){for(const t in e)tr[t]={...tr[t],...e[t]}}const Bx=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 Ps(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Bx.has(e)}let ap=e=>!Ps(e);function zx(e){typeof e=="function"&&(ap=t=>t.startsWith("on")?!Ps(t):e(t))}try{zx(require("@emotion/is-prop-valid").default)}catch{}function Ux(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(ap(i)||n===!0&&Ps(i)||!t&&!Ps(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Ks=S.createContext({});function Gs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ri(e){return typeof e=="string"||Array.isArray(e)}const vu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wu=["initial",...vu];function Ys(e){return Gs(e.animate)||wu.some(t=>ri(e[t]))}function lp(e){return!!(Ys(e)||e.variants)}function Wx(e,t){if(Ys(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ri(n)?n:void 0,animate:ri(r)?r:void 0}}return e.inherit!==!1?t:{}}function $x(e){const{initial:t,animate:n}=Wx(e,S.useContext(Ks));return S.useMemo(()=>({initial:t,animate:n}),[ad(t),ad(n)])}function ad(e){return Array.isArray(e)?e.join(" "):e}const ii={};function Hx(e){for(const t in e)ii[t]=e[t],iu(t)&&(ii[t].isCSSVariable=!0)}function up(e,{layout:t,layoutId:n}){return ar.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ii[e]||e==="opacity")}const Kx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Gx=or.length;function Yx(e,t,n){let r="",i=!0;for(let s=0;s({style:{},transform:{},transformOrigin:{},vars:{}});function cp(e,t,n){for(const r in t)!Se(t[r])&&!up(r,n)&&(e[r]=t[r])}function Qx({transformTemplate:e},t){return S.useMemo(()=>{const n=Su();return ku(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Xx(e,t){const n=e.style||{},r={};return cp(r,n,e),Object.assign(r,Qx(e,t)),r}function Zx(e,t){const n={},r=Xx(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const qx={offset:"stroke-dashoffset",array:"stroke-dasharray"},Jx={offset:"strokeDashoffset",array:"strokeDasharray"};function ev(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?qx:Jx;e[s.offset]=V.transform(-r);const o=V.transform(t),a=V.transform(n);e[s.array]=`${o} ${a}`}function dp(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,u,d){if(ku(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:f}=e;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete h.transformBox),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),i!==void 0&&ev(h,i,s,o,!1)}const fp=()=>({...Su(),attrs:{}}),hp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function tv(e,t,n,r){const i=S.useMemo(()=>{const s=fp();return dp(s,t,hp(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};cp(s,e.style,e),i.style={...s,...i.style}}return i}const nv=["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 Cu(e){return typeof e!="string"||e.includes("-")?!1:!!(nv.indexOf(e)>-1||/[A-Z]/u.test(e))}function rv(e,t,n,{latestValues:r},i,s=!1){const a=(Cu(e)?tv:Zx)(t,r,i,e),l=Ux(t,typeof e=="string",s),u=e!==S.Fragment?{...l,...a,ref:n}:{},{children:d}=t,h=S.useMemo(()=>Se(d)?d.get():d,[d]);return S.createElement(e,{...u,children:h})}function ld(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function ju(e,t,n,r){if(typeof t=="function"){const[i,s]=ld(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=ld(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Zi(e){return Se(e)?e.get():e}function iv({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:sv(n,r,i,e),renderState:t()}}function sv(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=Zi(s[f]);let{initial:o,animate:a}=e;const l=Ys(e),u=lp(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const h=d?a:o;if(h&&typeof h!="boolean"&&!Gs(h)){const f=Array.isArray(h)?h:[h];for(let y=0;y(t,n)=>{const r=S.useContext(Ks),i=S.useContext(Hs),s=()=>iv(e,t,r,i);return n?s():Ql(s)};function Tu(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(Se(r[o])||t.style&&Se(t.style[o])||up(o,e)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const ov=pp({scrapeMotionValuesFromProps:Tu,createRenderState:Su});function mp(e,t,n){const r=Tu(e,t,n);for(const i in e)if(Se(e[i])||Se(t[i])){const s=or.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const av=pp({scrapeMotionValuesFromProps:mp,createRenderState:fp}),lv=Symbol.for("motionComponentSymbol");function In(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function uv(e,t,n){return S.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):In(n)&&(n.current=r))},[t])}const Pu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),cv="framerAppearId",gp="data-"+Pu(cv),yp=S.createContext({});function dv(e,t,n,r,i){var v,P;const{visualElement:s}=S.useContext(Ks),o=S.useContext(op),a=S.useContext(Hs),l=S.useContext(xu).reducedMotion,u=S.useRef(null);r=r||o.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const d=u.current,h=S.useContext(yp);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&fv(u.current,n,i,h);const f=S.useRef(!1);S.useInsertionEffect(()=>{d&&f.current&&d.update(n,a)});const y=n[gp],x=S.useRef(!!y&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,y))&&((P=window.MotionHasOptimisedAnimation)==null?void 0:P.call(window,y)));return p0(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),x.current&&d.animationState&&d.animationState.animateChanges())}),S.useEffect(()=>{d&&(!x.current&&d.animationState&&d.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)==null||m.call(window,y)}),x.current=!1),d.enteringChildren=void 0)}),d}function fv(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:xp(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&In(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u})}function xp(e){if(e)return e.options.allowProjection!==!1?e.projection:xp(e.parent)}function Eo(e,{forwardMotionProps:t=!1}={},n,r){n&&Ox(n);const i=Cu(e)?av:ov;function s(a,l){let u;const d={...S.useContext(xu),...a,layoutId:hv(a)},{isStatic:h}=d,f=$x(a),y=i(a,h);if(!h&&Xl){pv();const x=mv(d);u=x.MeasureLayout,f.visualElement=dv(e,y,d,r,x.ProjectionNode)}return c.jsxs(Ks.Provider,{value:f,children:[u&&f.visualElement?c.jsx(u,{visualElement:f.visualElement,...d}):null,rv(e,a,uv(y,f.visualElement,l),y,h,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=S.forwardRef(s);return o[lv]=e,o}function hv({layoutId:e}){const t=S.useContext(Yl).id;return t&&e!==void 0?t+"-"+e:e}function pv(e,t){S.useContext(op).strict}function mv(e){const{drag:t,layout:n}=tr;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function gv(e,t){if(typeof Proxy>"u")return Eo;const n=new Map,r=(s,o)=>Eo(s,o,e,t),i=(s,o)=>r(s,o);return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,Eo(o,void 0,e,t)),n.get(o))})}function vp({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function yv({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function xv(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 bo(e){return e===void 0||e===1}function Ka({scale:e,scaleX:t,scaleY:n}){return!bo(e)||!bo(t)||!bo(n)}function nn(e){return Ka(e)||wp(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function wp(e){return ud(e.x)||ud(e.y)}function ud(e){return e&&e!=="0%"}function Ns(e,t,n){const r=e-n,i=t*r;return n+i}function cd(e,t,n,r,i){return i!==void 0&&(e=Ns(e,i,r)),Ns(e,n,r)+t}function Ga(e,t=0,n=1,r,i){e.min=cd(e.min,t,n,r,i),e.max=cd(e.max,t,n,r,i)}function kp(e,{x:t,y:n}){Ga(e.x,t.translate,t.scale,t.originPoint),Ga(e.y,n.translate,n.scale,n.originPoint)}const dd=.999999999999,fd=1.0000000000001;function vv(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;add&&(t.x=1),t.ydd&&(t.y=1)}function _n(e,t){e.min=e.min+t,e.max=e.max+t}function hd(e,t,n,r,i=.5){const s=q(e.min,e.max,i);Ga(e,t,n,s,r)}function Fn(e,t){hd(e.x,t.x,t.scaleX,t.scale,t.originX),hd(e.y,t.y,t.scaleY,t.scale,t.originY)}function Sp(e,t){return vp(xv(e.getBoundingClientRect(),t))}function wv(e,t,n){const r=Sp(e,n),{scroll:i}=t;return i&&(_n(r.x,i.offset.x),_n(r.y,i.offset.y)),r}const pd=()=>({translate:0,scale:1,origin:0,originPoint:0}),On=()=>({x:pd(),y:pd()}),md=()=>({min:0,max:0}),le=()=>({x:md(),y:md()}),Ya={current:null},Cp={current:!1};function kv(){if(Cp.current=!0,!!Xl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ya.current=e.matches;e.addEventListener("change",t),t()}else Ya.current=!1}const Sv=new WeakMap;function Cv(e,t,n){for(const r in t){const i=t[r],s=n[r];if(Se(i))e.addValue(r,i);else if(Se(s))e.addValue(r,er(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,er(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const gd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class jv{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=hu,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 f=De.now();this.renderScheduledAtthis.bindToMotionValue(i,r)),Cp.current||kv(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ya.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Kt(this.notifyUpdate),Kt(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ar.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&X.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in tr){const n=tr[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):le()}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=er(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(m0(r)||y0(r))?r=parseFloat(r):!Lx(r)&&Gt.test(n)&&(r=q0(t,n)),this.setBaseTarget(t,Se(r)?r.get():r)),Se(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=ju(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Se(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new tu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){gu.render(this.render)}}class jp extends jv{constructor(){super(...arguments),this.KeyframeResolver=wx}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;Se(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Tp(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function Tv(e){return window.getComputedStyle(e)}class Pv extends jp{constructor(){super(...arguments),this.type="html",this.renderInstance=Tp}readValueFromInstance(t,n){var r;if(ar.has(n))return(r=this.projection)!=null&&r.isProjecting?Fa(n):Oy(t,n);{const i=Tv(t),s=(iu(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Sp(t,n)}build(t,n,r){ku(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Tu(t,n,r)}}const Pp=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 Nv(e,t,n,r){Tp(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Pp.has(i)?i:Pu(i),t.attrs[i])}class Ev extends jp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=le}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ar.has(n)){const r=Z0(n);return r&&r.default||0}return n=Pp.has(n)?n:Pu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return mp(t,n,r)}build(t,n,r){dp(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Nv(t,n,r,i)}mount(t){this.isSVGTag=hp(t.tagName),super.mount(t)}}const bv=(e,t)=>Cu(e)?new Ev(t):new Pv(t,{allowProjection:e!==S.Fragment});function Kn(e,t,n){const r=e.getProps();return ju(r,t,n!==void 0?n:r.custom,e)}const Qa=e=>Array.isArray(e);function Mv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,er(n))}function Dv(e){return Qa(e)?e[e.length-1]||0:e}function Lv(e,t){const n=Kn(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=Dv(s[o]);Mv(e,o,a)}}function Av(e){return!!(Se(e)&&e.add)}function Xa(e,t){const n=e.getValue("willChange");if(Av(n))return n.add(t);if(!n&&Pt.WillChange){const r=new Pt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Np(e){return e.props[gp]}const Rv=e=>e!==null;function Vv(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Rv),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const Iv={type:"spring",stiffness:500,damping:25,restSpeed:10},_v=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Fv={type:"keyframes",duration:.8},Ov={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Bv=(e,{keyframes:t})=>t.length>2?Fv:ar.has(e)?e.startsWith("scale")?_v(t[1]):Iv:Ov;function zv({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...d}){return!!Object.keys(d).length}const Nu=(e,t,n,r={},i,s)=>o=>{const a=pu(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-dt(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};zv(a)||Object.assign(d,Bv(e,d)),d.duration&&(d.duration=dt(d.duration)),d.repeatDelay&&(d.repeatDelay=dt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Wa(d),d.delay===0&&(h=!0)),(Pt.instantAnimations||Pt.skipAnimations)&&(h=!0,Wa(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,h&&!s&&t.get()!==void 0){const f=Vv(d.keyframes,a);if(f!==void 0){X.update(()=>{d.onUpdate(f),d.onComplete()});return}}return a.isSync?new fu(d):new lx(d)};function Uv({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ep(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const d in a){const h=e.getValue(d,e.latestValues[d]??null),f=a[d];if(f===void 0||u&&Uv(u,d))continue;const y={delay:n,...pu(s||{},d)},x=h.get();if(x!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===x&&!y.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const m=Np(e);if(m){const p=window.MotionHandoffAnimation(m,d,X);p!==null&&(y.startTime=p,v=!0)}}Xa(e,d),h.start(Nu(d,h,f,e.shouldReduceMotion&&Y0.has(d)?{type:!1}:y,e,v));const P=h.animation;P&&l.push(P)}return o&&Promise.all(l).then(()=>{X.update(()=>{o&&Lv(e,o)})}),l}function bp(e,t,n,r=0,i=1){const s=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}function Za(e,t,n={}){var l;const r=Kn(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(Ep(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:f}=i;return Wv(e,t,u,d,h,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,d]=a==="beforeChildren"?[s,o]:[o,s];return u().then(()=>d())}else return Promise.all([s(),o(n.delay)])}function Wv(e,t,n=0,r=0,i=0,s=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Za(l,t,{...o,delay:n+(typeof r=="function"?0:r)+bp(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function $v(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Za(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Za(e,t,n);else{const i=typeof t=="function"?Kn(e,t,n.custom):t;r=Promise.all(Ep(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Mp(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>$v(e,n,r)))}function Qv(e){let t=Yv(e),n=yd(),r=!0;const i=l=>(u,d)=>{var f;const h=Kn(e,d,l==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(h){const{transition:y,transitionEnd:x,...v}=h;u={...u,...v,...x}}return u};function s(l){t=l(e)}function o(l){const{props:u}=e,d=Dp(e.parent)||{},h=[],f=new Set;let y={},x=1/0;for(let P=0;Px&&w,E=!1;const D=Array.isArray(g)?g:[g];let W=D.reduce(i(m),{});k===!1&&(W={});const{prevResolvedValues:de={}}=p,ze={...de,...W},$=H=>{C=!0,f.has(H)&&(E=!0,f.delete(H)),p.needsAnimating[H]=!0;const b=e.getValue(H);b&&(b.liveStyle=!1)};for(const H in ze){const b=W[H],L=de[H];if(y.hasOwnProperty(H))continue;let R=!1;Qa(b)&&Qa(L)?R=!Mp(b,L):R=b!==L,R?b!=null?$(H):f.add(H):b!==void 0&&f.has(H)?$(H):p.protectedKeys[H]=!0}p.prevProp=g,p.prevResolvedValues=W,p.isActive&&(y={...y,...W}),r&&e.blockInitialAnimation&&(C=!1);const ae=j&&T;C&&(!ae||E)&&h.push(...D.map(H=>{const b={type:m};if(typeof H=="string"&&r&&!ae&&e.manuallyAnimateOnMount&&e.parent){const{parent:L}=e,R=Kn(L,H);if(L.enteringChildren&&R){const{delayChildren:I}=R.transition||{};b.delay=bp(L.enteringChildren,e,I)}}return{animation:H,options:b}}))}if(f.size){const P={};if(typeof u.initial!="boolean"){const m=Kn(e,Array.isArray(u.initial)?u.initial[0]:u.initial);m&&m.transition&&(P.transition=m.transition)}f.forEach(m=>{const p=e.getBaseTarget(m),g=e.getValue(m);g&&(g.liveStyle=!0),P[m]=p??null}),h.push({animation:P})}let v=!!h.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(h):Promise.resolve()}function a(l,u){var h;if(n[l].isActive===u)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(f=>{var y;return(y=f.animationState)==null?void 0:y.setActive(l,u)}),n[l].isActive=u;const d=o(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=yd()}}}function Xv(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Mp(t,e):!1}function Jt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yd(){return{animate:Jt(!0),whileInView:Jt(),whileHover:Jt(),whileTap:Jt(),whileDrag:Jt(),whileFocus:Jt(),exit:Jt()}}class Zt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Zv extends Zt{constructor(t){super(t),t.animationState||(t.animationState=Qv(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Gs(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.call(this)}}let qv=0;class Jv extends Zt{constructor(){super(...arguments),this.id=qv++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const e2={animation:{Feature:Zv},exit:{Feature:Jv}};function si(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function pi(e){return{point:{x:e.pageX,y:e.pageY}}}const t2=e=>t=>yu(t)&&e(t,pi(t));function Vr(e,t,n,r){return si(e,t,t2(n),r)}const Lp=1e-4,n2=1-Lp,r2=1+Lp,Ap=.01,i2=0-Ap,s2=0+Ap;function Te(e){return e.max-e.min}function o2(e,t,n){return Math.abs(e-t)<=n}function xd(e,t,n,r=.5){e.origin=r,e.originPoint=q(t.min,t.max,e.origin),e.scale=Te(n)/Te(t),e.translate=q(n.min,n.max,e.origin)-e.originPoint,(e.scale>=n2&&e.scale<=r2||isNaN(e.scale))&&(e.scale=1),(e.translate>=i2&&e.translate<=s2||isNaN(e.translate))&&(e.translate=0)}function Ir(e,t,n,r){xd(e.x,t.x,n.x,r?r.originX:void 0),xd(e.y,t.y,n.y,r?r.originY:void 0)}function vd(e,t,n){e.min=n.min+t.min,e.max=e.min+Te(t)}function a2(e,t,n){vd(e.x,t.x,n.x),vd(e.y,t.y,n.y)}function wd(e,t,n){e.min=t.min-n.min,e.max=e.min+Te(t)}function Es(e,t,n){wd(e.x,t.x,n.x),wd(e.y,t.y,n.y)}function Ue(e){return[e("x"),e("y")]}const Rp=({current:e})=>e?e.ownerDocument.defaultView:null,kd=(e,t)=>Math.abs(e-t);function l2(e,t){const n=kd(e.x,t.x),r=kd(e.y,t.y);return Math.sqrt(n**2+r**2)}class Vp{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Do(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,x=l2(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!x)return;const{point:v}=f,{timestamp:P}=me;this.history.push({...v,timestamp:P});const{onStart:m,onMove:p}=this.handlers;y||(m&&m(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,f)},this.handlePointerMove=(f,y)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Mo(y,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(f,y)=>{this.end();const{onEnd:x,onSessionEnd:v,resumeAnimation:P}=this.handlers;if(this.dragSnapToOrigin&&P&&P(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=Do(f.type==="pointercancel"?this.lastMoveEventInfo:Mo(y,this.transformPagePoint),this.history);this.startEvent&&x&&x(f,m),v&&v(f,m)},!yu(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const a=pi(t),l=Mo(a,this.transformPagePoint),{point:u}=l,{timestamp:d}=me;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,Do(l,this.history)),this.removeListeners=di(Vr(this.contextWindow,"pointermove",this.handlePointerMove),Vr(this.contextWindow,"pointerup",this.handlePointerUp),Vr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Kt(this.updatePoint)}}function Mo(e,t){return t?{point:t(e.point)}:e}function Sd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Do({point:e},t){return{point:e,delta:Sd(e,Ip(t)),offset:Sd(e,u2(t)),velocity:c2(t,.1)}}function u2(e){return e[0]}function Ip(e){return e[e.length-1]}function c2(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Ip(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>dt(t)));)n--;if(!r)return{x:0,y:0};const s=Ke(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function d2(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?q(n,e,r.max):Math.min(e,n)),e}function Cd(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 f2(e,{top:t,left:n,bottom:r,right:i}){return{x:Cd(e.x,n,i),y:Cd(e.y,t,r)}}function jd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ei(t.min,t.max-r,e.min):r>i&&(n=ei(e.min,e.max-i,t.min)),Tt(0,1,n)}function m2(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 qa=.35;function g2(e=qa){return e===!1?e=0:e===!0&&(e=qa),{x:Td(e,"left","right"),y:Td(e,"top","bottom")}}function Td(e,t,n){return{min:Pd(e,t),max:Pd(e,n)}}function Pd(e,t){return typeof e=="number"?e:e[t]||0}const y2=new WeakMap;class x2{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=le(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=h=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(pi(h).point)},o=(h,f)=>{const{drag:y,dragPropagation:x,onDragStart:v}=this.getProps();if(y&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=jx(y),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ue(m=>{let p=this.getAxisMotionValue(m).get()||0;if(ft.test(p)){const{projection:g}=this.visualElement;if(g&&g.layout){const w=g.layout.layoutBox[m];w&&(p=Te(w)*(parseFloat(p)/100))}}this.originPoint[m]=p}),v&&X.postRender(()=>v(h,f)),Xa(this.visualElement,"transform");const{animationState:P}=this.visualElement;P&&P.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:y,dragDirectionLock:x,onDirectionLock:v,onDrag:P}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:m}=f;if(x&&this.currentDirection===null){this.currentDirection=v2(m),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",f.point,m),this.updateAxis("y",f.point,m),this.visualElement.render(),P&&P(h,f)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Ue(h=>{var f;return this.getAnimationState(h)==="paused"&&((f=this.getAxisMotionValue(h).animation)==null?void 0:f.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Vp(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:Rp(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&X.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Vi(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=d2(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&In(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=f2(r.layoutBox,t):this.constraints=!1,this.elastic=g2(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ue(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=m2(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!In(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=wv(r,i.root,this.visualElement.getTransformPagePoint());let o=h2(i.layout.layoutBox,s);if(n){const a=n(yv(o));this.hasMutatedConstraints=!!a,a&&(o=vp(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ue(d=>{if(!Vi(d,n,this.currentDirection))return;let h=l&&l[d]||{};o&&(h={min:0,max:0});const f=i?200:1e6,y=i?40:1e7,x={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...s,...h};return this.startAxisValueAnimation(d,x)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Xa(this.visualElement,t),r.start(Nu(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ue(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ue(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?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){Ue(n=>{const{drag:r}=this.getProps();if(!Vi(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-q(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!In(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ue(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=p2({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ue(o=>{if(!Vi(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(q(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;y2.set(this.visualElement,this);const t=this.visualElement.current,n=Vr(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();In(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),X.read(r);const o=si(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ue(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=l[d].translate,h.set(h.get()+l[d].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=qa,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Vi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function v2(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class w2 extends Zt{constructor(t){super(t),this.removeGroupControls=Ye,this.removeListeners=Ye,this.controls=new x2(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ye}unmount(){this.removeGroupControls(),this.removeListeners()}}const Nd=e=>(t,n)=>{e&&X.postRender(()=>e(t,n))};class k2 extends Zt{constructor(){super(...arguments),this.removePointerDownListener=Ye}onPointerDown(t){this.session=new Vp(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:Nd(t),onStart:Nd(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&X.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Vr(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 qi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ed(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const yr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=Ed(e,t.target.x),r=Ed(e,t.target.y);return`${n}% ${r}%`}},S2={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Gt.parse(e);if(i.length>5)return r;const s=Gt.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=q(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};let Lo=!1;class C2 extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;Hx(j2),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),Lo&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),qi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,Lo=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||X.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),gu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;Lo=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function _p(e){const[t,n]=sp(),r=S.useContext(Yl);return c.jsx(C2,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(yp),isPresent:t,safeToRemove:n})}const j2={borderRadius:{...yr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:yr,borderTopRightRadius:yr,borderBottomLeftRadius:yr,borderBottomRightRadius:yr,boxShadow:S2};function T2(e,t,n){const r=Se(e)?e:er(e);return r.start(Nu("",r,t,n)),r.animation}const P2=(e,t)=>e.depth-t.depth;class N2{constructor(){this.children=[],this.isDirty=!1}add(t){Zl(this.children,t),this.isDirty=!0}remove(t){ql(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(P2),this.isDirty=!1,this.children.forEach(t)}}function E2(e,t){const n=De.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Kt(r),e(s-t))};return X.setup(r,!0),()=>Kt(r)}const Fp=["TopLeft","TopRight","BottomLeft","BottomRight"],b2=Fp.length,bd=e=>typeof e=="string"?parseFloat(e):e,Md=e=>typeof e=="number"||V.test(e);function M2(e,t,n,r,i,s){i?(e.opacity=q(0,n.opacity??1,D2(r)),e.opacityExit=q(t.opacity??1,0,L2(r))):s&&(e.opacity=q(t.opacity??1,n.opacity??1,r));for(let o=0;ort?1:n(ei(e,t,r))}function Ld(e,t){e.min=t.min,e.max=t.max}function qe(e,t){Ld(e.x,t.x),Ld(e.y,t.y)}function Ad(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Rd(e,t,n,r,i){return e-=t,e=Ns(e,1/n,r),i!==void 0&&(e=Ns(e,1/i,r)),e}function A2(e,t=0,n=1,r=.5,i,s=e,o=e){if(ft.test(t)&&(t=parseFloat(t),t=q(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=q(s.min,s.max,r);e===s&&(a-=t),e.min=Rd(e.min,t,n,a,i),e.max=Rd(e.max,t,n,a,i)}function Vd(e,t,[n,r,i],s,o){A2(e,t[n],t[r],t[i],t.scale,s,o)}const R2=["x","scaleX","originX"],V2=["y","scaleY","originY"];function Id(e,t,n,r){Vd(e.x,t,R2,n?n.x:void 0,r?r.x:void 0),Vd(e.y,t,V2,n?n.y:void 0,r?r.y:void 0)}function _d(e){return e.translate===0&&e.scale===1}function Bp(e){return _d(e.x)&&_d(e.y)}function Fd(e,t){return e.min===t.min&&e.max===t.max}function I2(e,t){return Fd(e.x,t.x)&&Fd(e.y,t.y)}function Od(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function zp(e,t){return Od(e.x,t.x)&&Od(e.y,t.y)}function Bd(e){return Te(e.x)/Te(e.y)}function zd(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class _2{constructor(){this.members=[]}add(t){Zl(this.members,t),t.scheduleRender()}remove(t){if(ql(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function F2(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:h,rotateY:f,skewX:y,skewY:x}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),f&&(r+=`rotateY(${f}deg) `),y&&(r+=`skewX(${y}deg) `),x&&(r+=`skewY(${x}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Ao=["","X","Y","Z"],O2=1e3;let B2=0;function Ro(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=Np(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",X,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Up(r)}function Wp({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=B2++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(W2),this.nodes.forEach(G2),this.nodes.forEach(Y2),this.nodes.forEach($2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;X.read(()=>{h=window.innerWidth}),e(o,()=>{const y=window.innerWidth;y!==h&&(h=y,this.root.updateBlockedByResize=!0,d&&d(),d=E2(f,250),qi.hasAnimatedSinceResize&&(qi.hasAnimatedSinceResize=!1,this.nodes.forEach($d)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||u.getDefaultTransition()||J2,{onLayoutAnimationStart:v,onLayoutAnimationComplete:P}=u.getProps(),m=!this.targetLayout||!zp(this.targetLayout,y),p=!h&&f;if(this.options.layoutRoot||this.resumeFrom||p||h&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const g={...pu(x,"layout"),onPlay:v,onComplete:P};(u.shouldReduceMotion||this.options.layoutRoot)&&(g.delay=0,g.type=!1),this.startAnimation(g),this.setAnimationOrigin(d,p)}else h||$d(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Kt(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(Q2),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&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(),this.snapshot&&!Te(this.snapshot.measuredBox.x)&&!Te(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const k=w/1e3;Hd(h.x,o.x,k),Hd(h.y,o.y,k),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Es(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Z2(this.relativeTarget,this.relativeTargetOrigin,f,k),g&&I2(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=le()),qe(g,this.relativeTarget)),v&&(this.animationValues=d,M2(d,u,this.latestValues,k,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Kt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{qi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=er(0)),this.currentAnimation=T2(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),o.onUpdate&&o.onUpdate(d)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(O2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:d}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&$p(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||le();const h=Te(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const f=Te(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}qe(a,l),Fn(a,d),Ir(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new _2),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Ro("z",o,u,this.animationValues);for(let d=0;d{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Ud),this.root.sharedNodes.clear()}}}function z2(e){e.updateLayout()}function U2(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;s==="size"?Ue(h=>{const f=o?t.measuredBox[h]:t.layoutBox[h],y=Te(f);f.min=r[h].min,f.max=f.min+y}):$p(s,t.layoutBox,r)&&Ue(h=>{const f=o?t.measuredBox[h]:t.layoutBox[h],y=Te(r[h]);f.max=f.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+y)});const a=On();Ir(a,r,t.layoutBox);const l=On();o?Ir(l,e.applyTransform(i,!0),t.measuredBox):Ir(l,r,t.layoutBox);const u=!Bp(a);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:y}=h;if(f&&y){const x=le();Es(x,t.layoutBox,f.layoutBox);const v=le();Es(v,r,y.layoutBox),zp(x,v)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=x,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function W2(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function $2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function H2(e){e.clearSnapshot()}function Ud(e){e.clearMeasurements()}function Wd(e){e.isLayoutDirty=!1}function K2(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function $d(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function G2(e){e.resolveTargetDelta()}function Y2(e){e.calcProjection()}function Q2(e){e.resetSkewAndRotation()}function X2(e){e.removeLeadSnapshot()}function Hd(e,t,n){e.translate=q(t.translate,0,n),e.scale=q(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Kd(e,t,n,r){e.min=q(t.min,n.min,r),e.max=q(t.max,n.max,r)}function Z2(e,t,n,r){Kd(e.x,t.x,n.x,r),Kd(e.y,t.y,n.y,r)}function q2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const J2={duration:.45,ease:[.4,0,.1,1]},Gd=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Yd=Gd("applewebkit/")&&!Gd("chrome/")?Math.round:Ye;function Qd(e){e.min=Yd(e.min),e.max=Yd(e.max)}function e3(e){Qd(e.x),Qd(e.y)}function $p(e,t,n){return e==="position"||e==="preserve-aspect"&&!o2(Bd(t),Bd(n),.2)}function t3(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const n3=Wp({attachResizeListener:(e,t)=>si(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Vo={current:void 0},Hp=Wp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Vo.current){const e=new n3({});e.mount(window),e.setOptions({layoutScroll:!0}),Vo.current=e}return Vo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),r3={pan:{Feature:k2},drag:{Feature:w2,ProjectionNode:Hp,MeasureLayout:_p}};function Xd(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&X.postRender(()=>s(t,pi(t)))}class i3 extends Zt{mount(){const{current:t}=this.node;t&&(this.unmount=Tx(t,(n,r)=>(Xd(this.node,r,"Start"),i=>Xd(this.node,i,"End"))))}unmount(){}}class s3 extends Zt{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=di(si(this.node.current,"focus",()=>this.onFocus()),si(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Zd(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&X.postRender(()=>s(t,pi(t)))}class o3 extends Zt{mount(){const{current:t}=this.node;t&&(this.unmount=bx(t,(n,r)=>(Zd(this.node,r,"Start"),(i,{success:s})=>Zd(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ja=new WeakMap,Io=new WeakMap,a3=e=>{const t=Ja.get(e.target);t&&t(e)},l3=e=>{e.forEach(a3)};function u3({root:e,...t}){const n=e||document;Io.has(n)||Io.set(n,{});const r=Io.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(l3,{root:e,...t})),r[i]}function c3(e,t,n){const r=u3(t);return Ja.set(e,n),r.observe(e),()=>{Ja.delete(e),r.unobserve(e)}}const d3={some:0,all:1};class f3 extends Zt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:d3[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),f=u?d:h;f&&f(l)};return c3(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(h3(t,n))&&this.startObserver()}unmount(){}}function h3({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const p3={inView:{Feature:f3},tap:{Feature:o3},focus:{Feature:s3},hover:{Feature:i3}},m3={layout:{ProjectionNode:Hp,MeasureLayout:_p}},g3={...e2,...p3,...r3,...m3},z=gv(g3,bv),ht="/api";async function Kp(){return(await fetch(`${ht}/state`)).json()}async function qd(){return(await fetch(`${ht}/dependencies/check`)).json()}async function Jd(){return(await fetch(`${ht}/docker/status`)).json()}function _o(e){let t=null,n=!1;const r=()=>{n||(t=new EventSource(`${ht}/docker/status/stream`),t.onmessage=i=>{try{const s=JSON.parse(i.data);e(s)}catch(s){console.error("Failed to parse docker status:",s)}},t.onerror=()=>{t==null||t.close(),n||setTimeout(r,1e3)})};return r(),()=>{n=!0,t==null||t.close()}}async function y3(){return(await fetch(`${ht}/docker/build`,{method:"POST"})).json()}async function Ii(){return(await fetch(`${ht}/defaults`)).json()}async function ef(e){return(await fetch(`${ht}/defaults`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async function x3(){return(await fetch(`${ht}/signing/status`)).json()}async function v3(){return(await fetch(`${ht}/signing`)).json()}async function w3(e){return(await fetch(`${ht}/signing`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}const Gp="/assets/wails-logo-white-text-B284k7fX.svg",Yp="/assets/wails-logo-black-text-Cx-vsZ4W.svg",k3={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};function S3({onNext:e,onSkip:t,onBack:n,canGoBack:r}){const[i,s]=S.useState(null),[o,a]=S.useState(null),[l,u]=S.useState(!0),[d,h]=S.useState("linux"),[f,y]=S.useState("darwin"),[x,v]=S.useState(!1),[P,m]=S.useState(!1),p=S.useRef(null);S.useEffect(()=>{var E;(E=p.current)==null||E.focus(),g()},[]);const g=async()=>{var E;try{const[D,W,de]=await Promise.all([x3(),v3(),Kp()]);s(D),a(W||{darwin:{},windows:{},linux:{}}),(E=de.system)!=null&&E.os&&h(de.system.os)}catch(D){console.error("Failed to load signing data:",D)}finally{u(!1)}},w=async()=>{if(o){m(!0);try{await w3(o),await g(),v(!1)}catch(E){console.error("Failed to save signing config:",E)}finally{m(!1)}}},k=()=>{var E,D,W,de,ze,$,ae,ie,H,b,L,R;if(!o)return null;if(f==="darwin"){const I=d==="darwin";return c.jsxs("div",{className:"space-y-4",children:[!I&&c.jsxs("div",{className:"p-3 rounded-lg bg-amber-50 dark:bg-amber-900/20 border border-amber-200 dark:border-amber-800 text-sm",children:[c.jsx("p",{className:"text-amber-800 dark:text-amber-200 font-medium mb-1",children:"Cross-platform signing"}),c.jsxs("p",{className:"text-amber-700 dark:text-amber-300 text-xs",children:["You can sign macOS apps from ",d==="linux"?"Linux":"Windows"," using"," ",c.jsx("a",{href:"https://github.com/indygreg/apple-platform-rs/tree/main/apple-codesign",target:"_blank",rel:"noopener noreferrer",className:"underline hover:no-underline",children:"rcodesign"}),". You'll need a .p12 certificate file exported from a Mac."]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Signing Identity"}),c.jsx("input",{type:"text",value:((E=o.darwin)==null?void 0:E.identity)||"",onChange:O=>a({...o,darwin:{...o.darwin,identity:O.target.value}}),placeholder:"Developer ID Application: Your Name (TEAMID)",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"}),I&&c.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:["Find with: ",c.jsx("code",{className:"bg-gray-100 dark:bg-gray-800 px-1 rounded",children:"security find-identity -v -p codesigning"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Team ID"}),c.jsx("input",{type:"text",value:((D=o.darwin)==null?void 0:D.teamID)||"",onChange:O=>a({...o,darwin:{...o.darwin,teamID:O.target.value}}),placeholder:"ABCD1234EF",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"})]}),!I&&c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"P12 Certificate Path"}),c.jsx("input",{type:"text",value:((W=o.darwin)==null?void 0:W.p12Path)||"",onChange:O=>a({...o,darwin:{...o.darwin,p12Path:O.target.value}}),placeholder:"/path/to/certificate.p12",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"}),c.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:"Export from Keychain Access on a Mac, or generate via Apple Developer Portal"})]}),c.jsxs("div",{children:[c.jsxs("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:["Notarization Profile ",!I&&"(Mac only)"]}),c.jsx("input",{type:"text",value:((de=o.darwin)==null?void 0:de.keychainProfile)||"",onChange:O=>a({...o,darwin:{...o.darwin,keychainProfile:O.target.value}}),placeholder:"notarytool-profile",disabled:!I,className:`w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500 ${I?"":"opacity-50 cursor-not-allowed"}`}),I&&c.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:["Create with: ",c.jsx("code",{className:"bg-gray-100 dark:bg-gray-800 px-1 rounded",children:"xcrun notarytool store-credentials"})]}),!I&&c.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:"For cross-platform notarization, use App Store Connect API keys instead"})]}),!I&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"border-t border-gray-200 dark:border-gray-700 pt-4 mt-4",children:c.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400 mb-3 font-medium",children:["App Store Connect API (for notarization from ",d==="linux"?"Linux":"Windows",")"]})}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"API Key ID"}),c.jsx("input",{type:"text",value:((ze=o.darwin)==null?void 0:ze.apiKeyID)||"",onChange:O=>a({...o,darwin:{...o.darwin,apiKeyID:O.target.value}}),placeholder:"ABC123DEF4",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Issuer ID"}),c.jsx("input",{type:"text",value:(($=o.darwin)==null?void 0:$.apiIssuerID)||"",onChange:O=>a({...o,darwin:{...o.darwin,apiIssuerID:O.target.value}}),placeholder:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"API Key Path (.p8 file)"}),c.jsx("input",{type:"text",value:((ae=o.darwin)==null?void 0:ae.apiKeyPath)||"",onChange:O=>a({...o,darwin:{...o.darwin,apiKeyPath:O.target.value}}),placeholder:"/path/to/AuthKey_ABC123DEF4.p8",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"}),c.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:["Create at"," ",c.jsx("a",{href:"https://appstoreconnect.apple.com/access/api",target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 hover:underline",children:"App Store Connect → Users and Access → Keys"})]})]})]})]})}return f==="windows"?c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Certificate Path (PFX/P12)"}),c.jsx("input",{type:"text",value:((ie=o.windows)==null?void 0:ie.certificatePath)||"",onChange:I=>a({...o,windows:{...o.windows,certificatePath:I.target.value}}),placeholder:"/path/to/certificate.pfx",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"})]}),c.jsx("div",{className:"text-center text-xs text-gray-500 dark:text-gray-400",children:"— or —"}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Certificate Thumbprint (Windows Store)"}),c.jsx("input",{type:"text",value:((H=o.windows)==null?void 0:H.thumbprint)||"",onChange:I=>a({...o,windows:{...o.windows,thumbprint:I.target.value}}),placeholder:"ABC123DEF456...",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Timestamp Server"}),c.jsx("input",{type:"text",value:((b=o.windows)==null?void 0:b.timestampServer)||"http://timestamp.digicert.com",onChange:I=>a({...o,windows:{...o.windows,timestampServer:I.target.value}}),className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"})]})]}):f==="linux"?c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"GPG Key ID"}),c.jsx("input",{type:"text",value:((L=o.linux)==null?void 0:L.gpgKeyID)||"",onChange:I=>a({...o,linux:{...o.linux,gpgKeyID:I.target.value}}),placeholder:"ABCD1234EFGH5678",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"}),c.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:["Find with: ",c.jsx("code",{className:"bg-gray-100 dark:bg-gray-800 px-1 rounded",children:"gpg --list-secret-keys --keyid-format long"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"GPG Key Path (optional)"}),c.jsx("input",{type:"text",value:((R=o.linux)==null?void 0:R.gpgKeyPath)||"",onChange:I=>a({...o,linux:{...o.linux,gpgKeyPath:I.target.value}}),placeholder:"~/.gnupg/private-key.asc",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"})]})]}):null},j=()=>{if(!i)return null;if(f==="darwin"){const E=i.darwin;return c.jsxs("div",{className:"space-y-4",children:[c.jsx(xr,{label:"Code Signing Identity",configured:E.hasIdentity,value:E.hasIdentity?E.identity||"Configured":"Not configured",source:E.configSource}),c.jsx(xr,{label:"Notarization",configured:E.hasNotarization,value:E.hasNotarization?`Team ID: ${E.teamID||"Configured"}`:"Not configured"}),E.identities&&E.identities.length>1&&c.jsxs("div",{className:"text-xs text-gray-500 dark:text-gray-400 p-3 rounded-lg bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800",children:[c.jsxs("span",{className:"font-medium",children:[E.identities.length," signing identities"]})," found in keychain"]})]})}if(f==="windows"){const E=i.windows;return c.jsxs("div",{className:"space-y-4",children:[c.jsx(xr,{label:"Code Signing Certificate",configured:E.hasCertificate,value:E.hasCertificate?`Type: ${E.certificateType}`:"Not configured",source:E.configSource}),c.jsx(xr,{label:"SignTool",configured:E.hasSignTool,value:E.hasSignTool?"Available":"Not found (Windows SDK required)"}),E.timestampServer&&c.jsxs("div",{className:"text-xs text-gray-500 dark:text-gray-400 p-3 rounded-lg bg-gray-50 dark:bg-gray-800/50",children:["Timestamp server: ",c.jsx("code",{className:"font-mono",children:E.timestampServer})]})]})}if(f==="linux"){const E=i.linux;return c.jsx("div",{className:"space-y-4",children:c.jsx(xr,{label:"GPG Signing Key",configured:E.hasGpgKey,value:E.hasGpgKey?`Key ID: ${E.gpgKeyID}`:"Not configured",source:E.configSource})})}return null},C=(()=>{if(!i)return{configured:0,total:3};let E=0;return i.darwin.hasIdentity&&E++,i.windows.hasCertificate&&E++,i.linux.hasGpgKey&&E++,{configured:E,total:3}})();return c.jsxs(z.main,{variants:k3,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col","aria-labelledby":"signing-title",children:[c.jsxs("header",{className:"text-center mb-6 flex-shrink-0 px-10 pt-10",children:[c.jsx("h1",{ref:p,id:"signing-title",className:"text-2xl font-semibold text-gray-900 dark:text-white mb-1.5 tracking-tight focus:outline-none",tabIndex:-1,children:"Code Signing"}),c.jsx("p",{className:"text-base text-gray-500 dark:text-gray-400",children:C.configured>0?`${C.configured} of ${C.total} platforms configured`:"Sign your apps for distribution"})]}),c.jsx("div",{className:"flex-1 overflow-y-auto scrollbar-thin min-h-0 px-10",children:l?c.jsx("div",{className:"flex items-center justify-center h-48",children:c.jsx(z.div,{className:"w-8 h-8 border-2 border-gray-300 dark:border-gray-600 border-t-red-500 rounded-full",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}})}):c.jsxs("div",{className:"max-w-xl mx-auto",children:[c.jsxs("div",{className:"flex gap-2 mb-6",role:"tablist",children:[c.jsx(Fo,{platform:"darwin",label:"macOS",isActive:f==="darwin",hasConfig:i==null?void 0:i.darwin.hasIdentity,onClick:()=>{y("darwin"),v(!1)}}),c.jsx(Fo,{platform:"windows",label:"Windows",isActive:f==="windows",hasConfig:i==null?void 0:i.windows.hasCertificate,onClick:()=>{y("windows"),v(!1)}}),c.jsx(Fo,{platform:"linux",label:"Linux",isActive:f==="linux",hasConfig:i==null?void 0:i.linux.hasGpgKey,onClick:()=>{y("linux"),v(!1)}})]}),c.jsx(Ha,{mode:"wait",children:x?c.jsxs(z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[k(),c.jsxs("div",{className:"flex gap-3 mt-6",children:[c.jsx("button",{onClick:()=>v(!1),className:"flex-1 px-4 py-2 rounded-lg text-sm font-medium border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Cancel"}),c.jsx("button",{onClick:w,disabled:P,className:"flex-1 px-4 py-2 rounded-lg text-sm font-medium bg-red-500 text-white hover:bg-red-600 disabled:opacity-50",children:P?"Saving...":"Save"})]})]},"config"):c.jsxs(z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},role:"tabpanel",children:[j(),c.jsxs("button",{onClick:()=>v(!0),className:"w-full mt-4 px-4 py-2 rounded-lg text-sm font-medium border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors",children:["Configure ",f==="darwin"?"macOS":f==="windows"?"Windows":"Linux"," Signing"]})]},"status")}),c.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-6 text-center",children:"Code signing ensures your app is trusted and hasn't been tampered with"})]})}),c.jsxs("div",{className:"flex-shrink-0 pt-4 pb-6 flex flex-col items-center gap-1.5",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[r&&n&&c.jsx("button",{onClick:n,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Back"}),c.jsx("button",{onClick:e,className:"px-5 py-2 rounded-lg text-sm font-medium transition-colors border border-red-500 text-red-600 dark:text-red-400 hover:bg-red-500/10 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Continue"})]}),c.jsx("button",{onClick:t,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900 rounded",children:"Set up later"})]})]})}function xr({label:e,configured:t,value:n,source:r}){return c.jsxs("div",{className:"flex items-center gap-3 p-4 rounded-lg bg-gray-100 dark:bg-gray-900/50",children:[c.jsx("div",{className:`w-8 h-8 rounded-full flex items-center justify-center ${t?"bg-green-500/20":"bg-gray-200 dark:bg-gray-800"}`,children:t?c.jsx("svg",{className:"w-4 h-4 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})}):c.jsx("svg",{className:"w-4 h-4 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),c.jsxs("div",{className:"flex-1",children:[c.jsx("div",{className:"text-sm font-medium text-gray-900 dark:text-white",children:e}),c.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400",children:n})]}),r&&c.jsx("span",{className:"text-xs px-2 py-1 rounded-full bg-gray-200 dark:bg-gray-800 text-gray-600 dark:text-gray-400",children:r})]})}function Fo({platform:e,label:t,isActive:n,hasConfig:r,onClick:i}){const s=`w-5 h-5 ${n?"text-gray-900 dark:text-white":"text-gray-400 dark:text-gray-500"}`;return c.jsxs("button",{role:"tab","aria-selected":n,onClick:i,className:`flex-1 flex items-center justify-center gap-2 px-4 py-3 rounded-lg text-sm font-medium transition-all ${n?"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white":"text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-800/50"}`,children:[e==="darwin"&&c.jsx("svg",{className:s,viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),e==="windows"&&c.jsx("svg",{className:s,viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M0 3.449L9.75 2.1v9.451H0m10.949-9.602L24 0v11.4H10.949M0 12.6h9.75v9.451L0 20.699M10.949 12.6H24V24l-12.9-1.801"})}),e==="linux"&&c.jsx("svg",{className:s,viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.267a.86.86 0 00.153.2c.071.085.178.135.305.178l.056.02a.398.398 0 00-.104.078c-.09.088-.198.2-.318.267-.145.085-.232.135-.39.135a1.04 1.04 0 01-.507-.151c-.106-.067-.199-.135-.285-.202l-.072-.053c-.239-.2-.439-.401-.618-.535a2.494 2.494 0 01-.393-.4c-.078-.1-.143-.199-.2-.298l-.06-.135-.048.066c-.078.133-.127.266-.127.465 0 .2.049.4.127.535.078.133.2.265.35.331.148.068.313.135.47.202.234.1.438.2.59.331.15.135.234.27.234.402 0 .135-.063.265-.198.332-.142.065-.32.102-.578.102-.232 0-.465-.037-.67-.1-.204-.068-.378-.17-.51-.301-.135-.135-.237-.301-.305-.5-.066-.199-.103-.432-.103-.699 0-.265.037-.5.106-.698.068-.2.166-.366.3-.5.135-.135.301-.234.5-.3.2-.067.432-.1.699-.1.266 0 .5.033.699.1.199.066.365.165.5.3.135.134.233.3.3.5.068.198.101.433.101.698 0 .267-.033.5-.1.7-.068.199-.166.365-.301.5-.135.134-.301.233-.5.3-.199.067-.433.1-.699.1-.267 0-.5-.033-.7-.1a1.379 1.379 0 01-.5-.3c-.134-.135-.233-.301-.3-.5-.066-.2-.1-.433-.1-.7 0-.266.034-.5.1-.698.067-.2.166-.366.3-.5.135-.135.301-.234.5-.3.2-.067.433-.1.7-.1z"})}),c.jsx("span",{children:t}),r&&c.jsx("span",{className:"w-2 h-2 rounded-full bg-green-500"})]})}function C3(e){switch(e){case"splash":case"checking":return"welcome";case"deps-ready":case"deps-missing":return"dependencies";case"cross-platform":case"docker-setup":return"platform";case"projects":case"signing":return"identity";case"language-select":case"binding-style":case"template-select":return"templates";case"complete":return"complete";default:return"welcome"}}function j3(e){return["welcome","dependencies","platform","identity","templates","complete"].indexOf(e)+1}const Qp=S.createContext({theme:"dark",toggleTheme:()=>{}}),Xp=()=>S.useContext(Qp),ke={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};function T3({currentStep:e,dockerStatus:t,buildingDocker:n}){const{theme:r,toggleTheme:i}=Xp(),s=C3(e),o=j3(s),a=[{key:"welcome",label:"Welcome"},{key:"dependencies",label:"Dependencies"},{key:"platform",label:"Platform"},{key:"identity",label:"Projects"},{key:"templates",label:"Templates"},{key:"complete",label:"Complete"}],l=()=>{window.open("https://github.com/sponsors/leaanthony","_blank","noopener,noreferrer")},u=n;return c.jsxs("aside",{className:"w-48 flex-shrink-0 bg-gray-100/80 dark:bg-transparent dark:glass-sidebar border-r border-gray-200 dark:border-transparent flex flex-col","aria-label":"Setup progress",children:[c.jsx("div",{className:"p-6 flex justify-center",children:c.jsx("img",{src:r==="dark"?Gp:Yp,alt:"Wails logo",className:"h-24 object-contain"})}),c.jsx("nav",{className:"flex-1 px-4 py-2","aria-label":"Setup steps",children:c.jsx("ol",{className:"space-y-1",children:a.map((d,h)=>{const f=h+1,y=d.key===s,x=f{var f;(f=d.current)==null||f.focus()},[e]);const h=r||s?c.jsxs("div",{className:"flex-shrink-0 pt-4 pb-6 flex flex-col items-center gap-1.5",role:"group","aria-label":"Page actions",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[u&&l&&c.jsx("button",{onClick:l,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Back"}),r&&i&&c.jsx("button",{onClick:r,disabled:a,className:`px-5 py-2 rounded-lg text-sm font-medium transition-colors border focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900 ${a?"border-gray-300 dark:border-gray-700 text-gray-400 cursor-not-allowed":"border-red-500 text-red-600 dark:text-red-400 hover:bg-red-500/10"}`,"aria-disabled":a,children:i})]}),s&&o&&c.jsx("button",{onClick:s,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900 rounded",children:o})]}):null;return c.jsxs(z.main,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col","aria-labelledby":"page-title",children:[c.jsxs("header",{className:"text-center mb-6 flex-shrink-0 px-10 pt-10",children:[c.jsx("h1",{ref:d,id:"page-title",className:"text-2xl font-semibold text-gray-900 dark:text-white mb-1.5 tracking-tight focus:outline-none",tabIndex:-1,children:e}),c.jsx("p",{className:"text-base text-gray-500 dark:text-gray-400",children:t})]}),c.jsx("div",{className:"flex-1 overflow-y-auto scrollbar-thin min-h-0 px-10",children:n}),h]})}function P3({onNext:e}){const{theme:t}=Xp(),n=S.useRef(null),r=S.useRef(null);S.useEffect(()=>{var s;(s=n.current)==null||s.focus()},[]);const i=s=>{s.key==="Enter"&&document.activeElement===r.current&&e()};return c.jsxs(z.main,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center","aria-labelledby":"splash-title",onKeyDown:i,children:[c.jsx(z.div,{className:"text-center mb-10",initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.6,ease:"easeOut"},children:c.jsx("div",{className:"flex justify-center",children:c.jsx("img",{src:t==="dark"?Gp:Yp,alt:"",width:280,className:"object-contain",style:{filter:"drop-shadow(0 0 60px rgba(239, 68, 68, 0.4))"},"aria-hidden":"true"})})}),c.jsxs(z.div,{className:"text-center px-8 max-w-lg",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},children:[c.jsxs("div",{className:"flex items-center justify-center gap-2 mb-3",children:[c.jsx("h1",{ref:n,id:"splash-title",className:"text-2xl font-semibold text-gray-900 dark:text-white tracking-tight focus:outline-none",tabIndex:-1,children:"Welcome to Wails"}),c.jsx("span",{className:"px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide rounded-full bg-amber-500/20 text-amber-600 dark:text-amber-400 border border-amber-500/30",role:"status","aria-label":"This setup wizard is experimental",children:"Experimental"})]}),c.jsx("p",{className:"text-base text-gray-600 dark:text-gray-300 leading-relaxed mb-8",children:"Build beautiful cross-platform apps using Go and web technologies"})]}),c.jsx(z.button,{ref:r,onClick:e,className:"px-6 py-2.5 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,delay:.4},children:"Let's Start"})]})}function N3(){const e=S.useRef(null);return S.useEffect(()=>{var t;(t=e.current)==null||t.focus()},[]),c.jsxs(z.main,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-start pt-[15%]","aria-labelledby":"checking-title","aria-busy":"true",children:[c.jsx(z.div,{className:"w-12 h-12 border-3 border-gray-300 dark:border-gray-600 border-t-red-500 rounded-full mb-6",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},role:"status","aria-label":"Loading"}),c.jsx("h2",{ref:e,id:"checking-title",className:"text-xl font-semibold text-gray-900 dark:text-white mb-2 focus:outline-none",tabIndex:-1,children:"Checking your system..."}),c.jsx("p",{className:"text-gray-500 dark:text-gray-400","aria-live":"polite",children:"This will only take a moment"})]})}function E3({onNext:e,onBack:t,canGoBack:n}){const r=S.useRef(null);return S.useEffect(()=>{var i;(i=r.current)==null||i.focus()},[]),c.jsxs(z.main,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center","aria-labelledby":"deps-ready-title",children:[c.jsx(z.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-20 h-20 rounded-full bg-green-500/20 flex items-center justify-center mb-6","aria-hidden":"true",children:c.jsx("svg",{className:"w-10 h-10 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),c.jsx("h2",{ref:r,id:"deps-ready-title",className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 focus:outline-none",tabIndex:-1,children:"All dependencies installed"}),c.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-sm",children:"Your system has everything needed to build Wails apps"}),c.jsxs("div",{className:"flex items-center gap-3",role:"group","aria-label":"Navigation",children:[n&&t&&c.jsx("button",{onClick:t,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Back"}),c.jsx("button",{onClick:e,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Continue"})]})]})}function b3({dependencies:e,onRetry:t,onContinue:n,onBack:r,canGoBack:i}){const[s,o]=S.useState(!1),a=e.filter(d=>!d.installed&&d.required),l=(()=>{const d=a.filter(x=>{var v;return(v=x.installCommand)==null?void 0:v.startsWith("sudo ")}).map(x=>x.installCommand);if(d.length===0)return null;const h=[],f=[],y=[];for(const x of d)if(x.includes("pacman -S")){const v=x.match(/pacman -S\s+(.+)/);v&&h.push(...v[1].split(/\s+/))}else if(x.includes("apt install")){const v=x.match(/apt install\s+(.+)/);v&&f.push(...v[1].split(/\s+/))}else if(x.includes("dnf install")){const v=x.match(/dnf install\s+(.+)/);v&&y.push(...v[1].split(/\s+/))}return h.length>0?`sudo pacman -S ${h.join(" ")}`:f.length>0?`sudo apt install ${f.join(" ")}`:y.length>0?`sudo dnf install ${y.join(" ")}`:null})(),u=()=>{l&&(navigator.clipboard.writeText(l),o(!0),setTimeout(()=>o(!1),2e3))};return c.jsxs(Eu,{title:"Almost there!",subtitle:"A few things need to be installed first",primaryAction:t,primaryLabel:"Check Again",secondaryAction:n,secondaryLabel:"Continue anyway",onBack:r,canGoBack:i,children:[c.jsx("div",{className:"bg-gray-100 dark:bg-gray-900/50 rounded-lg p-4 mb-4",children:a.map(d=>c.jsxs("div",{className:"flex items-start gap-3 py-2 border-b border-gray-200/50 dark:border-gray-800/50 last:border-0",children:[c.jsx("div",{className:"w-5 h-5 rounded-full bg-red-500/20 flex items-center justify-center flex-shrink-0 mt-0.5",children:c.jsx("svg",{className:"w-3 h-3 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M6 18L18 6M6 6l12 12"})})}),c.jsxs("div",{children:[c.jsx("div",{className:"text-sm font-medium text-gray-900 dark:text-white",children:d.name}),d.message&&c.jsx("p",{className:"text-xs text-gray-500 mt-0.5",children:d.message}),d.helpUrl&&c.jsxs("a",{href:d.helpUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-blue-500 dark:text-blue-400 hover:text-blue-600 dark:hover:text-blue-300 mt-1",children:["Install instructions",c.jsx("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]})]})]},d.name))}),l&&c.jsxs("div",{className:"bg-gray-100 dark:bg-gray-900/50 rounded-lg p-4",children:[c.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-300 mb-2",children:"Run this command to install everything:"}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("code",{className:"flex-1 text-xs bg-gray-200 dark:bg-gray-900 text-gray-700 dark:text-gray-300 px-3 py-2 rounded font-mono overflow-x-auto",children:l}),c.jsx("button",{onClick:u,className:"text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 transition-colors p-2",title:"Copy command",children:s?c.jsx("svg",{className:"w-5 h-5 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):c.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})})]})]})]})}function M3({dockerDep:e,onYes:t,onSkip:n,onBack:r,canGoBack:i}){const s=(e==null?void 0:e.installed)&&(e==null?void 0:e.imageBuilt)===!0;return c.jsx(z.div,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:s?c.jsxs(c.Fragment,{children:[c.jsx(z.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-20 h-20 rounded-full bg-green-500/20 flex items-center justify-center mb-6",children:c.jsx("svg",{className:"w-10 h-10 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),c.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[c.jsx("svg",{className:"w-8 h-8 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M0 3.449L9.75 2.1v9.451H0m10.949-9.602L24 0v11.4H10.949M0 12.6h9.75v9.451L0 20.699M10.949 12.6H24V24l-12.9-1.801"})}),c.jsx("svg",{className:"w-8 h-8 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),c.jsx("svg",{className:"w-8 h-8 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.002c-.06-.135-.12-.2-.09-.267.046-.134.078-.333-.201-.465-.57-.267-.96-.4-1.18-.535a.98.98 0 01-.36-.4c-.298.533-.648.868-.94 1.002-.04-.2-.021-.4.09-.6a.71.71 0 01.381-.267c.376-.202.559-.47.646-.869.067-.399.024-.733-.135-1.135-.15-.4-.396-.665-.794-.933a2.01 2.01 0 00-.92-.267c-.435-.064-.747.048-.988.135-.075.022-.155.04-.239.054a2.56 2.56 0 01.106-.858c.09-.335.2-.6.323-.868a.262.262 0 01-.09-.134c-.067-.267-.2-.2-.33-.002a1.763 1.763 0 00-.172.535 2.114 2.114 0 00-.038.467c-.065.065-.132.135-.198.199-.257.193-.52.398-.737.601a2.71 2.71 0 01-.18-.202c-.27-.332-.393-.667-.354-1.067a.89.89 0 01.11-.334c.031-.053.067-.067.1-.135a.065.065 0 01.016-.023.09.09 0 01.015-.023v-.003a5.59 5.59 0 01.166-.267c.126-.2.27-.4.461-.602.14-.134.274-.267.41-.4.069-.066.14-.135.21-.2.07-.066.136-.135.203-.2.069-.134.202-.2.37-.266a.33.33 0 00.14-.067c-.12-.067-.137-.2-.061-.336.134-.332.453-.668.785-.933.332-.265.66-.4.875-.4.232.003.325.068.227.403z"})})]}),c.jsx("h2",{className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center",children:"Cross-platform builds ready!"}),c.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-md",children:"You can build for Windows, macOS, and Linux from this machine"}),c.jsxs("div",{className:"flex items-center gap-3",children:[i&&r&&c.jsx("button",{onClick:r,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Back"}),c.jsx("button",{onClick:n,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue"})]})]}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"flex items-center gap-6 mb-8",children:[c.jsx("svg",{className:"w-12 h-12 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M0 3.449L9.75 2.1v9.451H0m10.949-9.602L24 0v11.4H10.949M0 12.6h9.75v9.451L0 20.699M10.949 12.6H24V24l-12.9-1.801"})}),c.jsx("svg",{className:"w-12 h-12 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),c.jsx("svg",{className:"w-12 h-12 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:c.jsx("path",{d:"M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.002c-.06-.135-.12-.2-.09-.267.046-.134.078-.333-.201-.465-.57-.267-.96-.4-1.18-.535a.98.98 0 01-.36-.4c-.298.533-.648.868-.94 1.002-.04-.2-.021-.4.09-.6a.71.71 0 01.381-.267c.376-.202.559-.47.646-.869.067-.399.024-.733-.135-1.135-.15-.4-.396-.665-.794-.933a2.01 2.01 0 00-.92-.267c-.435-.064-.747.048-.988.135-.075.022-.155.04-.239.054a2.56 2.56 0 01.106-.858c.09-.335.2-.6.323-.868a.262.262 0 01-.09-.134c-.067-.267-.2-.2-.33-.002a1.763 1.763 0 00-.172.535 2.114 2.114 0 00-.038.467c-.065.065-.132.135-.198.199-.257.193-.52.398-.737.601a2.71 2.71 0 01-.18-.202c-.27-.332-.393-.667-.354-1.067a.89.89 0 01.11-.334c.031-.053.067-.067.1-.135a.065.065 0 01.016-.023.09.09 0 01.015-.023v-.003a5.59 5.59 0 01.166-.267c.126-.2.27-.4.461-.602.14-.134.274-.267.41-.4.069-.066.14-.135.21-.2.07-.066.136-.135.203-.2.069-.134.202-.2.37-.266a.33.33 0 00.14-.067c-.12-.067-.137-.2-.061-.336.134-.332.453-.668.785-.933.332-.265.66-.4.875-.4.232.003.325.068.227.403z"})})]}),c.jsx("h2",{className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center",children:"Build for multiple platforms?"}),c.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-2 text-center max-w-md",children:"Wails can compile your app for Windows, macOS, and Linux from a single machine"}),c.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-8 text-center",children:"Requires Docker for cross-compilation"}),c.jsxs("div",{className:"flex flex-col items-center gap-2",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[i&&r&&c.jsx("button",{onClick:r,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Back"}),c.jsx("button",{onClick:t,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Yes, set this up"})]}),c.jsx("button",{onClick:n,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Not right now"})]})]})})}function D3({onBuildImage:e,onUseLocalSDK:t,onSkip:n}){const[r,i]=S.useState(!1),[s,o]=S.useState(null),a=async()=>{if(!s){const u=await(await fetch("/api/docker/logs")).text();o(u)}i(!0)};return r?c.jsxs(z.div,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center max-w-4xl mx-auto w-full",children:[c.jsxs("div",{className:"w-full flex items-center justify-between mb-4",children:[c.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Build Logs"}),c.jsx("button",{onClick:()=>i(!1),className:"text-sm text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200",children:"Back"})]}),c.jsx("pre",{className:"w-full h-96 overflow-auto bg-gray-900 text-gray-100 p-4 rounded-lg text-xs font-mono whitespace-pre-wrap",children:s||"No logs available"})]}):c.jsxs(z.div,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[c.jsx("div",{className:"w-16 h-16 rounded-2xl bg-amber-500/20 flex items-center justify-center mb-6",children:c.jsx("svg",{className:"w-8 h-8 text-amber-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),c.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Build failed"}),c.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-2 text-center max-w-sm",children:"Check your internet connection and try again, or download the SDK manually."}),c.jsx("button",{onClick:a,className:"text-sm text-blue-500 hover:text-blue-600 mb-6",children:"View logs"}),c.jsxs("div",{className:"flex flex-col gap-3 items-center",children:[c.jsxs("div",{className:"flex gap-3",children:[c.jsx("button",{onClick:e,className:"px-5 py-2.5 rounded-lg bg-blue-500 text-white text-sm font-medium hover:bg-blue-600 transition-colors",children:"Try again"}),c.jsxs("label",{className:"px-5 py-2.5 rounded-lg border border-blue-500 text-blue-600 dark:text-blue-400 text-sm font-medium hover:bg-blue-500/10 transition-colors cursor-pointer",children:["Use local file",c.jsx("input",{type:"file",accept:".tar.xz",className:"hidden",onChange:l=>{var d;const u=(d=l.target.files)==null?void 0:d[0];u&&t(u)}})]})]}),c.jsx("a",{href:"https://github.com/wailsapp/macosx-sdks/releases/download/26.1/MacOSX26.1.sdk.tar.xz",download:!0,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Download SDK manually"}),c.jsx("button",{onClick:n,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip for now"})]})]})}function L3({onAgree:e,onDecline:t,onBack:n,canGoBack:r}){const[i,s]=S.useState(!1);return c.jsxs(z.div,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[r&&n&&c.jsx("button",{onClick:n,className:"absolute top-4 left-4 p-2 rounded-lg text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors","aria-label":"Go back",children:c.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),c.jsx("div",{className:"w-12 h-12 rounded-xl bg-gray-100 dark:bg-gray-800 flex items-center justify-center mb-4",children:c.jsx("svg",{className:"w-6 h-6 text-gray-600 dark:text-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),c.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-1",children:"Apple SDK License Agreement"}),c.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-4 text-center max-w-md",children:"Cross-platform builds for macOS require the Apple SDK. Please review and accept the license terms."}),c.jsx("div",{className:"w-full max-w-2xl h-72 mb-4 rounded-lg overflow-hidden border border-gray-200 dark:border-gray-700 bg-white",children:c.jsx("iframe",{src:"/assets/apple-sdk-license.pdf#view=FitH&navpanes=0&toolbar=0",className:"w-full h-full",title:"Apple Xcode and SDK License Agreement"})}),c.jsxs("label",{className:"flex items-center gap-2 mb-5 cursor-pointer",children:[c.jsx("input",{type:"checkbox",checked:i,onChange:o=>s(o.target.checked),className:"w-4 h-4 rounded border-gray-300 text-blue-500 focus:ring-blue-500"}),c.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-300",children:"I agree to Apple's Xcode and SDK License Agreement"})]}),c.jsxs("div",{className:"flex gap-3",children:[c.jsx("button",{onClick:t,className:"px-5 py-2.5 rounded-lg border border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 text-sm font-medium hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors",children:"Skip cross-platform"}),c.jsx("button",{onClick:e,disabled:!i,className:`px-5 py-2.5 rounded-lg text-sm font-medium transition-colors ${i?"bg-blue-500 text-white hover:bg-blue-600":"bg-gray-200 text-gray-400 cursor-not-allowed"}`,children:"Continue"})]})]})}function A3({dockerStatus:e,buildingImage:t,onBuildImage:n,onCheckAgain:r,onContinueBackground:i,onUseLocalSDK:s,onSkip:o,onBack:a,canGoBack:l}){if(!e||!e.installed)return c.jsxs(z.div,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[c.jsx("div",{className:"w-16 h-16 rounded-2xl bg-blue-500/20 flex items-center justify-center mb-6",children:c.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:c.jsx("path",{fill:"#1d63ed",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),c.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Install Docker"}),c.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-6 text-center max-w-sm",children:"Cross-platform builds require Docker Desktop"}),c.jsxs("a",{href:"https://docs.docker.com/get-docker/",target:"_blank",rel:"noopener noreferrer",className:"px-5 py-2 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-500 transition-colors inline-flex items-center gap-2 mb-4",children:["Download Docker Desktop",c.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]}),c.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-6 text-center max-w-xs",children:"After installing, come back and we'll continue setting up. Some platforms may require a reboot."}),c.jsxs("div",{className:"flex flex-col items-center gap-1.5",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[l&&a&&c.jsx("button",{onClick:a,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Back"}),c.jsx("button",{onClick:r,className:"px-5 py-1.5 rounded-lg bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 text-sm font-medium hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",children:"Check Again"})]}),c.jsx("button",{onClick:o,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip for now"})]})]});if(!e.running)return c.jsxs(z.div,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[c.jsx("div",{className:"w-16 h-16 rounded-2xl bg-gray-200 dark:bg-gray-800 flex items-center justify-center mb-6 opacity-50",children:c.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:c.jsx("path",{fill:"#6b7280",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),c.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Start Docker"}),c.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-sm",children:"Please start Docker Desktop to continue"}),c.jsxs("div",{className:"flex flex-col items-center gap-1.5",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[l&&a&&c.jsx("button",{onClick:a,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Back"}),c.jsx("button",{onClick:r,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Check Again"})]}),c.jsx("button",{onClick:o,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip for now"})]})]});if(t||e.pullStatus==="pulling"){const u=e.pullProgress||0,d=e.pullMessage||"Connecting";return c.jsxs(z.div,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[c.jsx("div",{className:"w-16 h-16 rounded-2xl bg-blue-500/20 flex items-center justify-center mb-6",children:c.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:c.jsx("path",{fill:"#1d63ed",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),c.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Downloading cross-compiler image"}),c.jsxs("div",{className:"w-64 mb-4",children:[c.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-500 mb-1",children:[c.jsx("span",{children:d}),c.jsxs("span",{children:[u,"%"]})]}),c.jsx("div",{className:"h-2 bg-gray-200 dark:bg-gray-700 rounded-full overflow-hidden",children:c.jsx(z.div,{className:"h-full bg-blue-500",animate:{width:`${u}%`}})})]}),c.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-8 text-center",children:"This may take several minutes"}),c.jsx("button",{onClick:i,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue in background"})]})}return e.pullStatus==="error"?c.jsx(D3,{onBuildImage:n,onUseLocalSDK:s,onSkip:o}):e.imageBuilt?c.jsxs(z.div,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[c.jsx(z.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-16 h-16 rounded-2xl bg-green-500/20 flex items-center justify-center mb-6",children:c.jsx("svg",{className:"w-8 h-8 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),c.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Cross-platform builds ready!"}),c.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-sm",children:"You can now build for Windows, macOS, and Linux"}),c.jsxs("div",{className:"flex items-center gap-3",children:[l&&a&&c.jsx("button",{onClick:a,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Back"}),c.jsx("button",{onClick:i,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue"})]})]}):c.jsxs(z.div,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[c.jsx("div",{className:"w-16 h-16 rounded-2xl bg-blue-500/20 flex items-center justify-center mb-6",children:c.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:c.jsx("path",{fill:"#1d63ed",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),c.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Docker is ready!"}),c.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-2 text-center max-w-sm",children:"Download the cross-compilation image to enable building for all platforms"}),c.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-8 text-center",children:"This will download ~800MB and may take several minutes"}),c.jsxs("div",{className:"flex flex-col items-center gap-2",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[l&&a&&c.jsx("button",{onClick:a,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Back"}),c.jsx("button",{onClick:n,className:"px-5 py-2 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-500 transition-colors",children:"Download Image"})]}),c.jsx("button",{onClick:o,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip, I'll do it later"})]})]})}const R3=[{id:"vanilla",name:"Vanilla",description:"Plain JavaScript/TypeScript",color:"#f7df1e",icon:"javascript"},{id:"react",name:"React",description:"React with Vite",color:"#61dafb",icon:"react"},{id:"vue",name:"Vue",description:"Vue 3 with Vite",color:"#42b883",icon:"vue"},{id:"svelte",name:"Svelte",description:"Svelte with Vite",color:"#ff3e00",icon:"svelte"},{id:"preact",name:"Preact",description:"Lightweight React alternative",color:"#673ab8",icon:"preact"},{id:"lit",name:"Lit",description:"Web Components with Lit",color:"#324fff",icon:"lit"},{id:"solid",name:"Solid",description:"Solid.js with Vite",color:"#2c4f7c",icon:"solid"},{id:"qwik",name:"Qwik",description:"Qwik with Vite",color:"#18b6f6",icon:"qwik"}];function V3({preferTypeScript:e,onSelect:t,onNext:n,onBack:r,canGoBack:i}){const s=S.useRef(null);return S.useEffect(()=>{var o;(o=s.current)==null||o.focus()},[]),c.jsxs(z.main,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center","aria-labelledby":"language-title",children:[c.jsx("h2",{ref:s,id:"language-title",className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center focus:outline-none",tabIndex:-1,children:"Language Preference"}),c.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-md",children:"Choose your preferred language for new projects"}),c.jsxs("div",{className:"flex gap-4 mb-8",role:"radiogroup","aria-label":"Programming language",children:[c.jsxs("button",{onClick:()=>t(!1),role:"radio","aria-checked":!e,className:`w-40 h-48 rounded-xl p-5 flex flex-col items-center justify-center gap-3 transition-all border-2 focus:outline-none focus:ring-2 focus:ring-yellow-400 focus:ring-offset-2 dark:focus:ring-offset-gray-900 ${e?"border-gray-200 dark:border-white/10 bg-gray-100 dark:bg-white/5 hover:bg-gray-200 dark:hover:bg-white/10":"border-yellow-400 bg-yellow-400/10 shadow-lg shadow-yellow-400/20"}`,children:[c.jsx("div",{className:"w-16 h-16 flex items-center justify-center","aria-hidden":"true",children:c.jsx("img",{src:"/logos/javascript.svg",alt:"",className:"w-14 h-14"})}),c.jsx("span",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"JavaScript"}),c.jsx("span",{className:"text-xs text-gray-500 dark:text-white/50",children:"Dynamic typing"})]}),c.jsxs("button",{onClick:()=>t(!0),role:"radio","aria-checked":e,className:`w-40 h-48 rounded-xl p-5 flex flex-col items-center justify-center gap-3 transition-all border-2 focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-offset-2 dark:focus:ring-offset-gray-900 ${e?"border-blue-400 bg-blue-400/10 shadow-lg shadow-blue-400/20":"border-gray-200 dark:border-white/10 bg-gray-100 dark:bg-white/5 hover:bg-gray-200 dark:hover:bg-white/10"}`,children:[c.jsx("div",{className:"w-16 h-16 flex items-center justify-center","aria-hidden":"true",children:c.jsx("img",{src:"/logos/typescript.svg",alt:"",className:"w-14 h-14"})}),c.jsx("span",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"TypeScript"}),c.jsx("span",{className:"text-xs text-gray-500 dark:text-white/50",children:"Type safety"})]})]}),c.jsxs("div",{className:"flex items-center gap-3",role:"group","aria-label":"Navigation",children:[i&&r&&c.jsx("button",{onClick:r,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Back"}),c.jsx("button",{onClick:n,className:"px-6 py-2.5 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Continue"})]})]})}function I3({useInterfaces:e,onSelect:t,onNext:n,onBack:r,canGoBack:i}){const s=S.useRef(null);return S.useEffect(()=>{var o;(o=s.current)==null||o.focus()},[]),c.jsxs(z.main,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center px-4 overflow-hidden","aria-labelledby":"binding-title",children:[c.jsx("h2",{ref:s,id:"binding-title",className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center focus:outline-none",tabIndex:-1,children:"TypeScript Binding Style"}),c.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-6 text-center max-w-lg",children:"Choose how Go structs are represented in TypeScript"}),c.jsxs("div",{className:"flex gap-4 mb-8 max-w-full overflow-x-auto p-1",role:"radiogroup","aria-label":"Binding style",children:[c.jsxs("button",{onClick:()=>t(!0),role:"radio","aria-checked":e,className:`w-56 shrink-0 rounded-xl p-4 flex flex-col items-start gap-2 transition-all border-2 text-left focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-offset-2 dark:focus:ring-offset-gray-900 ${e?"border-blue-400 bg-blue-400/10 shadow-lg shadow-blue-400/20":"border-white/10 bg-white/5 hover:bg-white/10"}`,children:[c.jsx("span",{className:"text-base font-semibold text-gray-900 dark:text-white",children:"Interfaces"}),c.jsx("pre",{className:"text-[10px] leading-tight text-gray-700 dark:text-white/70 font-mono bg-gray-100 dark:bg-black/30 p-2 rounded-lg w-full overflow-x-auto","aria-hidden":"true",children:`interface Person { - name: string; - age: number; -}`}),c.jsxs("ul",{className:"text-[10px] text-gray-500 dark:text-white/50 space-y-0.5","aria-label":"Features",children:[c.jsx("li",{children:"Lightweight types"}),c.jsx("li",{children:"No runtime code"}),c.jsx("li",{children:"Simpler output"})]})]}),c.jsxs("button",{onClick:()=>t(!1),role:"radio","aria-checked":!e,className:`w-56 shrink-0 rounded-xl p-4 flex flex-col items-start gap-2 transition-all border-2 text-left focus:outline-none focus:ring-2 focus:ring-purple-400 focus:ring-offset-2 dark:focus:ring-offset-gray-900 ${e?"border-white/10 bg-white/5 hover:bg-white/10":"border-purple-400 bg-purple-400/10 shadow-lg shadow-purple-400/20"}`,children:[c.jsx("span",{className:"text-base font-semibold text-gray-900 dark:text-white",children:"Classes"}),c.jsx("pre",{className:"text-[10px] leading-tight text-gray-700 dark:text-white/70 font-mono bg-gray-100 dark:bg-black/30 p-2 rounded-lg w-full overflow-x-auto","aria-hidden":"true",children:`class Person { - name: string; - age: number; - constructor(src) { - Object.assign(this, src); - } - static createFrom(src) { - return new Person(src); - } -}`}),c.jsxs("ul",{className:"text-[10px] text-gray-500 dark:text-white/50 space-y-0.5","aria-label":"Features",children:[c.jsx("li",{children:"Factory methods"}),c.jsx("li",{children:"Default initialization"}),c.jsx("li",{children:"More verbose"})]})]})]}),c.jsxs("div",{className:"flex items-center gap-3",role:"group","aria-label":"Navigation",children:[i&&r&&c.jsx("button",{onClick:r,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Back"}),c.jsx("button",{onClick:n,className:"px-6 py-2.5 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Continue"})]})]})}function _3({selectedFramework:e,preferTypeScript:t,onSelect:n,onNext:r,onSkip:i,onBack:s,canGoBack:o}){return c.jsx(Eu,{title:"Default Template",subtitle:"Choose a framework for new projects",primaryAction:r,primaryLabel:"Continue",secondaryAction:i,secondaryLabel:"Skip",onBack:s,canGoBack:o,children:c.jsx("div",{className:"grid grid-cols-4 gap-3 max-w-2xl mx-auto p-1",role:"radiogroup","aria-label":"Framework templates",children:R3.map(a=>c.jsxs("button",{onClick:()=>n(a.id),role:"radio","aria-checked":e===a.id,className:`aspect-square rounded-xl p-4 flex flex-col items-center justify-center gap-2 transition-all border-2 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900 ${e===a.id?"border-red-500 bg-red-500/10 shadow-lg shadow-red-500/10":"border-gray-200 dark:border-white/10 bg-gray-100 dark:bg-white/5 hover:bg-gray-200 dark:hover:bg-white/10"}`,children:[c.jsx("img",{src:`/logos/${a.id==="vanilla"?t?"typescript":"javascript":a.icon}.svg`,alt:"","aria-hidden":"true",className:"w-12 h-12"}),c.jsx("span",{className:"text-sm font-medium text-gray-900 dark:text-white",children:a.name})]},a.id))})})}function F3({defaults:e,onDefaultsChange:t,onNext:n,onSkip:r,saving:i,onBack:s,canGoBack:o}){const[a,l]=S.useState(null),[u,d]=S.useState(""),h=x=>{x==="name"?d(e.author.name):x==="company"?d(e.author.company):x==="bundleId"&&d(e.project.productIdentifierPrefix),l(x)},f=()=>{a==="name"?t({...e,author:{...e.author,name:u}}):a==="company"?t({...e,author:{...e.author,company:u}}):a==="bundleId"&&t({...e,project:{...e.project,productIdentifierPrefix:u}}),l(null)},y=x=>{x.key==="Enter"?f():x.key==="Escape"&&l(null)};return c.jsx(Eu,{title:"Project Defaults",subtitle:"Set defaults for new Wails projects",primaryAction:n,primaryLabel:i?"Saving...":"Continue",primaryDisabled:i,secondaryAction:r,secondaryLabel:"Skip",onBack:s,canGoBack:o,children:c.jsxs("div",{className:"max-w-xl mx-auto",children:[c.jsxs("div",{className:"settings-group",role:"group","aria-label":"Project default settings",children:[a==="name"?c.jsxs("div",{className:"settings-row",children:[c.jsx("label",{htmlFor:"author-input",className:"sr-only",children:"Author name"}),c.jsx("div",{className:"flex-1",children:c.jsx("input",{id:"author-input",type:"text",value:u,onChange:x=>d(x.target.value),onKeyDown:y,onBlur:f,autoFocus:!0,placeholder:"Your Name","aria-label":"Author name",className:"w-full bg-transparent border-none text-sm text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-red-500 rounded px-1"})})]}):c.jsxs("button",{className:"settings-row w-full text-left focus:outline-none focus:ring-2 focus:ring-inset focus:ring-red-500",onClick:()=>h("name"),"aria-label":`Author: ${e.author.name||"Not set"}. Click to edit.`,children:[c.jsx("span",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"Author"}),c.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 dark:text-white/65",children:[c.jsx("span",{children:e.author.name||"Not set"}),c.jsx("span",{className:"text-gray-400 dark:text-white/40 text-xs","aria-hidden":"true",children:"▸"})]})]}),a==="company"?c.jsxs("div",{className:"settings-row",children:[c.jsx("label",{htmlFor:"company-input",className:"sr-only",children:"Company name"}),c.jsx("div",{className:"flex-1",children:c.jsx("input",{id:"company-input",type:"text",value:u,onChange:x=>d(x.target.value),onKeyDown:y,onBlur:f,autoFocus:!0,placeholder:"Acme Corp","aria-label":"Company name",className:"w-full bg-transparent border-none text-sm text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-red-500 rounded px-1"})})]}):c.jsxs("button",{className:"settings-row w-full text-left focus:outline-none focus:ring-2 focus:ring-inset focus:ring-red-500",onClick:()=>h("company"),"aria-label":`Company: ${e.author.company||"Not set"}. Click to edit.`,children:[c.jsx("span",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"Company"}),c.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 dark:text-white/65",children:[c.jsx("span",{children:e.author.company||"Not set"}),c.jsx("span",{className:"text-gray-400 dark:text-white/40 text-xs","aria-hidden":"true",children:"▸"})]})]}),a==="bundleId"?c.jsxs("div",{className:"settings-row",children:[c.jsx("label",{htmlFor:"bundle-input",className:"sr-only",children:"Bundle identifier"}),c.jsx("div",{className:"flex-1",children:c.jsx("input",{id:"bundle-input",type:"text",value:u,onChange:x=>d(x.target.value),onKeyDown:y,onBlur:f,autoFocus:!0,placeholder:"com.example","aria-label":"Bundle identifier",className:"w-full bg-transparent border-none text-sm text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-red-500 rounded px-1 font-mono"})})]}):c.jsxs("button",{className:"settings-row w-full text-left focus:outline-none focus:ring-2 focus:ring-inset focus:ring-red-500",onClick:()=>h("bundleId"),"aria-label":`Bundle identifier: ${e.project.productIdentifierPrefix||"com.example"}. Click to edit.`,children:[c.jsx("span",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"Bundle identifier"}),c.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 dark:text-white/65",children:[c.jsx("span",{className:"font-mono",children:e.project.productIdentifierPrefix||"com.example"}),c.jsx("span",{className:"text-gray-400 dark:text-white/40 text-xs","aria-hidden":"true",children:"▸"})]})]})]}),c.jsx("p",{className:"text-xs text-gray-500 dark:text-white/40 mt-3 text-center",id:"settings-description",children:"These defaults are used when creating new projects"})]})})}function O3(){const e=S.useRef(null);S.useEffect(()=>{var n;(n=e.current)==null||n.focus()},[]);const t=()=>{window.open("https://v3alpha.wails.io/quick-start/first-app/","_blank","noopener,noreferrer")};return c.jsxs(z.main,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},"aria-labelledby":"complete-title",className:"flex-1 flex flex-col items-center justify-center px-8",children:[c.jsx(z.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-16 h-16 rounded-full bg-green-500/20 flex items-center justify-center mb-4","aria-hidden":"true",children:c.jsx("svg",{className:"w-8 h-8 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),c.jsx("h2",{ref:e,id:"complete-title",className:"text-xl font-semibold text-gray-900 dark:text-white mb-6 focus:outline-none",tabIndex:-1,children:"You're ready to build!"}),c.jsx("button",{onClick:t,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Start Building"})]})}function B3(){const[e,t]=S.useState("splash"),[n,r]=S.useState([]),[i,s]=S.useState([]),[o,a]=S.useState(null),[l,u]=S.useState(null),[d,h]=S.useState(!1),[f,y]=S.useState({author:{name:"",company:""},project:{productIdentifierPrefix:"com.example",defaultTemplate:"vanilla",copyrightTemplate:"(c) {year}, {company}",descriptionTemplate:"A {name} application",defaultVersion:"0.1.0",useInterfaces:!0}}),[x,v]=S.useState(!1),[P,m]=S.useState(!1),[p,g]=S.useState(!0),[w,k]=S.useState("vanilla"),[j,T]=S.useState(!0),[C,E]=S.useState(!1),[D,W]=S.useState(null),[de,ze]=S.useState(()=>{if(typeof window<"u"){const A=localStorage.getItem("wails-setup-theme");if(A==="light"||A==="dark")return A;if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return"dark"}),$=A=>{r(_=>[..._,e]),t(A)},ae=()=>{if(n.length===0)return;const A=[...n];let _=A.pop();for(;_==="checking"&&A.length>0;)_=A.pop();r(A),t(_)},ie=n.length>0&&e!=="splash"&&e!=="checking",H=()=>{ze(A=>{const _=A==="dark"?"light":"dark";return localStorage.setItem("wails-setup-theme",_),_})};S.useEffect(()=>{de==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[de]),S.useEffect(()=>{b()},[]),S.useEffect(()=>{const A=_=>{_.target instanceof HTMLInputElement||_.target instanceof HTMLTextAreaElement||_.key==="Escape"&&ie&&(_.preventDefault(),ae())};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[ie,e]);const b=async()=>{const A=await Kp();a(A.system)},L=async()=>{$("checking");const A=await qd();s(A),A.filter(qt=>qt.required&&!qt.installed).length===0?t("deps-ready"):t("deps-missing")},R=async()=>{$("cross-platform")},I=async()=>{t("checking");const A=await qd();s(A),A.filter(qt=>qt.required&&!qt.installed).length===0?t("deps-ready"):t("deps-missing")},O=async()=>{$("cross-platform")},wn=async()=>{$("sdk-license")},pt=async()=>{const A=await Jd();u(A),$("docker-setup")},lr=async()=>{var _;const A=await Ii();y(A),T(((_=A.project)==null?void 0:_.useInterfaces)??!0),$("projects")},mt=async()=>{var _;const A=await Ii();y(A),T(((_=A.project)==null?void 0:_.useInterfaces)??!0),$("projects")},kn=async()=>{const A=await Jd();u(A)},Zp=async()=>{h(!0),await y3();const A=_o(_=>{u(_),_.pullStatus!=="pulling"&&(h(!1),A())})},qp=async()=>{var _;(d||l&&l.pullStatus==="pulling")&&m(!0);const A=await Ii();y(A),T(((_=A.project)==null?void 0:_.useInterfaces)??!0),$("projects")},Jp=async()=>{var _;const A=await Ii();y(A),T(((_=A.project)==null?void 0:_.useInterfaces)??!0),$("projects")},em=async A=>{h(!0);const _=new FormData;_.append("sdk",A),await fetch("/api/docker/build-with-sdk",{method:"POST",body:_});const qt=_o(bu=>{u(bu),bu.pullStatus!=="pulling"&&(h(!1),qt())})},tm=()=>{$("signing")},nm=()=>{$("signing")},rm=()=>{$("language-select")},im=()=>{$("language-select")},sm=()=>{$(p?"binding-style":"template-select")},om=()=>{$("template-select")},am=async()=>{const A=p&&w!=="vanilla"?`${w}-ts`:p&&w==="vanilla"?"vanilla-ts":w,_={...f,project:{...f.project,defaultTemplate:A,useInterfaces:p?j:!0}};v(!0),await ef(_),v(!1),$("complete")},lm=async()=>{const A={...f,project:{...f.project,useInterfaces:p?j:!0}};v(!0),await ef(A),v(!1),$("complete")};return S.useEffect(()=>{if(P&&(d||l&&l.pullStatus==="pulling"))return _o(_=>{u(_),_.pullStatus!=="pulling"&&h(!1)})},[P,d,l==null?void 0:l.pullStatus]),S.useEffect(()=>{if(D==="pulling"&&(l==null?void 0:l.pullStatus)==="complete"&&e!=="docker-setup"){E(!0);const A=setTimeout(()=>E(!1),3e3);return()=>clearTimeout(A)}W((l==null?void 0:l.pullStatus)||null)},[l==null?void 0:l.pullStatus,e]),c.jsx(Qp.Provider,{value:{theme:de,toggleTheme:H},children:c.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-[#0f0f0f] flex items-center justify-center p-4 transition-colors relative overflow-hidden",children:[c.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:c.jsxs("div",{className:"scrolling-bg w-full h-[200%] opacity-[0.08] dark:opacity-[0.06]",children:[c.jsx("img",{src:"/showcase/montage.png",alt:"",className:"w-full h-1/2 object-cover object-center"}),c.jsx("img",{src:"/showcase/montage.png",alt:"",className:"w-full h-1/2 object-cover object-center"})]})}),c.jsxs("div",{className:"w-[75vw] max-w-[1200px] h-[75vh] max-h-[800px] glass-card rounded-2xl flex overflow-hidden relative z-10",children:[c.jsx(T3,{currentStep:e,dockerStatus:l,buildingDocker:P&&(d||(l==null?void 0:l.pullStatus)==="pulling")}),c.jsxs("div",{className:"flex-1 flex flex-col min-w-0 bg-white/50 dark:bg-white/[0.03] relative",children:[c.jsx(Ha,{children:C&&c.jsxs(z.div,{initial:{opacity:0,y:-20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.15,ease:"easeOut"},className:"absolute top-4 right-4 z-50 flex items-center gap-2 px-3 py-2 bg-green-500 text-white rounded-lg shadow-lg",children:[c.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}),c.jsx("span",{className:"text-sm font-medium",children:"Docker image ready"})]})}),c.jsx("div",{className:"flex-1 flex flex-col min-h-0",children:c.jsxs(Ha,{mode:"wait",children:[e==="splash"&&c.jsx(P3,{onNext:L},"splash"),e==="checking"&&c.jsx(N3,{},"checking"),e==="deps-ready"&&c.jsx(E3,{onNext:R,onBack:ae,canGoBack:ie},"deps-ready"),e==="deps-missing"&&c.jsx(b3,{dependencies:i,onRetry:I,onContinue:O,onBack:ae,canGoBack:ie},"deps-missing"),e==="cross-platform"&&c.jsx(M3,{dockerDep:i.find(A=>A.name==="docker"),onYes:wn,onSkip:mt,onBack:ae,canGoBack:ie},"cross-platform"),e==="sdk-license"&&c.jsx(L3,{onAgree:pt,onDecline:lr,onBack:ae,canGoBack:ie},"sdk-license"),e==="docker-setup"&&c.jsx(A3,{dockerStatus:l,buildingImage:d,onBuildImage:Zp,onCheckAgain:kn,onContinueBackground:qp,onUseLocalSDK:em,onSkip:Jp,onBack:ae,canGoBack:ie},"docker-setup"),e==="projects"&&c.jsx(F3,{defaults:f,onDefaultsChange:y,onNext:tm,onSkip:nm,saving:x,onBack:ae,canGoBack:ie},"projects"),e==="signing"&&c.jsx(S3,{onNext:rm,onSkip:im,onBack:ae,canGoBack:ie},"signing"),e==="language-select"&&c.jsx(V3,{preferTypeScript:p,onSelect:g,onNext:sm,onBack:ae,canGoBack:ie},"language-select"),e==="binding-style"&&c.jsx(I3,{useInterfaces:j,onSelect:T,onNext:om,onBack:ae,canGoBack:ie},"binding-style"),e==="template-select"&&c.jsx(_3,{selectedFramework:w,preferTypeScript:p,onSelect:k,onNext:am,onSkip:lm,onBack:ae,canGoBack:ie},"template-select"),e==="complete"&&c.jsx(O3,{},"complete")]})})]})]})]})})}Oo.createRoot(document.getElementById("root")).render(c.jsx(Tm.StrictMode,{children:c.jsx(B3,{})})); diff --git a/v3/internal/setupwizard/frontend/dist/assets/index-eaMhLHYM.js b/v3/internal/setupwizard/frontend/dist/assets/index-eaMhLHYM.js new file mode 100644 index 000000000..8779fa4db --- /dev/null +++ b/v3/internal/setupwizard/frontend/dist/assets/index-eaMhLHYM.js @@ -0,0 +1,60 @@ +(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 s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function pm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rf={exports:{}},Ms={},sf={exports:{}},F={};/** + * @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 ai=Symbol.for("react.element"),mm=Symbol.for("react.portal"),gm=Symbol.for("react.fragment"),ym=Symbol.for("react.strict_mode"),xm=Symbol.for("react.profiler"),vm=Symbol.for("react.provider"),wm=Symbol.for("react.context"),km=Symbol.for("react.forward_ref"),Sm=Symbol.for("react.suspense"),jm=Symbol.for("react.memo"),Cm=Symbol.for("react.lazy"),Ru=Symbol.iterator;function Tm(e){return e===null||typeof e!="object"?null:(e=Ru&&e[Ru]||e["@@iterator"],typeof e=="function"?e:null)}var of={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},af=Object.assign,lf={};function nr(e,t,n){this.props=e,this.context=t,this.refs=lf,this.updater=n||of}nr.prototype.isReactComponent={};nr.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")};nr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function uf(){}uf.prototype=nr.prototype;function rl(e,t,n){this.props=e,this.context=t,this.refs=lf,this.updater=n||of}var il=rl.prototype=new uf;il.constructor=rl;af(il,nr.prototype);il.isPureReactComponent=!0;var Vu=Array.isArray,cf=Object.prototype.hasOwnProperty,sl={current:null},df={key:!0,ref:!0,__self:!0,__source:!0};function ff(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)cf.call(t,r)&&!df.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,O=b[I];if(0>>1;Ii(lr,R))mti(kn,lr)?(b[I]=kn,b[mt]=R,I=mt):(b[I]=lr,b[pt]=R,I=pt);else if(mti(kn,R))b[I]=kn,b[mt]=R,I=mt;else break e}}return L}function i(b,L){var R=b.sortIndex-L.sortIndex;return R!==0?R:b.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],d=1,h=null,f=3,y=!1,x=!1,v=!1,j=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(b){for(var L=n(c);L!==null;){if(L.callback===null)r(c);else if(L.startTime<=b)r(c),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(c)}}function w(b){if(v=!1,g(b),!x)if(n(l)!==null)x=!0,ie(k);else{var L=n(c);L!==null&&H(w,L.startTime-b)}}function k(b,L){x=!1,v&&(v=!1,m(T),T=-1),y=!0;var R=f;try{for(g(L),h=n(l);h!==null&&(!(h.expirationTime>L)||b&&!$());){var I=h.callback;if(typeof I=="function"){h.callback=null,f=h.priorityLevel;var O=I(h.expirationTime<=L);L=e.unstable_now(),typeof O=="function"?h.callback=O:h===n(l)&&r(l),g(L)}else r(l);h=n(l)}if(h!==null)var wn=!0;else{var pt=n(c);pt!==null&&H(w,pt.startTime-L),wn=!1}return wn}finally{h=null,f=R,y=!1}}var C=!1,P=null,T=-1,E=5,D=-1;function $(){return!(e.unstable_now()-Db||125I?(b.sortIndex=R,t(c,b),n(l)===null&&b===n(c)&&(v?(m(T),T=-1):v=!0,H(w,R-I))):(b.sortIndex=O,t(l,b),x||y||(x=!0,ie(k))),b},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(b){var L=f;return function(){var R=f;f=L;try{return b.apply(this,arguments)}finally{f=R}}}})(yf);gf.exports=yf;var _m=gf.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 Fm=S,Fe=_m;function N(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"),Bo=Object.prototype.hasOwnProperty,Om=/^[: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]*$/,_u={},Fu={};function Bm(e){return Bo.call(Fu,e)?!0:Bo.call(_u,e)?!1:Om.test(e)?Fu[e]=!0:(_u[e]=!0,!1)}function zm(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 Um(e,t,n,r){if(t===null||typeof t>"u"||zm(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 Ee(e,t,n,r,i,s,o){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=s,this.removeEmptyString=o}var ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ye[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ye[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ye[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ye[e]=new Ee(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){ye[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ye[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ye[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ye[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ye[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var al=/[\-:]([a-z])/g;function ll(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(al,ll);ye[t]=new Ee(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(al,ll);ye[t]=new Ee(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(al,ll);ye[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ye[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});ye.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ye[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function ul(e,t,n,r){var i=ye.hasOwnProperty(t)?ye[t]:null;(i!==null?i.type!==0:r||!(2a||i[o]!==s[a]){var l=` +`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{qs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function $m(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=Js(e.type,!1),e;case 11:return e=Js(e.type.render,!1),e;case 1:return e=Js(e.type,!0),e;default:return""}}function Wo(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 Cn:return"Fragment";case jn:return"Portal";case zo:return"Profiler";case cl:return"StrictMode";case Uo:return"Suspense";case $o:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case wf:return(e.displayName||"Context")+".Consumer";case vf:return(e._context.displayName||"Context")+".Provider";case dl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fl:return t=e.displayName||null,t!==null?t:Wo(e.type)||"Memo";case Mt:t=e._payload,e=e._init;try{return Wo(e(t))}catch{}}return null}function Wm(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 Wo(t);case 8:return t===cl?"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 Wt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Hm(e){var t=Sf(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xi(e){e._valueTracker||(e._valueTracker=Hm(e))}function jf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Sf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function es(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 Ho(e,t){var n=t.checked;return ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Wt(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 Cf(e,t){t=t.checked,t!=null&&ul(e,"checked",t,!1)}function Ko(e,t){Cf(e,t);var n=Wt(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")?Go(e,t.type,n):t.hasOwnProperty("defaultValue")&&Go(e,t.type,Wt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zu(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 Go(e,t,n){(t!=="number"||es(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wr=Array.isArray;function Bn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=vi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Or(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Tr={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},Km=["Webkit","ms","Moz","O"];Object.keys(Tr).forEach(function(e){Km.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tr[t]=Tr[e]})});function Ef(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Tr.hasOwnProperty(e)&&Tr[e]?(""+t).trim():t+"px"}function bf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ef(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Gm=ee({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 Xo(e,t){if(t){if(Gm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function Zo(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 qo=null;function hl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jo=null,zn=null,Un=null;function Wu(e){if(e=ci(e)){if(typeof Jo!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Vs(t),Jo(e.stateNode,e.type,t))}}function Mf(e){zn?Un?Un.push(e):Un=[e]:zn=e}function Df(){if(zn){var e=zn,t=Un;if(Un=zn=null,Wu(e),t)for(e=0;e>>=0,e===0?32:31-(ig(e)/sg|0)|0}var wi=64,ki=4194304;function kr(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 is(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=kr(a):(s&=o,s!==0&&(r=kr(s)))}else o=n&~i,o!==0?r=kr(o):s!==0&&(r=kr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&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 li(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rt(t),e[t]=n}function ug(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=Nr),Ju=" ",ec=!1;function Zf(e,t){switch(e){case"keyup":return _g.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tn=!1;function Og(e,t){switch(e){case"compositionend":return qf(t);case"keypress":return t.which!==32?null:(ec=!0,Ju);case"textInput":return e=t.data,e===Ju&&ec?null:e;default:return null}}function Bg(e,t){if(Tn)return e==="compositionend"||!kl&&Zf(e,t)?(e=Qf(),Bi=xl=Rt=null,Tn=!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=ic(n)}}function nh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rh(){for(var e=window,t=es();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=es(e.document)}return t}function Sl(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 Qg(e){var t=rh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&nh(n.ownerDocument.documentElement,n)){if(r!==null&&Sl(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,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=sc(n,s);var o=sc(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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,Pn=null,sa=null,br=null,oa=!1;function oc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;oa||Pn==null||Pn!==es(r)||(r=Pn,"selectionStart"in r&&Sl(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}),br&&Hr(br,r)||(br=r,r=as(sa,"onSelect"),0bn||(e.current=fa[bn],fa[bn]=null,bn--)}function K(e,t){bn++,fa[bn]=e.current,e.current=t}var Ht={},je=Qt(Ht),Le=Qt(!1),hn=Ht;function Yn(e,t){var n=e.type.contextTypes;if(!n)return Ht;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ae(e){return e=e.childContextTypes,e!=null}function us(){Y(Le),Y(je)}function hc(e,t,n){if(je.current!==Ht)throw Error(N(168));K(je,t),K(Le,n)}function fh(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(N(108,Wm(e)||"Unknown",i));return ee({},n,r)}function cs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ht,hn=je.current,K(je,e),K(Le,Le.current),!0}function pc(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=fh(e,t,hn),r.__reactInternalMemoizedMergedChildContext=e,Y(Le),Y(je),K(je,e)):Y(Le),K(Le,n)}var yt=null,Is=!1,po=!1;function hh(e){yt===null?yt=[e]:yt.push(e)}function a1(e){Is=!0,hh(e)}function Xt(){if(!po&&yt!==null){po=!0;var e=0,t=U;try{var n=yt;for(U=1;e>=o,i-=o,xt=1<<32-rt(t)+i|n<T?(E=P,P=null):E=P.sibling;var D=f(m,P,g[T],w);if(D===null){P===null&&(P=E);break}e&&P&&D.alternate===null&&t(m,P),p=s(D,p,T),C===null?k=D:C.sibling=D,C=D,P=E}if(T===g.length)return n(m,P),Q&&en(m,T),k;if(P===null){for(;TT?(E=P,P=null):E=P.sibling;var $=f(m,P,D.value,w);if($===null){P===null&&(P=E);break}e&&P&&$.alternate===null&&t(m,P),p=s($,p,T),C===null?k=$:C.sibling=$,C=$,P=E}if(D.done)return n(m,P),Q&&en(m,T),k;if(P===null){for(;!D.done;T++,D=g.next())D=h(m,D.value,w),D!==null&&(p=s(D,p,T),C===null?k=D:C.sibling=D,C=D);return Q&&en(m,T),k}for(P=r(m,P);!D.done;T++,D=g.next())D=y(P,m,T,D.value,w),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?T:D.key),p=s(D,p,T),C===null?k=D:C.sibling=D,C=D);return e&&P.forEach(function(de){return t(m,de)}),Q&&en(m,T),k}function j(m,p,g,w){if(typeof g=="object"&&g!==null&&g.type===Cn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case yi:e:{for(var k=g.key,C=p;C!==null;){if(C.key===k){if(k=g.type,k===Cn){if(C.tag===7){n(m,C.sibling),p=i(C,g.props.children),p.return=m,m=p;break e}}else if(C.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Mt&&yc(k)===C.type){n(m,C.sibling),p=i(C,g.props),p.ref=pr(m,C,g),p.return=m,m=p;break e}n(m,C);break}else t(m,C);C=C.sibling}g.type===Cn?(p=cn(g.props.children,m.mode,w,g.key),p.return=m,m=p):(w=Yi(g.type,g.key,g.props,null,m.mode,w),w.ref=pr(m,p,g),w.return=m,m=w)}return o(m);case jn:e:{for(C=g.key;p!==null;){if(p.key===C)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(m,p.sibling),p=i(p,g.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=So(g,m.mode,w),p.return=m,m=p}return o(m);case Mt:return C=g._init,j(m,p,C(g._payload),w)}if(wr(g))return x(m,p,g,w);if(ur(g))return v(m,p,g,w);Ei(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(m,p.sibling),p=i(p,g),p.return=m,m=p):(n(m,p),p=ko(g,m.mode,w),p.return=m,m=p),o(m)):n(m,p)}return j}var Xn=yh(!0),xh=yh(!1),hs=Qt(null),ps=null,Ln=null,Pl=null;function Nl(){Pl=Ln=ps=null}function El(e){var t=hs.current;Y(hs),e._currentValue=t}function ma(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 Wn(e,t){ps=e,Pl=Ln=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Me=!0),e.firstContext=null)}function Qe(e){var t=e._currentValue;if(Pl!==e)if(e={context:e,memoizedValue:t,next:null},Ln===null){if(ps===null)throw Error(N(308));Ln=e,ps.dependencies={lanes:0,firstContext:e}}else Ln=Ln.next=e;return t}var sn=null;function bl(e){sn===null?sn=[e]:sn.push(e)}function vh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,bl(t)):(n.next=i.next,i.next=n),t.interleaved=n,jt(e,r)}function jt(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 Dt=!1;function Ml(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wh(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 wt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,B&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,jt(e,n)}return i=r.interleaved,i===null?(t.next=t,bl(r)):(t.next=i.next,i.next=t),r.interleaved=t,jt(e,n)}function Ui(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,ml(e,n)}}function xc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 ms(e,t,n,r){var i=e.updateQueue;Dt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?s=c:o.next=c,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(s!==null){var h=i.baseState;o=0,d=c=l=null,a=s;do{var f=a.lane,y=a.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,v=a;switch(f=t,y=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){h=x.call(y,h,f);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,f=typeof x=="function"?x.call(y,h,f):x,f==null)break e;h=ee({},h,f);break e;case 2:Dt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else y={eventTime:y,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=y,l=h):d=d.next=y,o|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(d===null&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);gn|=o,e.lanes=o,e.memoizedState=h}}function vc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=go.transition;go.transition={};try{e(!1),t()}finally{U=n,go.transition=r}}function _h(){return Xe().memoizedState}function d1(e,t,n){var r=Ut(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Fh(e))Oh(t,n);else if(n=vh(e,t,n,r),n!==null){var i=Pe();it(n,e,r,i),Bh(n,t,r)}}function f1(e,t,n){var r=Ut(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fh(e))Oh(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,st(a,o)){var l=t.interleaved;l===null?(i.next=i,bl(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=vh(e,t,i,r),n!==null&&(i=Pe(),it(n,e,r,i),Bh(n,t,r))}}function Fh(e){var t=e.alternate;return e===J||t!==null&&t===J}function Oh(e,t){Mr=ys=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ml(e,n)}}var xs={readContext:Qe,useCallback:xe,useContext:xe,useEffect:xe,useImperativeHandle:xe,useInsertionEffect:xe,useLayoutEffect:xe,useMemo:xe,useReducer:xe,useRef:xe,useState:xe,useDebugValue:xe,useDeferredValue:xe,useTransition:xe,useMutableSource:xe,useSyncExternalStore:xe,useId:xe,unstable_isNewReconciler:!1},h1={readContext:Qe,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:Qe,useEffect:kc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wi(4194308,4,Lh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wi(4,2,e,t)},useMemo:function(e,t){var n=lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lt();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=d1.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:wc,useDebugValue:Fl,useDeferredValue:function(e){return lt().memoizedState=e},useTransition:function(){var e=wc(!1),t=e[0];return e=c1.bind(null,e[1]),lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=J,i=lt();if(Q){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),he===null)throw Error(N(349));mn&30||Ch(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,kc(Ph.bind(null,r,s,e),[e]),r.flags|=2048,Jr(9,Th.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=lt(),t=he.identifierPrefix;if(Q){var n=vt,r=xt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ut]=t,e[Yr]=r,Xh(e,t,!1,!1),t.stateNode=e;e:{switch(o=Zo(n,r),n){case"dialog":G("cancel",e),G("close",e),i=r;break;case"iframe":case"object":case"embed":G("load",e),i=r;break;case"video":case"audio":for(i=0;iJn&&(t.flags|=128,r=!0,mr(s,!1),t.lanes=4194304)}else{if(!r)if(e=gs(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Q)return ve(t),null}else 2*re()-s.renderingStartTime>Jn&&n!==1073741824&&(t.flags|=128,r=!0,mr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=re(),t.sibling=null,n=Z.current,K(Z,r?n&1|2:n&1),t):(ve(t),null);case 22:case 23:return Wl(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ve&1073741824&&(ve(t),t.subtreeFlags&6&&(t.flags|=8192)):ve(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function k1(e,t){switch(Cl(t),t.tag){case 1:return Ae(t.type)&&us(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zn(),Y(Le),Y(je),Al(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ll(t),null;case 13:if(Y(Z),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Qn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(Z),null;case 4:return Zn(),null;case 10:return El(t.type._context),null;case 22:case 23:return Wl(),null;case 24:return null;default:return null}}var Mi=!1,we=!1,S1=typeof WeakSet=="function"?WeakSet:Set,M=null;function An(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ne(e,t,r)}else n.current=null}function Ca(e,t,n){try{n()}catch(r){ne(e,t,r)}}var Lc=!1;function j1(e,t){if(aa=ss,e=rh(),Sl(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,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,c=0,d=0,h=e,f=null;t:for(;;){for(var y;h!==n||i!==0&&h.nodeType!==3||(a=o+i),h!==s||r!==0&&h.nodeType!==3||(l=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(y=h.firstChild)!==null;)f=h,h=y;for(;;){if(h===e)break t;if(f===n&&++c===i&&(a=o),f===s&&++d===r&&(l=o),(y=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=y}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(la={focusedElem:e,selectionRange:n},ss=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var v=x.memoizedProps,j=x.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:et(t.type,v),j);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(w){ne(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return x=Lc,Lc=!1,x}function Dr(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 s=i.destroy;i.destroy=void 0,s!==void 0&&Ca(t,n,s)}i=i.next}while(i!==r)}}function Os(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 Ta(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 Jh(e){var t=e.alternate;t!==null&&(e.alternate=null,Jh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[Yr],delete t[da],delete t[s1],delete t[o1])),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 e0(e){return e.tag===5||e.tag===3||e.tag===4}function Ac(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||e0(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 Pa(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=ls));else if(r!==4&&(e=e.child,e!==null))for(Pa(e,t,n),e=e.sibling;e!==null;)Pa(e,t,n),e=e.sibling}function Na(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(Na(e,t,n),e=e.sibling;e!==null;)Na(e,t,n),e=e.sibling}var pe=null,tt=!1;function Et(e,t,n){for(n=n.child;n!==null;)t0(e,t,n),n=n.sibling}function t0(e,t,n){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(Ds,n)}catch{}switch(n.tag){case 5:we||An(n,t);case 6:var r=pe,i=tt;pe=null,Et(e,t,n),pe=r,tt=i,pe!==null&&(tt?(e=pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pe.removeChild(n.stateNode));break;case 18:pe!==null&&(tt?(e=pe,n=n.stateNode,e.nodeType===8?ho(e.parentNode,n):e.nodeType===1&&ho(e,n),$r(e)):ho(pe,n.stateNode));break;case 4:r=pe,i=tt,pe=n.stateNode.containerInfo,tt=!0,Et(e,t,n),pe=r,tt=i;break;case 0:case 11:case 14:case 15:if(!we&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Ca(n,t,o),i=i.next}while(i!==r)}Et(e,t,n);break;case 1:if(!we&&(An(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ne(n,t,a)}Et(e,t,n);break;case 21:Et(e,t,n);break;case 22:n.mode&1?(we=(r=we)||n.memoizedState!==null,Et(e,t,n),we=r):Et(e,t,n);break;default:Et(e,t,n)}}function Rc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new S1),t.forEach(function(r){var i=L1.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*T1(r/1960))-r,10e?16:e,Vt===null)var r=!1;else{if(e=Vt,Vt=null,ks=0,B&6)throw Error(N(331));var i=B;for(B|=4,M=e.current;M!==null;){var s=M,o=s.child;if(M.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lre()-Ul?un(e,0):zl|=n),Re(e,t)}function u0(e,t){t===0&&(e.mode&1?(t=ki,ki<<=1,!(ki&130023424)&&(ki=4194304)):t=1);var n=Pe();e=jt(e,t),e!==null&&(li(e,t,n),Re(e,n))}function D1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),u0(e,n)}function L1(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(N(314))}r!==null&&r.delete(t),u0(e,n)}var c0;c0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Le.current)Me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Me=!1,v1(e,t,n);Me=!!(e.flags&131072)}else Me=!1,Q&&t.flags&1048576&&ph(t,fs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hi(e,t),e=t.pendingProps;var i=Yn(t,je.current);Wn(t,n),i=Vl(null,t,r,e,i,n);var s=Il();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,Ae(r)?(s=!0,cs(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ml(t),i.updater=Fs,t.stateNode=i,i._reactInternals=t,ya(t,r,e,n),t=wa(null,t,r,!0,s,n)):(t.tag=0,Q&&s&&jl(t),Ce(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=R1(r),e=et(r,e),i){case 0:t=va(null,t,r,e,n);break e;case 1:t=bc(null,t,r,e,n);break e;case 11:t=Nc(null,t,r,e,n);break e;case 14:t=Ec(null,t,r,et(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),va(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),bc(e,t,r,i,n);case 3:e:{if(Gh(t),e===null)throw Error(N(387));r=t.pendingProps,s=t.memoizedState,i=s.element,wh(e,t),ms(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=qn(Error(N(423)),t),t=Mc(e,t,r,n,i);break e}else if(r!==i){i=qn(Error(N(424)),t),t=Mc(e,t,r,n,i);break e}else for(Ie=Ot(t.stateNode.containerInfo.firstChild),_e=t,Q=!0,nt=null,n=xh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Qn(),r===i){t=Ct(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return kh(t),e===null&&pa(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,ua(r,i)?o=null:s!==null&&ua(r,s)&&(t.flags|=32),Kh(e,t),Ce(e,t,o,n),t.child;case 6:return e===null&&pa(t),null;case 13:return Yh(e,t,n);case 4:return Dl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xn(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Nc(e,t,r,i,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,K(hs,r._currentValue),r._currentValue=o,s!==null)if(st(s.value,o)){if(s.children===i.children&&!Le.current){t=Ct(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=wt(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ma(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(N(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),ma(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ce(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Wn(t,n),i=Qe(i),r=r(i),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,i=et(r,t.pendingProps),i=et(r.type,i),Ec(e,t,r,i,n);case 15:return Wh(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Hi(e,t),t.tag=1,Ae(r)?(e=!0,cs(t)):e=!1,Wn(t,n),zh(t,r,i),ya(t,r,i,n),wa(null,t,r,!0,e,n);case 19:return Qh(e,t,n);case 22:return Hh(e,t,n)}throw Error(N(156,t.tag))};function d0(e,t){return Ff(e,t)}function A1(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 He(e,t,n,r){return new A1(e,t,n,r)}function Kl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function R1(e){if(typeof e=="function")return Kl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===dl)return 11;if(e===fl)return 14}return 2}function $t(e,t){var n=e.alternate;return n===null?(n=He(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 Yi(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Kl(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Cn:return cn(n.children,i,s,t);case cl:o=8,i|=8;break;case zo:return e=He(12,n,t,i|2),e.elementType=zo,e.lanes=s,e;case Uo:return e=He(13,n,t,i),e.elementType=Uo,e.lanes=s,e;case $o:return e=He(19,n,t,i),e.elementType=$o,e.lanes=s,e;case kf:return zs(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case vf:o=10;break e;case wf:o=9;break e;case dl:o=11;break e;case fl:o=14;break e;case Mt:o=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=He(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function cn(e,t,n,r){return e=He(7,e,r,t),e.lanes=n,e}function zs(e,t,n,r){return e=He(22,e,r,t),e.elementType=kf,e.lanes=n,e.stateNode={isHidden:!1},e}function ko(e,t,n){return e=He(6,e,null,t),e.lanes=n,e}function So(e,t,n){return t=He(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function V1(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=to(0),this.expirationTimes=to(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=to(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Gl(e,t,n,r,i,s,o,a,l){return e=new V1(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=He(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ml(s),e}function I1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(m0)}catch(e){console.error(e)}}m0(),mf.exports=Oe;var z1=mf.exports,Uc=z1;Oo.createRoot=Uc.createRoot,Oo.hydrateRoot=Uc.hydrateRoot;const U1="modulepreload",$1=function(e){return"/"+e},$c={},W1=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=$1(l),l in $c)return;$c[l]=!0;const c=l.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":U1,c||(h.as="script"),h.crossOrigin="",h.href=l,a&&h.setAttribute("nonce",a),document.head.appendChild(h),c)return new Promise((f,y)=>{h.addEventListener("load",f),h.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})},Zl=S.createContext({});function ql(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Jl=typeof window<"u",g0=Jl?S.useLayoutEffect:S.useEffect,Ks=S.createContext(null);function eu(e,t){e.indexOf(t)===-1&&e.push(t)}function tu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Tt=(e,t,n)=>n>t?t:n{};const Pt={},y0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function x0(e){return typeof e=="object"&&e!==null}const v0=e=>/^0[^.\s]+$/u.test(e);function ru(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ye=e=>e,H1=(e,t)=>n=>t(e(n)),fi=(...e)=>e.reduce(H1),ti=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class iu{constructor(){this.subscriptions=[]}add(t){return eu(this.subscriptions,t),()=>tu(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;se*1e3,Ke=e=>e/1e3;function w0(e,t){return t?e*(1e3/t):0}const k0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,K1=1e-7,G1=12;function Y1(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=k0(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>K1&&++aY1(s,0,1,e,n);return s=>s===0||s===1?s:k0(i(s),t,r)}const S0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,j0=e=>t=>1-e(1-t),C0=hi(.33,1.53,.69,.99),su=j0(C0),T0=S0(su),P0=e=>(e*=2)<1?.5*su(e):.5*(2-Math.pow(2,-10*(e-1))),ou=e=>1-Math.sin(Math.acos(e)),N0=j0(ou),E0=S0(ou),Q1=hi(.42,0,1,1),X1=hi(0,0,.58,1),b0=hi(.42,0,.58,1),Z1=e=>Array.isArray(e)&&typeof e[0]!="number",M0=e=>Array.isArray(e)&&typeof e[0]=="number",q1={linear:Ye,easeIn:Q1,easeInOut:b0,easeOut:X1,circIn:ou,circInOut:E0,circOut:N0,backIn:su,backInOut:T0,backOut:C0,anticipate:P0},J1=e=>typeof e=="string",Wc=e=>{if(M0(e)){nu(e.length===4);const[t,n,r,i]=e;return hi(t,n,r,i)}else if(J1(e))return q1[e];return e},Ai=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ey(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,h=!1,f=!1)=>{const x=f&&i?n:r;return h&&o.add(d),x.has(d)||x.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(a=d,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,s&&(s=!1,c.process(d))}};return c}const ty=40;function D0(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Ai.reduce((g,w)=>(g[w]=ey(s),g),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:d,update:h,preRender:f,render:y,postRender:x}=o,v=()=>{const g=Pt.useManualTiming?i.timestamp:performance.now();n=!1,Pt.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,ty),1)),i.timestamp=g,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),d.process(i),h.process(i),f.process(i),y.process(i),x.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},j=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:Ai.reduce((g,w)=>{const k=o[w];return g[w]=(C,P=!1,T=!1)=>(n||j(),k.schedule(C,P,T)),g},{}),cancel:g=>{for(let w=0;w(Qi===void 0&&De.set(me.isProcessing||Pt.useManualTiming?me.timestamp:performance.now()),Qi),set:e=>{Qi=e,queueMicrotask(ny)}},L0=e=>t=>typeof t=="string"&&t.startsWith(e),au=L0("--"),ry=L0("var(--"),lu=e=>ry(e)?iy.test(e.split("/*")[0].trim()):!1,iy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,sr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ni={...sr,transform:e=>Tt(0,1,e)},Ri={...sr,default:1},Rr=e=>Math.round(e*1e5)/1e5,uu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function sy(e){return e==null}const oy=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cu=(e,t)=>n=>!!(typeof n=="string"&&oy.test(n)&&n.startsWith(e)||t&&!sy(n)&&Object.prototype.hasOwnProperty.call(n,t)),A0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(uu);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},ay=e=>Tt(0,255,e),Co={...sr,transform:e=>Math.round(ay(e))},an={test:cu("rgb","red"),parse:A0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Co.transform(e)+", "+Co.transform(t)+", "+Co.transform(n)+", "+Rr(ni.transform(r))+")"};function ly(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 La={test:cu("#"),parse:ly,transform:an.transform},pi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),bt=pi("deg"),ht=pi("%"),V=pi("px"),uy=pi("vh"),cy=pi("vw"),Hc={...ht,parse:e=>ht.parse(e)/100,transform:e=>ht.transform(e*100)},Vn={test:cu("hsl","hue"),parse:A0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ht.transform(Rr(t))+", "+ht.transform(Rr(n))+", "+Rr(ni.transform(r))+")"},se={test:e=>an.test(e)||La.test(e)||Vn.test(e),parse:e=>an.test(e)?an.parse(e):Vn.test(e)?Vn.parse(e):La.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?an.transform(e):Vn.transform(e),getAnimatableNone:e=>{const t=se.parse(e);return t.alpha=0,se.transform(t)}},dy=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function fy(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(uu))==null?void 0:t.length)||0)+(((n=e.match(dy))==null?void 0:n.length)||0)>0}const R0="number",V0="color",hy="var",py="var(",Kc="${}",my=/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 ri(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(my,l=>(se.test(l)?(r.color.push(s),i.push(V0),n.push(se.parse(l))):l.startsWith(py)?(r.var.push(s),i.push(hy),n.push(l)):(r.number.push(s),i.push(R0),n.push(parseFloat(l))),++s,Kc)).split(Kc);return{values:n,split:a,indexes:r,types:i}}function I0(e){return ri(e).values}function _0(e){const{split:t,types:n}=ri(e),r=t.length;return i=>{let s="";for(let o=0;otypeof e=="number"?0:se.test(e)?se.getAnimatableNone(e):e;function yy(e){const t=I0(e);return _0(e)(t.map(gy))}const Gt={test:fy,parse:I0,createTransformer:_0,getAnimatableNone:yy};function To(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 xy({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=To(l,a,e+1/3),s=To(l,a,e),o=To(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Cs(e,t){return n=>n>0?t:e}const q=(e,t,n)=>e+(t-e)*n,Po=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},vy=[La,an,Vn],wy=e=>vy.find(t=>t.test(e));function Gc(e){const t=wy(e);if(!t)return!1;let n=t.parse(e);return t===Vn&&(n=xy(n)),n}const Yc=(e,t)=>{const n=Gc(e),r=Gc(t);if(!n||!r)return Cs(e,t);const i={...n};return s=>(i.red=Po(n.red,r.red,s),i.green=Po(n.green,r.green,s),i.blue=Po(n.blue,r.blue,s),i.alpha=q(n.alpha,r.alpha,s),an.transform(i))},Aa=new Set(["none","hidden"]);function ky(e,t){return Aa.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Sy(e,t){return n=>q(e,t,n)}function du(e){return typeof e=="number"?Sy:typeof e=="string"?lu(e)?Cs:se.test(e)?Yc:Ty:Array.isArray(e)?F0:typeof e=="object"?se.test(e)?Yc:jy:Cs}function F0(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>du(s)(s,t[o]));return s=>{for(let o=0;o{for(const s in r)n[s]=r[s](i);return n}}function Cy(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=Gt.createTransformer(t),r=ri(e),i=ri(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?Aa.has(e)&&!i.values.length||Aa.has(t)&&!r.values.length?ky(e,t):fi(F0(Cy(r,i),i.values),n):Cs(e,t)};function O0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?q(e,t,n):du(e)(e,t)}const Py=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>X.update(t,n),stop:()=>Kt(t),now:()=>me.isProcessing?me.timestamp:De.now()}},B0=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s=Ts?1/0:t}function Ny(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(fu(r),Ts);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:Ke(i)}}const Ey=5;function z0(e,t,n){const r=Math.max(t-Ey,0);return w0(n-e(r),t-r)}const te={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},No=.001;function by({duration:e=te.duration,bounce:t=te.bounce,velocity:n=te.velocity,mass:r=te.mass}){let i,s,o=1-t;o=Tt(te.minDamping,te.maxDamping,o),e=Tt(te.minDuration,te.maxDuration,Ke(e)),o<1?(i=c=>{const d=c*o,h=d*e,f=d-n,y=Ra(c,o),x=Math.exp(-h);return No-f/y*x},s=c=>{const h=c*o*e,f=h*n+n,y=Math.pow(o,2)*Math.pow(c,2)*e,x=Math.exp(-h),v=Ra(Math.pow(c,2),o);return(-i(c)+No>0?-1:1)*((f-y)*x)/v}):(i=c=>{const d=Math.exp(-c*e),h=(c-n)*e+1;return-No+d*h},s=c=>{const d=Math.exp(-c*e),h=(n-c)*(e*e);return d*h});const a=5/e,l=Dy(i,s,a);if(e=ft(e),isNaN(l))return{stiffness:te.stiffness,damping:te.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const My=12;function Dy(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function Ry(e){let t={velocity:te.velocity,stiffness:te.stiffness,damping:te.damping,mass:te.mass,isResolvedFromDuration:!1,...e};if(!Qc(e,Ay)&&Qc(e,Ly))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Tt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:te.mass,stiffness:i,damping:s}}else{const n=by(e);t={...t,...n,mass:te.mass},t.isResolvedFromDuration=!0}return t}function Ps(e=te.visualDuration,t=te.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:d,duration:h,velocity:f,isResolvedFromDuration:y}=Ry({...n,velocity:-Ke(n.velocity||0)}),x=f||0,v=c/(2*Math.sqrt(l*d)),j=o-s,m=Ke(Math.sqrt(l/d)),p=Math.abs(j)<5;r||(r=p?te.restSpeed.granular:te.restSpeed.default),i||(i=p?te.restDelta.granular:te.restDelta.default);let g;if(v<1){const k=Ra(m,v);g=C=>{const P=Math.exp(-v*m*C);return o-P*((x+v*m*j)/k*Math.sin(k*C)+j*Math.cos(k*C))}}else if(v===1)g=k=>o-Math.exp(-m*k)*(j+(x+m*j)*k);else{const k=m*Math.sqrt(v*v-1);g=C=>{const P=Math.exp(-v*m*C),T=Math.min(k*C,300);return o-P*((x+v*m*j)*Math.sinh(T)+k*j*Math.cosh(T))/k}}const w={calculatedDuration:y&&h||null,next:k=>{const C=g(k);if(y)a.done=k>=h;else{let P=k===0?x:0;v<1&&(P=k===0?ft(x):z0(g,k,C));const T=Math.abs(P)<=r,E=Math.abs(o-C)<=i;a.done=T&&E}return a.value=a.done?o:C,a},toString:()=>{const k=Math.min(fu(w),Ts),C=B0(P=>w.next(k*P).value,k,30);return k+"ms "+C},toTransition:()=>{}};return w}Ps.applyToOptions=e=>{const t=Ny(e,100,Ps);return e.ease=t.ease,e.duration=ft(t.duration),e.type="keyframes",e};function Va({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:d}){const h=e[0],f={done:!1,value:h},y=T=>a!==void 0&&Tl,x=T=>a===void 0?l:l===void 0||Math.abs(a-T)-v*Math.exp(-T/r),g=T=>m+p(T),w=T=>{const E=p(T),D=g(T);f.done=Math.abs(E)<=c,f.value=f.done?m:D};let k,C;const P=T=>{y(f.value)&&(k=T,C=Ps({keyframes:[f.value,x(f.value)],velocity:z0(g,T,f.value),damping:i,stiffness:s,restDelta:c,restSpeed:d}))};return P(0),{calculatedDuration:null,next:T=>{let E=!1;return!C&&k===void 0&&(E=!0,w(T),P(T)),k!==void 0&&T>=k?C.next(T-k):(!E&&w(T),f)}}}function Vy(e,t,n){const r=[],i=n||Pt.mix||O0,s=e.length-1;for(let o=0;ot[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Vy(t,r,i),l=a.length,c=d=>{if(o&&d1)for(;hc(Tt(e[0],e[s-1],d)):c}function _y(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ti(0,t,r);e.push(q(n,1,i))}}function Fy(e){const t=[0];return _y(t,e.length-1),t}function Oy(e,t){return e.map(n=>n*t)}function By(e,t){return e.map(()=>t||b0).splice(0,e.length-1)}function Vr({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Z1(r)?r.map(Wc):Wc(r),s={done:!1,value:t[0]},o=Oy(n&&n.length===t.length?n:Fy(t),e),a=Iy(o,t,{ease:Array.isArray(i)?i:By(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const zy=e=>e!==null;function hu(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(zy),a=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const Uy={decay:Va,inertia:Va,tween:Vr,keyframes:Vr,spring:Ps};function U0(e){typeof e.type=="string"&&(e.type=Uy[e.type])}class pu{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const $y=e=>e/100;class mu extends pu{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==De.now()&&this.tick(De.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;U0(t);const{type:n=Vr,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||Vr;l!==Vr&&typeof a[0]!="number"&&(this.mixKeyframes=fi($y,O0(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=fu(c));const{calculatedDuration:d}=c;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:d,repeat:h,repeatType:f,repeatDelay:y,type:x,onUpdate:v,finalKeyframe:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const m=this.currentTime-c*(this.playbackSpeed>=0?1:-1),p=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let g=this.currentTime,w=r;if(h){const T=Math.min(this.currentTime,i)/a;let E=Math.floor(T),D=T%1;!D&&T>=1&&(D=1),D===1&&E--,E=Math.min(E,h+1),!!(E%2)&&(f==="reverse"?(D=1-D,y&&(D-=y/a)):f==="mirror"&&(w=o)),g=Tt(0,1,D)*a}const k=p?{done:!1,value:d[0]}:w.next(g);s&&(k.value=s(k.value));let{done:C}=k;!p&&l!==null&&(C=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return P&&x!==Va&&(k.value=hu(d,this.options,j,this.speed)),v&&v(k.value),P&&this.finish(),k}then(t,n){return this.finished.then(t,n)}get duration(){return Ke(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ke(t)}get time(){return Ke(this.currentTime)}set time(t){var n;t=ft(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(De.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ke(this.currentTime))}play(){var i,s;if(this.isStopped)return;const{driver:t=Py,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(i=this.options).onPlay)==null||s.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(De.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Wy(e){for(let t=1;te*180/Math.PI,Ia=e=>{const t=ln(Math.atan2(e[1],e[0]));return _a(t)},Hy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ia,rotateZ:Ia,skewX:e=>ln(Math.atan(e[1])),skewY:e=>ln(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},_a=e=>(e=e%360,e<0&&(e+=360),e),Xc=Ia,Zc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),qc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Ky={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Zc,scaleY:qc,scale:e=>(Zc(e)+qc(e))/2,rotateX:e=>_a(ln(Math.atan2(e[6],e[5]))),rotateY:e=>_a(ln(Math.atan2(-e[2],e[0]))),rotateZ:Xc,rotate:Xc,skewX:e=>ln(Math.atan(e[4])),skewY:e=>ln(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Fa(e){return e.includes("scale")?1:0}function Oa(e,t){if(!e||e==="none")return Fa(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Ky,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Hy,i=a}if(!i)return Fa(t);const s=r[t],o=i[1].split(",").map(Yy);return typeof s=="function"?s(o):o[s]}const Gy=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Oa(n,t)};function Yy(e){return parseFloat(e.trim())}const or=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ar=new Set(or),Jc=e=>e===sr||e===V,Qy=new Set(["x","y","z"]),Xy=or.filter(e=>!Qy.has(e));function Zy(e){const t=[];return Xy.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const dn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Oa(t,"x"),y:(e,{transform:t})=>Oa(t,"y")};dn.translateX=dn.x;dn.translateY=dn.y;const fn=new Set;let Ba=!1,za=!1,Ua=!1;function $0(){if(za){const e=Array.from(fn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Zy(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}za=!1,Ba=!1,fn.forEach(e=>e.complete(Ua)),fn.clear()}function W0(){fn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(za=!0)})}function qy(){Ua=!0,W0(),$0(),Ua=!1}class gu{constructor(t,n,r,i,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(fn.add(this),Ba||(Ba=!0,X.read(W0),X.resolveKeyframes($0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}Wy(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),fn.delete(this)}cancel(){this.state==="scheduled"&&(fn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Jy=e=>e.startsWith("--");function ex(e,t,n){Jy(t)?e.style.setProperty(t,n):e.style[t]=n}const tx=ru(()=>window.ScrollTimeline!==void 0),nx={};function rx(e,t){const n=ru(e);return()=>nx[t]??n()}const H0=rx(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),jr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ed={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jr([0,.65,.55,1]),circOut:jr([.55,0,1,.45]),backIn:jr([.31,.01,.66,-.59]),backOut:jr([.33,1.53,.69,.99])};function K0(e,t){if(e)return typeof e=="function"?H0()?B0(e,t):"ease-out":M0(e)?jr(e):Array.isArray(e)?e.map(n=>K0(n,t)||ed.easeOut):ed[e]}function ix(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const d={[t]:n};l&&(d.offset=l);const h=K0(a,i);Array.isArray(h)&&(d.easing=h);const f={delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(d,f)}function G0(e){return typeof e=="function"&&"applyToOptions"in e}function sx({type:e,...t}){return G0(e)&&H0()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class ox extends pu{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,nu(typeof t.type!="string");const c=sx(t);this.animation=ix(n,r,i,c,s),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const d=hu(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):ex(n,r,d),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Ke(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ke(t)}get time(){return Ke(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ft(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&tx()?(this.animation.timeline=t,Ye):n(this)}}const Y0={anticipate:P0,backInOut:T0,circInOut:E0};function ax(e){return e in Y0}function lx(e){typeof e.ease=="string"&&ax(e.ease)&&(e.ease=Y0[e.ease])}const td=10;class ux extends ox{constructor(t){lx(t),U0(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new mu({...o,autoplay:!1}),l=ft(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-td).value,a.sample(l).value,td),a.stop()}}const nd=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Gt.test(e)||e==="0")&&!e.startsWith("url("));function cx(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function px(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return hx()&&n&&fx.has(n)&&(n!=="transform"||!c)&&!l&&!r&&i!=="mirror"&&s!==0&&o!=="inertia"}const mx=40;class gx extends pu{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:d,...h}){var x;super(),this.stop=()=>{var v,j;this._animation&&(this._animation.stop(),(v=this.stopTimeline)==null||v.call(this)),(j=this.keyframeResolver)==null||j.cancel()},this.createdAt=De.now();const f={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,name:l,motionValue:c,element:d,...h},y=(d==null?void 0:d.KeyframeResolver)||gu;this.keyframeResolver=new y(a,(v,j,m)=>this.onKeyframesResolved(v,j,f,!m),l,c,d),(x=this.keyframeResolver)==null||x.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:d}=r;this.resolvedAt=De.now(),dx(t,s,o,a)||((Pt.instantAnimations||!l)&&(d==null||d(hu(t,r,n))),t[0]=t[t.length-1],$a(r),r.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>mx?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=!c&&px(f)?new ux({...f,element:f.motionValue.owner.current}):new mu(f);y.finished.then(()=>this.notifyFinished()).catch(Ye),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),qy()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const yx=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xx(e){const t=yx.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Q0(e,t,n=1){const[r,i]=xx(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return y0(o)?parseFloat(o):o}return lu(i)?Q0(i,t,n+1):i}function yu(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const X0=new Set(["width","height","top","left","right","bottom",...or]),vx={test:e=>e==="auto",parse:e=>e},Z0=e=>t=>t.test(e),q0=[sr,V,ht,bt,cy,uy,vx],rd=e=>q0.find(Z0(e));function wx(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||v0(e):!0}const kx=new Set(["brightness","contrast","saturate","opacity"]);function Sx(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(uu)||[];if(!r)return e;const i=n.replace(r,"");let s=kx.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const jx=/\b([a-z-]*)\(.*?\)/gu,Wa={...Gt,getAnimatableNone:e=>{const t=e.match(jx);return t?t.map(Sx).join(" "):e}},id={...sr,transform:Math.round},Cx={rotate:bt,rotateX:bt,rotateY:bt,rotateZ:bt,scale:Ri,scaleX:Ri,scaleY:Ri,scaleZ:Ri,skew:bt,skewX:bt,skewY:bt,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:ni,originX:Hc,originY:Hc,originZ:V},xu={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V,...Cx,zIndex:id,fillOpacity:ni,strokeOpacity:ni,numOctaves:id},Tx={...xu,color:se,backgroundColor:se,outlineColor:se,fill:se,stroke:se,borderColor:se,borderTopColor:se,borderRightColor:se,borderBottomColor:se,borderLeftColor:se,filter:Wa,WebkitFilter:Wa},J0=e=>Tx[e];function ep(e,t){let n=J0(e);return n!==Wa&&(n=Gt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Px=new Set(["auto","none","0"]);function Nx(e,t,n){let r=0,i;for(;r{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function bx(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const tp=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function np(e){return x0(e)&&"offsetHeight"in e}const sd=30,Mx=e=>!isNaN(parseFloat(e));class Dx{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const i=De.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=De.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Mx(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 iu);const r=this.events[t].add(n);return t==="change"?()=>{r(),X.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=De.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>sd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,sd);return w0(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function er(e,t){return new Dx(e,t)}const{schedule:vu}=D0(queueMicrotask,!1),Je={x:!1,y:!1};function rp(){return Je.x||Je.y}function Lx(e){return e==="x"||e==="y"?Je[e]?null:(Je[e]=!0,()=>{Je[e]=!1}):Je.x||Je.y?null:(Je.x=Je.y=!0,()=>{Je.x=Je.y=!1})}function ip(e,t){const n=bx(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function od(e){return!(e.pointerType==="touch"||rp())}function Ax(e,t,n={}){const[r,i,s]=ip(e,n),o=a=>{if(!od(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const d=h=>{od(h)&&(c(h),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const sp=(e,t)=>t?e===t?!0:sp(e,t.parentElement):!1,wu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Rx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Vx(e){return Rx.has(e.tagName)||e.tabIndex!==-1}const Xi=new WeakSet;function ad(e){return t=>{t.key==="Enter"&&e(t)}}function Eo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Ix=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=ad(()=>{if(Xi.has(n))return;Eo(n,"down");const i=ad(()=>{Eo(n,"up")}),s=()=>Eo(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function ld(e){return wu(e)&&!rp()}function _x(e,t,n={}){const[r,i,s]=ip(e,n),o=a=>{const l=a.currentTarget;if(!ld(a))return;Xi.add(l);const c=t(l,a),d=(y,x)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),Xi.has(l)&&Xi.delete(l),ld(y)&&typeof c=="function"&&c(y,{success:x})},h=y=>{d(y,l===window||l===document||n.useGlobalTarget||sp(l,y.target))},f=y=>{d(y,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),np(a)&&(a.addEventListener("focus",c=>Ix(c,i)),!Vx(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function op(e){return x0(e)&&"ownerSVGElement"in e}function Fx(e){return op(e)&&e.tagName==="svg"}const Se=e=>!!(e&&e.getVelocity),Ox=[...q0,se,Gt],Bx=e=>Ox.find(Z0(e)),ku=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ud(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function zx(...e){return t=>{let n=!1;const r=e.map(i=>{const s=ud(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i{const{width:c,height:d,top:h,left:f,right:y}=o.current;if(t||!s.current||!c||!d)return;const x=n==="left"?`left: ${f}`:`right: ${y}`;s.current.dataset.motionPopId=i;const v=document.createElement("style");a&&(v.nonce=a);const j=r??document.head;return j.appendChild(v),v.sheet&&v.sheet.insertRule(` + [data-motion-pop-id="${i}"] { + position: absolute !important; + width: ${c}px !important; + height: ${d}px !important; + ${x}px !important; + top: ${h}px !important; + } + `),()=>{j.contains(v)&&j.removeChild(v)}},[t]),u.jsx($x,{isPresent:t,childRef:s,sizeRef:o,children:S.cloneElement(e,{ref:l})})}const Hx=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a,root:l})=>{const c=ql(Kx),d=S.useId();let h=!0,f=S.useMemo(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:y=>{c.set(y,!0);for(const x of c.values())if(!x)return;r&&r()},register:y=>(c.set(y,!1),()=>c.delete(y))}),[n,c,r]);return s&&h&&(f={...f}),S.useMemo(()=>{c.forEach((y,x)=>c.set(x,!1))},[n]),S.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),o==="popLayout"&&(e=u.jsx(Wx,{isPresent:n,anchorX:a,root:l,children:e})),u.jsx(Ks.Provider,{value:f,children:e})};function Kx(){return new Map}function ap(e=!0){const t=S.useContext(Ks);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=S.useId();S.useEffect(()=>{if(e)return i(s)},[e]);const o=S.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const Vi=e=>e.key||"";function cd(e){const t=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&t.push(n)}),t}const Ha=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left",root:l})=>{const[c,d]=ap(o),h=S.useMemo(()=>cd(e),[e]),f=o&&!c?[]:h.map(Vi),y=S.useRef(!0),x=S.useRef(h),v=ql(()=>new Map),[j,m]=S.useState(h),[p,g]=S.useState(h);g0(()=>{y.current=!1,x.current=h;for(let C=0;C{const P=Vi(C),T=o&&!c?!1:h===p||f.includes(P),E=()=>{if(v.has(P))v.set(P,!0);else return;let D=!0;v.forEach($=>{$||(D=!1)}),D&&(k==null||k(),g(x.current),o&&(d==null||d()),r&&r())};return u.jsx(Hx,{isPresent:T,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,root:l,onExitComplete:T?void 0:E,anchorX:a,children:C},P)})})},lp=S.createContext({strict:!1}),dd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},tr={};for(const e in dd)tr[e]={isEnabled:t=>dd[e].some(n=>!!t[n])};function Gx(e){for(const t in e)tr[t]={...tr[t],...e[t]}}const Yx=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 Ns(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Yx.has(e)}let up=e=>!Ns(e);function Qx(e){typeof e=="function"&&(up=t=>t.startsWith("on")?!Ns(t):e(t))}try{Qx(require("@emotion/is-prop-valid").default)}catch{}function Xx(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(up(i)||n===!0&&Ns(i)||!t&&!Ns(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Gs=S.createContext({});function Ys(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ii(e){return typeof e=="string"||Array.isArray(e)}const Su=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ju=["initial",...Su];function Qs(e){return Ys(e.animate)||ju.some(t=>ii(e[t]))}function cp(e){return!!(Qs(e)||e.variants)}function Zx(e,t){if(Qs(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ii(n)?n:void 0,animate:ii(r)?r:void 0}}return e.inherit!==!1?t:{}}function qx(e){const{initial:t,animate:n}=Zx(e,S.useContext(Gs));return S.useMemo(()=>({initial:t,animate:n}),[fd(t),fd(n)])}function fd(e){return Array.isArray(e)?e.join(" "):e}const si={};function Jx(e){for(const t in e)si[t]=e[t],au(t)&&(si[t].isCSSVariable=!0)}function dp(e,{layout:t,layoutId:n}){return ar.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!si[e]||e==="opacity")}const ev={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tv=or.length;function nv(e,t,n){let r="",i=!0;for(let s=0;s({style:{},transform:{},transformOrigin:{},vars:{}});function fp(e,t,n){for(const r in t)!Se(t[r])&&!dp(r,n)&&(e[r]=t[r])}function rv({transformTemplate:e},t){return S.useMemo(()=>{const n=Tu();return Cu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function iv(e,t){const n=e.style||{},r={};return fp(r,n,e),Object.assign(r,rv(e,t)),r}function sv(e,t){const n={},r=iv(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const ov={offset:"stroke-dashoffset",array:"stroke-dasharray"},av={offset:"strokeDashoffset",array:"strokeDasharray"};function lv(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?ov:av;e[s.offset]=V.transform(-r);const o=V.transform(t),a=V.transform(n);e[s.array]=`${o} ${a}`}function hp(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:o=0,...a},l,c,d){if(Cu(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:f}=e;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete h.transformBox),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),i!==void 0&&lv(h,i,s,o,!1)}const pp=()=>({...Tu(),attrs:{}}),mp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function uv(e,t,n,r){const i=S.useMemo(()=>{const s=pp();return hp(s,t,mp(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};fp(s,e.style,e),i.style={...s,...i.style}}return i}const cv=["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 Pu(e){return typeof e!="string"||e.includes("-")?!1:!!(cv.indexOf(e)>-1||/[A-Z]/u.test(e))}function dv(e,t,n,{latestValues:r},i,s=!1){const a=(Pu(e)?uv:sv)(t,r,i,e),l=Xx(t,typeof e=="string",s),c=e!==S.Fragment?{...l,...a,ref:n}:{},{children:d}=t,h=S.useMemo(()=>Se(d)?d.get():d,[d]);return S.createElement(e,{...c,children:h})}function hd(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Nu(e,t,n,r){if(typeof t=="function"){const[i,s]=hd(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=hd(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Zi(e){return Se(e)?e.get():e}function fv({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:hv(n,r,i,e),renderState:t()}}function hv(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=Zi(s[f]);let{initial:o,animate:a}=e;const l=Qs(e),c=cp(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const h=d?a:o;if(h&&typeof h!="boolean"&&!Ys(h)){const f=Array.isArray(h)?h:[h];for(let y=0;y(t,n)=>{const r=S.useContext(Gs),i=S.useContext(Ks),s=()=>fv(e,t,r,i);return n?s():ql(s)};function Eu(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(Se(r[o])||t.style&&Se(t.style[o])||dp(o,e)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const pv=gp({scrapeMotionValuesFromProps:Eu,createRenderState:Tu});function yp(e,t,n){const r=Eu(e,t,n);for(const i in e)if(Se(e[i])||Se(t[i])){const s=or.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const mv=gp({scrapeMotionValuesFromProps:yp,createRenderState:pp}),gv=Symbol.for("motionComponentSymbol");function In(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function yv(e,t,n){return S.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):In(n)&&(n.current=r))},[t])}const bu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),xv="framerAppearId",xp="data-"+bu(xv),vp=S.createContext({});function vv(e,t,n,r,i){var v,j;const{visualElement:s}=S.useContext(Gs),o=S.useContext(lp),a=S.useContext(Ks),l=S.useContext(ku).reducedMotion,c=S.useRef(null);r=r||o.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const d=c.current,h=S.useContext(vp);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&wv(c.current,n,i,h);const f=S.useRef(!1);S.useInsertionEffect(()=>{d&&f.current&&d.update(n,a)});const y=n[xp],x=S.useRef(!!y&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,y))&&((j=window.MotionHasOptimisedAnimation)==null?void 0:j.call(window,y)));return g0(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),x.current&&d.animationState&&d.animationState.animateChanges())}),S.useEffect(()=>{d&&(!x.current&&d.animationState&&d.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)==null||m.call(window,y)}),x.current=!1),d.enteringChildren=void 0)}),d}function wv(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:wp(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&In(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c})}function wp(e){if(e)return e.options.allowProjection!==!1?e.projection:wp(e.parent)}function bo(e,{forwardMotionProps:t=!1}={},n,r){n&&Gx(n);const i=Pu(e)?mv:pv;function s(a,l){let c;const d={...S.useContext(ku),...a,layoutId:kv(a)},{isStatic:h}=d,f=qx(a),y=i(a,h);if(!h&&Jl){Sv();const x=jv(d);c=x.MeasureLayout,f.visualElement=vv(e,y,d,r,x.ProjectionNode)}return u.jsxs(Gs.Provider,{value:f,children:[c&&f.visualElement?u.jsx(c,{visualElement:f.visualElement,...d}):null,dv(e,a,yv(y,f.visualElement,l),y,h,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=S.forwardRef(s);return o[gv]=e,o}function kv({layoutId:e}){const t=S.useContext(Zl).id;return t&&e!==void 0?t+"-"+e:e}function Sv(e,t){S.useContext(lp).strict}function jv(e){const{drag:t,layout:n}=tr;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Cv(e,t){if(typeof Proxy>"u")return bo;const n=new Map,r=(s,o)=>bo(s,o,e,t),i=(s,o)=>r(s,o);return new Proxy(i,{get:(s,o)=>o==="create"?r:(n.has(o)||n.set(o,bo(o,void 0,e,t)),n.get(o))})}function kp({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Tv({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Pv(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 Mo(e){return e===void 0||e===1}function Ka({scale:e,scaleX:t,scaleY:n}){return!Mo(e)||!Mo(t)||!Mo(n)}function nn(e){return Ka(e)||Sp(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Sp(e){return pd(e.x)||pd(e.y)}function pd(e){return e&&e!=="0%"}function Es(e,t,n){const r=e-n,i=t*r;return n+i}function md(e,t,n,r,i){return i!==void 0&&(e=Es(e,i,r)),Es(e,n,r)+t}function Ga(e,t=0,n=1,r,i){e.min=md(e.min,t,n,r,i),e.max=md(e.max,t,n,r,i)}function jp(e,{x:t,y:n}){Ga(e.x,t.translate,t.scale,t.originPoint),Ga(e.y,n.translate,n.scale,n.originPoint)}const gd=.999999999999,yd=1.0000000000001;function Nv(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;agd&&(t.x=1),t.ygd&&(t.y=1)}function _n(e,t){e.min=e.min+t,e.max=e.max+t}function xd(e,t,n,r,i=.5){const s=q(e.min,e.max,i);Ga(e,t,n,s,r)}function Fn(e,t){xd(e.x,t.x,t.scaleX,t.scale,t.originX),xd(e.y,t.y,t.scaleY,t.scale,t.originY)}function Cp(e,t){return kp(Pv(e.getBoundingClientRect(),t))}function Ev(e,t,n){const r=Cp(e,n),{scroll:i}=t;return i&&(_n(r.x,i.offset.x),_n(r.y,i.offset.y)),r}const vd=()=>({translate:0,scale:1,origin:0,originPoint:0}),On=()=>({x:vd(),y:vd()}),wd=()=>({min:0,max:0}),le=()=>({x:wd(),y:wd()}),Ya={current:null},Tp={current:!1};function bv(){if(Tp.current=!0,!!Jl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ya.current=e.matches;e.addEventListener("change",t),t()}else Ya.current=!1}const Mv=new WeakMap;function Dv(e,t,n){for(const r in t){const i=t[r],s=n[r];if(Se(i))e.addValue(r,i);else if(Se(s))e.addValue(r,er(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,er(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const kd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Lv{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=gu,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 f=De.now();this.renderScheduledAtthis.bindToMotionValue(i,r)),Tp.current||bv(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ya.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Kt(this.notifyUpdate),Kt(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ar.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&X.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in tr){const n=tr[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):le()}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=er(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(y0(r)||v0(r))?r=parseFloat(r):!Bx(r)&&Gt.test(n)&&(r=ep(t,n)),this.setBaseTarget(t,Se(r)?r.get():r)),Se(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Nu(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Se(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new iu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){vu.render(this.render)}}class Pp extends Lv{constructor(){super(...arguments),this.KeyframeResolver=Ex}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;Se(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Np(e,{style:t,vars:n},r,i){const s=e.style;let o;for(o in t)s[o]=t[o];i==null||i.applyProjectionStyles(s,r);for(o in n)s.setProperty(o,n[o])}function Av(e){return window.getComputedStyle(e)}class Rv extends Pp{constructor(){super(...arguments),this.type="html",this.renderInstance=Np}readValueFromInstance(t,n){var r;if(ar.has(n))return(r=this.projection)!=null&&r.isProjecting?Fa(n):Gy(t,n);{const i=Av(t),s=(au(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Cp(t,n)}build(t,n,r){Cu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Eu(t,n,r)}}const Ep=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 Vv(e,t,n,r){Np(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Ep.has(i)?i:bu(i),t.attrs[i])}class Iv extends Pp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=le}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ar.has(n)){const r=J0(n);return r&&r.default||0}return n=Ep.has(n)?n:bu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return yp(t,n,r)}build(t,n,r){hp(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Vv(t,n,r,i)}mount(t){this.isSVGTag=mp(t.tagName),super.mount(t)}}const _v=(e,t)=>Pu(e)?new Iv(t):new Rv(t,{allowProjection:e!==S.Fragment});function Kn(e,t,n){const r=e.getProps();return Nu(r,t,n!==void 0?n:r.custom,e)}const Qa=e=>Array.isArray(e);function Fv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,er(n))}function Ov(e){return Qa(e)?e[e.length-1]||0:e}function Bv(e,t){const n=Kn(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=Ov(s[o]);Fv(e,o,a)}}function zv(e){return!!(Se(e)&&e.add)}function Xa(e,t){const n=e.getValue("willChange");if(zv(n))return n.add(t);if(!n&&Pt.WillChange){const r=new Pt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function bp(e){return e.props[xp]}const Uv=e=>e!==null;function $v(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Uv),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[s]}const Wv={type:"spring",stiffness:500,damping:25,restSpeed:10},Hv=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Kv={type:"keyframes",duration:.8},Gv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Yv=(e,{keyframes:t})=>t.length>2?Kv:ar.has(e)?e.startsWith("scale")?Hv(t[1]):Wv:Gv;function Qv({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length}const Mu=(e,t,n,r={},i,s)=>o=>{const a=yu(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-ft(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};Qv(a)||Object.assign(d,Yv(e,d)),d.duration&&(d.duration=ft(d.duration)),d.repeatDelay&&(d.repeatDelay=ft(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&($a(d),d.delay===0&&(h=!0)),(Pt.instantAnimations||Pt.skipAnimations)&&(h=!0,$a(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,h&&!s&&t.get()!==void 0){const f=$v(d.keyframes,a);if(f!==void 0){X.update(()=>{d.onUpdate(f),d.onComplete()});return}}return a.isSync?new mu(d):new gx(d)};function Xv({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Mp(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in a){const h=e.getValue(d,e.latestValues[d]??null),f=a[d];if(f===void 0||c&&Xv(c,d))continue;const y={delay:n,...yu(s||{},d)},x=h.get();if(x!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===x&&!y.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const m=bp(e);if(m){const p=window.MotionHandoffAnimation(m,d,X);p!==null&&(y.startTime=p,v=!0)}}Xa(e,d),h.start(Mu(d,h,f,e.shouldReduceMotion&&X0.has(d)?{type:!1}:y,e,v));const j=h.animation;j&&l.push(j)}return o&&Promise.all(l).then(()=>{X.update(()=>{o&&Bv(e,o)})}),l}function Dp(e,t,n,r=0,i=1){const s=Array.from(e).sort((c,d)=>c.sortNodePosition(d)).indexOf(t),o=e.size,a=(o-1)*r;return typeof n=="function"?n(s,o):i===1?s*r:a-s*r}function Za(e,t,n={}){var l;const r=Kn(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(Mp(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:f}=i;return Zv(e,t,c,d,h,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,d]=a==="beforeChildren"?[s,o]:[o,s];return c().then(()=>d())}else return Promise.all([s(),o(n.delay)])}function Zv(e,t,n=0,r=0,i=0,s=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Za(l,t,{...o,delay:n+(typeof r=="function"?0:r)+Dp(e.variantChildren,l,r,i,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function qv(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Za(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Za(e,t,n);else{const i=typeof t=="function"?Kn(e,t,n.custom):t;r=Promise.all(Mp(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Lp(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>qv(e,n,r)))}function r2(e){let t=n2(e),n=Sd(),r=!0;const i=l=>(c,d)=>{var f;const h=Kn(e,d,l==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(h){const{transition:y,transitionEnd:x,...v}=h;c={...c,...v,...x}}return c};function s(l){t=l(e)}function o(l){const{props:c}=e,d=Ap(e.parent)||{},h=[],f=new Set;let y={},x=1/0;for(let j=0;jx&&w,E=!1;const D=Array.isArray(g)?g:[g];let $=D.reduce(i(m),{});k===!1&&($={});const{prevResolvedValues:de={}}=p,ze={...de,...$},W=H=>{T=!0,f.has(H)&&(E=!0,f.delete(H)),p.needsAnimating[H]=!0;const b=e.getValue(H);b&&(b.liveStyle=!1)};for(const H in ze){const b=$[H],L=de[H];if(y.hasOwnProperty(H))continue;let R=!1;Qa(b)&&Qa(L)?R=!Lp(b,L):R=b!==L,R?b!=null?W(H):f.add(H):b!==void 0&&f.has(H)?W(H):p.protectedKeys[H]=!0}p.prevProp=g,p.prevResolvedValues=$,p.isActive&&(y={...y,...$}),r&&e.blockInitialAnimation&&(T=!1);const ae=C&&P;T&&(!ae||E)&&h.push(...D.map(H=>{const b={type:m};if(typeof H=="string"&&r&&!ae&&e.manuallyAnimateOnMount&&e.parent){const{parent:L}=e,R=Kn(L,H);if(L.enteringChildren&&R){const{delayChildren:I}=R.transition||{};b.delay=Dp(L.enteringChildren,e,I)}}return{animation:H,options:b}}))}if(f.size){const j={};if(typeof c.initial!="boolean"){const m=Kn(e,Array.isArray(c.initial)?c.initial[0]:c.initial);m&&m.transition&&(j.transition=m.transition)}f.forEach(m=>{const p=e.getBaseTarget(m),g=e.getValue(m);g&&(g.liveStyle=!0),j[m]=p??null}),h.push({animation:j})}let v=!!h.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(h):Promise.resolve()}function a(l,c){var h;if(n[l].isActive===c)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(f=>{var y;return(y=f.animationState)==null?void 0:y.setActive(l,c)}),n[l].isActive=c;const d=o(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Sd()}}}function i2(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Lp(t,e):!1}function Jt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Sd(){return{animate:Jt(!0),whileInView:Jt(),whileHover:Jt(),whileTap:Jt(),whileDrag:Jt(),whileFocus:Jt(),exit:Jt()}}class Zt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class s2 extends Zt{constructor(t){super(t),t.animationState||(t.animationState=r2(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ys(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.call(this)}}let o2=0;class a2 extends Zt{constructor(){super(...arguments),this.id=o2++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const l2={animation:{Feature:s2},exit:{Feature:a2}};function oi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function mi(e){return{point:{x:e.pageX,y:e.pageY}}}const u2=e=>t=>wu(t)&&e(t,mi(t));function Ir(e,t,n,r){return oi(e,t,u2(n),r)}const Rp=1e-4,c2=1-Rp,d2=1+Rp,Vp=.01,f2=0-Vp,h2=0+Vp;function Te(e){return e.max-e.min}function p2(e,t,n){return Math.abs(e-t)<=n}function jd(e,t,n,r=.5){e.origin=r,e.originPoint=q(t.min,t.max,e.origin),e.scale=Te(n)/Te(t),e.translate=q(n.min,n.max,e.origin)-e.originPoint,(e.scale>=c2&&e.scale<=d2||isNaN(e.scale))&&(e.scale=1),(e.translate>=f2&&e.translate<=h2||isNaN(e.translate))&&(e.translate=0)}function _r(e,t,n,r){jd(e.x,t.x,n.x,r?r.originX:void 0),jd(e.y,t.y,n.y,r?r.originY:void 0)}function Cd(e,t,n){e.min=n.min+t.min,e.max=e.min+Te(t)}function m2(e,t,n){Cd(e.x,t.x,n.x),Cd(e.y,t.y,n.y)}function Td(e,t,n){e.min=t.min-n.min,e.max=e.min+Te(t)}function bs(e,t,n){Td(e.x,t.x,n.x),Td(e.y,t.y,n.y)}function Ue(e){return[e("x"),e("y")]}const Ip=({current:e})=>e?e.ownerDocument.defaultView:null,Pd=(e,t)=>Math.abs(e-t);function g2(e,t){const n=Pd(e.x,t.x),r=Pd(e.y,t.y);return Math.sqrt(n**2+r**2)}class _p{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Lo(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,x=g2(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!x)return;const{point:v}=f,{timestamp:j}=me;this.history.push({...v,timestamp:j});const{onStart:m,onMove:p}=this.handlers;y||(m&&m(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,f)},this.handlePointerMove=(f,y)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Do(y,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(f,y)=>{this.end();const{onEnd:x,onSessionEnd:v,resumeAnimation:j}=this.handlers;if(this.dragSnapToOrigin&&j&&j(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=Lo(f.type==="pointercancel"?this.lastMoveEventInfo:Do(y,this.transformPagePoint),this.history);this.startEvent&&x&&x(f,m),v&&v(f,m)},!wu(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=i||window;const a=mi(t),l=Do(a,this.transformPagePoint),{point:c}=l,{timestamp:d}=me;this.history=[{...c,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,Lo(l,this.history)),this.removeListeners=fi(Ir(this.contextWindow,"pointermove",this.handlePointerMove),Ir(this.contextWindow,"pointerup",this.handlePointerUp),Ir(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Kt(this.updatePoint)}}function Do(e,t){return t?{point:t(e.point)}:e}function Nd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Lo({point:e},t){return{point:e,delta:Nd(e,Fp(t)),offset:Nd(e,y2(t)),velocity:x2(t,.1)}}function y2(e){return e[0]}function Fp(e){return e[e.length-1]}function x2(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Fp(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ft(t)));)n--;if(!r)return{x:0,y:0};const s=Ke(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function v2(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?q(n,e,r.max):Math.min(e,n)),e}function Ed(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 w2(e,{top:t,left:n,bottom:r,right:i}){return{x:Ed(e.x,n,i),y:Ed(e.y,t,r)}}function bd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ti(t.min,t.max-r,e.min):r>i&&(n=ti(e.min,e.max-i,t.min)),Tt(0,1,n)}function j2(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 qa=.35;function C2(e=qa){return e===!1?e=0:e===!0&&(e=qa),{x:Md(e,"left","right"),y:Md(e,"top","bottom")}}function Md(e,t,n){return{min:Dd(e,t),max:Dd(e,n)}}function Dd(e,t){return typeof e=="number"?e:e[t]||0}const T2=new WeakMap;class P2{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=le(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=h=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(mi(h).point)},o=(h,f)=>{const{drag:y,dragPropagation:x,onDragStart:v}=this.getProps();if(y&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Lx(y),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ue(m=>{let p=this.getAxisMotionValue(m).get()||0;if(ht.test(p)){const{projection:g}=this.visualElement;if(g&&g.layout){const w=g.layout.layoutBox[m];w&&(p=Te(w)*(parseFloat(p)/100))}}this.originPoint[m]=p}),v&&X.postRender(()=>v(h,f)),Xa(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:y,dragDirectionLock:x,onDirectionLock:v,onDrag:j}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:m}=f;if(x&&this.currentDirection===null){this.currentDirection=N2(m),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",f.point,m),this.updateAxis("y",f.point,m),this.visualElement.render(),j&&j(h,f)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>Ue(h=>{var f;return this.getAnimationState(h)==="paused"&&((f=this.getAxisMotionValue(h).animation)==null?void 0:f.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new _p(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:Ip(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&X.postRender(()=>a(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ii(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=v2(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&In(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=w2(r.layoutBox,t):this.constraints=!1,this.elastic=C2(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ue(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=j2(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!In(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=Ev(r,i.root,this.visualElement.getTransformPagePoint());let o=k2(i.layout.layoutBox,s);if(n){const a=n(Tv(o));this.hasMutatedConstraints=!!a,a&&(o=kp(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Ue(d=>{if(!Ii(d,n,this.currentDirection))return;let h=l&&l[d]||{};o&&(h={min:0,max:0});const f=i?200:1e6,y=i?40:1e7,x={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...s,...h};return this.startAxisValueAnimation(d,x)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Xa(this.visualElement,t),r.start(Mu(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ue(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ue(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?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){Ue(n=>{const{drag:r}=this.getProps();if(!Ii(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-q(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!In(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ue(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=S2({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ue(o=>{if(!Ii(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(q(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;T2.set(this.visualElement,this);const t=this.visualElement.current,n=Ir(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();In(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),X.read(r);const o=oi(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Ue(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=l[d].translate,h.set(h.get()+l[d].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=qa,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Ii(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function N2(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class E2 extends Zt{constructor(t){super(t),this.removeGroupControls=Ye,this.removeListeners=Ye,this.controls=new P2(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ye}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ld=e=>(t,n)=>{e&&X.postRender(()=>e(t,n))};class b2 extends Zt{constructor(){super(...arguments),this.removePointerDownListener=Ye}onPointerDown(t){this.session=new _p(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ip(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ld(t),onStart:Ld(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&X.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Ir(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 qi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ad(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const yr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=Ad(e,t.target.x),r=Ad(e,t.target.y);return`${n}% ${r}%`}},M2={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Gt.parse(e);if(i.length>5)return r;const s=Gt.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const c=q(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),s(i)}};let Ao=!1;class D2 extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;Jx(L2),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),Ao&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),qi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:o}=r;return o&&(o.isPresent=s,Ao=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||X.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),vu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;Ao=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Op(e){const[t,n]=ap(),r=S.useContext(Zl);return u.jsx(D2,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(vp),isPresent:t,safeToRemove:n})}const L2={borderRadius:{...yr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:yr,borderTopRightRadius:yr,borderBottomLeftRadius:yr,borderBottomRightRadius:yr,boxShadow:M2};function A2(e,t,n){const r=Se(e)?e:er(e);return r.start(Mu("",r,t,n)),r.animation}const R2=(e,t)=>e.depth-t.depth;class V2{constructor(){this.children=[],this.isDirty=!1}add(t){eu(this.children,t),this.isDirty=!0}remove(t){tu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(R2),this.isDirty=!1,this.children.forEach(t)}}function I2(e,t){const n=De.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Kt(r),e(s-t))};return X.setup(r,!0),()=>Kt(r)}const Bp=["TopLeft","TopRight","BottomLeft","BottomRight"],_2=Bp.length,Rd=e=>typeof e=="string"?parseFloat(e):e,Vd=e=>typeof e=="number"||V.test(e);function F2(e,t,n,r,i,s){i?(e.opacity=q(0,n.opacity??1,O2(r)),e.opacityExit=q(t.opacity??1,0,B2(r))):s&&(e.opacity=q(t.opacity??1,n.opacity??1,r));for(let o=0;o<_2;o++){const a=`border${Bp[o]}Radius`;let l=Id(t,a),c=Id(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Vd(l)===Vd(c)?(e[a]=Math.max(q(Rd(l),Rd(c),r),0),(ht.test(c)||ht.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=q(t.rotate||0,n.rotate||0,r))}function Id(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const O2=zp(0,.5,N0),B2=zp(.5,.95,Ye);function zp(e,t,n){return r=>rt?1:n(ti(e,t,r))}function _d(e,t){e.min=t.min,e.max=t.max}function qe(e,t){_d(e.x,t.x),_d(e.y,t.y)}function Fd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Od(e,t,n,r,i){return e-=t,e=Es(e,1/n,r),i!==void 0&&(e=Es(e,1/i,r)),e}function z2(e,t=0,n=1,r=.5,i,s=e,o=e){if(ht.test(t)&&(t=parseFloat(t),t=q(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=q(s.min,s.max,r);e===s&&(a-=t),e.min=Od(e.min,t,n,a,i),e.max=Od(e.max,t,n,a,i)}function Bd(e,t,[n,r,i],s,o){z2(e,t[n],t[r],t[i],t.scale,s,o)}const U2=["x","scaleX","originX"],$2=["y","scaleY","originY"];function zd(e,t,n,r){Bd(e.x,t,U2,n?n.x:void 0,r?r.x:void 0),Bd(e.y,t,$2,n?n.y:void 0,r?r.y:void 0)}function Ud(e){return e.translate===0&&e.scale===1}function Up(e){return Ud(e.x)&&Ud(e.y)}function $d(e,t){return e.min===t.min&&e.max===t.max}function W2(e,t){return $d(e.x,t.x)&&$d(e.y,t.y)}function Wd(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function $p(e,t){return Wd(e.x,t.x)&&Wd(e.y,t.y)}function Hd(e){return Te(e.x)/Te(e.y)}function Kd(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class H2{constructor(){this.members=[]}add(t){eu(this.members,t),t.scheduleRender()}remove(t){if(tu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function K2(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,rotateX:h,rotateY:f,skewX:y,skewY:x}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),f&&(r+=`rotateY(${f}deg) `),y&&(r+=`skewX(${y}deg) `),x&&(r+=`skewY(${x}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Ro=["","X","Y","Z"],G2=1e3;let Y2=0;function Vo(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Wp(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=bp(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",X,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Wp(r)}function Hp({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=Y2++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Z2),this.nodes.forEach(t3),this.nodes.forEach(n3),this.nodes.forEach(q2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;X.read(()=>{h=window.innerWidth}),e(o,()=>{const y=window.innerWidth;y!==h&&(h=y,this.root.updateBlockedByResize=!0,d&&d(),d=I2(f,250),qi.hasAnimatedSinceResize&&(qi.hasAnimatedSinceResize=!1,this.nodes.forEach(Qd)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||c.getDefaultTransition()||a3,{onLayoutAnimationStart:v,onLayoutAnimationComplete:j}=c.getProps(),m=!this.targetLayout||!$p(this.targetLayout,y),p=!h&&f;if(this.options.layoutRoot||this.resumeFrom||p||h&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const g={...yu(x,"layout"),onPlay:v,onComplete:j};(c.shouldReduceMotion||this.options.layoutRoot)&&(g.delay=0,g.type=!1),this.startAnimation(g),this.setAnimationOrigin(d,p)}else h||Qd(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Kt(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(r3),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Wp(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(),this.snapshot&&!Te(this.snapshot.measuredBox.x)&&!Te(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const k=w/1e3;Xd(h.x,o.x,k),Xd(h.y,o.y,k),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bs(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),s3(this.relativeTarget,this.relativeTargetOrigin,f,k),g&&W2(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=le()),qe(g,this.relativeTarget)),v&&(this.animationValues=d,F2(d,c,this.latestValues,k,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(Kt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{qi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=er(0)),this.currentAnimation=A2(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),o.onUpdate&&o.onUpdate(d)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(G2),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:d}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Kp(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||le();const h=Te(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const f=Te(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}qe(a,l),Fn(a,d),_r(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new H2),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Vo("z",o,c,this.animationValues);for(let d=0;d{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Gd),this.root.sharedNodes.clear()}}}function Q2(e){e.updateLayout()}function X2(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;s==="size"?Ue(h=>{const f=o?t.measuredBox[h]:t.layoutBox[h],y=Te(f);f.min=r[h].min,f.max=f.min+y}):Kp(s,t.layoutBox,r)&&Ue(h=>{const f=o?t.measuredBox[h]:t.layoutBox[h],y=Te(r[h]);f.max=f.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+y)});const a=On();_r(a,r,t.layoutBox);const l=On();o?_r(l,e.applyTransform(i,!0),t.measuredBox):_r(l,r,t.layoutBox);const c=!Up(a);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:y}=h;if(f&&y){const x=le();bs(x,t.layoutBox,f.layoutBox);const v=le();bs(v,r,y.layoutBox),$p(x,v)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=x,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Z2(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function q2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function J2(e){e.clearSnapshot()}function Gd(e){e.clearMeasurements()}function Yd(e){e.isLayoutDirty=!1}function e3(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Qd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function t3(e){e.resolveTargetDelta()}function n3(e){e.calcProjection()}function r3(e){e.resetSkewAndRotation()}function i3(e){e.removeLeadSnapshot()}function Xd(e,t,n){e.translate=q(t.translate,0,n),e.scale=q(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Zd(e,t,n,r){e.min=q(t.min,n.min,r),e.max=q(t.max,n.max,r)}function s3(e,t,n,r){Zd(e.x,t.x,n.x,r),Zd(e.y,t.y,n.y,r)}function o3(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const a3={duration:.45,ease:[.4,0,.1,1]},qd=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Jd=qd("applewebkit/")&&!qd("chrome/")?Math.round:Ye;function ef(e){e.min=Jd(e.min),e.max=Jd(e.max)}function l3(e){ef(e.x),ef(e.y)}function Kp(e,t,n){return e==="position"||e==="preserve-aspect"&&!p2(Hd(t),Hd(n),.2)}function u3(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const c3=Hp({attachResizeListener:(e,t)=>oi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Io={current:void 0},Gp=Hp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Io.current){const e=new c3({});e.mount(window),e.setOptions({layoutScroll:!0}),Io.current=e}return Io.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),d3={pan:{Feature:b2},drag:{Feature:E2,ProjectionNode:Gp,MeasureLayout:Op}};function tf(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&X.postRender(()=>s(t,mi(t)))}class f3 extends Zt{mount(){const{current:t}=this.node;t&&(this.unmount=Ax(t,(n,r)=>(tf(this.node,r,"Start"),i=>tf(this.node,i,"End"))))}unmount(){}}class h3 extends Zt{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=fi(oi(this.node.current,"focus",()=>this.onFocus()),oi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function nf(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&X.postRender(()=>s(t,mi(t)))}class p3 extends Zt{mount(){const{current:t}=this.node;t&&(this.unmount=_x(t,(n,r)=>(nf(this.node,r,"Start"),(i,{success:s})=>nf(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ja=new WeakMap,_o=new WeakMap,m3=e=>{const t=Ja.get(e.target);t&&t(e)},g3=e=>{e.forEach(m3)};function y3({root:e,...t}){const n=e||document;_o.has(n)||_o.set(n,{});const r=_o.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(g3,{root:e,...t})),r[i]}function x3(e,t,n){const r=y3(t);return Ja.set(e,n),r.observe(e),()=>{Ja.delete(e),r.unobserve(e)}}const v3={some:0,all:1};class w3 extends Zt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:v3[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),f=c?d:h;f&&f(l)};return x3(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(k3(t,n))&&this.startObserver()}unmount(){}}function k3({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const S3={inView:{Feature:w3},tap:{Feature:p3},focus:{Feature:h3},hover:{Feature:f3}},j3={layout:{ProjectionNode:Gp,MeasureLayout:Op}},C3={...l2,...S3,...d3,...j3},z=Cv(C3,_v),ot="/api";async function Du(){return(await fetch(`${ot}/state`)).json()}async function el(){return(await fetch(`${ot}/dependencies/check`)).json()}async function tl(){return(await fetch(`${ot}/docker/status`)).json()}function Ji(e){let t=null,n=!1;const r=()=>{n||(t=new EventSource(`${ot}/docker/status/stream`),t.onmessage=i=>{try{const s=JSON.parse(i.data);e(s)}catch(s){console.error("Failed to parse docker status:",s)}},t.onerror=()=>{t==null||t.close(),n||setTimeout(r,1e3)})};return r(),()=>{n=!0,t==null||t.close()}}async function Yp(){return(await fetch(`${ot}/docker/build`,{method:"POST"})).json()}async function Cr(){return(await fetch(`${ot}/defaults`)).json()}async function nl(e){return(await fetch(`${ot}/defaults`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async function Qp(){return(await fetch(`${ot}/signing/status`)).json()}async function Xp(){return(await fetch(`${ot}/signing`)).json()}async function Zp(e){return(await fetch(`${ot}/signing`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async function T3(e){return(await fetch(`${ot}/report-bug?step=${encodeURIComponent(e)}`)).json()}const P3=Object.freeze(Object.defineProperty({__proto__:null,buildDockerImage:Yp,checkDependencies:el,getDefaults:Cr,getDockerStatus:tl,getSigning:Xp,getSigningStatus:Qp,getState:Du,reportBug:T3,saveDefaults:nl,saveSigning:Zp,subscribeDockerStatus:Ji},Symbol.toStringTag,{value:"Module"})),qp="/assets/wails-logo-white-text-B284k7fX.svg",Jp="/assets/wails-logo-black-text-Cx-vsZ4W.svg",N3={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};function E3({onNext:e,onSkip:t,onBack:n,canGoBack:r}){const[i,s]=S.useState(null),[o,a]=S.useState(null),[l,c]=S.useState(!0),[d,h]=S.useState("linux"),[f,y]=S.useState("darwin"),[x,v]=S.useState(!1),[j,m]=S.useState(!1),p=S.useRef(null);S.useEffect(()=>{var E;(E=p.current)==null||E.focus(),g()},[]);const g=async()=>{var E;try{const[D,$,de]=await Promise.all([Qp(),Xp(),Du()]);s(D),a($||{darwin:{},windows:{},linux:{}}),(E=de.system)!=null&&E.os&&h(de.system.os)}catch(D){console.error("Failed to load signing data:",D)}finally{c(!1)}},w=async()=>{if(o){m(!0);try{await Zp(o),await g(),v(!1)}catch(E){console.error("Failed to save signing config:",E)}finally{m(!1)}}},k=()=>{var E,D,$,de,ze,W,ae,ie,H,b,L,R;if(!o)return null;if(f==="darwin"){const I=d==="darwin";return u.jsxs("div",{className:"space-y-4",children:[!I&&u.jsxs("div",{className:"p-3 rounded-lg bg-amber-50 dark:bg-amber-900/20 border border-amber-200 dark:border-amber-800 text-sm",children:[u.jsx("p",{className:"text-amber-800 dark:text-amber-200 font-medium mb-1",children:"Cross-platform signing"}),u.jsxs("p",{className:"text-amber-700 dark:text-amber-300 text-xs",children:["You can sign macOS apps from ",d==="linux"?"Linux":"Windows"," using"," ",u.jsx("a",{href:"https://github.com/indygreg/apple-platform-rs/tree/main/apple-codesign",target:"_blank",rel:"noopener noreferrer",className:"underline hover:no-underline",children:"rcodesign"}),". You'll need a .p12 certificate file exported from a Mac."]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Signing Identity"}),u.jsx("input",{type:"text",value:((E=o.darwin)==null?void 0:E.identity)||"",onChange:O=>a({...o,darwin:{...o.darwin,identity:O.target.value}}),placeholder:"Developer ID Application: Your Name (TEAMID)",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"}),I&&u.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:["Find with: ",u.jsx("code",{className:"bg-gray-100 dark:bg-gray-800 px-1 rounded",children:"security find-identity -v -p codesigning"})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Team ID"}),u.jsx("input",{type:"text",value:((D=o.darwin)==null?void 0:D.teamID)||"",onChange:O=>a({...o,darwin:{...o.darwin,teamID:O.target.value}}),placeholder:"ABCD1234EF",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"})]}),!I&&u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"P12 Certificate Path"}),u.jsx("input",{type:"text",value:(($=o.darwin)==null?void 0:$.p12Path)||"",onChange:O=>a({...o,darwin:{...o.darwin,p12Path:O.target.value}}),placeholder:"/path/to/certificate.p12",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"}),u.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:"Export from Keychain Access on a Mac, or generate via Apple Developer Portal"})]}),u.jsxs("div",{children:[u.jsxs("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:["Notarization Profile ",!I&&"(Mac only)"]}),u.jsx("input",{type:"text",value:((de=o.darwin)==null?void 0:de.keychainProfile)||"",onChange:O=>a({...o,darwin:{...o.darwin,keychainProfile:O.target.value}}),placeholder:"notarytool-profile",disabled:!I,className:`w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500 ${I?"":"opacity-50 cursor-not-allowed"}`}),I&&u.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:["Create with: ",u.jsx("code",{className:"bg-gray-100 dark:bg-gray-800 px-1 rounded",children:"xcrun notarytool store-credentials"})]}),!I&&u.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:"For cross-platform notarization, use App Store Connect API keys instead"})]}),!I&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"border-t border-gray-200 dark:border-gray-700 pt-4 mt-4",children:u.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400 mb-3 font-medium",children:["App Store Connect API (for notarization from ",d==="linux"?"Linux":"Windows",")"]})}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"API Key ID"}),u.jsx("input",{type:"text",value:((ze=o.darwin)==null?void 0:ze.apiKeyID)||"",onChange:O=>a({...o,darwin:{...o.darwin,apiKeyID:O.target.value}}),placeholder:"ABC123DEF4",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Issuer ID"}),u.jsx("input",{type:"text",value:((W=o.darwin)==null?void 0:W.apiIssuerID)||"",onChange:O=>a({...o,darwin:{...o.darwin,apiIssuerID:O.target.value}}),placeholder:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"API Key Path (.p8 file)"}),u.jsx("input",{type:"text",value:((ae=o.darwin)==null?void 0:ae.apiKeyPath)||"",onChange:O=>a({...o,darwin:{...o.darwin,apiKeyPath:O.target.value}}),placeholder:"/path/to/AuthKey_ABC123DEF4.p8",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"}),u.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:["Create at"," ",u.jsx("a",{href:"https://appstoreconnect.apple.com/access/api",target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 hover:underline",children:"App Store Connect → Users and Access → Keys"})]})]})]})]})}return f==="windows"?u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Certificate Path (PFX/P12)"}),u.jsx("input",{type:"text",value:((ie=o.windows)==null?void 0:ie.certificatePath)||"",onChange:I=>a({...o,windows:{...o.windows,certificatePath:I.target.value}}),placeholder:"/path/to/certificate.pfx",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"})]}),u.jsx("div",{className:"text-center text-xs text-gray-500 dark:text-gray-400",children:"— or —"}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Certificate Thumbprint (Windows Store)"}),u.jsx("input",{type:"text",value:((H=o.windows)==null?void 0:H.thumbprint)||"",onChange:I=>a({...o,windows:{...o.windows,thumbprint:I.target.value}}),placeholder:"ABC123DEF456...",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Timestamp Server"}),u.jsx("input",{type:"text",value:((b=o.windows)==null?void 0:b.timestampServer)||"http://timestamp.digicert.com",onChange:I=>a({...o,windows:{...o.windows,timestampServer:I.target.value}}),className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"})]})]}):f==="linux"?u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"GPG Key ID"}),u.jsx("input",{type:"text",value:((L=o.linux)==null?void 0:L.gpgKeyID)||"",onChange:I=>a({...o,linux:{...o.linux,gpgKeyID:I.target.value}}),placeholder:"ABCD1234EFGH5678",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"}),u.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:["Find with: ",u.jsx("code",{className:"bg-gray-100 dark:bg-gray-800 px-1 rounded",children:"gpg --list-secret-keys --keyid-format long"})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"GPG Key Path (optional)"}),u.jsx("input",{type:"text",value:((R=o.linux)==null?void 0:R.gpgKeyPath)||"",onChange:I=>a({...o,linux:{...o.linux,gpgKeyPath:I.target.value}}),placeholder:"~/.gnupg/private-key.asc",className:"w-full px-3 py-2 rounded-lg border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-sm focus:outline-none focus:ring-2 focus:ring-red-500"})]})]}):null},C=()=>{if(!i)return null;if(f==="darwin"){const E=i.darwin;return u.jsxs("div",{className:"space-y-4",children:[u.jsx(xr,{label:"Code Signing Identity",configured:E.hasIdentity,value:E.hasIdentity?E.identity||"Configured":"Not configured",source:E.configSource}),u.jsx(xr,{label:"Notarization",configured:E.hasNotarization,value:E.hasNotarization?`Team ID: ${E.teamID||"Configured"}`:"Not configured"}),E.identities&&E.identities.length>1&&u.jsxs("div",{className:"text-xs text-gray-500 dark:text-gray-400 p-3 rounded-lg bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800",children:[u.jsxs("span",{className:"font-medium",children:[E.identities.length," signing identities"]})," found in keychain"]})]})}if(f==="windows"){const E=i.windows;return u.jsxs("div",{className:"space-y-4",children:[u.jsx(xr,{label:"Code Signing Certificate",configured:E.hasCertificate,value:E.hasCertificate?`Type: ${E.certificateType}`:"Not configured",source:E.configSource}),u.jsx(xr,{label:"SignTool",configured:E.hasSignTool,value:E.hasSignTool?"Available":"Not found (Windows SDK required)"}),E.timestampServer&&u.jsxs("div",{className:"text-xs text-gray-500 dark:text-gray-400 p-3 rounded-lg bg-gray-50 dark:bg-gray-800/50",children:["Timestamp server: ",u.jsx("code",{className:"font-mono",children:E.timestampServer})]})]})}if(f==="linux"){const E=i.linux;return u.jsx("div",{className:"space-y-4",children:u.jsx(xr,{label:"GPG Signing Key",configured:E.hasGpgKey,value:E.hasGpgKey?`Key ID: ${E.gpgKeyID}`:"Not configured",source:E.configSource})})}return null},T=(()=>{if(!i)return{configured:0,total:3};let E=0;return i.darwin.hasIdentity&&E++,i.windows.hasCertificate&&E++,i.linux.hasGpgKey&&E++,{configured:E,total:3}})();return u.jsxs(z.main,{variants:N3,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col","aria-labelledby":"signing-title",children:[u.jsxs("header",{className:"text-center mb-6 flex-shrink-0 px-10 pt-10",children:[u.jsx("h1",{ref:p,id:"signing-title",className:"text-2xl font-semibold text-gray-900 dark:text-white mb-1.5 tracking-tight focus:outline-none",tabIndex:-1,children:"Code Signing"}),u.jsx("p",{className:"text-base text-gray-500 dark:text-gray-400",children:T.configured>0?`${T.configured} of ${T.total} platforms configured`:"Sign your apps for distribution"})]}),u.jsx("div",{className:"flex-1 overflow-y-auto scrollbar-thin min-h-0 px-10",children:l?u.jsx("div",{className:"flex items-center justify-center h-48",children:u.jsx(z.div,{className:"w-8 h-8 border-2 border-gray-300 dark:border-gray-600 border-t-red-500 rounded-full",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}})}):u.jsxs("div",{className:"max-w-xl mx-auto",children:[u.jsxs("div",{className:"flex gap-2 mb-6",role:"tablist",children:[u.jsx(Fo,{platform:"darwin",label:"macOS",isActive:f==="darwin",hasConfig:i==null?void 0:i.darwin.hasIdentity,onClick:()=>{y("darwin"),v(!1)}}),u.jsx(Fo,{platform:"windows",label:"Windows",isActive:f==="windows",hasConfig:i==null?void 0:i.windows.hasCertificate,onClick:()=>{y("windows"),v(!1)}}),u.jsx(Fo,{platform:"linux",label:"Linux",isActive:f==="linux",hasConfig:i==null?void 0:i.linux.hasGpgKey,onClick:()=>{y("linux"),v(!1)}})]}),u.jsx(Ha,{mode:"wait",children:x?u.jsxs(z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[k(),u.jsxs("div",{className:"flex gap-3 mt-6",children:[u.jsx("button",{onClick:()=>v(!1),className:"flex-1 px-4 py-2 rounded-lg text-sm font-medium border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Cancel"}),u.jsx("button",{onClick:w,disabled:j,className:"flex-1 px-4 py-2 rounded-lg text-sm font-medium bg-red-500 text-white hover:bg-red-600 disabled:opacity-50",children:j?"Saving...":"Save"})]})]},"config"):u.jsxs(z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},role:"tabpanel",children:[C(),u.jsxs("button",{onClick:()=>v(!0),className:"w-full mt-4 px-4 py-2 rounded-lg text-sm font-medium border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors",children:["Configure ",f==="darwin"?"macOS":f==="windows"?"Windows":"Linux"," Signing"]})]},"status")}),u.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-6 text-center",children:"Code signing ensures your app is trusted and hasn't been tampered with"})]})}),u.jsxs("div",{className:"flex-shrink-0 pt-4 pb-6 flex flex-col items-center gap-1.5",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[r&&n&&u.jsx("button",{onClick:n,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Back"}),u.jsx("button",{onClick:e,className:"px-5 py-2 rounded-lg text-sm font-medium transition-colors border border-red-500 text-red-600 dark:text-red-400 hover:bg-red-500/10 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Continue"})]}),u.jsx("button",{onClick:t,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900 rounded",children:"Set up later"})]})]})}function xr({label:e,configured:t,value:n,source:r}){return u.jsxs("div",{className:"flex items-center gap-3 p-4 rounded-lg bg-gray-100 dark:bg-gray-900/50",children:[u.jsx("div",{className:`w-8 h-8 rounded-full flex items-center justify-center ${t?"bg-green-500/20":"bg-gray-200 dark:bg-gray-800"}`,children:t?u.jsx("svg",{className:"w-4 h-4 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})}):u.jsx("svg",{className:"w-4 h-4 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),u.jsxs("div",{className:"flex-1",children:[u.jsx("div",{className:"text-sm font-medium text-gray-900 dark:text-white",children:e}),u.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400",children:n})]}),r&&u.jsx("span",{className:"text-xs px-2 py-1 rounded-full bg-gray-200 dark:bg-gray-800 text-gray-600 dark:text-gray-400",children:r})]})}function Fo({platform:e,label:t,isActive:n,hasConfig:r,onClick:i}){const s=`w-5 h-5 ${n?"text-gray-900 dark:text-white":"text-gray-400 dark:text-gray-500"}`;return u.jsxs("button",{role:"tab","aria-selected":n,onClick:i,className:`flex-1 flex items-center justify-center gap-2 px-4 py-3 rounded-lg text-sm font-medium transition-all ${n?"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white":"text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-800/50"}`,children:[e==="darwin"&&u.jsx("svg",{className:s,viewBox:"0 0 24 24",fill:"currentColor",children:u.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),e==="windows"&&u.jsx("svg",{className:s,viewBox:"0 0 24 24",fill:"currentColor",children:u.jsx("path",{d:"M0 3.449L9.75 2.1v9.451H0m10.949-9.602L24 0v11.4H10.949M0 12.6h9.75v9.451L0 20.699M10.949 12.6H24V24l-12.9-1.801"})}),e==="linux"&&u.jsx("svg",{className:s,viewBox:"0 0 24 24",fill:"currentColor",children:u.jsx("path",{d:"M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.267a.86.86 0 00.153.2c.071.085.178.135.305.178l.056.02a.398.398 0 00-.104.078c-.09.088-.198.2-.318.267-.145.085-.232.135-.39.135a1.04 1.04 0 01-.507-.151c-.106-.067-.199-.135-.285-.202l-.072-.053c-.239-.2-.439-.401-.618-.535a2.494 2.494 0 01-.393-.4c-.078-.1-.143-.199-.2-.298l-.06-.135-.048.066c-.078.133-.127.266-.127.465 0 .2.049.4.127.535.078.133.2.265.35.331.148.068.313.135.47.202.234.1.438.2.59.331.15.135.234.27.234.402 0 .135-.063.265-.198.332-.142.065-.32.102-.578.102-.232 0-.465-.037-.67-.1-.204-.068-.378-.17-.51-.301-.135-.135-.237-.301-.305-.5-.066-.199-.103-.432-.103-.699 0-.265.037-.5.106-.698.068-.2.166-.366.3-.5.135-.135.301-.234.5-.3.2-.067.432-.1.699-.1.266 0 .5.033.699.1.199.066.365.165.5.3.135.134.233.3.3.5.068.198.101.433.101.698 0 .267-.033.5-.1.7-.068.199-.166.365-.301.5-.135.134-.301.233-.5.3-.199.067-.433.1-.699.1-.267 0-.5-.033-.7-.1a1.379 1.379 0 01-.5-.3c-.134-.135-.233-.301-.3-.5-.066-.2-.1-.433-.1-.7 0-.266.034-.5.1-.698.067-.2.166-.366.3-.5.135-.135.301-.234.5-.3.2-.067.433-.1.7-.1z"})}),u.jsx("span",{children:t}),r&&u.jsx("span",{className:"w-2 h-2 rounded-full bg-green-500"})]})}function b3(e){switch(e){case"splash":case"checking":return"welcome";case"deps-ready":case"deps-missing":return"dependencies";case"cross-platform":case"docker-setup":return"platform";case"projects":case"signing":return"identity";case"language-select":case"binding-style":case"template-select":return"templates";case"complete":return"complete";default:return"welcome"}}function M3(e){return["welcome","dependencies","platform","identity","templates","complete"].indexOf(e)+1}const em=S.createContext({theme:"dark",toggleTheme:()=>{}}),tm=()=>S.useContext(em),ke={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};function D3({currentStep:e,dockerStatus:t,buildingDocker:n}){const{theme:r,toggleTheme:i}=tm(),s=b3(e),o=M3(s),[a,l]=S.useState(!1),[c,d]=S.useState(""),h=[{key:"welcome",label:"Welcome"},{key:"dependencies",label:"Dependencies"},{key:"platform",label:"Platform"},{key:"identity",label:"Projects"},{key:"templates",label:"Templates"},{key:"complete",label:"Complete"}],f=()=>{window.open("https://github.com/sponsors/leaanthony","_blank","noopener,noreferrer")},y=async()=>{try{const{reportBug:j}=await W1(async()=>{const{reportBug:p}=await Promise.resolve().then(()=>P3);return{reportBug:p}},void 0),m=await j(e);m.body&&m.url&&(await navigator.clipboard.writeText(m.body),d(m.url),l(!0))}catch(j){console.error("Failed to report bug:",j)}},x=()=>{window.open(c,"_blank","noopener,noreferrer"),l(!1)},v=n;return u.jsxs("aside",{className:"w-48 flex-shrink-0 bg-gray-100/80 dark:bg-transparent dark:glass-sidebar border-r border-gray-200 dark:border-transparent flex flex-col","aria-label":"Setup progress",children:[u.jsx("div",{className:"p-6 flex justify-center",children:u.jsx("img",{src:r==="dark"?qp:Jp,alt:"Wails logo",className:"h-24 object-contain"})}),u.jsx("nav",{className:"flex-1 px-4 py-2","aria-label":"Setup steps",children:u.jsx("ol",{className:"space-y-1",children:h.map((j,m)=>{const p=m+1,g=j.key===s,w=pl(!1),className:"flex-1 px-4 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 bg-gray-100 dark:bg-gray-700 rounded-lg hover:bg-gray-200 dark:hover:bg-gray-600 transition-colors",children:"Cancel"}),u.jsx("button",{onClick:x,className:"flex-1 px-4 py-2 text-sm font-medium text-white bg-red-600 rounded-lg hover:bg-red-700 transition-colors",children:"Open GitHub"})]})]})})]})}function Lu({title:e,subtitle:t,children:n,primaryAction:r,primaryLabel:i,secondaryAction:s,secondaryLabel:o,primaryDisabled:a=!1,onBack:l,canGoBack:c=!1}){const d=S.useRef(null);S.useEffect(()=>{var f;(f=d.current)==null||f.focus()},[e]);const h=r||s?u.jsxs("div",{className:"flex-shrink-0 pt-4 pb-6 flex flex-col items-center gap-1.5",role:"group","aria-label":"Page actions",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[c&&l&&u.jsx("button",{onClick:l,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Back"}),r&&i&&u.jsx("button",{onClick:r,disabled:a,className:`px-5 py-2 rounded-lg text-sm font-medium transition-colors border focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900 ${a?"border-gray-300 dark:border-gray-700 text-gray-400 cursor-not-allowed":"border-red-500 text-red-600 dark:text-red-400 hover:bg-red-500/10"}`,"aria-disabled":a,children:i})]}),s&&o&&u.jsx("button",{onClick:s,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900 rounded",children:o})]}):null;return u.jsxs(z.main,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col","aria-labelledby":"page-title",children:[u.jsxs("header",{className:"text-center mb-6 flex-shrink-0 px-10 pt-10",children:[u.jsx("h1",{ref:d,id:"page-title",className:"text-2xl font-semibold text-gray-900 dark:text-white mb-1.5 tracking-tight focus:outline-none",tabIndex:-1,children:e}),u.jsx("p",{className:"text-base text-gray-500 dark:text-gray-400",children:t})]}),u.jsx("div",{className:"flex-1 overflow-y-auto scrollbar-thin min-h-0 px-10",children:n}),h]})}function L3({onNext:e}){const{theme:t}=tm(),n=S.useRef(null),r=S.useRef(null);S.useEffect(()=>{var s;(s=n.current)==null||s.focus()},[]);const i=s=>{s.key==="Enter"&&document.activeElement===r.current&&e()};return u.jsxs(z.main,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center","aria-labelledby":"splash-title",onKeyDown:i,children:[u.jsx(z.div,{className:"text-center mb-10",initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.6,ease:"easeOut"},children:u.jsx("div",{className:"flex justify-center",children:u.jsx("img",{src:t==="dark"?qp:Jp,alt:"",width:280,className:"object-contain",style:{filter:"drop-shadow(0 0 60px rgba(239, 68, 68, 0.4))"},"aria-hidden":"true"})})}),u.jsxs(z.div,{className:"text-center px-8 max-w-lg",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},children:[u.jsxs("div",{className:"flex items-center justify-center gap-2 mb-3",children:[u.jsx("h1",{ref:n,id:"splash-title",className:"text-2xl font-semibold text-gray-900 dark:text-white tracking-tight focus:outline-none",tabIndex:-1,children:"Welcome to Wails"}),u.jsx("span",{className:"px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide rounded-full bg-amber-500/20 text-amber-600 dark:text-amber-400 border border-amber-500/30",role:"status","aria-label":"This setup wizard is experimental",children:"Experimental"})]}),u.jsx("p",{className:"text-base text-gray-600 dark:text-gray-300 leading-relaxed mb-8",children:"Build beautiful cross-platform apps using Go and web technologies"})]}),u.jsx(z.button,{ref:r,onClick:e,className:"px-6 py-2.5 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,delay:.4},children:"Let's Start"})]})}function A3(){const e=S.useRef(null);return S.useEffect(()=>{var t;(t=e.current)==null||t.focus()},[]),u.jsxs(z.main,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-start pt-[15%]","aria-labelledby":"checking-title","aria-busy":"true",children:[u.jsx(z.div,{className:"w-12 h-12 border-3 border-gray-300 dark:border-gray-600 border-t-red-500 rounded-full mb-6",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},role:"status","aria-label":"Loading"}),u.jsx("h2",{ref:e,id:"checking-title",className:"text-xl font-semibold text-gray-900 dark:text-white mb-2 focus:outline-none",tabIndex:-1,children:"Checking your system..."}),u.jsx("p",{className:"text-gray-500 dark:text-gray-400","aria-live":"polite",children:"This will only take a moment"})]})}function R3({onNext:e,onBack:t,canGoBack:n}){const r=S.useRef(null);return S.useEffect(()=>{var i;(i=r.current)==null||i.focus()},[]),u.jsxs(z.main,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center","aria-labelledby":"deps-ready-title",children:[u.jsx(z.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-20 h-20 rounded-full bg-green-500/20 flex items-center justify-center mb-6","aria-hidden":"true",children:u.jsx("svg",{className:"w-10 h-10 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),u.jsx("h2",{ref:r,id:"deps-ready-title",className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 focus:outline-none",tabIndex:-1,children:"All dependencies installed"}),u.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-sm",children:"Your system has everything needed to build Wails apps"}),u.jsxs("div",{className:"flex items-center gap-3",role:"group","aria-label":"Navigation",children:[n&&t&&u.jsx("button",{onClick:t,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Back"}),u.jsx("button",{onClick:e,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Continue"})]})]})}function V3({dependencies:e,onRetry:t,onContinue:n,onBack:r,canGoBack:i}){const[s,o]=S.useState(!1),a=e.filter(d=>!d.installed&&d.required),l=(()=>{const d=a.filter(x=>{var v;return(v=x.installCommand)==null?void 0:v.startsWith("sudo ")}).map(x=>x.installCommand);if(d.length===0)return null;const h=[],f=[],y=[];for(const x of d)if(x.includes("pacman -S")){const v=x.match(/pacman -S\s+(.+)/);v&&h.push(...v[1].split(/\s+/))}else if(x.includes("apt install")){const v=x.match(/apt install\s+(.+)/);v&&f.push(...v[1].split(/\s+/))}else if(x.includes("dnf install")){const v=x.match(/dnf install\s+(.+)/);v&&y.push(...v[1].split(/\s+/))}return h.length>0?`sudo pacman -S ${h.join(" ")}`:f.length>0?`sudo apt install ${f.join(" ")}`:y.length>0?`sudo dnf install ${y.join(" ")}`:null})(),c=()=>{l&&(navigator.clipboard.writeText(l),o(!0),setTimeout(()=>o(!1),2e3))};return u.jsxs(Lu,{title:"Almost there!",subtitle:"A few things need to be installed first",primaryAction:t,primaryLabel:"Check Again",secondaryAction:n,secondaryLabel:"Continue anyway",onBack:r,canGoBack:i,children:[u.jsx("div",{className:"bg-gray-100 dark:bg-gray-900/50 rounded-lg p-4 mb-4",children:a.map(d=>u.jsxs("div",{className:"flex items-start gap-3 py-2 border-b border-gray-200/50 dark:border-gray-800/50 last:border-0",children:[u.jsx("div",{className:"w-5 h-5 rounded-full bg-red-500/20 flex items-center justify-center flex-shrink-0 mt-0.5",children:u.jsx("svg",{className:"w-3 h-3 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M6 18L18 6M6 6l12 12"})})}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium text-gray-900 dark:text-white",children:d.name}),d.message&&u.jsx("p",{className:"text-xs text-gray-500 mt-0.5",children:d.message}),d.helpUrl&&u.jsxs("a",{href:d.helpUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-blue-500 dark:text-blue-400 hover:text-blue-600 dark:hover:text-blue-300 mt-1",children:["Install instructions",u.jsx("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]})]})]},d.name))}),l&&u.jsxs("div",{className:"bg-gray-100 dark:bg-gray-900/50 rounded-lg p-4",children:[u.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-300 mb-2",children:"Run this command to install everything:"}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("code",{className:"flex-1 text-xs bg-gray-200 dark:bg-gray-900 text-gray-700 dark:text-gray-300 px-3 py-2 rounded font-mono overflow-x-auto",children:l}),u.jsx("button",{onClick:c,className:"text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 transition-colors p-2",title:"Copy command",children:s?u.jsx("svg",{className:"w-5 h-5 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):u.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})})]})]})]})}function I3({dockerDep:e,onYes:t,onSkip:n,onBack:r,canGoBack:i}){const s=(e==null?void 0:e.installed)&&(e==null?void 0:e.imageBuilt)===!0;return u.jsx(z.div,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:s?u.jsxs(u.Fragment,{children:[u.jsx(z.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-20 h-20 rounded-full bg-green-500/20 flex items-center justify-center mb-6",children:u.jsx("svg",{className:"w-10 h-10 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),u.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[u.jsx("svg",{className:"w-8 h-8 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:u.jsx("path",{d:"M0 3.449L9.75 2.1v9.451H0m10.949-9.602L24 0v11.4H10.949M0 12.6h9.75v9.451L0 20.699M10.949 12.6H24V24l-12.9-1.801"})}),u.jsx("svg",{className:"w-8 h-8 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:u.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),u.jsx("svg",{className:"w-8 h-8 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:u.jsx("path",{d:"M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.002c-.06-.135-.12-.2-.09-.267.046-.134.078-.333-.201-.465-.57-.267-.96-.4-1.18-.535a.98.98 0 01-.36-.4c-.298.533-.648.868-.94 1.002-.04-.2-.021-.4.09-.6a.71.71 0 01.381-.267c.376-.202.559-.47.646-.869.067-.399.024-.733-.135-1.135-.15-.4-.396-.665-.794-.933a2.01 2.01 0 00-.92-.267c-.435-.064-.747.048-.988.135-.075.022-.155.04-.239.054a2.56 2.56 0 01.106-.858c.09-.335.2-.6.323-.868a.262.262 0 01-.09-.134c-.067-.267-.2-.2-.33-.002a1.763 1.763 0 00-.172.535 2.114 2.114 0 00-.038.467c-.065.065-.132.135-.198.199-.257.193-.52.398-.737.601a2.71 2.71 0 01-.18-.202c-.27-.332-.393-.667-.354-1.067a.89.89 0 01.11-.334c.031-.053.067-.067.1-.135a.065.065 0 01.016-.023.09.09 0 01.015-.023v-.003a5.59 5.59 0 01.166-.267c.126-.2.27-.4.461-.602.14-.134.274-.267.41-.4.069-.066.14-.135.21-.2.07-.066.136-.135.203-.2.069-.134.202-.2.37-.266a.33.33 0 00.14-.067c-.12-.067-.137-.2-.061-.336.134-.332.453-.668.785-.933.332-.265.66-.4.875-.4.232.003.325.068.227.403z"})})]}),u.jsx("h2",{className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center",children:"Cross-platform builds ready!"}),u.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-md",children:"You can build for Windows, macOS, and Linux from this machine"}),u.jsxs("div",{className:"flex items-center gap-3",children:[i&&r&&u.jsx("button",{onClick:r,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Back"}),u.jsx("button",{onClick:n,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue"})]})]}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"flex items-center gap-6 mb-8",children:[u.jsx("svg",{className:"w-12 h-12 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:u.jsx("path",{d:"M0 3.449L9.75 2.1v9.451H0m10.949-9.602L24 0v11.4H10.949M0 12.6h9.75v9.451L0 20.699M10.949 12.6H24V24l-12.9-1.801"})}),u.jsx("svg",{className:"w-12 h-12 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:u.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),u.jsx("svg",{className:"w-12 h-12 text-gray-600 dark:text-gray-400",viewBox:"0 0 24 24",fill:"currentColor",children:u.jsx("path",{d:"M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.002c-.06-.135-.12-.2-.09-.267.046-.134.078-.333-.201-.465-.57-.267-.96-.4-1.18-.535a.98.98 0 01-.36-.4c-.298.533-.648.868-.94 1.002-.04-.2-.021-.4.09-.6a.71.71 0 01.381-.267c.376-.202.559-.47.646-.869.067-.399.024-.733-.135-1.135-.15-.4-.396-.665-.794-.933a2.01 2.01 0 00-.92-.267c-.435-.064-.747.048-.988.135-.075.022-.155.04-.239.054a2.56 2.56 0 01.106-.858c.09-.335.2-.6.323-.868a.262.262 0 01-.09-.134c-.067-.267-.2-.2-.33-.002a1.763 1.763 0 00-.172.535 2.114 2.114 0 00-.038.467c-.065.065-.132.135-.198.199-.257.193-.52.398-.737.601a2.71 2.71 0 01-.18-.202c-.27-.332-.393-.667-.354-1.067a.89.89 0 01.11-.334c.031-.053.067-.067.1-.135a.065.065 0 01.016-.023.09.09 0 01.015-.023v-.003a5.59 5.59 0 01.166-.267c.126-.2.27-.4.461-.602.14-.134.274-.267.41-.4.069-.066.14-.135.21-.2.07-.066.136-.135.203-.2.069-.134.202-.2.37-.266a.33.33 0 00.14-.067c-.12-.067-.137-.2-.061-.336.134-.332.453-.668.785-.933.332-.265.66-.4.875-.4.232.003.325.068.227.403z"})})]}),u.jsx("h2",{className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center",children:"Build for multiple platforms?"}),u.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-2 text-center max-w-md",children:"Wails can compile your app for Windows, macOS, and Linux from a single machine"}),u.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-8 text-center",children:"Requires Docker for cross-compilation"}),u.jsxs("div",{className:"flex flex-col items-center gap-2",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[i&&r&&u.jsx("button",{onClick:r,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Back"}),u.jsx("button",{onClick:t,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Yes, set this up"})]}),u.jsx("button",{onClick:n,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Not right now"})]})]})})}function _3({onBuildImage:e,onUseLocalSDK:t,onSkip:n}){const[r,i]=S.useState(!1),[s,o]=S.useState(null),a=async()=>{if(!s){const c=await(await fetch("/api/docker/logs")).text();o(c)}i(!0)};return r?u.jsxs(z.div,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center max-w-4xl mx-auto w-full",children:[u.jsxs("div",{className:"w-full flex items-center justify-between mb-4",children:[u.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Build Logs"}),u.jsx("button",{onClick:()=>i(!1),className:"text-sm text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200",children:"Back"})]}),u.jsx("pre",{className:"w-full h-96 overflow-auto bg-gray-900 text-gray-100 p-4 rounded-lg text-xs font-mono whitespace-pre-wrap",children:s||"No logs available"})]}):u.jsxs(z.div,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[u.jsx("div",{className:"w-16 h-16 rounded-2xl bg-amber-500/20 flex items-center justify-center mb-6",children:u.jsx("svg",{className:"w-8 h-8 text-amber-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),u.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Build failed"}),u.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-2 text-center max-w-sm",children:"Check your internet connection and try again, or download the SDK manually."}),u.jsx("button",{onClick:a,className:"text-sm text-blue-500 hover:text-blue-600 mb-6",children:"View logs"}),u.jsxs("div",{className:"flex flex-col gap-3 items-center",children:[u.jsxs("div",{className:"flex gap-3",children:[u.jsx("button",{onClick:e,className:"px-5 py-2.5 rounded-lg bg-blue-500 text-white text-sm font-medium hover:bg-blue-600 transition-colors",children:"Try again"}),u.jsxs("label",{className:"px-5 py-2.5 rounded-lg border border-blue-500 text-blue-600 dark:text-blue-400 text-sm font-medium hover:bg-blue-500/10 transition-colors cursor-pointer",children:["Use local file",u.jsx("input",{type:"file",accept:".tar.xz",className:"hidden",onChange:l=>{var d;const c=(d=l.target.files)==null?void 0:d[0];c&&t(c)}})]})]}),u.jsx("a",{href:"https://github.com/wailsapp/macosx-sdks/releases/download/26.1/MacOSX26.1.sdk.tar.xz",download:!0,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Download SDK manually"}),u.jsx("button",{onClick:n,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip for now"})]})]})}function F3({onAgree:e,onDecline:t,onBack:n,canGoBack:r}){const[i,s]=S.useState(!1);return u.jsxs(z.div,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[r&&n&&u.jsx("button",{onClick:n,className:"absolute top-4 left-4 p-2 rounded-lg text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors","aria-label":"Go back",children:u.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),u.jsx("div",{className:"w-12 h-12 rounded-xl bg-gray-100 dark:bg-gray-800 flex items-center justify-center mb-4",children:u.jsx("svg",{className:"w-6 h-6 text-gray-600 dark:text-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),u.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-1",children:"Apple SDK License Agreement"}),u.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-4 text-center max-w-md",children:"Cross-platform builds for macOS require the Apple SDK. Please review and accept the license terms."}),u.jsx("div",{className:"w-full max-w-2xl h-72 mb-4 rounded-lg overflow-hidden border border-gray-200 dark:border-gray-700 bg-white",children:u.jsx("iframe",{src:"/assets/apple-sdk-license.pdf#view=FitH&navpanes=0&toolbar=0",className:"w-full h-full",title:"Apple Xcode and SDK License Agreement"})}),u.jsxs("label",{className:"flex items-center gap-2 mb-5 cursor-pointer",children:[u.jsx("input",{type:"checkbox",checked:i,onChange:o=>s(o.target.checked),className:"w-4 h-4 rounded border-gray-300 text-blue-500 focus:ring-blue-500"}),u.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-300",children:"I agree to Apple's Xcode and SDK License Agreement"})]}),u.jsxs("div",{className:"flex gap-3",children:[u.jsx("button",{onClick:t,className:"px-5 py-2.5 rounded-lg border border-gray-300 dark:border-gray-600 text-gray-700 dark:text-gray-300 text-sm font-medium hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors",children:"Skip cross-platform"}),u.jsx("button",{onClick:e,disabled:!i,className:`px-5 py-2.5 rounded-lg text-sm font-medium transition-colors ${i?"bg-blue-500 text-white hover:bg-blue-600":"bg-gray-200 text-gray-400 cursor-not-allowed"}`,children:"Continue"})]})]})}function O3({dockerStatus:e,buildingImage:t,onBuildImage:n,onCheckAgain:r,onContinueBackground:i,onUseLocalSDK:s,onSkip:o,onBack:a,canGoBack:l}){if(!e||!e.installed)return u.jsxs(z.div,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[u.jsx("div",{className:"w-16 h-16 rounded-2xl bg-blue-500/20 flex items-center justify-center mb-6",children:u.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:u.jsx("path",{fill:"#1d63ed",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),u.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Install Docker"}),u.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-6 text-center max-w-sm",children:"Cross-platform builds require Docker Desktop"}),u.jsxs("a",{href:"https://docs.docker.com/get-docker/",target:"_blank",rel:"noopener noreferrer",className:"px-5 py-2 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-500 transition-colors inline-flex items-center gap-2 mb-4",children:["Download Docker Desktop",u.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]}),u.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-6 text-center max-w-xs",children:"After installing, come back and we'll continue setting up. Some platforms may require a reboot."}),u.jsxs("div",{className:"flex flex-col items-center gap-1.5",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[l&&a&&u.jsx("button",{onClick:a,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Back"}),u.jsx("button",{onClick:r,className:"px-5 py-1.5 rounded-lg bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 text-sm font-medium hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",children:"Check Again"})]}),u.jsx("button",{onClick:o,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip for now"})]})]});if(!e.running)return u.jsxs(z.div,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[u.jsx("div",{className:"w-16 h-16 rounded-2xl bg-gray-200 dark:bg-gray-800 flex items-center justify-center mb-6 opacity-50",children:u.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:u.jsx("path",{fill:"#6b7280",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),u.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Start Docker"}),u.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-sm",children:"Please start Docker Desktop to continue"}),u.jsxs("div",{className:"flex flex-col items-center gap-1.5",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[l&&a&&u.jsx("button",{onClick:a,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Back"}),u.jsx("button",{onClick:r,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Check Again"})]}),u.jsx("button",{onClick:o,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip for now"})]})]});if(t||e.pullStatus==="pulling"){const c=e.pullProgress||0,d=e.pullMessage||"Connecting";return u.jsxs(z.div,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[u.jsx("div",{className:"w-16 h-16 rounded-2xl bg-blue-500/20 flex items-center justify-center mb-6",children:u.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:u.jsx("path",{fill:"#1d63ed",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),u.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Downloading cross-compiler image"}),u.jsxs("div",{className:"w-64 mb-4",children:[u.jsxs("div",{className:"flex items-center justify-between text-sm text-gray-500 mb-1",children:[u.jsx("span",{children:d}),u.jsxs("span",{children:[c,"%"]})]}),u.jsx("div",{className:"h-2 bg-gray-200 dark:bg-gray-700 rounded-full overflow-hidden",children:u.jsx(z.div,{className:"h-full bg-blue-500",animate:{width:`${c}%`}})})]}),u.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-8 text-center",children:"This may take several minutes"}),u.jsx("button",{onClick:i,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue in background"})]})}return e.pullStatus==="error"?u.jsx(_3,{onBuildImage:n,onUseLocalSDK:s,onSkip:o}):e.imageBuilt?u.jsxs(z.div,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[u.jsx(z.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-16 h-16 rounded-2xl bg-green-500/20 flex items-center justify-center mb-6",children:u.jsx("svg",{className:"w-8 h-8 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),u.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Cross-platform builds ready!"}),u.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-sm",children:"You can now build for Windows, macOS, and Linux"}),u.jsxs("div",{className:"flex items-center gap-3",children:[l&&a&&u.jsx("button",{onClick:a,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Back"}),u.jsx("button",{onClick:i,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors",children:"Continue"})]})]}):u.jsxs(z.div,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center",children:[u.jsx("div",{className:"w-16 h-16 rounded-2xl bg-blue-500/20 flex items-center justify-center mb-6",children:u.jsx("svg",{className:"w-10 h-10",viewBox:"0 0 756.26 596.9",children:u.jsx("path",{fill:"#1d63ed",d:"M743.96,245.25c-18.54-12.48-67.26-17.81-102.68-8.27-1.91-35.28-20.1-65.01-53.38-90.95l-12.32-8.27-8.21,12.4c-16.14,24.5-22.94,57.14-20.53,86.81,1.9,18.28,8.26,38.83,20.53,53.74-46.1,26.74-88.59,20.67-276.77,20.67H.06c-.85,42.49,5.98,124.23,57.96,190.77,5.74,7.35,12.04,14.46,18.87,21.31,42.26,42.32,106.11,73.35,201.59,73.44,145.66.13,270.46-78.6,346.37-268.97,24.98.41,90.92,4.48,123.19-57.88.79-1.05,8.21-16.54,8.21-16.54l-12.3-8.27ZM189.67,206.39h-81.7v81.7h81.7v-81.7ZM295.22,206.39h-81.7v81.7h81.7v-81.7ZM400.77,206.39h-81.7v81.7h81.7v-81.7ZM506.32,206.39h-81.7v81.7h81.7v-81.7ZM84.12,206.39H2.42v81.7h81.7v-81.7ZM189.67,103.2h-81.7v81.7h81.7v-81.7ZM295.22,103.2h-81.7v81.7h81.7v-81.7ZM400.77,103.2h-81.7v81.7h81.7v-81.7ZM400.77,0h-81.7v81.7h81.7V0Z"})})}),u.jsx("h2",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-2",children:"Docker is ready!"}),u.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-2 text-center max-w-sm",children:"Download the cross-compilation image to enable building for all platforms"}),u.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 mb-8 text-center",children:"This will download ~800MB and may take several minutes"}),u.jsxs("div",{className:"flex flex-col items-center gap-2",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[l&&a&&u.jsx("button",{onClick:a,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800",children:"Back"}),u.jsx("button",{onClick:n,className:"px-5 py-2 rounded-lg bg-blue-600 text-white text-sm font-medium hover:bg-blue-500 transition-colors",children:"Download Image"})]}),u.jsx("button",{onClick:o,className:"text-xs text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 transition-colors",children:"Skip, I'll do it later"})]})]})}const B3=[{id:"vanilla",name:"Vanilla",description:"Plain JavaScript/TypeScript",color:"#f7df1e",icon:"javascript"},{id:"react",name:"React",description:"React with Vite",color:"#61dafb",icon:"react"},{id:"vue",name:"Vue",description:"Vue 3 with Vite",color:"#42b883",icon:"vue"},{id:"svelte",name:"Svelte",description:"Svelte with Vite",color:"#ff3e00",icon:"svelte"},{id:"preact",name:"Preact",description:"Lightweight React alternative",color:"#673ab8",icon:"preact"},{id:"lit",name:"Lit",description:"Web Components with Lit",color:"#324fff",icon:"lit"},{id:"solid",name:"Solid",description:"Solid.js with Vite",color:"#2c4f7c",icon:"solid"},{id:"qwik",name:"Qwik",description:"Qwik with Vite",color:"#18b6f6",icon:"qwik"}];function z3({preferTypeScript:e,onSelect:t,onNext:n,onBack:r,canGoBack:i}){const s=S.useRef(null);return S.useEffect(()=>{var o;(o=s.current)==null||o.focus()},[]),u.jsxs(z.main,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center","aria-labelledby":"language-title",children:[u.jsx("h2",{ref:s,id:"language-title",className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center focus:outline-none",tabIndex:-1,children:"Language Preference"}),u.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 text-center max-w-md",children:"Choose your preferred language for new projects"}),u.jsxs("div",{className:"flex gap-4 mb-8",role:"radiogroup","aria-label":"Programming language",children:[u.jsxs("button",{onClick:()=>t(!1),role:"radio","aria-checked":!e,className:`w-40 h-48 rounded-xl p-5 flex flex-col items-center justify-center gap-3 transition-all border-2 focus:outline-none focus:ring-2 focus:ring-yellow-400 focus:ring-offset-2 dark:focus:ring-offset-gray-900 ${e?"border-gray-200 dark:border-white/10 bg-gray-100 dark:bg-white/5 hover:bg-gray-200 dark:hover:bg-white/10":"border-yellow-400 bg-yellow-400/10 shadow-lg shadow-yellow-400/20"}`,children:[u.jsx("div",{className:"w-16 h-16 flex items-center justify-center","aria-hidden":"true",children:u.jsx("img",{src:"/logos/javascript.svg",alt:"",className:"w-14 h-14"})}),u.jsx("span",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"JavaScript"}),u.jsx("span",{className:"text-xs text-gray-500 dark:text-white/50",children:"Dynamic typing"})]}),u.jsxs("button",{onClick:()=>t(!0),role:"radio","aria-checked":e,className:`w-40 h-48 rounded-xl p-5 flex flex-col items-center justify-center gap-3 transition-all border-2 focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-offset-2 dark:focus:ring-offset-gray-900 ${e?"border-blue-400 bg-blue-400/10 shadow-lg shadow-blue-400/20":"border-gray-200 dark:border-white/10 bg-gray-100 dark:bg-white/5 hover:bg-gray-200 dark:hover:bg-white/10"}`,children:[u.jsx("div",{className:"w-16 h-16 flex items-center justify-center","aria-hidden":"true",children:u.jsx("img",{src:"/logos/typescript.svg",alt:"",className:"w-14 h-14"})}),u.jsx("span",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"TypeScript"}),u.jsx("span",{className:"text-xs text-gray-500 dark:text-white/50",children:"Type safety"})]})]}),u.jsxs("div",{className:"flex items-center gap-3",role:"group","aria-label":"Navigation",children:[i&&r&&u.jsx("button",{onClick:r,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Back"}),u.jsx("button",{onClick:n,className:"px-6 py-2.5 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Continue"})]})]})}function U3({useInterfaces:e,onSelect:t,onNext:n,onBack:r,canGoBack:i}){const s=S.useRef(null);return S.useEffect(()=>{var o;(o=s.current)==null||o.focus()},[]),u.jsxs(z.main,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},className:"flex-1 flex flex-col items-center justify-center px-4 overflow-hidden","aria-labelledby":"binding-title",children:[u.jsx("h2",{ref:s,id:"binding-title",className:"text-2xl font-semibold text-gray-900 dark:text-white mb-2 text-center focus:outline-none",tabIndex:-1,children:"TypeScript Binding Style"}),u.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-6 text-center max-w-lg",children:"Choose how Go structs are represented in TypeScript"}),u.jsxs("div",{className:"flex gap-4 mb-8 max-w-full overflow-x-auto p-1",role:"radiogroup","aria-label":"Binding style",children:[u.jsxs("button",{onClick:()=>t(!0),role:"radio","aria-checked":e,className:`w-56 shrink-0 rounded-xl p-4 flex flex-col items-start gap-2 transition-all border-2 text-left focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-offset-2 dark:focus:ring-offset-gray-900 ${e?"border-blue-400 bg-blue-400/10 shadow-lg shadow-blue-400/20":"border-white/10 bg-white/5 hover:bg-white/10"}`,children:[u.jsx("span",{className:"text-base font-semibold text-gray-900 dark:text-white",children:"Interfaces"}),u.jsx("pre",{className:"text-[10px] leading-tight text-gray-700 dark:text-white/70 font-mono bg-gray-100 dark:bg-black/30 p-2 rounded-lg w-full overflow-x-auto","aria-hidden":"true",children:`interface Person { + name: string; + age: number; +}`}),u.jsxs("ul",{className:"text-[10px] text-gray-500 dark:text-white/50 space-y-0.5","aria-label":"Features",children:[u.jsx("li",{children:"Lightweight types"}),u.jsx("li",{children:"No runtime code"}),u.jsx("li",{children:"Simpler output"})]})]}),u.jsxs("button",{onClick:()=>t(!1),role:"radio","aria-checked":!e,className:`w-56 shrink-0 rounded-xl p-4 flex flex-col items-start gap-2 transition-all border-2 text-left focus:outline-none focus:ring-2 focus:ring-purple-400 focus:ring-offset-2 dark:focus:ring-offset-gray-900 ${e?"border-white/10 bg-white/5 hover:bg-white/10":"border-purple-400 bg-purple-400/10 shadow-lg shadow-purple-400/20"}`,children:[u.jsx("span",{className:"text-base font-semibold text-gray-900 dark:text-white",children:"Classes"}),u.jsx("pre",{className:"text-[10px] leading-tight text-gray-700 dark:text-white/70 font-mono bg-gray-100 dark:bg-black/30 p-2 rounded-lg w-full overflow-x-auto","aria-hidden":"true",children:`class Person { + name: string; + age: number; + constructor(src) { + Object.assign(this, src); + } + static createFrom(src) { + return new Person(src); + } +}`}),u.jsxs("ul",{className:"text-[10px] text-gray-500 dark:text-white/50 space-y-0.5","aria-label":"Features",children:[u.jsx("li",{children:"Factory methods"}),u.jsx("li",{children:"Default initialization"}),u.jsx("li",{children:"More verbose"})]})]})]}),u.jsxs("div",{className:"flex items-center gap-3",role:"group","aria-label":"Navigation",children:[i&&r&&u.jsx("button",{onClick:r,className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors border border-gray-300 dark:border-gray-600 text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Back"}),u.jsx("button",{onClick:n,className:"px-6 py-2.5 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Continue"})]})]})}function $3({selectedFramework:e,preferTypeScript:t,onSelect:n,onNext:r,onSkip:i,onBack:s,canGoBack:o}){return u.jsx(Lu,{title:"Default Template",subtitle:"Choose a framework for new projects",primaryAction:r,primaryLabel:"Continue",secondaryAction:i,secondaryLabel:"Skip",onBack:s,canGoBack:o,children:u.jsx("div",{className:"grid grid-cols-4 gap-3 max-w-2xl mx-auto p-1",role:"radiogroup","aria-label":"Framework templates",children:B3.map(a=>u.jsxs("button",{onClick:()=>n(a.id),role:"radio","aria-checked":e===a.id,className:`aspect-square rounded-xl p-4 flex flex-col items-center justify-center gap-2 transition-all border-2 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900 ${e===a.id?"border-red-500 bg-red-500/10 shadow-lg shadow-red-500/10":"border-gray-200 dark:border-white/10 bg-gray-100 dark:bg-white/5 hover:bg-gray-200 dark:hover:bg-white/10"}`,children:[u.jsx("img",{src:`/logos/${a.id==="vanilla"?t?"typescript":"javascript":a.icon}.svg`,alt:"","aria-hidden":"true",className:"w-12 h-12"}),u.jsx("span",{className:"text-sm font-medium text-gray-900 dark:text-white",children:a.name})]},a.id))})})}function W3({defaults:e,onDefaultsChange:t,onNext:n,onSkip:r,saving:i,onBack:s,canGoBack:o}){const[a,l]=S.useState(null),[c,d]=S.useState(""),h=x=>{x==="name"?d(e.author.name):x==="company"?d(e.author.company):x==="bundleId"&&d(e.project.productIdentifierPrefix),l(x)},f=()=>{a==="name"?t({...e,author:{...e.author,name:c}}):a==="company"?t({...e,author:{...e.author,company:c}}):a==="bundleId"&&t({...e,project:{...e.project,productIdentifierPrefix:c}}),l(null)},y=x=>{x.key==="Enter"?f():x.key==="Escape"&&l(null)};return u.jsx(Lu,{title:"Project Defaults",subtitle:"Set defaults for new Wails projects",primaryAction:n,primaryLabel:i?"Saving...":"Continue",primaryDisabled:i,secondaryAction:r,secondaryLabel:"Skip",onBack:s,canGoBack:o,children:u.jsxs("div",{className:"max-w-xl mx-auto",children:[u.jsxs("div",{className:"settings-group",role:"group","aria-label":"Project default settings",children:[a==="name"?u.jsxs("div",{className:"settings-row",children:[u.jsx("label",{htmlFor:"author-input",className:"sr-only",children:"Author name"}),u.jsx("div",{className:"flex-1",children:u.jsx("input",{id:"author-input",type:"text",value:c,onChange:x=>d(x.target.value),onKeyDown:y,onBlur:f,autoFocus:!0,placeholder:"Your Name","aria-label":"Author name",className:"w-full bg-transparent border-none text-sm text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-red-500 rounded px-1"})})]}):u.jsxs("button",{className:"settings-row w-full text-left focus:outline-none focus:ring-2 focus:ring-inset focus:ring-red-500",onClick:()=>h("name"),"aria-label":`Author: ${e.author.name||"Not set"}. Click to edit.`,children:[u.jsx("span",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"Author"}),u.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 dark:text-white/65",children:[u.jsx("span",{children:e.author.name||"Not set"}),u.jsx("span",{className:"text-gray-400 dark:text-white/40 text-xs","aria-hidden":"true",children:"▸"})]})]}),a==="company"?u.jsxs("div",{className:"settings-row",children:[u.jsx("label",{htmlFor:"company-input",className:"sr-only",children:"Company name"}),u.jsx("div",{className:"flex-1",children:u.jsx("input",{id:"company-input",type:"text",value:c,onChange:x=>d(x.target.value),onKeyDown:y,onBlur:f,autoFocus:!0,placeholder:"Acme Corp","aria-label":"Company name",className:"w-full bg-transparent border-none text-sm text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-red-500 rounded px-1"})})]}):u.jsxs("button",{className:"settings-row w-full text-left focus:outline-none focus:ring-2 focus:ring-inset focus:ring-red-500",onClick:()=>h("company"),"aria-label":`Company: ${e.author.company||"Not set"}. Click to edit.`,children:[u.jsx("span",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"Company"}),u.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 dark:text-white/65",children:[u.jsx("span",{children:e.author.company||"Not set"}),u.jsx("span",{className:"text-gray-400 dark:text-white/40 text-xs","aria-hidden":"true",children:"▸"})]})]}),a==="bundleId"?u.jsxs("div",{className:"settings-row",children:[u.jsx("label",{htmlFor:"bundle-input",className:"sr-only",children:"Bundle identifier"}),u.jsx("div",{className:"flex-1",children:u.jsx("input",{id:"bundle-input",type:"text",value:c,onChange:x=>d(x.target.value),onKeyDown:y,onBlur:f,autoFocus:!0,placeholder:"com.example","aria-label":"Bundle identifier",className:"w-full bg-transparent border-none text-sm text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-red-500 rounded px-1 font-mono"})})]}):u.jsxs("button",{className:"settings-row w-full text-left focus:outline-none focus:ring-2 focus:ring-inset focus:ring-red-500",onClick:()=>h("bundleId"),"aria-label":`Bundle identifier: ${e.project.productIdentifierPrefix||"com.example"}. Click to edit.`,children:[u.jsx("span",{className:"text-sm font-medium text-gray-800 dark:text-white/90",children:"Bundle identifier"}),u.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 dark:text-white/65",children:[u.jsx("span",{className:"font-mono",children:e.project.productIdentifierPrefix||"com.example"}),u.jsx("span",{className:"text-gray-400 dark:text-white/40 text-xs","aria-hidden":"true",children:"▸"})]})]})]}),u.jsx("p",{className:"text-xs text-gray-500 dark:text-white/40 mt-3 text-center",id:"settings-description",children:"These defaults are used when creating new projects"})]})})}function H3(){const e=S.useRef(null);S.useEffect(()=>{var n;(n=e.current)==null||n.focus()},[]);const t=()=>{window.open("https://v3alpha.wails.io/quick-start/first-app/","_blank","noopener,noreferrer")};return u.jsxs(z.main,{variants:ke,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.3},"aria-labelledby":"complete-title",className:"flex-1 flex flex-col items-center justify-center px-8",children:[u.jsx(z.div,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:200,damping:15},className:"w-16 h-16 rounded-full bg-green-500/20 flex items-center justify-center mb-4","aria-hidden":"true",children:u.jsx("svg",{className:"w-8 h-8 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})}),u.jsx("h2",{ref:e,id:"complete-title",className:"text-xl font-semibold text-gray-900 dark:text-white mb-6 focus:outline-none",tabIndex:-1,children:"You're ready to build!"}),u.jsx("button",{onClick:t,className:"px-5 py-2 rounded-lg border border-red-500 text-red-600 dark:text-red-400 text-sm font-medium hover:bg-red-500/10 transition-colors focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900",children:"Start Building"})]})}function K3(){const[e,t]=S.useState("splash"),[n,r]=S.useState([]),[i,s]=S.useState([]),[o,a]=S.useState(null),[l,c]=S.useState(null),[d,h]=S.useState(!1),[f,y]=S.useState({author:{name:"",company:""},project:{productIdentifierPrefix:"com.example",defaultTemplate:"vanilla",copyrightTemplate:"(c) {year}, {company}",descriptionTemplate:"A {name} application",defaultVersion:"0.1.0",useInterfaces:!0}}),[x,v]=S.useState(!1),[j,m]=S.useState(!1),[p,g]=S.useState(!0),[w,k]=S.useState("vanilla"),[C,P]=S.useState(!0),[T,E]=S.useState(!1),[D,$]=S.useState(null),[de,ze]=S.useState(()=>{if(typeof window<"u"){const A=localStorage.getItem("wails-setup-theme");if(A==="light"||A==="dark")return A;if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return"dark"}),W=A=>{r(_=>[..._,e]),t(A)},ae=()=>{if(n.length===0)return;const A=[...n];let _=A.pop();for(;_==="checking"&&A.length>0;)_=A.pop();r(A),t(_)},ie=n.length>0&&e!=="splash"&&e!=="checking",H=()=>{ze(A=>{const _=A==="dark"?"light":"dark";return localStorage.setItem("wails-setup-theme",_),_})};S.useEffect(()=>{de==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[de]),S.useEffect(()=>{b()},[]),S.useEffect(()=>{const A=_=>{_.target instanceof HTMLInputElement||_.target instanceof HTMLTextAreaElement||_.key==="Escape"&&ie&&(_.preventDefault(),ae())};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[ie,e]);const b=async()=>{const A=await Du();a(A.system)},L=async()=>{W("checking");const A=await el();s(A),A.filter(qt=>qt.required&&!qt.installed).length===0?t("deps-ready"):t("deps-missing")},R=async()=>{W("cross-platform")},I=async()=>{t("checking");const A=await el();s(A),A.filter(qt=>qt.required&&!qt.installed).length===0?t("deps-ready"):t("deps-missing")},O=async()=>{W("cross-platform")},wn=async()=>{W("sdk-license")},pt=async()=>{const A=await tl();c(A),W("docker-setup")},lr=async()=>{var _;const A=await Cr();y(A),P(((_=A.project)==null?void 0:_.useInterfaces)??!0),W("projects")},mt=async()=>{var _;const A=await Cr();y(A),P(((_=A.project)==null?void 0:_.useInterfaces)??!0),W("projects")},kn=async()=>{const A=await tl();c(A)},nm=async()=>{h(!0),await Yp();const A=Ji(_=>{c(_),_.pullStatus!=="pulling"&&(h(!1),A())})},rm=async()=>{var _;(d||l&&l.pullStatus==="pulling")&&m(!0);const A=await Cr();y(A),P(((_=A.project)==null?void 0:_.useInterfaces)??!0),W("projects")},im=async()=>{var _;const A=await Cr();y(A),P(((_=A.project)==null?void 0:_.useInterfaces)??!0),W("projects")},sm=async A=>{h(!0);const _=new FormData;_.append("sdk",A),await fetch("/api/docker/build-with-sdk",{method:"POST",body:_});const qt=Ji(Au=>{c(Au),Au.pullStatus!=="pulling"&&(h(!1),qt())})},om=()=>{W("signing")},am=()=>{W("signing")},lm=()=>{W("language-select")},um=()=>{W("language-select")},cm=()=>{W(p?"binding-style":"template-select")},dm=()=>{W("template-select")},fm=async()=>{const A=p&&w!=="vanilla"?`${w}-ts`:p&&w==="vanilla"?"vanilla-ts":w,_={...f,project:{...f.project,defaultTemplate:A,useInterfaces:p?C:!0}};v(!0),await nl(_),v(!1),W("complete")},hm=async()=>{const A={...f,project:{...f.project,useInterfaces:p?C:!0}};v(!0),await nl(A),v(!1),W("complete")};return S.useEffect(()=>{if(j&&(d||l&&l.pullStatus==="pulling"))return Ji(_=>{c(_),_.pullStatus!=="pulling"&&h(!1)})},[j,d,l==null?void 0:l.pullStatus]),S.useEffect(()=>{if(D==="pulling"&&(l==null?void 0:l.pullStatus)==="complete"&&e!=="docker-setup"){E(!0);const A=setTimeout(()=>E(!1),3e3);return()=>clearTimeout(A)}$((l==null?void 0:l.pullStatus)||null)},[l==null?void 0:l.pullStatus,e]),u.jsx(em.Provider,{value:{theme:de,toggleTheme:H},children:u.jsxs("div",{className:"min-h-screen bg-gray-50 dark:bg-[#0f0f0f] flex items-center justify-center p-4 transition-colors relative overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:u.jsxs("div",{className:"scrolling-bg w-full h-[200%] opacity-[0.08] dark:opacity-[0.06]",children:[u.jsx("img",{src:"/showcase/montage.png",alt:"",className:"w-full h-1/2 object-cover object-center"}),u.jsx("img",{src:"/showcase/montage.png",alt:"",className:"w-full h-1/2 object-cover object-center"})]})}),u.jsxs("div",{className:"w-[75vw] max-w-[1200px] h-[75vh] max-h-[800px] glass-card rounded-2xl flex overflow-hidden relative z-10",children:[u.jsx(D3,{currentStep:e,dockerStatus:l,buildingDocker:j&&(d||(l==null?void 0:l.pullStatus)==="pulling")}),u.jsxs("div",{className:"flex-1 flex flex-col min-w-0 bg-white/50 dark:bg-white/[0.03] relative",children:[u.jsx(Ha,{children:T&&u.jsxs(z.div,{initial:{opacity:0,y:-20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.15,ease:"easeOut"},className:"absolute top-4 right-4 z-50 flex items-center gap-2 px-3 py-2 bg-green-500 text-white rounded-lg shadow-lg",children:[u.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}),u.jsx("span",{className:"text-sm font-medium",children:"Docker image ready"})]})}),u.jsx("div",{className:"flex-1 flex flex-col min-h-0",children:u.jsxs(Ha,{mode:"wait",children:[e==="splash"&&u.jsx(L3,{onNext:L},"splash"),e==="checking"&&u.jsx(A3,{},"checking"),e==="deps-ready"&&u.jsx(R3,{onNext:R,onBack:ae,canGoBack:ie},"deps-ready"),e==="deps-missing"&&u.jsx(V3,{dependencies:i,onRetry:I,onContinue:O,onBack:ae,canGoBack:ie},"deps-missing"),e==="cross-platform"&&u.jsx(I3,{dockerDep:i.find(A=>A.name==="docker"),onYes:wn,onSkip:mt,onBack:ae,canGoBack:ie},"cross-platform"),e==="sdk-license"&&u.jsx(F3,{onAgree:pt,onDecline:lr,onBack:ae,canGoBack:ie},"sdk-license"),e==="docker-setup"&&u.jsx(O3,{dockerStatus:l,buildingImage:d,onBuildImage:nm,onCheckAgain:kn,onContinueBackground:rm,onUseLocalSDK:sm,onSkip:im,onBack:ae,canGoBack:ie},"docker-setup"),e==="projects"&&u.jsx(W3,{defaults:f,onDefaultsChange:y,onNext:om,onSkip:am,saving:x,onBack:ae,canGoBack:ie},"projects"),e==="signing"&&u.jsx(E3,{onNext:lm,onSkip:um,onBack:ae,canGoBack:ie},"signing"),e==="language-select"&&u.jsx(z3,{preferTypeScript:p,onSelect:g,onNext:cm,onBack:ae,canGoBack:ie},"language-select"),e==="binding-style"&&u.jsx(U3,{useInterfaces:C,onSelect:P,onNext:dm,onBack:ae,canGoBack:ie},"binding-style"),e==="template-select"&&u.jsx($3,{selectedFramework:w,preferTypeScript:p,onSelect:k,onNext:fm,onSkip:hm,onBack:ae,canGoBack:ie},"template-select"),e==="complete"&&u.jsx(H3,{},"complete")]})})]})]})]})})}Oo.createRoot(document.getElementById("root")).render(u.jsx(Mm.StrictMode,{children:u.jsx(K3,{})})); diff --git a/v3/internal/setupwizard/frontend/dist/index.html b/v3/internal/setupwizard/frontend/dist/index.html index 310d3536f..437f86f84 100644 --- a/v3/internal/setupwizard/frontend/dist/index.html +++ b/v3/internal/setupwizard/frontend/dist/index.html @@ -7,8 +7,8 @@ - - + +
diff --git a/v3/internal/setupwizard/frontend/src/App.tsx b/v3/internal/setupwizard/frontend/src/App.tsx index 8df43e127..cc9d74727 100644 --- a/v3/internal/setupwizard/frontend/src/App.tsx +++ b/v3/internal/setupwizard/frontend/src/App.tsx @@ -91,6 +91,8 @@ function Sidebar({ currentStep, dockerStatus, buildingDocker }: { const { theme, toggleTheme } = useTheme(); const currentStage = getWizardStage(currentStep); const currentIndex = getStageIndex(currentStage); + const [showBugOverlay, setShowBugOverlay] = useState(false); + const [bugReportUrl, setBugReportUrl] = useState(''); const stages = [ { key: 'welcome' as const, label: 'Welcome' }, @@ -105,6 +107,25 @@ function Sidebar({ currentStep, dockerStatus, buildingDocker }: { window.open('https://github.com/sponsors/leaanthony', '_blank', 'noopener,noreferrer'); }; + const handleReportBug = async () => { + try { + const { reportBug } = await import('./api'); + const result = await reportBug(currentStep); + if (result.body && result.url) { + await navigator.clipboard.writeText(result.body); + setBugReportUrl(result.url); + setShowBugOverlay(true); + } + } catch (e) { + console.error('Failed to report bug:', e); + } + }; + + const handleOpenGitHub = () => { + window.open(bugReportUrl, '_blank', 'noopener,noreferrer'); + setShowBugOverlay(false); + }; + const isDockerBuilding = buildingDocker; return ( @@ -195,6 +216,16 @@ function Sidebar({ currentStep, dockerStatus, buildingDocker }: {
+
+ + {/* Bug Report Overlay */} + {showBugOverlay && ( +
+
+
+
+ + + +
+

Template Copied!

+
+

+ The issue template has been copied to your clipboard. Click below to open the GitHub issue and paste it into a new comment. +

+
+ + +
+
+
+ )} ); } diff --git a/v3/internal/setupwizard/frontend/src/api.ts b/v3/internal/setupwizard/frontend/src/api.ts index 3330944a8..d75b7005c 100644 --- a/v3/internal/setupwizard/frontend/src/api.ts +++ b/v3/internal/setupwizard/frontend/src/api.ts @@ -158,3 +158,8 @@ export async function saveSigning(signing: SigningDefaults): Promise<{ status: s }); return response.json(); } + +export async function reportBug(currentStep: string): Promise<{ status: string; body?: string; url?: string }> { + const response = await fetch(`${API_BASE}/report-bug?step=${encodeURIComponent(currentStep)}`); + return response.json(); +} diff --git a/v3/internal/setupwizard/wizard.go b/v3/internal/setupwizard/wizard.go index c9963be33..b185dd8cc 100644 --- a/v3/internal/setupwizard/wizard.go +++ b/v3/internal/setupwizard/wizard.go @@ -327,6 +327,7 @@ func (w *Wizard) setupRoutes(mux *http.ServeMux) { mux.HandleFunc("/api/signing/status", w.handleSigningStatus) mux.HandleFunc("/api/complete", w.handleComplete) mux.HandleFunc("/api/close", w.handleClose) + mux.HandleFunc("/api/report-bug", w.handleReportBug) mux.HandleFunc("/assets/apple-sdk-license.pdf", func(rw http.ResponseWriter, r *http.Request) { rw.Header().Set("Content-Type", "application/pdf") @@ -517,6 +518,45 @@ func (w *Wizard) handleClose(rw http.ResponseWriter, r *http.Request) { }() } +func (w *Wizard) handleReportBug(rw http.ResponseWriter, r *http.Request) { + rw.Header().Set("Content-Type", "application/json") + + // Get current step from query parameter + currentStep := r.URL.Query().Get("step") + if currentStep == "" { + currentStep = "unknown" + } + + // Gather system info + w.stateMu.RLock() + system := w.state.System + w.stateMu.RUnlock() + + // Build a concise comment body - description first, then details table + var sb strings.Builder + sb.WriteString("**What went wrong?**\n\n\n\n") + sb.WriteString("**What were you doing when the issue occurred?**\n\n\n\n") + sb.WriteString("---\n\n") + sb.WriteString("| | |\n") + sb.WriteString("|--|--|\n") + sb.WriteString(fmt.Sprintf("| Platform | %s |\n", system.OS)) + sb.WriteString(fmt.Sprintf("| Arch | %s |\n", system.Arch)) + sb.WriteString(fmt.Sprintf("| Wails | %s |\n", system.WailsVersion)) + sb.WriteString(fmt.Sprintf("| Go | %s |\n", system.GoVersion)) + sb.WriteString(fmt.Sprintf("| Step | %s |\n", currentStep)) + + issueURL := "https://github.com/wailsapp/wails/issues/4904#issue-comment-box" + commentBody := sb.String() + + // Return the body for the frontend to copy to clipboard + // Frontend will handle opening the browser after showing the overlay + json.NewEncoder(rw).Encode(map[string]interface{}{ + "status": "ready", + "url": issueURL, + "body": commentBody, + }) +} + // execCommand runs a command and returns its output func execCommand(name string, args ...string) (string, error) { cmd := exec.Command(name, args...) diff --git a/v3/internal/setupwizard/wizard_linux.go b/v3/internal/setupwizard/wizard_linux.go index 7a743ddde..3b4e96b57 100644 --- a/v3/internal/setupwizard/wizard_linux.go +++ b/v3/internal/setupwizard/wizard_linux.go @@ -3,6 +3,7 @@ package setupwizard import ( + "os/exec" "strconv" "strings" @@ -12,7 +13,6 @@ import ( func (w *Wizard) checkAllDependencies() []DependencyStatus { var deps []DependencyStatus - hasNpm := false deps = append(deps, checkGo()) @@ -22,8 +22,9 @@ func (w *Wizard) checkAllDependencies() []DependencyStatus { if pm != nil { platformDeps, _ := packagemanager.Dependencies(pm) for _, dep := range platformDeps { + // Skip npm from package manager - we'll check it via PATH instead if dep.Name == "npm" { - hasNpm = true + continue } status := DependencyStatus{ Name: dep.Name, @@ -35,18 +36,23 @@ func (w *Wizard) checkAllDependencies() []DependencyStatus { status.Status = "installed" status.Version = dep.Version } else { - status.Installed = false - status.Status = "not_installed" - status.InstallCommand = dep.InstallCommand + // Also check if the binary is in PATH (might be installed via other means) + if _, err := exec.LookPath(dep.Name); err == nil { + status.Installed = true + status.Status = "installed" + } else { + status.Installed = false + status.Status = "not_installed" + status.InstallCommand = dep.InstallCommand + } } deps = append(deps, status) } } - if !hasNpm { - deps = append(deps, checkNpm()) - } + // Always check npm via PATH (might be installed via nvm, fnm, etc.) + deps = append(deps, checkNpm()) deps = append(deps, checkDocker())