diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index dee6d20..1e8fdeb 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,24 +1,12 @@ { "name": "Thats-Me (Dev Container)", - // 1. DIES IST DER WICHTIGSTE TEIL: - // Wir verwenden Docker Compose für alle Services "dockerComposeFile": [ "../docker-compose.yml" ], "service": "laravel.test", - // 3. WIR DEFINIEREN DEN ARBEITSBEREICH: - // Wir mounten das gesamte Projekt, damit Sie Backend UND Frontend sehen "workspaceFolder": "/workspace", - // 4. WIR LEGEN DEN BENUTZER FEST: - // Laravel Sail führt Befehle standardmäßig als 'sail'-Benutzer aus, um Berechtigungsprobleme zu vermeiden. "remoteUser": "sail", - // 5. ZUSÄTZLICHE ENTWICKLER-TOOLS (FEATURES): - // Features werden über postCreateCommand installiert um Kompatibilitätsprobleme zu vermeiden "features": {}, - // 6. BEFEHLE NACH DEM ERSTELLEN: - // Installiert nur die Tools die ohne Root-Rechte funktionieren - //"postCreateCommand": "composer install --no-interaction --prefer-dist --optimize-autoloader", - // 7. EDITOR-ANPASSUNGEN (Optional, aber sehr empfohlen): "customizations": { "vscode": { "extensions": [ @@ -34,65 +22,26 @@ ] } }, - // 8. ZU STARTENDE DIENSTE: - // Legt fest, welche Dienste aus der docker-compose.yml gestartet werden sollen. "runServices": [ "laravel.test", - "quasar.app", - "mysql", - "redis", - "mailpit" + "quasar.app" ], - // 9. ZUSÄTZLICHE KONFIGURATION: - // Umgebungsvariablen für den DevContainer "containerEnv": { "WWWUSER": "501", "WWWGROUP": "20", "LARAVEL_SAIL": "1" }, - // 9b. MOUNTS: - // Mountet das gesamte Projekt (Root) nach /workspace, damit Sie Backend UND Frontend sehen - "mounts": [ - "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached" - ], - // 10. FORWARD PORTS: - // Ports die automatisch weitergeleitet werden sollen (Container-Ports) "forwardPorts": [ - 80, 5173, - 3306, - 6379, - 1025, - 8025, 9000 ], "portsAttributes": { - "80": { - "label": "Laravel App (HTTP)", - "onAutoForward": "notify" - }, "5173": { - "label": "Vite Dev Server", + "label": "Vite Dev Server (Backend)", "onAutoForward": "notify" }, - "3306": { - "label": "MySQL", - "onAutoForward": "silent" - }, - "6379": { - "label": "Redis", - "onAutoForward": "silent" - }, - "8025": { - "label": "Mailpit Dashboard", - "onAutoForward": "notify" - }, - "1025": { - "label": "Mailpit SMTP", - "onAutoForward": "silent" - }, "9000": { - "label": "Quasar App", + "label": "Quasar App (Frontend)", "onAutoForward": "notify" } } diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md new file mode 100644 index 0000000..104066d --- /dev/null +++ b/.github/copilot-instructions.md @@ -0,0 +1,109 @@ +# Copilot Instructions for "That's Me" Project + +## Project Architecture + +This is a dual-stack application with separate **Laravel backend** and **Quasar frontend**: + +- **Backend** (`/backend/`): Laravel 12 with Livewire/Volt for server-side rendered admin panels +- **Frontend** (`/frontend/`): Quasar/Vue 3 SPA with anime.js for "LifeWave" visualizations +- **Core Feature**: Interactive wave visualization showing life events as animated points + +## Key Technology Patterns + +### Backend (Laravel/Livewire/Volt) +- **Livewire Volt**: Single-file components in `resources/views/livewire/` with PHP class logic at top +- **Flux UI**: Use `flux:` prefixed components (`flux:input`, `flux:button`, `flux:modal`) instead of raw HTML +- **Layout Pattern**: Nested layouts via `x-layouts.app` → `x-layouts.app.sidebar` for main app UI +- **Auth**: Uses Laravel Breeze with Volt components (`auth.login`, `auth.register`, etc.) +- **Routing**: Volt routes defined in `routes/web.php` as `Volt::route('path', 'component.name')` + +### Frontend (Quasar/Vue) +- **Animation Core**: Uses anime.js for wave animations (see `/test/` prototypes) +- **State Management**: Pinia for Vue state +- **Build Tool**: Vite with Quasar CLI +- **Components**: Lives in `frontend/src/pages/` and `frontend/src/components/` + +### Development Setup +- **Backend Dev**: `cd backend && php artisan serve` + `npm run dev` (Vite for assets) +- **Frontend Dev**: `cd frontend && quasar dev` +- **HTTPS Config**: Backend Vite configured for MAMP SSL certificates +- **Testing**: Pest for backend tests (`php artisan test`) + +## File Structure Conventions + +### Backend Key Files +- `routes/web.php`: Main routing with Volt component mappings +- `resources/views/livewire/`: Volt single-file components +- `resources/views/components/layouts/`: Layout components +- `app/Providers/VoltServiceProvider.php`: Volt mount configuration +- `resources/css/app.css`: Imports Tailwind + Flux UI + +### Frontend Key Files +- `src/pages/WavePage.vue`: Main life visualization component +- `src/utils/ConnectedDotsVisualization.js`: Wave animation utilities +- `quasar.config.js`: Build configuration +- `/test/anime-*.html`: Animation prototypes and examples + +## Specific Coding Patterns + +### Livewire/Volt Components +```php + + +
+ + +
+``` + +### Wave Animation Pattern +The project centers around animated life event visualizations: +- Life events have `value` (emotional weight), `x` (timeline position), `imageUrl`, `title` +- Uses anime.js for smooth wave animations with multiple sine wave layers +- See `test/anime-points-animation.html` for complete implementation patterns + +### Flux UI Usage +- Always use `flux:` components: `flux:button`, `flux:input`, `flux:modal`, `flux:navlist` +- Layout components: `flux:header`, `flux:sidebar`, `flux:main` +- Include `@fluxScripts` in layout files +- Wire navigation: `wire:navigate` for SPA-like navigation + +## Development Workflows + +- **Backend Changes**: Run `npm run dev` in `/backend/` for asset hot reload +- **Component Testing**: Use Pest with Volt test helpers: `Volt::test('component.name')` +- **Styling**: Tailwind + Flux UI (no custom CSS files needed) +- **Animation Prototyping**: Create in `/test/` directory first, then integrate + +## Project-Specific Guidelines + +1. **Animation First**: Wave visualizations are core - always consider animation performance +2. **Offline Support**: Frontend designed for PWA with offline capabilities +3. **Dual Development**: Backend and frontend are separate apps - coordinate API contracts +4. **Component Isolation**: Livewire components should be self-contained with embedded logic +5. **German Language**: UI text often in German (`__('German text')` for translations) + +## Common Commands + +```bash +# Backend +cd backend && composer install && php artisan serve +cd backend && npm run dev # Asset compilation + +# Frontend +cd frontend && npm install && quasar dev +cd frontend && quasar build # Production build + +# Testing +cd backend && php artisan test +``` \ No newline at end of file diff --git a/.gitignore b/.gitignore index 7d54996..ce8cafa 100644 --- a/.gitignore +++ b/.gitignore @@ -55,4 +55,4 @@ Icon # Project specific _static/ _work/ -_storage/ \ No newline at end of file +_storage/ diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..b0b5383 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,27 @@ +{ + "workbench.colorCustomizations": { + "activityBar.activeBackground": "#ff62b9", + "activityBar.background": "#ff62b9", + "activityBar.foreground": "#15202b", + "activityBar.inactiveForeground": "#15202b99", + "activityBarBadge.background": "#8dff00", + "activityBarBadge.foreground": "#15202b", + "commandCenter.border": "#e7e7e799", + "sash.hoverBorder": "#ff62b9", + "statusBar.background": "#ff2fa2", + "statusBar.foreground": "#e7e7e7", + "statusBarItem.hoverBackground": "#ff62b9", + "statusBarItem.remoteBackground": "#ff2fa2", + "statusBarItem.remoteForeground": "#e7e7e7", + "titleBar.activeBackground": "#ff2fa2", + "titleBar.activeForeground": "#e7e7e7", + "titleBar.inactiveBackground": "#ff2fa299", + "titleBar.inactiveForeground": "#e7e7e799" + }, + "peacock.color": "#ff2fa2", + "cSpell.words": [ + "audiotrack", + "Nominatim", + "videocam" + ] +} \ No newline at end of file diff --git a/README.md b/README.md index ad4cd7b..8fb3d38 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,12 @@ Eine kurze Beschreibung, was dieses Projekt macht (ein oder zwei Sätze). +## Version + +Aktuelle Projektversion: `0.0.1` + +Die Frontend-App-Version wird in `frontend/src/config/appVersion.js` gepflegt. Bei weiteren Entwicklungsschritten muessen `frontend/package.json`, Dokumentation und relevante Entwicklungsplaene synchron gehalten werden. + ## Domains auf dem Testserver app.thats-me.test = frontend Quasar APP diff --git a/backend/app/Http/Controllers/Api/AuthController.php b/backend/app/Http/Controllers/Api/AuthController.php new file mode 100644 index 0000000..ca411ee --- /dev/null +++ b/backend/app/Http/Controllers/Api/AuthController.php @@ -0,0 +1,54 @@ +validated(); + $user = User::query() + ->where('email', $credentials['email']) + ->first(); + + if (! $user || ! Hash::check($credentials['password'], $user->password)) { + throw ValidationException::withMessages([ + 'email' => __('auth.failed'), + ]); + } + + $token = $user->createToken('quasar-app')->accessToken; + + return response()->json([ + 'token' => $token, + 'tokenType' => 'Bearer', + 'user' => [ + 'id' => (string) $user->id, + 'name' => $user->name, + 'email' => $user->email, + 'avatar' => $this->avatarFor($user), + 'mode' => 'remote', + ], + ]); + } + + public function logout(Request $request): JsonResponse + { + $request->user()?->token()?->revoke(); + + return response()->json(null, 204); + } + + private function avatarFor(User $user): string + { + return substr(strtoupper($user->initials()), 0, 3); + } +} diff --git a/backend/app/Http/Controllers/Api/EventController.php b/backend/app/Http/Controllers/Api/EventController.php index 9ea816f..5968460 100644 --- a/backend/app/Http/Controllers/Api/EventController.php +++ b/backend/app/Http/Controllers/Api/EventController.php @@ -18,7 +18,7 @@ class EventController extends Controller */ public function index(Request $request): AnonymousResourceCollection { - $query = $request->user()->events()->orderBy('date'); + $query = $request->user()->events()->with('media')->orderBy('date'); // Delta sync: only events updated since a given timestamp if ($request->has('since')) { @@ -50,7 +50,7 @@ class EventController extends Controller 'note' => $request->validated('note'), ]); - return (new EventResource($event)) + return (new EventResource($event->load('media'))) ->response() ->setStatusCode(201); } @@ -64,7 +64,7 @@ class EventController extends Controller ->where('client_id', $clientId) ->firstOrFail(); - return new EventResource($event); + return new EventResource($event->load('media')); } /** @@ -103,7 +103,7 @@ class EventController extends Controller $event->update($data); - return new EventResource($event->fresh()); + return new EventResource($event->fresh()->load('media')); } /** diff --git a/backend/app/Http/Controllers/Api/EventMediaController.php b/backend/app/Http/Controllers/Api/EventMediaController.php new file mode 100644 index 0000000..8b5831c --- /dev/null +++ b/backend/app/Http/Controllers/Api/EventMediaController.php @@ -0,0 +1,138 @@ +user()->events() + ->where('client_id', $clientId) + ->firstOrFail(); + + return response()->json([ + 'data' => EventMediaResource::collection( + $event->media()->orderBy('created_at')->get() + ), + ]); + } + + public function store( + StoreEventMediaRequest $request, + EventMediaImageProcessor $processor, + string $clientId + ): JsonResponse { + $event = $request->user()->events() + ->where('client_id', $clientId) + ->firstOrFail(); + + $collection = $request->validated('collection') ?? 'gallery'; + $processed = $processor->process($request->file('file')); + $uuid = (string) str()->uuid(); + $directory = "event-media/{$request->user()->id}/{$event->client_id}"; + $path = "{$directory}/{$uuid}.jpg"; + $previewPath = "{$directory}/{$uuid}_preview.jpg"; + $thumbnailPath = "{$directory}/{$uuid}_thumb.jpg"; + + Storage::disk('local')->put($path, $processed['original']); + Storage::disk('local')->put($previewPath, $processed['preview']); + Storage::disk('local')->put($thumbnailPath, $processed['thumbnail']); + + if ($collection === 'key_image') { + $this->deleteExistingKeyImages($event->media()->where('collection', 'key_image')->get()); + } + + $media = $event->media()->create([ + 'uuid' => $uuid, + 'user_id' => $request->user()->id, + 'collection' => $collection, + 'name' => $request->file('file')->getClientOriginalName(), + 'mime_type' => $processed['mime_type'], + 'disk' => 'local', + 'path' => $path, + 'thumbnail_path' => $thumbnailPath, + 'preview_path' => $previewPath, + 'size' => $processed['size'], + 'width' => $processed['width'], + 'height' => $processed['height'], + 'thumbnail_width' => $processed['thumbnail_width'], + 'thumbnail_height' => $processed['thumbnail_height'], + 'preview_width' => $processed['preview_width'], + 'preview_height' => $processed['preview_height'], + ]); + + if ($collection === 'key_image') { + $event->update(['image' => "/event-media/{$media->id}/thumb"]); + } + + return (new EventMediaResource($media)) + ->response() + ->setStatusCode(201); + } + + public function show(Request $request, EventMedia $media, string $variant): Response + { + abort_unless(in_array($variant, ['thumb', 'preview', 'original'], true), 404); + abort_unless((int) $media->user_id === (int) $request->user()->id, 404); + + $path = match ($variant) { + 'thumb' => $media->thumbnail_path, + 'preview' => $media->preview_path ?: $media->thumbnail_path, + default => $media->path, + }; + + abort_unless(is_string($path) && $path !== '', 404); + abort_unless(Storage::disk($media->disk)->exists($path), 404); + + return response(Storage::disk($media->disk)->get($path), 200, [ + 'Content-Type' => 'image/jpeg', + 'Cache-Control' => 'private, max-age=604800', + ]); + } + + public function destroy(Request $request, string $clientId, EventMedia $media): JsonResponse + { + $event = $request->user()->events() + ->where('client_id', $clientId) + ->firstOrFail(); + + abort_unless((int) $media->event_id === (int) $event->id, 404); + + $wasKeyImage = $media->collection === 'key_image'; + $this->deleteMediaFiles($media); + $media->delete(); + + if ($wasKeyImage) { + $event->update(['image' => null]); + } + + return response()->json(null, 204); + } + + private function deleteExistingKeyImages(iterable $mediaItems): void + { + foreach ($mediaItems as $media) { + $this->deleteMediaFiles($media); + $media->delete(); + } + } + + private function deleteMediaFiles(EventMedia $media): void + { + Storage::disk($media->disk)->delete(array_filter([ + $media->path, + $media->preview_path, + $media->thumbnail_path, + ])); + } +} diff --git a/backend/app/Http/Controllers/Api/SettingsController.php b/backend/app/Http/Controllers/Api/SettingsController.php new file mode 100644 index 0000000..cd7e447 --- /dev/null +++ b/backend/app/Http/Controllers/Api/SettingsController.php @@ -0,0 +1,32 @@ +json([ + 'data' => $request->user()->settings?->settings ?? null, + ]); + } + + public function update(UpdateSettingsRequest $request): JsonResponse + { + $settings = $request->validated('settings'); + + $userSettings = $request->user()->settings()->updateOrCreate( + [], + ['settings' => $settings], + ); + + return response()->json([ + 'data' => $userSettings->settings, + ]); + } +} diff --git a/backend/app/Http/Controllers/Api/SettingsMediaController.php b/backend/app/Http/Controllers/Api/SettingsMediaController.php new file mode 100644 index 0000000..108aba0 --- /dev/null +++ b/backend/app/Http/Controllers/Api/SettingsMediaController.php @@ -0,0 +1,97 @@ +processBackground($request->file('file')); + $path = $this->backgroundPath((int) $request->user()->id); + + Storage::disk('local')->put($path, $processed['contents']); + + return response()->json([ + 'data' => [ + 'url' => '/settings/media/background?v='.time(), + 'width' => $processed['width'], + 'height' => $processed['height'], + 'mimeType' => 'image/jpeg', + 'size' => strlen($processed['contents']), + ], + ], 201); + } + + public function show(Request $request): Response + { + $path = $this->backgroundPath((int) $request->user()->id); + + abort_unless(Storage::disk('local')->exists($path), 404); + + return response(Storage::disk('local')->get($path), 200, [ + 'Content-Type' => 'image/jpeg', + 'Cache-Control' => 'private, max-age=604800', + ]); + } + + public function destroy(Request $request): JsonResponse + { + Storage::disk('local')->delete($this->backgroundPath((int) $request->user()->id)); + + return response()->json(null, 204); + } + + private function backgroundPath(int $userId): string + { + return "settings-media/{$userId}/background.jpg"; + } + + /** + * @return array{contents: string, width: int, height: int} + */ + private function processBackground(UploadedFile $file): array + { + $source = imagecreatefromstring((string) file_get_contents($file->getRealPath())); + + if (! $source) { + throw new RuntimeException('The uploaded background image could not be processed.'); + } + + $sourceWidth = imagesx($source); + $sourceHeight = imagesy($source); + $scale = min(1, self::BACKGROUND_MAX_SIDE / max($sourceWidth, $sourceHeight)); + $width = max(1, (int) round($sourceWidth * $scale)); + $height = max(1, (int) round($sourceHeight * $scale)); + + $canvas = imagecreatetruecolor($width, $height); + $background = imagecolorallocate($canvas, 255, 255, 255); + imagefilledrectangle($canvas, 0, 0, $width, $height, $background); + imagecopyresampled($canvas, $source, 0, 0, 0, 0, $width, $height, $sourceWidth, $sourceHeight); + + imagedestroy($source); + + ob_start(); + imagejpeg($canvas, null, self::BACKGROUND_QUALITY); + $contents = (string) ob_get_clean(); + imagedestroy($canvas); + + return [ + 'contents' => $contents, + 'width' => $width, + 'height' => $height, + ]; + } +} diff --git a/backend/app/Http/Requests/LoginRequest.php b/backend/app/Http/Requests/LoginRequest.php new file mode 100644 index 0000000..983a4ea --- /dev/null +++ b/backend/app/Http/Requests/LoginRequest.php @@ -0,0 +1,26 @@ +|string> + */ + public function rules(): array + { + return [ + 'email' => ['required', 'email'], + 'password' => ['required', 'string'], + ]; + } +} diff --git a/backend/app/Http/Requests/StoreEventMediaRequest.php b/backend/app/Http/Requests/StoreEventMediaRequest.php new file mode 100644 index 0000000..8159843 --- /dev/null +++ b/backend/app/Http/Requests/StoreEventMediaRequest.php @@ -0,0 +1,26 @@ +|string> + */ + public function rules(): array + { + return [ + 'file' => ['required', 'image', 'mimes:jpg,jpeg,png,webp', 'max:10240'], + 'collection' => ['nullable', 'in:key_image,gallery'], + ]; + } +} diff --git a/backend/app/Http/Requests/StoreSettingsMediaRequest.php b/backend/app/Http/Requests/StoreSettingsMediaRequest.php new file mode 100644 index 0000000..31127e1 --- /dev/null +++ b/backend/app/Http/Requests/StoreSettingsMediaRequest.php @@ -0,0 +1,23 @@ +|string> + */ + public function rules(): array + { + return [ + 'file' => ['required', 'image', 'mimes:jpg,jpeg,png,webp', 'max:10240'], + ]; + } +} diff --git a/backend/app/Http/Requests/UpdateSettingsRequest.php b/backend/app/Http/Requests/UpdateSettingsRequest.php new file mode 100644 index 0000000..06c67b5 --- /dev/null +++ b/backend/app/Http/Requests/UpdateSettingsRequest.php @@ -0,0 +1,37 @@ +|string> + */ + public function rules(): array + { + return [ + 'settings' => ['required', 'array'], + 'settings.theme' => ['nullable', 'string', 'max:50'], + 'settings.floatingLines' => ['nullable', 'array'], + 'settings.appearance' => ['nullable', 'string', 'max:50'], + 'settings.accentColor' => ['nullable', 'string', 'max:50'], + 'settings.language' => ['nullable', 'string', 'max:10'], + 'settings.emotionGradientStart' => ['nullable', 'string', 'max:20'], + 'settings.emotionGradientEnd' => ['nullable', 'string', 'max:20'], + 'settings.timelineZoom' => ['nullable', 'numeric', 'min:0.1', 'max:10'], + 'settings.timelineScrollLeft' => ['nullable', 'numeric', 'min:0'], + 'settings.showFps' => ['nullable', 'boolean'], + 'settings.presets' => ['nullable', 'array'], + 'settings.activePresetId' => ['nullable', 'string', 'max:100'], + ]; + } +} diff --git a/backend/app/Http/Resources/EventMediaResource.php b/backend/app/Http/Resources/EventMediaResource.php new file mode 100644 index 0000000..072e2dc --- /dev/null +++ b/backend/app/Http/Resources/EventMediaResource.php @@ -0,0 +1,33 @@ + (string) $this->id, + 'uuid' => $this->uuid, + 'type' => 'image', + 'collection' => $this->collection, + 'name' => $this->name, + 'mimeType' => $this->mime_type, + 'size' => $this->size, + 'width' => $this->width, + 'height' => $this->height, + 'thumbnailWidth' => $this->thumbnail_width, + 'thumbnailHeight' => $this->thumbnail_height, + 'previewWidth' => $this->preview_width, + 'previewHeight' => $this->preview_height, + 'src' => "/event-media/{$this->id}/thumb", + 'thumbnailUrl' => "/event-media/{$this->id}/thumb", + 'previewUrl' => "/event-media/{$this->id}/preview", + 'originalUrl' => "/event-media/{$this->id}/original", + 'createdAt' => $this->created_at->getTimestampMs(), + ]; + } +} diff --git a/backend/app/Http/Resources/EventResource.php b/backend/app/Http/Resources/EventResource.php index a547f62..d0a0a10 100644 --- a/backend/app/Http/Resources/EventResource.php +++ b/backend/app/Http/Resources/EventResource.php @@ -18,6 +18,7 @@ class EventResource extends JsonResource 'gradientPreset' => $this->gradient_preset, 'image' => $this->image, 'note' => $this->note ?? '', + 'media' => EventMediaResource::collection($this->whenLoaded('media')), 'syncStatus' => 'synced', 'createdAt' => $this->created_at->getTimestampMs(), 'updatedAt' => $this->updated_at->getTimestampMs(), diff --git a/backend/app/Models/Event.php b/backend/app/Models/Event.php index a4463f7..438e011 100644 --- a/backend/app/Models/Event.php +++ b/backend/app/Models/Event.php @@ -5,6 +5,7 @@ namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; +use Illuminate\Database\Eloquent\Relations\HasMany; class Event extends Model { @@ -35,4 +36,9 @@ class Event extends Model { return $this->belongsTo(User::class); } + + public function media(): HasMany + { + return $this->hasMany(EventMedia::class); + } } diff --git a/backend/app/Models/EventMedia.php b/backend/app/Models/EventMedia.php new file mode 100644 index 0000000..a233efe --- /dev/null +++ b/backend/app/Models/EventMedia.php @@ -0,0 +1,66 @@ + */ + use HasFactory; + + protected $fillable = [ + 'uuid', + 'user_id', + 'event_id', + 'collection', + 'name', + 'mime_type', + 'disk', + 'path', + 'thumbnail_path', + 'preview_path', + 'size', + 'width', + 'height', + 'thumbnail_width', + 'thumbnail_height', + 'preview_width', + 'preview_height', + ]; + + protected function casts(): array + { + return [ + 'size' => 'integer', + 'width' => 'integer', + 'height' => 'integer', + 'thumbnail_width' => 'integer', + 'thumbnail_height' => 'integer', + 'preview_width' => 'integer', + 'preview_height' => 'integer', + ]; + } + + protected static function booted(): void + { + static::creating(function (EventMedia $media): void { + if (! $media->uuid) { + $media->uuid = (string) Str::uuid(); + } + }); + } + + public function event(): BelongsTo + { + return $this->belongsTo(Event::class); + } + + public function user(): BelongsTo + { + return $this->belongsTo(User::class); + } +} diff --git a/backend/app/Models/User.php b/backend/app/Models/User.php index abec552..47c38ea 100644 --- a/backend/app/Models/User.php +++ b/backend/app/Models/User.php @@ -5,6 +5,7 @@ namespace App\Models; // use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\HasMany; +use Illuminate\Database\Eloquent\Relations\HasOne; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Illuminate\Support\Str; @@ -57,6 +58,11 @@ class User extends Authenticatable return $this->hasMany(Event::class); } + public function settings(): HasOne + { + return $this->hasOne(UserSetting::class); + } + public function initials(): string { return Str::of($this->name) diff --git a/backend/app/Models/UserSetting.php b/backend/app/Models/UserSetting.php new file mode 100644 index 0000000..6e05127 --- /dev/null +++ b/backend/app/Models/UserSetting.php @@ -0,0 +1,29 @@ + */ + use HasFactory; + + protected $fillable = [ + 'settings', + ]; + + protected function casts(): array + { + return [ + 'settings' => 'array', + ]; + } + + public function user(): BelongsTo + { + return $this->belongsTo(User::class); + } +} diff --git a/backend/app/Services/EventMediaImageProcessor.php b/backend/app/Services/EventMediaImageProcessor.php new file mode 100644 index 0000000..d47bcfa --- /dev/null +++ b/backend/app/Services/EventMediaImageProcessor.php @@ -0,0 +1,125 @@ +getRealPath())); + + if (! $source) { + throw new RuntimeException('The uploaded image could not be processed.'); + } + + $sourceWidth = imagesx($source); + $sourceHeight = imagesy($source); + + $original = $this->resizeContain($source, $sourceWidth, $sourceHeight, self::MAX_ORIGINAL_SIDE); + $preview = $this->resizeContain($source, $sourceWidth, $sourceHeight, self::PREVIEW_MAX_SIDE, 84); + $thumbnail = $this->resizeCover($source, $sourceWidth, $sourceHeight, self::THUMBNAIL_SIZE); + + imagedestroy($source); + + return [ + 'original' => $original['contents'], + 'preview' => $preview['contents'], + 'thumbnail' => $thumbnail['contents'], + 'width' => $original['width'], + 'height' => $original['height'], + 'preview_width' => $preview['width'], + 'preview_height' => $preview['height'], + 'thumbnail_width' => self::THUMBNAIL_SIZE, + 'thumbnail_height' => self::THUMBNAIL_SIZE, + 'mime_type' => 'image/jpeg', + 'size' => strlen($original['contents']), + ]; + } + + /** + * @return array{contents: string, width: int, height: int} + */ + private function resizeContain( + \GdImage $source, + int $sourceWidth, + int $sourceHeight, + int $maxSide, + int $quality = 90 + ): array { + $scale = min(1, $maxSide / max($sourceWidth, $sourceHeight)); + $width = max(1, (int) round($sourceWidth * $scale)); + $height = max(1, (int) round($sourceHeight * $scale)); + + $canvas = imagecreatetruecolor($width, $height); + $this->fillCanvas($canvas, $width, $height); + imagecopyresampled($canvas, $source, 0, 0, 0, 0, $width, $height, $sourceWidth, $sourceHeight); + + return [ + 'contents' => $this->encodeJpeg($canvas, $quality), + 'width' => $width, + 'height' => $height, + ]; + } + + /** + * @return array{contents: string, width: int, height: int} + */ + private function resizeCover(\GdImage $source, int $sourceWidth, int $sourceHeight, int $size): array + { + $scale = max($size / $sourceWidth, $size / $sourceHeight); + $width = (int) round($sourceWidth * $scale); + $height = (int) round($sourceHeight * $scale); + $x = (int) round(($size - $width) / 2); + $y = (int) round(($size - $height) / 2); + + $canvas = imagecreatetruecolor($size, $size); + $this->fillCanvas($canvas, $size, $size); + imagecopyresampled($canvas, $source, $x, $y, 0, 0, $width, $height, $sourceWidth, $sourceHeight); + + return [ + 'contents' => $this->encodeJpeg($canvas, 80), + 'width' => $size, + 'height' => $size, + ]; + } + + private function fillCanvas(\GdImage $canvas, int $width, int $height): void + { + $background = imagecolorallocate($canvas, 255, 255, 255); + imagefilledrectangle($canvas, 0, 0, $width, $height, $background); + } + + private function encodeJpeg(\GdImage $image, int $quality): string + { + ob_start(); + imagejpeg($image, null, $quality); + $contents = (string) ob_get_clean(); + imagedestroy($image); + + return $contents; + } +} diff --git a/backend/config/cors.php b/backend/config/cors.php new file mode 100644 index 0000000..cb0ae2d --- /dev/null +++ b/backend/config/cors.php @@ -0,0 +1,27 @@ + ['api/*'], + + 'allowed_methods' => ['*'], + + 'allowed_origins' => [ + 'https://thats-me.app', + 'https://www.thats-me.app', + 'https://app.thats-me.app', + 'https://app.thats-me.test', + 'http://app.thats-me.test:9000', + 'http://localhost:9000', + 'http://127.0.0.1:9000', + ], + + 'allowed_origins_patterns' => [], + + 'allowed_headers' => ['*'], + + 'exposed_headers' => [], + + 'max_age' => 0, + + 'supports_credentials' => false, +]; diff --git a/backend/database/factories/EventMediaFactory.php b/backend/database/factories/EventMediaFactory.php new file mode 100644 index 0000000..7cd33cc --- /dev/null +++ b/backend/database/factories/EventMediaFactory.php @@ -0,0 +1,44 @@ + + */ +class EventMediaFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + $user = User::factory(); + + return [ + 'uuid' => (string) Str::uuid(), + 'user_id' => $user, + 'event_id' => Event::factory()->for($user), + 'collection' => 'gallery', + 'name' => fake()->word().'.jpg', + 'mime_type' => 'image/jpeg', + 'disk' => 'local', + 'path' => 'event-media/test/original.jpg', + 'thumbnail_path' => 'event-media/test/thumb.jpg', + 'preview_path' => 'event-media/test/preview.jpg', + 'size' => 12345, + 'width' => 1200, + 'height' => 800, + 'thumbnail_width' => 320, + 'thumbnail_height' => 320, + 'preview_width' => 900, + 'preview_height' => 600, + ]; + } +} diff --git a/backend/database/factories/UserSettingFactory.php b/backend/database/factories/UserSettingFactory.php new file mode 100644 index 0000000..2fc3c31 --- /dev/null +++ b/backend/database/factories/UserSettingFactory.php @@ -0,0 +1,33 @@ + + */ +class UserSettingFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + 'user_id' => User::factory(), + 'settings' => [ + 'appearance' => 'system', + 'accentColor' => 'base', + 'language' => 'de', + 'timelineZoom' => 1, + 'timelineScrollLeft' => null, + 'presets' => [], + 'activePresetId' => null, + ], + ]; + } +} diff --git a/backend/database/migrations/2026_06_03_130123_create_user_settings_table.php b/backend/database/migrations/2026_06_03_130123_create_user_settings_table.php new file mode 100644 index 0000000..490d2b2 --- /dev/null +++ b/backend/database/migrations/2026_06_03_130123_create_user_settings_table.php @@ -0,0 +1,29 @@ +id(); + $table->foreignId('user_id')->unique()->constrained()->cascadeOnDelete(); + $table->json('settings'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('user_settings'); + } +}; diff --git a/backend/database/migrations/2026_06_03_131801_create_event_media_table.php b/backend/database/migrations/2026_06_03_131801_create_event_media_table.php new file mode 100644 index 0000000..512867e --- /dev/null +++ b/backend/database/migrations/2026_06_03_131801_create_event_media_table.php @@ -0,0 +1,47 @@ +id(); + $table->uuid('uuid')->unique(); + $table->foreignId('user_id')->constrained()->cascadeOnDelete(); + $table->foreignId('event_id')->constrained()->cascadeOnDelete(); + $table->string('collection')->default('gallery'); + $table->string('name'); + $table->string('mime_type'); + $table->string('disk')->default('local'); + $table->string('path'); + $table->string('thumbnail_path'); + $table->string('preview_path')->nullable(); + $table->unsignedBigInteger('size'); + $table->unsignedInteger('width')->nullable(); + $table->unsignedInteger('height')->nullable(); + $table->unsignedInteger('thumbnail_width')->nullable(); + $table->unsignedInteger('thumbnail_height')->nullable(); + $table->unsignedInteger('preview_width')->nullable(); + $table->unsignedInteger('preview_height')->nullable(); + $table->timestamps(); + + $table->index(['user_id', 'event_id']); + $table->index(['event_id', 'collection']); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('event_media'); + } +}; diff --git a/backend/database/migrations/2026_06_03_133403_add_preview_paths_to_event_media_table.php b/backend/database/migrations/2026_06_03_133403_add_preview_paths_to_event_media_table.php new file mode 100644 index 0000000..662f6b5 --- /dev/null +++ b/backend/database/migrations/2026_06_03_133403_add_preview_paths_to_event_media_table.php @@ -0,0 +1,44 @@ +string('preview_path')->nullable()->after('thumbnail_path'); + } + if (! Schema::hasColumn('event_media', 'preview_width')) { + $table->unsignedInteger('preview_width')->nullable()->after('thumbnail_height'); + } + if (! Schema::hasColumn('event_media', 'preview_height')) { + $table->unsignedInteger('preview_height')->nullable()->after('preview_width'); + } + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('event_media', function (Blueprint $table) { + $columns = array_filter([ + Schema::hasColumn('event_media', 'preview_path') ? 'preview_path' : null, + Schema::hasColumn('event_media', 'preview_width') ? 'preview_width' : null, + Schema::hasColumn('event_media', 'preview_height') ? 'preview_height' : null, + ]); + + if ($columns !== []) { + $table->dropColumn($columns); + } + }); + } +}; diff --git a/backend/database/seeders/DatabaseSeeder.php b/backend/database/seeders/DatabaseSeeder.php index d01a0ef..f38c090 100644 --- a/backend/database/seeders/DatabaseSeeder.php +++ b/backend/database/seeders/DatabaseSeeder.php @@ -3,8 +3,9 @@ namespace Database\Seeders; use App\Models\User; -// use Illuminate\Database\Console\Seeds\WithoutModelEvents; use Illuminate\Database\Seeder; +use Laravel\Passport\Client; +use Laravel\Passport\ClientRepository; class DatabaseSeeder extends Seeder { @@ -13,11 +14,37 @@ class DatabaseSeeder extends Seeder */ public function run(): void { - // User::factory(10)->create(); + User::query()->updateOrCreate( + ['email' => 'test@example.com'], + [ + 'name' => 'Test User', + 'email_verified_at' => now(), + 'password' => 'password', + ], + ); - User::factory()->create([ - 'name' => 'Test User', - 'email' => 'test@example.com', - ]); + foreach (range(1, 6) as $number) { + User::query()->updateOrCreate( + ['email' => "user{$number}@thats-me.app"], + [ + 'name' => "User {$number}", + 'email_verified_at' => now(), + 'password' => 'pass', + ], + ); + } + + $hasPersonalAccessClient = Client::query() + ->where('provider', 'users') + ->where('revoked', false) + ->get() + ->contains(fn (Client $client): bool => $client->hasGrantType('personal_access')); + + if (! $hasPersonalAccessClient) { + app(ClientRepository::class)->createPersonalAccessGrantClient( + 'Thats Me Quasar Personal Access Client', + 'users', + ); + } } } diff --git a/backend/routes/api.php b/backend/routes/api.php index 110e93f..1f89025 100644 --- a/backend/routes/api.php +++ b/backend/routes/api.php @@ -1,11 +1,27 @@ group(function () { Route::get('/user', fn (Request $request) => $request->user()); + Route::post('/logout', [AuthController::class, 'logout']); + Route::get('/settings', [SettingsController::class, 'show']); + Route::put('/settings', [SettingsController::class, 'update']); + Route::get('/settings/media/background', [SettingsMediaController::class, 'show']); + Route::post('/settings/media/background', [SettingsMediaController::class, 'store']); + Route::delete('/settings/media/background', [SettingsMediaController::class, 'destroy']); + Route::get('/event-media/{media}/{variant}', [EventMediaController::class, 'show']); + Route::get('/events/{clientId}/media', [EventMediaController::class, 'index']); + Route::post('/events/{clientId}/media', [EventMediaController::class, 'store']); + Route::delete('/events/{clientId}/media/{media}', [EventMediaController::class, 'destroy']); Route::apiResource('events', EventController::class)->parameters([ 'events' => 'clientId', diff --git a/backend/tests/Feature/Api/AuthTest.php b/backend/tests/Feature/Api/AuthTest.php new file mode 100644 index 0000000..e75ba9e --- /dev/null +++ b/backend/tests/Feature/Api/AuthTest.php @@ -0,0 +1,92 @@ +getJson('/api/user') + ->assertUnauthorized(); +}); + +test('events endpoint requires a token', function () { + $this->getJson('/api/events') + ->assertUnauthorized(); +}); + +test('api user endpoint returns the authenticated user', function () { + $user = User::factory()->create([ + 'name' => 'API User', + 'email' => 'api-user@example.com', + ]); + + Passport::actingAs($user); + + $this->getJson('/api/user') + ->assertOk() + ->assertJsonPath('id', $user->id) + ->assertJsonPath('name', 'API User') + ->assertJsonPath('email', 'api-user@example.com'); +}); + +test('can login with presentation user credentials', function () { + $this->seed(DatabaseSeeder::class); + + $this->postJson('/api/login', [ + 'email' => 'user1@thats-me.app', + 'password' => 'pass', + ]) + ->assertOk() + ->assertJsonPath('tokenType', 'Bearer') + ->assertJsonPath('user.email', 'user1@thats-me.app') + ->assertJsonPath('user.name', 'User 1') + ->assertJsonPath('user.mode', 'remote') + ->assertJsonStructure([ + 'token', + 'tokenType', + 'user' => ['id', 'name', 'email', 'avatar', 'mode'], + ]); +}); + +test('login rejects invalid credentials', function () { + $this->seed(DatabaseSeeder::class); + + $this->postJson('/api/login', [ + 'email' => 'user1@thats-me.app', + 'password' => 'wrong-password', + ]) + ->assertUnprocessable() + ->assertJsonValidationErrors(['email']); +}); + +test('authenticated user can logout', function () { + $user = User::factory()->create(); + Passport::actingAs($user); + + $this->postJson('/api/logout') + ->assertNoContent(); +}); + +test('database seeder creates the presentation api users', function () { + $this->seed(DatabaseSeeder::class); + + foreach (range(1, 6) as $number) { + $user = User::query() + ->where('email', "user{$number}@thats-me.app") + ->first(); + + expect($user)->not->toBeNull() + ->and($user->name)->toBe("User {$number}") + ->and(Hash::check('pass', $user->password))->toBeTrue(); + } + + $hasPersonalAccessClient = Client::query() + ->where('provider', 'users') + ->where('revoked', false) + ->get() + ->contains(fn (Client $client): bool => $client->hasGrantType('personal_access')); + + expect($hasPersonalAccessClient)->toBeTrue(); +}); diff --git a/backend/tests/Feature/Api/EventMediaTest.php b/backend/tests/Feature/Api/EventMediaTest.php new file mode 100644 index 0000000..336aad4 --- /dev/null +++ b/backend/tests/Feature/Api/EventMediaTest.php @@ -0,0 +1,170 @@ +getJson('/api/events/event-id/media') + ->assertUnauthorized(); +}); + +test('can upload key image and receive protected urls', function () { + Storage::fake('local'); + $user = User::factory()->create(); + $event = Event::factory()->create(['user_id' => $user->id]); + Passport::actingAs($user); + + $response = $this->postJson("/api/events/{$event->client_id}/media", [ + 'collection' => 'key_image', + 'file' => UploadedFile::fake()->image('avatar.png', 1200, 800), + ]); + + $response->assertCreated() + ->assertJsonPath('data.collection', 'key_image') + ->assertJsonPath('data.type', 'image') + ->assertJsonPath('data.thumbnailWidth', 320) + ->assertJsonPath('data.thumbnailHeight', 320) + ->assertJsonPath('data.previewWidth', 900); + + $media = EventMedia::query()->firstOrFail(); + Storage::disk('local')->assertExists($media->path); + Storage::disk('local')->assertExists($media->preview_path); + Storage::disk('local')->assertExists($media->thumbnail_path); + + expect($event->fresh()->image)->toBe("/event-media/{$media->id}/thumb"); +}); + +test('uploaded originals keep a4 quality maximum side', function () { + Storage::fake('local'); + $user = User::factory()->create(); + $event = Event::factory()->create(['user_id' => $user->id]); + Passport::actingAs($user); + + $this->postJson("/api/events/{$event->client_id}/media", [ + 'collection' => 'gallery', + 'file' => UploadedFile::fake()->image('large.jpg', 5000, 2500), + ])->assertCreated(); + + $media = EventMedia::query()->firstOrFail(); + + expect($media->width)->toBe(3508) + ->and($media->height)->toBe(1754) + ->and($media->preview_width)->toBe(900) + ->and($media->preview_height)->toBe(450) + ->and(max($media->width, $media->height))->toBe(3508); +}); + +test('can list media for own event', function () { + $user = User::factory()->create(); + $event = Event::factory()->create(['user_id' => $user->id]); + EventMedia::factory()->create([ + 'user_id' => $user->id, + 'event_id' => $event->id, + 'collection' => 'gallery', + ]); + Passport::actingAs($user); + + $this->getJson("/api/events/{$event->client_id}/media") + ->assertOk() + ->assertJsonCount(1, 'data') + ->assertJsonPath('data.0.collection', 'gallery'); +}); + +test('can stream thumbnail for own media', function () { + Storage::fake('local'); + $user = User::factory()->create(); + $event = Event::factory()->create(['user_id' => $user->id]); + $media = EventMedia::factory()->create([ + 'user_id' => $user->id, + 'event_id' => $event->id, + 'thumbnail_path' => 'event-media/test/thumb.jpg', + ]); + Storage::disk('local')->put($media->thumbnail_path, 'fake-jpeg'); + Passport::actingAs($user); + + $this->get("/api/event-media/{$media->id}/thumb") + ->assertOk() + ->assertHeader('Content-Type', 'image/jpeg'); +}); + +test('can stream preview for own media', function () { + Storage::fake('local'); + $user = User::factory()->create(); + $event = Event::factory()->create(['user_id' => $user->id]); + $media = EventMedia::factory()->create([ + 'user_id' => $user->id, + 'event_id' => $event->id, + 'preview_path' => 'event-media/test/preview.jpg', + ]); + Storage::disk('local')->put($media->preview_path, 'fake-jpeg'); + Passport::actingAs($user); + + $this->get("/api/event-media/{$media->id}/preview") + ->assertOk() + ->assertHeader('Content-Type', 'image/jpeg'); +}); + +test('preview falls back to thumbnail for legacy media', function () { + Storage::fake('local'); + $user = User::factory()->create(); + $event = Event::factory()->create(['user_id' => $user->id]); + $media = EventMedia::factory()->create([ + 'user_id' => $user->id, + 'event_id' => $event->id, + 'preview_path' => null, + 'thumbnail_path' => 'event-media/test/thumb.jpg', + ]); + Storage::disk('local')->put($media->thumbnail_path, 'legacy-thumb'); + Passport::actingAs($user); + + $this->get("/api/event-media/{$media->id}/preview") + ->assertOk() + ->assertHeader('Content-Type', 'image/jpeg'); +}); + +test('cannot access another users media', function () { + Storage::fake('local'); + $user = User::factory()->create(); + $otherUser = User::factory()->create(); + $event = Event::factory()->create(['user_id' => $otherUser->id]); + $media = EventMedia::factory()->create([ + 'user_id' => $otherUser->id, + 'event_id' => $event->id, + 'thumbnail_path' => 'event-media/test/thumb.jpg', + ]); + Storage::disk('local')->put($media->thumbnail_path, 'fake-jpeg'); + Passport::actingAs($user); + + $this->getJson("/api/events/{$event->client_id}/media") + ->assertNotFound(); + + $this->get("/api/event-media/{$media->id}/thumb") + ->assertNotFound(); +}); + +test('can delete own media and files', function () { + Storage::fake('local'); + $user = User::factory()->create(); + $event = Event::factory()->create(['user_id' => $user->id]); + $media = EventMedia::factory()->create([ + 'user_id' => $user->id, + 'event_id' => $event->id, + 'path' => 'event-media/test/original.jpg', + 'preview_path' => null, + 'thumbnail_path' => 'event-media/test/thumb.jpg', + ]); + Storage::disk('local')->put($media->path, 'original'); + Storage::disk('local')->put($media->thumbnail_path, 'thumb'); + Passport::actingAs($user); + + $this->deleteJson("/api/events/{$event->client_id}/media/{$media->id}") + ->assertNoContent(); + + $this->assertDatabaseMissing('event_media', ['id' => $media->id]); + Storage::disk('local')->assertMissing($media->path); + Storage::disk('local')->assertMissing($media->thumbnail_path); +}); diff --git a/backend/tests/Feature/Api/SettingsTest.php b/backend/tests/Feature/Api/SettingsTest.php new file mode 100644 index 0000000..7ae33ce --- /dev/null +++ b/backend/tests/Feature/Api/SettingsTest.php @@ -0,0 +1,148 @@ +getJson('/api/settings') + ->assertUnauthorized(); +}); + +test('can get empty settings for authenticated user', function () { + Passport::actingAs(User::factory()->create()); + + $this->getJson('/api/settings') + ->assertOk() + ->assertJsonPath('data', null); +}); + +test('can store and update settings', function () { + $user = User::factory()->create(); + Passport::actingAs($user); + + $settings = [ + 'appearance' => 'dark', + 'accentColor' => 'green', + 'language' => 'de', + 'timelineZoom' => 1.5, + 'timelineScrollLeft' => 420, + 'floatingLines' => [ + 'speed' => 1.2, + 'lineCount' => 12, + ], + 'presets' => [[ + 'id' => 'preset-1', + 'name' => 'Praesentation', + 'settings' => ['accentColor' => 'green'], + 'updatedAt' => 1710000000000, + ]], + 'activePresetId' => 'preset-1', + 'showFps' => false, + ]; + + $this->putJson('/api/settings', ['settings' => $settings]) + ->assertOk() + ->assertJsonPath('data.appearance', 'dark') + ->assertJsonPath('data.floatingLines.speed', 1.2) + ->assertJsonPath('data.presets.0.name', 'Praesentation'); + + expect($user->settings()->count())->toBe(1); + + $this->putJson('/api/settings', [ + 'settings' => [ + ...$settings, + 'accentColor' => 'blue', + ], + ]) + ->assertOk() + ->assertJsonPath('data.accentColor', 'blue'); + + expect($user->settings()->count())->toBe(1); +}); + +test('settings are isolated per user', function () { + $user = User::factory()->create(); + $otherUser = User::factory()->create(); + + UserSetting::factory()->create([ + 'user_id' => $otherUser->id, + 'settings' => [ + 'accentColor' => 'rose', + 'language' => 'en', + ], + ]); + + Passport::actingAs($user); + + $this->getJson('/api/settings') + ->assertOk() + ->assertJsonPath('data', null); + + $this->putJson('/api/settings', [ + 'settings' => [ + 'accentColor' => 'green', + 'language' => 'de', + ], + ])->assertOk(); + + expect($user->settings()->first()->settings['accentColor'])->toBe('green') + ->and($otherUser->settings()->first()->settings['accentColor'])->toBe('rose'); +}); + +test('settings payload is required', function () { + Passport::actingAs(User::factory()->create()); + + $this->putJson('/api/settings', []) + ->assertUnprocessable() + ->assertJsonValidationErrors(['settings']); +}); + +test('can upload and stream own settings background image', function () { + Storage::fake('local'); + $user = User::factory()->create(); + Passport::actingAs($user); + + $response = $this->postJson('/api/settings/media/background', [ + 'file' => UploadedFile::fake()->image('background.png', 2400, 1200), + ]); + + $response + ->assertCreated() + ->assertJsonPath('data.width', 1600) + ->assertJsonPath('data.height', 800) + ->assertJsonPath('data.mimeType', 'image/jpeg'); + + expect($response->json('data.url'))->toStartWith('/settings/media/background?v='); + Storage::disk('local')->assertExists("settings-media/{$user->id}/background.jpg"); + + $this->get('/api/settings/media/background') + ->assertOk() + ->assertHeader('Content-Type', 'image/jpeg'); +}); + +test('settings background images are isolated per user', function () { + Storage::fake('local'); + $user = User::factory()->create(); + $otherUser = User::factory()->create(); + Storage::disk('local')->put("settings-media/{$otherUser->id}/background.jpg", 'other-background'); + + Passport::actingAs($user); + + $this->get('/api/settings/media/background') + ->assertNotFound(); +}); + +test('can delete own settings background image', function () { + Storage::fake('local'); + $user = User::factory()->create(); + Storage::disk('local')->put("settings-media/{$user->id}/background.jpg", 'background'); + Passport::actingAs($user); + + $this->deleteJson('/api/settings/media/background') + ->assertNoContent(); + + Storage::disk('local')->assertMissing("settings-media/{$user->id}/background.jpg"); +}); diff --git a/backend/vite.default.config.js b/backend/vite.default.config.js index 49ba786..fcd7d08 100644 --- a/backend/vite.default.config.js +++ b/backend/vite.default.config.js @@ -1,6 +1,6 @@ import { defineConfig } from "vite"; import laravel from "laravel-vite-plugin"; -import tailwindcss from "@tailwindcss/vite"; +// import tailwindcss from "@tailwindcss/vite"; export default defineConfig({ plugins: [ diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..6f9d58b --- /dev/null +++ b/deploy.sh @@ -0,0 +1,538 @@ +#!/bin/bash +# filepath: /Users/tbehrend/Repositories/thatsme/deploy.sh + +echo "🚀 Creating deployment packages for 'That's Me' deployment structure..." + +# Clean up previous deployment +rm -rf deployment +mkdir -p deployment/{frontend,backend} + +echo "📦 Building frontend..." +cd frontend +npm install +quasar build +cd .. + +echo "🔧 Preparing backend..." +cd backend +composer install --optimize-autoloader --no-dev --no-interaction + +if [ -f "package.json" ]; then + npm install + NODE_ENV=production npm run build +fi +cd .. + +echo "📂 Creating FRONTEND deployment structure..." + +# Frontend deployment - complete Quasar SPA +cp -r frontend/dist/spa/* deployment/frontend/ +cp -r frontend/public/images deployment/frontend/ +cp -r frontend/public/videos deployment/frontend/ +if [ -d "frontend/public/audio" ]; then + cp -r frontend/public/audio deployment/frontend/ +fi + +# Create frontend config for deployment +cat > deployment/frontend/config.js << 'EOF' +// Frontend configuration for deployment +window.APP_CONFIG = { + API_BASE_URL: '/api', + APP_URL: window.location.origin, + environment: 'production', + database: false +}; +EOF + +# Update frontend index.html to include config +sed -i.bak 's|| \n |' deployment/frontend/index.html + +# Create frontend .htaccess for SPA routing +cat > deployment/frontend/.htaccess << 'EOF' + + + Options -MultiViews -Indexes + + + RewriteEngine On + + # Handle client-side routing for Vue SPA + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule . /index.html [L] + + +# Cache static assets + + ExpiresActive on + ExpiresByType text/css "access plus 1 year" + ExpiresByType application/javascript "access plus 1 year" + ExpiresByType image/png "access plus 1 year" + ExpiresByType image/jpg "access plus 1 year" + ExpiresByType image/jpeg "access plus 1 year" + ExpiresByType image/gif "access plus 1 year" + ExpiresByType image/webp "access plus 1 year" + ExpiresByType video/mp4 "access plus 1 month" + + +# Security headers + + Header always set X-Content-Type-Options nosniff + Header always set X-Frame-Options SAMEORIGIN + Header always set X-XSS-Protection "1; mode=block" + +EOF + +echo "📂 Creating BACKEND deployment structure..." + +# Backend deployment - Laravel application +mkdir -p deployment/backend/{app,bootstrap,config,database,resources,routes,storage,vendor,public} + +# Copy Laravel core files +cp -r backend/app deployment/backend/ +cp -r backend/bootstrap deployment/backend/ +cp -r backend/config deployment/backend/ +cp -r backend/database deployment/backend/ +cp -r backend/resources deployment/backend/ +cp -r backend/routes deployment/backend/ +cp -r backend/storage deployment/backend/ +cp -r backend/vendor deployment/backend/ + +# Copy backend root files +cp backend/artisan deployment/backend/ +cp backend/composer.json deployment/backend/ +cp backend/composer.lock deployment/backend/ +if [ -f "backend/vite.config.js" ]; then + cp backend/vite.config.js deployment/backend/ +fi + +# Copy built assets to public +if [ -d "backend/public/build" ]; then + cp -r backend/public/build deployment/backend/public/ +fi + +# Copy other public assets +if [ -d "backend/public" ]; then + rsync -av --exclude='build' backend/public/ deployment/backend/public/ +fi + +# Create backend index.php for deployment structure +cat > deployment/backend/public/index.php << 'EOF' +make(Kernel::class); + +$response = $kernel->handle( + $request = Request::capture() +); + +$response->send(); + +$kernel->terminate($request, $response); +EOF + +# Create backend .htaccess +cat > deployment/backend/public/.htaccess << 'EOF' + + + Options -MultiViews -Indexes + + + RewriteEngine On + + # Handle Authorization Header + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + # Redirect Trailing Slashes If Not A Folder + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] + + # Send Requests To Front Controller + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] + + +# Security headers + + Header always set X-Content-Type-Options nosniff + Header always set X-Frame-Options DENY + Header always set X-XSS-Protection "1; mode=block" + + # CORS for deployment + Header always set Access-Control-Allow-Origin "*" + Header always set Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" + Header always set Access-Control-Allow-Headers "Content-Type, Authorization, X-Requested-With" + +EOF + +# Create API routes for backend (database-free) +cat > deployment/backend/routes/web.php << 'EOF' +group(function () { + Route::middleware(['web'])->group(function () { + + Route::get('/health', function () { + return response()->json([ + 'status' => 'ok', + 'app' => 'That\'s Me Backend API', + 'version' => '1.0.0', + 'mode' => 'deployment-no-database', + 'timestamp' => now()->toISOString() + ]); + }); + + // Mock LifeWave data for anime.js visualizations + Route::get('/life-events', function () { + return response()->json([ + 'events' => [ + [ + 'id' => 1, + 'title' => 'Schulanfang', + 'value' => 0.8, + 'x' => 0.1, + 'imageUrl' => '/images/thumbs/aaron-huber-RLs8LZcONCA-unsplash.jpg', + 'date' => '2010-09-01', + 'description' => 'Mein erster Schultag war aufregend und voller neuer Erfahrungen.', + 'animationDelay' => 100 + ], + [ + 'id' => 2, + 'title' => 'Erster Job', + 'value' => 0.9, + 'x' => 0.3, + 'imageUrl' => '/images/thumbs/andrew-bui-z7rzbFHXym0-unsplash.jpg', + 'date' => '2020-03-15', + 'description' => 'Der Beginn meiner beruflichen Laufbahn in einem tollen Team.', + 'animationDelay' => 200 + ], + [ + 'id' => 3, + 'title' => 'Umzug nach München', + 'value' => 0.6, + 'x' => 0.5, + 'imageUrl' => '/images/thumbs/becca-tapert--A_Sx8GrRWg-unsplash.jpg', + 'date' => '2022-06-20', + 'description' => 'Ein großer Schritt in eine neue Stadt und neue Möglichkeiten.', + 'animationDelay' => 300 + ], + [ + 'id' => 4, + 'title' => 'Hochzeit', + 'value' => 1.0, + 'x' => 0.7, + 'imageUrl' => '/images/thumbs/fuu-j-r2nJPbEYuSQ-unsplash.jpg', + 'date' => '2023-08-12', + 'description' => 'Der schönste Tag meines Lebens mit der Person, die ich liebe.', + 'isFavorite' => true, + 'animationDelay' => 400 + ], + [ + 'id' => 5, + 'title' => 'Neues Projekt', + 'value' => 0.85, + 'x' => 0.9, + 'imageUrl' => '/images/thumbs/ian-dooley-hpTH5b6mo2s-unsplash.jpg', + 'date' => '2024-01-10', + 'description' => 'Start eines spannenden neuen Projekts mit großem Potenzial.', + 'isFavorite' => true, + 'animationDelay' => 500 + ] + ], + 'waveConfig' => [ + 'amplitude' => 0.3, + 'frequency' => 2, + 'animationDuration' => 2000, + 'easingFunction' => 'easeInOutQuad' + ] + ]); + }); + + // Mock entry detail for LifeWave interaction + Route::get('/entries/{id}', function ($id) { + $events = [ + 1 => [ + 'id' => 1, + 'title' => 'Schulanfang', + 'subtitle' => 'Ein wichtiger Meilenstein', + 'date' => '2010-09-01', + 'time' => '08:00', + 'location' => 'Grundschule am Park', + 'level' => 2, + 'keyImage' => '/images/thumbs/aaron-huber-RLs8LZcONCA-unsplash.jpg', + 'description' => 'Mein erster Schultag war aufregend und voller neuer Erfahrungen. Die Schultüte war schwer und ich war gleichzeitig nervös und neugierig.', + 'additionalImages' => [ + ['url' => '/images/thumbs/andrew-bui-z7rzbFHXym0-unsplash.jpg', 'caption' => 'Vorbereitung am Morgen'], + ['url' => '/images/thumbs/becca-tapert--A_Sx8GrRWg-unsplash.jpg', 'caption' => 'Mit der Familie'] + ], + 'audioRecordings' => [ + ['name' => 'Erinnerungen', 'url' => '/audio/sample.mp3'] + ], + 'videoRecordings' => [ + ['name' => 'Einschulungsfeier', 'url' => '/videos/3191901-uhd_3840_2160_25fps.mp4'] + ], + 'relatedPersons' => [ + ['id' => 1, 'name' => 'Mama', 'relation' => 'Mutter', 'avatar' => null], + ['id' => 2, 'name' => 'Papa', 'relation' => 'Vater', 'avatar' => null] + ], + 'categories' => [ + ['id' => 1, 'name' => 'Bildung', 'icon' => 'school'], + ['id' => 2, 'name' => 'Familie', 'icon' => 'family_restroom'] + ], + 'tags' => [ + ['id' => 1, 'name' => 'Aufregend', 'icon' => 'emoji_emotions'], + ['id' => 2, 'name' => 'Neuanfang', 'icon' => 'new_releases'] + ] + ] + ]; + + $event = $events[$id] ?? [ + 'id' => (int)$id, + 'title' => 'Sample Entry ' . $id, + 'subtitle' => 'Ein wichtiger Meilenstein', + 'date' => '2023-08-12', + 'time' => '14:30', + 'location' => 'München, Deutschland', + 'level' => 2, + 'keyImage' => '/images/familie2.png', + 'description' => 'Eine detaillierte Beschreibung dieses wichtigen Lebensereignisses.' + ]; + + return response()->json($event); + }); + }); +}); + +// Simple API info page +Route::get('/', function () { + return response()->json([ + 'app' => 'That\'s Me Backend API (Deployment)', + 'frontend_path' => '../frontend/', + 'api_endpoints' => [ + 'health' => '/api/health', + 'life_events' => '/api/life-events', + 'entry_detail' => '/api/entries/{id}' + ], + 'note' => 'Database-free deployment mode with mock LifeWave data' + ]); +}); +EOF + +# Create backend environment file for deployment +cat > deployment/backend/.env.production << 'EOF' +APP_NAME="That's Me Backend (Deployment)" +APP_ENV=production +APP_KEY= +APP_DEBUG=false +APP_URL=http://localhost + +LOG_CHANNEL=single +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=error + +# NO DATABASE CONFIGURATION +# Database is disabled for this deployment + +# Cache Configuration (file-based, no database) +BROADCAST_DRIVER=log +CACHE_DRIVER=file +FILESYSTEM_DISK=local +QUEUE_CONNECTION=sync +SESSION_DRIVER=file +SESSION_LIFETIME=120 + +# Mail Configuration (optional) +MAIL_MAILER=log +EOF + +# Create root .htaccess for combined deployment +cat > deployment/.htaccess << 'EOF' + + + Options -MultiViews -Indexes + + + RewriteEngine On + + # API routes to backend + RewriteCond %{REQUEST_URI} ^/api/ + RewriteRule ^api/(.*)$ /backend/public/index.php [L,QSA] + + # Backend admin routes + RewriteCond %{REQUEST_URI} ^/admin/ + RewriteRule ^admin/(.*)$ /backend/public/index.php [L,QSA] + + # Frontend SPA (default) + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} !^/backend/ + RewriteRule ^(.*)$ /frontend/index.html [L] + + +# Security headers + + Header always set X-Content-Type-Options nosniff + Header always set X-Frame-Options SAMEORIGIN + Header always set X-XSS-Protection "1; mode=block" + + +# Cache static assets + + ExpiresActive on + ExpiresByType text/css "access plus 1 year" + ExpiresByType application/javascript "access plus 1 year" + ExpiresByType image/png "access plus 1 year" + ExpiresByType image/jpg "access plus 1 year" + ExpiresByType image/jpeg "access plus 1 year" + ExpiresByType image/gif "access plus 1 year" + ExpiresByType image/webp "access plus 1 year" + ExpiresByType video/mp4 "access plus 1 month" + +EOF + +# Create combined deployment instructions +cat > deployment/README.md << 'EOF' +# That's Me - Production Deployment + +## Structure +``` +deployment/ +├── frontend/ # Quasar SPA build +│ ├── index.html +│ ├── js/ +│ ├── css/ +│ ├── images/ +│ ├── videos/ +│ └── .htaccess +├── backend/ # Laravel API +│ ├── app/ +│ ├── public/ +│ │ └── index.php +│ ├── routes/ +│ ├── .env.production +│ └── ... +├── .htaccess # Root routing +└── README.md +``` + +## Deployment Instructions + +### Option 1: Combined Deployment (Single Domain) +1. Upload entire `deployment/` folder contents to web root +2. Configure backend: + - Rename `backend/.env.production` to `backend/.env` + - Generate APP_KEY (see below) + - Set permissions: 755 for `backend/storage/` and `backend/bootstrap/cache/` + +### Option 2: Separate Subdomains +- Frontend: Upload `frontend/` contents to frontend subdomain +- Backend: Upload `backend/` contents to backend subdomain + +## Generate Laravel APP_KEY +Create temporary file in web root: +```php + +``` + +## URL Structure (Combined) +- **Frontend**: `yourdomain.com/` (Quasar LifeWave SPA) +- **API**: `yourdomain.com/api/health`, `/api/life-events`, `/api/entries/{id}` +- **Backend Admin**: `yourdomain.com/admin/` (if Livewire/Volt components added) + +## Features +- ✅ LifeWave visualization with anime.js +- ✅ Mock life events data for deployment +- ✅ Database-free operation +- ✅ CORS configured for cross-origin requests +- ✅ File-based sessions and cache +- ✅ SPA routing for Vue Router + +## Testing +- Health check: `/api/health` +- Life events: `/api/life-events` (returns events with animation config) +- Entry detail: `/api/entries/1` + +Perfect for production and demo environments! +EOF + +# Create individual deployment instructions +cat > deployment/frontend/DEPLOYMENT_INSTRUCTIONS.md << 'EOF' +# Frontend Deployment + +## Standalone Frontend Deployment +Upload contents of this folder to web root for frontend-only deployment. + +## What's Included +- Complete Quasar SPA build with LifeWave visualization +- Images, videos, and audio assets +- SPA routing via .htaccess +- Production configuration + +## Dependencies +- Backend API for data (configure API_BASE_URL in config.js) +- anime.js for wave animations (included in build) +EOF + +cat > deployment/backend/DEPLOYMENT_INSTRUCTIONS.md << 'EOF' +# Backend Deployment + +## Laravel API Deployment +Upload contents of this folder to web root for backend-only deployment. + +## Setup Steps +1. Rename `.env.production` to `.env` +2. Generate APP_KEY using provided instructions +3. Set file permissions: 755 for storage/ and bootstrap/cache/ +4. Test API endpoints + +## API Endpoints +- Health: `/api/health` +- Life Events: `/api/life-events` (LifeWave data with animation config) +- Entry Details: `/api/entries/{id}` + +## Features +- Database-free operation with mock data +- CORS configured for frontend integration +- Optimized for anime.js LifeWave visualizations +EOF + +echo "✅ Deployment structure created successfully!" +echo "" +echo "📁 Created deployment structure:" +echo " - deployment/frontend/ (Quasar SPA)" +echo " - deployment/backend/ (Laravel API)" +echo " - deployment/.htaccess (Combined routing)" +echo "" +echo "🎯 Deployment Options:" +echo " 1. Combined: Upload entire deployment/ folder" +echo " 2. Separate: Upload frontend/ and backend/ to different domains" +echo "" +echo "🌊 Features:" +echo " - LifeWave visualization ready" +echo " - Mock data with animation config" +echo " - Database-free operation" +echo " - anime.js integration support" +echo "" +echo "📋 Next: Follow README.md in deployment/ folder" \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 2def612..0d74f9a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,52 +19,41 @@ services: XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}' XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}' IGNITION_LOCAL_SITES_PATH: '${PWD}' + + # --- Anbindung an das Mutterschiff --- DB_CONNECTION: mysql - DB_HOST: mysql + DB_HOST: global-mysql DB_PORT: 3306 DB_DATABASE: thats-me - DB_USERNAME: sail + DB_USERNAME: root DB_PASSWORD: password - MAIL_HOST: mailpit + MAIL_HOST: global-mailpit MAIL_PORT: 1025 - REDIS_HOST: redis + REDIS_HOST: global-redis volumes: - './backend:/var/www/html' + - '.:/workspace:cached' networks: - sail - proxy - depends_on: - - mysql - - mailpit - - redis labels: - "traefik.enable=true" - - # Domain 1: Hauptdomain thats-me.test (Webseite/Landingpage) - "traefik.http.routers.thatsme-main.rule=Host(`thats-me.test`)" - "traefik.http.routers.thatsme-main.entrypoints=websecure" - "traefik.http.routers.thatsme-main.tls=true" - "traefik.http.routers.thatsme-main.service=thatsme-service" - - # Domain 2: portal.thats-me.test (Admin Panel) - "traefik.http.routers.thatsme-portal.rule=Host(`portal.thats-me.test`)" - "traefik.http.routers.thatsme-portal.entrypoints=websecure" - "traefik.http.routers.thatsme-portal.tls=true" - "traefik.http.routers.thatsme-portal.service=thatsme-service" - - # Domain 3: api.thats-me.test (API für Quasar App) - "traefik.http.routers.thatsme-api.rule=Host(`api.thats-me.test`)" - "traefik.http.routers.thatsme-api.entrypoints=websecure" - "traefik.http.routers.thatsme-api.tls=true" - "traefik.http.routers.thatsme-api.service=thatsme-service" - - # Vite Asset Domain für Backend Development - "traefik.http.routers.thatsme-assets.rule=Host(`assets.thats-me.test`)" - "traefik.http.routers.thatsme-assets.entrypoints=websecure" - "traefik.http.routers.thatsme-assets.tls=true" - "traefik.http.routers.thatsme-assets.service=thatsme-assets-service" - - # Service Definitions - "traefik.http.services.thatsme-service.loadbalancer.server.port=80" - "traefik.http.services.thatsme-assets-service.loadbalancer.server.port=5173" - "traefik.http.services.thatsme-assets-service.loadbalancer.server.scheme=http" @@ -87,79 +76,20 @@ services: - proxy labels: - "traefik.enable=true" - - # Domain 4: app.thats-me.test (Quasar Frontend App) - "traefik.http.routers.thatsme-app.rule=Host(`app.thats-me.test`)" - "traefik.http.routers.thatsme-app.entrypoints=websecure" - "traefik.http.routers.thatsme-app.tls=true" - "traefik.http.routers.thatsme-app.service=thatsme-app-service" - - # Service Definition - "traefik.http.services.thatsme-app-service.loadbalancer.server.port=9000" - "traefik.http.services.thatsme-app-service.loadbalancer.server.scheme=http" - "traefik.docker.network=proxy" - # MySQL Database - mysql: - image: 'mysql/mysql-server:8.0' - ports: - - '${FORWARD_DB_PORT:-33070}:3306' - environment: - MYSQL_ROOT_PASSWORD: '${DB_PASSWORD:-password}' - MYSQL_ROOT_HOST: '%' - MYSQL_DATABASE: '${DB_DATABASE:-thats-me}' - MYSQL_USER: '${DB_USERNAME:-sail}' - MYSQL_PASSWORD: '${DB_PASSWORD:-password}' - MYSQL_ALLOW_EMPTY_PASSWORD: 1 - volumes: - - 'sail-mysql:/var/lib/mysql' - - './backend/vendor/laravel/sail/database/mysql/create-testing-database.sh:/docker-entrypoint-initdb.d/10-create-testing-database.sh' - networks: - - sail - healthcheck: - test: - - CMD - - mysqladmin - - ping - - '-p${DB_PASSWORD:-password}' - retries: 3 - timeout: 5s - - # Mailpit für E-Mail Testing - mailpit: - image: 'axllent/mailpit:latest' - ports: - - '${FORWARD_MAILPIT_PORT:-1028}:1025' - - '${FORWARD_MAILPIT_DASHBOARD_PORT:-8028}:8025' - networks: - - sail - - # Redis Cache/Queue - redis: - image: 'redis:alpine' - ports: - - '${FORWARD_REDIS_PORT:-6383}:6379' - volumes: - - 'sail-redis:/data' - networks: - - sail - healthcheck: - test: - - CMD - - redis-cli - - ping - retries: 3 - timeout: 5s - networks: sail: driver: bridge proxy: external: true + volumes: - sail-mysql: - driver: local - sail-redis: - driver: local quasar-node-modules: driver: local \ No newline at end of file diff --git a/documentation/layout/entry-edit-step-1.html b/documentation/layout/entry-edit-step-1.html new file mode 100644 index 0000000..2046337 --- /dev/null +++ b/documentation/layout/entry-edit-step-1.html @@ -0,0 +1,121 @@ + + + + + + + VΛYV App - Entry Edit Step 1 + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/documentation/layout/entry-edit-step-2.html b/documentation/layout/entry-edit-step-2.html new file mode 100644 index 0000000..02e2818 --- /dev/null +++ b/documentation/layout/entry-edit-step-2.html @@ -0,0 +1,130 @@ + + + + + + + VΛYV App - Entry Edit Step 2 + + + + + + + + + + + +
+
+ 9:43 +
+
+
+
+
+
+
+ +
+ Next +
+
+ + +
+
Good
+
+ + + + + + + + +
+
+ +
+
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + + \ No newline at end of file diff --git a/documentation/layout/entry-edit-step-3.html b/documentation/layout/entry-edit-step-3.html new file mode 100644 index 0000000..4848fbe --- /dev/null +++ b/documentation/layout/entry-edit-step-3.html @@ -0,0 +1,150 @@ + + + + + + + VΛYV App - Entry Edit Step 3 + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/documentation/layout/entry-edit-step-4.html b/documentation/layout/entry-edit-step-4.html new file mode 100644 index 0000000..9eebb5a --- /dev/null +++ b/documentation/layout/entry-edit-step-4.html @@ -0,0 +1,145 @@ + + + + + + + VΛYV App - Entry Edit Step 4 + + + + + + + + + + + +
+
+ 9:45 +
+
+
+
+
+
+
+ + + +
Media
+ Next +
+ +
+ + +
+
+ + View All +
+
+
+ +
+ Tap to select videos +
+ +
+
+ + +
+
+ Holiday_clip.mp4 + 00:15 • 12MB +
+ +
+
+ + +
+ + +
+
+ +
+
+ + +
+ + +
+
+ +
+
+ Voice Note 01 + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0:14 +
+
+
+
+ + + + + \ No newline at end of file diff --git a/documentation/layout/entry-edit-step-5.html b/documentation/layout/entry-edit-step-5.html new file mode 100644 index 0000000..0ec8356 --- /dev/null +++ b/documentation/layout/entry-edit-step-5.html @@ -0,0 +1,173 @@ + + + + + + + VΛYV App - Entry Edit Step 5 + + + + + + + + + + + +
+
+ 9:46 +
+
+
+
+
+
+
+ + + +
Details
+
+
+ +
+ + +
+ +
+
+ +
+
+
+
+ + +
+
+ + 2 selected +
+
+ +
+ +
+
+
+ JD +
+
+
+
+ + +
+ + + +
+
+ +
+ +
+ + + + +
+
+ + +
+ +
+
+ +
+
+ #happy + #summer +
+
+ +
+ + + +
+ + + + + \ No newline at end of file diff --git a/documentation/layout/entry.html b/documentation/layout/entry.html new file mode 100644 index 0000000..c49f4a7 --- /dev/null +++ b/documentation/layout/entry.html @@ -0,0 +1,194 @@ + + + +VΛYV App Interface Variations + + + + + + + + + + + + +
+ +
+ + +
+ +
+ + +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+
+
+
+
+
+ + +
+ +
+
+ Summer Wedding +
+
+ Positivity +2 +
+
+

A day to remember forever

+
+
28 Jul, 14:30
+
Central Park, NY
+
+
+ + +
+ +
+
+
+
+ + +
+

+ The sun was shining perfectly through the trees as we arrived. It was one of those rare moments where everything feels exactly right. The laughter, the music, and the company made it unforgettable. I want to keep this memory close. +

+
+ + +
+ +
+
+ +
+
+
+ +
+
+
+
+ + +
+
+ + View All +
+
+
+
+
+
+5
+
+
+ + +
+ +
+ +
+ +
+
+ +
+
+ +
+
+ +
+ +
+
+ Speech.m4a + 0:12 / 0:45 +
+
+
+
+
+
+
+ + +
+
+ +
+ +
JD
+
+
+ +
+ +
+ Celebration + #summer + #memories +
+
+
+
+
+ + +
+ + +
+
+ + + + + \ No newline at end of file diff --git a/documentation/layout/index.html b/documentation/layout/index.html new file mode 100644 index 0000000..ada9110 --- /dev/null +++ b/documentation/layout/index.html @@ -0,0 +1,428 @@ + + + + + + + VΛYV App - Wave Flow Duplicate + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ 9:41 +
+ + + + + + + + + + + + + +
+
+
+
+
+ + +
+ Logo +
+ + + + + + + + +
+
+ + +
+ +
+ + + + + + + + + + + + + +
+
+
+
+
+ 21 + Jun +
+
+ +
+
+
+
+
+ Concert +
+ 25 Jun +
+
+
+ + + +
+
+
+
+ Wedding +
+ 28 Jul +
+
+
+ +
+
+
+
+
+ Dinner +
+ 12 Aug +
+
+
+ +
+
+
+ 18 Aug +
+ +
+ +
+
+ May + Jun + Jul + Aug + Sep +
+
+
2023
+
+
+ + +
+ + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + \ No newline at end of file diff --git a/documentation/layout/login.html b/documentation/layout/login.html new file mode 100644 index 0000000..bf86648 --- /dev/null +++ b/documentation/layout/login.html @@ -0,0 +1,296 @@ + + + + + + + VΛYV App Interface Variations + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ 9:41 +
+ + + + + + + + + + + +
+
+
+
+
+ +
+ +
+
+
+
+ +
+ + VΛYV Logo + +

Welcome back. Enter your credentials to access your VΛYV account.

+
+ +
+
+ +
+
+ + +
+ +
+
+ +
+
+ + Forgot + Password? +
+
+
+ + +
+ +
+
+ + + Log In + + + + +
+ +
+
+ Or continue with +
+
+ +
+ + +
+ +
+

Don't have an account? Sign up

+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/documentation/layout/profile.html b/documentation/layout/profile.html new file mode 100644 index 0000000..27366da --- /dev/null +++ b/documentation/layout/profile.html @@ -0,0 +1,338 @@ + + + + + + + VΛYV App Interface Variations + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ 9:44 +
+
+
+
+
+
+ +
+ + + Edit Profile + +
+ +
+ + +
+
+ + +
+ Change Photo +
+ +
+ +
+

Personal Information

+ +
+
+
+ + +
+
+ + +
+
+ +
+ +
+ @ + +
+
+ +
+
+ + +
+
+ + +
+
+
+
+ +
+ + +
+

About

+ +
+ + +
+ +
+ + +
+
+ +
+ + +
+

Contact & Links

+ +
+ +
+ + +
+
+ +
+ +
+ + +
+
+
+
+ +
+ + +
+

App Settings

+ +
+
+
+ + + + + + + \ No newline at end of file diff --git a/documentation/layout/settings.html b/documentation/layout/settings.html new file mode 100644 index 0000000..305bd57 --- /dev/null +++ b/documentation/layout/settings.html @@ -0,0 +1,339 @@ + + + + + + + VΛYV App - Settings + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ 9:45 +
+
+
+
+
+
+ +
+ + + Settings +
+
+ +
+ + +
+ + +
+ + +
+

Account

+
+ +
+ +
+ +
+
+ + +
+

Billing & Plan

+
+ +
+ +
+
+ + +
+

Preferences

+
+
+
+
+
+ Notifications +
+
+ + +
+
+
+
+
+
+
+ Dark Mode +
+
+ + +
+
+
+
+ + + + +

Version 2.4.0 (Build 302)

+
+
+ + + + + + \ No newline at end of file diff --git a/documentation/layout/signup.html b/documentation/layout/signup.html new file mode 100644 index 0000000..20d4656 --- /dev/null +++ b/documentation/layout/signup.html @@ -0,0 +1,196 @@ + + + + + + + VΛYV App - Sign Up + + + + + + + + + + + + + +
+ +
+ 9:42 +
+ + + + + + + + + + + +
+
+
+
+
+ + + +
+
+ + VΛYV Logo +

Create Account

+

Join VΛYV to start capturing your journey.

+
+ +
+ +
+
+ + +
+
+ + +
+
+ + +
+ +
+
@
+ +
+
+ + +
+
+ +
+ +
+ +
+
+
+
+ + +
+
+ + +
+ +
+
+ + +
+ +
+
+ + +
+ +
+
+ + +
+ +
+
+ + +
+ +
+

By creating an account, you agree to our Terms of Service and Privacy + Policy.

+
+ +
+

Already have an account? Log in

+
+
+
+ + + + + + \ No newline at end of file diff --git a/documentation/layout/theme.html b/documentation/layout/theme.html new file mode 100644 index 0000000..a813fba --- /dev/null +++ b/documentation/layout/theme.html @@ -0,0 +1,399 @@ + + + + + + + VΛYV App - Theme Settings + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ 9:46 +
+
+
+
+
+
+ +
+ + + Theme + +
+ +
+ + +
+
+
+ + + + + + + + + + + + + + + + +
Preview +
+ + +
+ +
+
+ + +
+
+

Background Color

+ 10 presets +
+ +
+ + + + + + + + + + +
+
+ + +
+
+

Wave & Appearance

+ +
+ +
+ + +
+ +
+ + + + + + + + + + +
+
+ +
+ + +
+
+ + 50% +
+
+ +
+ +
+
+ +
+
+ +
+ + +
+
+ + 75% +
+
+ +
+ +
+
+ +
+
+ + +
+
+ + 3 +
+
+ 1 +
+ +
+
+ 10 +
+
+
+ + +
+
+
+ Show Grid Lines +
+
+ + +
+
+ +
+
+
+ + + + + \ No newline at end of file diff --git a/frontend/README.md b/frontend/README.md index 83105c4..d6b2c12 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -2,6 +2,12 @@ Thats me Quasar Project +## Version + +Aktuelle Frontend-Version: `0.0.1` + +Die sichtbare App-Version wird in `src/config/appVersion.js` gepflegt und muss bei weiteren Entwicklungsschritten zusammen mit `package.json` und relevanten Dokumenten aktualisiert werden. + ## Install the dependencies ```bash diff --git a/frontend/_src/App.vue b/frontend/_src/App.vue new file mode 100644 index 0000000..b22f395 --- /dev/null +++ b/frontend/_src/App.vue @@ -0,0 +1,7 @@ + + + diff --git a/frontend/_src/boot/.gitkeep b/frontend/_src/boot/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/frontend/_src/components/AddEventButton.vue b/frontend/_src/components/AddEventButton.vue new file mode 100644 index 0000000..2a58325 --- /dev/null +++ b/frontend/_src/components/AddEventButton.vue @@ -0,0 +1,33 @@ + + + + + diff --git a/frontend/_src/components/AppSettingsModal.vue b/frontend/_src/components/AppSettingsModal.vue new file mode 100644 index 0000000..09ab13b --- /dev/null +++ b/frontend/_src/components/AppSettingsModal.vue @@ -0,0 +1,322 @@ + + + + + diff --git a/frontend/_src/components/EventPanel.vue b/frontend/_src/components/EventPanel.vue new file mode 100644 index 0000000..ea0d2de --- /dev/null +++ b/frontend/_src/components/EventPanel.vue @@ -0,0 +1,546 @@ + + + + + diff --git a/frontend/_src/components/FloatingLines.vue b/frontend/_src/components/FloatingLines.vue new file mode 100644 index 0000000..e239135 --- /dev/null +++ b/frontend/_src/components/FloatingLines.vue @@ -0,0 +1,575 @@ + + + + + diff --git a/frontend/_src/components/GlowDot.vue b/frontend/_src/components/GlowDot.vue new file mode 100644 index 0000000..5ded369 --- /dev/null +++ b/frontend/_src/components/GlowDot.vue @@ -0,0 +1,208 @@ + + + + + diff --git a/frontend/_src/components/LifeWaveSettings.vue b/frontend/_src/components/LifeWaveSettings.vue new file mode 100644 index 0000000..c36579a --- /dev/null +++ b/frontend/_src/components/LifeWaveSettings.vue @@ -0,0 +1,482 @@ + + + + + diff --git a/frontend/_src/components/ModalCard.vue b/frontend/_src/components/ModalCard.vue new file mode 100644 index 0000000..d722160 --- /dev/null +++ b/frontend/_src/components/ModalCard.vue @@ -0,0 +1,171 @@ + + + + + diff --git a/frontend/_src/components/TimelineView.vue b/frontend/_src/components/TimelineView.vue new file mode 100644 index 0000000..7afecd2 --- /dev/null +++ b/frontend/_src/components/TimelineView.vue @@ -0,0 +1,552 @@ + + + + + diff --git a/frontend/_src/components/UserMenu.vue b/frontend/_src/components/UserMenu.vue new file mode 100644 index 0000000..d78d130 --- /dev/null +++ b/frontend/_src/components/UserMenu.vue @@ -0,0 +1,278 @@ + + + + + diff --git a/frontend/_src/components/ZoomControl.vue b/frontend/_src/components/ZoomControl.vue new file mode 100644 index 0000000..c53bb45 --- /dev/null +++ b/frontend/_src/components/ZoomControl.vue @@ -0,0 +1,134 @@ + + + + + diff --git a/frontend/_src/composables/useImageCache.js b/frontend/_src/composables/useImageCache.js new file mode 100644 index 0000000..17148cc --- /dev/null +++ b/frontend/_src/composables/useImageCache.js @@ -0,0 +1,192 @@ +import { ref } from 'vue' +import { db } from 'src/db' + +const THUMB_SIZE = 200 + +// In-memory URL cache: avoids repeated IndexedDB reads and blob URL creation +// Shared across all component instances. Bounded: oldest entries are evicted +// and their blob URLs revoked once the cap is reached. +const MEMORY_CACHE_MAX = 300 +const memoryCache = new Map() + +// In-flight resolutions: parallel requests for the same URL share one promise +// (many dots can mount at once referencing the same image) +const inFlight = new Map() + +function memoryCacheSet(url, blobUrl) { + if (memoryCache.size >= MEMORY_CACHE_MAX) { + // Map iterates in insertion order → first entry is the oldest + const [oldestUrl, oldestBlobUrl] = memoryCache.entries().next().value + URL.revokeObjectURL(oldestBlobUrl) + memoryCache.delete(oldestUrl) + } + memoryCache.set(url, blobUrl) +} + +/** + * Create a thumbnail (THUMB_SIZE x THUMB_SIZE) from a source image blob. + * Returns a new Blob (JPEG, quality 0.8). + */ +function createThumbnail(blob) { + return new Promise((resolve, reject) => { + const img = new Image() + const url = URL.createObjectURL(blob) + img.onload = () => { + const canvas = document.createElement('canvas') + canvas.width = THUMB_SIZE + canvas.height = THUMB_SIZE + + const ctx = canvas.getContext('2d') + // Cover crop: center the image + const scale = Math.max(THUMB_SIZE / img.width, THUMB_SIZE / img.height) + const w = img.width * scale + const h = img.height * scale + const x = (THUMB_SIZE - w) / 2 + const y = (THUMB_SIZE - h) / 2 + ctx.drawImage(img, x, y, w, h) + + canvas.toBlob( + (thumbBlob) => { + URL.revokeObjectURL(url) + if (thumbBlob) resolve(thumbBlob) + else reject(new Error('Canvas toBlob failed')) + }, + 'image/jpeg', + 0.8 + ) + } + img.onerror = () => { + URL.revokeObjectURL(url) + reject(new Error('Image load failed')) + } + img.src = url + }) +} + +/** + * Fetch an image from URL, cache thumbnail in IndexedDB, return blob URL. + */ +async function fetchAndCache(imageUrl, eventId) { + const response = await fetch(imageUrl) + if (!response.ok) throw new Error(`Fetch failed: ${response.status}`) + const blob = await response.blob() + + // Create thumbnail + const thumbBlob = await createThumbnail(blob) + + // Store in IndexedDB + await db.imageCache.put({ + url: imageUrl, + eventId, + type: 'thumbnail', + blob: thumbBlob, + cachedAt: Date.now() + }) + + const blobUrl = URL.createObjectURL(thumbBlob) + memoryCacheSet(imageUrl, blobUrl) + return blobUrl +} + +/** + * Get a cached thumbnail blob URL from IndexedDB. + * Returns null if not cached. + */ +async function getCachedImage(imageUrl) { + // Check memory first + if (memoryCache.has(imageUrl)) return memoryCache.get(imageUrl) + + try { + const entry = await db.imageCache.get(imageUrl) + if (entry?.blob) { + const blobUrl = URL.createObjectURL(entry.blob) + memoryCacheSet(imageUrl, blobUrl) + return blobUrl + } + } catch (e) { + console.warn('Image cache read failed:', e) + } + return null +} + +/** + * Resolve an image URL to a displayable src (memory → IndexedDB → fetch). + * Concurrent calls for the same URL share a single in-flight promise. + * Falls back to the original URL if caching fails. + */ +export function resolveImage(imageUrl, eventId) { + if (!imageUrl) return Promise.resolve(null) + + if (memoryCache.has(imageUrl)) { + return Promise.resolve(memoryCache.get(imageUrl)) + } + + if (inFlight.has(imageUrl)) { + return inFlight.get(imageUrl) + } + + const promise = (async () => { + const cached = await getCachedImage(imageUrl) + if (cached) return cached + try { + return await fetchAndCache(imageUrl, eventId) + } catch (e) { + // Fallback: use original URL directly (works when online) + console.warn('Image cache failed, using direct URL:', e) + return imageUrl + } + })().finally(() => inFlight.delete(imageUrl)) + + inFlight.set(imageUrl, promise) + return promise +} + +/** + * Composable: resolves an event's image to a displayable src. + * - Checks memory cache → IndexedDB cache → fetches & caches thumbnail. + * - Returns reactive `resolvedSrc` ref. + */ +export function useImageCache(imageUrl, eventId) { + const resolvedSrc = ref(null) + const loading = ref(true) + + resolveImage(imageUrl, eventId) + .then((src) => { resolvedSrc.value = src }) + .finally(() => { loading.value = false }) + + return { resolvedSrc, loading } +} + +/** + * Resolve full-res image for EventPanel (no thumbnail, just cache check). + * Returns the original URL — browser Cache-Control handles caching. + * When offline, falls back to cached thumbnail. + */ +export async function resolveFullRes(imageUrl) { + if (!imageUrl) return null + + // If online, return original URL (browser caches via HTTP headers) + if (navigator.onLine) return imageUrl + + // Offline: try cached thumbnail as fallback + const cached = await getCachedImage(imageUrl) + return cached || imageUrl +} + +/** + * Clear all cached images for a specific event. + */ +export async function clearEventImages(eventId) { + try { + const entries = await db.imageCache.where('eventId').equals(eventId).toArray() + for (const entry of entries) { + if (memoryCache.has(entry.url)) { + URL.revokeObjectURL(memoryCache.get(entry.url)) + memoryCache.delete(entry.url) + } + } + await db.imageCache.where('eventId').equals(eventId).delete() + } catch (e) { + console.warn('Clear event images failed:', e) + } +} diff --git a/frontend/_src/composables/usePanelDrag.js b/frontend/_src/composables/usePanelDrag.js new file mode 100644 index 0000000..98a6896 --- /dev/null +++ b/frontend/_src/composables/usePanelDrag.js @@ -0,0 +1,137 @@ +import { ref, onBeforeUnmount } from 'vue' + +/** + * Composable for draggable bottom-sheet panels with snap points. + * + * Snap stops (in dvh): 100, 75, 50 + * Close threshold: below 25dvh + * + * @param {Function} onClose - called when panel is dragged below threshold + * @returns {{ panelHeight, handleListeners, resetHeight }} + */ +export function usePanelDrag(onClose) { + const SNAP_POINTS = [100, 75, 50, 25] // dvh values + const CLOSE_THRESHOLD = 15 // below this → close + + // Current panel height in dvh (null = use CSS default) + const panelHeight = ref(null) + const isDragging = ref(false) + + let dragging = false + let startY = 0 + let startHeight = 0 + + function getViewportHeight() { + return window.innerHeight + } + + function pxToDvh(px) { + return (px / getViewportHeight()) * 100 + } + + function findNearestSnap(dvh) { + let nearest = SNAP_POINTS[0] + let minDist = Infinity + for (const snap of SNAP_POINTS) { + const dist = Math.abs(dvh - snap) + if (dist < minDist) { + minDist = dist + nearest = snap + } + } + return nearest + } + + function onPointerDown(e) { + // Only primary button / single touch + if (e.button && e.button !== 0) return + dragging = true + isDragging.value = true + + const clientY = e.touches ? e.touches[0].clientY : e.clientY + startY = clientY + + // Current height: if panelHeight is set use it, else measure from CSS + const currentDvh = panelHeight.value ?? 75 + startHeight = currentDvh + + document.addEventListener('pointermove', onPointerMove, { passive: false }) + document.addEventListener('pointerup', onPointerUp) + document.addEventListener('touchmove', onTouchMove, { passive: false }) + document.addEventListener('touchend', onTouchEnd) + + // Prevent text selection + e.preventDefault() + } + + function onPointerMove(e) { + if (!dragging) return + const clientY = e.clientY + handleMove(clientY) + } + + function onTouchMove(e) { + if (!dragging) return + if (e.touches.length !== 1) return + handleMove(e.touches[0].clientY) + e.preventDefault() + } + + function handleMove(clientY) { + const deltaY = clientY - startY + const deltaDvh = pxToDvh(deltaY) + const newHeight = Math.max(10, Math.min(100, startHeight - deltaDvh)) + panelHeight.value = newHeight + } + + function onPointerUp() { + finishDrag() + } + + function onTouchEnd() { + finishDrag() + } + + function finishDrag() { + if (!dragging) return + dragging = false + isDragging.value = false + + cleanup() + + const currentHeight = panelHeight.value ?? 75 + if (currentHeight < CLOSE_THRESHOLD) { + panelHeight.value = null + onClose() + } else { + // Snap to nearest point + panelHeight.value = findNearestSnap(currentHeight) + } + } + + function cleanup() { + document.removeEventListener('pointermove', onPointerMove) + document.removeEventListener('pointerup', onPointerUp) + document.removeEventListener('touchmove', onTouchMove) + document.removeEventListener('touchend', onTouchEnd) + } + + function resetHeight() { + panelHeight.value = null + } + + onBeforeUnmount(cleanup) + + // Event listeners to bind on the handle element + const handleListeners = { + pointerdown: onPointerDown, + touchstart: onPointerDown, + } + + return { + panelHeight, + isDragging, + handleListeners, + resetHeight, + } +} diff --git a/frontend/_src/css/app.css b/frontend/_src/css/app.css new file mode 100644 index 0000000..1d8d514 --- /dev/null +++ b/frontend/_src/css/app.css @@ -0,0 +1 @@ +.controls{display:flex;justify-content:space-between;width:100%;max-width:500px;margin-bottom:10px}.button{padding:6px 12px;background-color:#4f46e5;color:#fff;border:none;border-radius:4px;cursor:pointer}.visualization-container{position:relative;width:100%;height:calc(100vh - 86px);overflow:hidden}.gradient-bg{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1;background:linear-gradient(45deg, #8634f9, #ffab1a, #ff2fa2);background-size:200% 200%;animation:gradientAnimation 20s ease infinite}@keyframes gradientAnimation{0%{background-position:0% 0%}25%{background-position:100% 0%}50%{background-position:100% 100%}75%{background-position:0% 100%}100%{background-position:0% 0%}}.median{position:absolute;top:51.2%;left:0;right:0;height:1px;background-color:rgba(255,255,255,.3);z-index:1}.scroll-container{position:relative;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;min-height:400px;z-index:2;-ms-overflow-style:none;scrollbar-width:none}.scroll-container::-webkit-scrollbar{display:none}.smooth-scroll{scroll-behavior:smooth}.active{cursor:grabbing}.spacer{height:100vh}.dot-tooltip{pointer-events:none;opacity:1}.dot-tooltip .tooltip-background{fill:rgba(0,0,0,0)}.dot-tooltip .tooltip-content{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%;height:100%;color:#fff}.dot-tooltip .image_container{margin-top:8px;box-shadow:0 0 20px 0 rgba(255,255,255,.25);transition:box-shadow .25s ease-in-out;width:80px;height:80px;overflow:hidden;border-radius:50%;border:2px solid #fff;display:flex;justify-content:center}.dot-tooltip .image_container:hover{box-shadow:0 0 30px 0 rgba(255,255,255,.8)}.dot-tooltip .tooltip-image{width:100%;height:auto;display:block;pointer-events:auto}.dot-tooltip .tooltip-title{font-size:14px;font-weight:400;margin-bottom:2px;text-align:center;text-wrap:balance;-webkit-hyphens:auto;hyphens:auto;line-height:1.1}.dot-tooltip .tooltip-description{font-size:12px;font-weight:300}.dot-tooltip .tooltip-arrow{width:1px;height:30px;background:linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5), transparent)}.dot{transition:r .2s ease,fill .2s ease;cursor:pointer}.dot:hover{fill:rgba(255,255,255,.9);filter:drop-shadow(0 0 5px rgba(255, 255, 255, 0.8))}.tooltip-img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;border-radius:4px}.q-card{box-shadow:none !important}.q-card--bordered{box-shadow:none !important}.q-card--flat{box-shadow:none !important}.bg-white,.q-layout__section--marginal{background:rgba(0,0,0,0) !important}footer .text-primary,footer .text-grey{color:#fff !important} \ No newline at end of file diff --git a/frontend/_src/css/app.scss b/frontend/_src/css/app.scss new file mode 100644 index 0000000..2342f87 --- /dev/null +++ b/frontend/_src/css/app.scss @@ -0,0 +1,54 @@ +// Glass button style +.glass--button { + background: rgba(128, 128, 128, 0.1); + border: 1px solid rgba(128, 128, 128, 0.15); + backdrop-filter: blur(12px); + -webkit-backdrop-filter: blur(12px); + transition: background 0.2s ease; + + &:hover { + background: rgba(128, 128, 128, 0.18); + } + + &:active { + transform: scale(0.95); + } +} + +// Glass panel style — strong blur for slide-up panels +.glass--panel { + background: rgba(255, 255, 255, 0.7); + border-top: 1px solid rgba(255, 255, 255, 0.3); + backdrop-filter: blur(20px); + -webkit-backdrop-filter: blur(20px); + color: #1a1a1a; + + .body--dark & { + background: rgba(30, 30, 30, 0.7); + border-top-color: rgba(255, 255, 255, 0.08); + color: #f5f5f5; + } +} + +// GlowDot animations — soft opacity pulse on the glow aura +@keyframes glowPulse { + 0%, 100% { + opacity: 0.85; + transform: scale(1); + } + 50% { + opacity: 1; + transform: scale(1.06); + } +} + +@keyframes ghostPulse { + 0%, 100% { + opacity: 0.5; + transform: scale(1); + } + 50% { + opacity: 0.9; + transform: scale(1.12); + } +} diff --git a/frontend/_src/css/quasar.variables.scss b/frontend/_src/css/quasar.variables.scss new file mode 100644 index 0000000..12caa3d --- /dev/null +++ b/frontend/_src/css/quasar.variables.scss @@ -0,0 +1,25 @@ +// Quasar SCSS (& Sass) Variables +// -------------------------------------------------- +// To customize the look and feel of this app, you can override +// the Sass/SCSS variables found in Quasar's source Sass/SCSS files. + +// Check documentation for full list of Quasar variables + +// Your own variables (that are declared here) and Quasar's own +// ones will be available out of the box in your .vue/.scss/.sass files + +// It's highly recommended to change the default colors +// to match your app's branding. +// Tip: Use the "Theme Builder" on Quasar's documentation website. + +$primary : #d946ef; +$secondary : #a855f7; +$accent : #ec4899; + +$dark : #1D1D1D; +$dark-page : #121212; + +$positive : #21BA45; +$negative : #C10015; +$info : #31CCEC; +$warning : #F2C037; diff --git a/frontend/_src/db/index.js b/frontend/_src/db/index.js new file mode 100644 index 0000000..85e7dbe --- /dev/null +++ b/frontend/_src/db/index.js @@ -0,0 +1,17 @@ +import Dexie from 'dexie' + +export const db = new Dexie('thatsMeDB') + +db.version(1).stores({ + // Events: indexed by id (PK), date for sorted queries, syncStatus for dirty tracking + events: 'id, date, updatedAt, syncStatus', + + // Sync queue: outbound mutations waiting to be pushed to server + syncQueue: '++queueId, eventId, action, createdAt', + + // Image cache: offline blob storage for thumbnails + imageCache: 'url, eventId, type, cachedAt', + + // Metadata: key-value pairs (lastSyncCursor, userId, etc.) + meta: 'key' +}) diff --git a/frontend/_src/layouts/LifeWaveLayout.vue b/frontend/_src/layouts/LifeWaveLayout.vue new file mode 100644 index 0000000..de8fa40 --- /dev/null +++ b/frontend/_src/layouts/LifeWaveLayout.vue @@ -0,0 +1,471 @@ + + + + + diff --git a/frontend/_src/pages/ErrorNotFound.vue b/frontend/_src/pages/ErrorNotFound.vue new file mode 100644 index 0000000..4b53e5a --- /dev/null +++ b/frontend/_src/pages/ErrorNotFound.vue @@ -0,0 +1,27 @@ + + + diff --git a/frontend/_src/pages/LifeWavePage.vue b/frontend/_src/pages/LifeWavePage.vue new file mode 100644 index 0000000..107ce06 --- /dev/null +++ b/frontend/_src/pages/LifeWavePage.vue @@ -0,0 +1,8 @@ + + + diff --git a/frontend/_src/pages/LoginPage.vue b/frontend/_src/pages/LoginPage.vue new file mode 100644 index 0000000..d9983dc --- /dev/null +++ b/frontend/_src/pages/LoginPage.vue @@ -0,0 +1,68 @@ + + + \ No newline at end of file diff --git a/frontend/_src/pages/PasswordResetPage.vue b/frontend/_src/pages/PasswordResetPage.vue new file mode 100644 index 0000000..316abb7 --- /dev/null +++ b/frontend/_src/pages/PasswordResetPage.vue @@ -0,0 +1,95 @@ + + + \ No newline at end of file diff --git a/frontend/_src/pages/SignUpPage.vue b/frontend/_src/pages/SignUpPage.vue new file mode 100644 index 0000000..9979b90 --- /dev/null +++ b/frontend/_src/pages/SignUpPage.vue @@ -0,0 +1,138 @@ + + \ No newline at end of file diff --git a/frontend/_src/router/index.js b/frontend/_src/router/index.js new file mode 100644 index 0000000..226eb50 --- /dev/null +++ b/frontend/_src/router/index.js @@ -0,0 +1,30 @@ +import { defineRouter } from '#q-app/wrappers' +import { createRouter, createMemoryHistory, createWebHistory, createWebHashHistory } from 'vue-router' +import routes from './routes' + +/* + * If not building with SSR mode, you can + * directly export the Router instantiation; + * + * The function below can be async too; either use + * async/await or return a Promise which resolves + * with the Router instance. + */ + +export default defineRouter(function (/* { store, ssrContext } */) { + const createHistory = process.env.SERVER + ? createMemoryHistory + : (process.env.VUE_ROUTER_MODE === 'history' ? createWebHistory : createWebHashHistory) + + const Router = createRouter({ + scrollBehavior: () => ({ left: 0, top: 0 }), + routes, + + // Leave this as is and make changes in quasar.conf.js instead! + // quasar.conf.js -> build -> vueRouterMode + // quasar.conf.js -> build -> publicPath + history: createHistory(process.env.VUE_ROUTER_BASE) + }) + + return Router +}) diff --git a/frontend/_src/router/routes.js b/frontend/_src/router/routes.js new file mode 100644 index 0000000..ccc6533 --- /dev/null +++ b/frontend/_src/router/routes.js @@ -0,0 +1,17 @@ +const routes = [ + { + path: '/', + component: () => import('layouts/LifeWaveLayout.vue'), + children: [ + { path: '', component: () => import('pages/LifeWavePage.vue') } + ] + }, + + // Always leave this as last one + { + path: '/:catchAll(.*)*', + component: () => import('pages/ErrorNotFound.vue'), + }, +] + +export default routes diff --git a/frontend/_src/services/syncService.js b/frontend/_src/services/syncService.js new file mode 100644 index 0000000..f360f61 --- /dev/null +++ b/frontend/_src/services/syncService.js @@ -0,0 +1,253 @@ +import { ref } from 'vue' +import { db } from 'src/db' + +// API base URL — configured per environment +const API_BASE = import.meta.env.VITE_API_BASE || '/api' + +const isSyncing = ref(false) +const isOnline = ref(navigator.onLine) +const lastSyncAt = ref(null) + +// Track online status +window.addEventListener('online', () => { + isOnline.value = true + processSyncQueue() +}) +window.addEventListener('offline', () => { + isOnline.value = false +}) + +/** + * Get the stored OAuth access token. + */ +async function getToken() { + try { + const meta = await db.meta.get('accessToken') + return meta?.value || null + } catch { + return null + } +} + +/** + * Store an OAuth access token. + */ +async function setToken(token) { + await db.meta.put({ key: 'accessToken', value: token }) +} + +/** + * Authenticated fetch wrapper. + */ +async function apiFetch(path, options = {}) { + const token = await getToken() + if (!token) throw new Error('Not authenticated') + + const response = await fetch(`${API_BASE}${path}`, { + ...options, + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + Authorization: `Bearer ${token}`, + ...options.headers, + }, + }) + + if (response.status === 401) { + // Token expired — clear it + await db.meta.delete('accessToken') + throw new Error('Unauthorized') + } + + return response +} + +/** + * Process the outbound sync queue (FIFO). + * Called on app start, every 30s when online, and on reconnect. + */ +async function processSyncQueue() { + if (!isOnline.value || isSyncing.value) return + + const token = await getToken() + if (!token) return + + isSyncing.value = true + + try { + const queue = await db.syncQueue.orderBy('queueId').toArray() + if (queue.length === 0) { + isSyncing.value = false + return + } + + // Batch sync: send up to 100 mutations at once + const batch = queue.slice(0, 100) + const mutations = batch.map((item) => ({ + action: item.action, + eventId: item.eventId, + payload: item.payload, + })) + + const response = await apiFetch('/events/sync', { + method: 'POST', + body: JSON.stringify({ mutations }), + }) + + if (response.ok) { + const data = await response.json() + + // Remove successfully processed items from queue + const processedIds = [] + data.results.forEach((result, i) => { + if (result.status === 'ok') { + processedIds.push(batch[i].queueId) + } + }) + + if (processedIds.length > 0) { + await db.syncQueue.bulkDelete(processedIds) + } + + // Update syncStatus on local events + for (const result of data.results) { + if (result.status === 'ok') { + const event = await db.events.get(result.eventId) + if (event && event.syncStatus !== 'local') { + await db.events.update(result.eventId, { syncStatus: 'synced' }) + } + } + } + + lastSyncAt.value = Date.now() + + // If there are more items, process next batch + if (queue.length > 100) { + await processSyncQueue() + } + } + } catch (e) { + console.warn('Sync queue processing failed:', e) + } finally { + isSyncing.value = false + } +} + +/** + * Pull remote changes since last sync cursor. + * Merges with local data using "last write wins" on updatedAt. + */ +async function pullRemoteChanges() { + if (!isOnline.value) return + + const token = await getToken() + if (!token) return + + try { + const lastSync = await db.meta.get('lastSyncCursor') + const since = lastSync?.value || null + + let url = '/events?limit=200' + if (since) { + url += `&since=${since}` + } + + const response = await apiFetch(url) + if (!response.ok) return + + const data = await response.json() + const remoteEvents = data.data || [] + + for (const remote of remoteEvents) { + const local = await db.events.get(remote.id) + + if (!local) { + // New event from server + await db.events.put({ + id: remote.id, + title: remote.title, + date: remote.date, + emotion: remote.emotion, + customColor: remote.customColor, + gradientPreset: remote.gradientPreset, + image: remote.image, + note: remote.note, + syncStatus: 'synced', + createdAt: remote.createdAt, + updatedAt: remote.updatedAt, + }) + } else if (remote.updatedAt > local.updatedAt && local.syncStatus === 'synced') { + // Remote is newer and local hasn't been modified — update + await db.events.update(remote.id, { + title: remote.title, + date: remote.date, + emotion: remote.emotion, + customColor: remote.customColor, + gradientPreset: remote.gradientPreset, + image: remote.image, + note: remote.note, + syncStatus: 'synced', + updatedAt: remote.updatedAt, + }) + } + // If local is modified, skip — local changes will be pushed via sync queue + } + + // Update sync cursor + await db.meta.put({ key: 'lastSyncCursor', value: new Date().toISOString() }) + + // Handle pagination (cursor-based) + if (data.next_cursor) { + // There are more pages — but for now we only pull one batch + // Future: iterate through pages + } + + lastSyncAt.value = Date.now() + } catch (e) { + console.warn('Pull remote changes failed:', e) + } +} + +/** + * Full sync: push local changes, then pull remote. + */ +async function fullSync() { + await processSyncQueue() + await pullRemoteChanges() +} + +// Auto-sync interval (30s) +let syncInterval = null + +function startAutoSync() { + if (syncInterval) return + syncInterval = setInterval(() => { + if (isOnline.value) { + fullSync() + } + }, 30000) + + // Initial sync + fullSync() +} + +function stopAutoSync() { + if (syncInterval) { + clearInterval(syncInterval) + syncInterval = null + } +} + +export { + isOnline, + isSyncing, + lastSyncAt, + getToken, + setToken, + apiFetch, + processSyncQueue, + pullRemoteChanges, + fullSync, + startAutoSync, + stopAutoSync, +} diff --git a/frontend/_src/stores/events.js b/frontend/_src/stores/events.js new file mode 100644 index 0000000..07dfe81 --- /dev/null +++ b/frontend/_src/stores/events.js @@ -0,0 +1,418 @@ +import { defineStore } from 'pinia' +import { ref, computed, watch, shallowRef, triggerRef } from 'vue' +import { db } from 'src/db' +import { startAutoSync, getToken } from 'src/services/syncService' + +// Color interpolation +function lerpColor(a, b, t) { + const ar = parseInt(a.slice(1, 3), 16) + const ag = parseInt(a.slice(3, 5), 16) + const ab = parseInt(a.slice(5, 7), 16) + const br = parseInt(b.slice(1, 3), 16) + const bg = parseInt(b.slice(3, 5), 16) + const bb = parseInt(b.slice(5, 7), 16) + const r = Math.round(ar + (br - ar) * t) + const g = Math.round(ag + (bg - ag) * t) + const blue = Math.round(ab + (bb - ab) * t) + return `#${r.toString(16).padStart(2, '0')}${g.toString(16).padStart(2, '0')}${blue.toString(16).padStart(2, '0')}` +} + +// Gradient presets: [negative, neutral, positive] +const GRADIENT_PRESETS = [ + { name: 'Standard', colors: ['#E91E63', '#FFD700', '#4CAF50'] }, + { name: 'Sunset', colors: ['#FD1D1D', '#FCB045', '#833AB4'] }, + { name: 'Earth', colors: ['#ED8153', '#ED8153', '#217B9E'] }, + { name: 'Ocean', colors: ['#00D4FF', '#164173', '#440559'] }, + { name: 'Spring', colors: ['#FDBB2D', '#96BE74', '#22C1C3'] }, + { name: 'Neon', colors: ['#FC466B', '#9A52B6', '#3F5EFB'] }, + { name: 'Pastel', colors: ['#EEAECA', '#C2B4D9', '#94BBE9'] }, + { name: 'Aurora', colors: ['#FF6B6B', '#C084FC', '#67E8F9'] }, + { name: 'Forest', colors: ['#DC2626', '#A3A830', '#059669'] }, + { name: 'Berry', colors: ['#F472B6', '#FB923C', '#A78BFA'] } +] + +// Glow color logic: emotion value → color, with optional gradient preset +function emotionToColor(emotion, gradientIdx = null) { + const preset = gradientIdx !== null ? GRADIENT_PRESETS[gradientIdx] : null + if (preset) { + const [neg, mid, pos] = preset.colors + if (emotion >= 0) { + return lerpColor(mid, pos, emotion) + } else { + return lerpColor(mid, neg, Math.abs(emotion)) + } + } + if (emotion >= 0) { + if (emotion < 0.5) { + return lerpColor('#FF6B35', '#FFD700', emotion / 0.5) + } + return lerpColor('#FFD700', '#4CAF50', (emotion - 0.5) / 0.5) + } else { + const abs = Math.abs(emotion) + if (abs < 0.5) { + return lerpColor('#2196F3', '#9C27B0', abs / 0.5) + } + return lerpColor('#9C27B0', '#E91E63', (abs - 0.5) / 0.5) + } +} + +// Demo seed data +const demoEvents = [ + { id: crypto.randomUUID(), title: 'Erster Schultag', date: '1995-09-01', emotion: 0.6, customColor: null, gradientPreset: null, image: null, note: '', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, + { id: crypto.randomUUID(), title: 'Abiball', date: '2004-06-25', emotion: 0.85, customColor: null, gradientPreset: 1, image: 'demo/photo-1530103862676-de8c9debad1d.jpeg', note: 'Was für eine Party!', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, + { id: crypto.randomUUID(), title: 'Trennung', date: '2010-03-15', emotion: -0.7, customColor: null, gradientPreset: null, image: null, note: '', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, + { id: crypto.randomUUID(), title: 'Bergwanderung', date: '2014-08-12', emotion: 0.75, customColor: null, gradientPreset: 4, image: 'demo/photo-1534067783941-51c9c23ecefd.jpeg', note: 'Unvergesslicher Ausblick', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, + { id: crypto.randomUUID(), title: 'Jobverlust', date: '2016-11-03', emotion: -0.6, customColor: null, gradientPreset: null, image: null, note: '', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, + { id: crypto.randomUUID(), title: 'Hochzeit', date: '2018-07-20', emotion: 0.95, customColor: null, gradientPreset: 5, image: 'demo/photo-1506905925346-21bda4d32df4.jpeg', note: 'Der schönste Tag', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, + { id: crypto.randomUUID(), title: 'Umzug', date: '2021-04-01', emotion: -0.3, customColor: null, gradientPreset: null, image: null, note: '', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, + { id: crypto.randomUUID(), title: 'Neuer Job', date: '2023-01-10', emotion: 0.5, customColor: null, gradientPreset: null, image: 'demo/photo-1530103862676-de8c9debad1d.jpeg', note: 'Neues Kapitel', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() } +] + +// Generate realistic demo events for testing at scale +function generateManyEvents(count = 500) { + // Realistic life event categories with emotion ranges + const categories = [ + // Positive events + { titles: ['Geburtstag', 'Geburtstagsfeier', 'Überraschungsparty'], emotionRange: [0.3, 0.8], noteChance: 0.4, notes: ['Tolles Fest!', 'Viele Geschenke', 'Schöner Tag mit Freunden', 'Alles Gute!'] }, + { titles: ['Urlaub', 'Strandurlaub', 'Städtereise', 'Roadtrip', 'Backpacking'], emotionRange: [0.4, 0.95], noteChance: 0.6, notes: ['Unvergesslich', 'Wunderschöne Landschaft', 'Endlich Erholung', 'Muss ich wiederholen'] }, + { titles: ['Hochzeit', 'Verlobung', 'Jahrestag'], emotionRange: [0.7, 1.0], noteChance: 0.8, notes: ['Der schönste Tag', 'Für immer', 'Tränen der Freude', 'Unbeschreiblich'] }, + { titles: ['Beförderung', 'Neuer Job', 'Gehaltserhöhung', 'Jobangebot'], emotionRange: [0.5, 0.9], noteChance: 0.5, notes: ['Endlich!', 'Harte Arbeit zahlt sich aus', 'Neues Kapitel', 'Verdient'] }, + { titles: ['Konzert', 'Festival', 'Theaterbesuch', 'Oper'], emotionRange: [0.3, 0.85], noteChance: 0.5, notes: ['Gänsehaut', 'Beste Band ever', 'Geniale Atmosphäre', 'Nächstes Jahr wieder'] }, + { titles: ['Geburt', 'Baby da!', 'Nachwuchs'], emotionRange: [0.85, 1.0], noteChance: 0.9, notes: ['Das größte Wunder', 'Willkommen auf der Welt', 'Unbeschreibliches Glück'] }, + { titles: ['Abschluss', 'Prüfung bestanden', 'Diplom', 'Master geschafft'], emotionRange: [0.6, 0.95], noteChance: 0.6, notes: ['Geschafft!', 'Jahre harter Arbeit', 'Stolz', 'Endlich vorbei'] }, + { titles: ['Bergwanderung', 'Gipfel erreicht', 'Marathon geschafft', 'Triathlon'], emotionRange: [0.5, 0.9], noteChance: 0.5, notes: ['Was für ein Ausblick!', 'Körperliche Grenzen überwunden', 'Nie aufgeben'] }, + { titles: ['Hauskauf', 'Wohnungseinweihung', 'Renovierung fertig'], emotionRange: [0.4, 0.8], noteChance: 0.5, notes: ['Endlich eigene vier Wände', 'Traum wird wahr', 'Viel Arbeit, aber es lohnt sich'] }, + { titles: ['Erstes Date', 'Zusammengekommen', 'Liebeserklärung'], emotionRange: [0.5, 0.95], noteChance: 0.6, notes: ['Schmetterlinge', 'Liebe auf den ersten Blick', 'Endlich getraut'] }, + // Neutral events + { titles: ['Umzug', 'Neue Stadt', 'Wohnungswechsel'], emotionRange: [-0.2, 0.3], noteChance: 0.4, notes: ['Neuanfang', 'Alles anders', 'Spannend und stressig zugleich'] }, + { titles: ['Arztbesuch', 'Vorsorge', 'Check-up'], emotionRange: [-0.1, 0.1], noteChance: 0.2, notes: ['Alles okay', 'Routine'] }, + { titles: ['Meeting', 'Präsentation', 'Workshop'], emotionRange: [-0.1, 0.4], noteChance: 0.3, notes: ['Gut gelaufen', 'Viel gelernt', 'Anstrengend'] }, + { titles: ['Friseur', 'Shopping', 'Einkauf'], emotionRange: [0.0, 0.3], noteChance: 0.1, notes: ['Neuer Look', 'Guter Fund'] }, + // Negative events + { titles: ['Trennung', 'Beziehungsende', 'Scheidung'], emotionRange: [-1.0, -0.5], noteChance: 0.5, notes: ['Schmerzhaft', 'Warum?', 'Es ist besser so', 'Brauche Zeit'] }, + { titles: ['Jobverlust', 'Kündigung', 'Firma pleite'], emotionRange: [-0.9, -0.4], noteChance: 0.5, notes: ['Schock', 'Wie geht es weiter?', 'Unverdient'] }, + { titles: ['Krankheit', 'OP', 'Krankenhaus'], emotionRange: [-0.8, -0.3], noteChance: 0.6, notes: ['Wird schon', 'Hauptsache gesund werden', 'Lange Genesung'] }, + { titles: ['Abschied', 'Verlust', 'Trauer'], emotionRange: [-1.0, -0.6], noteChance: 0.7, notes: ['Ruhe in Frieden', 'Fehlt mir', 'Unvergessen', 'Schwerer Tag'] }, + { titles: ['Streit', 'Konflikt', 'Auseinandersetzung'], emotionRange: [-0.7, -0.2], noteChance: 0.3, notes: ['Muss nicht sein', 'Hoffe auf Klärung'] }, + { titles: ['Unfall', 'Panne', 'Autopanne'], emotionRange: [-0.6, -0.2], noteChance: 0.4, notes: ['Zum Glück nichts Schlimmes', 'Ärgerlich', 'Hätte schlimmer sein können'] }, + { titles: ['Prüfung nicht bestanden', 'Absage', 'Ablehnung'], emotionRange: [-0.7, -0.3], noteChance: 0.4, notes: ['Nächstes Mal', 'Nicht aufgeben', 'Enttäuschend'] }, + ] + + const demoImages = [ + 'demo/photo-1530103862676-de8c9debad1d.jpeg', + 'demo/photo-1534067783941-51c9c23ecefd.jpeg', + 'demo/photo-1506905925346-21bda4d32df4.jpeg' + ] + + // Seeded random for reproducibility + let seed = 42 + function rand() { + seed = (seed * 16807 + 0) % 2147483647 + return (seed - 1) / 2147483646 + } + + function randInt(min, max) { + return Math.floor(rand() * (max - min + 1)) + min + } + + function pick(arr) { + return arr[Math.floor(rand() * arr.length)] + } + + function randFloat(min, max) { + return Math.round((min + rand() * (max - min)) * 100) / 100 + } + + const evts = [] + const startYear = 1985 + const endYear = 2026 + + // Generate events with realistic distribution (more events in recent years) + for (let i = 0; i < count; i++) { + // Weight towards recent years: cube root distribution + const t = rand() + const yearFloat = startYear + (endYear - startYear) * (t * t * 0.4 + t * 0.6) + const year = Math.floor(yearFloat) + const month = randInt(1, 12) + const day = randInt(1, 28) // safe for all months + const date = `${year}-${String(month).padStart(2, '0')}-${String(day).padStart(2, '0')}` + + const cat = pick(categories) + const title = pick(cat.titles) + const emotion = randFloat(cat.emotionRange[0], cat.emotionRange[1]) + const hasNote = rand() < cat.noteChance + const note = hasNote ? pick(cat.notes) : '' + const hasImage = rand() < 0.15 // 15% chance + const image = hasImage ? pick(demoImages) : null + const hasPreset = rand() < 0.25 // 25% chance + const gradientPreset = hasPreset ? randInt(0, 9) : null + + evts.push({ + id: crypto.randomUUID(), + title, + date, + emotion, + customColor: null, + gradientPreset, + image, + note, + syncStatus: 'local', + createdAt: Date.now(), + updatedAt: Date.now() + }) + } + + // Sort by date + evts.sort((a, b) => a.date.localeCompare(b.date)) + return evts +} + +export { emotionToColor, GRADIENT_PRESETS, demoEvents, generateManyEvents } + +export const useEventsStore = defineStore('events', () => { + // shallowRef: event objects are never mutated field-by-field, only replaced + // wholesale — deep reactivity on 500+ objects would be pure proxy overhead. + // In-place array mutations must call triggerRef(events) afterwards. + const events = shallowRef([]) + const isLoaded = ref(false) + const selectedEventId = ref(null) + const panelOpen = ref(false) + const editingEventId = ref(null) + + // Load events from IndexedDB; seed demo data on first launch + async function init() { + try { + let stored = await db.events.orderBy('date').toArray() + if (stored.length === 0) { + const seed = generateManyEvents(500) + await db.events.bulkPut(seed) + stored = seed + } + events.value = stored + } catch (e) { + console.warn('Dexie load failed, using demo data:', e) + events.value = [...demoEvents] + } + isLoaded.value = true + + // Start auto-sync if authenticated + getToken().then((token) => { + if (token) startAutoSync() + }) + } + + // Fire-and-forget DB write (UI already updated via ref) + function dbPut(event) { + db.events.put(event).catch(e => console.warn('Dexie put failed:', e)) + } + + function dbDelete(id) { + db.events.delete(id).catch(e => console.warn('Dexie delete failed:', e)) + } + + function dbQueueSync(eventId, action, payload) { + db.syncQueue.add({ eventId, action, payload, createdAt: Date.now() }) + .catch(e => console.warn('Dexie sync queue failed:', e)) + } + + // Queue an 'update' mutation. Any older pending update for the same event + // is replaced, so the queue holds at most one update per event. + function dbQueueUpdate(event) { + db.syncQueue + .where('eventId').equals(event.id) + .and((item) => item.action === 'update') + .delete() + .then(() => db.syncQueue.add({ + eventId: event.id, + action: 'update', + payload: { ...event }, + createdAt: Date.now() + })) + .catch(e => console.warn('Dexie sync queue failed:', e)) + } + + // Ghost event for live preview while creating/editing + const ghostEmotion = ref(0) + const ghostCustomColor = ref(null) + const ghostGradientPreset = ref(null) + const ghostTitle = ref('') + const ghostDate = ref(new Date().toISOString().slice(0, 10)) + const ghostNote = ref('') + const ghostImage = ref(null) + + const ghostEvent = computed(() => ({ + id: '__ghost__', + title: ghostTitle.value || 'New Event', + date: ghostDate.value, + emotion: ghostEmotion.value, + customColor: ghostCustomColor.value, + gradientPreset: ghostGradientPreset.value, + image: ghostImage.value, + note: ghostNote.value + })) + + const sortedEvents = computed(() => { + // Dates are ISO strings (YYYY-MM-DD) — lexicographic order is chronological + return [...events.value].sort((a, b) => a.date.localeCompare(b.date)) + }) + + function selectEvent(id) { + selectedEventId.value = id + } + + function openPanel(eventId = null) { + if (eventId) { + editingEventId.value = eventId + const event = events.value.find((e) => e.id === eventId) + if (event) { + ghostTitle.value = event.title + ghostDate.value = event.date + ghostEmotion.value = event.emotion + ghostCustomColor.value = event.customColor + ghostGradientPreset.value = event.gradientPreset ?? null + ghostImage.value = event.image || null + ghostNote.value = event.note + } + } else { + editingEventId.value = null + ghostTitle.value = '' + ghostDate.value = new Date().toISOString().slice(0, 10) + ghostEmotion.value = 0 + ghostCustomColor.value = null + ghostGradientPreset.value = null + ghostImage.value = null + ghostNote.value = '' + } + panelOpen.value = true + } + + // Debounced DB write: the UI updates on every keystroke via the ref, + // but IndexedDB only gets the final state after typing pauses + const PERSIST_DEBOUNCE_MS = 400 + let persistTimer = null + let pendingWrite = null + + function schedulePersist(event) { + pendingWrite = event + clearTimeout(persistTimer) + persistTimer = setTimeout(flushPersist, PERSIST_DEBOUNCE_MS) + } + + function flushPersist() { + clearTimeout(persistTimer) + persistTimer = null + if (pendingWrite) { + dbPut(pendingWrite) + dbQueueUpdate(pendingWrite) + pendingWrite = null + } + } + + function cancelPersist() { + clearTimeout(persistTimer) + persistTimer = null + pendingWrite = null + } + + // Auto-save: persist ghost → event in edit mode + function persistToEvent() { + if (!editingEventId.value) return + const idx = events.value.findIndex((e) => e.id === editingEventId.value) + if (idx === -1) return + const updated = { + ...events.value[idx], + title: ghostTitle.value, + date: ghostDate.value, + emotion: ghostEmotion.value, + customColor: ghostCustomColor.value, + gradientPreset: ghostGradientPreset.value, + image: ghostImage.value, + note: ghostNote.value, + syncStatus: 'modified', + updatedAt: Date.now() + } + events.value[idx] = updated + triggerRef(events) + schedulePersist(updated) + } + + watch( + [ghostTitle, ghostDate, ghostEmotion, ghostCustomColor, ghostGradientPreset, ghostImage, ghostNote], + () => { persistToEvent() } + ) + + function closePanel() { + flushPersist() + if (!editingEventId.value && ghostTitle.value.trim()) { + const newEvent = { + id: crypto.randomUUID(), + title: ghostTitle.value, + date: ghostDate.value, + emotion: ghostEmotion.value, + customColor: ghostCustomColor.value, + gradientPreset: ghostGradientPreset.value, + image: ghostImage.value, + note: ghostNote.value, + syncStatus: 'local', + createdAt: Date.now(), + updatedAt: Date.now() + } + events.value.push(newEvent) + triggerRef(events) + dbPut(newEvent) + dbQueueSync(newEvent.id, 'create', { ...newEvent }) + } + panelOpen.value = false + editingEventId.value = null + selectedEventId.value = null + } + + function deleteEvent(id) { + if (pendingWrite?.id === id) cancelPersist() + events.value = events.value.filter((e) => e.id !== id) + dbDelete(id) + dbQueueSync(id, 'delete', null) + closePanel() + } + + // Memoized: emotionToColor is pure and its input space is small + // (emotion in 0.05 steps × 10 presets), so the cache stays bounded + const glowColorCache = new Map() + + function getGlowColor(event) { + if (event.customColor) return event.customColor + const preset = event.gradientPreset ?? null + const key = `${event.emotion}|${preset}` + let color = glowColorCache.get(key) + if (!color) { + color = emotionToColor(event.emotion, preset) + glowColorCache.set(key, color) + } + return color + } + + // Auto-init on store creation + init() + + return { + events, + isLoaded, + selectedEventId, + panelOpen, + editingEventId, + ghostEmotion, + ghostCustomColor, + ghostGradientPreset, + ghostTitle, + ghostDate, + ghostNote, + ghostImage, + ghostEvent, + sortedEvents, + selectEvent, + openPanel, + closePanel, + deleteEvent, + getGlowColor + } +}) diff --git a/frontend/_src/stores/images/photo-1506905925346-21bda4d32df4.jpeg b/frontend/_src/stores/images/photo-1506905925346-21bda4d32df4.jpeg new file mode 100644 index 0000000..de7378e Binary files /dev/null and b/frontend/_src/stores/images/photo-1506905925346-21bda4d32df4.jpeg differ diff --git a/frontend/_src/stores/images/photo-1530103862676-de8c9debad1d.jpeg b/frontend/_src/stores/images/photo-1530103862676-de8c9debad1d.jpeg new file mode 100644 index 0000000..1d998da Binary files /dev/null and b/frontend/_src/stores/images/photo-1530103862676-de8c9debad1d.jpeg differ diff --git a/frontend/_src/stores/images/photo-1534067783941-51c9c23ecefd.jpeg b/frontend/_src/stores/images/photo-1534067783941-51c9c23ecefd.jpeg new file mode 100644 index 0000000..1ac70a7 Binary files /dev/null and b/frontend/_src/stores/images/photo-1534067783941-51c9c23ecefd.jpeg differ diff --git a/frontend/_src/stores/index.js b/frontend/_src/stores/index.js new file mode 100644 index 0000000..a260a8c --- /dev/null +++ b/frontend/_src/stores/index.js @@ -0,0 +1,20 @@ +import { defineStore } from '#q-app/wrappers' +import { createPinia } from 'pinia' + +/* + * If not building with SSR mode, you can + * directly export the Store instantiation; + * + * The function below can be async too; either use + * async/await or return a Promise which resolves + * with the Store instance. + */ + +export default defineStore((/* { ssrContext } */) => { + const pinia = createPinia() + + // You can add Pinia plugins here + // pinia.use(SomePiniaPlugin) + + return pinia +}) diff --git a/frontend/_src/stores/settings.js b/frontend/_src/stores/settings.js new file mode 100644 index 0000000..bea0137 --- /dev/null +++ b/frontend/_src/stores/settings.js @@ -0,0 +1,107 @@ +import { defineStore } from 'pinia' +import { ref, watch } from 'vue' + +const STORAGE_KEY = 'thatsme-settings' + +export const ACCENT_COLORS = [ + { label: 'Standard', value: 'default', hex: '#9e9e9e' }, + { label: 'Blau', value: 'blue', hex: '#2196F3' }, + { label: 'Grün', value: 'green', hex: '#4CAF50' }, + { label: 'Gelb', value: 'yellow', hex: '#FFC107' }, + { label: 'Rosa', value: 'pink', hex: '#E91E63' }, + { label: 'Orange', value: 'orange', hex: '#FF9800' } +] + +export const LANGUAGES = [ + { label: 'Deutsch', value: 'de' }, + { label: 'English', value: 'en' } +] + +const FLOATING_LINES_DEFAULTS = { + // Linien + speed: 1.0, + lineCount: 10, + spread: 0.05, + fanSpread: 0.05, + lineSharpness: 8.0, + waveFrequency: 7.0, + bezierCurvature: 0.2, + circleRadius: 75, + glowSize: 18, + glowStrength: 1.5, + lineBrightness: 1.0, + // Hintergrund + bgCenter: '#0a0514', + bgEdge: '#000000', + gradientStops: '#e947f5\n#2f4ba2\n#0a0a12', + backgroundImage: '', + // Labels + labelSize: 'small', // 'small' | 'medium' | 'large' + labelColor: '#ffffff' +} + +function loadFromStorage() { + try { + const stored = localStorage.getItem(STORAGE_KEY) + return stored ? JSON.parse(stored) : null + } catch { + return null + } +} + +export { FLOATING_LINES_DEFAULTS } + +export const useSettingsStore = defineStore('settings', () => { + const stored = loadFromStorage() + + const theme = ref(stored?.theme ?? 'light') + const floatingLines = ref(stored?.floatingLines ?? { ...FLOATING_LINES_DEFAULTS }) + + // App preferences + const appearance = ref(stored?.appearance ?? 'system') // 'system' | 'light' | 'dark' + const accentColor = ref(stored?.accentColor ?? 'default') + const language = ref(stored?.language ?? 'de') + + // Developer / debug + const showFps = ref(stored?.showFps ?? false) + + function persist() { + localStorage.setItem( + STORAGE_KEY, + JSON.stringify({ + theme: theme.value, + floatingLines: floatingLines.value, + appearance: appearance.value, + accentColor: accentColor.value, + language: language.value, + showFps: showFps.value + }) + ) + } + + watch([theme, floatingLines, appearance, accentColor, language, showFps], persist, { deep: true }) + + function toggleTheme() { + theme.value = theme.value === 'light' ? 'dark' : 'light' + } + + function updateFloatingLines(updates) { + floatingLines.value = { ...floatingLines.value, ...updates } + } + + function resetFloatingLines() { + floatingLines.value = { ...FLOATING_LINES_DEFAULTS } + } + + return { + theme, + floatingLines, + appearance, + accentColor, + language, + showFps, + toggleTheme, + updateFloatingLines, + resetFloatingLines + } +}) diff --git a/frontend/dev/05-03-2026/tasks.md b/frontend/dev/05-03-2026/tasks.md deleted file mode 100644 index 7f6ef4e..0000000 --- a/frontend/dev/05-03-2026/tasks.md +++ /dev/null @@ -1,8 +0,0 @@ - -Die Positionen von Linie und Glow Icons sowie auch die Anzeigen des Jahres sind nicht mehr positioniert, wenn die Browser Größe verändert wird. - -Gut wäre es, wenn man eine Einstellung hätte, auch den Verlauf der Linien rauszunehmen, Einfarbige Linien prüfen, wie hoch der Aufwand der Entwicklung ist - - -Einen Horizont einbauen, der genau die Mittellinie markiert, dünne Linie - diff --git a/frontend/dev/IMPROVEMENTS-floating-lines.md b/frontend/dev/IMPROVEMENTS-floating-lines.md new file mode 100644 index 0000000..39b422d --- /dev/null +++ b/frontend/dev/IMPROVEMENTS-floating-lines.md @@ -0,0 +1,200 @@ +# Verbesserungsvorschläge: floating-lines.js + +Analyse von `floating-lines.js` (Dev-Klasse) im Vergleich zur produktiven `FloatingLines.vue`. +**Stand: April 2026 — alle wesentlichen Punkte umgesetzt.** + +--- + +## Was der Code macht (Kurzübersicht) + +Ein WebGL-Fullscreen-Shader via Three.js mit drei visuellen Schichten: + +- **Top/Bottom**: Einfache Sinus-Wellen mit Rotation (`wave()`) +- **Middle**: Bézier-Kurven zwischen Kontrollpunkten mit animierten Fächer-Linien (`waveFocal()`) + Kreise an den Punkten +- **Hintergrund**: Radialer Verlauf von Mitte → Rand (oder Horizont-Split bei Modus „Trennung") + +--- + +## Fehler / Bugs + +### 1. Totes Uniform `bgColor` ✅ Umgesetzt +**Datei:** `floating-lines.js`, Zeile 508 +Das tote `bgColor`-Uniform wurde entfernt. Der Shader nutzt ausschließlich `bgColorCenter` + `bgColorEdge`. + +```js +// Entfernt: +bgColor: { value: new Vector3(0, 0, 0) }, +``` + +### 2. Konstruktor-Parameter `middleWavePosition` wird ignoriert ✅ Umgesetzt +Der ungenutzte Parameter wurde aus der Konstruktorsignatur entfernt. + +### 3. Kein Konstruktor-Interface für `bgColorCenter` / `bgColorEdge` ✅ Umgesetzt +Beide Uniforms sind jetzt als Konstruktor-Parameter verfügbar und werden korrekt initialisiert: + +```js +constructor({ ..., bgColorCenter = '#0a0514', bgColorEdge = '#000000', ... }) +``` + +Die Uniforms werden beim Konstruktoraufruf aus den Hex-Strings in `Vector3`-Werte konvertiert. + +--- + +## Performance-Problem + +### 4. `bezierClosestT` wird pro Linie neu berechnet (kritisch) ✅ Umgesetzt +`bezierClosestT` wird jetzt **einmal pro Segment** berechnet. Die Ergebnisse (`bt`, `bPos`, `bNorm`) werden als Parameter an `waveFocal()` übergeben: + +```glsl +// Neue waveFocal()-Signatur (precomputed values): +float waveFocal(vec2 uv, float fi, float totalLines, float t, vec2 bPos, vec2 bNorm) + +// Im Segment-Loop (einmal pro Segment, nicht pro Linie): +float bt = bezierClosestT(baseUv, sp, pc, ep); +vec2 bPos = bmt*bmt*sp + 2.0*bmt*bt*pc + bt*bt*ep; +vec2 bTang = normalize(2.0*bmt*(pc - sp) + 2.0*bt*(ep - pc)); +vec2 bNorm = vec2(-bTang.y, bTang.x); +// → alle middleLineCount Aufrufe nutzen dieselben Werte +``` + +Reduktion von O(Segmente × Linien) auf O(Segmente) `bezierClosestT`-Aufrufe pro Pixel. + +--- + +## Fehlende Features (in `.vue` vorhanden, in `.js` nicht) + +### 5. `lineBrightness` Uniform fehlt ✅ Umgesetzt +`lineBrightness` ist jetzt als Konstruktor-Parameter und Uniform vorhanden. Im Shader: + +```glsl +col *= lineBrightness; // vor Background-Composite +``` + +### 6. Kein Pause bei verstecktem Tab ✅ Umgesetzt +Der `requestAnimationFrame`-Loop pausiert jetzt bei `document.hidden`: + +```js +this._handleVisibility = () => { + if (document.hidden) { + cancelAnimationFrame(this.raf) + this.raf = 0 + } else if (!this.raf) { + renderLoop() + } +} +document.addEventListener('visibilitychange', this._handleVisibility) +// destroy() ruft removeEventListener auf +``` + +### 7. Kein adaptives DPR ⏭️ Offen / Optional +Die Vue-Version misst FPS live und reduziert `devicePixelRatio` bei schlechter Performance (vor allem Mobile). Die Dev-Klasse ist ein Test-Tool und nicht für Mobile ausgelegt — diese Komplexität lohnt sich hier nicht. + +--- + +## Code-Qualität + +### 8. Legacy-Code: `background_color()`, `BLACK`, `PINK`, `BLUE` ✅ Umgesetzt +Die Shader-Konstanten `BLACK`, `PINK`, `BLUE` und die Funktion `background_color()` wurden entfernt. Der Hintergrund wird immer über `bgColorCenter`/`bgColorEdge` gesteuert. + +### 9. Redundante `enabledWaves.includes()` Checks ✅ Umgesetzt +Die doppelten Prüfungen in den Hilfsfunktionen wurden entfernt. Die äußere Prüfung im Aufrufer ist die einzige Guard. + +### 10. Hardcoded `* 0.5` in `getLineColor()` ✅ Umgesetzt +Der feste `* 0.5`-Faktor wurde entfernt. `getLineColor()` gibt jetzt die volle Gradient-Farbe zurück. Die Kompensation mit `* 2.5` an den Kreisen wurde auf `* 1.5` angepasst. Die Helligkeit wird über das `lineBrightness`-Uniform gesteuert (→ Punkt 5). + +--- + +## Optionale Verbesserungen / Ideen + +### 11. Glättere Kreise bei höherem DPR ⏭️ Offen / Optional +Der AA-Radius passt sich durch `iResolution` (physische Pixel bei gesetztem DPR) bereits implizit an. Keine Änderung nötig. + +### 12. `pointSpacingX` + `pointsOffsetX` vs. explizite X-Koordinaten ⏭️ Offen / Optional +Die Dev-Klasse behält das Auto-Spacing-Modell für einfache Testzwecke. Die Vue-Komponente nutzt explizite X-Koordinaten für die Lebenszeitlinie. Beide Ansätze sind intentional verschieden. + +### 13. GLSL `precision highp` → `mediump` ✅ Umgesetzt +Fragment-Shader nutzt jetzt `precision mediump float` — ausreichend für diese Visualisierung, effizienter auf Mobile/Low-End. + +--- + +## Neue Punkte (nachträglich ergänzt) + +### 14. Resize-Bug: Kreise und Linien desynchronisieren sich ✅ Umgesetzt +**Betrifft:** `LifeWaveLayout.vue` + +**Ursache:** `layoutResizeObserver` aktualisierte `layoutWidth/Height` sofort, während `TimelineView`s `@view-update` (mit den neuen CSS-Event-Positionen) erst im nächsten Frame kam — führte zu 1-Frame UV-Desync. + +**Fix:** `requestAnimationFrame`-Wrapper im Callback: + +```js +layoutResizeObserver = new ResizeObserver(() => { + requestAnimationFrame(() => { + if (!layoutRef.value) return + layoutWidth.value = layoutRef.value.clientWidth + layoutHeight.value = layoutRef.value.clientHeight + }) +}) +``` + +### 15. Feature: Horizont ✅ Umgesetzt (erweitert) +Statt einer einzelnen Linie wurden **drei wählbare Horizont-Modi** implementiert: + +| Modus | Wert | Beschreibung | +|-------|------|--------------| +| Aus | `'off'` | Kein Horizont-Effekt | +| Nebel | `'fog'` | Leuchtender Band-Effekt auf Y=0, Farbe aus Gradient | +| Trennung | `'split'` | Hintergrund wird vertikal geteilt: `bgColorCenter` oben, `bgColorEdge` unten — mit einstellbarer Blend-Breite | +| Glow | `'glow'` | Weiches + hartes Leuchten auf dem Horizont, Farbe aus Gradient | + +**Shader (alle Modi):** +```glsl +uniform int horizonMode; // 0=off 1=fog 2=split 3=glow +uniform float horizonOpacity; +uniform float horizonBlend; + +if (horizonMode == 1) { + float band = exp(-baseUv.y * baseUv.y * 5.0); + vec3 fogColor = getLineColor(0.5, bg) * 2.0; + col += fogColor * band * horizonOpacity; +} else if (horizonMode == 2) { + float blendW = max(horizonBlend * 0.7, 0.001); + float t = smoothstep(-blendW, blendW, baseUv.y); + bg = mix(bgColorEdge, bgColorCenter, t); +} else if (horizonMode == 3) { + float d2 = baseUv.y * baseUv.y; + float softGlow = exp(-d2 * 10.0); + float coreGlow = exp(-d2 * 70.0) * 0.7; + vec3 glowColor = getLineColor(0.5, bg) * 3.0; + col += glowColor * (softGlow + coreGlow) * horizonOpacity; +} +``` + +**Umgesetzt in:** +- `floating-lines.js` — Shader + Konstruktor-Parameter + Uniforms +- `FloatingLines.vue` — Shader (mit `gradientMid()` Hilfsfunktion) + Props + Uniforms + Watches +- `settings.js` — `horizonMode: 'off'`, `horizonOpacity: 0.5`, `horizonBlend: 0.2` +- `LifeWaveSettings.vue` — Segmented Control + bedingte Slider (Deckkraft / Übergang) +- `LifeWaveLayout.vue` — Props weitergeleitet +- `init-fl.html` — 4 Modus-Buttons + bedingte Slider-Sichtbarkeit + +--- + +## Zusammenfassung Prioritäten + +| # | Typ | Priorität | Aufwand | Status | +|---|-----|-----------|---------|--------| +| 4 | Performance: `bezierClosestT` Hoisting | **Hoch** | Mittel | ✅ | +| 14 | Bug: Resize-Desync (LifeWaveLayout) | **Hoch** | Minimal | ✅ | +| 1 | Bug: totes `bgColor` Uniform | Mittel | Minimal | ✅ | +| 3 | Bug: `bgColorCenter/Edge` nicht setzbar | Mittel | Klein | ✅ | +| 5 | Feature: `lineBrightness` | Mittel | Klein | ✅ | +| 10 | Qualität: hardcoded `* 0.5` | Mittel | Klein | ✅ | +| 15 | Feature: Horizont (3 Modi) | Mittel | Mittel | ✅ | +| 8 | Qualität: Legacy-Code entfernen | Niedrig | Klein | ✅ | +| 6 | Feature: Tab-Pause | Niedrig | Klein | ✅ | +| 2 | Bug: ignorierter Parameter | Niedrig | Minimal | ✅ | +| 9 | Qualität: redundante Checks | Niedrig | Minimal | ✅ | +| 13 | Perf: `mediump` Precision | Optional | Minimal | ✅ | +| 7 | Feature: adaptives DPR | Optional | Groß | ⏭️ | +| 11 | Qualität: AA-Radius explizit | Optional | Minimal | ⏭️ | +| 12 | API: explizite X-Koordinaten | Optional | Mittel | ⏭️ | diff --git a/frontend/dev/db-api-connect/README.md b/frontend/dev/db-api-connect/README.md new file mode 100644 index 0000000..9d75135 --- /dev/null +++ b/frontend/dev/db-api-connect/README.md @@ -0,0 +1,303 @@ +# Entwicklungsplan DB/API-Anbindung + +Version: `0.0.1` + +Status: Konzept und Umsetzungsplan fuer die Anbindung der Quasar-App an das Laravel-Backend mit MySQL. + +## Zielbild + +Die App soll nicht mehr primaer auf browserlokaler Persistenz basieren. Laravel mit MySQL wird die fuehrende Datenquelle fuer User, Settings, Events, Presets und Medien. IndexedDB und `localStorage` duerfen spaeter weiter als Cache und Offline-Schicht genutzt werden, aber nicht als alleinige Wahrheit. + +Das System geht konsequent vom eingeloggten User aus: + +- Jeder User besitzt eigene Settings. +- Jeder User besitzt eigene Timeline-Daten. +- Jeder User besitzt eigene Events. +- Jeder User besitzt eigene Medien, Images, Presets und spaeter Videos, Audios und Texte. +- Kein User darf Medien, Events oder Settings eines anderen Users direkt oder indirekt lesen. +- Teilen und Veröffentlichen wird spaeter bewusst als eigener Rechte- und Freigabeprozess umgesetzt. + +## Versionsregel + +Die aktuelle App-Version ist `0.0.1`. + +Bei jeder weiteren Entwicklungsrunde muessen folgende Stellen mitgefuehrt werden: + +- `frontend/package.json` +- `frontend/src/config/appVersion.js` +- `frontend/README.md` +- dieses Planungsdokument, sofern sich Architektur, Datenmodell oder API-Verhalten aendern +- spaetere Release Notes oder Migrationsdokumente + +Versionen in der `0.x`-Phase duerfen Breaking Changes enthalten. Jede Aenderung am Datenmodell oder an API-Kontrakten muss trotzdem dokumentiert werden. + +## Grundentscheidung + +Wir verwenden direkt MySQL im Laravel-Backend. SQLite wird nicht als Zielsystem genutzt, weil die Anwendung mehrere Benutzer, geschuetzte Medien, Sync und spaetere Sharing-/Invite-Funktionen benoetigt. MySQL passt besser zu dauerhaftem Betrieb, Indizes, Relationen und wachsendem Medien-Metadatenbestand. + +## Sicherheitsprinzip + +Die Datenhoheit liegt beim User. Alle API-Abfragen muessen serverseitig ueber den authentifizierten User eingeschraenkt werden. Das Frontend darf keine fremden IDs als Vertrauensbasis liefern. + +Regeln: + +- Jede userbezogene Tabelle enthaelt `user_id`. +- API-Controller filtern immer ueber `$request->user()`. +- Policies pruefen Zugriff auf Events, Medien, Presets und Settings. +- Storage-Pfade enthalten keine erratbaren oeffentlichen URLs. +- Originalmedien werden nicht aus einem public disk ausgeliefert. +- Medien werden ueber autorisierte Backend-Routen oder signierte, kurzlebige URLs bereitgestellt. +- Thumbnails duerfen ebenfalls nur nach Berechtigungspruefung ausgeliefert werden. + +## Datenmodell + +Bestehende Basis: + +- `users` existiert bereits. +- `events` existiert bereits und hat bereits `user_id`. + +Geplante Erweiterungen: + +- `user_settings` + - `user_id` + - `settings` als JSON + - `timeline_zoom` + - `timeline_scroll_left` + - `active_preset_id` + - Timestamps + +- `setting_presets` + - `user_id` + - `name` + - `settings` als JSON + - `is_public` fuer spaeteres Veröffentlichen von reinen Timeline-/Visual-Presets + - Timestamps + +- `events` + - weiterhin strikt usergebunden + - Erweiterung um Felder aus dem aktuellen Frontend, z. B. Key-Image-Titel, Farbdaten, Notizen und spaetere Event-Metadaten + - `client_id` bleibt wichtig fuer Offline-/Sync-Kompatibilitaet + +- `event_media` + - `user_id` + - `event_id` + - `type`: image, video, audio, text + - `title` + - `original_path` + - `thumbnail_path` + - `mime_type` + - `size` + - `width` + - `height` + - `duration` + - `sort_order` + - `metadata` als JSON + - Timestamps + +- `event_media_variants` + - optional spaeter, wenn mehrere Bildgroessen benoetigt werden + - z. B. thumbnail, preview, original + +- `timeline_shares` + - spaeter + - Einladung oder Share-Link fuer eine komplette Timeline + - getrennt von Preset-Sharing + - eigene Berechtigungen und Ablaufdaten + +## Medienkonzept + +Medien werden nicht als Data-URL in der Datenbank gespeichert. Die Datenbank speichert nur Metadaten und Storage-Pfade. + +Upload-Ablauf: + +1. Frontend laedt Datei an Laravel hoch. +2. Backend validiert User, Dateityp und Groesse. +3. Backend speichert Originaldatei in einem geschuetzten Storage-Bereich. +4. Backend erzeugt Thumbnail oder Preview. +5. Backend speichert Metadaten in `event_media`. +6. API gibt Media-Objekt mit Thumbnail-Endpunkt zurueck. + +Performance-Regel: + +- Timeline und Event-Panel laden zuerst nur Thumbnails. +- Originaldateien werden erst bei grosser Betrachtung oder Download geladen. +- Videos und Audios bekommen spaeter eigene Preview-/Poster-Strategien. +- Texte werden spaeter als eigener Media-Typ behandelt, nicht als Bilderspezialfall. + +## API-Konzept + +Geplante API-Gruppen unter `/api`: + +- Auth + - Login + - Logout + - aktueller User + +- Settings + - `GET /settings` + - `PUT /settings` + +- Presets + - `GET /setting-presets` + - `POST /setting-presets` + - `PUT /setting-presets/{preset}` + - `DELETE /setting-presets/{preset}` + - spaeter: `POST /setting-presets/{preset}/publish` + +- Events + - `GET /events` + - `POST /events` + - `GET /events/{event}` + - `PUT /events/{event}` + - `DELETE /events/{event}` + - `POST /events/sync` + +- Event-Medien + - `GET /events/{event}/media` + - `POST /events/{event}/media` + - `PUT /events/{event}/media/{media}` + - `DELETE /events/{event}/media/{media}` + - `GET /media/{media}/thumbnail` + - `GET /media/{media}/original` + +Alle Endpunkte muessen authentifiziert sein. Jeder Zugriff auf `{event}`, `{media}` oder `{preset}` muss serverseitig gegen `user_id` abgesichert werden. + +## Frontend-Migration + +Aktueller Zustand: + +- Auth liegt in `localStorage`. +- Zusaetzlich angelegte lokale Test-User liegen in `localStorage` unter `thatsme-users`. +- Settings liegen in `localStorage`. +- Events, SyncQueue und Medien liegen in IndexedDB. + +Zwischenstand in Version `0.0.1`: + +- Die urspruenglichen Demo-User `user1` bis `user5` behalten ihre bestehenden lokalen Daten. +- Neue lokale User koennen auf der Login-Seite ueber den Plus-Button angelegt werden. +- Neue lokale User starten mit leerer Timeline und bekommen keine automatisch generierten Test-Events. +- Diese lokale User-Verwaltung ist nur eine Uebergangsloesung bis zur Laravel/MySQL-Auth. + +Zielzustand: + +- Auth laeuft ueber Laravel API. +- Settings werden nach Login vom Backend geladen. +- Events werden vom Backend geladen und im Store gehalten. +- IndexedDB bleibt als Cache und optionale Offline-Queue. +- Medien werden als Backend-URLs/IDs verwaltet, nicht mehr als Data-URLs im Event. + +Schrittweise Migration: + +1. API-Client im Frontend anlegen. +2. Auth-Store auf Backend-Login vorbereiten. +3. Settings-Store mit Backend-Laden/Speichern erweitern. +4. Events-Store auf Backend-CRUD umstellen. +5. Media-Upload ueber Backend einbauen. +6. IndexedDB als Cache neu definieren und nicht mehr als Primaerspeicher behandeln. +7. SyncQueue mit Server-Status und Konfliktregeln ueberarbeiten. + +## Konflikt- und Sync-Regeln + +Da spaeter Offline-Faehigkeit weiter sinnvoll ist, bleibt `client_id` wichtig. + +Regeln: + +- Jeder lokal erzeugte Datensatz bekommt eine stabile `client_id`. +- Backend antwortet mit Server-ID und `updated_at`. +- Bei Updates wird `updated_at` fuer Konflikterkennung genutzt. +- Bei Medien wird Upload nicht stillschweigend ueberschrieben. +- Konflikte werden spaeter sichtbar gemacht, nicht automatisch fremd geloest. + +## Sharing spaeter + +Preset-Sharing und Timeline-Sharing werden getrennt. + +Preset-Sharing: + +- Nur visuelle Timeline-/LifeWave-Einstellungen. +- Keine Events. +- Keine Medien. +- Keine personenbezogenen Inhalte. + +Timeline-Sharing: + +- Spaeter ueber Einladung, Token oder freigegebene Empfaenger. +- Enthält Settings, Events und Medien nur im explizit freigegebenen Umfang. +- Zugriff muss widerrufbar sein. +- Keine oeffentlichen, erratbaren Medienlinks. + +## Umsetzungsphasen + +Phase 1: Backend-Datenmodell + +- Bestehende `events`-Tabelle mit aktuellem Frontend-Modell abgleichen. +- Migrationen fuer `user_settings`, `setting_presets` und `event_media` erstellen. +- Models, Relationships, Factories und Policies anlegen. +- Tests fuer User-Isolation erstellen. + +Phase 2: API-Basis + +- API Resources und Form Requests erstellen. +- Settings- und Preset-Endpunkte implementieren. +- Event-Endpunkte usergesichert vervollstaendigen. +- Tests fuer CRUD und Fremdzugriff schreiben. + +Phase 3: Media Storage + +- Geschuetzten Storage-Disk konfigurieren. +- Upload-Endpunkte implementieren. +- Thumbnail-Erzeugung vorbereiten. +- Autorisierte Auslieferung fuer Thumbnail und Original bauen. +- Tests fuer Zugriffsschutz und Dateitypen schreiben. + +Phase 4: Frontend-Anbindung + +- API-Service im Frontend erstellen. +- Auth-Store an Backend anbinden. +- Settings-Store vom Backend laden und speichern. +- Events-Store CRUD und Sync an Backend anbinden. +- EventPanel-Medienupload auf Server umstellen. + +Phase 5: Migration aus Browserdaten + +- Einmalige Importstrategie fuer lokale Demo-Daten definieren. +- Pro User lokale Settings und Events optional zum Backend hochladen. +- Danach lokale Daten nur noch als Cache nutzen. + +Phase 6: Dokumentation und Stabilisierung + +- API-Kontrakte dokumentieren. +- Datenmodell dokumentieren. +- Version aktualisieren. +- Manuelle QA-Schritte dokumentieren. +- Bekannte Grenzen und Folgeaufgaben festhalten. + +## Dokumentationspflicht pro Schritt + +Jede Umsetzung in diesem Bereich muss dokumentiert werden. + +Pflicht je Schritt: + +- Was wurde geaendert? +- Welche Version betrifft es? +- Welche Tabellen/API-Endpunkte sind betroffen? +- Welche Sicherheitsregel wurde umgesetzt oder geprueft? +- Welche Tests wurden ausgefuehrt? +- Welche offenen Punkte bleiben? + +Empfohlene Struktur fuer neue Dokumente in diesem Ordner: + +- `README.md`: Gesamtplan und aktueller Stand +- `data-model.md`: finale Tabellen und Beziehungen +- `api-contract.md`: Request-/Response-Strukturen +- `migration-log.md`: chronologische Umsetzungsschritte +- `security-checklist.md`: Zugriffsschutz und Storage-Regeln + +## Offene Entscheidungen + +- Welche Laravel-Auth-Variante wird fuer die App final verwendet: vorhandenes Passport-Setup oder eine gezielte API-Token-Strategie? +- Welche maximale Upload-Groesse gilt pro Datei und pro User? +- Wo werden Originaldateien langfristig gespeichert: lokaler Storage, S3-kompatibel oder Synology C2? +- Wann wird echte Offline-Synchronisation wieder aktiviert? +- Wie detailliert soll spaeteres Timeline-Sharing steuerbar sein? + diff --git a/frontend/dev/db-api-connect/implementation-plan.md b/frontend/dev/db-api-connect/implementation-plan.md new file mode 100644 index 0000000..3d43205 --- /dev/null +++ b/frontend/dev/db-api-connect/implementation-plan.md @@ -0,0 +1,433 @@ +# Umsetzungsplan API- und DB-Anbindung + +Version: `0.5.0` + +Status: Hybrid-MVP weitgehend umgesetzt. Remote-User speichern Events, Settings und Bilder ueber die API; der lokale Demo-User bleibt browserlokal und startet leer. + +## Ziel + +Die Quasar-App soll zwei bewusst getrennte Speicherwege unterstuetzen: + +- **Remote/API-User**: `user1@thats-me.app` bis `user6@thats-me.app`, Passwort `pass`. Diese User speichern Events, Timeline-Einstellungen und Bilder serverseitig ueber die Laravel-API. +- **Lokaler Demo-User**: `Demo`. Dieser User startet leer und speichert weiterhin ausschliesslich im Browser Storage. Seine Daten werden nicht an die API uebertragen und sind nicht global oder fuer AI/API-Prozesse sichtbar. + +Der erste Umsetzungsstand soll praesentationstaugliche Backend-User ermoeglichen, ohne den lokalen Testmodus zu entfernen. + +## Grundregeln + +- Remote-User werden immer ueber Laravel authentifiziert. +- Lokale Demo-Daten bleiben privat im Browser und verlassen das Geraet nicht. +- Backend-Abfragen werden immer ueber den authentifizierten User eingeschraenkt. +- Bilder von Remote-Usern werden serverseitig gespeichert und usergebunden ausgeliefert. +- `client_id` bleibt die stabile Frontend-ID fuer Events und dient spaeter als Sync-Bruecke. +- IndexedDB bleibt fuer lokale Demo-Daten und optionalen Cache erhalten, ist fuer Remote-User aber nicht die fuehrende Datenquelle. + +## Aktueller Umsetzungsstand + +Stand: 2026-06-03 + +Abgeschlossen: + +- **Phase 1 Backend-Basis**: Laravel-API, Passport, Demo-API-User und geschuetzte Endpunkte sind vorbereitet. +- **Phase 2 API-Login**: Quasar kann `user1@thats-me.app` bis `user6@thats-me.app` ueber die API anmelden; Tokens werden im Frontend zentral verwaltet. +- **Phase 3 Hybrid-Auth**: Es gibt einen festen lokalen `Demo`-User ohne API-Login. Dieser startet leer und schreibt keine API-SyncQueue-Eintraege. +- **Phase 4 Remote-Events**: Remote-Events werden direkt per API erstellt, geladen, aktualisiert und geloescht. +- **Phase 5 Remote-Settings**: Timeline-, App- und LifeWave-Settings werden pro Remote-User serverseitig als JSON gespeichert. +- **Phase 6 Serverseitige Bilder**: Event-Bilder und Settings-Hintergrundbilder werden fuer Remote-User serverseitig gespeichert, optimiert und geschuetzt ausgeliefert. + +Noch offen: + +- **Phase 7 Praesentationsdaten**: Struktur und Inhalte fuer kontrollierte Beispiel-/Praesentationsdaten pro API-User. +- **Phase 8 Abschlussdokumentation**: API-Vertrag, Datenmodell und Security-Checkliste koennen auf Basis der jetzigen Umsetzung finalisiert werden. + +Wichtige technische Entscheidungen: + +- Remote-User nutzen die Laravel-API als fuehrende Datenquelle. +- Lokale Demo-Daten bleiben in IndexedDB/localStorage und werden nicht an die API gesendet. +- Geschuetzte Bilder werden im Frontend per Bearer Token geladen und als Blob-URL angezeigt. +- Event-Bilder haben drei Varianten: + - Timeline/Dot-Thumbnail: 320x320px, quadratisch gecroppt. + - Event-Panel/Preview: maximal 900px laengste Kante, JPEG-Qualitaet 84. + - Original/Download-Basis: maximal 3508px laengste Kante, JPEG-Qualitaet 90. +- Settings-Hintergrundbilder werden separat pro User gespeichert: maximal 1600px laengste Kante, JPEG-Qualitaet 86. + +Wichtige Dokumentationsquelle: + +- `migration-log.md` enthaelt die chronologische Umsetzung mit geaenderten Dateien, Tests und QA-Hinweisen. + +## Phase 1: Backend-Basis Pruefen Und Vorbereiten + +Ziel: Die bestehende Laravel-API lauffaehig, migriert und fuer API-User nutzbar machen. + +Status: Abgeschlossen. + +Umgesetzt: + +- `user1` bis `user6` werden idempotent ueber den Database Seeder angelegt. +- Alle sechs API-User nutzen das Passwort `pass`. +- Ein Passport Personal Access Client fuer den `users` Provider wird bei Bedarf idempotent angelegt. +- API-Endpunkte sind ohne Token geschuetzt. +- CORS wurde fuer die Quasar-App-Origin konfiguriert. + +Aufgaben: + +- Migrationen fuer `users`, Passport-Tabellen und `events` pruefen und ausfuehren. +- Sicherstellen, dass Passport fuer API-Token in der lokalen Umgebung funktioniert. +- Demo-Seeder fuer `user1` bis `user6` anlegen oder erweitern. +- Passwort fuer alle sechs API-User auf `pass` setzen. +- Bestehenden Test-User nicht als Praesentationsuser verwenden. +- CORS/API-Erreichbarkeit von `app.thats-me.test` nach `api.thats-me.test` pruefen. + +Akzeptanzkriterien: + +- `user1` bis `user6` existieren in der Datenbank. +- Jeder User kann serverseitig authentifiziert werden. +- `/api/user` liefert mit Token den passenden User. +- Ohne Token sind API-Endpunkte geschuetzt. + +Tests/Dokumentation: + +- Feature-Test fuer API-Login. +- Feature-Test fuer geschuetzten Zugriff ohne Token. +- Dokumentieren, welche Seeder und Migrations ausgefuehrt wurden. + +## Phase 2: API-Login Fuer Quasar + +Ziel: Die Quasar-App kann Remote-User ueber die Laravel-API anmelden. + +Status: Abgeschlossen. + +Umgesetzt: + +- `POST /api/login` validiert Laravel-User und erstellt Passport Bearer Tokens. +- `POST /api/logout` widerruft den aktuellen Token. +- Frontend nutzt `src/services/apiClient.js` als zentralen API-Client. +- Token-Ablage erfolgt in IndexedDB `meta.accessToken`. +- Login-Fehler werden auf der Login-Seite verstaendlich angezeigt. +- Bei `app.thats-me.test` wird automatisch `https://api.thats-me.test/api` als API-Basis genutzt, sofern `VITE_API_BASE` nicht gesetzt ist. +- Bei Live-Hosts unter `thats-me.app` wird automatisch `https://api.thats-me.app/api` als API-Basis genutzt. + +Aufgaben: + +- `POST /api/login` implementieren. +- `POST /api/logout` implementieren. +- Response-Struktur fuer Login festlegen: Token, User-ID, Name, E-Mail, Storage-Modus `remote`. +- Frontend-API-Client fuer authentifizierte Requests anlegen. +- Token-Ablage im Frontend festlegen und konsistent nutzen. +- Fehlertexte fuer falsche Zugangsdaten sauber zur Login-Seite durchreichen. + +Akzeptanzkriterien: + +- Login mit `user1@thats-me.app` und `pass` funktioniert. +- Falsches Passwort liefert einen klaren Fehler. +- Logout entfernt den Token im Frontend. +- Router erkennt Remote-Login als authentifiziert. + +Tests/Dokumentation: + +- Feature-Test fuer erfolgreichen Login. +- Feature-Test fuer falsche Zugangsdaten. +- Manuelle QA: Login, Reload, Logout. + +## Phase 3: Hybrid-Auth Im Frontend + +Ziel: Frontend unterscheidet klar zwischen lokalem Demo-Modus und Remote-Usern. + +Status: Abgeschlossen und manuell bestaetigt. + +Umgesetzt: + +- Fester lokaler User `Demo` mit `mode: local`. +- `Demo` benoetigt kein Passwort. +- `Demo` startet leer und seeded keine 500 Beispiel-Events mehr. +- Lokale User-Erstellung wurde entfernt. +- Remote-User-Liste enthaelt `user1` bis `user6`. +- Lokale Demo-Events bleiben in IndexedDB und werden nicht in die SyncQueue geschrieben. +- Wechsel zwischen Demo und Remote-Usern ist ueber `userId`/`mode` getrennt. + +Aufgaben: + +- Auth-Store um `mode: 'local' | 'remote'` erweitern. +- Lokalen User `Demo` definieren. +- `Demo` startet leer und nutzt Browser Storage. +- Remote-User-Liste fuer `user1` bis `user6` anzeigen. +- Lokale User-Erstellung per Plus-Button entfernen oder durch "Lokalen Demo-Modus starten" ersetzen. +- Router-Guard auf lokalen und remote Auth-Modus anpassen. + +Akzeptanzkriterien: + +- `Demo` kann ohne API gestartet werden. +- `Demo` startet ohne automatisch generierte 500 Events. +- `user1` bis `user6` laufen ueber API-Login. +- Wechsel zwischen Demo und Remote-Usern vermischt keine Daten. + +Tests/Dokumentation: + +- Frontend-Lint ausfuehren. +- Manuelle QA: Demo starten, Event anlegen, Reload, Daten bleiben lokal. +- Manuelle QA: Remote-User einloggen, Reload, Token/Auth bleibt konsistent. + +## Phase 4: Events Remote Persistieren + +Ziel: Events von Remote-Usern werden in der Datenbank gespeichert und aus der API geladen. + +Status: Abgeschlossen. + +Umgesetzt: + +- Remote-Events werden beim Login/Reload ueber `GET /api/events` geladen. +- Create/Update/Delete fuer Remote-Events laufen direkt ueber `POST`, `PUT` und `DELETE` gegen die Event-API. +- Events sind serverseitig ueber den authentifizierten User isoliert. +- Frontend haelt Remote-Events nur als lokalen Cache in IndexedDB. +- Lokaler Demo-User bleibt browserlokal. + +Hinweis zur Offline-SyncQueue (Stand 2026-07-07): + +- Der Timeline-Prototyp unter `frontend/_src` schreibt jetzt auch `update`-Mutationen in die lokale SyncQueue: debounced beim Bearbeiten, dedupliziert auf maximal einen offenen Update-Eintrag pro Event. Vorher wurden nur `create` und `delete` in die Queue geschrieben, Edits gingen beim Sync verloren. +- `POST /api/events/sync` validiert und verarbeitet bereits alle drei Actions `create`, `update` und `delete`; backendseitig ist dafuer keine Anpassung noetig. + +Aufgaben: + +- Bestehende `events`-Tabelle mit Frontend-Modell abgleichen. +- Fehlende Felder ergaenzen: mindestens `location`, `key_image_title`; Medien zunaechst ueber eigene Medientabelle. +- Event-Requests und `EventResource` erweitern. +- Vorhandene Event-API gegen User-Isolation testen. +- Frontend-Events-Store ueber Storage-Schicht anbinden: + - `local`: Dexie wie bisher. + - `remote`: Laravel API. +- Create, Update, Delete fuer Remote-Events direkt an API senden. +- Lokale SyncQueue fuer Remote-User nur als spaetere Retry-/Offline-Schicht behandeln. + +Akzeptanzkriterien: + +- Remote-User sieht nach Reload seine Events wieder. +- Andere Remote-User sehen diese Events nicht. +- Lokaler `Demo`-User bleibt vollstaendig browserlokal. +- Event-Felder aus dem aktuellen Panel bleiben erhalten. + +Tests/Dokumentation: + +- Feature-Tests fuer Event CRUD. +- Feature-Test fuer Fremdzugriff zwischen Usern. +- Manuelle QA mit `user1` und `user2`. + +## Phase 5: Timeline-Settings Remote Speichern + +Ziel: Timeline- und App-Einstellungen werden fuer Remote-User serverseitig gespeichert. + +Status: Abgeschlossen. + +Umgesetzt: + +- Tabelle `user_settings` speichert ein JSON-Dokument pro User. +- `GET /api/settings` und `PUT /api/settings` sind usergebunden hinter `auth:api`. +- Gespeichert werden u.a. Appearance, Accent Color, Sprache, LifeWave/Floating-Lines, Emotion-Gradient, Timeline-Zoom, Timeline-Scroll, Presets, aktives Preset und `showFps`. +- Remote-Settings werden beim Userwechsel aus der API geladen und lokal nur gecacht. +- Lokaler Demo-User nutzt weiterhin `localStorage`. + +Aufgaben: + +- Tabelle `user_settings` anlegen. +- Model und Beziehung zu `User` ergaenzen. +- Endpunkte anlegen: + - `GET /api/settings` + - `PUT /api/settings` +- Settings als JSON speichern, inklusive Timeline-Zoom, Scroll-Position, Floating-Lines, Farben, Sprache, Presets und aktivem Preset. +- Settings-Store ueber Storage-Schicht anbinden: + - `local`: `localStorage`. + - `remote`: API. + +Akzeptanzkriterien: + +- Remote-User behaelt Timeline-Settings nach Reload und Geraetewechsel. +- Lokaler `Demo`-User behaelt Settings nur im Browser. +- Settings anderer User sind nicht lesbar. + +Tests/Dokumentation: + +- Feature-Test fuer GET/PUT Settings. +- Feature-Test fuer User-Isolation. +- Manuelle QA: Settings aendern, Reload, anderer User pruefen. + +## Phase 6: Serverseitige Bilder Fuer Remote-User + +Ziel: Bilder von Remote-Events werden serverseitig gespeichert und sicher usergebunden ausgeliefert. + +Status: Abgeschlossen fuer Event-Bilder und Settings-Hintergrundbilder. + +Umgesetzt: + +- Tabelle `event_media` speichert Event-Medien user- und eventgebunden. +- Upload, Liste, Anzeige und Loeschen von Event-Medien sind implementiert. +- Event-Bilder werden als Thumbnail, Preview und Original-Variante erzeugt. +- Key Images liegen in der Collection `key_image`, Galerie-Bilder in `gallery`. +- Geschuetzte Event-Bildrouten pruefen `event_media.user_id` gegen den authentifizierten User. +- Frontend laedt geschuetzte Bild-URLs mit Bearer Token als Blob. +- Settings-Hintergrundbilder werden ueber eigene Endpunkte gespeichert: + - `POST /api/settings/media/background` + - `GET /api/settings/media/background` + - `DELETE /api/settings/media/background` +- Lokaler Demo-User speichert Bilder weiterhin lokal bzw. als Browser-Daten. + +Aufgaben: + +- Tabelle `event_media` anlegen. +- Model, Factory und Beziehung zu `User` und `Event` anlegen. +- Geschuetzten Storage-Bereich definieren. +- Upload-Endpunkt anlegen: `POST /api/events/{event}/media`. +- Medienliste laden: `GET /api/events/{event}/media`. +- Medien loeschen: `DELETE /api/events/{event}/media/{media}`. +- Auslieferung pruefen: + - Thumbnail/Preview, falls vorhanden. + - Original nur nach Auth-Pruefung. +- Frontend-EventPanel fuer Remote-User auf Upload umstellen. +- Lokaler `Demo`-User speichert Bilder weiter lokal. + +Akzeptanzkriterien: + +- Remote-User kann Bild zu Event hochladen. +- Bild ist nach Reload wieder sichtbar. +- Andere User koennen das Bild nicht abrufen. +- Lokaler Demo-Modus funktioniert unveraendert lokal. + +Tests/Dokumentation: + +- Feature-Test fuer Upload. +- Feature-Test fuer Fremdzugriff auf Medien. +- Feature-Test fuer Loeschen. +- Dokumentieren, wo Dateien gespeichert werden und welche Limits gelten. + +## Phase 7: Praesentationsdaten Fuer API-User + +Ziel: Die sechs API-User koennen gezielt mit Beispielinhalten fuer Praesentationen befuellt werden. + +Status: Offen, naechster sinnvoller Umsetzungsschritt. + +Aufgaben: + +- Entscheiden, welche Beispiel-Events pro User angelegt werden. +- Seeder fuer Praesentationsdaten vorbereiten. +- Bilder entweder als Fixture-Dateien oder ueber dokumentierten Upload-Prozess einspielen. +- Sicherstellen, dass `Demo` leer bleibt. +- AI/API-Zugriff konzeptionell dokumentieren: welche Endpunkte laden Userdaten, welche Auth ist noetig. + +Akzeptanzkriterien: + +- `user1` bis `user6` haben kontrollierte Praesentationsdaten. +- Beispielbilder sind serverseitig vorhanden. +- Lokaler Demo-Modus bleibt leer und privat. + +Tests/Dokumentation: + +- Seeder-Ausfuehrung dokumentieren. +- Manuelle QA pro User. +- Liste der Praesentationsdaten pflegen. + +Empfohlene Umsetzung: + +1. Kleine Datendefinition fuer Praesentationsdaten erstellen, z.B. `backend/database/seeders/PresentationDataSeeder.php` plus strukturierte Arrays. +2. Pro User entscheiden, ob er leer bleibt oder eine eigene Story bekommt: + - `user1`: Standard-Praesentation mit wenigen Events. + - `user2`: Bildlastige Galerie-Demo. + - `user3`: Settings-/LifeWave-Demo. + - `user4` bis `user6`: Reserve oder alternative Stories. +3. Seeder idempotent bauen: + - Events ueber stabile `client_id` upserten. + - Medien nicht doppelt anlegen. + - Settings pro User per `updateOrCreate` setzen. +4. Beispielbilder entweder als Fixture-Dateien in einem dokumentierten Ordner ablegen oder bewusst ueber die App hochladen. +5. Nach dem Seed pro User manuell pruefen: + - Login. + - Timeline sichtbar. + - Event-Panel oeffnet. + - Bilder laden als Thumbnail/Preview. + - Settings werden korrekt angewendet. + +Wichtig: + +- `Demo` darf durch den Seeder nicht veraendert werden. +- Praesentationsdaten sollten wiederholbar eingespielt werden koennen, ohne Dubletten zu erzeugen. +- Fuer echte Praesentationen sollten keine zufaelligen `crypto.randomUUID()` IDs verwendet werden, sondern stabile `client_id` Werte aus der Datendefinition. + +## Phase 8: Dokumentation Und Abschluss Pro Umsetzungsschritt + +Ziel: Jeder Schritt bleibt nachvollziehbar und kann spaeter fortgesetzt werden. + +Pflicht pro Umsetzungsschritt: + +- Datum und Version. +- Geaenderte Dateien. +- Betroffene Tabellen. +- Betroffene API-Endpunkte. +- Sicherheitsregel: Wie wurde User-Isolation geprueft? +- Ausgefuehrte Tests. +- Manuelle QA. +- Offene Punkte. + +Empfohlene Dokumente in diesem Ordner: + +- `README.md`: Zielbild und Gesamtuebersicht. +- `implementation-plan.md`: dieser abarbeitbare Plan. +- `api-contract.md`: konkrete Request-/Response-Strukturen. +- `data-model.md`: Tabellen, Relationen und Felder. +- `migration-log.md`: chronologische Umsetzungsschritte. +- `security-checklist.md`: Auth, User-Isolation und Medienzugriff. + +## Aktuelle Offene Entscheidungen + +- Ob die aktuellen Upload-Limits dauerhaft reichen: aktuell 10 MB pro Bild. +- Ob die erlaubten Bildtypen `jpg`, `jpeg`, `png`, `webp` fuer den MVP ausreichen. +- Ob Praesentationsdaten per Seeder oder ueber ein Admin-/Import-Skript gepflegt werden. +- Wie der spaetere AI-Zugriff authentifiziert wird. +- Ob fuer groessere Medienverarbeitung spaeter Queue-Jobs statt synchroner Verarbeitung eingesetzt werden. +- Ob alte, lokal gespeicherte Remote-Daten aktiv migriert oder bewusst ignoriert werden. + +## Naechster Konkreter Schritt + +Mit Phase 7 starten: + +1. Inhaltliche Rollen fuer `user1` bis `user6` festlegen. +2. Datensatzstruktur fuer Praesentationsdaten definieren. +3. Idempotenten `PresentationDataSeeder` vorbereiten. +4. Optional Fixture-Bilder festlegen. +5. Seeder lokal ausfuehren und pro User manuell pruefen. + +## Arbeitsnotizen Fuer Fortsetzung + +Relevante Frontend-Dateien: + +- `frontend/src/stores/auth.js`: Remote-User, Demo-User, Login/Logout, Token-Handling. +- `frontend/src/stores/events.js`: lokale Demo-Events und Remote-Event-API-Anbindung. +- `frontend/src/stores/settings.js`: lokale und remote Settings-Persistenz. +- `frontend/src/components/EventPanel.vue`: Event-Bild-Upload und Galerie. +- `frontend/src/components/LifeWaveSettings.vue`: Settings-Hintergrundbild-Upload. +- `frontend/src/composables/useImageCache.js`: geschuetzte Bildpfade als Blob laden. + +Relevante Backend-Dateien: + +- `backend/routes/api.php`: API-Routen. +- `backend/app/Http/Controllers/Api/AuthController.php`: Login/Logout. +- `backend/app/Http/Controllers/Api/EventController.php`: Event-CRUD und Sync. +- `backend/app/Http/Controllers/Api/EventMediaController.php`: Event-Medien. +- `backend/app/Http/Controllers/Api/SettingsController.php`: Settings JSON. +- `backend/app/Http/Controllers/Api/SettingsMediaController.php`: Settings-Hintergrundbilder. +- `backend/app/Services/EventMediaImageProcessor.php`: Bildvarianten fuer Event-Medien. +- `backend/database/seeders/DatabaseSeeder.php`: API-User und Passport Client. + +Relevante Tests: + +- `backend/tests/Feature/Api/AuthTest.php` +- `backend/tests/Feature/Api/EventTest.php` +- `backend/tests/Feature/Api/EventMediaTest.php` +- `backend/tests/Feature/Api/SettingsTest.php` + +Empfohlene Checks nach Aenderungen: + +```bash +cd backend +vendor/bin/pint --dirty --format agent +php artisan test --compact tests/Feature/Api/AuthTest.php tests/Feature/Api/EventTest.php tests/Feature/Api/EventMediaTest.php tests/Feature/Api/SettingsTest.php + +cd ../frontend +npm run lint +``` diff --git a/frontend/dev/db-api-connect/migration-log.md b/frontend/dev/db-api-connect/migration-log.md new file mode 100644 index 0000000..20d8124 --- /dev/null +++ b/frontend/dev/db-api-connect/migration-log.md @@ -0,0 +1,469 @@ +# Migration Log + +## 2026-06-05 - Live-Deployment API-Login + +Status: Live-Login gegen `https://api.thats-me.app` erfolgreich hergestellt. + +### Problem + +- Das Live-Frontend lief zuerst gegen eine falsche API-Basisadresse. +- Korrekte API-Basis ist `https://api.thats-me.app/api`. +- Danach blockierte CORS Requests von `https://thats-me.app`. +- Nach dem CORS-Fix kam der Request bis Laravel durch, scheiterte aber mit `Invalid key supplied` beim Passport-Token. + +### Ursache + +- `frontend/src/services/apiClient.js` normalisierte bisher nur `https://api.thats-me.test` automatisch auf `/api`. +- `backend/config/cors.php` erlaubte nur lokale `.test`- und localhost-Origins. +- Auf dem Live-Server fehlten bzw. griffen keine gueltigen Laravel-Passport-Keys fuer `createToken()`. + +### Umsetzung + +- `frontend/src/services/apiClient.js` nutzt fuer Live-Hosts unter `thats-me.app` automatisch `https://api.thats-me.app/api`. +- `VITE_API_BASE=https://api.thats-me.app` wird automatisch zu `https://api.thats-me.app/api` normalisiert. +- `backend/config/cors.php` erlaubt zusaetzlich: + - `https://thats-me.app` + - `https://www.thats-me.app` + - `https://app.thats-me.app` +- Auf dem Live-Server wurden Passport-Keys/Config korrigiert, danach war der Login erfolgreich. + +### Live-Kommandos + +```bash +php artisan passport:keys --force +php artisan db:seed --class=DatabaseSeeder --no-interaction +php artisan optimize:clear +php artisan config:cache +``` + +### Pruefung + +- Browser-Login im Live-Frontend gegen `https://api.thats-me.app/api/login` funktioniert. +- CORS-Fehler fuer `https://thats-me.app` ist behoben. +- Passport-Fehler `Invalid key supplied` ist behoben. + +## 2026-06-03 - Phase 3 Hybrid-Auth Demo-Modus + +Version: `0.2.1` + +Status: Abgeschlossen fuer festen lokalen Demo-User ohne API-Sync. + +### Geaenderte Dateien + +- `frontend/src/pages/LoginPage.vue` +- `frontend/src/stores/auth.js` +- `frontend/src/stores/events.js` +- `frontend/dev/db-api-connect/migration-log.md` + +### Umsetzung + +- Es gibt jetzt einen festen lokalen User `Demo` mit `mode: local`. +- Die Login-Auswahl zeigt `Demo` zusaetzlich zu den sechs API-Usern. +- Fuer `Demo` ist kein Passwort noetig; der Login-Button zeigt `Demo lokal starten`. +- Lokale User-Erstellung und lokale `userN@thats-me.app`-Custom-User wurden aus der Auth-Liste entfernt. +- `Demo` startet leer und seeded keine Beispiel-Events mehr. +- Lokale Demo-Events bleiben in IndexedDB, werden aber nicht mehr in die lokale SyncQueue geschrieben. +- Remote-User `user1` bis `user6` bleiben unveraendert API-basiert. + +### Sicherheitsregel + +Der Demo-Modus verwendet keinen API-Login und keinen Bearer Token. Events im Demo-Modus bleiben browserlokal in IndexedDB und werden nicht als API-Sync-Auftrag vorgemerkt. + +### Ausgefuehrte Kommandos + +```bash +npm run lint +``` + +### Testergebnis + +- `npm run lint`: erfolgreich. + +### Manuelle QA + +- Noch nicht im Browser durchgeklickt. +- Erwartete QA: `Demo` auswaehlen, ohne Passwort starten, leere Timeline sehen, Event anlegen, Reload pruefen. Danach mit `user1@thats-me.app` einloggen und sicherstellen, dass keine Demo-Events sichtbar sind. + +## 2026-06-03 - Nachtrag Settings-Hintergrundbilder + +Status: Abgeschlossen fuer serverseitige Settings-Hintergrundbilder bei Remote-Usern. + +### Geaenderte Dateien + +- `backend/app/Http/Controllers/Api/SettingsMediaController.php` +- `backend/app/Http/Requests/StoreSettingsMediaRequest.php` +- `backend/routes/api.php` +- `backend/tests/Feature/Api/SettingsTest.php` +- `frontend/src/components/LifeWaveSettings.vue` +- `frontend/src/composables/useImageCache.js` +- `frontend/src/layouts/LifeWaveLayout.vue` +- `frontend/src/stores/settings.js` +- `frontend/dev/db-api-connect/migration-log.md` + +### Betroffene API-Endpunkte + +- `POST /api/settings/media/background` +- `GET /api/settings/media/background` +- `DELETE /api/settings/media/background` + +### Umsetzung + +- Remote-User laden eigene LifeWave-Hintergrundbilder nicht mehr als Data-URL in das Settings-JSON. +- Der Backend-Endpunkt speichert pro User ein optimiertes JPEG unter dem privaten `local` Disk. +- Hintergrundbilder werden auf maximal 1600px laengste Kante und JPEG-Qualitaet 86 reduziert. +- Die Settings speichern nur den geschuetzten Pfad `/settings/media/background`. +- Das Frontend laedt geschuetzte Settings-Bilder wie Event-Medien per Bearer Token als Blob und verwendet die Blob-URL als CSS-Hintergrund. +- Der lokale Demo-/Browser-Modus nutzt weiterhin die bestehende Data-URL-Komprimierung im Browser. + +### Sicherheitsregel + +Alle Settings-Medienrouten liegen hinter `auth:api`. Dateien werden usergebunden unter `settings-media/{userId}/background.jpg` gespeichert und nur fuer den authentifizierten User ausgeliefert. + +### Ausgefuehrte Kommandos + +```bash +vendor/bin/pint --dirty --format agent +php artisan test --compact tests/Feature/Api/SettingsTest.php +npm run lint +``` + +### Testergebnis + +- `tests/Feature/Api/SettingsTest.php`: 8 Tests, 32 Assertions, erfolgreich. +- `npm run lint`: erfolgreich. + +## 2026-06-03 - Phase 6 Serverseitige Bilder Fuer Remote-User + +Version: `0.4.0` + +Status: Abgeschlossen fuer serverseitige Remote-Eventbilder, Thumbnail-Erzeugung und geschuetzte Auslieferung. + +### Geaenderte Dateien + +- `backend/app/Http/Controllers/Api/EventController.php` +- `backend/app/Http/Controllers/Api/EventMediaController.php` +- `backend/app/Http/Requests/StoreEventMediaRequest.php` +- `backend/app/Http/Resources/EventMediaResource.php` +- `backend/app/Http/Resources/EventResource.php` +- `backend/app/Models/Event.php` +- `backend/app/Models/EventMedia.php` +- `backend/app/Services/EventMediaImageProcessor.php` +- `backend/config/cors.php` +- `backend/database/factories/EventMediaFactory.php` +- `backend/database/migrations/2026_06_03_131801_create_event_media_table.php` +- `backend/database/migrations/2026_06_03_133403_add_preview_paths_to_event_media_table.php` +- `backend/routes/api.php` +- `backend/tests/Feature/Api/EventMediaTest.php` +- `frontend/src/components/EventPanel.vue` +- `frontend/src/composables/useImageCache.js` +- `frontend/src/stores/events.js` +- `frontend/dev/db-api-connect/migration-log.md` + +### Betroffene Tabellen + +- `event_media` +- `events` +- `users` + +### Betroffene API-Endpunkte + +- `GET /api/events/{event}/media` +- `POST /api/events/{event}/media` +- `DELETE /api/events/{event}/media/{media}` +- `GET /api/event-media/{media}/thumb` +- `GET /api/event-media/{media}/preview` +- `GET /api/event-media/{media}/original` +- `GET /api/events` + +### Umsetzung + +- Remote-Bilder werden auf dem Laravel-Server unter dem privaten `local` Disk gespeichert. +- Uploads werden user- und eventgebunden in `event_media` abgelegt. +- Server erzeugt drei JPEG-Varianten: 320px Thumbnail fuer Timeline/Dots, 900px Preview fuer Event-Panel/Galerie und ein Original mit maximal 3508px laengster Kante fuer A4 bei 300 DPI. +- Key Images verwenden die Collection `key_image`; weitere Bilder verwenden `gallery`. +- Beim Ersetzen eines Key Images wird das alte Key Image inklusive Dateien entfernt. +- Geschuetzte Bildauslieferung prueft den authentifizierten User gegen `event_media.user_id`. +- Event-API liefert Medien-Metadaten mit `thumbnailUrl` und `originalUrl`. +- Frontend-Remote-Uploads gehen direkt an `/api/events/{id}/media`. +- Frontend laedt geschuetzte Bildpfade mit Bearer Token als Blob und verwendet lokale Blob-URLs fuer ``. +- Timeline/Dots nutzen `thumbnailUrl`, Event-Panel und Galerie nutzen `previewUrl`, ein spaeterer Download kann `originalUrl` verwenden. +- Fuer Medien, die vor der Preview-Variante hochgeladen wurden, faellt `/preview` auf das vorhandene Thumbnail zurueck. +- Leere Medienpfade werden beim Loeschen ignoriert, damit Altbestaende ohne Preview-Datei keine 500er ausloesen. +- CORS ist fuer `https://app.thats-me.test` und lokale App-Dev-Origins explizit konfiguriert. +- Lokale Demo-/Browser-Bilder bleiben unveraendert als lokale Data-URLs. + +### Sicherheitsregel + +Alle Medienrouten liegen hinter `auth:api`. Event-Medien werden nur ueber Events des authentifizierten Users angelegt, gelesen oder geloescht. Direkter Zugriff auf fremde `event_media` IDs liefert `404`. + +### Ausgefuehrte Kommandos + +```bash +vendor/bin/pint --dirty --format agent +php artisan optimize:clear +php artisan test --compact tests/Feature/Api/EventMediaTest.php +php artisan migrate --no-interaction +npm run lint +php artisan test --compact tests/Feature/Api/EventMediaTest.php tests/Feature/Api/EventTest.php tests/Feature/Api/AuthTest.php tests/Feature/Api/SettingsTest.php +php artisan migrate:status +``` + +### Testergebnis + +- `tests/Feature/Api/EventMediaTest.php`: 9 Tests, erfolgreich. +- API-Feature-Tests: 33 Tests, 133 Assertions, erfolgreich. +- `npm run lint`: erfolgreich. +- `php artisan migrate:status`: `2026_06_03_131801_create_event_media_table` ist in Batch 2 ausgefuehrt. + +### Manuelle QA + +- Noch nicht im Browser vollstaendig durchgeklickt. +- Erwartete QA: Remote-User einloggen, Key Image hochladen, Galerie-Bild hochladen, Seite neu laden, zweiten Browser mit gleichem User oeffnen, Thumbnail und Original in Galerie pruefen, Bild loeschen und DB/Storage pruefen. + +### Offene Punkte + +- Thumbnail-Groesse und JPEG-Qualitaet sind aktuell feste MVP-Werte. +- Originalbilder werden aktuell mit JPEG-Qualitaet 90 gespeichert. +- Previewbilder werden aktuell mit maximal 900px laengster Kante und JPEG-Qualitaet 84 gespeichert. +- Spaeter koennen Queue-Jobs fuer groessere Medienverarbeitung und weitere Varianten ergaenzt werden. +- Upload-Limit ist aktuell 10 MB pro Bild. + +## 2026-06-03 - Phase 5 Timeline-Settings Remote Speichern + +Version: `0.3.0` + +Status: Abgeschlossen fuer Remote-Settings von API-Usern. + +### Geaenderte Dateien + +- `backend/app/Http/Controllers/Api/SettingsController.php` +- `backend/app/Http/Requests/UpdateSettingsRequest.php` +- `backend/app/Models/User.php` +- `backend/app/Models/UserSetting.php` +- `backend/database/factories/UserSettingFactory.php` +- `backend/database/migrations/2026_06_03_130123_create_user_settings_table.php` +- `backend/routes/api.php` +- `backend/tests/Feature/Api/SettingsTest.php` +- `frontend/src/stores/settings.js` +- `frontend/dev/db-api-connect/migration-log.md` + +### Betroffene Tabellen + +- `user_settings` +- `users` + +### Betroffene API-Endpunkte + +- `GET /api/settings` +- `PUT /api/settings` + +### Umsetzung + +- Pro User wird ein JSON-Dokument in `user_settings.settings` gespeichert. +- `GET /api/settings` liefert die Settings des authentifizierten Users oder `null`. +- `PUT /api/settings` erstellt oder aktualisiert die Settings des authentifizierten Users. +- Frontend-Remote-User laden Settings beim Userwechsel/Login aus der API. +- Frontend-Remote-User speichern Settings per API und halten `localStorage` nur als lokalen Cache. +- Lokale Demo-/Browser-User bleiben auf `localStorage`. +- Gespeichert werden unter anderem Appearance, Accent Color, Sprache, Floating-Lines, Emotion-Gradient, Timeline-Zoom, Timeline-Scroll, Presets, aktives Preset und `showFps`. + +### Sicherheitsregel + +Die Settings-Routen liegen hinter `auth:api`. Der Controller greift ausschliesslich ueber `$request->user()->settings()` auf Daten zu, dadurch sind Settings anderer User weder lesbar noch ueberschreibbar. + +### Ausgefuehrte Kommandos + +```bash +vendor/bin/pint --dirty --format agent +php artisan optimize:clear +php artisan test --compact tests/Feature/Api/SettingsTest.php +php artisan migrate --no-interaction +php artisan migrate:status +npm run lint +php artisan test --compact tests/Feature/Api/SettingsTest.php tests/Feature/Api/AuthTest.php tests/Feature/Api/EventTest.php +``` + +### Testergebnis + +- `tests/Feature/Api/SettingsTest.php`: 5 Tests, 19 Assertions, erfolgreich. +- `tests/Feature/Api/SettingsTest.php tests/Feature/Api/AuthTest.php tests/Feature/Api/EventTest.php`: 24 Tests, 97 Assertions, erfolgreich. +- `npm run lint`: erfolgreich. +- `php artisan migrate:status`: `2026_06_03_130123_create_user_settings_table` ist ausgefuehrt. + +### Manuelle QA + +- Noch nicht im Browser gegen zwei Browserprofile durchgeklickt. +- Erwartete QA: mit API-User einloggen, Appearance/Accent/Floating-Lines/Timeline-Zoom aendern, in zweitem Browser mit gleichem User einloggen und Settings pruefen. + +### Offene Punkte + +- Serverseitige Bilder fuer Remote-User folgen in Phase 6. +- Der lokale `Demo`-User als sauber getrennter Browser-only Modus bleibt fuer Phase 3 noch offen. + +## 2026-06-03 - Phase 2 API-Login Fuer Quasar + +Version: `0.2.0` + +Status: Abgeschlossen fuer Backend-Login, Logout, Token-Ablage im Frontend und Remote-User-Auswahl im Login. + +### Geaenderte Dateien + +- `backend/app/Http/Controllers/Api/AuthController.php` +- `backend/app/Http/Requests/LoginRequest.php` +- `backend/database/seeders/DatabaseSeeder.php` +- `backend/routes/api.php` +- `backend/tests/Feature/Api/AuthTest.php` +- `frontend/src/pages/LoginPage.vue` +- `frontend/package.json` +- `frontend/src/router/index.js` +- `frontend/src/services/apiClient.js` +- `frontend/src/services/syncService.js` +- `frontend/src/stores/auth.js` +- `frontend/dev/db-api-connect/migration-log.md` + +### Betroffene Tabellen + +- `users` +- `oauth_clients` +- `oauth_access_tokens` + +### Betroffene API-Endpunkte + +- `POST /api/login` +- `POST /api/logout` +- `GET /api/user` + +### Umsetzung + +- `POST /api/login` validiert E-Mail und Passwort gegen Laravel-User. +- Erfolgreicher Login erzeugt einen Passport Personal Access Token fuer die Quasar-App. +- Login-Response liefert Token, Token-Typ und Userdaten mit `mode: remote`. +- `POST /api/logout` widerruft den aktuellen Token. +- `DatabaseSeeder` legt zusaetzlich einen Passport Personal-Access-Client fuer den `users` Provider an, falls noch keiner existiert. +- Frontend hat mit `src/services/apiClient.js` einen zentralen API-Client inklusive Token-Ablage in IndexedDB `meta.accessToken`. +- `syncService` nutzt denselben API-Client und vermeidet dadurch doppelte Token-Logik. +- `auth` Store fuehrt `user1@thats-me.app` bis `user6@thats-me.app` als Remote-User. +- Login-Seite nutzt async API-Login, zeigt die sechs API-Accounts und entfernt den sichtbaren User-Anlegen-Button. +- Router erkennt gespeicherte Remote-Auth nach Reload ueber die persistierte Auth-Struktur. +- Frontend-Lint-Script nutzt den funktionierenden `src/**/*.{js,cjs,mjs,vue}` Glob. + +### Sicherheitsregel + +Falsche Zugangsdaten liefern Validierungsfehler ohne Token. Geschuetzte Endpunkte bleiben hinter `auth:api`; Logout widerruft den Bearer Token serverseitig. + +### Ausgefuehrte Kommandos + +```bash +vendor/bin/pint --dirty --format agent +php artisan test --compact tests/Feature/Api/AuthTest.php +php artisan test --compact tests/Feature/Api/AuthTest.php tests/Feature/Api/EventTest.php +php artisan db:seed --class=DatabaseSeeder --no-interaction +npm run lint +``` + +### Testergebnis + +- `tests/Feature/Api/AuthTest.php`: 7 Tests, 43 Assertions, erfolgreich. +- `tests/Feature/Api/AuthTest.php tests/Feature/Api/EventTest.php`: 19 Tests, 78 Assertions, erfolgreich. +- `npm run lint`: erfolgreich. + +### Manuelle QA + +- Browser-Login wurde noch nicht manuell durchgeklickt. +- Der Backend-Seed wurde gegen die lokale Datenbank erneut ausgefuehrt. + +### Offene Punkte + +- Phase 3 fuehrt den lokalen `Demo`-User sauber als getrennten Browser-only Modus ein. +- Phase 4 stellt die Event-Persistenz fuer Remote-User von lokaler Dexie-Fuehrung auf API-Fuehrung um. + +### Nachtrag 2026-06-03 + +- `frontend/src/services/apiClient.js` nutzt bei `app.thats-me.test` ohne explizites `VITE_API_BASE` automatisch `https://api.thats-me.test/api`. +- `frontend/src/services/apiClient.js` nutzt bei Live-Hosts unter `thats-me.app` automatisch `https://api.thats-me.app/api`. +- Damit laufen Login-Requests nicht mehr versehentlich gegen den Quasar-Devserver-Pfad `/api`. +- `VITE_API_BASE=https://api.thats-me.test` und `VITE_API_BASE=https://api.thats-me.app` werden automatisch um `/api` ergaenzt. +- `backend/config/cors.php` erlaubt fuer Live zusaetzlich `https://thats-me.app`, `https://www.thats-me.app` und `https://app.thats-me.app`. +- Im Dev-Modus wird die vollstaendige API-Request-URL mit `API request: ...` in die Browser-Konsole geschrieben. +- `frontend/src/stores/auth.js` loggt Remote-Login-Fehler zusaetzlich in der Browser-Konsole. +- Geprueft mit `npm run lint` und `php artisan test --compact tests/Feature/Api/AuthTest.php`. + +### Nachtrag Remote-Events 2026-06-03 + +- `frontend/src/stores/events.js` laedt Events fuer Remote-User beim Login direkt ueber `GET /api/events`. +- Remote-Create, Remote-Update und Remote-Delete laufen fuer API-User jetzt direkt ueber `POST /api/events`, `PUT /api/events/{id}` und `DELETE /api/events/{id}`. +- IndexedDB bleibt fuer Remote-User nur Cache; fuehrend ist die API. +- Neue Browser laden vorhandene Remote-Events direkt aus der Datenbank. +- Geprueft mit `npm run lint` und `php artisan test --compact tests/Feature/Api/EventTest.php tests/Feature/Api/AuthTest.php`. + +## 2026-06-03 - Phase 1 Backend-Basis + +Version: `0.1.0` + +Status: Abgeschlossen fuer Backend-Basis, Demo-API-User und geschuetzte API-Pruefungen. + +### Geaenderte Dateien + +- `backend/database/seeders/DatabaseSeeder.php` +- `backend/tests/Feature/Api/AuthTest.php` +- `frontend/dev/db-api-connect/migration-log.md` + +### Betroffene Tabellen + +- `users` +- `events` +- `oauth_auth_codes` +- `oauth_access_tokens` +- `oauth_refresh_tokens` +- `oauth_clients` +- `oauth_device_codes` +- `cache` +- `jobs` +- `sessions` +- `password_reset_tokens` + +### Betroffene API-Endpunkte + +- `GET /api/user` +- `GET /api/events` + +### Umsetzung + +- Lokale MySQL-Datenbank `thats-me` wurde angelegt, falls sie noch nicht vorhanden war. +- Alle vorhandenen Backend-Migrationen wurden ausgefuehrt. +- `DatabaseSeeder` wurde idempotent gemacht. +- `user1@thats-me.app` bis `user6@thats-me.app` werden mit Passwort `pass` angelegt oder aktualisiert. +- Der bestehende `test@example.com` bleibt als separater Test-User erhalten und wird nicht als Praesentationsuser verwendet. +- Feature-Tests pruefen geschuetzten API-Zugriff ohne Token, Rueckgabe des authentifizierten Users und die Seeder-User inklusive Passwort. + +### Sicherheitsregel + +Die geschuetzten API-Routen liegen weiterhin hinter `auth:api`. Ohne Token liefern `GET /api/user` und `GET /api/events` einen unauthorisierten Status. Mit Passport-Testauthentifizierung liefert `GET /api/user` nur den authentifizierten User. + +### Ausgefuehrte Kommandos + +```bash +vendor/bin/pint --dirty --format agent +php artisan test --compact tests/Feature/Api/AuthTest.php +php artisan test --compact tests/Feature/Api +php artisan migrate --no-interaction +php artisan db:seed --class=DatabaseSeeder --no-interaction +php artisan migrate:status +``` + +### Testergebnis + +- `tests/Feature/Api/AuthTest.php`: 4 Tests, 24 Assertions, erfolgreich. +- `tests/Feature/Api`: 16 Tests, 59 Assertions, erfolgreich. +- `php artisan migrate:status`: alle vorhandenen Migrationen in Batch 1 ausgefuehrt. + +### Manuelle QA + +- Nicht im Browser geprueft, da Phase 1 noch keine Frontend-Anbindung enthaelt. +- CORS/API-Erreichbarkeit von `app.thats-me.test` nach `api.thats-me.test` bleibt fuer Phase 2/3 offen, sobald die Login-Route und der Frontend-Client angebunden werden. + +### Offene Punkte + +- Echte Login-/Logout-Endpunkte fuer Quasar folgen in Phase 2. +- Token-Erzeugung fuer das Frontend wird in Phase 2 finalisiert. +- Frontend-Demo-Modus und Remote-User-Auswahl folgen in Phase 3. diff --git a/frontend/dev/floating-lines.js b/frontend/dev/floating-lines.js index 3f81070..f0be204 100644 --- a/frontend/dev/floating-lines.js +++ b/frontend/dev/floating-lines.js @@ -7,7 +7,6 @@ import { ShaderMaterial, Vector3, Vector2, - Clock, } from 'three' const vertexShader = ` @@ -19,7 +18,7 @@ void main() { ` const fragmentShader = ` -precision highp float; +precision mediump float; uniform float iTime; uniform vec3 iResolution; @@ -58,34 +57,24 @@ uniform float bendRadius; uniform float bendStrength; uniform float bendInfluence; +uniform int horizonMode; // 0=off 1=fog 2=split 3=glow +uniform float horizonOpacity; // Nebel + Glow: Helligkeit/Dichte +uniform float horizonBlend; // Trennung: 0=scharf, 1=weicher Übergang + uniform bool parallax; uniform float parallaxStrength; uniform vec2 parallaxOffset; +uniform float lineBrightness; uniform vec3 lineGradient[8]; uniform int lineGradientCount; uniform vec3 bgColorCenter; uniform vec3 bgColorEdge; -const vec3 BLACK = vec3(0.0); -const vec3 PINK = vec3(233.0, 71.0, 245.0) / 255.0; -const vec3 BLUE = vec3(47.0, 75.0, 162.0) / 255.0; - mat2 rotate(float r) { return mat2(cos(r), sin(r), -sin(r), cos(r)); } -vec3 background_color(vec2 uv) { - vec3 col = vec3(0.0); - - float y = sin(uv.x - 0.2) * 0.3 - 0.1; - float m = uv.y - y; - - col += mix(BLUE, BLACK, smoothstep(0.0, 1.0, abs(m))); - col += mix(PINK, BLACK, smoothstep(0.0, 1.0, abs(m - 0.8))); - return col * 0.5; -} - vec3 getLineColor(float t, vec3 baseColor) { if (lineGradientCount <= 0) { return baseColor; @@ -108,7 +97,7 @@ vec3 getLineColor(float t, vec3 baseColor) { gradientColor = mix(c1, c2, f); } - return gradientColor * 0.5; + return gradientColor; } vec3 drawCircle(vec2 uv, vec2 center, float r, vec3 color) { @@ -163,25 +152,9 @@ float bezierClosestT(vec2 q, vec2 p0, vec2 pc, vec2 p1) { return t; } -float waveFocal(vec2 uv, float fi, float totalLines, vec2 sp, vec2 ep) { - // Bézier-Kontrollpunkt: Mittelpunkt + senkrechter Versatz - vec2 seg = ep - sp; - float segLen = length(seg); - if (segLen < 0.001) return 0.0; - vec2 segDir = seg / segLen; - vec2 segPerp = vec2(-segDir.y, segDir.x); - vec2 pc = (sp + ep) * 0.5 + segPerp * segLen * bezierCurvature; - - float t = bezierClosestT(uv, sp, pc, ep); - float mt = 1.0 - t; - - // Position und Tangente auf der Kurve - vec2 curvePos = mt*mt*sp + 2.0*mt*t*pc + t*t*ep; - vec2 tang = normalize(2.0*mt*(pc - sp) + 2.0*t*(ep - pc)); - vec2 norm = vec2(-tang.y, tang.x); - - // Senkrechter Abstand von der Kurve - float s = dot(uv - curvePos, norm); +// Accepts precomputed bezier values (bt, bPos, bNorm) — computed once per segment +float waveFocal(vec2 uv, float fi, float totalLines, float t, vec2 bPos, vec2 bNorm) { + float s = dot(uv - bPos, bNorm); float time = iTime * animationSpeed; float normalizedI = totalLines > 1.0 ? fi / (totalLines - 1.0) : 0.5; @@ -227,7 +200,7 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord) { vec3 col = vec3(0.0); - vec3 b = lineGradientCount > 0 ? bgColorCenter : background_color(baseUv); + vec3 b = bgColorCenter; vec2 mouseUv = vec2(0.0); if (interactive) { @@ -269,33 +242,34 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord) { vec2 sp = vec2(x0, pointY[s]); vec2 ep = vec2(x1, pointY[s + 1]); - // Gradient: globaler t-Bereich [s, s+1] / (numPoints-1) - vec2 pd = ep - sp; - float pl = length(pd); - vec2 pa = pl > 0.001 ? pd / pl : vec2(1.0, 0.0); - float t_seg = clamp(dot(baseUv - sp, pa) / pl, 0.0, 1.0); + // Segment-Geometrie (einmalig berechnet, von Gradient + Bézier genutzt) + vec2 seg = ep - sp; + float segL = length(seg); + vec2 segDir = segL > 0.001 ? seg / segL : vec2(1.0, 0.0); + vec2 sPerp = vec2(-segDir.y, segDir.x); + vec2 pc = (sp + ep) * 0.5 + sPerp * segL * bezierCurvature; + + // Gradient + float t_seg = clamp(dot(baseUv - sp, segDir) / segL, 0.0, 1.0); float t_global = (float(s) + t_seg) * tScale; - vec3 lineCol = getLineColor(t_global, b); + vec3 lineCol = getLineColor(t_global, b); - // Bézier-Kontrollpunkt für Nebel (gleiche Logik wie in waveFocal) - vec2 segD = ep - sp; - float segL = length(segD); - vec2 segDir = segL > 0.001 ? segD / segL : vec2(1.0, 0.0); - vec2 sPerp = vec2(-segDir.y, segDir.x); - vec2 pc = (sp + ep) * 0.5 + sPerp * segL * bezierCurvature; + // Bézier einmal pro Segment — geteilt von Nebel + allen Linien + float bt = bezierClosestT(baseUv, sp, pc, ep); + float bmt = 1.0 - bt; + vec2 bPos = bmt*bmt*sp + 2.0*bmt*bt*pc + bt*bt*ep; + vec2 bTang = normalize(2.0*bmt*(pc - sp) + 2.0*bt*(ep - pc)); + vec2 bNorm = vec2(-bTang.y, bTang.x); - // Weicher Nebel entlang der Bézier-Kurve → füllt dunkle Winkel organisch - float bt = bezierClosestT(baseUv, sp, pc, ep); - float bmt = 1.0 - bt; - vec2 bPos = bmt*bmt*sp + 2.0*bmt*bt*pc + bt*bt*ep; - float bDist = length(baseUv - bPos); + // Weicher Nebel entlang der Kurve + float bDist = length(baseUv - bPos); float fogFade = smoothstep(-0.06, 0.05, bt) * smoothstep(1.06, 0.95, bt); float fogEnv = sin(bt * 3.14159265359); float segFog = fogFade * fogEnv * 0.0018 / max(bDist * bDist * 4.0 + 0.012, 0.001); col += lineCol * segFog; for (int i = 0; i < middleLineCount; ++i) { - col += lineCol * waveFocal(baseUv, float(i), float(middleLineCount), sp, ep); + col += lineCol * waveFocal(baseUv, float(i), float(middleLineCount), bt, bPos, bNorm); } } @@ -304,7 +278,7 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord) { if (p >= numPoints) break; float px = pointsOffsetX + (float(p) - float(numPoints - 1) * 0.5) * pointSpacingX; float t_pt = numPoints > 1 ? float(p) * tScale : 0.0; - vec3 circCol = getLineColor(t_pt, b) * 2.5; + vec3 circCol = getLineColor(t_pt, b) * 1.5; col += drawCircle(baseUv, vec2(px, pointY[p]), r, circCol); } } @@ -328,9 +302,33 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord) { } } + col *= lineBrightness; + // Hintergrundverlauf: radial von bgColorCenter (Mitte) nach bgColorEdge (Rand) float dist = length(baseUv) / 1.8; vec3 bg = mix(bgColorCenter, bgColorEdge, clamp(dist, 0.0, 1.0)); + + if (horizonMode == 1) { + // Nebel: breites weiches Gaussband in Gradient-Mittelfarbe + float band = exp(-baseUv.y * baseUv.y * 5.0); + vec3 fogColor = getLineColor(0.5, bg) * 2.0; + col += fogColor * band * horizonOpacity; + } else if (horizonMode == 2) { + // Farbtrennung: vertikaler Split an Y=0 + // bgColorCenter → oben (positives UV-Y), bgColorEdge → unten + // horizonBlend: 0=harter Schnitt, 1=sehr weicher Übergang + float blendW = max(horizonBlend * 0.7, 0.001); + float t = smoothstep(-blendW, blendW, baseUv.y); + bg = mix(bgColorEdge, bgColorCenter, t); + } else if (horizonMode == 3) { + // Glow: konzentriertes Leuchten in Gradient-Mittelfarbe + float d2 = baseUv.y * baseUv.y; + float softGlow = exp(-d2 * 10.0); + float coreGlow = exp(-d2 * 70.0) * 0.7; + vec3 glowColor = getLineColor(0.5, bg) * 3.0; + col += glowColor * (softGlow + coreGlow) * horizonOpacity; + } + fragColor = vec4(clamp(bg + col, 0.0, 1.0), 1.0); } @@ -376,7 +374,6 @@ export default class FloatingLines { lineCount = [6], lineDistance = [5], topWavePosition, - middleWavePosition, bottomWavePosition = { x: 2.0, y: -0.7, rotate: -1 }, numPoints = 4, pointSpacingX = 0.8, @@ -389,6 +386,7 @@ export default class FloatingLines { bezierCurvature = 0.3, circleRadiusPx = 50, animationSpeed = 1, + lineBrightness = 1.0, interactive = true, bendRadius = 5.0, bendStrength = -0.5, @@ -397,6 +395,11 @@ export default class FloatingLines { parallaxStrength = 0.2, circleGlowSize = 18.0, circleGlowStrength = 1.5, + horizonMode = 'off', + horizonOpacity = 0.5, + horizonBlend = 0.2, + bgColorCenter = '#0a0514', + bgColorEdge = '#000000', mixBlendMode = 'screen', } = {}, ) { @@ -427,14 +430,12 @@ export default class FloatingLines { return lineDistance[index] ?? 0.1 } - const topLineCount = enabledWaves.includes('top') ? getLineCount('top') : 0 - const middleLineCount = enabledWaves.includes('middle') ? getLineCount('middle') : 0 - const bottomLineCount = enabledWaves.includes('bottom') ? getLineCount('bottom') : 0 + const topLineCount = getLineCount('top') + const middleLineCount = getLineCount('middle') + const bottomLineCount = getLineCount('bottom') - const topLineDistance = enabledWaves.includes('top') ? getLineDistance('top') * 0.01 : 0.01 - const bottomLineDistance = enabledWaves.includes('bottom') - ? getLineDistance('bottom') * 0.01 - : 0.01 + const topLineDistance = getLineDistance('top') * 0.01 + const bottomLineDistance = getLineDistance('bottom') * 0.01 this.scene = new Scene() this.camera = new OrthographicCamera(-1, 1, 1, -1, 0, 1) @@ -451,6 +452,7 @@ export default class FloatingLines { iTime: { value: 0 }, iResolution: { value: new Vector3(1, 1, 1) }, animationSpeed: { value: animationSpeed }, + lineBrightness: { value: lineBrightness }, enableTop: { value: enabledWaves.includes('top') }, enableMiddle: { value: enabledWaves.includes('middle') }, @@ -497,6 +499,10 @@ export default class FloatingLines { bendStrength: { value: bendStrength }, bendInfluence: { value: 0 }, + horizonMode: { value: { off: 0, fog: 1, split: 2, glow: 3 }[horizonMode] ?? 0 }, + horizonOpacity: { value: horizonOpacity }, + horizonBlend: { value: horizonBlend }, + parallax: { value: parallax }, parallaxStrength: { value: parallaxStrength }, parallaxOffset: { value: new Vector2(0, 0) }, @@ -505,7 +511,8 @@ export default class FloatingLines { value: Array.from({ length: MAX_GRADIENT_STOPS }, () => new Vector3(1, 1, 1)), }, lineGradientCount: { value: 0 }, - bgColor: { value: new Vector3(0, 0, 0) }, + bgColorCenter: { value: new Vector3(0, 0, 0) }, + bgColorEdge: { value: new Vector3(0, 0, 0) }, } if (linesGradient && linesGradient.length > 0) { @@ -517,6 +524,11 @@ export default class FloatingLines { }) } + const center = hexToVec3(bgColorCenter) + this.uniforms.bgColorCenter.value.set(center.x, center.y, center.z) + const edge = hexToVec3(bgColorEdge) + this.uniforms.bgColorEdge.value.set(edge.x, edge.y, edge.z) + const material = new ShaderMaterial({ uniforms: this.uniforms, vertexShader, @@ -529,7 +541,7 @@ export default class FloatingLines { this.geometry = geometry this.material = material - this.clock = new Clock() + this._startTime = performance.now() this._setSize = () => { const width = container.clientWidth || 1 @@ -571,7 +583,7 @@ export default class FloatingLines { this.raf = 0 const renderLoop = () => { - this.uniforms.iTime.value = this.clock.getElapsedTime() + this.uniforms.iTime.value = (performance.now() - this._startTime) * 0.001 if (this.interactive) { this.currentMouse.lerp(this.targetMouse, this.mouseDamping) @@ -589,12 +601,24 @@ export default class FloatingLines { this.renderer.render(this.scene, this.camera) this.raf = requestAnimationFrame(renderLoop) } + + this._handleVisibility = () => { + if (document.hidden) { + cancelAnimationFrame(this.raf) + this.raf = 0 + } else if (!this.raf) { + renderLoop() + } + } + document.addEventListener('visibilitychange', this._handleVisibility) + renderLoop() } destroy() { cancelAnimationFrame(this.raf) if (this.ro) this.ro.disconnect() + document.removeEventListener('visibilitychange', this._handleVisibility) this.renderer.domElement.removeEventListener('pointermove', this._handlePointerMove) this.renderer.domElement.removeEventListener('pointerleave', this._handlePointerLeave) diff --git a/frontend/dev/init-fl.html b/frontend/dev/init-fl.html index c253d8f..ba0171a 100644 --- a/frontend/dev/init-fl.html +++ b/frontend/dev/init-fl.html @@ -50,7 +50,7 @@ border-top: 1px solid #222; padding: 10px 14px; display: grid; - grid-template-columns: 1fr 1fr 2fr 1.2fr; + grid-template-columns: 1fr 1fr 2fr 0.8fr 1.2fr; gap: 10px 16px; max-height: 230px; overflow-y: auto; @@ -287,6 +287,27 @@ + +
+

Horizont

+
+ + + + +
+
+ + + 0.50 +
+ +
+

Hintergrundbild

@@ -501,6 +522,27 @@ hexToUniformVec3(e.target.value, fl.uniforms.bgColorEdge) }) + // ── Horizont ───────────────────────────────────────────────────── + const rowOpacity = document.getElementById('row-horizonOpacity') + const rowBlend = document.getElementById('row-horizonBlend') + + function updateHorizonRows(mode) { + rowOpacity.style.display = mode === 2 ? 'none' : 'flex' + rowBlend.style.display = mode === 2 ? 'flex' : 'none' + } + + document.querySelectorAll('[data-mode]').forEach((btn) => { + btn.addEventListener('click', () => { + document.querySelectorAll('[data-mode]').forEach((b) => b.classList.remove('active')) + btn.classList.add('active') + const mode = parseInt(btn.dataset.mode) + fl.uniforms.horizonMode.value = mode + updateHorizonRows(mode) + }) + }) + slider('horizonOpacity', 2, (v) => (fl.uniforms.horizonOpacity.value = v)) + slider('horizonBlend', 2, (v) => (fl.uniforms.horizonBlend.value = v)) + // ── Gradient ────────────────────────────────────────────────────── const MAX_STOPS = 8 function applyGradient() { diff --git a/frontend/package-lock.json b/frontend/package-lock.json index f72aa7f..51ca807 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -15,7 +15,8 @@ "quasar": "^2.16.0", "three": "^0.183.0", "vue": "^3.4.18", - "vue-router": "^4.0.0" + "vue-router": "^4.0.0", + "vue-select": "^4.0.0-beta.6" }, "devDependencies": { "@eslint/js": "^9.14.0", @@ -8172,6 +8173,15 @@ "integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==", "license": "MIT" }, + "node_modules/vue-select": { + "version": "4.0.0-beta.6", + "resolved": "https://registry.npmjs.org/vue-select/-/vue-select-4.0.0-beta.6.tgz", + "integrity": "sha512-K+zrNBSpwMPhAxYLTCl56gaMrWZGgayoWCLqe5rWwkB8aUbAUh7u6sXjIR7v4ckp2WKC7zEEUY27g6h1MRsIHw==", + "license": "MIT", + "peerDependencies": { + "vue": "3.x" + } + }, "node_modules/wcwidth": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", diff --git a/frontend/package.json b/frontend/package.json index 9cdb10f..762bf83 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -7,7 +7,7 @@ "type": "module", "private": true, "scripts": { - "lint": "eslint -c ./eslint.config.js \"./src*/**/*.{js,cjs,mjs,vue}\"", + "lint": "eslint -c ./eslint.config.js \"src/**/*.{js,cjs,mjs,vue}\"", "format": "prettier --write \"**/*.{js,vue,scss,html,md,json}\" --ignore-path .gitignore", "test": "echo \"No test specified\" && exit 0", "dev": "npm install && quasar dev", @@ -21,7 +21,8 @@ "quasar": "^2.16.0", "three": "^0.183.0", "vue": "^3.4.18", - "vue-router": "^4.0.0" + "vue-router": "^4.0.0", + "vue-select": "^4.0.0-beta.6" }, "optionalDependencies": { "@rollup/rollup-darwin-arm64": "^4.0.0", diff --git a/frontend/public/audio/ferien_erlebnisbericht.mp3 b/frontend/public/audio/ferien_erlebnisbericht.mp3 new file mode 100644 index 0000000..528cc3a Binary files /dev/null and b/frontend/public/audio/ferien_erlebnisbericht.mp3 differ diff --git a/frontend/public/images/0_2.png b/frontend/public/images/0_2.png new file mode 100644 index 0000000..008cbfa Binary files /dev/null and b/frontend/public/images/0_2.png differ diff --git a/frontend/public/images/0_3.png b/frontend/public/images/0_3.png new file mode 100644 index 0000000..6abd17a Binary files /dev/null and b/frontend/public/images/0_3.png differ diff --git a/frontend/public/images/disco.png b/frontend/public/images/disco.png new file mode 100644 index 0000000..8588d2a Binary files /dev/null and b/frontend/public/images/disco.png differ diff --git a/frontend/public/images/entspannung.png b/frontend/public/images/entspannung.png new file mode 100644 index 0000000..8673fea Binary files /dev/null and b/frontend/public/images/entspannung.png differ diff --git a/frontend/public/images/familie.png b/frontend/public/images/familie.png new file mode 100644 index 0000000..e6c5420 Binary files /dev/null and b/frontend/public/images/familie.png differ diff --git a/frontend/public/images/familie2.png b/frontend/public/images/familie2.png new file mode 100644 index 0000000..dbfd161 Binary files /dev/null and b/frontend/public/images/familie2.png differ diff --git a/frontend/public/images/feier.png b/frontend/public/images/feier.png new file mode 100644 index 0000000..d849e60 Binary files /dev/null and b/frontend/public/images/feier.png differ diff --git a/frontend/public/images/gallery/aaron-huber-RLs8LZcONCA-unsplash.jpg b/frontend/public/images/gallery/aaron-huber-RLs8LZcONCA-unsplash.jpg new file mode 100644 index 0000000..305ea72 Binary files /dev/null and b/frontend/public/images/gallery/aaron-huber-RLs8LZcONCA-unsplash.jpg differ diff --git a/frontend/public/images/gallery/andrew-bui-z7rzbFHXym0-unsplash.jpg b/frontend/public/images/gallery/andrew-bui-z7rzbFHXym0-unsplash.jpg new file mode 100644 index 0000000..1f92a73 Binary files /dev/null and b/frontend/public/images/gallery/andrew-bui-z7rzbFHXym0-unsplash.jpg differ diff --git a/frontend/public/images/gallery/becca-tapert--A_Sx8GrRWg-unsplash.jpg b/frontend/public/images/gallery/becca-tapert--A_Sx8GrRWg-unsplash.jpg new file mode 100644 index 0000000..29bd231 Binary files /dev/null and b/frontend/public/images/gallery/becca-tapert--A_Sx8GrRWg-unsplash.jpg differ diff --git a/frontend/public/images/gallery/fuu-j-r2nJPbEYuSQ-unsplash.jpg b/frontend/public/images/gallery/fuu-j-r2nJPbEYuSQ-unsplash.jpg new file mode 100644 index 0000000..eb15fc9 Binary files /dev/null and b/frontend/public/images/gallery/fuu-j-r2nJPbEYuSQ-unsplash.jpg differ diff --git a/frontend/public/images/gallery/ian-dooley-hpTH5b6mo2s-unsplash.jpg b/frontend/public/images/gallery/ian-dooley-hpTH5b6mo2s-unsplash.jpg new file mode 100644 index 0000000..6e977a0 Binary files /dev/null and b/frontend/public/images/gallery/ian-dooley-hpTH5b6mo2s-unsplash.jpg differ diff --git a/frontend/public/images/gallery/ishan-seefromthesky-TobZaa8ZwI4-unsplash.jpg b/frontend/public/images/gallery/ishan-seefromthesky-TobZaa8ZwI4-unsplash.jpg new file mode 100644 index 0000000..0b6fdb9 Binary files /dev/null and b/frontend/public/images/gallery/ishan-seefromthesky-TobZaa8ZwI4-unsplash.jpg differ diff --git a/frontend/public/images/gallery/javier-allegue-barros-55bVEzGVnzY-unsplash.jpg b/frontend/public/images/gallery/javier-allegue-barros-55bVEzGVnzY-unsplash.jpg new file mode 100644 index 0000000..b07f6b2 Binary files /dev/null and b/frontend/public/images/gallery/javier-allegue-barros-55bVEzGVnzY-unsplash.jpg differ diff --git a/frontend/public/images/gallery/jay-antol-Xbf_4e7YDII-unsplash.jpg b/frontend/public/images/gallery/jay-antol-Xbf_4e7YDII-unsplash.jpg new file mode 100644 index 0000000..2bb4b73 Binary files /dev/null and b/frontend/public/images/gallery/jay-antol-Xbf_4e7YDII-unsplash.jpg differ diff --git a/frontend/public/images/gallery/jorgen-hendriksen-8qg-hy6VbYE-unsplash.jpg b/frontend/public/images/gallery/jorgen-hendriksen-8qg-hy6VbYE-unsplash.jpg new file mode 100644 index 0000000..7caa1df Binary files /dev/null and b/frontend/public/images/gallery/jorgen-hendriksen-8qg-hy6VbYE-unsplash.jpg differ diff --git a/frontend/public/images/gallery/mohamed-nohassi-odxB5oIG_iA-unsplash.jpg b/frontend/public/images/gallery/mohamed-nohassi-odxB5oIG_iA-unsplash.jpg new file mode 100644 index 0000000..1af987e Binary files /dev/null and b/frontend/public/images/gallery/mohamed-nohassi-odxB5oIG_iA-unsplash.jpg differ diff --git a/frontend/public/images/gallery/saad-chaudhry-cYpqYxGeqts-unsplash.jpg b/frontend/public/images/gallery/saad-chaudhry-cYpqYxGeqts-unsplash.jpg new file mode 100644 index 0000000..9934171 Binary files /dev/null and b/frontend/public/images/gallery/saad-chaudhry-cYpqYxGeqts-unsplash.jpg differ diff --git a/frontend/public/images/gallery/taryn-kaahanui-J5b23iaAHis-unsplash.jpg b/frontend/public/images/gallery/taryn-kaahanui-J5b23iaAHis-unsplash.jpg new file mode 100644 index 0000000..165f393 Binary files /dev/null and b/frontend/public/images/gallery/taryn-kaahanui-J5b23iaAHis-unsplash.jpg differ diff --git a/frontend/public/images/gallery/tirza-van-dijk-hbwdmqcmP6k-unsplash.jpg b/frontend/public/images/gallery/tirza-van-dijk-hbwdmqcmP6k-unsplash.jpg new file mode 100644 index 0000000..d000285 Binary files /dev/null and b/frontend/public/images/gallery/tirza-van-dijk-hbwdmqcmP6k-unsplash.jpg differ diff --git a/frontend/public/images/gpt.png b/frontend/public/images/gpt.png new file mode 100644 index 0000000..ea252e5 Binary files /dev/null and b/frontend/public/images/gpt.png differ diff --git a/frontend/public/images/grosseltern.png b/frontend/public/images/grosseltern.png new file mode 100644 index 0000000..6572a1c Binary files /dev/null and b/frontend/public/images/grosseltern.png differ diff --git a/frontend/public/images/hochzeit.png b/frontend/public/images/hochzeit.png new file mode 100644 index 0000000..ce61760 Binary files /dev/null and b/frontend/public/images/hochzeit.png differ diff --git a/frontend/public/images/kindergeburtstag.png b/frontend/public/images/kindergeburtstag.png new file mode 100644 index 0000000..47a1a7b Binary files /dev/null and b/frontend/public/images/kindergeburtstag.png differ diff --git a/frontend/public/images/kinobesuch.png b/frontend/public/images/kinobesuch.png new file mode 100644 index 0000000..6bc2472 Binary files /dev/null and b/frontend/public/images/kinobesuch.png differ diff --git a/frontend/public/images/klasse.png b/frontend/public/images/klasse.png new file mode 100644 index 0000000..91124b8 Binary files /dev/null and b/frontend/public/images/klasse.png differ diff --git a/frontend/public/images/oma.png b/frontend/public/images/oma.png new file mode 100644 index 0000000..941dbda Binary files /dev/null and b/frontend/public/images/oma.png differ diff --git a/frontend/public/images/pferd.png b/frontend/public/images/pferd.png new file mode 100644 index 0000000..5992d19 Binary files /dev/null and b/frontend/public/images/pferd.png differ diff --git a/frontend/public/images/see.png b/frontend/public/images/see.png new file mode 100644 index 0000000..59d79f9 Binary files /dev/null and b/frontend/public/images/see.png differ diff --git a/frontend/public/images/sonntag.png b/frontend/public/images/sonntag.png new file mode 100644 index 0000000..3d5d677 Binary files /dev/null and b/frontend/public/images/sonntag.png differ diff --git a/frontend/public/images/thumbs/aaron-huber-RLs8LZcONCA-unsplash.jpg b/frontend/public/images/thumbs/aaron-huber-RLs8LZcONCA-unsplash.jpg new file mode 100644 index 0000000..27cd868 Binary files /dev/null and b/frontend/public/images/thumbs/aaron-huber-RLs8LZcONCA-unsplash.jpg differ diff --git a/frontend/public/images/thumbs/andrew-bui-z7rzbFHXym0-unsplash.jpg b/frontend/public/images/thumbs/andrew-bui-z7rzbFHXym0-unsplash.jpg new file mode 100644 index 0000000..ea5f75c Binary files /dev/null and b/frontend/public/images/thumbs/andrew-bui-z7rzbFHXym0-unsplash.jpg differ diff --git a/frontend/public/images/thumbs/becca-tapert--A_Sx8GrRWg-unsplash.jpg b/frontend/public/images/thumbs/becca-tapert--A_Sx8GrRWg-unsplash.jpg new file mode 100644 index 0000000..5dc96fb Binary files /dev/null and b/frontend/public/images/thumbs/becca-tapert--A_Sx8GrRWg-unsplash.jpg differ diff --git a/frontend/public/images/thumbs/fuu-j-r2nJPbEYuSQ-unsplash.jpg b/frontend/public/images/thumbs/fuu-j-r2nJPbEYuSQ-unsplash.jpg new file mode 100644 index 0000000..69a6ec0 Binary files /dev/null and b/frontend/public/images/thumbs/fuu-j-r2nJPbEYuSQ-unsplash.jpg differ diff --git a/frontend/public/images/thumbs/ian-dooley-hpTH5b6mo2s-unsplash.jpg b/frontend/public/images/thumbs/ian-dooley-hpTH5b6mo2s-unsplash.jpg new file mode 100644 index 0000000..cac7f1c Binary files /dev/null and b/frontend/public/images/thumbs/ian-dooley-hpTH5b6mo2s-unsplash.jpg differ diff --git a/frontend/public/images/thumbs/ishan-seefromthesky-TobZaa8ZwI4-unsplash.jpg b/frontend/public/images/thumbs/ishan-seefromthesky-TobZaa8ZwI4-unsplash.jpg new file mode 100644 index 0000000..e7c3239 Binary files /dev/null and b/frontend/public/images/thumbs/ishan-seefromthesky-TobZaa8ZwI4-unsplash.jpg differ diff --git a/frontend/public/images/thumbs/javier-allegue-barros-55bVEzGVnzY-unsplash.jpg b/frontend/public/images/thumbs/javier-allegue-barros-55bVEzGVnzY-unsplash.jpg new file mode 100644 index 0000000..ddf8550 Binary files /dev/null and b/frontend/public/images/thumbs/javier-allegue-barros-55bVEzGVnzY-unsplash.jpg differ diff --git a/frontend/public/images/thumbs/jay-antol-Xbf_4e7YDII-unsplash.jpg b/frontend/public/images/thumbs/jay-antol-Xbf_4e7YDII-unsplash.jpg new file mode 100644 index 0000000..b0bc809 Binary files /dev/null and b/frontend/public/images/thumbs/jay-antol-Xbf_4e7YDII-unsplash.jpg differ diff --git a/frontend/public/images/thumbs/jorgen-hendriksen-8qg-hy6VbYE-unsplash.jpg b/frontend/public/images/thumbs/jorgen-hendriksen-8qg-hy6VbYE-unsplash.jpg new file mode 100644 index 0000000..82e7c1d Binary files /dev/null and b/frontend/public/images/thumbs/jorgen-hendriksen-8qg-hy6VbYE-unsplash.jpg differ diff --git a/frontend/public/images/thumbs/mohamed-nohassi-odxB5oIG_iA-unsplash.jpg b/frontend/public/images/thumbs/mohamed-nohassi-odxB5oIG_iA-unsplash.jpg new file mode 100644 index 0000000..d6bd866 Binary files /dev/null and b/frontend/public/images/thumbs/mohamed-nohassi-odxB5oIG_iA-unsplash.jpg differ diff --git a/frontend/public/images/thumbs/saad-chaudhry-cYpqYxGeqts-unsplash.jpg b/frontend/public/images/thumbs/saad-chaudhry-cYpqYxGeqts-unsplash.jpg new file mode 100644 index 0000000..177b448 Binary files /dev/null and b/frontend/public/images/thumbs/saad-chaudhry-cYpqYxGeqts-unsplash.jpg differ diff --git a/frontend/public/images/thumbs/taryn-kaahanui-J5b23iaAHis-unsplash.jpg b/frontend/public/images/thumbs/taryn-kaahanui-J5b23iaAHis-unsplash.jpg new file mode 100644 index 0000000..3378989 Binary files /dev/null and b/frontend/public/images/thumbs/taryn-kaahanui-J5b23iaAHis-unsplash.jpg differ diff --git a/frontend/public/images/thumbs/tirza-van-dijk-hbwdmqcmP6k-unsplash.jpg b/frontend/public/images/thumbs/tirza-van-dijk-hbwdmqcmP6k-unsplash.jpg new file mode 100644 index 0000000..eaac5ac Binary files /dev/null and b/frontend/public/images/thumbs/tirza-van-dijk-hbwdmqcmP6k-unsplash.jpg differ diff --git a/frontend/public/images/work.png b/frontend/public/images/work.png new file mode 100644 index 0000000..8943c4f Binary files /dev/null and b/frontend/public/images/work.png differ diff --git a/frontend/public/js/ScrollTrigger.min.js b/frontend/public/js/ScrollTrigger.min.js new file mode 100644 index 0000000..01c8533 --- /dev/null +++ b/frontend/public/js/ScrollTrigger.min.js @@ -0,0 +1,11 @@ +/*! + * ScrollTrigger 3.12.7 + * https://gsap.com + * + * @license Copyright 2025, GreenSock. All rights reserved. + * Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. + * @author: Jack Doyle, jack@greensock.com + */ + +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function _defineProperties(e,t){for(var r=0;r=Math.abs(r)?t:r}function O(){(Ae=Te.core.globals().ScrollTrigger)&&Ae.core&&function _integrate(){var e=Ae.core,r=e.bridge||{},t=e._scrollers,n=e._proxies;t.push.apply(t,qe),n.push.apply(n,Ie),qe=t,Ie=n,o=function _bridge(e,t){return r[e](t)}}()}function P(e){return Te=e||r(),!Ce&&Te&&"undefined"!=typeof document&&document.body&&(Se=window,Ee=(ke=document).documentElement,Pe=ke.body,t=[Se,ke,Ee,Pe],Te.utils.clamp,Re=Te.core.context||function(){},Oe="onpointerenter"in Pe?"pointer":"mouse",Me=k.isTouch=Se.matchMedia&&Se.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Se||0=i,n=Math.abs(t)>=i;S&&(r||n)&&S(se,e,t,me,ye),r&&(m&&0Math.abs(t)?"x":"y",oe=!0),"y"!==ae&&(me[2]+=e,se._vx.update(e,!0)),"x"!==ae&&(ye[2]+=t,se._vy.update(t,!0)),n?ee=ee||requestAnimationFrame(ff):ff()}function jf(e){if(!df(e,1)){var t=(e=M(e,s)).clientX,r=e.clientY,n=t-se.x,i=r-se.y,o=se.isDragging;se.x=t,se.y=r,(o||(n||i)&&(Math.abs(se.startX-t)>=a||Math.abs(se.startY-r)>=a))&&(re=o?2:1,o||(se.isDragging=!0),hf(n,i))}}function mf(e){return e.touches&&1=e)return a[n];return a[n-1]}for(n=a.length,e+=r;n--;)if(a[n]<=e)return a[n];return a[0]}:function(e,t,r){void 0===r&&(r=.001);var n=o(e);return!t||Math.abs(n-e)r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in H?H[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e}function Db(e,t,r,n,i,o,a,s){var l=i.startColor,c=i.endColor,u=i.fontSize,f=i.indent,d=i.fontWeight,p=Xe.createElement("div"),g=La(r)||"fixed"===z(r,"pinType"),h=-1!==e.indexOf("scroller"),v=g?Je:r,b=-1!==e.indexOf("start"),m=b?l:c,y="border-color:"+m+";font-size:"+u+";color:"+m+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((h||s)&&g?"fixed;":"absolute;"),!h&&!s&&g||(y+=(n===ze?q:I)+":"+(o+parseFloat(f))+"px;"),a&&(y+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=b,p.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),p.style.cssText=y,p.innerText=t||0===t?e+"-"+t:e,v.children[0]?v.insertBefore(p,v.children[0]):v.appendChild(p),p._offset=p["offset"+n.op.d2],X(p,0,n,b),p}function Ib(){return 34Je.clientWidth)||(qe.cache++,v?D=D||requestAnimationFrame(Z):Z(),st||U("scrollStart"),st=at())}function Kb(){y=Ne.innerWidth,m=Ne.innerHeight}function Lb(e){qe.cache++,!0!==e&&(Ke||h||Xe.fullscreenElement||Xe.webkitFullscreenElement||b&&y===Ne.innerWidth&&!(Math.abs(Ne.innerHeight-m)>.25*Ne.innerHeight))||c.restart(!0)}function Ob(){return xb(ne,"scrollEnd",Ob)||Et(!0)}function Rb(e){for(var t=0;tt,n=e._startClamp&&e.start>=t;(r||n)&&e.setPositions(n?t-1:e.start,r?Math.max(n?t:e.start+1,t):e.end,!0)}),Zb(!1),et=0,r.forEach(function(e){return e&&e.render&&e.render(-1)}),qe.forEach(function(e){Ta(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior="smooth"}),e.rec&&e(e.rec))}),Tb(w,1),c.pause(),kt++,Z(rt=2),Ct.forEach(function(e){return Ta(e.vars.onRefresh)&&e.vars.onRefresh(e)}),rt=ne.isRefreshing=!1,U("refresh")}else wb(ne,"scrollEnd",Ob)},Q=0,Pt=1,Z=function _updateAll(e){if(2===e||!rt&&!S){ne.isUpdating=!0,it&&it.update(0);var t=Ct.length,r=at(),n=50<=r-R,i=t&&Ct[0].scroll();if(Pt=i=Qa(be,he)){if(oe&&Ae()&&!de)for(o=oe.parentNode;o&&o!==Je;)o._pinOffset&&(R-=o._pinOffset,L-=o._pinOffset),o=o.parentNode}else i=mb(ae),s=he===ze,a=Ae(),j=parseFloat(G(he.a))+_,!y&&1=L})},Ce.update=function(e,t,r){if(!de||r||e){var n,i,o,a,s,l,c,u=!0===rt?re:Ce.scroll(),f=e?0:(u-R)/N,d=f<0?0:1u+(u-B)/(at()-Ge)*P&&(d=.9999)),d!==p&&Ce.enabled){if(a=(s=(n=Ce.isActive=!!d&&d<1)!=(!!p&&p<1))||!!d!=!!p,Ce.direction=p=Qa(be,he),fe)if(e||!n&&!l)oc(ae,U);else{var g=wt(ae,!0),h=u-R;oc(ae,Je,g.top+(he===ze?h:0)+xt,g.left+(he===ze?0:h)+xt)}Mt(n||l?W:V),$&&d<1&&n||b(j+(1!==d||l?0:Q))}}else b(Ia(j+Q*d));!ue||A.tween||Ke||ot||te.restart(!0),S&&(s||ce&&d&&(d<1||!tt))&&Ve(S.targets).forEach(function(e){return e.classList[n||ce?"add":"remove"](S.className)}),!C||ve||e||C(Ce),a&&!Ke?(ve&&(c&&("complete"===o?O.pause().totalProgress(1):"reset"===o?O.restart(!0).pause():"restart"===o?O.restart(!0):O[o]()),C&&C(Ce)),!s&&tt||(k&&s&&Xa(Ce,k),xe[i]&&Xa(Ce,xe[i]),ce&&(1===d?Ce.kill(!1,1):xe[i]=0),s||xe[i=1===d?1:3]&&Xa(Ce,xe[i])),pe&&!n&&Math.abs(Ce.getVelocity())>(Ua(pe)?pe:2500)&&(Wa(Ce.callbackAnimation),ee?ee.progress(1):Wa(O,"reverse"===o?1:!d,1))):ve&&C&&!Ke&&C(Ce)}if(x){var v=de?u/de.duration()*(de._caScrollDist||0):u;y(v+(Y._isFlipped?1:0)),x(v)}T&&T(-u/de.duration()*(de._caScrollDist||0))}},Ce.enable=function(e,t){Ce.enabled||(Ce.enabled=!0,wb(be,"resize",Lb),me||wb(be,"scroll",Jb),Se&&wb(ScrollTrigger,"refreshInit",Se),!1!==e&&(Ce.progress=Oe=0,D=B=Pe=Ae()),!1!==t&&Ce.refresh())},Ce.getTween=function(e){return e&&A?A.tween:ee},Ce.setPositions=function(e,t,r,n){if(de){var i=de.scrollTrigger,o=de.duration(),a=i.end-i.start;e=i.start+a*e/o,t=i.start+a*t/o}Ce.refresh(!1,!1,{start:Da(e,r&&!!Ce._startClamp),end:Da(t,r&&!!Ce._endClamp)},n),Ce.update()},Ce.adjustPinSpacing=function(e){if(Z&&e){var t=Z.indexOf(he.d)+1;Z[t]=parseFloat(Z[t])+e+xt,Z[1]=parseFloat(Z[1])+e+xt,Mt(Z)}},Ce.disable=function(e,t){if(Ce.enabled&&(!1!==e&&Ce.revert(!0,!0),Ce.enabled=Ce.isActive=!1,t||ee&&ee.pause(),re=0,n&&(n.uncache=1),Se&&xb(ScrollTrigger,"refreshInit",Se),te&&(te.pause(),A.tween&&A.tween.kill()&&(A.tween=0)),!me)){for(var r=Ct.length;r--;)if(Ct[r].scroller===be&&Ct[r]!==Ce)return;xb(be,"resize",Lb),me||xb(be,"scroll",Jb)}},Ce.kill=function(e,t){Ce.disable(e,t),ee&&!t&&ee.kill(),a&&delete St[a];var r=Ct.indexOf(Ce);0<=r&&Ct.splice(r,1),r===Qe&&0o&&(b()>o?a.progress(1)&&b(o):a.resetTo("scrollY",o))}Va(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var n,o,l,i,a,c,u,s,f=e.normalizeScrollX,t=e.momentum,r=e.allowNestedScroll,d=e.onRelease,p=J(e.target)||We,g=He.core.globals().ScrollSmoother,h=g&&g.get(),v=E&&(e.content&&J(e.content)||h&&!1!==e.content&&!h.smooth()&&h.content()),b=K(p,ze),m=K(p,Fe),y=1,x=(k.isTouch&&Ne.visualViewport?Ne.visualViewport.scale*Ne.visualViewport.width:Ne.outerWidth)/Ne.innerWidth,w=0,_=Ta(t)?function(){return t(n)}:function(){return t||2.8},T=xc(p,e.type,!0,r),C=Ha,S=Ha;return v&&He.set(v,{y:"+=0"}),e.ignoreCheck=function(e){return E&&"touchmove"===e.type&&function ignoreDrag(){if(i){requestAnimationFrame(Bq);var e=Ia(n.deltaY/2),t=S(b.v-e);if(v&&t!==b.v+b.offset){b.offset=t-b.v;var r=Ia((parseFloat(v&&v._gsap.y)||0)-b.offset);v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+r+", 0, 1)",v._gsap.y=r+"px",b.cacheID=qe.cache,Z()}return!0}b.offset&&Fq(),i=!0}()||1.05=o||o-1<=r)&&He.to({},{onUpdate:Lq,duration:i})}else s.restart(!0);d&&d(e)},e.onWheel=function(){a._ts&&a.pause(),1e3 gsap || (typeof(window) !== \"undefined\" && (gsap = window.gsap) && gsap.registerPlugin && gsap),\n\t_startup = 1,\n\t_observers = [],\n\t_scrollers = [],\n\t_proxies = [],\n\t_getTime = Date.now,\n\t_bridge = (name, value) => value,\n\t_integrate = () => {\n\t\tlet core = ScrollTrigger.core,\n\t\t\tdata = core.bridge || {},\n\t\t\tscrollers = core._scrollers,\n\t\t\tproxies = core._proxies;\n\t\tscrollers.push(..._scrollers);\n\t\tproxies.push(..._proxies);\n\t\t_scrollers = scrollers;\n\t\t_proxies = proxies;\n\t\t_bridge = (name, value) => data[name](value);\n\t},\n\t_getProxyProp = (element, property) => ~_proxies.indexOf(element) && _proxies[_proxies.indexOf(element) + 1][property],\n\t_isViewport = el => !!~_root.indexOf(el),\n\t_addListener = (element, type, func, passive, capture) => element.addEventListener(type, func, {passive: passive !== false, capture: !!capture}),\n\t_removeListener = (element, type, func, capture) => element.removeEventListener(type, func, !!capture),\n\t_scrollLeft = \"scrollLeft\",\n\t_scrollTop = \"scrollTop\",\n\t_onScroll = () => (_normalizer && _normalizer.isPressed) || _scrollers.cache++,\n\t_scrollCacheFunc = (f, doNotCache) => {\n\t\tlet cachingFunc = value => { // since reading the scrollTop/scrollLeft/pageOffsetY/pageOffsetX can trigger a layout, this function allows us to cache the value so it only gets read fresh after a \"scroll\" event fires (or while we're refreshing because that can lengthen the page and alter the scroll position). when \"soft\" is true, that means don't actually set the scroll, but cache the new value instead (useful in ScrollSmoother)\n\t\t\tif (value || value === 0) {\n\t\t\t\t_startup && (_win.history.scrollRestoration = \"manual\"); // otherwise the new position will get overwritten by the browser onload.\n\t\t\t\tlet isNormalizing = _normalizer && _normalizer.isPressed;\n\t\t\t\tvalue = cachingFunc.v = Math.round(value) || (_normalizer && _normalizer.iOS ? 1 : 0); //TODO: iOS Bug: if you allow it to go to 0, Safari can start to report super strange (wildly inaccurate) touch positions!\n\t\t\t\tf(value);\n\t\t\t\tcachingFunc.cacheID = _scrollers.cache;\n\t\t\t\tisNormalizing && _bridge(\"ss\", value); // set scroll (notify ScrollTrigger so it can dispatch a \"scrollStart\" event if necessary\n\t\t\t} else if (doNotCache || _scrollers.cache !== cachingFunc.cacheID || _bridge(\"ref\")) {\n\t\t\t\tcachingFunc.cacheID = _scrollers.cache;\n\t\t\t\tcachingFunc.v = f();\n\t\t\t}\n\t\t\treturn cachingFunc.v + cachingFunc.offset;\n\t\t};\n\t\tcachingFunc.offset = 0;\n\t\treturn f && cachingFunc;\n\t},\n\t_horizontal = {s: _scrollLeft, p: \"left\", p2: \"Left\", os: \"right\", os2: \"Right\", d: \"width\", d2: \"Width\", a: \"x\", sc: _scrollCacheFunc(function(value) { return arguments.length ? _win.scrollTo(value, _vertical.sc()) : _win.pageXOffset || _doc[_scrollLeft] || _docEl[_scrollLeft] || _body[_scrollLeft] || 0})},\n\t_vertical = {s: _scrollTop, p: \"top\", p2: \"Top\", os: \"bottom\", os2: \"Bottom\", d: \"height\", d2: \"Height\", a: \"y\", op: _horizontal, sc: _scrollCacheFunc(function(value) { return arguments.length ? _win.scrollTo(_horizontal.sc(), value) : _win.pageYOffset || _doc[_scrollTop] || _docEl[_scrollTop] || _body[_scrollTop] || 0})},\n\t_getTarget = (t, self) => ((self && self._ctx && self._ctx.selector) || gsap.utils.toArray)(t)[0] || (typeof(t) === \"string\" && gsap.config().nullTargetWarn !== false ? console.warn(\"Element not found:\", t) : null),\n\n\t_getScrollFunc = (element, {s, sc}) => { // we store the scroller functions in an alternating sequenced Array like [element, verticalScrollFunc, horizontalScrollFunc, ...] so that we can minimize memory, maximize performance, and we also record the last position as a \".rec\" property in order to revert to that after refreshing to ensure things don't shift around.\n\t\t_isViewport(element) && (element = _doc.scrollingElement || _docEl);\n\t\tlet i = _scrollers.indexOf(element),\n\t\t\toffset = sc === _vertical.sc ? 1 : 2;\n\t\t!~i && (i = _scrollers.push(element) - 1);\n\t\t_scrollers[i + offset] || _addListener(element, \"scroll\", _onScroll); // clear the cache when a scroll occurs\n\t\tlet prev = _scrollers[i + offset],\n\t\t\tfunc = prev || (_scrollers[i + offset] = _scrollCacheFunc(_getProxyProp(element, s), true) || (_isViewport(element) ? sc : _scrollCacheFunc(function(value) { return arguments.length ? (element[s] = value) : element[s]; })));\n\t\tfunc.target = element;\n\t\tprev || (func.smooth = gsap.getProperty(element, \"scrollBehavior\") === \"smooth\"); // only set it the first time (don't reset every time a scrollFunc is requested because perhaps it happens during a refresh() when it's disabled in ScrollTrigger.\n\t\treturn func;\n\t},\n\t_getVelocityProp = (value, minTimeRefresh, useDelta) => {\n\t\tlet v1 = value,\n\t\t\tv2 = value,\n\t\t\tt1 = _getTime(),\n\t\t\tt2 = t1,\n\t\t\tmin = minTimeRefresh || 50,\n\t\t\tdropToZeroTime = Math.max(500, min * 3),\n\t\t\tupdate = (value, force) => {\n\t\t\t\tlet t = _getTime();\n\t\t\t\tif (force || t - t1 > min) {\n\t\t\t\t\tv2 = v1;\n\t\t\t\t\tv1 = value;\n\t\t\t\t\tt2 = t1;\n\t\t\t\t\tt1 = t;\n\t\t\t\t} else if (useDelta) {\n\t\t\t\t\tv1 += value;\n\t\t\t\t} else { // not totally necessary, but makes it a bit more accurate by adjusting the v1 value according to the new slope. This way we're not just ignoring the incoming data. Removing for now because it doesn't seem to make much practical difference and it's probably not worth the kb.\n\t\t\t\t\tv1 = v2 + (value - v2) / (t - t2) * (t1 - t2);\n\t\t\t\t}\n\t\t\t},\n\t\t\treset = () => { v2 = v1 = useDelta ? 0 : v1; t2 = t1 = 0; },\n\t\t\tgetVelocity = latestValue => {\n\t\t\t\tlet tOld = t2,\n\t\t\t\t\tvOld = v2,\n\t\t\t\t\tt = _getTime();\n\t\t\t\t(latestValue || latestValue === 0) && latestValue !== v1 && update(latestValue);\n\t\t\t\treturn (t1 === t2 || t - t2 > dropToZeroTime) ? 0 : (v1 + (useDelta ? vOld : -vOld)) / ((useDelta ? t : t1) - tOld) * 1000;\n\t\t\t};\n\t\treturn {update, reset, getVelocity};\n\t},\n\t_getEvent = (e, preventDefault) => {\n\t\tpreventDefault && !e._gsapAllow && e.preventDefault();\n\t\treturn e.changedTouches ? e.changedTouches[0] : e;\n\t},\n\t_getAbsoluteMax = a => {\n\t\tlet max = Math.max(...a),\n\t\t\tmin = Math.min(...a);\n\t\treturn Math.abs(max) >= Math.abs(min) ? max : min;\n\t},\n\t_setScrollTrigger = () => {\n\t\tScrollTrigger = gsap.core.globals().ScrollTrigger;\n\t\tScrollTrigger && ScrollTrigger.core && _integrate();\n\t},\n\t_initCore = core => {\n\t\tgsap = core || _getGSAP();\n\t\tif (!_coreInitted && gsap && typeof(document) !== \"undefined\" && document.body) {\n\t\t\t_win = window;\n\t\t\t_doc = document;\n\t\t\t_docEl = _doc.documentElement;\n\t\t\t_body = _doc.body;\n\t\t\t_root = [_win, _doc, _docEl, _body];\n\t\t\t_clamp = gsap.utils.clamp;\n\t\t\t_context = gsap.core.context || function() {};\n\t\t\t_pointerType = \"onpointerenter\" in _body ? \"pointer\" : \"mouse\";\n\t\t\t// isTouch is 0 if no touch, 1 if ONLY touch, and 2 if it can accommodate touch but also other types like mouse/pointer.\n\t\t\t_isTouch = Observer.isTouch = _win.matchMedia && _win.matchMedia(\"(hover: none), (pointer: coarse)\").matches ? 1 : (\"ontouchstart\" in _win || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0) ? 2 : 0;\n\t\t\t_eventTypes = Observer.eventTypes = (\"ontouchstart\" in _docEl ? \"touchstart,touchmove,touchcancel,touchend\" : !(\"onpointerdown\" in _docEl) ? \"mousedown,mousemove,mouseup,mouseup\" : \"pointerdown,pointermove,pointercancel,pointerup\").split(\",\");\n\t\t\tsetTimeout(() => _startup = 0, 500);\n\t\t\t_setScrollTrigger();\n\t\t\t_coreInitted = 1;\n\t\t}\n\t\treturn _coreInitted;\n\t};\n\n_horizontal.op = _vertical;\n_scrollers.cache = 0;\n\nexport class Observer {\n\tconstructor(vars) {\n\t\tthis.init(vars);\n\t}\n\n\tinit(vars) {\n\t\t_coreInitted || _initCore(gsap) || console.warn(\"Please gsap.registerPlugin(Observer)\");\n\t\tScrollTrigger || _setScrollTrigger();\n\t\tlet {tolerance, dragMinimum, type, target, lineHeight, debounce, preventDefault, onStop, onStopDelay, ignore, wheelSpeed, event, onDragStart, onDragEnd, onDrag, onPress, onRelease, onRight, onLeft, onUp, onDown, onChangeX, onChangeY, onChange, onToggleX, onToggleY, onHover, onHoverEnd, onMove, ignoreCheck, isNormalizer, onGestureStart, onGestureEnd, onWheel, onEnable, onDisable, onClick, scrollSpeed, capture, allowClicks, lockAxis, onLockAxis} = vars;\n\t\tthis.target = target = _getTarget(target) || _docEl;\n\t\tthis.vars = vars;\n\t\tignore && (ignore = gsap.utils.toArray(ignore));\n\t\ttolerance = tolerance || 1e-9;\n\t\tdragMinimum = dragMinimum || 0;\n\t\twheelSpeed = wheelSpeed || 1;\n\t\tscrollSpeed = scrollSpeed || 1;\n\t\ttype = type || \"wheel,touch,pointer\";\n\t\tdebounce = debounce !== false;\n\t\tlineHeight || (lineHeight = parseFloat(_win.getComputedStyle(_body).lineHeight) || 22); // note: browser may report \"normal\", so default to 22.\n\t\tlet id, onStopDelayedCall, dragged, moved, wheeled, locked, axis,\n\t\t\tself = this,\n\t\t\tprevDeltaX = 0,\n\t\t\tprevDeltaY = 0,\n\t\t\tpassive = vars.passive || (!preventDefault && vars.passive !== false),\n\t\t\tscrollFuncX = _getScrollFunc(target, _horizontal),\n\t\t\tscrollFuncY = _getScrollFunc(target, _vertical),\n\t\t\tscrollX = scrollFuncX(),\n\t\t\tscrollY = scrollFuncY(),\n\t\t\tlimitToTouch = ~type.indexOf(\"touch\") && !~type.indexOf(\"pointer\") && _eventTypes[0] === \"pointerdown\", // for devices that accommodate mouse events and touch events, we need to distinguish.\n\t\t\tisViewport = _isViewport(target),\n\t\t\townerDoc = target.ownerDocument || _doc,\n\t\t\tdeltaX = [0, 0, 0], // wheel, scroll, pointer/touch\n\t\t\tdeltaY = [0, 0, 0],\n\t\t\tonClickTime = 0,\n\t\t\tclickCapture = () => onClickTime = _getTime(),\n\t\t\t_ignoreCheck = (e, isPointerOrTouch) => (self.event = e) && (ignore && ~ignore.indexOf(e.target)) || (isPointerOrTouch && limitToTouch && e.pointerType !== \"touch\") || (ignoreCheck && ignoreCheck(e, isPointerOrTouch)),\n\t\t\tonStopFunc = () => {\n\t\t\t\tself._vx.reset();\n\t\t\t\tself._vy.reset();\n\t\t\t\tonStopDelayedCall.pause();\n\t\t\t\tonStop && onStop(self);\n\t\t\t},\n\t\t\tupdate = () => {\n\t\t\t\tlet dx = self.deltaX = _getAbsoluteMax(deltaX),\n\t\t\t\t\tdy = self.deltaY = _getAbsoluteMax(deltaY),\n\t\t\t\t\tchangedX = Math.abs(dx) >= tolerance,\n\t\t\t\t\tchangedY = Math.abs(dy) >= tolerance;\n\t\t\t\tonChange && (changedX || changedY) && onChange(self, dx, dy, deltaX, deltaY); // in ScrollTrigger.normalizeScroll(), we need to know if it was touch/pointer so we need access to the deltaX/deltaY Arrays before we clear them out.\n\t\t\t\tif (changedX) {\n\t\t\t\t\tonRight && self.deltaX > 0 && onRight(self);\n\t\t\t\t\tonLeft && self.deltaX < 0 && onLeft(self);\n\t\t\t\t\tonChangeX && onChangeX(self);\n\t\t\t\t\tonToggleX && ((self.deltaX < 0) !== (prevDeltaX < 0)) && onToggleX(self);\n\t\t\t\t\tprevDeltaX = self.deltaX;\n\t\t\t\t\tdeltaX[0] = deltaX[1] = deltaX[2] = 0\n\t\t\t\t}\n\t\t\t\tif (changedY) {\n\t\t\t\t\tonDown && self.deltaY > 0 && onDown(self);\n\t\t\t\t\tonUp && self.deltaY < 0 && onUp(self);\n\t\t\t\t\tonChangeY && onChangeY(self);\n\t\t\t\t\tonToggleY && ((self.deltaY < 0) !== (prevDeltaY < 0)) && onToggleY(self);\n\t\t\t\t\tprevDeltaY = self.deltaY;\n\t\t\t\t\tdeltaY[0] = deltaY[1] = deltaY[2] = 0\n\t\t\t\t}\n\t\t\t\tif (moved || dragged) {\n\t\t\t\t\tonMove && onMove(self);\n\t\t\t\t\tif (dragged) {\n\t\t\t\t\t\tonDragStart && dragged === 1 && onDragStart(self);\n\t\t\t\t\t\tonDrag && onDrag(self);\n\t\t\t\t\t\tdragged = 0;\n\t\t\t\t\t}\n\t\t\t\t\tmoved = false;\n\t\t\t\t}\n\t\t\t\tlocked && !(locked = false) && onLockAxis && onLockAxis(self);\n\t\t\t\tif (wheeled) {\n\t\t\t\t\tonWheel(self);\n\t\t\t\t\twheeled = false;\n\t\t\t\t}\n\t\t\t\tid = 0;\n\t\t\t},\n\t\t\tonDelta = (x, y, index) => {\n\t\t\t\tdeltaX[index] += x;\n\t\t\t\tdeltaY[index] += y;\n\t\t\t\tself._vx.update(x);\n\t\t\t\tself._vy.update(y);\n\t\t\t\tdebounce ? id || (id = requestAnimationFrame(update)) : update();\n\t\t\t},\n\t\t\tonTouchOrPointerDelta = (x, y) => {\n\t\t\t\tif (lockAxis && !axis) {\n\t\t\t\t\tself.axis = axis = Math.abs(x) > Math.abs(y) ? \"x\" : \"y\";\n\t\t\t\t\tlocked = true;\n\t\t\t\t}\n\t\t\t\tif (axis !== \"y\") {\n\t\t\t\t\tdeltaX[2] += x;\n\t\t\t\t\tself._vx.update(x, true); // update the velocity as frequently as possible instead of in the debounced function so that very quick touch-scrolls (flicks) feel natural. If it's the mouse/touch/pointer, force it so that we get snappy/accurate momentum scroll.\n\t\t\t\t}\n\t\t\t\tif (axis !== \"x\") {\n\t\t\t\t\tdeltaY[2] += y;\n\t\t\t\t\tself._vy.update(y, true);\n\t\t\t\t}\n\t\t\t\tdebounce ? id || (id = requestAnimationFrame(update)) : update();\n\t\t\t},\n\t\t\t_onDrag = e => {\n\t\t\t\tif (_ignoreCheck(e, 1)) {return;}\n\t\t\t\te = _getEvent(e, preventDefault);\n\t\t\t\tlet x = e.clientX,\n\t\t\t\t\ty = e.clientY,\n\t\t\t\t\tdx = x - self.x,\n\t\t\t\t\tdy = y - self.y,\n\t\t\t\t\tisDragging = self.isDragging;\n\t\t\t\tself.x = x;\n\t\t\t\tself.y = y;\n\t\t\t\tif (isDragging || ((dx || dy) && (Math.abs(self.startX - x) >= dragMinimum || Math.abs(self.startY - y) >= dragMinimum))) {\n\t\t\t\t\tdragged = isDragging ? 2 : 1; // dragged: 0 = not dragging, 1 = first drag, 2 = normal drag\n\t\t\t\t\tisDragging || (self.isDragging = true);\n\t\t\t\t\tonTouchOrPointerDelta(dx, dy);\n\t\t\t\t}\n\t\t\t},\n\t\t\t_onPress = self.onPress = e => {\n\t\t\t\tif (_ignoreCheck(e, 1) || (e && e.button)) {return;}\n\t\t\t\tself.axis = axis = null;\n\t\t\t\tonStopDelayedCall.pause();\n\t\t\t\tself.isPressed = true;\n\t\t\t\te = _getEvent(e); // note: may need to preventDefault(?) Won't side-scroll on iOS Safari if we do, though.\n\t\t\t\tprevDeltaX = prevDeltaY = 0;\n\t\t\t\tself.startX = self.x = e.clientX;\n\t\t\t\tself.startY = self.y = e.clientY;\n\t\t\t\tself._vx.reset(); // otherwise the t2 may be stale if the user touches and flicks super fast and releases in less than 2 requestAnimationFrame ticks, causing velocity to be 0.\n\t\t\t\tself._vy.reset();\n\t\t\t\t_addListener(isNormalizer ? target : ownerDoc, _eventTypes[1], _onDrag, passive, true);\n\t\t\t\tself.deltaX = self.deltaY = 0;\n\t\t\t\tonPress && onPress(self);\n\t\t\t},\n\t\t\t_onRelease = self.onRelease = e => {\n\t\t\t\tif (_ignoreCheck(e, 1)) {return;}\n\t\t\t\t_removeListener(isNormalizer ? target : ownerDoc, _eventTypes[1], _onDrag, true);\n\t\t\t\tlet isTrackingDrag = !isNaN(self.y - self.startY),\n\t\t\t\t\twasDragging = self.isDragging,\n\t\t\t\t\tisDragNotClick = wasDragging && (Math.abs(self.x - self.startX) > 3 || Math.abs(self.y - self.startY) > 3), // some touch devices need some wiggle room in terms of sensing clicks - the finger may move a few pixels.\n\t\t\t\t\teventData = _getEvent(e);\n\t\t\t\tif (!isDragNotClick && isTrackingDrag) {\n\t\t\t\t\tself._vx.reset();\n\t\t\t\t\tself._vy.reset();\n\t\t\t\t\t//if (preventDefault && allowClicks && self.isPressed) { // check isPressed because in a rare edge case, the inputObserver in ScrollTrigger may stopPropagation() on the press/drag, so the onRelease may get fired without the onPress/onDrag ever getting called, thus it could trigger a click to occur on a link after scroll-dragging it.\n\t\t\t\t\tif (preventDefault && allowClicks) {\n\t\t\t\t\t\tgsap.delayedCall(0.08, () => { // some browsers (like Firefox) won't trust script-generated clicks, so if the user tries to click on a video to play it, for example, it simply won't work. Since a regular \"click\" event will most likely be generated anyway (one that has its isTrusted flag set to true), we must slightly delay our script-generated click so that the \"real\"/trusted one is prioritized. Remember, when there are duplicate events in quick succession, we suppress all but the first one. Some browsers don't even trigger the \"real\" one at all, so our synthetic one is a safety valve that ensures that no matter what, a click event does get dispatched.\n\t\t\t\t\t\t\tif (_getTime() - onClickTime > 300 && !e.defaultPrevented) {\n\t\t\t\t\t\t\t\tif (e.target.click) { //some browsers (like mobile Safari) don't properly trigger the click event\n\t\t\t\t\t\t\t\t\te.target.click();\n\t\t\t\t\t\t\t\t} else if (ownerDoc.createEvent) {\n\t\t\t\t\t\t\t\t\tlet syntheticEvent = ownerDoc.createEvent(\"MouseEvents\");\n\t\t\t\t\t\t\t\t\tsyntheticEvent.initMouseEvent(\"click\", true, true, _win, 1, eventData.screenX, eventData.screenY, eventData.clientX, eventData.clientY, false, false, false, false, 0, null);\n\t\t\t\t\t\t\t\t\te.target.dispatchEvent(syntheticEvent);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tself.isDragging = self.isGesturing = self.isPressed = false;\n\t\t\t\tonStop && wasDragging && !isNormalizer && onStopDelayedCall.restart(true);\n\t\t\t\tdragged && update(); // in case debouncing, we don't want onDrag to fire AFTER onDragEnd().\n\t\t\t\tonDragEnd && wasDragging && onDragEnd(self);\n\t\t\t\tonRelease && onRelease(self, isDragNotClick);\n\t\t\t},\n\t\t\t_onGestureStart = e => e.touches && e.touches.length > 1 && (self.isGesturing = true) && onGestureStart(e, self.isDragging),\n\t\t\t_onGestureEnd = () => (self.isGesturing = false) || onGestureEnd(self),\n\t\t\tonScroll = e => {\n\t\t\t\tif (_ignoreCheck(e)) {return;}\n\t\t\t\tlet x = scrollFuncX(),\n\t\t\t\t\ty = scrollFuncY();\n\t\t\t\tonDelta((x - scrollX) * scrollSpeed, (y - scrollY) * scrollSpeed, 1);\n\t\t\t\tscrollX = x;\n\t\t\t\tscrollY = y;\n\t\t\t\tonStop && onStopDelayedCall.restart(true);\n\t\t\t},\n\t\t\t_onWheel = e => {\n\t\t\t\tif (_ignoreCheck(e)) {return;}\n\t\t\t\te = _getEvent(e, preventDefault);\n\t\t\t\tonWheel && (wheeled = true);\n\t\t\t\tlet multiplier = (e.deltaMode === 1 ? lineHeight : e.deltaMode === 2 ? _win.innerHeight : 1) * wheelSpeed;\n\t\t\t\tonDelta(e.deltaX * multiplier, e.deltaY * multiplier, 0);\n\t\t\t\tonStop && !isNormalizer && onStopDelayedCall.restart(true);\n\t\t\t},\n\t\t\t_onMove = e => {\n\t\t\t\tif (_ignoreCheck(e)) {return;}\n\t\t\t\tlet x = e.clientX,\n\t\t\t\t\ty = e.clientY,\n\t\t\t\t\tdx = x - self.x,\n\t\t\t\t\tdy = y - self.y;\n\t\t\t\tself.x = x;\n\t\t\t\tself.y = y;\n\t\t\t\tmoved = true;\n\t\t\t\tonStop && onStopDelayedCall.restart(true);\n\t\t\t\t(dx || dy) && onTouchOrPointerDelta(dx, dy);\n\t\t\t},\n\t\t\t_onHover = e => {self.event = e; onHover(self);},\n\t\t\t_onHoverEnd = e => {self.event = e; onHoverEnd(self);},\n\t\t\t_onClick = e => _ignoreCheck(e) || (_getEvent(e, preventDefault) && onClick(self));\n\n\t\tonStopDelayedCall = self._dc = gsap.delayedCall(onStopDelay || 0.25, onStopFunc).pause();\n\n\t\tself.deltaX = self.deltaY = 0;\n\t\tself._vx = _getVelocityProp(0, 50, true);\n\t\tself._vy = _getVelocityProp(0, 50, true);\n\t\tself.scrollX = scrollFuncX;\n\t\tself.scrollY = scrollFuncY;\n\t\tself.isDragging = self.isGesturing = self.isPressed = false;\n\t\t_context(this);\n\t\tself.enable = e => {\n\t\t\tif (!self.isEnabled) {\n\t\t\t\t_addListener(isViewport ? ownerDoc : target, \"scroll\", _onScroll);\n\t\t\t\ttype.indexOf(\"scroll\") >= 0 && _addListener(isViewport ? ownerDoc : target, \"scroll\", onScroll, passive, capture);\n\t\t\t\ttype.indexOf(\"wheel\") >= 0 && _addListener(target, \"wheel\", _onWheel, passive, capture);\n\t\t\t\tif ((type.indexOf(\"touch\") >= 0 && _isTouch) || type.indexOf(\"pointer\") >= 0) {\n\t\t\t\t\t_addListener(target, _eventTypes[0], _onPress, passive, capture);\n\t\t\t\t\t_addListener(ownerDoc, _eventTypes[2], _onRelease);\n\t\t\t\t\t_addListener(ownerDoc, _eventTypes[3], _onRelease);\n\t\t\t\t\tallowClicks && _addListener(target, \"click\", clickCapture, true, true);\n\t\t\t\t\tonClick && _addListener(target, \"click\", _onClick);\n\t\t\t\t\tonGestureStart && _addListener(ownerDoc, \"gesturestart\", _onGestureStart);\n\t\t\t\t\tonGestureEnd && _addListener(ownerDoc, \"gestureend\", _onGestureEnd);\n\t\t\t\t\tonHover && _addListener(target, _pointerType + \"enter\", _onHover);\n\t\t\t\t\tonHoverEnd && _addListener(target, _pointerType + \"leave\", _onHoverEnd);\n\t\t\t\t\tonMove && _addListener(target, _pointerType + \"move\", _onMove);\n\t\t\t\t}\n\t\t\t\tself.isEnabled = true;\n\t\t\t\tself.isDragging = self.isGesturing = self.isPressed = moved = dragged = false;\n\t\t\t\tself._vx.reset();\n\t\t\t\tself._vy.reset();\n\t\t\t\tscrollX = scrollFuncX();\n\t\t\t\tscrollY = scrollFuncY();\n\t\t\t\te && e.type && _onPress(e);\n\t\t\t\tonEnable && onEnable(self);\n\t\t\t}\n\t\t\treturn self;\n\t\t};\n\t\tself.disable = () => {\n\t\t\tif (self.isEnabled) {\n\t\t\t\t// only remove the _onScroll listener if there aren't any others that rely on the functionality.\n\t\t\t\t_observers.filter(o => o !== self && _isViewport(o.target)).length || _removeListener(isViewport ? ownerDoc : target, \"scroll\", _onScroll);\n\t\t\t\tif (self.isPressed) {\n\t\t\t\t\tself._vx.reset();\n\t\t\t\t\tself._vy.reset();\n\t\t\t\t\t_removeListener(isNormalizer ? target : ownerDoc, _eventTypes[1], _onDrag, true);\n\t\t\t\t}\n\t\t\t\t_removeListener(isViewport ? ownerDoc : target, \"scroll\", onScroll, capture);\n\t\t\t\t_removeListener(target, \"wheel\", _onWheel, capture);\n\t\t\t\t_removeListener(target, _eventTypes[0], _onPress, capture);\n\t\t\t\t_removeListener(ownerDoc, _eventTypes[2], _onRelease);\n\t\t\t\t_removeListener(ownerDoc, _eventTypes[3], _onRelease);\n\t\t\t\t_removeListener(target, \"click\", clickCapture, true);\n\t\t\t\t_removeListener(target, \"click\", _onClick);\n\t\t\t\t_removeListener(ownerDoc, \"gesturestart\", _onGestureStart);\n\t\t\t\t_removeListener(ownerDoc, \"gestureend\", _onGestureEnd);\n\t\t\t\t_removeListener(target, _pointerType + \"enter\", _onHover);\n\t\t\t\t_removeListener(target, _pointerType + \"leave\", _onHoverEnd);\n\t\t\t\t_removeListener(target, _pointerType + \"move\", _onMove);\n\t\t\t\tself.isEnabled = self.isPressed = self.isDragging = false;\n\t\t\t\tonDisable && onDisable(self);\n\t\t\t}\n\t\t};\n\n\t\tself.kill = self.revert = () => {\n\t\t\tself.disable();\n\t\t\tlet i = _observers.indexOf(self);\n\t\t\ti >= 0 && _observers.splice(i, 1);\n\t\t\t_normalizer === self && (_normalizer = 0);\n\t\t}\n\n\t\t_observers.push(self);\n\t\tisNormalizer && _isViewport(target) && (_normalizer = self);\n\n\t\tself.enable(event);\n\t}\n\n\tget velocityX() {\n\t\treturn this._vx.getVelocity();\n\t}\n\tget velocityY() {\n\t\treturn this._vy.getVelocity();\n\t}\n\n}\n\nObserver.version = \"3.12.7\";\nObserver.create = vars => new Observer(vars);\nObserver.register = _initCore;\nObserver.getAll = () => _observers.slice();\nObserver.getById = id => _observers.filter(o => o.vars.id === id)[0];\n\n_getGSAP() && gsap.registerPlugin(Observer);\n\nexport { Observer as default, _isViewport, _scrollers, _getScrollFunc, _getProxyProp, _proxies, _getVelocityProp, _vertical, _horizontal, _getTarget };","/*!\n * ScrollTrigger 3.12.7\n * https://gsap.com\n *\n * @license Copyright 2008-2025, GreenSock. All rights reserved.\n * Subject to the terms at https://gsap.com/standard-license or for\n * Club GSAP members, the agreement issued with that membership.\n * @author: Jack Doyle, jack@greensock.com\n*/\n/* eslint-disable */\n\nimport { Observer, _getTarget, _vertical, _horizontal, _scrollers, _proxies, _getScrollFunc, _getProxyProp, _getVelocityProp } from \"./Observer.js\";\n\nlet gsap, _coreInitted, _win, _doc, _docEl, _body, _root, _resizeDelay, _toArray, _clamp, _time2, _syncInterval, _refreshing, _pointerIsDown, _transformProp, _i, _prevWidth, _prevHeight, _autoRefresh, _sort, _suppressOverwrites, _ignoreResize, _normalizer, _ignoreMobileResize, _baseScreenHeight, _baseScreenWidth, _fixIOSBug, _context, _scrollRestoration, _div100vh, _100vh, _isReverted, _clampingMax,\n\t_limitCallbacks, // if true, we'll only trigger callbacks if the active state toggles, so if you scroll immediately past both the start and end positions of a ScrollTrigger (thus inactive to inactive), neither its onEnter nor onLeave will be called. This is useful during startup.\n\t_startup = 1,\n\t_getTime = Date.now,\n\t_time1 = _getTime(),\n\t_lastScrollTime = 0,\n\t_enabled = 0,\n\t_parseClamp = (value, type, self) => {\n\t\tlet clamp = (_isString(value) && (value.substr(0, 6) === \"clamp(\" || value.indexOf(\"max\") > -1));\n\t\tself[\"_\" + type + \"Clamp\"] = clamp;\n\t\treturn clamp ? value.substr(6, value.length - 7) : value;\n\t},\n\t_keepClamp = (value, clamp) => clamp && (!_isString(value) || value.substr(0, 6) !== \"clamp(\") ? \"clamp(\" + value + \")\" : value,\n\t_rafBugFix = () => _enabled && requestAnimationFrame(_rafBugFix), // in some browsers (like Firefox), screen repaints weren't consistent unless we had SOMETHING queued up in requestAnimationFrame()! So this just creates a super simple loop to keep it alive and smooth out repaints.\n\t_pointerDownHandler = () => _pointerIsDown = 1,\n\t_pointerUpHandler = () => _pointerIsDown = 0,\n\t_passThrough = v => v,\n\t_round = value => Math.round(value * 100000) / 100000 || 0,\n\t_windowExists = () => typeof(window) !== \"undefined\",\n\t_getGSAP = () => gsap || (_windowExists() && (gsap = window.gsap) && gsap.registerPlugin && gsap),\n\t_isViewport = e => !!~_root.indexOf(e),\n\t_getViewportDimension = dimensionProperty => (dimensionProperty === \"Height\" ? _100vh : _win[\"inner\" + dimensionProperty]) || _docEl[\"client\" + dimensionProperty] || _body[\"client\" + dimensionProperty],\n\t_getBoundsFunc = element => _getProxyProp(element, \"getBoundingClientRect\") || (_isViewport(element) ? () => {_winOffsets.width = _win.innerWidth; _winOffsets.height = _100vh; return _winOffsets;} : () => _getBounds(element)),\n\t_getSizeFunc = (scroller, isViewport, {d, d2, a}) => (a = _getProxyProp(scroller, \"getBoundingClientRect\")) ? () => a()[d] : () => (isViewport ? _getViewportDimension(d2) : scroller[\"client\" + d2]) || 0,\n\t_getOffsetsFunc = (element, isViewport) => !isViewport || ~_proxies.indexOf(element) ? _getBoundsFunc(element) : () => _winOffsets,\n\t_maxScroll = (element, {s, d2, d, a}) => Math.max(0, (s = \"scroll\" + d2) && (a = _getProxyProp(element, s)) ? a() - _getBoundsFunc(element)()[d] : _isViewport(element) ? (_docEl[s] || _body[s]) - _getViewportDimension(d2) : element[s] - element[\"offset\" + d2]),\n\t_iterateAutoRefresh = (func, events) => {\n\t\tfor (let i = 0; i < _autoRefresh.length; i += 3) {\n\t\t\t(!events || ~events.indexOf(_autoRefresh[i+1])) && func(_autoRefresh[i], _autoRefresh[i+1], _autoRefresh[i+2]);\n\t\t}\n\t},\n\t_isString = value => typeof(value) === \"string\",\n\t_isFunction = value => typeof(value) === \"function\",\n\t_isNumber = value => typeof(value) === \"number\",\n\t_isObject = value => typeof(value) === \"object\",\n\t_endAnimation = (animation, reversed, pause) => animation && animation.progress(reversed ? 0 : 1) && pause && animation.pause(),\n\t_callback = (self, func) => {\n\t\tif (self.enabled) {\n\t\t\tlet result = self._ctx ? self._ctx.add(() => func(self)) : func(self);\n\t\t\tresult && result.totalTime && (self.callbackAnimation = result);\n\t\t}\n\t},\n\t_abs = Math.abs,\n\t_left = \"left\",\n\t_top = \"top\",\n\t_right = \"right\",\n\t_bottom = \"bottom\",\n\t_width = \"width\",\n\t_height = \"height\",\n\t_Right = \"Right\",\n\t_Left = \"Left\",\n\t_Top = \"Top\",\n\t_Bottom = \"Bottom\",\n\t_padding = \"padding\",\n\t_margin = \"margin\",\n\t_Width = \"Width\",\n\t_Height = \"Height\",\n\t_px = \"px\",\n\t_getComputedStyle = element => _win.getComputedStyle(element),\n\t_makePositionable = element => { // if the element already has position: absolute or fixed, leave that, otherwise make it position: relative\n\t\tlet position = _getComputedStyle(element).position;\n\t\telement.style.position = (position === \"absolute\" || position === \"fixed\") ? position : \"relative\";\n\t},\n\t_setDefaults = (obj, defaults) => {\n\t\tfor (let p in defaults) {\n\t\t\t(p in obj) || (obj[p] = defaults[p]);\n\t\t}\n\t\treturn obj;\n\t},\n\t_getBounds = (element, withoutTransforms) => {\n\t\tlet tween = withoutTransforms && _getComputedStyle(element)[_transformProp] !== \"matrix(1, 0, 0, 1, 0, 0)\" && gsap.to(element, {x: 0, y: 0, xPercent: 0, yPercent: 0, rotation: 0, rotationX: 0, rotationY: 0, scale: 1, skewX: 0, skewY: 0}).progress(1),\n\t\t\tbounds = element.getBoundingClientRect();\n\t\ttween && tween.progress(0).kill();\n\t\treturn bounds;\n\t},\n\t_getSize = (element, {d2}) => element[\"offset\" + d2] || element[\"client\" + d2] || 0,\n\t_getLabelRatioArray = timeline => {\n\t\tlet a = [],\n\t\t\tlabels = timeline.labels,\n\t\t\tduration = timeline.duration(),\n\t\t\tp;\n\t\tfor (p in labels) {\n\t\t\ta.push(labels[p] / duration);\n\t\t}\n\t\treturn a;\n\t},\n\t_getClosestLabel = animation => value => gsap.utils.snap(_getLabelRatioArray(animation), value),\n\t_snapDirectional = snapIncrementOrArray => {\n\t\tlet snap = gsap.utils.snap(snapIncrementOrArray),\n\t\t\ta = Array.isArray(snapIncrementOrArray) && snapIncrementOrArray.slice(0).sort((a, b) => a - b);\n\t\treturn a ? (value, direction, threshold= 1e-3) => {\n\t\t\tlet i;\n\t\t\tif (!direction) {\n\t\t\t\treturn snap(value);\n\t\t\t}\n\t\t\tif (direction > 0) {\n\t\t\t\tvalue -= threshold; // to avoid rounding errors. If we're too strict, it might snap forward, then immediately again, and again.\n\t\t\t\tfor (i = 0; i < a.length; i++) {\n\t\t\t\t\tif (a[i] >= value) {\n\t\t\t\t\t\treturn a[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn a[i-1];\n\t\t\t} else {\n\t\t\t\ti = a.length;\n\t\t\t\tvalue += threshold;\n\t\t\t\twhile (i--) {\n\t\t\t\t\tif (a[i] <= value) {\n\t\t\t\t\t\treturn a[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn a[0];\n\t\t} : (value, direction, threshold= 1e-3) => {\n\t\t\tlet snapped = snap(value);\n\t\t\treturn !direction || Math.abs(snapped - value) < threshold || ((snapped - value < 0) === direction < 0) ? snapped : snap(direction < 0 ? value - snapIncrementOrArray : value + snapIncrementOrArray);\n\t\t};\n\t},\n\t_getLabelAtDirection = timeline => (value, st) => _snapDirectional(_getLabelRatioArray(timeline))(value, st.direction),\n\t_multiListener = (func, element, types, callback) => types.split(\",\").forEach(type => func(element, type, callback)),\n\t_addListener = (element, type, func, nonPassive, capture) => element.addEventListener(type, func, {passive: !nonPassive, capture: !!capture}),\n\t_removeListener = (element, type, func, capture) => element.removeEventListener(type, func, !!capture),\n\t_wheelListener = (func, el, scrollFunc) => {\n\t\tscrollFunc = scrollFunc && scrollFunc.wheelHandler\n\t\tif (scrollFunc) {\n\t\t\tfunc(el, \"wheel\", scrollFunc);\n\t\t\tfunc(el, \"touchmove\", scrollFunc);\n\t\t}\n\t},\n\t_markerDefaults = {startColor: \"green\", endColor: \"red\", indent: 0, fontSize: \"16px\", fontWeight:\"normal\"},\n\t_defaults = {toggleActions: \"play\", anticipatePin: 0},\n\t_keywords = {top: 0, left: 0, center: 0.5, bottom: 1, right: 1},\n\t_offsetToPx = (value, size) => {\n\t\tif (_isString(value)) {\n\t\t\tlet eqIndex = value.indexOf(\"=\"),\n\t\t\t\trelative = ~eqIndex ? +(value.charAt(eqIndex-1) + 1) * parseFloat(value.substr(eqIndex + 1)) : 0;\n\t\t\tif (~eqIndex) {\n\t\t\t\t(value.indexOf(\"%\") > eqIndex) && (relative *= size / 100);\n\t\t\t\tvalue = value.substr(0, eqIndex-1);\n\t\t\t}\n\t\t\tvalue = relative + ((value in _keywords) ? _keywords[value] * size : ~value.indexOf(\"%\") ? parseFloat(value) * size / 100 : parseFloat(value) || 0);\n\t\t}\n\t\treturn value;\n\t},\n\t_createMarker = (type, name, container, direction, {startColor, endColor, fontSize, indent, fontWeight}, offset, matchWidthEl, containerAnimation) => {\n\t\tlet e = _doc.createElement(\"div\"),\n\t\t\tuseFixedPosition = _isViewport(container) || _getProxyProp(container, \"pinType\") === \"fixed\",\n\t\t\tisScroller = type.indexOf(\"scroller\") !== -1,\n\t\t\tparent = useFixedPosition ? _body : container,\n\t\t\tisStart = type.indexOf(\"start\") !== -1,\n\t\t\tcolor = isStart ? startColor : endColor,\n\t\t\tcss = \"border-color:\" + color + \";font-size:\" + fontSize + \";color:\" + color + \";font-weight:\" + fontWeight + \";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;\";\n\t\tcss += \"position:\" + ((isScroller || containerAnimation) && useFixedPosition ? \"fixed;\" : \"absolute;\");\n\t\t(isScroller || containerAnimation || !useFixedPosition) && (css += (direction === _vertical ? _right : _bottom) + \":\" + (offset + parseFloat(indent)) + \"px;\");\n\t\tmatchWidthEl && (css += \"box-sizing:border-box;text-align:left;width:\" + matchWidthEl.offsetWidth + \"px;\");\n\t\te._isStart = isStart;\n\t\te.setAttribute(\"class\", \"gsap-marker-\" + type + (name ? \" marker-\" + name : \"\"));\n\t\te.style.cssText = css;\n\t\te.innerText = name || name === 0 ? type + \"-\" + name : type;\n\t\tparent.children[0] ? parent.insertBefore(e, parent.children[0]) : parent.appendChild(e);\n\t\te._offset = e[\"offset\" + direction.op.d2];\n\t\t_positionMarker(e, 0, direction, isStart);\n\t\treturn e;\n\t},\n\t_positionMarker = (marker, start, direction, flipped) => {\n\t\tlet vars = {display: \"block\"},\n\t\t\tside = direction[flipped ? \"os2\" : \"p2\"],\n\t\t\toppositeSide = direction[flipped ? \"p2\" : \"os2\"];\n\t\tmarker._isFlipped = flipped;\n\t\tvars[direction.a + \"Percent\"] = flipped ? -100 : 0;\n\t\tvars[direction.a] = flipped ? \"1px\" : 0;\n\t\tvars[\"border\" + side + _Width] = 1;\n\t\tvars[\"border\" + oppositeSide + _Width] = 0;\n\t\tvars[direction.p] = start + \"px\";\n\t\tgsap.set(marker, vars);\n\t},\n\t_triggers = [],\n\t_ids = {},\n\t_rafID,\n\t_sync = () => _getTime() - _lastScrollTime > 34 && (_rafID || (_rafID = requestAnimationFrame(_updateAll))),\n\t_onScroll = () => { // previously, we tried to optimize performance by batching/deferring to the next requestAnimationFrame(), but discovered that Safari has a few bugs that make this unworkable (especially on iOS). See https://codepen.io/GreenSock/pen/16c435b12ef09c38125204818e7b45fc?editors=0010 and https://codepen.io/GreenSock/pen/JjOxYpQ/3dd65ccec5a60f1d862c355d84d14562?editors=0010 and https://codepen.io/GreenSock/pen/ExbrPNa/087cef197dc35445a0951e8935c41503?editors=0010\n\t\tif (!_normalizer || !_normalizer.isPressed || _normalizer.startX > _body.clientWidth) { // if the user is dragging the scrollbar, allow it.\n\t\t\t_scrollers.cache++;\n\t\t\tif (_normalizer) {\n\t\t\t\t_rafID || (_rafID = requestAnimationFrame(_updateAll));\n\t\t\t} else {\n\t\t\t\t_updateAll(); // Safari in particular (on desktop) NEEDS the immediate update rather than waiting for a requestAnimationFrame() whereas iOS seems to benefit from waiting for the requestAnimationFrame() tick, at least when normalizing. See https://codepen.io/GreenSock/pen/qBYozqO?editors=0110\n\t\t\t}\n\t\t\t_lastScrollTime || _dispatch(\"scrollStart\");\n\t\t\t_lastScrollTime = _getTime();\n\t\t}\n\t},\n\t_setBaseDimensions = () => {\n\t\t_baseScreenWidth = _win.innerWidth;\n\t\t_baseScreenHeight = _win.innerHeight;\n\t},\n\t_onResize = (force) => {\n\t\t_scrollers.cache++;\n\t\t(force === true || (!_refreshing && !_ignoreResize && !_doc.fullscreenElement && !_doc.webkitFullscreenElement && (!_ignoreMobileResize || _baseScreenWidth !== _win.innerWidth || Math.abs(_win.innerHeight - _baseScreenHeight) > _win.innerHeight * 0.25))) && _resizeDelay.restart(true);\n\t}, // ignore resizes triggered by refresh()\n\t_listeners = {},\n\t_emptyArray = [],\n\t_softRefresh = () => _removeListener(ScrollTrigger, \"scrollEnd\", _softRefresh) || _refreshAll(true),\n\t_dispatch = type => (_listeners[type] && _listeners[type].map(f => f())) || _emptyArray,\n\t_savedStyles = [], // when ScrollTrigger.saveStyles() is called, the inline styles are recorded in this Array in a sequential format like [element, cssText, gsCache, media]. This keeps it very memory-efficient and fast to iterate through.\n\t_revertRecorded = media => {\n\t\tfor (let i = 0; i < _savedStyles.length; i+=5) {\n\t\t\tif (!media || _savedStyles[i+4] && _savedStyles[i+4].query === media) {\n\t\t\t\t_savedStyles[i].style.cssText = _savedStyles[i+1];\n\t\t\t\t_savedStyles[i].getBBox && _savedStyles[i].setAttribute(\"transform\", _savedStyles[i+2] || \"\");\n\t\t\t\t_savedStyles[i+3].uncache = 1;\n\t\t\t}\n\t\t}\n\t},\n\t_revertAll = (kill, media) => {\n\t\tlet trigger;\n\t\tfor (_i = 0; _i < _triggers.length; _i++) {\n\t\t\ttrigger = _triggers[_i];\n\t\t\tif (trigger && (!media || trigger._ctx === media)) {\n\t\t\t\tif (kill) {\n\t\t\t\t\ttrigger.kill(1);\n\t\t\t\t} else {\n\t\t\t\t\ttrigger.revert(true, true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t_isReverted = true;\n\t\tmedia && _revertRecorded(media);\n\t\tmedia || _dispatch(\"revert\");\n\t},\n\t_clearScrollMemory = (scrollRestoration, force) => { // zero-out all the recorded scroll positions. Don't use _triggers because if, for example, .matchMedia() is used to create some ScrollTriggers and then the user resizes and it removes ALL ScrollTriggers, and then go back to a size where there are ScrollTriggers, it would have kept the position(s) saved from the initial state.\n\t\t_scrollers.cache++;\n\t\t(force || !_refreshingAll) && _scrollers.forEach(obj => _isFunction(obj) && obj.cacheID++ && (obj.rec = 0));\n\t\t_isString(scrollRestoration) && (_win.history.scrollRestoration = _scrollRestoration = scrollRestoration);\n\t},\n\t_refreshingAll,\n\t_refreshID = 0,\n\t_queueRefreshID,\n\t_queueRefreshAll = () => { // we don't want to call _refreshAll() every time we create a new ScrollTrigger (for performance reasons) - it's better to batch them. Some frameworks dynamically load content and we can't rely on the window's \"load\" or \"DOMContentLoaded\" events to trigger it.\n\t\tif (_queueRefreshID !== _refreshID) {\n\t\t\tlet id = _queueRefreshID = _refreshID;\n\t\t\trequestAnimationFrame(() => id === _refreshID && _refreshAll(true));\n\t\t}\n\t},\n\t_refresh100vh = () => {\n\t\t_body.appendChild(_div100vh);\n\t\t_100vh = (!_normalizer && _div100vh.offsetHeight) || _win.innerHeight;\n\t\t_body.removeChild(_div100vh);\n\t},\n\t_hideAllMarkers = hide => _toArray(\".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end\").forEach(el => el.style.display = hide ? \"none\" : \"block\"),\n\t_refreshAll = (force, skipRevert) => {\n\t\t_docEl = _doc.documentElement; // some frameworks like Astro may cache the and replace it during routing, so we'll just re-record the _docEl and _body for safety (otherwise, the markers may not get added properly).\n\t\t_body = _doc.body;\n\t\t_root = [_win, _doc, _docEl, _body];\n\t\tif (_lastScrollTime && !force && !_isReverted) {\n\t\t\t_addListener(ScrollTrigger, \"scrollEnd\", _softRefresh);\n\t\t\treturn;\n\t\t}\n\t\t_refresh100vh();\n\t\t_refreshingAll = ScrollTrigger.isRefreshing = true;\n\t\t_scrollers.forEach(obj => _isFunction(obj) && ++obj.cacheID && (obj.rec = obj())); // force the clearing of the cache because some browsers take a little while to dispatch the \"scroll\" event and the user may have changed the scroll position and then called ScrollTrigger.refresh() right away\n\t\tlet refreshInits = _dispatch(\"refreshInit\");\n\t\t_sort && ScrollTrigger.sort();\n\t\tskipRevert || _revertAll();\n\t\t_scrollers.forEach(obj => {\n\t\t\tif (_isFunction(obj)) {\n\t\t\t\tobj.smooth && (obj.target.style.scrollBehavior = \"auto\"); // smooth scrolling interferes\n\t\t\t\tobj(0);\n\t\t\t}\n\t\t});\n\t\t_triggers.slice(0).forEach(t => t.refresh()) // don't loop with _i because during a refresh() someone could call ScrollTrigger.update() which would iterate through _i resulting in a skip.\n\t\t_isReverted = false;\n\t\t_triggers.forEach((t) => { // nested pins (pinnedContainer) with pinSpacing may expand the container, so we must accommodate that here.\n\t\t\tif (t._subPinOffset && t.pin) {\n\t\t\t\tlet prop = t.vars.horizontal ? \"offsetWidth\" : \"offsetHeight\",\n\t\t\t\t\toriginal = t.pin[prop];\n\t\t\t\tt.revert(true, 1);\n\t\t\t\tt.adjustPinSpacing(t.pin[prop] - original);\n\t\t\t\tt.refresh();\n\t\t\t}\n\t\t});\n\t\t_clampingMax = 1; // pinSpacing might be propping a page open, thus when we .setPositions() to clamp a ScrollTrigger's end we should leave the pinSpacing alone. That's what this flag is for.\n\t\t_hideAllMarkers(true);\n\t\t_triggers.forEach(t => { // the scroller's max scroll position may change after all the ScrollTriggers refreshed (like pinning could push it down), so we need to loop back and correct any with end: \"max\". Same for anything with a clamped end\n\t\t\tlet max = _maxScroll(t.scroller, t._dir),\n\t\t\t\tendClamp = t.vars.end === \"max\" || (t._endClamp && t.end > max),\n\t\t\t\tstartClamp = t._startClamp && t.start >= max;\n\t\t\t(endClamp || startClamp) && t.setPositions(startClamp ? max - 1 : t.start, endClamp ? Math.max(startClamp ? max : t.start + 1, max) : t.end, true);\n\t\t});\n\t\t_hideAllMarkers(false);\n\t\t_clampingMax = 0;\n\t\trefreshInits.forEach(result => result && result.render && result.render(-1)); // if the onRefreshInit() returns an animation (typically a gsap.set()), revert it. This makes it easy to put things in a certain spot before refreshing for measurement purposes, and then put things back.\n\t\t_scrollers.forEach(obj => {\n\t\t\tif (_isFunction(obj)) {\n\t\t\t\tobj.smooth && requestAnimationFrame(() => obj.target.style.scrollBehavior = \"smooth\");\n\t\t\t\tobj.rec && obj(obj.rec);\n\t\t\t}\n\t\t});\n\t\t_clearScrollMemory(_scrollRestoration, 1);\n\t\t_resizeDelay.pause();\n\t\t_refreshID++;\n\t\t_refreshingAll = 2;\n\t\t_updateAll(2);\n\t\t_triggers.forEach(t => _isFunction(t.vars.onRefresh) && t.vars.onRefresh(t));\n\t\t_refreshingAll = ScrollTrigger.isRefreshing = false;\n\t\t_dispatch(\"refresh\");\n\t},\n\t_lastScroll = 0,\n\t_direction = 1,\n\t_primary,\n\t_updateAll = (force) => {\n\t\tif (force === 2 || (!_refreshingAll && !_isReverted)) { // _isReverted could be true if, for example, a matchMedia() is in the process of executing. We don't want to update during the time everything is reverted.\n\t\t\tScrollTrigger.isUpdating = true;\n\t\t\t_primary && _primary.update(0); // ScrollSmoother uses refreshPriority -9999 to become the primary that gets updated before all others because it affects the scroll position.\n\t\t\tlet l = _triggers.length,\n\t\t\t\ttime = _getTime(),\n\t\t\t\trecordVelocity = time - _time1 >= 50,\n\t\t\t\tscroll = l && _triggers[0].scroll();\n\t\t\t_direction = _lastScroll > scroll ? -1 : 1;\n\t\t\t_refreshingAll || (_lastScroll = scroll);\n\t\t\tif (recordVelocity) {\n\t\t\t\tif (_lastScrollTime && !_pointerIsDown && time - _lastScrollTime > 200) {\n\t\t\t\t\t_lastScrollTime = 0;\n\t\t\t\t\t_dispatch(\"scrollEnd\");\n\t\t\t\t}\n\t\t\t\t_time2 = _time1;\n\t\t\t\t_time1 = time;\n\t\t\t}\n\t\t\tif (_direction < 0) {\n\t\t\t\t_i = l;\n\t\t\t\twhile (_i-- > 0) {\n\t\t\t\t\t_triggers[_i] && _triggers[_i].update(0, recordVelocity);\n\t\t\t\t}\n\t\t\t\t_direction = 1;\n\t\t\t} else {\n\t\t\t\tfor (_i = 0; _i < l; _i++) {\n\t\t\t\t\t_triggers[_i] && _triggers[_i].update(0, recordVelocity);\n\t\t\t\t}\n\t\t\t}\n\t\t\tScrollTrigger.isUpdating = false;\n\t\t}\n\t\t_rafID = 0;\n\t},\n\t_propNamesToCopy = [_left, _top, _bottom, _right, _margin + _Bottom, _margin + _Right, _margin + _Top, _margin + _Left, \"display\", \"flexShrink\", \"float\", \"zIndex\", \"gridColumnStart\", \"gridColumnEnd\", \"gridRowStart\", \"gridRowEnd\", \"gridArea\", \"justifySelf\", \"alignSelf\", \"placeSelf\", \"order\"],\n\t_stateProps = _propNamesToCopy.concat([_width, _height, \"boxSizing\", \"max\" + _Width, \"max\" + _Height, \"position\", _margin, _padding, _padding + _Top, _padding + _Right, _padding + _Bottom, _padding + _Left]),\n\t_swapPinOut = (pin, spacer, state) => {\n\t\t_setState(state);\n\t\tlet cache = pin._gsap;\n\t\tif (cache.spacerIsNative) {\n\t\t\t_setState(cache.spacerState);\n\t\t} else if (pin._gsap.swappedIn) {\n\t\t\tlet parent = spacer.parentNode;\n\t\t\tif (parent) {\n\t\t\t\tparent.insertBefore(pin, spacer);\n\t\t\t\tparent.removeChild(spacer);\n\t\t\t}\n\t\t}\n\t\tpin._gsap.swappedIn = false;\n\t},\n\t_swapPinIn = (pin, spacer, cs, spacerState) => {\n\t\tif (!pin._gsap.swappedIn) {\n\t\t\tlet i = _propNamesToCopy.length,\n\t\t\t\tspacerStyle = spacer.style,\n\t\t\t\tpinStyle = pin.style,\n\t\t\t\tp;\n\t\t\twhile (i--) {\n\t\t\t\tp = _propNamesToCopy[i];\n\t\t\t\tspacerStyle[p] = cs[p];\n\t\t\t}\n\t\t\tspacerStyle.position = cs.position === \"absolute\" ? \"absolute\" : \"relative\";\n\t\t\t(cs.display === \"inline\") && (spacerStyle.display = \"inline-block\");\n\t\t\tpinStyle[_bottom] = pinStyle[_right] = \"auto\";\n\t\t\tspacerStyle.flexBasis = cs.flexBasis || \"auto\";\n\t\t\tspacerStyle.overflow = \"visible\";\n\t\t\tspacerStyle.boxSizing = \"border-box\";\n\t\t\tspacerStyle[_width] = _getSize(pin, _horizontal) + _px;\n\t\t\tspacerStyle[_height] = _getSize(pin, _vertical) + _px;\n\t\t\tspacerStyle[_padding] = pinStyle[_margin] = pinStyle[_top] = pinStyle[_left] = \"0\";\n\t\t\t_setState(spacerState);\n\t\t\tpinStyle[_width] = pinStyle[\"max\" + _Width] = cs[_width];\n\t\t\tpinStyle[_height] = pinStyle[\"max\" + _Height] = cs[_height];\n\t\t\tpinStyle[_padding] = cs[_padding];\n\t\t\tif (pin.parentNode !== spacer) {\n\t\t\t\tpin.parentNode.insertBefore(spacer, pin);\n\t\t\t\tspacer.appendChild(pin);\n\t\t\t}\n\t\t\tpin._gsap.swappedIn = true;\n\t\t}\n\t},\n\t_capsExp = /([A-Z])/g,\n\t_setState = state => {\n\t\tif (state) {\n\t\t\tlet style = state.t.style,\n\t\t\t\tl = state.length,\n\t\t\t\ti = 0,\n\t\t\t\tp, value;\n\t\t\t(state.t._gsap || gsap.core.getCache(state.t)).uncache = 1; // otherwise transforms may be off\n\t\t\tfor (; i < l; i +=2) {\n\t\t\t\tvalue = state[i+1];\n\t\t\t\tp = state[i];\n\t\t\t\tif (value) {\n\t\t\t\t\tstyle[p] = value;\n\t\t\t\t} else if (style[p]) {\n\t\t\t\t\tstyle.removeProperty(p.replace(_capsExp, \"-$1\").toLowerCase());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\t_getState = element => { // returns an Array with alternating values like [property, value, property, value] and a \"t\" property pointing to the target (element). Makes it fast and cheap.\n\t\tlet l = _stateProps.length,\n\t\t\tstyle = element.style,\n\t\t\tstate = [],\n\t\t\ti = 0;\n\t\tfor (; i < l; i++) {\n\t\t\tstate.push(_stateProps[i], style[_stateProps[i]]);\n\t\t}\n\t\tstate.t = element;\n\t\treturn state;\n\t},\n\t_copyState = (state, override, omitOffsets) => {\n\t\tlet result = [],\n\t\t\tl = state.length,\n\t\t\ti = omitOffsets ? 8 : 0, // skip top, left, right, bottom if omitOffsets is true\n\t\t\tp;\n\t\tfor (; i < l; i += 2) {\n\t\t\tp = state[i];\n\t\t\tresult.push(p, (p in override) ? override[p] : state[i+1]);\n\t\t}\n\t\tresult.t = state.t;\n\t\treturn result;\n\t},\n\t_winOffsets = {left:0, top:0},\n\t// // potential future feature (?) Allow users to calculate where a trigger hits (scroll position) like getScrollPosition(\"#id\", \"top bottom\")\n\t// _getScrollPosition = (trigger, position, {scroller, containerAnimation, horizontal}) => {\n\t// \tscroller = _getTarget(scroller || _win);\n\t// \tlet direction = horizontal ? _horizontal : _vertical,\n\t// \t\tisViewport = _isViewport(scroller);\n\t// \t_getSizeFunc(scroller, isViewport, direction);\n\t// \treturn _parsePosition(position, _getTarget(trigger), _getSizeFunc(scroller, isViewport, direction)(), direction, _getScrollFunc(scroller, direction)(), 0, 0, 0, _getOffsetsFunc(scroller, isViewport)(), isViewport ? 0 : parseFloat(_getComputedStyle(scroller)[\"border\" + direction.p2 + _Width]) || 0, 0, containerAnimation ? containerAnimation.duration() : _maxScroll(scroller), containerAnimation);\n\t// },\n\t_parsePosition = (value, trigger, scrollerSize, direction, scroll, marker, markerScroller, self, scrollerBounds, borderWidth, useFixedPosition, scrollerMax, containerAnimation, clampZeroProp) => {\n\t\t_isFunction(value) && (value = value(self));\n\t\tif (_isString(value) && value.substr(0,3) === \"max\") {\n\t\t\tvalue = scrollerMax + (value.charAt(4) === \"=\" ? _offsetToPx(\"0\" + value.substr(3), scrollerSize) : 0);\n\t\t}\n\t\tlet time = containerAnimation ? containerAnimation.time() : 0,\n\t\t\tp1, p2, element;\n\t\tcontainerAnimation && containerAnimation.seek(0);\n\t\tisNaN(value) || (value = +value); // convert a string number like \"45\" to an actual number\n\t\tif (!_isNumber(value)) {\n\t\t\t_isFunction(trigger) && (trigger = trigger(self));\n\t\t\tlet offsets = (value || \"0\").split(\" \"),\n\t\t\t\tbounds, localOffset, globalOffset, display;\n\t\t\telement = _getTarget(trigger, self) || _body;\n\t\t\tbounds = _getBounds(element) || {};\n\t\t\tif ((!bounds || (!bounds.left && !bounds.top)) && _getComputedStyle(element).display === \"none\") { // if display is \"none\", it won't report getBoundingClientRect() properly\n\t\t\t\tdisplay = element.style.display;\n\t\t\t\telement.style.display = \"block\";\n\t\t\t\tbounds = _getBounds(element);\n\t\t\t\tdisplay ? (element.style.display = display) : element.style.removeProperty(\"display\");\n\t\t\t}\n\t\t\tlocalOffset = _offsetToPx(offsets[0], bounds[direction.d]);\n\t\t\tglobalOffset = _offsetToPx(offsets[1] || \"0\", scrollerSize);\n\t\t\tvalue = bounds[direction.p] - scrollerBounds[direction.p] - borderWidth + localOffset + scroll - globalOffset;\n\t\t\tmarkerScroller && _positionMarker(markerScroller, globalOffset, direction, (scrollerSize - globalOffset < 20 || (markerScroller._isStart && globalOffset > 20)));\n\t\t\tscrollerSize -= scrollerSize - globalOffset; // adjust for the marker\n\t\t} else {\n\t\t\tcontainerAnimation && (value = gsap.utils.mapRange(containerAnimation.scrollTrigger.start, containerAnimation.scrollTrigger.end, 0, scrollerMax, value));\n\t\t\tmarkerScroller && _positionMarker(markerScroller, scrollerSize, direction, true);\n\t\t}\n\t\tif (clampZeroProp) {\n\t\t\tself[clampZeroProp] = value || -0.001;\n\t\t\tvalue < 0 && (value = 0);\n\t\t}\n\t\tif (marker) {\n\t\t\tlet position = value + scrollerSize,\n\t\t\t\tisStart = marker._isStart;\n\t\t\tp1 = \"scroll\" + direction.d2;\n\t\t\t_positionMarker(marker, position, direction, (isStart && position > 20) || (!isStart && (useFixedPosition ? Math.max(_body[p1], _docEl[p1]) : marker.parentNode[p1]) <= position + 1));\n\t\t\tif (useFixedPosition) {\n\t\t\t\tscrollerBounds = _getBounds(markerScroller);\n\t\t\t\tuseFixedPosition && (marker.style[direction.op.p] = (scrollerBounds[direction.op.p] - direction.op.m - marker._offset) + _px);\n\t\t\t}\n\t\t}\n\t\tif (containerAnimation && element) {\n\t\t\tp1 = _getBounds(element);\n\t\t\tcontainerAnimation.seek(scrollerMax);\n\t\t\tp2 = _getBounds(element);\n\t\t\tcontainerAnimation._caScrollDist = p1[direction.p] - p2[direction.p];\n\t\t\tvalue = value / (containerAnimation._caScrollDist) * scrollerMax;\n\t\t}\n\t\tcontainerAnimation && containerAnimation.seek(time);\n\t\treturn containerAnimation ? value : Math.round(value);\n\t},\n\t_prefixExp = /(webkit|moz|length|cssText|inset)/i,\n\t_reparent = (element, parent, top, left) => {\n\t\tif (element.parentNode !== parent) {\n\t\t\tlet style = element.style,\n\t\t\t\tp, cs;\n\t\t\tif (parent === _body) {\n\t\t\t\telement._stOrig = style.cssText; // record original inline styles so we can revert them later\n\t\t\t\tcs = _getComputedStyle(element);\n\t\t\t\tfor (p in cs) { // must copy all relevant styles to ensure that nothing changes visually when we reparent to the . Skip the vendor prefixed ones.\n\t\t\t\t\tif (!+p && !_prefixExp.test(p) && cs[p] && typeof style[p] === \"string\" && p !== \"0\") {\n\t\t\t\t\t\tstyle[p] = cs[p];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstyle.top = top;\n\t\t\t\tstyle.left = left;\n\t\t\t} else {\n\t\t\t\tstyle.cssText = element._stOrig;\n\t\t\t}\n\t\t\tgsap.core.getCache(element).uncache = 1;\n\t\t\tparent.appendChild(element);\n\t\t}\n\t},\n\t_interruptionTracker = (getValueFunc, initialValue, onInterrupt) => {\n\t\tlet last1 = initialValue,\n\t\t\tlast2 = last1;\n\t\treturn value => {\n\t\t\tlet current = Math.round(getValueFunc()); // round because in some [very uncommon] Windows environments, scroll can get reported with decimals even though it was set without.\n\t\t\tif (current !== last1 && current !== last2 && Math.abs(current - last1) > 3 && Math.abs(current - last2) > 3) { // if the user scrolls, kill the tween. iOS Safari intermittently misreports the scroll position, it may be the most recently-set one or the one before that! When Safari is zoomed (CMD-+), it often misreports as 1 pixel off too! So if we set the scroll position to 125, for example, it'll actually report it as 124.\n\t\t\t\tvalue = current;\n\t\t\t\tonInterrupt && onInterrupt();\n\t\t\t}\n\t\t\tlast2 = last1;\n\t\t\tlast1 = Math.round(value);\n\t\t\treturn last1;\n\t\t};\n\t},\n\t_shiftMarker = (marker, direction, value) => {\n\t\tlet vars = {};\n\t\tvars[direction.p] = \"+=\" + value;\n\t\tgsap.set(marker, vars);\n\t},\n\t// _mergeAnimations = animations => {\n\t// \tlet tl = gsap.timeline({smoothChildTiming: true}).startTime(Math.min(...animations.map(a => a.globalTime(0))));\n\t// \tanimations.forEach(a => {let time = a.totalTime(); tl.add(a); a.totalTime(time); });\n\t// \ttl.smoothChildTiming = false;\n\t// \treturn tl;\n\t// },\n\n\t// returns a function that can be used to tween the scroll position in the direction provided, and when doing so it'll add a .tween property to the FUNCTION itself, and remove it when the tween completes or gets killed. This gives us a way to have multiple ScrollTriggers use a central function for any given scroller and see if there's a scroll tween running (which would affect if/how things get updated)\n\t_getTweenCreator = (scroller, direction) => {\n\t\tlet getScroll = _getScrollFunc(scroller, direction),\n\t\t\tprop = \"_scroll\" + direction.p2, // add a tweenable property to the scroller that's a getter/setter function, like _scrollTop or _scrollLeft. This way, if someone does gsap.killTweensOf(scroller) it'll kill the scroll tween.\n\t\t\tgetTween = (scrollTo, vars, initialValue, change1, change2) => {\n\t\t\t\tlet tween = getTween.tween,\n\t\t\t\t\tonComplete = vars.onComplete,\n\t\t\t\t\tmodifiers = {};\n\t\t\t\tinitialValue = initialValue || getScroll();\n\t\t\t\tlet checkForInterruption = _interruptionTracker(getScroll, initialValue, () => {\n\t\t\t\t\ttween.kill();\n\t\t\t\t\tgetTween.tween = 0;\n\t\t\t\t});\n\t\t\t\tchange2 = (change1 && change2) || 0; // if change1 is 0, we set that to the difference and ignore change2. Otherwise, there would be a compound effect.\n\t\t\t\tchange1 = change1 || (scrollTo - initialValue);\n\t\t\t\ttween && tween.kill();\n\t\t\t\tvars[prop] = scrollTo;\n\t\t\t\tvars.inherit = false;\n\t\t\t\tvars.modifiers = modifiers;\n\t\t\t\tmodifiers[prop] = () => checkForInterruption(initialValue + change1 * tween.ratio + change2 * tween.ratio * tween.ratio);\n\t\t\t\tvars.onUpdate = () => {\n\t\t\t\t\t_scrollers.cache++;\n\t\t\t\t\tgetTween.tween && _updateAll(); // if it was interrupted/killed, like in a context.revert(), don't force an updateAll()\n\t\t\t\t};\n\t\t\t\tvars.onComplete = () => {\n\t\t\t\t\tgetTween.tween = 0;\n\t\t\t\t\tonComplete && onComplete.call(tween);\n\t\t\t\t};\n\t\t\t\ttween = getTween.tween = gsap.to(scroller, vars);\n\t\t\t\treturn tween;\n\t\t\t};\n\t\tscroller[prop] = getScroll;\n\t\tgetScroll.wheelHandler = () => getTween.tween && getTween.tween.kill() && (getTween.tween = 0);\n\t\t_addListener(scroller, \"wheel\", getScroll.wheelHandler); // Windows machines handle mousewheel scrolling in chunks (like \"3 lines per scroll\") meaning the typical strategy for cancelling the scroll isn't as sensitive. It's much more likely to match one of the previous 2 scroll event positions. So we kill any snapping as soon as there's a wheel event.\n\t\tScrollTrigger.isTouch && _addListener(scroller, \"touchmove\", getScroll.wheelHandler);\n\t\treturn getTween;\n\t};\n\n\n\n\nexport class ScrollTrigger {\n\n\tconstructor(vars, animation) {\n\t\t_coreInitted || ScrollTrigger.register(gsap) || console.warn(\"Please gsap.registerPlugin(ScrollTrigger)\");\n\t\t_context(this);\n\t\tthis.init(vars, animation);\n\t}\n\n\tinit(vars, animation) {\n\t\tthis.progress = this.start = 0;\n\t\tthis.vars && this.kill(true, true); // in case it's being initted again\n\t\tif (!_enabled) {\n\t\t\tthis.update = this.refresh = this.kill = _passThrough;\n\t\t\treturn;\n\t\t}\n\t\tvars = _setDefaults((_isString(vars) || _isNumber(vars) || vars.nodeType) ? {trigger: vars} : vars, _defaults);\n\t\tlet {onUpdate, toggleClass, id, onToggle, onRefresh, scrub, trigger, pin, pinSpacing, invalidateOnRefresh, anticipatePin, onScrubComplete, onSnapComplete, once, snap, pinReparent, pinSpacer, containerAnimation, fastScrollEnd, preventOverlaps} = vars,\n\t\t\tdirection = vars.horizontal || (vars.containerAnimation && vars.horizontal !== false) ? _horizontal : _vertical,\n\t\t\tisToggle = !scrub && scrub !== 0,\n\t\t\tscroller = _getTarget(vars.scroller || _win),\n\t\t\tscrollerCache = gsap.core.getCache(scroller),\n\t\t\tisViewport = _isViewport(scroller),\n\t\t\tuseFixedPosition = (\"pinType\" in vars ? vars.pinType : _getProxyProp(scroller, \"pinType\") || (isViewport && \"fixed\")) === \"fixed\",\n\t\t\tcallbacks = [vars.onEnter, vars.onLeave, vars.onEnterBack, vars.onLeaveBack],\n\t\t\ttoggleActions = isToggle && vars.toggleActions.split(\" \"),\n\t\t\tmarkers = \"markers\" in vars ? vars.markers : _defaults.markers,\n\t\t\tborderWidth = isViewport ? 0 : parseFloat(_getComputedStyle(scroller)[\"border\" + direction.p2 + _Width]) || 0,\n\t\t\tself = this,\n\t\t\tonRefreshInit = vars.onRefreshInit && (() => vars.onRefreshInit(self)),\n\t\t\tgetScrollerSize = _getSizeFunc(scroller, isViewport, direction),\n\t\t\tgetScrollerOffsets = _getOffsetsFunc(scroller, isViewport),\n\t\t\tlastSnap = 0,\n\t\t\tlastRefresh = 0,\n\t\t\tprevProgress = 0,\n\t\t\tscrollFunc = _getScrollFunc(scroller, direction),\n\t\t\ttweenTo, pinCache, snapFunc, scroll1, scroll2, start, end, markerStart, markerEnd, markerStartTrigger, markerEndTrigger, markerVars, executingOnRefresh,\n\t\t\tchange, pinOriginalState, pinActiveState, pinState, spacer, offset, pinGetter, pinSetter, pinStart, pinChange, spacingStart, spacerState, markerStartSetter, pinMoves,\n\t\t\tmarkerEndSetter, cs, snap1, snap2, scrubTween, scrubSmooth, snapDurClamp, snapDelayedCall, prevScroll, prevAnimProgress, caMarkerSetter, customRevertReturn;\n\n\t\t// for the sake of efficiency, _startClamp/_endClamp serve like a truthy value indicating that clamping was enabled on the start/end, and ALSO store the actual pre-clamped numeric value. We tap into that in ScrollSmoother for speed effects. So for example, if start=\"clamp(top bottom)\" results in a start of -100 naturally, it would get clamped to 0 but -100 would be stored in _startClamp.\n\t\tself._startClamp = self._endClamp = false;\n\t\tself._dir = direction;\n\t\tanticipatePin *= 45;\n\t\tself.scroller = scroller;\n\t\tself.scroll = containerAnimation ? containerAnimation.time.bind(containerAnimation) : scrollFunc;\n\t\tscroll1 = scrollFunc();\n\t\tself.vars = vars;\n\t\tanimation = animation || vars.animation;\n\t\tif (\"refreshPriority\" in vars) {\n\t\t\t_sort = 1;\n\t\t\tvars.refreshPriority === -9999 && (_primary = self); // used by ScrollSmoother\n\t\t}\n\t\tscrollerCache.tweenScroll = scrollerCache.tweenScroll || {\n\t\t\ttop: _getTweenCreator(scroller, _vertical),\n\t\t\tleft: _getTweenCreator(scroller, _horizontal)\n\t\t};\n\t\tself.tweenTo = tweenTo = scrollerCache.tweenScroll[direction.p];\n\t\tself.scrubDuration = value => {\n\t\t\tscrubSmooth = _isNumber(value) && value;\n\t\t\tif (!scrubSmooth) {\n\t\t\t\tscrubTween && scrubTween.progress(1).kill();\n\t\t\t\tscrubTween = 0;\n\t\t\t} else {\n\t\t\t\tscrubTween ? scrubTween.duration(value) : (scrubTween = gsap.to(animation, {ease: \"expo\", totalProgress: \"+=0\", inherit: false, duration: scrubSmooth, paused: true, onComplete: () => onScrubComplete && onScrubComplete(self)}));\n\t\t\t}\n\t\t};\n\t\tif (animation) {\n\t\t\tanimation.vars.lazy = false;\n\t\t\t(animation._initted && !self.isReverted) || (animation.vars.immediateRender !== false && vars.immediateRender !== false && animation.duration() && animation.render(0, true, true)); // special case: if this ScrollTrigger gets re-initted, a from() tween with a stagger could get initted initially and then reverted on the re-init which means it'll need to get rendered again here to properly display things. Otherwise, See https://gsap.com/forums/topic/36777-scrollsmoother-splittext-nextjs/ and https://codepen.io/GreenSock/pen/eYPyPpd?editors=0010\n\t\t\tself.animation = animation.pause();\n\t\t\tanimation.scrollTrigger = self;\n\t\t\tself.scrubDuration(scrub);\n\t\t\tsnap1 = 0;\n\t\t\tid || (id = animation.vars.id);\n\t\t}\n\n\t\tif (snap) {\n\t\t\t// TODO: potential idea: use legitimate CSS scroll snapping by pushing invisible elements into the DOM that serve as snap positions, and toggle the document.scrollingElement.style.scrollSnapType onToggle. See https://codepen.io/GreenSock/pen/JjLrgWM for a quick proof of concept.\n\t\t\tif (!_isObject(snap) || snap.push) {\n\t\t\t\tsnap = {snapTo: snap};\n\t\t\t}\n\t\t\t(\"scrollBehavior\" in _body.style) && gsap.set(isViewport ? [_body, _docEl] : scroller, {scrollBehavior: \"auto\"}); // smooth scrolling doesn't work with snap.\n\t\t\t_scrollers.forEach(o => _isFunction(o) && o.target === (isViewport ? _doc.scrollingElement || _docEl : scroller) && (o.smooth = false)); // note: set smooth to false on both the vertical and horizontal scroll getters/setters\n\t\t\tsnapFunc = _isFunction(snap.snapTo) ? snap.snapTo : snap.snapTo === \"labels\" ? _getClosestLabel(animation) : snap.snapTo === \"labelsDirectional\" ? _getLabelAtDirection(animation) : snap.directional !== false ? (value, st) => _snapDirectional(snap.snapTo)(value, _getTime() - lastRefresh < 500 ? 0 : st.direction) : gsap.utils.snap(snap.snapTo);\n\t\t\tsnapDurClamp = snap.duration || {min: 0.1, max: 2};\n\t\t\tsnapDurClamp = _isObject(snapDurClamp) ? _clamp(snapDurClamp.min, snapDurClamp.max) : _clamp(snapDurClamp, snapDurClamp);\n\t\t\tsnapDelayedCall = gsap.delayedCall(snap.delay || (scrubSmooth / 2) || 0.1, () => {\n\t\t\t\tlet scroll = scrollFunc(),\n\t\t\t\t\trefreshedRecently = _getTime() - lastRefresh < 500,\n\t\t\t\t\ttween = tweenTo.tween;\n\t\t\t\tif ((refreshedRecently || Math.abs(self.getVelocity()) < 10) && !tween && !_pointerIsDown && lastSnap !== scroll) {\n\t\t\t\t\tlet progress = (scroll - start) / change, // don't use self.progress because this might run between the refresh() and when the scroll position updates and self.progress is set properly in the update() method.\n\t\t\t\t\t\ttotalProgress = animation && !isToggle ? animation.totalProgress() : progress,\n\t\t\t\t\t\tvelocity = refreshedRecently ? 0 : ((totalProgress - snap2) / (_getTime() - _time2) * 1000) || 0,\n\t\t\t\t\t\tchange1 = gsap.utils.clamp(-progress, 1 - progress, _abs(velocity / 2) * velocity / 0.185),\n\t\t\t\t\t\tnaturalEnd = progress + (snap.inertia === false ? 0 : change1),\n\t\t\t\t\t\tendValue, endScroll,\n\t\t\t\t\t\t{ onStart, onInterrupt, onComplete } = snap;\n\t\t\t\t\tendValue = snapFunc(naturalEnd, self);\n\t\t\t\t\t_isNumber(endValue) || (endValue = naturalEnd); // in case the function didn't return a number, fall back to using the naturalEnd\n\t\t\t\t\tendScroll = Math.max(0, Math.round(start + endValue * change));\n\t\t\t\t\tif (scroll <= end && scroll >= start && endScroll !== scroll) {\n\t\t\t\t\t\tif (tween && !tween._initted && tween.data <= _abs(endScroll - scroll)) { // there's an overlapping snap! So we must figure out which one is closer and let that tween live.\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (snap.inertia === false) {\n\t\t\t\t\t\t\tchange1 = endValue - progress;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttweenTo(endScroll, {\n\t\t\t\t\t\t\tduration: snapDurClamp(_abs( (Math.max(_abs(naturalEnd - totalProgress), _abs(endValue - totalProgress)) * 0.185 / velocity / 0.05) || 0)),\n\t\t\t\t\t\t\tease: snap.ease || \"power3\",\n\t\t\t\t\t\t\tdata: _abs(endScroll - scroll), // record the distance so that if another snap tween occurs (conflict) we can prioritize the closest snap.\n\t\t\t\t\t\t\tonInterrupt: () => snapDelayedCall.restart(true) && onInterrupt && onInterrupt(self),\n\t\t\t\t\t\t\tonComplete() {\n\t\t\t\t\t\t\t\tself.update();\n\t\t\t\t\t\t\t\tlastSnap = scrollFunc();\n\t\t\t\t\t\t\t\tif (animation && !isToggle) { // the resolution of the scrollbar is limited, so we should correct the scrubbed animation's playhead at the end to match EXACTLY where it was supposed to snap\n\t\t\t\t\t\t\t\t\tscrubTween ? scrubTween.resetTo(\"totalProgress\", endValue, animation._tTime / animation._tDur) : animation.progress(endValue);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tsnap1 = snap2 = animation && !isToggle ? animation.totalProgress() : self.progress;\n\t\t\t\t\t\t\t\tonSnapComplete && onSnapComplete(self);\n\t\t\t\t\t\t\t\tonComplete && onComplete(self);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, scroll, change1 * change, endScroll - scroll - change1 * change);\n\t\t\t\t\t\tonStart && onStart(self, tweenTo.tween);\n\t\t\t\t\t}\n\t\t\t\t} else if (self.isActive && lastSnap !== scroll) {\n\t\t\t\t\tsnapDelayedCall.restart(true);\n\t\t\t\t}\n\t\t\t}).pause();\n\t\t}\n\t\tid && (_ids[id] = self);\n\t\ttrigger = self.trigger = _getTarget(trigger || (pin !== true && pin));\n\n\t\t// if a trigger has some kind of scroll-related effect applied that could contaminate the \"y\" or \"x\" position (like a ScrollSmoother effect), we needed a way to temporarily revert it, so we use the stRevert property of the gsCache. It can return another function that we'll call at the end so it can return to its normal state.\n\t\tcustomRevertReturn = trigger && trigger._gsap && trigger._gsap.stRevert;\n\t\tcustomRevertReturn && (customRevertReturn = customRevertReturn(self));\n\n\t\tpin = pin === true ? trigger : _getTarget(pin);\n\t\t_isString(toggleClass) && (toggleClass = {targets: trigger, className: toggleClass});\n\t\tif (pin) {\n\t\t\t(pinSpacing === false || pinSpacing === _margin) || (pinSpacing = !pinSpacing && pin.parentNode && pin.parentNode.style && _getComputedStyle(pin.parentNode).display === \"flex\" ? false : _padding); // if the parent is display: flex, don't apply pinSpacing by default. We should check that pin.parentNode is an element (not shadow dom window)\n\t\t\tself.pin = pin;\n\t\t\tpinCache = gsap.core.getCache(pin);\n\t\t\tif (!pinCache.spacer) { // record the spacer and pinOriginalState on the cache in case someone tries pinning the same element with MULTIPLE ScrollTriggers - we don't want to have multiple spacers or record the \"original\" pin state after it has already been affected by another ScrollTrigger.\n\t\t\t\tif (pinSpacer) {\n\t\t\t\t\tpinSpacer = _getTarget(pinSpacer);\n\t\t\t\t\tpinSpacer && !pinSpacer.nodeType && (pinSpacer = pinSpacer.current || pinSpacer.nativeElement); // for React & Angular\n\t\t\t\t\tpinCache.spacerIsNative = !!pinSpacer;\n\t\t\t\t\tpinSpacer && (pinCache.spacerState = _getState(pinSpacer));\n\t\t\t\t}\n\t\t\t\tpinCache.spacer = spacer = pinSpacer || _doc.createElement(\"div\");\n\t\t\t\tspacer.classList.add(\"pin-spacer\");\n\t\t\t\tid && spacer.classList.add(\"pin-spacer-\" + id);\n\t\t\t\tpinCache.pinState = pinOriginalState = _getState(pin);\n\t\t\t} else {\n\t\t\t\tpinOriginalState = pinCache.pinState;\n\t\t\t}\n\t\t\tvars.force3D !== false && gsap.set(pin, {force3D: true});\n\t\t\tself.spacer = spacer = pinCache.spacer;\n\t\t\tcs = _getComputedStyle(pin);\n\t\t\tspacingStart = cs[pinSpacing + direction.os2];\n\t\t\tpinGetter = gsap.getProperty(pin);\n\t\t\tpinSetter = gsap.quickSetter(pin, direction.a, _px);\n\t\t\t// pin.firstChild && !_maxScroll(pin, direction) && (pin.style.overflow = \"hidden\"); // protects from collapsing margins, but can have unintended consequences as demonstrated here: https://codepen.io/GreenSock/pen/1e42c7a73bfa409d2cf1e184e7a4248d so it was removed in favor of just telling people to set up their CSS to avoid the collapsing margins (overflow: hidden | auto is just one option. Another is border-top: 1px solid transparent).\n\t\t\t_swapPinIn(pin, spacer, cs);\n\t\t\tpinState = _getState(pin);\n\t\t}\n\t\tif (markers) {\n\t\t\tmarkerVars = _isObject(markers) ? _setDefaults(markers, _markerDefaults) : _markerDefaults;\n\t\t\tmarkerStartTrigger = _createMarker(\"scroller-start\", id, scroller, direction, markerVars, 0);\n\t\t\tmarkerEndTrigger = _createMarker(\"scroller-end\", id, scroller, direction, markerVars, 0, markerStartTrigger);\n\t\t\toffset = markerStartTrigger[\"offset\" + direction.op.d2];\n\t\t\tlet content = _getTarget(_getProxyProp(scroller, \"content\") || scroller);\n\t\t\tmarkerStart = this.markerStart = _createMarker(\"start\", id, content, direction, markerVars, offset, 0, containerAnimation);\n\t\t\tmarkerEnd = this.markerEnd = _createMarker(\"end\", id, content, direction, markerVars, offset, 0, containerAnimation);\n\t\t\tcontainerAnimation && (caMarkerSetter = gsap.quickSetter([markerStart, markerEnd], direction.a, _px));\n\t\t\tif ((!useFixedPosition && !(_proxies.length && _getProxyProp(scroller, \"fixedMarkers\") === true))) {\n\t\t\t\t_makePositionable(isViewport ? _body : scroller);\n\t\t\t\tgsap.set([markerStartTrigger, markerEndTrigger], {force3D: true});\n\t\t\t\tmarkerStartSetter = gsap.quickSetter(markerStartTrigger, direction.a, _px);\n\t\t\t\tmarkerEndSetter = gsap.quickSetter(markerEndTrigger, direction.a, _px);\n\t\t\t}\n\t\t}\n\n\t\tif (containerAnimation) {\n\t\t\tlet oldOnUpdate = containerAnimation.vars.onUpdate,\n\t\t\t\toldParams = containerAnimation.vars.onUpdateParams;\n\t\t\tcontainerAnimation.eventCallback(\"onUpdate\", () => {\n\t\t\t\tself.update(0, 0, 1);\n\t\t\t\toldOnUpdate && oldOnUpdate.apply(containerAnimation, oldParams || []);\n\t\t\t});\n\t\t}\n\n\t\tself.previous = () => _triggers[_triggers.indexOf(self) - 1];\n\t\tself.next = () => _triggers[_triggers.indexOf(self) + 1];\n\n\t\tself.revert = (revert, temp) => {\n\t\t\tif (!temp) { return self.kill(true); } // for compatibility with gsap.context() and gsap.matchMedia() which call revert()\n\t\t\tlet r = revert !== false || !self.enabled,\n\t\t\t\tprevRefreshing = _refreshing;\n\t\t\tif (r !== self.isReverted) {\n\t\t\t\tif (r) {\n\t\t\t\t\tprevScroll = Math.max(scrollFunc(), self.scroll.rec || 0); // record the scroll so we can revert later (repositioning/pinning things can affect scroll position). In the static refresh() method, we first record all the scroll positions as a reference.\n\t\t\t\t\tprevProgress = self.progress;\n\t\t\t\t\tprevAnimProgress = animation && animation.progress();\n\t\t\t\t}\n\t\t\t\tmarkerStart && [markerStart, markerEnd, markerStartTrigger, markerEndTrigger].forEach(m => m.style.display = r ? \"none\" : \"block\");\n\t\t\t\tif (r) {\n\t\t\t\t\t_refreshing = self;\n\t\t\t\t\tself.update(r); // make sure the pin is back in its original position so that all the measurements are correct. do this BEFORE swapping the pin out\n\t\t\t\t}\n\t\t\t\tif (pin && (!pinReparent || !self.isActive)) {\n\t\t\t\t\tif (r) {\n\t\t\t\t\t\t_swapPinOut(pin, spacer, pinOriginalState);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t_swapPinIn(pin, spacer, _getComputedStyle(pin), spacerState);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tr || self.update(r); // when we're restoring, the update should run AFTER swapping the pin into its pin-spacer.\n\t\t\t\t_refreshing = prevRefreshing; // restore. We set it to true during the update() so that things fire properly in there.\n\t\t\t\tself.isReverted = r;\n\t\t\t}\n\t\t}\n\n\t\tself.refresh = (soft, force, position, pinOffset) => { // position is typically only defined if it's coming from setPositions() - it's a way to skip the normal parsing. pinOffset is also only from setPositions() and is mostly related to fancy stuff we need to do in ScrollSmoother with effects\n\t\t\tif ((_refreshing || !self.enabled) && !force) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (pin && soft && _lastScrollTime) {\n\t\t\t\t_addListener(ScrollTrigger, \"scrollEnd\", _softRefresh);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t!_refreshingAll && onRefreshInit && onRefreshInit(self);\n\t\t\t_refreshing = self;\n\t\t\tif (tweenTo.tween && !position) { // we skip this if a position is passed in because typically that's from .setPositions() and it's best to allow in-progress snapping to continue.\n\t\t\t\ttweenTo.tween.kill();\n\t\t\t\ttweenTo.tween = 0;\n\t\t\t}\n\t\t\tscrubTween && scrubTween.pause();\n\t\t\tinvalidateOnRefresh && animation && animation.revert({kill: false}).invalidate();\n\t\t\tself.isReverted || self.revert(true, true);\n\t\t\tself._subPinOffset = false; // we'll set this to true in the sub-pins if we find any\n\t\t\tlet size = getScrollerSize(),\n\t\t\t\tscrollerBounds = getScrollerOffsets(),\n\t\t\t\tmax = containerAnimation ? containerAnimation.duration() : _maxScroll(scroller, direction),\n\t\t\t\tisFirstRefresh = change <= 0.01,\n\t\t\t\toffset = 0,\n\t\t\t\totherPinOffset = pinOffset || 0,\n\t\t\t\tparsedEnd = _isObject(position) ? position.end : vars.end,\n\t\t\t\tparsedEndTrigger = vars.endTrigger || trigger,\n\t\t\t\tparsedStart = _isObject(position) ? position.start : (vars.start || (vars.start === 0 || !trigger ? 0 : (pin ? \"0 0\" : \"0 100%\"))),\n\t\t\t\tpinnedContainer = self.pinnedContainer = vars.pinnedContainer && _getTarget(vars.pinnedContainer, self),\n\t\t\t\ttriggerIndex = (trigger && Math.max(0, _triggers.indexOf(self))) || 0,\n\t\t\t\ti = triggerIndex,\n\t\t\t\tcs, bounds, scroll, isVertical, override, curTrigger, curPin, oppositeScroll, initted, revertedPins, forcedOverflow, markerStartOffset, markerEndOffset;\n\t\t\tif (markers && _isObject(position)) { // if we alter the start/end positions with .setPositions(), it generally feeds in absolute NUMBERS which don't convey information about where to line up the markers, so to keep it intuitive, we record how far the trigger positions shift after applying the new numbers and then offset by that much in the opposite direction. We do the same to the associated trigger markers too of course.\n\t\t\t\tmarkerStartOffset = gsap.getProperty(markerStartTrigger, direction.p);\n\t\t\t\tmarkerEndOffset = gsap.getProperty(markerEndTrigger, direction.p);\n\t\t\t}\n\t\t\twhile (i-- > 0) { // user might try to pin the same element more than once, so we must find any prior triggers with the same pin, revert them, and determine how long they're pinning so that we can offset things appropriately. Make sure we revert from last to first so that things \"rewind\" properly.\n\t\t\t\tcurTrigger = _triggers[i];\n\t\t\t\tcurTrigger.end || curTrigger.refresh(0, 1) || (_refreshing = self); // if it's a timeline-based trigger that hasn't been fully initialized yet because it's waiting for 1 tick, just force the refresh() here, otherwise if it contains a pin that's supposed to affect other ScrollTriggers further down the page, they won't be adjusted properly.\n\t\t\t\tcurPin = curTrigger.pin;\n\t\t\t\tif (curPin && (curPin === trigger || curPin === pin || curPin === pinnedContainer) && !curTrigger.isReverted) {\n\t\t\t\t\trevertedPins || (revertedPins = []);\n\t\t\t\t\trevertedPins.unshift(curTrigger); // we'll revert from first to last to make sure things reach their end state properly\n\t\t\t\t\tcurTrigger.revert(true, true);\n\t\t\t\t}\n\t\t\t\tif (curTrigger !== _triggers[i]) { // in case it got removed.\n\t\t\t\t\ttriggerIndex--;\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t_isFunction(parsedStart) && (parsedStart = parsedStart(self));\n\t\t\tparsedStart = _parseClamp(parsedStart, \"start\", self);\n\t\t\tstart = _parsePosition(parsedStart, trigger, size, direction, scrollFunc(), markerStart, markerStartTrigger, self, scrollerBounds, borderWidth, useFixedPosition, max, containerAnimation, self._startClamp && \"_startClamp\") || (pin ? -0.001 : 0);\n\t\t\t_isFunction(parsedEnd) && (parsedEnd = parsedEnd(self));\n\t\t\tif (_isString(parsedEnd) && !parsedEnd.indexOf(\"+=\")) {\n\t\t\t\tif (~parsedEnd.indexOf(\" \")) {\n\t\t\t\t\tparsedEnd = (_isString(parsedStart) ? parsedStart.split(\" \")[0] : \"\") + parsedEnd;\n\t\t\t\t} else {\n\t\t\t\t\toffset = _offsetToPx(parsedEnd.substr(2), size);\n\t\t\t\t\tparsedEnd = _isString(parsedStart) ? parsedStart : (containerAnimation ? gsap.utils.mapRange(0, containerAnimation.duration(), containerAnimation.scrollTrigger.start, containerAnimation.scrollTrigger.end, start) : start) + offset; // _parsePosition won't factor in the offset if the start is a number, so do it here.\n\t\t\t\t\tparsedEndTrigger = trigger;\n\t\t\t\t}\n\t\t\t}\n\t\t\tparsedEnd = _parseClamp(parsedEnd, \"end\", self);\n\t\t\tend = Math.max(start, _parsePosition(parsedEnd || (parsedEndTrigger ? \"100% 0\" : max), parsedEndTrigger, size, direction, scrollFunc() + offset, markerEnd, markerEndTrigger, self, scrollerBounds, borderWidth, useFixedPosition, max, containerAnimation, self._endClamp && \"_endClamp\")) || -0.001;\n\n\t\t\toffset = 0;\n\t\t\ti = triggerIndex;\n\t\t\twhile (i--) {\n\t\t\t\tcurTrigger = _triggers[i];\n\t\t\t\tcurPin = curTrigger.pin;\n\t\t\t\tif (curPin && curTrigger.start - curTrigger._pinPush <= start && !containerAnimation && curTrigger.end > 0) {\n\t\t\t\t\tcs = curTrigger.end - (self._startClamp ? Math.max(0, curTrigger.start) : curTrigger.start);\n\t\t\t\t\tif (((curPin === trigger && curTrigger.start - curTrigger._pinPush < start) || curPin === pinnedContainer) && isNaN(parsedStart)) { // numeric start values shouldn't be offset at all - treat them as absolute\n\t\t\t\t\t\toffset += cs * (1 - curTrigger.progress);\n\t\t\t\t\t}\n\t\t\t\t\tcurPin === pin && (otherPinOffset += cs);\n\t\t\t\t}\n\t\t\t}\n\t\t\tstart += offset;\n\t\t\tend += offset;\n\t\t\tself._startClamp && (self._startClamp += offset);\n\n\t\t\tif (self._endClamp && !_refreshingAll) {\n\t\t\t\tself._endClamp = end || -0.001;\n\t\t\t\tend = Math.min(end, _maxScroll(scroller, direction));\n\t\t\t}\n\t\t\tchange = (end - start) || ((start -= 0.01) && 0.001);\n\n\t\t\tif (isFirstRefresh) { // on the very first refresh(), the prevProgress couldn't have been accurate yet because the start/end were never calculated, so we set it here. Before 3.11.5, it could lead to an inaccurate scroll position restoration with snapping.\n\t\t\t\tprevProgress = gsap.utils.clamp(0, 1, gsap.utils.normalize(start, end, prevScroll));\n\t\t\t}\n\t\t\tself._pinPush = otherPinOffset;\n\t\t\tif (markerStart && offset) { // offset the markers if necessary\n\t\t\t\tcs = {};\n\t\t\t\tcs[direction.a] = \"+=\" + offset;\n\t\t\t\tpinnedContainer && (cs[direction.p] = \"-=\" + scrollFunc());\n\t\t\t\tgsap.set([markerStart, markerEnd], cs);\n\t\t\t}\n\n\t\t\tif (pin && !(_clampingMax && self.end >= _maxScroll(scroller, direction))) {\n\t\t\t\tcs = _getComputedStyle(pin);\n\t\t\t\tisVertical = direction === _vertical;\n\t\t\t\tscroll = scrollFunc(); // recalculate because the triggers can affect the scroll\n\t\t\t\tpinStart = parseFloat(pinGetter(direction.a)) + otherPinOffset;\n\t\t\t\tif (!max && end > 1) { // makes sure the scroller has a scrollbar, otherwise if something has width: 100%, for example, it would be too big (exclude the scrollbar). See https://gsap.com/forums/topic/25182-scrolltrigger-width-of-page-increase-where-markers-are-set-to-false/\n\t\t\t\t\tforcedOverflow = (isViewport ? (_doc.scrollingElement || _docEl) : scroller).style;\n\t\t\t\t\tforcedOverflow = {style: forcedOverflow, value: forcedOverflow[\"overflow\" + direction.a.toUpperCase()]};\n\t\t\t\t\tif (isViewport && _getComputedStyle(_body)[\"overflow\" + direction.a.toUpperCase()] !== \"scroll\") { // avoid an extra scrollbar if BOTH and have overflow set to \"scroll\"\n\t\t\t\t\t\tforcedOverflow.style[\"overflow\" + direction.a.toUpperCase()] = \"scroll\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_swapPinIn(pin, spacer, cs);\n\t\t\t\tpinState = _getState(pin);\n\t\t\t\t// transforms will interfere with the top/left/right/bottom placement, so remove them temporarily. getBoundingClientRect() factors in transforms.\n\t\t\t\tbounds = _getBounds(pin, true);\n\t\t\t\toppositeScroll = useFixedPosition && _getScrollFunc(scroller, isVertical ? _horizontal : _vertical)();\n\t\t\t\tif (pinSpacing) {\n\t\t\t\t\tspacerState = [pinSpacing + direction.os2, change + otherPinOffset + _px];\n\t\t\t\t\tspacerState.t = spacer;\n\t\t\t\t\ti = (pinSpacing === _padding) ? _getSize(pin, direction) + change + otherPinOffset : 0;\n\t\t\t\t\tif (i) {\n\t\t\t\t\t\tspacerState.push(direction.d, i + _px); // for box-sizing: border-box (must include padding).\n\t\t\t\t\t\tspacer.style.flexBasis !== \"auto\" && (spacer.style.flexBasis = i + _px);\n\t\t\t\t\t}\n\t\t\t\t\t_setState(spacerState);\n\t\t\t\t\tif (pinnedContainer) { // in ScrollTrigger.refresh(), we need to re-evaluate the pinContainer's size because this pinSpacing may stretch it out, but we can't just add the exact distance because depending on layout, it may not push things down or it may only do so partially.\n\t\t\t\t\t\t_triggers.forEach(t => {\n\t\t\t\t\t\t\tif (t.pin === pinnedContainer && t.vars.pinSpacing !== false) {\n\t\t\t\t\t\t\t\tt._subPinOffset = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tuseFixedPosition && scrollFunc(prevScroll);\n\t\t\t\t} else {\n\t\t\t\t\ti = _getSize(pin, direction);\n\t\t\t\t\ti && spacer.style.flexBasis !== \"auto\" && (spacer.style.flexBasis = i + _px);\n\t\t\t\t}\n\t\t\t\tif (useFixedPosition) {\n\t\t\t\t\toverride = {\n\t\t\t\t\t\ttop: (bounds.top + (isVertical ? scroll - start : oppositeScroll)) + _px,\n\t\t\t\t\t\tleft: (bounds.left + (isVertical ? oppositeScroll : scroll - start)) + _px,\n\t\t\t\t\t\tboxSizing: \"border-box\",\n\t\t\t\t\t\tposition: \"fixed\"\n\t\t\t\t\t};\n\t\t\t\t\toverride[_width] = override[\"max\" + _Width] = Math.ceil(bounds.width) + _px;\n\t\t\t\t\toverride[_height] = override[\"max\" + _Height] = Math.ceil(bounds.height) + _px;\n\t\t\t\t\toverride[_margin] = override[_margin + _Top] = override[_margin + _Right] = override[_margin + _Bottom] = override[_margin + _Left] = \"0\";\n\t\t\t\t\toverride[_padding] = cs[_padding];\n\t\t\t\t\toverride[_padding + _Top] = cs[_padding + _Top];\n\t\t\t\t\toverride[_padding + _Right] = cs[_padding + _Right];\n\t\t\t\t\toverride[_padding + _Bottom] = cs[_padding + _Bottom];\n\t\t\t\t\toverride[_padding + _Left] = cs[_padding + _Left];\n\t\t\t\t\tpinActiveState = _copyState(pinOriginalState, override, pinReparent);\n\t\t\t\t\t_refreshingAll && scrollFunc(0);\n\t\t\t\t}\n\t\t\t\tif (animation) { // the animation might be affecting the transform, so we must jump to the end, check the value, and compensate accordingly. Otherwise, when it becomes unpinned, the pinSetter() will get set to a value that doesn't include whatever the animation did.\n\t\t\t\t\tinitted = animation._initted; // if not, we must invalidate() after this step, otherwise it could lock in starting values prematurely.\n\t\t\t\t\t_suppressOverwrites(1);\n\t\t\t\t\tanimation.render(animation.duration(), true, true);\n\t\t\t\t\tpinChange = pinGetter(direction.a) - pinStart + change + otherPinOffset;\n\t\t\t\t\tpinMoves = Math.abs(change - pinChange) > 1;\n\t\t\t\t\tuseFixedPosition && pinMoves && pinActiveState.splice(pinActiveState.length - 2, 2); // transform is the last property/value set in the state Array. Since the animation is controlling that, we should omit it.\n\t\t\t\t\tanimation.render(0, true, true);\n\t\t\t\t\tinitted || animation.invalidate(true);\n\t\t\t\t\tanimation.parent || animation.totalTime(animation.totalTime()); // if, for example, a toggleAction called play() and then refresh() happens and when we render(1) above, it would cause the animation to complete and get removed from its parent, so this makes sure it gets put back in.\n\t\t\t\t\t_suppressOverwrites(0);\n\t\t\t\t} else {\n\t\t\t\t\tpinChange = change\n\t\t\t\t}\n\t\t\t\tforcedOverflow && (forcedOverflow.value ? (forcedOverflow.style[\"overflow\" + direction.a.toUpperCase()] = forcedOverflow.value) : forcedOverflow.style.removeProperty(\"overflow-\" + direction.a));\n\t\t\t} else if (trigger && scrollFunc() && !containerAnimation) { // it may be INSIDE a pinned element, so walk up the tree and look for any elements with _pinOffset to compensate because anything with pinSpacing that's already scrolled would throw off the measurements in getBoundingClientRect()\n\t\t\t\tbounds = trigger.parentNode;\n\t\t\t\twhile (bounds && bounds !== _body) {\n\t\t\t\t\tif (bounds._pinOffset) {\n\t\t\t\t\t\tstart -= bounds._pinOffset;\n\t\t\t\t\t\tend -= bounds._pinOffset;\n\t\t\t\t\t}\n\t\t\t\t\tbounds = bounds.parentNode;\n\t\t\t\t}\n\t\t\t}\n\t\t\trevertedPins && revertedPins.forEach(t => t.revert(false, true));\n\t\t\tself.start = start;\n\t\t\tself.end = end;\n\t\t\tscroll1 = scroll2 = _refreshingAll ? prevScroll : scrollFunc(); // reset velocity\n\t\t\tif (!containerAnimation && !_refreshingAll) {\n\t\t\t\tscroll1 < prevScroll && scrollFunc(prevScroll);\n\t\t\t\tself.scroll.rec = 0;\n\t\t\t}\n\t\t\tself.revert(false, true);\n\t\t\tlastRefresh = _getTime();\n\t\t\tif (snapDelayedCall) {\n\t\t\t\tlastSnap = -1; // just so snapping gets re-enabled, clear out any recorded last value\n\t\t\t\t// self.isActive && scrollFunc(start + change * prevProgress); // previously this line was here to ensure that when snapping kicks in, it's from the previous progress but in some cases that's not desirable, like an all-page ScrollTrigger when new content gets added to the page, that'd totally change the progress.\n\t\t\t\tsnapDelayedCall.restart(true);\n\t\t\t}\n\t\t\t_refreshing = 0;\n\t\t\tanimation && isToggle && (animation._initted || prevAnimProgress) && animation.progress() !== prevAnimProgress && animation.progress(prevAnimProgress || 0, true).render(animation.time(), true, true); // must force a re-render because if saveStyles() was used on the target(s), the styles could have been wiped out during the refresh().\n\t\t\tif (isFirstRefresh || prevProgress !== self.progress || containerAnimation || invalidateOnRefresh || (animation && !animation._initted)) { // ensures that the direction is set properly (when refreshing, progress is set back to 0 initially, then back again to wherever it needs to be) and that callbacks are triggered.\n\t\t\t\tanimation && !isToggle && animation.totalProgress(containerAnimation && start < -0.001 && !prevProgress ? gsap.utils.normalize(start, end, 0) : prevProgress, true); // to avoid issues where animation callbacks like onStart aren't triggered.\n\t\t\t\tself.progress = isFirstRefresh || ((scroll1 - start) / change === prevProgress) ? 0 : prevProgress;\n\t\t\t}\n\t\t\tpin && pinSpacing && (spacer._pinOffset = Math.round(self.progress * pinChange));\n\t\t\tscrubTween && scrubTween.invalidate();\n\n\t\t\tif (!isNaN(markerStartOffset)) { // numbers were passed in for the position which are absolute, so instead of just putting the markers at the very bottom of the viewport, we figure out how far they shifted down (it's safe to assume they were originally positioned in closer relation to the trigger element with values like \"top\", \"center\", a percentage or whatever, so we offset that much in the opposite direction to basically revert them to the relative position thy were at previously.\n\t\t\t\tmarkerStartOffset -= gsap.getProperty(markerStartTrigger, direction.p);\n\t\t\t\tmarkerEndOffset -= gsap.getProperty(markerEndTrigger, direction.p);\n\t\t\t\t_shiftMarker(markerStartTrigger, direction, markerStartOffset);\n\t\t\t\t_shiftMarker(markerStart, direction, markerStartOffset - (pinOffset || 0));\n\t\t\t\t_shiftMarker(markerEndTrigger, direction, markerEndOffset);\n\t\t\t\t_shiftMarker(markerEnd, direction, markerEndOffset - (pinOffset || 0));\n\t\t\t}\n\n\t\t\tisFirstRefresh && !_refreshingAll && self.update(); // edge case - when you reload a page when it's already scrolled down, some browsers fire a \"scroll\" event before DOMContentLoaded, triggering an updateAll(). If we don't update the self.progress as part of refresh(), then when it happens next, it may record prevProgress as 0 when it really shouldn't, potentially causing a callback in an animation to fire again.\n\n\t\t\tif (onRefresh && !_refreshingAll && !executingOnRefresh) { // when refreshing all, we do extra work to correct pinnedContainer sizes and ensure things don't exceed the maxScroll, so we should do all the refreshes at the end after all that work so that the start/end values are corrected.\n\t\t\t\texecutingOnRefresh = true;\n\t\t\t\tonRefresh(self);\n\t\t\t\texecutingOnRefresh = false;\n\t\t\t}\n\t\t};\n\n\t\tself.getVelocity = () => ((scrollFunc() - scroll2) / (_getTime() - _time2) * 1000) || 0;\n\n\t\tself.endAnimation = () => {\n\t\t\t_endAnimation(self.callbackAnimation);\n\t\t\tif (animation) {\n\t\t\t\tscrubTween ? scrubTween.progress(1) : (!animation.paused() ? _endAnimation(animation, animation.reversed()) : isToggle || _endAnimation(animation, self.direction < 0, 1));\n\t\t\t}\n\t\t};\n\n\t\tself.labelToScroll = label => animation && animation.labels && ((start || self.refresh() || start) + (animation.labels[label] / animation.duration()) * change) || 0;\n\n\t\tself.getTrailing = name => {\n\t\t\tlet i = _triggers.indexOf(self),\n\t\t\t\ta = self.direction > 0 ? _triggers.slice(0, i).reverse() : _triggers.slice(i+1);\n\t\t\treturn (_isString(name) ? a.filter(t => t.vars.preventOverlaps === name) : a).filter(t => self.direction > 0 ? t.end <= start : t.start >= end);\n\t\t};\n\n\n\t\tself.update = (reset, recordVelocity, forceFake) => {\n\t\t\tif (containerAnimation && !forceFake && !reset) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlet scroll = _refreshingAll === true ? prevScroll : self.scroll(),\n\t\t\t\tp = reset ? 0 : (scroll - start) / change,\n\t\t\t\tclipped = p < 0 ? 0 : p > 1 ? 1 : p || 0,\n\t\t\t\tprevProgress = self.progress,\n\t\t\t\tisActive, wasActive, toggleState, action, stateChanged, toggled, isAtMax, isTakingAction;\n\t\t\tif (recordVelocity) {\n\t\t\t\tscroll2 = scroll1;\n\t\t\t\tscroll1 = containerAnimation ? scrollFunc() : scroll;\n\t\t\t\tif (snap) {\n\t\t\t\t\tsnap2 = snap1;\n\t\t\t\t\tsnap1 = animation && !isToggle ? animation.totalProgress() : clipped;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// anticipate the pinning a few ticks ahead of time based on velocity to avoid a visual glitch due to the fact that most browsers do scrolling on a separate thread (not synced with requestAnimationFrame).\n\t\t\tif (anticipatePin && pin && !_refreshing && !_startup && _lastScrollTime) {\n\t\t\t\tif (!clipped && start < scroll + ((scroll - scroll2) / (_getTime() - _time2)) * anticipatePin) {\n\t\t\t\t\tclipped = 0.0001;\n\t\t\t\t} else if (clipped === 1 && end > scroll + ((scroll - scroll2) / (_getTime() - _time2)) * anticipatePin) {\n\t\t\t\t\tclipped = 0.9999;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (clipped !== prevProgress && self.enabled) {\n\t\t\t\tisActive = self.isActive = !!clipped && clipped < 1;\n\t\t\t\twasActive = !!prevProgress && prevProgress < 1;\n\t\t\t\ttoggled = isActive !== wasActive;\n\t\t\t\tstateChanged = toggled || !!clipped !== !!prevProgress; // could go from start all the way to end, thus it didn't toggle but it did change state in a sense (may need to fire a callback)\n\t\t\t\tself.direction = clipped > prevProgress ? 1 : -1;\n\t\t\t\tself.progress = clipped;\n\n\t\t\t\tif (stateChanged && !_refreshing) {\n\t\t\t\t\ttoggleState = clipped && !prevProgress ? 0 : clipped === 1 ? 1 : prevProgress === 1 ? 2 : 3; // 0 = enter, 1 = leave, 2 = enterBack, 3 = leaveBack (we prioritize the FIRST encounter, thus if you scroll really fast past the onEnter and onLeave in one tick, it'd prioritize onEnter.\n\t\t\t\t\tif (isToggle) {\n\t\t\t\t\t\taction = (!toggled && toggleActions[toggleState + 1] !== \"none\" && toggleActions[toggleState + 1]) || toggleActions[toggleState]; // if it didn't toggle, that means it shot right past and since we prioritize the \"enter\" action, we should switch to the \"leave\" in this case (but only if one is defined)\n\t\t\t\t\t\tisTakingAction = animation && (action === \"complete\" || action === \"reset\" || action in animation);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tpreventOverlaps && (toggled || isTakingAction) && (isTakingAction || scrub || !animation) && (_isFunction(preventOverlaps) ? preventOverlaps(self) : self.getTrailing(preventOverlaps).forEach(t => t.endAnimation()));\n\n\t\t\t\tif (!isToggle) {\n\t\t\t\t\tif (scrubTween && !_refreshing && !_startup) {\n\t\t\t\t\t\t(scrubTween._dp._time - scrubTween._start !== scrubTween._time) && scrubTween.render(scrubTween._dp._time - scrubTween._start); // if there's a scrub on both the container animation and this one (or a ScrollSmoother), the update order would cause this one not to have rendered yet, so it wouldn't make any progress before we .restart() it heading toward the new progress so it'd appear stuck thus we force a render here.\n\t\t\t\t\t\tif (scrubTween.resetTo) {\n\t\t\t\t\t\t\tscrubTween.resetTo(\"totalProgress\", clipped, animation._tTime / animation._tDur);\n\t\t\t\t\t\t} else { // legacy support (courtesy), before 3.10.0\n\t\t\t\t\t\t\tscrubTween.vars.totalProgress = clipped;\n\t\t\t\t\t\t\tscrubTween.invalidate().restart();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (animation) {\n\t\t\t\t\t\tanimation.totalProgress(clipped, !!(_refreshing && (lastRefresh || reset)));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (pin) {\n\t\t\t\t\treset && pinSpacing && (spacer.style[pinSpacing + direction.os2] = spacingStart);\n\t\t\t\t\tif (!useFixedPosition) {\n\t\t\t\t\t\tpinSetter(_round(pinStart + pinChange * clipped));\n\t\t\t\t\t} else if (stateChanged) {\n\t\t\t\t\t\tisAtMax = !reset && clipped > prevProgress && end + 1 > scroll && scroll + 1 >= _maxScroll(scroller, direction); // if it's at the VERY end of the page, don't switch away from position: fixed because it's pointless and it could cause a brief flash when the user scrolls back up (when it gets pinned again)\n\t\t\t\t\t\tif (pinReparent) {\n\t\t\t\t\t\t\tif (!reset && (isActive || isAtMax)) {\n\t\t\t\t\t\t\t\tlet bounds = _getBounds(pin, true),\n\t\t\t\t\t\t\t\t\toffset = scroll - start;\n\t\t\t\t\t\t\t\t_reparent(pin, _body, (bounds.top + (direction === _vertical ? offset : 0)) + _px, (bounds.left + (direction === _vertical ? 0 : offset)) + _px);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t_reparent(pin, spacer);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t_setState(isActive || isAtMax ? pinActiveState : pinState);\n\t\t\t\t\t\t(pinMoves && clipped < 1 && isActive) || pinSetter(pinStart + (clipped === 1 && !isAtMax ? pinChange : 0));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsnap && !tweenTo.tween && !_refreshing && !_startup && snapDelayedCall.restart(true);\n\t\t\t\ttoggleClass && (toggled || (once && clipped && (clipped < 1 || !_limitCallbacks))) && _toArray(toggleClass.targets).forEach(el => el.classList[isActive || once ? \"add\" : \"remove\"](toggleClass.className)); // classes could affect positioning, so do it even if reset or refreshing is true.\n\t\t\t\tonUpdate && !isToggle && !reset && onUpdate(self);\n\t\t\t\tif (stateChanged && !_refreshing) {\n\t\t\t\t\tif (isToggle) {\n\t\t\t\t\t\tif (isTakingAction) {\n\t\t\t\t\t\t\tif (action === \"complete\") {\n\t\t\t\t\t\t\t\tanimation.pause().totalProgress(1);\n\t\t\t\t\t\t\t} else if (action === \"reset\") {\n\t\t\t\t\t\t\t\tanimation.restart(true).pause();\n\t\t\t\t\t\t\t} else if (action === \"restart\") {\n\t\t\t\t\t\t\t\tanimation.restart(true);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tanimation[action]();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tonUpdate && onUpdate(self);\n\t\t\t\t\t}\n\t\t\t\t\tif (toggled || !_limitCallbacks) { // on startup, the page could be scrolled and we don't want to fire callbacks that didn't toggle. For example onEnter shouldn't fire if the ScrollTrigger isn't actually entered.\n\t\t\t\t\t\tonToggle && toggled && _callback(self, onToggle);\n\t\t\t\t\t\tcallbacks[toggleState] && _callback(self, callbacks[toggleState]);\n\t\t\t\t\t\tonce && (clipped === 1 ? self.kill(false, 1) : (callbacks[toggleState] = 0)); // a callback shouldn't be called again if once is true.\n\t\t\t\t\t\tif (!toggled) { // it's possible to go completely past, like from before the start to after the end (or vice-versa) in which case BOTH callbacks should be fired in that order\n\t\t\t\t\t\t\ttoggleState = clipped === 1 ? 1 : 3;\n\t\t\t\t\t\t\tcallbacks[toggleState] && _callback(self, callbacks[toggleState]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (fastScrollEnd && !isActive && Math.abs(self.getVelocity()) > (_isNumber(fastScrollEnd) ? fastScrollEnd : 2500)) {\n\t\t\t\t\t\t_endAnimation(self.callbackAnimation);\n\t\t\t\t\t\tscrubTween ? scrubTween.progress(1) : _endAnimation(animation, action === \"reverse\" ? 1 : !clipped, 1);\n\t\t\t\t\t}\n\t\t\t\t} else if (isToggle && onUpdate && !_refreshing) {\n\t\t\t\t\tonUpdate(self);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// update absolutely-positioned markers (only if the scroller isn't the viewport)\n\t\t\tif (markerEndSetter) {\n\t\t\t\tlet n = containerAnimation ? scroll / containerAnimation.duration() * (containerAnimation._caScrollDist || 0) : scroll;\n\t\t\t\tmarkerStartSetter(n + (markerStartTrigger._isFlipped ? 1 : 0));\n\t\t\t\tmarkerEndSetter(n);\n\t\t\t}\n\t\t\tcaMarkerSetter && caMarkerSetter(-scroll / containerAnimation.duration() * (containerAnimation._caScrollDist || 0));\n\t\t};\n\n\t\tself.enable = (reset, refresh) => {\n\t\t\tif (!self.enabled) {\n\t\t\t\tself.enabled = true;\n\t\t\t\t_addListener(scroller, \"resize\", _onResize);\n\t\t\t\tisViewport || _addListener(scroller, \"scroll\", _onScroll);\n\t\t\t\tonRefreshInit && _addListener(ScrollTrigger, \"refreshInit\", onRefreshInit);\n\t\t\t\tif (reset !== false) {\n\t\t\t\t\tself.progress = prevProgress = 0;\n\t\t\t\t\tscroll1 = scroll2 = lastSnap = scrollFunc();\n\t\t\t\t}\n\t\t\t\trefresh !== false && self.refresh();\n\t\t\t}\n\t\t};\n\n\t\tself.getTween = snap => snap && tweenTo ? tweenTo.tween : scrubTween;\n\n\t\tself.setPositions = (newStart, newEnd, keepClamp, pinOffset) => { // doesn't persist after refresh()! Intended to be a way to override values that were set during refresh(), like you could set it in onRefresh()\n\t\t\tif (containerAnimation) { // convert ratios into scroll positions. Remember, start/end values on ScrollTriggers that have a containerAnimation refer to the time (in seconds), NOT scroll positions.\n\t\t\t\tlet st = containerAnimation.scrollTrigger,\n\t\t\t\t\tduration = containerAnimation.duration(),\n\t\t\t\t\tchange = st.end - st.start;\n\t\t\t\tnewStart = st.start + change * newStart / duration;\n\t\t\t\tnewEnd = st.start + change * newEnd / duration;\n\t\t\t}\n\t\t\tself.refresh(false, false, {start: _keepClamp(newStart, keepClamp && !!self._startClamp), end: _keepClamp(newEnd, keepClamp && !!self._endClamp)}, pinOffset);\n\t\t\tself.update();\n\t\t};\n\n\t\tself.adjustPinSpacing = amount => {\n\t\t\tif (spacerState && amount) {\n\t\t\t\tlet i = spacerState.indexOf(direction.d) + 1;\n\t\t\t\tspacerState[i] = (parseFloat(spacerState[i]) + amount) + _px;\n\t\t\t\tspacerState[1] = (parseFloat(spacerState[1]) + amount) + _px;\n\t\t\t\t_setState(spacerState);\n\t\t\t}\n\t\t};\n\n\t\tself.disable = (reset, allowAnimation) => {\n\t\t\tif (self.enabled) {\n\t\t\t\treset !== false && self.revert(true, true);\n\t\t\t\tself.enabled = self.isActive = false;\n\t\t\t\tallowAnimation || (scrubTween && scrubTween.pause());\n\t\t\t\tprevScroll = 0;\n\t\t\t\tpinCache && (pinCache.uncache = 1);\n\t\t\t\tonRefreshInit && _removeListener(ScrollTrigger, \"refreshInit\", onRefreshInit);\n\t\t\t\tif (snapDelayedCall) {\n\t\t\t\t\tsnapDelayedCall.pause();\n\t\t\t\t\ttweenTo.tween && tweenTo.tween.kill() && (tweenTo.tween = 0);\n\t\t\t\t}\n\t\t\t\tif (!isViewport) {\n\t\t\t\t\tlet i = _triggers.length;\n\t\t\t\t\twhile (i--) {\n\t\t\t\t\t\tif (_triggers[i].scroller === scroller && _triggers[i] !== self) {\n\t\t\t\t\t\t\treturn; //don't remove the listeners if there are still other triggers referencing it.\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t_removeListener(scroller, \"resize\", _onResize);\n\t\t\t\t\tisViewport || _removeListener(scroller, \"scroll\", _onScroll);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tself.kill = (revert, allowAnimation) => {\n\t\t\tself.disable(revert, allowAnimation);\n\t\t\tscrubTween && !allowAnimation && scrubTween.kill();\n\t\t\tid && (delete _ids[id]);\n\t\t\tlet i = _triggers.indexOf(self);\n\t\t\ti >= 0 && _triggers.splice(i, 1);\n\t\t\ti === _i && _direction > 0 && _i--; // if we're in the middle of a refresh() or update(), splicing would cause skips in the index, so adjust...\n\n\t\t\t// if no other ScrollTrigger instances of the same scroller are found, wipe out any recorded scroll position. Otherwise, in a single page application, for example, it could maintain scroll position when it really shouldn't.\n\t\t\ti = 0;\n\t\t\t_triggers.forEach(t => t.scroller === self.scroller && (i = 1));\n\t\t\ti || _refreshingAll || (self.scroll.rec = 0);\n\n\t\t\tif (animation) {\n\t\t\t\tanimation.scrollTrigger = null;\n\t\t\t\trevert && animation.revert({kill: false});\n\t\t\t\tallowAnimation || animation.kill();\n\t\t\t}\n\t\t\tmarkerStart && [markerStart, markerEnd, markerStartTrigger, markerEndTrigger].forEach(m => m.parentNode && m.parentNode.removeChild(m));\n\t\t\t_primary === self && (_primary = 0);\n\t\t\tif (pin) {\n\t\t\t\tpinCache && (pinCache.uncache = 1);\n\t\t\t\ti = 0;\n\t\t\t\t_triggers.forEach(t => t.pin === pin && i++);\n\t\t\t\ti || (pinCache.spacer = 0); // if there aren't any more ScrollTriggers with the same pin, remove the spacer, otherwise it could be contaminated with old/stale values if the user re-creates a ScrollTrigger for the same element.\n\t\t\t}\n\t\t\tvars.onKill && vars.onKill(self);\n\t\t};\n\n\t\t_triggers.push(self);\n\t\tself.enable(false, false);\n\t\tcustomRevertReturn && customRevertReturn(self);\n\n\t\tif (animation && animation.add && !change) { // if the animation is a timeline, it may not have been populated yet, so it wouldn't render at the proper place on the first refresh(), thus we should schedule one for the next tick. If \"change\" is defined, we know it must be re-enabling, thus we can refresh() right away.\n\t\t\tlet updateFunc = self.update; // some browsers may fire a scroll event BEFORE a tick elapses and/or the DOMContentLoaded fires. So there's a chance update() will be called BEFORE a refresh() has happened on a Timeline-attached ScrollTrigger which means the start/end won't be calculated yet. We don't want to add conditional logic inside the update() method (like check to see if end is defined and if not, force a refresh()) because that's a function that gets hit a LOT (performance). So we swap out the real update() method for this one that'll re-attach it the first time it gets called and of course forces a refresh().\n\t\t\tself.update = () => {\n\t\t\t\tself.update = updateFunc;\n\t\t\t\t_scrollers.cache++; // otherwise a cached scroll position may get used in the refresh() in a very rare scenario, like if ScrollTriggers are created inside a DOMContentLoaded event and the queued requestAnimationFrame() fires beforehand. See https://gsap.com/community/forums/topic/41267-scrolltrigger-breaks-on-refresh-when-using-domcontentloaded/\n\t\t\t\tstart || end || self.refresh();\n\t\t\t};\n\t\t\tgsap.delayedCall(0.01, self.update);\n\t\t\tchange = 0.01;\n\t\t\tstart = end = 0;\n\t\t} else {\n\t\t\tself.refresh();\n\t\t}\n\t\tpin && _queueRefreshAll(); // pinning could affect the positions of other things, so make sure we queue a full refresh()\n\t}\n\n\n\tstatic register(core) {\n\t\tif (!_coreInitted) {\n\t\t\tgsap = core || _getGSAP();\n\t\t\t_windowExists() && window.document && ScrollTrigger.enable();\n\t\t\t_coreInitted = _enabled;\n\t\t}\n\t\treturn _coreInitted;\n\t}\n\n\tstatic defaults(config) {\n\t\tif (config) {\n\t\t\tfor (let p in config) {\n\t\t\t\t_defaults[p] = config[p];\n\t\t\t}\n\t\t}\n\t\treturn _defaults;\n\t}\n\n\tstatic disable(reset, kill) {\n\t\t_enabled = 0;\n\t\t_triggers.forEach(trigger => trigger[kill ? \"kill\" : \"disable\"](reset));\n\t\t_removeListener(_win, \"wheel\", _onScroll);\n\t\t_removeListener(_doc, \"scroll\", _onScroll);\n\t\tclearInterval(_syncInterval);\n\t\t_removeListener(_doc, \"touchcancel\", _passThrough);\n\t\t_removeListener(_body, \"touchstart\", _passThrough);\n\t\t_multiListener(_removeListener, _doc, \"pointerdown,touchstart,mousedown\", _pointerDownHandler);\n\t\t_multiListener(_removeListener, _doc, \"pointerup,touchend,mouseup\", _pointerUpHandler);\n\t\t_resizeDelay.kill();\n\t\t_iterateAutoRefresh(_removeListener);\n\t\tfor (let i = 0; i < _scrollers.length; i+=3) {\n\t\t\t_wheelListener(_removeListener, _scrollers[i], _scrollers[i+1]);\n\t\t\t_wheelListener(_removeListener, _scrollers[i], _scrollers[i+2]);\n\t\t}\n\t}\n\n\tstatic enable() {\n\t\t_win = window;\n\t\t_doc = document;\n\t\t_docEl = _doc.documentElement;\n\t\t_body = _doc.body;\n\t\tif (gsap) {\n\t\t\t_toArray = gsap.utils.toArray;\n\t\t\t_clamp = gsap.utils.clamp;\n\t\t\t_context = gsap.core.context || _passThrough;\n\t\t\t_suppressOverwrites = gsap.core.suppressOverwrites || _passThrough;\n\t\t\t_scrollRestoration = _win.history.scrollRestoration || \"auto\";\n\t\t\t_lastScroll = _win.pageYOffset || 0;\n\t\t\tgsap.core.globals(\"ScrollTrigger\", ScrollTrigger); // must register the global manually because in Internet Explorer, functions (classes) don't have a \"name\" property.\n\t\t\tif (_body) {\n\t\t\t\t_enabled = 1;\n\t\t\t\t_div100vh = document.createElement(\"div\"); // to solve mobile browser address bar show/hide resizing, we shouldn't rely on window.innerHeight. Instead, use a
with its height set to 100vh and measure that since that's what the scrolling is based on anyway and it's not affected by address bar showing/hiding.\n\t\t\t\t_div100vh.style.height = \"100vh\";\n\t\t\t\t_div100vh.style.position = \"absolute\";\n\t\t\t\t_refresh100vh();\n\t\t\t\t_rafBugFix();\n\t\t\t\tObserver.register(gsap);\n\t\t\t\t// isTouch is 0 if no touch, 1 if ONLY touch, and 2 if it can accommodate touch but also other types like mouse/pointer.\n\t\t\t\tScrollTrigger.isTouch = Observer.isTouch;\n\t\t\t\t_fixIOSBug = Observer.isTouch && /(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent); // since 2017, iOS has had a bug that causes event.clientX/Y to be inaccurate when a scroll occurs, thus we must alternate ignoring every other touchmove event to work around it. See https://bugs.webkit.org/show_bug.cgi?id=181954 and https://codepen.io/GreenSock/pen/ExbrPNa/087cef197dc35445a0951e8935c41503\n\t\t\t\t_ignoreMobileResize = Observer.isTouch === 1;\n\t\t\t\t_addListener(_win, \"wheel\", _onScroll); // mostly for 3rd party smooth scrolling libraries.\n\t\t\t\t_root = [_win, _doc, _docEl, _body];\n\t\t\t\tif (gsap.matchMedia) {\n\t\t\t\t\tScrollTrigger.matchMedia = vars => {\n\t\t\t\t\t\tlet mm = gsap.matchMedia(),\n\t\t\t\t\t\t\tp;\n\t\t\t\t\t\tfor (p in vars) {\n\t\t\t\t\t\t\tmm.add(p, vars[p]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn mm;\n\t\t\t\t\t};\n\t\t\t\t\tgsap.addEventListener(\"matchMediaInit\", () => _revertAll());\n\t\t\t\t\tgsap.addEventListener(\"matchMediaRevert\", () => _revertRecorded());\n\t\t\t\t\tgsap.addEventListener(\"matchMedia\", () => {\n\t\t\t\t\t\t_refreshAll(0, 1);\n\t\t\t\t\t\t_dispatch(\"matchMedia\");\n\t\t\t\t\t});\n\t\t\t\t\tgsap.matchMedia().add(\"(orientation: portrait)\", () => { // when orientation changes, we should take new base measurements for the ignoreMobileResize feature.\n\t\t\t\t\t\t_setBaseDimensions();\n\t\t\t\t\t\treturn _setBaseDimensions;\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tconsole.warn(\"Requires GSAP 3.11.0 or later\");\n\t\t\t\t}\n\t\t\t\t_setBaseDimensions();\n\t\t\t\t_addListener(_doc, \"scroll\", _onScroll); // some browsers (like Chrome), the window stops dispatching scroll events on the window if you scroll really fast, but it's consistent on the document!\n\t\t\t\tlet bodyHasStyle = _body.hasAttribute(\"style\"),\n\t\t\t\t\tbodyStyle = _body.style,\n\t\t\t\t\tborder = bodyStyle.borderTopStyle,\n\t\t\t\t\tAnimationProto = gsap.core.Animation.prototype,\n\t\t\t\t\tbounds, i;\n\t\t\t\tAnimationProto.revert || Object.defineProperty(AnimationProto, \"revert\", { value: function() { return this.time(-0.01, true); }}); // only for backwards compatibility (Animation.revert() was added after 3.10.4)\n\t\t\t\tbodyStyle.borderTopStyle = \"solid\"; // works around an issue where a margin of a child element could throw off the bounds of the _body, making it seem like there's a margin when there actually isn't. The border ensures that the bounds are accurate.\n\t\t\t\tbounds = _getBounds(_body);\n\t\t\t\t_vertical.m = Math.round(bounds.top + _vertical.sc()) || 0; // accommodate the offset of the caused by margins and/or padding\n\t\t\t\t_horizontal.m = Math.round(bounds.left + _horizontal.sc()) || 0;\n\t\t\t\tborder ? (bodyStyle.borderTopStyle = border) : bodyStyle.removeProperty(\"border-top-style\");\n\t\t\t\tif (!bodyHasStyle) { // SSR frameworks like Next.js complain if this attribute gets added.\n\t\t\t\t\t_body.setAttribute(\"style\", \"\"); // it's not enough to just removeAttribute() - we must first set it to empty, otherwise Next.js complains.\n\t\t\t\t\t_body.removeAttribute(\"style\");\n\t\t\t\t}\n\t\t\t\t// TODO: (?) maybe move to leveraging the velocity mechanism in Observer and skip intervals.\n\t\t\t\t_syncInterval = setInterval(_sync, 250);\n\t\t\t\tgsap.delayedCall(0.5, () => _startup = 0);\n\t\t\t\t_addListener(_doc, \"touchcancel\", _passThrough); // some older Android devices intermittently stop dispatching \"touchmove\" events if we don't listen for \"touchcancel\" on the document.\n\t\t\t\t_addListener(_body, \"touchstart\", _passThrough); //works around Safari bug: https://gsap.com/forums/topic/21450-draggable-in-iframe-on-mobile-is-buggy/\n\t\t\t\t_multiListener(_addListener, _doc, \"pointerdown,touchstart,mousedown\", _pointerDownHandler);\n\t\t\t\t_multiListener(_addListener, _doc, \"pointerup,touchend,mouseup\", _pointerUpHandler);\n\t\t\t\t_transformProp = gsap.utils.checkPrefix(\"transform\");\n\t\t\t\t_stateProps.push(_transformProp);\n\t\t\t\t_coreInitted = _getTime();\n\t\t\t\t_resizeDelay = gsap.delayedCall(0.2, _refreshAll).pause();\n\t\t\t\t_autoRefresh = [_doc, \"visibilitychange\", () => {\n\t\t\t\t\tlet w = _win.innerWidth,\n\t\t\t\t\t\th = _win.innerHeight;\n\t\t\t\t\tif (_doc.hidden) {\n\t\t\t\t\t\t_prevWidth = w;\n\t\t\t\t\t\t_prevHeight = h;\n\t\t\t\t\t} else if (_prevWidth !== w || _prevHeight !== h) {\n\t\t\t\t\t\t_onResize();\n\t\t\t\t\t}\n\t\t\t\t}, _doc, \"DOMContentLoaded\", _refreshAll, _win, \"load\", _refreshAll, _win, \"resize\", _onResize];\n\t\t\t\t_iterateAutoRefresh(_addListener);\n\t\t\t\t_triggers.forEach(trigger => trigger.enable(0, 1));\n\t\t\t\tfor (i = 0; i < _scrollers.length; i+=3) {\n\t\t\t\t\t_wheelListener(_removeListener, _scrollers[i], _scrollers[i+1]);\n\t\t\t\t\t_wheelListener(_removeListener, _scrollers[i], _scrollers[i+2]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic config(vars) {\n\t\t(\"limitCallbacks\" in vars) && (_limitCallbacks = !!vars.limitCallbacks);\n\t\tlet ms = vars.syncInterval;\n\t\tms && clearInterval(_syncInterval) || ((_syncInterval = ms) && setInterval(_sync, ms));\n\t\t(\"ignoreMobileResize\" in vars) && (_ignoreMobileResize = ScrollTrigger.isTouch === 1 && vars.ignoreMobileResize);\n\t\tif (\"autoRefreshEvents\" in vars) {\n\t\t\t_iterateAutoRefresh(_removeListener) || _iterateAutoRefresh(_addListener, vars.autoRefreshEvents || \"none\");\n\t\t\t_ignoreResize = (vars.autoRefreshEvents + \"\").indexOf(\"resize\") === -1;\n\t\t}\n\t}\n\n\tstatic scrollerProxy(target, vars) {\n\t\tlet t = _getTarget(target),\n\t\t\ti = _scrollers.indexOf(t),\n\t\t\tisViewport = _isViewport(t);\n\t\tif (~i) {\n\t\t\t_scrollers.splice(i, isViewport ? 6 : 2);\n\t\t}\n\t\tif (vars) {\n\t\t\tisViewport ? _proxies.unshift(_win, vars, _body, vars, _docEl, vars) : _proxies.unshift(t, vars);\n\t\t}\n\t}\n\n\tstatic clearMatchMedia(query) {\n\t\t_triggers.forEach(t => t._ctx && t._ctx.query === query && t._ctx.kill(true, true));\n\t}\n\n\tstatic isInViewport(element, ratio, horizontal) {\n\t\tlet bounds = (_isString(element) ? _getTarget(element) : element).getBoundingClientRect(),\n\t\t\toffset = bounds[horizontal ? _width : _height] * ratio || 0;\n\t\treturn horizontal ? bounds.right - offset > 0 && bounds.left + offset < _win.innerWidth : bounds.bottom - offset > 0 && bounds.top + offset < _win.innerHeight;\n\t}\n\n\tstatic positionInViewport(element, referencePoint, horizontal) {\n\t\t_isString(element) && (element = _getTarget(element));\n\t\tlet bounds = element.getBoundingClientRect(),\n\t\t\tsize = bounds[horizontal ? _width : _height],\n\t\t\toffset = referencePoint == null ? size / 2 : ((referencePoint in _keywords) ? _keywords[referencePoint] * size : ~referencePoint.indexOf(\"%\") ? parseFloat(referencePoint) * size / 100 : parseFloat(referencePoint) || 0);\n\t\treturn horizontal ? (bounds.left + offset) / _win.innerWidth : (bounds.top + offset) / _win.innerHeight;\n\t}\n\n\tstatic killAll(allowListeners) {\n\t\t_triggers.slice(0).forEach(t => t.vars.id !== \"ScrollSmoother\" && t.kill());\n\t\tif (allowListeners !== true) {\n\t\t\tlet listeners = _listeners.killAll || [];\n\t\t\t_listeners = {};\n\t\t\tlisteners.forEach(f => f());\n\t\t}\n\t}\n\n}\n\nScrollTrigger.version = \"3.12.7\";\nScrollTrigger.saveStyles = targets => targets ? _toArray(targets).forEach(target => { // saved styles are recorded in a consecutive alternating Array, like [element, cssText, transform attribute, cache, matchMedia, ...]\n\tif (target && target.style) {\n\t\tlet i = _savedStyles.indexOf(target);\n\t\ti >= 0 && _savedStyles.splice(i, 5);\n\t\t_savedStyles.push(target, target.style.cssText, target.getBBox && target.getAttribute(\"transform\"), gsap.core.getCache(target), _context());\n\t}\n}) : _savedStyles;\nScrollTrigger.revert = (soft, media) => _revertAll(!soft, media);\nScrollTrigger.create = (vars, animation) => new ScrollTrigger(vars, animation);\nScrollTrigger.refresh = safe => safe ? _onResize(true) : (_coreInitted || ScrollTrigger.register()) && _refreshAll(true);\nScrollTrigger.update = force => ++_scrollers.cache && _updateAll(force === true ? 2 : 0);\nScrollTrigger.clearScrollMemory = _clearScrollMemory;\nScrollTrigger.maxScroll = (element, horizontal) => _maxScroll(element, horizontal ? _horizontal : _vertical);\nScrollTrigger.getScrollFunc = (element, horizontal) => _getScrollFunc(_getTarget(element), horizontal ? _horizontal : _vertical);\nScrollTrigger.getById = id => _ids[id];\nScrollTrigger.getAll = () => _triggers.filter(t => t.vars.id !== \"ScrollSmoother\"); // it's common for people to ScrollTrigger.getAll(t => t.kill()) on page routes, for example, and we don't want it to ruin smooth scrolling by killing the main ScrollSmoother one.\nScrollTrigger.isScrolling = () => !!_lastScrollTime;\nScrollTrigger.snapDirectional = _snapDirectional;\nScrollTrigger.addEventListener = (type, callback) => {\n\tlet a = _listeners[type] || (_listeners[type] = []);\n\t~a.indexOf(callback) || a.push(callback);\n};\nScrollTrigger.removeEventListener = (type, callback) => {\n\tlet a = _listeners[type],\n\t\ti = a && a.indexOf(callback);\n\ti >= 0 && a.splice(i, 1);\n};\nScrollTrigger.batch = (targets, vars) => {\n\tlet result = [],\n\t\tvarsCopy = {},\n\t\tinterval = vars.interval || 0.016,\n\t\tbatchMax = vars.batchMax || 1e9,\n\t\tproxyCallback = (type, callback) => {\n\t\t\tlet elements = [],\n\t\t\t\ttriggers = [],\n\t\t\t\tdelay = gsap.delayedCall(interval, () => {callback(elements, triggers); elements = []; triggers = [];}).pause();\n\t\t\treturn self => {\n\t\t\t\telements.length || delay.restart(true);\n\t\t\t\telements.push(self.trigger);\n\t\t\t\ttriggers.push(self);\n\t\t\t\tbatchMax <= elements.length && delay.progress(1);\n\t\t\t};\n\t\t},\n\t\tp;\n\tfor (p in vars) {\n\t\tvarsCopy[p] = (p.substr(0, 2) === \"on\" && _isFunction(vars[p]) && p !== \"onRefreshInit\") ? proxyCallback(p, vars[p]) : vars[p];\n\t}\n\tif (_isFunction(batchMax)) {\n\t\tbatchMax = batchMax();\n\t\t_addListener(ScrollTrigger, \"refresh\", () => batchMax = vars.batchMax());\n\t}\n\t_toArray(targets).forEach(target => {\n\t\tlet config = {};\n\t\tfor (p in varsCopy) {\n\t\t\tconfig[p] = varsCopy[p];\n\t\t}\n\t\tconfig.trigger = target;\n\t\tresult.push(ScrollTrigger.create(config));\n\t});\n\treturn result;\n}\n\n\n// to reduce file size. clamps the scroll and also returns a duration multiplier so that if the scroll gets chopped shorter, the duration gets curtailed as well (otherwise if you're very close to the top of the page, for example, and swipe up really fast, it'll suddenly slow down and take a long time to reach the top).\nlet _clampScrollAndGetDurationMultiplier = (scrollFunc, current, end, max) => {\n\t\tcurrent > max ? scrollFunc(max) : current < 0 && scrollFunc(0);\n\t\treturn end > max ? (max - current) / (end - current) : end < 0 ? current / (current - end) : 1;\n\t},\n\t_allowNativePanning = (target, direction) => {\n\t\tif (direction === true) {\n\t\t\ttarget.style.removeProperty(\"touch-action\");\n\t\t} else {\n\t\t\ttarget.style.touchAction = direction === true ? \"auto\" : direction ? \"pan-\" + direction + (Observer.isTouch ? \" pinch-zoom\" : \"\") : \"none\"; // note: Firefox doesn't support it pinch-zoom properly, at least in addition to a pan-x or pan-y.\n\t\t}\n\t\ttarget === _docEl && _allowNativePanning(_body, direction);\n\t},\n\t_overflow = {auto: 1, scroll: 1},\n\t_nestedScroll = ({event, target, axis}) => {\n\t\tlet node = (event.changedTouches ? event.changedTouches[0] : event).target,\n\t\t\tcache = node._gsap || gsap.core.getCache(node),\n\t\t\ttime = _getTime(), cs;\n\t\tif (!cache._isScrollT || time - cache._isScrollT > 2000) { // cache for 2 seconds to improve performance.\n\t\t\twhile (node && node !== _body && ((node.scrollHeight <= node.clientHeight && node.scrollWidth <= node.clientWidth) || !(_overflow[(cs = _getComputedStyle(node)).overflowY] || _overflow[cs.overflowX]))) node = node.parentNode;\n\t\t\tcache._isScroll = node && node !== target && !_isViewport(node) && (_overflow[(cs = _getComputedStyle(node)).overflowY] || _overflow[cs.overflowX]);\n\t\t\tcache._isScrollT = time;\n\t\t}\n\t\tif (cache._isScroll || axis === \"x\") {\n\t\t\tevent.stopPropagation();\n\t\t\tevent._gsapAllow = true;\n\t\t}\n\t},\n\t// capture events on scrollable elements INSIDE the and allow those by calling stopPropagation() when we find a scrollable ancestor\n\t_inputObserver = (target, type, inputs, nested) => Observer.create({\n\t\ttarget: target,\n\t\tcapture: true,\n\t\tdebounce: false,\n\t\tlockAxis: true,\n\t\ttype: type,\n\t\tonWheel: (nested = nested && _nestedScroll),\n\t\tonPress: nested,\n\t\tonDrag: nested,\n\t\tonScroll: nested,\n\t\tonEnable: () => inputs && _addListener(_doc, Observer.eventTypes[0], _captureInputs, false, true),\n\t\tonDisable: () => _removeListener(_doc, Observer.eventTypes[0], _captureInputs, true)\n\t}),\n\t_inputExp = /(input|label|select|textarea)/i,\n\t_inputIsFocused,\n\t_captureInputs = e => {\n\t\tlet isInput = _inputExp.test(e.target.tagName);\n\t\tif (isInput || _inputIsFocused) {\n\t\t\te._gsapAllow = true;\n\t\t\t_inputIsFocused = isInput;\n\t\t}\n\t},\n\t_getScrollNormalizer = vars => {\n\t\t_isObject(vars) || (vars = {});\n\t\tvars.preventDefault = vars.isNormalizer = vars.allowClicks = true;\n\t\tvars.type || (vars.type = \"wheel,touch\");\n\t\tvars.debounce = !!vars.debounce;\n\t\tvars.id = vars.id || \"normalizer\";\n\t\tlet {normalizeScrollX, momentum, allowNestedScroll, onRelease} = vars,\n\t\t\tself, maxY,\n\t\t\ttarget = _getTarget(vars.target) || _docEl,\n\t\t\tsmoother = gsap.core.globals().ScrollSmoother,\n\t\t\tsmootherInstance = smoother && smoother.get(),\n\t\t\tcontent = _fixIOSBug && ((vars.content && _getTarget(vars.content)) || (smootherInstance && vars.content !== false && !smootherInstance.smooth() && smootherInstance.content())),\n\t\t\tscrollFuncY = _getScrollFunc(target, _vertical),\n\t\t\tscrollFuncX = _getScrollFunc(target, _horizontal),\n\t\t\tscale = 1,\n\t\t\tinitialScale = (Observer.isTouch && _win.visualViewport ? _win.visualViewport.scale * _win.visualViewport.width : _win.outerWidth) / _win.innerWidth,\n\t\t\twheelRefresh = 0,\n\t\t\tresolveMomentumDuration = _isFunction(momentum) ? () => momentum(self) : () => momentum || 2.8,\n\t\t\tlastRefreshID, skipTouchMove,\n\t\t\tinputObserver = _inputObserver(target, vars.type, true, allowNestedScroll),\n\t\t\tresumeTouchMove = () => skipTouchMove = false,\n\t\t\tscrollClampX = _passThrough,\n\t\t\tscrollClampY = _passThrough,\n\t\t\tupdateClamps = () => {\n\t\t\t\tmaxY = _maxScroll(target, _vertical);\n\t\t\t\tscrollClampY = _clamp(_fixIOSBug ? 1 : 0, maxY);\n\t\t\t\tnormalizeScrollX && (scrollClampX = _clamp(0, _maxScroll(target, _horizontal)));\n\t\t\t\tlastRefreshID = _refreshID;\n\t\t\t},\n\t\t\tremoveContentOffset = () => {\n\t\t\t\tcontent._gsap.y = _round(parseFloat(content._gsap.y) + scrollFuncY.offset) + \"px\";\n\t\t\t\tcontent.style.transform = \"matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, \" + parseFloat(content._gsap.y) + \", 0, 1)\";\n\t\t\t\tscrollFuncY.offset = scrollFuncY.cacheID = 0;\n\t\t\t},\n\t\t\tignoreDrag = () => {\n\t\t\t\tif (skipTouchMove) {\n\t\t\t\t\trequestAnimationFrame(resumeTouchMove);\n\t\t\t\t\tlet offset = _round(self.deltaY / 2),\n\t\t\t\t\t\tscroll = scrollClampY(scrollFuncY.v - offset);\n\t\t\t\t\tif (content && scroll !== scrollFuncY.v + scrollFuncY.offset) {\n\t\t\t\t\t\tscrollFuncY.offset = scroll - scrollFuncY.v;\n\t\t\t\t\t\tlet y = _round((parseFloat(content && content._gsap.y) || 0) - scrollFuncY.offset);\n\t\t\t\t\t\tcontent.style.transform = \"matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, \" + y + \", 0, 1)\";\n\t\t\t\t\t\tcontent._gsap.y = y + \"px\";\n\t\t\t\t\t\tscrollFuncY.cacheID = _scrollers.cache;\n\t\t\t\t\t\t_updateAll();\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tscrollFuncY.offset && removeContentOffset();\n\t\t\t\tskipTouchMove = true;\n\t\t\t},\n\t\t\ttween, startScrollX, startScrollY, onStopDelayedCall,\n\t\t\tonResize = () => { // if the window resizes, like on an iPhone which Apple FORCES the address bar to show/hide even if we event.preventDefault(), it may be scrolling too far now that the address bar is showing, so we must dynamically adjust the momentum tween.\n\t\t\t\tupdateClamps();\n\t\t\t\tif (tween.isActive() && tween.vars.scrollY > maxY) {\n\t\t\t\t\tscrollFuncY() > maxY ? tween.progress(1) && scrollFuncY(maxY) : tween.resetTo(\"scrollY\", maxY);\n\t\t\t\t}\n\t\t\t};\n\t\tcontent && gsap.set(content, {y: \"+=0\"}); // to ensure there's a cache (element._gsap)\n\t\tvars.ignoreCheck = e => (_fixIOSBug && e.type === \"touchmove\" && ignoreDrag(e)) || (scale > 1.05 && e.type !== \"touchstart\") || self.isGesturing || (e.touches && e.touches.length > 1);\n\t\tvars.onPress = () => {\n\t\t\tskipTouchMove = false;\n\t\t\tlet prevScale = scale;\n\t\t\tscale = _round(((_win.visualViewport && _win.visualViewport.scale) || 1) / initialScale);\n\t\t\ttween.pause();\n\t\t\tprevScale !== scale && _allowNativePanning(target, scale > 1.01 ? true : normalizeScrollX ? false : \"x\");\n\t\t\tstartScrollX = scrollFuncX();\n\t\t\tstartScrollY = scrollFuncY();\n\t\t\tupdateClamps();\n\t\t\tlastRefreshID = _refreshID;\n\t\t}\n\t\tvars.onRelease = vars.onGestureStart = (self, wasDragging) => {\n\t\t\tscrollFuncY.offset && removeContentOffset();\n\t\t\tif (!wasDragging) {\n\t\t\t\tonStopDelayedCall.restart(true);\n\t\t\t} else {\n\t\t\t\t_scrollers.cache++; // make sure we're pulling the non-cached value\n\t\t\t\t// alternate algorithm: durX = Math.min(6, Math.abs(self.velocityX / 800)),\tdur = Math.max(durX, Math.min(6, Math.abs(self.velocityY / 800))); dur = dur * (0.4 + (1 - _power4In(dur / 6)) * 0.6)) * (momentumSpeed || 1)\n\t\t\t\tlet dur = resolveMomentumDuration(),\n\t\t\t\t\tcurrentScroll, endScroll;\n\t\t\t\tif (normalizeScrollX) {\n\t\t\t\t\tcurrentScroll = scrollFuncX();\n\t\t\t\t\tendScroll = currentScroll + (dur * 0.05 * -self.velocityX) / 0.227; // the constant .227 is from power4(0.05). velocity is inverted because scrolling goes in the opposite direction.\n\t\t\t\t\tdur *= _clampScrollAndGetDurationMultiplier(scrollFuncX, currentScroll, endScroll, _maxScroll(target, _horizontal));\n\t\t\t\t\ttween.vars.scrollX = scrollClampX(endScroll);\n\t\t\t\t}\n\t\t\t\tcurrentScroll = scrollFuncY();\n\t\t\t\tendScroll = currentScroll + (dur * 0.05 * -self.velocityY) / 0.227; // the constant .227 is from power4(0.05)\n\t\t\t\tdur *= _clampScrollAndGetDurationMultiplier(scrollFuncY, currentScroll, endScroll, _maxScroll(target, _vertical));\n\t\t\t\ttween.vars.scrollY = scrollClampY(endScroll);\n\t\t\t\ttween.invalidate().duration(dur).play(0.01);\n\t\t\t\tif (_fixIOSBug && tween.vars.scrollY >= maxY || currentScroll >= maxY-1) { // iOS bug: it'll show the address bar but NOT fire the window \"resize\" event until the animation is done but we must protect against overshoot so we leverage an onUpdate to do so.\n\t\t\t\t\tgsap.to({}, {onUpdate: onResize, duration: dur});\n\t\t\t\t}\n\t\t\t}\n\t\t\tonRelease && onRelease(self);\n\t\t};\n\t\tvars.onWheel = () => {\n\t\t\ttween._ts && tween.pause();\n\t\t\tif (_getTime() - wheelRefresh > 1000) { // after 1 second, refresh the clamps otherwise that'll only happen when ScrollTrigger.refresh() is called or for touch-scrolling.\n\t\t\t\tlastRefreshID = 0;\n\t\t\t\twheelRefresh = _getTime();\n\t\t\t}\n\t\t};\n\t\tvars.onChange = (self, dx, dy, xArray, yArray) => {\n\t\t\t_refreshID !== lastRefreshID && updateClamps();\n\t\t\tdx && normalizeScrollX && scrollFuncX(scrollClampX(xArray[2] === dx ? startScrollX + (self.startX - self.x) : scrollFuncX() + dx - xArray[1])); // for more precision, we track pointer/touch movement from the start, otherwise it'll drift.\n\t\t\tif (dy) {\n\t\t\t\tscrollFuncY.offset && removeContentOffset();\n\t\t\t\tlet isTouch = yArray[2] === dy,\n\t\t\t\t\ty = isTouch ? startScrollY + self.startY - self.y : scrollFuncY() + dy - yArray[1],\n\t\t\t\t\tyClamped = scrollClampY(y);\n\t\t\t\tisTouch && y !== yClamped && (startScrollY += yClamped - y);\n\t\t\t\tscrollFuncY(yClamped);\n\t\t\t}\n\t\t\t(dy || dx) && _updateAll();\n\t\t};\n\t\tvars.onEnable = () => {\n\t\t\t_allowNativePanning(target, normalizeScrollX ? false : \"x\");\n\t\t\tScrollTrigger.addEventListener(\"refresh\", onResize);\n\t\t\t_addListener(_win, \"resize\", onResize);\n\t\t\tif (scrollFuncY.smooth) {\n\t\t\t\tscrollFuncY.target.style.scrollBehavior = \"auto\";\n\t\t\t\tscrollFuncY.smooth = scrollFuncX.smooth = false;\n\t\t\t}\n\t\t\tinputObserver.enable();\n\t\t};\n\t\tvars.onDisable = () => {\n\t\t\t_allowNativePanning(target, true);\n\t\t\t_removeListener(_win, \"resize\", onResize);\n\t\t\tScrollTrigger.removeEventListener(\"refresh\", onResize);\n\t\t\tinputObserver.kill();\n\t\t};\n\t\tvars.lockAxis = vars.lockAxis !== false;\n\t\tself = new Observer(vars);\n\t\tself.iOS = _fixIOSBug; // used in the Observer getCachedScroll() function to work around an iOS bug that wreaks havoc with TouchEvent.clientY if we allow scroll to go all the way back to 0.\n\t\t_fixIOSBug && !scrollFuncY() && scrollFuncY(1); // iOS bug causes event.clientY values to freak out (wildly inaccurate) if the scroll position is exactly 0.\n\t\t_fixIOSBug && gsap.ticker.add(_passThrough); // prevent the ticker from sleeping\n\t\tonStopDelayedCall = self._dc;\n\t\ttween = gsap.to(self, {ease: \"power4\", paused: true, inherit: false, scrollX: normalizeScrollX ? \"+=0.1\" : \"+=0\", scrollY: \"+=0.1\", modifiers: {scrollY: _interruptionTracker(scrollFuncY, scrollFuncY(), () => tween.pause())\t}, onUpdate: _updateAll, onComplete: onStopDelayedCall.vars.onComplete}); // we need the modifier to sense if the scroll position is altered outside of the momentum tween (like with a scrollTo tween) so we can pause() it to prevent conflicts.\n\t\treturn self;\n\t};\n\nScrollTrigger.sort = func => {\n\tif (_isFunction(func)) {\n\t\treturn _triggers.sort(func);\n\t}\n\tlet scroll = _win.pageYOffset || 0;\n\tScrollTrigger.getAll().forEach(t => t._sortY = t.trigger ? scroll + t.trigger.getBoundingClientRect().top : t.start + _win.innerHeight);\n\treturn _triggers.sort(func || ((a, b) => (a.vars.refreshPriority || 0) * -1e6 + (a.vars.containerAnimation ? 1e6 : a._sortY) - ((b.vars.containerAnimation ? 1e6 : b._sortY) + (b.vars.refreshPriority || 0) * -1e6))); // anything with a containerAnimation should refresh last.\n}\nScrollTrigger.observe = vars => new Observer(vars);\nScrollTrigger.normalizeScroll = vars => {\n\tif (typeof(vars) === \"undefined\") {\n\t\treturn _normalizer;\n\t}\n\tif (vars === true && _normalizer) {\n\t\treturn _normalizer.enable();\n\t}\n\tif (vars === false) {\n\t\t_normalizer && _normalizer.kill();\n\t\t_normalizer = vars;\n\t\treturn;\n\t}\n\tlet normalizer = vars instanceof Observer ? vars : _getScrollNormalizer(vars);\n\t_normalizer && _normalizer.target === normalizer.target && _normalizer.kill();\n\t_isViewport(normalizer.target) && (_normalizer = normalizer);\n\treturn normalizer;\n};\n\n\nScrollTrigger.core = { // smaller file size way to leverage in ScrollSmoother and Observer\n\t_getVelocityProp,\n\t_inputObserver,\n\t_scrollers,\n\t_proxies,\n\tbridge: {\n\t\t// when normalizeScroll sets the scroll position (ss = setScroll)\n\t\tss: () => {\n\t\t\t_lastScrollTime || _dispatch(\"scrollStart\");\n\t\t\t_lastScrollTime = _getTime();\n\t\t},\n\t\t// a way to get the _refreshing value in Observer\n\t\tref: () => _refreshing\n\t}\n};\n\n_getGSAP() && gsap.registerPlugin(ScrollTrigger);\n\nexport { ScrollTrigger as default };"],"names":["_getGSAP","gsap","window","registerPlugin","_getProxyProp","element","property","_proxies","indexOf","_isViewport","el","_root","_addListener","type","func","passive","capture","addEventListener","_removeListener","removeEventListener","_onScroll","_normalizer","isPressed","_scrollers","cache","_scrollCacheFunc","f","doNotCache","cachingFunc","value","_startup","_win","history","scrollRestoration","isNormalizing","v","Math","round","iOS","cacheID","_bridge","offset","_getTarget","t","self","_ctx","selector","utils","toArray","config","nullTargetWarn","console","warn","_getScrollFunc","s","sc","_doc","scrollingElement","_docEl","i","_vertical","push","prev","arguments","length","target","smooth","getProperty","_getVelocityProp","minTimeRefresh","useDelta","update","force","_getTime","min","t1","v2","v1","t2","dropToZeroTime","max","reset","getVelocity","latestValue","tOld","vOld","_getEvent","e","preventDefault","_gsapAllow","changedTouches","_getAbsoluteMax","a","abs","_setScrollTrigger","ScrollTrigger","core","globals","_integrate","data","bridge","scrollers","proxies","name","_initCore","_coreInitted","document","body","documentElement","_body","clamp","_context","context","_pointerType","_isTouch","Observer","isTouch","matchMedia","matches","navigator","maxTouchPoints","msMaxTouchPoints","_eventTypes","eventTypes","split","setTimeout","_observers","Date","now","_scrollLeft","_scrollTop","_horizontal","p","p2","os","os2","d","d2","scrollTo","pageXOffset","op","pageYOffset","init","vars","tolerance","dragMinimum","lineHeight","debounce","onStop","onStopDelay","ignore","wheelSpeed","event","onDragStart","onDragEnd","onDrag","onPress","onRelease","onRight","onLeft","onUp","onDown","onChangeX","onChangeY","onChange","onToggleX","onToggleY","onHover","onHoverEnd","onMove","ignoreCheck","isNormalizer","onGestureStart","onGestureEnd","onWheel","onEnable","onDisable","onClick","scrollSpeed","allowClicks","lockAxis","onLockAxis","clickCapture","onClickTime","_ignoreCheck","isPointerOrTouch","limitToTouch","pointerType","dx","deltaX","dy","deltaY","changedX","changedY","prevDeltaX","prevDeltaY","moved","dragged","locked","wheeled","id","onDelta","x","y","index","_vx","_vy","requestAnimationFrame","onTouchOrPointerDelta","axis","_onDrag","clientX","clientY","isDragging","startX","startY","_onGestureStart","touches","isGesturing","_onGestureEnd","onScroll","scrollFuncX","scrollFuncY","scrollX","scrollY","onStopDelayedCall","restart","_onWheel","multiplier","deltaMode","innerHeight","_onMove","_onHover","_onHoverEnd","_onClick","parseFloat","getComputedStyle","this","isViewport","ownerDoc","ownerDocument","_onPress","button","pause","_onRelease","isTrackingDrag","isNaN","wasDragging","isDragNotClick","eventData","delayedCall","defaultPrevented","click","createEvent","syntheticEvent","initMouseEvent","screenX","screenY","dispatchEvent","_dc","onStopFunc","enable","isEnabled","disable","filter","o","kill","revert","splice","version","create","register","getAll","slice","getById","_parseClamp","_isString","substr","_keepClamp","_pointerDownHandler","_pointerIsDown","_pointerUpHandler","_passThrough","_round","_windowExists","_getViewportDimension","dimensionProperty","_100vh","_getBoundsFunc","_winOffsets","width","innerWidth","height","_getBounds","_maxScroll","_iterateAutoRefresh","events","_autoRefresh","_isFunction","_isNumber","_isObject","_endAnimation","animation","reversed","progress","_callback","enabled","result","add","totalTime","callbackAnimation","_getComputedStyle","_setDefaults","obj","defaults","_getSize","_getLabelRatioArray","timeline","labels","duration","_snapDirectional","snapIncrementOrArray","snap","Array","isArray","sort","b","direction","threshold","snapped","_multiListener","types","callback","forEach","nonPassive","_wheelListener","scrollFunc","wheelHandler","_offsetToPx","size","eqIndex","relative","charAt","_keywords","_createMarker","container","matchWidthEl","containerAnimation","startColor","endColor","fontSize","indent","fontWeight","createElement","useFixedPosition","isScroller","parent","isStart","color","css","_right","_bottom","offsetWidth","_isStart","setAttribute","style","cssText","innerText","children","insertBefore","appendChild","_offset","_positionMarker","_sync","_lastScrollTime","_rafID","_updateAll","clientWidth","_dispatch","_setBaseDimensions","_baseScreenWidth","_baseScreenHeight","_onResize","_refreshing","_ignoreResize","fullscreenElement","webkitFullscreenElement","_ignoreMobileResize","_resizeDelay","_softRefresh","_refreshAll","_revertRecorded","media","_savedStyles","query","getBBox","uncache","_revertAll","trigger","_i","_triggers","_isReverted","_clearScrollMemory","_refreshingAll","rec","_scrollRestoration","_refresh100vh","_div100vh","offsetHeight","removeChild","_hideAllMarkers","hide","_toArray","display","_swapPinIn","pin","spacer","cs","spacerState","_gsap","swappedIn","_propNamesToCopy","spacerStyle","pinStyle","position","flexBasis","overflow","boxSizing","_width","_px","_height","_padding","_margin","_setState","parentNode","_getState","l","_stateProps","state","_parsePosition","scrollerSize","scroll","marker","markerScroller","scrollerBounds","borderWidth","scrollerMax","clampZeroProp","p1","time","seek","mapRange","scrollTrigger","start","end","bounds","localOffset","globalOffset","offsets","left","top","removeProperty","m","_caScrollDist","_reparent","_stOrig","_prefixExp","test","getCache","_interruptionTracker","getValueFunc","initialValue","onInterrupt","last1","last2","current","_shiftMarker","set","_getTweenCreator","scroller","getTween","change1","change2","tween","onComplete","modifiers","getScroll","checkForInterruption","prop","inherit","ratio","onUpdate","call","to","_clamp","_time2","_syncInterval","_transformProp","_prevWidth","_prevHeight","_sort","_suppressOverwrites","_fixIOSBug","_clampingMax","_limitCallbacks","_queueRefreshID","_primary","_time1","_enabled","_abs","_Right","_Left","_Top","_Bottom","_Width","_Height","withoutTransforms","xPercent","yPercent","rotation","rotationX","rotationY","scale","skewX","skewY","getBoundingClientRect","_markerDefaults","_defaults","toggleActions","anticipatePin","center","bottom","right","flipped","side","oppositeSide","_isFlipped","_ids","_listeners","_emptyArray","map","_refreshID","skipRevert","isRefreshing","refreshInits","scrollBehavior","refresh","_subPinOffset","horizontal","original","adjustPinSpacing","_dir","endClamp","_endClamp","startClamp","_startClamp","setPositions","render","onRefresh","_lastScroll","_direction","isUpdating","recordVelocity","concat","_capsExp","replace","toLowerCase","tweenTo","pinCache","snapFunc","scroll1","scroll2","markerStart","markerEnd","markerStartTrigger","markerEndTrigger","markerVars","executingOnRefresh","change","pinOriginalState","pinActiveState","pinState","pinGetter","pinSetter","pinStart","pinChange","spacingStart","markerStartSetter","pinMoves","markerEndSetter","snap1","snap2","scrubTween","scrubSmooth","snapDurClamp","snapDelayedCall","prevScroll","prevAnimProgress","caMarkerSetter","customRevertReturn","nodeType","toggleClass","onToggle","scrub","pinSpacing","invalidateOnRefresh","onScrubComplete","onSnapComplete","once","pinReparent","pinSpacer","fastScrollEnd","preventOverlaps","isToggle","scrollerCache","pinType","callbacks","onEnter","onLeave","onEnterBack","onLeaveBack","markers","onRefreshInit","getScrollerSize","_getSizeFunc","getScrollerOffsets","_getOffsetsFunc","lastSnap","lastRefresh","prevProgress","bind","refreshPriority","tweenScroll","scrubDuration","ease","totalProgress","paused","lazy","_initted","isReverted","immediateRender","snapTo","_getClosestLabel","_getLabelAtDirection","st","directional","delay","refreshedRecently","isActive","endValue","endScroll","velocity","naturalEnd","inertia","onStart","resetTo","_tTime","_tDur","stRevert","targets","className","nativeElement","spacerIsNative","classList","force3D","quickSetter","content","_makePositionable","oldOnUpdate","oldParams","onUpdateParams","eventCallback","apply","previous","next","temp","r","prevRefreshing","_swapPinOut","soft","pinOffset","invalidate","isVertical","override","curTrigger","curPin","oppositeScroll","initted","revertedPins","forcedOverflow","markerStartOffset","markerEndOffset","isFirstRefresh","otherPinOffset","parsedEnd","parsedEndTrigger","endTrigger","parsedStart","pinnedContainer","triggerIndex","unshift","_pinPush","normalize","_pinOffset","toUpperCase","ceil","_copyState","omitOffsets","endAnimation","labelToScroll","label","getTrailing","reverse","forceFake","toggleState","action","stateChanged","toggled","isAtMax","isTakingAction","clipped","_dp","_time","_start","n","newStart","newEnd","keepClamp","amount","allowAnimation","onKill","updateFunc","_queueRefreshAll","clearInterval","suppressOverwrites","_rafBugFix","userAgent","mm","bodyHasStyle","hasAttribute","bodyStyle","border","borderTopStyle","AnimationProto","Animation","prototype","Object","defineProperty","removeAttribute","setInterval","checkPrefix","w","h","hidden","limitCallbacks","ms","syncInterval","ignoreMobileResize","autoRefreshEvents","scrollerProxy","clearMatchMedia","isInViewport","positionInViewport","referencePoint","killAll","allowListeners","listeners","saveStyles","getAttribute","safe","clearScrollMemory","maxScroll","getScrollFunc","isScrolling","snapDirectional","batch","proxyCallback","elements","triggers","interval","batchMax","varsCopy","_clampScrollAndGetDurationMultiplier","_allowNativePanning","touchAction","_nestedScroll","node","_isScrollT","scrollHeight","clientHeight","scrollWidth","_overflow","overflowY","overflowX","_isScroll","stopPropagation","_inputObserver","inputs","nested","_captureInputs","_getScrollNormalizer","resumeTouchMove","skipTouchMove","updateClamps","maxY","scrollClampY","normalizeScrollX","scrollClampX","lastRefreshID","removeContentOffset","transform","onResize","startScrollX","startScrollY","momentum","allowNestedScroll","smoother","ScrollSmoother","smootherInstance","get","initialScale","visualViewport","outerWidth","wheelRefresh","resolveMomentumDuration","inputObserver","ignoreDrag","prevScale","currentScroll","dur","velocityX","velocityY","play","_ts","xArray","yArray","yClamped","ticker","_inputIsFocused","auto","_inputExp","isInput","tagName","_sortY","observe","normalizeScroll","normalizer","ss","ref"],"mappings":";;;;;;;;;mYAYY,SAAXA,WAAiBC,IAA4B,oBAAZC,SAA4BD,GAAOC,OAAOD,OAASA,GAAKE,gBAAkBF,GAkB3F,SAAhBG,EAAiBC,EAASC,UAAcC,GAASC,QAAQH,IAAYE,GAASA,GAASC,QAAQH,GAAW,GAAGC,GAC/F,SAAdG,EAAcC,YAASC,EAAMH,QAAQE,GACtB,SAAfE,EAAgBP,EAASQ,EAAMC,EAAMC,EAASC,UAAYX,EAAQY,iBAAiBJ,EAAMC,EAAM,CAACC,SAAqB,IAAZA,EAAmBC,UAAWA,IACrH,SAAlBE,EAAmBb,EAASQ,EAAMC,EAAME,UAAYX,EAAQc,oBAAoBN,EAAMC,IAAQE,GAGlF,SAAZI,WAAmBC,I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Q,SAAAlS,UAAKA,EAAEgyB,OAAShyB,EAAEmW,QAAU2C,EAAS9Y,EAAEmW,QAAQ+H,wBAAwBjE,IAAMja,EAAE0Z,MAAQta,GAAKuM,cACpH0K,GAAU3E,KAAKvT,GAAS,SAAC8E,EAAG0O,UAAuC,KAAhC1O,EAAEmD,KAAKwe,iBAAmB,IAAa3hB,EAAEmD,KAAK4M,mBAAqB,IAAM/P,EAAE+uB,UAAYrgB,EAAEvL,KAAK4M,mBAAqB,IAAMrB,EAAEqgB,SAA2C,KAAhCrgB,EAAEvL,KAAKwe,iBAAmB,UAE7LqN,QAAU,SAAA7rB,UAAQ,IAAI5B,EAAS4B,OAC/B8rB,gBAAkB,SAAA9rB,WACV,IAAVA,SACH1H,MAEK,IAAT0H,GAAiB1H,SACbA,EAAYgP,aAEP,IAATtH,SACH1H,GAAeA,EAAYqP,YAC3BrP,EAAc0H,OAGX+rB,EAAa/rB,aAAgB5B,EAAW4B,EAAOipB,GAAqBjpB,UACxE1H,GAAeA,EAAY4C,SAAW6wB,EAAW7wB,QAAU5C,EAAYqP,OACvEjQ,GAAYq0B,EAAW7wB,UAAY5C,EAAcyzB,GAC1CA,MAIM9uB,KAAO,CACpB5B,iBAAAA,EACAwtB,eAAAA,GACArwB,WAAAA,GACAhB,SAAAA,GACA6F,OAAQ,CAEP2uB,GAAI,cACHzd,IAAmBI,EAAU,eAC7BJ,GAAkB7S,MAGnBuwB,IAAK,sBAAMjd,YAIC9X,GAAKE,eAAe4F"} \ No newline at end of file diff --git a/frontend/public/js/gsap.min.js b/frontend/public/js/gsap.min.js new file mode 100644 index 0000000..c0f9bfa --- /dev/null +++ b/frontend/public/js/gsap.min.js @@ -0,0 +1,11 @@ +/*! + * GSAP 3.12.7 + * https://gsap.com + * + * @license Copyright 2025, GreenSock. All rights reserved. + * Subject to the terms at https://gsap.com/standard-license or for Club GSAP members, the agreement issued with that membership. + * @author: Jack Doyle, jack@greensock.com + */ + +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t){return"string"==typeof t}function s(t){return"function"==typeof t}function t(t){return"number"==typeof t}function u(t){return void 0===t}function v(t){return"object"==typeof t}function w(t){return!1!==t}function x(){return"undefined"!=typeof window}function y(t){return s(t)||r(t)}function P(t){return(i=yt(t,ot))&&ze}function Q(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function R(t,e){return!e&&console.warn(t)}function S(t,e){return t&&(ot[t]=e)&&i&&(i[t]=e)||ot}function T(){return 0}function ea(t){var e,r,i=t[0];if(v(i)||s(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=gt.length;r--&&!gt[r].targetTest(i););e=gt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Vt(t[r],e)))||t.splice(r,1);return t}function fa(t){return t._gsap||ea(Mt(t))[0]._gsap}function ga(t,e,r){return(r=t[e])&&s(r)?t[e]():u(r)&&t.getAttribute&&t.getAttribute(e)||r}function ha(t,e){return(t=t.split(",")).forEach(e)||t}function ia(t){return Math.round(1e5*t)/1e5||0}function ja(t){return Math.round(1e7*t)/1e7||0}function ka(t,e){var r=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+i:"-"===r?t-i:"*"===r?t*i:t/i}function la(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++ia;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=s,e.parent=e._dp=t,e}function ya(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,a=e._next;n?n._next=a:t[r]===e&&(t[r]=a),a?a._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null}function za(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0}function Aa(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t}function Ca(t,e,r,i){return t._startAt&&(L?t._startAt.revert(ht):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))}function Ea(t){return t._repeat?Tt(t._tTime,t=t.duration()+t._rDelay)*t:0}function Ga(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function Ha(t){return t._end=ja(t._start+(t._tDur/Math.abs(t._ts||t._rts||X)||0))}function Ia(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=ja(r._time-(0X)&&e.render(r,!0)),Aa(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur(n=Math.abs(n))&&(a=i,o=n);return a}function tb(t){return za(t),t.scrollTrigger&&t.scrollTrigger.kill(!!L),t.progress()<1&&Ct(t,"onInterrupt"),t}function wb(t){if(t)if(t=!t.name&&t.default||t,x()||t.headless){var e=t.name,r=s(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:T,render:he,add:Wt,kill:ce,modifier:fe,rawVars:0},a={targetTest:0,get:0,getSetter:ne,aliases:{},register:0};if(Ft(),t!==i){if(pt[e])return;qa(i,qa(ua(t,n),a)),yt(i.prototype,yt(n,ua(t,a))),pt[i.prop=e]=i,t.targetTest&&(gt.push(i),ft[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}S(e,i),t.register&&t.register(ze,i,_e)}else At.push(t)}function zb(t,e,r){return(6*(t+=t<0?1:1>16,e>>8&St,e&St]:0:zt.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),zt[e])p=zt[e];else if("#"===e.charAt(0)){if(e.length<6&&(e="#"+(n=e.charAt(1))+n+(a=e.charAt(2))+a+(s=e.charAt(3))+s+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(p=parseInt(e.substr(1,6),16))>>16,p>>8&St,p&St,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8&St,e&St]}else if("hsl"===e.substr(0,3))if(p=c=e.match(tt),r){if(~e.indexOf("="))return p=e.match(et),i&&p.length<4&&(p[3]=1),p}else o=+p[0]%360/360,u=p[1]/100,n=2*(h=p[2]/100)-(a=h<=.5?h*(u+1):h+u-h*u),3=U?u.endTime(!1):t._dur;return r(e)&&(isNaN(e)||e in o)?(a=e.charAt(0),s="%"===e.substr(-1),n=e.indexOf("="),"<"===a||">"===a?(0<=n&&(e=e.replace(/=/,"")),("<"===a?u._start:u.endTime(0<=u._repeat))+(parseFloat(e.substr(1))||0)*(s?(n<0?u:i).totalDuration()/100:1)):n<0?(e in o||(o[e]=h),o[e]):(a=parseFloat(e.charAt(n-1)+e.substr(n+1)),s&&i&&(a=a/100*(Z(i)?i[0]:i).totalDuration()),1=r&&te)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0=this.totalDuration()||!v&&_)&&(f!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||(!t&&g||!(v===m&&0=i&&(a instanceof $t?e&&n.push(a):(r&&n.push(a),t&&n.push.apply(n,a.getChildren(!0,e,r)))),a=a._next;return n},e.getById=function getById(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},e.remove=function remove(t){return r(t)?this.removeLabel(t):s(t)?this.killTweensOf(t):(t.parent===this&&ya(this,t),t===this._recent&&(this._recent=this._last),Aa(this))},e.totalTime=function totalTime(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ja(Rt.time-(0r:!r||s.isActive())&&n.push(s):(i=s.getTweensOf(a,r)).length&&n.push.apply(n,i),s=s._next;return n},e.tweenTo=function tweenTo(t,e){e=e||{};var r,i=this,n=xt(i,t),a=e.startAt,s=e.onStart,o=e.onStartParams,u=e.immediateRender,h=$t.to(i,qa({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale())||X,onStart:function onStart(){if(i.pause(),!r){var t=e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale());h._dur!==t&&Ra(h,t,0,1).render(h._time,!0,!0),r=1}s&&s.apply(h,o||[])}},e));return u?h.render(0):h},e.tweenFromTo=function tweenFromTo(t,e,r){return this.tweenTo(e,qa({startAt:{time:xt(this,t)}},r))},e.recent=function recent(){return this._recent},e.nextLabel=function nextLabel(t){return void 0===t&&(t=this._time),rb(this,xt(this,t))},e.previousLabel=function previousLabel(t){return void 0===t&&(t=this._time),rb(this,xt(this,t),1)},e.currentLabel=function currentLabel(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+X)},e.shiftChildren=function shiftChildren(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,a=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in a)a[i]>=r&&(a[i]+=t);return Aa(this)},e.invalidate=function invalidate(t){var e=this._first;for(this._lock=0;e;)e.invalidate(t),e=e._next;return i.prototype.invalidate.call(this,t)},e.clear=function clear(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Aa(this)},e.totalDuration=function totalDuration(t){var e,r,i,n=0,a=this,s=a._last,o=U;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(i=a.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),o<(r=s._start)&&a._sort&&s._ts&&!a._lock?(a._lock=1,Ka(a,s,r-s._delay,1)._lock=0):o=r,r<0&&s._ts&&(n-=r,(!i&&!a._dp||i&&i.smoothChildTiming)&&(a._start+=r/a._ts,a._time-=r,a._tTime-=r),a.shiftChildren(-r,!1,-Infinity),o=0),s._end>n&&s._ts&&(n=s._end),s=e;Ra(a,a===I&&a._time>n?a._time:n,1,1),a._dirty=0}return a._tDur},Timeline.updateRoot=function updateRoot(t){if(I._ts&&(na(I,Ga(t,I)),f=Rt.frame),Rt.frame>=mt){mt+=q.autoSleep||120;var e=I._first;if((!e||!e._ts)&&q.autoSleep&&Rt._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Rt.sleep()}}},Timeline}(Ut);qa(Xt.prototype,{_lock:0,_hasPause:0,_forcing:0});function ac(t,e,i,n,a,o){var u,h,l,f;if(pt[t]&&!1!==(u=new pt[t]).init(a,u.rawVars?e[t]:function _processVars(t,e,i,n,a){if(s(t)&&(t=Kt(t,a,e,i,n)),!v(t)||t.style&&t.nodeType||Z(t)||$(t))return r(t)?Kt(t,a,e,i,n):t;var o,u={};for(o in t)u[o]=Kt(t[o],a,e,i,n);return u}(e[t],n,a,o,i),i,n,o)&&(i._pt=h=new _e(i._pt,a,t,0,1,u.render,u,0,u.priority),i!==d))for(l=i._ptLookup[i._targets.indexOf(a)],f=u._props.length;f--;)l[u._props[f]]=h;return u}function gc(t,r,e,i){var n,a,s=r.ease||i||"power1.inOut";if(Z(r))a=e[t]||(e[t]=[]),r.forEach(function(t,e){return a.push({t:e/(r.length-1)*100,v:t,e:s})});else for(n in r)a=e[n]||(e[n]=[]),"ease"===n||a.push({t:parseFloat(t),v:r[n],e:s})}var Nt,Gt,Wt=function _addPropTween(t,e,i,n,a,o,u,h,l,f){s(n)&&(n=n(a||0,t,o));var d,c=t[e],p="get"!==i?i:s(c)?l?t[e.indexOf("set")||!s(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():c,_=s(c)?l?re:te:Zt;if(r(n)&&(~n.indexOf("random(")&&(n=ob(n)),"="===n.charAt(1)&&(!(d=ka(p,n)+(Ya(p)||0))&&0!==d||(n=d))),!f||p!==n||Gt)return isNaN(p*n)||""===n?(c||e in t||Q(e,n),function _addComplexStringPropTween(t,e,r,i,n,a,s){var o,u,h,l,f,d,c,p,_=new _e(this._pt,t,e,0,1,ue,null,n),m=0,g=0;for(_.b=r,_.e=i,r+="",(c=~(i+="").indexOf("random("))&&(i=ob(i)),a&&(a(p=[r,i],t,e),r=p[0],i=p[1]),u=r.match(it)||[];o=it.exec(i);)l=o[0],f=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),l!==u[g++]&&(d=parseFloat(u[g-1])||0,_._pt={_next:_._pt,p:f||1===g?f:",",s:d,c:"="===l.charAt(1)?ka(d,l)-d:parseFloat(l)-d,m:h&&h<4?Math.round:0},m=it.lastIndex);return _.c=m")}),s.duration();else{for(l in u={},x)"ease"===l||"easeEach"===l||gc(l,x[l],u,x.easeEach);for(l in u)for(A=u[l].sort(function(t,e){return t.t-e.t}),o=E=0;o=t._tDur||e<0)&&t.ratio===u&&(u&&za(t,1),r||L||(Ct(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},e.targets=function targets(){return this._targets},e.invalidate=function invalidate(t){return t&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),D.prototype.invalidate.call(this,t)},e.resetTo=function resetTo(t,e,r,i,n){c||Rt.wake(),this._ts||this.play();var a,s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Qt(this,s),a=this._ease(s/this._dur),function _updatePropTweens(t,e,r,i,n,a,s,o){var u,h,l,f,d=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!d)for(d=t._ptCache[e]=[],l=t._ptLookup,f=t._targets.length;f--;){if((u=l[f][e])&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return Gt=1,t.vars[e]="+=0",Qt(t,s),Gt=0,o?R(e+" not eligible for reset"):1;d.push(u)}for(f=d.length;f--;)(u=(h=d[f])._pt||h).s=!i&&0!==i||n?u.s+(i||0)+a*u.c:i,u.c=r-u.s,h.e&&(h.e=ia(r)+Ya(h.e)),h.b&&(h.b=u.s+Ya(h.b))}(this,t,e,r,i,a,s,n)?this.resetTo(t,e,r,i,1):(Ia(this,0),this.parent||xa(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function kill(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?tb(this):this.scrollTrigger&&this.scrollTrigger.kill(!!L),this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Nt&&!0!==Nt.vars.overwrite)._first||tb(this),this.parent&&i!==this.timeline.totalDuration()&&Ra(this,this._dur*this.timeline._tDur/i,0,1),this}var n,a,s,o,u,h,l,f=this._targets,d=t?Mt(t):f,c=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function _arraysMatch(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(f,d))return"all"===e&&(this._pt=0),tb(this);for(n=this._op=this._op||[],"all"!==e&&(r(e)&&(u={},ha(e,function(t){return u[t]=1}),e=u),e=function _addAliasesToVars(t,e){var r,i,n,a,s=t[0]?fa(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(i in r=yt({},e),o)if(i in r)for(n=(a=o[i].split(",")).length;n--;)r[a[n]]=r[i];return r}(f,e)),l=f.length;l--;)if(~d.indexOf(f[l]))for(u in a=c[l],"all"===e?(n[l]=e,o=a,s={}):(s=n[l]=n[l]||{},o=e),o)(h=a&&a[u])&&("kill"in h.d&&!0!==h.d.kill(u)||ya(this,h,"_pt"),delete a[u]),"all"!==s&&(s[u]=1);return this._initted&&!this._pt&&p&&tb(this),this},Tween.to=function to(t,e,r){return new Tween(t,e,r)},Tween.from=function from(t,e){return Va(1,arguments)},Tween.delayedCall=function delayedCall(t,e,r,i){return new Tween(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},Tween.fromTo=function fromTo(t,e,r){return Va(2,arguments)},Tween.set=function set(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new Tween(t,e)},Tween.killTweensOf=function killTweensOf(t,e,r){return I.killTweensOf(t,e,r)},Tween}(Ut);qa($t.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ha("staggerTo,staggerFrom,staggerFromTo",function(r){$t[r]=function(){var t=new Xt,e=Ot.call(arguments,0);return e.splice("staggerFromTo"===r?5:4,0,0),t[r].apply(t,e)}});function oc(t,e,r){return t.setAttribute(e,r)}function wc(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)}var Zt=function _setterPlain(t,e,r){return t[e]=r},te=function _setterFunc(t,e,r){return t[e](r)},re=function _setterFuncWithParam(t,e,r,i){return t[e](i.fp,r)},ne=function _getSetter(t,e){return s(t[e])?te:u(t[e])&&t.setAttribute?oc:Zt},ae=function _renderPlain(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},se=function _renderBoolean(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},ue=function _renderComplexString(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},he=function _renderPropTweens(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},fe=function _addPluginModifier(t,e,r,i){for(var n,a=this._pt;a;)n=a._next,a.p===i&&a.modifier(t,e,r),a=n},ce=function _killPropTweensOf(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?ya(this,i,"_pt"):i.dep||(e=1),i=r;return!e},pe=function _sortPropTweensByPriority(t){for(var e,r,i,n,a=t._pt;a;){for(e=a._next,r=i;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:n)?a._prev._next=a:i=a,(a._next=r)?r._prev=a:n=a,a=e}t._pt=i},_e=(PropTween.prototype.modifier=function modifier(t,e,r){this.mSet=this.mSet||this.set,this.set=wc,this.m=t,this.mt=r,this.tween=e},PropTween);function PropTween(t,e,r,i,n,a,s,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=a||ae,this.d=s||this,this.set=o||Zt,this.pr=u||0,(this._next=t)&&(t._prev=this)}ha(vt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return ft[t]=1}),ot.TweenMax=ot.TweenLite=$t,ot.TimelineLite=ot.TimelineMax=Xt,I=new Xt({sortChildren:!1,defaults:V,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),q.stringFilter=Fb;function Ec(t){return(ye[t]||Te).map(function(t){return t()})}function Fc(){var t=Date.now(),o=[];2 typeof(value) === \"string\",\n\t_isFunction = value => typeof(value) === \"function\",\n\t_isNumber = value => typeof(value) === \"number\",\n\t_isUndefined = value => typeof(value) === \"undefined\",\n\t_isObject = value => typeof(value) === \"object\",\n\t_isNotFalse = value => value !== false,\n\t_windowExists = () => typeof(window) !== \"undefined\",\n\t_isFuncOrString = value => _isFunction(value) || _isString(value),\n\t_isTypedArray = (typeof ArrayBuffer === \"function\" && ArrayBuffer.isView) || function() {}, // note: IE10 has ArrayBuffer, but NOT ArrayBuffer.isView().\n\t_isArray = Array.isArray,\n\t_strictNumExp = /(?:-?\\.?\\d|\\.)+/gi, //only numbers (including negatives and decimals) but NOT relative values.\n\t_numExp = /[-+=.]*\\d+[.e\\-+]*\\d*[e\\-+]*\\d*/g, //finds any numbers, including ones that start with += or -=, negative numbers, and ones in scientific notation like 1e-8.\n\t_numWithUnitExp = /[-+=.]*\\d+[.e-]*\\d*[a-z%]*/g,\n\t_complexStringNumExp = /[-+=.]*\\d+\\.?\\d*(?:e-|e\\+)?\\d*/gi, //duplicate so that while we're looping through matches from exec(), it doesn't contaminate the lastIndex of _numExp which we use to search for colors too.\n\t_relExp = /[+-]=-?[.\\d]+/,\n\t_delimitedValueExp = /[^,'\"\\[\\]\\s]+/gi, // previously /[#\\-+.]*\\b[a-z\\d\\-=+%.]+/gi but didn't catch special characters.\n\t_unitExp = /^[+\\-=e\\s\\d]*\\d+[.\\d]*([a-z]*|%)\\s*$/i,\n\t_globalTimeline, _win, _coreInitted, _doc,\n\t_globals = {},\n\t_installScope = {},\n\t_coreReady,\n\t_install = scope => (_installScope = _merge(scope, _globals)) && gsap,\n\t_missingPlugin = (property, value) => console.warn(\"Invalid property\", property, \"set to\", value, \"Missing plugin? gsap.registerPlugin()\"),\n\t_warn = (message, suppress) => !suppress && console.warn(message),\n\t_addGlobal = (name, obj) => (name && (_globals[name] = obj) && (_installScope && (_installScope[name] = obj))) || _globals,\n\t_emptyFunc = () => 0,\n\t_startAtRevertConfig = {suppressEvents: true, isStart: true, kill: false},\n\t_revertConfigNoKill = {suppressEvents: true, kill: false},\n\t_revertConfig = {suppressEvents: true},\n\t_reservedProps = {},\n\t_lazyTweens = [],\n\t_lazyLookup = {},\n\t_lastRenderedFrame,\n\t_plugins = {},\n\t_effects = {},\n\t_nextGCFrame = 30,\n\t_harnessPlugins = [],\n\t_callbackNames = \"\",\n\t_harness = targets => {\n\t\tlet target = targets[0],\n\t\t\tharnessPlugin, i;\n\t\t_isObject(target) || _isFunction(target) || (targets = [targets]);\n\t\tif (!(harnessPlugin = (target._gsap || {}).harness)) { // find the first target with a harness. We assume targets passed into an animation will be of similar type, meaning the same kind of harness can be used for them all (performance optimization)\n\t\t\ti = _harnessPlugins.length;\n\t\t\twhile (i-- && !_harnessPlugins[i].targetTest(target)) {\t}\n\t\t\tharnessPlugin = _harnessPlugins[i];\n\t\t}\n\t\ti = targets.length;\n\t\twhile (i--) {\n\t\t\t(targets[i] && (targets[i]._gsap || (targets[i]._gsap = new GSCache(targets[i], harnessPlugin)))) || targets.splice(i, 1);\n\t\t}\n\t\treturn targets;\n\t},\n\t_getCache = target => target._gsap || _harness(toArray(target))[0]._gsap,\n\t_getProperty = (target, property, v) => (v = target[property]) && _isFunction(v) ? target[property]() : (_isUndefined(v) && target.getAttribute && target.getAttribute(property)) || v,\n\t_forEachName = (names, func) => ((names = names.split(\",\")).forEach(func)) || names, //split a comma-delimited list of names into an array, then run a forEach() function and return the split array (this is just a way to consolidate/shorten some code).\n\t_round = value => Math.round(value * 100000) / 100000 || 0,\n\t_roundPrecise = value => Math.round(value * 10000000) / 10000000 || 0, // increased precision mostly for timing values.\n\t_parseRelative = (start, value) => {\n\t\tlet operator = value.charAt(0),\n\t\t\tend = parseFloat(value.substr(2));\n\t\tstart = parseFloat(start);\n\t\treturn operator === \"+\" ? start + end : operator === \"-\" ? start - end : operator === \"*\" ? start * end : start / end;\n\t},\n\t_arrayContainsAny = (toSearch, toFind) => { //searches one array to find matches for any of the items in the toFind array. As soon as one is found, it returns true. It does NOT return all the matches; it's simply a boolean search.\n\t\tlet l = toFind.length,\n\t\t\ti = 0;\n\t\tfor (; toSearch.indexOf(toFind[i]) < 0 && ++i < l;) { }\n\t\treturn (i < l);\n\t},\n\t_lazyRender = () => {\n\t\tlet l = _lazyTweens.length,\n\t\t\ta = _lazyTweens.slice(0),\n\t\t\ti, tween;\n\t\t_lazyLookup = {};\n\t\t_lazyTweens.length = 0;\n\t\tfor (i = 0; i < l; i++) {\n\t\t\ttween = a[i];\n\t\t\ttween && tween._lazy && (tween.render(tween._lazy[0], tween._lazy[1], true)._lazy = 0);\n\t\t}\n\t},\n\t_lazySafeRender = (animation, time, suppressEvents, force) => {\n\t\t_lazyTweens.length && !_reverting && _lazyRender();\n\t\tanimation.render(time, suppressEvents, force || (_reverting && time < 0 && (animation._initted || animation._startAt)));\n\t\t_lazyTweens.length && !_reverting && _lazyRender(); //in case rendering caused any tweens to lazy-init, we should render them because typically when someone calls seek() or time() or progress(), they expect an immediate render.\n\t},\n\t_numericIfPossible = value => {\n\t\tlet n = parseFloat(value);\n\t\treturn (n || n === 0) && (value + \"\").match(_delimitedValueExp).length < 2 ? n : _isString(value) ? value.trim() : value;\n\t},\n\t_passThrough = p => p,\n\t_setDefaults = (obj, defaults) => {\n\t\tfor (let p in defaults) {\n\t\t\t(p in obj) || (obj[p] = defaults[p]);\n\t\t}\n\t\treturn obj;\n\t},\n\t_setKeyframeDefaults = excludeDuration => (obj, defaults) => {\n\t\tfor (let p in defaults) {\n\t\t\t(p in obj) || (p === \"duration\" && excludeDuration) || p === \"ease\" || (obj[p] = defaults[p]);\n\t\t}\n\t},\n\t_merge = (base, toMerge) => {\n\t\tfor (let p in toMerge) {\n\t\t\tbase[p] = toMerge[p];\n\t\t}\n\t\treturn base;\n\t},\n\t_mergeDeep = (base, toMerge) => {\n\t\tfor (let p in toMerge) {\n\t\t\tp !== \"__proto__\" && p !== \"constructor\" && p !== \"prototype\" && (base[p] = _isObject(toMerge[p]) ? _mergeDeep(base[p] || (base[p] = {}), toMerge[p]) : toMerge[p]);\n\t\t}\n\t\treturn base;\n\t},\n\t_copyExcluding = (obj, excluding) => {\n\t\tlet copy = {},\n\t\t\tp;\n\t\tfor (p in obj) {\n\t\t\t(p in excluding) || (copy[p] = obj[p]);\n\t\t}\n\t\treturn copy;\n\t},\n\t_inheritDefaults = vars => {\n\t\tlet parent = vars.parent || _globalTimeline,\n\t\t\tfunc = vars.keyframes ? _setKeyframeDefaults(_isArray(vars.keyframes)) : _setDefaults;\n\t\tif (_isNotFalse(vars.inherit)) {\n\t\t\twhile (parent) {\n\t\t\t\tfunc(vars, parent.vars.defaults);\n\t\t\t\tparent = parent.parent || parent._dp;\n\t\t\t}\n\t\t}\n\t\treturn vars;\n\t},\n\t_arraysMatch = (a1, a2) => {\n\t\tlet i = a1.length,\n\t\t\tmatch = i === a2.length;\n\t\twhile (match && i-- && a1[i] === a2[i]) { }\n\t\treturn i < 0;\n\t},\n\t_addLinkedListItem = (parent, child, firstProp = \"_first\", lastProp = \"_last\", sortBy) => {\n\t\tlet prev = parent[lastProp],\n\t\t\tt;\n\t\tif (sortBy) {\n\t\t\tt = child[sortBy];\n\t\t\twhile (prev && prev[sortBy] > t) {\n\t\t\t\tprev = prev._prev;\n\t\t\t}\n\t\t}\n\t\tif (prev) {\n\t\t\tchild._next = prev._next;\n\t\t\tprev._next = child;\n\t\t} else {\n\t\t\tchild._next = parent[firstProp];\n\t\t\tparent[firstProp] = child;\n\t\t}\n\t\tif (child._next) {\n\t\t\tchild._next._prev = child;\n\t\t} else {\n\t\t\tparent[lastProp] = child;\n\t\t}\n\t\tchild._prev = prev;\n\t\tchild.parent = child._dp = parent;\n\t\treturn child;\n\t},\n\t_removeLinkedListItem = (parent, child, firstProp = \"_first\", lastProp = \"_last\") => {\n\t\tlet prev = child._prev,\n\t\t\tnext = child._next;\n\t\tif (prev) {\n\t\t\tprev._next = next;\n\t\t} else if (parent[firstProp] === child) {\n\t\t\tparent[firstProp] = next;\n\t\t}\n\t\tif (next) {\n\t\t\tnext._prev = prev;\n\t\t} else if (parent[lastProp] === child) {\n\t\t\tparent[lastProp] = prev;\n\t\t}\n\t\tchild._next = child._prev = child.parent = null; // don't delete the _dp just so we can revert if necessary. But parent should be null to indicate the item isn't in a linked list.\n\t},\n\t_removeFromParent = (child, onlyIfParentHasAutoRemove) => {\n\t\tchild.parent && (!onlyIfParentHasAutoRemove || child.parent.autoRemoveChildren) && child.parent.remove && child.parent.remove(child);\n\t\tchild._act = 0;\n\t},\n\t_uncache = (animation, child) => {\n\t\tif (animation && (!child || child._end > animation._dur || child._start < 0)) { // performance optimization: if a child animation is passed in we should only uncache if that child EXTENDS the animation (its end time is beyond the end)\n\t\t\tlet a = animation;\n\t\t\twhile (a) {\n\t\t\t\ta._dirty = 1;\n\t\t\t\ta = a.parent;\n\t\t\t}\n\t\t}\n\t\treturn animation;\n\t},\n\t_recacheAncestors = animation => {\n\t\tlet parent = animation.parent;\n\t\twhile (parent && parent.parent) { //sometimes we must force a re-sort of all children and update the duration/totalDuration of all ancestor timelines immediately in case, for example, in the middle of a render loop, one tween alters another tween's timeScale which shoves its startTime before 0, forcing the parent timeline to shift around and shiftChildren() which could affect that next tween's render (startTime). Doesn't matter for the root timeline though.\n\t\t\tparent._dirty = 1;\n\t\t\tparent.totalDuration();\n\t\t\tparent = parent.parent;\n\t\t}\n\t\treturn animation;\n\t},\n\t_rewindStartAt = (tween, totalTime, suppressEvents, force) => tween._startAt && (_reverting ? tween._startAt.revert(_revertConfigNoKill) : (tween.vars.immediateRender && !tween.vars.autoRevert) || tween._startAt.render(totalTime, true, force)),\n\t_hasNoPausedAncestors = animation => !animation || (animation._ts && _hasNoPausedAncestors(animation.parent)),\n\t_elapsedCycleDuration = animation => animation._repeat ? _animationCycle(animation._tTime, (animation = animation.duration() + animation._rDelay)) * animation : 0,\n\t// feed in the totalTime and cycleDuration and it'll return the cycle (iteration minus 1) and if the playhead is exactly at the very END, it will NOT bump up to the next cycle.\n\t_animationCycle = (tTime, cycleDuration) => {\n\t\tlet whole = Math.floor(tTime = _roundPrecise(tTime / cycleDuration));\n\t\treturn tTime && (whole === tTime) ? whole - 1 : whole;\n\t},\n\t_parentToChildTotalTime = (parentTime, child) => (parentTime - child._start) * child._ts + (child._ts >= 0 ? 0 : (child._dirty ? child.totalDuration() : child._tDur)),\n\t_setEnd = animation => (animation._end = _roundPrecise(animation._start + ((animation._tDur / Math.abs(animation._ts || animation._rts || _tinyNum)) || 0))),\n\t_alignPlayhead = (animation, totalTime) => { // adjusts the animation's _start and _end according to the provided totalTime (only if the parent's smoothChildTiming is true and the animation isn't paused). It doesn't do any rendering or forcing things back into parent timelines, etc. - that's what totalTime() is for.\n\t\tlet parent = animation._dp;\n\t\tif (parent && parent.smoothChildTiming && animation._ts) {\n\t\t\tanimation._start = _roundPrecise(parent._time - (animation._ts > 0 ? totalTime / animation._ts : ((animation._dirty ? animation.totalDuration() : animation._tDur) - totalTime) / -animation._ts));\n\t\t\t_setEnd(animation);\n\t\t\tparent._dirty || _uncache(parent, animation); //for performance improvement. If the parent's cache is already dirty, it already took care of marking the ancestors as dirty too, so skip the function call here.\n\t\t}\n\t\treturn animation;\n\t},\n\t/*\n\t_totalTimeToTime = (clampedTotalTime, duration, repeat, repeatDelay, yoyo) => {\n\t\tlet cycleDuration = duration + repeatDelay,\n\t\t\ttime = _round(clampedTotalTime % cycleDuration);\n\t\tif (time > duration) {\n\t\t\ttime = duration;\n\t\t}\n\t\treturn (yoyo && (~~(clampedTotalTime / cycleDuration) & 1)) ? duration - time : time;\n\t},\n\t*/\n\t_postAddChecks = (timeline, child) => {\n\t\tlet t;\n\t\tif (child._time || (!child._dur && child._initted) || (child._start < timeline._time && (child._dur || !child.add))) { // in case, for example, the _start is moved on a tween that has already rendered, or if it's being inserted into a timeline BEFORE where the playhead is currently. Imagine it's at its end state, then the startTime is moved WAY later (after the end of this timeline), it should render at its beginning. Special case: if it's a timeline (has .add() method) and no duration, we can skip rendering because the user may be populating it AFTER adding it to a parent timeline (unconventional, but possible, and we wouldn't want it to get removed if the parent's autoRemoveChildren is true).\n\t\t\tt = _parentToChildTotalTime(timeline.rawTime(), child);\n\t\t\tif (!child._dur || _clamp(0, child.totalDuration(), t) - child._tTime > _tinyNum) {\n\t\t\t\tchild.render(t, true);\n\t\t\t}\n\t\t}\n\t\t//if the timeline has already ended but the inserted tween/timeline extends the duration, we should enable this timeline again so that it renders properly. We should also align the playhead with the parent timeline's when appropriate.\n\t\tif (_uncache(timeline, child)._dp && timeline._initted && timeline._time >= timeline._dur && timeline._ts) {\n\t\t\t//in case any of the ancestors had completed but should now be enabled...\n\t\t\tif (timeline._dur < timeline.duration()) {\n\t\t\t\tt = timeline;\n\t\t\t\twhile (t._dp) {\n\t\t\t\t\t(t.rawTime() >= 0) && t.totalTime(t._tTime); //moves the timeline (shifts its startTime) if necessary, and also enables it. If it's currently zero, though, it may not be scheduled to render until later so there's no need to force it to align with the current playhead position. Only move to catch up with the playhead.\n\t\t\t\t\tt = t._dp;\n\t\t\t\t}\n\t\t\t}\n\t\t\ttimeline._zTime = -_tinyNum; // helps ensure that the next render() will be forced (crossingStart = true in render()), even if the duration hasn't changed (we're adding a child which would need to get rendered). Definitely an edge case. Note: we MUST do this AFTER the loop above where the totalTime() might trigger a render() because this _addToTimeline() method gets called from the Animation constructor, BEFORE tweens even record their targets, etc. so we wouldn't want things to get triggered in the wrong order.\n\t\t}\n\t},\n\t_addToTimeline = (timeline, child, position, skipChecks) => {\n\t\tchild.parent && _removeFromParent(child);\n\t\tchild._start = _roundPrecise((_isNumber(position) ? position : position || timeline !== _globalTimeline ? _parsePosition(timeline, position, child) : timeline._time) + child._delay);\n\t\tchild._end = _roundPrecise(child._start + ((child.totalDuration() / Math.abs(child.timeScale())) || 0));\n\t\t_addLinkedListItem(timeline, child, \"_first\", \"_last\", timeline._sort ? \"_start\" : 0);\n\t\t_isFromOrFromStart(child) || (timeline._recent = child);\n\t\tskipChecks || _postAddChecks(timeline, child);\n\t\ttimeline._ts < 0 && _alignPlayhead(timeline, timeline._tTime); // if the timeline is reversed and the new child makes it longer, we may need to adjust the parent's _start (push it back)\n\t\treturn timeline;\n\t},\n\t_scrollTrigger = (animation, trigger) => (_globals.ScrollTrigger || _missingPlugin(\"scrollTrigger\", trigger)) && _globals.ScrollTrigger.create(trigger, animation),\n\t_attemptInitTween = (tween, time, force, suppressEvents, tTime) => {\n\t\t_initTween(tween, time, tTime);\n\t\tif (!tween._initted) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (!force && tween._pt && !_reverting && ((tween._dur && tween.vars.lazy !== false) || (!tween._dur && tween.vars.lazy)) && _lastRenderedFrame !== _ticker.frame) {\n\t\t\t_lazyTweens.push(tween);\n\t\t\ttween._lazy = [tTime, suppressEvents];\n\t\t\treturn 1;\n\t\t}\n\t},\n\t_parentPlayheadIsBeforeStart = ({parent}) => parent && parent._ts && parent._initted && !parent._lock && (parent.rawTime() < 0 || _parentPlayheadIsBeforeStart(parent)), // check parent's _lock because when a timeline repeats/yoyos and does its artificial wrapping, we shouldn't force the ratio back to 0\n\t_isFromOrFromStart = ({data}) => data === \"isFromStart\" || data === \"isStart\",\n\t_renderZeroDurationTween = (tween, totalTime, suppressEvents, force) => {\n\t\tlet prevRatio = tween.ratio,\n\t\t\tratio = totalTime < 0 || (!totalTime && ((!tween._start && _parentPlayheadIsBeforeStart(tween) && !(!tween._initted && _isFromOrFromStart(tween))) || ((tween._ts < 0 || tween._dp._ts < 0) && !_isFromOrFromStart(tween)))) ? 0 : 1, // if the tween or its parent is reversed and the totalTime is 0, we should go to a ratio of 0. Edge case: if a from() or fromTo() stagger tween is placed later in a timeline, the \"startAt\" zero-duration tween could initially render at a time when the parent timeline's playhead is technically BEFORE where this tween is, so make sure that any \"from\" and \"fromTo\" startAt tweens are rendered the first time at a ratio of 1.\n\t\t\trepeatDelay = tween._rDelay,\n\t\t\ttTime = 0,\n\t\t\tpt, iteration, prevIteration;\n\t\tif (repeatDelay && tween._repeat) { // in case there's a zero-duration tween that has a repeat with a repeatDelay\n\t\t\ttTime = _clamp(0, tween._tDur, totalTime);\n\t\t\titeration = _animationCycle(tTime, repeatDelay);\n\t\t\ttween._yoyo && (iteration & 1) && (ratio = 1 - ratio);\n\t\t\tif (iteration !== _animationCycle(tween._tTime, repeatDelay)) { // if iteration changed\n\t\t\t\tprevRatio = 1 - ratio;\n\t\t\t\ttween.vars.repeatRefresh && tween._initted && tween.invalidate();\n\t\t\t}\n\t\t}\n\t\tif (ratio !== prevRatio || _reverting || force || tween._zTime === _tinyNum || (!totalTime && tween._zTime)) {\n\t\t\tif (!tween._initted && _attemptInitTween(tween, totalTime, force, suppressEvents, tTime)) { // if we render the very beginning (time == 0) of a fromTo(), we must force the render (normal tweens wouldn't need to render at a time of 0 when the prevTime was also 0). This is also mandatory to make sure overwriting kicks in immediately.\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprevIteration = tween._zTime;\n\t\t\ttween._zTime = totalTime || (suppressEvents ? _tinyNum : 0); // when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration tween, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.\n\t\t\tsuppressEvents || (suppressEvents = totalTime && !prevIteration); // if it was rendered previously at exactly 0 (_zTime) and now the playhead is moving away, DON'T fire callbacks otherwise they'll seem like duplicates.\n\t\t\ttween.ratio = ratio;\n\t\t\ttween._from && (ratio = 1 - ratio);\n\t\t\ttween._time = 0;\n\t\t\ttween._tTime = tTime;\n\t\t\tpt = tween._pt;\n\t\t\twhile (pt) {\n\t\t\t\tpt.r(ratio, pt.d);\n\t\t\t\tpt = pt._next;\n\t\t\t}\n\t\t\ttotalTime < 0 && _rewindStartAt(tween, totalTime, suppressEvents, true);\n\t\t\ttween._onUpdate && !suppressEvents && _callback(tween, \"onUpdate\");\n\t\t\ttTime && tween._repeat && !suppressEvents && tween.parent && _callback(tween, \"onRepeat\");\n\t\t\tif ((totalTime >= tween._tDur || totalTime < 0) && tween.ratio === ratio) {\n\t\t\t\tratio && _removeFromParent(tween, 1);\n\t\t\t\tif (!suppressEvents && !_reverting) {\n\t\t\t\t\t_callback(tween, (ratio ? \"onComplete\" : \"onReverseComplete\"), true);\n\t\t\t\t\ttween._prom && tween._prom();\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (!tween._zTime) {\n\t\t\ttween._zTime = totalTime;\n\t\t}\n\t},\n\t_findNextPauseTween = (animation, prevTime, time) => {\n\t\tlet child;\n\t\tif (time > prevTime) {\n\t\t\tchild = animation._first;\n\t\t\twhile (child && child._start <= time) {\n\t\t\t\tif (child.data === \"isPause\" && child._start > prevTime) {\n\t\t\t\t\treturn child;\n\t\t\t\t}\n\t\t\t\tchild = child._next;\n\t\t\t}\n\t\t} else {\n\t\t\tchild = animation._last;\n\t\t\twhile (child && child._start >= time) {\n\t\t\t\tif (child.data === \"isPause\" && child._start < prevTime) {\n\t\t\t\t\treturn child;\n\t\t\t\t}\n\t\t\t\tchild = child._prev;\n\t\t\t}\n\t\t}\n\t},\n\t_setDuration = (animation, duration, skipUncache, leavePlayhead) => {\n\t\tlet repeat = animation._repeat,\n\t\t\tdur = _roundPrecise(duration) || 0,\n\t\t\ttotalProgress = animation._tTime / animation._tDur;\n\t\ttotalProgress && !leavePlayhead && (animation._time *= dur / animation._dur);\n\t\tanimation._dur = dur;\n\t\tanimation._tDur = !repeat ? dur : repeat < 0 ? 1e10 : _roundPrecise(dur * (repeat + 1) + (animation._rDelay * repeat));\n\t\ttotalProgress > 0 && !leavePlayhead && _alignPlayhead(animation, (animation._tTime = animation._tDur * totalProgress));\n\t\tanimation.parent && _setEnd(animation);\n\t\tskipUncache || _uncache(animation.parent, animation);\n\t\treturn animation;\n\t},\n\t_onUpdateTotalDuration = animation => (animation instanceof Timeline) ? _uncache(animation) : _setDuration(animation, animation._dur),\n\t_zeroPosition = {_start:0, endTime:_emptyFunc, totalDuration:_emptyFunc},\n\t_parsePosition = (animation, position, percentAnimation) => {\n\t\tlet labels = animation.labels,\n\t\t\trecent = animation._recent || _zeroPosition,\n\t\t\tclippedDuration = animation.duration() >= _bigNum ? recent.endTime(false) : animation._dur, //in case there's a child that infinitely repeats, users almost never intend for the insertion point of a new child to be based on a SUPER long value like that so we clip it and assume the most recently-added child's endTime should be used instead.\n\t\t\ti, offset, isPercent;\n\t\tif (_isString(position) && (isNaN(position) || (position in labels))) { //if the string is a number like \"1\", check to see if there's a label with that name, otherwise interpret it as a number (absolute value).\n\t\t\toffset = position.charAt(0);\n\t\t\tisPercent = position.substr(-1) === \"%\";\n\t\t\ti = position.indexOf(\"=\");\n\t\t\tif (offset === \"<\" || offset === \">\") {\n\t\t\t\ti >= 0 && (position = position.replace(/=/, \"\"));\n\t\t\t\treturn (offset === \"<\" ? recent._start : recent.endTime(recent._repeat >= 0)) + (parseFloat(position.substr(1)) || 0) * (isPercent ? (i < 0 ? recent : percentAnimation).totalDuration() / 100 : 1);\n\t\t\t}\n\t\t\tif (i < 0) {\n\t\t\t\t(position in labels) || (labels[position] = clippedDuration);\n\t\t\t\treturn labels[position];\n\t\t\t}\n\t\t\toffset = parseFloat(position.charAt(i-1) + position.substr(i+1));\n\t\t\tif (isPercent && percentAnimation) {\n\t\t\t\toffset = offset / 100 * (_isArray(percentAnimation) ? percentAnimation[0] : percentAnimation).totalDuration();\n\t\t\t}\n\t\t\treturn (i > 1) ? _parsePosition(animation, position.substr(0, i-1), percentAnimation) + offset : clippedDuration + offset;\n\t\t}\n\t\treturn (position == null) ? clippedDuration : +position;\n\t},\n\t_createTweenType = (type, params, timeline) => {\n\t\tlet isLegacy = _isNumber(params[1]),\n\t\t\tvarsIndex = (isLegacy ? 2 : 1) + (type < 2 ? 0 : 1),\n\t\t\tvars = params[varsIndex],\n\t\t\tirVars, parent;\n\t\tisLegacy && (vars.duration = params[1]);\n\t\tvars.parent = timeline;\n\t\tif (type) {\n\t\t\tirVars = vars;\n\t\t\tparent = timeline;\n\t\t\twhile (parent && !(\"immediateRender\" in irVars)) { // inheritance hasn't happened yet, but someone may have set a default in an ancestor timeline. We could do vars.immediateRender = _isNotFalse(_inheritDefaults(vars).immediateRender) but that'd exact a slight performance penalty because _inheritDefaults() also runs in the Tween constructor. We're paying a small kb price here to gain speed.\n\t\t\t\tirVars = parent.vars.defaults || {};\n\t\t\t\tparent = _isNotFalse(parent.vars.inherit) && parent.parent;\n\t\t\t}\n\t\t\tvars.immediateRender = _isNotFalse(irVars.immediateRender);\n\t\t\ttype < 2 ? (vars.runBackwards = 1) : (vars.startAt = params[varsIndex - 1]); // \"from\" vars\n\t\t}\n\t\treturn new Tween(params[0], vars, params[varsIndex + 1]);\n\t},\n\t_conditionalReturn = (value, func) => value || value === 0 ? func(value) : func,\n\t_clamp = (min, max, value) => value < min ? min : value > max ? max : value,\n\tgetUnit = (value, v) => !_isString(value) || !(v = _unitExp.exec(value)) ? \"\" : v[1], // note: protect against padded numbers as strings, like \"100.100\". That shouldn't return \"00\" as the unit. If it's numeric, return no unit.\n\tclamp = (min, max, value) => _conditionalReturn(value, v => _clamp(min, max, v)),\n\t_slice = [].slice,\n\t_isArrayLike = (value, nonEmpty) => value && (_isObject(value) && \"length\" in value && ((!nonEmpty && !value.length) || ((value.length - 1) in value && _isObject(value[0]))) && !value.nodeType && value !== _win),\n\t_flatten = (ar, leaveStrings, accumulator = []) => ar.forEach(value => (_isString(value) && !leaveStrings) || _isArrayLike(value, 1) ? accumulator.push(...toArray(value)) : accumulator.push(value)) || accumulator,\n\t//takes any value and returns an array. If it's a string (and leaveStrings isn't true), it'll use document.querySelectorAll() and convert that to an array. It'll also accept iterables like jQuery objects.\n\ttoArray = (value, scope, leaveStrings) => _context && !scope && _context.selector ? _context.selector(value) : _isString(value) && !leaveStrings && (_coreInitted || !_wake()) ? _slice.call((scope || _doc).querySelectorAll(value), 0) : _isArray(value) ? _flatten(value, leaveStrings) : _isArrayLike(value) ? _slice.call(value, 0) : value ? [value] : [],\n\tselector = value => {\n\t\tvalue = toArray(value)[0] || _warn(\"Invalid scope\") || {};\n\t\treturn v => {\n\t\t\tlet el = value.current || value.nativeElement || value;\n\t\t\treturn toArray(v, el.querySelectorAll ? el : el === value ? _warn(\"Invalid scope\") || _doc.createElement(\"div\") : value);\n\t\t};\n\t},\n\tshuffle = a => a.sort(() => .5 - Math.random()), // alternative that's a bit faster and more reliably diverse but bigger: for (let j, v, i = a.length; i; j = (Math.random() * i) | 0, v = a[--i], a[i] = a[j], a[j] = v); return a;\n\t//for distributing values across an array. Can accept a number, a function or (most commonly) a function which can contain the following properties: {base, amount, from, ease, grid, axis, length, each}. Returns a function that expects the following parameters: index, target, array. Recognizes the following\n\tdistribute = v => {\n\t\tif (_isFunction(v)) {\n\t\t\treturn v;\n\t\t}\n\t\tlet vars = _isObject(v) ? v : {each:v}, //n:1 is just to indicate v was a number; we leverage that later to set v according to the length we get. If a number is passed in, we treat it like the old stagger value where 0.1, for example, would mean that things would be distributed with 0.1 between each element in the array rather than a total \"amount\" that's chunked out among them all.\n\t\t\tease = _parseEase(vars.ease),\n\t\t\tfrom = vars.from || 0,\n\t\t\tbase = parseFloat(vars.base) || 0,\n\t\t\tcache = {},\n\t\t\tisDecimal = (from > 0 && from < 1),\n\t\t\tratios = isNaN(from) || isDecimal,\n\t\t\taxis = vars.axis,\n\t\t\tratioX = from,\n\t\t\tratioY = from;\n\t\tif (_isString(from)) {\n\t\t\tratioX = ratioY = {center:.5, edges:.5, end:1}[from] || 0;\n\t\t} else if (!isDecimal && ratios) {\n\t\t\tratioX = from[0];\n\t\t\tratioY = from[1];\n\t\t}\n\t\treturn (i, target, a) => {\n\t\t\tlet l = (a || vars).length,\n\t\t\t\tdistances = cache[l],\n\t\t\t\toriginX, originY, x, y, d, j, max, min, wrapAt;\n\t\t\tif (!distances) {\n\t\t\t\twrapAt = (vars.grid === \"auto\") ? 0 : (vars.grid || [1, _bigNum])[1];\n\t\t\t\tif (!wrapAt) {\n\t\t\t\t\tmax = -_bigNum;\n\t\t\t\t\twhile (max < (max = a[wrapAt++].getBoundingClientRect().left) && wrapAt < l) { }\n\t\t\t\t\twrapAt < l && wrapAt--;\n\t\t\t\t}\n\t\t\t\tdistances = cache[l] = [];\n\t\t\t\toriginX = ratios ? (Math.min(wrapAt, l) * ratioX) - .5 : from % wrapAt;\n\t\t\t\toriginY = wrapAt === _bigNum ? 0 : ratios ? l * ratioY / wrapAt - .5 : (from / wrapAt) | 0;\n\t\t\t\tmax = 0;\n\t\t\t\tmin = _bigNum;\n\t\t\t\tfor (j = 0; j < l; j++) {\n\t\t\t\t\tx = (j % wrapAt) - originX;\n\t\t\t\t\ty = originY - ((j / wrapAt) | 0);\n\t\t\t\t\tdistances[j] = d = !axis ? _sqrt(x * x + y * y) : Math.abs((axis === \"y\") ? y : x);\n\t\t\t\t\t(d > max) && (max = d);\n\t\t\t\t\t(d < min) && (min = d);\n\t\t\t\t}\n\t\t\t\t(from === \"random\") && shuffle(distances);\n\t\t\t\tdistances.max = max - min;\n\t\t\t\tdistances.min = min;\n\t\t\t\tdistances.v = l = (parseFloat(vars.amount) || (parseFloat(vars.each) * (wrapAt > l ? l - 1 : !axis ? Math.max(wrapAt, l / wrapAt) : axis === \"y\" ? l / wrapAt : wrapAt)) || 0) * (from === \"edges\" ? -1 : 1);\n\t\t\t\tdistances.b = (l < 0) ? base - l : base;\n\t\t\t\tdistances.u = getUnit(vars.amount || vars.each) || 0; //unit\n\t\t\t\tease = (ease && l < 0) ? _invertEase(ease) : ease;\n\t\t\t}\n\t\t\tl = ((distances[i] - distances.min) / distances.max) || 0;\n\t\t\treturn _roundPrecise(distances.b + (ease ? ease(l) : l) * distances.v) + distances.u; //round in order to work around floating point errors\n\t\t};\n\t},\n\t_roundModifier = v => { //pass in 0.1 get a function that'll round to the nearest tenth, or 5 to round to the closest 5, or 0.001 to the closest 1000th, etc.\n\t\tlet p = Math.pow(10, ((v + \"\").split(\".\")[1] || \"\").length); //to avoid floating point math errors (like 24 * 0.1 == 2.4000000000000004), we chop off at a specific number of decimal places (much faster than toFixed())\n\t\treturn raw => {\n\t\t\tlet n = _roundPrecise(Math.round(parseFloat(raw) / v) * v * p);\n\t\t\treturn (n - n % 1) / p + (_isNumber(raw) ? 0 : getUnit(raw)); // n - n % 1 replaces Math.floor() in order to handle negative values properly. For example, Math.floor(-150.00000000000003) is 151!\n\t\t};\n\t},\n\tsnap = (snapTo, value) => {\n\t\tlet isArray = _isArray(snapTo),\n\t\t\tradius, is2D;\n\t\tif (!isArray && _isObject(snapTo)) {\n\t\t\tradius = isArray = snapTo.radius || _bigNum;\n\t\t\tif (snapTo.values) {\n\t\t\t\tsnapTo = toArray(snapTo.values);\n\t\t\t\tif ((is2D = !_isNumber(snapTo[0]))) {\n\t\t\t\t\tradius *= radius; //performance optimization so we don't have to Math.sqrt() in the loop.\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsnapTo = _roundModifier(snapTo.increment);\n\t\t\t}\n\t\t}\n\t\treturn _conditionalReturn(value, !isArray ? _roundModifier(snapTo) : _isFunction(snapTo) ? raw => {is2D = snapTo(raw); return Math.abs(is2D - raw) <= radius ? is2D : raw; } : raw => {\n\t\t\tlet x = parseFloat(is2D ? raw.x : raw),\n\t\t\t\ty = parseFloat(is2D ? raw.y : 0),\n\t\t\t\tmin = _bigNum,\n\t\t\t\tclosest = 0,\n\t\t\t\ti = snapTo.length,\n\t\t\t\tdx, dy;\n\t\t\twhile (i--) {\n\t\t\t\tif (is2D) {\n\t\t\t\t\tdx = snapTo[i].x - x;\n\t\t\t\t\tdy = snapTo[i].y - y;\n\t\t\t\t\tdx = dx * dx + dy * dy;\n\t\t\t\t} else {\n\t\t\t\t\tdx = Math.abs(snapTo[i] - x);\n\t\t\t\t}\n\t\t\t\tif (dx < min) {\n\t\t\t\t\tmin = dx;\n\t\t\t\t\tclosest = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tclosest = (!radius || min <= radius) ? snapTo[closest] : raw;\n\t\t\treturn (is2D || closest === raw || _isNumber(raw)) ? closest : closest + getUnit(raw);\n\t\t});\n\t},\n\trandom = (min, max, roundingIncrement, returnFunction) => _conditionalReturn(_isArray(min) ? !max : roundingIncrement === true ? !!(roundingIncrement = 0) : !returnFunction, () => _isArray(min) ? min[~~(Math.random() * min.length)] : (roundingIncrement = roundingIncrement || 1e-5) && (returnFunction = roundingIncrement < 1 ? 10 ** ((roundingIncrement + \"\").length - 2) : 1) && (Math.floor(Math.round((min - roundingIncrement / 2 + Math.random() * (max - min + roundingIncrement * .99)) / roundingIncrement) * roundingIncrement * returnFunction) / returnFunction)),\n\tpipe = (...functions) => value => functions.reduce((v, f) => f(v), value),\n\tunitize = (func, unit) => value => func(parseFloat(value)) + (unit || getUnit(value)),\n\tnormalize = (min, max, value) => mapRange(min, max, 0, 1, value),\n\t_wrapArray = (a, wrapper, value) => _conditionalReturn(value, index => a[~~wrapper(index)]),\n\twrap = function(min, max, value) { // NOTE: wrap() CANNOT be an arrow function! A very odd compiling bug causes problems (unrelated to GSAP).\n\t\tlet range = max - min;\n\t\treturn _isArray(min) ? _wrapArray(min, wrap(0, min.length), max) : _conditionalReturn(value, value => ((range + (value - min) % range) % range) + min);\n\t},\n\twrapYoyo = (min, max, value) => {\n\t\tlet range = max - min,\n\t\t\ttotal = range * 2;\n\t\treturn _isArray(min) ? _wrapArray(min, wrapYoyo(0, min.length - 1), max) : _conditionalReturn(value, value => {\n\t\t\tvalue = (total + (value - min) % total) % total || 0;\n\t\t\treturn min + ((value > range) ? (total - value) : value);\n\t\t});\n\t},\n\t_replaceRandom = value => { //replaces all occurrences of random(...) in a string with the calculated random value. can be a range like random(-100, 100, 5) or an array like random([0, 100, 500])\n\t\tlet prev = 0,\n\t\t\ts = \"\",\n\t\t\ti, nums, end, isArray;\n\t\twhile (~(i = value.indexOf(\"random(\", prev))) {\n\t\t\tend = value.indexOf(\")\", i);\n\t\t\tisArray = value.charAt(i + 7) === \"[\";\n\t\t\tnums = value.substr(i + 7, end - i - 7).match(isArray ? _delimitedValueExp : _strictNumExp);\n\t\t\ts += value.substr(prev, i - prev) + random(isArray ? nums : +nums[0], isArray ? 0 : +nums[1], +nums[2] || 1e-5);\n\t\t\tprev = end + 1;\n\t\t}\n\t\treturn s + value.substr(prev, value.length - prev);\n\t},\n\tmapRange = (inMin, inMax, outMin, outMax, value) => {\n\t\tlet inRange = inMax - inMin,\n\t\t\toutRange = outMax - outMin;\n\t\treturn _conditionalReturn(value, value => outMin + ((((value - inMin) / inRange) * outRange) || 0));\n\t},\n\tinterpolate = (start, end, progress, mutate) => {\n\t\tlet func = isNaN(start + end) ? 0 : p => (1 - p) * start + p * end;\n\t\tif (!func) {\n\t\t\tlet isString = _isString(start),\n\t\t\t\tmaster = {},\n\t\t\t\tp, i, interpolators, l, il;\n\t\t\tprogress === true && (mutate = 1) && (progress = null);\n\t\t\tif (isString) {\n\t\t\t\tstart = {p: start};\n\t\t\t\tend = {p: end};\n\n\t\t\t} else if (_isArray(start) && !_isArray(end)) {\n\t\t\t\tinterpolators = [];\n\t\t\t\tl = start.length;\n\t\t\t\til = l - 2;\n\t\t\t\tfor (i = 1; i < l; i++) {\n\t\t\t\t\tinterpolators.push(interpolate(start[i-1], start[i])); //build the interpolators up front as a performance optimization so that when the function is called many times, it can just reuse them.\n\t\t\t\t}\n\t\t\t\tl--;\n\t\t\t\tfunc = p => {\n\t\t\t\t\tp *= l;\n\t\t\t\t\tlet i = Math.min(il, ~~p);\n\t\t\t\t\treturn interpolators[i](p - i);\n\t\t\t\t};\n\t\t\t\tprogress = end;\n\t\t\t} else if (!mutate) {\n\t\t\t\tstart = _merge(_isArray(start) ? [] : {}, start);\n\t\t\t}\n\t\t\tif (!interpolators) {\n\t\t\t\tfor (p in end) {\n\t\t\t\t\t_addPropTween.call(master, start, p, \"get\", end[p]);\n\t\t\t\t}\n\t\t\t\tfunc = p => _renderPropTweens(p, master) || (isString ? start.p : start);\n\t\t\t}\n\t\t}\n\t\treturn _conditionalReturn(progress, func);\n\t},\n\t_getLabelInDirection = (timeline, fromTime, backward) => { //used for nextLabel() and previousLabel()\n\t\tlet labels = timeline.labels,\n\t\t\tmin = _bigNum,\n\t\t\tp, distance, label;\n\t\tfor (p in labels) {\n\t\t\tdistance = labels[p] - fromTime;\n\t\t\tif ((distance < 0) === !!backward && distance && min > (distance = Math.abs(distance))) {\n\t\t\t\tlabel = p;\n\t\t\t\tmin = distance;\n\t\t\t}\n\t\t}\n\t\treturn label;\n\t},\n\t_callback = (animation, type, executeLazyFirst) => {\n\t\tlet v = animation.vars,\n\t\t\tcallback = v[type],\n\t\t\tprevContext = _context,\n\t\t\tcontext = animation._ctx,\n\t\t\tparams, scope, result;\n\t\tif (!callback) {\n\t\t\treturn;\n\t\t}\n\t\tparams = v[type + \"Params\"];\n\t\tscope = v.callbackScope || animation;\n\t\texecuteLazyFirst && _lazyTweens.length && _lazyRender(); //in case rendering caused any tweens to lazy-init, we should render them because typically when a timeline finishes, users expect things to have rendered fully. Imagine an onUpdate on a timeline that reports/checks tweened values.\n\t\tcontext && (_context = context);\n\t\tresult = params ? callback.apply(scope, params) : callback.call(scope);\n\t\t_context = prevContext;\n\t\treturn result;\n\t},\n\t_interrupt = animation => {\n\t\t_removeFromParent(animation);\n\t\tanimation.scrollTrigger && animation.scrollTrigger.kill(!!_reverting);\n\t\tanimation.progress() < 1 && _callback(animation, \"onInterrupt\");\n\t\treturn animation;\n\t},\n\t_quickTween,\n\t_registerPluginQueue = [],\n\t_createPlugin = config => {\n\t\tif (!config) return;\n\t\tconfig = (!config.name && config.default) || config; // UMD packaging wraps things oddly, so for example MotionPathHelper becomes {MotionPathHelper:MotionPathHelper, default:MotionPathHelper}.\n\t\tif (_windowExists() || config.headless) { // edge case: some build tools may pass in a null/undefined value\n\t\t\tlet name = config.name,\n\t\t\t\tisFunc = _isFunction(config),\n\t\t\t\tPlugin = (name && !isFunc && config.init) ? function () {\n\t\t\t\t\tthis._props = [];\n\t\t\t\t} : config, //in case someone passes in an object that's not a plugin, like CustomEase\n\t\t\t\tinstanceDefaults = {init: _emptyFunc, render: _renderPropTweens, add: _addPropTween, kill: _killPropTweensOf, modifier: _addPluginModifier, rawVars: 0},\n\t\t\t\tstatics = {targetTest: 0, get: 0, getSetter: _getSetter, aliases: {}, register: 0};\n\t\t\t_wake();\n\t\t\tif (config !== Plugin) {\n\t\t\t\tif (_plugins[name]) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t_setDefaults(Plugin, _setDefaults(_copyExcluding(config, instanceDefaults), statics)); //static methods\n\t\t\t\t_merge(Plugin.prototype, _merge(instanceDefaults, _copyExcluding(config, statics))); //instance methods\n\t\t\t\t_plugins[(Plugin.prop = name)] = Plugin;\n\t\t\t\tif (config.targetTest) {\n\t\t\t\t\t_harnessPlugins.push(Plugin);\n\t\t\t\t\t_reservedProps[name] = 1;\n\t\t\t\t}\n\t\t\t\tname = (name === \"css\" ? \"CSS\" : name.charAt(0).toUpperCase() + name.substr(1)) + \"Plugin\"; //for the global name. \"motionPath\" should become MotionPathPlugin\n\t\t\t}\n\t\t\t_addGlobal(name, Plugin);\n\t\t\tconfig.register && config.register(gsap, Plugin, PropTween);\n\t\t} else {\n\t\t\t_registerPluginQueue.push(config);\n\t\t}\n\t},\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * COLORS\n * --------------------------------------------------------------------------------------\n */\n\n\t_255 = 255,\n\t_colorLookup = {\n\t\taqua:[0,_255,_255],\n\t\tlime:[0,_255,0],\n\t\tsilver:[192,192,192],\n\t\tblack:[0,0,0],\n\t\tmaroon:[128,0,0],\n\t\tteal:[0,128,128],\n\t\tblue:[0,0,_255],\n\t\tnavy:[0,0,128],\n\t\twhite:[_255,_255,_255],\n\t\tolive:[128,128,0],\n\t\tyellow:[_255,_255,0],\n\t\torange:[_255,165,0],\n\t\tgray:[128,128,128],\n\t\tpurple:[128,0,128],\n\t\tgreen:[0,128,0],\n\t\tred:[_255,0,0],\n\t\tpink:[_255,192,203],\n\t\tcyan:[0,_255,_255],\n\t\ttransparent:[_255,_255,_255,0]\n\t},\n\t// possible future idea to replace the hard-coded color name values - put this in the ticker.wake() where we set the _doc:\n\t// let ctx = _doc.createElement(\"canvas\").getContext(\"2d\");\n\t// _forEachName(\"aqua,lime,silver,black,maroon,teal,blue,navy,white,olive,yellow,orange,gray,purple,green,red,pink,cyan\", color => {ctx.fillStyle = color; _colorLookup[color] = splitColor(ctx.fillStyle)});\n\t_hue = (h, m1, m2) => {\n\t\th += h < 0 ? 1 : h > 1 ? -1 : 0;\n\t\treturn ((((h * 6 < 1) ? m1 + (m2 - m1) * h * 6 : h < .5 ? m2 : (h * 3 < 2) ? m1 + (m2 - m1) * (2 / 3 - h) * 6 : m1) * _255) + .5) | 0;\n\t},\n\tsplitColor = (v, toHSL, forceAlpha) => {\n\t\tlet a = !v ? _colorLookup.black : _isNumber(v) ? [v >> 16, (v >> 8) & _255, v & _255] : 0,\n\t\t\tr, g, b, h, s, l, max, min, d, wasHSL;\n\t\tif (!a) {\n\t\t\tif (v.substr(-1) === \",\") { //sometimes a trailing comma is included and we should chop it off (typically from a comma-delimited list of values like a textShadow:\"2px 2px 2px blue, 5px 5px 5px rgb(255,0,0)\" - in this example \"blue,\" has a trailing comma. We could strip it out inside parseComplex() but we'd need to do it to the beginning and ending values plus it wouldn't provide protection from other potential scenarios like if the user passes in a similar value.\n\t\t\t\tv = v.substr(0, v.length - 1);\n\t\t\t}\n\t\t\tif (_colorLookup[v]) {\n\t\t\t\ta = _colorLookup[v];\n\t\t\t} else if (v.charAt(0) === \"#\") {\n\t\t\t\tif (v.length < 6) { //for shorthand like #9F0 or #9F0F (could have alpha)\n\t\t\t\t\tr = v.charAt(1);\n\t\t\t\t\tg = v.charAt(2);\n\t\t\t\t\tb = v.charAt(3);\n\t\t\t\t\tv = \"#\" + r + r + g + g + b + b + (v.length === 5 ? v.charAt(4) + v.charAt(4) : \"\");\n\t\t\t\t}\n\t\t\t\tif (v.length === 9) { // hex with alpha, like #fd5e53ff\n\t\t\t\t\ta = parseInt(v.substr(1, 6), 16);\n\t\t\t\t\treturn [a >> 16, (a >> 8) & _255, a & _255, parseInt(v.substr(7), 16) / 255];\n\t\t\t\t}\n\t\t\t\tv = parseInt(v.substr(1), 16);\n\t\t\t\ta = [v >> 16, (v >> 8) & _255, v & _255];\n\t\t\t} else if (v.substr(0, 3) === \"hsl\") {\n\t\t\t\ta = wasHSL = v.match(_strictNumExp);\n\t\t\t\tif (!toHSL) {\n\t\t\t\t\th = (+a[0] % 360) / 360;\n\t\t\t\t\ts = +a[1] / 100;\n\t\t\t\t\tl = +a[2] / 100;\n\t\t\t\t\tg = (l <= .5) ? l * (s + 1) : l + s - l * s;\n\t\t\t\t\tr = l * 2 - g;\n\t\t\t\t\ta.length > 3 && (a[3] *= 1); //cast as number\n\t\t\t\t\ta[0] = _hue(h + 1 / 3, r, g);\n\t\t\t\t\ta[1] = _hue(h, r, g);\n\t\t\t\t\ta[2] = _hue(h - 1 / 3, r, g);\n\t\t\t\t} else if (~v.indexOf(\"=\")) { //if relative values are found, just return the raw strings with the relative prefixes in place.\n\t\t\t\t\ta = v.match(_numExp);\n\t\t\t\t\tforceAlpha && a.length < 4 && (a[3] = 1);\n\t\t\t\t\treturn a;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ta = v.match(_strictNumExp) || _colorLookup.transparent;\n\t\t\t}\n\t\t\ta = a.map(Number);\n\t\t}\n\t\tif (toHSL && !wasHSL) {\n\t\t\tr = a[0] / _255;\n\t\t\tg = a[1] / _255;\n\t\t\tb = a[2] / _255;\n\t\t\tmax = Math.max(r, g, b);\n\t\t\tmin = Math.min(r, g, b);\n\t\t\tl = (max + min) / 2;\n\t\t\tif (max === min) {\n\t\t\t\th = s = 0;\n\t\t\t} else {\n\t\t\t\td = max - min;\n\t\t\t\ts = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n\t\t\t\th = max === r ? (g - b) / d + (g < b ? 6 : 0) : max === g ? (b - r) / d + 2 : (r - g) / d + 4;\n\t\t\t\th *= 60;\n\t\t\t}\n\t\t\ta[0] = ~~(h + .5);\n\t\t\ta[1] = ~~(s * 100 + .5);\n\t\t\ta[2] = ~~(l * 100 + .5);\n\t\t}\n\t\tforceAlpha && a.length < 4 && (a[3] = 1);\n\t\treturn a;\n\t},\n\t_colorOrderData = v => { // strips out the colors from the string, finds all the numeric slots (with units) and returns an array of those. The Array also has a \"c\" property which is an Array of the index values where the colors belong. This is to help work around issues where there's a mis-matched order of color/numeric data like drop-shadow(#f00 0px 1px 2px) and drop-shadow(0x 1px 2px #f00). This is basically a helper function used in _formatColors()\n\t\tlet values = [],\n\t\t\tc = [],\n\t\t\ti = -1;\n\t\tv.split(_colorExp).forEach(v => {\n\t\t\tlet a = v.match(_numWithUnitExp) || [];\n\t\t\tvalues.push(...a);\n\t\t\tc.push(i += a.length + 1);\n\t\t});\n\t\tvalues.c = c;\n\t\treturn values;\n\t},\n\t_formatColors = (s, toHSL, orderMatchData) => {\n\t\tlet result = \"\",\n\t\t\tcolors = (s + result).match(_colorExp),\n\t\t\ttype = toHSL ? \"hsla(\" : \"rgba(\",\n\t\t\ti = 0,\n\t\t\tc, shell, d, l;\n\t\tif (!colors) {\n\t\t\treturn s;\n\t\t}\n\t\tcolors = colors.map(color => (color = splitColor(color, toHSL, 1)) && type + (toHSL ? color[0] + \",\" + color[1] + \"%,\" + color[2] + \"%,\" + color[3] : color.join(\",\")) + \")\");\n\t\tif (orderMatchData) {\n\t\t\td = _colorOrderData(s);\n\t\t\tc = orderMatchData.c;\n\t\t\tif (c.join(result) !== d.c.join(result)) {\n\t\t\t\tshell = s.replace(_colorExp, \"1\").split(_numWithUnitExp);\n\t\t\t\tl = shell.length - 1;\n\t\t\t\tfor (; i < l; i++) {\n\t\t\t\t\tresult += shell[i] + (~c.indexOf(i) ? colors.shift() || type + \"0,0,0,0)\" : (d.length ? d : colors.length ? colors : orderMatchData).shift());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!shell) {\n\t\t\tshell = s.split(_colorExp);\n\t\t\tl = shell.length - 1;\n\t\t\tfor (; i < l; i++) {\n\t\t\t\tresult += shell[i] + colors[i];\n\t\t\t}\n\t\t}\n\t\treturn result + shell[l];\n\t},\n\t_colorExp = (function() {\n\t\tlet s = \"(?:\\\\b(?:(?:rgb|rgba|hsl|hsla)\\\\(.+?\\\\))|\\\\B#(?:[0-9a-f]{3,4}){1,2}\\\\b\", //we'll dynamically build this Regular Expression to conserve file size. After building it, it will be able to find rgb(), rgba(), # (hexadecimal), and named color values like red, blue, purple, etc.,\n\t\t\tp;\n\t\tfor (p in _colorLookup) {\n\t\t\ts += \"|\" + p + \"\\\\b\";\n\t\t}\n\t\treturn new RegExp(s + \")\", \"gi\");\n\t})(),\n\t_hslExp = /hsl[a]?\\(/,\n\t_colorStringFilter = a => {\n\t\tlet combined = a.join(\" \"),\n\t\t\ttoHSL;\n\t\t_colorExp.lastIndex = 0;\n\t\tif (_colorExp.test(combined)) {\n\t\t\ttoHSL = _hslExp.test(combined);\n\t\t\ta[1] = _formatColors(a[1], toHSL);\n\t\t\ta[0] = _formatColors(a[0], toHSL, _colorOrderData(a[1])); // make sure the order of numbers/colors match with the END value.\n\t\t\treturn true;\n\t\t}\n\t},\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * TICKER\n * --------------------------------------------------------------------------------------\n */\n\t_tickerActive,\n\t_ticker = (function() {\n\t\tlet _getTime = Date.now,\n\t\t\t_lagThreshold = 500,\n\t\t\t_adjustedLag = 33,\n\t\t\t_startTime = _getTime(),\n\t\t\t_lastUpdate = _startTime,\n\t\t\t_gap = 1000 / 240,\n\t\t\t_nextTime = _gap,\n\t\t\t_listeners = [],\n\t\t\t_id, _req, _raf, _self, _delta, _i,\n\t\t\t_tick = v => {\n\t\t\t\tlet elapsed = _getTime() - _lastUpdate,\n\t\t\t\t\tmanual = v === true,\n\t\t\t\t\toverlap, dispatch, time, frame;\n\t\t\t\t(elapsed > _lagThreshold || elapsed < 0) && (_startTime += elapsed - _adjustedLag);\n\t\t\t\t_lastUpdate += elapsed;\n\t\t\t\ttime = _lastUpdate - _startTime;\n\t\t\t\toverlap = time - _nextTime;\n\t\t\t\tif (overlap > 0 || manual) {\n\t\t\t\t\tframe = ++_self.frame;\n\t\t\t\t\t_delta = time - _self.time * 1000;\n\t\t\t\t\t_self.time = time = time / 1000;\n\t\t\t\t\t_nextTime += overlap + (overlap >= _gap ? 4 : _gap - overlap);\n\t\t\t\t\tdispatch = 1;\n\t\t\t\t}\n\t\t\t\tmanual || (_id = _req(_tick)); //make sure the request is made before we dispatch the \"tick\" event so that timing is maintained. Otherwise, if processing the \"tick\" requires a bunch of time (like 15ms) and we're using a setTimeout() that's based on 16.7ms, it'd technically take 31.7ms between frames otherwise.\n\t\t\t\tif (dispatch) {\n\t\t\t\t\tfor (_i = 0; _i < _listeners.length; _i++) { // use _i and check _listeners.length instead of a variable because a listener could get removed during the loop, and if that happens to an element less than the current index, it'd throw things off in the loop.\n\t\t\t\t\t\t_listeners[_i](time, _delta, frame, v);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t_self = {\n\t\t\ttime:0,\n\t\t\tframe:0,\n\t\t\ttick() {\n\t\t\t\t_tick(true);\n\t\t\t},\n\t\t\tdeltaRatio(fps) {\n\t\t\t\treturn _delta / (1000 / (fps || 60));\n\t\t\t},\n\t\t\twake() {\n\t\t\t\tif (_coreReady) {\n\t\t\t\t\tif (!_coreInitted && _windowExists()) {\n\t\t\t\t\t\t_win = _coreInitted = window;\n\t\t\t\t\t\t_doc = _win.document || {};\n\t\t\t\t\t\t_globals.gsap = gsap;\n\t\t\t\t\t\t(_win.gsapVersions || (_win.gsapVersions = [])).push(gsap.version);\n\t\t\t\t\t\t_install(_installScope || _win.GreenSockGlobals || (!_win.gsap && _win) || {});\n\t\t\t\t\t\t_registerPluginQueue.forEach(_createPlugin);\n\t\t\t\t\t}\n\t\t\t\t\t_raf = typeof(requestAnimationFrame) !== \"undefined\" && requestAnimationFrame;\n\t\t\t\t\t_id && _self.sleep();\n\t\t\t\t\t_req = _raf || (f => setTimeout(f, (_nextTime - _self.time * 1000 + 1) | 0));\n\t\t\t\t\t_tickerActive = 1;\n\t\t\t\t\t_tick(2);\n\t\t\t\t}\n\t\t\t},\n\t\t\tsleep() {\n\t\t\t\t(_raf ? cancelAnimationFrame : clearTimeout)(_id);\n\t\t\t\t_tickerActive = 0;\n\t\t\t\t_req = _emptyFunc;\n\t\t\t},\n\t\t\tlagSmoothing(threshold, adjustedLag) {\n\t\t\t\t_lagThreshold = threshold || Infinity; // zero should be interpreted as basically unlimited\n\t\t\t\t_adjustedLag = Math.min(adjustedLag || 33, _lagThreshold);\n\t\t\t},\n\t\t\tfps(fps) {\n\t\t\t\t_gap = 1000 / (fps || 240);\n\t\t\t\t_nextTime = _self.time * 1000 + _gap;\n\t\t\t},\n\t\t\tadd(callback, once, prioritize) {\n\t\t\t\tlet func = once ? (t, d, f, v) => {callback(t, d, f, v); _self.remove(func);} : callback;\n\t\t\t\t_self.remove(callback);\n\t\t\t\t_listeners[prioritize ? \"unshift\" : \"push\"](func);\n\t\t\t\t_wake();\n\t\t\t\treturn func;\n\t\t\t},\n\t\t\tremove(callback, i) {\n\t\t\t\t~(i = _listeners.indexOf(callback)) && _listeners.splice(i, 1) && _i >= i && _i--;\n\t\t\t},\n\t\t\t_listeners:_listeners\n\t\t};\n\t\treturn _self;\n\t})(),\n\t_wake = () => !_tickerActive && _ticker.wake(), //also ensures the core classes are initialized.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n* -------------------------------------------------\n* EASING\n* -------------------------------------------------\n*/\n\t_easeMap = {},\n\t_customEaseExp = /^[\\d.\\-M][\\d.\\-,\\s]/,\n\t_quotesExp = /[\"']/g,\n\t_parseObjectInString = value => { //takes a string like \"{wiggles:10, type:anticipate})\" and turns it into a real object. Notice it ends in \")\" and includes the {} wrappers. This is because we only use this function for parsing ease configs and prioritized optimization rather than reusability.\n\t\tlet obj = {},\n\t\t\tsplit = value.substr(1, value.length-3).split(\":\"),\n\t\t\tkey = split[0],\n\t\t\ti = 1,\n\t\t\tl = split.length,\n\t\t\tindex, val, parsedVal;\n\t\tfor (; i < l; i++) {\n\t\t\tval = split[i];\n\t\t\tindex = i !== l-1 ? val.lastIndexOf(\",\") : val.length;\n\t\t\tparsedVal = val.substr(0, index);\n\t\t\tobj[key] = isNaN(parsedVal) ? parsedVal.replace(_quotesExp, \"\").trim() : +parsedVal;\n\t\t\tkey = val.substr(index+1).trim();\n\t\t}\n\t\treturn obj;\n\t},\n\t_valueInParentheses = value => {\n\t\tlet open = value.indexOf(\"(\") + 1,\n\t\t\tclose = value.indexOf(\")\"),\n\t\t\tnested = value.indexOf(\"(\", open);\n\t\treturn value.substring(open, ~nested && nested < close ? value.indexOf(\")\", close + 1) : close);\n\t},\n\t_configEaseFromString = name => { //name can be a string like \"elastic.out(1,0.5)\", and pass in _easeMap as obj and it'll parse it out and call the actual function like _easeMap.Elastic.easeOut.config(1,0.5). It will also parse custom ease strings as long as CustomEase is loaded and registered (internally as _easeMap._CE).\n\t\tlet split = (name + \"\").split(\"(\"),\n\t\t\tease = _easeMap[split[0]];\n\t\treturn (ease && split.length > 1 && ease.config) ? ease.config.apply(null, ~name.indexOf(\"{\") ? [_parseObjectInString(split[1])] : _valueInParentheses(name).split(\",\").map(_numericIfPossible)) : (_easeMap._CE && _customEaseExp.test(name)) ? _easeMap._CE(\"\", name) : ease;\n\t},\n\t_invertEase = ease => p => 1 - ease(1 - p),\n\t// allow yoyoEase to be set in children and have those affected when the parent/ancestor timeline yoyos.\n\t_propagateYoyoEase = (timeline, isYoyo) => {\n\t\tlet child = timeline._first, ease;\n\t\twhile (child) {\n\t\t\tif (child instanceof Timeline) {\n\t\t\t\t_propagateYoyoEase(child, isYoyo);\n\t\t\t} else if (child.vars.yoyoEase && (!child._yoyo || !child._repeat) && child._yoyo !== isYoyo) {\n\t\t\t\tif (child.timeline) {\n\t\t\t\t\t_propagateYoyoEase(child.timeline, isYoyo);\n\t\t\t\t} else {\n\t\t\t\t\tease = child._ease;\n\t\t\t\t\tchild._ease = child._yEase;\n\t\t\t\t\tchild._yEase = ease;\n\t\t\t\t\tchild._yoyo = isYoyo;\n\t\t\t\t}\n\t\t\t}\n\t\t\tchild = child._next;\n\t\t}\n\t},\n\t_parseEase = (ease, defaultEase) => !ease ? defaultEase : (_isFunction(ease) ? ease : _easeMap[ease] || _configEaseFromString(ease)) || defaultEase,\n\t_insertEase = (names, easeIn, easeOut = p => 1 - easeIn(1 - p), easeInOut = (p => p < .5 ? easeIn(p * 2) / 2 : 1 - easeIn((1 - p) * 2) / 2)) => {\n\t\tlet ease = {easeIn, easeOut, easeInOut},\n\t\t\tlowercaseName;\n\t\t_forEachName(names, name => {\n\t\t\t_easeMap[name] = _globals[name] = ease;\n\t\t\t_easeMap[(lowercaseName = name.toLowerCase())] = easeOut;\n\t\t\tfor (let p in ease) {\n\t\t\t\t_easeMap[lowercaseName + (p === \"easeIn\" ? \".in\" : p === \"easeOut\" ? \".out\" : \".inOut\")] = _easeMap[name + \".\" + p] = ease[p];\n\t\t\t}\n\t\t});\n\t\treturn ease;\n\t},\n\t_easeInOutFromOut = easeOut => (p => p < .5 ? (1 - easeOut(1 - (p * 2))) / 2 : .5 + easeOut((p - .5) * 2) / 2),\n\t_configElastic = (type, amplitude, period) => {\n\t\tlet p1 = (amplitude >= 1) ? amplitude : 1, //note: if amplitude is < 1, we simply adjust the period for a more natural feel. Otherwise the math doesn't work right and the curve starts at 1.\n\t\t\tp2 = (period || (type ? .3 : .45)) / (amplitude < 1 ? amplitude : 1),\n\t\t\tp3 = p2 / _2PI * (Math.asin(1 / p1) || 0),\n\t\t\teaseOut = p => p === 1 ? 1 : p1 * (2 ** (-10 * p)) * _sin((p - p3) * p2) + 1,\n\t\t\tease = (type === \"out\") ? easeOut : (type === \"in\") ? p => 1 - easeOut(1 - p) : _easeInOutFromOut(easeOut);\n\t\tp2 = _2PI / p2; //precalculate to optimize\n\t\tease.config = (amplitude, period) => _configElastic(type, amplitude, period);\n\t\treturn ease;\n\t},\n\t_configBack = (type, overshoot = 1.70158) => {\n\t\tlet easeOut = p => p ? ((--p) * p * ((overshoot + 1) * p + overshoot) + 1) : 0,\n\t\t\tease = type === \"out\" ? easeOut : type === \"in\" ? p => 1 - easeOut(1 - p) : _easeInOutFromOut(easeOut);\n\t\tease.config = overshoot => _configBack(type, overshoot);\n\t\treturn ease;\n\t};\n\t// a cheaper (kb and cpu) but more mild way to get a parameterized weighted ease by feeding in a value between -1 (easeIn) and 1 (easeOut) where 0 is linear.\n\t// _weightedEase = ratio => {\n\t// \tlet y = 0.5 + ratio / 2;\n\t// \treturn p => (2 * (1 - p) * p * y + p * p);\n\t// },\n\t// a stronger (but more expensive kb/cpu) parameterized weighted ease that lets you feed in a value between -1 (easeIn) and 1 (easeOut) where 0 is linear.\n\t// _weightedEaseStrong = ratio => {\n\t// \tratio = .5 + ratio / 2;\n\t// \tlet o = 1 / 3 * (ratio < .5 ? ratio : 1 - ratio),\n\t// \t\tb = ratio - o,\n\t// \t\tc = ratio + o;\n\t// \treturn p => p === 1 ? p : 3 * b * (1 - p) * (1 - p) * p + 3 * c * (1 - p) * p * p + p * p * p;\n\t// };\n\n_forEachName(\"Linear,Quad,Cubic,Quart,Quint,Strong\", (name, i) => {\n\tlet power = i < 5 ? i + 1 : i;\n\t_insertEase(name + \",Power\" + (power - 1), i ? p => p ** power : p => p, p => 1 - (1 - p) ** power, p => p < .5 ? (p * 2) ** power / 2 : 1 - ((1 - p) * 2) ** power / 2);\n});\n_easeMap.Linear.easeNone = _easeMap.none = _easeMap.Linear.easeIn;\n_insertEase(\"Elastic\", _configElastic(\"in\"), _configElastic(\"out\"), _configElastic());\n((n, c) => {\n\tlet n1 = 1 / c,\n\t\tn2 = 2 * n1,\n\t\tn3 = 2.5 * n1,\n\t\teaseOut = p => (p < n1) ? n * p * p : (p < n2) ? n * (p - 1.5 / c) ** 2 + .75 : (p < n3) ? n * (p -= 2.25 / c) * p + .9375 : n * (p - 2.625 / c) ** 2 + .984375;\n\t_insertEase(\"Bounce\", p => 1 - easeOut(1 - p), easeOut);\n})(7.5625, 2.75);\n_insertEase(\"Expo\", p => (2 ** (10 * (p - 1))) * p + p * p * p * p * p * p * (1-p)); // previously 2 ** (10 * (p - 1)) but that doesn't end up with the value quite at the right spot so we do a blended ease to ensure it lands where it should perfectly.\n_insertEase(\"Circ\", p => -(_sqrt(1 - (p * p)) - 1));\n_insertEase(\"Sine\", p => p === 1 ? 1 : -_cos(p * _HALF_PI) + 1);\n_insertEase(\"Back\", _configBack(\"in\"), _configBack(\"out\"), _configBack());\n_easeMap.SteppedEase = _easeMap.steps = _globals.SteppedEase = {\n\tconfig(steps = 1, immediateStart) {\n\t\tlet p1 = 1 / steps,\n\t\t\tp2 = steps + (immediateStart ? 0 : 1),\n\t\t\tp3 = immediateStart ? 1 : 0,\n\t\t\tmax = 1 - _tinyNum;\n\t\treturn p => (((p2 * _clamp(0, max, p)) | 0) + p3) * p1;\n\t}\n};\n_defaults.ease = _easeMap[\"quad.out\"];\n\n\n_forEachName(\"onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt\", name => _callbackNames += name + \",\" + name + \"Params,\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * CACHE\n * --------------------------------------------------------------------------------------\n */\nexport class GSCache {\n\n\tconstructor(target, harness) {\n\t\tthis.id = _gsID++;\n\t\ttarget._gsap = this;\n\t\tthis.target = target;\n\t\tthis.harness = harness;\n\t\tthis.get = harness ? harness.get : _getProperty;\n\t\tthis.set = harness ? harness.getSetter : _getSetter;\n\t}\n\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * ANIMATION\n * --------------------------------------------------------------------------------------\n */\n\nexport class Animation {\n\n\tconstructor(vars) {\n\t\tthis.vars = vars;\n\t\tthis._delay = +vars.delay || 0;\n\t\tif ((this._repeat = vars.repeat === Infinity ? -2 : vars.repeat || 0)) { // TODO: repeat: Infinity on a timeline's children must flag that timeline internally and affect its totalDuration, otherwise it'll stop in the negative direction when reaching the start.\n\t\t\tthis._rDelay = vars.repeatDelay || 0;\n\t\t\tthis._yoyo = !!vars.yoyo || !!vars.yoyoEase;\n\t\t}\n\t\tthis._ts = 1;\n\t\t_setDuration(this, +vars.duration, 1, 1);\n\t\tthis.data = vars.data;\n\t\tif (_context) {\n\t\t\tthis._ctx = _context;\n\t\t\t_context.data.push(this);\n\t\t}\n\t\t_tickerActive || _ticker.wake();\n\t}\n\n\tdelay(value) {\n\t\tif (value || value === 0) {\n\t\t\tthis.parent && this.parent.smoothChildTiming && (this.startTime(this._start + value - this._delay));\n\t\t\tthis._delay = value;\n\t\t\treturn this;\n\t\t}\n\t\treturn this._delay;\n\t}\n\n\tduration(value) {\n\t\treturn arguments.length ? this.totalDuration(this._repeat > 0 ? value + (value + this._rDelay) * this._repeat : value) : this.totalDuration() && this._dur;\n\t}\n\n\ttotalDuration(value) {\n\t\tif (!arguments.length) {\n\t\t\treturn this._tDur;\n\t\t}\n\t\tthis._dirty = 0;\n\t\treturn _setDuration(this, this._repeat < 0 ? value : (value - (this._repeat * this._rDelay)) / (this._repeat + 1));\n\t}\n\n\ttotalTime(totalTime, suppressEvents) {\n\t\t_wake();\n\t\tif (!arguments.length) {\n\t\t\treturn this._tTime;\n\t\t}\n\t\tlet parent = this._dp;\n\t\tif (parent && parent.smoothChildTiming && this._ts) {\n\t\t\t_alignPlayhead(this, totalTime);\n\t\t\t!parent._dp || parent.parent || _postAddChecks(parent, this); // edge case: if this is a child of a timeline that already completed, for example, we must re-activate the parent.\n\t\t\t//in case any of the ancestor timelines had completed but should now be enabled, we should reset their totalTime() which will also ensure that they're lined up properly and enabled. Skip for animations that are on the root (wasteful). Example: a TimelineLite.exportRoot() is performed when there's a paused tween on the root, the export will not complete until that tween is unpaused, but imagine a child gets restarted later, after all [unpaused] tweens have completed. The start of that child would get pushed out, but one of the ancestors may have completed.\n\t\t\twhile (parent && parent.parent) {\n\t\t\t\tif (parent.parent._time !== parent._start + (parent._ts >= 0 ? parent._tTime / parent._ts : (parent.totalDuration() - parent._tTime) / -parent._ts)) {\n\t\t\t\t\tparent.totalTime(parent._tTime, true);\n\t\t\t\t}\n\t\t\t\tparent = parent.parent;\n\t\t\t}\n\t\t\tif (!this.parent && this._dp.autoRemoveChildren && ((this._ts > 0 && totalTime < this._tDur) || (this._ts < 0 && totalTime > 0) || (!this._tDur && !totalTime) )) { //if the animation doesn't have a parent, put it back into its last parent (recorded as _dp for exactly cases like this). Limit to parents with autoRemoveChildren (like globalTimeline) so that if the user manually removes an animation from a timeline and then alters its playhead, it doesn't get added back in.\n\t\t\t\t_addToTimeline(this._dp, this, this._start - this._delay);\n\t\t\t}\n\t\t}\n if (this._tTime !== totalTime || (!this._dur && !suppressEvents) || (this._initted && Math.abs(this._zTime) === _tinyNum) || (!totalTime && !this._initted && (this.add || this._ptLookup))) { // check for _ptLookup on a Tween instance to ensure it has actually finished being instantiated, otherwise if this.reverse() gets called in the Animation constructor, it could trigger a render() here even though the _targets weren't populated, thus when _init() is called there won't be any PropTweens (it'll act like the tween is non-functional)\n \tthis._ts || (this._pTime = totalTime); // otherwise, if an animation is paused, then the playhead is moved back to zero, then resumed, it'd revert back to the original time at the pause\n\t //if (!this._lock) { // avoid endless recursion (not sure we need this yet or if it's worth the performance hit)\n\t\t // this._lock = 1;\n\t\t _lazySafeRender(this, totalTime, suppressEvents);\n\t\t // this._lock = 0;\n\t //}\n\t\t}\n\t\treturn this;\n\t}\n\n\ttime(value, suppressEvents) {\n\t\treturn arguments.length ? this.totalTime((Math.min(this.totalDuration(), value + _elapsedCycleDuration(this)) % (this._dur + this._rDelay)) || (value ? this._dur : 0), suppressEvents) : this._time; // note: if the modulus results in 0, the playhead could be exactly at the end or the beginning, and we always defer to the END with a non-zero value, otherwise if you set the time() to the very end (duration()), it would render at the START!\n\t}\n\n\ttotalProgress(value, suppressEvents) {\n\t\treturn arguments.length ? this.totalTime( this.totalDuration() * value, suppressEvents) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() >= 0 && this._initted ? 1 : 0;\n\t}\n\n\tprogress(value, suppressEvents) {\n\t\treturn arguments.length ? this.totalTime( this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - value : value) + _elapsedCycleDuration(this), suppressEvents) : (this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0);\n\t}\n\n\titeration(value, suppressEvents) {\n\t\tlet cycleDuration = this.duration() + this._rDelay;\n\t\treturn arguments.length ? this.totalTime(this._time + (value - 1) * cycleDuration, suppressEvents) : this._repeat ? _animationCycle(this._tTime, cycleDuration) + 1 : 1;\n\t}\n\n\t// potential future addition:\n\t// isPlayingBackwards() {\n\t// \tlet animation = this,\n\t// \t\torientation = 1; // 1 = forward, -1 = backward\n\t// \twhile (animation) {\n\t// \t\torientation *= animation.reversed() || (animation.repeat() && !(animation.iteration() & 1)) ? -1 : 1;\n\t// \t\tanimation = animation.parent;\n\t// \t}\n\t// \treturn orientation < 0;\n\t// }\n\n\ttimeScale(value, suppressEvents) {\n\t\tif (!arguments.length) {\n\t\t\treturn this._rts === -_tinyNum ? 0 : this._rts; // recorded timeScale. Special case: if someone calls reverse() on an animation with timeScale of 0, we assign it -_tinyNum to remember it's reversed.\n\t\t}\n\t\tif (this._rts === value) {\n\t\t\treturn this;\n\t\t}\n\t\tlet tTime = this.parent && this._ts ? _parentToChildTotalTime(this.parent._time, this) : this._tTime; // make sure to do the parentToChildTotalTime() BEFORE setting the new _ts because the old one must be used in that calculation.\n\n\t\t// future addition? Up side: fast and minimal file size. Down side: only works on this animation; if a timeline is reversed, for example, its childrens' onReverse wouldn't get called.\n\t\t//(+value < 0 && this._rts >= 0) && _callback(this, \"onReverse\", true);\n\n\t\t// prioritize rendering where the parent's playhead lines up instead of this._tTime because there could be a tween that's animating another tween's timeScale in the same rendering loop (same parent), thus if the timeScale tween renders first, it would alter _start BEFORE _tTime was set on that tick (in the rendering loop), effectively freezing it until the timeScale tween finishes.\n\t\tthis._rts = +value || 0;\n\t\tthis._ts = (this._ps || value === -_tinyNum) ? 0 : this._rts; // _ts is the functional timeScale which would be 0 if the animation is paused.\n\t\tthis.totalTime(_clamp(-Math.abs(this._delay), this._tDur, tTime), suppressEvents !== false);\n\t\t_setEnd(this); // if parent.smoothChildTiming was false, the end time didn't get updated in the _alignPlayhead() method, so do it here.\n\t\treturn _recacheAncestors(this);\n\t}\n\n\tpaused(value) {\n\t\tif (!arguments.length) {\n\t\t\treturn this._ps;\n\t\t}\n\t\t// possible future addition - if an animation is removed from its parent and then .restart() or .play() or .resume() is called, perhaps we should force it back into the globalTimeline but be careful because what if it's already at its end? We don't want it to just persist forever and not get released for GC.\n\t\t// !this.parent && !value && this._tTime < this._tDur && this !== _globalTimeline && _globalTimeline.add(this);\n\t\tif (this._ps !== value) {\n\t\t\tthis._ps = value;\n\t\t\tif (value) {\n\t\t\t\tthis._pTime = this._tTime || Math.max(-this._delay, this.rawTime()); // if the pause occurs during the delay phase, make sure that's factored in when resuming.\n\t\t\t\tthis._ts = this._act = 0; // _ts is the functional timeScale, so a paused tween would effectively have a timeScale of 0. We record the \"real\" timeScale as _rts (recorded time scale)\n\t\t\t} else {\n\t\t\t\t_wake();\n\t\t\t\tthis._ts = this._rts;\n\t\t\t\t//only defer to _pTime (pauseTime) if tTime is zero. Remember, someone could pause() an animation, then scrub the playhead and resume(). If the parent doesn't have smoothChildTiming, we render at the rawTime() because the startTime won't get updated.\n\t\t\t\tthis.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, (this.progress() === 1) && Math.abs(this._zTime) !== _tinyNum && (this._tTime -= _tinyNum)); // edge case: animation.progress(1).pause().play() wouldn't render again because the playhead is already at the end, but the call to totalTime() below will add it back to its parent...and not remove it again (since removing only happens upon rendering at a new time). Offsetting the _tTime slightly is done simply to cause the final render in totalTime() that'll pop it off its timeline (if autoRemoveChildren is true, of course). Check to make sure _zTime isn't -_tinyNum to avoid an edge case where the playhead is pushed to the end but INSIDE a tween/callback, the timeline itself is paused thus halting rendering and leaving a few unrendered. When resuming, it wouldn't render those otherwise.\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}\n\n\tstartTime(value) {\n\t\tif (arguments.length) {\n\t\t\tthis._start = value;\n\t\t\tlet parent = this.parent || this._dp;\n\t\t\tparent && (parent._sort || !this.parent) && _addToTimeline(parent, this, value - this._delay);\n\t\t\treturn this;\n\t\t}\n\t\treturn this._start;\n\t}\n\n\tendTime(includeRepeats) {\n\t\treturn this._start + (_isNotFalse(includeRepeats) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);\n\t}\n\n\trawTime(wrapRepeats) {\n\t\tlet parent = this.parent || this._dp; // _dp = detached parent\n\t\treturn !parent ? this._tTime : (wrapRepeats && (!this._ts || (this._repeat && this._time && this.totalProgress() < 1))) ? this._tTime % (this._dur + this._rDelay) : !this._ts ? this._tTime : _parentToChildTotalTime(parent.rawTime(wrapRepeats), this);\n\t}\n\n\trevert(config= _revertConfig) {\n\t\tlet prevIsReverting = _reverting;\n\t\t_reverting = config;\n\t\tif (this._initted || this._startAt) {\n\t\t\tthis.timeline && this.timeline.revert(config);\n\t\t\tthis.totalTime(-0.01, config.suppressEvents);\n\t\t}\n\t\tthis.data !== \"nested\" && config.kill !== false && this.kill();\n\t\t_reverting = prevIsReverting;\n\t\treturn this;\n\t}\n\n\tglobalTime(rawTime) {\n\t\tlet animation = this,\n\t\t\ttime = arguments.length ? rawTime : animation.rawTime();\n\t\twhile (animation) {\n\t\t\ttime = animation._start + time / (Math.abs(animation._ts) || 1);\n\t\t\tanimation = animation._dp;\n\t\t}\n\t\treturn !this.parent && this._sat ? this._sat.globalTime(rawTime) : time; // the _startAt tweens for .fromTo() and .from() that have immediateRender should always be FIRST in the timeline (important for context.revert()). \"_sat\" stands for _startAtTween, referring to the parent tween that created the _startAt. We must discern if that tween had immediateRender so that we can know whether or not to prioritize it in revert().\n\t}\n\n\trepeat(value) {\n\t\tif (arguments.length) {\n\t\t\tthis._repeat = value === Infinity ? -2 : value;\n\t\t\treturn _onUpdateTotalDuration(this);\n\t\t}\n\t\treturn this._repeat === -2 ? Infinity : this._repeat;\n\t}\n\n\trepeatDelay(value) {\n\t\tif (arguments.length) {\n\t\t\tlet time = this._time;\n\t\t\tthis._rDelay = value;\n\t\t\t_onUpdateTotalDuration(this);\n\t\t\treturn time ? this.time(time) : this;\n\t\t}\n\t\treturn this._rDelay;\n\t}\n\n\tyoyo(value) {\n\t\tif (arguments.length) {\n\t\t\tthis._yoyo = value;\n\t\t\treturn this;\n\t\t}\n\t\treturn this._yoyo;\n\t}\n\n\tseek(position, suppressEvents) {\n\t\treturn this.totalTime(_parsePosition(this, position), _isNotFalse(suppressEvents));\n\t}\n\n\trestart(includeDelay, suppressEvents) {\n\t\tthis.play().totalTime(includeDelay ? -this._delay : 0, _isNotFalse(suppressEvents));\n\t\tthis._dur || (this._zTime = -_tinyNum); // ensures onComplete fires on a zero-duration animation that gets restarted.\n\t\treturn this;\n\t}\n\n\tplay(from, suppressEvents) {\n\t\tfrom != null && this.seek(from, suppressEvents);\n\t\treturn this.reversed(false).paused(false);\n\t}\n\n\treverse(from, suppressEvents) {\n\t\tfrom != null && this.seek(from || this.totalDuration(), suppressEvents);\n\t\treturn this.reversed(true).paused(false);\n\t}\n\n\tpause(atTime, suppressEvents) {\n\t\tatTime != null && this.seek(atTime, suppressEvents);\n\t\treturn this.paused(true);\n\t}\n\n\tresume() {\n\t\treturn this.paused(false);\n\t}\n\n\treversed(value) {\n\t\tif (arguments.length) {\n\t\t\t!!value !== this.reversed() && this.timeScale(-this._rts || (value ? -_tinyNum : 0)); // in case timeScale is zero, reversing would have no effect so we use _tinyNum.\n\t\t\treturn this;\n\t\t}\n\t\treturn this._rts < 0;\n\t}\n\n\tinvalidate() {\n\t\tthis._initted = this._act = 0;\n\t\tthis._zTime = -_tinyNum;\n\t\treturn this;\n\t}\n\n\tisActive() {\n\t\tlet parent = this.parent || this._dp,\n\t\t\tstart = this._start,\n\t\t\trawTime;\n\t\treturn !!(!parent || (this._ts && this._initted && parent.isActive() && (rawTime = parent.rawTime(true)) >= start && rawTime < this.endTime(true) - _tinyNum));\n\t}\n\n\teventCallback(type, callback, params) {\n\t\tlet vars = this.vars;\n\t\tif (arguments.length > 1) {\n\t\t\tif (!callback) {\n\t\t\t\tdelete vars[type];\n\t\t\t} else {\n\t\t\t\tvars[type] = callback;\n\t\t\t\tparams && (vars[type + \"Params\"] = params);\n\t\t\t\ttype === \"onUpdate\" && (this._onUpdate = callback);\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\t\treturn vars[type];\n\t}\n\n\tthen(onFulfilled) {\n\t\tlet self = this;\n\t\treturn new Promise(resolve => {\n\t\t\tlet f = _isFunction(onFulfilled) ? onFulfilled : _passThrough,\n\t\t\t\t_resolve = () => {\n\t\t\t\t\tlet _then = self.then;\n\t\t\t\t\tself.then = null; // temporarily null the then() method to avoid an infinite loop (see https://github.com/greensock/GSAP/issues/322)\n\t\t\t\t\t_isFunction(f) && (f = f(self)) && (f.then || f === self) && (self.then = _then);\n\t\t\t\t\tresolve(f);\n\t\t\t\t\tself.then = _then;\n\t\t\t\t};\n\t\t\tif (self._initted && (self.totalProgress() === 1 && self._ts >= 0) || (!self._tTime && self._ts < 0)) {\n\t\t\t\t_resolve();\n\t\t\t} else {\n\t\t\t\tself._prom = _resolve;\n\t\t\t}\n\t\t});\n\t}\n\n\tkill() {\n\t\t_interrupt(this);\n\t}\n\n}\n\n_setDefaults(Animation.prototype, {_time:0, _start:0, _end:0, _tTime:0, _tDur:0, _dirty:0, _repeat:0, _yoyo:false, parent:null, _initted:false, _rDelay:0, _ts:1, _dp:0, ratio:0, _zTime:-_tinyNum, _prom:0, _ps:false, _rts:1});\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * -------------------------------------------------\n * TIMELINE\n * -------------------------------------------------\n */\n\nexport class Timeline extends Animation {\n\n\tconstructor(vars = {}, position) {\n\t\tsuper(vars);\n\t\tthis.labels = {};\n\t\tthis.smoothChildTiming = !!vars.smoothChildTiming;\n\t\tthis.autoRemoveChildren = !!vars.autoRemoveChildren;\n\t\tthis._sort = _isNotFalse(vars.sortChildren);\n\t\t_globalTimeline && _addToTimeline(vars.parent || _globalTimeline, this, position);\n\t\tvars.reversed && this.reverse();\n\t\tvars.paused && this.paused(true);\n\t\tvars.scrollTrigger && _scrollTrigger(this, vars.scrollTrigger);\n\t}\n\n\tto(targets, vars, position) {\n\t\t_createTweenType(0, arguments, this);\n\t\treturn this;\n\t}\n\n\tfrom(targets, vars, position) {\n\t\t_createTweenType(1, arguments, this);\n\t\treturn this;\n\t}\n\n\tfromTo(targets, fromVars, toVars, position) {\n\t\t_createTweenType(2, arguments, this);\n\t\treturn this;\n\t}\n\n\tset(targets, vars, position) {\n\t\tvars.duration = 0;\n\t\tvars.parent = this;\n\t\t_inheritDefaults(vars).repeatDelay || (vars.repeat = 0);\n\t\tvars.immediateRender = !!vars.immediateRender;\n\t\tnew Tween(targets, vars, _parsePosition(this, position), 1);\n\t\treturn this;\n\t}\n\n\tcall(callback, params, position) {\n\t\treturn _addToTimeline(this, Tween.delayedCall(0, callback, params), position);\n\t}\n\n\t//ONLY for backward compatibility! Maybe delete?\n\tstaggerTo(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams) {\n\t\tvars.duration = duration;\n\t\tvars.stagger = vars.stagger || stagger;\n\t\tvars.onComplete = onCompleteAll;\n\t\tvars.onCompleteParams = onCompleteAllParams;\n\t\tvars.parent = this;\n\t\tnew Tween(targets, vars, _parsePosition(this, position));\n\t\treturn this;\n\t}\n\n\tstaggerFrom(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams) {\n\t\tvars.runBackwards = 1;\n\t\t_inheritDefaults(vars).immediateRender = _isNotFalse(vars.immediateRender);\n\t\treturn this.staggerTo(targets, duration, vars, stagger, position, onCompleteAll, onCompleteAllParams);\n\t}\n\n\tstaggerFromTo(targets, duration, fromVars, toVars, stagger, position, onCompleteAll, onCompleteAllParams) {\n\t\ttoVars.startAt = fromVars;\n\t\t_inheritDefaults(toVars).immediateRender = _isNotFalse(toVars.immediateRender);\n\t\treturn this.staggerTo(targets, duration, toVars, stagger, position, onCompleteAll, onCompleteAllParams);\n\t}\n\n\trender(totalTime, suppressEvents, force) {\n\t\tlet prevTime = this._time,\n\t\t\ttDur = this._dirty ? this.totalDuration() : this._tDur,\n\t\t\tdur = this._dur,\n\t\t\ttTime = totalTime <= 0 ? 0 : _roundPrecise(totalTime), // if a paused timeline is resumed (or its _start is updated for another reason...which rounds it), that could result in the playhead shifting a **tiny** amount and a zero-duration child at that spot may get rendered at a different ratio, like its totalTime in render() may be 1e-17 instead of 0, for example.\n\t\t\tcrossingStart = (this._zTime < 0) !== (totalTime < 0) && (this._initted || !dur),\n\t\t\ttime, child, next, iteration, cycleDuration, prevPaused, pauseTween, timeScale, prevStart, prevIteration, yoyo, isYoyo;\n\t\tthis !== _globalTimeline && tTime > tDur && totalTime >= 0 && (tTime = tDur);\n\t\tif (tTime !== this._tTime || force || crossingStart) {\n\t\t\tif (prevTime !== this._time && dur) { //if totalDuration() finds a child with a negative startTime and smoothChildTiming is true, things get shifted around internally so we need to adjust the time accordingly. For example, if a tween starts at -30 we must shift EVERYTHING forward 30 seconds and move this timeline's startTime backward by 30 seconds so that things align with the playhead (no jump).\n\t\t\t\ttTime += this._time - prevTime;\n\t\t\t\ttotalTime += this._time - prevTime;\n\t\t\t}\n\t\t\ttime = tTime;\n\t\t\tprevStart = this._start;\n\t\t\ttimeScale = this._ts;\n\t\t\tprevPaused = !timeScale;\n\t\t\tif (crossingStart) {\n\t\t\t\tdur || (prevTime = this._zTime);\n\t\t\t\t //when the playhead arrives at EXACTLY time 0 (right on top) of a zero-duration timeline, we need to discern if events are suppressed so that when the playhead moves again (next time), it'll trigger the callback. If events are NOT suppressed, obviously the callback would be triggered in this render. Basically, the callback should fire either when the playhead ARRIVES or LEAVES this exact spot, not both. Imagine doing a timeline.seek(0) and there's a callback that sits at 0. Since events are suppressed on that seek() by default, nothing will fire, but when the playhead moves off of that position, the callback should fire. This behavior is what people intuitively expect.\n\t\t\t\t(totalTime || !suppressEvents) && (this._zTime = totalTime);\n\t\t\t}\n\t\t\tif (this._repeat) { //adjust the time for repeats and yoyos\n\t\t\t\tyoyo = this._yoyo;\n\t\t\t\tcycleDuration = dur + this._rDelay;\n\t\t\t\tif (this._repeat < -1 && totalTime < 0) {\n\t\t\t\t\treturn this.totalTime(cycleDuration * 100 + totalTime, suppressEvents, force);\n\t\t\t\t}\n\t\t\t\ttime = _roundPrecise(tTime % cycleDuration); //round to avoid floating point errors. (4 % 0.8 should be 0 but some browsers report it as 0.79999999!)\n\t\t\t\tif (tTime === tDur) { // the tDur === tTime is for edge cases where there's a lengthy decimal on the duration and it may reach the very end but the time is rendered as not-quite-there (remember, tDur is rounded to 4 decimals whereas dur isn't)\n\t\t\t\t\titeration = this._repeat;\n\t\t\t\t\ttime = dur;\n\t\t\t\t} else {\n\t\t\t\t\tprevIteration = _roundPrecise(tTime / cycleDuration); // full decimal version of iterations, not the previous iteration (we're reusing prevIteration variable for efficiency)\n\t\t\t\t\titeration = ~~prevIteration;\n\t\t\t\t\tif (iteration && iteration === prevIteration) {\n\t\t\t\t\t\ttime = dur;\n\t\t\t\t\t\titeration--;\n\t\t\t\t\t}\n\t\t\t\t\ttime > dur && (time = dur);\n\t\t\t\t}\n\t\t\t\tprevIteration = _animationCycle(this._tTime, cycleDuration);\n\t\t\t\t!prevTime && this._tTime && prevIteration !== iteration && this._tTime - prevIteration * cycleDuration - this._dur <= 0 && (prevIteration = iteration); // edge case - if someone does addPause() at the very beginning of a repeating timeline, that pause is technically at the same spot as the end which causes this._time to get set to 0 when the totalTime would normally place the playhead at the end. See https://gsap.com/forums/topic/23823-closing-nav-animation-not-working-on-ie-and-iphone-6-maybe-other-older-browser/?tab=comments#comment-113005 also, this._tTime - prevIteration * cycleDuration - this._dur <= 0 just checks to make sure it wasn't previously in the \"repeatDelay\" portion\n\t\t\t\tif (yoyo && (iteration & 1)) {\n\t\t\t\t\ttime = dur - time;\n\t\t\t\t\tisYoyo = 1;\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\tmake sure children at the end/beginning of the timeline are rendered properly. If, for example,\n\t\t\t\ta 3-second long timeline rendered at 2.9 seconds previously, and now renders at 3.2 seconds (which\n\t\t\t\twould get translated to 2.8 seconds if the timeline yoyos or 0.2 seconds if it just repeats), there\n\t\t\t\tcould be a callback or a short tween that's at 2.95 or 3 seconds in which wouldn't render. So\n\t\t\t\twe need to push the timeline to the end (and/or beginning depending on its yoyo value). Also we must\n\t\t\t\tensure that zero-duration tweens at the very beginning or end of the Timeline work.\n\t\t\t\t*/\n\t\t\t\tif (iteration !== prevIteration && !this._lock) {\n\t\t\t\t\tlet rewinding = (yoyo && (prevIteration & 1)),\n\t\t\t\t\t\tdoesWrap = (rewinding === (yoyo && (iteration & 1)));\n\t\t\t\t\titeration < prevIteration && (rewinding = !rewinding);\n\t\t\t\t\tprevTime = rewinding ? 0 : tTime % dur ? dur : tTime; // if the playhead is landing exactly at the end of an iteration, use that totalTime rather than only the duration, otherwise it'll skip the 2nd render since it's effectively at the same time.\n\t\t\t\t\tthis._lock = 1;\n\t\t\t\t\tthis.render(prevTime || (isYoyo ? 0 : _roundPrecise(iteration * cycleDuration)), suppressEvents, !dur)._lock = 0;\n\t\t\t\t\tthis._tTime = tTime; // if a user gets the iteration() inside the onRepeat, for example, it should be accurate.\n\t\t\t\t\t!suppressEvents && this.parent && _callback(this, \"onRepeat\");\n\t\t\t\t\tthis.vars.repeatRefresh && !isYoyo && (this.invalidate()._lock = 1);\n\t\t\t\t\tif ((prevTime && prevTime !== this._time) || prevPaused !== !this._ts || (this.vars.onRepeat && !this.parent && !this._act)) { // if prevTime is 0 and we render at the very end, _time will be the end, thus won't match. So in this edge case, prevTime won't match _time but that's okay. If it gets killed in the onRepeat, eject as well.\n\t\t\t\t\t\treturn this;\n\t\t\t\t\t}\n\t\t\t\t\tdur = this._dur; // in case the duration changed in the onRepeat\n\t\t\t\t\ttDur = this._tDur;\n\t\t\t\t\tif (doesWrap) {\n\t\t\t\t\t\tthis._lock = 2;\n\t\t\t\t\t\tprevTime = rewinding ? dur : -0.0001;\n\t\t\t\t\t\tthis.render(prevTime, true);\n\t\t\t\t\t\tthis.vars.repeatRefresh && !isYoyo && this.invalidate();\n\t\t\t\t\t}\n\t\t\t\t\tthis._lock = 0;\n\t\t\t\t\tif (!this._ts && !prevPaused) {\n\t\t\t\t\t\treturn this;\n\t\t\t\t\t}\n\t\t\t\t\t//in order for yoyoEase to work properly when there's a stagger, we must swap out the ease in each sub-tween.\n\t\t\t\t\t_propagateYoyoEase(this, isYoyo);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (this._hasPause && !this._forcing && this._lock < 2) {\n\t\t\t\tpauseTween = _findNextPauseTween(this, _roundPrecise(prevTime), _roundPrecise(time));\n\t\t\t\tif (pauseTween) {\n\t\t\t\t\ttTime -= time - (time = pauseTween._start);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis._tTime = tTime;\n\t\t\tthis._time = time;\n\t\t\tthis._act = !timeScale; //as long as it's not paused, force it to be active so that if the user renders independent of the parent timeline, it'll be forced to re-render on the next tick.\n\n\t\t\tif (!this._initted) {\n\t\t\t\tthis._onUpdate = this.vars.onUpdate;\n\t\t\t\tthis._initted = 1;\n\t\t\t\tthis._zTime = totalTime;\n\t\t\t\tprevTime = 0; // upon init, the playhead should always go forward; someone could invalidate() a completed timeline and then if they restart(), that would make child tweens render in reverse order which could lock in the wrong starting values if they build on each other, like tl.to(obj, {x: 100}).to(obj, {x: 0}).\n\t\t\t}\n\t\t\tif (!prevTime && time && !suppressEvents && !iteration) {\n\t\t\t\t_callback(this, \"onStart\");\n\t\t\t\tif (this._tTime !== tTime) { // in case the onStart triggered a render at a different spot, eject. Like if someone did animation.pause(0.5) or something inside the onStart.\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (time >= prevTime && totalTime >= 0) {\n\t\t\t\tchild = this._first;\n\t\t\t\twhile (child) {\n\t\t\t\t\tnext = child._next;\n\t\t\t\t\tif ((child._act || time >= child._start) && child._ts && pauseTween !== child) {\n\t\t\t\t\t\tif (child.parent !== this) { // an extreme edge case - the child's render could do something like kill() the \"next\" one in the linked list, or reparent it. In that case we must re-initiate the whole render to be safe.\n\t\t\t\t\t\t\treturn this.render(totalTime, suppressEvents, force);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tchild.render(child._ts > 0 ? (time - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (time - child._start) * child._ts, suppressEvents, force);\n\t\t\t\t\t\tif (time !== this._time || (!this._ts && !prevPaused)) { //in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete\n\t\t\t\t\t\t\tpauseTween = 0;\n\t\t\t\t\t\t\tnext && (tTime += (this._zTime = -_tinyNum)); // it didn't finish rendering, so flag zTime as negative so that the next time render() is called it'll be forced (to render any remaining children)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tchild = next;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tchild = this._last;\n\t\t\t\tlet adjustedTime = totalTime < 0 ? totalTime : time; //when the playhead goes backward beyond the start of this timeline, we must pass that information down to the child animations so that zero-duration tweens know whether to render their starting or ending values.\n\t\t\t\twhile (child) {\n\t\t\t\t\tnext = child._prev;\n\t\t\t\t\tif ((child._act || adjustedTime <= child._end) && child._ts && pauseTween !== child) {\n\t\t\t\t\t\tif (child.parent !== this) { // an extreme edge case - the child's render could do something like kill() the \"next\" one in the linked list, or reparent it. In that case we must re-initiate the whole render to be safe.\n\t\t\t\t\t\t\treturn this.render(totalTime, suppressEvents, force);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tchild.render(child._ts > 0 ? (adjustedTime - child._start) * child._ts : (child._dirty ? child.totalDuration() : child._tDur) + (adjustedTime - child._start) * child._ts, suppressEvents, force || (_reverting && (child._initted || child._startAt))); // if reverting, we should always force renders of initted tweens (but remember that .fromTo() or .from() may have a _startAt but not _initted yet). If, for example, a .fromTo() tween with a stagger (which creates an internal timeline) gets reverted BEFORE some of its child tweens render for the first time, it may not properly trigger them to revert.\n\t\t\t\t\t\tif (time !== this._time || (!this._ts && !prevPaused)) { //in case a tween pauses or seeks the timeline when rendering, like inside of an onUpdate/onComplete\n\t\t\t\t\t\t\tpauseTween = 0;\n\t\t\t\t\t\t\tnext && (tTime += (this._zTime = adjustedTime ? -_tinyNum : _tinyNum)); // it didn't finish rendering, so adjust zTime so that so that the next time render() is called it'll be forced (to render any remaining children)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tchild = next;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pauseTween && !suppressEvents) {\n\t\t\t\tthis.pause();\n\t\t\t\tpauseTween.render(time >= prevTime ? 0 : -_tinyNum)._zTime = time >= prevTime ? 1 : -1;\n\t\t\t\tif (this._ts) { //the callback resumed playback! So since we may have held back the playhead due to where the pause is positioned, go ahead and jump to where it's SUPPOSED to be (if no pause happened).\n\t\t\t\t\tthis._start = prevStart; //if the pause was at an earlier time and the user resumed in the callback, it could reposition the timeline (changing its startTime), throwing things off slightly, so we make sure the _start doesn't shift.\n\t\t\t\t\t_setEnd(this);\n\t\t\t\t\treturn this.render(totalTime, suppressEvents, force);\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis._onUpdate && !suppressEvents && _callback(this, \"onUpdate\", true);\n\t\t\tif ((tTime === tDur && this._tTime >= this.totalDuration()) || (!tTime && prevTime)) if (prevStart === this._start || Math.abs(timeScale) !== Math.abs(this._ts)) if (!this._lock) { // remember, a child's callback may alter this timeline's playhead or timeScale which is why we need to add some of these checks.\n\t\t\t\t(totalTime || !dur) && ((tTime === tDur && this._ts > 0) || (!tTime && this._ts < 0)) && _removeFromParent(this, 1); // don't remove if the timeline is reversed and the playhead isn't at 0, otherwise tl.progress(1).reverse() won't work. Only remove if the playhead is at the end and timeScale is positive, or if the playhead is at 0 and the timeScale is negative.\n\t\t\t\tif (!suppressEvents && !(totalTime < 0 && !prevTime) && (tTime || prevTime || !tDur)) {\n\t\t\t\t\t_callback(this, (tTime === tDur && totalTime >= 0 ? \"onComplete\" : \"onReverseComplete\"), true);\n\t\t\t\t\tthis._prom && !(tTime < tDur && this.timeScale() > 0) && this._prom();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}\n\n\tadd(child, position) {\n\t\t_isNumber(position) || (position = _parsePosition(this, position, child));\n\t\tif (!(child instanceof Animation)) {\n\t\t\tif (_isArray(child)) {\n\t\t\t\tchild.forEach(obj => this.add(obj, position));\n\t\t\t\treturn this;\n\t\t\t}\n\t\t\tif (_isString(child)) {\n\t\t\t\treturn this.addLabel(child, position);\n\t\t\t}\n\t\t\tif (_isFunction(child)) {\n\t\t\t\tchild = Tween.delayedCall(0, child);\n\t\t\t} else {\n\t\t\t\treturn this;\n\t\t\t}\n\t\t}\n\t\treturn this !== child ? _addToTimeline(this, child, position) : this; //don't allow a timeline to be added to itself as a child!\n\t}\n\n\tgetChildren(nested = true, tweens = true, timelines = true, ignoreBeforeTime = -_bigNum) {\n\t\tlet a = [],\n\t\t\tchild = this._first;\n\t\twhile (child) {\n\t\t\tif (child._start >= ignoreBeforeTime) {\n\t\t\t\tif (child instanceof Tween) {\n\t\t\t\t\ttweens && a.push(child);\n\t\t\t\t} else {\n\t\t\t\t\ttimelines && a.push(child);\n\t\t\t\t\tnested && a.push(...child.getChildren(true, tweens, timelines));\n\t\t\t\t}\n\t\t\t}\n\t\t\tchild = child._next;\n\t\t}\n\t\treturn a;\n\t}\n\n\tgetById(id) {\n\t\tlet animations = this.getChildren(1, 1, 1),\n\t\t\ti = animations.length;\n\t\twhile(i--) {\n\t\t\tif (animations[i].vars.id === id) {\n\t\t\t\treturn animations[i];\n\t\t\t}\n\t\t}\n\t}\n\n\tremove(child) {\n\t\tif (_isString(child)) {\n\t\t\treturn this.removeLabel(child);\n\t\t}\n\t\tif (_isFunction(child)) {\n\t\t\treturn this.killTweensOf(child);\n\t\t}\n\t\tchild.parent === this && _removeLinkedListItem(this, child);\n\t\tif (child === this._recent) {\n\t\t\tthis._recent = this._last;\n\t\t}\n\t\treturn _uncache(this);\n\t}\n\n\ttotalTime(totalTime, suppressEvents) {\n\t\tif (!arguments.length) {\n\t\t\treturn this._tTime;\n\t\t}\n\t\tthis._forcing = 1;\n\t\tif (!this._dp && this._ts) { //special case for the global timeline (or any other that has no parent or detached parent).\n\t\t\tthis._start = _roundPrecise(_ticker.time - (this._ts > 0 ? totalTime / this._ts : (this.totalDuration() - totalTime) / -this._ts));\n\t\t}\n\t\tsuper.totalTime(totalTime, suppressEvents);\n\t\tthis._forcing = 0;\n\t\treturn this;\n\t}\n\n\taddLabel(label, position) {\n\t\tthis.labels[label] = _parsePosition(this, position);\n\t\treturn this;\n\t}\n\n\tremoveLabel(label) {\n\t\tdelete this.labels[label];\n\t\treturn this;\n\t}\n\n\taddPause(position, callback, params) {\n\t\tlet t = Tween.delayedCall(0, callback || _emptyFunc, params);\n\t\tt.data = \"isPause\";\n\t\tthis._hasPause = 1;\n\t\treturn _addToTimeline(this, t, _parsePosition(this, position));\n\t}\n\n\tremovePause(position) {\n\t\tlet child = this._first;\n\t\tposition = _parsePosition(this, position);\n\t\twhile (child) {\n\t\t\tif (child._start === position && child.data === \"isPause\") {\n\t\t\t\t_removeFromParent(child);\n\t\t\t}\n\t\t\tchild = child._next;\n\t\t}\n\t}\n\n\tkillTweensOf(targets, props, onlyActive) {\n\t\tlet tweens = this.getTweensOf(targets, onlyActive),\n\t\t\ti = tweens.length;\n\t\twhile (i--) {\n\t\t\t(_overwritingTween !== tweens[i]) && tweens[i].kill(targets, props);\n\t\t}\n\t\treturn this;\n\t}\n\n\tgetTweensOf(targets, onlyActive) {\n\t\tlet a = [],\n\t\t\tparsedTargets = toArray(targets),\n\t\t\tchild = this._first,\n\t\t\tisGlobalTime = _isNumber(onlyActive), // a number is interpreted as a global time. If the animation spans\n\t\t\tchildren;\n\t\twhile (child) {\n\t\t\tif (child instanceof Tween) {\n\t\t\t\tif (_arrayContainsAny(child._targets, parsedTargets) && (isGlobalTime ? (!_overwritingTween || (child._initted && child._ts)) && child.globalTime(0) <= onlyActive && child.globalTime(child.totalDuration()) > onlyActive : !onlyActive || child.isActive())) { // note: if this is for overwriting, it should only be for tweens that aren't paused and are initted.\n\t\t\t\t\ta.push(child);\n\t\t\t\t}\n\t\t\t} else if ((children = child.getTweensOf(parsedTargets, onlyActive)).length) {\n\t\t\t\ta.push(...children);\n\t\t\t}\n\t\t\tchild = child._next;\n\t\t}\n\t\treturn a;\n\t}\n\n\t// potential future feature - targets() on timelines\n\t// targets() {\n\t// \tlet result = [];\n\t// \tthis.getChildren(true, true, false).forEach(t => result.push(...t.targets()));\n\t// \treturn result.filter((v, i) => result.indexOf(v) === i);\n\t// }\n\n\ttweenTo(position, vars) {\n\t\tvars = vars || {};\n\t\tlet tl = this,\n\t\t\tendTime = _parsePosition(tl, position),\n\t\t\t{ startAt, onStart, onStartParams, immediateRender } = vars,\n\t\t\tinitted,\n\t\t\ttween = Tween.to(tl, _setDefaults({\n\t\t\t\tease: vars.ease || \"none\",\n\t\t\t\tlazy: false,\n\t\t\t\timmediateRender: false,\n\t\t\t\ttime: endTime,\n\t\t\t\toverwrite: \"auto\",\n\t\t\t\tduration: vars.duration || (Math.abs((endTime - ((startAt && \"time\" in startAt) ? startAt.time : tl._time)) / tl.timeScale())) || _tinyNum,\n\t\t\t\tonStart: () => {\n\t\t\t\t\ttl.pause();\n\t\t\t\t\tif (!initted) {\n\t\t\t\t\t\tlet duration = vars.duration || Math.abs((endTime - ((startAt && \"time\" in startAt) ? startAt.time : tl._time)) / tl.timeScale());\n\t\t\t\t\t\t(tween._dur !== duration) && _setDuration(tween, duration, 0, 1).render(tween._time, true, true);\n\t\t\t\t\t\tinitted = 1;\n\t\t\t\t\t}\n\t\t\t\t\tonStart && onStart.apply(tween, onStartParams || []); //in case the user had an onStart in the vars - we don't want to overwrite it.\n\t\t\t\t}\n\t\t\t}, vars));\n\t\treturn immediateRender ? tween.render(0) : tween;\n\t}\n\n\ttweenFromTo(fromPosition, toPosition, vars) {\n\t\treturn this.tweenTo(toPosition, _setDefaults({startAt:{time:_parsePosition(this, fromPosition)}}, vars));\n\t}\n\n\trecent() {\n\t\treturn this._recent;\n\t}\n\n\tnextLabel(afterTime = this._time) {\n\t\treturn _getLabelInDirection(this, _parsePosition(this, afterTime));\n\t}\n\n\tpreviousLabel(beforeTime = this._time) {\n\t\treturn _getLabelInDirection(this, _parsePosition(this, beforeTime), 1);\n\t}\n\n\tcurrentLabel(value) {\n\t\treturn arguments.length ? this.seek(value, true) : this.previousLabel(this._time + _tinyNum);\n\t}\n\n\tshiftChildren(amount, adjustLabels, ignoreBeforeTime = 0) {\n\t\tlet child = this._first,\n\t\t\tlabels = this.labels,\n\t\t\tp;\n\t\twhile (child) {\n\t\t\tif (child._start >= ignoreBeforeTime) {\n\t\t\t\tchild._start += amount;\n\t\t\t\tchild._end += amount;\n\t\t\t}\n\t\t\tchild = child._next;\n\t\t}\n\t\tif (adjustLabels) {\n\t\t\tfor (p in labels) {\n\t\t\t\tif (labels[p] >= ignoreBeforeTime) {\n\t\t\t\t\tlabels[p] += amount;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn _uncache(this);\n\t}\n\n\tinvalidate(soft) {\n\t\tlet child = this._first;\n\t\tthis._lock = 0;\n\t\twhile (child) {\n\t\t\tchild.invalidate(soft);\n\t\t\tchild = child._next;\n\t\t}\n\t\treturn super.invalidate(soft);\n\t}\n\n\tclear(includeLabels = true) {\n\t\tlet child = this._first,\n\t\t\tnext;\n\t\twhile (child) {\n\t\t\tnext = child._next;\n\t\t\tthis.remove(child);\n\t\t\tchild = next;\n\t\t}\n\t\tthis._dp && (this._time = this._tTime = this._pTime = 0);\n\t\tincludeLabels && (this.labels = {});\n\t\treturn _uncache(this);\n\t}\n\n\ttotalDuration(value) {\n\t\tlet max = 0,\n\t\t\tself = this,\n\t\t\tchild = self._last,\n\t\t\tprevStart = _bigNum,\n\t\t\tprev, start, parent;\n\t\tif (arguments.length) {\n\t\t\treturn self.timeScale((self._repeat < 0 ? self.duration() : self.totalDuration()) / (self.reversed() ? -value : value));\n\t\t}\n\t\tif (self._dirty) {\n\t\t\tparent = self.parent;\n\t\t\twhile (child) {\n\t\t\t\tprev = child._prev; //record it here in case the tween changes position in the sequence...\n\t\t\t\tchild._dirty && child.totalDuration(); //could change the tween._startTime, so make sure the animation's cache is clean before analyzing it.\n\t\t\t\tstart = child._start;\n\t\t\t\tif (start > prevStart && self._sort && child._ts && !self._lock) { //in case one of the tweens shifted out of order, it needs to be re-inserted into the correct position in the sequence\n\t\t\t\t\tself._lock = 1; //prevent endless recursive calls - there are methods that get triggered that check duration/totalDuration when we add().\n\t\t\t\t\t_addToTimeline(self, child, start - child._delay, 1)._lock = 0;\n\t\t\t\t} else {\n\t\t\t\t\tprevStart = start;\n\t\t\t\t}\n\t\t\t\tif (start < 0 && child._ts) { //children aren't allowed to have negative startTimes unless smoothChildTiming is true, so adjust here if one is found.\n\t\t\t\t\tmax -= start;\n\t\t\t\t\tif ((!parent && !self._dp) || (parent && parent.smoothChildTiming)) {\n\t\t\t\t\t\tself._start += start / self._ts;\n\t\t\t\t\t\tself._time -= start;\n\t\t\t\t\t\tself._tTime -= start;\n\t\t\t\t\t}\n\t\t\t\t\tself.shiftChildren(-start, false, -1e999);\n\t\t\t\t\tprevStart = 0;\n\t\t\t\t}\n\t\t\t\tchild._end > max && child._ts && (max = child._end);\n\t\t\t\tchild = prev;\n\t\t\t}\n\t\t\t_setDuration(self, (self === _globalTimeline && self._time > max) ? self._time : max, 1, 1);\n\t\t\tself._dirty = 0;\n\t\t}\n\t\treturn self._tDur;\n\t}\n\n\tstatic updateRoot(time) {\n\t\tif (_globalTimeline._ts) {\n\t\t\t_lazySafeRender(_globalTimeline, _parentToChildTotalTime(time, _globalTimeline));\n\t\t\t_lastRenderedFrame = _ticker.frame;\n\t\t}\n\t\tif (_ticker.frame >= _nextGCFrame) {\n\t\t\t_nextGCFrame += _config.autoSleep || 120;\n\t\t\tlet child = _globalTimeline._first;\n\t\t\tif (!child || !child._ts) if (_config.autoSleep && _ticker._listeners.length < 2) {\n\t\t\t\twhile (child && !child._ts) {\n\t\t\t\t\tchild = child._next;\n\t\t\t\t}\n\t\t\t\tchild || _ticker.sleep();\n\t\t\t}\n\t\t}\n\t}\n\n}\n\n_setDefaults(Timeline.prototype, {_lock:0, _hasPause:0, _forcing:0});\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nlet _addComplexStringPropTween = function(target, prop, start, end, setter, stringFilter, funcParam) { //note: we call _addComplexStringPropTween.call(tweenInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n\t\tlet pt = new PropTween(this._pt, target, prop, 0, 1, _renderComplexString, null, setter),\n\t\t\tindex = 0,\n\t\t\tmatchIndex = 0,\n\t\t\tresult,\tstartNums, color, endNum, chunk, startNum, hasRandom, a;\n\t\tpt.b = start;\n\t\tpt.e = end;\n\t\tstart += \"\"; //ensure values are strings\n\t\tend += \"\";\n\t\tif ((hasRandom = ~end.indexOf(\"random(\"))) {\n\t\t\tend = _replaceRandom(end);\n\t\t}\n\t\tif (stringFilter) {\n\t\t\ta = [start, end];\n\t\t\tstringFilter(a, target, prop); //pass an array with the starting and ending values and let the filter do whatever it needs to the values.\n\t\t\tstart = a[0];\n\t\t\tend = a[1];\n\t\t}\n\t\tstartNums = start.match(_complexStringNumExp) || [];\n\t\twhile ((result = _complexStringNumExp.exec(end))) {\n\t\t\tendNum = result[0];\n\t\t\tchunk = end.substring(index, result.index);\n\t\t\tif (color) {\n\t\t\t\tcolor = (color + 1) % 5;\n\t\t\t} else if (chunk.substr(-5) === \"rgba(\") {\n\t\t\t\tcolor = 1;\n\t\t\t}\n\t\t\tif (endNum !== startNums[matchIndex++]) {\n\t\t\t\tstartNum = parseFloat(startNums[matchIndex-1]) || 0;\n\t\t\t\t//these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.\n\t\t\t\tpt._pt = {\n\t\t\t\t\t_next: pt._pt,\n\t\t\t\t\tp: (chunk || matchIndex === 1) ? chunk : \",\", //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.\n\t\t\t\t\ts: startNum,\n\t\t\t\t\tc: endNum.charAt(1) === \"=\" ? _parseRelative(startNum, endNum) - startNum : parseFloat(endNum) - startNum,\n\t\t\t\t\tm: (color && color < 4) ? Math.round : 0\n\t\t\t\t};\n\t\t\t\tindex = _complexStringNumExp.lastIndex;\n\t\t\t}\n\t\t}\n\t\tpt.c = (index < end.length) ? end.substring(index, end.length) : \"\"; //we use the \"c\" of the PropTween to store the final part of the string (after the last number)\n\t\tpt.fp = funcParam;\n\t\tif (_relExp.test(end) || hasRandom) {\n\t\t\tpt.e = 0; //if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).\n\t\t}\n\t\tthis._pt = pt; //start the linked list with this new PropTween. Remember, we call _addComplexStringPropTween.call(tweenInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n\t\treturn pt;\n\t},\n\t_addPropTween = function(target, prop, start, end, index, targets, modifier, stringFilter, funcParam, optional) {\n\t\t_isFunction(end) && (end = end(index || 0, target, targets));\n\t\tlet currentValue = target[prop],\n\t\t\tparsedStart = (start !== \"get\") ? start : !_isFunction(currentValue) ? currentValue : (funcParam ? target[(prop.indexOf(\"set\") || !_isFunction(target[\"get\" + prop.substr(3)])) ? prop : \"get\" + prop.substr(3)](funcParam) : target[prop]()),\n\t\t\tsetter = !_isFunction(currentValue) ? _setterPlain : funcParam ? _setterFuncWithParam : _setterFunc,\n\t\t\tpt;\n\t\tif (_isString(end)) {\n\t\t\tif (~end.indexOf(\"random(\")) {\n\t\t\t\tend = _replaceRandom(end);\n\t\t\t}\n\t\t\tif (end.charAt(1) === \"=\") {\n\t\t\t\tpt = _parseRelative(parsedStart, end) + (getUnit(parsedStart) || 0);\n\t\t\t\tif (pt || pt === 0) { // to avoid isNaN, like if someone passes in a value like \"!= whatever\"\n\t\t\t\t\tend = pt;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!optional || parsedStart !== end || _forceAllPropTweens) {\n\t\t\tif (!isNaN(parsedStart * end) && end !== \"\") { // fun fact: any number multiplied by \"\" is evaluated as the number 0!\n\t\t\t\tpt = new PropTween(this._pt, target, prop, +parsedStart || 0, end - (parsedStart || 0), typeof(currentValue) === \"boolean\" ? _renderBoolean : _renderPlain, 0, setter);\n\t\t\t\tfuncParam && (pt.fp = funcParam);\n\t\t\t\tmodifier && pt.modifier(modifier, this, target);\n\t\t\t\treturn (this._pt = pt);\n\t\t\t}\n\t\t\t!currentValue && !(prop in target) && _missingPlugin(prop, end);\n\t\t\treturn _addComplexStringPropTween.call(this, target, prop, parsedStart, end, setter, stringFilter || _config.stringFilter, funcParam);\n\t\t}\n\t},\n\t//creates a copy of the vars object and processes any function-based values (putting the resulting values directly into the copy) as well as strings with \"random()\" in them. It does NOT process relative values.\n\t_processVars = (vars, index, target, targets, tween) => {\n\t\t_isFunction(vars) && (vars = _parseFuncOrString(vars, tween, index, target, targets));\n\t\tif (!_isObject(vars) || (vars.style && vars.nodeType) || _isArray(vars) || _isTypedArray(vars)) {\n\t\t\treturn _isString(vars) ? _parseFuncOrString(vars, tween, index, target, targets) : vars;\n\t\t}\n\t\tlet copy = {},\n\t\t\tp;\n\t\tfor (p in vars) {\n\t\t\tcopy[p] = _parseFuncOrString(vars[p], tween, index, target, targets);\n\t\t}\n\t\treturn copy;\n\t},\n\t_checkPlugin = (property, vars, tween, index, target, targets) => {\n\t\tlet plugin, pt, ptLookup, i;\n\t\tif (_plugins[property] && (plugin = new _plugins[property]()).init(target, plugin.rawVars ? vars[property] : _processVars(vars[property], index, target, targets, tween), tween, index, targets) !== false) {\n\t\t\ttween._pt = pt = new PropTween(tween._pt, target, property, 0, 1, plugin.render, plugin, 0, plugin.priority);\n\t\t\tif (tween !== _quickTween) {\n\t\t\t\tptLookup = tween._ptLookup[tween._targets.indexOf(target)]; //note: we can't use tween._ptLookup[index] because for staggered tweens, the index from the fullTargets array won't match what it is in each individual tween that spawns from the stagger.\n\t\t\t\ti = plugin._props.length;\n\t\t\t\twhile (i--) {\n\t\t\t\t\tptLookup[plugin._props[i]] = pt;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn plugin;\n\t},\n\t_overwritingTween, //store a reference temporarily so we can avoid overwriting itself.\n\t_forceAllPropTweens,\n\t_initTween = (tween, time, tTime) => {\n\t\tlet vars = tween.vars,\n\t\t\t{ ease, startAt, immediateRender, lazy, onUpdate, runBackwards, yoyoEase, keyframes, autoRevert } = vars,\n\t\t\tdur = tween._dur,\n\t\t\tprevStartAt = tween._startAt,\n\t\t\ttargets = tween._targets,\n\t\t\tparent = tween.parent,\n\t\t\t//when a stagger (or function-based duration/delay) is on a Tween instance, we create a nested timeline which means that the \"targets\" of that tween don't reflect the parent. This function allows us to discern when it's a nested tween and in that case, return the full targets array so that function-based values get calculated properly. Also remember that if the tween has a stagger AND keyframes, it could be multiple levels deep which is why we store the targets Array in the vars of the timeline.\n\t\t\tfullTargets = (parent && parent.data === \"nested\") ? parent.vars.targets : targets,\n\t\t\tautoOverwrite = (tween._overwrite === \"auto\") && !_suppressOverwrites,\n\t\t\ttl = tween.timeline,\n\t\t\tcleanVars, i, p, pt, target, hasPriority, gsData, harness, plugin, ptLookup, index, harnessVars, overwritten;\n\t\ttl && (!keyframes || !ease) && (ease = \"none\");\n\t\ttween._ease = _parseEase(ease, _defaults.ease);\n\t\ttween._yEase = yoyoEase ? _invertEase(_parseEase(yoyoEase === true ? ease : yoyoEase, _defaults.ease)) : 0;\n\t\tif (yoyoEase && tween._yoyo && !tween._repeat) { //there must have been a parent timeline with yoyo:true that is currently in its yoyo phase, so flip the eases.\n\t\t\tyoyoEase = tween._yEase;\n\t\t\ttween._yEase = tween._ease;\n\t\t\ttween._ease = yoyoEase;\n\t\t}\n\t\ttween._from = !tl && !!vars.runBackwards; //nested timelines should never run backwards - the backwards-ness is in the child tweens.\n\t\tif (!tl || (keyframes && !vars.stagger)) { //if there's an internal timeline, skip all the parsing because we passed that task down the chain.\n\t\t\tharness = targets[0] ? _getCache(targets[0]).harness : 0;\n\t\t\tharnessVars = harness && vars[harness.prop]; //someone may need to specify CSS-specific values AND non-CSS values, like if the element has an \"x\" property plus it's a standard DOM element. We allow people to distinguish by wrapping plugin-specific stuff in a css:{} object for example.\n\t\t\tcleanVars = _copyExcluding(vars, _reservedProps);\n\t\t\tif (prevStartAt) {\n\t\t\t\tprevStartAt._zTime < 0 && prevStartAt.progress(1); // in case it's a lazy startAt that hasn't rendered yet.\n\t\t\t\t(time < 0 && runBackwards && immediateRender && !autoRevert) ? prevStartAt.render(-1, true) : prevStartAt.revert(runBackwards && dur ? _revertConfigNoKill : _startAtRevertConfig); // if it's a \"startAt\" (not \"from()\" or runBackwards: true), we only need to do a shallow revert (keep transforms cached in CSSPlugin)\n\t\t\t\t// don't just _removeFromParent(prevStartAt.render(-1, true)) because that'll leave inline styles. We're creating a new _startAt for \"startAt\" tweens that re-capture things to ensure that if the pre-tween values changed since the tween was created, they're recorded.\n\t\t\t\tprevStartAt._lazy = 0;\n\t\t\t}\n\t\t\tif (startAt) {\n\t\t\t\t_removeFromParent(tween._startAt = Tween.set(targets, _setDefaults({data: \"isStart\", overwrite: false, parent: parent, immediateRender: true, lazy: !prevStartAt && _isNotFalse(lazy), startAt: null, delay: 0, onUpdate: onUpdate && (() => _callback(tween, \"onUpdate\")), stagger: 0}, startAt))); //copy the properties/values into a new object to avoid collisions, like var to = {x:0}, from = {x:500}; timeline.fromTo(e, from, to).fromTo(e, to, from);\n\t\t\t\ttween._startAt._dp = 0; // don't allow it to get put back into root timeline! Like when revert() is called and totalTime() gets set.\n\t\t\t\ttween._startAt._sat = tween; // used in globalTime(). _sat stands for _startAtTween\n\t\t\t\t(time < 0 && (_reverting || (!immediateRender && !autoRevert))) && tween._startAt.revert(_revertConfigNoKill); // rare edge case, like if a render is forced in the negative direction of a non-initted tween.\n\t\t\t\tif (immediateRender) {\n\t\t\t\t\tif (dur && time <= 0 && tTime <= 0) { // check tTime here because in the case of a yoyo tween whose playhead gets pushed to the end like tween.progress(1), we should allow it through so that the onComplete gets fired properly.\n\t\t\t\t\t\ttime && (tween._zTime = time);\n\t\t\t\t\t\treturn; //we skip initialization here so that overwriting doesn't occur until the tween actually begins. Otherwise, if you create several immediateRender:true tweens of the same target/properties to drop into a Timeline, the last one created would overwrite the first ones because they didn't get placed into the timeline yet before the first render occurs and kicks in overwriting.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (runBackwards && dur) {\n\t\t\t\t//from() tweens must be handled uniquely: their beginning values must be rendered but we don't want overwriting to occur yet (when time is still 0). Wait until the tween actually begins before doing all the routines like overwriting. At that time, we should render at the END of the tween to ensure that things initialize correctly (remember, from() tweens go backwards)\n\t\t\t\tif (!prevStartAt) {\n\t\t\t\t\ttime && (immediateRender = false); //in rare cases (like if a from() tween runs and then is invalidate()-ed), immediateRender could be true but the initial forced-render gets skipped, so there's no need to force the render in this context when the _time is greater than 0\n\t\t\t\t\tp = _setDefaults({\n\t\t\t\t\t\toverwrite: false,\n\t\t\t\t\t\tdata: \"isFromStart\", //we tag the tween with as \"isFromStart\" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a \"from()\" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:\"height\", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.\n\t\t\t\t\t\tlazy: immediateRender && !prevStartAt && _isNotFalse(lazy),\n\t\t\t\t\t\timmediateRender: immediateRender, //zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)\n\t\t\t\t\t\tstagger: 0,\n\t\t\t\t\t\tparent: parent //ensures that nested tweens that had a stagger are handled properly, like gsap.from(\".class\", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})\n\t\t\t\t\t}, cleanVars);\n\t\t\t\t\tharnessVars && (p[harness.prop] = harnessVars); // in case someone does something like .from(..., {css:{}})\n\t\t\t\t\t_removeFromParent(tween._startAt = Tween.set(targets, p));\n\t\t\t\t\ttween._startAt._dp = 0; // don't allow it to get put back into root timeline!\n\t\t\t\t\ttween._startAt._sat = tween; // used in globalTime()\n\t\t\t\t\t(time < 0) && (_reverting ? tween._startAt.revert(_revertConfigNoKill) : tween._startAt.render(-1, true));\n\t\t\t\t\ttween._zTime = time;\n\t\t\t\t\tif (!immediateRender) {\n\t\t\t\t\t\t_initTween(tween._startAt, _tinyNum, _tinyNum); //ensures that the initial values are recorded\n\t\t\t\t\t} else if (!time) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ttween._pt = tween._ptCache = 0;\n\t\t\tlazy = (dur && _isNotFalse(lazy)) || (lazy && !dur);\n\t\t\tfor (i = 0; i < targets.length; i++) {\n\t\t\t\ttarget = targets[i];\n\t\t\t\tgsData = target._gsap || _harness(targets)[i]._gsap;\n\t\t\t\ttween._ptLookup[i] = ptLookup = {};\n\t\t\t\t_lazyLookup[gsData.id] && _lazyTweens.length && _lazyRender(); //if other tweens of the same target have recently initted but haven't rendered yet, we've got to force the render so that the starting values are correct (imagine populating a timeline with a bunch of sequential tweens and then jumping to the end)\n\t\t\t\tindex = fullTargets === targets ? i : fullTargets.indexOf(target);\n\t\t\t\tif (harness && (plugin = new harness()).init(target, harnessVars || cleanVars, tween, index, fullTargets) !== false) {\n\t\t\t\t\ttween._pt = pt = new PropTween(tween._pt, target, plugin.name, 0, 1, plugin.render, plugin, 0, plugin.priority);\n\t\t\t\t\tplugin._props.forEach(name => {ptLookup[name] = pt;});\n\t\t\t\t\tplugin.priority && (hasPriority = 1);\n\t\t\t\t}\n\t\t\t\tif (!harness || harnessVars) {\n\t\t\t\t\tfor (p in cleanVars) {\n\t\t\t\t\t\tif (_plugins[p] && (plugin = _checkPlugin(p, cleanVars, tween, index, target, fullTargets))) {\n\t\t\t\t\t\t\tplugin.priority && (hasPriority = 1);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tptLookup[p] = pt = _addPropTween.call(tween, target, p, \"get\", cleanVars[p], index, fullTargets, 0, vars.stringFilter);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttween._op && tween._op[i] && tween.kill(target, tween._op[i]);\n\t\t\t\tif (autoOverwrite && tween._pt) {\n\t\t\t\t\t_overwritingTween = tween;\n\t\t\t\t\t_globalTimeline.killTweensOf(target, ptLookup, tween.globalTime(time)); // make sure the overwriting doesn't overwrite THIS tween!!!\n\t\t\t\t\toverwritten = !tween.parent;\n\t\t\t\t\t_overwritingTween = 0;\n\t\t\t\t}\n\t\t\t\ttween._pt && lazy && (_lazyLookup[gsData.id] = 1);\n\t\t\t}\n\t\t\thasPriority && _sortPropTweensByPriority(tween);\n\t\t\ttween._onInit && tween._onInit(tween); //plugins like RoundProps must wait until ALL of the PropTweens are instantiated. In the plugin's init() function, it sets the _onInit on the tween instance. May not be pretty/intuitive, but it's fast and keeps file size down.\n\t\t}\n\t\ttween._onUpdate = onUpdate;\n\t\ttween._initted = (!tween._op || tween._pt) && !overwritten; // if overwrittenProps resulted in the entire tween being killed, do NOT flag it as initted or else it may render for one tick.\n\t\t(keyframes && time <= 0) && tl.render(_bigNum, true, true); // if there's a 0% keyframe, it'll render in the \"before\" state for any staggered/delayed animations thus when the following tween initializes, it'll use the \"before\" state instead of the \"after\" state as the initial values.\n\t},\n\t_updatePropTweens = (tween, property, value, start, startIsRelative, ratio, time, skipRecursion) => {\n\t\tlet ptCache = ((tween._pt && tween._ptCache) || (tween._ptCache = {}))[property],\n\t\t\tpt, rootPT, lookup, i;\n\t\tif (!ptCache) {\n\t\t\tptCache = tween._ptCache[property] = [];\n\t\t\tlookup = tween._ptLookup;\n\t\t\ti = tween._targets.length;\n\t\t\twhile (i--) {\n\t\t\t\tpt = lookup[i][property];\n\t\t\t\tif (pt && pt.d && pt.d._pt) { // it's a plugin, so find the nested PropTween\n\t\t\t\t\tpt = pt.d._pt;\n\t\t\t\t\twhile (pt && pt.p !== property && pt.fp !== property) { // \"fp\" is functionParam for things like setting CSS variables which require .setProperty(\"--var-name\", value)\n\t\t\t\t\t\tpt = pt._next;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!pt) { // there is no PropTween associated with that property, so we must FORCE one to be created and ditch out of this\n\t\t\t\t\t// if the tween has other properties that already rendered at new positions, we'd normally have to rewind to put them back like tween.render(0, true) before forcing an _initTween(), but that can create another edge case like tweening a timeline's progress would trigger onUpdates to fire which could move other things around. It's better to just inform users that .resetTo() should ONLY be used for tweens that already have that property. For example, you can't gsap.to(...{ y: 0 }) and then tween.restTo(\"x\", 200) for example.\n\t\t\t\t\t_forceAllPropTweens = 1; // otherwise, when we _addPropTween() and it finds no change between the start and end values, it skips creating a PropTween (for efficiency...why tween when there's no difference?) but in this case we NEED that PropTween created so we can edit it.\n\t\t\t\t\ttween.vars[property] = \"+=0\";\n\t\t\t\t\t_initTween(tween, time);\n\t\t\t\t\t_forceAllPropTweens = 0;\n\t\t\t\t\treturn skipRecursion ? _warn(property + \" not eligible for reset\") : 1; // if someone tries to do a quickTo() on a special property like borderRadius which must get split into 4 different properties, that's not eligible for .resetTo().\n\t\t\t\t}\n\t\t\t\tptCache.push(pt);\n\t\t\t}\n\t\t}\n\t\ti = ptCache.length;\n\t\twhile (i--) {\n\t\t\trootPT = ptCache[i];\n\t\t\tpt = rootPT._pt || rootPT; // complex values may have nested PropTweens. We only accommodate the FIRST value.\n\t\t\tpt.s = (start || start === 0) && !startIsRelative ? start : pt.s + (start || 0) + ratio * pt.c;\n\t\t\tpt.c = value - pt.s;\n\t\t\trootPT.e && (rootPT.e = _round(value) + getUnit(rootPT.e)); // mainly for CSSPlugin (end value)\n\t\t\trootPT.b && (rootPT.b = pt.s + getUnit(rootPT.b)); // (beginning value)\n\t\t}\n\t},\n\t_addAliasesToVars = (targets, vars) => {\n\t\tlet harness = targets[0] ? _getCache(targets[0]).harness : 0,\n\t\t\tpropertyAliases = (harness && harness.aliases),\n\t\t\tcopy, p, i, aliases;\n\t\tif (!propertyAliases) {\n\t\t\treturn vars;\n\t\t}\n\t\tcopy = _merge({}, vars);\n\t\tfor (p in propertyAliases) {\n\t\t\tif (p in copy) {\n\t\t\t\taliases = propertyAliases[p].split(\",\");\n\t\t\t\ti = aliases.length;\n\t\t\t\twhile(i--) {\n\t\t\t\t\tcopy[aliases[i]] = copy[p];\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn copy;\n\t},\n\t// parses multiple formats, like {\"0%\": {x: 100}, {\"50%\": {x: -20}} and { x: {\"0%\": 100, \"50%\": -20} }, and an \"ease\" can be set on any object. We populate an \"allProps\" object with an Array for each property, like {x: [{}, {}], y:[{}, {}]} with data for each property tween. The objects have a \"t\" (time), \"v\", (value), and \"e\" (ease) property. This allows us to piece together a timeline later.\n\t_parseKeyframe = (prop, obj, allProps, easeEach) => {\n\t\tlet ease = obj.ease || easeEach || \"power1.inOut\",\n\t\t\tp, a;\n\t\tif (_isArray(obj)) {\n\t\t\ta = allProps[prop] || (allProps[prop] = []);\n\t\t\t// t = time (out of 100), v = value, e = ease\n\t\t\tobj.forEach((value, i) => a.push({t: i / (obj.length - 1) * 100, v: value, e: ease}));\n\t\t} else {\n\t\t\tfor (p in obj) {\n\t\t\t\ta = allProps[p] || (allProps[p] = []);\n\t\t\t\tp === \"ease\" || a.push({t: parseFloat(prop), v: obj[p], e: ease});\n\t\t\t}\n\t\t}\n\t},\n\t_parseFuncOrString = (value, tween, i, target, targets) => (_isFunction(value) ? value.call(tween, i, target, targets) : (_isString(value) && ~value.indexOf(\"random(\")) ? _replaceRandom(value) : value),\n\t_staggerTweenProps = _callbackNames + \"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert\",\n\t_staggerPropsToSkip = {};\n_forEachName(_staggerTweenProps + \",id,stagger,delay,duration,paused,scrollTrigger\", name => _staggerPropsToSkip[name] = 1);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * TWEEN\n * --------------------------------------------------------------------------------------\n */\n\nexport class Tween extends Animation {\n\n\tconstructor(targets, vars, position, skipInherit) {\n\t\tif (typeof(vars) === \"number\") {\n\t\t\tposition.duration = vars;\n\t\t\tvars = position;\n\t\t\tposition = null;\n\t\t}\n\t\tsuper(skipInherit ? vars : _inheritDefaults(vars));\n\t\tlet { duration, delay, immediateRender, stagger, overwrite, keyframes, defaults, scrollTrigger, yoyoEase } = this.vars,\n\t\t\tparent = vars.parent || _globalTimeline,\n\t\t\tparsedTargets = (_isArray(targets) || _isTypedArray(targets) ? _isNumber(targets[0]) : (\"length\" in vars)) ? [targets] : toArray(targets), // edge case: someone might try animating the \"length\" of an object with a \"length\" property that's initially set to 0 so don't interpret that as an empty Array-like object.\n\t\t\ttl, i, copy, l, p, curTarget, staggerFunc, staggerVarsToMerge;\n\t\tthis._targets = parsedTargets.length ? _harness(parsedTargets) : _warn(\"GSAP target \" + targets + \" not found. https://gsap.com\", !_config.nullTargetWarn) || [];\n\t\tthis._ptLookup = []; //PropTween lookup. An array containing an object for each target, having keys for each tweening property\n\t\tthis._overwrite = overwrite;\n\t\tif (keyframes || stagger || _isFuncOrString(duration) || _isFuncOrString(delay)) {\n\t\t\tvars = this.vars;\n\t\t\ttl = this.timeline = new Timeline({data: \"nested\", defaults: defaults || {}, targets: parent && parent.data === \"nested\" ? parent.vars.targets : parsedTargets}); // we need to store the targets because for staggers and keyframes, we end up creating an individual tween for each but function-based values need to know the index and the whole Array of targets.\n\t\t\ttl.kill();\n\t\t\ttl.parent = tl._dp = this;\n\t\t\ttl._start = 0;\n\t\t\tif (stagger || _isFuncOrString(duration) || _isFuncOrString(delay)) {\n\t\t\t\tl = parsedTargets.length;\n\t\t\t\tstaggerFunc = stagger && distribute(stagger);\n\t\t\t\tif (_isObject(stagger)) { //users can pass in callbacks like onStart/onComplete in the stagger object. These should fire with each individual tween.\n\t\t\t\t\tfor (p in stagger) {\n\t\t\t\t\t\tif (~_staggerTweenProps.indexOf(p)) {\n\t\t\t\t\t\t\tstaggerVarsToMerge || (staggerVarsToMerge = {});\n\t\t\t\t\t\t\tstaggerVarsToMerge[p] = stagger[p];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (i = 0; i < l; i++) {\n\t\t\t\t\tcopy = _copyExcluding(vars, _staggerPropsToSkip);\n\t\t\t\t\tcopy.stagger = 0;\n\t\t\t\t\tyoyoEase && (copy.yoyoEase = yoyoEase);\n\t\t\t\t\tstaggerVarsToMerge && _merge(copy, staggerVarsToMerge);\n\t\t\t\t\tcurTarget = parsedTargets[i];\n\t\t\t\t\t//don't just copy duration or delay because if they're a string or function, we'd end up in an infinite loop because _isFuncOrString() would evaluate as true in the child tweens, entering this loop, etc. So we parse the value straight from vars and default to 0.\n\t\t\t\t\tcopy.duration = +_parseFuncOrString(duration, this, i, curTarget, parsedTargets);\n\t\t\t\t\tcopy.delay = (+_parseFuncOrString(delay, this, i, curTarget, parsedTargets) || 0) - this._delay;\n\t\t\t\t\tif (!stagger && l === 1 && copy.delay) { // if someone does delay:\"random(1, 5)\", repeat:-1, for example, the delay shouldn't be inside the repeat.\n\t\t\t\t\t\tthis._delay = delay = copy.delay;\n\t\t\t\t\t\tthis._start += delay;\n\t\t\t\t\t\tcopy.delay = 0;\n\t\t\t\t\t}\n\t\t\t\t\ttl.to(curTarget, copy, staggerFunc ? staggerFunc(i, curTarget, parsedTargets) : 0);\n\t\t\t\t\ttl._ease = _easeMap.none;\n\t\t\t\t}\n\t\t\t\ttl.duration() ? (duration = delay = 0) : (this.timeline = 0); // if the timeline's duration is 0, we don't need a timeline internally!\n\t\t\t} else if (keyframes) {\n\t\t\t\t_inheritDefaults(_setDefaults(tl.vars.defaults, {ease:\"none\"}));\n\t\t\t\ttl._ease = _parseEase(keyframes.ease || vars.ease || \"none\");\n\t\t\t\tlet time = 0,\n\t\t\t\t\ta, kf, v;\n\t\t\t\tif (_isArray(keyframes)) {\n\t\t\t\t\tkeyframes.forEach(frame => tl.to(parsedTargets, frame, \">\"));\n\t\t\t\t\ttl.duration(); // to ensure tl._dur is cached because we tap into it for performance purposes in the render() method.\n\t\t\t\t} else {\n\t\t\t\t\tcopy = {};\n\t\t\t\t\tfor (p in keyframes) {\n\t\t\t\t\t\tp === \"ease\" || p === \"easeEach\" || _parseKeyframe(p, keyframes[p], copy, keyframes.easeEach);\n\t\t\t\t\t}\n\t\t\t\t\tfor (p in copy) {\n\t\t\t\t\t\ta = copy[p].sort((a, b) => a.t - b.t);\n\t\t\t\t\t\ttime = 0;\n\t\t\t\t\t\tfor (i = 0; i < a.length; i++) {\n\t\t\t\t\t\t\tkf = a[i];\n\t\t\t\t\t\t\tv = {ease: kf.e, duration: (kf.t - (i ? a[i - 1].t : 0)) / 100 * duration};\n\t\t\t\t\t\t\tv[p] = kf.v;\n\t\t\t\t\t\t\ttl.to(parsedTargets, v, time);\n\t\t\t\t\t\t\ttime += v.duration;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ttl.duration() < duration && tl.to({}, {duration: duration - tl.duration()}); // in case keyframes didn't go to 100%\n\t\t\t\t}\n\t\t\t}\n\t\t\tduration || this.duration((duration = tl.duration()));\n\n\t\t} else {\n\t\t\tthis.timeline = 0; //speed optimization, faster lookups (no going up the prototype chain)\n\t\t}\n\n\t\tif (overwrite === true && !_suppressOverwrites) {\n\t\t\t_overwritingTween = this;\n\t\t\t_globalTimeline.killTweensOf(parsedTargets);\n\t\t\t_overwritingTween = 0;\n\t\t}\n\t\t_addToTimeline(parent, this, position);\n\t\tvars.reversed && this.reverse();\n\t\tvars.paused && this.paused(true);\n\t\tif (immediateRender || (!duration && !keyframes && this._start === _roundPrecise(parent._time) && _isNotFalse(immediateRender) && _hasNoPausedAncestors(this) && parent.data !== \"nested\")) {\n\t\t\tthis._tTime = -_tinyNum; //forces a render without having to set the render() \"force\" parameter to true because we want to allow lazying by default (using the \"force\" parameter always forces an immediate full render)\n\t\t\tthis.render(Math.max(0, -delay) || 0); //in case delay is negative\n\t\t}\n\t\tscrollTrigger && _scrollTrigger(this, scrollTrigger);\n\t}\n\n\trender(totalTime, suppressEvents, force) {\n\t\tlet prevTime = this._time,\n\t\t\ttDur = this._tDur,\n\t\t\tdur = this._dur,\n\t\t\tisNegative = totalTime < 0,\n\t\t\ttTime = (totalTime > tDur - _tinyNum && !isNegative) ? tDur : (totalTime < _tinyNum) ? 0 : totalTime,\n\t\t\ttime, pt, iteration, cycleDuration, prevIteration, isYoyo, ratio, timeline, yoyoEase;\n\t\tif (!dur) {\n\t\t\t_renderZeroDurationTween(this, totalTime, suppressEvents, force);\n\t\t} else if (tTime !== this._tTime || !totalTime || force || (!this._initted && this._tTime) || (this._startAt && (this._zTime < 0) !== isNegative) || this._lazy) { // this senses if we're crossing over the start time, in which case we must record _zTime and force the render, but we do it in this lengthy conditional way for performance reasons (usually we can skip the calculations): this._initted && (this._zTime < 0) !== (totalTime < 0)\n\t\t\ttime = tTime;\n\t\t\ttimeline = this.timeline;\n\t\t\tif (this._repeat) { //adjust the time for repeats and yoyos\n\t\t\t\tcycleDuration = dur + this._rDelay;\n\t\t\t\tif (this._repeat < -1 && isNegative) {\n\t\t\t\t\treturn this.totalTime(cycleDuration * 100 + totalTime, suppressEvents, force);\n\t\t\t\t}\n\t\t\t\ttime = _roundPrecise(tTime % cycleDuration); //round to avoid floating point errors. (4 % 0.8 should be 0 but some browsers report it as 0.79999999!)\n\t\t\t\tif (tTime === tDur) { // the tDur === tTime is for edge cases where there's a lengthy decimal on the duration and it may reach the very end but the time is rendered as not-quite-there (remember, tDur is rounded to 4 decimals whereas dur isn't)\n\t\t\t\t\titeration = this._repeat;\n\t\t\t\t\ttime = dur;\n\t\t\t\t} else {\n\t\t\t\t\tprevIteration = _roundPrecise(tTime / cycleDuration); // full decimal version of iterations, not the previous iteration (we're reusing prevIteration variable for efficiency)\n\t\t\t\t\titeration = ~~prevIteration;\n\t\t\t\t\tif (iteration && iteration === prevIteration) {\n\t\t\t\t\t\ttime = dur;\n\t\t\t\t\t\titeration--;\n\t\t\t\t\t} else if (time > dur) {\n\t\t\t\t\t\ttime = dur;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tisYoyo = this._yoyo && (iteration & 1);\n\t\t\t\tif (isYoyo) {\n\t\t\t\t\tyoyoEase = this._yEase;\n\t\t\t\t\ttime = dur - time;\n\t\t\t\t}\n\t\t\t\tprevIteration = _animationCycle(this._tTime, cycleDuration);\n\t\t\t\tif (time === prevTime && !force && this._initted && iteration === prevIteration) {\n\t\t\t\t\t//could be during the repeatDelay part. No need to render and fire callbacks.\n\t\t\t\t\tthis._tTime = tTime;\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t\tif (iteration !== prevIteration) {\n\t\t\t\t\ttimeline && this._yEase && _propagateYoyoEase(timeline, isYoyo);\n\t\t\t\t\t//repeatRefresh functionality\n\t\t\t\t\tif (this.vars.repeatRefresh && !isYoyo && !this._lock && time !== cycleDuration && this._initted) { // this._time will === cycleDuration when we render at EXACTLY the end of an iteration. Without this condition, it'd often do the repeatRefresh render TWICE (again on the very next tick).\n\t\t\t\t\t\tthis._lock = force = 1; //force, otherwise if lazy is true, the _attemptInitTween() will return and we'll jump out and get caught bouncing on each tick.\n\t\t\t\t\t\tthis.render(_roundPrecise(cycleDuration * iteration), true).invalidate()._lock = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!this._initted) {\n\t\t\t\tif (_attemptInitTween(this, isNegative ? totalTime : time, force, suppressEvents, tTime)) {\n\t\t\t\t\tthis._tTime = 0; // in constructor if immediateRender is true, we set _tTime to -_tinyNum to have the playhead cross the starting point but we can't leave _tTime as a negative number.\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t\tif (prevTime !== this._time && !(force && this.vars.repeatRefresh && iteration !== prevIteration)) { // rare edge case - during initialization, an onUpdate in the _startAt (.fromTo()) might force this tween to render at a different spot in which case we should ditch this render() call so that it doesn't revert the values. But we also don't want to dump if we're doing a repeatRefresh render!\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t\tif (dur !== this._dur) { // while initting, a plugin like InertiaPlugin might alter the duration, so rerun from the start to ensure everything renders as it should.\n\t\t\t\t\treturn this.render(totalTime, suppressEvents, force);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis._tTime = tTime;\n\t\t\tthis._time = time;\n\n\t\t\tif (!this._act && this._ts) {\n\t\t\t\tthis._act = 1; //as long as it's not paused, force it to be active so that if the user renders independent of the parent timeline, it'll be forced to re-render on the next tick.\n\t\t\t\tthis._lazy = 0;\n\t\t\t}\n\n\t\t\tthis.ratio = ratio = (yoyoEase || this._ease)(time / dur);\n\t\t\tif (this._from) {\n\t\t\t\tthis.ratio = ratio = 1 - ratio;\n\t\t\t}\n\n\t\t\tif (time && !prevTime && !suppressEvents && !iteration) {\n\t\t\t\t_callback(this, \"onStart\");\n\t\t\t\tif (this._tTime !== tTime) { // in case the onStart triggered a render at a different spot, eject. Like if someone did animation.pause(0.5) or something inside the onStart.\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpt = this._pt;\n\t\t\twhile (pt) {\n\t\t\t\tpt.r(ratio, pt.d);\n\t\t\t\tpt = pt._next;\n\t\t\t}\n\t\t\t(timeline && timeline.render(totalTime < 0 ? totalTime : timeline._dur * timeline._ease(time / this._dur), suppressEvents, force)) || (this._startAt && (this._zTime = totalTime));\n\n\t\t\tif (this._onUpdate && !suppressEvents) {\n\t\t\t\tisNegative && _rewindStartAt(this, totalTime, suppressEvents, force); //note: for performance reasons, we tuck this conditional logic inside less traveled areas (most tweens don't have an onUpdate). We'd just have it at the end before the onComplete, but the values should be updated before any onUpdate is called, so we ALSO put it here and then if it's not called, we do so later near the onComplete.\n\t\t\t\t_callback(this, \"onUpdate\");\n\t\t\t}\n\n\t\t\tthis._repeat && iteration !== prevIteration && this.vars.onRepeat && !suppressEvents && this.parent && _callback(this, \"onRepeat\");\n\n\t\t\tif ((tTime === this._tDur || !tTime) && this._tTime === tTime) {\n\t\t\t\tisNegative && !this._onUpdate && _rewindStartAt(this, totalTime, true, true);\n\t\t\t\t(totalTime || !dur) && ((tTime === this._tDur && this._ts > 0) || (!tTime && this._ts < 0)) && _removeFromParent(this, 1); // don't remove if we're rendering at exactly a time of 0, as there could be autoRevert values that should get set on the next tick (if the playhead goes backward beyond the startTime, negative totalTime). Don't remove if the timeline is reversed and the playhead isn't at 0, otherwise tl.progress(1).reverse() won't work. Only remove if the playhead is at the end and timeScale is positive, or if the playhead is at 0 and the timeScale is negative.\n\t\t\t if (!suppressEvents && !(isNegative && !prevTime) && (tTime || prevTime || isYoyo)) { // if prevTime and tTime are zero, we shouldn't fire the onReverseComplete. This could happen if you gsap.to(... {paused:true}).play();\n\t\t\t\t\t_callback(this, (tTime === tDur ? \"onComplete\" : \"onReverseComplete\"), true);\n\t\t\t\t\tthis._prom && !(tTime < tDur && this.timeScale() > 0) && this._prom();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn this;\n\t}\n\n\ttargets() {\n\t\treturn this._targets;\n\t}\n\n\tinvalidate(soft) { // \"soft\" gives us a way to clear out everything EXCEPT the recorded pre-\"from\" portion of from() tweens. Otherwise, for example, if you tween.progress(1).render(0, true true).invalidate(), the \"from\" values would persist and then on the next render, the from() tweens would initialize and the current value would match the \"from\" values, thus animate from the same value to the same value (no animation). We tap into this in ScrollTrigger's refresh() where we must push a tween to completion and then back again but honor its init state in case the tween is dependent on another tween further up on the page.\n\t\t(!soft || !this.vars.runBackwards) && (this._startAt = 0)\n\t\tthis._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0;\n\t\tthis._ptLookup = [];\n\t\tthis.timeline && this.timeline.invalidate(soft);\n\t\treturn super.invalidate(soft);\n\t}\n\n\tresetTo(property, value, start, startIsRelative, skipRecursion) {\n\t\t_tickerActive || _ticker.wake();\n\t\tthis._ts || this.play();\n\t\tlet time = Math.min(this._dur, (this._dp._time - this._start) * this._ts),\n\t\t\tratio;\n\t\tthis._initted || _initTween(this, time);\n\t\tratio = this._ease(time / this._dur); // don't just get tween.ratio because it may not have rendered yet.\n\t\t// possible future addition to allow an object with multiple values to update, like tween.resetTo({x: 100, y: 200}); At this point, it doesn't seem worth the added kb given the fact that most users will likely opt for the convenient gsap.quickTo() way of interacting with this method.\n\t\t// if (_isObject(property)) { // performance optimization\n\t\t// \tfor (p in property) {\n\t\t// \t\tif (_updatePropTweens(this, p, property[p], value ? value[p] : null, start, ratio, time)) {\n\t\t// \t\t\treturn this.resetTo(property, value, start, startIsRelative); // if a PropTween wasn't found for the property, it'll get forced with a re-initialization so we need to jump out and start over again.\n\t\t// \t\t}\n\t\t// \t}\n\t\t// } else {\n\t\t\tif (_updatePropTweens(this, property, value, start, startIsRelative, ratio, time, skipRecursion)) {\n\t\t\t\treturn this.resetTo(property, value, start, startIsRelative, 1); // if a PropTween wasn't found for the property, it'll get forced with a re-initialization so we need to jump out and start over again.\n\t\t\t}\n\t\t//}\n\t\t_alignPlayhead(this, 0);\n\t\tthis.parent || _addLinkedListItem(this._dp, this, \"_first\", \"_last\", this._dp._sort ? \"_start\" : 0);\n\t\treturn this.render(0);\n\t}\n\n\tkill(targets, vars = \"all\") {\n\t\tif (!targets && (!vars || vars === \"all\")) {\n\t\t\tthis._lazy = this._pt = 0;\n\t\t\tthis.parent ? _interrupt(this) : this.scrollTrigger && this.scrollTrigger.kill(!!_reverting);\n\t\t\treturn this;\n\t\t}\n\t\tif (this.timeline) {\n\t\t\tlet tDur = this.timeline.totalDuration();\n\t\t\tthis.timeline.killTweensOf(targets, vars, _overwritingTween && _overwritingTween.vars.overwrite !== true)._first || _interrupt(this); // if nothing is left tweening, interrupt.\n\t\t\tthis.parent && tDur !== this.timeline.totalDuration() && _setDuration(this, this._dur * this.timeline._tDur / tDur, 0, 1); // if a nested tween is killed that changes the duration, it should affect this tween's duration. We must use the ratio, though, because sometimes the internal timeline is stretched like for keyframes where they don't all add up to whatever the parent tween's duration was set to.\n\t\t\treturn this;\n\t\t}\n\t\tlet parsedTargets = this._targets,\n\t\t\tkillingTargets = targets ? toArray(targets) : parsedTargets,\n\t\t\tpropTweenLookup = this._ptLookup,\n\t\t\tfirstPT = this._pt,\n\t\t\toverwrittenProps, curLookup, curOverwriteProps, props, p, pt, i;\n\t\tif ((!vars || vars === \"all\") && _arraysMatch(parsedTargets, killingTargets)) {\n\t\t\tvars === \"all\" && (this._pt = 0);\n\t\t\treturn _interrupt(this);\n\t\t}\n\t\toverwrittenProps = this._op = this._op || [];\n\t\tif (vars !== \"all\") { //so people can pass in a comma-delimited list of property names\n\t\t\tif (_isString(vars)) {\n\t\t\t\tp = {};\n\t\t\t\t_forEachName(vars, name => p[name] = 1);\n\t\t\t\tvars = p;\n\t\t\t}\n\t\t\tvars = _addAliasesToVars(parsedTargets, vars);\n\t\t}\n\t\ti = parsedTargets.length;\n\t\twhile (i--) {\n\t\t\tif (~killingTargets.indexOf(parsedTargets[i])) {\n\t\t\t\tcurLookup = propTweenLookup[i];\n\t\t\t\tif (vars === \"all\") {\n\t\t\t\t\toverwrittenProps[i] = vars;\n\t\t\t\t\tprops = curLookup;\n\t\t\t\t\tcurOverwriteProps = {};\n\t\t\t\t} else {\n\t\t\t\t\tcurOverwriteProps = overwrittenProps[i] = overwrittenProps[i] || {};\n\t\t\t\t\tprops = vars;\n\t\t\t\t}\n\t\t\t\tfor (p in props) {\n\t\t\t\t\tpt = curLookup && curLookup[p];\n\t\t\t\t\tif (pt) {\n\t\t\t\t\t\tif (!(\"kill\" in pt.d) || pt.d.kill(p) === true) {\n\t\t\t\t\t\t\t_removeLinkedListItem(this, pt, \"_pt\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdelete curLookup[p];\n\t\t\t\t\t}\n\t\t\t\t\tif (curOverwriteProps !== \"all\") {\n\t\t\t\t\t\tcurOverwriteProps[p] = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis._initted && !this._pt && firstPT && _interrupt(this); //if all tweening properties are killed, kill the tween. Without this line, if there's a tween with multiple targets and then you killTweensOf() each target individually, the tween would technically still remain active and fire its onComplete even though there aren't any more properties tweening.\n\t\treturn this;\n\t}\n\n\n\tstatic to(targets, vars) {\n\t\treturn new Tween(targets, vars, arguments[2]);\n\t}\n\n\tstatic from(targets, vars) {\n\t\treturn _createTweenType(1, arguments);\n\t}\n\n\tstatic delayedCall(delay, callback, params, scope) {\n\t\treturn new Tween(callback, 0, {immediateRender:false, lazy:false, overwrite:false, delay:delay, onComplete:callback, onReverseComplete:callback, onCompleteParams:params, onReverseCompleteParams:params, callbackScope:scope}); // we must use onReverseComplete too for things like timeline.add(() => {...}) which should be triggered in BOTH directions (forward and reverse)\n\t}\n\n\tstatic fromTo(targets, fromVars, toVars) {\n\t\treturn _createTweenType(2, arguments);\n\t}\n\n\tstatic set(targets, vars) {\n\t\tvars.duration = 0;\n\t\tvars.repeatDelay || (vars.repeat = 0);\n\t\treturn new Tween(targets, vars);\n\t}\n\n\tstatic killTweensOf(targets, props, onlyActive) {\n\t\treturn _globalTimeline.killTweensOf(targets, props, onlyActive);\n\t}\n}\n\n_setDefaults(Tween.prototype, {_targets:[], _lazy:0, _startAt:0, _op:0, _onInit:0});\n\n//add the pertinent timeline methods to Tween instances so that users can chain conveniently and create a timeline automatically. (removed due to concerns that it'd ultimately add to more confusion especially for beginners)\n// _forEachName(\"to,from,fromTo,set,call,add,addLabel,addPause\", name => {\n// \tTween.prototype[name] = function() {\n// \t\tlet tl = new Timeline();\n// \t\treturn _addToTimeline(tl, this)[name].apply(tl, toArray(arguments));\n// \t}\n// });\n\n//for backward compatibility. Leverage the timeline calls.\n_forEachName(\"staggerTo,staggerFrom,staggerFromTo\", name => {\n\tTween[name] = function() {\n\t\tlet tl = new Timeline(),\n\t\t\tparams = _slice.call(arguments, 0);\n\t\tparams.splice(name === \"staggerFromTo\" ? 5 : 4, 0, 0);\n\t\treturn tl[name].apply(tl, params);\n\t}\n});\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * PROPTWEEN\n * --------------------------------------------------------------------------------------\n */\nlet _setterPlain = (target, property, value) => target[property] = value,\n\t_setterFunc = (target, property, value) => target[property](value),\n\t_setterFuncWithParam = (target, property, value, data) => target[property](data.fp, value),\n\t_setterAttribute = (target, property, value) => target.setAttribute(property, value),\n\t_getSetter = (target, property) => _isFunction(target[property]) ? _setterFunc : _isUndefined(target[property]) && target.setAttribute ? _setterAttribute : _setterPlain,\n\t_renderPlain = (ratio, data) => data.set(data.t, data.p, Math.round((data.s + data.c * ratio) * 1000000) / 1000000, data),\n\t_renderBoolean = (ratio, data) => data.set(data.t, data.p, !!(data.s + data.c * ratio), data),\n\t_renderComplexString = function(ratio, data) {\n\t\tlet pt = data._pt,\n\t\t\ts = \"\";\n\t\tif (!ratio && data.b) { //b = beginning string\n\t\t\ts = data.b;\n\t\t} else if (ratio === 1 && data.e) { //e = ending string\n\t\t\ts = data.e;\n\t\t} else {\n\t\t\twhile (pt) {\n\t\t\t\ts = pt.p + (pt.m ? pt.m(pt.s + pt.c * ratio) : (Math.round((pt.s + pt.c * ratio) * 10000) / 10000)) + s; //we use the \"p\" property for the text inbetween (like a suffix). And in the context of a complex string, the modifier (m) is typically just Math.round(), like for RGB colors.\n\t\t\t\tpt = pt._next;\n\t\t\t}\n\t\t\ts += data.c; //we use the \"c\" of the PropTween to store the final chunk of non-numeric text.\n\t\t}\n\t\tdata.set(data.t, data.p, s, data);\n\t},\n\t_renderPropTweens = function(ratio, data) {\n\t\tlet pt = data._pt;\n\t\twhile (pt) {\n\t\t\tpt.r(ratio, pt.d);\n\t\t\tpt = pt._next;\n\t\t}\n\t},\n\t_addPluginModifier = function(modifier, tween, target, property) {\n\t\tlet pt = this._pt,\n\t\t\tnext;\n\t\twhile (pt) {\n\t\t\tnext = pt._next;\n\t\t\tpt.p === property && pt.modifier(modifier, tween, target);\n\t\t\tpt = next;\n\t\t}\n\t},\n\t_killPropTweensOf = function(property) {\n\t\tlet pt = this._pt,\n\t\t\thasNonDependentRemaining, next;\n\t\twhile (pt) {\n\t\t\tnext = pt._next;\n\t\t\tif ((pt.p === property && !pt.op) || pt.op === property) {\n\t\t\t\t_removeLinkedListItem(this, pt, \"_pt\");\n\t\t\t} else if (!pt.dep) {\n\t\t\t\thasNonDependentRemaining = 1;\n\t\t\t}\n\t\t\tpt = next;\n\t\t}\n\t\treturn !hasNonDependentRemaining;\n\t},\n\t_setterWithModifier = (target, property, value, data) => {\n\t\tdata.mSet(target, property, data.m.call(data.tween, value, data.mt), data);\n\t},\n\t_sortPropTweensByPriority = parent => {\n\t\tlet pt = parent._pt,\n\t\t\tnext, pt2, first, last;\n\t\t//sorts the PropTween linked list in order of priority because some plugins need to do their work after ALL of the PropTweens were created (like RoundPropsPlugin and ModifiersPlugin)\n\t\twhile (pt) {\n\t\t\tnext = pt._next;\n\t\t\tpt2 = first;\n\t\t\twhile (pt2 && pt2.pr > pt.pr) {\n\t\t\t\tpt2 = pt2._next;\n\t\t\t}\n\t\t\tif ((pt._prev = pt2 ? pt2._prev : last)) {\n\t\t\t\tpt._prev._next = pt;\n\t\t\t} else {\n\t\t\t\tfirst = pt;\n\t\t\t}\n\t\t\tif ((pt._next = pt2)) {\n\t\t\t\tpt2._prev = pt;\n\t\t\t} else {\n\t\t\t\tlast = pt;\n\t\t\t}\n\t\t\tpt = next;\n\t\t}\n\t\tparent._pt = first;\n\t};\n\n//PropTween key: t = target, p = prop, r = renderer, d = data, s = start, c = change, op = overwriteProperty (ONLY populated when it's different than p), pr = priority, _next/_prev for the linked list siblings, set = setter, m = modifier, mSet = modifierSetter (the original setter, before a modifier was added)\nexport class PropTween {\n\n\tconstructor(next, target, prop, start, change, renderer, data, setter, priority) {\n\t\tthis.t = target;\n\t\tthis.s = start;\n\t\tthis.c = change;\n\t\tthis.p = prop;\n\t\tthis.r = renderer || _renderPlain;\n\t\tthis.d = data || this;\n\t\tthis.set = setter || _setterPlain;\n\t\tthis.pr = priority || 0;\n\t\tthis._next = next;\n\t\tif (next) {\n\t\t\tnext._prev = this;\n\t\t}\n\t}\n\n\tmodifier(func, tween, target) {\n\t\tthis.mSet = this.mSet || this.set; //in case it was already set (a PropTween can only have one modifier)\n\t\tthis.set = _setterWithModifier;\n\t\tthis.m = func;\n\t\tthis.mt = target; //modifier target\n\t\tthis.tween = tween;\n\t}\n}\n\n\n\n//Initialization tasks\n_forEachName(_callbackNames + \"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger\", name => _reservedProps[name] = 1);\n_globals.TweenMax = _globals.TweenLite = Tween;\n_globals.TimelineLite = _globals.TimelineMax = Timeline;\n_globalTimeline = new Timeline({sortChildren: false, defaults: _defaults, autoRemoveChildren: true, id:\"root\", smoothChildTiming: true});\n_config.stringFilter = _colorStringFilter;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nlet _media = [],\n\t_listeners = {},\n\t_emptyArray = [],\n\t_lastMediaTime = 0,\n\t_contextID = 0,\n\t_dispatch = type => (_listeners[type] || _emptyArray).map(f => f()),\n\t_onMediaChange = () => {\n\t\tlet time = Date.now(),\n\t\t\tmatches = [];\n\t\tif (time - _lastMediaTime > 2) {\n\t\t\t_dispatch(\"matchMediaInit\");\n\t\t\t_media.forEach(c => {\n\t\t\t\tlet queries = c.queries,\n\t\t\t\t\tconditions = c.conditions,\n\t\t\t\t\tmatch, p, anyMatch, toggled;\n\t\t\t\tfor (p in queries) {\n\t\t\t\t\tmatch = _win.matchMedia(queries[p]).matches; // Firefox doesn't update the \"matches\" property of the MediaQueryList object correctly - it only does so as it calls its change handler - so we must re-create a media query here to ensure it's accurate.\n\t\t\t\t\tmatch && (anyMatch = 1);\n\t\t\t\t\tif (match !== conditions[p]) {\n\t\t\t\t\t\tconditions[p] = match;\n\t\t\t\t\t\ttoggled = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (toggled) {\n\t\t\t\t\tc.revert();\n\t\t\t\t\tanyMatch && matches.push(c);\n\t\t\t\t}\n\t\t\t});\n\t\t\t_dispatch(\"matchMediaRevert\");\n\t\t\tmatches.forEach(c => c.onMatch(c, func => c.add(null, func)));\n\t\t\t_lastMediaTime = time;\n\t\t\t_dispatch(\"matchMedia\");\n\t\t}\n\t};\n\nclass Context {\n\tconstructor(func, scope) {\n\t\tthis.selector = scope && selector(scope);\n\t\tthis.data = [];\n\t\tthis._r = []; // returned/cleanup functions\n\t\tthis.isReverted = false;\n\t\tthis.id = _contextID++; // to work around issues that frameworks like Vue cause by making things into Proxies which make it impossible to do something like _media.indexOf(this) because \"this\" would no longer refer to the Context instance itself - it'd refer to a Proxy! We needed a way to identify the context uniquely\n\t\tfunc && this.add(func);\n\t}\n\tadd(name, func, scope) {\n\t\t// possible future addition if we need the ability to add() an animation to a context and for whatever reason cannot create that animation inside of a context.add(() => {...}) function.\n\t\t// if (name && _isFunction(name.revert)) {\n\t\t// \tthis.data.push(name);\n\t\t// \treturn (name._ctx = this);\n\t\t// }\n\t\tif (_isFunction(name)) {\n\t\t\tscope = func;\n\t\t\tfunc = name;\n\t\t\tname = _isFunction;\n\t\t}\n\t\tlet self = this,\n\t\t\tf = function() {\n\t\t\t\tlet prev = _context,\n\t\t\t\t\tprevSelector = self.selector,\n\t\t\t\t\tresult;\n\t\t\t\tprev && prev !== self && prev.data.push(self);\n\t\t\t\tscope && (self.selector = selector(scope));\n\t\t\t\t_context = self;\n\t\t\t\tresult = func.apply(self, arguments);\n\t\t\t\t_isFunction(result) && self._r.push(result);\n\t\t\t\t_context = prev;\n\t\t\t\tself.selector = prevSelector;\n\t\t\t\tself.isReverted = false;\n\t\t\t\treturn result;\n\t\t\t};\n\t\tself.last = f;\n\t\treturn name === _isFunction ? f(self, func => self.add(null, func)) : name ? (self[name] = f) : f;\n\t}\n\tignore(func) {\n\t\tlet prev = _context;\n\t\t_context = null;\n\t\tfunc(this);\n\t\t_context = prev;\n\t}\n\tgetTweens() {\n\t\tlet a = [];\n\t\tthis.data.forEach(e => (e instanceof Context) ? a.push(...e.getTweens()) : (e instanceof Tween) && !(e.parent && e.parent.data === \"nested\") && a.push(e));\n\t\treturn a;\n\t}\n\tclear() {\n\t\tthis._r.length = this.data.length = 0;\n\t}\n\tkill(revert, matchMedia) {\n\t\tif (revert) {\n\t\t\tlet tweens = this.getTweens(),\n\t\t\t\ti = this.data.length,\n\t\t\t\tt;\n\t\t\twhile (i--) { // Flip plugin tweens are very different in that they should actually be pushed to their end. The plugin replaces the timeline's .revert() method to do exactly that. But we also need to remove any of those nested tweens inside the flip timeline so that they don't get individually reverted.\n\t\t\t\tt = this.data[i];\n\t\t\t\tif (t.data === \"isFlip\") {\n\t\t\t\t\tt.revert();\n\t\t\t\t\tt.getChildren(true, true, false).forEach(tween => tweens.splice(tweens.indexOf(tween), 1));\n\t\t\t\t}\n\t\t\t}\n\t\t\t// save as an object so that we can cache the globalTime for each tween to optimize performance during the sort\n\t\t\ttweens.map(t => { return {g: t._dur || t._delay || (t._sat && !t._sat.vars.immediateRender) ? t.globalTime(0) : -Infinity, t}}).sort((a, b) => b.g - a.g || -Infinity).forEach(o => o.t.revert(revert)); // note: all of the _startAt tweens should be reverted in reverse order that they were created, and they'll all have the same globalTime (-1) so the \" || -1\" in the sort keeps the order properly.\n\t\t\ti = this.data.length;\n\t\t\twhile (i--) { // make sure we loop backwards so that, for example, SplitTexts that were created later on the same element get reverted first\n\t\t\t\tt = this.data[i];\n\t\t\t\tif (t instanceof Timeline) {\n\t\t\t\t\tif (t.data !== \"nested\") {\n\t\t\t\t\t\tt.scrollTrigger && t.scrollTrigger.revert();\n\t\t\t\t\t\tt.kill(); // don't revert() the timeline because that's duplicating efforts since we already reverted all the tweens\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t!(t instanceof Tween) && t.revert && t.revert(revert)\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis._r.forEach(f => f(revert, this));\n\t\t\tthis.isReverted = true;\n\t\t} else {\n\t\t\tthis.data.forEach(e => e.kill && e.kill());\n\t\t}\n\t\tthis.clear();\n\t\tif (matchMedia) {\n\t\t\tlet i = _media.length;\n\t\t\twhile (i--) { // previously, we checked _media.indexOf(this), but some frameworks like Vue enforce Proxy objects that make it impossible to get the proper result that way, so we must use a unique ID number instead.\n\t\t\t\t_media[i].id === this.id && _media.splice(i, 1);\n\t\t\t}\n\t\t}\n\t}\n\n\t// killWithCleanup() {\n\t// \tthis.kill();\n\t// \tthis._r.forEach(f => f(false, this));\n\t// }\n\n\trevert(config) {\n\t\tthis.kill(config || {});\n\t}\n}\n\n\n\n\nclass MatchMedia {\n\tconstructor(scope) {\n\t\tthis.contexts = [];\n\t\tthis.scope = scope;\n\t\t_context && _context.data.push(this);\n\t}\n\tadd(conditions, func, scope) {\n\t\t_isObject(conditions) || (conditions = {matches: conditions});\n\t\tlet context = new Context(0, scope || this.scope),\n\t\t\tcond = context.conditions = {},\n\t\t\tmq, p, active;\n\t\t_context && !context.selector && (context.selector = _context.selector); // in case a context is created inside a context. Like a gsap.matchMedia() that's inside a scoped gsap.context()\n\t\tthis.contexts.push(context);\n\t\tfunc = context.add(\"onMatch\", func);\n\t\tcontext.queries = conditions;\n\t\tfor (p in conditions) {\n\t\t\tif (p === \"all\") {\n\t\t\t\tactive = 1;\n\t\t\t} else {\n\t\t\t\tmq = _win.matchMedia(conditions[p]);\n\t\t\t\tif (mq) {\n\t\t\t\t\t_media.indexOf(context) < 0 && _media.push(context);\n\t\t\t\t\t(cond[p] = mq.matches) && (active = 1);\n\t\t\t\t\tmq.addListener ? mq.addListener(_onMediaChange) : mq.addEventListener(\"change\", _onMediaChange);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tactive && func(context, f => context.add(null, f));\n\t\treturn this;\n\t}\n\t// refresh() {\n\t// \tlet time = _lastMediaTime,\n\t// \t\tmedia = _media;\n\t// \t_lastMediaTime = -1;\n\t// \t_media = this.contexts;\n\t// \t_onMediaChange();\n\t// \t_lastMediaTime = time;\n\t// \t_media = media;\n\t// }\n\trevert(config) {\n\t\tthis.kill(config || {});\n\t}\n\tkill(revert) {\n\t\tthis.contexts.forEach(c => c.kill(revert, true));\n\t}\n}\n\n\n\n/*\n * --------------------------------------------------------------------------------------\n * GSAP\n * --------------------------------------------------------------------------------------\n */\nconst _gsap = {\n\tregisterPlugin(...args) {\n\t\targs.forEach(config => _createPlugin(config));\n\t},\n\ttimeline(vars) {\n\t\treturn new Timeline(vars);\n\t},\n\tgetTweensOf(targets, onlyActive) {\n\t\treturn _globalTimeline.getTweensOf(targets, onlyActive);\n\t},\n\tgetProperty(target, property, unit, uncache) {\n\t\t_isString(target) && (target = toArray(target)[0]); //in case selector text or an array is passed in\n\t\tlet getter = _getCache(target || {}).get,\n\t\t\tformat = unit ? _passThrough : _numericIfPossible;\n\t\tunit === \"native\" && (unit = \"\");\n\t\treturn !target ? target : !property ? (property, unit, uncache) => format(((_plugins[property] && _plugins[property].get) || getter)(target, property, unit, uncache)) : format(((_plugins[property] && _plugins[property].get) || getter)(target, property, unit, uncache));\n\t},\n\tquickSetter(target, property, unit) {\n\t\ttarget = toArray(target);\n\t\tif (target.length > 1) {\n\t\t\tlet setters = target.map(t => gsap.quickSetter(t, property, unit)),\n\t\t\t\tl = setters.length;\n\t\t\treturn value => {\n\t\t\t\tlet i = l;\n\t\t\t\twhile(i--) {\n\t\t\t\t\tsetters[i](value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttarget = target[0] || {};\n\t\tlet Plugin = _plugins[property],\n\t\t\tcache = _getCache(target),\n\t\t\tp = (cache.harness && (cache.harness.aliases || {})[property]) || property, // in case it's an alias, like \"rotate\" for \"rotation\".\n\t\t\tsetter = Plugin ? value => {\n\t\t\t\tlet p = new Plugin();\n\t\t\t\t_quickTween._pt = 0;\n\t\t\t\tp.init(target, unit ? value + unit : value, _quickTween, 0, [target]);\n\t\t\t\tp.render(1, p);\n\t\t\t\t_quickTween._pt && _renderPropTweens(1, _quickTween);\n\t\t\t} : cache.set(target, p);\n\t\treturn Plugin ? setter : value => setter(target, p, unit ? value + unit : value, cache, 1);\n\t},\n\tquickTo(target, property, vars) {\n\t\tlet tween = gsap.to(target, _setDefaults({[property]: \"+=0.1\", paused: true, stagger: 0}, vars || {})),\n\t\t\tfunc = (value, start, startIsRelative) => tween.resetTo(property, value, start, startIsRelative);\n\t\tfunc.tween = tween;\n\t\treturn func;\n\t},\n\tisTweening(targets) {\n\t\treturn _globalTimeline.getTweensOf(targets, true).length > 0;\n\t},\n\tdefaults(value) {\n\t\tvalue && value.ease && (value.ease = _parseEase(value.ease, _defaults.ease));\n\t\treturn _mergeDeep(_defaults, value || {});\n\t},\n\tconfig(value) {\n\t\treturn _mergeDeep(_config, value || {});\n\t},\n\tregisterEffect({name, effect, plugins, defaults, extendTimeline}) {\n\t\t(plugins || \"\").split(\",\").forEach(pluginName => pluginName && !_plugins[pluginName] && !_globals[pluginName] && _warn(name + \" effect requires \" + pluginName + \" plugin.\"));\n\t\t_effects[name] = (targets, vars, tl) => effect(toArray(targets), _setDefaults(vars || {}, defaults), tl);\n\t\tif (extendTimeline) {\n\t\t\tTimeline.prototype[name] = function(targets, vars, position) {\n\t\t\t\treturn this.add(_effects[name](targets, _isObject(vars) ? vars : (position = vars) && {}, this), position);\n\t\t\t};\n\t\t}\n\t},\n\tregisterEase(name, ease) {\n\t\t_easeMap[name] = _parseEase(ease);\n\t},\n\tparseEase(ease, defaultEase) {\n\t\treturn arguments.length ? _parseEase(ease, defaultEase) : _easeMap;\n\t},\n\tgetById(id) {\n\t\treturn _globalTimeline.getById(id);\n\t},\n\texportRoot(vars = {}, includeDelayedCalls) {\n\t\tlet tl = new Timeline(vars),\n\t\t\tchild, next;\n\t\ttl.smoothChildTiming = _isNotFalse(vars.smoothChildTiming);\n\t\t_globalTimeline.remove(tl);\n\t\ttl._dp = 0; //otherwise it'll get re-activated when adding children and be re-introduced into _globalTimeline's linked list (then added to itself).\n\t\ttl._time = tl._tTime = _globalTimeline._time;\n\t\tchild = _globalTimeline._first;\n\t\twhile (child) {\n\t\t\tnext = child._next;\n\t\t\tif (includeDelayedCalls || !(!child._dur && child instanceof Tween && child.vars.onComplete === child._targets[0])) {\n\t\t\t\t_addToTimeline(tl, child, child._start - child._delay);\n\t\t\t}\n\t\t\tchild = next;\n\t\t}\n\t\t_addToTimeline(_globalTimeline, tl, 0);\n\t\treturn tl;\n\t},\n\tcontext: (func, scope) => func ? new Context(func, scope) : _context,\n\tmatchMedia: scope => new MatchMedia(scope),\n\tmatchMediaRefresh: () => _media.forEach(c => {\n\t\tlet cond = c.conditions,\n\t\t\tfound, p;\n\t\tfor (p in cond) {\n\t\t\tif (cond[p]) {\n\t\t\t\tcond[p] = false;\n\t\t\t\tfound = 1;\n\t\t\t}\n\t\t}\n\t\tfound && c.revert();\n\t}) || _onMediaChange(),\n\taddEventListener(type, callback) {\n\t\tlet a = _listeners[type] || (_listeners[type] = []);\n\t\t~a.indexOf(callback) || a.push(callback);\n\t},\n\tremoveEventListener(type, callback) {\n\t\tlet a = _listeners[type],\n\t\t\ti = a && a.indexOf(callback);\n\t\ti >= 0 && a.splice(i, 1);\n\t},\n\tutils: { wrap, wrapYoyo, distribute, random, snap, normalize, getUnit, clamp, splitColor, toArray, selector, mapRange, pipe, unitize, interpolate, shuffle },\n\tinstall: _install,\n\teffects: _effects,\n\tticker: _ticker,\n\tupdateRoot: Timeline.updateRoot,\n\tplugins: _plugins,\n\tglobalTimeline: _globalTimeline,\n\tcore: {PropTween, globals: _addGlobal, Tween, Timeline, Animation, getCache: _getCache, _removeLinkedListItem, reverting: () => _reverting, context: toAdd => {if (toAdd && _context) { _context.data.push(toAdd); toAdd._ctx = _context} return _context; }, suppressOverwrites: value => _suppressOverwrites = value}\n};\n\n_forEachName(\"to,from,fromTo,delayedCall,set,killTweensOf\", name => _gsap[name] = Tween[name]);\n_ticker.add(Timeline.updateRoot);\n_quickTween = _gsap.to({}, {duration:0});\n\n\n\n\n// ---- EXTRA PLUGINS --------------------------------------------------------\n\n\nlet _getPluginPropTween = (plugin, prop) => {\n\t\tlet pt = plugin._pt;\n\t\twhile (pt && pt.p !== prop && pt.op !== prop && pt.fp !== prop) {\n\t\t\tpt = pt._next;\n\t\t}\n\t\treturn pt;\n\t},\n\t_addModifiers = (tween, modifiers) => {\n\t\t\tlet\ttargets = tween._targets,\n\t\t\t\tp, i, pt;\n\t\t\tfor (p in modifiers) {\n\t\t\t\ti = targets.length;\n\t\t\t\twhile (i--) {\n\t\t\t\t\tpt = tween._ptLookup[i][p];\n\t\t\t\t\tif (pt && (pt = pt.d)) {\n\t\t\t\t\t\tif (pt._pt) { // is a plugin\n\t\t\t\t\t\t\tpt = _getPluginPropTween(pt, p);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpt && pt.modifier && pt.modifier(modifiers[p], tween, targets[i], p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t},\n\t_buildModifierPlugin = (name, modifier) => {\n\t\treturn {\n\t\t\tname: name,\n\t\t\trawVars: 1, //don't pre-process function-based values or \"random()\" strings.\n\t\t\tinit(target, vars, tween) {\n\t\t\t\ttween._onInit = tween => {\n\t\t\t\t\tlet temp, p;\n\t\t\t\t\tif (_isString(vars)) {\n\t\t\t\t\t\ttemp = {};\n\t\t\t\t\t\t_forEachName(vars, name => temp[name] = 1); //if the user passes in a comma-delimited list of property names to roundProps, like \"x,y\", we round to whole numbers.\n\t\t\t\t\t\tvars = temp;\n\t\t\t\t\t}\n\t\t\t\t\tif (modifier) {\n\t\t\t\t\t\ttemp = {};\n\t\t\t\t\t\tfor (p in vars) {\n\t\t\t\t\t\t\ttemp[p] = modifier(vars[p]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvars = temp;\n\t\t\t\t\t}\n\t\t\t\t\t_addModifiers(tween, vars);\n\t\t\t\t};\n\t\t\t}\n\t\t};\n\t};\n\n//register core plugins\nexport const gsap = _gsap.registerPlugin({\n\t\tname:\"attr\",\n\t\tinit(target, vars, tween, index, targets) {\n\t\t\tlet p, pt, v;\n\t\t\tthis.tween = tween;\n\t\t\tfor (p in vars) {\n\t\t\t\tv = target.getAttribute(p) || \"\";\n\t\t\t\tpt = this.add(target, \"setAttribute\", (v || 0) + \"\", vars[p], index, targets, 0, 0, p);\n\t\t\t\tpt.op = p;\n\t\t\t\tpt.b = v; // record the beginning value so we can revert()\n\t\t\t\tthis._props.push(p);\n\t\t\t}\n\t\t},\n\t\trender(ratio, data) {\n\t\t\tlet pt = data._pt;\n\t\t\twhile (pt) {\n\t\t\t\t_reverting ? pt.set(pt.t, pt.p, pt.b, pt) : pt.r(ratio, pt.d); // if reverting, go back to the original (pt.b)\n\t\t\t\tpt = pt._next;\n\t\t\t}\n\t\t}\n\t}, {\n\t\tname:\"endArray\",\n\t\tinit(target, value) {\n\t\t\tlet i = value.length;\n\t\t\twhile (i--) {\n\t\t\t\tthis.add(target, i, target[i] || 0, value[i], 0, 0, 0, 0, 0, 1);\n\t\t\t}\n\t\t}\n\t},\n\t_buildModifierPlugin(\"roundProps\", _roundModifier),\n\t_buildModifierPlugin(\"modifiers\"),\n\t_buildModifierPlugin(\"snap\", snap)\n) || _gsap; //to prevent the core plugins from being dropped via aggressive tree shaking, we must include them in the variable declaration in this way.\n\nTween.version = Timeline.version = gsap.version = \"3.12.7\";\n_coreReady = 1;\n_windowExists() && _wake();\n\nexport const { Power0, Power1, Power2, Power3, Power4, Linear, Quad, Cubic, Quart, Quint, Strong, Elastic, Back, SteppedEase, Bounce, Sine, Expo, Circ } = _easeMap;\nexport { Tween as TweenMax, Tween as TweenLite, Timeline as TimelineMax, Timeline as TimelineLite, gsap as default, wrap, wrapYoyo, distribute, random, snap, normalize, getUnit, clamp, splitColor, toArray, selector, mapRange, pipe, unitize, interpolate, shuffle };\n//export some internal methods/orojects for use in CSSPlugin so that we can externalize that file and allow custom builds that exclude it.\nexport { _getProperty, _numExp, _numWithUnitExp, _isString, _isUndefined, _renderComplexString, _relExp, _setDefaults, _removeLinkedListItem, _forEachName, _sortPropTweensByPriority, _colorStringFilter, _replaceRandom, _checkPlugin, _plugins, _ticker, _config, _roundModifier, _round, _missingPlugin, _getSetter, _getCache, _colorExp, _parseRelative }","/*!\n * CSSPlugin 3.12.7\n * https://gsap.com\n *\n * Copyright 2008-2025, GreenSock. All rights reserved.\n * Subject to the terms at https://gsap.com/standard-license or for\n * Club GSAP members, the agreement issued with that membership.\n * @author: Jack Doyle, jack@greensock.com\n*/\n/* eslint-disable */\n\nimport {gsap, _getProperty, _numExp, _numWithUnitExp, getUnit, _isString, _isUndefined, _renderComplexString, _relExp, _forEachName, _sortPropTweensByPriority, _colorStringFilter, _checkPlugin, _replaceRandom, _plugins, GSCache, PropTween, _config, _ticker, _round, _missingPlugin, _getSetter, _getCache, _colorExp, _parseRelative,\n\t_setDefaults, _removeLinkedListItem //for the commented-out className feature.\n} from \"./gsap-core.js\";\n\nlet _win, _doc, _docElement, _pluginInitted, _tempDiv, _tempDivStyler, _recentSetterPlugin, _reverting,\n\t_windowExists = () => typeof(window) !== \"undefined\",\n\t_transformProps = {},\n\t_RAD2DEG = 180 / Math.PI,\n\t_DEG2RAD = Math.PI / 180,\n\t_atan2 = Math.atan2,\n\t_bigNum = 1e8,\n\t_capsExp = /([A-Z])/g,\n\t_horizontalExp = /(left|right|width|margin|padding|x)/i,\n\t_complexExp = /[\\s,\\(]\\S/,\n\t_propertyAliases = {autoAlpha:\"opacity,visibility\", scale:\"scaleX,scaleY\", alpha:\"opacity\"},\n\t_renderCSSProp = (ratio, data) => data.set(data.t, data.p, (Math.round((data.s + data.c * ratio) * 10000) / 10000) + data.u, data),\n\t_renderPropWithEnd = (ratio, data) => data.set(data.t, data.p, ratio === 1 ? data.e : (Math.round((data.s + data.c * ratio) * 10000) / 10000) + data.u, data),\n\t_renderCSSPropWithBeginning = (ratio, data) => data.set(data.t, data.p, ratio ? (Math.round((data.s + data.c * ratio) * 10000) / 10000) + data.u : data.b, data), //if units change, we need a way to render the original unit/value when the tween goes all the way back to the beginning (ratio:0)\n\t_renderRoundedCSSProp = (ratio, data) => {\n\t\tlet value = data.s + data.c * ratio;\n\t\tdata.set(data.t, data.p, ~~(value + (value < 0 ? -.5 : .5)) + data.u, data);\n\t},\n\t_renderNonTweeningValue = (ratio, data) => data.set(data.t, data.p, ratio ? data.e : data.b, data),\n\t_renderNonTweeningValueOnlyAtEnd = (ratio, data) => data.set(data.t, data.p, ratio !== 1 ? data.b : data.e, data),\n\t_setterCSSStyle = (target, property, value) => target.style[property] = value,\n\t_setterCSSProp = (target, property, value) => target.style.setProperty(property, value),\n\t_setterTransform = (target, property, value) => target._gsap[property] = value,\n\t_setterScale = (target, property, value) => target._gsap.scaleX = target._gsap.scaleY = value,\n\t_setterScaleWithRender = (target, property, value, data, ratio) => {\n\t\tlet cache = target._gsap;\n\t\tcache.scaleX = cache.scaleY = value;\n\t\tcache.renderTransform(ratio, cache);\n\t},\n\t_setterTransformWithRender = (target, property, value, data, ratio) => {\n\t\tlet cache = target._gsap;\n\t\tcache[property] = value;\n\t\tcache.renderTransform(ratio, cache);\n\t},\n\t_transformProp = \"transform\",\n\t_transformOriginProp = _transformProp + \"Origin\",\n\t_saveStyle = function(property, isNotCSS) {\n\t\tlet target = this.target,\n\t\t\tstyle = target.style,\n\t\t\tcache = target._gsap;\n\t\tif ((property in _transformProps) && style) {\n\t\t\tthis.tfm = this.tfm || {};\n\t\t\tif (property !== \"transform\") {\n\t\t\t\tproperty = _propertyAliases[property] || property;\n\t\t\t\t~property.indexOf(\",\") ? property.split(\",\").forEach(a => this.tfm[a] = _get(target, a)) : (this.tfm[property] = cache.x ? cache[property] : _get(target, property)); // note: scale would map to \"scaleX,scaleY\", thus we loop and apply them both.\n\t\t\t\tproperty === _transformOriginProp && (this.tfm.zOrigin = cache.zOrigin);\n\t\t\t} else {\n\t\t\t\treturn _propertyAliases.transform.split(\",\").forEach(p => _saveStyle.call(this, p, isNotCSS));\n\t\t\t}\n\t\t\tif (this.props.indexOf(_transformProp) >= 0) { return; }\n\t\t\tif (cache.svg) {\n\t\t\t\tthis.svgo = target.getAttribute(\"data-svg-origin\");\n\t\t\t\tthis.props.push(_transformOriginProp, isNotCSS, \"\");\n\t\t\t}\n\t\t\tproperty = _transformProp;\n\t\t}\n\t\t(style || isNotCSS) && this.props.push(property, isNotCSS, style[property]);\n\t},\n\t_removeIndependentTransforms = style => {\n\t\tif (style.translate) {\n\t\t\tstyle.removeProperty(\"translate\");\n\t\t\tstyle.removeProperty(\"scale\");\n\t\t\tstyle.removeProperty(\"rotate\");\n\t\t}\n\t},\n\t_revertStyle = function() {\n\t\tlet props = this.props,\n\t\t\ttarget = this.target,\n\t\t\tstyle = target.style,\n\t\t\tcache = target._gsap,\n\t\t\ti, p;\n\t\tfor (i = 0; i < props.length; i+=3) { // stored like this: property, isNotCSS, value\n\t\t\tif (!props[i+1]) {\n\t\t\t\tprops[i+2] ? (style[props[i]] = props[i+2]) : style.removeProperty(props[i].substr(0,2) === \"--\" ? props[i] : props[i].replace(_capsExp, \"-$1\").toLowerCase());\n\t\t\t} else if (props[i+1] === 2) { // non-CSS value (function-based)\n\t\t\t\ttarget[props[i]](props[i+2]);\n\t\t\t} else { // non-CSS value (not function-based)\n\t\t\t\ttarget[props[i]] = props[i+2];\n\t\t\t}\n\t\t}\n\t\tif (this.tfm) {\n\t\t\tfor (p in this.tfm) {\n\t\t\t\tcache[p] = this.tfm[p];\n\t\t\t}\n\t\t\tif (cache.svg) {\n\t\t\t\tcache.renderTransform();\n\t\t\t\ttarget.setAttribute(\"data-svg-origin\", this.svgo || \"\");\n\t\t\t}\n\t\t\ti = _reverting();\n\t\t\tif ((!i || !i.isStart) && !style[_transformProp]) {\n\t\t\t\t_removeIndependentTransforms(style);\n\t\t\t\tif (cache.zOrigin && style[_transformOriginProp]) {\n\t\t\t\t\tstyle[_transformOriginProp] += \" \" + cache.zOrigin + \"px\"; // since we're uncaching, we must put the zOrigin back into the transformOrigin so that we can pull it out accurately when we parse again. Otherwise, we'd lose the z portion of the origin since we extract it to protect from Safari bugs.\n\t\t\t\t\tcache.zOrigin = 0;\n\t\t\t\t\tcache.renderTransform();\n\t\t\t\t}\n\t\t\t\tcache.uncache = 1; // if it's a startAt that's being reverted in the _initTween() of the core, we don't need to uncache transforms. This is purely a performance optimization.\n\t\t\t}\n\t\t}\n\t},\n\t_getStyleSaver = (target, properties) => {\n\t\tlet saver = {\n\t\t\ttarget,\n\t\t\tprops: [],\n\t\t\trevert: _revertStyle,\n\t\t\tsave: _saveStyle\n\t\t};\n\t\ttarget._gsap || gsap.core.getCache(target); // just make sure there's a _gsap cache defined because we read from it in _saveStyle() and it's more efficient to just check it here once.\n\t\tproperties && target.style && target.nodeType && properties.split(\",\").forEach(p => saver.save(p)); // make sure it's a DOM node too.\n\t\treturn saver;\n\t},\n\t_supports3D,\n\t_createElement = (type, ns) => {\n\t\tlet e = _doc.createElementNS ? _doc.createElementNS((ns || \"http://www.w3.org/1999/xhtml\").replace(/^https/, \"http\"), type) : _doc.createElement(type); //some servers swap in https for http in the namespace which can break things, making \"style\" inaccessible.\n\t\treturn e && e.style ? e : _doc.createElement(type); //some environments won't allow access to the element's style when created with a namespace in which case we default to the standard createElement() to work around the issue. Also note that when GSAP is embedded directly inside an SVG file, createElement() won't allow access to the style object in Firefox (see https://gsap.com/forums/topic/20215-problem-using-tweenmax-in-standalone-self-containing-svg-file-err-cannot-set-property-csstext-of-undefined/).\n\t},\n\t_getComputedProperty = (target, property, skipPrefixFallback) => {\n\t\tlet cs = getComputedStyle(target);\n\t\treturn cs[property] || cs.getPropertyValue(property.replace(_capsExp, \"-$1\").toLowerCase()) || cs.getPropertyValue(property) || (!skipPrefixFallback && _getComputedProperty(target, _checkPropPrefix(property) || property, 1)) || \"\"; //css variables may not need caps swapped out for dashes and lowercase.\n\t},\n\t_prefixes = \"O,Moz,ms,Ms,Webkit\".split(\",\"),\n\t_checkPropPrefix = (property, element, preferPrefix) => {\n\t\tlet e = element || _tempDiv,\n\t\t\ts = e.style,\n\t\t\ti = 5;\n\t\tif (property in s && !preferPrefix) {\n\t\t\treturn property;\n\t\t}\n\t\tproperty = property.charAt(0).toUpperCase() + property.substr(1);\n\t\twhile (i-- && !((_prefixes[i]+property) in s)) { }\n\t\treturn (i < 0) ? null : ((i === 3) ? \"ms\" : (i >= 0) ? _prefixes[i] : \"\") + property;\n\t},\n\t_initCore = () => {\n\t\tif (_windowExists() && window.document) {\n\t\t\t_win = window;\n\t\t\t_doc = _win.document;\n\t\t\t_docElement = _doc.documentElement;\n\t\t\t_tempDiv = _createElement(\"div\") || {style:{}};\n\t\t\t_tempDivStyler = _createElement(\"div\");\n\t\t\t_transformProp = _checkPropPrefix(_transformProp);\n\t\t\t_transformOriginProp = _transformProp + \"Origin\";\n\t\t\t_tempDiv.style.cssText = \"border-width:0;line-height:0;position:absolute;padding:0\"; //make sure to override certain properties that may contaminate measurements, in case the user has overreaching style sheets.\n\t\t\t_supports3D = !!_checkPropPrefix(\"perspective\");\n\t\t\t_reverting = gsap.core.reverting;\n\t\t\t_pluginInitted = 1;\n\t\t}\n\t},\n\t_getReparentedCloneBBox = target => { //works around issues in some browsers (like Firefox) that don't correctly report getBBox() on SVG elements inside a element and/or . We try creating an SVG, adding it to the documentElement and toss the element in there so that it's definitely part of the rendering tree, then grab the bbox and if it works, we actually swap out the original getBBox() method for our own that does these extra steps whenever getBBox is needed. This helps ensure that performance is optimal (only do all these extra steps when absolutely necessary...most elements don't need it).\n\t\tlet owner = target.ownerSVGElement,\n\t\t\tsvg = _createElement(\"svg\", (owner && owner.getAttribute(\"xmlns\")) || \"http://www.w3.org/2000/svg\"),\n\t\t\tclone = target.cloneNode(true),\n\t\t\tbbox;\n\t\tclone.style.display = \"block\";\n\t\tsvg.appendChild(clone);\n\t\t_docElement.appendChild(svg);\n\t\ttry {\n\t\t\tbbox = clone.getBBox();\n\t\t} catch (e) { }\n\t\tsvg.removeChild(clone);\n\t\t_docElement.removeChild(svg);\n\t\treturn bbox;\n\t},\n\t_getAttributeFallbacks = (target, attributesArray) => {\n\t\tlet i = attributesArray.length;\n\t\twhile (i--) {\n\t\t\tif (target.hasAttribute(attributesArray[i])) {\n\t\t\t\treturn target.getAttribute(attributesArray[i]);\n\t\t\t}\n\t\t}\n\t},\n\t_getBBox = target => {\n\t\tlet bounds, cloned;\n\t\ttry {\n\t\t\tbounds = target.getBBox(); //Firefox throws errors if you try calling getBBox() on an SVG element that's not rendered (like in a or ). https://bugzilla.mozilla.org/show_bug.cgi?id=612118\n\t\t} catch (error) {\n\t\t\tbounds = _getReparentedCloneBBox(target);\n\t\t\tcloned = 1;\n\t\t}\n\t\t(bounds && (bounds.width || bounds.height)) || cloned || (bounds = _getReparentedCloneBBox(target));\n\t\t//some browsers (like Firefox) misreport the bounds if the element has zero width and height (it just assumes it's at x:0, y:0), thus we need to manually grab the position in that case.\n\t\treturn (bounds && !bounds.width && !bounds.x && !bounds.y) ? {x: +_getAttributeFallbacks(target, [\"x\",\"cx\",\"x1\"]) || 0, y:+_getAttributeFallbacks(target, [\"y\",\"cy\",\"y1\"]) || 0, width:0, height:0} : bounds;\n\t},\n\t_isSVG = e => !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && _getBBox(e)), //reports if the element is an SVG on which getBBox() actually works\n\t_removeProperty = (target, property) => {\n\t\tif (property) {\n\t\t\tlet style = target.style,\n\t\t\t\tfirst2Chars;\n\t\t\tif (property in _transformProps && property !== _transformOriginProp) {\n\t\t\t\tproperty = _transformProp;\n\t\t\t}\n\t\t\tif (style.removeProperty) {\n\t\t\t\tfirst2Chars = property.substr(0,2);\n\t\t\t\tif (first2Chars === \"ms\" || property.substr(0,6) === \"webkit\") { //Microsoft and some Webkit browsers don't conform to the standard of capitalizing the first prefix character, so we adjust so that when we prefix the caps with a dash, it's correct (otherwise it'd be \"ms-transform\" instead of \"-ms-transform\" for IE9, for example)\n\t\t\t\t\tproperty = \"-\" + property;\n\t\t\t\t}\n\t\t\t\tstyle.removeProperty(first2Chars === \"--\" ? property : property.replace(_capsExp, \"-$1\").toLowerCase());\n\t\t\t} else { //note: old versions of IE use \"removeAttribute()\" instead of \"removeProperty()\"\n\t\t\t\tstyle.removeAttribute(property);\n\t\t\t}\n\t\t}\n\t},\n\t_addNonTweeningPT = (plugin, target, property, beginning, end, onlySetAtEnd) => {\n\t\tlet pt = new PropTween(plugin._pt, target, property, 0, 1, onlySetAtEnd ? _renderNonTweeningValueOnlyAtEnd : _renderNonTweeningValue);\n\t\tplugin._pt = pt;\n\t\tpt.b = beginning;\n\t\tpt.e = end;\n\t\tplugin._props.push(property);\n\t\treturn pt;\n\t},\n\t_nonConvertibleUnits = {deg:1, rad:1, turn:1},\n\t_nonStandardLayouts = {grid:1, flex:1},\n\t//takes a single value like 20px and converts it to the unit specified, like \"%\", returning only the numeric amount.\n\t_convertToUnit = (target, property, value, unit) => {\n\t\tlet curValue = parseFloat(value) || 0,\n\t\t\tcurUnit = (value + \"\").trim().substr((curValue + \"\").length) || \"px\", // some browsers leave extra whitespace at the beginning of CSS variables, hence the need to trim()\n\t\t\tstyle = _tempDiv.style,\n\t\t\thorizontal = _horizontalExp.test(property),\n\t\t\tisRootSVG = target.tagName.toLowerCase() === \"svg\",\n\t\t\tmeasureProperty = (isRootSVG ? \"client\" : \"offset\") + (horizontal ? \"Width\" : \"Height\"),\n\t\t\tamount = 100,\n\t\t\ttoPixels = unit === \"px\",\n\t\t\ttoPercent = unit === \"%\",\n\t\t\tpx, parent, cache, isSVG;\n\t\tif (unit === curUnit || !curValue || _nonConvertibleUnits[unit] || _nonConvertibleUnits[curUnit]) {\n\t\t\treturn curValue;\n\t\t}\n\t\t(curUnit !== \"px\" && !toPixels) && (curValue = _convertToUnit(target, property, value, \"px\"));\n\t\tisSVG = target.getCTM && _isSVG(target);\n\t\tif ((toPercent || curUnit === \"%\") && (_transformProps[property] || ~property.indexOf(\"adius\"))) {\n\t\t\tpx = isSVG ? target.getBBox()[horizontal ? \"width\" : \"height\"] : target[measureProperty];\n\t\t\treturn _round(toPercent ? curValue / px * amount : curValue / 100 * px);\n\t\t}\n\t\tstyle[horizontal ? \"width\" : \"height\"] = amount + (toPixels ? curUnit : unit);\n\t\tparent = ((unit !== \"rem\" && ~property.indexOf(\"adius\")) || (unit === \"em\" && target.appendChild && !isRootSVG)) ? target : target.parentNode;\n\t\tif (isSVG) {\n\t\t\tparent = (target.ownerSVGElement || {}).parentNode;\n\t\t}\n\t\tif (!parent || parent === _doc || !parent.appendChild) {\n\t\t\tparent = _doc.body;\n\t\t}\n\t\tcache = parent._gsap;\n\t\tif (cache && toPercent && cache.width && horizontal && cache.time === _ticker.time && !cache.uncache) {\n\t\t\treturn _round(curValue / cache.width * amount);\n\t\t} else {\n\t\t\tif (toPercent && (property === \"height\" || property === \"width\")) { // if we're dealing with width/height that's inside a container with padding and/or it's a flexbox/grid container, we must apply it to the target itself rather than the _tempDiv in order to ensure complete accuracy, factoring in the parent's padding.\n\t\t\t\tlet v = target.style[property];\n\t\t\t\ttarget.style[property] = amount + unit;\n\t\t\t\tpx = target[measureProperty];\n\t\t\t\tv ? (target.style[property] = v) : _removeProperty(target, property);\n\t\t\t} else {\n\t\t\t\t(toPercent || curUnit === \"%\") && !_nonStandardLayouts[_getComputedProperty(parent, \"display\")] && (style.position = _getComputedProperty(target, \"position\"));\n\t\t\t\t(parent === target) && (style.position = \"static\"); // like for borderRadius, if it's a % we must have it relative to the target itself but that may not have position: relative or position: absolute in which case it'd go up the chain until it finds its offsetParent (bad). position: static protects against that.\n\t\t\t\tparent.appendChild(_tempDiv);\n\t\t\t\tpx = _tempDiv[measureProperty];\n\t\t\t\tparent.removeChild(_tempDiv);\n\t\t\t\tstyle.position = \"absolute\";\n\t\t\t}\n\t\t\tif (horizontal && toPercent) {\n\t\t\t\tcache = _getCache(parent);\n\t\t\t\tcache.time = _ticker.time;\n\t\t\t\tcache.width = parent[measureProperty];\n\t\t\t}\n\t\t}\n\t\treturn _round(toPixels ? px * curValue / amount : px && curValue ? amount / px * curValue : 0);\n\t},\n\t_get = (target, property, unit, uncache) => {\n\t\tlet value;\n\t\t_pluginInitted || _initCore();\n\t\tif ((property in _propertyAliases) && property !== \"transform\") {\n\t\t\tproperty = _propertyAliases[property];\n\t\t\tif (~property.indexOf(\",\")) {\n\t\t\t\tproperty = property.split(\",\")[0];\n\t\t\t}\n\t\t}\n\t\tif (_transformProps[property] && property !== \"transform\") {\n\t\t\tvalue = _parseTransform(target, uncache);\n\t\t\tvalue = (property !== \"transformOrigin\") ? value[property] : value.svg ? value.origin : _firstTwoOnly(_getComputedProperty(target, _transformOriginProp)) + \" \" + value.zOrigin + \"px\";\n\t\t} else {\n\t\t\tvalue = target.style[property];\n\t\t\tif (!value || value === \"auto\" || uncache || ~(value + \"\").indexOf(\"calc(\")) {\n\t\t\t\tvalue = (_specialProps[property] && _specialProps[property](target, property, unit)) || _getComputedProperty(target, property) || _getProperty(target, property) || (property === \"opacity\" ? 1 : 0); // note: some browsers, like Firefox, don't report borderRadius correctly! Instead, it only reports every corner like borderTopLeftRadius\n\t\t\t}\n\t\t}\n\t\treturn unit && !~(value + \"\").trim().indexOf(\" \") ? _convertToUnit(target, property, value, unit) + unit : value;\n\n\t},\n\t_tweenComplexCSSString = function(target, prop, start, end) { // note: we call _tweenComplexCSSString.call(pluginInstance...) to ensure that it's scoped properly. We may call it from within a plugin too, thus \"this\" would refer to the plugin.\n\t\tif (!start || start === \"none\") { // some browsers like Safari actually PREFER the prefixed property and mis-report the unprefixed value like clipPath (BUG). In other words, even though clipPath exists in the style (\"clipPath\" in target.style) and it's set in the CSS properly (along with -webkit-clip-path), Safari reports clipPath as \"none\" whereas WebkitClipPath reports accurately like \"ellipse(100% 0% at 50% 0%)\", so in this case we must SWITCH to using the prefixed property instead. See https://gsap.com/forums/topic/18310-clippath-doesnt-work-on-ios/\n\t\t\tlet p = _checkPropPrefix(prop, target, 1),\n\t\t\t\ts = p && _getComputedProperty(target, p, 1);\n\t\t\tif (s && s !== start) {\n\t\t\t\tprop = p;\n\t\t\t\tstart = s;\n\t\t\t} else if (prop === \"borderColor\") {\n\t\t\t\tstart = _getComputedProperty(target, \"borderTopColor\"); // Firefox bug: always reports \"borderColor\" as \"\", so we must fall back to borderTopColor. See https://gsap.com/forums/topic/24583-how-to-return-colors-that-i-had-after-reverse/\n\t\t\t}\n\t\t}\n\t\tlet pt = new PropTween(this._pt, target.style, prop, 0, 1, _renderComplexString),\n\t\t\tindex = 0,\n\t\t\tmatchIndex = 0,\n\t\t\ta, result,\tstartValues, startNum, color, startValue, endValue, endNum, chunk, endUnit, startUnit, endValues;\n\t\tpt.b = start;\n\t\tpt.e = end;\n\t\tstart += \"\"; // ensure values are strings\n\t\tend += \"\";\n\t\tif (end === \"auto\") {\n\t\t\tstartValue = target.style[prop];\n\t\t\ttarget.style[prop] = end;\n\t\t\tend = _getComputedProperty(target, prop) || end;\n\t\t\tstartValue ? (target.style[prop] = startValue) : _removeProperty(target, prop);\n\t\t}\n\t\ta = [start, end];\n\t\t_colorStringFilter(a); // pass an array with the starting and ending values and let the filter do whatever it needs to the values. If colors are found, it returns true and then we must match where the color shows up order-wise because for things like boxShadow, sometimes the browser provides the computed values with the color FIRST, but the user provides it with the color LAST, so flip them if necessary. Same for drop-shadow().\n\t\tstart = a[0];\n\t\tend = a[1];\n\t\tstartValues = start.match(_numWithUnitExp) || [];\n\t\tendValues = end.match(_numWithUnitExp) || [];\n\t\tif (endValues.length) {\n\t\t\twhile ((result = _numWithUnitExp.exec(end))) {\n\t\t\t\tendValue = result[0];\n\t\t\t\tchunk = end.substring(index, result.index);\n\t\t\t\tif (color) {\n\t\t\t\t\tcolor = (color + 1) % 5;\n\t\t\t\t} else if (chunk.substr(-5) === \"rgba(\" || chunk.substr(-5) === \"hsla(\") {\n\t\t\t\t\tcolor = 1;\n\t\t\t\t}\n\t\t\t\tif (endValue !== (startValue = startValues[matchIndex++] || \"\")) {\n\t\t\t\t\tstartNum = parseFloat(startValue) || 0;\n\t\t\t\t\tstartUnit = startValue.substr((startNum + \"\").length);\n\t\t\t\t\t(endValue.charAt(1) === \"=\") && (endValue = _parseRelative(startNum, endValue) + startUnit);\n\t\t\t\t\tendNum = parseFloat(endValue);\n\t\t\t\t\tendUnit = endValue.substr((endNum + \"\").length);\n\t\t\t\t\tindex = _numWithUnitExp.lastIndex - endUnit.length;\n\t\t\t\t\tif (!endUnit) { //if something like \"perspective:300\" is passed in and we must add a unit to the end\n\t\t\t\t\t\tendUnit = endUnit || _config.units[prop] || startUnit;\n\t\t\t\t\t\tif (index === end.length) {\n\t\t\t\t\t\t\tend += endUnit;\n\t\t\t\t\t\t\tpt.e += endUnit;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (startUnit !== endUnit) {\n\t\t\t\t\t\tstartNum = _convertToUnit(target, prop, startValue, endUnit) || 0;\n\t\t\t\t\t}\n\t\t\t\t\t// these nested PropTweens are handled in a special way - we'll never actually call a render or setter method on them. We'll just loop through them in the parent complex string PropTween's render method.\n\t\t\t\t\tpt._pt = {\n\t\t\t\t\t\t_next: pt._pt,\n\t\t\t\t\t\tp: (chunk || (matchIndex === 1)) ? chunk : \",\", //note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.\n\t\t\t\t\t\ts: startNum,\n\t\t\t\t\t\tc: endNum - startNum,\n\t\t\t\t\t\tm: (color && color < 4) || prop === \"zIndex\" ? Math.round : 0\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t\tpt.c = (index < end.length) ? end.substring(index, end.length) : \"\"; //we use the \"c\" of the PropTween to store the final part of the string (after the last number)\n\t\t} else {\n\t\t\tpt.r = prop === \"display\" && end === \"none\" ? _renderNonTweeningValueOnlyAtEnd : _renderNonTweeningValue;\n\t\t}\n\t\t_relExp.test(end) && (pt.e = 0); //if the end string contains relative values or dynamic random(...) values, delete the end it so that on the final render we don't actually set it to the string with += or -= characters (forces it to use the calculated value).\n\t\tthis._pt = pt; //start the linked list with this new PropTween. Remember, we call _tweenComplexCSSString.call(pluginInstance...) to ensure that it's scoped properly. We may call it from within another plugin too, thus \"this\" would refer to the plugin.\n\t\treturn pt;\n\t},\n\t_keywordToPercent = {top:\"0%\", bottom:\"100%\", left:\"0%\", right:\"100%\", center:\"50%\"},\n\t_convertKeywordsToPercentages = value => {\n\t\tlet split = value.split(\" \"),\n\t\t\tx = split[0],\n\t\t\ty = split[1] || \"50%\";\n\t\tif (x === \"top\" || x === \"bottom\" || y === \"left\" || y === \"right\") { //the user provided them in the wrong order, so flip them\n\t\t\tvalue = x;\n\t\t\tx = y;\n\t\t\ty = value;\n\t\t}\n\t\tsplit[0] = _keywordToPercent[x] || x;\n\t\tsplit[1] = _keywordToPercent[y] || y;\n\t\treturn split.join(\" \");\n\t},\n\t_renderClearProps = (ratio, data) => {\n\t\tif (data.tween && data.tween._time === data.tween._dur) {\n\t\t\tlet target = data.t,\n\t\t\t\tstyle = target.style,\n\t\t\t\tprops = data.u,\n\t\t\t\tcache = target._gsap,\n\t\t\t\tprop, clearTransforms, i;\n\t\t\tif (props === \"all\" || props === true) {\n\t\t\t\tstyle.cssText = \"\";\n\t\t\t\tclearTransforms = 1;\n\t\t\t} else {\n\t\t\t\tprops = props.split(\",\");\n\t\t\t\ti = props.length;\n\t\t\t\twhile (--i > -1) {\n\t\t\t\t\tprop = props[i];\n\t\t\t\t\tif (_transformProps[prop]) {\n\t\t\t\t\t\tclearTransforms = 1;\n\t\t\t\t\t\tprop = (prop === \"transformOrigin\") ? _transformOriginProp : _transformProp;\n\t\t\t\t\t}\n\t\t\t\t\t_removeProperty(target, prop);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (clearTransforms) {\n\t\t\t\t_removeProperty(target, _transformProp);\n\t\t\t\tif (cache) {\n\t\t\t\t\tcache.svg && target.removeAttribute(\"transform\");\n\t\t\t\t\tstyle.scale = style.rotate = style.translate = \"none\";\n\t\t\t\t\t_parseTransform(target, 1); // force all the cached values back to \"normal\"/identity, otherwise if there's another tween that's already set to render transforms on this element, it could display the wrong values.\n\t\t\t\t\tcache.uncache = 1;\n\t\t\t\t\t_removeIndependentTransforms(style);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\t// note: specialProps should return 1 if (and only if) they have a non-zero priority. It indicates we need to sort the linked list.\n\t_specialProps = {\n\t\tclearProps(plugin, target, property, endValue, tween) {\n\t\t\tif (tween.data !== \"isFromStart\") {\n\t\t\t\tlet pt = plugin._pt = new PropTween(plugin._pt, target, property, 0, 0, _renderClearProps);\n\t\t\t\tpt.u = endValue;\n\t\t\t\tpt.pr = -10;\n\t\t\t\tpt.tween = tween;\n\t\t\t\tplugin._props.push(property);\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}\n\t\t/* className feature (about 0.4kb gzipped).\n\t\t, className(plugin, target, property, endValue, tween) {\n\t\t\tlet _renderClassName = (ratio, data) => {\n\t\t\t\t\tdata.css.render(ratio, data.css);\n\t\t\t\t\tif (!ratio || ratio === 1) {\n\t\t\t\t\t\tlet inline = data.rmv,\n\t\t\t\t\t\t\ttarget = data.t,\n\t\t\t\t\t\t\tp;\n\t\t\t\t\t\ttarget.setAttribute(\"class\", ratio ? data.e : data.b);\n\t\t\t\t\t\tfor (p in inline) {\n\t\t\t\t\t\t\t_removeProperty(target, p);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t_getAllStyles = (target) => {\n\t\t\t\t\tlet styles = {},\n\t\t\t\t\t\tcomputed = getComputedStyle(target),\n\t\t\t\t\t\tp;\n\t\t\t\t\tfor (p in computed) {\n\t\t\t\t\t\tif (isNaN(p) && p !== \"cssText\" && p !== \"length\") {\n\t\t\t\t\t\t\tstyles[p] = computed[p];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t_setDefaults(styles, _parseTransform(target, 1));\n\t\t\t\t\treturn styles;\n\t\t\t\t},\n\t\t\t\tstartClassList = target.getAttribute(\"class\"),\n\t\t\t\tstyle = target.style,\n\t\t\t\tcssText = style.cssText,\n\t\t\t\tcache = target._gsap,\n\t\t\t\tclassPT = cache.classPT,\n\t\t\t\tinlineToRemoveAtEnd = {},\n\t\t\t\tdata = {t:target, plugin:plugin, rmv:inlineToRemoveAtEnd, b:startClassList, e:(endValue.charAt(1) !== \"=\") ? endValue : startClassList.replace(new RegExp(\"(?:\\\\s|^)\" + endValue.substr(2) + \"(?![\\\\w-])\"), \"\") + ((endValue.charAt(0) === \"+\") ? \" \" + endValue.substr(2) : \"\")},\n\t\t\t\tchangingVars = {},\n\t\t\t\tstartVars = _getAllStyles(target),\n\t\t\t\ttransformRelated = /(transform|perspective)/i,\n\t\t\t\tendVars, p;\n\t\t\tif (classPT) {\n\t\t\t\tclassPT.r(1, classPT.d);\n\t\t\t\t_removeLinkedListItem(classPT.d.plugin, classPT, \"_pt\");\n\t\t\t}\n\t\t\ttarget.setAttribute(\"class\", data.e);\n\t\t\tendVars = _getAllStyles(target, true);\n\t\t\ttarget.setAttribute(\"class\", startClassList);\n\t\t\tfor (p in endVars) {\n\t\t\t\tif (endVars[p] !== startVars[p] && !transformRelated.test(p)) {\n\t\t\t\t\tchangingVars[p] = endVars[p];\n\t\t\t\t\tif (!style[p] && style[p] !== \"0\") {\n\t\t\t\t\t\tinlineToRemoveAtEnd[p] = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcache.classPT = plugin._pt = new PropTween(plugin._pt, target, \"className\", 0, 0, _renderClassName, data, 0, -11);\n\t\t\tif (style.cssText !== cssText) { //only apply if things change. Otherwise, in cases like a background-image that's pulled dynamically, it could cause a refresh. See https://gsap.com/forums/topic/20368-possible-gsap-bug-switching-classnames-in-chrome/.\n\t\t\t\tstyle.cssText = cssText; //we recorded cssText before we swapped classes and ran _getAllStyles() because in cases when a className tween is overwritten, we remove all the related tweening properties from that class change (otherwise class-specific stuff can't override properties we've directly set on the target's style object due to specificity).\n\t\t\t}\n\t\t\t_parseTransform(target, true); //to clear the caching of transforms\n\t\t\tdata.css = new gsap.plugins.css();\n\t\t\tdata.css.init(target, changingVars, tween);\n\t\t\tplugin._props.push(...data.css._props);\n\t\t\treturn 1;\n\t\t}\n\t\t*/\n\t},\n\n\n\n\n\n\t/*\n\t * --------------------------------------------------------------------------------------\n\t * TRANSFORMS\n\t * --------------------------------------------------------------------------------------\n\t */\n\t_identity2DMatrix = [1,0,0,1,0,0],\n\t_rotationalProperties = {},\n\t_isNullTransform = value => (value === \"matrix(1, 0, 0, 1, 0, 0)\" || value === \"none\" || !value),\n\t_getComputedTransformMatrixAsArray = target => {\n\t\tlet matrixString = _getComputedProperty(target, _transformProp);\n\t\treturn _isNullTransform(matrixString) ? _identity2DMatrix : matrixString.substr(7).match(_numExp).map(_round);\n\t},\n\t_getMatrix = (target, force2D) => {\n\t\tlet cache = target._gsap || _getCache(target),\n\t\t\tstyle = target.style,\n\t\t\tmatrix = _getComputedTransformMatrixAsArray(target),\n\t\t\tparent, nextSibling, temp, addedToDOM;\n\t\tif (cache.svg && target.getAttribute(\"transform\")) {\n\t\t\ttemp = target.transform.baseVal.consolidate().matrix; //ensures that even complex values like \"translate(50,60) rotate(135,0,0)\" are parsed because it mashes it into a matrix.\n\t\t\tmatrix = [temp.a, temp.b, temp.c, temp.d, temp.e, temp.f];\n\t\t\treturn (matrix.join(\",\") === \"1,0,0,1,0,0\") ? _identity2DMatrix : matrix;\n\t\t} else if (matrix === _identity2DMatrix && !target.offsetParent && target !== _docElement && !cache.svg) { //note: if offsetParent is null, that means the element isn't in the normal document flow, like if it has display:none or one of its ancestors has display:none). Firefox returns null for getComputedStyle() if the element is in an iframe that has display:none. https://bugzilla.mozilla.org/show_bug.cgi?id=548397\n\t\t\t//browsers don't report transforms accurately unless the element is in the DOM and has a display value that's not \"none\". Firefox and Microsoft browsers have a partial bug where they'll report transforms even if display:none BUT not any percentage-based values like translate(-50%, 8px) will be reported as if it's translate(0, 8px).\n\t\t\ttemp = style.display;\n\t\t\tstyle.display = \"block\";\n\t\t\tparent = target.parentNode;\n\t\t\tif (!parent || (!target.offsetParent && !target.getBoundingClientRect().width)) { // note: in 3.3.0 we switched target.offsetParent to _doc.body.contains(target) to avoid [sometimes unnecessary] MutationObserver calls but that wasn't adequate because there are edge cases where nested position: fixed elements need to get reparented to accurately sense transforms. See https://github.com/greensock/GSAP/issues/388 and https://github.com/greensock/GSAP/issues/375. Note: position: fixed elements report a null offsetParent but they could also be invisible because they're in an ancestor with display: none, so we check getBoundingClientRect(). We only want to alter the DOM if we absolutely have to because it can cause iframe content to reload, like a Vimeo video.\n\t\t\t\taddedToDOM = 1; //flag\n\t\t\t\tnextSibling = target.nextElementSibling;\n\t\t\t\t_docElement.appendChild(target); //we must add it to the DOM in order to get values properly\n\t\t\t}\n\t\t\tmatrix = _getComputedTransformMatrixAsArray(target);\n\t\t\ttemp ? (style.display = temp) : _removeProperty(target, \"display\");\n\t\t\tif (addedToDOM) {\n\t\t\t\tnextSibling ? parent.insertBefore(target, nextSibling) : parent ? parent.appendChild(target) : _docElement.removeChild(target);\n\t\t\t}\n\t\t}\n\t\treturn (force2D && matrix.length > 6) ? [matrix[0], matrix[1], matrix[4], matrix[5], matrix[12], matrix[13]] : matrix;\n\t},\n\t_applySVGOrigin = (target, origin, originIsAbsolute, smooth, matrixArray, pluginToAddPropTweensTo) => {\n\t\tlet cache = target._gsap,\n\t\t\tmatrix = matrixArray || _getMatrix(target, true),\n\t\t\txOriginOld = cache.xOrigin || 0,\n\t\t\tyOriginOld = cache.yOrigin || 0,\n\t\t\txOffsetOld = cache.xOffset || 0,\n\t\t\tyOffsetOld = cache.yOffset || 0,\n\t\t\t[a, b, c, d, tx, ty] = matrix,\n\t\t\toriginSplit = origin.split(\" \"),\n\t\t\txOrigin = parseFloat(originSplit[0]) || 0,\n\t\t\tyOrigin = parseFloat(originSplit[1]) || 0,\n\t\t\tbounds, determinant, x, y;\n\t\tif (!originIsAbsolute) {\n\t\t\tbounds = _getBBox(target);\n\t\t\txOrigin = bounds.x + (~originSplit[0].indexOf(\"%\") ? xOrigin / 100 * bounds.width : xOrigin);\n\t\t\tyOrigin = bounds.y + (~((originSplit[1] || originSplit[0]).indexOf(\"%\")) ? yOrigin / 100 * bounds.height : yOrigin);\n\t\t\t// if (!(\"xOrigin\" in cache) && (xOrigin || yOrigin)) { // added in 3.12.3, reverted in 3.12.4; requires more exploration\n\t\t\t// \txOrigin -= bounds.x;\n\t\t\t// \tyOrigin -= bounds.y;\n\t\t\t// }\n\t\t} else if (matrix !== _identity2DMatrix && (determinant = (a * d - b * c))) { //if it's zero (like if scaleX and scaleY are zero), skip it to avoid errors with dividing by zero.\n\t\t\tx = xOrigin * (d / determinant) + yOrigin * (-c / determinant) + ((c * ty - d * tx) / determinant);\n\t\t\ty = xOrigin * (-b / determinant) + yOrigin * (a / determinant) - ((a * ty - b * tx) / determinant);\n\t\t\txOrigin = x;\n\t\t\tyOrigin = y;\n\t\t\t// theory: we only had to do this for smoothing and it assumes that the previous one was not originIsAbsolute.\n\t\t}\n\t\tif (smooth || (smooth !== false && cache.smooth)) {\n\t\t\ttx = xOrigin - xOriginOld;\n\t\t\tty = yOrigin - yOriginOld;\n\t\t\tcache.xOffset = xOffsetOld + (tx * a + ty * c) - tx;\n\t\t\tcache.yOffset = yOffsetOld + (tx * b + ty * d) - ty;\n\t\t} else {\n\t\t\tcache.xOffset = cache.yOffset = 0;\n\t\t}\n\t\tcache.xOrigin = xOrigin;\n\t\tcache.yOrigin = yOrigin;\n\t\tcache.smooth = !!smooth;\n\t\tcache.origin = origin;\n\t\tcache.originIsAbsolute = !!originIsAbsolute;\n\t\ttarget.style[_transformOriginProp] = \"0px 0px\"; //otherwise, if someone sets an origin via CSS, it will likely interfere with the SVG transform attribute ones (because remember, we're baking the origin into the matrix() value).\n\t\tif (pluginToAddPropTweensTo) {\n\t\t\t_addNonTweeningPT(pluginToAddPropTweensTo, cache, \"xOrigin\", xOriginOld, xOrigin);\n\t\t\t_addNonTweeningPT(pluginToAddPropTweensTo, cache, \"yOrigin\", yOriginOld, yOrigin);\n\t\t\t_addNonTweeningPT(pluginToAddPropTweensTo, cache, \"xOffset\", xOffsetOld, cache.xOffset);\n\t\t\t_addNonTweeningPT(pluginToAddPropTweensTo, cache, \"yOffset\", yOffsetOld, cache.yOffset);\n\t\t}\n\t\ttarget.setAttribute(\"data-svg-origin\", xOrigin + \" \" + yOrigin);\n\t},\n\t_parseTransform = (target, uncache) => {\n\t\tlet cache = target._gsap || new GSCache(target);\n\t\tif (\"x\" in cache && !uncache && !cache.uncache) {\n\t\t\treturn cache;\n\t\t}\n\t\tlet style = target.style,\n\t\t\tinvertedScaleX = cache.scaleX < 0,\n\t\t\tpx = \"px\",\n\t\t\tdeg = \"deg\",\n\t\t\tcs = getComputedStyle(target),\n\t\t\torigin = _getComputedProperty(target, _transformOriginProp) || \"0\",\n\t\t\tx, y, z, scaleX, scaleY, rotation, rotationX, rotationY, skewX, skewY, perspective, xOrigin, yOrigin,\n\t\t\tmatrix, angle, cos, sin, a, b, c, d, a12, a22, t1, t2, t3, a13, a23, a33, a42, a43, a32;\n\t\tx = y = z = rotation = rotationX = rotationY = skewX = skewY = perspective = 0;\n\t\tscaleX = scaleY = 1;\n\t\tcache.svg = !!(target.getCTM && _isSVG(target));\n\n\t\tif (cs.translate) { // accommodate independent transforms by combining them into normal ones.\n\t\t\tif (cs.translate !== \"none\" || cs.scale !== \"none\" || cs.rotate !== \"none\") {\n\t\t\t\tstyle[_transformProp] = (cs.translate !== \"none\" ? \"translate3d(\" + (cs.translate + \" 0 0\").split(\" \").slice(0, 3).join(\", \") + \") \" : \"\") + (cs.rotate !== \"none\" ? \"rotate(\" + cs.rotate + \") \" : \"\") + (cs.scale !== \"none\" ? \"scale(\" + cs.scale.split(\" \").join(\",\") + \") \" : \"\") + (cs[_transformProp] !== \"none\" ? cs[_transformProp] : \"\");\n\t\t\t}\n\t\t\tstyle.scale = style.rotate = style.translate = \"none\";\n\t\t}\n\n\t\tmatrix = _getMatrix(target, cache.svg);\n\t\tif (cache.svg) {\n\t\t\tif (cache.uncache) { // if cache.uncache is true (and maybe if origin is 0,0), we need to set element.style.transformOrigin = (cache.xOrigin - bbox.x) + \"px \" + (cache.yOrigin - bbox.y) + \"px\". Previously we let the data-svg-origin stay instead, but when introducing revert(), it complicated things.\n\t\t\t\tt2 = target.getBBox();\n\t\t\t\torigin = (cache.xOrigin - t2.x) + \"px \" + (cache.yOrigin - t2.y) + \"px\";\n\t\t\t\tt1 = \"\";\n\t\t\t} else {\n\t\t\t\tt1 = !uncache && target.getAttribute(\"data-svg-origin\"); // Remember, to work around browser inconsistencies we always force SVG elements' transformOrigin to 0,0 and offset the translation accordingly.\n\t\t\t}\n\t\t\t_applySVGOrigin(target, t1 || origin, !!t1 || cache.originIsAbsolute, cache.smooth !== false, matrix);\n\t\t}\n\t\txOrigin = cache.xOrigin || 0;\n\t\tyOrigin = cache.yOrigin || 0;\n\t\tif (matrix !== _identity2DMatrix) {\n\t\t\ta = matrix[0]; //a11\n\t\t\tb = matrix[1]; //a21\n\t\t\tc = matrix[2]; //a31\n\t\t\td = matrix[3]; //a41\n\t\t\tx = a12 = matrix[4];\n\t\t\ty = a22 = matrix[5];\n\n\t\t\t//2D matrix\n\t\t\tif (matrix.length === 6) {\n\t\t\t\tscaleX = Math.sqrt(a * a + b * b);\n\t\t\t\tscaleY = Math.sqrt(d * d + c * c);\n\t\t\t\trotation = (a || b) ? _atan2(b, a) * _RAD2DEG : 0; //note: if scaleX is 0, we cannot accurately measure rotation. Same for skewX with a scaleY of 0. Therefore, we default to the previously recorded value (or zero if that doesn't exist).\n\t\t\t\tskewX = (c || d) ? _atan2(c, d) * _RAD2DEG + rotation : 0;\n\t\t\t\tskewX && (scaleY *= Math.abs(Math.cos(skewX * _DEG2RAD)));\n\t\t\t\tif (cache.svg) {\n\t\t\t\t\tx -= xOrigin - (xOrigin * a + yOrigin * c);\n\t\t\t\t\ty -= yOrigin - (xOrigin * b + yOrigin * d);\n\t\t\t\t}\n\n\t\t\t//3D matrix\n\t\t\t} else {\n\t\t\t\ta32 = matrix[6];\n\t\t\t\ta42 = matrix[7];\n\t\t\t\ta13 = matrix[8];\n\t\t\t\ta23 = matrix[9];\n\t\t\t\ta33 = matrix[10];\n\t\t\t\ta43 = matrix[11];\n\t\t\t\tx = matrix[12];\n\t\t\t\ty = matrix[13];\n\t\t\t\tz = matrix[14];\n\n\t\t\t\tangle = _atan2(a32, a33);\n\t\t\t\trotationX = angle * _RAD2DEG;\n\t\t\t\t//rotationX\n\t\t\t\tif (angle) {\n\t\t\t\t\tcos = Math.cos(-angle);\n\t\t\t\t\tsin = Math.sin(-angle);\n\t\t\t\t\tt1 = a12*cos+a13*sin;\n\t\t\t\t\tt2 = a22*cos+a23*sin;\n\t\t\t\t\tt3 = a32*cos+a33*sin;\n\t\t\t\t\ta13 = a12*-sin+a13*cos;\n\t\t\t\t\ta23 = a22*-sin+a23*cos;\n\t\t\t\t\ta33 = a32*-sin+a33*cos;\n\t\t\t\t\ta43 = a42*-sin+a43*cos;\n\t\t\t\t\ta12 = t1;\n\t\t\t\t\ta22 = t2;\n\t\t\t\t\ta32 = t3;\n\t\t\t\t}\n\t\t\t\t//rotationY\n\t\t\t\tangle = _atan2(-c, a33);\n\t\t\t\trotationY = angle * _RAD2DEG;\n\t\t\t\tif (angle) {\n\t\t\t\t\tcos = Math.cos(-angle);\n\t\t\t\t\tsin = Math.sin(-angle);\n\t\t\t\t\tt1 = a*cos-a13*sin;\n\t\t\t\t\tt2 = b*cos-a23*sin;\n\t\t\t\t\tt3 = c*cos-a33*sin;\n\t\t\t\t\ta43 = d*sin+a43*cos;\n\t\t\t\t\ta = t1;\n\t\t\t\t\tb = t2;\n\t\t\t\t\tc = t3;\n\t\t\t\t}\n\t\t\t\t//rotationZ\n\t\t\t\tangle = _atan2(b, a);\n\t\t\t\trotation = angle * _RAD2DEG;\n\t\t\t\tif (angle) {\n\t\t\t\t\tcos = Math.cos(angle);\n\t\t\t\t\tsin = Math.sin(angle);\n\t\t\t\t\tt1 = a*cos+b*sin;\n\t\t\t\t\tt2 = a12*cos+a22*sin;\n\t\t\t\t\tb = b*cos-a*sin;\n\t\t\t\t\ta22 = a22*cos-a12*sin;\n\t\t\t\t\ta = t1;\n\t\t\t\t\ta12 = t2;\n\t\t\t\t}\n\n\t\t\t\tif (rotationX && Math.abs(rotationX) + Math.abs(rotation) > 359.9) { //when rotationY is set, it will often be parsed as 180 degrees different than it should be, and rotationX and rotation both being 180 (it looks the same), so we adjust for that here.\n\t\t\t\t\trotationX = rotation = 0;\n\t\t\t\t\trotationY = 180 - rotationY;\n\t\t\t\t}\n\t\t\t\tscaleX = _round(Math.sqrt(a * a + b * b + c * c));\n\t\t\t\tscaleY = _round(Math.sqrt(a22 * a22 + a32 * a32));\n\t\t\t\tangle = _atan2(a12, a22);\n\t\t\t\tskewX = (Math.abs(angle) > 0.0002) ? angle * _RAD2DEG : 0;\n\t\t\t\tperspective = a43 ? 1 / ((a43 < 0) ? -a43 : a43) : 0;\n\t\t\t}\n\n\t\t\tif (cache.svg) { //sense if there are CSS transforms applied on an SVG element in which case we must overwrite them when rendering. The transform attribute is more reliable cross-browser, but we can't just remove the CSS ones because they may be applied in a CSS rule somewhere (not just inline).\n\t\t\t\tt1 = target.getAttribute(\"transform\");\n\t\t\t\tcache.forceCSS = target.setAttribute(\"transform\", \"\") || (!_isNullTransform(_getComputedProperty(target, _transformProp)));\n\t\t\t\tt1 && target.setAttribute(\"transform\", t1);\n\t\t\t}\n\t\t}\n\n\t\tif (Math.abs(skewX) > 90 && Math.abs(skewX) < 270) {\n\t\t\tif (invertedScaleX) {\n\t\t\t\tscaleX *= -1;\n\t\t\t\tskewX += (rotation <= 0) ? 180 : -180;\n\t\t\t\trotation += (rotation <= 0) ? 180 : -180;\n\t\t\t} else {\n\t\t\t\tscaleY *= -1;\n\t\t\t\tskewX += (skewX <= 0) ? 180 : -180;\n\t\t\t}\n\t\t}\n\t\tuncache = uncache || cache.uncache;\n\t\tcache.x = x - ((cache.xPercent = x && ((!uncache && cache.xPercent) || (Math.round(target.offsetWidth / 2) === Math.round(-x) ? -50 : 0))) ? target.offsetWidth * cache.xPercent / 100 : 0) + px;\n\t\tcache.y = y - ((cache.yPercent = y && ((!uncache && cache.yPercent) || (Math.round(target.offsetHeight / 2) === Math.round(-y) ? -50 : 0))) ? target.offsetHeight * cache.yPercent / 100 : 0) + px;\n\t\tcache.z = z + px;\n\t\tcache.scaleX = _round(scaleX);\n\t\tcache.scaleY = _round(scaleY);\n\t\tcache.rotation = _round(rotation) + deg;\n\t\tcache.rotationX = _round(rotationX) + deg;\n\t\tcache.rotationY = _round(rotationY) + deg;\n\t\tcache.skewX = skewX + deg;\n\t\tcache.skewY = skewY + deg;\n\t\tcache.transformPerspective = perspective + px;\n\t\tif ((cache.zOrigin = parseFloat(origin.split(\" \")[2]) || (!uncache && cache.zOrigin) || 0)) {\n\t\t\tstyle[_transformOriginProp] = _firstTwoOnly(origin);\n\t\t}\n\t\tcache.xOffset = cache.yOffset = 0;\n\t\tcache.force3D = _config.force3D;\n\t\tcache.renderTransform = cache.svg ? _renderSVGTransforms : _supports3D ? _renderCSSTransforms : _renderNon3DTransforms;\n\t\tcache.uncache = 0;\n\t\treturn cache;\n\t},\n\t_firstTwoOnly = value => (value = value.split(\" \"))[0] + \" \" + value[1], //for handling transformOrigin values, stripping out the 3rd dimension\n\t_addPxTranslate = (target, start, value) => {\n\t\tlet unit = getUnit(start);\n\t\treturn _round(parseFloat(start) + parseFloat(_convertToUnit(target, \"x\", value + \"px\", unit))) + unit;\n\t},\n\t_renderNon3DTransforms = (ratio, cache) => {\n\t\tcache.z = \"0px\";\n\t\tcache.rotationY = cache.rotationX = \"0deg\";\n\t\tcache.force3D = 0;\n\t\t_renderCSSTransforms(ratio, cache);\n\t},\n\t_zeroDeg = \"0deg\",\n\t_zeroPx = \"0px\",\n\t_endParenthesis = \") \",\n\t_renderCSSTransforms = function(ratio, cache) {\n\t\tlet {xPercent, yPercent, x, y, z, rotation, rotationY, rotationX, skewX, skewY, scaleX, scaleY, transformPerspective, force3D, target, zOrigin} = cache || this,\n\t\t\ttransforms = \"\",\n\t\t\tuse3D = (force3D === \"auto\" && ratio && ratio !== 1) || force3D === true;\n\n\t\t// Safari has a bug that causes it not to render 3D transform-origin values properly, so we force the z origin to 0, record it in the cache, and then do the math here to offset the translate values accordingly (basically do the 3D transform-origin part manually)\n\t\tif (zOrigin && (rotationX !== _zeroDeg || rotationY !== _zeroDeg)) {\n\t\t\tlet angle = parseFloat(rotationY) * _DEG2RAD,\n\t\t\t\ta13 = Math.sin(angle),\n\t\t\t\ta33 = Math.cos(angle),\n\t\t\t\tcos;\n\t\t\tangle = parseFloat(rotationX) * _DEG2RAD;\n\t\t\tcos = Math.cos(angle);\n\t\t\tx = _addPxTranslate(target, x, a13 * cos * -zOrigin);\n\t\t\ty = _addPxTranslate(target, y, -Math.sin(angle) * -zOrigin);\n\t\t\tz = _addPxTranslate(target, z, a33 * cos * -zOrigin + zOrigin);\n\t\t}\n\n\t\tif (transformPerspective !== _zeroPx) {\n\t\t\ttransforms += \"perspective(\" + transformPerspective + _endParenthesis;\n\t\t}\n\t\tif (xPercent || yPercent) {\n\t\t\ttransforms += \"translate(\" + xPercent + \"%, \" + yPercent + \"%) \";\n\t\t}\n\t\tif (use3D || x !== _zeroPx || y !== _zeroPx || z !== _zeroPx) {\n\t\t\ttransforms += (z !== _zeroPx || use3D) ? \"translate3d(\" + x + \", \" + y + \", \" + z + \") \" : \"translate(\" + x + \", \" + y + _endParenthesis;\n\t\t}\n\t\tif (rotation !== _zeroDeg) {\n\t\t\ttransforms += \"rotate(\" + rotation + _endParenthesis;\n\t\t}\n\t\tif (rotationY !== _zeroDeg) {\n\t\t\ttransforms += \"rotateY(\" + rotationY + _endParenthesis;\n\t\t}\n\t\tif (rotationX !== _zeroDeg) {\n\t\t\ttransforms += \"rotateX(\" + rotationX + _endParenthesis;\n\t\t}\n\t\tif (skewX !== _zeroDeg || skewY !== _zeroDeg) {\n\t\t\ttransforms += \"skew(\" + skewX + \", \" + skewY + _endParenthesis;\n\t\t}\n\t\tif (scaleX !== 1 || scaleY !== 1) {\n\t\t\ttransforms += \"scale(\" + scaleX + \", \" + scaleY + _endParenthesis;\n\t\t}\n\t\ttarget.style[_transformProp] = transforms || \"translate(0, 0)\";\n\t},\n\t_renderSVGTransforms = function(ratio, cache) {\n\t\tlet {xPercent, yPercent, x, y, rotation, skewX, skewY, scaleX, scaleY, target, xOrigin, yOrigin, xOffset, yOffset, forceCSS} = cache || this,\n\t\t\ttx = parseFloat(x),\n\t\t\tty = parseFloat(y),\n\t\t\ta11, a21, a12, a22, temp;\n\t\trotation = parseFloat(rotation);\n\t\tskewX = parseFloat(skewX);\n\t\tskewY = parseFloat(skewY);\n\t\tif (skewY) { //for performance reasons, we combine all skewing into the skewX and rotation values. Remember, a skewY of 10 degrees looks the same as a rotation of 10 degrees plus a skewX of 10 degrees.\n\t\t\tskewY = parseFloat(skewY);\n\t\t\tskewX += skewY;\n\t\t\trotation += skewY;\n\t\t}\n\t\tif (rotation || skewX) {\n\t\t\trotation *= _DEG2RAD;\n\t\t\tskewX *= _DEG2RAD;\n\t\t\ta11 = Math.cos(rotation) * scaleX;\n\t\t\ta21 = Math.sin(rotation) * scaleX;\n\t\t\ta12 = Math.sin(rotation - skewX) * -scaleY;\n\t\t\ta22 = Math.cos(rotation - skewX) * scaleY;\n\t\t\tif (skewX) {\n\t\t\t\tskewY *= _DEG2RAD;\n\t\t\t\ttemp = Math.tan(skewX - skewY);\n\t\t\t\ttemp = Math.sqrt(1 + temp * temp);\n\t\t\t\ta12 *= temp;\n\t\t\t\ta22 *= temp;\n\t\t\t\tif (skewY) {\n\t\t\t\t\ttemp = Math.tan(skewY);\n\t\t\t\t\ttemp = Math.sqrt(1 + temp * temp);\n\t\t\t\t\ta11 *= temp;\n\t\t\t\t\ta21 *= temp;\n\t\t\t\t}\n\t\t\t}\n\t\t\ta11 = _round(a11);\n\t\t\ta21 = _round(a21);\n\t\t\ta12 = _round(a12);\n\t\t\ta22 = _round(a22);\n\t\t} else {\n\t\t\ta11 = scaleX;\n\t\t\ta22 = scaleY;\n\t\t\ta21 = a12 = 0;\n\t\t}\n\t\tif ((tx && !~(x + \"\").indexOf(\"px\")) || (ty && !~(y + \"\").indexOf(\"px\"))) {\n\t\t\ttx = _convertToUnit(target, \"x\", x, \"px\");\n\t\t\tty = _convertToUnit(target, \"y\", y, \"px\");\n\t\t}\n\t\tif (xOrigin || yOrigin || xOffset || yOffset) {\n\t\t\ttx = _round(tx + xOrigin - (xOrigin * a11 + yOrigin * a12) + xOffset);\n\t\t\tty = _round(ty + yOrigin - (xOrigin * a21 + yOrigin * a22) + yOffset);\n\t\t}\n\t\tif (xPercent || yPercent) {\n\t\t\t//The SVG spec doesn't support percentage-based translation in the \"transform\" attribute, so we merge it into the translation to simulate it.\n\t\t\ttemp = target.getBBox();\n\t\t\ttx = _round(tx + xPercent / 100 * temp.width);\n\t\t\tty = _round(ty + yPercent / 100 * temp.height);\n\t\t}\n\t\ttemp = \"matrix(\" + a11 + \",\" + a21 + \",\" + a12 + \",\" + a22 + \",\" + tx + \",\" + ty + \")\";\n\t\ttarget.setAttribute(\"transform\", temp);\n\t\tforceCSS && (target.style[_transformProp] = temp); //some browsers prioritize CSS transforms over the transform attribute. When we sense that the user has CSS transforms applied, we must overwrite them this way (otherwise some browser simply won't render the transform attribute changes!)\n\t},\n\t_addRotationalPropTween = function(plugin, target, property, startNum, endValue) {\n\t\tlet cap = 360,\n\t\t\tisString = _isString(endValue),\n\t\t\tendNum = parseFloat(endValue) * ((isString && ~endValue.indexOf(\"rad\")) ? _RAD2DEG : 1),\n\t\t\tchange = endNum - startNum,\n\t\t\tfinalValue = (startNum + change) + \"deg\",\n\t\t\tdirection, pt;\n\t\tif (isString) {\n\t\t\tdirection = endValue.split(\"_\")[1];\n\t\t\tif (direction === \"short\") {\n\t\t\t\tchange %= cap;\n\t\t\t\tif (change !== change % (cap / 2)) {\n\t\t\t\t\tchange += (change < 0) ? cap : -cap;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (direction === \"cw\" && change < 0) {\n\t\t\t\tchange = ((change + cap * _bigNum) % cap) - ~~(change / cap) * cap;\n\t\t\t} else if (direction === \"ccw\" && change > 0) {\n\t\t\t\tchange = ((change - cap * _bigNum) % cap) - ~~(change / cap) * cap;\n\t\t\t}\n\t\t}\n\t\tplugin._pt = pt = new PropTween(plugin._pt, target, property, startNum, change, _renderPropWithEnd);\n\t\tpt.e = finalValue;\n\t\tpt.u = \"deg\";\n\t\tplugin._props.push(property);\n\t\treturn pt;\n\t},\n\t_assign = (target, source) => { // Internet Explorer doesn't have Object.assign(), so we recreate it here.\n\t\tfor (let p in source) {\n\t\t\ttarget[p] = source[p];\n\t\t}\n\t\treturn target;\n\t},\n\t_addRawTransformPTs = (plugin, transforms, target) => { //for handling cases where someone passes in a whole transform string, like transform: \"scale(2, 3) rotate(20deg) translateY(30em)\"\n\t\tlet startCache = _assign({}, target._gsap),\n\t\t\texclude = \"perspective,force3D,transformOrigin,svgOrigin\",\n\t\t\tstyle = target.style,\n\t\t\tendCache, p, startValue, endValue, startNum, endNum, startUnit, endUnit;\n\t\tif (startCache.svg) {\n\t\t\tstartValue = target.getAttribute(\"transform\");\n\t\t\ttarget.setAttribute(\"transform\", \"\");\n\t\t\tstyle[_transformProp] = transforms;\n\t\t\tendCache = _parseTransform(target, 1);\n\t\t\t_removeProperty(target, _transformProp);\n\t\t\ttarget.setAttribute(\"transform\", startValue);\n\t\t} else {\n\t\t\tstartValue = getComputedStyle(target)[_transformProp];\n\t\t\tstyle[_transformProp] = transforms;\n\t\t\tendCache = _parseTransform(target, 1);\n\t\t\tstyle[_transformProp] = startValue;\n\t\t}\n\t\tfor (p in _transformProps) {\n\t\t\tstartValue = startCache[p];\n\t\t\tendValue = endCache[p];\n\t\t\tif (startValue !== endValue && exclude.indexOf(p) < 0) { //tweening to no perspective gives very unintuitive results - just keep the same perspective in that case.\n\t\t\t\tstartUnit = getUnit(startValue);\n\t\t\t\tendUnit = getUnit(endValue);\n\t\t\t\tstartNum = (startUnit !== endUnit) ? _convertToUnit(target, p, startValue, endUnit) : parseFloat(startValue);\n\t\t\t\tendNum = parseFloat(endValue);\n\t\t\t\tplugin._pt = new PropTween(plugin._pt, endCache, p, startNum, endNum - startNum, _renderCSSProp);\n\t\t\t\tplugin._pt.u = endUnit || 0;\n\t\t\t\tplugin._props.push(p);\n\t\t\t}\n\t\t}\n\t\t_assign(endCache, startCache);\n\t};\n\n// handle splitting apart padding, margin, borderWidth, and borderRadius into their 4 components. Firefox, for example, won't report borderRadius correctly - it will only do borderTopLeftRadius and the other corners. We also want to handle paddingTop, marginLeft, borderRightWidth, etc.\n_forEachName(\"padding,margin,Width,Radius\", (name, index) => {\n\tlet t = \"Top\",\n\t\tr = \"Right\",\n\t\tb = \"Bottom\",\n\t\tl = \"Left\",\n\t\tprops = (index < 3 ? [t,r,b,l] : [t+l, t+r, b+r, b+l]).map(side => index < 2 ? name + side : \"border\" + side + name);\n\t_specialProps[(index > 1 ? \"border\" + name : name)] = function(plugin, target, property, endValue, tween) {\n\t\tlet a, vars;\n\t\tif (arguments.length < 4) { // getter, passed target, property, and unit (from _get())\n\t\t\ta = props.map(prop => _get(plugin, prop, property));\n\t\t\tvars = a.join(\" \");\n\t\t\treturn vars.split(a[0]).length === 5 ? a[0] : vars;\n\t\t}\n\t\ta = (endValue + \"\").split(\" \");\n\t\tvars = {};\n\t\tprops.forEach((prop, i) => vars[prop] = a[i] = a[i] || a[(((i - 1) / 2) | 0)]);\n\t\tplugin.init(target, vars, tween);\n\t}\n});\n\n\nexport const CSSPlugin = {\n\tname: \"css\",\n\tregister: _initCore,\n\ttargetTest(target) {\n\t\treturn target.style && target.nodeType;\n\t},\n\tinit(target, vars, tween, index, targets) {\n\t\tlet props = this._props,\n\t\t\tstyle = target.style,\n\t\t\tstartAt = tween.vars.startAt,\n\t\t\tstartValue, endValue, endNum, startNum, type, specialProp, p, startUnit, endUnit, relative, isTransformRelated, transformPropTween, cache, smooth, hasPriority, inlineProps;\n\t\t_pluginInitted || _initCore();\n\t\t// we may call init() multiple times on the same plugin instance, like when adding special properties, so make sure we don't overwrite the revert data or inlineProps\n\t\tthis.styles = this.styles || _getStyleSaver(target);\n\t\tinlineProps = this.styles.props;\n\t\tthis.tween = tween;\n\t\tfor (p in vars) {\n\t\t\tif (p === \"autoRound\") {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tendValue = vars[p];\n\t\t\tif (_plugins[p] && _checkPlugin(p, vars, tween, index, target, targets)) { // plugins\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttype = typeof(endValue);\n\t\t\tspecialProp = _specialProps[p];\n\t\t\tif (type === \"function\") {\n\t\t\t\tendValue = endValue.call(tween, index, target, targets);\n\t\t\t\ttype = typeof(endValue);\n\t\t\t}\n\t\t\tif (type === \"string\" && ~endValue.indexOf(\"random(\")) {\n\t\t\t\tendValue = _replaceRandom(endValue);\n\t\t\t}\n\t\t\tif (specialProp) {\n\t\t\t\tspecialProp(this, target, p, endValue, tween) && (hasPriority = 1);\n\t\t\t} else if (p.substr(0,2) === \"--\") { //CSS variable\n\t\t\t\tstartValue = (getComputedStyle(target).getPropertyValue(p) + \"\").trim();\n\t\t\t\tendValue += \"\";\n\t\t\t\t_colorExp.lastIndex = 0;\n\t\t\t\tif (!_colorExp.test(startValue)) { // colors don't have units\n\t\t\t\t\tstartUnit = getUnit(startValue);\n\t\t\t\t\tendUnit = getUnit(endValue);\n\t\t\t\t}\n\t\t\t\tendUnit ? startUnit !== endUnit && (startValue = _convertToUnit(target, p, startValue, endUnit) + endUnit) : startUnit && (endValue += startUnit);\n\t\t\t\tthis.add(style, \"setProperty\", startValue, endValue, index, targets, 0, 0, p);\n\t\t\t\tprops.push(p);\n\t\t\t\tinlineProps.push(p, 0, style[p]);\n\t\t\t} else if (type !== \"undefined\") {\n\t\t\t\tif (startAt && p in startAt) { // in case someone hard-codes a complex value as the start, like top: \"calc(2vh / 2)\". Without this, it'd use the computed value (always in px)\n\t\t\t\t\tstartValue = typeof(startAt[p]) === \"function\" ? startAt[p].call(tween, index, target, targets) : startAt[p];\n\t\t\t\t\t_isString(startValue) && ~startValue.indexOf(\"random(\") && (startValue = _replaceRandom(startValue));\n\t\t\t\t\tgetUnit(startValue + \"\") || startValue === \"auto\" || (startValue += _config.units[p] || getUnit(_get(target, p)) || \"\"); // for cases when someone passes in a unitless value like {x: 100}; if we try setting translate(100, 0px) it won't work.\n\t\t\t\t\t(startValue + \"\").charAt(1) === \"=\" && (startValue = _get(target, p)); // can't work with relative values\n\t\t\t\t} else {\n\t\t\t\t\tstartValue = _get(target, p);\n\t\t\t\t}\n\t\t\t\tstartNum = parseFloat(startValue);\n\t\t\t\trelative = (type === \"string\" && endValue.charAt(1) === \"=\") && endValue.substr(0, 2);\n\t\t\t\trelative && (endValue = endValue.substr(2));\n\t\t\t\tendNum = parseFloat(endValue);\n\t\t\t\tif (p in _propertyAliases) {\n\t\t\t\t\tif (p === \"autoAlpha\") { //special case where we control the visibility along with opacity. We still allow the opacity value to pass through and get tweened.\n\t\t\t\t\t\tif (startNum === 1 && _get(target, \"visibility\") === \"hidden\" && endNum) { //if visibility is initially set to \"hidden\", we should interpret that as intent to make opacity 0 (a convenience)\n\t\t\t\t\t\t\tstartNum = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinlineProps.push(\"visibility\", 0, style.visibility);\n\t\t\t\t\t\t_addNonTweeningPT(this, style, \"visibility\", startNum ? \"inherit\" : \"hidden\", endNum ? \"inherit\" : \"hidden\", !endNum);\n\t\t\t\t\t}\n\t\t\t\t\tif (p !== \"scale\" && p !== \"transform\") {\n\t\t\t\t\t\tp = _propertyAliases[p];\n\t\t\t\t\t\t~p.indexOf(\",\") && (p = p.split(\",\")[0]);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tisTransformRelated = (p in _transformProps);\n\n\t\t\t\t//--- TRANSFORM-RELATED ---\n\t\t\t\tif (isTransformRelated) {\n\t\t\t\t\tthis.styles.save(p);\n\t\t\t\t\tif (!transformPropTween) {\n\t\t\t\t\t\tcache = target._gsap;\n\t\t\t\t\t\t(cache.renderTransform && !vars.parseTransform) || _parseTransform(target, vars.parseTransform); // if, for example, gsap.set(... {transform:\"translateX(50vw)\"}), the _get() call doesn't parse the transform, thus cache.renderTransform won't be set yet so force the parsing of the transform here.\n\t\t\t\t\t\tsmooth = (vars.smoothOrigin !== false && cache.smooth);\n\t\t\t\t\t\ttransformPropTween = this._pt = new PropTween(this._pt, style, _transformProp, 0, 1, cache.renderTransform, cache, 0, -1); //the first time through, create the rendering PropTween so that it runs LAST (in the linked list, we keep adding to the beginning)\n\t\t\t\t\t\ttransformPropTween.dep = 1; //flag it as dependent so that if things get killed/overwritten and this is the only PropTween left, we can safely kill the whole tween.\n\t\t\t\t\t}\n\t\t\t\t\tif (p === \"scale\") {\n\t\t\t\t\t\tthis._pt = new PropTween(this._pt, cache, \"scaleY\", cache.scaleY, ((relative ? _parseRelative(cache.scaleY, relative + endNum) : endNum) - cache.scaleY) || 0, _renderCSSProp);\n\t\t\t\t\t\tthis._pt.u = 0;\n\t\t\t\t\t\tprops.push(\"scaleY\", p);\n\t\t\t\t\t\tp += \"X\";\n\t\t\t\t\t} else if (p === \"transformOrigin\") {\n\t\t\t\t\t\tinlineProps.push(_transformOriginProp, 0, style[_transformOriginProp]);\n\t\t\t\t\t\tendValue = _convertKeywordsToPercentages(endValue); //in case something like \"left top\" or \"bottom right\" is passed in. Convert to percentages.\n\t\t\t\t\t\tif (cache.svg) {\n\t\t\t\t\t\t\t_applySVGOrigin(target, endValue, 0, smooth, 0, this);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tendUnit = parseFloat(endValue.split(\" \")[2]) || 0; //handle the zOrigin separately!\n\t\t\t\t\t\t\tendUnit !== cache.zOrigin && _addNonTweeningPT(this, cache, \"zOrigin\", cache.zOrigin, endUnit);\n\t\t\t\t\t\t\t_addNonTweeningPT(this, style, p, _firstTwoOnly(startValue), _firstTwoOnly(endValue));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if (p === \"svgOrigin\") {\n\t\t\t\t\t\t_applySVGOrigin(target, endValue, 1, smooth, 0, this);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if (p in _rotationalProperties) {\n\t\t\t\t\t\t_addRotationalPropTween(this, cache, p, startNum, relative ? _parseRelative(startNum, relative + endValue) : endValue);\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t} else if (p === \"smoothOrigin\") {\n\t\t\t\t\t\t_addNonTweeningPT(this, cache, \"smooth\", cache.smooth, endValue);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if (p === \"force3D\") {\n\t\t\t\t\t\tcache[p] = endValue;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else if (p === \"transform\") {\n\t\t\t\t\t\t_addRawTransformPTs(this, endValue, target);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t} else if (!(p in style)) {\n\t\t\t\t\tp = _checkPropPrefix(p) || p;\n\t\t\t\t}\n\n\t\t\t\tif (isTransformRelated || ((endNum || endNum === 0) && (startNum || startNum === 0) && !_complexExp.test(endValue) && (p in style))) {\n\t\t\t\t\tstartUnit = (startValue + \"\").substr((startNum + \"\").length);\n\t\t\t\t\tendNum || (endNum = 0); // protect against NaN\n\t\t\t\t\tendUnit = getUnit(endValue) || ((p in _config.units) ? _config.units[p] : startUnit);\n\t\t\t\t\tstartUnit !== endUnit && (startNum = _convertToUnit(target, p, startValue, endUnit));\n\t\t\t\t\tthis._pt = new PropTween(this._pt, isTransformRelated ? cache : style, p, startNum, (relative ? _parseRelative(startNum, relative + endNum) : endNum) - startNum, (!isTransformRelated && (endUnit === \"px\" || p === \"zIndex\") && vars.autoRound !== false) ? _renderRoundedCSSProp : _renderCSSProp);\n\t\t\t\t\tthis._pt.u = endUnit || 0;\n\t\t\t\t\tif (startUnit !== endUnit && endUnit !== \"%\") { //when the tween goes all the way back to the beginning, we need to revert it to the OLD/ORIGINAL value (with those units). We record that as a \"b\" (beginning) property and point to a render method that handles that. (performance optimization)\n\t\t\t\t\t\tthis._pt.b = startValue;\n\t\t\t\t\t\tthis._pt.r = _renderCSSPropWithBeginning;\n\t\t\t\t\t}\n\t\t\t\t} else if (!(p in style)) {\n\t\t\t\t\tif (p in target) { //maybe it's not a style - it could be a property added directly to an element in which case we'll try to animate that.\n\t\t\t\t\t\tthis.add(target, p, startValue || target[p], relative ? relative + endValue : endValue, index, targets);\n\t\t\t\t\t} else if (p !== \"parseTransform\") {\n\t\t\t\t\t\t_missingPlugin(p, endValue);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t_tweenComplexCSSString.call(this, target, p, startValue, relative ? relative + endValue : endValue);\n\t\t\t\t}\n\t\t\t\tisTransformRelated || (p in style ? inlineProps.push(p, 0, style[p]) : typeof(target[p]) === \"function\" ? inlineProps.push(p, 2, target[p]()) : inlineProps.push(p, 1, startValue || target[p]));\n\t\t\t\tprops.push(p);\n\t\t\t}\n\t\t}\n\t\thasPriority && _sortPropTweensByPriority(this);\n\n\t},\n\trender(ratio, data) {\n\t\tif (data.tween._time || !_reverting()) {\n\t\t\tlet pt = data._pt;\n\t\t\twhile (pt) {\n\t\t\t\tpt.r(ratio, pt.d);\n\t\t\t\tpt = pt._next;\n\t\t\t}\n\t\t} else {\n\t\t\tdata.styles.revert();\n\t\t}\n\t},\n\tget: _get,\n\taliases: _propertyAliases,\n\tgetSetter(target, property, plugin) { //returns a setter function that accepts target, property, value and applies it accordingly. Remember, properties like \"x\" aren't as simple as target.style.property = value because they've got to be applied to a proxy object and then merged into a transform string in a renderer.\n\t\tlet p = _propertyAliases[property];\n\t\t(p && p.indexOf(\",\") < 0) && (property = p);\n\t\treturn (property in _transformProps && property !== _transformOriginProp && (target._gsap.x || _get(target, \"x\"))) ? (plugin && _recentSetterPlugin === plugin ? (property === \"scale\" ? _setterScale : _setterTransform) : (_recentSetterPlugin = plugin || {}) && (property === \"scale\" ? _setterScaleWithRender : _setterTransformWithRender)) : target.style && !_isUndefined(target.style[property]) ? _setterCSSStyle : ~property.indexOf(\"-\") ? _setterCSSProp : _getSetter(target, property);\n\t},\n\tcore: { _removeProperty, _getMatrix }\n\n};\n\ngsap.utils.checkPrefix = _checkPropPrefix;\ngsap.core.getStyleSaver = _getStyleSaver;\n(function(positionAndScale, rotation, others, aliases) {\n\tlet all = _forEachName(positionAndScale + \",\" + rotation + \",\" + others, name => {_transformProps[name] = 1});\n\t_forEachName(rotation, name => {_config.units[name] = \"deg\"; _rotationalProperties[name] = 1});\n\t_propertyAliases[all[13]] = positionAndScale + \",\" + rotation;\n\t_forEachName(aliases, name => {\n\t\tlet split = name.split(\":\");\n\t\t_propertyAliases[split[1]] = all[split[0]];\n\t});\n})(\"x,y,z,scale,scaleX,scaleY,xPercent,yPercent\", \"rotation,rotationX,rotationY,skewX,skewY\", \"transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective\", \"0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY\");\n_forEachName(\"x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective\", name => {_config.units[name] = \"px\"});\n\ngsap.registerPlugin(CSSPlugin);\n\nexport { CSSPlugin as default, _getBBox, _createElement, _checkPropPrefix as checkPrefix };","import { gsap, Power0, Power1, Power2, Power3, Power4, Linear, Quad, Cubic, Quart, Quint, Strong, Elastic, Back, SteppedEase, Bounce, Sine, Expo, Circ, TweenLite, TimelineLite, TimelineMax } from \"./gsap-core.js\";\nimport { CSSPlugin } from \"./CSSPlugin.js\";\n\nconst gsapWithCSS = gsap.registerPlugin(CSSPlugin) || gsap, // to protect from tree shaking\n\tTweenMaxWithCSS = gsapWithCSS.core.Tween;\n\nexport {\n\tgsapWithCSS as gsap,\n\tgsapWithCSS as default,\n\tCSSPlugin,\n\tTweenMaxWithCSS as TweenMax,\n\tTweenLite,\n\tTimelineMax,\n\tTimelineLite,\n\tPower0,\n\tPower1,\n\tPower2,\n\tPower3,\n\tPower4,\n\tLinear,\n\tQuad,\n\tCubic,\n\tQuart,\n\tQuint,\n\tStrong,\n\tElastic,\n\tBack,\n\tSteppedEase,\n\tBounce,\n\tSine,\n\tExpo,\n\tCirc\n};"],"names":["_isString","value","_isFunction","_isNumber","_isUndefined","_isObject","_isNotFalse","_windowExists","window","_isFuncOrString","_install","scope","_installScope","_merge","_globals","gsap","_missingPlugin","property","console","warn","_warn","message","suppress","_addGlobal","name","obj","_emptyFunc","_harness","targets","harnessPlugin","i","target","_gsap","harness","_harnessPlugins","length","targetTest","GSCache","splice","_getCache","toArray","_getProperty","v","getAttribute","_forEachName","names","func","split","forEach","_round","Math","round","_roundPrecise","_parseRelative","start","operator","charAt","end","parseFloat","substr","_arrayContainsAny","toSearch","toFind","l","indexOf","_lazyRender","tween","_lazyTweens","a","slice","_lazyLookup","_lazy","render","_lazySafeRender","animation","time","suppressEvents","force","_reverting","_initted","_startAt","_numericIfPossible","n","match","_delimitedValueExp","trim","_passThrough","p","_setDefaults","defaults","_mergeDeep","base","toMerge","_copyExcluding","excluding","copy","_inheritDefaults","vars","parent","_globalTimeline","keyframes","_setKeyframeDefaults","excludeDuration","_isArray","inherit","_dp","_addLinkedListItem","child","firstProp","lastProp","sortBy","t","prev","_prev","_next","_removeLinkedListItem","next","_removeFromParent","onlyIfParentHasAutoRemove","autoRemoveChildren","remove","_act","_uncache","_end","_dur","_start","_dirty","_rewindStartAt","totalTime","revert","_revertConfigNoKill","immediateRender","autoRevert","_elapsedCycleDuration","_repeat","_animationCycle","_tTime","duration","_rDelay","_parentToChildTotalTime","parentTime","_ts","totalDuration","_tDur","_setEnd","abs","_rts","_tinyNum","_alignPlayhead","smoothChildTiming","_time","_postAddChecks","timeline","add","rawTime","_clamp","_zTime","_addToTimeline","position","skipChecks","_parsePosition","_delay","timeScale","_sort","_isFromOrFromStart","_recent","_scrollTrigger","trigger","ScrollTrigger","create","_attemptInitTween","tTime","_initTween","_pt","lazy","_lastRenderedFrame","_ticker","frame","push","_setDuration","skipUncache","leavePlayhead","repeat","dur","totalProgress","_onUpdateTotalDuration","Timeline","_createTweenType","type","params","irVars","isLegacy","varsIndex","runBackwards","startAt","Tween","_conditionalReturn","getUnit","_unitExp","exec","_isArrayLike","nonEmpty","nodeType","_win","selector","el","current","nativeElement","querySelectorAll","_doc","createElement","shuffle","sort","random","distribute","each","ease","_parseEase","from","cache","isDecimal","ratios","isNaN","axis","ratioX","ratioY","center","edges","originX","originY","x","y","d","j","max","min","wrapAt","distances","grid","_bigNum","getBoundingClientRect","left","_sqrt","amount","b","u","_invertEase","_roundModifier","pow","raw","snap","snapTo","radius","is2D","isArray","values","increment","dx","dy","closest","roundingIncrement","returnFunction","floor","_wrapArray","wrapper","index","_replaceRandom","nums","s","_strictNumExp","_getLabelInDirection","fromTime","backward","distance","label","labels","_interrupt","scrollTrigger","kill","progress","_callback","_createPlugin","config","headless","isFunc","Plugin","init","_props","instanceDefaults","_renderPropTweens","_addPropTween","_killPropTweensOf","modifier","_addPluginModifier","rawVars","statics","get","getSetter","_getSetter","aliases","register","_wake","_plugins","prototype","prop","_reservedProps","toUpperCase","PropTween","_registerPluginQueue","_hue","h","m1","m2","_255","splitColor","toHSL","forceAlpha","r","g","wasHSL","_colorLookup","black","parseInt","_numExp","transparent","map","Number","_colorOrderData","c","_colorExp","_numWithUnitExp","_formatColors","orderMatchData","shell","result","colors","color","join","replace","shift","_colorStringFilter","combined","lastIndex","test","_hslExp","_configEaseFromString","_easeMap","apply","_parseObjectInString","val","parsedVal","key","lastIndexOf","_quotesExp","_valueInParentheses","open","close","nested","substring","_CE","_customEaseExp","_propagateYoyoEase","isYoyo","_first","yoyoEase","_yoyo","_ease","_yEase","_insertEase","easeIn","easeOut","easeInOut","lowercaseName","toLowerCase","_easeInOutFromOut","_configElastic","amplitude","period","p1","_sin","p3","p2","_2PI","asin","_configBack","overshoot","_suppressOverwrites","_context","_coreInitted","_coreReady","_quickTween","_tickerActive","_id","_req","_raf","_self","_delta","_i","_getTime","_lagThreshold","_adjustedLag","_startTime","_lastUpdate","_gap","_nextTime","_listeners","n1","_config","autoSleep","force3D","nullTargetWarn","units","lineHeight","_defaults","overwrite","delay","PI","_HALF_PI","_gsID","sqrt","_cos","cos","sin","_isTypedArray","ArrayBuffer","isView","Array","_complexStringNumExp","_relExp","_startAtRevertConfig","isStart","_revertConfig","_effects","_nextGCFrame","_callbackNames","cycleDuration","whole","data","_zeroPosition","endTime","percentAnimation","offset","isPercent","recent","clippedDuration","_slice","leaveStrings","_flatten","ar","accumulator","call","mapRange","inMin","inMax","outMin","outMax","inRange","outRange","executeLazyFirst","callback","prevContext","context","_ctx","callbackScope","aqua","lime","silver","maroon","teal","blue","navy","white","olive","yellow","orange","gray","purple","green","red","pink","cyan","RegExp","Date","now","tick","_tick","deltaRatio","fps","wake","document","gsapVersions","version","GreenSockGlobals","requestAnimationFrame","sleep","f","setTimeout","cancelAnimationFrame","clearTimeout","lagSmoothing","threshold","adjustedLag","Infinity","once","prioritize","defaultEase","overlap","dispatch","elapsed","manual","power","Linear","easeNone","none","SteppedEase","steps","immediateStart","id","this","set","Animation","startTime","arguments","_ptLookup","_pTime","iteration","_ps","_recacheAncestors","paused","includeRepeats","wrapRepeats","prevIsReverting","globalTime","_sat","repeatDelay","yoyo","seek","restart","includeDelay","play","reversed","reverse","pause","atTime","resume","invalidate","isActive","eventCallback","_onUpdate","then","onFulfilled","self","Promise","resolve","_resolve","_then","_prom","ratio","sortChildren","_this","to","fromTo","fromVars","toVars","delayedCall","staggerTo","stagger","onCompleteAll","onCompleteAllParams","onComplete","onCompleteParams","staggerFrom","staggerFromTo","prevPaused","pauseTween","prevStart","prevIteration","prevTime","tDur","crossingStart","_lock","rewinding","doesWrap","repeatRefresh","onRepeat","_hasPause","_forcing","_findNextPauseTween","_last","onUpdate","adjustedTime","_this2","addLabel","getChildren","tweens","timelines","ignoreBeforeTime","getById","animations","removeLabel","killTweensOf","addPause","removePause","props","onlyActive","getTweensOf","_overwritingTween","children","parsedTargets","isGlobalTime","_targets","tweenTo","initted","tl","onStart","onStartParams","tweenFromTo","fromPosition","toPosition","nextLabel","afterTime","previousLabel","beforeTime","currentLabel","shiftChildren","adjustLabels","soft","clear","includeLabels","updateRoot","_checkPlugin","plugin","pt","ptLookup","_processVars","_parseFuncOrString","style","priority","_parseKeyframe","allProps","easeEach","e","_forceAllPropTweens","stringFilter","funcParam","optional","currentValue","parsedStart","setter","_setterFuncWithParam","_setterFunc","_setterPlain","_addComplexStringPropTween","startNums","endNum","chunk","startNum","hasRandom","_renderComplexString","matchIndex","m","fp","_renderBoolean","_renderPlain","cleanVars","hasPriority","gsData","harnessVars","overwritten","prevStartAt","fullTargets","autoOverwrite","_overwrite","_from","_ptCache","_op","_sortPropTweensByPriority","_onInit","_staggerTweenProps","_staggerPropsToSkip","skipInherit","curTarget","staggerFunc","staggerVarsToMerge","_this3","kf","_hasNoPausedAncestors","isNegative","_renderZeroDurationTween","prevRatio","_parentPlayheadIsBeforeStart","resetTo","startIsRelative","skipRecursion","_updatePropTweens","rootPT","lookup","ptCache","overwrittenProps","curLookup","curOverwriteProps","killingTargets","propTweenLookup","firstPT","_arraysMatch","a1","a2","_addAliasesToVars","propertyAliases","onReverseComplete","onReverseCompleteParams","_setterAttribute","setAttribute","_setterWithModifier","mSet","mt","hasNonDependentRemaining","op","dep","pt2","first","last","pr","change","renderer","TweenMax","TweenLite","TimelineLite","TimelineMax","_dispatch","_emptyArray","_onMediaChange","matches","_lastMediaTime","_media","anyMatch","toggled","queries","conditions","matchMedia","onMatch","_contextID","Context","prevSelector","_r","isReverted","ignore","getTweens","_this4","o","MatchMedia","mq","active","cond","contexts","addListener","addEventListener","registerPlugin","args","getProperty","unit","uncache","getter","format","quickSetter","setters","quickTo","isTweening","registerEffect","effect","plugins","extendTimeline","pluginName","registerEase","parseEase","exportRoot","includeDelayedCalls","matchMediaRefresh","found","removeEventListener","utils","wrap","range","wrapYoyo","total","normalize","clamp","pipe","functions","reduce","unitize","interpolate","mutate","interpolators","il","isString","master","install","effects","ticker","globalTimeline","core","globals","getCache","reverting","toAdd","suppressOverwrites","_getPluginPropTween","_buildModifierPlugin","temp","_addModifiers","modifiers","_renderCSSProp","_renderPropWithEnd","_renderCSSPropWithBeginning","_renderRoundedCSSProp","_renderNonTweeningValue","_renderNonTweeningValueOnlyAtEnd","_setterCSSStyle","_setterCSSProp","setProperty","_setterTransform","_setterScale","scaleX","scaleY","_setterScaleWithRender","renderTransform","_setterTransformWithRender","_saveStyle","isNotCSS","_transformProps","tfm","_propertyAliases","transform","_get","_transformOriginProp","zOrigin","_transformProp","svg","svgo","_removeIndependentTransforms","translate","removeProperty","_revertStyle","_capsExp","_getStyleSaver","properties","saver","save","_createElement","ns","createElementNS","_getComputedProperty","skipPrefixFallback","cs","getComputedStyle","getPropertyValue","_checkPropPrefix","_initCore","_docElement","documentElement","_tempDiv","cssText","_supports3D","_pluginInitted","_getReparentedCloneBBox","bbox","owner","ownerSVGElement","clone","cloneNode","display","appendChild","getBBox","removeChild","_getAttributeFallbacks","attributesArray","hasAttribute","_getBBox","bounds","cloned","error","width","height","_isSVG","getCTM","parentNode","_removeProperty","first2Chars","removeAttribute","_addNonTweeningPT","beginning","onlySetAtEnd","_convertToUnit","px","isSVG","curValue","curUnit","horizontal","_horizontalExp","isRootSVG","tagName","measureProperty","toPixels","toPercent","_nonConvertibleUnits","body","_nonStandardLayouts","_tweenComplexCSSString","startValues","startValue","endValue","endUnit","startUnit","_convertKeywordsToPercentages","_keywordToPercent","_renderClearProps","clearTransforms","scale","rotate","_parseTransform","_isNullTransform","_getComputedTransformMatrixAsArray","matrixString","_identity2DMatrix","_getMatrix","force2D","nextSibling","addedToDOM","matrix","baseVal","consolidate","offsetParent","nextElementSibling","insertBefore","_applySVGOrigin","origin","originIsAbsolute","smooth","matrixArray","pluginToAddPropTweensTo","determinant","xOriginOld","xOrigin","yOriginOld","yOrigin","xOffsetOld","xOffset","yOffsetOld","yOffset","tx","ty","originSplit","_addPxTranslate","_addRotationalPropTween","direction","cap","_RAD2DEG","finalValue","_assign","source","_addRawTransformPTs","transforms","endCache","startCache","_recentSetterPlugin","Power0","Power1","Power2","Power3","Power4","Quad","Cubic","Quart","Quint","Strong","Elastic","Back","Bounce","Sine","Expo","Circ","_DEG2RAD","_atan2","atan2","_complexExp","autoAlpha","alpha","_prefixes","element","preferPrefix","deg","rad","turn","flex","_firstTwoOnly","_specialProps","top","bottom","right","clearProps","_rotationalProperties","z","rotation","rotationX","rotationY","skewX","skewY","perspective","angle","a12","a22","t1","t2","t3","a13","a23","a33","a42","a43","a32","invertedScaleX","forceCSS","xPercent","offsetWidth","yPercent","offsetHeight","transformPerspective","_renderSVGTransforms","_renderCSSTransforms","_renderNon3DTransforms","_zeroDeg","_zeroPx","_endParenthesis","use3D","a11","a21","tan","side","positionAndScale","all","CSSPlugin","specialProp","relative","isTransformRelated","transformPropTween","inlineProps","styles","visibility","parseTransform","smoothOrigin","autoRound","checkPrefix","getStyleSaver","gsapWithCSS","TweenMaxWithCSS"],"mappings":";;;;;;;;;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_25fps.mp4 b/frontend/public/videos/3191901-uhd_3840_2160_25fps.mp4 new file mode 100644 index 0000000..c812a02 Binary files /dev/null and b/frontend/public/videos/3191901-uhd_3840_2160_25fps.mp4 differ diff --git a/frontend/public/videos/3326928-hd_1920_1080_24fps.mp4 b/frontend/public/videos/3326928-hd_1920_1080_24fps.mp4 new file mode 100644 index 0000000..5291768 Binary files /dev/null and b/frontend/public/videos/3326928-hd_1920_1080_24fps.mp4 differ diff --git a/frontend/public/videos/thumbs/3191901-uhd_3840_2160_25fps_thumb.jpg b/frontend/public/videos/thumbs/3191901-uhd_3840_2160_25fps_thumb.jpg new file mode 100644 index 0000000..861e913 Binary files /dev/null and b/frontend/public/videos/thumbs/3191901-uhd_3840_2160_25fps_thumb.jpg differ diff --git a/frontend/public/videos/thumbs/3326928-hd_1920_1080_24fps_thumb.jpg b/frontend/public/videos/thumbs/3326928-hd_1920_1080_24fps_thumb.jpg new file mode 100644 index 0000000..c224754 Binary files /dev/null and b/frontend/public/videos/thumbs/3326928-hd_1920_1080_24fps_thumb.jpg differ diff --git a/frontend/quasar.config.js b/frontend/quasar.config.js index a3ca2a4..b90233b 100644 --- a/frontend/quasar.config.js +++ b/frontend/quasar.config.js @@ -101,6 +101,10 @@ export default defineConfig((ctx) => { plugins: ['Dark'], }, + htmlVariables: { + fonts: '' +}, + // animations: 'all', // --- includes all animations // https://v2.quasar.dev/options/animations animations: [], diff --git a/frontend/src-capacitor/ios/.gitignore b/frontend/src-capacitor/ios/.gitignore new file mode 100644 index 0000000..f470299 --- /dev/null +++ b/frontend/src-capacitor/ios/.gitignore @@ -0,0 +1,13 @@ +App/build +App/Pods +App/output +App/App/public +DerivedData +xcuserdata + +# Cordova plugins for Capacitor +capacitor-cordova-ios-plugins + +# Generated Config files +App/App/capacitor.config.json +App/App/config.xml diff --git a/frontend/src-capacitor/ios/App/App.xcodeproj/project.pbxproj b/frontend/src-capacitor/ios/App/App.xcodeproj/project.pbxproj new file mode 100644 index 0000000..43c4c01 --- /dev/null +++ b/frontend/src-capacitor/ios/App/App.xcodeproj/project.pbxproj @@ -0,0 +1,424 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 48; + objects = { + +/* Begin PBXBuildFile section */ + 2FAD9763203C412B000D30F8 /* config.xml in Resources */ = {isa = PBXBuildFile; fileRef = 2FAD9762203C412B000D30F8 /* config.xml */; }; + 50379B232058CBB4000EE86E /* capacitor.config.json in Resources */ = {isa = PBXBuildFile; fileRef = 50379B222058CBB4000EE86E /* capacitor.config.json */; }; + 504EC3081FED79650016851F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 504EC3071FED79650016851F /* AppDelegate.swift */; }; + 504EC30D1FED79650016851F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30B1FED79650016851F /* Main.storyboard */; }; + 504EC30F1FED79650016851F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30E1FED79650016851F /* Assets.xcassets */; }; + 504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC3101FED79650016851F /* LaunchScreen.storyboard */; }; + 50B271D11FEDC1A000F3C39B /* public in Resources */ = {isa = PBXBuildFile; fileRef = 50B271D01FEDC1A000F3C39B /* public */; }; + A084ECDBA7D38E1E42DFC39D /* Pods_App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 2FAD9762203C412B000D30F8 /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = config.xml; sourceTree = ""; }; + 50379B222058CBB4000EE86E /* capacitor.config.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = capacitor.config.json; sourceTree = ""; }; + 504EC3041FED79650016851F /* App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = App.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 504EC3071FED79650016851F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 504EC30C1FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 504EC30E1FED79650016851F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 504EC3111FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 504EC3131FED79650016851F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 50B271D01FEDC1A000F3C39B /* public */ = {isa = PBXFileReference; lastKnownFileType = folder; path = public; sourceTree = ""; }; + AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_App.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.release.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.release.xcconfig"; sourceTree = ""; }; + FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.debug.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.debug.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 504EC3011FED79650016851F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + A084ECDBA7D38E1E42DFC39D /* Pods_App.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 27E2DDA53C4D2A4D1A88CE4A /* Frameworks */ = { + isa = PBXGroup; + children = ( + AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 504EC2FB1FED79650016851F = { + isa = PBXGroup; + children = ( + 504EC3061FED79650016851F /* App */, + 504EC3051FED79650016851F /* Products */, + 7F8756D8B27F46E3366F6CEA /* Pods */, + 27E2DDA53C4D2A4D1A88CE4A /* Frameworks */, + ); + sourceTree = ""; + }; + 504EC3051FED79650016851F /* Products */ = { + isa = PBXGroup; + children = ( + 504EC3041FED79650016851F /* App.app */, + ); + name = Products; + sourceTree = ""; + }; + 504EC3061FED79650016851F /* App */ = { + isa = PBXGroup; + children = ( + 50379B222058CBB4000EE86E /* capacitor.config.json */, + 504EC3071FED79650016851F /* AppDelegate.swift */, + 504EC30B1FED79650016851F /* Main.storyboard */, + 504EC30E1FED79650016851F /* Assets.xcassets */, + 504EC3101FED79650016851F /* LaunchScreen.storyboard */, + 504EC3131FED79650016851F /* Info.plist */, + 2FAD9762203C412B000D30F8 /* config.xml */, + 50B271D01FEDC1A000F3C39B /* public */, + ); + path = App; + sourceTree = ""; + }; + 7F8756D8B27F46E3366F6CEA /* Pods */ = { + isa = PBXGroup; + children = ( + FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */, + AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 504EC3031FED79650016851F /* App */ = { + isa = PBXNativeTarget; + buildConfigurationList = 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */; + buildPhases = ( + 6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */, + 504EC3001FED79650016851F /* Sources */, + 504EC3011FED79650016851F /* Frameworks */, + 504EC3021FED79650016851F /* Resources */, + 9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = App; + productName = App; + productReference = 504EC3041FED79650016851F /* App.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 504EC2FC1FED79650016851F /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0920; + LastUpgradeCheck = 2620; + TargetAttributes = { + 504EC3031FED79650016851F = { + CreatedOnToolsVersion = 9.2; + LastSwiftMigration = 1100; + ProvisioningStyle = Automatic; + }; + }; + }; + buildConfigurationList = 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */; + compatibilityVersion = "Xcode 8.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 504EC2FB1FED79650016851F; + packageReferences = ( + ); + productRefGroup = 504EC3051FED79650016851F /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 504EC3031FED79650016851F /* App */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 504EC3021FED79650016851F /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */, + 50B271D11FEDC1A000F3C39B /* public in Resources */, + 504EC30F1FED79650016851F /* Assets.xcassets in Resources */, + 50379B232058CBB4000EE86E /* capacitor.config.json in Resources */, + 504EC30D1FED79650016851F /* Main.storyboard in Resources */, + 2FAD9763203C412B000D30F8 /* config.xml in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-App-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App/Pods-App-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 504EC3001FED79650016851F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 504EC3081FED79650016851F /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 504EC30B1FED79650016851F /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 504EC30C1FED79650016851F /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 504EC3101FED79650016851F /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 504EC3111FED79650016851F /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 504EC3141FED79650016851F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + DEVELOPMENT_TEAM = ZLND8K74VD; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 26.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + STRING_CATALOG_GENERATE_SYMBOLS = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 504EC3151FED79650016851F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEVELOPMENT_TEAM = ZLND8K74VD; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 2; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 26.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + STRING_CATALOG_GENERATE_SYMBOLS = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 504EC3171FED79650016851F /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + INFOPLIST_FILE = App/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 26.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + MARKETING_VERSION = 1.0; + OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\""; + PRODUCT_BUNDLE_IDENTIFIER = media.adametz.thatsme; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 504EC3181FED79650016851F /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_OPTIMIZATION_LEVEL = s; + INFOPLIST_FILE = App/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 26.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = media.adametz.thatsme; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = ""; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 504EC3141FED79650016851F /* Debug */, + 504EC3151FED79650016851F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 504EC3171FED79650016851F /* Debug */, + 504EC3181FED79650016851F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 504EC2FC1FED79650016851F /* Project object */; +} diff --git a/frontend/src-capacitor/ios/App/App.xcodeproj/xcshareddata/xcschemes/App.xcscheme b/frontend/src-capacitor/ios/App/App.xcodeproj/xcshareddata/xcschemes/App.xcscheme new file mode 100644 index 0000000..655b7eb --- /dev/null +++ b/frontend/src-capacitor/ios/App/App.xcodeproj/xcshareddata/xcschemes/App.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src-capacitor/ios/App/App.xcworkspace/contents.xcworkspacedata b/frontend/src-capacitor/ios/App/App.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..b301e82 --- /dev/null +++ b/frontend/src-capacitor/ios/App/App.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/frontend/src-capacitor/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/frontend/src-capacitor/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/frontend/src-capacitor/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/frontend/src-capacitor/ios/App/App/AppDelegate.swift b/frontend/src-capacitor/ios/App/App/AppDelegate.swift new file mode 100644 index 0000000..c3cd83b --- /dev/null +++ b/frontend/src-capacitor/ios/App/App/AppDelegate.swift @@ -0,0 +1,49 @@ +import UIKit +import Capacitor + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + func applicationWillResignActive(_ application: UIApplication) { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + func applicationWillTerminate(_ application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool { + // Called when the app was launched with a url. Feel free to add additional processing here, + // but if you want the App API to support tracking app url opens, make sure to keep this call + return ApplicationDelegateProxy.shared.application(app, open: url, options: options) + } + + func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool { + // Called when the app was launched with an activity, including Universal Links. + // Feel free to add additional processing here, but if you want the App API to support + // tracking app url opens, make sure to keep this call + return ApplicationDelegateProxy.shared.application(application, continue: userActivity, restorationHandler: restorationHandler) + } + +} diff --git a/frontend/src-capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png b/frontend/src-capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png new file mode 100644 index 0000000..adf6ba0 Binary files /dev/null and b/frontend/src-capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png differ diff --git a/frontend/src-capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json b/frontend/src-capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..9b7d382 --- /dev/null +++ b/frontend/src-capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,14 @@ +{ + "images" : [ + { + "filename" : "AppIcon-512@2x.png", + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/frontend/src-capacitor/ios/App/App/Assets.xcassets/Contents.json b/frontend/src-capacitor/ios/App/App/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/frontend/src-capacitor/ios/App/App/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/frontend/src-capacitor/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json b/frontend/src-capacitor/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json new file mode 100644 index 0000000..d7d96a6 --- /dev/null +++ b/frontend/src-capacitor/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "splash-2732x2732-2.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "splash-2732x2732-1.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "splash-2732x2732.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/frontend/src-capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png b/frontend/src-capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png new file mode 100644 index 0000000..33ea6c9 Binary files /dev/null and b/frontend/src-capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png differ diff --git a/frontend/src-capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png b/frontend/src-capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png new file mode 100644 index 0000000..33ea6c9 Binary files /dev/null and b/frontend/src-capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png differ diff --git a/frontend/src-capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png b/frontend/src-capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png new file mode 100644 index 0000000..33ea6c9 Binary files /dev/null and b/frontend/src-capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png differ diff --git a/frontend/src-capacitor/ios/App/App/Base.lproj/LaunchScreen.storyboard b/frontend/src-capacitor/ios/App/App/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..e7ae5d7 --- /dev/null +++ b/frontend/src-capacitor/ios/App/App/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src-capacitor/ios/App/App/Base.lproj/Main.storyboard b/frontend/src-capacitor/ios/App/App/Base.lproj/Main.storyboard new file mode 100644 index 0000000..b44df7b --- /dev/null +++ b/frontend/src-capacitor/ios/App/App/Base.lproj/Main.storyboard @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src-capacitor/ios/App/App/Info.plist b/frontend/src-capacitor/ios/App/App/Info.plist new file mode 100644 index 0000000..d653c90 --- /dev/null +++ b/frontend/src-capacitor/ios/App/App/Info.plist @@ -0,0 +1,49 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + Thats Me + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(MARKETING_VERSION) + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + + diff --git a/frontend/src-capacitor/ios/App/Podfile b/frontend/src-capacitor/ios/App/Podfile new file mode 100644 index 0000000..bdc47b0 --- /dev/null +++ b/frontend/src-capacitor/ios/App/Podfile @@ -0,0 +1,25 @@ +require_relative '../../node_modules/@capacitor/ios/scripts/pods_helpers' + +platform :ios, '14.0' +use_frameworks! + +# workaround to avoid Xcode caching of Pods that requires +# Product -> Clean Build Folder after new Cordova plugins installed +# Requires CocoaPods 1.6 or newer +install! 'cocoapods', :disable_input_output_paths => true + +def capacitor_pods + pod 'Capacitor', :path => '../../node_modules/@capacitor/ios' + pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios' + pod 'CapacitorApp', :path => '../../node_modules/@capacitor/app' + pod 'CapacitorStatusBar', :path => '../../node_modules/@capacitor/status-bar' +end + +target 'App' do + capacitor_pods + # Add your Pods here +end + +post_install do |installer| + assertDeploymentTarget(installer) +end diff --git a/frontend/src-capacitor/ios/App/Podfile.lock b/frontend/src-capacitor/ios/App/Podfile.lock new file mode 100644 index 0000000..c751d9f --- /dev/null +++ b/frontend/src-capacitor/ios/App/Podfile.lock @@ -0,0 +1,34 @@ +PODS: + - Capacitor (7.5.0): + - CapacitorCordova + - CapacitorApp (7.1.2): + - Capacitor + - CapacitorCordova (7.5.0) + - CapacitorStatusBar (7.0.5): + - Capacitor + +DEPENDENCIES: + - "Capacitor (from `../../node_modules/@capacitor/ios`)" + - "CapacitorApp (from `../../node_modules/@capacitor/app`)" + - "CapacitorCordova (from `../../node_modules/@capacitor/ios`)" + - "CapacitorStatusBar (from `../../node_modules/@capacitor/status-bar`)" + +EXTERNAL SOURCES: + Capacitor: + :path: "../../node_modules/@capacitor/ios" + CapacitorApp: + :path: "../../node_modules/@capacitor/app" + CapacitorCordova: + :path: "../../node_modules/@capacitor/ios" + CapacitorStatusBar: + :path: "../../node_modules/@capacitor/status-bar" + +SPEC CHECKSUMS: + Capacitor: 0a78ec6b54580fa055c11744a4e83cd7942d98ca + CapacitorApp: f01a913211780e0718dae9750442c3e23f96e106 + CapacitorCordova: ae35646a9b46cfd00d637f195509c86594026aad + CapacitorStatusBar: 6de542f202c0dd3f9d0a73b240d4c9d3dddc49b4 + +PODFILE CHECKSUM: 21111980a22580fb2d11fb4b5462ec0155a12abe + +COCOAPODS: 1.16.2 diff --git a/frontend/src/components/AppSettingsModal.vue b/frontend/src/components/AppSettingsModal.vue index 09ab13b..e4443b6 100644 --- a/frontend/src/components/AppSettingsModal.vue +++ b/frontend/src/components/AppSettingsModal.vue @@ -74,6 +74,44 @@
+ +
+ Emotionsverlauf +
+
+
+
+ Start + +
+ +
+ Ende + +
+
+
+
+
+
Sprache @@ -100,7 +138,7 @@ :model-value="settingsStore.showFps" @update:model-value="v => { settingsStore.showFps = v }" dense - color="green" + color="primary" />
@@ -146,14 +184,18 @@ const tabs = [ const currentAccentHex = computed(() => { const found = ACCENT_COLORS.find(c => c.value === settingsStore.accentColor) - return found?.hex ?? '#9e9e9e' + return found?.hex ?? '#737373' }) const currentAccentLabel = computed(() => { const found = ACCENT_COLORS.find(c => c.value === settingsStore.accentColor) - return found?.label ?? 'Standard' + return found?.label ?? 'Base' }) +const emotionGradientCss = computed(() => + `linear-gradient(90deg, ${settingsStore.emotionGradientStart} 0%, ${settingsStore.emotionGradientEnd} 100%)` +) + function selectAccent(value) { settingsStore.accentColor = value accentDropdownOpen.value = false @@ -198,6 +240,12 @@ watch(() => settingsStore.appearance, applyAppearance, { immediate: true }) min-height: 40px; } +.settings-row--stack { + align-items: flex-start; + flex-direction: column; + gap: 10px; +} + .settings-row__label { font-size: 15px; } @@ -242,6 +290,7 @@ watch(() => settingsStore.appearance, applyAppearance, { immediate: true }) padding: 6px 10px; border-radius: 8px; cursor: pointer; + border-color: rgba(var(--tm-accent-rgb, 115, 115, 115), 0.35); } .settings-accent-btn--dark { @@ -294,12 +343,53 @@ watch(() => settingsStore.appearance, applyAppearance, { immediate: true }) } .settings-dropdown__item:hover { - background: rgba(128, 128, 128, 0.1); + background: rgba(var(--tm-accent-rgb, 115, 115, 115), 0.12); } .settings-dropdown__check { margin-left: auto; opacity: 0.7; + color: var(--tm-accent, #737373); +} + +.settings-gradient { + width: 100%; +} + +.settings-gradient__preview { + height: 10px; + border-radius: 999px; + border: 1px solid rgba(128, 128, 128, 0.2); + margin-bottom: 10px; +} + +.settings-gradient__controls { + display: flex; + align-items: center; + justify-content: space-between; + gap: 8px; +} + +.settings-gradient__control { + display: flex; + align-items: center; + gap: 6px; + font-size: 12px; + opacity: 0.7; +} + +.settings-gradient__control--right { + justify-content: flex-end; +} + +.settings-color-input { + width: 34px; + height: 22px; + border: none; + background: transparent; + padding: 0; + cursor: pointer; + border-radius: 6px; } /* Placeholder text */ diff --git a/frontend/src/components/EventPanel.vue b/frontend/src/components/EventPanel.vue index ea0d2de..2024cd3 100644 --- a/frontend/src/components/EventPanel.vue +++ b/frontend/src/components/EventPanel.vue @@ -20,12 +20,43 @@
- Key Image + + +
+ + +
-
+
Key Image hinzufügen
+
@@ -38,22 +69,42 @@ :dark="isDark" /> - -
- - {{ formattedDate }} - - +
+ Datum + + + + +
+ +
+ Ort + - + > + + +
- +
Emotional Level @@ -85,28 +136,26 @@ Sehr positiv
- -
- Farbverlauf -
-
- -
- -
+
+
+ Punktfarbe (optional) + +
+
+
@@ -129,10 +178,41 @@
Weitere Medien
-
+
+ + + +
+
+
@@ -141,7 +221,7 @@ flat dense no-caps - label="Event löschen" + label="Event entfernen" icon="delete_outline" color="negative" size="sm" @@ -149,6 +229,60 @@ />
+ + + + +
Key Image entfernen?
+
+ Das Key Image wird endgültig aus diesem Event entfernt. +
+
+ + + + + +
+
+ + + +
@@ -156,12 +290,14 @@ @@ -311,8 +601,12 @@ function onAddMedia() { position: absolute; top: 12px; left: 12px; + max-width: min(180px, calc(100% - 24px)); + border: 1px solid rgba(255, 255, 255, 0.16); + outline: none; background: rgba(0, 0, 0, 0.55); color: #fff; + font-family: inherit; font-size: 11px; font-weight: 600; padding: 4px 10px; @@ -320,6 +614,56 @@ function onAddMedia() { backdrop-filter: blur(4px); } +.event-panel__image-badge::placeholder { + color: rgba(255, 255, 255, 0.78); +} + +.event-panel__image-actions { + position: absolute; + right: 12px; + bottom: 12px; + display: flex; + gap: 8px; +} + +.event-panel__image-action { + display: inline-flex; + align-items: center; + gap: 5px; + border: 1px solid rgba(255, 255, 255, 0.16); + border-radius: 999px; + padding: 6px 10px; + background: rgba(0, 0, 0, 0.48); + color: #fff; + font: inherit; + font-size: 11px; + font-weight: 600; + cursor: pointer; + backdrop-filter: blur(6px); +} + +.event-panel__image-gallery { + position: absolute; + top: 12px; + right: 12px; + width: 36px; + height: 36px; + border: 1px solid rgba(255, 255, 255, 0.16); + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + padding: 0; + background: rgba(0, 0, 0, 0.48); + color: #fff; + cursor: pointer; + backdrop-filter: blur(6px); +} + +.event-panel__image-action--danger { + background: rgba(150, 35, 35, 0.62); +} + .event-panel__image-placeholder { display: flex; flex-direction: column; @@ -339,6 +683,34 @@ function onAddMedia() { opacity: 0.8; } +.event-panel__file-input { + display: none; +} + +.event-panel__confirm { + width: min(360px, calc(100vw - 32px)); + border-radius: 18px; + background: rgba(255, 255, 255, 0.96); + color: #1a1a1a; +} + +.event-panel__confirm--dark { + background: rgba(30, 30, 30, 0.96); + color: #f5f5f5; +} + +.event-panel__confirm-title { + font-size: 18px; + font-weight: 700; +} + +.event-panel__confirm-copy { + margin-top: 6px; + font-size: 13px; + line-height: 1.4; + opacity: 0.72; +} + /* Title */ .event-panel__title { margin-bottom: 0; @@ -350,27 +722,65 @@ function onAddMedia() { line-height: 1.3; } -/* Date row */ -.event-panel__date-row { +.event-panel__meta-grid { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 10px; + margin: 6px 0 12px; +} + +.event-panel__meta-item { + background: rgba(128, 128, 128, 0.08); + border: 1px solid rgba(128, 128, 128, 0.14); + border-radius: 10px; + padding: 8px 10px; + min-height: 56px; +} + +.event-panel__meta-label { + display: block; + font-size: 11px; + font-weight: 600; + opacity: 0.55; + margin-bottom: 4px; +} + +.event-panel__date-btn { + width: 100%; + border: none; + background: transparent; + color: inherit; + font-family: inherit; + padding: 0; display: flex; align-items: center; gap: 6px; - margin-bottom: 20px; - opacity: 0.6; + text-align: left; cursor: pointer; - transition: opacity 0.2s; -} - -.event-panel__date-row:hover { - opacity: 0.9; } .event-panel__date-icon { - flex-shrink: 0; + opacity: 0.7; } .event-panel__date-label { - font-size: 14px; + font-size: 13px; + font-weight: 500; +} + +.event-panel__location-input { + margin-top: -2px; +} + +.event-panel__location-input :deep(.q-field__prepend) { + margin-right: 4px; + color: inherit; + opacity: 0.65; +} + +.event-panel__location-input :deep(.q-field__native) { + font-size: 13px; + font-weight: 500; } /* Card sections */ @@ -447,51 +857,39 @@ function onAddMedia() { margin-top: 4px; } -/* Gradient Preset Selector */ -.event-panel__presets { +.event-panel__gradient-edit { margin-top: 16px; border-top: 1px solid rgba(128, 128, 128, 0.1); padding-top: 12px; } +.event-panel__gradient-row { + display: flex; + align-items: center; + justify-content: space-between; + gap: 8px; + margin-bottom: 8px; +} + .event-panel__presets-label { font-size: 11px; font-weight: 600; opacity: 0.5; - display: block; - margin-bottom: 8px; } -.event-panel__presets-grid { - display: flex; - gap: 6px; - flex-wrap: wrap; -} - -.event-panel__preset { - width: 45px; - height: 25px; +.event-panel__color-input { + width: 44px; + height: 24px; + border: none; border-radius: 6px; + padding: 0; + background: transparent; cursor: pointer; - border: 2px solid #eee; - transition: border-color 0.2s, transform 0.15s; } -.event-panel__preset:hover { - transform: scale(1.1); -} - -.event-panel__preset--active { - border-color: currentColor; - transform: scale(1.1); - box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.3); -} - -.event-panel__preset--none { - background: rgba(128, 128, 128, 0.15); +.event-panel__gradient-actions { display: flex; - align-items: center; - justify-content: center; + justify-content: flex-end; } /* Note */ @@ -502,15 +900,66 @@ function onAddMedia() { /* Media grid */ .event-panel__media-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); + gap: 10px; + margin-top: 10px; +} + +.event-panel__media-item { + position: relative; + aspect-ratio: 1; + border-radius: 10px; + overflow: hidden; + background: rgba(128, 128, 128, 0.12); +} + +.event-panel__media-img { + width: 100%; + height: 100%; + display: block; + object-fit: cover; +} + +.event-panel__media-remove { + position: absolute; + top: 8px; + right: 8px; + width: 30px; + height: 30px; + border: 1px solid rgba(255, 255, 255, 0.18); + border-radius: 50%; display: flex; - gap: 8px; - margin-top: 8px; - flex-wrap: wrap; + align-items: center; + justify-content: center; + padding: 0; + background: rgba(0, 0, 0, 0.58); + color: #fff; + cursor: pointer; + backdrop-filter: blur(4px); +} + +.event-panel__media-open { + position: absolute; + top: 8px; + left: 8px; + width: 30px; + height: 30px; + border: 1px solid rgba(255, 255, 255, 0.18); + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + padding: 0; + background: rgba(0, 0, 0, 0.58); + color: #fff; + cursor: pointer; + backdrop-filter: blur(4px); } .event-panel__media-add { - width: 64px; - height: 64px; + min-height: 128px; + aspect-ratio: 1; border-radius: 10px; border: 2px dashed rgba(128, 128, 128, 0.2); display: flex; @@ -520,10 +969,72 @@ function onAddMedia() { transition: border-color 0.2s; } +@media (max-width: 380px) { + .event-panel__media-grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 8px; + } + + .event-panel__media-add { + min-height: 112px; + } +} + +@media (min-width: 640px) { + .event-panel__media-grid { + grid-template-columns: repeat(3, minmax(0, 1fr)); + } +} + .event-panel__media-add:hover { border-color: rgba(128, 128, 128, 0.4); } +.event-panel__gallery { + position: fixed; + inset: 0; + background: #000; + color: #fff; +} + +.event-panel__gallery-close { + position: fixed; + top: max(16px, env(safe-area-inset-top)); + right: 16px; + z-index: 2; + width: 44px; + height: 44px; + border: 1px solid rgba(255, 255, 255, 0.18); + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + padding: 0; + background: rgba(0, 0, 0, 0.48); + color: #fff; + cursor: pointer; + backdrop-filter: blur(8px); +} + +.event-panel__gallery-carousel { + width: 100%; + height: 100dvh; + background: #000; +} + +.event-panel__gallery-slide { + display: flex; + align-items: center; + justify-content: center; + padding: 0; +} + +.event-panel__gallery-img { + width: 100%; + height: 100%; + object-fit: contain; +} + /* Delete */ .event-panel__delete { display: flex; diff --git a/frontend/src/components/FloatingLines.vue b/frontend/src/components/FloatingLines.vue index 054bdd3..e0a00ff 100644 --- a/frontend/src/components/FloatingLines.vue +++ b/frontend/src/components/FloatingLines.vue @@ -29,6 +29,7 @@ const props = defineProps({ lineSpread: { type: Number, default: 0.05 }, fanSpread: { type: Number, default: 0.05 }, lineSharpness: { type: Number, default: 8.0 }, + lineThickness: { type: Number, default: 1.0 }, waveFrequency: { type: Number, default: 7.0 }, bezierCurvature: { type: Number, default: 0.2 }, circleRadiusPx: { type: Number, default: 75 }, @@ -43,7 +44,13 @@ const props = defineProps({ bgColorEdge: { type: String, default: '#000000' }, backgroundImage: { type: String, default: '' }, mixBlendMode: { type: String, default: 'screen' }, - parallax: { type: Boolean, default: false } + parallax: { type: Boolean, default: false }, + horizonMode: { type: String, default: 'off' }, + horizonOpacity: { type: Number, default: 0.5 }, + horizonBlend: { type: Number, default: 0.2 }, + lineMode: { type: String, default: 'glow' }, // 'glow' | 'static' + staticLineColor: { type: String, default: '#2196F3' }, + staticLineShadowStrength: { type: Number, default: 0 } }) // FPS display @@ -71,7 +78,7 @@ void main() { ` const fragmentShader = ` -precision mediump float; +precision highp float; uniform float iTime; uniform vec3 iResolution; @@ -84,18 +91,36 @@ uniform float pointY[16]; uniform float lineSpread; uniform float fanSpread; uniform float lineSharpness; +uniform float lineThickness; uniform float waveFrequency; uniform float bezierCurvature; uniform float lineBrightness; uniform vec3 pointColor[16]; +uniform int horizonMode; // 0=off 1=fog 2=split 3=glow +uniform float horizonOpacity; +uniform float horizonBlend; + +uniform int lineMode; // 0=glow 1=static +uniform vec3 staticLineColor; +uniform float staticLineShadowStrength; + uniform bool parallax; uniform vec2 parallaxOffset; uniform vec3 lineGradient[8]; -uniform int lineGradientCount; +uniform int lineGradientCount; uniform vec3 bgColorCenter; uniform vec3 bgColorEdge; +uniform int hasBackgroundImage; + +vec3 gradientMid() { + if (lineGradientCount <= 0) return vec3(0.45, 0.5, 0.8); + if (lineGradientCount == 1) return lineGradient[0]; + float t = 0.4999 * float(lineGradientCount - 1); + int idx = int(t); + return mix(lineGradient[idx], lineGradient[min(idx + 1, lineGradientCount - 1)], fract(t)); +} float bezierClosestT(vec2 q, vec2 p0, vec2 pc, vec2 p1) { float bestT = 0.0; @@ -126,7 +151,6 @@ float bezierClosestT(vec2 q, vec2 p0, vec2 pc, vec2 p1) { return t; } -// Accepts precomputed bezier values (t, curvePos, norm) — computed once per segment float waveFocal(vec2 uv, float fi, float totalLines, float t, vec2 curvePos, vec2 norm) { float s = dot(uv - curvePos, norm); @@ -139,10 +163,34 @@ float waveFocal(vec2 uv, float fi, float totalLines, float t, vec2 curvePos, vec float waveDisp = sin(t * waveFrequency + fi * 1.3 + time * 0.4) * amp * sin(fi * 0.9 + time * 0.18); + float widthScale = max(lineThickness, 0.1); float dist = s - linePos - waveDisp; + float scaledDist = abs(dist) * lineSharpness / widthScale; + float fade = smoothstep(-0.06, 0.04, t) * smoothstep(1.06, 0.96, t); + float tailMask = smoothstep(1.35, 0.02, scaledDist); + float core = 0.013 / max(scaledDist + 0.004, 1e-4); + float aura = 0.003 * widthScale * smoothstep(0.42, 0.06, scaledDist); + + return fade * tailMask * core + fade * aura; +} + +float staticLineFocal(vec2 uv, float fi, float totalLines, float t, vec2 curvePos, vec2 norm) { + float s = dot(uv - curvePos, norm); + + float time = iTime * animationSpeed; + float normalizedI = totalLines > 1.0 ? fi / (totalLines - 1.0) : 0.5; + + float envelope = sin(t * 3.14159265359); + float linePos = (normalizedI - 0.5) * fanSpread * envelope; + float amp = lineSpread * 0.3 * envelope; + float waveDisp = sin(t * waveFrequency + fi * 1.3 + time * 0.4) * amp + * sin(fi * 0.9 + time * 0.18); + + float widthScale = max(lineThickness, 0.1); + float dist = abs(s - linePos - waveDisp) * lineSharpness / widthScale; float fade = smoothstep(-0.06, 0.04, t) * smoothstep(1.06, 0.96, t); - return fade * (0.013 / max(abs(dist) * lineSharpness + 0.004, 1e-4) + 0.003); + return fade * smoothstep(0.022, 0.012, dist); } void mainImage(out vec4 fragColor, in vec2 fragCoord) { @@ -153,9 +201,9 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord) { baseUv += parallaxOffset; } - vec3 col = vec3(0.0); + vec3 col = vec3(0.0); + float totalIntensity = 0.0; - const int MAX_PTS = 16; const int MAX_SEGS = 15; for (int s = 0; s < MAX_SEGS; ++s) { @@ -166,36 +214,105 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord) { vec2 segD = ep - sp; float segL = length(segD); - vec2 segDir = segL > 0.001 ? segD / segL : vec2(1.0, 0.0); + if (segL < 1e-4) continue; + vec2 segDir = segD / segL; vec2 sPerp = vec2(-segDir.y, segDir.x); vec2 pc = (sp + ep) * 0.5 + sPerp * segL * bezierCurvature; - float t_seg = clamp(dot(baseUv - sp, segDir) / segL, 0.0, 1.0); - vec3 lineCol = mix(pointColor[s], pointColor[s + 1], t_seg); + float t_seg = clamp(dot(baseUv - sp, segDir) / max(segL, 1e-4), 0.0, 1.0); + vec3 lineCol = lineMode == 1 + ? staticLineColor + : mix(pointColor[s], pointColor[s + 1], t_seg); - // bezierClosestT computed ONCE per segment — shared by fog + all lines float bt = bezierClosestT(baseUv, sp, pc, ep); float bmt = 1.0 - bt; vec2 bPos = bmt*bmt*sp + 2.0*bmt*bt*pc + bt*bt*ep; - vec2 bTang = normalize(bmt*(pc - sp) + bt*(ep - pc)); + vec2 bTangRaw = bmt*(pc - sp) + bt*(ep - pc); + float bTangLen = length(bTangRaw); + vec2 bTang = bTangLen > 1e-4 ? bTangRaw / bTangLen : segDir; vec2 bNorm = vec2(-bTang.y, bTang.x); - float bDist = length(baseUv - bPos); - float fogFade = smoothstep(-0.06, 0.05, bt) * smoothstep(1.06, 0.95, bt); - float fogEnv = sin(bt * 3.14159265359); - float segFog = fogFade * fogEnv * 0.0018 / max(bDist * bDist * 4.0 + 0.012, 0.001); - col += lineCol * segFog; + float shadowStrength = clamp(staticLineShadowStrength, 0.0, 1.0); + if (lineMode != 1 || shadowStrength > 0.0) { + float bDist = length(baseUv - bPos); + float fogFade = smoothstep(-0.06, 0.05, bt) * smoothstep(1.06, 0.95, bt); + float fogEnv = sin(bt * 3.14159265359); + float fogVal = fogFade * fogEnv * 0.0018 / max(bDist * bDist * 4.0 + 0.012, 0.001); + float fogScale = lineMode == 1 ? shadowStrength : 1.0; + col += lineCol * fogVal * fogScale; + totalIntensity += fogVal * fogScale; + } for (int i = 0; i < middleLineCount; ++i) { - col += lineCol * waveFocal(baseUv, float(i), float(middleLineCount), bt, bPos, bNorm); + float glowFv = waveFocal(baseUv, float(i), float(middleLineCount), bt, bPos, bNorm); + float fv = glowFv; + if (lineMode == 1) { + float crispFv = staticLineFocal(baseUv, float(i), float(middleLineCount), bt, bPos, bNorm); + fv = mix(crispFv, glowFv, shadowStrength); + } + col += lineCol * fv; + totalIntensity += fv; } } - col *= lineBrightness; + col *= lineBrightness; + totalIntensity *= lineBrightness; + if (lineMode != 1) { + // Drop only the distant low-energy glow tails that accumulate into cloudy artifacts. + float glowPeak = max(col.r, max(col.g, col.b)); + float cleanupMask = smoothstep(0.018, 0.055, glowPeak); + col *= cleanupMask; + totalIntensity *= cleanupMask; + } + + // Radial background — shared by both modes float dist = length(baseUv) / 1.8; vec3 bg = mix(bgColorCenter, bgColorEdge, clamp(dist, 0.0, 1.0)); - fragColor = vec4(clamp(bg + col, 0.0, 1.0), 1.0); + + // "Split" horizon changes the background orientation (vertical) in both modes. + if (horizonMode == 2) { + float blendW = max(horizonBlend * 0.7, 0.001); + float t = smoothstep(-blendW, blendW, baseUv.y); + bg = mix(bgColorEdge, bgColorCenter, t); + } + + if (lineMode == 1) { + // Static Lines: radial bg + lines mixed by intensity (no additive glow) + float staticMix = clamp(totalIntensity, 0.0, 1.0); + vec3 staticCol = mix(bg, staticLineColor, staticMix); + if (hasBackgroundImage == 1) { + // Keep background image visible by outputting line-only color with alpha. + float alpha = staticMix < 0.03 ? 0.0 : staticMix; + fragColor = vec4(staticLineColor * alpha, alpha); + return; + } + fragColor = vec4(staticCol, 1.0); + return; + } + + // Glowing Lines: additive line colors + horizon effects + + if (horizonMode == 1) { + float band = exp(-baseUv.y * baseUv.y * 5.0); + col += gradientMid() * band * horizonOpacity; + } else if (horizonMode == 3) { + float d2 = baseUv.y * baseUv.y; + float softGlow = exp(-d2 * 10.0); + float coreGlow = exp(-d2 * 70.0) * 0.7; + col += gradientMid() * (softGlow + coreGlow) * horizonOpacity; + } + + vec3 composed = clamp(bg + col, 0.0, 1.0); + if (hasBackgroundImage == 1) { + // Render only glowing lines above CSS background image. + vec3 lineOnly = clamp(col, 0.0, 1.0); + float alpha = clamp(max(lineOnly.r, max(lineOnly.g, lineOnly.b)), 0.0, 1.0); + alpha = alpha < 0.03 ? 0.0 : alpha; + fragColor = vec4(lineOnly * alpha, alpha); + return; + } + fragColor = vec4(composed, 1.0); } void main() { @@ -238,8 +355,14 @@ let rafId = null let resizeObserver = null let uniforms = null let scrollHandler = null +let boundScrollContainer = null +let cachedScrollLeft = 0 let scrollIdleTimer = null let visibilityHandler = null +// Exposed hook so parent can trigger a hard canvas resize sync. +let forceResizeHandler = null +let pointerMoveHandler = null +let pointerTargetEl = null // Parallax tracking let targetParallax = null @@ -282,6 +405,11 @@ function applyBgColors() { uniforms.bgColorEdge.value.set(edge.x, edge.y, edge.z) } +function applyBackgroundImageFlag() { + if (!uniforms) return + uniforms.hasBackgroundImage.value = props.backgroundImage && props.backgroundImage.trim().length > 0 ? 1 : 0 +} + // Watch all props for live updates watch(() => props.animationSpeed, (v) => { if (uniforms) uniforms.animationSpeed.value = v }) watch(() => props.lineCount, () => { @@ -291,6 +419,7 @@ watch(() => props.lineCount, () => { watch(() => props.lineSpread, (v) => { if (uniforms) uniforms.lineSpread.value = v }) watch(() => props.fanSpread, (v) => { if (uniforms) uniforms.fanSpread.value = v }) watch(() => props.lineSharpness, (v) => { if (uniforms) uniforms.lineSharpness.value = v }) +watch(() => props.lineThickness, (v) => { if (uniforms) uniforms.lineThickness.value = v }) watch(() => props.waveFrequency, (v) => { if (uniforms) uniforms.waveFrequency.value = v }) watch(() => props.bezierCurvature, (v) => { if (uniforms) uniforms.bezierCurvature.value = v }) watch(() => props.lineBrightness, (v) => { if (uniforms) uniforms.lineBrightness.value = v }) @@ -311,6 +440,33 @@ watch(() => props.pointColors, applyPointColors, { deep: true }) watch(() => props.linesGradient, applyGradient, { deep: true }) watch(() => props.bgColorCenter, applyBgColors) watch(() => props.bgColorEdge, applyBgColors) +watch(() => props.backgroundImage, applyBackgroundImageFlag) +watch(() => props.horizonMode, (v) => { + if (uniforms) uniforms.horizonMode.value = ({ off: 0, fog: 1, split: 2, glow: 3 })[v] ?? 0 +}) +watch(() => props.horizonOpacity, (v) => { if (uniforms) uniforms.horizonOpacity.value = v }) +watch(() => props.horizonBlend, (v) => { if (uniforms) uniforms.horizonBlend.value = v }) +watch(() => props.lineMode, (v) => { + if (uniforms) uniforms.lineMode.value = v === 'static' ? 1 : 0 +}) +watch(() => props.staticLineColor, (v) => { + if (uniforms) { const c = hexToVec3(v); uniforms.staticLineColor.value.set(c.x, c.y, c.z) } +}) +watch(() => props.staticLineShadowStrength, (v) => { + if (uniforms) uniforms.staticLineShadowStrength.value = v +}) + +watch(() => props.scrollContainer, (nextEl, prevEl) => { + if (prevEl && scrollHandler) { + prevEl.removeEventListener('scroll', scrollHandler) + if (boundScrollContainer === prevEl) boundScrollContainer = null + } + if (nextEl && scrollHandler) { + cachedScrollLeft = nextEl.scrollLeft || 0 + nextEl.addEventListener('scroll', scrollHandler, { passive: true }) + boundScrollContainer = nextEl + } +}) onMounted(() => { if (!containerRef.value) return @@ -331,8 +487,9 @@ onMounted(() => { let currentDpr = DPR_IDLE let scrolling = false - renderer = new WebGLRenderer({ antialias: !isMobile, alpha: false, powerPreference: 'high-performance' }) + renderer = new WebGLRenderer({ antialias: !isMobile, alpha: true, powerPreference: 'high-performance' }) renderer.setPixelRatio(currentDpr) + renderer.setClearAlpha(0) renderer.domElement.style.width = '100%' renderer.domElement.style.height = '100%' renderer.domElement.style.display = 'block' @@ -357,6 +514,7 @@ onMounted(() => { lineSpread: { value: props.lineSpread }, fanSpread: { value: props.fanSpread }, lineSharpness: { value: props.lineSharpness }, + lineThickness: { value: props.lineThickness }, waveFrequency: { value: props.waveFrequency }, bezierCurvature: { value: props.bezierCurvature }, lineBrightness: { value: props.lineBrightness }, @@ -364,6 +522,14 @@ onMounted(() => { value: Array.from({ length: 16 }, () => new Vector3(1, 1, 1)) }, + horizonMode: { value: ({ off: 0, fog: 1, split: 2, glow: 3 })[props.horizonMode] ?? 0 }, + horizonOpacity: { value: props.horizonOpacity }, + horizonBlend: { value: props.horizonBlend }, + + lineMode: { value: props.lineMode === 'static' ? 1 : 0 }, + staticLineColor: { value: hexToVec3(props.staticLineColor) }, + staticLineShadowStrength: { value: props.staticLineShadowStrength }, + parallax: { value: props.parallax }, parallaxOffset: { value: new Vector2(0, 0) }, @@ -372,12 +538,14 @@ onMounted(() => { }, lineGradientCount: { value: 0 }, bgColorCenter: { value: new Vector3(0, 0, 0) }, - bgColorEdge: { value: new Vector3(0, 0, 0) } + bgColorEdge: { value: new Vector3(0, 0, 0) }, + hasBackgroundImage: { value: props.backgroundImage && props.backgroundImage.trim().length > 0 ? 1 : 0 } } // Apply initial values applyGradient() applyBgColors() + applyBackgroundImageFlag() applyPointColors() material = new ShaderMaterial({ @@ -402,6 +570,7 @@ onMounted(() => { const canvasHeight = renderer.domElement.height uniforms.iResolution.value.set(canvasWidth, canvasHeight, 1) } + forceResizeHandler = setSize setSize() resizeObserver = new ResizeObserver(setSize) @@ -409,7 +578,7 @@ onMounted(() => { // Pointer events (parallax only) if (props.parallax) { - const handlePointerMove = (event) => { + pointerMoveHandler = (event) => { const rect = renderer.domElement.getBoundingClientRect() const x = event.clientX - rect.left const y = event.clientY - rect.top @@ -420,11 +589,11 @@ onMounted(() => { (-(y - centerY) / rect.height) * 0.2 ) } - renderer.domElement.addEventListener('pointermove', handlePointerMove) + pointerTargetEl = renderer.domElement + pointerTargetEl.addEventListener('pointermove', pointerMoveHandler) } // Scroll sync: update cached scrollLeft + trigger adaptive DPR reduction. - let cachedScrollLeft = 0 function setDpr(dpr) { if (dpr === currentDpr) return @@ -458,6 +627,7 @@ onMounted(() => { if (props.scrollContainer) { cachedScrollLeft = props.scrollContainer.scrollLeft || 0 props.scrollContainer.addEventListener('scroll', scrollHandler, { passive: true }) + boundScrollContainer = props.scrollContainer } // Fast inline scroll sync — reads cached scrollLeft instead of DOM during render @@ -519,8 +689,8 @@ onMounted(() => { dprDisplay.value = currentDpr.toFixed(2) } - // Read latest scrollLeft from DOM in case scroll event was missed - if (props.scrollContainer) { + // Fallback read only when no listener is bound. + if (!boundScrollContainer && props.scrollContainer) { cachedScrollLeft = props.scrollContainer.scrollLeft || 0 } @@ -539,15 +709,23 @@ onMounted(() => { renderLoop() }) -defineExpose({ fpsDisplay, dprDisplay }) +function forceResize() { + if (forceResizeHandler) forceResizeHandler() +} + +defineExpose({ fpsDisplay, dprDisplay, forceResize }) onBeforeUnmount(() => { if (rafId) cancelAnimationFrame(rafId) if (visibilityHandler) document.removeEventListener('visibilitychange', visibilityHandler) if (resizeObserver) resizeObserver.disconnect() - if (props.scrollContainer && scrollHandler) { - props.scrollContainer.removeEventListener('scroll', scrollHandler) + if (boundScrollContainer && scrollHandler) { + boundScrollContainer.removeEventListener('scroll', scrollHandler) } + boundScrollContainer = null + if (pointerTargetEl && pointerMoveHandler) pointerTargetEl.removeEventListener('pointermove', pointerMoveHandler) + pointerTargetEl = null + pointerMoveHandler = null clearTimeout(scrollIdleTimer) if (geometry) geometry.dispose() if (material) material.dispose() @@ -557,6 +735,7 @@ onBeforeUnmount(() => { renderer.domElement.parentNode.removeChild(renderer.domElement) } } + forceResizeHandler = null }) diff --git a/frontend/src/components/GlowDot.vue b/frontend/src/components/GlowDot.vue index 627de28..b5a154f 100644 --- a/frontend/src/components/GlowDot.vue +++ b/frontend/src/components/GlowDot.vue @@ -8,9 +8,14 @@ 'glow-dot--label-above': labelAbove }" :style="dotStyle" + :role="isGhost ? undefined : 'button'" + :tabindex="isGhost ? -1 : 0" + :aria-label="dotAriaLabel" @click.stop="onSelect" + @keydown.enter.prevent.stop="onSelect" + @keydown.space.prevent.stop="onSelect" > -
+
+ {{ event.title }} {{ formattedDate }}
@@ -43,9 +49,9 @@ const eventsStore = useEventsStore() const settingsStore = useSettingsStore() // Resolve image: cached thumbnail from IndexedDB or fetch & cache -const { resolvedSrc: imageSrc } = props.event.image - ? useImageCache(props.event.image, props.event.id) - : { resolvedSrc: computed(() => null) } +const imageUrl = computed(() => props.event.image || null) +const eventId = computed(() => props.event.id) +const { resolvedSrc: imageSrc } = useImageCache(imageUrl, eventId) const fl = computed(() => settingsStore.floatingLines) const glowColor = computed(() => eventsStore.getGlowColor(props.event)) @@ -67,19 +73,42 @@ const formattedDate = computed(() => { const d = new Date(props.event.date) return `${d.getDate()}. ${MONTH_SHORT[d.getMonth()]} ${d.getFullYear()}` }) +const dotAriaLabel = computed(() => { + if (props.isGhost) return undefined + const title = props.event.title || 'Event' + return `${title}, ${formattedDate.value}` +}) // Label font sizes per setting -const LABEL_FONT = { small: { title: 10, date: 9 }, medium: { title: 12, date: 11 }, large: { title: 14, date: 13 } } +const LABEL_FONT = { + small: { title: 10, date: 9 }, + medium: { title: 12, date: 11 }, + large: { title: 14, date: 13 }, + xlarge: { title: 18, date: 16 } +} const labelFont = computed(() => LABEL_FONT[fl.value.labelSize] ?? LABEL_FONT.small) const labelColor = computed(() => fl.value.labelColor ?? '#ffffff') +const labelOpacity = computed(() => Math.max(0.5, Math.min(1, fl.value.labelOpacity ?? 0.75))) +const connectorLengthScale = computed(() => Math.max(0, Math.min(1, fl.value.labelConnectorLength ?? 0.2))) +// 0 -> no connector, 1 -> ~5x current connector length (about 70px) +const connectorLengthPx = computed(() => connectorLengthScale.value * 70) +const labelGapPx = computed(() => 4 + connectorLengthPx.value) const labelStyle = computed(() => ({ - maxWidth: labelFont.value.title >= 14 ? '120px' : '90px' + maxWidth: labelFont.value.title >= 18 ? '150px' : labelFont.value.title >= 14 ? '120px' : '90px', + '--label-gap': `${labelGapPx.value}px`, + '--label-connector-len': `${connectorLengthPx.value}px`, + '--label-opacity': labelOpacity.value.toFixed(2), + '--label-connector-color': labelColor.value, + '--label-connector-opacity': Math.max(0.45, labelOpacity.value * 0.9).toFixed(2) +})) +const connectorStyle = computed(() => ({ + display: connectorLengthPx.value <= 0.5 ? 'none' : 'block' })) const titleStyle = computed(() => ({ fontSize: `${labelFont.value.title}px`, color: labelColor.value, - maxWidth: labelFont.value.title >= 14 ? '120px' : '90px' + maxWidth: labelFont.value.title >= 18 ? '150px' : labelFont.value.title >= 14 ? '120px' : '90px' })) const dateStyle = computed(() => ({ fontSize: `${labelFont.value.date}px`, @@ -93,14 +122,18 @@ const dotStyle = computed(() => ({ height: `${dotSize.value}px` })) -// Two-layer box-shadow: tight bright core + wide soft halo -const glowShadow = computed(() => { - const size = fl.value.glowSize +const innerStyle = computed(() => { + const size = fl.value.glowSize const strength = fl.value.glowStrength - const color = glowColor.value - const core = alphaHex(Math.min(strength / 3, 1)) - const halo = alphaHex(Math.min(strength / 7, 1)) - return `0 0 ${size}px 0px ${color}${core}, 0 0 ${size * 2.5}px ${size * 0.3}px ${color}${halo}` + const color = glowColor.value + const core = alphaHex(Math.min(strength / 3, 1)) + const halo = alphaHex(Math.min(strength / 7, 1)) + const shadow = `0 0 ${size}px 0px ${color}${core}, 0 0 ${size * 2.5}px ${size * 0.3}px ${color}${halo}` + const bw = fl.value.dotBorderWidth ?? 0 + return { + boxShadow: shadow, + border: bw > 0 ? `${bw}px solid ${fl.value.dotBorderColor ?? '#ffffff'}` : 'none' + } }) function alphaHex(a) { @@ -163,25 +196,41 @@ function onSelect() { position: absolute; left: 50%; transform: translateX(-50%); - top: calc(100% + 6px); + top: calc(100% + var(--label-gap, 18px)); display: flex; flex-direction: column; align-items: center; gap: 1px; max-width: 90px; pointer-events: none; + opacity: var(--label-opacity, 0.75); } /* When dot is in lower half, show label above */ .glow-dot--label-above .glow-dot__label { top: auto; - bottom: calc(100% + 6px); + bottom: calc(100% + var(--label-gap, 18px)); +} + +.glow-dot__connector { + position: absolute; + left: 50%; + width: 1px; + height: var(--label-connector-len, 14px); + top: calc(-1 * var(--label-connector-len, 14px)); + transform: translateX(-50%); + background: var(--label-connector-color, #ffffff); + opacity: var(--label-connector-opacity, 0.65); +} + +.glow-dot--label-above .glow-dot__connector { + top: auto; + bottom: calc(-1 * var(--label-connector-len, 14px)); } .glow-dot__title { font-size: 10px; font-weight: 600; - opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; @@ -193,7 +242,6 @@ function onSelect() { .glow-dot__date { font-size: 9px; font-weight: 400; - opacity: 0.4; white-space: nowrap; line-height: 1.2; } diff --git a/frontend/src/components/LifeWaveSettings.vue b/frontend/src/components/LifeWaveSettings.vue index c36579a..98a5a56 100644 --- a/frontend/src/components/LifeWaveSettings.vue +++ b/frontend/src/components/LifeWaveSettings.vue @@ -17,6 +17,23 @@
Einstellungen
+ +
+ Modus +
+ + +
+
+
Linien @@ -28,7 +45,7 @@
@@ -38,7 +55,7 @@
@@ -48,7 +65,7 @@
@@ -58,7 +75,7 @@
@@ -68,7 +85,17 @@ + +
+ Linienstärke + {{ (fl.lineThickness ?? 1).toFixed(2) }} +
+
@@ -78,7 +105,7 @@
@@ -88,7 +115,7 @@
@@ -98,7 +125,7 @@
@@ -108,7 +135,7 @@
@@ -118,7 +145,7 @@
@@ -128,7 +155,52 @@ + +
+ Rahmen Stärke + {{ (fl.dotBorderWidth ?? 0) === 0 ? 'aus' : `${fl.dotBorderWidth}px` }} +
+ + +
+ Rahmen Farbe + +
+
+ + +
+ Linienfarbe + +
+ Farbe + +
+ +
+ Schatten + {{ (fl.staticLineShadowStrength ?? 0).toFixed(2) }} +
+
@@ -160,6 +232,26 @@ class="lw-settings__color-input" />
+ +
+ Transparenz + {{ (fl.labelOpacity ?? 0.75).toFixed(2) }} +
+ + +
+ Strichlänge + {{ (fl.labelConnectorLength ?? 0.2).toFixed(2) }} +
+
@@ -170,10 +262,17 @@ +
+
@@ -191,7 +297,7 @@ Hintergrundfarbe
- BG Mitte + {{ isSplit ? 'Unten' : 'BG Mitte' }}
- BG Rand + {{ isSplit ? 'Oben' : 'BG Rand' }}
- -
- Farbverlauf (je Zeile ein Hex) - - -
-
Extras
+ Horizont +
+
+ +
+ + + + + +
{{ isDark ? 'Hell-Modus' : 'Dunkel-Modus' }}
+ +
+ Presets + + + + +
+
+ + + + +
Preset speichern
+
+ Speichert alle aktuellen Life Wave Settings inklusive Hintergrundbild. +
+
+ + + + + + + + + +
+
\ No newline at end of file diff --git a/frontend/src/legacy/pages/EditPage.vue b/frontend/src/legacy/pages/EditPage.vue new file mode 100644 index 0000000..03af6ca --- /dev/null +++ b/frontend/src/legacy/pages/EditPage.vue @@ -0,0 +1,2037 @@ + + + + + \ No newline at end of file diff --git a/frontend/src/legacy/pages/EntryDetailPage.vue b/frontend/src/legacy/pages/EntryDetailPage.vue new file mode 100644 index 0000000..db1f822 --- /dev/null +++ b/frontend/src/legacy/pages/EntryDetailPage.vue @@ -0,0 +1,1224 @@ + + + + + \ No newline at end of file diff --git a/frontend/src/legacy/pages/PersonSelector.vue b/frontend/src/legacy/pages/PersonSelector.vue new file mode 100644 index 0000000..2254e7f --- /dev/null +++ b/frontend/src/legacy/pages/PersonSelector.vue @@ -0,0 +1,423 @@ + + + + + \ No newline at end of file diff --git a/frontend/src/legacy/pages/TagSelector.vue b/frontend/src/legacy/pages/TagSelector.vue new file mode 100644 index 0000000..e703d0d --- /dev/null +++ b/frontend/src/legacy/pages/TagSelector.vue @@ -0,0 +1,445 @@ + + + + + \ No newline at end of file diff --git a/frontend/src/legacy/pages/WavePage.vue b/frontend/src/legacy/pages/WavePage.vue new file mode 100644 index 0000000..e125986 --- /dev/null +++ b/frontend/src/legacy/pages/WavePage.vue @@ -0,0 +1,488 @@ + + + + + \ No newline at end of file diff --git a/frontend/src/legacy/utils/ConnectedDotsVisualization.ts b/frontend/src/legacy/utils/ConnectedDotsVisualization.ts new file mode 100644 index 0000000..eba1518 --- /dev/null +++ b/frontend/src/legacy/utils/ConnectedDotsVisualization.ts @@ -0,0 +1,550 @@ +// Define interfaces +export interface DotConfig { + id: number; + value: number; + x: number; + link?: string; // URL to navigate to when dot is clicked + onClick?: () => void; // Function to call when dot is clicked + imageUrl?: string; // Image to display in tooltip + title?: string; // Optional title for the tooltip + description?: string; // Optional description for the tooltip +} +export interface Config { + totalWidth: number; + height: number; + dotRadius: number; + xUnitSize: number; + tension: number; + showGrid: boolean; + tooltipWidth: number; + tooltipHeight: number; +} +interface ControlPoints { + x1: number; + y1: number; + x2: number; + y2: number; +} +interface TooltipEdges { + leftmost: number; + rightmost: number; +} +export class ConnectedDotsVisualization { + private config: Config; + private dots: DotConfig[]; + private preloadedImages: Map = new Map(); + // DOM Elements + private scrollContainer: HTMLElement; + private svg: SVGElement; + private gridGroup: SVGGElement; + private curvePath: SVGPathElement; + private dotsGroup: SVGGElement; + private tooltipGroup: SVGGElement; + // Active tooltip + private activeTooltip: SVGElement | null = null; + constructor( + containerId: string, + dots: DotConfig[], + config?: Partial + ) { + // Use the provided dots or empty array + this.dots = dots || []; + // Calculate the total width based on dots data + const xUnitSize = config?.xUnitSize || 100; + let calculatedWidth = 0; + if (this.dots.length > 0) { + // Find the minimum and maximum x values + const minX = Math.min(...this.dots.map((dot) => dot.x)); + const maxX = Math.max(...this.dots.map((dot) => dot.x)); + // Calculate width based on the range of x values + // Add padding on both sides (3 units on each side) + calculatedWidth = (maxX - minX + 6) * xUnitSize; + } else { + calculatedWidth = 6 * xUnitSize; // Default width if no dots + } + // Default configuration + this.config = { + totalWidth: calculatedWidth, + height: window.innerHeight, + dotRadius: 6, + xUnitSize: xUnitSize, + tension: 0.5, + showGrid: false, + tooltipWidth: 128, + tooltipHeight: 128, + ...config, + }; + // Initialize DOM elements + this.scrollContainer = document.getElementById(containerId) as HTMLElement; + + // Calculate the container height dynamically + const containerHeight = + this.scrollContainer.clientHeight || + this.scrollContainer.offsetHeight || + window.innerHeight; + + // Default configuration + this.config = { + totalWidth: calculatedWidth, + height: containerHeight, // Use the calculated container height + dotRadius: 6, + xUnitSize: xUnitSize, + tension: 0.5, + showGrid: false, + tooltipWidth: 128, + tooltipHeight: 128, + ...config, + }; + + // Create SVG elements + this.svg = document.createElementNS("http://www.w3.org/2000/svg", "svg"); + this.gridGroup = document.createElementNS( + "http://www.w3.org/2000/svg", + "g" + ); + this.curvePath = document.createElementNS( + "http://www.w3.org/2000/svg", + "path" + ); + this.dotsGroup = document.createElementNS( + "http://www.w3.org/2000/svg", + "g" + ); + this.tooltipGroup = document.createElementNS( + "http://www.w3.org/2000/svg", + "g" + ); + // Initialize the visualization + this.addStyles(); + this.initializeSVG(); + this.setupEventListeners(); + this.preloadImages(); + this.render(); + } + private preloadImages(): void { + // Extract all unique image URLs from dots + const imageUrls: string[] = this.dots + .filter((dot) => dot.imageUrl) + // biome-ignore lint/style/noNonNullAssertion: + .map((dot) => dot.imageUrl!) + .filter((url, index, self) => self.indexOf(url) === index); // Remove duplicates + // Create a loading indicator (optional) + const loadingCount = { current: 0, total: imageUrls.length }; + if (imageUrls.length > 0) { + console.log(`Preloading ${imageUrls.length} images...`); + } + // Preload each image + for (const url of imageUrls) { + const img = new Image(); + // Optional loading events + img.onload = () => { + loadingCount.current++; + if (loadingCount.current === loadingCount.total) { + console.log("All images preloaded successfully"); + } + }; + img.onerror = () => { + loadingCount.current++; + console.error(`Failed to preload image: ${url}`); + }; + // Set src to start loading + img.src = url; + // Store in map for potential later use + this.preloadedImages.set(url, img); + } + } + private addStyles(): void { + // Add necessary styles for tooltips and interactions + const styleId = "connected-dots-styles"; + if (!document.getElementById(styleId)) { + const style = document.createElement("style"); + style.id = styleId; + // style.textContent = ` + + // `; + document.head.appendChild(style); + } + } + private initializeSVG(): void { + // Configure SVG + this.svg.setAttribute("width", `${this.config.totalWidth}`); + this.svg.setAttribute("height", `${this.config.height}`); + this.svg.style.overflow = "visible"; + this.scrollContainer.appendChild(this.svg); + // Configure grid group + this.gridGroup.classList.add("grid"); + this.svg.appendChild(this.gridGroup); + // Configure curve path + this.curvePath.setAttribute("fill", "none"); + this.curvePath.setAttribute("stroke", "white"); + this.curvePath.setAttribute("stroke-width", "2"); + this.curvePath.setAttribute("stroke-linecap", "round"); + this.curvePath.classList.add("curve-path"); + this.svg.appendChild(this.curvePath); + // Configure dots group + this.svg.appendChild(this.dotsGroup); + // Configure tooltip group (always on top) + this.tooltipGroup.classList.add("tooltips"); + this.svg.appendChild(this.tooltipGroup); + } + private setupEventListeners(): void { + // Event listeners removed as the controls were removed + } + private getDotX(x: number): number { + return (x + 3) * this.config.xUnitSize; + } + private getDotY(value: number): number { + const centerY = this.config.height / 1.95; + // Calculate raw Y position + // height of the amplitude + const rawY = centerY - (value / 3) * ((this.config.height / 2) * 0.6); + // Calculate minimum Y position to ensure tooltip fits + const minY = this.config.tooltipHeight + 40; // tooltip height + some padding + // Ensure Y is never less than minimum (never too high on screen) + return Math.max(rawY, minY); + } + private calculateBezierControlPoints( + dots: DotConfig[], + index: number + ): ControlPoints { + const tension = this.config.tension * 500; // Scale tension for Bezier curve Rundung Kurve + // Get current point and its neighbors + const curr = dots[index]; + const next = dots[index + 1]; + // Calculate control points for a smooth bezier curve + const x1 = this.getDotX(curr.x) + tension; + const y1 = this.getDotY(curr.value); + const x2 = this.getDotX(next.x) - tension; + const y2 = this.getDotY(next.value); + return { x1, y1, x2, y2 }; + } + private generateBezierPath(): string { + if (this.dots.length < 2) return ""; + let path = `M ${this.getDotX(this.dots[0].x)} ${this.getDotY( + this.dots[0].value + )}`; + for (let i = 0; i < this.dots.length - 1; i++) { + const { x1, y1, x2, y2 } = this.calculateBezierControlPoints( + this.dots, + i + ); + const nextX = this.getDotX(this.dots[i + 1].x); + const nextY = this.getDotY(this.dots[i + 1].value); + path += ` C ${x1} ${y1}, ${x2} ${y2}, ${nextX} ${nextY}`; + } + return path; + } + private drawGrid(): void { + // Clear previous grid + while (this.gridGroup.firstChild) { + this.gridGroup.removeChild(this.gridGroup.firstChild); + } + if (!this.config.showGrid) return; + // Horizontal grid lines + for (const value of [-3, -2, -1, 0, 1, 2, 3]) { + const line = document.createElementNS( + "http://www.w3.org/2000/svg", + "line" + ); + line.setAttribute("x1", "0"); + line.setAttribute("y1", this.getDotY(value).toString()); + line.setAttribute("x2", this.config.totalWidth.toString()); + line.setAttribute("y2", this.getDotY(value).toString()); + line.setAttribute("stroke", "rgba(219, 39, 119, 0.4)"); + line.setAttribute("stroke-width", "1"); + this.gridGroup.appendChild(line); + const text = document.createElementNS( + "http://www.w3.org/2000/svg", + "text" + ); + text.setAttribute("x", "10"); + text.setAttribute("y", (this.getDotY(value) + 4).toString()); + text.setAttribute("fill", "rgba(219, 39, 119, 0.8)"); + text.setAttribute("font-size", "12"); + text.textContent = value.toString(); + this.gridGroup.appendChild(text); + } + // Vertical grid lines + const numVertLines = Math.ceil( + this.config.totalWidth / this.config.xUnitSize + ); + for (let i = 0; i < numVertLines; i++) { + const x = i * this.config.xUnitSize; + const xValue = i - 3; // Starting from -3 + const line = document.createElementNS( + "http://www.w3.org/2000/svg", + "line" + ); + line.setAttribute("x1", x.toString()); + line.setAttribute("y1", "0"); + line.setAttribute("x2", x.toString()); + line.setAttribute("y2", this.config.height.toString()); + line.setAttribute("stroke", "rgba(219, 39, 119, 0.4)"); + line.setAttribute("stroke-width", "1"); + this.gridGroup.appendChild(line); + if (xValue !== 0) { + const text = document.createElementNS( + "http://www.w3.org/2000/svg", + "text" + ); + text.setAttribute("x", x.toString()); + text.setAttribute("y", (this.config.height / 2 + 20).toString()); + text.setAttribute("fill", "rgba(219, 39, 119, 0.8)"); + text.setAttribute("font-size", "12"); + text.setAttribute("text-anchor", "middle"); + text.textContent = xValue.toString(); + this.gridGroup.appendChild(text); + } + } + } + + private createTooltip(dot: DotConfig, x: number, y: number): SVGElement { + const tooltip = document.createElementNS("http://www.w3.org/2000/svg", "g"); + tooltip.classList.add("dot-tooltip"); + tooltip.setAttribute("data-dot-id", dot.id.toString()); + + // Calculate tooltip dimensions and position + const tooltipWidth = 128; // Base width for your tooltip + const tooltipHeight = (4 / 3) * tooltipWidth; + const tooltipX = x - tooltipWidth / 2; + let tooltipY = y - tooltipHeight - 10; // Positioned above the dot + tooltipY = Math.max(tooltipY, 10); // Ensure it doesn't go above the view + + // Create background rectangle + const bg = document.createElementNS("http://www.w3.org/2000/svg", "rect"); + bg.setAttribute("x", tooltipX.toString()); + bg.setAttribute("y", tooltipY.toString()); + bg.setAttribute("width", tooltipWidth.toString()); + bg.setAttribute("height", tooltipHeight.toString()); + bg.setAttribute("rx", "0"); // Rounded corners + bg.classList.add("tooltip-background"); + tooltip.appendChild(bg); + + // Create foreignObject for the content + const contentContainer = document.createElementNS( + "http://www.w3.org/2000/svg", + "foreignObject" + ); + contentContainer.setAttribute("x", tooltipX.toString()); + contentContainer.setAttribute("y", tooltipY.toString()); + contentContainer.setAttribute("width", tooltipWidth.toString()); + contentContainer.setAttribute("height", tooltipHeight.toString()); + + // Create a div to contain the content + const div = document.createElement("div"); + div.classList.add("tooltip-content"); + + // Add title if available + if (dot.title) { + const title = document.createElement("div"); + title.textContent = dot.title; + title.classList.add("tooltip-title"); + div.appendChild(title); + } + + // Add description if available + if (dot.description) { + const desc = document.createElement("div"); + desc.textContent = dot.description; + desc.classList.add("tooltip-description"); + div.appendChild(desc); + } + + // Add image if available + // Create a container div + const imageContainer = document.createElement("div"); + imageContainer.classList.add("image_container"); // Add image_container class + + // Define a variable for handling case with or without link + let imgWrapper: HTMLElement; + + // if (dot.imageUrl) { + if (dot.link || dot.onClick) { + const link = document.createElement("a"); + if (dot.link) { + link.href = dot.link; + } else { + link.href = "#"; // Prevent default href for onClick + } + link.target = "_self"; // Opens in the same window + + const imgElement = document.createElement("img"); + imgElement.src = dot.imageUrl; + imgElement.classList.add("tooltip-image"); + + // Append the image element to the link + link.appendChild(imgElement); + imgWrapper = link; // Use the link as the wrapper + + // Add the event listener to the link + link.addEventListener("click", (e) => { + if (dot.onClick) { + e.preventDefault(); // Prevent default navigation + dot.onClick(); + } else if (dot.link) { + window.location.href = dot.link; + } else { + console.error("Dot has no link or onClick handler"); + throw new Error("Dot has no link or onClick handler"); + } + }); + } else { + const img = document.createElement("img"); + img.src = dot.imageUrl; + img.classList.add("tooltip-image"); + imgWrapper = img; // Use the image directly as the wrapper + } + // } else { + // console.error("Dot has no image URL"); + // throw new Error("Dot has no image URL"); + // } + + // Append imageWrapper to the container + imageContainer.appendChild(imgWrapper); + + + // Append the image container to the main div + div.appendChild(imageContainer); + + const arrow = document.createElement("div"); + + arrow.classList.add("tooltip-arrow"); + + div.appendChild(arrow); // Append the arrow to the tooltip-content div + + contentContainer.appendChild(div); + tooltip.appendChild(contentContainer); + + return tooltip; + } + + private showTooltip(dot: DotConfig, x: number, y: number): void { + // Create tooltip + const tooltip = this.createTooltip(dot, x, y); + this.tooltipGroup.appendChild(tooltip); + this.activeTooltip = tooltip; + } + private hideTooltip(): void { + // This method is kept for compatibility but doesn't hide tooltips anymore + } + private drawCurve(): void { + const pathData = this.generateBezierPath(); + this.curvePath.setAttribute("d", pathData); + } + private calculateTooltipEdges(): TooltipEdges { + let leftmost = 0; + let rightmost = 0; + let firstTooltipFound = false; + // If no dots with tooltips, return default values + if (this.dots.length === 0) { + return { leftmost: 0, rightmost: this.config.totalWidth }; + } + // Calculate the leftmost and rightmost edges of all tooltips + for (const dot of this.dots) { + // Skip dots without tooltip content + if (!dot.imageUrl && !dot.title && !dot.description) { + continue; + } + const x = this.getDotX(dot.x); + const tooltipWidth = this.config.tooltipWidth; + const tooltipX = x - tooltipWidth / 2; + if (!firstTooltipFound) { + leftmost = tooltipX; + rightmost = tooltipX + tooltipWidth; + firstTooltipFound = true; + } else { + // Update leftmost and rightmost values + leftmost = Math.min(leftmost, tooltipX); + rightmost = Math.max(rightmost, tooltipX + tooltipWidth); + } + } + // If no dots with tooltips were found, use default values + if (!firstTooltipFound) { + return { leftmost: 0, rightmost: this.config.totalWidth }; + } + return { leftmost, rightmost }; + } + private drawDots(): void { + // Clear previous dots + while (this.dotsGroup.firstChild) { + this.dotsGroup.removeChild(this.dotsGroup.firstChild); + } + // Clear previous tooltips + while (this.tooltipGroup.firstChild) { + this.tooltipGroup.removeChild(this.tooltipGroup.firstChild); + } + for (const dot of this.dots) { + const x = this.getDotX(dot.x); + const y = this.getDotY(dot.value); + const circle = document.createElementNS( + "http://www.w3.org/2000/svg", + "circle" + ); + circle.setAttribute("cx", x.toString()); + circle.setAttribute("cy", y.toString()); + circle.setAttribute("r", this.config.dotRadius.toString()); + circle.setAttribute("fill", "white"); + circle.setAttribute("data-dot-id", dot.id.toString()); + circle.classList.add("dot"); + // Always show tooltip if it has content + if (dot.imageUrl || dot.title || dot.description) { + this.showTooltip(dot, x, y); + } + // Click event for navigation or custom function + if (dot.link || dot.onClick) { + circle.addEventListener("click", () => { + if (dot.onClick) { + dot.onClick(); + } else if (dot.link) { + window.location.href = dot.link; + } else { + console.error("Dot has no link or onClick handler"); + throw new Error("Dot has no link or onClick handler"); + } + }); + } + this.dotsGroup.appendChild(circle); + } + } + public render(): void { + this.drawGrid(); + this.drawCurve(); + this.drawDots(); + // Calculate tooltip edges and set SVG width + const { leftmost, rightmost } = this.calculateTooltipEdges(); + // Set the SVG width based on the rightmost tooltip edge + if (rightmost > 0) { + // Add some padding + const padding = 40; + this.config.totalWidth = rightmost + padding; + this.svg.setAttribute("width", `${this.config.totalWidth}`); + // Update grid width + this.drawGrid(); + } + } + // Public API methods for external use + public updateDots(newDots: DotConfig[]): void { + this.dots = newDots; + // Initial width calculation based on dot positions (for grid) + if (this.dots.length > 0) { + // Find the minimum and maximum x values + const minX = Math.min(...this.dots.map((dot) => dot.x)); + const maxX = Math.max(...this.dots.map((dot) => dot.x)); + // Calculate width based on the range of x values + // Add padding on both sides (3 units on each side) + this.config.totalWidth = (maxX - minX + 6) * this.config.xUnitSize; + } + // Render will calculate the tooltip edges and update the SVG width + this.render(); +} + public updateConfig(newConfig: Partial): void { + this.config = { ...this.config, ...newConfig }; + this.render(); + } + public resize(): void { + const containerHeight = this.scrollContainer.clientHeight || this.scrollContainer.offsetHeight || window.innerHeight; + this.config.height = containerHeight; + this.svg.setAttribute("height", `${this.config.height}`); + this.render(); + } +} diff --git a/frontend/src/legacy/utils/editFormOptions.js b/frontend/src/legacy/utils/editFormOptions.js new file mode 100644 index 0000000..0679b42 --- /dev/null +++ b/frontend/src/legacy/utils/editFormOptions.js @@ -0,0 +1,238 @@ +// Form options and data for EditPage component + +// Main categories with their subcategories +export const categoryStructure = [ + { + label: 'Career', + value: 'career', + subcategories: [ + { label: 'Promotion', value: 'career-promotion' }, + { label: 'Retirement', value: 'career-retirement' }, + { label: 'Career Changes', value: 'career-changes' } + ] + }, + { + label: 'Education', + value: 'education', + subcategories: [ + { label: 'Graduation', value: 'education-graduation' }, + { label: 'Schooling', value: 'education-schooling' } + ] + }, + { + label: 'Awards', + value: 'awards', + subcategories: [] + }, + { + label: 'Personal Celebrations', + value: 'personal-celebrations', + subcategories: [ + { label: 'Birthday', value: 'birthday' }, + { label: 'Anniversary', value: 'anniversary' } + ] + }, + { + label: 'Relationships', + value: 'relationships', + subcategories: [ + { label: 'Engagement', value: 'relationships-engagement' }, + { label: 'Marriage', value: 'relationships-marriage' }, + { label: 'Divorce', value: 'relationships-divorce' } + ] + }, + { + label: 'Parenthood', + value: 'parenthood', + subcategories: [ + { label: 'Pregnancy', value: 'parenthood-pregnancy' }, + { label: 'Birth', value: 'parenthood-birth' }, + { label: 'Adoption', value: 'parenthood-adoption' } + ] + }, + { + label: 'Loss & Passing', + value: 'passing', + subcategories: [ + { label: 'Funeral', value: 'passing-funeral' } + ] + }, + { + label: 'Festivities', + value: 'festivities', + subcategories: [ + { label: 'Christmas', value: 'festivities-christmas' }, + { label: 'Thanksgiving', value: 'festivities-thanksgiving' }, + { label: 'New Year', value: 'festivities-new-year' }, + { label: 'Easter', value: 'festivities-easter' }, + { label: 'Holidays', value: 'festivities-holidays' } + ] + }, + { + label: 'Social Events', + value: 'social-events', + subcategories: [ + { label: 'Reunions', value: 'reunions' }, + { label: 'Concerts', value: 'concerts' }, + { label: 'Sports', value: 'sports' }, + { label: 'Festivals', value: 'festivals' } + ] + }, + { + label: 'Community', + value: 'community', + subcategories: [ + { label: 'Charity', value: 'charity' }, + { label: 'Community Service', value: 'community-service' } + ] + }, + { + label: 'Health', + value: 'health', + subcategories: [ + { label: 'Surgery', value: 'health-surgery' }, + { label: 'Illness', value: 'health-illness' }, + { label: 'Recovery', value: 'health-recovery' }, + { label: 'Transplants', value: 'health-transplants' }, + { label: 'Mental Health', value: 'health-mental-health' } + ] + }, + { + label: 'Religious & Spiritual', + value: 'religious', + subcategories: [ + { label: 'Baptism', value: 'religious-baptism' }, + { label: 'Bar/Bat Mitzvah', value: 'religious-bar-bat-mitzvah' }, + { label: 'Communion', value: 'religious-communion' }, + { label: 'Confirmation', value: 'religious-confirmation' }, + { label: 'Pilgrimage', value: 'religious-pilgrimage' } + ] + }, + { + label: 'Travel & Adventure', + value: 'travel', + subcategories: [ + { label: 'Travel', value: 'travel-general' }, + { label: 'Vacation', value: 'vacation' }, + { label: 'Adventure', value: 'adventure' } + ] + }, + { + label: 'Life Changes', + value: 'life-changes', + subcategories: [ + { label: 'Moving', value: 'moving' }, + { label: 'License', value: 'license' }, + { label: 'Voting', value: 'voting' }, + { label: 'Citizenship', value: 'citizenship' } + ] + }, + { + label: 'Milestones', + value: 'milestones', + subcategories: [] + } +] + +// Flattened category options for backward compatibility and simple select usage +export const categoryOptions = categoryStructure.reduce((acc, category) => { + // Add main category if it has no subcategories + if (category.subcategories.length === 0) { + acc.push({ label: category.label, value: category.value }) + } else { + // Add subcategories with main category prefix + category.subcategories.forEach(sub => { + acc.push({ + label: `${category.label} - ${sub.label}`, + value: sub.value, + mainCategory: category.value, + subcategory: sub.value + }) + }) + } + return acc +}, []) + +// Helper functions for category management +export const getCategoryStructure = () => categoryStructure + +export const getMainCategories = () => { + return categoryStructure.map(cat => ({ + label: cat.label, + value: cat.value + })) +} + +export const getSubcategories = (mainCategoryValue) => { + const mainCategory = categoryStructure.find(cat => cat.value === mainCategoryValue) + return mainCategory ? mainCategory.subcategories : [] +} + +export const getCategoryByValue = (value) => { + return categoryOptions.find(cat => cat.value === value) +} + +export const getMainCategoryFromValue = (value) => { + const category = getCategoryByValue(value) + return category ? category.mainCategory : null +} + +export const tagOptions = [ + // Emotions + 'happy', 'sad', 'exciting', 'stressful', 'memorable', 'important', + 'fun', 'challenging', 'rewarding', 'disappointing', 'surprising', + 'life-changing', 'routine', 'special', 'difficult', 'joyful', + 'overwhelming', 'peaceful', 'anxious', 'proud', 'grateful', + 'emotional', 'touching', 'inspiring', 'motivating', 'healing', + + // Significance + 'milestone', 'achievement', 'breakthrough', 'turning-point', + 'first-time', 'last-time', 'once-in-a-lifetime', 'unexpected', + 'planned', 'spontaneous', 'tradition', 'new-experience', + + // Social + 'family', 'friends', 'colleagues', 'community', 'solo', + 'group', 'intimate', 'public', 'private', 'celebration', + + // Intensity + 'intense', 'mild', 'dramatic', 'subtle', 'overwhelming', + 'gradual', 'sudden', 'anticipated', 'shocking', 'gentle', + + // Time-related + 'brief', 'extended', 'momentary', 'lasting', 'temporary', + 'permanent', 'seasonal', 'annual', 'weekly', 'daily' +] + +export const personOptions = [ + 'Anna Mueller', + 'Max Schmidt', + 'Sarah Johnson', + 'Michael Weber', + 'Lisa Anderson', + 'Thomas Brown', + 'Julia Martinez', + 'David Wilson', + 'Emma Garcia', + 'Robert Davis' +] + +export const defaultFormData = { + keyImage: null, + keyImageUrl: '', + additionalImages: [], + additionalImageUrls: [], + level: 0, + categories: [], + headline: '', + subheadline: '', + text: '', + tags: [], + location: '', + date: '', + time: '', + audioFiles: [], + audioRecordings: [], + videoFiles: [], + videoRecordings: [], + relatedPersons: [] +} \ No newline at end of file diff --git a/frontend/src/pages/IndexPage.vue b/frontend/src/pages/IndexPage.vue index dd3100b..e74e263 100644 --- a/frontend/src/pages/IndexPage.vue +++ b/frontend/src/pages/IndexPage.vue @@ -1,13 +1,71 @@ - diff --git a/frontend/src/pages/LoginPage.vue b/frontend/src/pages/LoginPage.vue new file mode 100644 index 0000000..cacb15a --- /dev/null +++ b/frontend/src/pages/LoginPage.vue @@ -0,0 +1,250 @@ + + + + + \ No newline at end of file diff --git a/frontend/src/pages/PasswordResetPage.vue b/frontend/src/pages/PasswordResetPage.vue new file mode 100644 index 0000000..316abb7 --- /dev/null +++ b/frontend/src/pages/PasswordResetPage.vue @@ -0,0 +1,95 @@ + + + \ No newline at end of file diff --git a/frontend/src/pages/SignUpPage.vue b/frontend/src/pages/SignUpPage.vue new file mode 100644 index 0000000..9979b90 --- /dev/null +++ b/frontend/src/pages/SignUpPage.vue @@ -0,0 +1,138 @@ + + \ No newline at end of file diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js index 226eb50..bdde51d 100644 --- a/frontend/src/router/index.js +++ b/frontend/src/router/index.js @@ -1,6 +1,7 @@ import { defineRouter } from '#q-app/wrappers' import { createRouter, createMemoryHistory, createWebHistory, createWebHashHistory } from 'vue-router' import routes from './routes' +import { hasStoredAuth } from 'stores/auth' /* * If not building with SSR mode, you can @@ -26,5 +27,19 @@ export default defineRouter(function (/* { store, ssrContext } */) { history: createHistory(process.env.VUE_ROUTER_BASE) }) + Router.beforeEach((to) => { + const isAuthenticated = hasStoredAuth() + + if (to.meta.requiresAuth && !isAuthenticated) { + return { path: '/login', query: { redirect: to.fullPath } } + } + + if (to.path === '/login' && isAuthenticated) { + return { path: '/' } + } + + return true + }) + return Router }) diff --git a/frontend/src/router/routes.js b/frontend/src/router/routes.js index 3999983..cd4a478 100644 --- a/frontend/src/router/routes.js +++ b/frontend/src/router/routes.js @@ -1,18 +1,23 @@ const routes = [ + { + path: '/login', + component: () => import('pages/LoginPage.vue'), + meta: { public: true } + }, { path: '/', component: () => import('layouts/LifeWaveLayout.vue'), + meta: { requiresAuth: true }, children: [ { path: '', component: () => import('pages/LifeWavePage.vue') } ] }, - // Always leave this as last one, - // but you can also remove it + // Always leave this as last one { path: '/:catchAll(.*)*', - component: () => import('pages/ErrorNotFound.vue') - } + component: () => import('pages/ErrorNotFound.vue'), + }, ] export default routes diff --git a/frontend/src/services/apiClient.js b/frontend/src/services/apiClient.js new file mode 100644 index 0000000..c989057 --- /dev/null +++ b/frontend/src/services/apiClient.js @@ -0,0 +1,136 @@ +import { db } from 'src/db' + +function normalizeApiBase(base) { + const trimmedBase = String(base).replace(/\/+$/, '') + + if (/^https?:\/\/api\.thats-me\.(app|test)$/i.test(trimmedBase)) { + return `${trimmedBase}/api` + } + + return trimmedBase +} + +function resolveApiBase() { + if (import.meta.env.VITE_API_BASE) { + return normalizeApiBase(import.meta.env.VITE_API_BASE) + } + + if (typeof window !== 'undefined' && window.location.hostname === 'app.thats-me.test') { + return normalizeApiBase('https://api.thats-me.test') + } + + if (typeof window !== 'undefined' && window.location.hostname.endsWith('thats-me.app')) { + return normalizeApiBase('https://api.thats-me.app') + } + + if (import.meta.env.PROD) { + return normalizeApiBase('https://api.thats-me.app') + } + + return normalizeApiBase('/api') +} + +export const API_BASE = resolveApiBase() + +export class ApiError extends Error { + constructor(message, { status = 0, errors = null } = {}) { + super(message) + this.name = 'ApiError' + this.status = status + this.errors = errors + } +} + +export async function getToken() { + try { + const meta = await db.meta.get('accessToken') + return meta?.value || null + } catch { + return null + } +} + +export async function setToken(token) { + if (!token) { + await clearToken() + return + } + + await db.meta.put({ key: 'accessToken', value: token }) +} + +export async function clearToken() { + await db.meta.delete('accessToken') +} + +async function readResponsePayload(response) { + if (response.status === 204) return null + + const text = await response.text() + if (!text) return null + + try { + return JSON.parse(text) + } catch { + return text + } +} + +export async function apiFetch(path, options = {}) { + const { auth = true, body, headers = {}, ...fetchOptions } = options + const token = auth ? await getToken() : null + + if (auth && !token) { + throw new ApiError('Nicht angemeldet.', { status: 401 }) + } + + const isFormData = typeof FormData !== 'undefined' && body instanceof FormData + const requestUrl = `${API_BASE}${path}` + + if (import.meta.env.DEV) { + console.debug('API request:', requestUrl) + } + + const response = await fetch(requestUrl, { + ...fetchOptions, + body: body && !isFormData && typeof body !== 'string' ? JSON.stringify(body) : body, + headers: { + Accept: 'application/json', + ...(!isFormData ? { 'Content-Type': 'application/json' } : {}), + ...(token ? { Authorization: `Bearer ${token}` } : {}), + ...headers + } + }) + + if (response.status === 401 && auth) { + await clearToken() + } + + return response +} + +export async function apiJson(path, options = {}) { + const response = await apiFetch(path, options) + const payload = await readResponsePayload(response) + + if (!response.ok) { + throw new ApiError(payload?.message || 'Die API-Anfrage ist fehlgeschlagen.', { + status: response.status, + errors: payload?.errors ?? null + }) + } + + return payload +} + +export async function loginRemote(email, password) { + return apiJson('/login', { + method: 'POST', + auth: false, + body: { email, password } + }) +} + +export async function logoutRemote() { + return apiJson('/logout', { method: 'POST' }) +} diff --git a/frontend/src/services/syncService.js b/frontend/src/services/syncService.js index f360f61..7620486 100644 --- a/frontend/src/services/syncService.js +++ b/frontend/src/services/syncService.js @@ -1,8 +1,6 @@ import { ref } from 'vue' import { db } from 'src/db' - -// API base URL — configured per environment -const API_BASE = import.meta.env.VITE_API_BASE || '/api' +import { apiFetch, getToken, setToken } from 'src/services/apiClient' const isSyncing = ref(false) const isOnline = ref(navigator.onLine) @@ -17,51 +15,6 @@ window.addEventListener('offline', () => { isOnline.value = false }) -/** - * Get the stored OAuth access token. - */ -async function getToken() { - try { - const meta = await db.meta.get('accessToken') - return meta?.value || null - } catch { - return null - } -} - -/** - * Store an OAuth access token. - */ -async function setToken(token) { - await db.meta.put({ key: 'accessToken', value: token }) -} - -/** - * Authenticated fetch wrapper. - */ -async function apiFetch(path, options = {}) { - const token = await getToken() - if (!token) throw new Error('Not authenticated') - - const response = await fetch(`${API_BASE}${path}`, { - ...options, - headers: { - 'Content-Type': 'application/json', - Accept: 'application/json', - Authorization: `Bearer ${token}`, - ...options.headers, - }, - }) - - if (response.status === 401) { - // Token expired — clear it - await db.meta.delete('accessToken') - throw new Error('Unauthorized') - } - - return response -} - /** * Process the outbound sync queue (FIFO). * Called on app start, every 30s when online, and on reconnect. @@ -167,9 +120,12 @@ async function pullRemoteChanges() { id: remote.id, title: remote.title, date: remote.date, + location: remote.location ?? '', emotion: remote.emotion, customColor: remote.customColor, gradientPreset: remote.gradientPreset, + gradientStartColor: remote.gradientStartColor ?? null, + gradientEndColor: remote.gradientEndColor ?? null, image: remote.image, note: remote.note, syncStatus: 'synced', @@ -181,9 +137,12 @@ async function pullRemoteChanges() { await db.events.update(remote.id, { title: remote.title, date: remote.date, + location: remote.location ?? '', emotion: remote.emotion, customColor: remote.customColor, gradientPreset: remote.gradientPreset, + gradientStartColor: remote.gradientStartColor ?? null, + gradientEndColor: remote.gradientEndColor ?? null, image: remote.image, note: remote.note, syncStatus: 'synced', diff --git a/frontend/src/stores/auth.js b/frontend/src/stores/auth.js new file mode 100644 index 0000000..cd1e035 --- /dev/null +++ b/frontend/src/stores/auth.js @@ -0,0 +1,165 @@ +import { defineStore } from 'pinia' +import { computed, ref } from 'vue' +import { clearToken, loginRemote, logoutRemote, setToken } from 'src/services/apiClient' + +export const AUTH_STORAGE_KEY = 'thatsme-auth' + +export const LOCAL_DEMO_USER = { + id: 'local-demo', + email: 'demo@local', + password: '', + name: 'Demo', + avatar: 'D', + mode: 'local', + seedDemoEvents: false +} + +export const REMOTE_USERS = Array.from({ length: 6 }, (_, index) => { + const number = index + 1 + return { + id: `remote-user-${number}`, + email: `user${number}@thats-me.app`, + name: `User ${number}`, + avatar: `U${number}`, + mode: 'remote', + seedDemoEvents: false + } +}) + +function normalizeUser(user) { + const mode = user.mode || 'local' + + return { + id: String(user.id), + email: String(user.email).trim().toLowerCase(), + password: mode === 'local' ? '' : String(user.password || 'pass'), + name: String(user.name || user.email), + avatar: String(user.avatar || '?').slice(0, 3).toUpperCase(), + mode, + seedDemoEvents: false + } +} + +function normalizeRemoteUser(user) { + return { + id: String(user.id), + email: String(user.email).trim().toLowerCase(), + name: String(user.name || user.email), + avatar: String(user.avatar || '?').slice(0, 3).toUpperCase(), + mode: 'remote', + seedDemoEvents: false + } +} + +export function getAvailableUsers() { + return [normalizeUser(LOCAL_DEMO_USER), ...REMOTE_USERS] +} + +function loadStoredAuth() { + try { + const stored = localStorage.getItem(AUTH_STORAGE_KEY) + return stored ? JSON.parse(stored) : null + } catch { + return null + } +} + +export function hasStoredAuth() { + const stored = loadStoredAuth() + return Boolean(stored?.user || stored?.userId) +} + +function persistAuth(user) { + localStorage.setItem(AUTH_STORAGE_KEY, JSON.stringify({ + userId: user.id, + mode: user.mode, + user + })) +} + +export const useAuthStore = defineStore('auth', () => { + const storedAuth = loadStoredAuth() + const currentUserId = ref(storedAuth?.user?.id ?? storedAuth?.userId ?? null) + const currentUserProfile = ref(storedAuth?.user ? normalizeUser(storedAuth.user) : null) + const lastError = ref('') + const users = ref(getAvailableUsers()) + + const currentUser = computed(() => + currentUserProfile.value ?? users.value.find(user => user.id === currentUserId.value) ?? null + ) + const isAuthenticated = computed(() => currentUser.value !== null) + + async function login(email, password) { + const normalizedEmail = String(email).trim().toLowerCase() + const user = users.value.find(candidate => + candidate.email === normalizedEmail + ) + + if (!user) { + lastError.value = 'E-Mail oder Passwort ist falsch.' + return false + } + + if (user.mode === 'remote') { + try { + const data = await loginRemote(normalizedEmail, password) + const remoteUser = normalizeRemoteUser(data.user) + + await setToken(data.token) + currentUserId.value = remoteUser.id + currentUserProfile.value = remoteUser + lastError.value = '' + persistAuth(remoteUser) + + return true + } catch (error) { + console.warn('Remote login failed:', error) + lastError.value = error?.status === 422 + ? 'E-Mail oder Passwort ist falsch.' + : 'Login über die API ist gerade nicht möglich.' + return false + } + } + + if (user.mode === 'local') { + currentUserId.value = user.id + currentUserProfile.value = user + lastError.value = '' + persistAuth(user) + return true + } + + if (user.password !== password) { + lastError.value = 'E-Mail oder Passwort ist falsch.' + return false + } + + currentUserId.value = user.id + currentUserProfile.value = user + lastError.value = '' + persistAuth(user) + return true + } + + function logout() { + if (currentUser.value?.mode === 'remote') { + logoutRemote().catch(() => {}) + } + + currentUserId.value = null + currentUserProfile.value = null + lastError.value = '' + localStorage.removeItem(AUTH_STORAGE_KEY) + clearToken().catch(() => {}) + } + + return { + users, + currentUserId, + currentUser, + isAuthenticated, + lastError, + login, + logout + } +}) diff --git a/frontend/src/stores/events.js b/frontend/src/stores/events.js index ab4eb55..302b73b 100644 --- a/frontend/src/stores/events.js +++ b/frontend/src/stores/events.js @@ -1,7 +1,11 @@ import { defineStore } from 'pinia' import { ref, computed, watch } from 'vue' +import Dexie from 'dexie' import { db } from 'src/db' +import { apiJson } from 'src/services/apiClient' import { startAutoSync, getToken } from 'src/services/syncService' +import { useSettingsStore, DEFAULT_EMOTION_GRADIENT_START, DEFAULT_EMOTION_GRADIENT_END } from 'stores/settings' +import { useAuthStore } from 'stores/auth' // Color interpolation function lerpColor(a, b, t) { @@ -17,55 +21,32 @@ function lerpColor(a, b, t) { return `#${r.toString(16).padStart(2, '0')}${g.toString(16).padStart(2, '0')}${blue.toString(16).padStart(2, '0')}` } -// Gradient presets: [negative, neutral, positive] -const GRADIENT_PRESETS = [ - { name: 'Standard', colors: ['#E91E63', '#FFD700', '#4CAF50'] }, - { name: 'Sunset', colors: ['#FD1D1D', '#FCB045', '#833AB4'] }, - { name: 'Earth', colors: ['#ED8153', '#ED8153', '#217B9E'] }, - { name: 'Ocean', colors: ['#00D4FF', '#164173', '#440559'] }, - { name: 'Spring', colors: ['#FDBB2D', '#96BE74', '#22C1C3'] }, - { name: 'Neon', colors: ['#FC466B', '#9A52B6', '#3F5EFB'] }, - { name: 'Pastel', colors: ['#EEAECA', '#C2B4D9', '#94BBE9'] }, - { name: 'Aurora', colors: ['#FF6B6B', '#C084FC', '#67E8F9'] }, - { name: 'Forest', colors: ['#DC2626', '#A3A830', '#059669'] }, - { name: 'Berry', colors: ['#F472B6', '#FB923C', '#A78BFA'] } -] +// Glow color logic: emotion value mapped on one continuous gradient. +function emotionToColor(emotion, gradientStartColor = null, gradientEndColor = null) { + const start = gradientStartColor || DEFAULT_EMOTION_GRADIENT_START + const end = gradientEndColor || DEFAULT_EMOTION_GRADIENT_END + const t = Math.max(0, Math.min(1, (emotion + 1) / 2)) + return lerpColor(start, end, t) +} -// Glow color logic: emotion value → color, with optional gradient preset -function emotionToColor(emotion, gradientIdx = null) { - const preset = gradientIdx !== null ? GRADIENT_PRESETS[gradientIdx] : null - if (preset) { - const [neg, mid, pos] = preset.colors - if (emotion >= 0) { - return lerpColor(mid, pos, emotion) - } else { - return lerpColor(mid, neg, Math.abs(emotion)) - } - } - if (emotion >= 0) { - if (emotion < 0.5) { - return lerpColor('#FF6B35', '#FFD700', emotion / 0.5) - } - return lerpColor('#FFD700', '#4CAF50', (emotion - 0.5) / 0.5) - } else { - const abs = Math.abs(emotion) - if (abs < 0.5) { - return lerpColor('#2196F3', '#9C27B0', abs / 0.5) - } - return lerpColor('#9C27B0', '#E91E63', (abs - 0.5) / 0.5) - } +function todayLocalDate() { + const now = new Date() + const year = now.getFullYear() + const month = String(now.getMonth() + 1).padStart(2, '0') + const day = String(now.getDate()).padStart(2, '0') + return `${year}-${month}-${day}` } // Demo seed data const demoEvents = [ - { id: crypto.randomUUID(), title: 'Erster Schultag', date: '1995-09-01', emotion: 0.6, customColor: null, gradientPreset: null, image: null, note: '', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, - { id: crypto.randomUUID(), title: 'Abiball', date: '2004-06-25', emotion: 0.85, customColor: null, gradientPreset: 1, image: 'demo/photo-1530103862676-de8c9debad1d.jpeg', note: 'Was für eine Party!', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, - { id: crypto.randomUUID(), title: 'Trennung', date: '2010-03-15', emotion: -0.7, customColor: null, gradientPreset: null, image: null, note: '', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, - { id: crypto.randomUUID(), title: 'Bergwanderung', date: '2014-08-12', emotion: 0.75, customColor: null, gradientPreset: 4, image: 'demo/photo-1534067783941-51c9c23ecefd.jpeg', note: 'Unvergesslicher Ausblick', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, - { id: crypto.randomUUID(), title: 'Jobverlust', date: '2016-11-03', emotion: -0.6, customColor: null, gradientPreset: null, image: null, note: '', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, - { id: crypto.randomUUID(), title: 'Hochzeit', date: '2018-07-20', emotion: 0.95, customColor: null, gradientPreset: 5, image: 'demo/photo-1506905925346-21bda4d32df4.jpeg', note: 'Der schönste Tag', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, - { id: crypto.randomUUID(), title: 'Umzug', date: '2021-04-01', emotion: -0.3, customColor: null, gradientPreset: null, image: null, note: '', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, - { id: crypto.randomUUID(), title: 'Neuer Job', date: '2023-01-10', emotion: 0.5, customColor: null, gradientPreset: null, image: 'demo/photo-1530103862676-de8c9debad1d.jpeg', note: 'Neues Kapitel', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() } + { id: crypto.randomUUID(), title: 'Erster Schultag', date: '1995-09-01', location: '', emotion: 0.6, customColor: null, gradientPreset: null, image: null, note: '', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, + { id: crypto.randomUUID(), title: 'Abiball', date: '2004-06-25', location: '', emotion: 0.85, customColor: null, gradientPreset: null, image: 'demo/photo-1530103862676-de8c9debad1d.jpeg', note: 'Was für eine Party!', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, + { id: crypto.randomUUID(), title: 'Trennung', date: '2010-03-15', location: '', emotion: -0.7, customColor: null, gradientPreset: null, image: null, note: '', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, + { id: crypto.randomUUID(), title: 'Bergwanderung', date: '2014-08-12', location: '', emotion: 0.75, customColor: null, gradientPreset: null, image: 'demo/photo-1534067783941-51c9c23ecefd.jpeg', note: 'Unvergesslicher Ausblick', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, + { id: crypto.randomUUID(), title: 'Jobverlust', date: '2016-11-03', location: '', emotion: -0.6, customColor: null, gradientPreset: null, image: null, note: '', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, + { id: crypto.randomUUID(), title: 'Hochzeit', date: '2018-07-20', location: '', emotion: 0.95, customColor: null, gradientPreset: null, image: 'demo/photo-1506905925346-21bda4d32df4.jpeg', note: 'Der schönste Tag', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, + { id: crypto.randomUUID(), title: 'Umzug', date: '2021-04-01', location: '', emotion: -0.3, customColor: null, gradientPreset: null, image: null, note: '', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() }, + { id: crypto.randomUUID(), title: 'Neuer Job', date: '2023-01-10', location: '', emotion: 0.5, customColor: null, gradientPreset: null, image: 'demo/photo-1530103862676-de8c9debad1d.jpeg', note: 'Neues Kapitel', syncStatus: 'local', createdAt: Date.now(), updatedAt: Date.now() } ] // Generate realistic demo events for testing at scale @@ -144,16 +125,14 @@ function generateManyEvents(count = 500) { const note = hasNote ? pick(cat.notes) : '' const hasImage = rand() < 0.15 // 15% chance const image = hasImage ? pick(demoImages) : null - const hasPreset = rand() < 0.25 // 25% chance - const gradientPreset = hasPreset ? randInt(0, 9) : null - evts.push({ id: crypto.randomUUID(), title, date, + location: '', emotion, customColor: null, - gradientPreset, + gradientPreset: null, image, note, syncStatus: 'local', @@ -167,28 +146,220 @@ function generateManyEvents(count = 500) { return evts } -export { emotionToColor, GRADIENT_PRESETS, demoEvents, generateManyEvents } +export { + emotionToColor, + demoEvents, + generateManyEvents +} export const useEventsStore = defineStore('events', () => { + const settingsStore = useSettingsStore() + const authStore = useAuthStore() const events = ref([]) const isLoaded = ref(false) const selectedEventId = ref(null) const panelOpen = ref(false) const editingEventId = ref(null) + const AUTOSAVE_DELAY_MS = 300 + let persistTimer = null + let skipNextPersist = false + const pendingRemoteCreates = new Map() - // Load events from IndexedDB; seed demo data on first launch - async function init() { - try { - let stored = await db.events.orderBy('date').toArray() - if (stored.length === 0) { - const seed = generateManyEvents(500) - await db.events.bulkPut(seed) - stored = seed + const isRemoteUser = computed(() => authStore.currentUser?.mode === 'remote') + + function normalizeRemoteEvent(event) { + const media = Array.isArray(event.media) ? event.media : [] + const keyImage = media.find(item => item.collection === 'key_image') + + return { + id: event.id, + userId: authStore.currentUserId, + title: event.title, + date: event.date, + location: event.location ?? '', + emotion: event.emotion, + customColor: event.customColor ?? null, + gradientPreset: event.gradientPreset ?? null, + gradientStartColor: event.gradientStartColor ?? null, + gradientEndColor: event.gradientEndColor ?? null, + image: keyImage?.thumbnailUrl ?? event.image ?? null, + keyImagePreviewUrl: keyImage?.previewUrl ?? null, + keyImageOriginalUrl: keyImage?.originalUrl ?? null, + keyImageTitle: event.keyImageTitle ?? '', + media, + note: event.note ?? '', + syncStatus: 'synced', + createdAt: event.createdAt ?? Date.now(), + updatedAt: event.updatedAt ?? Date.now() + } + } + + function eventPayload(event) { + return { + id: event.id, + title: event.title, + date: event.date, + emotion: event.emotion, + customColor: event.customColor, + gradientPreset: event.gradientPreset, + image: event.image, + note: event.note + } + } + + async function loadRemoteEvents() { + const remoteEvents = [] + let nextUrl = '/events?limit=200' + + while (nextUrl) { + const payload = await apiJson(nextUrl) + remoteEvents.push(...(payload.data || []).map(normalizeRemoteEvent)) + if (payload.links?.next) { + const url = new URL(payload.links.next) + nextUrl = `${url.pathname.replace(/^\/api/, '')}${url.search}` + } else { + nextUrl = null } + } + + events.value = remoteEvents + await db.events + .where('[userId+date]') + .between([authStore.currentUserId, Dexie.minKey], [authStore.currentUserId, Dexie.maxKey]) + .delete() + + if (remoteEvents.length > 0) { + await db.events.bulkPut(remoteEvents) + } + } + + function createRemoteEvent(event) { + const request = apiJson('/events', { + method: 'POST', + body: eventPayload(event) + }) + .then((payload) => { + const syncedEvent = normalizeRemoteEvent(payload.data) + const idx = events.value.findIndex(item => item.id === syncedEvent.id) + if (idx !== -1) { + events.value[idx] = { + ...events.value[idx], + ...syncedEvent + } + } + dbPut(syncedEvent) + }) + .catch((error) => { + console.warn('Remote event create failed:', error) + const idx = events.value.findIndex(item => item.id === event.id) + if (idx !== -1) { + events.value[idx] = { ...events.value[idx], syncStatus: 'error' } + } + }) + .finally(() => { + pendingRemoteCreates.delete(event.id) + }) + + pendingRemoteCreates.set(event.id, request) + } + + async function updateRemoteEvent(event) { + const pendingCreate = pendingRemoteCreates.get(event.id) + if (pendingCreate) { + await pendingCreate + } + + try { + const payload = await apiJson(`/events/${event.id}`, { + method: 'PUT', + body: eventPayload(event) + }) + const syncedEvent = normalizeRemoteEvent(payload.data) + const idx = events.value.findIndex(item => item.id === syncedEvent.id) + if (idx !== -1) { + events.value[idx] = { + ...events.value[idx], + ...syncedEvent + } + } + dbPut(syncedEvent) + } catch (error) { + console.warn('Remote event update failed:', error) + const idx = events.value.findIndex(item => item.id === event.id) + if (idx !== -1) { + events.value[idx] = { ...events.value[idx], syncStatus: 'error' } + } + } + } + + async function deleteRemoteEvent(id) { + const pendingCreate = pendingRemoteCreates.get(id) + if (pendingCreate) { + await pendingCreate + } + + try { + await apiJson(`/events/${id}`, { method: 'DELETE' }) + } catch (error) { + console.warn('Remote event delete failed:', error) + } + } + + async function uploadRemoteMedia(file, collection = 'gallery') { + if (!editingEventId.value) return null + + const pendingCreate = pendingRemoteCreates.get(editingEventId.value) + if (pendingCreate) { + await pendingCreate + } + + const formData = new FormData() + formData.append('collection', collection) + formData.append('file', file) + + const payload = await apiJson(`/events/${editingEventId.value}/media`, { + method: 'POST', + body: formData + }) + + return payload.data + } + + async function deleteRemoteMedia(mediaId) { + if (!isRemoteUser.value || !editingEventId.value || !mediaId) return + + try { + await apiJson(`/events/${editingEventId.value}/media/${mediaId}`, { method: 'DELETE' }) + } catch (error) { + console.warn('Remote media delete failed:', error) + } + } + + // Load local Demo events from IndexedDB; Remote users load from the API. + async function init() { + const userId = authStore.currentUserId + if (!userId) { + events.value = [] + isLoaded.value = true + return + } + + isLoaded.value = false + try { + if (isRemoteUser.value) { + await loadRemoteEvents() + isLoaded.value = true + return + } + + const stored = await db.events + .where('[userId+date]') + .between([userId, Dexie.minKey], [userId, Dexie.maxKey]) + .toArray() events.value = stored } catch (e) { - console.warn('Dexie load failed, using demo data:', e) - events.value = [...demoEvents] + console.warn('Dexie load failed:', e) + events.value = [] } isLoaded.value = true @@ -200,35 +371,93 @@ export const useEventsStore = defineStore('events', () => { // Fire-and-forget DB write (UI already updated via ref) function dbPut(event) { - db.events.put(event).catch(e => console.warn('Dexie put failed:', e)) + db.events.put({ ...event, userId: event.userId ?? authStore.currentUserId }).catch(e => console.warn('Dexie put failed:', e)) } function dbDelete(id) { - db.events.delete(id).catch(e => console.warn('Dexie delete failed:', e)) + const remove = async () => { + await db.events.delete(id) + await db.eventMedia.where('eventId').equals(id).delete() + } + remove().catch(e => console.warn('Dexie delete failed:', e)) } - function dbQueueSync(eventId, action, payload) { - db.syncQueue.add({ eventId, action, payload, createdAt: Date.now() }) - .catch(e => console.warn('Dexie sync queue failed:', e)) + function cloneMedia(media) { + return Array.isArray(media) + ? media.map(item => ({ ...item })) + : [] + } + + function mediaMeta(media) { + return cloneMedia(media).map((item) => ({ + id: item.id, + uuid: item.uuid, + type: item.type, + collection: item.collection, + name: item.name, + src: item.src, + thumbnailUrl: item.thumbnailUrl, + originalUrl: item.originalUrl, + createdAt: item.createdAt + })) + } + + function persistEventMedia(eventId, userId, media) { + const mediaItems = cloneMedia(media) + const persist = async () => { + await db.eventMedia.where('eventId').equals(eventId).delete() + if (mediaItems.length === 0) return + await db.eventMedia.bulkPut(mediaItems.map(item => ({ + ...item, + eventId, + userId + }))) + } + + persist().catch(e => console.warn('Dexie media persist failed:', e)) + } + + async function loadEventMedia(event) { + const fallback = Array.isArray(event.media) ? cloneMedia(event.media) : [] + ghostMedia.value = fallback + + try { + const stored = await db.eventMedia + .where('eventId') + .equals(event.id) + .toArray() + + if (editingEventId.value !== event.id || stored.length === 0) return + + ghostMedia.value = stored + .sort((a, b) => (a.createdAt ?? 0) - (b.createdAt ?? 0)) + .map(({ eventId, userId, ...item }) => item) + } catch (e) { + console.warn('Dexie media load failed:', e) + } } // Ghost event for live preview while creating/editing const ghostEmotion = ref(0) const ghostCustomColor = ref(null) - const ghostGradientPreset = ref(null) const ghostTitle = ref('') const ghostDate = ref(new Date().toISOString().slice(0, 10)) + const ghostLocation = ref('') const ghostNote = ref('') const ghostImage = ref(null) + const ghostKeyImageTitle = ref('') + const ghostMedia = ref([]) const ghostEvent = computed(() => ({ id: '__ghost__', title: ghostTitle.value || 'New Event', date: ghostDate.value, + location: ghostLocation.value, emotion: ghostEmotion.value, customColor: ghostCustomColor.value, - gradientPreset: ghostGradientPreset.value, image: ghostImage.value, + keyImageTitle: ghostKeyImageTitle.value, + media: ghostMedia.value, note: ghostNote.value })) @@ -240,28 +469,52 @@ export const useEventsStore = defineStore('events', () => { selectedEventId.value = id } + function createEvent() { + const now = Date.now() + const newEvent = { + id: crypto.randomUUID(), + userId: authStore.currentUserId, + title: 'Neues Event', + date: todayLocalDate(), + location: '', + emotion: 0, + customColor: null, + gradientPreset: null, + image: null, + keyImageTitle: '', + media: [], + note: '', + syncStatus: 'local', + createdAt: now, + updatedAt: now + } + + events.value.push(newEvent) + dbPut(newEvent) + if (isRemoteUser.value) { + createRemoteEvent(newEvent) + } + return newEvent + } + function openPanel(eventId = null) { - if (eventId) { - editingEventId.value = eventId - const event = events.value.find((e) => e.id === eventId) + const panelEventId = eventId || createEvent().id + + if (panelEventId) { + editingEventId.value = panelEventId + const event = events.value.find((e) => e.id === panelEventId) if (event) { + skipNextPersist = true ghostTitle.value = event.title ghostDate.value = event.date + ghostLocation.value = event.location || '' ghostEmotion.value = event.emotion ghostCustomColor.value = event.customColor - ghostGradientPreset.value = event.gradientPreset ?? null - ghostImage.value = event.image || null + ghostImage.value = event.keyImagePreviewUrl || event.image || null + ghostKeyImageTitle.value = event.keyImageTitle || '' + loadEventMedia(event) ghostNote.value = event.note } - } else { - editingEventId.value = null - ghostTitle.value = '' - ghostDate.value = new Date().toISOString().slice(0, 10) - ghostEmotion.value = 0 - ghostCustomColor.value = null - ghostGradientPreset.value = null - ghostImage.value = null - ghostNote.value = '' } panelOpen.value = true } @@ -275,62 +528,198 @@ export const useEventsStore = defineStore('events', () => { ...events.value[idx], title: ghostTitle.value, date: ghostDate.value, + location: ghostLocation.value, emotion: ghostEmotion.value, customColor: ghostCustomColor.value, - gradientPreset: ghostGradientPreset.value, + gradientPreset: null, image: ghostImage.value, + keyImageTitle: ghostKeyImageTitle.value, + media: mediaMeta(ghostMedia.value), note: ghostNote.value, syncStatus: 'modified', + userId: events.value[idx].userId ?? authStore.currentUserId, updatedAt: Date.now() } events.value[idx] = updated dbPut(updated) + persistEventMedia(updated.id, updated.userId, ghostMedia.value) + if (isRemoteUser.value) { + updateRemoteEvent(updated) + } + } + + function schedulePersistToEvent() { + if (!editingEventId.value) return + if (persistTimer) clearTimeout(persistTimer) + persistTimer = setTimeout(() => { + persistTimer = null + persistToEvent() + }, AUTOSAVE_DELAY_MS) + } + + function flushPersistToEvent() { + if (!persistTimer) return + clearTimeout(persistTimer) + persistTimer = null + persistToEvent() + } + + function saveGhostNow() { + if (persistTimer) { + clearTimeout(persistTimer) + persistTimer = null + } + persistToEvent() } watch( - [ghostTitle, ghostDate, ghostEmotion, ghostCustomColor, ghostGradientPreset, ghostImage, ghostNote], - () => { persistToEvent() } + [ghostTitle, ghostDate, ghostLocation, ghostEmotion, ghostCustomColor, ghostImage, ghostKeyImageTitle, ghostMedia, ghostNote], + () => { + if (skipNextPersist) { + skipNextPersist = false + return + } + schedulePersistToEvent() + } ) function closePanel() { - if (!editingEventId.value && ghostTitle.value.trim()) { - const newEvent = { - id: crypto.randomUUID(), - title: ghostTitle.value, - date: ghostDate.value, - emotion: ghostEmotion.value, - customColor: ghostCustomColor.value, - gradientPreset: ghostGradientPreset.value, - image: ghostImage.value, - note: ghostNote.value, - syncStatus: 'local', - createdAt: Date.now(), - updatedAt: Date.now() - } - events.value.push(newEvent) - dbPut(newEvent) - dbQueueSync(newEvent.id, 'create', { ...newEvent }) - } + flushPersistToEvent() + panelOpen.value = false editingEventId.value = null selectedEventId.value = null } function deleteEvent(id) { + if (editingEventId.value === id) { + if (persistTimer) clearTimeout(persistTimer) + persistTimer = null + } events.value = events.value.filter((e) => e.id !== id) dbDelete(id) - dbQueueSync(id, 'delete', null) + if (isRemoteUser.value) { + deleteRemoteEvent(id) + } closePanel() } + async function uploadGhostKeyImage(file) { + if (!isRemoteUser.value) return null + + const media = await uploadRemoteMedia(file, 'key_image') + if (!media) return null + + ghostImage.value = media.originalUrl + if (!ghostKeyImageTitle.value) { + ghostKeyImageTitle.value = 'Key Image' + } + + const idx = events.value.findIndex((event) => event.id === editingEventId.value) + if (idx !== -1) { + const nextMedia = [ + ...(events.value[idx].media || []).filter(item => item.collection !== 'key_image'), + media + ] + events.value[idx] = { + ...events.value[idx], + image: media.thumbnailUrl, + keyImagePreviewUrl: media.previewUrl, + keyImageOriginalUrl: media.originalUrl, + media: nextMedia, + updatedAt: Date.now() + } + dbPut(events.value[idx]) + } + + return media + } + + async function uploadGhostMedia(files) { + if (!isRemoteUser.value) return [] + + const uploaded = [] + for (const file of files) { + const media = await uploadRemoteMedia(file, 'gallery') + if (media) uploaded.push(media) + } + + if (uploaded.length > 0) { + ghostMedia.value = [...ghostMedia.value, ...uploaded] + const idx = events.value.findIndex((event) => event.id === editingEventId.value) + if (idx !== -1) { + events.value[idx] = { + ...events.value[idx], + media: [...(events.value[idx].media || []), ...uploaded], + updatedAt: Date.now() + } + dbPut(events.value[idx]) + } + } + + return uploaded + } + + async function deleteGhostMedia(mediaId) { + await deleteRemoteMedia(mediaId) + + const idx = events.value.findIndex((event) => event.id === editingEventId.value) + if (idx !== -1) { + events.value[idx] = { + ...events.value[idx], + media: (events.value[idx].media || []).filter(item => item.id !== mediaId), + updatedAt: Date.now() + } + dbPut(events.value[idx]) + } + } + + async function deleteGhostKeyImage() { + const idx = events.value.findIndex((event) => event.id === editingEventId.value) + const keyImage = idx !== -1 + ? (events.value[idx].media || []).find(item => item.collection === 'key_image') + : null + + if (keyImage?.id) { + await deleteRemoteMedia(keyImage.id) + } + + if (idx !== -1) { + events.value[idx] = { + ...events.value[idx], + image: null, + keyImagePreviewUrl: null, + keyImageOriginalUrl: null, + media: (events.value[idx].media || []).filter(item => item.collection !== 'key_image'), + updatedAt: Date.now() + } + dbPut(events.value[idx]) + } + } + function getGlowColor(event) { if (event.customColor) return event.customColor - return emotionToColor(event.emotion, event.gradientPreset ?? null) + return emotionToColor( + event.emotion, + settingsStore.emotionGradientStart || DEFAULT_EMOTION_GRADIENT_START, + settingsStore.emotionGradientEnd || DEFAULT_EMOTION_GRADIENT_END + ) } // Auto-init on store creation init() + watch(() => authStore.currentUserId, () => { + panelOpen.value = false + editingEventId.value = null + selectedEventId.value = null + if (persistTimer) { + clearTimeout(persistTimer) + persistTimer = null + } + init() + }) + return { events, isLoaded, @@ -339,17 +728,25 @@ export const useEventsStore = defineStore('events', () => { editingEventId, ghostEmotion, ghostCustomColor, - ghostGradientPreset, ghostTitle, ghostDate, + ghostLocation, ghostNote, ghostImage, + ghostKeyImageTitle, + ghostMedia, ghostEvent, sortedEvents, selectEvent, openPanel, + createEvent, closePanel, deleteEvent, + uploadGhostKeyImage, + uploadGhostMedia, + deleteGhostMedia, + deleteGhostKeyImage, + saveGhostNow, getGlowColor } }) diff --git a/frontend/src/stores/settings.js b/frontend/src/stores/settings.js index bea0137..f219222 100644 --- a/frontend/src/stores/settings.js +++ b/frontend/src/stores/settings.js @@ -1,15 +1,34 @@ import { defineStore } from 'pinia' import { ref, watch } from 'vue' +import { apiJson } from 'src/services/apiClient' +import { useAuthStore } from 'stores/auth' -const STORAGE_KEY = 'thatsme-settings' +const STORAGE_KEY_PREFIX = 'thatsme-settings' +const PERSIST_DELAY_MS = 250 +export const DEFAULT_EMOTION_GRADIENT_START = '#2d2e83' +export const DEFAULT_EMOTION_GRADIENT_END = '#3aaa35' +export const DEFAULT_TIMELINE_ZOOM = 1 +export const DEFAULT_TIMELINE_SCROLL_LEFT = null export const ACCENT_COLORS = [ - { label: 'Standard', value: 'default', hex: '#9e9e9e' }, - { label: 'Blau', value: 'blue', hex: '#2196F3' }, - { label: 'Grün', value: 'green', hex: '#4CAF50' }, - { label: 'Gelb', value: 'yellow', hex: '#FFC107' }, - { label: 'Rosa', value: 'pink', hex: '#E91E63' }, - { label: 'Orange', value: 'orange', hex: '#FF9800' } + { label: 'Base', value: 'base', hex: '#737373' }, + { label: 'Red', value: 'red', hex: '#ef4444' }, + { label: 'Orange', value: 'orange', hex: '#f97316' }, + { label: 'Amber', value: 'amber', hex: '#f59e0b' }, + { label: 'Yellow', value: 'yellow', hex: '#eab308' }, + { label: 'Lime', value: 'lime', hex: '#84cc16' }, + { label: 'Green', value: 'green', hex: '#22c55e' }, + { label: 'Emerald', value: 'emerald', hex: '#10b981' }, + { label: 'Teal', value: 'teal', hex: '#14b8a6' }, + { label: 'Cyan', value: 'cyan', hex: '#06b6d4' }, + { label: 'Sky', value: 'sky', hex: '#0ea5e9' }, + { label: 'Blue', value: 'blue', hex: '#3b82f6' }, + { label: 'Indigo', value: 'indigo', hex: '#6366f1' }, + { label: 'Violet', value: 'violet', hex: '#8b5cf6' }, + { label: 'Purple', value: 'purple', hex: '#a855f7' }, + { label: 'Fuchsia', value: 'fuchsia', hex: '#d946ef' }, + { label: 'Pink', value: 'pink', hex: '#ec4899' }, + { label: 'Rose', value: 'rose', hex: '#f43f5e' } ] export const LANGUAGES = [ @@ -24,6 +43,7 @@ const FLOATING_LINES_DEFAULTS = { spread: 0.05, fanSpread: 0.05, lineSharpness: 8.0, + lineThickness: 1.0, waveFrequency: 7.0, bezierCurvature: 0.2, circleRadius: 75, @@ -35,51 +55,213 @@ const FLOATING_LINES_DEFAULTS = { bgEdge: '#000000', gradientStops: '#e947f5\n#2f4ba2\n#0a0a12', backgroundImage: '', + // Horizont + horizonMode: 'off', // 'off' | 'fog' | 'split' | 'glow' + horizonOpacity: 0.5, // Nebel + Glow: Helligkeit + horizonBlend: 0.2, // Trennung: 0=scharf 1=weich // Labels - labelSize: 'small', // 'small' | 'medium' | 'large' - labelColor: '#ffffff' + labelSize: 'small', // 'small' | 'medium' | 'large' | 'xlarge' + labelColor: '#ffffff', + labelOpacity: 0.75, + labelConnectorLength: 0.2, + // Dot-Rahmen + dotBorderWidth: 0, // 0 = kein Rahmen, in px + dotBorderColor: '#ffffff', + // Modus + lineMode: 'glow', // 'glow' | 'static' + staticLineColor: '#2196F3', // Linienfarbe im Static-Modus + staticLineShadowStrength: 0 // 0 = klar, 1 = ursprünglicher Schatten } -function loadFromStorage() { +function getStorageKey(userId) { + return `${STORAGE_KEY_PREFIX}:${userId || 'guest'}` +} + +function loadFromStorage(userId) { try { - const stored = localStorage.getItem(STORAGE_KEY) + const stored = localStorage.getItem(getStorageKey(userId)) return stored ? JSON.parse(stored) : null } catch { return null } } +function clone(value) { + return JSON.parse(JSON.stringify(value)) +} + +function normalizeAccentColor(value) { + if (value === 'default') return 'base' + return ACCENT_COLORS.some(c => c.value === value) ? value : 'base' +} + +function hexToRgb(hex) { + const clean = hex.replace('#', '') + const full = clean.length === 3 + ? clean.split('').map(ch => ch + ch).join('') + : clean + const r = parseInt(full.slice(0, 2), 16) + const g = parseInt(full.slice(2, 4), 16) + const b = parseInt(full.slice(4, 6), 16) + return { r, g, b } +} + +function applyAccentCssVariables(value) { + if (typeof document === 'undefined') return + const key = normalizeAccentColor(value) + const accent = ACCENT_COLORS.find(c => c.value === key) ?? ACCENT_COLORS[0] + const { r, g, b } = hexToRgb(accent.hex) + document.documentElement.style.setProperty('--tm-accent', accent.hex) + document.documentElement.style.setProperty('--tm-accent-rgb', `${r}, ${g}, ${b}`) + // Keep Quasar semantic color channels in sync with the active accent. + document.documentElement.style.setProperty('--q-primary', accent.hex) + document.documentElement.style.setProperty('--q-secondary', accent.hex) + document.documentElement.style.setProperty('--q-accent', accent.hex) +} + export { FLOATING_LINES_DEFAULTS } export const useSettingsStore = defineStore('settings', () => { - const stored = loadFromStorage() + const authStore = useAuthStore() + const stored = loadFromStorage(authStore.currentUserId) + const initialActivePreset = stored?.presets?.find(preset => preset.id === stored?.activePresetId) + const initialSettings = initialActivePreset?.settings ?? stored + let persistTimer = null + let isApplyingSettings = false - const theme = ref(stored?.theme ?? 'light') - const floatingLines = ref(stored?.floatingLines ?? { ...FLOATING_LINES_DEFAULTS }) + const theme = ref(initialSettings?.theme ?? 'light') + const floatingLines = ref({ + ...FLOATING_LINES_DEFAULTS, + ...(initialSettings?.floatingLines ?? {}) + }) // App preferences - const appearance = ref(stored?.appearance ?? 'system') // 'system' | 'light' | 'dark' - const accentColor = ref(stored?.accentColor ?? 'default') - const language = ref(stored?.language ?? 'de') + const appearance = ref(initialSettings?.appearance ?? 'system') // 'system' | 'light' | 'dark' + const accentColor = ref(normalizeAccentColor(initialSettings?.accentColor ?? 'base')) + const language = ref(initialSettings?.language ?? 'de') + const emotionGradientStart = ref(initialSettings?.emotionGradientStart ?? DEFAULT_EMOTION_GRADIENT_START) + const emotionGradientEnd = ref(initialSettings?.emotionGradientEnd ?? DEFAULT_EMOTION_GRADIENT_END) + const timelineZoom = ref(initialSettings?.timelineZoom ?? DEFAULT_TIMELINE_ZOOM) + const timelineScrollLeft = ref(stored?.timelineScrollLeft ?? DEFAULT_TIMELINE_SCROLL_LEFT) + const presets = ref(stored?.presets ?? []) + const activePresetId = ref(stored?.activePresetId ?? null) // Developer / debug - const showFps = ref(stored?.showFps ?? false) + const showFps = ref(initialSettings?.showFps ?? false) - function persist() { - localStorage.setItem( - STORAGE_KEY, - JSON.stringify({ - theme: theme.value, - floatingLines: floatingLines.value, - appearance: appearance.value, - accentColor: accentColor.value, - language: language.value, - showFps: showFps.value - }) - ) + function createSnapshot() { + return { + theme: theme.value, + floatingLines: clone(floatingLines.value), + appearance: appearance.value, + accentColor: accentColor.value, + language: language.value, + emotionGradientStart: emotionGradientStart.value, + emotionGradientEnd: emotionGradientEnd.value, + timelineZoom: timelineZoom.value, + showFps: showFps.value + } } - watch([theme, floatingLines, appearance, accentColor, language, showFps], persist, { deep: true }) + function createStoredSettings() { + return { + ...createSnapshot(), + timelineScrollLeft: timelineScrollLeft.value, + presets: presets.value, + activePresetId: activePresetId.value + } + } + + function isRemoteUser() { + return authStore.currentUser?.mode === 'remote' + } + + function applySnapshot(snapshot) { + theme.value = snapshot?.theme ?? 'light' + floatingLines.value = { + ...FLOATING_LINES_DEFAULTS, + ...(snapshot?.floatingLines ?? {}) + } + appearance.value = snapshot?.appearance ?? 'system' + accentColor.value = normalizeAccentColor(snapshot?.accentColor ?? 'base') + language.value = snapshot?.language ?? 'de' + emotionGradientStart.value = snapshot?.emotionGradientStart ?? DEFAULT_EMOTION_GRADIENT_START + emotionGradientEnd.value = snapshot?.emotionGradientEnd ?? DEFAULT_EMOTION_GRADIENT_END + timelineZoom.value = snapshot?.timelineZoom ?? DEFAULT_TIMELINE_ZOOM + showFps.value = snapshot?.showFps ?? false + } + + function persist() { + if (persistTimer) { + clearTimeout(persistTimer) + persistTimer = null + } + + if (!authStore.currentUserId || isApplyingSettings) return + + const storedSettings = createStoredSettings() + + localStorage.setItem(getStorageKey(authStore.currentUserId), JSON.stringify(storedSettings)) + + if (isRemoteUser()) { + apiJson('/settings', { + method: 'PUT', + body: { settings: storedSettings } + }).catch(error => console.warn('Remote settings persist failed:', error)) + } + } + + function schedulePersist() { + if (isApplyingSettings) return + if (persistTimer) clearTimeout(persistTimer) + persistTimer = setTimeout(persist, PERSIST_DELAY_MS) + } + + async function loadRemoteSettings() { + const payload = await apiJson('/settings') + return payload.data ?? null + } + + async function applyStoredSettingsForUser(userId) { + if (persistTimer) { + clearTimeout(persistTimer) + persistTimer = null + } + + isApplyingSettings = true + + let nextStored = loadFromStorage(userId) + if (userId && isRemoteUser()) { + try { + nextStored = await loadRemoteSettings() + if (nextStored) { + localStorage.setItem(getStorageKey(userId), JSON.stringify(nextStored)) + } + } catch (error) { + console.warn('Remote settings load failed:', error) + } + } + + presets.value = nextStored?.presets ?? [] + activePresetId.value = nextStored?.activePresetId ?? null + + const activePreset = presets.value.find(preset => preset.id === activePresetId.value) + applySnapshot(activePreset?.settings ?? nextStored) + timelineScrollLeft.value = nextStored?.timelineScrollLeft ?? DEFAULT_TIMELINE_SCROLL_LEFT + + isApplyingSettings = false + } + + watch([theme, floatingLines, appearance, accentColor, language, emotionGradientStart, emotionGradientEnd, timelineZoom, timelineScrollLeft, showFps, presets, activePresetId], schedulePersist, { deep: true }) + watch(() => authStore.currentUserId, applyStoredSettingsForUser) + watch(accentColor, (value) => { + const normalized = normalizeAccentColor(value) + if (accentColor.value !== normalized) { + accentColor.value = normalized + return + } + applyAccentCssVariables(normalized) + }, { immediate: true }) function toggleTheme() { theme.value = theme.value === 'light' ? 'dark' : 'light' @@ -89,19 +271,106 @@ export const useSettingsStore = defineStore('settings', () => { floatingLines.value = { ...floatingLines.value, ...updates } } + async function uploadBackgroundImage(file) { + if (!isRemoteUser()) return null + + const formData = new FormData() + formData.append('file', file) + + const payload = await apiJson('/settings/media/background', { + method: 'POST', + body: formData + }) + const url = payload?.data?.url + + if (url) { + updateFloatingLines({ backgroundImage: url }) + } + + return payload?.data ?? null + } + + async function clearBackgroundImage() { + updateFloatingLines({ backgroundImage: '' }) + + if (!isRemoteUser()) return + + try { + await apiJson('/settings/media/background', { method: 'DELETE' }) + } catch (error) { + console.warn('Remote settings background delete failed:', error) + } + } + function resetFloatingLines() { floatingLines.value = { ...FLOATING_LINES_DEFAULTS } } + function resetEmotionGradient() { + emotionGradientStart.value = DEFAULT_EMOTION_GRADIENT_START + emotionGradientEnd.value = DEFAULT_EMOTION_GRADIENT_END + } + + function saveTimelineScrollLeft(value, immediate = false) { + timelineScrollLeft.value = Number.isFinite(value) ? value : DEFAULT_TIMELINE_SCROLL_LEFT + if (immediate) { + persist() + } + } + + function savePreset(name) { + const trimmedName = String(name || '').trim() + if (!trimmedName) return null + + const existing = presets.value.find(preset => preset.name.toLowerCase() === trimmedName.toLowerCase()) + const savedPreset = { + id: existing?.id ?? crypto.randomUUID(), + name: trimmedName, + settings: createSnapshot(), + updatedAt: Date.now() + } + + presets.value = existing + ? presets.value.map(preset => preset.id === existing.id ? savedPreset : preset) + : [...presets.value, savedPreset] + activePresetId.value = savedPreset.id + persist() + return savedPreset + } + + function applyPreset(presetId) { + const preset = presets.value.find(candidate => candidate.id === presetId) + if (!preset) return false + + activePresetId.value = preset.id + applySnapshot(preset.settings) + persist() + return true + } + + applyStoredSettingsForUser(authStore.currentUserId) + return { theme, floatingLines, appearance, accentColor, language, + emotionGradientStart, + emotionGradientEnd, + timelineZoom, + timelineScrollLeft, + presets, + activePresetId, showFps, toggleTheme, updateFloatingLines, - resetFloatingLines + resetFloatingLines, + resetEmotionGradient, + saveTimelineScrollLeft, + uploadBackgroundImage, + clearBackgroundImage, + savePreset, + applyPreset } }) diff --git a/workspace.code-workspace b/workspace.code-workspace new file mode 100644 index 0000000..114863a --- /dev/null +++ b/workspace.code-workspace @@ -0,0 +1,30 @@ +{ + "folders": [ + { + "path": "." + } + ], + "settings": { + "workbench.colorCustomizations": { + "activityBar.activeBackground": "#2c58b1", + "activityBar.background": "#2c58b1", + "activityBar.foreground": "#e7e7e7", + "activityBar.inactiveForeground": "#e7e7e799", + "activityBarBadge.background": "#4d1326", + "activityBarBadge.foreground": "#e7e7e7", + "commandCenter.border": "#e7e7e799", + "sash.hoverBorder": "#2c58b1", + "statusBar.background": "#224488", + "statusBar.foreground": "#e7e7e7", + "statusBarItem.hoverBackground": "#2c58b1", + "statusBarItem.remoteBackground": "#224488", + "statusBarItem.remoteForeground": "#e7e7e7", + "titleBar.activeBackground": "#224488", + "titleBar.activeForeground": "#e7e7e7", + "titleBar.inactiveBackground": "#22448899", + "titleBar.inactiveForeground": "#e7e7e799" + }, + "peacock.color": "#224488", //not sure if this is relevant; I have an extension called Peacock + "editor.formatOnSave": true + } +} \ No newline at end of file