From 13e3b695592f186aa10a478901b3a7de60daabee Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Mon, 3 Nov 2025 19:07:51 -0300 Subject: [PATCH 01/39] feat: add Firebase Cloud Messaging configuration and setup --- PLAN_FCM.md | 108 ++++++++++++++++++++++++++++++++++++++ android/app/build.gradle | 3 ++ android/settings.gradle | 3 ++ firebase.json | 1 + lib/firebase_options.dart | 86 ++++++++++++++++++++++++++++++ pubspec.lock | 56 ++++++++++++++++++++ pubspec.yaml | 4 ++ 7 files changed, 261 insertions(+) create mode 100644 PLAN_FCM.md create mode 100644 firebase.json create mode 100644 lib/firebase_options.dart diff --git a/PLAN_FCM.md b/PLAN_FCM.md new file mode 100644 index 00000000..201262f0 --- /dev/null +++ b/PLAN_FCM.md @@ -0,0 +1,108 @@ +Plan de Implementación: Firebase Cloud Messaging (FCM) +Objetivo +Implementar notificaciones push cuando la app está completamente cerrada usando Firebase Cloud Messaging, manteniendo la privacidad y seguridad del sistema actual. +Arquitectura Propuesta +1. Modelo de Seguridad +FCM Payload: Solo event_id + recipient_pubkey (datos públicos) +Decryption: Siempre en el dispositivo usando trade keys +Privacy: Nunca enviar contenido sensible vía FCM +2. Flujo de Notificaciones +Mostro publica evento → Backend detecta → Envía FCM minimal payload → +Dispositivo recibe → Carga sesión desde Sembast → Fetch evento desde relay → +Decrypta con trade key → Muestra notificación local +Fases de Implementación +Fase 1: Configuración Firebase (Requiere acceso a Firebase Console) +Crear proyecto Firebase (o usar existente) +Agregar app Android (network.mostro.app) +Agregar app iOS (bundle ID desde Xcode) +Descargar configuraciones: +google-services.json → /android/app/ +GoogleService-Info.plist → /ios/Runner/ +Configurar APNs para iOS (certificado/key) +Fase 2: Dependencias y Configuración Flutter +Agregar a pubspec.yaml: +firebase_core: ^3.8.0 +firebase_messaging: ^15.1.4 +Actualizar /android/build.gradle (agregar google-services plugin) +Actualizar /android/app/build.gradle (aplicar plugin, agregar dependencies) +Actualizar /ios/Podfile si es necesario +Fase 3: Servicio FCM +Crear /lib/services/fcm_service.dart: +Inicializar Firebase +Solicitar permisos de notificación +Obtener y almacenar FCM token +Manejar refresh de token +Handler para foreground messages +Crear top-level function firebaseMessagingBackgroundHandler en main.dart: +Cargar Sembast database +Buscar sesión por recipient_pubkey +Fetch evento desde relay usando event_id +Decryptar con trade key de sesión +Mostrar notificación local usando BackgroundNotificationService +Fase 4: Integración con App +Modificar main.dart: +Inicializar Firebase antes de runApp +Registrar background handler +Inicializar FCM service +Modificar appInitializerProvider: +Agregar inicialización de FCM +Solicitar permisos de notificación +Obtener token inicial +Modificar BackgroundNotificationService: +Agregar deduplicación con EventStorage +Mejorar navigation payload para tap actions +Unificar handlers (background service vs FCM) +Fase 5: Token Management +Crear storage para FCM token en SharedPreferences +Implementar listener de token refresh +Enviar token a backend Mostro (si hay endpoint disponible) +Manejar casos de token inválido/expirado +Fase 6: Testing y Validación +Test con Firebase Console (envío manual) +Test app terminada (killed) +Test app en background +Test app en foreground +Test tap en notificación +Test múltiples sesiones activas +Verificar no duplicación de notificaciones +Archivos a Crear/Modificar +Crear: +/lib/services/fcm_service.dart - Servicio principal FCM +/android/app/google-services.json - Config Firebase Android +/ios/Runner/GoogleService-Info.plist - Config Firebase iOS +Modificar: +pubspec.yaml - Agregar dependencias Firebase +/android/build.gradle - Plugin google-services +/android/app/build.gradle - Aplicar plugin, dependencies +lib/main.dart - Inicializar Firebase, background handler +lib/shared/providers/app_init_provider.dart - Init FCM +lib/features/notifications/services/background_notification_service.dart - Mejorar handlers +Consideraciones Importantes +Backend/Server Required +⚠️ CRÍTICO: Necesitas un backend que: +Escuche eventos Mostro en relays +Detecte eventos tipo 1059 (gift-wrapped) +Envíe payload FCM minimal a dispositivos registrados +Mapee recipient_pubkey → FCM tokens +Eventos Prioritarios para Notificaciones +Alta prioridad: buyerTookOrder, payInvoice, addInvoice, canceled, disputeInitiatedByPeer Media prioridad: holdInvoicePaymentAccepted, fiatSentOk, released, purchaseCompleted +Deduplicación +Usar EventStorage existente para evitar duplicados +Coordinar con background service actual +FCM solo para app terminada, background service para backgrounded +Privacy & Security +✅ Solo datos públicos en FCM payload +✅ Decryption siempre local +✅ Trade keys nunca salen del dispositivo +❌ Nunca incluir amounts, nombres, direcciones en FCM +Preguntas Clave +Antes de implementar, necesito saber: +¿Tienes acceso a Firebase Console para crear el proyecto? +¿Existe un backend/server que pueda enviar mensajes FCM? Si no existe, habría que implementarlo +¿El backend Mostro está bajo tu control o es de terceros? +¿Prefieres que el token FCM se envíe a un backend tuyo o directamente al Mostro instance? +¿Quieres implementar Firebase Analytics/Crashlytics también, o solo FCM? +Estimación +Con backend existente: 2-3 días de desarrollo + 1 día testing +Sin backend: +3-5 días para backend FCM relay listener +Complejidad: Media-Alta (manejo de isolates, crypto en background) \ No newline at end of file diff --git a/android/app/build.gradle b/android/app/build.gradle index 47bd7711..2fb64243 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -1,5 +1,8 @@ plugins { id "com.android.application" + // START: FlutterFire Configuration + id 'com.google.gms.google-services' + // END: FlutterFire Configuration id "kotlin-android" // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. id "dev.flutter.flutter-gradle-plugin" diff --git a/android/settings.gradle b/android/settings.gradle index 4f520718..db468a47 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -19,6 +19,9 @@ pluginManagement { plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" id "com.android.application" version "8.6.0" apply false + // START: FlutterFire Configuration + id "com.google.gms.google-services" version "4.3.15" apply false + // END: FlutterFire Configuration id "org.jetbrains.kotlin.android" version "2.1.0" apply false } diff --git a/firebase.json b/firebase.json new file mode 100644 index 00000000..be51859d --- /dev/null +++ b/firebase.json @@ -0,0 +1 @@ +{"flutter":{"platforms":{"android":{"default":{"projectId":"mostro-test","appId":"1:679654468306:android:eed448d8b546663cbedb0b","fileOutput":"android/app/google-services.json"}},"dart":{"lib/firebase_options.dart":{"projectId":"mostro-test","configurations":{"android":"1:679654468306:android:eed448d8b546663cbedb0b","ios":"1:679654468306:ios:0b960156ed20d3a4bedb0b","macos":"1:679654468306:ios:0b960156ed20d3a4bedb0b","web":"1:679654468306:web:a0f06c20617b2431bedb0b","windows":"1:679654468306:web:a85640bd3da48baebedb0b"}}}}}} \ No newline at end of file diff --git a/lib/firebase_options.dart b/lib/firebase_options.dart new file mode 100644 index 00000000..a1ac69f8 --- /dev/null +++ b/lib/firebase_options.dart @@ -0,0 +1,86 @@ +// File generated by FlutterFire CLI. +// ignore_for_file: type=lint +import 'package:firebase_core/firebase_core.dart' show FirebaseOptions; +import 'package:flutter/foundation.dart' + show defaultTargetPlatform, kIsWeb, TargetPlatform; + +/// Default [FirebaseOptions] for use with your Firebase apps. +/// +/// Example: +/// ```dart +/// import 'firebase_options.dart'; +/// // ... +/// await Firebase.initializeApp( +/// options: DefaultFirebaseOptions.currentPlatform, +/// ); +/// ``` +class DefaultFirebaseOptions { + static FirebaseOptions get currentPlatform { + if (kIsWeb) { + return web; + } + switch (defaultTargetPlatform) { + case TargetPlatform.android: + return android; + case TargetPlatform.iOS: + return ios; + case TargetPlatform.macOS: + return macos; + case TargetPlatform.windows: + return windows; + case TargetPlatform.linux: + throw UnsupportedError( + 'DefaultFirebaseOptions have not been configured for linux - ' + 'you can reconfigure this by running the FlutterFire CLI again.', + ); + default: + throw UnsupportedError( + 'DefaultFirebaseOptions are not supported for this platform.', + ); + } + } + + static const FirebaseOptions web = FirebaseOptions( + apiKey: 'AIzaSyAwEwc8Ue9bKqeQvJuOil51YGvSCznNKEw', + appId: '1:679654468306:web:a0f06c20617b2431bedb0b', + messagingSenderId: '679654468306', + projectId: 'mostro-test', + authDomain: 'mostro-test.firebaseapp.com', + storageBucket: 'mostro-test.firebasestorage.app', + ); + + static const FirebaseOptions android = FirebaseOptions( + apiKey: 'AIzaSyBAwF5XEuNOC-TQqhLrFJQhNVzbFYSc1sI', + appId: '1:679654468306:android:eed448d8b546663cbedb0b', + messagingSenderId: '679654468306', + projectId: 'mostro-test', + storageBucket: 'mostro-test.firebasestorage.app', + ); + + static const FirebaseOptions ios = FirebaseOptions( + apiKey: 'AIzaSyC8p_RvNfHNKwc-InupojUkOco3t36A4Pw', + appId: '1:679654468306:ios:0b960156ed20d3a4bedb0b', + messagingSenderId: '679654468306', + projectId: 'mostro-test', + storageBucket: 'mostro-test.firebasestorage.app', + iosBundleId: 'network.mostro.app', + ); + + static const FirebaseOptions macos = FirebaseOptions( + apiKey: 'AIzaSyC8p_RvNfHNKwc-InupojUkOco3t36A4Pw', + appId: '1:679654468306:ios:0b960156ed20d3a4bedb0b', + messagingSenderId: '679654468306', + projectId: 'mostro-test', + storageBucket: 'mostro-test.firebasestorage.app', + iosBundleId: 'network.mostro.app', + ); + + static const FirebaseOptions windows = FirebaseOptions( + apiKey: 'AIzaSyAwEwc8Ue9bKqeQvJuOil51YGvSCznNKEw', + appId: '1:679654468306:web:a85640bd3da48baebedb0b', + messagingSenderId: '679654468306', + projectId: 'mostro-test', + authDomain: 'mostro-test.firebaseapp.com', + storageBucket: 'mostro-test.firebasestorage.app', + ); +} diff --git a/pubspec.lock b/pubspec.lock index 19853249..0c52a8b1 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -9,6 +9,14 @@ packages: url: "https://pub.dev" source: hosted version: "85.0.0" + _flutterfire_internals: + dependency: transitive + description: + name: _flutterfire_internals + sha256: ff0a84a2734d9e1089f8aedd5c0af0061b82fb94e95260d943404e0ef2134b11 + url: "https://pub.dev" + source: hosted + version: "1.3.59" analyzer: dependency: transitive description: @@ -417,6 +425,54 @@ packages: url: "https://pub.dev" source: hosted version: "7.0.1" + firebase_core: + dependency: "direct main" + description: + name: firebase_core + sha256: "7be63a3f841fc9663342f7f3a011a42aef6a61066943c90b1c434d79d5c995c5" + url: "https://pub.dev" + source: hosted + version: "3.15.2" + firebase_core_platform_interface: + dependency: transitive + description: + name: firebase_core_platform_interface + sha256: cccb4f572325dc14904c02fcc7db6323ad62ba02536833dddb5c02cac7341c64 + url: "https://pub.dev" + source: hosted + version: "6.0.2" + firebase_core_web: + dependency: transitive + description: + name: firebase_core_web + sha256: "0ed0dc292e8f9ac50992e2394e9d336a0275b6ae400d64163fdf0a8a8b556c37" + url: "https://pub.dev" + source: hosted + version: "2.24.1" + firebase_messaging: + dependency: "direct main" + description: + name: firebase_messaging + sha256: "60be38574f8b5658e2f22b7e311ff2064bea835c248424a383783464e8e02fcc" + url: "https://pub.dev" + source: hosted + version: "15.2.10" + firebase_messaging_platform_interface: + dependency: transitive + description: + name: firebase_messaging_platform_interface + sha256: "685e1771b3d1f9c8502771ccc9f91485b376ffe16d553533f335b9183ea99754" + url: "https://pub.dev" + source: hosted + version: "4.6.10" + firebase_messaging_web: + dependency: transitive + description: + name: firebase_messaging_web + sha256: "0d1be17bc89ed3ff5001789c92df678b2e963a51b6fa2bdb467532cc9dbed390" + url: "https://pub.dev" + source: hosted + version: "3.10.10" fixnum: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 74651a70..da133ac1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -84,6 +84,10 @@ dependencies: app_links: ^6.4.0 + # Firebase + firebase_core: ^3.8.0 + firebase_messaging: ^15.1.4 + dev_dependencies: flutter_test: From 152977de3c7b5af47dd1b8819e4a2240ba2d44cd Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Wed, 5 Nov 2025 12:17:54 -0300 Subject: [PATCH 02/39] feat: add Firebase Cloud Messaging service --- lib/services/fcm_service.dart | 177 ++++++++++++++++++++++++++++++++++ 1 file changed, 177 insertions(+) create mode 100644 lib/services/fcm_service.dart diff --git a/lib/services/fcm_service.dart b/lib/services/fcm_service.dart new file mode 100644 index 00000000..afd0e02d --- /dev/null +++ b/lib/services/fcm_service.dart @@ -0,0 +1,177 @@ +import 'package:firebase_messaging/firebase_messaging.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:logger/logger.dart'; +import 'package:shared_preferences/shared_preferences.dart'; + +/// Service for managing Firebase Cloud Messaging (FCM) functionality +/// +/// This service handles: +/// - FCM token generation and storage +/// - Token refresh handling +/// - Notification permissions +/// - Foreground message handling +class FCMService { + final Logger _logger = Logger(); + final FirebaseMessaging _messaging = FirebaseMessaging.instance; + + static const String _fcmTokenKey = 'fcm_token'; + + bool _isInitialized = false; + + /// Initializes the FCM service + /// + /// This should be called early in the app lifecycle, typically during app initialization + Future initialize() async { + if (_isInitialized) { + _logger.i('FCM service already initialized'); + return; + } + + try { + _logger.i('Initializing FCM service...'); + + // Request notification permissions + final permissionGranted = await _requestPermissions(); + if (!permissionGranted) { + _logger.w('Notification permissions not granted'); + return; + } + + // Get and store initial FCM token + await _getAndStoreToken(); + + // Set up token refresh listener + _setupTokenRefreshListener(); + + // Set up foreground message handler + _setupForegroundMessageHandler(); + + _isInitialized = true; + _logger.i('FCM service initialized successfully'); + } catch (e) { + _logger.e('Failed to initialize FCM service: $e'); + rethrow; + } + } + + /// Requests notification permissions from the user + Future _requestPermissions() async { + try { + _logger.i('Requesting notification permissions...'); + + final settings = await _messaging.requestPermission( + alert: true, + badge: true, + sound: true, + provisional: false, + ); + + final granted = settings.authorizationStatus == AuthorizationStatus.authorized; + + _logger.i('Notification permission status: ${settings.authorizationStatus}'); + + return granted; + } catch (e) { + _logger.e('Error requesting permissions: $e'); + return false; + } + } + + /// Gets the FCM token and stores it in SharedPreferences + Future _getAndStoreToken() async { + try { + final token = await _messaging.getToken(); + + if (token != null) { + _logger.i('FCM token obtained: ${token.substring(0, 20)}...'); + await _saveToken(token); + } else { + _logger.w('FCM token is null'); + } + } catch (e) { + _logger.e('Error getting FCM token: $e'); + } + } + + /// Saves the FCM token to SharedPreferences + Future _saveToken(String token) async { + try { + final prefs = await SharedPreferences.getInstance(); + await prefs.setString(_fcmTokenKey, token); + _logger.i('FCM token saved to SharedPreferences'); + } catch (e) { + _logger.e('Error saving FCM token: $e'); + } + } + + /// Sets up a listener for FCM token refresh + void _setupTokenRefreshListener() { + _messaging.onTokenRefresh.listen( + (newToken) { + _logger.i('FCM token refreshed: ${newToken.substring(0, 20)}...'); + _saveToken(newToken); + // TODO: Send new token to backend when available + }, + onError: (error) { + _logger.e('Error in token refresh listener: $error'); + }, + ); + } + + /// Sets up handler for foreground messages + void _setupForegroundMessageHandler() { + FirebaseMessaging.onMessage.listen( + (RemoteMessage message) { + _logger.i('Received foreground FCM message'); + _logger.d('Message data: ${message.data}'); + + // TODO: Process foreground messages + // For now, just log them + if (message.notification != null) { + _logger.i('Notification title: ${message.notification!.title}'); + _logger.i('Notification body: ${message.notification!.body}'); + } + }, + onError: (error) { + _logger.e('Error in foreground message handler: $error'); + }, + ); + } + + /// Gets the currently stored FCM token + Future getToken() async { + try { + final prefs = await SharedPreferences.getInstance(); + return prefs.getString(_fcmTokenKey); + } catch (e) { + _logger.e('Error getting stored FCM token: $e'); + return null; + } + } + + /// Deletes the stored FCM token + Future deleteToken() async { + try { + await _messaging.deleteToken(); + final prefs = await SharedPreferences.getInstance(); + await prefs.remove(_fcmTokenKey); + _logger.i('FCM token deleted'); + } catch (e) { + _logger.e('Error deleting FCM token: $e'); + } + } + + /// Cleans up resources + void dispose() { + _isInitialized = false; + } +} + +/// Provider for the FCM service +final fcmServiceProvider = Provider((ref) { + final service = FCMService(); + ref.onDispose(() { + service.dispose(); + }); + return service; +}); From a90123fad1a5c57b5a89bc50441b62799d310069 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Wed, 5 Nov 2025 12:20:38 -0300 Subject: [PATCH 03/39] feat: add Firebase initialization to app startup --- lib/main.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index 0c46fdcd..4ccb1c6c 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,3 +1,4 @@ +import 'package:firebase_core/firebase_core.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_secure_storage/flutter_secure_storage.dart'; @@ -8,6 +9,7 @@ import 'package:mostro_mobile/features/settings/settings_notifier.dart'; import 'package:mostro_mobile/features/settings/settings_provider.dart'; import 'package:mostro_mobile/background/background_service.dart'; import 'package:mostro_mobile/features/notifications/services/background_notification_service.dart'; +import 'package:mostro_mobile/firebase_options.dart'; import 'package:mostro_mobile/shared/providers/background_service_provider.dart'; import 'package:mostro_mobile/shared/providers/providers.dart'; import 'package:mostro_mobile/shared/utils/biometrics_helper.dart'; @@ -18,6 +20,11 @@ import 'package:timeago/timeago.dart' as timeago; Future main() async { WidgetsFlutterBinding.ensureInitialized(); + // Initialize Firebase + await Firebase.initializeApp( + options: DefaultFirebaseOptions.currentPlatform, + ); + await requestNotificationPermissionIfNeeded(); final biometricsHelper = BiometricsHelper(); From b8eca26ec3a21f42b7d892e0b69994d485f1a8a7 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Wed, 5 Nov 2025 12:23:31 -0300 Subject: [PATCH 04/39] feat: initialize FCM service for push notifications --- lib/shared/providers/app_init_provider.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/shared/providers/app_init_provider.dart b/lib/shared/providers/app_init_provider.dart index a07322a3..2e2945cd 100644 --- a/lib/shared/providers/app_init_provider.dart +++ b/lib/shared/providers/app_init_provider.dart @@ -5,6 +5,7 @@ import 'package:mostro_mobile/features/chat/providers/chat_room_providers.dart'; import 'package:mostro_mobile/features/order/providers/order_notifier_provider.dart'; import 'package:mostro_mobile/features/settings/settings.dart'; import 'package:mostro_mobile/features/settings/settings_provider.dart'; +import 'package:mostro_mobile/services/fcm_service.dart'; import 'package:mostro_mobile/shared/providers/background_service_provider.dart'; import 'package:mostro_mobile/shared/providers/nostr_service_provider.dart'; import 'package:mostro_mobile/shared/providers/session_notifier_provider.dart'; @@ -14,6 +15,10 @@ final appInitializerProvider = FutureProvider((ref) async { final nostrService = ref.read(nostrServiceProvider); await nostrService.init(ref.read(settingsProvider)); + // Initialize FCM service for push notifications + final fcmService = ref.read(fcmServiceProvider); + await fcmService.initialize(); + final keyManager = ref.read(keyManagerProvider); await keyManager.init(); From e6d0f000d11516838ffa59b556a0dd6ca1445888 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Wed, 5 Nov 2025 12:30:40 -0300 Subject: [PATCH 05/39] feat: add FCM background message handler for push notifications --- lib/main.dart | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index 4ccb1c6c..c522af85 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,7 +1,9 @@ import 'package:firebase_core/firebase_core.dart'; +import 'package:firebase_messaging/firebase_messaging.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_secure_storage/flutter_secure_storage.dart'; +import 'package:logger/logger.dart'; import 'package:mostro_mobile/core/app.dart'; import 'package:mostro_mobile/features/auth/providers/auth_notifier_provider.dart'; import 'package:mostro_mobile/features/relays/relays_provider.dart'; @@ -17,6 +19,71 @@ import 'package:mostro_mobile/shared/utils/notification_permission_helper.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:timeago/timeago.dart' as timeago; +/// Top-level function to handle FCM messages when app is terminated +/// This handler is called in a separate isolate by Firebase Messaging +@pragma('vm:entry-point') +Future firebaseMessagingBackgroundHandler(RemoteMessage message) async { + final logger = Logger(); + + try { + logger.i('FCM background message received'); + logger.d('Message ID: ${message.messageId}'); + logger.d('Message data: ${message.data}'); + + // Initialize Firebase in this isolate + await Firebase.initializeApp( + options: DefaultFirebaseOptions.currentPlatform, + ); + + // Validate FCM payload structure + if (message.data.isEmpty) { + logger.w('FCM message has empty data payload'); + return; + } + + // Extract event_id and recipient_pubkey from FCM payload + final eventId = message.data['event_id'] as String?; + final recipientPubkey = message.data['recipient_pubkey'] as String?; + + if (eventId == null || recipientPubkey == null) { + logger.w('FCM message missing required fields - event_id: $eventId, recipient_pubkey: $recipientPubkey'); + return; + } + + logger.i('Processing FCM notification for event: $eventId'); + logger.d('Recipient pubkey: ${recipientPubkey.substring(0, 16)}...'); + + // Initialize local notifications system in this isolate + await initializeNotifications(); + + // TODO: Complete FCM background processing implementation + // + // This requires a backend service that: + // 1. Listens to Nostr relays for kind 1059 (gift-wrapped) events + // 2. Detects new Mostro messages for registered users + // 3. Sends FCM push notification with minimal payload: + // - event_id: The Nostr event ID + // - recipient_pubkey: The trade key public key + // + // When FCM message is received here, we need to: + // 1. Load sessions from Sembast database (using event_id or recipient_pubkey) + // 2. Initialize NostrService with relay list from settings + // 3. Fetch the event from relays using event_id + // 4. Decrypt the event content with the trade key from the session + // 5. Extract MostroMessage and show local notification + // + // Privacy note: FCM payload only contains public data (event_id, pubkey) + // All sensitive data (amounts, addresses) stays encrypted until decrypted locally + + logger.i('FCM notification logged - Full processing requires backend implementation'); + logger.i('Event: $eventId, Recipient: ${recipientPubkey.substring(0, 10)}...'); + + } catch (e, stackTrace) { + logger.e('Error processing FCM background message: $e'); + logger.e('Stack trace: $stackTrace'); + } +} + Future main() async { WidgetsFlutterBinding.ensureInitialized(); @@ -25,6 +92,9 @@ Future main() async { options: DefaultFirebaseOptions.currentPlatform, ); + // Register FCM background message handler + FirebaseMessaging.onBackgroundMessage(firebaseMessagingBackgroundHandler); + await requestNotificationPermissionIfNeeded(); final biometricsHelper = BiometricsHelper(); From 40c1642d639361654c3311a4d56580f73f521f82 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Wed, 5 Nov 2025 12:39:32 -0300 Subject: [PATCH 06/39] feat: implement FCM background notification processing --- .../background_notification_service.dart | 136 +++++++++++++++--- lib/main.dart | 47 +++--- 2 files changed, 140 insertions(+), 43 deletions(-) diff --git a/lib/features/notifications/services/background_notification_service.dart b/lib/features/notifications/services/background_notification_service.dart index 0cc2316f..d60fe9fc 100644 --- a/lib/features/notifications/services/background_notification_service.dart +++ b/lib/features/notifications/services/background_notification_service.dart @@ -1,7 +1,7 @@ import 'dart:convert'; import 'dart:math'; -import 'package:dart_nostr/nostr/model/event/event.dart'; +import 'package:dart_nostr/dart_nostr.dart'; import 'package:flutter_local_notifications/flutter_local_notifications.dart'; import 'package:flutter_secure_storage/flutter_secure_storage.dart'; import 'package:go_router/go_router.dart'; @@ -19,11 +19,13 @@ import 'package:mostro_mobile/features/key_manager/key_manager.dart'; import 'package:mostro_mobile/features/key_manager/key_storage.dart'; import 'package:mostro_mobile/features/notifications/utils/notification_data_extractor.dart'; import 'package:mostro_mobile/features/notifications/utils/notification_message_mapper.dart'; +import 'package:mostro_mobile/features/settings/settings.dart'; import 'package:mostro_mobile/generated/l10n.dart'; import 'package:mostro_mobile/generated/l10n_en.dart'; import 'package:mostro_mobile/generated/l10n_es.dart'; import 'package:mostro_mobile/generated/l10n_it.dart'; import 'package:mostro_mobile/background/background.dart' as bg; +import 'package:mostro_mobile/services/nostr_service.dart'; import 'package:mostro_mobile/shared/providers/mostro_database_provider.dart'; final FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin = FlutterLocalNotificationsPlugin(); @@ -258,25 +260,115 @@ String? _getExpandedText(Map values) { } -Future retryNotification(NostrEvent event, {int maxAttempts = 3}) async { - int attempt = 0; - bool success = false; - - while (!success && attempt < maxAttempts) { - try { - await showLocalNotification(event); - success = true; - } catch (e) { - attempt++; - if (attempt >= maxAttempts) { - Logger().e('Failed to show notification after $maxAttempts attempts: $e'); - break; - } - - // Exponential backoff: 1s, 2s, 4s, etc. - final backoffSeconds = pow(2, attempt - 1).toInt(); - Logger().e('Notification attempt $attempt failed: $e. Retrying in ${backoffSeconds}s'); - await Future.delayed(Duration(seconds: backoffSeconds)); - } - } +Future retryNotification(NostrEvent event, {int maxAttempts = 3}) async { + int attempt = 0; + bool success = false; + + while (!success && attempt < maxAttempts) { + try { + await showLocalNotification(event); + success = true; + } catch (e) { + attempt++; + if (attempt >= maxAttempts) { + Logger().e('Failed to show notification after $maxAttempts attempts: $e'); + break; + } + + // Exponential backoff: 1s, 2s, 4s, etc. + final backoffSeconds = pow(2, attempt - 1).toInt(); + Logger().e('Notification attempt $attempt failed: $e. Retrying in ${backoffSeconds}s'); + await Future.delayed(Duration(seconds: backoffSeconds)); + } + } +} + +/// Process FCM notification from background when app is terminated +/// +/// This function is called from the FCM background handler to process +/// notifications when the app is completely closed. +/// +/// Parameters: +/// - [eventId]: The Nostr event ID from the FCM payload +/// - [recipientPubkey]: The recipient public key (trade key) from the FCM payload +/// - [relays]: List of relay URLs to fetch the event from +Future processFCMBackgroundNotification({ + required String eventId, + required String recipientPubkey, + required List relays, +}) async { + final logger = Logger(); + + try { + logger.i('Processing FCM background notification for event: $eventId'); + + // Step 1: Load sessions from database to find the matching session + final sessions = await _loadSessionsFromDatabase(); + final matchingSession = sessions.cast().firstWhere( + (s) => s?.tradeKey.public == recipientPubkey, + orElse: () => null, + ); + + if (matchingSession == null) { + logger.w('No matching session found for recipient: ${recipientPubkey.substring(0, 16)}...'); + return; + } + + logger.i('Found matching session for order: ${matchingSession.orderId}'); + + // Step 2: Initialize NostrService with relay list + final nostrService = NostrService(); + final settings = Settings( + relays: relays, + fullPrivacyMode: false, + mostroPublicKey: '', // Not needed for just fetching events + ); + + try { + await nostrService.init(settings); + logger.i('NostrService initialized with ${relays.length} relays'); + } catch (e) { + logger.e('Failed to initialize NostrService: $e'); + return; + } + + // Step 3: Create filter to fetch the specific event by ID + final filter = NostrFilter( + ids: [eventId], + kinds: [1059], // Gift-wrapped events + ); + + logger.i('Fetching event $eventId from relays...'); + + // Step 4: Fetch the event from relays + final events = await nostrService.fetchEvents(filter); + + if (events.isEmpty) { + logger.w('Event $eventId not found in any relay'); + return; + } + + logger.i('Found event ${events.first.id}, processing notification...'); + + // Step 5: Convert to NostrEvent and process through existing notification system + final nostrEvent = NostrEvent( + id: events.first.id, + kind: events.first.kind, + content: events.first.content, + tags: events.first.tags, + createdAt: events.first.createdAt, + pubkey: events.first.pubkey, + sig: events.first.sig, + subscriptionId: events.first.subscriptionId, + ); + + // Process and show the notification + await showLocalNotification(nostrEvent); + + logger.i('FCM background notification processed and shown successfully'); + + } catch (e, stackTrace) { + logger.e('Error processing FCM background notification: $e'); + logger.e('Stack trace: $stackTrace'); + } } \ No newline at end of file diff --git a/lib/main.dart b/lib/main.dart index c522af85..a251083c 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -56,27 +56,32 @@ Future firebaseMessagingBackgroundHandler(RemoteMessage message) async { // Initialize local notifications system in this isolate await initializeNotifications(); - // TODO: Complete FCM background processing implementation - // - // This requires a backend service that: - // 1. Listens to Nostr relays for kind 1059 (gift-wrapped) events - // 2. Detects new Mostro messages for registered users - // 3. Sends FCM push notification with minimal payload: - // - event_id: The Nostr event ID - // - recipient_pubkey: The trade key public key - // - // When FCM message is received here, we need to: - // 1. Load sessions from Sembast database (using event_id or recipient_pubkey) - // 2. Initialize NostrService with relay list from settings - // 3. Fetch the event from relays using event_id - // 4. Decrypt the event content with the trade key from the session - // 5. Extract MostroMessage and show local notification - // - // Privacy note: FCM payload only contains public data (event_id, pubkey) - // All sensitive data (amounts, addresses) stays encrypted until decrypted locally - - logger.i('FCM notification logged - Full processing requires backend implementation'); - logger.i('Event: $eventId, Recipient: ${recipientPubkey.substring(0, 10)}...'); + // Load settings to get relay list + final sharedPrefs = SharedPreferencesAsync(); + final relaysJson = await sharedPrefs.getStringList('settings.relays'); + final relays = relaysJson ?? []; + + if (relays.isEmpty) { + logger.w('No relays configured in settings - cannot fetch event'); + return; + } + + logger.i('Using ${relays.length} relays to fetch event'); + + // Process the FCM notification + // This will: + // 1. Load sessions from Sembast database + // 2. Find matching session by recipient_pubkey + // 3. Fetch the event from relays using event_id (TODO) + // 4. Decrypt with trade key from session + // 5. Show local notification + await processFCMBackgroundNotification( + eventId: eventId, + recipientPubkey: recipientPubkey, + relays: relays, + ); + + logger.i('FCM background notification processed successfully'); } catch (e, stackTrace) { logger.e('Error processing FCM background message: $e'); From b2d345152cd79860be10dffefa3f79e8b00e46b6 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Wed, 5 Nov 2025 15:00:18 -0300 Subject: [PATCH 07/39] feat: migrate FCM to silent push notification approach --- .../background_notification_service.dart | 113 +++++++++++++++++- lib/main.dart | 66 ++++------ 2 files changed, 135 insertions(+), 44 deletions(-) diff --git a/lib/features/notifications/services/background_notification_service.dart b/lib/features/notifications/services/background_notification_service.dart index d60fe9fc..2dd745a0 100644 --- a/lib/features/notifications/services/background_notification_service.dart +++ b/lib/features/notifications/services/background_notification_service.dart @@ -283,15 +283,122 @@ Future retryNotification(NostrEvent event, {int maxAttempts = 3}) async { } } -/// Process FCM notification from background when app is terminated +/// Fetch and process all new events from relays (Silent Push approach) /// -/// This function is called from the FCM background handler to process -/// notifications when the app is completely closed. +/// This function is called from the FCM silent push handler to fetch +/// all new events from relays and process notifications. +/// +/// Flow: +/// 1. Load all active sessions from database +/// 2. Get last processed timestamp from storage +/// 3. Fetch all new events since last timestamp +/// 4. Process each event and show notifications +/// 5. Update last processed timestamp +/// +/// Privacy: FCM doesn't contain any event data, only wakes up the app +Future fetchAndProcessNewEvents({required List relays}) async { + final logger = Logger(); + + try { + logger.i('Starting to fetch new events from relays'); + + // Step 1: Load all sessions from database + final sessions = await _loadSessionsFromDatabase(); + + if (sessions.isEmpty) { + logger.i('No active sessions found'); + return; + } + + logger.i('Found ${sessions.length} active sessions'); + + // Step 2: Get last processed timestamp + final sharedPrefs = SharedPreferencesAsync(); + final lastProcessedTime = await sharedPrefs.getInt('fcm.last_processed_timestamp') ?? 0; + final since = DateTime.fromMillisecondsSinceEpoch(lastProcessedTime * 1000); + + logger.i('Fetching events since: ${since.toIso8601String()}'); + + // Step 3: Initialize NostrService + final nostrService = NostrService(); + final settings = Settings( + relays: relays, + fullPrivacyMode: false, + mostroPublicKey: '', // Not needed for fetching + ); + + try { + await nostrService.init(settings); + } catch (e) { + logger.e('Failed to initialize NostrService: $e'); + return; + } + + // Step 4: Fetch new events for each session + int processedCount = 0; + final now = DateTime.now(); + + for (final session in sessions) { + try { + // Create filter for this session's events + final filter = NostrFilter( + kinds: [1059], // Gift-wrapped events + authors: [session.tradeKey.public], // Events for this trade key + since: since, + ); + + logger.d('Fetching events for session: ${session.orderId}'); + + // Fetch events + final events = await nostrService.fetchEvents(filter); + + logger.d('Found ${events.length} events for session ${session.orderId}'); + + // Process each event + for (final event in events) { + final nostrEvent = NostrEvent( + id: event.id, + kind: event.kind, + content: event.content, + tags: event.tags, + createdAt: event.createdAt, + pubkey: event.pubkey, + sig: event.sig, + subscriptionId: event.subscriptionId, + ); + + // Show notification + await showLocalNotification(nostrEvent); + processedCount++; + } + } catch (e) { + logger.e('Error processing events for session ${session.orderId}: $e'); + // Continue with next session + } + } + + // Step 5: Update last processed timestamp + final newTimestamp = (now.millisecondsSinceEpoch / 1000).floor(); + await sharedPrefs.setInt('fcm.last_processed_timestamp', newTimestamp); + + logger.i('Processed $processedCount new events successfully'); + + } catch (e, stackTrace) { + logger.e('Error fetching and processing new events: $e'); + logger.e('Stack trace: $stackTrace'); + } +} + +/// Process FCM notification from background when app is terminated (Legacy approach) +/// +/// This function is kept for backward compatibility but is no longer used +/// in the Silent Push approach. /// /// Parameters: /// - [eventId]: The Nostr event ID from the FCM payload /// - [recipientPubkey]: The recipient public key (trade key) from the FCM payload /// - [relays]: List of relay URLs to fetch the event from +@Deprecated('Use fetchAndProcessNewEvents for Silent Push approach') Future processFCMBackgroundNotification({ required String eventId, required String recipientPubkey, diff --git a/lib/main.dart b/lib/main.dart index a251083c..488d0751 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -19,72 +19,56 @@ import 'package:mostro_mobile/shared/utils/notification_permission_helper.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:timeago/timeago.dart' as timeago; -/// Top-level function to handle FCM messages when app is terminated -/// This handler is called in a separate isolate by Firebase Messaging +/// Top-level function to handle FCM silent push notifications +/// +/// This is a "Silent Push" approach where FCM is used only to wake up the app. +/// The payload is empty - FCM doesn't contain any event data. +/// +/// Privacy benefits: +/// - Backend doesn't know which user receives which notification +/// - No mapping of recipient_pubkey → FCM token needed +/// - All sensitive data stays encrypted until decrypted locally +/// +/// Flow: +/// 1. Backend sends empty FCM push to all users +/// 2. FCM wakes up the app in background +/// 3. App fetches ALL new events from relays +/// 4. App processes and shows notifications for matching sessions @pragma('vm:entry-point') Future firebaseMessagingBackgroundHandler(RemoteMessage message) async { final logger = Logger(); try { - logger.i('FCM background message received'); + logger.i('FCM silent push received - waking up app'); logger.d('Message ID: ${message.messageId}'); - logger.d('Message data: ${message.data}'); // Initialize Firebase in this isolate await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform, ); - // Validate FCM payload structure - if (message.data.isEmpty) { - logger.w('FCM message has empty data payload'); - return; - } - - // Extract event_id and recipient_pubkey from FCM payload - final eventId = message.data['event_id'] as String?; - final recipientPubkey = message.data['recipient_pubkey'] as String?; - - if (eventId == null || recipientPubkey == null) { - logger.w('FCM message missing required fields - event_id: $eventId, recipient_pubkey: $recipientPubkey'); - return; - } - - logger.i('Processing FCM notification for event: $eventId'); - logger.d('Recipient pubkey: ${recipientPubkey.substring(0, 16)}...'); - - // Initialize local notifications system in this isolate + // Initialize local notifications system await initializeNotifications(); - // Load settings to get relay list + // Load relay list from settings final sharedPrefs = SharedPreferencesAsync(); final relaysJson = await sharedPrefs.getStringList('settings.relays'); final relays = relaysJson ?? []; if (relays.isEmpty) { - logger.w('No relays configured in settings - cannot fetch event'); + logger.w('No relays configured - cannot fetch events'); return; } - logger.i('Using ${relays.length} relays to fetch event'); - - // Process the FCM notification - // This will: - // 1. Load sessions from Sembast database - // 2. Find matching session by recipient_pubkey - // 3. Fetch the event from relays using event_id (TODO) - // 4. Decrypt with trade key from session - // 5. Show local notification - await processFCMBackgroundNotification( - eventId: eventId, - recipientPubkey: recipientPubkey, - relays: relays, - ); + logger.i('Fetching new events from ${relays.length} relays...'); + + // Fetch and process all new events + await fetchAndProcessNewEvents(relays: relays); - logger.i('FCM background notification processed successfully'); + logger.i('Silent push processed - all new events fetched and notifications shown'); } catch (e, stackTrace) { - logger.e('Error processing FCM background message: $e'); + logger.e('Error processing silent push: $e'); logger.e('Stack trace: $stackTrace'); } } From 11a7b3526a3896f0b5e214ef70511ff00396a1ef Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Wed, 5 Nov 2025 15:56:02 -0300 Subject: [PATCH 08/39] feat: add Firebase Cloud Functions infrastructure --- .firebaserc | 5 + .gitignore | 5 + firebase.json | 44 +- functions/.eslintrc.js | 33 + functions/.gitignore | 10 + functions/package-lock.json | 9929 +++++++++++++++++++++++++++++++++ functions/package.json | 31 + functions/src/index.ts | 243 + functions/tsconfig.dev.json | 5 + functions/tsconfig.json | 17 + lib/firebase_options.dart | 3 +- lib/services/fcm_service.dart | 14 + 12 files changed, 10337 insertions(+), 2 deletions(-) create mode 100644 .firebaserc create mode 100644 functions/.eslintrc.js create mode 100644 functions/.gitignore create mode 100644 functions/package-lock.json create mode 100644 functions/package.json create mode 100644 functions/src/index.ts create mode 100644 functions/tsconfig.dev.json create mode 100644 functions/tsconfig.json diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 00000000..d3b804d0 --- /dev/null +++ b/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "mostro-test" + } +} diff --git a/.gitignore b/.gitignore index 10cd2174..f23b99a8 100644 --- a/.gitignore +++ b/.gitignore @@ -71,6 +71,11 @@ chrome/.cxx chrome/.dart_tool chrome/.packages +# Cloud Functions +functions/node_modules/ +functions/lib/ +functions/.runtimeconfig.json + # Misc *.log *.lock diff --git a/firebase.json b/firebase.json index be51859d..3ca81b51 100644 --- a/firebase.json +++ b/firebase.json @@ -1 +1,43 @@ -{"flutter":{"platforms":{"android":{"default":{"projectId":"mostro-test","appId":"1:679654468306:android:eed448d8b546663cbedb0b","fileOutput":"android/app/google-services.json"}},"dart":{"lib/firebase_options.dart":{"projectId":"mostro-test","configurations":{"android":"1:679654468306:android:eed448d8b546663cbedb0b","ios":"1:679654468306:ios:0b960156ed20d3a4bedb0b","macos":"1:679654468306:ios:0b960156ed20d3a4bedb0b","web":"1:679654468306:web:a0f06c20617b2431bedb0b","windows":"1:679654468306:web:a85640bd3da48baebedb0b"}}}}}} \ No newline at end of file +{ + "flutter": { + "platforms": { + "android": { + "default": { + "projectId": "mostro-test", + "appId": "1:679654468306:android:eed448d8b546663cbedb0b", + "fileOutput": "android/app/google-services.json" + } + }, + "dart": { + "lib/firebase_options.dart": { + "projectId": "mostro-test", + "configurations": { + "android": "1:679654468306:android:eed448d8b546663cbedb0b", + "ios": "1:679654468306:ios:0b960156ed20d3a4bedb0b", + "macos": "1:679654468306:ios:0b960156ed20d3a4bedb0b", + "web": "1:679654468306:web:a0f06c20617b2431bedb0b", + "windows": "1:679654468306:web:a85640bd3da48baebedb0b" + } + } + } + } + }, + "functions": [ + { + "codebase": "default", + "disallowLegacyRuntimeConfig": true, + "ignore": [ + "node_modules", + ".git", + "firebase-debug.log", + "firebase-debug.*.log", + "*.local" + ], + "predeploy": [ + "npm --prefix \"$RESOURCE_DIR\" run lint", + "npm --prefix \"$RESOURCE_DIR\" run build" + ], + "source": "functions" + } + ] +} diff --git a/functions/.eslintrc.js b/functions/.eslintrc.js new file mode 100644 index 00000000..0f8e2a9b --- /dev/null +++ b/functions/.eslintrc.js @@ -0,0 +1,33 @@ +module.exports = { + root: true, + env: { + es6: true, + node: true, + }, + extends: [ + "eslint:recommended", + "plugin:import/errors", + "plugin:import/warnings", + "plugin:import/typescript", + "google", + "plugin:@typescript-eslint/recommended", + ], + parser: "@typescript-eslint/parser", + parserOptions: { + project: ["tsconfig.json", "tsconfig.dev.json"], + sourceType: "module", + }, + ignorePatterns: [ + "/lib/**/*", // Ignore built files. + "/generated/**/*", // Ignore generated files. + ], + plugins: [ + "@typescript-eslint", + "import", + ], + rules: { + "quotes": ["error", "double"], + "import/no-unresolved": 0, + "indent": ["error", 2], + }, +}; diff --git a/functions/.gitignore b/functions/.gitignore new file mode 100644 index 00000000..9be0f014 --- /dev/null +++ b/functions/.gitignore @@ -0,0 +1,10 @@ +# Compiled JavaScript files +lib/**/*.js +lib/**/*.js.map + +# TypeScript v1 declaration files +typings/ + +# Node.js dependency directory +node_modules/ +*.local \ No newline at end of file diff --git a/functions/package-lock.json b/functions/package-lock.json new file mode 100644 index 00000000..b0c3a0b3 --- /dev/null +++ b/functions/package-lock.json @@ -0,0 +1,9929 @@ +{ + "name": "functions", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "functions", + "dependencies": { + "firebase-admin": "^12.6.0", + "firebase-functions": "^6.0.1" + }, + "devDependencies": { + "@typescript-eslint/eslint-plugin": "^5.12.0", + "@typescript-eslint/parser": "^5.12.0", + "eslint": "^8.9.0", + "eslint-config-google": "^0.14.0", + "eslint-plugin-import": "^2.25.4", + "firebase-functions-test": "^3.1.0", + "typescript": "^5.7.3" + }, + "engines": { + "node": "22" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.5.tgz", + "integrity": "sha512-6uFXyCayocRbqhZOB+6XcuZbkMNimwfVGFji8CTZnCzOHVGvDqzvitu1re2AU5LROliz7eQPhB8CpAMvnx9EjA==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.5.tgz", + "integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.5", + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-module-transforms": "^7.28.3", + "@babel/helpers": "^7.28.4", + "@babel/parser": "^7.28.5", + "@babel/template": "^7.27.2", + "@babel/traverse": "^7.28.5", + "@babel/types": "^7.28.5", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.5.tgz", + "integrity": "sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/parser": "^7.28.5", + "@babel/types": "^7.28.5", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", + "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/compat-data": "^7.27.2", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", + "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz", + "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1", + "@babel/traverse": "^7.28.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", + "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.4.tgz", + "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.5.tgz", + "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/types": "^7.28.5" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz", + "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz", + "integrity": "sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.27.1.tgz", + "integrity": "sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", + "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.2", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.5.tgz", + "integrity": "sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.5", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.28.5", + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.5", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz", + "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@emnapi/core": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.7.0.tgz", + "integrity": "sha512-pJdKGq/1iquWYtv1RRSljZklxHCOCAJFJrImO5ZLKPJVJlVUcs8yFwNQlqS0Lo8xT1VAXXTCZocF9n26FWEKsw==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@emnapi/wasi-threads": "1.1.0", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.7.0.tgz", + "integrity": "sha512-oAYoQnCYaQZKVS53Fq23ceWMRxq5EhQsE0x0RdQ55jT7wagMu5k+fS39v1fiSLrtrLQlXwVINenqhLMtTrV/1Q==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.1.0.tgz", + "integrity": "sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz", + "integrity": "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/js": { + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz", + "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@fastify/busboy": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-3.2.0.tgz", + "integrity": "sha512-m9FVDXU3GT2ITSe0UaMA5rU3QkfC/UXtCU8y0gSN/GugTqtVldOBWIB5V6V3sbmenVZUIpU6f+mPEO2+m5iTaA==", + "license": "MIT" + }, + "node_modules/@firebase/app-check-interop-types": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@firebase/app-check-interop-types/-/app-check-interop-types-0.3.2.tgz", + "integrity": "sha512-LMs47Vinv2HBMZi49C09dJxp0QT5LwDzFaVGf/+ITHe3BlIhUiLNttkATSXplc89A2lAaeTqjgqVkiRfUGyQiQ==", + "license": "Apache-2.0" + }, + "node_modules/@firebase/app-types": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/@firebase/app-types/-/app-types-0.9.2.tgz", + "integrity": "sha512-oMEZ1TDlBz479lmABwWsWjzHwheQKiAgnuKxE0pz0IXCVx7/rtlkx1fQ6GfgK24WCrxDKMplZrT50Kh04iMbXQ==", + "license": "Apache-2.0" + }, + "node_modules/@firebase/auth-interop-types": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@firebase/auth-interop-types/-/auth-interop-types-0.2.3.tgz", + "integrity": "sha512-Fc9wuJGgxoxQeavybiuwgyi+0rssr76b+nHpj+eGhXFYAdudMWyfBHvFL/I5fEHniUM/UQdFzi9VXJK2iZF7FQ==", + "license": "Apache-2.0" + }, + "node_modules/@firebase/component": { + "version": "0.6.9", + "resolved": "https://registry.npmjs.org/@firebase/component/-/component-0.6.9.tgz", + "integrity": "sha512-gm8EUEJE/fEac86AvHn8Z/QW8BvR56TBw3hMW0O838J/1mThYQXAIQBgUv75EqlCZfdawpWLrKt1uXvp9ciK3Q==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/util": "1.10.0", + "tslib": "^2.1.0" + } + }, + "node_modules/@firebase/database": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@firebase/database/-/database-1.0.8.tgz", + "integrity": "sha512-dzXALZeBI1U5TXt6619cv0+tgEhJiwlUtQ55WNZY7vGAjv7Q1QioV969iYwt1AQQ0ovHnEW0YW9TiBfefLvErg==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/app-check-interop-types": "0.3.2", + "@firebase/auth-interop-types": "0.2.3", + "@firebase/component": "0.6.9", + "@firebase/logger": "0.4.2", + "@firebase/util": "1.10.0", + "faye-websocket": "0.11.4", + "tslib": "^2.1.0" + } + }, + "node_modules/@firebase/database-compat": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@firebase/database-compat/-/database-compat-1.0.8.tgz", + "integrity": "sha512-OpeWZoPE3sGIRPBKYnW9wLad25RaWbGyk7fFQe4xnJQKRzlynWeFBSRRAoLE2Old01WXwskUiucNqUUVlFsceg==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/component": "0.6.9", + "@firebase/database": "1.0.8", + "@firebase/database-types": "1.0.5", + "@firebase/logger": "0.4.2", + "@firebase/util": "1.10.0", + "tslib": "^2.1.0" + } + }, + "node_modules/@firebase/database-types": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@firebase/database-types/-/database-types-1.0.5.tgz", + "integrity": "sha512-fTlqCNwFYyq/C6W7AJ5OCuq5CeZuBEsEwptnVxlNPkWCo5cTTyukzAHRSO/jaQcItz33FfYrrFk1SJofcu2AaQ==", + "license": "Apache-2.0", + "dependencies": { + "@firebase/app-types": "0.9.2", + "@firebase/util": "1.10.0" + } + }, + "node_modules/@firebase/logger": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@firebase/logger/-/logger-0.4.2.tgz", + "integrity": "sha512-Q1VuA5M1Gjqrwom6I6NUU4lQXdo9IAQieXlujeHZWvRt1b7qQ0KwBaNAjgxG27jgF9/mUwsNmO8ptBCGVYhB0A==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/@firebase/util": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@firebase/util/-/util-1.10.0.tgz", + "integrity": "sha512-xKtx4A668icQqoANRxyDLBLz51TAbDP9KRfpbKGxiCAW346d0BeJe5vN6/hKxxmWwnZ0mautyv39JxviwwQMOQ==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/@google-cloud/firestore": { + "version": "7.11.6", + "resolved": "https://registry.npmjs.org/@google-cloud/firestore/-/firestore-7.11.6.tgz", + "integrity": "sha512-EW/O8ktzwLfyWBOsNuhRoMi8lrC3clHM5LVFhGvO1HCsLozCOOXRAlHrYBoE6HL42Sc8yYMuCb2XqcnJ4OOEpw==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@opentelemetry/api": "^1.3.0", + "fast-deep-equal": "^3.1.1", + "functional-red-black-tree": "^1.0.1", + "google-gax": "^4.3.3", + "protobufjs": "^7.2.6" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@google-cloud/paginator": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@google-cloud/paginator/-/paginator-5.0.2.tgz", + "integrity": "sha512-DJS3s0OVH4zFDB1PzjxAsHqJT6sKVbRwwML0ZBP9PbU7Yebtu/7SWMRzvO2J3nUi9pRNITCfu4LJeooM2w4pjg==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "arrify": "^2.0.0", + "extend": "^3.0.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@google-cloud/projectify": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@google-cloud/projectify/-/projectify-4.0.0.tgz", + "integrity": "sha512-MmaX6HeSvyPbWGwFq7mXdo0uQZLGBYCwziiLIGq5JVX+/bdI3SAq6bP98trV5eTWfLuvsMcIC1YJOF2vfteLFA==", + "license": "Apache-2.0", + "optional": true, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@google-cloud/promisify": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@google-cloud/promisify/-/promisify-4.0.0.tgz", + "integrity": "sha512-Orxzlfb9c67A15cq2JQEyVc7wEsmFBmHjZWZYQMUyJ1qivXyMwdyNOs9odi79hze+2zqdTtu1E19IM/FtqZ10g==", + "license": "Apache-2.0", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@google-cloud/storage": { + "version": "7.17.3", + "resolved": "https://registry.npmjs.org/@google-cloud/storage/-/storage-7.17.3.tgz", + "integrity": "sha512-gOnCAbFgAYKRozywLsxagdevTF7Gm+2Ncz5u5CQAuOv/2VCa0rdGJWvJFDOftPx1tc+q8TXiC2pEJfFKu+yeMQ==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@google-cloud/paginator": "^5.0.0", + "@google-cloud/projectify": "^4.0.0", + "@google-cloud/promisify": "<4.1.0", + "abort-controller": "^3.0.0", + "async-retry": "^1.3.3", + "duplexify": "^4.1.3", + "fast-xml-parser": "^4.4.1", + "gaxios": "^6.0.2", + "google-auth-library": "^9.6.3", + "html-entities": "^2.5.2", + "mime": "^3.0.0", + "p-limit": "^3.0.1", + "retry-request": "^7.0.0", + "teeny-request": "^9.0.0", + "uuid": "^8.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@google-cloud/storage/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "license": "MIT", + "optional": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@grpc/grpc-js": { + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.14.0.tgz", + "integrity": "sha512-N8Jx6PaYzcTRNzirReJCtADVoq4z7+1KQ4E70jTg/koQiMoUSN1kbNjPOqpPbhMFhfU1/l7ixspPl8dNY+FoUg==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@grpc/proto-loader": "^0.8.0", + "@js-sdsl/ordered-map": "^4.4.2" + }, + "engines": { + "node": ">=12.10.0" + } + }, + "node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.8.0.tgz", + "integrity": "sha512-rc1hOQtjIWGxcxpb9aHAfLpIctjEnsDehj0DAiVfBlmT84uvR0uUtN2hEi/ecvWVjXUGf5qPF4qEgiLOx1YIMQ==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "lodash.camelcase": "^4.3.0", + "long": "^5.0.0", + "protobufjs": "^7.5.3", + "yargs": "^17.7.2" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@grpc/proto-loader": { + "version": "0.7.15", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.15.tgz", + "integrity": "sha512-tMXdRCfYVixjuFK+Hk0Q1s38gV9zDiDJfWL3h1rv4Qc39oILCu1TRTDt7+fGUI8K4G1Fj125Hx/ru3azECWTyQ==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "lodash.camelcase": "^4.3.0", + "long": "^5.0.0", + "protobufjs": "^7.2.5", + "yargs": "^17.7.2" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", + "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", + "deprecated": "Use @eslint/config-array instead", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.3", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", + "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", + "deprecated": "Use @eslint/object-schema instead", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", + "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-30.2.0.tgz", + "integrity": "sha512-+O1ifRjkvYIkBqASKWgLxrpEhQAAE7hY77ALLUufSk5717KfOShg6IbqLmdsLMPdUiFvA2kTs0R7YZy+l0IzZQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/types": "30.2.0", + "@types/node": "*", + "chalk": "^4.1.2", + "jest-message-util": "30.2.0", + "jest-util": "30.2.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/core": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-30.2.0.tgz", + "integrity": "sha512-03W6IhuhjqTlpzh/ojut/pDB2LPRygyWX8ExpgHtQA8H/3K7+1vKmcINx5UzeOX1se6YEsBsOHQ1CRzf3fOwTQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/console": "30.2.0", + "@jest/pattern": "30.0.1", + "@jest/reporters": "30.2.0", + "@jest/test-result": "30.2.0", + "@jest/transform": "30.2.0", + "@jest/types": "30.2.0", + "@types/node": "*", + "ansi-escapes": "^4.3.2", + "chalk": "^4.1.2", + "ci-info": "^4.2.0", + "exit-x": "^0.2.2", + "graceful-fs": "^4.2.11", + "jest-changed-files": "30.2.0", + "jest-config": "30.2.0", + "jest-haste-map": "30.2.0", + "jest-message-util": "30.2.0", + "jest-regex-util": "30.0.1", + "jest-resolve": "30.2.0", + "jest-resolve-dependencies": "30.2.0", + "jest-runner": "30.2.0", + "jest-runtime": "30.2.0", + "jest-snapshot": "30.2.0", + "jest-util": "30.2.0", + "jest-validate": "30.2.0", + "jest-watcher": "30.2.0", + "micromatch": "^4.0.8", + "pretty-format": "30.2.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/diff-sequences": { + "version": "30.0.1", + "resolved": "https://registry.npmjs.org/@jest/diff-sequences/-/diff-sequences-30.0.1.tgz", + "integrity": "sha512-n5H8QLDJ47QqbCNn5SuFjCRDrOLEZ0h8vAHCK5RL9Ls7Xa8AQLa/YxAc9UjFqoEDM48muwtBGjtMY5cr0PLDCw==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/environment": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-30.2.0.tgz", + "integrity": "sha512-/QPTL7OBJQ5ac09UDRa3EQes4gt1FTEG/8jZ/4v5IVzx+Cv7dLxlVIvfvSVRiiX2drWyXeBjkMSR8hvOWSog5g==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/fake-timers": "30.2.0", + "@jest/types": "30.2.0", + "@types/node": "*", + "jest-mock": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-30.2.0.tgz", + "integrity": "sha512-V9yxQK5erfzx99Sf+7LbhBwNWEZ9eZay8qQ9+JSC0TrMR1pMDHLMY+BnVPacWU6Jamrh252/IKo4F1Xn/zfiqA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "expect": "30.2.0", + "jest-snapshot": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-30.2.0.tgz", + "integrity": "sha512-1JnRfhqpD8HGpOmQp180Fo9Zt69zNtC+9lR+kT7NVL05tNXIi+QC8Csz7lfidMoVLPD3FnOtcmp0CEFnxExGEA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/get-type": "30.1.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-30.2.0.tgz", + "integrity": "sha512-HI3tRLjRxAbBy0VO8dqqm7Hb2mIa8d5bg/NJkyQcOk7V118ObQML8RC5luTF/Zsg4474a+gDvhce7eTnP4GhYw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/types": "30.2.0", + "@sinonjs/fake-timers": "^13.0.0", + "@types/node": "*", + "jest-message-util": "30.2.0", + "jest-mock": "30.2.0", + "jest-util": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/get-type": { + "version": "30.1.0", + "resolved": "https://registry.npmjs.org/@jest/get-type/-/get-type-30.1.0.tgz", + "integrity": "sha512-eMbZE2hUnx1WV0pmURZY9XoXPkUYjpc55mb0CrhtdWLtzMQPFvu/rZkTLZFTsdaVQa+Tr4eWAteqcUzoawq/uA==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-30.2.0.tgz", + "integrity": "sha512-b63wmnKPaK+6ZZfpYhz9K61oybvbI1aMcIs80++JI1O1rR1vaxHUCNqo3ITu6NU0d4V34yZFoHMn/uoKr/Rwfw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/environment": "30.2.0", + "@jest/expect": "30.2.0", + "@jest/types": "30.2.0", + "jest-mock": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/pattern": { + "version": "30.0.1", + "resolved": "https://registry.npmjs.org/@jest/pattern/-/pattern-30.0.1.tgz", + "integrity": "sha512-gWp7NfQW27LaBQz3TITS8L7ZCQ0TLvtmI//4OwlQRx4rnWxcPNIYjxZpDcN4+UlGxgm3jS5QPz8IPTCkb59wZA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@types/node": "*", + "jest-regex-util": "30.0.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-30.2.0.tgz", + "integrity": "sha512-DRyW6baWPqKMa9CzeiBjHwjd8XeAyco2Vt8XbcLFjiwCOEKOvy82GJ8QQnJE9ofsxCMPjH4MfH8fCWIHHDKpAQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "30.2.0", + "@jest/test-result": "30.2.0", + "@jest/transform": "30.2.0", + "@jest/types": "30.2.0", + "@jridgewell/trace-mapping": "^0.3.25", + "@types/node": "*", + "chalk": "^4.1.2", + "collect-v8-coverage": "^1.0.2", + "exit-x": "^0.2.2", + "glob": "^10.3.10", + "graceful-fs": "^4.2.11", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^5.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "30.2.0", + "jest-util": "30.2.0", + "jest-worker": "30.2.0", + "slash": "^3.0.0", + "string-length": "^4.0.2", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/schemas": { + "version": "30.0.5", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-30.0.5.tgz", + "integrity": "sha512-DmdYgtezMkh3cpU8/1uyXakv3tJRcmcXxBOcO0tbaozPwpmh4YMsnWrQm9ZmZMfa5ocbxzbFk6O4bDPEc/iAnA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@sinclair/typebox": "^0.34.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/snapshot-utils": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/snapshot-utils/-/snapshot-utils-30.2.0.tgz", + "integrity": "sha512-0aVxM3RH6DaiLcjj/b0KrIBZhSX1373Xci4l3cW5xiUWPctZ59zQ7jj4rqcJQ/Z8JuN/4wX3FpJSa3RssVvCug==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/types": "30.2.0", + "chalk": "^4.1.2", + "graceful-fs": "^4.2.11", + "natural-compare": "^1.4.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "30.0.1", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-30.0.1.tgz", + "integrity": "sha512-MIRWMUUR3sdbP36oyNyhbThLHyJ2eEDClPCiHVbrYAe5g3CHRArIVpBw7cdSB5fr+ofSfIb2Tnsw8iEHL0PYQg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.25", + "callsites": "^3.1.0", + "graceful-fs": "^4.2.11" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-30.2.0.tgz", + "integrity": "sha512-RF+Z+0CCHkARz5HT9mcQCBulb1wgCP3FBvl9VFokMX27acKphwyQsNuWH3c+ojd1LeWBLoTYoxF0zm6S/66mjg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/console": "30.2.0", + "@jest/types": "30.2.0", + "@types/istanbul-lib-coverage": "^2.0.6", + "collect-v8-coverage": "^1.0.2" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-30.2.0.tgz", + "integrity": "sha512-wXKgU/lk8fKXMu/l5Hog1R61bL4q5GCdT6OJvdAFz1P+QrpoFuLU68eoKuVc4RbrTtNnTL5FByhWdLgOPSph+Q==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/test-result": "30.2.0", + "graceful-fs": "^4.2.11", + "jest-haste-map": "30.2.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-30.2.0.tgz", + "integrity": "sha512-XsauDV82o5qXbhalKxD7p4TZYYdwcaEXC77PPD2HixEFF+6YGppjrAAQurTl2ECWcEomHBMMNS9AH3kcCFx8jA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/core": "^7.27.4", + "@jest/types": "30.2.0", + "@jridgewell/trace-mapping": "^0.3.25", + "babel-plugin-istanbul": "^7.0.1", + "chalk": "^4.1.2", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.11", + "jest-haste-map": "30.2.0", + "jest-regex-util": "30.0.1", + "jest-util": "30.2.0", + "micromatch": "^4.0.8", + "pirates": "^4.0.7", + "slash": "^3.0.0", + "write-file-atomic": "^5.0.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jest/types": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-30.2.0.tgz", + "integrity": "sha512-H9xg1/sfVvyfU7o3zMfBEjQ1gcsdeTMgqHoYdN79tuLqfTtuu7WckRA1R5whDwOzxaZAeMKTYWqP+WCAi0CHsg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/pattern": "30.0.1", + "@jest/schemas": "30.0.5", + "@types/istanbul-lib-coverage": "^2.0.6", + "@types/istanbul-reports": "^3.0.4", + "@types/node": "*", + "@types/yargs": "^17.0.33", + "chalk": "^4.1.2" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@js-sdsl/ordered-map": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", + "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", + "license": "MIT", + "optional": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/js-sdsl" + } + }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-0.2.12.tgz", + "integrity": "sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@emnapi/core": "^1.4.3", + "@emnapi/runtime": "^1.4.3", + "@tybys/wasm-util": "^0.10.0" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@opentelemetry/api": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz", + "integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==", + "license": "Apache-2.0", + "optional": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@pkgr/core": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.2.9.tgz", + "integrity": "sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/pkgr" + } + }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", + "license": "BSD-3-Clause" + }, + "node_modules/@rtsao/scc": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", + "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==", + "dev": true, + "license": "MIT" + }, + "node_modules/@sinclair/typebox": { + "version": "0.34.41", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.34.41.tgz", + "integrity": "sha512-6gS8pZzSXdyRHTIqoqSVknxolr1kzfy4/CeDnrzsVz8TTIWUbOBr6gnzOmTYJ3eXQNh4IYHIGi5aIL7sOZ2G/g==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dev": true, + "license": "BSD-3-Clause", + "peer": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "13.0.5", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-13.0.5.tgz", + "integrity": "sha512-36/hTbH2uaWuGVERyC6da9YwGWnzUZXuPro/F2LfsdOsLnCojz/iSH8MxUt/FD2S5XBSVPhmArFUXcpCQ2Hkiw==", + "dev": true, + "license": "BSD-3-Clause", + "peer": true, + "dependencies": { + "@sinonjs/commons": "^3.0.1" + } + }, + "node_modules/@tootallnate/once": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", + "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz", + "integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==", + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/body-parser": { + "version": "1.19.6", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.6.tgz", + "integrity": "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==", + "license": "MIT", + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "node_modules/@types/caseless": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.5.tgz", + "integrity": "sha512-hWtVTC2q7hc7xZ/RLbxapMvDMgUnDvKvMOpKal4DrMyfGBUfB1oKaZlIRr6mJL+If3bAP6sV/QneGzF6tJjZDg==", + "license": "MIT", + "optional": true + }, + "node_modules/@types/connect": { + "version": "3.4.38", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", + "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/cors": { + "version": "2.8.19", + "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.19.tgz", + "integrity": "sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/express": { + "version": "4.17.25", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.25.tgz", + "integrity": "sha512-dVd04UKsfpINUnK0yBoYHDF3xu7xVH4BuDotC/xGuycx4CgbP48X/KF/586bcObxT0HENHXEU8Nqtu6NR+eKhw==", + "license": "MIT", + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.33", + "@types/qs": "*", + "@types/serve-static": "^1" + } + }, + "node_modules/@types/express-serve-static-core": { + "version": "4.19.7", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.19.7.tgz", + "integrity": "sha512-FvPtiIf1LfhzsaIXhv/PHan/2FeQBbtBDtfX2QfvPxdUelMDEckK08SM6nqo1MIZY3RUlfA+HV8+hFUSio78qg==", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, + "node_modules/@types/http-errors": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.5.tgz", + "integrity": "sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==", + "license": "MIT" + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/jsonwebtoken": { + "version": "9.0.10", + "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-9.0.10.tgz", + "integrity": "sha512-asx5hIG9Qmf/1oStypjanR7iKTv0gXQ1Ov/jfrX6kS/EO0OFni8orbmGCn0672NHR3kXHwpAwR+B368ZGN/2rA==", + "license": "MIT", + "dependencies": { + "@types/ms": "*", + "@types/node": "*" + } + }, + "node_modules/@types/lodash": { + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-H3MHACvFUEiujabxhaI/ImO6gUrd8oOurg7LQtS7mbwIXA/cUqWrvBsaeJ23aZEPk1TAYkurjfMbSELfoCXlGA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/long": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", + "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==", + "license": "MIT", + "optional": true + }, + "node_modules/@types/mime": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", + "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==", + "license": "MIT" + }, + "node_modules/@types/ms": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", + "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==", + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "22.19.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.0.tgz", + "integrity": "sha512-xpr/lmLPQEj+TUnHmR+Ab91/glhJvsqcjB+yY0Ix9GO70H6Lb4FHH5GeqdOE5btAx7eIMwuHkp4H2MSkLcqWbA==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@types/qs": { + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.14.0.tgz", + "integrity": "sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==", + "license": "MIT" + }, + "node_modules/@types/range-parser": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", + "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", + "license": "MIT" + }, + "node_modules/@types/request": { + "version": "2.48.13", + "resolved": "https://registry.npmjs.org/@types/request/-/request-2.48.13.tgz", + "integrity": "sha512-FGJ6udDNUCjd19pp0Q3iTiDkwhYup7J8hpMW9c4k53NrccQFFWKRho6hvtPPEhnXWKvukfwAlB6DbDz4yhH5Gg==", + "license": "MIT", + "optional": true, + "dependencies": { + "@types/caseless": "*", + "@types/node": "*", + "@types/tough-cookie": "*", + "form-data": "^2.5.5" + } + }, + "node_modules/@types/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-FmgJfu+MOcQ370SD0ev7EI8TlCAfKYU+B4m5T3yXc1CiRN94g/SZPtsCkk506aUDtlMnFZvasDwHHUcZUEaYuA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/send": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@types/send/-/send-1.2.1.tgz", + "integrity": "sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/serve-static": { + "version": "1.15.10", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.10.tgz", + "integrity": "sha512-tRs1dB+g8Itk72rlSI2ZrW6vZg0YrLI81iQSTkMmOqnqCaNr/8Ek4VwWcN5vZgCYWbg/JJSGBlUaYGAOP73qBw==", + "license": "MIT", + "dependencies": { + "@types/http-errors": "*", + "@types/node": "*", + "@types/send": "<1" + } + }, + "node_modules/@types/serve-static/node_modules/@types/send": { + "version": "0.17.6", + "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.6.tgz", + "integrity": "sha512-Uqt8rPBE8SY0RK8JB1EzVOIZ32uqy8HwdxCnoCOsYrvnswqmFZ/k+9Ikidlk/ImhsdvBsloHbAlewb2IEBV/Og==", + "license": "MIT", + "dependencies": { + "@types/mime": "^1", + "@types/node": "*" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@types/tough-cookie": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.5.tgz", + "integrity": "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==", + "license": "MIT", + "optional": true + }, + "node_modules/@types/yargs": { + "version": "17.0.34", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.34.tgz", + "integrity": "sha512-KExbHVa92aJpw9WDQvzBaGVE2/Pz+pLZQloT2hjL8IqsZnV62rlPOYvNnLmf/L2dyllfVUOVBj64M0z/46eR2A==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz", + "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/type-utils": "5.62.0", + "@typescript-eslint/utils": "5.62.0", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz", + "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", + "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz", + "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/typescript-estree": "5.62.0", + "@typescript-eslint/utils": "5.62.0", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", + "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", + "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", + "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", + "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", + "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", + "dev": true, + "license": "ISC" + }, + "node_modules/@unrs/resolver-binding-android-arm-eabi": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm-eabi/-/resolver-binding-android-arm-eabi-1.11.1.tgz", + "integrity": "sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "peer": true + }, + "node_modules/@unrs/resolver-binding-android-arm64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm64/-/resolver-binding-android-arm64-1.11.1.tgz", + "integrity": "sha512-lCxkVtb4wp1v+EoN+HjIG9cIIzPkX5OtM03pQYkG+U5O/wL53LC4QbIeazgiKqluGeVEeBlZahHalCaBvU1a2g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "peer": true + }, + "node_modules/@unrs/resolver-binding-darwin-arm64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.11.1.tgz", + "integrity": "sha512-gPVA1UjRu1Y/IsB/dQEsp2V1pm44Of6+LWvbLc9SDk1c2KhhDRDBUkQCYVWe6f26uJb3fOK8saWMgtX8IrMk3g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "peer": true + }, + "node_modules/@unrs/resolver-binding-darwin-x64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.11.1.tgz", + "integrity": "sha512-cFzP7rWKd3lZaCsDze07QX1SC24lO8mPty9vdP+YVa3MGdVgPmFc59317b2ioXtgCMKGiCLxJ4HQs62oz6GfRQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "peer": true + }, + "node_modules/@unrs/resolver-binding-freebsd-x64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.11.1.tgz", + "integrity": "sha512-fqtGgak3zX4DCB6PFpsH5+Kmt/8CIi4Bry4rb1ho6Av2QHTREM+47y282Uqiu3ZRF5IQioJQ5qWRV6jduA+iGw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "peer": true + }, + "node_modules/@unrs/resolver-binding-linux-arm-gnueabihf": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.11.1.tgz", + "integrity": "sha512-u92mvlcYtp9MRKmP+ZvMmtPN34+/3lMHlyMj7wXJDeXxuM0Vgzz0+PPJNsro1m3IZPYChIkn944wW8TYgGKFHw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@unrs/resolver-binding-linux-arm-musleabihf": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.11.1.tgz", + "integrity": "sha512-cINaoY2z7LVCrfHkIcmvj7osTOtm6VVT16b5oQdS4beibX2SYBwgYLmqhBjA1t51CarSaBuX5YNsWLjsqfW5Cw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@unrs/resolver-binding-linux-arm64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.11.1.tgz", + "integrity": "sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@unrs/resolver-binding-linux-arm64-musl": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.11.1.tgz", + "integrity": "sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@unrs/resolver-binding-linux-ppc64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.11.1.tgz", + "integrity": "sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@unrs/resolver-binding-linux-riscv64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.11.1.tgz", + "integrity": "sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@unrs/resolver-binding-linux-riscv64-musl": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-musl/-/resolver-binding-linux-riscv64-musl-1.11.1.tgz", + "integrity": "sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@unrs/resolver-binding-linux-s390x-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.11.1.tgz", + "integrity": "sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@unrs/resolver-binding-linux-x64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.11.1.tgz", + "integrity": "sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@unrs/resolver-binding-linux-x64-musl": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.11.1.tgz", + "integrity": "sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "peer": true + }, + "node_modules/@unrs/resolver-binding-wasm32-wasi": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.11.1.tgz", + "integrity": "sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "peer": true, + "dependencies": { + "@napi-rs/wasm-runtime": "^0.2.11" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@unrs/resolver-binding-win32-arm64-msvc": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.11.1.tgz", + "integrity": "sha512-nRcz5Il4ln0kMhfL8S3hLkxI85BXs3o8EYoattsJNdsX4YUU89iOkVn7g0VHSRxFuVMdM4Q1jEpIId1Ihim/Uw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "peer": true + }, + "node_modules/@unrs/resolver-binding-win32-ia32-msvc": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.11.1.tgz", + "integrity": "sha512-DCEI6t5i1NmAZp6pFonpD5m7i6aFrpofcp4LA2i8IIq60Jyo28hamKBxNrZcyOwVOZkgsRp9O2sXWBWP8MnvIQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "peer": true + }, + "node_modules/@unrs/resolver-binding-win32-x64-msvc": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.11.1.tgz", + "integrity": "sha512-lrW200hZdbfRtztbygyaq/6jP6AKE8qQN2KvPcJ+x7wiD038YtnYtZ82IMNJ69GJibV7bwL3y9FgK+5w/pYt6g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "peer": true + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "license": "MIT", + "optional": true, + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "license": "MIT", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/agent-base": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 14" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-escapes/node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", + "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "is-array-buffer": "^3.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", + "license": "MIT" + }, + "node_modules/array-includes": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.9.tgz", + "integrity": "sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.24.0", + "es-object-atoms": "^1.1.1", + "get-intrinsic": "^1.3.0", + "is-string": "^1.1.1", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/array.prototype.findlastindex": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.6.tgz", + "integrity": "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "es-shim-unscopables": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz", + "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz", + "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", + "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.1", + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "is-array-buffer": "^3.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/arrify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", + "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/async-function": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", + "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/async-retry": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/async-retry/-/async-retry-1.3.3.tgz", + "integrity": "sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==", + "license": "MIT", + "optional": true, + "dependencies": { + "retry": "0.13.1" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT", + "optional": true + }, + "node_modules/available-typed-arrays": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", + "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "possible-typed-array-names": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/babel-jest": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-30.2.0.tgz", + "integrity": "sha512-0YiBEOxWqKkSQWL9nNGGEgndoeL0ZpWrbLMNL5u/Kaxrli3Eaxlt3ZtIDktEvXt4L/R9r3ODr2zKwGM/2BjxVw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/transform": "30.2.0", + "@types/babel__core": "^7.20.5", + "babel-plugin-istanbul": "^7.0.1", + "babel-preset-jest": "30.2.0", + "chalk": "^4.1.2", + "graceful-fs": "^4.2.11", + "slash": "^3.0.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.11.0 || ^8.0.0-0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-7.0.1.tgz", + "integrity": "sha512-D8Z6Qm8jCvVXtIRkBnqNHX0zJ37rQcFJ9u8WOS6tkYOsRdHBzypCstaxWiu5ZIlqQtviRYbgnRLSoCEvjqcqbA==", + "dev": true, + "license": "BSD-3-Clause", + "peer": true, + "workspaces": [ + "test/babel-8" + ], + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-instrument": "^6.0.2", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-30.2.0.tgz", + "integrity": "sha512-ftzhzSGMUnOzcCXd6WHdBGMyuwy15Wnn0iyyWGKgBDLxf9/s5ABuraCSpBX2uG0jUg4rqJnxsLc5+oYBqoxVaA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@types/babel__core": "^7.20.5" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz", + "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" + }, + "peerDependencies": { + "@babel/core": "^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/babel-preset-jest": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-30.2.0.tgz", + "integrity": "sha512-US4Z3NOieAQumwFnYdUWKvUKh8+YSnS/gB3t6YBiz0bskpu7Pine8pPCheNxlPEW4wnUkma2a94YuW2q3guvCQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "babel-plugin-jest-hoist": "30.2.0", + "babel-preset-current-node-syntax": "^1.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.11.0 || ^8.0.0-beta.1" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "optional": true + }, + "node_modules/baseline-browser-mapping": { + "version": "2.8.25", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.25.tgz", + "integrity": "sha512-2NovHVesVF5TXefsGX1yzx1xgr7+m9JQenvz6FQY3qd+YXkKkYiv+vTCc7OriP9mcDZpTC5mAOYN4ocd29+erA==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "bin": { + "baseline-browser-mapping": "dist/cli.js" + } + }, + "node_modules/bignumber.js": { + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.1.tgz", + "integrity": "sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==", + "license": "MIT", + "optional": true, + "engines": { + "node": "*" + } + }, + "node_modules/body-parser": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", + "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.13.0", + "raw-body": "2.5.2", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.27.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.27.0.tgz", + "integrity": "sha512-AXVQwdhot1eqLihwasPElhX2tAZiBjWdJ9i/Zcj2S6QYIjkx62OKSfnobkriB81C3l4w0rVy3Nt4jaTBltYEpw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "peer": true, + "dependencies": { + "baseline-browser-mapping": "^2.8.19", + "caniuse-lite": "^1.0.30001751", + "electron-to-chromium": "^1.5.238", + "node-releases": "^2.0.26", + "update-browserslist-db": "^1.1.4" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "license": "BSD-3-Clause" + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.0", + "es-define-property": "^1.0.0", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001753", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001753.tgz", + "integrity": "sha512-Bj5H35MD/ebaOV4iDLqPEtiliTN29qkGtEHCwawWn4cYm+bPJM2NsaP30vtZcnERClMzp52J4+aw2UNbK4o+zw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0", + "peer": true + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.1.tgz", + "integrity": "sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-2.1.0.tgz", + "integrity": "sha512-UX0OwmYRYQQetfrLEZeewIFFI+wSTofC+pMBLNuH3RUuu/xzG1oz84UCEDOSoQlN3fZ4+AzmV50ZYvGqkMh9yA==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "devOptional": true, + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/cliui/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/cliui/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz", + "integrity": "sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "optional": true, + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/cookie": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", + "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", + "license": "MIT" + }, + "node_modules/cors": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "license": "MIT", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/data-view-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", + "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/data-view-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", + "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/inspect-js" + } + }, + "node_modules/data-view-byte-offset": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", + "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/dedent": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.0.tgz", + "integrity": "sha512-HGFtf8yhuhGhqO07SV79tRp+br4MnbdjeVxotpn1QBl30pcLLCQjX5b2295ll0fv8RKDKsmWYrl05usHM9CewQ==", + "dev": true, + "license": "MIT", + "peer": true, + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "license": "MIT", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/duplexify": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.3.tgz", + "integrity": "sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==", + "license": "MIT", + "optional": true, + "dependencies": { + "end-of-stream": "^1.4.1", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1", + "stream-shift": "^1.0.2" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "license": "MIT" + }, + "node_modules/electron-to-chromium": { + "version": "1.5.245", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.245.tgz", + "integrity": "sha512-rdmGfW47ZhL/oWEJAY4qxRtdly2B98ooTJ0pdEI4jhVLZ6tNf8fPtov2wS1IRKwFJT92le3x4Knxiwzl7cPPpQ==", + "dev": true, + "license": "ISC", + "peer": true + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", + "license": "MIT", + "optional": true, + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/error-ex": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz", + "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-abstract": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.0.tgz", + "integrity": "sha512-WSzPgsdLtTcQwm4CROfS5ju2Wa1QQcVeT37jFjYzdFz1r9ahadC8B8/a4qxJxM+09F18iumCdRmlr96ZYkQvEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.2", + "arraybuffer.prototype.slice": "^1.0.4", + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "data-view-buffer": "^1.0.2", + "data-view-byte-length": "^1.0.2", + "data-view-byte-offset": "^1.0.1", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "es-set-tostringtag": "^2.1.0", + "es-to-primitive": "^1.3.0", + "function.prototype.name": "^1.1.8", + "get-intrinsic": "^1.3.0", + "get-proto": "^1.0.1", + "get-symbol-description": "^1.1.0", + "globalthis": "^1.0.4", + "gopd": "^1.2.0", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "internal-slot": "^1.1.0", + "is-array-buffer": "^3.0.5", + "is-callable": "^1.2.7", + "is-data-view": "^1.0.2", + "is-negative-zero": "^2.0.3", + "is-regex": "^1.2.1", + "is-set": "^2.0.3", + "is-shared-array-buffer": "^1.0.4", + "is-string": "^1.1.1", + "is-typed-array": "^1.1.15", + "is-weakref": "^1.1.1", + "math-intrinsics": "^1.1.0", + "object-inspect": "^1.13.4", + "object-keys": "^1.1.1", + "object.assign": "^4.1.7", + "own-keys": "^1.0.1", + "regexp.prototype.flags": "^1.5.4", + "safe-array-concat": "^1.1.3", + "safe-push-apply": "^1.0.0", + "safe-regex-test": "^1.1.0", + "set-proto": "^1.0.0", + "stop-iteration-iterator": "^1.1.0", + "string.prototype.trim": "^1.2.10", + "string.prototype.trimend": "^1.0.9", + "string.prototype.trimstart": "^1.0.8", + "typed-array-buffer": "^1.0.3", + "typed-array-byte-length": "^1.0.3", + "typed-array-byte-offset": "^1.0.4", + "typed-array-length": "^1.0.7", + "unbox-primitive": "^1.1.0", + "which-typed-array": "^1.1.19" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz", + "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-to-primitive": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz", + "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-callable": "^1.2.7", + "is-date-object": "^1.0.5", + "is-symbol": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT" + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz", + "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", + "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.1", + "@humanwhocodes/config-array": "^0.13.0", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-google": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/eslint-config-google/-/eslint-config-google-0.14.0.tgz", + "integrity": "sha512-WsbX4WbjuMvTdeVL6+J3rK1RGhCTqjsFjX7UMSMgZiyxxaNLkoJENbrGExzERFeoTpGw3F3FypTiWAP9ZXzkEw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=0.10.0" + }, + "peerDependencies": { + "eslint": ">=5.16.0" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.1.tgz", + "integrity": "sha512-L8jSWTze7K2mTg0vos/RuLRS5soomksDPoJLXIslC7c8Wmut3bx7CPpJijDcBZtxQ5lrbUdM+s0OlNbz0DCDNw==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.32.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz", + "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rtsao/scc": "^1.1.0", + "array-includes": "^3.1.9", + "array.prototype.findlastindex": "^1.2.6", + "array.prototype.flat": "^1.3.3", + "array.prototype.flatmap": "^1.3.3", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.9", + "eslint-module-utils": "^2.12.1", + "hasown": "^2.0.2", + "is-core-module": "^2.16.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.8", + "object.groupby": "^1.0.3", + "object.values": "^1.2.1", + "semver": "^6.3.1", + "string.prototype.trimend": "^1.0.9", + "tsconfig-paths": "^3.15.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "license": "BSD-2-Clause", + "peer": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esquery/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/execa/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true, + "license": "ISC", + "peer": true + }, + "node_modules/exit-x": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/exit-x/-/exit-x-0.2.2.tgz", + "integrity": "sha512-+I6B/IkJc1o/2tiURyz/ivu/O0nKNEArIUB5O7zBrlDVJr22SCLH3xTeEry428LvFhRzIA1g8izguxJ/gbNcVQ==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-30.2.0.tgz", + "integrity": "sha512-u/feCi0GPsI+988gU2FLcsHyAHTU0MX1Wg68NhAnN7z/+C5wqG+CY8J53N9ioe8RXgaoz0nBR/TYMf3AycUuPw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/expect-utils": "30.2.0", + "@jest/get-type": "30.1.0", + "jest-matcher-utils": "30.2.0", + "jest-message-util": "30.2.0", + "jest-mock": "30.2.0", + "jest-util": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/express": { + "version": "4.21.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", + "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.3", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.7.1", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.3.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.3", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.12", + "proxy-addr": "~2.0.7", + "qs": "6.13.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.19.0", + "serve-static": "1.16.2", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/express/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/express/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "license": "MIT", + "optional": true + }, + "node_modules/farmhash-modern": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/farmhash-modern/-/farmhash-modern-1.1.0.tgz", + "integrity": "sha512-6ypT4XfgqJk/F3Yuv4SX26I3doUjt0GTG4a+JgWxXQpxXzTBq8fPUeGHfcYMMDPHJHm3yPOSjaeBwBGAHWXCdA==", + "license": "MIT", + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-xml-parser": { + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.5.3.tgz", + "integrity": "sha512-RKihhV+SHsIUGXObeVy9AXiBbFwkVk7Syp8XgwN5U3JV416+Gwp/GO9i0JYKmikykgz/UHRrrV4ROuZEo/T0ig==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ], + "license": "MIT", + "optional": true, + "dependencies": { + "strnum": "^1.1.1" + }, + "bin": { + "fxparser": "src/cli/cli.js" + } + }, + "node_modules/fastq": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/faye-websocket": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", + "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", + "license": "Apache-2.0", + "dependencies": { + "websocket-driver": ">=0.5.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", + "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/firebase-admin": { + "version": "12.7.0", + "resolved": "https://registry.npmjs.org/firebase-admin/-/firebase-admin-12.7.0.tgz", + "integrity": "sha512-raFIrOyTqREbyXsNkSHyciQLfv8AUZazehPaQS1lZBSCDYW74FYXU0nQZa3qHI4K+hawohlDbywZ4+qce9YNxA==", + "license": "Apache-2.0", + "dependencies": { + "@fastify/busboy": "^3.0.0", + "@firebase/database-compat": "1.0.8", + "@firebase/database-types": "1.0.5", + "@types/node": "^22.0.1", + "farmhash-modern": "^1.1.0", + "jsonwebtoken": "^9.0.0", + "jwks-rsa": "^3.1.0", + "node-forge": "^1.3.1", + "uuid": "^10.0.0" + }, + "engines": { + "node": ">=14" + }, + "optionalDependencies": { + "@google-cloud/firestore": "^7.7.0", + "@google-cloud/storage": "^7.7.0" + } + }, + "node_modules/firebase-functions": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/firebase-functions/-/firebase-functions-6.6.0.tgz", + "integrity": "sha512-wwfo6JF+N7HUExVs5gUFgkgVGHDEog9O+qtouh7IuJWk8TBQ+KwXEgRiXbatSj7EbTu3/yYnHuzh3XExbfF6wQ==", + "license": "MIT", + "dependencies": { + "@types/cors": "^2.8.5", + "@types/express": "^4.17.21", + "cors": "^2.8.5", + "express": "^4.21.0", + "protobufjs": "^7.2.2" + }, + "bin": { + "firebase-functions": "lib/bin/firebase-functions.js" + }, + "engines": { + "node": ">=14.10.0" + }, + "peerDependencies": { + "firebase-admin": "^11.10.0 || ^12.0.0 || ^13.0.0" + } + }, + "node_modules/firebase-functions-test": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/firebase-functions-test/-/firebase-functions-test-3.4.1.tgz", + "integrity": "sha512-qAq0oszrBGdf4bnCF6t4FoSgMsepeIXh0Pi/FhikSE6e+TvKKGpfrfUP/5pFjJZxFcLsweoau88KydCql4xSeg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/lodash": "^4.14.104", + "lodash": "^4.17.5", + "ts-deepmerge": "^2.0.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "firebase-admin": "^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0", + "firebase-functions": ">=4.9.0", + "jest": ">=28.0.0" + } + }, + "node_modules/flat-cache": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true, + "license": "ISC" + }, + "node_modules/for-each": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", + "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/foreground-child": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "cross-spawn": "^7.0.6", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/form-data": { + "version": "2.5.5", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.5.tgz", + "integrity": "sha512-jqdObeR2rxZZbPSGL+3VckHMYtu+f9//KXBsVny6JSX/pa38Fy+bGjuG8eW/H6USNQWhLi8Num++cU2yOCNz4A==", + "license": "MIT", + "optional": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.35", + "safe-buffer": "^5.2.1" + }, + "engines": { + "node": ">= 0.12" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true, + "license": "ISC" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "peer": true, + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/function.prototype.name": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz", + "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "functions-have-names": "^1.2.3", + "hasown": "^2.0.2", + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", + "license": "MIT", + "optional": true + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gaxios": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-6.7.1.tgz", + "integrity": "sha512-LDODD4TMYx7XXdpwxAVRAIAuB0bzv0s+ywFonY46k126qzQHT9ygyoa9tncmOiQmmDrik65UYsEkv3lbfqQ3yQ==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "extend": "^3.0.2", + "https-proxy-agent": "^7.0.1", + "is-stream": "^2.0.0", + "node-fetch": "^2.6.9", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/gaxios/node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "optional": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/gcp-metadata": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-6.1.1.tgz", + "integrity": "sha512-a4tiq7E0/5fTjxPAaH4jpjkSv/uCaU2p5KC6HVGrvl0cDjA8iBZv4vv1gyzlmK0ZUKqwpOyQMKzZQe3lTit77A==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "gaxios": "^6.1.1", + "google-logging-utils": "^0.0.2", + "json-bigint": "^1.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/generator-function": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", + "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "devOptional": true, + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-symbol-description": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", + "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "10.4.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", + "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globalthis": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-properties": "^1.2.1", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/google-auth-library": { + "version": "9.15.1", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-9.15.1.tgz", + "integrity": "sha512-Jb6Z0+nvECVz+2lzSMt9u98UsoakXxA2HGHMCxh+so3n90XgYWkq5dur19JAJV7ONiJY22yBTyJB1TSkvPq9Ng==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "base64-js": "^1.3.0", + "ecdsa-sig-formatter": "^1.0.11", + "gaxios": "^6.1.1", + "gcp-metadata": "^6.1.0", + "gtoken": "^7.0.0", + "jws": "^4.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/google-gax": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-4.6.1.tgz", + "integrity": "sha512-V6eky/xz2mcKfAd1Ioxyd6nmA61gao3n01C+YeuIwu3vzM9EDR6wcVzMSIbLMDXWeoi9SHYctXuKYC5uJUT3eQ==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@grpc/grpc-js": "^1.10.9", + "@grpc/proto-loader": "^0.7.13", + "@types/long": "^4.0.0", + "abort-controller": "^3.0.0", + "duplexify": "^4.0.0", + "google-auth-library": "^9.3.0", + "node-fetch": "^2.7.0", + "object-hash": "^3.0.0", + "proto3-json-serializer": "^2.0.2", + "protobufjs": "^7.3.2", + "retry-request": "^7.0.0", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/google-gax/node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "optional": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/google-logging-utils": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-0.0.2.tgz", + "integrity": "sha512-NEgUnEcBiP5HrPzufUkBzJOD/Sxsco3rLNo1F1TNf7ieU8ryUzBhqba8r756CjLX7rn3fHl6iLEwPYuqpoKgQQ==", + "license": "Apache-2.0", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC", + "peer": true + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true, + "license": "MIT" + }, + "node_modules/gtoken": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-7.1.0.tgz", + "integrity": "sha512-pCcEwRi+TKpMlxAQObHDQ56KawURgyAf6jtIY046fJ5tIv3zDe/LEIubckAO8fj6JnAxLdmWkUfNyulQ2iKdEw==", + "license": "MIT", + "optional": true, + "dependencies": { + "gaxios": "^6.0.0", + "jws": "^4.0.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/has-bigints": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", + "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", + "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/html-entities": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.6.0.tgz", + "integrity": "sha512-kig+rMn/QOVRvr7c86gQ8lWXq+Hkv6CbAH1hLu+RG338StTpE8Z0b44SDVaqVu7HGKf27frdmUYEs9hTUX/cLQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/mdevils" + }, + { + "type": "patreon", + "url": "https://patreon.com/mdevils" + } + ], + "license": "MIT", + "optional": true + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "license": "MIT", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/http-parser-js": { + "version": "0.5.10", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.10.tgz", + "integrity": "sha512-Pysuw9XpUq5dVc/2SMHpuTY01RFl8fttgcyunjL7eEMhGM3cI4eOmiCycJDVCo/7O7ClfQD3SaI6ftDzqOXYMA==", + "license": "MIT" + }, + "node_modules/http-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", + "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", + "license": "MIT", + "optional": true, + "dependencies": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/http-proxy-agent/node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "license": "MIT", + "optional": true, + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-local": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", + "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dev": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/internal-slot": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", + "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "hasown": "^2.0.2", + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", + "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/is-async-function": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", + "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "async-function": "^1.0.0", + "call-bound": "^1.0.3", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-bigint": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", + "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-bigints": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-boolean-object": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", + "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-data-view": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", + "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "is-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", + "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-finalizationregistry": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", + "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-generator-function": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", + "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.4", + "generator-function": "^2.0.0", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", + "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", + "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", + "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-regex": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-set": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", + "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", + "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-string": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", + "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", + "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "has-symbols": "^1.1.0", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", + "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakmap": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", + "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", + "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", + "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true, + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true, + "license": "BSD-3-Clause", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", + "dev": true, + "license": "BSD-3-Clause", + "peer": true, + "dependencies": { + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "license": "BSD-3-Clause", + "peer": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-5.0.6.tgz", + "integrity": "sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==", + "dev": true, + "license": "BSD-3-Clause", + "peer": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.23", + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz", + "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==", + "dev": true, + "license": "BSD-3-Clause", + "peer": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jackspeak": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "dev": true, + "license": "BlueOak-1.0.0", + "peer": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/jest": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-30.2.0.tgz", + "integrity": "sha512-F26gjC0yWN8uAA5m5Ss8ZQf5nDHWGlN/xWZIh8S5SRbsEKBovwZhxGd6LJlbZYxBgCYOtreSUyb8hpXyGC5O4A==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/core": "30.2.0", + "@jest/types": "30.2.0", + "import-local": "^3.2.0", + "jest-cli": "30.2.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-30.2.0.tgz", + "integrity": "sha512-L8lR1ChrRnSdfeOvTrwZMlnWV8G/LLjQ0nG9MBclwWZidA2N5FviRki0Bvh20WRMOX31/JYvzdqTJrk5oBdydQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "execa": "^5.1.1", + "jest-util": "30.2.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-circus": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-30.2.0.tgz", + "integrity": "sha512-Fh0096NC3ZkFx05EP2OXCxJAREVxj1BcW/i6EWqqymcgYKWjyyDpral3fMxVcHXg6oZM7iULer9wGRFvfpl+Tg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/environment": "30.2.0", + "@jest/expect": "30.2.0", + "@jest/test-result": "30.2.0", + "@jest/types": "30.2.0", + "@types/node": "*", + "chalk": "^4.1.2", + "co": "^4.6.0", + "dedent": "^1.6.0", + "is-generator-fn": "^2.1.0", + "jest-each": "30.2.0", + "jest-matcher-utils": "30.2.0", + "jest-message-util": "30.2.0", + "jest-runtime": "30.2.0", + "jest-snapshot": "30.2.0", + "jest-util": "30.2.0", + "p-limit": "^3.1.0", + "pretty-format": "30.2.0", + "pure-rand": "^7.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.6" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-cli": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-30.2.0.tgz", + "integrity": "sha512-Os9ukIvADX/A9sLt6Zse3+nmHtHaE6hqOsjQtNiugFTbKRHYIYtZXNGNK9NChseXy7djFPjndX1tL0sCTlfpAA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/core": "30.2.0", + "@jest/test-result": "30.2.0", + "@jest/types": "30.2.0", + "chalk": "^4.1.2", + "exit-x": "^0.2.2", + "import-local": "^3.2.0", + "jest-config": "30.2.0", + "jest-util": "30.2.0", + "jest-validate": "30.2.0", + "yargs": "^17.7.2" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-config": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-30.2.0.tgz", + "integrity": "sha512-g4WkyzFQVWHtu6uqGmQR4CQxz/CH3yDSlhzXMWzNjDx843gYjReZnMRanjRCq5XZFuQrGDxgUaiYWE8BRfVckA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/core": "^7.27.4", + "@jest/get-type": "30.1.0", + "@jest/pattern": "30.0.1", + "@jest/test-sequencer": "30.2.0", + "@jest/types": "30.2.0", + "babel-jest": "30.2.0", + "chalk": "^4.1.2", + "ci-info": "^4.2.0", + "deepmerge": "^4.3.1", + "glob": "^10.3.10", + "graceful-fs": "^4.2.11", + "jest-circus": "30.2.0", + "jest-docblock": "30.2.0", + "jest-environment-node": "30.2.0", + "jest-regex-util": "30.0.1", + "jest-resolve": "30.2.0", + "jest-runner": "30.2.0", + "jest-util": "30.2.0", + "jest-validate": "30.2.0", + "micromatch": "^4.0.8", + "parse-json": "^5.2.0", + "pretty-format": "30.2.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "esbuild-register": ">=3.4.0", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "esbuild-register": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-diff": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-30.2.0.tgz", + "integrity": "sha512-dQHFo3Pt4/NLlG5z4PxZ/3yZTZ1C7s9hveiOj+GCN+uT109NC2QgsoVZsVOAvbJ3RgKkvyLGXZV9+piDpWbm6A==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/diff-sequences": "30.0.1", + "@jest/get-type": "30.1.0", + "chalk": "^4.1.2", + "pretty-format": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-docblock": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-30.2.0.tgz", + "integrity": "sha512-tR/FFgZKS1CXluOQzZvNH3+0z9jXr3ldGSD8bhyuxvlVUwbeLOGynkunvlTMxchC5urrKndYiwCFC0DLVjpOCA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "detect-newline": "^3.1.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-each": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-30.2.0.tgz", + "integrity": "sha512-lpWlJlM7bCUf1mfmuqTA8+j2lNURW9eNafOy99knBM01i5CQeY5UH1vZjgT9071nDJac1M4XsbyI44oNOdhlDQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/get-type": "30.1.0", + "@jest/types": "30.2.0", + "chalk": "^4.1.2", + "jest-util": "30.2.0", + "pretty-format": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-30.2.0.tgz", + "integrity": "sha512-ElU8v92QJ9UrYsKrxDIKCxu6PfNj4Hdcktcn0JX12zqNdqWHB0N+hwOnnBBXvjLd2vApZtuLUGs1QSY+MsXoNA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/environment": "30.2.0", + "@jest/fake-timers": "30.2.0", + "@jest/types": "30.2.0", + "@types/node": "*", + "jest-mock": "30.2.0", + "jest-util": "30.2.0", + "jest-validate": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-30.2.0.tgz", + "integrity": "sha512-sQA/jCb9kNt+neM0anSj6eZhLZUIhQgwDt7cPGjumgLM4rXsfb9kpnlacmvZz3Q5tb80nS+oG/if+NBKrHC+Xw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/types": "30.2.0", + "@types/node": "*", + "anymatch": "^3.1.3", + "fb-watchman": "^2.0.2", + "graceful-fs": "^4.2.11", + "jest-regex-util": "30.0.1", + "jest-util": "30.2.0", + "jest-worker": "30.2.0", + "micromatch": "^4.0.8", + "walker": "^1.0.8" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.3" + } + }, + "node_modules/jest-leak-detector": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-30.2.0.tgz", + "integrity": "sha512-M6jKAjyzjHG0SrQgwhgZGy9hFazcudwCNovY/9HPIicmNSBuockPSedAP9vlPK6ONFJ1zfyH/M2/YYJxOz5cdQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/get-type": "30.1.0", + "pretty-format": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-30.2.0.tgz", + "integrity": "sha512-dQ94Nq4dbzmUWkQ0ANAWS9tBRfqCrn0bV9AMYdOi/MHW726xn7eQmMeRTpX2ViC00bpNaWXq+7o4lIQ3AX13Hg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/get-type": "30.1.0", + "chalk": "^4.1.2", + "jest-diff": "30.2.0", + "pretty-format": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.2.0.tgz", + "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@jest/types": "30.2.0", + "@types/stack-utils": "^2.0.3", + "chalk": "^4.1.2", + "graceful-fs": "^4.2.11", + "micromatch": "^4.0.8", + "pretty-format": "30.2.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.6" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-mock": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-30.2.0.tgz", + "integrity": "sha512-JNNNl2rj4b5ICpmAcq+WbLH83XswjPbjH4T7yvGzfAGCPh1rw+xVNbtk+FnRslvt9lkCcdn9i1oAoKUuFsOxRw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/types": "30.2.0", + "@types/node": "*", + "jest-util": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "30.0.1", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-30.0.1.tgz", + "integrity": "sha512-jHEQgBXAgc+Gh4g0p3bCevgRCVRkB4VB70zhoAE48gxeSr1hfUOsM/C2WoJgVL7Eyg//hudYENbm3Ne+/dRVVA==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-30.2.0.tgz", + "integrity": "sha512-TCrHSxPlx3tBY3hWNtRQKbtgLhsXa1WmbJEqBlTBrGafd5fiQFByy2GNCEoGR+Tns8d15GaL9cxEzKOO3GEb2A==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "chalk": "^4.1.2", + "graceful-fs": "^4.2.11", + "jest-haste-map": "30.2.0", + "jest-pnp-resolver": "^1.2.3", + "jest-util": "30.2.0", + "jest-validate": "30.2.0", + "slash": "^3.0.0", + "unrs-resolver": "^1.7.11" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-30.2.0.tgz", + "integrity": "sha512-xTOIGug/0RmIe3mmCqCT95yO0vj6JURrn1TKWlNbhiAefJRWINNPgwVkrVgt/YaerPzY3iItufd80v3lOrFJ2w==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "jest-regex-util": "30.0.1", + "jest-snapshot": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-runner": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-30.2.0.tgz", + "integrity": "sha512-PqvZ2B2XEyPEbclp+gV6KO/F1FIFSbIwewRgmROCMBo/aZ6J1w8Qypoj2pEOcg3G2HzLlaP6VUtvwCI8dM3oqQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/console": "30.2.0", + "@jest/environment": "30.2.0", + "@jest/test-result": "30.2.0", + "@jest/transform": "30.2.0", + "@jest/types": "30.2.0", + "@types/node": "*", + "chalk": "^4.1.2", + "emittery": "^0.13.1", + "exit-x": "^0.2.2", + "graceful-fs": "^4.2.11", + "jest-docblock": "30.2.0", + "jest-environment-node": "30.2.0", + "jest-haste-map": "30.2.0", + "jest-leak-detector": "30.2.0", + "jest-message-util": "30.2.0", + "jest-resolve": "30.2.0", + "jest-runtime": "30.2.0", + "jest-util": "30.2.0", + "jest-watcher": "30.2.0", + "jest-worker": "30.2.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-30.2.0.tgz", + "integrity": "sha512-p1+GVX/PJqTucvsmERPMgCPvQJpFt4hFbM+VN3n8TMo47decMUcJbt+rgzwrEme0MQUA/R+1de2axftTHkKckg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/environment": "30.2.0", + "@jest/fake-timers": "30.2.0", + "@jest/globals": "30.2.0", + "@jest/source-map": "30.0.1", + "@jest/test-result": "30.2.0", + "@jest/transform": "30.2.0", + "@jest/types": "30.2.0", + "@types/node": "*", + "chalk": "^4.1.2", + "cjs-module-lexer": "^2.1.0", + "collect-v8-coverage": "^1.0.2", + "glob": "^10.3.10", + "graceful-fs": "^4.2.11", + "jest-haste-map": "30.2.0", + "jest-message-util": "30.2.0", + "jest-mock": "30.2.0", + "jest-regex-util": "30.0.1", + "jest-resolve": "30.2.0", + "jest-snapshot": "30.2.0", + "jest-util": "30.2.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-30.2.0.tgz", + "integrity": "sha512-5WEtTy2jXPFypadKNpbNkZ72puZCa6UjSr/7djeecHWOu7iYhSXSnHScT8wBz3Rn8Ena5d5RYRcsyKIeqG1IyA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/core": "^7.27.4", + "@babel/generator": "^7.27.5", + "@babel/plugin-syntax-jsx": "^7.27.1", + "@babel/plugin-syntax-typescript": "^7.27.1", + "@babel/types": "^7.27.3", + "@jest/expect-utils": "30.2.0", + "@jest/get-type": "30.1.0", + "@jest/snapshot-utils": "30.2.0", + "@jest/transform": "30.2.0", + "@jest/types": "30.2.0", + "babel-preset-current-node-syntax": "^1.2.0", + "chalk": "^4.1.2", + "expect": "30.2.0", + "graceful-fs": "^4.2.11", + "jest-diff": "30.2.0", + "jest-matcher-utils": "30.2.0", + "jest-message-util": "30.2.0", + "jest-util": "30.2.0", + "pretty-format": "30.2.0", + "semver": "^7.7.2", + "synckit": "^0.11.8" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-util": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", + "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/types": "30.2.0", + "@types/node": "*", + "chalk": "^4.1.2", + "ci-info": "^4.2.0", + "graceful-fs": "^4.2.11", + "picomatch": "^4.0.2" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-util/node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/jest-validate": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-30.2.0.tgz", + "integrity": "sha512-FBGWi7dP2hpdi8nBoWxSsLvBFewKAg0+uSQwBaof4Y4DPgBabXgpSYC5/lR7VmnIlSpASmCi/ntRWPbv7089Pw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/get-type": "30.1.0", + "@jest/types": "30.2.0", + "camelcase": "^6.3.0", + "chalk": "^4.1.2", + "leven": "^3.1.0", + "pretty-format": "30.2.0" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-30.2.0.tgz", + "integrity": "sha512-PYxa28dxJ9g777pGm/7PrbnMeA0Jr7osHP9bS7eJy9DuAjMgdGtxgf0uKMyoIsTWAkIbUW5hSDdJ3urmgXBqxg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/test-result": "30.2.0", + "@jest/types": "30.2.0", + "@types/node": "*", + "ansi-escapes": "^4.3.2", + "chalk": "^4.1.2", + "emittery": "^0.13.1", + "jest-util": "30.2.0", + "string-length": "^4.0.2" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-worker": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-30.2.0.tgz", + "integrity": "sha512-0Q4Uk8WF7BUwqXHuAjc23vmopWJw5WH7w2tqBoUOZpOjW/ZnR44GXXd1r82RvnmI2GZge3ivrYXk/BE2+VtW2g==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@types/node": "*", + "@ungap/structured-clone": "^1.3.0", + "jest-util": "30.2.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.1.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/jose": { + "version": "4.15.9", + "resolved": "https://registry.npmjs.org/jose/-/jose-4.15.9.tgz", + "integrity": "sha512-1vUQX+IdDMVPj4k8kOxgUqlcK518yluMuGZwqlr44FS1ppZB/5GWh4rZG89erpOBOJjU/OBsnCVFfapsRz6nEA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "peer": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-bigint": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", + "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "bignumber.js": "^9.0.0" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "peer": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonwebtoken": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz", + "integrity": "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==", + "license": "MIT", + "dependencies": { + "jws": "^3.2.2", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=12", + "npm": ">=6" + } + }, + "node_modules/jsonwebtoken/node_modules/jwa": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.2.tgz", + "integrity": "sha512-eeH5JO+21J78qMvTIDdBXidBd6nG2kZjg5Ohz/1fpa28Z4CcsWUzJ1ZZyFq/3z3N17aZy+ZuBoHljASbL1WfOw==", + "license": "MIT", + "dependencies": { + "buffer-equal-constant-time": "^1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jsonwebtoken/node_modules/jws": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "license": "MIT", + "dependencies": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jwa": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", + "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==", + "license": "MIT", + "optional": true, + "dependencies": { + "buffer-equal-constant-time": "^1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jwks-rsa": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/jwks-rsa/-/jwks-rsa-3.2.0.tgz", + "integrity": "sha512-PwchfHcQK/5PSydeKCs1ylNym0w/SSv8a62DgHJ//7x2ZclCoinlsjAfDxAAbpoTPybOum/Jgy+vkvMmKz89Ww==", + "license": "MIT", + "dependencies": { + "@types/express": "^4.17.20", + "@types/jsonwebtoken": "^9.0.4", + "debug": "^4.3.4", + "jose": "^4.15.4", + "limiter": "^1.1.5", + "lru-memoizer": "^2.2.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/jws": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", + "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", + "license": "MIT", + "optional": true, + "dependencies": { + "jwa": "^2.0.0", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/limiter": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/limiter/-/limiter-1.1.5.tgz", + "integrity": "sha512-FWWMIEOxz3GwUI4Ts/IvgVy6LPvoMPgjMdQ185nN6psJyBJ4yOpzqm695/h5umdLJg2vW3GR5iG11MAkR2AzJA==" + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true, + "license": "MIT" + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "license": "MIT", + "optional": true + }, + "node_modules/lodash.clonedeep": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", + "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==", + "license": "MIT" + }, + "node_modules/lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==", + "license": "MIT" + }, + "node_modules/lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==", + "license": "MIT" + }, + "node_modules/lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==", + "license": "MIT" + }, + "node_modules/lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==", + "license": "MIT" + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", + "license": "MIT" + }, + "node_modules/lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", + "license": "MIT" + }, + "node_modules/long": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", + "license": "Apache-2.0" + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/lru-memoizer": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/lru-memoizer/-/lru-memoizer-2.3.0.tgz", + "integrity": "sha512-GXn7gyHAMhO13WSKrIiNfztwxodVsP8IoZ3XfrJV4yH2x0/OeTO/FIaAHTY5YekdGgW94njfuKmyyt1E0mR6Ug==", + "license": "MIT", + "dependencies": { + "lodash.clonedeep": "^4.5.0", + "lru-cache": "6.0.0" + } + }, + "node_modules/lru-memoizer/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/lru-memoizer/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "license": "ISC" + }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "license": "BSD-3-Clause", + "peer": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz", + "integrity": "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==", + "license": "MIT", + "optional": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, + "license": "ISC", + "peer": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/napi-postinstall": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.3.4.tgz", + "integrity": "sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==", + "dev": true, + "license": "MIT", + "peer": true, + "bin": { + "napi-postinstall": "lib/cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/napi-postinstall" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/natural-compare-lite": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", + "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", + "dev": true, + "license": "MIT" + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", + "optional": true, + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-forge": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", + "license": "(BSD-3-Clause OR GPL-2.0)", + "engines": { + "node": ">= 6.13.0" + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/node-releases": { + "version": "2.0.27", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", + "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", + "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0", + "has-symbols": "^1.1.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz", + "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.groupby": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz", + "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.values": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz", + "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "devOptional": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/own-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", + "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.2.6", + "object-keys": "^1.1.1", + "safe-push-apply": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/package-json-from-dist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "dev": true, + "license": "BlueOak-1.0.0", + "peer": true + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, + "license": "BlueOak-1.0.0", + "peer": true, + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true, + "license": "ISC", + "peer": true + }, + "node_modules/path-to-regexp": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", + "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", + "license": "MIT" + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC", + "peer": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/possible-typed-array-names": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", + "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/pretty-format": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz", + "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jest/schemas": "30.0.5", + "ansi-styles": "^5.2.0", + "react-is": "^18.3.1" + }, + "engines": { + "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/proto3-json-serializer": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/proto3-json-serializer/-/proto3-json-serializer-2.0.2.tgz", + "integrity": "sha512-SAzp/O4Yh02jGdRc+uIrGoe87dkN/XtwxfZ4ZyafJHymd79ozp5VG5nyZ7ygqPM5+cpLDjjGnYFUkngonyDPOQ==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "protobufjs": "^7.2.5" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/protobufjs": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.4.tgz", + "integrity": "sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg==", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/pure-rand": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-7.0.1.tgz", + "integrity": "sha512-oTUZM/NAZS8p7ANR3SHh30kXB+zK2r2BPcEn/awJIbOvq82WoMN4p62AWWp3Hhw50G0xMsw1mhIBLqHw64EcNQ==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT", + "peer": true + }, + "node_modules/qs": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", + "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.0.6" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", + "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "license": "MIT", + "optional": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/reflect.getprototypeof": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", + "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.1", + "which-builtin-type": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", + "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-errors": "^1.3.0", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "set-function-name": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.11", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", + "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-cwd/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/retry": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", + "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/retry-request": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/retry-request/-/retry-request-7.0.2.tgz", + "integrity": "sha512-dUOvLMJ0/JJYEn8NrpOaGNE7X3vpI5XlZS/u0ANjqtcZVKnIxP7IgCFwrKTxENw29emmwug53awKtaMm4i9g5w==", + "license": "MIT", + "optional": true, + "dependencies": { + "@types/request": "^2.48.8", + "extend": "^3.0.2", + "teeny-request": "^9.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-array-concat": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz", + "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "has-symbols": "^1.1.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safe-push-apply": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", + "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-regex-test": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-regex": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/send": { + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", + "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/send/node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/send/node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/serve-static": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", + "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", + "license": "MIT", + "dependencies": { + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.19.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-function-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", + "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", + "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC" + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", + "peer": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "license": "BSD-3-Clause", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true, + "license": "BSD-3-Clause", + "peer": true + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/stop-iteration-iterator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz", + "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "internal-slot": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/stream-events": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/stream-events/-/stream-events-1.0.5.tgz", + "integrity": "sha512-E1GUzBSgvct8Jsb3v2X15pjzN1tYebtbLaMg+eBOUOAxgbLoSbT2NS91ckc5lJD1KfLjId+jXJRgo0qnV5Nerg==", + "license": "MIT", + "optional": true, + "dependencies": { + "stubs": "^3.0.0" + } + }, + "node_modules/stream-shift": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz", + "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==", + "license": "MIT", + "optional": true + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "license": "MIT", + "optional": true, + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/string-width/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/string-width/node_modules/strip-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", + "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/string.prototype.trim": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz", + "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-data-property": "^1.1.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-object-atoms": "^1.0.0", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz", + "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", + "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strnum": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.1.2.tgz", + "integrity": "sha512-vrN+B7DBIoTTZjnPNewwhx6cBA/H+IS7rfW68n7XxC1y7uoiGQBxaKzqucGUgavX15dJgiGztLJ8vxuEzwqBdA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ], + "license": "MIT", + "optional": true + }, + "node_modules/stubs": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz", + "integrity": "sha512-PdHt7hHUJKxvTCgbKX9C1V/ftOcjJQgz8BZwNfV5c4B6dcGqlpelTbJ999jBGZ2jYiPAwcX5dP6oBwVlBlUbxw==", + "license": "MIT", + "optional": true + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/synckit": { + "version": "0.11.11", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.11.11.tgz", + "integrity": "sha512-MeQTA1r0litLUf0Rp/iisCaL8761lKAZHaimlbGK4j0HysC4PLfqygQj9srcs0m2RdtDYnF8UuYyKpbjHYp7Jw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@pkgr/core": "^0.2.9" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/synckit" + } + }, + "node_modules/teeny-request": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/teeny-request/-/teeny-request-9.0.0.tgz", + "integrity": "sha512-resvxdc6Mgb7YEThw6G6bExlXKkv6+YbuzGg9xuXxSgxJF7Ozs+o8Y9+2R3sArdWdW8nOokoQb1yrpFB0pQK2g==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "node-fetch": "^2.6.9", + "stream-events": "^1.0.5", + "uuid": "^9.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/teeny-request/node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/teeny-request/node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "license": "MIT", + "optional": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/teeny-request/node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "optional": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/test-exclude/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true, + "license": "MIT" + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true, + "license": "BSD-3-Clause", + "peer": true + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT", + "optional": true + }, + "node_modules/ts-deepmerge": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/ts-deepmerge/-/ts-deepmerge-2.0.7.tgz", + "integrity": "sha512-3phiGcxPSSR47RBubQxPoZ+pqXsEsozLo4G4AlSrsMKTFg9TA3l+3he5BqpUi9wiuDbaHWXH/amlzQ49uEdXtg==", + "dev": true, + "license": "ISC" + }, + "node_modules/tsconfig-paths": { + "version": "3.15.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", + "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tsconfig-paths/node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/tsconfig-paths/node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, + "node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/tsutils/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true, + "license": "0BSD" + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "license": "MIT", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typed-array-buffer": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", + "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", + "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz", + "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.15", + "reflect.getprototypeof": "^1.0.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz", + "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "is-typed-array": "^1.1.13", + "possible-typed-array-names": "^1.0.0", + "reflect.getprototypeof": "^1.0.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/unbox-primitive": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", + "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-bigints": "^1.0.2", + "has-symbols": "^1.1.0", + "which-boxed-primitive": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "license": "MIT" + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/unrs-resolver": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/unrs-resolver/-/unrs-resolver-1.11.1.tgz", + "integrity": "sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "peer": true, + "dependencies": { + "napi-postinstall": "^0.3.0" + }, + "funding": { + "url": "https://opencollective.com/unrs-resolver" + }, + "optionalDependencies": { + "@unrs/resolver-binding-android-arm-eabi": "1.11.1", + "@unrs/resolver-binding-android-arm64": "1.11.1", + "@unrs/resolver-binding-darwin-arm64": "1.11.1", + "@unrs/resolver-binding-darwin-x64": "1.11.1", + "@unrs/resolver-binding-freebsd-x64": "1.11.1", + "@unrs/resolver-binding-linux-arm-gnueabihf": "1.11.1", + "@unrs/resolver-binding-linux-arm-musleabihf": "1.11.1", + "@unrs/resolver-binding-linux-arm64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-arm64-musl": "1.11.1", + "@unrs/resolver-binding-linux-ppc64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-riscv64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-riscv64-musl": "1.11.1", + "@unrs/resolver-binding-linux-s390x-gnu": "1.11.1", + "@unrs/resolver-binding-linux-x64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-x64-musl": "1.11.1", + "@unrs/resolver-binding-wasm32-wasi": "1.11.1", + "@unrs/resolver-binding-win32-arm64-msvc": "1.11.1", + "@unrs/resolver-binding-win32-ia32-msvc": "1.11.1", + "@unrs/resolver-binding-win32-x64-msvc": "1.11.1" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.4.tgz", + "integrity": "sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "peer": true, + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT", + "optional": true + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/uuid": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", + "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/v8-to-istanbul": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", + "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause", + "optional": true + }, + "node_modules/websocket-driver": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", + "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", + "license": "Apache-2.0", + "dependencies": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/websocket-extensions": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", + "license": "Apache-2.0", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", + "optional": true, + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", + "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-bigint": "^1.1.0", + "is-boolean-object": "^1.2.1", + "is-number-object": "^1.1.1", + "is-string": "^1.1.1", + "is-symbol": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-builtin-type": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", + "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "function.prototype.name": "^1.1.6", + "has-tostringtag": "^1.0.2", + "is-async-function": "^2.0.0", + "is-date-object": "^1.1.0", + "is-finalizationregistry": "^1.1.0", + "is-generator-function": "^1.0.10", + "is-regex": "^1.2.1", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.1.0", + "which-collection": "^1.0.2", + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", + "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-map": "^2.0.3", + "is-set": "^2.0.3", + "is-weakmap": "^2.0.2", + "is-weakset": "^2.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-typed-array": { + "version": "1.1.19", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", + "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", + "dev": true, + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "for-each": "^0.3.5", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", + "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", + "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "devOptional": true, + "license": "ISC" + }, + "node_modules/write-file-atomic": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-5.0.1.tgz", + "integrity": "sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==", + "dev": true, + "license": "ISC", + "peer": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "devOptional": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC", + "peer": true + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "devOptional": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/yargs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/functions/package.json b/functions/package.json new file mode 100644 index 00000000..a73e0414 --- /dev/null +++ b/functions/package.json @@ -0,0 +1,31 @@ +{ + "name": "functions", + "scripts": { + "lint": "eslint --ext .js,.ts .", + "build": "tsc", + "build:watch": "tsc --watch", + "serve": "npm run build && firebase emulators:start --only functions", + "shell": "npm run build && firebase functions:shell", + "start": "npm run shell", + "deploy": "firebase deploy --only functions", + "logs": "firebase functions:log" + }, + "engines": { + "node": "22" + }, + "main": "lib/index.js", + "dependencies": { + "firebase-admin": "^12.6.0", + "firebase-functions": "^6.0.1" + }, + "devDependencies": { + "@typescript-eslint/eslint-plugin": "^5.12.0", + "@typescript-eslint/parser": "^5.12.0", + "eslint": "^8.9.0", + "eslint-config-google": "^0.14.0", + "eslint-plugin-import": "^2.25.4", + "firebase-functions-test": "^3.1.0", + "typescript": "^5.7.3" + }, + "private": true +} diff --git a/functions/src/index.ts b/functions/src/index.ts new file mode 100644 index 00000000..99ec64ef --- /dev/null +++ b/functions/src/index.ts @@ -0,0 +1,243 @@ +/** + * Firebase Cloud Function for Mostro Mobile Push Notifications + * + * This function listens to Nostr relays for new kind 1059 (gift-wrapped) events + * and sends silent push notifications via FCM to wake up the mobile app. + * + * Privacy-preserving approach: + * - No event data sent via FCM + * - No user-to-token mapping needed + * - All devices receive the same empty notification + * - App fetches and decrypts events locally + */ + +import * as functions from "firebase-functions"; +import * as admin from "firebase-admin"; +import * as logger from "firebase-functions/logger"; +import {onSchedule} from "firebase-functions/v2/scheduler"; +import WebSocket from "ws"; + +// Initialize Firebase Admin SDK +admin.initializeApp(); + +// Configuration - Mostro relay from lib/core/config.dart +const NOSTR_RELAYS = [ + "wss://relay.mostro.network", +]; + +// FCM topic that all app instances subscribe to +const FCM_TOPIC = "mostro_notifications"; + +// Track last notification time to prevent spam (1 minute cooldown) +let lastNotificationTime = 0; +const NOTIFICATION_COOLDOWN_MS = 60 * 1000; // 1 minute + +// WebSocket connections to relays +const relayConnections = new Map(); + +// Subscription ID for tracking +const SUBSCRIPTION_ID = "mostro-listener"; + +/** + * Connects to a Nostr relay and subscribes to kind 1059 events + */ +function connectToRelay(relayUrl: string): void { + try { + logger.info(`Connecting to relay: ${relayUrl}`); + + const ws = new WebSocket(relayUrl); + + ws.on("open", () => { + logger.info(`Connected to ${relayUrl}`); + + // Subscribe to kind 1059 (gift-wrapped) events + // Only listen for events from the last 5 minutes to avoid processing old events + const fiveMinutesAgo = Math.floor(Date.now() / 1000) - 300; + + const subscriptionMessage = JSON.stringify([ + "REQ", + SUBSCRIPTION_ID, + { + kinds: [1059], + since: fiveMinutesAgo, + }, + ]); + + ws.send(subscriptionMessage); + logger.info(`Subscribed to kind 1059 events on ${relayUrl}`); + }); + + ws.on("message", (data: WebSocket.Data) => { + try { + const message = JSON.parse(data.toString()); + + // Check if this is an EVENT message + if (message[0] === "EVENT" && message[1] === SUBSCRIPTION_ID) { + const event = message[2]; + + // Verify it's a kind 1059 event + if (event.kind === 1059) { + logger.info(`Received kind 1059 event from ${relayUrl}`, { + eventId: event.id, + createdAt: event.created_at, + }); + + // Send FCM notification to wake up all devices + sendSilentPushNotification(); + } + } + } catch (error) { + logger.error(`Error processing message from ${relayUrl}:`, error); + } + }); + + ws.on("error", (error: Error) => { + logger.error(`WebSocket error on ${relayUrl}:`, error); + }); + + ws.on("close", () => { + logger.warn(`Connection closed to ${relayUrl}, reconnecting in 5 seconds...`); + relayConnections.delete(relayUrl); + + // Reconnect after 5 seconds + setTimeout(() => connectToRelay(relayUrl), 5000); + }); + + relayConnections.set(relayUrl, ws); + } catch (error) { + logger.error(`Failed to connect to ${relayUrl}:`, error); + + // Retry connection after 10 seconds + setTimeout(() => connectToRelay(relayUrl), 10000); + } +} + +/** + * Sends a silent push notification to all subscribed devices + * Uses FCM topic messaging to broadcast to all users + */ +async function sendSilentPushNotification(): Promise { + try { + // Check cooldown to prevent notification spam + const now = Date.now(); + if (now - lastNotificationTime < NOTIFICATION_COOLDOWN_MS) { + logger.info("Skipping notification due to cooldown"); + return; + } + + lastNotificationTime = now; + + // Send silent data-only message to FCM topic + const message = { + topic: FCM_TOPIC, + data: { + // Empty payload - just wake up the app + type: "silent_wake", + timestamp: now.toString(), + }, + android: { + priority: "high" as const, + // Silent notification - no sound, no vibration + notification: undefined, + }, + apns: { + headers: { + "apns-priority": "10", + }, + payload: { + aps: { + contentAvailable: true, + // Silent notification for iOS + sound: undefined, + }, + }, + }, + }; + + const response = await admin.messaging().send(message); + logger.info("Silent push notification sent successfully", { + messageId: response, + topic: FCM_TOPIC, + }); + } catch (error) { + logger.error("Error sending FCM notification:", error); + } +} + +/** + * HTTP endpoint to manually trigger a test notification + * Useful for testing the FCM setup + */ +export const sendTestNotification = functions.https.onRequest(async (_req, res) => { + try { + await sendSilentPushNotification(); + res.json({ success: true, message: "Test notification sent" }); + } catch (error) { + logger.error("Error in sendTestNotification:", error); + res.status(500).json({ success: false, error: String(error) }); + } +}); + +/** + * HTTP endpoint to get connection status + */ +export const getStatus = functions.https.onRequest((_req, res) => { + const status = { + connectedRelays: Array.from(relayConnections.keys()), + totalRelays: NOSTR_RELAYS.length, + lastNotificationTime: new Date(lastNotificationTime).toISOString(), + }; + + res.json(status); +}); + +/** + * Initialize relay connections when the function starts + * This keeps persistent WebSocket connections to Nostr relays + */ +export const startNostrListener = functions.https.onRequest((_req, res) => { + if (relayConnections.size === 0) { + logger.info("Starting Nostr relay listener..."); + + // Connect to all configured relays + NOSTR_RELAYS.forEach((relayUrl) => { + connectToRelay(relayUrl); + }); + + res.json({ + success: true, + message: "Nostr listener started", + relays: NOSTR_RELAYS, + }); + } else { + res.json({ + success: true, + message: "Nostr listener already running", + connectedRelays: Array.from(relayConnections.keys()), + }); + } +}); + +/** + * Scheduled function to keep connections alive + * Runs every 5 minutes to ensure connections are maintained + */ +export const keepAlive = onSchedule("every 5 minutes", async (_event) => { + logger.info("Keep-alive check running..."); + + // Check and reconnect to any disconnected relays + NOSTR_RELAYS.forEach((relayUrl) => { + if (!relayConnections.has(relayUrl)) { + logger.warn(`Relay ${relayUrl} is disconnected, reconnecting...`); + connectToRelay(relayUrl); + } + }); +}); + +// Auto-start connections when the module loads +// This ensures connections are established when the function is deployed +NOSTR_RELAYS.forEach((relayUrl) => { + connectToRelay(relayUrl); +}); + +logger.info("Mostro FCM Cloud Function initialized"); diff --git a/functions/tsconfig.dev.json b/functions/tsconfig.dev.json new file mode 100644 index 00000000..7560eed4 --- /dev/null +++ b/functions/tsconfig.dev.json @@ -0,0 +1,5 @@ +{ + "include": [ + ".eslintrc.js" + ] +} diff --git a/functions/tsconfig.json b/functions/tsconfig.json new file mode 100644 index 00000000..57b915f3 --- /dev/null +++ b/functions/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "NodeNext", + "esModuleInterop": true, + "moduleResolution": "nodenext", + "noImplicitReturns": true, + "noUnusedLocals": true, + "outDir": "lib", + "sourceMap": true, + "strict": true, + "target": "es2017" + }, + "compileOnSave": true, + "include": [ + "src" + ] +} diff --git a/lib/firebase_options.dart b/lib/firebase_options.dart index a1ac69f8..34302fe8 100644 --- a/lib/firebase_options.dart +++ b/lib/firebase_options.dart @@ -83,4 +83,5 @@ class DefaultFirebaseOptions { authDomain: 'mostro-test.firebaseapp.com', storageBucket: 'mostro-test.firebasestorage.app', ); -} + +} \ No newline at end of file diff --git a/lib/services/fcm_service.dart b/lib/services/fcm_service.dart index afd0e02d..9250a124 100644 --- a/lib/services/fcm_service.dart +++ b/lib/services/fcm_service.dart @@ -15,6 +15,7 @@ class FCMService { final FirebaseMessaging _messaging = FirebaseMessaging.instance; static const String _fcmTokenKey = 'fcm_token'; + static const String _fcmTopic = 'mostro_notifications'; bool _isInitialized = false; @@ -40,6 +41,9 @@ class FCMService { // Get and store initial FCM token await _getAndStoreToken(); + // Subscribe to topic for silent push notifications + await _subscribeToTopic(); + // Set up token refresh listener _setupTokenRefreshListener(); @@ -104,6 +108,16 @@ class FCMService { } } + /// Subscribes to the FCM topic for broadcast notifications + Future _subscribeToTopic() async { + try { + await _messaging.subscribeToTopic(_fcmTopic); + _logger.i('Subscribed to FCM topic: $_fcmTopic'); + } catch (e) { + _logger.e('Error subscribing to FCM topic: $e'); + } + } + /// Sets up a listener for FCM token refresh void _setupTokenRefreshListener() { _messaging.onTokenRefresh.listen( From 82255b8765d583c7438f7a663c7e83a241dbc275 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Wed, 5 Nov 2025 16:36:46 -0300 Subject: [PATCH 09/39] chore: add WebSocket dependency and implement notification batching --- functions/package-lock.json | 35 ++++++++++++++++++++++- functions/package.json | 4 ++- functions/src/index.ts | 56 ++++++++++++++++++++++++++++--------- 3 files changed, 80 insertions(+), 15 deletions(-) diff --git a/functions/package-lock.json b/functions/package-lock.json index b0c3a0b3..919e08f8 100644 --- a/functions/package-lock.json +++ b/functions/package-lock.json @@ -7,9 +7,11 @@ "name": "functions", "dependencies": { "firebase-admin": "^12.6.0", - "firebase-functions": "^6.0.1" + "firebase-functions": "^6.0.1", + "ws": "^8.18.3" }, "devDependencies": { + "@types/ws": "^8.18.1", "@typescript-eslint/eslint-plugin": "^5.12.0", "@typescript-eslint/parser": "^5.12.0", "eslint": "^8.9.0", @@ -2037,6 +2039,16 @@ "license": "MIT", "optional": true }, + "node_modules/@types/ws": { + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz", + "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@types/yargs": { "version": "17.0.34", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.34.tgz", @@ -9843,6 +9855,27 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, + "node_modules/ws": { + "version": "8.18.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz", + "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", diff --git a/functions/package.json b/functions/package.json index a73e0414..6c053b22 100644 --- a/functions/package.json +++ b/functions/package.json @@ -16,9 +16,11 @@ "main": "lib/index.js", "dependencies": { "firebase-admin": "^12.6.0", - "firebase-functions": "^6.0.1" + "firebase-functions": "^6.0.1", + "ws": "^8.18.3" }, "devDependencies": { + "@types/ws": "^8.18.1", "@typescript-eslint/eslint-plugin": "^5.12.0", "@typescript-eslint/parser": "^5.12.0", "eslint": "^8.9.0", diff --git a/functions/src/index.ts b/functions/src/index.ts index 99ec64ef..470ea269 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -32,6 +32,10 @@ const FCM_TOPIC = "mostro_notifications"; let lastNotificationTime = 0; const NOTIFICATION_COOLDOWN_MS = 60 * 1000; // 1 minute +// Batching mechanism to group multiple events within a short window +let batchTimeout: NodeJS.Timeout | null = null; +const BATCH_DELAY_MS = 5000; // 5 seconds - wait for more events + // WebSocket connections to relays const relayConnections = new Map(); @@ -40,6 +44,7 @@ const SUBSCRIPTION_ID = "mostro-listener"; /** * Connects to a Nostr relay and subscribes to kind 1059 events + * @param {string} relayUrl - The WebSocket URL of the Nostr relay */ function connectToRelay(relayUrl: string): void { try { @@ -51,7 +56,7 @@ function connectToRelay(relayUrl: string): void { logger.info(`Connected to ${relayUrl}`); // Subscribe to kind 1059 (gift-wrapped) events - // Only listen for events from the last 5 minutes to avoid processing old events + // Only listen for events from last 5 minutes to avoid old events const fiveMinutesAgo = Math.floor(Date.now() / 1000) - 300; const subscriptionMessage = JSON.stringify([ @@ -82,8 +87,8 @@ function connectToRelay(relayUrl: string): void { createdAt: event.created_at, }); - // Send FCM notification to wake up all devices - sendSilentPushNotification(); + // Trigger batched notification + triggerBatchedNotification(); } } } catch (error) { @@ -96,7 +101,9 @@ function connectToRelay(relayUrl: string): void { }); ws.on("close", () => { - logger.warn(`Connection closed to ${relayUrl}, reconnecting in 5 seconds...`); + logger.warn( + `Connection closed to ${relayUrl}, reconnecting in 5 seconds...` + ); relayConnections.delete(relayUrl); // Reconnect after 5 seconds @@ -112,6 +119,27 @@ function connectToRelay(relayUrl: string): void { } } +/** + * Triggers a batched notification + * Multiple events within BATCH_DELAY_MS window result in a single notification + */ +function triggerBatchedNotification(): void { + // If there's already a pending notification, don't create another + if (batchTimeout) { + logger.info("Event batched - notification already scheduled"); + return; + } + + // Schedule notification after delay to batch multiple events + batchTimeout = setTimeout(() => { + logger.info("Batch delay completed - sending notification"); + sendSilentPushNotification(); + batchTimeout = null; + }, BATCH_DELAY_MS); + + logger.info(`Notification scheduled in ${BATCH_DELAY_MS}ms`); +} + /** * Sends a silent push notification to all subscribed devices * Uses FCM topic messaging to broadcast to all users @@ -168,15 +196,17 @@ async function sendSilentPushNotification(): Promise { * HTTP endpoint to manually trigger a test notification * Useful for testing the FCM setup */ -export const sendTestNotification = functions.https.onRequest(async (_req, res) => { - try { - await sendSilentPushNotification(); - res.json({ success: true, message: "Test notification sent" }); - } catch (error) { - logger.error("Error in sendTestNotification:", error); - res.status(500).json({ success: false, error: String(error) }); +export const sendTestNotification = functions.https.onRequest( + async (_req, res) => { + try { + await sendSilentPushNotification(); + res.json({success: true, message: "Test notification sent"}); + } catch (error) { + logger.error("Error in sendTestNotification:", error); + res.status(500).json({success: false, error: String(error)}); + } } -}); +); /** * HTTP endpoint to get connection status @@ -222,7 +252,7 @@ export const startNostrListener = functions.https.onRequest((_req, res) => { * Scheduled function to keep connections alive * Runs every 5 minutes to ensure connections are maintained */ -export const keepAlive = onSchedule("every 5 minutes", async (_event) => { +export const keepAlive = onSchedule("every 5 minutes", async () => { logger.info("Keep-alive check running..."); // Check and reconnect to any disconnected relays From 297618abd1e797f5b04ff32bb85d67390a681f3e Mon Sep 17 00:00:00 2001 From: Catrya <140891948+Catrya@users.noreply.github.com> Date: Mon, 10 Nov 2025 13:30:49 -0600 Subject: [PATCH 10/39] feat: show notification when configured Lightning address is used (#349) - Add Lightning address usage detection in HoldInvoicePaymentAccepted - Search previous order confirmation messages for buyerInvoice - Display lightningAddressUsed notification for buy order makers - Use existing notification system for consistent UX - Only applies to buyers who used their configured Lightning address --- .../notfiers/abstract_mostro_notifier.dart | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/lib/features/order/notfiers/abstract_mostro_notifier.dart b/lib/features/order/notfiers/abstract_mostro_notifier.dart index acd56c63..e7744d86 100644 --- a/lib/features/order/notfiers/abstract_mostro_notifier.dart +++ b/lib/features/order/notfiers/abstract_mostro_notifier.dart @@ -264,6 +264,34 @@ class AbstractMostroNotifier extends StateNotifier { // Enable chat final chat = ref.read(chatRoomsProvider(orderId).notifier); chat.subscribe(); + + // Check if Lightning address was used and show notification + if (session.role == Role.buyer) { + try { + final storage = ref.read(mostroStorageProvider); + final messages = await storage.getAllMessagesForOrderId(orderId); + + // Find the order confirmation message (incoming Action.newOrder) + final orderConfirmation = messages + .where((m) => m.action == Action.newOrder) + .where((m) => m.getPayload()?.buyerInvoice != null) + .firstOrNull; + + if (orderConfirmation != null) { + final confirmationOrder = orderConfirmation.getPayload(); + final buyerInvoice = confirmationOrder?.buyerInvoice; + + if (buyerInvoice != null && _isValidLightningAddress(buyerInvoice)) { + // Show Lightning address used notification + final notificationNotifier = ref.read(notificationActionsProvider.notifier); + notificationNotifier.showCustomMessage('lightningAddressUsed'); + } + } + } catch (e) { + logger.w('Error checking lightning address usage: $e'); + // Fail silently, don't affect main functionality + } + } break; case Action.holdInvoicePaymentSettled: From d3f29a13a016120c36bc1678e2e19d5d39b5e753 Mon Sep 17 00:00:00 2001 From: Catrya <140891948+Catrya@users.noreply.github.com> Date: Thu, 13 Nov 2025 11:19:00 -0600 Subject: [PATCH 11/39] =?UTF-8?q?feat:=20improve=20countdown=20timer=20wit?= =?UTF-8?q?h=20order=5Fexpires=5Fat=20and=20dynamic=20scali=E2=80=A6=20(#3?= =?UTF-8?q?54)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: improve countdown timer with order_expires_at and dynamic scaling in pending orders - Use exact timestamps from order_expires_at tag for precise calculations - Add dynamic day/hour scaling: 14d 20h 06m (>24h) or HH:MM:SS (≤24h) - Refactor: Create shared DynamicCountdownWidget to remove duplication - Apply consistent behavior across TakeOrderScreen and TradeDetailScreen * fix: use int.tryParse for order_expires_at parsing and update documentation * fix: safe parsing for order countdown timestamps * fix: prevent countdown crashes with zero totals from short orders * update documentation * coderabbit suggestion * use expires_at --- CLAUDE.md | 16 +++- .../TIMEOUT_DETECTION_AND_SESSION_CLEANUP.md | 79 +++++++++++++++- lib/data/models/nostr_event.dart | 1 + lib/data/models/order.dart | 4 +- .../order/screens/take_order_screen.dart | 58 ++++-------- .../trades/screens/trade_detail_screen.dart | 41 ++------ .../widgets/dynamic_countdown_widget.dart | 93 +++++++++++++++++++ 7 files changed, 213 insertions(+), 79 deletions(-) create mode 100644 lib/shared/widgets/dynamic_countdown_widget.dart diff --git a/CLAUDE.md b/CLAUDE.md index f2e0a075..831889af 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -125,14 +125,14 @@ Automatic cleanup system that prevents sessions from becoming orphaned when Most - **Purpose**: Prevents orphan sessions when Mostro doesn't respond within 10 seconds - **Cleanup**: Deletes session, shows localized notification, navigates to order book - **Cancellation**: Timer automatically cancelled when any response received from Mostro -- **Implementation**: `AbstractMostroNotifier.startSessionTimeoutCleanup()` in `abstract_mostro_notifier.dart:286-305` +- **Implementation**: `AbstractMostroNotifier.startSessionTimeoutCleanup()` method in `abstract_mostro_notifier.dart` **Order Creation Protection**: - **Activation**: Started automatically when users create orders (`AddOrderNotifier.submitOrder`) - **Purpose**: Prevents orphan sessions when Mostro doesn't respond to new order creation within 10 seconds - **Cleanup**: Deletes temporary session, shows localized notification, navigates to order book - **Cancellation**: Timer automatically cancelled when any response received from Mostro -- **Implementation**: `AbstractMostroNotifier.startSessionTimeoutCleanupForRequestId()` in `abstract_mostro_notifier.dart` +- **Implementation**: `AbstractMostroNotifier.startSessionTimeoutCleanupForRequestId()` method in `abstract_mostro_notifier.dart` #### **Localized User Feedback** ``` @@ -245,6 +245,18 @@ When orders are canceled, Mostro sends `Action.canceled` gift wrap: - **Implementation**: Custom `timeAgoWithLocale()` method in NostrEvent extension - **Usage**: Automatically uses app's current locale for "hace X horas" vs "hours ago" +### Dynamic Countdown Timer System +- **DynamicCountdownWidget**: Intelligent countdown widget for pending orders with automatic day/hour scaling +- **Implementation**: Located in `lib/shared/widgets/dynamic_countdown_widget.dart` +- **Data Source**: Uses exact `order_expires_at` timestamps from Mostro protocol for precision +- **Dual Display Modes**: + - **Day Scale** (>24h remaining): Shows "14d 20h 06m" format with day-based circular progress + - **Hour Scale** (≤24h remaining): Shows "HH:MM:SS" format with hour-based circular progress +- **Automatic Transition**: Switches at exactly 24:00:00 remaining time +- **Localization**: Uses `S.of(context)!.timeLeftLabel()` for internationalized display +- **Scope**: Only for pending status orders; waiting orders use separate countdown system +- **Integration**: Shared across TakeOrderScreen and TradeDetailScreen for consistency + ## Relay Synchronization System ### Overview diff --git a/docs/architecture/TIMEOUT_DETECTION_AND_SESSION_CLEANUP.md b/docs/architecture/TIMEOUT_DETECTION_AND_SESSION_CLEANUP.md index aff433be..127ed433 100755 --- a/docs/architecture/TIMEOUT_DETECTION_AND_SESSION_CLEANUP.md +++ b/docs/architecture/TIMEOUT_DETECTION_AND_SESSION_CLEANUP.md @@ -306,12 +306,81 @@ final countdownTimeProvider = StreamProvider((ref) { - **Resource efficiency**: Single timer supports multiple subscribers - **Memory leak prevention**: Proper disposal handling -### Countdown UI Integration +### Dynamic Countdown Timer System + +The application now uses a unified `DynamicCountdownWidget` for all pending order countdown timers, providing intelligent scaling and precise timestamp calculations. + +#### **DynamicCountdownWidget Architecture** + +```dart +// lib/shared/widgets/dynamic_countdown_widget.dart +class DynamicCountdownWidget extends ConsumerWidget { + final DateTime expiration; + final DateTime createdAt; + + @override + Widget build(BuildContext context, WidgetRef ref) { + final remainingTime = expiration.isAfter(now) ? expiration.difference(now) : Duration.zero; + final useDayScale = remainingTime.inHours > 24; + + if (useDayScale) { + // Day scale: "14d 20h 06m" format for >24 hours + final daysLeft = (remainingTime.inHours / 24).floor(); + final hoursLeftInDay = remainingTime.inHours % 24; + final minutesLeftInHour = remainingTime.inMinutes % 60; + return CircularCountdown(countdownTotal: totalDays, countdownRemaining: daysLeft); + } else { + // Hour scale: "HH:MM:SS" format for ≤24 hours + final hoursLeft = remainingTime.inHours.clamp(0, totalHours); + final minutesLeft = remainingTime.inMinutes % 60; + final secondsLeft = remainingTime.inSeconds % 60; + return CircularCountdown(countdownTotal: totalHours, countdownRemaining: hoursLeft); + } + } +} +``` + +#### **Key Features** + +1. **Automatic Scaling**: Switches between day/hour formats based on remaining time +2. **Exact Timestamps**: Uses `expires_at` tag for precise calculations +3. **Dynamic Display**: + - **>24 hours**: Day scale with "14d 20h 06m" format + - **≤24 hours**: Hour scale with "HH:MM:SS" format +4. **Intelligent Rounding**: Circle divisions use intelligent rounding (28.2h → 28h, 23.7h → 24h) +5. **Shared Component**: Eliminates 96 lines of duplicated countdown code + +#### **Integration Points** + +**TakeOrderScreen Usage**: +```dart +// lib/features/order/screens/take_order_screen.dart - _buildCountDownTime method +return DynamicCountdownWidget( + expiration: DateTime.fromMillisecondsSinceEpoch(expiresAtTimestamp * 1000), + createdAt: order.createdAt!, +); +``` + +**TradeDetailScreen Usage**: +```dart +// lib/features/trades/screens/trade_detail_screen.dart - trade details widget tree +_CountdownWidget( + orderId: orderId, + tradeState: tradeState, + expiresAtTimestamp: orderPayload.expiresAt != null ? orderPayload.expiresAt! * 1000 : null, +), +``` + +#### **Scope and Limitations** + +- **Pending Orders Only**: DynamicCountdownWidget is specifically designed for orders in `Status.pending` +- **Waiting Orders Use Different System**: Orders in `Status.waitingBuyerInvoice` and `Status.waitingPayment` use separate countdown logic based on `expirationSeconds` + message timestamps +- **Data Source**: Uses `expires_at` Nostr tag for exact expiration timestamps rather than calculated values #### **Real-time Countdown Widget** ```dart -// lib/features/trades/screens/trade_detail_screen.dart - Lines 862-1062 +// lib/features/trades/screens/trade_detail_screen.dart - _CountdownWidget class class _CountdownWidget extends ConsumerWidget { @override Widget build(BuildContext context, WidgetRef ref) { @@ -344,7 +413,7 @@ class _CountdownWidget extends ConsumerWidget { The countdown displays different behaviors based on order status: ```dart -// Lines 916-1023: Countdown logic by order status +// _buildCountDownTime method: Countdown logic by order status Widget? _buildCountDownTime(BuildContext context, WidgetRef ref, OrderState tradeState, List messages, int? expiresAtTimestamp) { @@ -406,7 +475,7 @@ Widget? _buildCountDownTime(BuildContext context, WidgetRef ref, #### **Message State Detection** ```dart -// Lines 1025-1050: Find the message that caused the current state +// _findMessageForState method: Find the message that caused the current state MostroMessage? _findMessageForState(List messages, Status status) { // Sort messages by timestamp (most recent first) final sortedMessages = List.from(messages) @@ -728,7 +797,7 @@ The system automatically starts cleanup timers for both order creation and order When users take orders, a cleanup timer is automatically started to prevent sessions from becoming orphaned if Mostro doesn't respond: ```dart -// lib/features/order/notfiers/abstract_mostro_notifier.dart:286-305 +// lib/features/order/notfiers/abstract_mostro_notifier.dart - startSessionTimeoutCleanup method static void startSessionTimeoutCleanup(String orderId, Ref ref) { // Cancel existing timer if any _sessionTimeouts[orderId]?.cancel(); diff --git a/lib/data/models/nostr_event.dart b/lib/data/models/nostr_event.dart index ffa8e57d..e39d5190 100644 --- a/lib/data/models/nostr_event.dart +++ b/lib/data/models/nostr_event.dart @@ -39,6 +39,7 @@ extension NostrEventExtensions on NostrEvent { String? timeAgoWithLocale(String? locale) => _timeAgo(_getTagValue('expiration'), locale); DateTime get expirationDate => _getTimeStamp(_getTagValue('expiration')!); + String? get expiresAt => _getTagValue('expires_at'); String? get platform => _getTagValue('y'); String get type => _getTagValue('z')!; diff --git a/lib/data/models/order.dart b/lib/data/models/order.dart index d0a75304..8e086a52 100644 --- a/lib/data/models/order.dart +++ b/lib/data/models/order.dart @@ -192,7 +192,9 @@ class Order implements Payload { paymentMethod: event.paymentMethods.join(','), premium: event.premium as int, createdAt: event.createdAt as int, - expiresAt: event.expiration as int?, + expiresAt: event.expiresAt != null + ? int.tryParse(event.expiresAt!) + : null, ); } diff --git a/lib/features/order/screens/take_order_screen.dart b/lib/features/order/screens/take_order_screen.dart index 8ae04279..065bd6ce 100644 --- a/lib/features/order/screens/take_order_screen.dart +++ b/lib/features/order/screens/take_order_screen.dart @@ -1,4 +1,3 @@ -import 'package:circular_countdown/circular_countdown.dart'; import 'package:dart_nostr/nostr/model/event/event.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; @@ -18,8 +17,8 @@ import 'package:mostro_mobile/shared/providers/exchange_service_provider.dart'; import 'package:mostro_mobile/shared/utils/currency_utils.dart'; import 'package:mostro_mobile/shared/widgets/custom_card.dart'; -import 'package:mostro_mobile/features/mostro/mostro_instance.dart'; import 'package:mostro_mobile/shared/providers/time_provider.dart'; +import 'package:mostro_mobile/shared/widgets/dynamic_countdown_widget.dart'; import 'package:mostro_mobile/generated/l10n.dart'; class TakeOrderScreen extends ConsumerStatefulWidget { @@ -88,7 +87,7 @@ class _TakeOrderScreenState extends ConsumerState { _buildCreatorReputation(order), const SizedBox(height: 24), _CountdownWidget( - expirationDate: order.expirationDate, + order: order, ), const SizedBox(height: 36), _buildActionButtons(context, ref, order), @@ -443,10 +442,10 @@ class _TakeOrderScreenState extends ConsumerState { /// Widget that displays a real-time countdown timer for pending orders class _CountdownWidget extends ConsumerWidget { - final DateTime expirationDate; + final NostrEvent order; const _CountdownWidget({ - required this.expirationDate, + required this.order, }); @override @@ -456,7 +455,7 @@ class _CountdownWidget extends ConsumerWidget { return timeAsync.when( data: (currentTime) { - return _buildCountDownTime(context, ref, expirationDate); + return _buildCountDownTime(context, ref, order); }, loading: () => const CircularProgressIndicator(), error: (error, stack) => const SizedBox.shrink(), @@ -464,47 +463,26 @@ class _CountdownWidget extends ConsumerWidget { } Widget _buildCountDownTime( - BuildContext context, WidgetRef ref, DateTime expiration) { - Duration countdown = Duration(hours: 0); - final now = DateTime.now(); - - // Handle edge case: expiration in the past - if (expiration.isBefore(now.subtract(const Duration(hours: 1)))) { - // If expiration is more than 1 hour in the past, likely invalid + BuildContext context, WidgetRef ref, NostrEvent order) { + // Use exact timestamps from expires_at + if (order.expiresAt == null) { + // No valid expiration timestamp available return const SizedBox.shrink(); } - if (expiration.isAfter(now)) { - countdown = expiration.difference(now); + final expiresAtSeconds = int.tryParse(order.expiresAt.toString()); + if (expiresAtSeconds == null || expiresAtSeconds <= 0) { + return const SizedBox.shrink(); } - - // Get dynamic expiration hours from Mostro instance - final mostroInstance = ref.read(orderRepositoryProvider).mostroInstance; - final maxOrderHours = - mostroInstance?.expirationHours ?? 24; // fallback to 24 hours - - // Validate expiration hours - if (maxOrderHours <= 0 || maxOrderHours > 168) { - // Max 1 week + final expiration = DateTime.fromMillisecondsSinceEpoch(expiresAtSeconds * 1000); + final createdAt = order.createdAt; + if (createdAt == null) { return const SizedBox.shrink(); } - final hoursLeft = countdown.inHours.clamp(0, maxOrderHours); - final minutesLeft = countdown.inMinutes % 60; - final secondsLeft = countdown.inSeconds % 60; - - final formattedTime = - '${hoursLeft.toString().padLeft(2, '0')}:${minutesLeft.toString().padLeft(2, '0')}:${secondsLeft.toString().padLeft(2, '0')}'; - - return Column( - children: [ - CircularCountdown( - countdownTotal: maxOrderHours, - countdownRemaining: hoursLeft, - ), - const SizedBox(height: 16), - Text(S.of(context)!.timeLeftLabel(formattedTime)), - ], + return DynamicCountdownWidget( + expiration: expiration, + createdAt: createdAt, ); } } diff --git a/lib/features/trades/screens/trade_detail_screen.dart b/lib/features/trades/screens/trade_detail_screen.dart index 668f1fb8..67394bd2 100644 --- a/lib/features/trades/screens/trade_detail_screen.dart +++ b/lib/features/trades/screens/trade_detail_screen.dart @@ -23,6 +23,7 @@ import 'package:mostro_mobile/features/mostro/mostro_instance.dart'; import 'package:mostro_mobile/shared/providers/mostro_storage_provider.dart'; import 'package:mostro_mobile/data/models/mostro_message.dart'; import 'package:mostro_mobile/shared/providers/time_provider.dart'; +import 'package:mostro_mobile/shared/widgets/dynamic_countdown_widget.dart'; import 'package:mostro_mobile/features/disputes/providers/dispute_providers.dart'; import 'package:mostro_mobile/generated/l10n.dart'; @@ -978,19 +979,14 @@ class _CountdownWidget extends ConsumerWidget { // Show countdown ONLY for these 3 specific statuses if (status == Status.pending) { - // Pending orders: use expirationHours - final expHours = - mostroInstance?.expirationHours ?? 24; // 24 hours fallback - final countdownDuration = Duration(hours: expHours); - - // Handle edge case: invalid timestamp - if (expiresAtTimestamp != null && expiresAtTimestamp <= 0) { - expiresAtTimestamp = null; + // Pending orders: use exact timestamps from expires_at + if (expiresAtTimestamp == null || expiresAtTimestamp <= 0) { + // No valid expiration timestamp available + return null; } - final expiration = expiresAtTimestamp != null - ? DateTime.fromMillisecondsSinceEpoch(expiresAtTimestamp) - : now.add(countdownDuration); + final expiration = DateTime.fromMillisecondsSinceEpoch(expiresAtTimestamp); + final createdAt = DateTime.fromMillisecondsSinceEpoch((tradeState.order?.createdAt ?? 0) * 1000); // Handle edge case: expiration in the past if (expiration.isBefore(now.subtract(const Duration(hours: 1)))) { @@ -998,26 +994,9 @@ class _CountdownWidget extends ConsumerWidget { return null; } - final Duration difference = expiration.isAfter(now) - ? expiration.difference(now) - : const Duration(); - - final hoursLeft = difference.inHours.clamp(0, expHours); - final minutesLeft = difference.inMinutes % 60; - final secondsLeft = difference.inSeconds % 60; - - final formattedTime = - '${hoursLeft.toString().padLeft(2, '0')}:${minutesLeft.toString().padLeft(2, '0')}:${secondsLeft.toString().padLeft(2, '0')}'; - - return Column( - children: [ - CircularCountdown( - countdownTotal: expHours, - countdownRemaining: hoursLeft, - ), - const SizedBox(height: 16), - Text(S.of(context)!.timeLeftLabel(formattedTime)), - ], + return DynamicCountdownWidget( + expiration: expiration, + createdAt: createdAt, ); } else if (status == Status.waitingBuyerInvoice || status == Status.waitingPayment) { diff --git a/lib/shared/widgets/dynamic_countdown_widget.dart b/lib/shared/widgets/dynamic_countdown_widget.dart new file mode 100644 index 00000000..4d762af6 --- /dev/null +++ b/lib/shared/widgets/dynamic_countdown_widget.dart @@ -0,0 +1,93 @@ +import 'package:circular_countdown/circular_countdown.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:mostro_mobile/generated/l10n.dart'; + +/// Shared countdown widget for orders in PENDING status only +/// +/// Displays a dynamic circular countdown timer that automatically scales between day/hour modes: +/// - >24 hours remaining: Day scale showing "14d 20h 06m" format +/// - ≤24 hours remaining: Hour scale showing "HH:MM:SS" format +/// +/// Uses exact timestamps from expires_at tag for precise calculations. +/// +/// Note: Orders in waiting status (waitingBuyerInvoice, waitingPayment) use +/// a different countdown system based on expirationSeconds + message timestamps. +class DynamicCountdownWidget extends ConsumerWidget { + final DateTime expiration; + final DateTime createdAt; + + const DynamicCountdownWidget({ + super.key, + required this.expiration, + required this.createdAt, + }); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final now = DateTime.now(); + + // Handle edge case: expiration in the past + if (expiration.isBefore(now.subtract(const Duration(hours: 1)))) { + // If expiration is more than 1 hour in the past, likely invalid + return const SizedBox.shrink(); + } + + // Calculate total duration and remaining time + final totalDuration = expiration.difference(createdAt); + + // Early return if expiration is at or before creation time + if (expiration.isAtSameMomentAs(createdAt) || expiration.isBefore(createdAt)) { + return const SizedBox.shrink(); + } + + final Duration remainingTime = expiration.isAfter(now) + ? expiration.difference(now) + : const Duration(); + + // Determine if we should use day scale (>24 hours remaining) or hour scale (≤24 hours) + final remainingHours = remainingTime.inHours; + final useDayScale = remainingHours > 24; + + if (useDayScale) { + // DAY SCALE: Show days and hours + final totalDays = ((totalDuration.inSeconds + 86399) ~/ 86400).clamp(1, double.infinity).toInt(); + final daysLeft = ((remainingTime.inHours / 24).floor()).clamp(0, totalDays); + final hoursLeftInDay = remainingTime.inHours % 24; + + final minutesLeftInHour = remainingTime.inMinutes % 60; + final formattedTime = '${daysLeft}d ${hoursLeftInDay}h ${minutesLeftInHour.toString().padLeft(2, '0')}m'; + + return Column( + children: [ + CircularCountdown( + countdownTotal: totalDays, + countdownRemaining: daysLeft, + ), + const SizedBox(height: 16), + Text(S.of(context)!.timeLeftLabel(formattedTime)), + ], + ); + } else { + // HOUR SCALE: Show hours, minutes, seconds (≤24 hours remaining) + final totalHours = ((totalDuration.inSeconds + 3599) ~/ 3600).clamp(1, double.infinity).toInt(); + final hoursLeft = remainingTime.inHours.clamp(0, totalHours); + final minutesLeft = remainingTime.inMinutes % 60; + final secondsLeft = remainingTime.inSeconds % 60; + + final formattedTime = + '${hoursLeft.toString().padLeft(2, '0')}:${minutesLeft.toString().padLeft(2, '0')}:${secondsLeft.toString().padLeft(2, '0')}'; + + return Column( + children: [ + CircularCountdown( + countdownTotal: totalHours, + countdownRemaining: hoursLeft, + ), + const SizedBox(height: 16), + Text(S.of(context)!.timeLeftLabel(formattedTime)), + ], + ); + } + } +} \ No newline at end of file From c6347a62d010812643d1d8dab7c7e29f5dc3ee9a Mon Sep 17 00:00:00 2001 From: grunch Date: Thu, 13 Nov 2025 16:55:05 -0300 Subject: [PATCH 12/39] bumps to v1.0.4 --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index da133ac1..4206eb06 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.3 +version: 1.0.4 environment: sdk: ^3.5.3 From 8e3ba7d2dace77c8c90eb02f3cff420da701c2df Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Mon, 10 Nov 2025 13:31:11 -0300 Subject: [PATCH 13/39] refactor: Change NostrFilter from authors to p tag for gift-wrapped events --- .../services/background_notification_service.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/features/notifications/services/background_notification_service.dart b/lib/features/notifications/services/background_notification_service.dart index 2dd745a0..d412f1a7 100644 --- a/lib/features/notifications/services/background_notification_service.dart +++ b/lib/features/notifications/services/background_notification_service.dart @@ -341,9 +341,11 @@ Future fetchAndProcessNewEvents({required List relays}) async { for (final session in sessions) { try { // Create filter for this session's events + // Use 'p' tag to filter by recipient (the trade key that can decrypt the event) + // Note: 'authors' would filter by sender, but we need events sent TO this trade key final filter = NostrFilter( kinds: [1059], // Gift-wrapped events - authors: [session.tradeKey.public], // Events for this trade key + p: [session.tradeKey.public], // Events sent to this trade key since: since, ); From 0b6d20a239366f5f9e5b0f5822ddd0aa89acd66d Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Mon, 10 Nov 2025 17:29:46 -0300 Subject: [PATCH 14/39] chore: remove peer dependency flags from package-lock.json fix: bakcground and fcm service --- functions/package-lock.json | 369 +++--------------- functions/src/index.ts | 17 +- .../background_notification_service.dart | 30 +- lib/services/fcm_service.dart | 45 ++- 4 files changed, 139 insertions(+), 322 deletions(-) diff --git a/functions/package-lock.json b/functions/package-lock.json index 919e08f8..61ae1d11 100644 --- a/functions/package-lock.json +++ b/functions/package-lock.json @@ -30,7 +30,6 @@ "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-validator-identifier": "^7.27.1", "js-tokens": "^4.0.0", @@ -46,7 +45,6 @@ "integrity": "sha512-6uFXyCayocRbqhZOB+6XcuZbkMNimwfVGFji8CTZnCzOHVGvDqzvitu1re2AU5LROliz7eQPhB8CpAMvnx9EjA==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=6.9.0" } @@ -89,7 +87,6 @@ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "license": "ISC", - "peer": true, "bin": { "semver": "bin/semver.js" } @@ -100,7 +97,6 @@ "integrity": "sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/parser": "^7.28.5", "@babel/types": "^7.28.5", @@ -118,7 +114,6 @@ "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/compat-data": "^7.27.2", "@babel/helper-validator-option": "^7.27.1", @@ -136,7 +131,6 @@ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "license": "ISC", - "peer": true, "bin": { "semver": "bin/semver.js" } @@ -147,7 +141,6 @@ "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=6.9.0" } @@ -158,7 +151,6 @@ "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/traverse": "^7.27.1", "@babel/types": "^7.27.1" @@ -173,7 +165,6 @@ "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-module-imports": "^7.27.1", "@babel/helper-validator-identifier": "^7.27.1", @@ -192,7 +183,6 @@ "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=6.9.0" } @@ -203,7 +193,6 @@ "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=6.9.0" } @@ -214,7 +203,6 @@ "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=6.9.0" } @@ -225,7 +213,6 @@ "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=6.9.0" } @@ -236,7 +223,6 @@ "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/template": "^7.27.2", "@babel/types": "^7.28.4" @@ -251,7 +237,6 @@ "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/types": "^7.28.5" }, @@ -268,7 +253,6 @@ "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -282,7 +266,6 @@ "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -296,7 +279,6 @@ "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" }, @@ -310,7 +292,6 @@ "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -327,7 +308,6 @@ "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.27.1" }, @@ -344,7 +324,6 @@ "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -358,7 +337,6 @@ "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -372,7 +350,6 @@ "integrity": "sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.27.1" }, @@ -389,7 +366,6 @@ "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -403,7 +379,6 @@ "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -417,7 +392,6 @@ "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -431,7 +405,6 @@ "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -445,7 +418,6 @@ "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -459,7 +431,6 @@ "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -473,7 +444,6 @@ "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -490,7 +460,6 @@ "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -507,7 +476,6 @@ "integrity": "sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-plugin-utils": "^7.27.1" }, @@ -524,7 +492,6 @@ "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@babel/parser": "^7.27.2", @@ -540,7 +507,6 @@ "integrity": "sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@babel/generator": "^7.28.5", @@ -560,7 +526,6 @@ "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.28.5" @@ -574,8 +539,7 @@ "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/@emnapi/core": { "version": "1.7.0", @@ -584,7 +548,6 @@ "dev": true, "license": "MIT", "optional": true, - "peer": true, "dependencies": { "@emnapi/wasi-threads": "1.1.0", "tslib": "^2.4.0" @@ -597,7 +560,6 @@ "dev": true, "license": "MIT", "optional": true, - "peer": true, "dependencies": { "tslib": "^2.4.0" } @@ -609,7 +571,6 @@ "dev": true, "license": "MIT", "optional": true, - "peer": true, "dependencies": { "tslib": "^2.4.0" } @@ -952,7 +913,6 @@ "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", "dev": true, "license": "ISC", - "peer": true, "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", @@ -971,7 +931,6 @@ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -985,7 +944,6 @@ "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-regex": "^6.0.1" }, @@ -1002,7 +960,6 @@ "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", "dev": true, "license": "ISC", - "peer": true, "dependencies": { "camelcase": "^5.3.1", "find-up": "^4.1.0", @@ -1020,7 +977,6 @@ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "sprintf-js": "~1.0.2" } @@ -1031,7 +987,6 @@ "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -1046,7 +1001,6 @@ "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -1061,7 +1015,6 @@ "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "p-locate": "^4.1.0" }, @@ -1075,7 +1028,6 @@ "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "p-try": "^2.0.0" }, @@ -1092,7 +1044,6 @@ "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "p-limit": "^2.2.0" }, @@ -1106,7 +1057,6 @@ "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -1117,7 +1067,6 @@ "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -1128,7 +1077,6 @@ "integrity": "sha512-+O1ifRjkvYIkBqASKWgLxrpEhQAAE7hY77ALLUufSk5717KfOShg6IbqLmdsLMPdUiFvA2kTs0R7YZy+l0IzZQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -1147,7 +1095,6 @@ "integrity": "sha512-03W6IhuhjqTlpzh/ojut/pDB2LPRygyWX8ExpgHtQA8H/3K7+1vKmcINx5UzeOX1se6YEsBsOHQ1CRzf3fOwTQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/console": "30.2.0", "@jest/pattern": "30.0.1", @@ -1196,7 +1143,6 @@ "integrity": "sha512-n5H8QLDJ47QqbCNn5SuFjCRDrOLEZ0h8vAHCK5RL9Ls7Xa8AQLa/YxAc9UjFqoEDM48muwtBGjtMY5cr0PLDCw==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } @@ -1207,7 +1153,6 @@ "integrity": "sha512-/QPTL7OBJQ5ac09UDRa3EQes4gt1FTEG/8jZ/4v5IVzx+Cv7dLxlVIvfvSVRiiX2drWyXeBjkMSR8hvOWSog5g==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/fake-timers": "30.2.0", "@jest/types": "30.2.0", @@ -1224,7 +1169,6 @@ "integrity": "sha512-V9yxQK5erfzx99Sf+7LbhBwNWEZ9eZay8qQ9+JSC0TrMR1pMDHLMY+BnVPacWU6Jamrh252/IKo4F1Xn/zfiqA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "expect": "30.2.0", "jest-snapshot": "30.2.0" @@ -1239,7 +1183,6 @@ "integrity": "sha512-1JnRfhqpD8HGpOmQp180Fo9Zt69zNtC+9lR+kT7NVL05tNXIi+QC8Csz7lfidMoVLPD3FnOtcmp0CEFnxExGEA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/get-type": "30.1.0" }, @@ -1253,7 +1196,6 @@ "integrity": "sha512-HI3tRLjRxAbBy0VO8dqqm7Hb2mIa8d5bg/NJkyQcOk7V118ObQML8RC5luTF/Zsg4474a+gDvhce7eTnP4GhYw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/types": "30.2.0", "@sinonjs/fake-timers": "^13.0.0", @@ -1272,7 +1214,6 @@ "integrity": "sha512-eMbZE2hUnx1WV0pmURZY9XoXPkUYjpc55mb0CrhtdWLtzMQPFvu/rZkTLZFTsdaVQa+Tr4eWAteqcUzoawq/uA==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } @@ -1283,7 +1224,6 @@ "integrity": "sha512-b63wmnKPaK+6ZZfpYhz9K61oybvbI1aMcIs80++JI1O1rR1vaxHUCNqo3ITu6NU0d4V34yZFoHMn/uoKr/Rwfw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/environment": "30.2.0", "@jest/expect": "30.2.0", @@ -1300,7 +1240,6 @@ "integrity": "sha512-gWp7NfQW27LaBQz3TITS8L7ZCQ0TLvtmI//4OwlQRx4rnWxcPNIYjxZpDcN4+UlGxgm3jS5QPz8IPTCkb59wZA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@types/node": "*", "jest-regex-util": "30.0.1" @@ -1315,7 +1254,6 @@ "integrity": "sha512-DRyW6baWPqKMa9CzeiBjHwjd8XeAyco2Vt8XbcLFjiwCOEKOvy82GJ8QQnJE9ofsxCMPjH4MfH8fCWIHHDKpAQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@bcoe/v8-coverage": "^0.2.3", "@jest/console": "30.2.0", @@ -1359,7 +1297,6 @@ "integrity": "sha512-DmdYgtezMkh3cpU8/1uyXakv3tJRcmcXxBOcO0tbaozPwpmh4YMsnWrQm9ZmZMfa5ocbxzbFk6O4bDPEc/iAnA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@sinclair/typebox": "^0.34.0" }, @@ -1373,7 +1310,6 @@ "integrity": "sha512-0aVxM3RH6DaiLcjj/b0KrIBZhSX1373Xci4l3cW5xiUWPctZ59zQ7jj4rqcJQ/Z8JuN/4wX3FpJSa3RssVvCug==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/types": "30.2.0", "chalk": "^4.1.2", @@ -1390,7 +1326,6 @@ "integrity": "sha512-MIRWMUUR3sdbP36oyNyhbThLHyJ2eEDClPCiHVbrYAe5g3CHRArIVpBw7cdSB5fr+ofSfIb2Tnsw8iEHL0PYQg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jridgewell/trace-mapping": "^0.3.25", "callsites": "^3.1.0", @@ -1406,7 +1341,6 @@ "integrity": "sha512-RF+Z+0CCHkARz5HT9mcQCBulb1wgCP3FBvl9VFokMX27acKphwyQsNuWH3c+ojd1LeWBLoTYoxF0zm6S/66mjg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/console": "30.2.0", "@jest/types": "30.2.0", @@ -1423,7 +1357,6 @@ "integrity": "sha512-wXKgU/lk8fKXMu/l5Hog1R61bL4q5GCdT6OJvdAFz1P+QrpoFuLU68eoKuVc4RbrTtNnTL5FByhWdLgOPSph+Q==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/test-result": "30.2.0", "graceful-fs": "^4.2.11", @@ -1440,7 +1373,6 @@ "integrity": "sha512-XsauDV82o5qXbhalKxD7p4TZYYdwcaEXC77PPD2HixEFF+6YGppjrAAQurTl2ECWcEomHBMMNS9AH3kcCFx8jA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/core": "^7.27.4", "@jest/types": "30.2.0", @@ -1468,7 +1400,6 @@ "integrity": "sha512-H9xg1/sfVvyfU7o3zMfBEjQ1gcsdeTMgqHoYdN79tuLqfTtuu7WckRA1R5whDwOzxaZAeMKTYWqP+WCAi0CHsg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/pattern": "30.0.1", "@jest/schemas": "30.0.5", @@ -1488,7 +1419,6 @@ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" @@ -1500,7 +1430,6 @@ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" @@ -1512,7 +1441,6 @@ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=6.0.0" } @@ -1522,8 +1450,7 @@ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.31", @@ -1531,7 +1458,6 @@ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" @@ -1555,7 +1481,6 @@ "dev": true, "license": "MIT", "optional": true, - "peer": true, "dependencies": { "@emnapi/core": "^1.4.3", "@emnapi/runtime": "^1.4.3", @@ -1617,7 +1542,6 @@ "dev": true, "license": "MIT", "optional": true, - "peer": true, "engines": { "node": ">=14" } @@ -1628,7 +1552,6 @@ "integrity": "sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": "^12.20.0 || ^14.18.0 || >=16.0.0" }, @@ -1712,8 +1635,7 @@ "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.34.41.tgz", "integrity": "sha512-6gS8pZzSXdyRHTIqoqSVknxolr1kzfy4/CeDnrzsVz8TTIWUbOBr6gnzOmTYJ3eXQNh4IYHIGi5aIL7sOZ2G/g==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/@sinonjs/commons": { "version": "3.0.1", @@ -1721,7 +1643,6 @@ "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", "dev": true, "license": "BSD-3-Clause", - "peer": true, "dependencies": { "type-detect": "4.0.8" } @@ -1732,7 +1653,6 @@ "integrity": "sha512-36/hTbH2uaWuGVERyC6da9YwGWnzUZXuPro/F2LfsdOsLnCojz/iSH8MxUt/FD2S5XBSVPhmArFUXcpCQ2Hkiw==", "dev": true, "license": "BSD-3-Clause", - "peer": true, "dependencies": { "@sinonjs/commons": "^3.0.1" } @@ -1754,7 +1674,6 @@ "dev": true, "license": "MIT", "optional": true, - "peer": true, "dependencies": { "tslib": "^2.4.0" } @@ -1765,7 +1684,6 @@ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7", @@ -1780,7 +1698,6 @@ "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/types": "^7.0.0" } @@ -1791,7 +1708,6 @@ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/parser": "^7.1.0", "@babel/types": "^7.0.0" @@ -1803,7 +1719,6 @@ "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/types": "^7.28.2" } @@ -1878,8 +1793,7 @@ "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/@types/istanbul-lib-report": { "version": "3.0.3", @@ -1887,7 +1801,6 @@ "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@types/istanbul-lib-coverage": "*" } @@ -1898,7 +1811,6 @@ "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@types/istanbul-lib-report": "*" } @@ -2029,8 +1941,7 @@ "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/@types/tough-cookie": { "version": "4.0.5", @@ -2055,7 +1966,6 @@ "integrity": "sha512-KExbHVa92aJpw9WDQvzBaGVE2/Pz+pLZQloT2hjL8IqsZnV62rlPOYvNnLmf/L2dyllfVUOVBj64M0z/46eR2A==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@types/yargs-parser": "*" } @@ -2065,8 +1975,7 @@ "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { "version": "5.62.0", @@ -2109,6 +2018,7 @@ "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==", "dev": true, "license": "BSD-2-Clause", + "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "5.62.0", "@typescript-eslint/types": "5.62.0", @@ -2283,8 +2193,7 @@ "optional": true, "os": [ "android" - ], - "peer": true + ] }, "node_modules/@unrs/resolver-binding-android-arm64": { "version": "1.11.1", @@ -2298,8 +2207,7 @@ "optional": true, "os": [ "android" - ], - "peer": true + ] }, "node_modules/@unrs/resolver-binding-darwin-arm64": { "version": "1.11.1", @@ -2313,8 +2221,7 @@ "optional": true, "os": [ "darwin" - ], - "peer": true + ] }, "node_modules/@unrs/resolver-binding-darwin-x64": { "version": "1.11.1", @@ -2328,8 +2235,7 @@ "optional": true, "os": [ "darwin" - ], - "peer": true + ] }, "node_modules/@unrs/resolver-binding-freebsd-x64": { "version": "1.11.1", @@ -2343,8 +2249,7 @@ "optional": true, "os": [ "freebsd" - ], - "peer": true + ] }, "node_modules/@unrs/resolver-binding-linux-arm-gnueabihf": { "version": "1.11.1", @@ -2358,8 +2263,7 @@ "optional": true, "os": [ "linux" - ], - "peer": true + ] }, "node_modules/@unrs/resolver-binding-linux-arm-musleabihf": { "version": "1.11.1", @@ -2373,8 +2277,7 @@ "optional": true, "os": [ "linux" - ], - "peer": true + ] }, "node_modules/@unrs/resolver-binding-linux-arm64-gnu": { "version": "1.11.1", @@ -2388,8 +2291,7 @@ "optional": true, "os": [ "linux" - ], - "peer": true + ] }, "node_modules/@unrs/resolver-binding-linux-arm64-musl": { "version": "1.11.1", @@ -2403,8 +2305,7 @@ "optional": true, "os": [ "linux" - ], - "peer": true + ] }, "node_modules/@unrs/resolver-binding-linux-ppc64-gnu": { "version": "1.11.1", @@ -2418,8 +2319,7 @@ "optional": true, "os": [ "linux" - ], - "peer": true + ] }, "node_modules/@unrs/resolver-binding-linux-riscv64-gnu": { "version": "1.11.1", @@ -2433,8 +2333,7 @@ "optional": true, "os": [ "linux" - ], - "peer": true + ] }, "node_modules/@unrs/resolver-binding-linux-riscv64-musl": { "version": "1.11.1", @@ -2448,8 +2347,7 @@ "optional": true, "os": [ "linux" - ], - "peer": true + ] }, "node_modules/@unrs/resolver-binding-linux-s390x-gnu": { "version": "1.11.1", @@ -2463,8 +2361,7 @@ "optional": true, "os": [ "linux" - ], - "peer": true + ] }, "node_modules/@unrs/resolver-binding-linux-x64-gnu": { "version": "1.11.1", @@ -2478,8 +2375,7 @@ "optional": true, "os": [ "linux" - ], - "peer": true + ] }, "node_modules/@unrs/resolver-binding-linux-x64-musl": { "version": "1.11.1", @@ -2493,8 +2389,7 @@ "optional": true, "os": [ "linux" - ], - "peer": true + ] }, "node_modules/@unrs/resolver-binding-wasm32-wasi": { "version": "1.11.1", @@ -2506,7 +2401,6 @@ "dev": true, "license": "MIT", "optional": true, - "peer": true, "dependencies": { "@napi-rs/wasm-runtime": "^0.2.11" }, @@ -2526,8 +2420,7 @@ "optional": true, "os": [ "win32" - ], - "peer": true + ] }, "node_modules/@unrs/resolver-binding-win32-ia32-msvc": { "version": "1.11.1", @@ -2541,8 +2434,7 @@ "optional": true, "os": [ "win32" - ], - "peer": true + ] }, "node_modules/@unrs/resolver-binding-win32-x64-msvc": { "version": "1.11.1", @@ -2556,8 +2448,7 @@ "optional": true, "os": [ "win32" - ], - "peer": true + ] }, "node_modules/abort-controller": { "version": "3.0.0", @@ -2591,6 +2482,7 @@ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "dev": true, "license": "MIT", + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -2641,7 +2533,6 @@ "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "type-fest": "^0.21.3" }, @@ -2658,7 +2549,6 @@ "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, "license": "(MIT OR CC0-1.0)", - "peer": true, "engines": { "node": ">=10" }, @@ -2698,7 +2588,6 @@ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, "license": "ISC", - "peer": true, "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -2911,7 +2800,6 @@ "integrity": "sha512-0YiBEOxWqKkSQWL9nNGGEgndoeL0ZpWrbLMNL5u/Kaxrli3Eaxlt3ZtIDktEvXt4L/R9r3ODr2zKwGM/2BjxVw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/transform": "30.2.0", "@types/babel__core": "^7.20.5", @@ -2934,7 +2822,6 @@ "integrity": "sha512-D8Z6Qm8jCvVXtIRkBnqNHX0zJ37rQcFJ9u8WOS6tkYOsRdHBzypCstaxWiu5ZIlqQtviRYbgnRLSoCEvjqcqbA==", "dev": true, "license": "BSD-3-Clause", - "peer": true, "workspaces": [ "test/babel-8" ], @@ -2955,7 +2842,6 @@ "integrity": "sha512-ftzhzSGMUnOzcCXd6WHdBGMyuwy15Wnn0iyyWGKgBDLxf9/s5ABuraCSpBX2uG0jUg4rqJnxsLc5+oYBqoxVaA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@types/babel__core": "^7.20.5" }, @@ -2969,7 +2855,6 @@ "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/plugin-syntax-async-generators": "^7.8.4", "@babel/plugin-syntax-bigint": "^7.8.3", @@ -2997,7 +2882,6 @@ "integrity": "sha512-US4Z3NOieAQumwFnYdUWKvUKh8+YSnS/gB3t6YBiz0bskpu7Pine8pPCheNxlPEW4wnUkma2a94YuW2q3guvCQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "babel-plugin-jest-hoist": "30.2.0", "babel-preset-current-node-syntax": "^1.2.0" @@ -3043,7 +2927,6 @@ "integrity": "sha512-2NovHVesVF5TXefsGX1yzx1xgr7+m9JQenvz6FQY3qd+YXkKkYiv+vTCc7OriP9mcDZpTC5mAOYN4ocd29+erA==", "dev": true, "license": "Apache-2.0", - "peer": true, "bin": { "baseline-browser-mapping": "dist/cli.js" } @@ -3162,7 +3045,6 @@ "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", "dev": true, "license": "Apache-2.0", - "peer": true, "dependencies": { "node-int64": "^0.4.0" } @@ -3178,8 +3060,7 @@ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/bytes": { "version": "3.1.2", @@ -3254,7 +3135,6 @@ "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=6" } @@ -3278,8 +3158,7 @@ "url": "https://github.com/sponsors/ai" } ], - "license": "CC-BY-4.0", - "peer": true + "license": "CC-BY-4.0" }, "node_modules/chalk": { "version": "4.1.2", @@ -3304,7 +3183,6 @@ "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=10" } @@ -3321,7 +3199,6 @@ } ], "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -3331,8 +3208,7 @@ "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-2.1.0.tgz", "integrity": "sha512-UX0OwmYRYQQetfrLEZeewIFFI+wSTofC+pMBLNuH3RUuu/xzG1oz84UCEDOSoQlN3fZ4+AzmV50ZYvGqkMh9yA==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/cliui": { "version": "8.0.1", @@ -3395,7 +3271,6 @@ "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", "dev": true, "license": "MIT", - "peer": true, "engines": { "iojs": ">= 1.0.0", "node": ">= 0.12.0" @@ -3406,8 +3281,7 @@ "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz", "integrity": "sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/color-convert": { "version": "2.0.1", @@ -3475,8 +3349,7 @@ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/cookie": { "version": "0.7.1", @@ -3598,7 +3471,6 @@ "integrity": "sha512-HGFtf8yhuhGhqO07SV79tRp+br4MnbdjeVxotpn1QBl30pcLLCQjX5b2295ll0fv8RKDKsmWYrl05usHM9CewQ==", "dev": true, "license": "MIT", - "peer": true, "peerDependencies": { "babel-plugin-macros": "^3.1.0" }, @@ -3621,7 +3493,6 @@ "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=0.10.0" } @@ -3697,7 +3568,6 @@ "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -3760,8 +3630,7 @@ "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/ecdsa-sig-formatter": { "version": "1.0.11", @@ -3783,8 +3652,7 @@ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.245.tgz", "integrity": "sha512-rdmGfW47ZhL/oWEJAY4qxRtdly2B98ooTJ0pdEI4jhVLZ6tNf8fPtov2wS1IRKwFJT92le3x4Knxiwzl7cPPpQ==", "dev": true, - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/emittery": { "version": "0.13.1", @@ -3792,7 +3660,6 @@ "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -3805,8 +3672,7 @@ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/encodeurl": { "version": "2.0.0", @@ -3833,7 +3699,6 @@ "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "is-arrayish": "^0.2.1" } @@ -4020,6 +3885,7 @@ "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", @@ -4278,7 +4144,6 @@ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true, "license": "BSD-2-Clause", - "peer": true, "bin": { "esparse": "bin/esparse.js", "esvalidate": "bin/esvalidate.js" @@ -4378,7 +4243,6 @@ "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", @@ -4402,8 +4266,7 @@ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true, - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/exit-x": { "version": "0.2.2", @@ -4411,7 +4274,6 @@ "integrity": "sha512-+I6B/IkJc1o/2tiURyz/ivu/O0nKNEArIUB5O7zBrlDVJr22SCLH3xTeEry428LvFhRzIA1g8izguxJ/gbNcVQ==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">= 0.8.0" } @@ -4422,7 +4284,6 @@ "integrity": "sha512-u/feCi0GPsI+988gU2FLcsHyAHTU0MX1Wg68NhAnN7z/+C5wqG+CY8J53N9ioe8RXgaoz0nBR/TYMf3AycUuPw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/expect-utils": "30.2.0", "@jest/get-type": "30.1.0", @@ -4610,7 +4471,6 @@ "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", "dev": true, "license": "Apache-2.0", - "peer": true, "dependencies": { "bser": "2.1.1" } @@ -4696,6 +4556,7 @@ "resolved": "https://registry.npmjs.org/firebase-admin/-/firebase-admin-12.7.0.tgz", "integrity": "sha512-raFIrOyTqREbyXsNkSHyciQLfv8AUZazehPaQS1lZBSCDYW74FYXU0nQZa3qHI4K+hawohlDbywZ4+qce9YNxA==", "license": "Apache-2.0", + "peer": true, "dependencies": { "@fastify/busboy": "^3.0.0", "@firebase/database-compat": "1.0.8", @@ -4720,6 +4581,7 @@ "resolved": "https://registry.npmjs.org/firebase-functions/-/firebase-functions-6.6.0.tgz", "integrity": "sha512-wwfo6JF+N7HUExVs5gUFgkgVGHDEog9O+qtouh7IuJWk8TBQ+KwXEgRiXbatSj7EbTu3/yYnHuzh3XExbfF6wQ==", "license": "MIT", + "peer": true, "dependencies": { "@types/cors": "^2.8.5", "@types/express": "^4.17.21", @@ -4801,7 +4663,6 @@ "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", "dev": true, "license": "ISC", - "peer": true, "dependencies": { "cross-spawn": "^7.0.6", "signal-exit": "^4.0.1" @@ -4867,7 +4728,6 @@ "os": [ "darwin" ], - "peer": true, "engines": { "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } @@ -4981,7 +4841,6 @@ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=6.9.0" } @@ -5026,7 +4885,6 @@ "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=8.0.0" } @@ -5050,7 +4908,6 @@ "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=10" }, @@ -5082,7 +4939,6 @@ "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", "dev": true, "license": "ISC", - "peer": true, "dependencies": { "foreground-child": "^3.1.0", "jackspeak": "^3.1.2", @@ -5117,7 +4973,6 @@ "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "balanced-match": "^1.0.0" } @@ -5128,7 +4983,6 @@ "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "dev": true, "license": "ISC", - "peer": true, "dependencies": { "brace-expansion": "^2.0.1" }, @@ -5276,8 +5130,7 @@ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true, - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/graphemer": { "version": "1.4.0", @@ -5414,8 +5267,7 @@ "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/http-errors": { "version": "2.0.0", @@ -5487,7 +5339,6 @@ "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true, "license": "Apache-2.0", - "peer": true, "engines": { "node": ">=10.17.0" } @@ -5537,7 +5388,6 @@ "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "pkg-dir": "^4.2.0", "resolve-cwd": "^3.0.0" @@ -5627,8 +5477,7 @@ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/is-async-function": { "version": "2.1.1", @@ -5789,7 +5638,6 @@ "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=6" } @@ -6068,7 +5916,6 @@ "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", "dev": true, "license": "BSD-3-Clause", - "peer": true, "engines": { "node": ">=8" } @@ -6079,7 +5926,6 @@ "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", "dev": true, "license": "BSD-3-Clause", - "peer": true, "dependencies": { "@babel/core": "^7.23.9", "@babel/parser": "^7.23.9", @@ -6097,7 +5943,6 @@ "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", "dev": true, "license": "BSD-3-Clause", - "peer": true, "dependencies": { "istanbul-lib-coverage": "^3.0.0", "make-dir": "^4.0.0", @@ -6113,7 +5958,6 @@ "integrity": "sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==", "dev": true, "license": "BSD-3-Clause", - "peer": true, "dependencies": { "@jridgewell/trace-mapping": "^0.3.23", "debug": "^4.1.1", @@ -6129,7 +5973,6 @@ "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==", "dev": true, "license": "BSD-3-Clause", - "peer": true, "dependencies": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" @@ -6144,7 +5987,6 @@ "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", "dev": true, "license": "BlueOak-1.0.0", - "peer": true, "dependencies": { "@isaacs/cliui": "^8.0.2" }, @@ -6189,7 +6031,6 @@ "integrity": "sha512-L8lR1ChrRnSdfeOvTrwZMlnWV8G/LLjQ0nG9MBclwWZidA2N5FviRki0Bvh20WRMOX31/JYvzdqTJrk5oBdydQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "execa": "^5.1.1", "jest-util": "30.2.0", @@ -6205,7 +6046,6 @@ "integrity": "sha512-Fh0096NC3ZkFx05EP2OXCxJAREVxj1BcW/i6EWqqymcgYKWjyyDpral3fMxVcHXg6oZM7iULer9wGRFvfpl+Tg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/environment": "30.2.0", "@jest/expect": "30.2.0", @@ -6238,7 +6078,6 @@ "integrity": "sha512-Os9ukIvADX/A9sLt6Zse3+nmHtHaE6hqOsjQtNiugFTbKRHYIYtZXNGNK9NChseXy7djFPjndX1tL0sCTlfpAA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/core": "30.2.0", "@jest/test-result": "30.2.0", @@ -6272,7 +6111,6 @@ "integrity": "sha512-g4WkyzFQVWHtu6uqGmQR4CQxz/CH3yDSlhzXMWzNjDx843gYjReZnMRanjRCq5XZFuQrGDxgUaiYWE8BRfVckA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/core": "^7.27.4", "@jest/get-type": "30.1.0", @@ -6325,7 +6163,6 @@ "integrity": "sha512-dQHFo3Pt4/NLlG5z4PxZ/3yZTZ1C7s9hveiOj+GCN+uT109NC2QgsoVZsVOAvbJ3RgKkvyLGXZV9+piDpWbm6A==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/diff-sequences": "30.0.1", "@jest/get-type": "30.1.0", @@ -6342,7 +6179,6 @@ "integrity": "sha512-tR/FFgZKS1CXluOQzZvNH3+0z9jXr3ldGSD8bhyuxvlVUwbeLOGynkunvlTMxchC5urrKndYiwCFC0DLVjpOCA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "detect-newline": "^3.1.0" }, @@ -6356,7 +6192,6 @@ "integrity": "sha512-lpWlJlM7bCUf1mfmuqTA8+j2lNURW9eNafOy99knBM01i5CQeY5UH1vZjgT9071nDJac1M4XsbyI44oNOdhlDQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/get-type": "30.1.0", "@jest/types": "30.2.0", @@ -6374,7 +6209,6 @@ "integrity": "sha512-ElU8v92QJ9UrYsKrxDIKCxu6PfNj4Hdcktcn0JX12zqNdqWHB0N+hwOnnBBXvjLd2vApZtuLUGs1QSY+MsXoNA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/environment": "30.2.0", "@jest/fake-timers": "30.2.0", @@ -6394,7 +6228,6 @@ "integrity": "sha512-sQA/jCb9kNt+neM0anSj6eZhLZUIhQgwDt7cPGjumgLM4rXsfb9kpnlacmvZz3Q5tb80nS+oG/if+NBKrHC+Xw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -6420,7 +6253,6 @@ "integrity": "sha512-M6jKAjyzjHG0SrQgwhgZGy9hFazcudwCNovY/9HPIicmNSBuockPSedAP9vlPK6ONFJ1zfyH/M2/YYJxOz5cdQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/get-type": "30.1.0", "pretty-format": "30.2.0" @@ -6435,7 +6267,6 @@ "integrity": "sha512-dQ94Nq4dbzmUWkQ0ANAWS9tBRfqCrn0bV9AMYdOi/MHW726xn7eQmMeRTpX2ViC00bpNaWXq+7o4lIQ3AX13Hg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/get-type": "30.1.0", "chalk": "^4.1.2", @@ -6452,7 +6283,6 @@ "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@jest/types": "30.2.0", @@ -6474,7 +6304,6 @@ "integrity": "sha512-JNNNl2rj4b5ICpmAcq+WbLH83XswjPbjH4T7yvGzfAGCPh1rw+xVNbtk+FnRslvt9lkCcdn9i1oAoKUuFsOxRw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -6490,7 +6319,6 @@ "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=6" }, @@ -6509,7 +6337,6 @@ "integrity": "sha512-jHEQgBXAgc+Gh4g0p3bCevgRCVRkB4VB70zhoAE48gxeSr1hfUOsM/C2WoJgVL7Eyg//hudYENbm3Ne+/dRVVA==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" } @@ -6520,7 +6347,6 @@ "integrity": "sha512-TCrHSxPlx3tBY3hWNtRQKbtgLhsXa1WmbJEqBlTBrGafd5fiQFByy2GNCEoGR+Tns8d15GaL9cxEzKOO3GEb2A==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "chalk": "^4.1.2", "graceful-fs": "^4.2.11", @@ -6541,7 +6367,6 @@ "integrity": "sha512-xTOIGug/0RmIe3mmCqCT95yO0vj6JURrn1TKWlNbhiAefJRWINNPgwVkrVgt/YaerPzY3iItufd80v3lOrFJ2w==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "jest-regex-util": "30.0.1", "jest-snapshot": "30.2.0" @@ -6556,7 +6381,6 @@ "integrity": "sha512-PqvZ2B2XEyPEbclp+gV6KO/F1FIFSbIwewRgmROCMBo/aZ6J1w8Qypoj2pEOcg3G2HzLlaP6VUtvwCI8dM3oqQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/console": "30.2.0", "@jest/environment": "30.2.0", @@ -6591,7 +6415,6 @@ "integrity": "sha512-p1+GVX/PJqTucvsmERPMgCPvQJpFt4hFbM+VN3n8TMo47decMUcJbt+rgzwrEme0MQUA/R+1de2axftTHkKckg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/environment": "30.2.0", "@jest/fake-timers": "30.2.0", @@ -6626,7 +6449,6 @@ "integrity": "sha512-5WEtTy2jXPFypadKNpbNkZ72puZCa6UjSr/7djeecHWOu7iYhSXSnHScT8wBz3Rn8Ena5d5RYRcsyKIeqG1IyA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/core": "^7.27.4", "@babel/generator": "^7.27.5", @@ -6660,7 +6482,6 @@ "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/types": "30.2.0", "@types/node": "*", @@ -6679,7 +6500,6 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -6693,7 +6513,6 @@ "integrity": "sha512-FBGWi7dP2hpdi8nBoWxSsLvBFewKAg0+uSQwBaof4Y4DPgBabXgpSYC5/lR7VmnIlSpASmCi/ntRWPbv7089Pw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/get-type": "30.1.0", "@jest/types": "30.2.0", @@ -6712,7 +6531,6 @@ "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=10" }, @@ -6726,7 +6544,6 @@ "integrity": "sha512-PYxa28dxJ9g777pGm/7PrbnMeA0Jr7osHP9bS7eJy9DuAjMgdGtxgf0uKMyoIsTWAkIbUW5hSDdJ3urmgXBqxg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/test-result": "30.2.0", "@jest/types": "30.2.0", @@ -6747,7 +6564,6 @@ "integrity": "sha512-0Q4Uk8WF7BUwqXHuAjc23vmopWJw5WH7w2tqBoUOZpOjW/ZnR44GXXd1r82RvnmI2GZge3ivrYXk/BE2+VtW2g==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@types/node": "*", "@ungap/structured-clone": "^1.3.0", @@ -6765,7 +6581,6 @@ "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -6790,8 +6605,7 @@ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/js-yaml": { "version": "4.1.0", @@ -6812,7 +6626,6 @@ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", "dev": true, "license": "MIT", - "peer": true, "bin": { "jsesc": "bin/jsesc" }, @@ -6842,8 +6655,7 @@ "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/json-schema-traverse": { "version": "0.4.1", @@ -6865,7 +6677,6 @@ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, "license": "MIT", - "peer": true, "bin": { "json5": "lib/cli.js" }, @@ -6972,7 +6783,6 @@ "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=6" } @@ -7001,8 +6811,7 @@ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/locate-path": { "version": "6.0.0", @@ -7101,7 +6910,6 @@ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, "license": "ISC", - "peer": true, "dependencies": { "yallist": "^3.0.2" } @@ -7140,7 +6948,6 @@ "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "semver": "^7.5.3" }, @@ -7157,7 +6964,6 @@ "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", "dev": true, "license": "BSD-3-Clause", - "peer": true, "dependencies": { "tmpl": "1.0.5" } @@ -7194,8 +7000,7 @@ "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/merge2": { "version": "1.4.1", @@ -7270,7 +7075,6 @@ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=6" } @@ -7304,7 +7108,6 @@ "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", "dev": true, "license": "ISC", - "peer": true, "engines": { "node": ">=16 || 14 >=14.17" } @@ -7321,7 +7124,6 @@ "integrity": "sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==", "dev": true, "license": "MIT", - "peer": true, "bin": { "napi-postinstall": "lib/cli.js" }, @@ -7390,16 +7192,14 @@ "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/node-releases": { "version": "2.0.27", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/normalize-path": { "version": "3.0.0", @@ -7407,7 +7207,6 @@ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=0.10.0" } @@ -7418,7 +7217,6 @@ "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "path-key": "^3.0.0" }, @@ -7569,7 +7367,6 @@ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "mimic-fn": "^2.1.0" }, @@ -7654,7 +7451,6 @@ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=6" } @@ -7664,8 +7460,7 @@ "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", "dev": true, - "license": "BlueOak-1.0.0", - "peer": true + "license": "BlueOak-1.0.0" }, "node_modules/parent-module": { "version": "1.0.1", @@ -7686,7 +7481,6 @@ "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", @@ -7752,7 +7546,6 @@ "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", "dev": true, "license": "BlueOak-1.0.0", - "peer": true, "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" @@ -7769,8 +7562,7 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", "dev": true, - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/path-to-regexp": { "version": "0.1.12", @@ -7793,8 +7585,7 @@ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", "dev": true, - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/picomatch": { "version": "2.3.1", @@ -7815,7 +7606,6 @@ "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">= 6" } @@ -7826,7 +7616,6 @@ "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "find-up": "^4.0.0" }, @@ -7840,7 +7629,6 @@ "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -7855,7 +7643,6 @@ "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "p-locate": "^4.1.0" }, @@ -7869,7 +7656,6 @@ "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "p-try": "^2.0.0" }, @@ -7886,7 +7672,6 @@ "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "p-limit": "^2.2.0" }, @@ -7920,7 +7705,6 @@ "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/schemas": "30.0.5", "ansi-styles": "^5.2.0", @@ -7936,7 +7720,6 @@ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=10" }, @@ -8019,8 +7802,7 @@ "url": "https://opencollective.com/fast-check" } ], - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/qs": { "version": "6.13.0", @@ -8087,8 +7869,7 @@ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/readable-stream": { "version": "3.6.2", @@ -8186,7 +7967,6 @@ "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "resolve-from": "^5.0.0" }, @@ -8200,7 +7980,6 @@ "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -8638,7 +8417,6 @@ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", "dev": true, "license": "ISC", - "peer": true, "engines": { "node": ">=14" }, @@ -8662,7 +8440,6 @@ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, "license": "BSD-3-Clause", - "peer": true, "engines": { "node": ">=0.10.0" } @@ -8673,7 +8450,6 @@ "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -8684,8 +8460,7 @@ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", "dev": true, - "license": "BSD-3-Clause", - "peer": true + "license": "BSD-3-Clause" }, "node_modules/stack-utils": { "version": "2.0.6", @@ -8693,7 +8468,6 @@ "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "escape-string-regexp": "^2.0.0" }, @@ -8707,7 +8481,6 @@ "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -8768,7 +8541,6 @@ "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "char-regex": "^1.0.2", "strip-ansi": "^6.0.0" @@ -8783,7 +8555,6 @@ "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", @@ -8803,7 +8574,6 @@ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -8818,8 +8588,7 @@ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/string-width/node_modules/ansi-regex": { "version": "6.2.2", @@ -8827,7 +8596,6 @@ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -8841,7 +8609,6 @@ "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-regex": "^6.0.1" }, @@ -8931,7 +8698,6 @@ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -8945,7 +8711,6 @@ "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -8956,7 +8721,6 @@ "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=6" } @@ -9026,7 +8790,6 @@ "integrity": "sha512-MeQTA1r0litLUf0Rp/iisCaL8761lKAZHaimlbGK4j0HysC4PLfqygQj9srcs0m2RdtDYnF8UuYyKpbjHYp7Jw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@pkgr/core": "^0.2.9" }, @@ -9101,7 +8864,6 @@ "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, "license": "ISC", - "peer": true, "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^7.1.4", @@ -9118,7 +8880,6 @@ "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, "license": "ISC", - "peer": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -9146,8 +8907,7 @@ "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", "dev": true, - "license": "BSD-3-Clause", - "peer": true + "license": "BSD-3-Clause" }, "node_modules/to-regex-range": { "version": "5.0.1", @@ -9269,7 +9029,6 @@ "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=4" } @@ -9384,6 +9143,7 @@ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "dev": true, "license": "Apache-2.0", + "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -9433,7 +9193,6 @@ "dev": true, "hasInstallScript": true, "license": "MIT", - "peer": true, "dependencies": { "napi-postinstall": "^0.3.0" }, @@ -9482,7 +9241,6 @@ } ], "license": "MIT", - "peer": true, "dependencies": { "escalade": "^3.2.0", "picocolors": "^1.1.1" @@ -9539,7 +9297,6 @@ "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", "dev": true, "license": "ISC", - "peer": true, "dependencies": { "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", @@ -9564,7 +9321,6 @@ "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", "dev": true, "license": "Apache-2.0", - "peer": true, "dependencies": { "makeerror": "1.0.12" } @@ -9731,7 +9487,6 @@ "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", @@ -9751,7 +9506,6 @@ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -9769,8 +9523,7 @@ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/wrap-ansi-cjs/node_modules/string-width": { "version": "4.2.3", @@ -9778,7 +9531,6 @@ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -9794,7 +9546,6 @@ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -9808,7 +9559,6 @@ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -9822,7 +9572,6 @@ "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-regex": "^6.0.1" }, @@ -9846,7 +9595,6 @@ "integrity": "sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==", "dev": true, "license": "ISC", - "peer": true, "dependencies": { "imurmurhash": "^0.1.4", "signal-exit": "^4.0.1" @@ -9891,8 +9639,7 @@ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", "dev": true, - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/yargs": { "version": "17.7.2", diff --git a/functions/src/index.ts b/functions/src/index.ts index 470ea269..87b1c856 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -25,6 +25,10 @@ const NOSTR_RELAYS = [ "wss://relay.mostro.network", ]; +// Mostro instance public key - matches lib/core/config.dart +// This filters events to only those from your Mostro instance +const MOSTRO_PUBKEY = "82fa8cb978b43c79b2156585bac2c011176a21d2aead6d9f7c575c005be88390"; + // FCM topic that all app instances subscribe to const FCM_TOPIC = "mostro_notifications"; @@ -56,6 +60,7 @@ function connectToRelay(relayUrl: string): void { logger.info(`Connected to ${relayUrl}`); // Subscribe to kind 1059 (gift-wrapped) events + // Filter by Mostro pubkey to only get events from this Mostro instance // Only listen for events from last 5 minutes to avoid old events const fiveMinutesAgo = Math.floor(Date.now() / 1000) - 300; @@ -64,6 +69,7 @@ function connectToRelay(relayUrl: string): void { SUBSCRIPTION_ID, { kinds: [1059], + authors: [MOSTRO_PUBKEY], // Only events authored by this Mostro instance since: fiveMinutesAgo, }, ]); @@ -84,12 +90,16 @@ function connectToRelay(relayUrl: string): void { if (event.kind === 1059) { logger.info(`Received kind 1059 event from ${relayUrl}`, { eventId: event.id, + author: event.pubkey, createdAt: event.created_at, + timestamp: new Date(event.created_at * 1000).toISOString(), }); // Trigger batched notification triggerBatchedNotification(); } + } else if (message[0] === "EOSE") { + logger.debug(`End of stored events from ${relayUrl}`); } } catch (error) { logger.error(`Error processing message from ${relayUrl}:`, error); @@ -126,18 +136,19 @@ function connectToRelay(relayUrl: string): void { function triggerBatchedNotification(): void { // If there's already a pending notification, don't create another if (batchTimeout) { - logger.info("Event batched - notification already scheduled"); + logger.debug("Event batched - notification already scheduled"); return; } // Schedule notification after delay to batch multiple events + const scheduledTime = new Date(Date.now() + BATCH_DELAY_MS); batchTimeout = setTimeout(() => { logger.info("Batch delay completed - sending notification"); sendSilentPushNotification(); batchTimeout = null; }, BATCH_DELAY_MS); - logger.info(`Notification scheduled in ${BATCH_DELAY_MS}ms`); + logger.info(`Notification scheduled for ${scheduledTime.toISOString()}`); } /** @@ -186,6 +197,8 @@ async function sendSilentPushNotification(): Promise { logger.info("Silent push notification sent successfully", { messageId: response, topic: FCM_TOPIC, + timestamp: new Date(now).toISOString(), + nextAllowedTime: new Date(now + NOTIFICATION_COOLDOWN_MS).toISOString(), }); } catch (error) { logger.error("Error sending FCM notification:", error); diff --git a/lib/features/notifications/services/background_notification_service.dart b/lib/features/notifications/services/background_notification_service.dart index d412f1a7..83e34fb4 100644 --- a/lib/features/notifications/services/background_notification_service.dart +++ b/lib/features/notifications/services/background_notification_service.dart @@ -13,6 +13,7 @@ import 'package:mostro_mobile/data/models/mostro_message.dart'; import 'package:mostro_mobile/data/models/nostr_event.dart'; import 'package:mostro_mobile/data/models/session.dart'; import 'package:mostro_mobile/data/models/enums/action.dart' as mostro_action; +import 'package:mostro_mobile/data/repositories/event_storage.dart'; import 'package:mostro_mobile/data/repositories/session_storage.dart'; import 'package:mostro_mobile/features/key_manager/key_derivator.dart'; import 'package:mostro_mobile/features/key_manager/key_manager.dart'; @@ -52,10 +53,27 @@ void _onNotificationTap(NotificationResponse response) { } Future showLocalNotification(NostrEvent event) async { + final logger = Logger(); + try { + // Step 1: Check if event was already processed (deduplication) + if (event.id == null) { + logger.w('Event has no ID, cannot check for duplicates'); + return; + } + + final eventsDb = await openMostroDatabase('events.db'); + final eventStorage = EventStorage(db: eventsDb); + + final alreadyProcessed = await eventStorage.hasItem(event.id!); + if (alreadyProcessed) { + logger.d('Event ${event.id} already processed, skipping notification'); + return; + } + final mostroMessage = await _decryptAndProcessEvent(event); if (mostroMessage == null) return; - + final sessions = await _loadSessionsFromDatabase(); final matchingSession = sessions.cast().firstWhere( @@ -104,7 +122,15 @@ Future showLocalNotification(NostrEvent event) async { payload: mostroMessage.id, ); - Logger().i('Shown: ${notificationText.title} - ${notificationText.body}'); + // Step 2: Mark event as processed to prevent future duplicates + await eventStorage.putItem(event.id!, { + 'id': event.id, + 'kind': event.kind, + 'processed_at': DateTime.now().millisecondsSinceEpoch, + 'notification_shown': true, + }); + + logger.i('Notification shown and event marked as processed: ${notificationText.title} - ${notificationText.body}'); } catch (e) { Logger().e('Notification error: $e'); } diff --git a/lib/services/fcm_service.dart b/lib/services/fcm_service.dart index 9250a124..be90e97e 100644 --- a/lib/services/fcm_service.dart +++ b/lib/services/fcm_service.dart @@ -19,6 +19,9 @@ class FCMService { bool _isInitialized = false; + /// Returns whether the FCM service has been successfully initialized + bool get isInitialized => _isInitialized; + /// Initializes the FCM service /// /// This should be called early in the app lifecycle, typically during app initialization @@ -52,9 +55,12 @@ class FCMService { _isInitialized = true; _logger.i('FCM service initialized successfully'); - } catch (e) { + } catch (e, stackTrace) { _logger.e('Failed to initialize FCM service: $e'); - rethrow; + _logger.e('Stack trace: $stackTrace'); + // Don't rethrow - FCM is optional, app should continue without it + // The app can still work with the existing BackgroundService for notifications + _logger.w('App will continue without FCM push notifications'); } } @@ -84,13 +90,19 @@ class FCMService { /// Gets the FCM token and stores it in SharedPreferences Future _getAndStoreToken() async { try { - final token = await _messaging.getToken(); + final token = await _messaging.getToken().timeout( + const Duration(seconds: 10), + onTimeout: () { + _logger.w('Timeout getting FCM token'); + return null; + }, + ); if (token != null) { _logger.i('FCM token obtained: ${token.substring(0, 20)}...'); await _saveToken(token); } else { - _logger.w('FCM token is null'); + _logger.w('FCM token is null - push notifications may not work'); } } catch (e) { _logger.e('Error getting FCM token: $e'); @@ -111,10 +123,16 @@ class FCMService { /// Subscribes to the FCM topic for broadcast notifications Future _subscribeToTopic() async { try { - await _messaging.subscribeToTopic(_fcmTopic); + await _messaging.subscribeToTopic(_fcmTopic).timeout( + const Duration(seconds: 10), + onTimeout: () { + _logger.w('Timeout subscribing to FCM topic: $_fcmTopic'); + }, + ); _logger.i('Subscribed to FCM topic: $_fcmTopic'); } catch (e) { _logger.e('Error subscribing to FCM topic: $e'); + // Don't throw - topic subscription is not critical, can retry later } } @@ -166,12 +184,25 @@ class FCMService { /// Deletes the stored FCM token Future deleteToken() async { try { - await _messaging.deleteToken(); + await _messaging.deleteToken().timeout( + const Duration(seconds: 10), + onTimeout: () { + _logger.w('Timeout deleting FCM token from Firebase'); + }, + ); final prefs = await SharedPreferences.getInstance(); await prefs.remove(_fcmTokenKey); - _logger.i('FCM token deleted'); + _logger.i('FCM token deleted successfully'); } catch (e) { _logger.e('Error deleting FCM token: $e'); + // Try to remove from local storage even if Firebase delete fails + try { + final prefs = await SharedPreferences.getInstance(); + await prefs.remove(_fcmTokenKey); + _logger.i('FCM token removed from local storage'); + } catch (localError) { + _logger.e('Error removing FCM token from local storage: $localError'); + } } } From f93d2698306692d77489d14a267572464f6ac469 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Thu, 13 Nov 2025 16:14:18 -0300 Subject: [PATCH 15/39] refactor: migrate FCM from WebSocket listeners to polling-based architecture --- firebase.json | 4 - functions/src/index.ts | 325 ++++++++++++++++++++--------------------- 2 files changed, 155 insertions(+), 174 deletions(-) diff --git a/firebase.json b/firebase.json index 3ca81b51..f9627cdf 100644 --- a/firebase.json +++ b/firebase.json @@ -33,10 +33,6 @@ "firebase-debug.*.log", "*.local" ], - "predeploy": [ - "npm --prefix \"$RESOURCE_DIR\" run lint", - "npm --prefix \"$RESOURCE_DIR\" run build" - ], "source": "functions" } ] diff --git a/functions/src/index.ts b/functions/src/index.ts index 87b1c856..76fecf23 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -1,7 +1,7 @@ /** * Firebase Cloud Function for Mostro Mobile Push Notifications * - * This function listens to Nostr relays for new kind 1059 (gift-wrapped) events + * This function polls Nostr relays for new kind 1059 (gift-wrapped) events * and sends silent push notifications via FCM to wake up the mobile app. * * Privacy-preserving approach: @@ -9,12 +9,18 @@ * - No user-to-token mapping needed * - All devices receive the same empty notification * - App fetches and decrypts events locally + * + * Polling-based architecture: + * - Scheduled function runs every 5 minutes + * - Queries relay for new events since last check + * - Closes connection immediately after receiving response + * - No persistent WebSocket connections */ -import * as functions from "firebase-functions"; import * as admin from "firebase-admin"; import * as logger from "firebase-functions/logger"; import {onSchedule} from "firebase-functions/v2/scheduler"; +import {onRequest} from "firebase-functions/v2/https"; import WebSocket from "ws"; // Initialize Firebase Admin SDK @@ -27,128 +33,112 @@ const NOSTR_RELAYS = [ // Mostro instance public key - matches lib/core/config.dart // This filters events to only those from your Mostro instance -const MOSTRO_PUBKEY = "82fa8cb978b43c79b2156585bac2c011176a21d2aead6d9f7c575c005be88390"; +const MOSTRO_PUBKEY = + "82fa8cb978b43c79b2156585bac2c011176a21d2aead6d9f7c575c005be88390"; // FCM topic that all app instances subscribe to const FCM_TOPIC = "mostro_notifications"; -// Track last notification time to prevent spam (1 minute cooldown) -let lastNotificationTime = 0; -const NOTIFICATION_COOLDOWN_MS = 60 * 1000; // 1 minute - -// Batching mechanism to group multiple events within a short window -let batchTimeout: NodeJS.Timeout | null = null; -const BATCH_DELAY_MS = 5000; // 5 seconds - wait for more events - -// WebSocket connections to relays -const relayConnections = new Map(); +// Track last check time to query for new events +let lastCheckTimestamp = Math.floor(Date.now() / 1000); // Subscription ID for tracking -const SUBSCRIPTION_ID = "mostro-listener"; +const SUBSCRIPTION_ID = "mostro-poller"; /** - * Connects to a Nostr relay and subscribes to kind 1059 events + * Polls a Nostr relay for new events since the last check + * Opens connection, queries, waits for response, then closes * @param {string} relayUrl - The WebSocket URL of the Nostr relay + * @return {Promise} Number of new events found */ -function connectToRelay(relayUrl: string): void { - try { - logger.info(`Connecting to relay: ${relayUrl}`); +function pollRelay(relayUrl: string): Promise { + return new Promise((resolve, reject) => { + let eventCount = 0; + let timeoutHandle: NodeJS.Timeout | undefined; - const ws = new WebSocket(relayUrl); - - ws.on("open", () => { - logger.info(`Connected to ${relayUrl}`); - - // Subscribe to kind 1059 (gift-wrapped) events - // Filter by Mostro pubkey to only get events from this Mostro instance - // Only listen for events from last 5 minutes to avoid old events - const fiveMinutesAgo = Math.floor(Date.now() / 1000) - 300; - - const subscriptionMessage = JSON.stringify([ - "REQ", - SUBSCRIPTION_ID, - { - kinds: [1059], - authors: [MOSTRO_PUBKEY], // Only events authored by this Mostro instance - since: fiveMinutesAgo, - }, - ]); - - ws.send(subscriptionMessage); - logger.info(`Subscribed to kind 1059 events on ${relayUrl}`); - }); - - ws.on("message", (data: WebSocket.Data) => { - try { - const message = JSON.parse(data.toString()); - - // Check if this is an EVENT message - if (message[0] === "EVENT" && message[1] === SUBSCRIPTION_ID) { - const event = message[2]; - - // Verify it's a kind 1059 event - if (event.kind === 1059) { - logger.info(`Received kind 1059 event from ${relayUrl}`, { - eventId: event.id, - author: event.pubkey, - createdAt: event.created_at, - timestamp: new Date(event.created_at * 1000).toISOString(), + try { + logger.info(`Polling relay: ${relayUrl}`); + + const ws = new WebSocket(relayUrl); + + // Set timeout for the entire operation (30 seconds) + timeoutHandle = setTimeout(() => { + logger.warn(`Polling timeout for ${relayUrl}`); + ws.close(); + resolve(eventCount); + }, 30000); + + ws.on("open", () => { + logger.info(`Connected to ${relayUrl}`); + + // Query for events since last check + const subscriptionMessage = JSON.stringify([ + "REQ", + SUBSCRIPTION_ID, + { + kinds: [1059], + authors: [MOSTRO_PUBKEY], + since: lastCheckTimestamp, + }, + ]); + + ws.send(subscriptionMessage); + logger.info(`Querying events since ${lastCheckTimestamp}`, { + sinceDate: new Date(lastCheckTimestamp * 1000).toISOString(), + }); + }); + + ws.on("message", (data: WebSocket.Data) => { + try { + const message = JSON.parse(data.toString()); + + // Check if this is an EVENT message + if (message[0] === "EVENT" && message[1] === SUBSCRIPTION_ID) { + const event = message[2]; + + // Verify it's a kind 1059 event + if (event.kind === 1059) { + eventCount++; + logger.info(`Found new event from ${relayUrl}`, { + eventId: event.id, + author: event.pubkey, + createdAt: event.created_at, + timestamp: new Date(event.created_at * 1000).toISOString(), + }); + } + } else if (message[0] === "EOSE") { + logger.info(`Polling complete for ${relayUrl}`, { + eventsFound: eventCount, }); - // Trigger batched notification - triggerBatchedNotification(); + // Close connection after receiving EOSE + clearTimeout(timeoutHandle); + ws.close(); + resolve(eventCount); } - } else if (message[0] === "EOSE") { - logger.debug(`End of stored events from ${relayUrl}`); + } catch (error) { + logger.error(`Error processing message from ${relayUrl}:`, error); } - } catch (error) { - logger.error(`Error processing message from ${relayUrl}:`, error); + }); + + ws.on("error", (error: Error) => { + logger.error(`WebSocket error on ${relayUrl}:`, error); + clearTimeout(timeoutHandle); + reject(error); + }); + + ws.on("close", () => { + clearTimeout(timeoutHandle); + logger.debug(`Connection to ${relayUrl} closed`); + }); + } catch (error) { + if (timeoutHandle) { + clearTimeout(timeoutHandle); } - }); - - ws.on("error", (error: Error) => { - logger.error(`WebSocket error on ${relayUrl}:`, error); - }); - - ws.on("close", () => { - logger.warn( - `Connection closed to ${relayUrl}, reconnecting in 5 seconds...` - ); - relayConnections.delete(relayUrl); - - // Reconnect after 5 seconds - setTimeout(() => connectToRelay(relayUrl), 5000); - }); - - relayConnections.set(relayUrl, ws); - } catch (error) { - logger.error(`Failed to connect to ${relayUrl}:`, error); - - // Retry connection after 10 seconds - setTimeout(() => connectToRelay(relayUrl), 10000); - } -} - -/** - * Triggers a batched notification - * Multiple events within BATCH_DELAY_MS window result in a single notification - */ -function triggerBatchedNotification(): void { - // If there's already a pending notification, don't create another - if (batchTimeout) { - logger.debug("Event batched - notification already scheduled"); - return; - } - - // Schedule notification after delay to batch multiple events - const scheduledTime = new Date(Date.now() + BATCH_DELAY_MS); - batchTimeout = setTimeout(() => { - logger.info("Batch delay completed - sending notification"); - sendSilentPushNotification(); - batchTimeout = null; - }, BATCH_DELAY_MS); - - logger.info(`Notification scheduled for ${scheduledTime.toISOString()}`); + logger.error(`Failed to poll ${relayUrl}:`, error); + reject(error); + } + }); } /** @@ -157,14 +147,7 @@ function triggerBatchedNotification(): void { */ async function sendSilentPushNotification(): Promise { try { - // Check cooldown to prevent notification spam const now = Date.now(); - if (now - lastNotificationTime < NOTIFICATION_COOLDOWN_MS) { - logger.info("Skipping notification due to cooldown"); - return; - } - - lastNotificationTime = now; // Send silent data-only message to FCM topic const message = { @@ -198,7 +181,6 @@ async function sendSilentPushNotification(): Promise { messageId: response, topic: FCM_TOPIC, timestamp: new Date(now).toISOString(), - nextAllowedTime: new Date(now + NOTIFICATION_COOLDOWN_MS).toISOString(), }); } catch (error) { logger.error("Error sending FCM notification:", error); @@ -209,78 +191,81 @@ async function sendSilentPushNotification(): Promise { * HTTP endpoint to manually trigger a test notification * Useful for testing the FCM setup */ -export const sendTestNotification = functions.https.onRequest( - async (_req, res) => { - try { - await sendSilentPushNotification(); - res.json({success: true, message: "Test notification sent"}); - } catch (error) { - logger.error("Error in sendTestNotification:", error); - res.status(500).json({success: false, error: String(error)}); - } +export const sendTestNotification = onRequest(async (_req, res) => { + try { + await sendSilentPushNotification(); + res.json({success: true, message: "Test notification sent"}); + } catch (error) { + logger.error("Error in sendTestNotification:", error); + res.status(500).json({success: false, error: String(error)}); } -); +}); /** - * HTTP endpoint to get connection status + * HTTP endpoint to get polling status */ -export const getStatus = functions.https.onRequest((_req, res) => { +export const getStatus = onRequest((_req, res) => { const status = { - connectedRelays: Array.from(relayConnections.keys()), - totalRelays: NOSTR_RELAYS.length, - lastNotificationTime: new Date(lastNotificationTime).toISOString(), + relays: NOSTR_RELAYS, + lastCheckTimestamp: lastCheckTimestamp, + lastCheckDate: new Date(lastCheckTimestamp * 1000).toISOString(), + mostroPublicKey: MOSTRO_PUBKEY, + fcmTopic: FCM_TOPIC, }; res.json(status); }); /** - * Initialize relay connections when the function starts - * This keeps persistent WebSocket connections to Nostr relays + * Scheduled function to poll relays for new events + * Runs every 5 minutes to check for new Mostro notifications */ -export const startNostrListener = functions.https.onRequest((_req, res) => { - if (relayConnections.size === 0) { - logger.info("Starting Nostr relay listener..."); +export const keepAlive = onSchedule("every 5 minutes", async () => { + const checkStartTime = Math.floor(Date.now() / 1000); + logger.info("Starting scheduled relay poll", { + lastCheckTimestamp, + lastCheckDate: new Date(lastCheckTimestamp * 1000).toISOString(), + checkStartDate: new Date(checkStartTime * 1000).toISOString(), + }); - // Connect to all configured relays - NOSTR_RELAYS.forEach((relayUrl) => { - connectToRelay(relayUrl); + try { + // Poll all configured relays + const pollPromises = NOSTR_RELAYS.map((relayUrl) => pollRelay(relayUrl)); + const results = await Promise.allSettled(pollPromises); + + // Count total new events + let totalNewEvents = 0; + results.forEach((result, index) => { + if (result.status === "fulfilled") { + totalNewEvents += result.value; + const relay = NOSTR_RELAYS[index]; + logger.info(`Relay ${relay} found ${result.value} events`); + } else { + logger.error( + `Relay ${NOSTR_RELAYS[index]} polling failed:`, + result.reason + ); + } }); - res.json({ - success: true, - message: "Nostr listener started", - relays: NOSTR_RELAYS, + logger.info("Polling complete", { + totalNewEvents, + relaysChecked: NOSTR_RELAYS.length, }); - } else { - res.json({ - success: true, - message: "Nostr listener already running", - connectedRelays: Array.from(relayConnections.keys()), - }); - } -}); - -/** - * Scheduled function to keep connections alive - * Runs every 5 minutes to ensure connections are maintained - */ -export const keepAlive = onSchedule("every 5 minutes", async () => { - logger.info("Keep-alive check running..."); - // Check and reconnect to any disconnected relays - NOSTR_RELAYS.forEach((relayUrl) => { - if (!relayConnections.has(relayUrl)) { - logger.warn(`Relay ${relayUrl} is disconnected, reconnecting...`); - connectToRelay(relayUrl); + // Send notification if we found new events + if (totalNewEvents > 0) { + logger.info(`Found ${totalNewEvents} new events, sending notification`); + await sendSilentPushNotification(); + } else { + logger.info("No new events found, skipping notification"); } - }); -}); -// Auto-start connections when the module loads -// This ensures connections are established when the function is deployed -NOSTR_RELAYS.forEach((relayUrl) => { - connectToRelay(relayUrl); + // Update last check timestamp for next poll + lastCheckTimestamp = checkStartTime; + } catch (error) { + logger.error("Error in keepAlive poll:", error); + } }); -logger.info("Mostro FCM Cloud Function initialized"); +logger.info("Mostro FCM Cloud Function initialized (polling mode)"); From bae799c5a7e8cb0c842b03e311c526c4fcb46095 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Mon, 17 Nov 2025 11:15:13 -0300 Subject: [PATCH 16/39] chore: update Google Services plugin to version 4.4.4 --- android/settings.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/settings.gradle b/android/settings.gradle index db468a47..52097a4c 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -20,7 +20,7 @@ plugins { id "dev.flutter.flutter-plugin-loader" version "1.0.0" id "com.android.application" version "8.6.0" apply false // START: FlutterFire Configuration - id "com.google.gms.google-services" version "4.3.15" apply false + id "com.google.gms.google-services" version "4.4.4" apply false // END: FlutterFire Configuration id "org.jetbrains.kotlin.android" version "2.1.0" apply false } From 2664d97560f36aae52273b25d815d88e3f9c6853 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Mon, 17 Nov 2025 13:43:32 -0300 Subject: [PATCH 17/39] chore: configure APNS headers for background push notifications --- functions/src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/src/index.ts b/functions/src/index.ts index 76fecf23..9a83483a 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -164,13 +164,13 @@ async function sendSilentPushNotification(): Promise { }, apns: { headers: { - "apns-priority": "10", + "apns-priority": "5", + "apns-push-type": "background", + "apns-topic": "network.mostro.app", }, payload: { aps: { contentAvailable: true, - // Silent notification for iOS - sound: undefined, }, }, }, From dc65149b3c8f620810b6cbb611b4046f09d34ad6 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Mon, 17 Nov 2025 17:27:38 -0300 Subject: [PATCH 18/39] chore: refactor notification deduplication to use separate database --- functions/tsconfig.dev.json | 6 +- lib/background/background.dart | 14 +- .../notification_state_storage.dart | 45 ++++ .../background_notification_service.dart | 198 +++++++++++------- 4 files changed, 181 insertions(+), 82 deletions(-) create mode 100644 lib/data/repositories/notification_state_storage.dart diff --git a/functions/tsconfig.dev.json b/functions/tsconfig.dev.json index 7560eed4..02afe56c 100644 --- a/functions/tsconfig.dev.json +++ b/functions/tsconfig.dev.json @@ -1,5 +1,9 @@ +// This file is used by ESLint and IDEs for type-checking configuration files +// that are not included in the main tsconfig.json (e.g., .eslintrc.js) { + "extends": "./tsconfig.json", "include": [ - ".eslintrc.js" + ".eslintrc.js", + "src/**/*" ] } diff --git a/lib/background/background.dart b/lib/background/background.dart index fef485dd..6161ced3 100644 --- a/lib/background/background.dart +++ b/lib/background/background.dart @@ -4,7 +4,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_background_service/flutter_background_service.dart'; import 'package:logger/logger.dart'; import 'package:mostro_mobile/data/models/nostr_filter.dart'; -import 'package:mostro_mobile/data/repositories/event_storage.dart'; +import 'package:mostro_mobile/data/repositories/notification_state_storage.dart'; import 'package:mostro_mobile/features/settings/settings.dart'; import 'package:mostro_mobile/features/notifications/services/background_notification_service.dart' as notification_service; import 'package:mostro_mobile/services/nostr_service.dart'; @@ -13,13 +13,19 @@ import 'package:mostro_mobile/shared/providers/mostro_database_provider.dart'; bool isAppForeground = true; String currentLanguage = 'en'; +/// Background service entry point for notification handling +/// +/// Architecture: +/// - Uses separate notification_state store for deduplication +/// - Does not write to events.db (read-only boundary) +/// - Processes Nostr events and shows notifications @pragma('vm:entry-point') Future serviceMain(ServiceInstance service) async { final Map> activeSubscriptions = {}; final nostrService = NostrService(); - final db = await openMostroDatabase('events.db'); - final eventStore = EventStorage(db: db); + final db = await openMostroDatabase('notifications.db'); + final notificationStateStore = NotificationStateStorage(db: db); service.on('app-foreground-status').listen((data) { isAppForeground = data?['is-foreground'] ?? isAppForeground; @@ -69,7 +75,7 @@ Future serviceMain(ServiceInstance service) async { subscription.listen((event) async { try { - if (await eventStore.hasItem(event.id!)) return; + if (await notificationStateStore.isProcessed(event.id!)) return; await notification_service.retryNotification(event); } catch (e) { Logger().e('Error processing event', error: e); diff --git a/lib/data/repositories/notification_state_storage.dart b/lib/data/repositories/notification_state_storage.dart new file mode 100644 index 00000000..c3463056 --- /dev/null +++ b/lib/data/repositories/notification_state_storage.dart @@ -0,0 +1,45 @@ +import 'package:mostro_mobile/data/repositories/base_storage.dart'; +import 'package:sembast/sembast.dart'; + +/// Storage for notification deduplication state +/// +/// This store tracks which events have been processed for notifications +/// to prevent duplicate notifications. It is separate from the events +/// store to maintain clear separation of concerns. +/// +/// Schema: +/// - key: event ID (String) +/// - value: Map with: +/// - processed_at: timestamp in milliseconds (int) +/// - notification_shown: whether notification was displayed (bool) +class NotificationStateStorage extends BaseStorage> { + NotificationStateStorage({ + required Database db, + }) : super( + db, + stringMapStoreFactory.store('notification_state'), + ); + + @override + Map fromDbMap(String key, Map state) { + return state; + } + + @override + Map toDbMap(Map state) { + return state; + } + + /// Mark an event as processed for notifications + Future markAsProcessed(String eventId) async { + await putItem(eventId, { + 'processed_at': DateTime.now().millisecondsSinceEpoch, + 'notification_shown': true, + }); + } + + /// Check if an event has already been processed + Future isProcessed(String eventId) async { + return await hasItem(eventId); + } +} diff --git a/lib/features/notifications/services/background_notification_service.dart b/lib/features/notifications/services/background_notification_service.dart index 83e34fb4..553d5a53 100644 --- a/lib/features/notifications/services/background_notification_service.dart +++ b/lib/features/notifications/services/background_notification_service.dart @@ -1,3 +1,44 @@ +/// Background Notification Service +/// +/// Handles processing of Nostr events for push notifications in both +/// foreground and background contexts. +/// +/// ## Architecture +/// +/// ### Storage Strategy: +/// - **mostro.db**: Core app data (sessions, orders) - Read/Write in foreground +/// - **notifications.db**: Notification deduplication state - Read/Write in background +/// - **events.db**: (Legacy, no longer used for notifications) +/// +/// ### Deduplication: +/// Uses a separate `notification_state` store in `notifications.db` to track +/// which events have been processed. This prevents duplicate notifications and +/// maintains a clean separation between event data and notification state. +/// +/// Schema: notification_state store +/// - key: event ID (String) +/// - value: {processed_at: int, notification_shown: bool} +/// +/// ### Error Handling: +/// - `showLocalNotification()`: Propagates errors to enable retry mechanisms +/// - `retryNotification()`: Implements exponential backoff (1s, 2s, 4s) +/// - Errors are logged and rethrown for proper handling by callers +/// +/// ### Read-only Boundary: +/// Background service maintains read-only access to event/session data: +/// - Reads from mostro.db for session matching and decryption +/// - Writes ONLY to notifications.db for deduplication +/// - Does not modify events.db or mostro.db from background +/// +/// ### Silent Push Flow (Current): +/// 1. FCM sends silent wake-up notification +/// 2. App calls `fetchAndProcessNewEvents()` +/// 3. Fetches new events from relays since last check +/// 4. Each event checked against notification_state for duplicates +/// 5. New events decrypted, processed, and notifications shown +/// 6. Event IDs marked as processed in notification_state +library; + import 'dart:convert'; import 'dart:math'; @@ -13,7 +54,7 @@ import 'package:mostro_mobile/data/models/mostro_message.dart'; import 'package:mostro_mobile/data/models/nostr_event.dart'; import 'package:mostro_mobile/data/models/session.dart'; import 'package:mostro_mobile/data/models/enums/action.dart' as mostro_action; -import 'package:mostro_mobile/data/repositories/event_storage.dart'; +import 'package:mostro_mobile/data/repositories/notification_state_storage.dart'; import 'package:mostro_mobile/data/repositories/session_storage.dart'; import 'package:mostro_mobile/features/key_manager/key_derivator.dart'; import 'package:mostro_mobile/features/key_manager/key_manager.dart'; @@ -52,88 +93,91 @@ void _onNotificationTap(NotificationResponse response) { } } +/// Show a local notification for a Nostr event +/// +/// This function processes a Nostr event and displays a notification. +/// It uses a separate notification_state store for deduplication to avoid +/// processing the same event multiple times. +/// +/// Architecture: +/// - Read-only for event data +/// - Writes deduplication state to separate notification_state store +/// - Propagates errors to allow retry mechanisms to work +/// +/// Throws: Any error encountered during processing (for retry support) Future showLocalNotification(NostrEvent event) async { final logger = Logger(); - try { - // Step 1: Check if event was already processed (deduplication) - if (event.id == null) { - logger.w('Event has no ID, cannot check for duplicates'); - return; - } - - final eventsDb = await openMostroDatabase('events.db'); - final eventStorage = EventStorage(db: eventsDb); - - final alreadyProcessed = await eventStorage.hasItem(event.id!); - if (alreadyProcessed) { - logger.d('Event ${event.id} already processed, skipping notification'); - return; - } - - final mostroMessage = await _decryptAndProcessEvent(event); - if (mostroMessage == null) return; - - - final sessions = await _loadSessionsFromDatabase(); - final matchingSession = sessions.cast().firstWhere( - (session) => session?.orderId == mostroMessage.id, - orElse: () => null, - ); - - final notificationData = await NotificationDataExtractor.extractFromMostroMessage(mostroMessage, null, session: matchingSession); - if (notificationData == null || notificationData.isTemporary) return; - - final notificationText = await _getLocalizedNotificationText(notificationData.action, notificationData.values); - final expandedText = _getExpandedText(notificationData.values); - - final details = NotificationDetails( - android: AndroidNotificationDetails( - 'mostro_channel', - 'Mostro Notifications', - channelDescription: 'Notifications for Mostro trades and messages', - importance: Importance.max, - priority: Priority.high, - visibility: NotificationVisibility.public, - playSound: true, - enableVibration: true, - ticker: notificationText.title, - icon: '@drawable/ic_notification', - styleInformation: expandedText != null - ? BigTextStyleInformation(expandedText, contentTitle: notificationText.title) - : null, - category: AndroidNotificationCategory.message, - autoCancel: true, - ), - iOS: DarwinNotificationDetails( - presentAlert: true, - presentBadge: true, - presentSound: true, - interruptionLevel: InterruptionLevel.critical, - subtitle: expandedText, - ), - ); - - await flutterLocalNotificationsPlugin.show( - event.id.hashCode, - notificationText.title, - notificationText.body, - details, - payload: mostroMessage.id, - ); + // Step 1: Check if event was already processed (deduplication) + if (event.id == null) { + logger.w('Event has no ID, cannot check for duplicates'); + return; + } - // Step 2: Mark event as processed to prevent future duplicates - await eventStorage.putItem(event.id!, { - 'id': event.id, - 'kind': event.kind, - 'processed_at': DateTime.now().millisecondsSinceEpoch, - 'notification_shown': true, - }); + final notificationDb = await openMostroDatabase('notifications.db'); + final notificationStateStorage = NotificationStateStorage(db: notificationDb); - logger.i('Notification shown and event marked as processed: ${notificationText.title} - ${notificationText.body}'); - } catch (e) { - Logger().e('Notification error: $e'); + final alreadyProcessed = await notificationStateStorage.isProcessed(event.id!); + if (alreadyProcessed) { + logger.d('Event ${event.id} already processed, skipping notification'); + return; } + + final mostroMessage = await _decryptAndProcessEvent(event); + if (mostroMessage == null) return; + + final sessions = await _loadSessionsFromDatabase(); + final matchingSession = sessions.cast().firstWhere( + (session) => session?.orderId == mostroMessage.id, + orElse: () => null, + ); + + final notificationData = await NotificationDataExtractor.extractFromMostroMessage(mostroMessage, null, session: matchingSession); + if (notificationData == null || notificationData.isTemporary) return; + + final notificationText = await _getLocalizedNotificationText(notificationData.action, notificationData.values); + final expandedText = _getExpandedText(notificationData.values); + + final details = NotificationDetails( + android: AndroidNotificationDetails( + 'mostro_channel', + 'Mostro Notifications', + channelDescription: 'Notifications for Mostro trades and messages', + importance: Importance.max, + priority: Priority.high, + visibility: NotificationVisibility.public, + playSound: true, + enableVibration: true, + ticker: notificationText.title, + icon: '@drawable/ic_notification', + styleInformation: expandedText != null + ? BigTextStyleInformation(expandedText, contentTitle: notificationText.title) + : null, + category: AndroidNotificationCategory.message, + autoCancel: true, + ), + iOS: DarwinNotificationDetails( + presentAlert: true, + presentBadge: true, + presentSound: true, + interruptionLevel: InterruptionLevel.critical, + subtitle: expandedText, + ), + ); + + // Show notification - propagate errors for retry support + await flutterLocalNotificationsPlugin.show( + event.id.hashCode, + notificationText.title, + notificationText.body, + details, + payload: mostroMessage.id, + ); + + // Step 2: Mark event as processed to prevent future duplicates + await notificationStateStorage.markAsProcessed(event.id!); + + logger.i('Notification shown and event marked as processed: ${notificationText.title} - ${notificationText.body}'); } From fbe0160117bf9fe311c8b53f0b92564d9f0310d5 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Tue, 18 Nov 2025 16:29:09 -0300 Subject: [PATCH 19/39] chore: add error handling and retry support to background notification service --- .../background_notification_service.dart | 141 +++++++++--------- 1 file changed, 74 insertions(+), 67 deletions(-) diff --git a/lib/features/notifications/services/background_notification_service.dart b/lib/features/notifications/services/background_notification_service.dart index 553d5a53..91d89daa 100644 --- a/lib/features/notifications/services/background_notification_service.dart +++ b/lib/features/notifications/services/background_notification_service.dart @@ -108,76 +108,83 @@ void _onNotificationTap(NotificationResponse response) { Future showLocalNotification(NostrEvent event) async { final logger = Logger(); - // Step 1: Check if event was already processed (deduplication) - if (event.id == null) { - logger.w('Event has no ID, cannot check for duplicates'); - return; - } + try { + // Step 1: Check if event was already processed (deduplication) + if (event.id == null) { + logger.w('Event has no ID, cannot check for duplicates'); + return; + } - final notificationDb = await openMostroDatabase('notifications.db'); - final notificationStateStorage = NotificationStateStorage(db: notificationDb); + final notificationDb = await openMostroDatabase('notifications.db'); + final notificationStateStorage = NotificationStateStorage(db: notificationDb); - final alreadyProcessed = await notificationStateStorage.isProcessed(event.id!); - if (alreadyProcessed) { - logger.d('Event ${event.id} already processed, skipping notification'); - return; - } + final alreadyProcessed = await notificationStateStorage.isProcessed(event.id!); + if (alreadyProcessed) { + logger.d('Event ${event.id} already processed, skipping notification'); + return; + } + + final mostroMessage = await _decryptAndProcessEvent(event); + if (mostroMessage == null) return; + + final sessions = await _loadSessionsFromDatabase(); + final matchingSession = sessions.cast().firstWhere( + (session) => session?.orderId == mostroMessage.id, + orElse: () => null, + ); + + final notificationData = await NotificationDataExtractor.extractFromMostroMessage(mostroMessage, null, session: matchingSession); + if (notificationData == null || notificationData.isTemporary) return; + + final notificationText = await _getLocalizedNotificationText(notificationData.action, notificationData.values); + final expandedText = _getExpandedText(notificationData.values); + + final details = NotificationDetails( + android: AndroidNotificationDetails( + 'mostro_channel', + 'Mostro Notifications', + channelDescription: 'Notifications for Mostro trades and messages', + importance: Importance.max, + priority: Priority.high, + visibility: NotificationVisibility.public, + playSound: true, + enableVibration: true, + ticker: notificationText.title, + icon: '@drawable/ic_notification', + styleInformation: expandedText != null + ? BigTextStyleInformation(expandedText, contentTitle: notificationText.title) + : null, + category: AndroidNotificationCategory.message, + autoCancel: true, + ), + iOS: DarwinNotificationDetails( + presentAlert: true, + presentBadge: true, + presentSound: true, + interruptionLevel: InterruptionLevel.critical, + subtitle: expandedText, + ), + ); - final mostroMessage = await _decryptAndProcessEvent(event); - if (mostroMessage == null) return; - - final sessions = await _loadSessionsFromDatabase(); - final matchingSession = sessions.cast().firstWhere( - (session) => session?.orderId == mostroMessage.id, - orElse: () => null, - ); - - final notificationData = await NotificationDataExtractor.extractFromMostroMessage(mostroMessage, null, session: matchingSession); - if (notificationData == null || notificationData.isTemporary) return; - - final notificationText = await _getLocalizedNotificationText(notificationData.action, notificationData.values); - final expandedText = _getExpandedText(notificationData.values); - - final details = NotificationDetails( - android: AndroidNotificationDetails( - 'mostro_channel', - 'Mostro Notifications', - channelDescription: 'Notifications for Mostro trades and messages', - importance: Importance.max, - priority: Priority.high, - visibility: NotificationVisibility.public, - playSound: true, - enableVibration: true, - ticker: notificationText.title, - icon: '@drawable/ic_notification', - styleInformation: expandedText != null - ? BigTextStyleInformation(expandedText, contentTitle: notificationText.title) - : null, - category: AndroidNotificationCategory.message, - autoCancel: true, - ), - iOS: DarwinNotificationDetails( - presentAlert: true, - presentBadge: true, - presentSound: true, - interruptionLevel: InterruptionLevel.critical, - subtitle: expandedText, - ), - ); - - // Show notification - propagate errors for retry support - await flutterLocalNotificationsPlugin.show( - event.id.hashCode, - notificationText.title, - notificationText.body, - details, - payload: mostroMessage.id, - ); - - // Step 2: Mark event as processed to prevent future duplicates - await notificationStateStorage.markAsProcessed(event.id!); - - logger.i('Notification shown and event marked as processed: ${notificationText.title} - ${notificationText.body}'); + // Show notification - errors will propagate for retry support + await flutterLocalNotificationsPlugin.show( + event.id.hashCode, + notificationText.title, + notificationText.body, + details, + payload: mostroMessage.id, + ); + + // Step 2: Mark event as processed to prevent future duplicates + await notificationStateStorage.markAsProcessed(event.id!); + + logger.i('Notification shown and event marked as processed: ${notificationText.title} - ${notificationText.body}'); + } catch (e, stackTrace) { + // Log error with stack trace for debugging + logger.e('Notification error: $e', error: e, stackTrace: stackTrace); + // Rethrow to allow retry mechanism to catch and retry + rethrow; + } } From 528b66564e97a11b8853b2ecd3d2f222506e7849 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Wed, 19 Nov 2025 15:06:14 -0300 Subject: [PATCH 20/39] refactor: move FCM event processing from background to foreground isolate --- lib/firebase_options.dart | 23 ++++++++ lib/main.dart | 120 +++++++++++++++++++++++++++++++------- 2 files changed, 122 insertions(+), 21 deletions(-) diff --git a/lib/firebase_options.dart b/lib/firebase_options.dart index 34302fe8..528a5dd5 100644 --- a/lib/firebase_options.dart +++ b/lib/firebase_options.dart @@ -6,6 +6,29 @@ import 'package:flutter/foundation.dart' /// Default [FirebaseOptions] for use with your Firebase apps. /// +/// ## Security Note +/// +/// The credentials in this file (API keys, App IDs, Project IDs) are **public by design** +/// and safe to commit to version control. These are client-side identifiers used to connect +/// mobile/web apps to Firebase services. +/// +/// **What is public (safe to expose):** +/// - API Keys (apiKey): Public identifiers for Firebase project +/// - App IDs (appId): Public app identifiers +/// - Project ID (projectId): Public project identifier +/// - Sender ID (messagingSenderId): Public FCM sender identifier +/// +/// **What is private (NOT in this file):** +/// - Service Account Keys (private_key): Server-side credentials for Firebase Admin SDK +/// - These are managed securely by Firebase Cloud Functions and never exposed to clients +/// +/// **Security comes from:** +/// - Firebase Security Rules (Firestore, Storage, etc.) +/// - App Check for preventing abuse +/// - Proper backend authentication and authorization +/// +/// Reference: https://firebase.google.com/docs/projects/api-keys +/// /// Example: /// ```dart /// import 'firebase_options.dart'; diff --git a/lib/main.dart b/lib/main.dart index 488d0751..a4c57994 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -24,6 +24,14 @@ import 'package:timeago/timeago.dart' as timeago; /// This is a "Silent Push" approach where FCM is used only to wake up the app. /// The payload is empty - FCM doesn't contain any event data. /// +/// IMPORTANT: This runs in a background isolate where: +/// - Flutter plugins are not initialized +/// - UI context is not available +/// - Heavy operations should be avoided +/// +/// This handler only sets a flag that triggers event processing when the app +/// comes to foreground or becomes active. +/// /// Privacy benefits: /// - Backend doesn't know which user receives which notification /// - No mapping of recipient_pubkey → FCM token needed @@ -32,43 +40,32 @@ import 'package:timeago/timeago.dart' as timeago; /// Flow: /// 1. Backend sends empty FCM push to all users /// 2. FCM wakes up the app in background -/// 3. App fetches ALL new events from relays -/// 4. App processes and shows notifications for matching sessions +/// 3. This handler sets a flag indicating pending work +/// 4. When app is foregrounded, it fetches and processes events @pragma('vm:entry-point') Future firebaseMessagingBackgroundHandler(RemoteMessage message) async { final logger = Logger(); try { - logger.i('FCM silent push received - waking up app'); + logger.i('FCM silent push received in background isolate'); logger.d('Message ID: ${message.messageId}'); - // Initialize Firebase in this isolate + // Initialize Firebase in this isolate (lightweight) await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform, ); - // Initialize local notifications system - await initializeNotifications(); - - // Load relay list from settings + // Set flag for pending event processing + // This flag will be checked when app comes to foreground final sharedPrefs = SharedPreferencesAsync(); - final relaysJson = await sharedPrefs.getStringList('settings.relays'); - final relays = relaysJson ?? []; - - if (relays.isEmpty) { - logger.w('No relays configured - cannot fetch events'); - return; - } - - logger.i('Fetching new events from ${relays.length} relays...'); - // Fetch and process all new events - await fetchAndProcessNewEvents(relays: relays); + await sharedPrefs.setBool('fcm.pending_fetch', true); + await sharedPrefs.setInt('fcm.last_wake_timestamp', DateTime.now().millisecondsSinceEpoch); - logger.i('Silent push processed - all new events fetched and notifications shown'); + logger.i('Background flag set - events will be fetched when app is active'); } catch (e, stackTrace) { - logger.e('Error processing silent push: $e'); + logger.e('Error in background handler: $e'); logger.e('Stack trace: $stackTrace'); } } @@ -118,6 +115,9 @@ Future main() async { // Initialize relay sync on app start _initializeRelaySynchronization(container); + // Setup foreground FCM listener to process events when app is active + _setupForegroundFCMListener(sharedPreferences, settings); + runApp( UncontrolledProviderScope( container: container, @@ -126,6 +126,84 @@ Future main() async { ); } +/// Setup FCM foreground listener to process pending events +/// +/// This listener runs in the main isolate where all Flutter plugins and UI +/// context are available. It checks for pending events flagged by the +/// background handler and processes them safely. +void _setupForegroundFCMListener( + SharedPreferencesAsync sharedPrefs, + SettingsNotifier settings, +) { + final logger = Logger(); + + // Listen for foreground messages + FirebaseMessaging.onMessage.listen((RemoteMessage message) async { + try { + logger.i('FCM message received in foreground'); + + // Process events immediately when app is in foreground + await _processPendingEvents(sharedPrefs, settings, logger); + } catch (e, stackTrace) { + logger.e('Error processing foreground FCM: $e'); + logger.e('Stack trace: $stackTrace'); + } + }); + + // Also check for pending events on app resume + // This handles events flagged by background handler + _checkPendingEventsOnResume(sharedPrefs, settings, logger); +} + +/// Check and process pending events when app resumes or starts +Future _checkPendingEventsOnResume( + SharedPreferencesAsync sharedPrefs, + SettingsNotifier settings, + Logger logger, +) async { + try { + final hasPending = await sharedPrefs.getBool('fcm.pending_fetch') ?? false; + + if (hasPending) { + logger.i('Pending events detected - processing now'); + await _processPendingEvents(sharedPrefs, settings, logger); + } + } catch (e, stackTrace) { + logger.e('Error checking pending events: $e'); + logger.e('Stack trace: $stackTrace'); + } +} + +/// Process pending events by fetching from relays +Future _processPendingEvents( + SharedPreferencesAsync sharedPrefs, + SettingsNotifier settings, + Logger logger, +) async { + try { + // Clear the pending flag first to avoid duplicate processing + await sharedPrefs.setBool('fcm.pending_fetch', false); + + // Get relay list from settings + final relays = settings.settings.relays; + + if (relays.isEmpty) { + logger.w('No relays configured - cannot fetch events'); + return; + } + + logger.i('Fetching new events from ${relays.length} relays...'); + + // Fetch and process all new events + await fetchAndProcessNewEvents(relays: relays); + + logger.i('Successfully processed pending events'); + } catch (e, stackTrace) { + logger.e('Error processing pending events: $e'); + logger.e('Stack trace: $stackTrace'); + } +} + /// Initialize relay synchronization on app startup void _initializeRelaySynchronization(ProviderContainer container) { try { From e7c2e851687a633e567bfd0b9aaa80ae9dd5bcc3 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Thu, 20 Nov 2025 14:23:07 -0300 Subject: [PATCH 21/39] chore: add error handling for optional FCM initialization during app startup --- lib/shared/providers/app_init_provider.dart | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/lib/shared/providers/app_init_provider.dart b/lib/shared/providers/app_init_provider.dart index 2e2945cd..a50a7561 100644 --- a/lib/shared/providers/app_init_provider.dart +++ b/lib/shared/providers/app_init_provider.dart @@ -1,4 +1,5 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:logger/logger.dart'; import 'package:mostro_mobile/core/config.dart'; import 'package:mostro_mobile/features/key_manager/key_manager_provider.dart'; import 'package:mostro_mobile/features/chat/providers/chat_room_providers.dart'; @@ -12,12 +13,22 @@ import 'package:mostro_mobile/shared/providers/session_notifier_provider.dart'; import 'package:mostro_mobile/features/subscriptions/subscription_manager_provider.dart'; final appInitializerProvider = FutureProvider((ref) async { + final logger = Logger(); + final nostrService = ref.read(nostrServiceProvider); await nostrService.init(ref.read(settingsProvider)); - // Initialize FCM service for push notifications + // Initialize FCM service for push notifications (non-critical) + // FCM is optional - app can function without it using BackgroundService final fcmService = ref.read(fcmServiceProvider); - await fcmService.initialize(); + try { + await fcmService.initialize(); + } catch (e, stackTrace) { + // Log but don't fail app initialization if FCM fails + // The app can still work with existing BackgroundService for notifications + logger.e('FCM initialization failed during app init: $e', error: e, stackTrace: stackTrace); + logger.w('App will continue without FCM - using BackgroundService for notifications'); + } final keyManager = ref.read(keyManagerProvider); await keyManager.init(); From e2038e71e0381a9004ea4ed1f23e673929a4e237 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Fri, 21 Nov 2025 17:21:39 -0300 Subject: [PATCH 22/39] chore: add Firebase configuration files and comprehensive setup documentation --- .gitignore | 5 +- android/app/google-services.json | 29 +++ docs/FIREBASE_SETUP.md | 337 +++++++++++++++++++++++++++++++ 3 files changed, 369 insertions(+), 2 deletions(-) create mode 100644 android/app/google-services.json create mode 100644 docs/FIREBASE_SETUP.md diff --git a/.gitignore b/.gitignore index f23b99a8..57f92581 100644 --- a/.gitignore +++ b/.gitignore @@ -46,8 +46,9 @@ android/app/upload-keystore.jks .cxx/ # Firebase and Google Services -android/app/google-services.json -ios/Runner/GoogleService-Info.plist +# Note: google-services.json and GoogleService-Info.plist contain PUBLIC credentials +# These are safe to commit (see lib/firebase_options.dart for security explanation) +# Only PRIVATE service account keys should be kept secret (never in client code) # Web web/.dart_tool/ diff --git a/android/app/google-services.json b/android/app/google-services.json new file mode 100644 index 00000000..36901952 --- /dev/null +++ b/android/app/google-services.json @@ -0,0 +1,29 @@ +{ + "project_info": { + "project_number": "679654468306", + "project_id": "mostro-test", + "storage_bucket": "mostro-test.firebasestorage.app" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:679654468306:android:eed448d8b546663cbedb0b", + "android_client_info": { + "package_name": "network.mostro.app" + } + }, + "oauth_client": [], + "api_key": [ + { + "current_key": "AIzaSyBAwF5XEuNOC-TQqhLrFJQhNVzbFYSc1sI" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [] + } + } + } + ], + "configuration_version": "1" +} \ No newline at end of file diff --git a/docs/FIREBASE_SETUP.md b/docs/FIREBASE_SETUP.md new file mode 100644 index 00000000..6bfd5959 --- /dev/null +++ b/docs/FIREBASE_SETUP.md @@ -0,0 +1,337 @@ +# Firebase and FCM Setup Guide + +This guide explains how to configure Firebase and Firebase Cloud Messaging (FCM) for the Mostro Mobile app. + +## Table of Contents + +- [Overview](#overview) +- [Security Note](#security-note) +- [Prerequisites](#prerequisites) +- [Initial Setup](#initial-setup) +- [Android Configuration](#android-configuration) +- [iOS Configuration](#ios-configuration) +- [Firebase Cloud Functions](#firebase-cloud-functions) +- [Testing](#testing) +- [Troubleshooting](#troubleshooting) + +## Overview + +The Mostro Mobile app uses Firebase Cloud Messaging (FCM) for silent push notifications. This allows the backend to wake up the app when new Mostro events are available, enabling real-time notifications without constant polling. + +### Architecture + +``` +Cloud Functions → FCM Topic → All App Instances → Fetch from Nostr Relays → Show Notifications +``` + +**Privacy-preserving approach:** +- FCM sends **empty** silent push notifications (no event data) +- All app instances receive the same notification +- Each app fetches and decrypts events locally +- No user-to-token mapping required on the backend + +## Security Note + +### What credentials are PUBLIC (safe in git) + +These files contain **public credentials** that are safe to commit: + +- ✅ `android/app/google-services.json` - Android Firebase config +- ✅ `ios/Runner/GoogleService-Info.plist` - iOS Firebase config +- ✅ `lib/firebase_options.dart` - Generated Firebase options + +**Why these are safe:** +- API keys are public identifiers (not secrets) +- They're embedded in distributed apps (decompilable) +- Security comes from Firebase Security Rules, not hidden keys +- See [Firebase API Keys Documentation](https://firebase.google.com/docs/projects/api-keys) + +### What credentials are PRIVATE (never commit) + +These must **NEVER** be committed to git: + +- ❌ Service Account Keys (`*-firebase-adminsdk-*.json`) with `private_key` +- ❌ These are used by Cloud Functions (already secured by Firebase) +- ❌ Never expose these in client code + +**Already protected in `.gitignore`:** +```gitignore +# Private keys (DO NOT COMMIT) +android/key.properties +android/app/upload-keystore.jks +*.jks +``` + +## Prerequisites + +- Firebase account ([console.firebase.google.com](https://console.firebase.google.com)) +- Flutter SDK installed +- Firebase CLI: `npm install -g firebase-tools` +- FlutterFire CLI: `dart pub global activate flutterfire_cli` + +## Initial Setup + +### 1. Create Firebase Project + +1. Go to [Firebase Console](https://console.firebase.google.com) +2. Click "Add project" +3. Enter project name (e.g., "mostro-production") +4. Follow the setup wizard + +### 2. Install FlutterFire CLI + +```bash +dart pub global activate flutterfire_cli +``` + +### 3. Login to Firebase + +```bash +firebase login +flutterfire configure +``` + +### 4. Configure Project + +```bash +cd mobile +flutterfire configure --project=your-firebase-project-id +``` + +This will: +- Generate `lib/firebase_options.dart` +- Create `android/app/google-services.json` +- Create `ios/Runner/GoogleService-Info.plist` (if iOS configured) + +## Android Configuration + +### 1. Verify google-services.json + +The file should exist at: +``` +android/app/google-services.json +``` + +**DO NOT** add this to `.gitignore` - it contains only public credentials. + +### 2. Verify Gradle Configuration + +Check `android/app/build.gradle`: + +```gradle +dependencies { + // Firebase + implementation platform('com.google.firebase:firebase-bom:32.7.0') + implementation 'com.google.firebase:firebase-messaging' +} + +apply plugin: 'com.google.gms.google-services' +``` + +### 3. Build the App + +```bash +flutter build apk +``` + +If you get errors about missing `google-services.json`, run: +```bash +git pull # File should be in the repository +``` + +## iOS Configuration + +### 1. Configure APNs + +1. Go to [Apple Developer Portal](https://developer.apple.com) +2. Navigate to Certificates, Identifiers & Profiles +3. Create an APNs Authentication Key: + - Click on Keys → (+) + - Enable "Apple Push Notifications service (APNs)" + - Download the `.p8` key file + - Note the Key ID + +### 2. Upload APNs Key to Firebase + +1. Go to Firebase Console → Project Settings +2. Select "Cloud Messaging" tab +3. Under "Apple app configuration" +4. Upload your `.p8` key file +5. Enter Team ID and Key ID + +### 3. Add GoogleService-Info.plist + +Download from Firebase Console and place at: +``` +ios/Runner/GoogleService-Info.plist +``` + +**DO NOT** add to `.gitignore` - it contains only public credentials. + +### 4. Configure Capabilities + +In Xcode: +1. Open `ios/Runner.xcworkspace` +2. Select Runner target → Signing & Capabilities +3. Add "Push Notifications" capability +4. Add "Background Modes" capability + - Enable "Background fetch" + - Enable "Remote notifications" + +## Firebase Cloud Functions + +### 1. Navigate to Functions Directory + +```bash +cd functions +``` + +### 2. Install Dependencies + +```bash +npm install +``` + +### 3. Configure Environment + +The Cloud Functions are already configured in `functions/src/index.ts`: + +- **Nostr Relays**: Configured in code (line 30-32) +- **Mostro Pubkey**: Configured in code (line 36-37) +- **FCM Topic**: `mostro_notifications` (line 40) + +### 4. Deploy Cloud Functions + +```bash +firebase deploy --only functions +``` + +This deploys: +- `keepAlive` - Scheduled function (runs every 5 minutes) +- `sendTestNotification` - HTTP endpoint for testing +- `getStatus` - HTTP endpoint for status checks + +### 5. Verify Deployment + +Check the Firebase Console → Functions to see deployed functions. + +## Testing + +### 1. Test Local Notifications + +Run the app in debug mode: +```bash +flutter run +``` + +### 2. Test FCM Integration + +#### Check FCM Token + +The app logs the FCM token on startup: +``` +[FCMService] FCM token obtained: eyJhbGciOiJSUzI1NiIsI... +``` + +#### Send Test Notification + +Use the Cloud Functions HTTP endpoint: +```bash +curl -X POST https://YOUR_REGION-YOUR_PROJECT.cloudfunctions.net/sendTestNotification +``` + +#### Monitor Logs + +```bash +# App logs +flutter logs + +# Cloud Functions logs +firebase functions:log +``` + +### 3. Test Silent Push Flow + +1. **Backend sends silent push** → All devices receive empty FCM message +2. **Background handler sets flag** → `fcm.pending_fetch = true` +3. **Foreground listener checks flag** → Fetches events from Nostr relays +4. **App shows notifications** → Based on decrypted events + +## Troubleshooting + +### Android Build Fails: "google-services.json is missing" + +**Solution:** +```bash +git pull # File should be in repository +# If still missing, run: +flutterfire configure +``` + +### FCM Token is null + +**Common causes:** +- No internet connection +- Google Play Services not installed (Android) +- Notification permissions not granted + +**Solution:** +```dart +// Check permissions +final permissionGranted = await FirebaseMessaging.instance.requestPermission(); +``` + +### Silent Push Not Waking App + +**Android:** +- Check battery optimization settings +- Disable "Battery Optimization" for the app + +**iOS:** +- Verify APNs configuration +- Check that `content-available: 1` is in payload +- Ensure `apns-priority: 5` for background notifications + +### Cloud Functions Not Deploying + +**Check Firebase CLI version:** +```bash +npm install -g firebase-tools@latest +``` + +**Check Node version:** +```bash +node --version # Should be 18 or higher +``` + +### Notifications Not Showing + +**Check notification permissions:** +```dart +final settings = await FirebaseMessaging.instance.getNotificationSettings(); +print('Permission: ${settings.authorizationStatus}'); +``` + +**Android:** +- Verify notification channel is created +- Check Do Not Disturb settings + +**iOS:** +- Check notification settings in Settings app +- Verify app is not in Low Power Mode + +## Additional Resources + +- [Firebase Documentation](https://firebase.google.com/docs) +- [FlutterFire Documentation](https://firebase.flutter.dev) +- [FCM Setup Guide](https://firebase.google.com/docs/cloud-messaging/flutter/client) +- [APNs Setup Guide](https://firebase.google.com/docs/cloud-messaging/ios/certs) +- [Cloud Functions Documentation](https://firebase.google.com/docs/functions) + +## Support + +For issues specific to this project: +- Open an issue on GitHub +- Check existing issues for solutions +- Review app logs: `flutter logs` +- Review Cloud Functions logs: `firebase functions:log` From 7f819c047c454b2e7f9972899545b47f6a5f12ad Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Tue, 25 Nov 2025 13:29:38 -0300 Subject: [PATCH 23/39] fvm --- .fvmrc | 3 +++ .gitignore | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 .fvmrc diff --git a/.fvmrc b/.fvmrc new file mode 100644 index 00000000..e8b41515 --- /dev/null +++ b/.fvmrc @@ -0,0 +1,3 @@ +{ + "flutter": "3.35.7" +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 57f92581..e3e72fe3 100644 --- a/.gitignore +++ b/.gitignore @@ -83,3 +83,6 @@ functions/.runtimeconfig.json .pdm bfg-1.14.0.jar lib/generated/ + +# FVM Version Cache +.fvm/ \ No newline at end of file From 07dcf3f7326426fdf788bacb124c459ec31ae197 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Tue, 25 Nov 2025 16:18:40 -0300 Subject: [PATCH 24/39] refactor: remove verbose documentation comments from FCM and notification services --- .../background_notification_service.dart | 108 ++--------------- lib/main.dart | 110 +++--------------- lib/services/fcm_service.dart | 83 +++++-------- lib/shared/providers/app_init_provider.dart | 24 ++-- 4 files changed, 71 insertions(+), 254 deletions(-) diff --git a/lib/features/notifications/services/background_notification_service.dart b/lib/features/notifications/services/background_notification_service.dart index 91d89daa..03d265c5 100644 --- a/lib/features/notifications/services/background_notification_service.dart +++ b/lib/features/notifications/services/background_notification_service.dart @@ -1,42 +1,4 @@ -/// Background Notification Service -/// -/// Handles processing of Nostr events for push notifications in both -/// foreground and background contexts. -/// -/// ## Architecture -/// -/// ### Storage Strategy: -/// - **mostro.db**: Core app data (sessions, orders) - Read/Write in foreground -/// - **notifications.db**: Notification deduplication state - Read/Write in background -/// - **events.db**: (Legacy, no longer used for notifications) -/// -/// ### Deduplication: -/// Uses a separate `notification_state` store in `notifications.db` to track -/// which events have been processed. This prevents duplicate notifications and -/// maintains a clean separation between event data and notification state. -/// -/// Schema: notification_state store -/// - key: event ID (String) -/// - value: {processed_at: int, notification_shown: bool} -/// -/// ### Error Handling: -/// - `showLocalNotification()`: Propagates errors to enable retry mechanisms -/// - `retryNotification()`: Implements exponential backoff (1s, 2s, 4s) -/// - Errors are logged and rethrown for proper handling by callers -/// -/// ### Read-only Boundary: -/// Background service maintains read-only access to event/session data: -/// - Reads from mostro.db for session matching and decryption -/// - Writes ONLY to notifications.db for deduplication -/// - Does not modify events.db or mostro.db from background -/// -/// ### Silent Push Flow (Current): -/// 1. FCM sends silent wake-up notification -/// 2. App calls `fetchAndProcessNewEvents()` -/// 3. Fetches new events from relays since last check -/// 4. Each event checked against notification_state for duplicates -/// 5. New events decrypted, processed, and notifications shown -/// 6. Event IDs marked as processed in notification_state +/// Background notification service - processes Nostr events for push notifications library; import 'dart:convert'; @@ -93,23 +55,11 @@ void _onNotificationTap(NotificationResponse response) { } } -/// Show a local notification for a Nostr event -/// -/// This function processes a Nostr event and displays a notification. -/// It uses a separate notification_state store for deduplication to avoid -/// processing the same event multiple times. -/// -/// Architecture: -/// - Read-only for event data -/// - Writes deduplication state to separate notification_state store -/// - Propagates errors to allow retry mechanisms to work -/// -/// Throws: Any error encountered during processing (for retry support) +/// Process and show local notification for a Nostr event Future showLocalNotification(NostrEvent event) async { final logger = Logger(); try { - // Step 1: Check if event was already processed (deduplication) if (event.id == null) { logger.w('Event has no ID, cannot check for duplicates'); return; @@ -120,7 +70,7 @@ Future showLocalNotification(NostrEvent event) async { final alreadyProcessed = await notificationStateStorage.isProcessed(event.id!); if (alreadyProcessed) { - logger.d('Event ${event.id} already processed, skipping notification'); + logger.d('Event ${event.id} already processed, skipping'); return; } @@ -166,7 +116,6 @@ Future showLocalNotification(NostrEvent event) async { ), ); - // Show notification - errors will propagate for retry support await flutterLocalNotificationsPlugin.show( event.id.hashCode, notificationText.title, @@ -175,14 +124,11 @@ Future showLocalNotification(NostrEvent event) async { payload: mostroMessage.id, ); - // Step 2: Mark event as processed to prevent future duplicates await notificationStateStorage.markAsProcessed(event.id!); - logger.i('Notification shown and event marked as processed: ${notificationText.title} - ${notificationText.body}'); + logger.i('Notification shown: ${notificationText.title} - ${notificationText.body}'); } catch (e, stackTrace) { - // Log error with stack trace for debugging logger.e('Notification error: $e', error: e, stackTrace: stackTrace); - // Rethrow to allow retry mechanism to catch and retry rethrow; } } @@ -352,7 +298,6 @@ Future retryNotification(NostrEvent event, {int maxAttempts = 3}) async { break; } - // Exponential backoff: 1s, 2s, 4s, etc. final backoffSeconds = pow(2, attempt - 1).toInt(); Logger().e('Notification attempt $attempt failed: $e. Retrying in ${backoffSeconds}s'); await Future.delayed(Duration(seconds: backoffSeconds)); @@ -360,26 +305,13 @@ Future retryNotification(NostrEvent event, {int maxAttempts = 3}) async { } } -/// Fetch and process all new events from relays (Silent Push approach) -/// -/// This function is called from the FCM silent push handler to fetch -/// all new events from relays and process notifications. -/// -/// Flow: -/// 1. Load all active sessions from database -/// 2. Get last processed timestamp from storage -/// 3. Fetch all new events since last timestamp -/// 4. Process each event and show notifications -/// 5. Update last processed timestamp -/// -/// Privacy: FCM doesn't contain any event data, only wakes up the app +/// Fetch and process new events from relays Future fetchAndProcessNewEvents({required List relays}) async { final logger = Logger(); try { - logger.i('Starting to fetch new events from relays'); + logger.i('Fetching new events from relays'); - // Step 1: Load all sessions from database final sessions = await _loadSessionsFromDatabase(); if (sessions.isEmpty) { @@ -389,19 +321,17 @@ Future fetchAndProcessNewEvents({required List relays}) async { logger.i('Found ${sessions.length} active sessions'); - // Step 2: Get last processed timestamp final sharedPrefs = SharedPreferencesAsync(); final lastProcessedTime = await sharedPrefs.getInt('fcm.last_processed_timestamp') ?? 0; final since = DateTime.fromMillisecondsSinceEpoch(lastProcessedTime * 1000); logger.i('Fetching events since: ${since.toIso8601String()}'); - // Step 3: Initialize NostrService final nostrService = NostrService(); final settings = Settings( relays: relays, fullPrivacyMode: false, - mostroPublicKey: '', // Not needed for fetching + mostroPublicKey: '', ); try { @@ -411,29 +341,23 @@ Future fetchAndProcessNewEvents({required List relays}) async { return; } - // Step 4: Fetch new events for each session int processedCount = 0; final now = DateTime.now(); for (final session in sessions) { try { - // Create filter for this session's events - // Use 'p' tag to filter by recipient (the trade key that can decrypt the event) - // Note: 'authors' would filter by sender, but we need events sent TO this trade key final filter = NostrFilter( - kinds: [1059], // Gift-wrapped events - p: [session.tradeKey.public], // Events sent to this trade key + kinds: [1059], + p: [session.tradeKey.public], since: since, ); logger.d('Fetching events for session: ${session.orderId}'); - // Fetch events final events = await nostrService.fetchEvents(filter); logger.d('Found ${events.length} events for session ${session.orderId}'); - // Process each event for (final event in events) { final nostrEvent = NostrEvent( id: event.id, @@ -446,17 +370,14 @@ Future fetchAndProcessNewEvents({required List relays}) async { subscriptionId: event.subscriptionId, ); - // Show notification await showLocalNotification(nostrEvent); processedCount++; } } catch (e) { logger.e('Error processing events for session ${session.orderId}: $e'); - // Continue with next session } } - // Step 5: Update last processed timestamp final newTimestamp = (now.millisecondsSinceEpoch / 1000).floor(); await sharedPrefs.setInt('fcm.last_processed_timestamp', newTimestamp); @@ -468,16 +389,7 @@ Future fetchAndProcessNewEvents({required List relays}) async { } } -/// Process FCM notification from background when app is terminated (Legacy approach) -/// -/// This function is kept for backward compatibility but is no longer used -/// in the Silent Push approach. -/// -/// Parameters: -/// - [eventId]: The Nostr event ID from the FCM payload -/// - [recipientPubkey]: The recipient public key (trade key) from the FCM payload -/// - [relays]: List of relay URLs to fetch the event from -@Deprecated('Use fetchAndProcessNewEvents for Silent Push approach') +@Deprecated('Use fetchAndProcessNewEvents instead') Future processFCMBackgroundNotification({ required String eventId, required String recipientPubkey, diff --git a/lib/main.dart b/lib/main.dart index a4c57994..f7d97351 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -19,51 +19,23 @@ import 'package:mostro_mobile/shared/utils/notification_permission_helper.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:timeago/timeago.dart' as timeago; -/// Top-level function to handle FCM silent push notifications -/// -/// This is a "Silent Push" approach where FCM is used only to wake up the app. -/// The payload is empty - FCM doesn't contain any event data. -/// -/// IMPORTANT: This runs in a background isolate where: -/// - Flutter plugins are not initialized -/// - UI context is not available -/// - Heavy operations should be avoided -/// -/// This handler only sets a flag that triggers event processing when the app -/// comes to foreground or becomes active. -/// -/// Privacy benefits: -/// - Backend doesn't know which user receives which notification -/// - No mapping of recipient_pubkey → FCM token needed -/// - All sensitive data stays encrypted until decrypted locally -/// -/// Flow: -/// 1. Backend sends empty FCM push to all users -/// 2. FCM wakes up the app in background -/// 3. This handler sets a flag indicating pending work -/// 4. When app is foregrounded, it fetches and processes events +/// FCM background message handler - sets flag for event processing when app becomes active @pragma('vm:entry-point') Future firebaseMessagingBackgroundHandler(RemoteMessage message) async { final logger = Logger(); try { - logger.i('FCM silent push received in background isolate'); - logger.d('Message ID: ${message.messageId}'); + logger.i('FCM silent push received in background'); - // Initialize Firebase in this isolate (lightweight) await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform, ); - // Set flag for pending event processing - // This flag will be checked when app comes to foreground final sharedPrefs = SharedPreferencesAsync(); - await sharedPrefs.setBool('fcm.pending_fetch', true); await sharedPrefs.setInt('fcm.last_wake_timestamp', DateTime.now().millisecondsSinceEpoch); logger.i('Background flag set - events will be fetched when app is active'); - } catch (e, stackTrace) { logger.e('Error in background handler: $e'); logger.e('Stack trace: $stackTrace'); @@ -73,12 +45,10 @@ Future firebaseMessagingBackgroundHandler(RemoteMessage message) async { Future main() async { WidgetsFlutterBinding.ensureInitialized(); - // Initialize Firebase await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform, ); - // Register FCM background message handler FirebaseMessaging.onBackgroundMessage(firebaseMessagingBackgroundHandler); await requestNotificationPermissionIfNeeded(); @@ -112,11 +82,8 @@ Future main() async { ], ); - // Initialize relay sync on app start _initializeRelaySynchronization(container); - - // Setup foreground FCM listener to process events when app is active - _setupForegroundFCMListener(sharedPreferences, settings); + _checkPendingEventsOnResume(sharedPreferences, settings); runApp( UncontrolledProviderScope( @@ -126,78 +93,31 @@ Future main() async { ); } -/// Setup FCM foreground listener to process pending events -/// -/// This listener runs in the main isolate where all Flutter plugins and UI -/// context are available. It checks for pending events flagged by the -/// background handler and processes them safely. -void _setupForegroundFCMListener( - SharedPreferencesAsync sharedPrefs, - SettingsNotifier settings, -) { - final logger = Logger(); - - // Listen for foreground messages - FirebaseMessaging.onMessage.listen((RemoteMessage message) async { - try { - logger.i('FCM message received in foreground'); - - // Process events immediately when app is in foreground - await _processPendingEvents(sharedPrefs, settings, logger); - } catch (e, stackTrace) { - logger.e('Error processing foreground FCM: $e'); - logger.e('Stack trace: $stackTrace'); - } - }); - - // Also check for pending events on app resume - // This handles events flagged by background handler - _checkPendingEventsOnResume(sharedPrefs, settings, logger); -} - -/// Check and process pending events when app resumes or starts +/// Process pending FCM events flagged by background handler Future _checkPendingEventsOnResume( SharedPreferencesAsync sharedPrefs, SettingsNotifier settings, - Logger logger, ) async { + final logger = Logger(); + try { final hasPending = await sharedPrefs.getBool('fcm.pending_fetch') ?? false; if (hasPending) { logger.i('Pending events detected - processing now'); - await _processPendingEvents(sharedPrefs, settings, logger); - } - } catch (e, stackTrace) { - logger.e('Error checking pending events: $e'); - logger.e('Stack trace: $stackTrace'); - } -} -/// Process pending events by fetching from relays -Future _processPendingEvents( - SharedPreferencesAsync sharedPrefs, - SettingsNotifier settings, - Logger logger, -) async { - try { - // Clear the pending flag first to avoid duplicate processing - await sharedPrefs.setBool('fcm.pending_fetch', false); + await sharedPrefs.setBool('fcm.pending_fetch', false); - // Get relay list from settings - final relays = settings.settings.relays; + final relays = settings.settings.relays; + if (relays.isEmpty) { + logger.w('No relays configured - cannot fetch events'); + return; + } - if (relays.isEmpty) { - logger.w('No relays configured - cannot fetch events'); - return; + logger.i('Fetching new events from ${relays.length} relays'); + await fetchAndProcessNewEvents(relays: relays); + logger.i('Successfully processed pending events'); } - - logger.i('Fetching new events from ${relays.length} relays...'); - - // Fetch and process all new events - await fetchAndProcessNewEvents(relays: relays); - - logger.i('Successfully processed pending events'); } catch (e, stackTrace) { logger.e('Error processing pending events: $e'); logger.e('Stack trace: $stackTrace'); diff --git a/lib/services/fcm_service.dart b/lib/services/fcm_service.dart index be90e97e..644c5d8f 100644 --- a/lib/services/fcm_service.dart +++ b/lib/services/fcm_service.dart @@ -3,54 +3,42 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:logger/logger.dart'; import 'package:shared_preferences/shared_preferences.dart'; -/// Service for managing Firebase Cloud Messaging (FCM) functionality -/// -/// This service handles: -/// - FCM token generation and storage -/// - Token refresh handling -/// - Notification permissions -/// - Foreground message handling +/// Firebase Cloud Messaging service for push notifications class FCMService { final Logger _logger = Logger(); final FirebaseMessaging _messaging = FirebaseMessaging.instance; + Future Function()? _onMessageReceivedCallback; + static const String _fcmTokenKey = 'fcm_token'; static const String _fcmTopic = 'mostro_notifications'; bool _isInitialized = false; - /// Returns whether the FCM service has been successfully initialized bool get isInitialized => _isInitialized; - /// Initializes the FCM service - /// - /// This should be called early in the app lifecycle, typically during app initialization - Future initialize() async { + Future initialize({ + Future Function()? onMessageReceived, + }) async { if (_isInitialized) { _logger.i('FCM service already initialized'); return; } try { - _logger.i('Initializing FCM service...'); + _logger.i('Initializing FCM service'); + + _onMessageReceivedCallback = onMessageReceived; - // Request notification permissions final permissionGranted = await _requestPermissions(); if (!permissionGranted) { _logger.w('Notification permissions not granted'); return; } - // Get and store initial FCM token await _getAndStoreToken(); - - // Subscribe to topic for silent push notifications await _subscribeToTopic(); - - // Set up token refresh listener _setupTokenRefreshListener(); - - // Set up foreground message handler _setupForegroundMessageHandler(); _isInitialized = true; @@ -58,16 +46,13 @@ class FCMService { } catch (e, stackTrace) { _logger.e('Failed to initialize FCM service: $e'); _logger.e('Stack trace: $stackTrace'); - // Don't rethrow - FCM is optional, app should continue without it - // The app can still work with the existing BackgroundService for notifications _logger.w('App will continue without FCM push notifications'); } } - /// Requests notification permissions from the user Future _requestPermissions() async { try { - _logger.i('Requesting notification permissions...'); + _logger.i('Requesting notification permissions'); final settings = await _messaging.requestPermission( alert: true, @@ -77,8 +62,7 @@ class FCMService { ); final granted = settings.authorizationStatus == AuthorizationStatus.authorized; - - _logger.i('Notification permission status: ${settings.authorizationStatus}'); + _logger.i('Permission status: ${settings.authorizationStatus}'); return granted; } catch (e) { @@ -87,7 +71,6 @@ class FCMService { } } - /// Gets the FCM token and stores it in SharedPreferences Future _getAndStoreToken() async { try { final token = await _messaging.getToken().timeout( @@ -109,40 +92,35 @@ class FCMService { } } - /// Saves the FCM token to SharedPreferences Future _saveToken(String token) async { try { final prefs = await SharedPreferences.getInstance(); await prefs.setString(_fcmTokenKey, token); - _logger.i('FCM token saved to SharedPreferences'); + _logger.i('FCM token saved'); } catch (e) { _logger.e('Error saving FCM token: $e'); } } - /// Subscribes to the FCM topic for broadcast notifications Future _subscribeToTopic() async { try { await _messaging.subscribeToTopic(_fcmTopic).timeout( const Duration(seconds: 10), onTimeout: () { - _logger.w('Timeout subscribing to FCM topic: $_fcmTopic'); + _logger.w('Timeout subscribing to topic: $_fcmTopic'); }, ); - _logger.i('Subscribed to FCM topic: $_fcmTopic'); + _logger.i('Subscribed to topic: $_fcmTopic'); } catch (e) { - _logger.e('Error subscribing to FCM topic: $e'); - // Don't throw - topic subscription is not critical, can retry later + _logger.e('Error subscribing to topic: $e'); } } - /// Sets up a listener for FCM token refresh void _setupTokenRefreshListener() { _messaging.onTokenRefresh.listen( (newToken) { _logger.i('FCM token refreshed: ${newToken.substring(0, 20)}...'); _saveToken(newToken); - // TODO: Send new token to backend when available }, onError: (error) { _logger.e('Error in token refresh listener: $error'); @@ -150,27 +128,28 @@ class FCMService { ); } - /// Sets up handler for foreground messages void _setupForegroundMessageHandler() { FirebaseMessaging.onMessage.listen( - (RemoteMessage message) { + (RemoteMessage message) async { _logger.i('Received foreground FCM message'); - _logger.d('Message data: ${message.data}'); - // TODO: Process foreground messages - // For now, just log them - if (message.notification != null) { - _logger.i('Notification title: ${message.notification!.title}'); - _logger.i('Notification body: ${message.notification!.body}'); + if (_onMessageReceivedCallback != null) { + try { + await _onMessageReceivedCallback!(); + _logger.i('Event processing completed'); + } catch (e) { + _logger.e('Error processing events: $e'); + } + } else { + _logger.w('No callback configured'); } }, onError: (error) { - _logger.e('Error in foreground message handler: $error'); + _logger.e('Error in message handler: $error'); }, ); } - /// Gets the currently stored FCM token Future getToken() async { try { final prefs = await SharedPreferences.getInstance(); @@ -181,38 +160,34 @@ class FCMService { } } - /// Deletes the stored FCM token Future deleteToken() async { try { await _messaging.deleteToken().timeout( const Duration(seconds: 10), onTimeout: () { - _logger.w('Timeout deleting FCM token from Firebase'); + _logger.w('Timeout deleting FCM token'); }, ); final prefs = await SharedPreferences.getInstance(); await prefs.remove(_fcmTokenKey); - _logger.i('FCM token deleted successfully'); + _logger.i('FCM token deleted'); } catch (e) { _logger.e('Error deleting FCM token: $e'); - // Try to remove from local storage even if Firebase delete fails try { final prefs = await SharedPreferences.getInstance(); await prefs.remove(_fcmTokenKey); _logger.i('FCM token removed from local storage'); } catch (localError) { - _logger.e('Error removing FCM token from local storage: $localError'); + _logger.e('Error removing token from local storage: $localError'); } } } - /// Cleans up resources void dispose() { _isInitialized = false; } } -/// Provider for the FCM service final fcmServiceProvider = Provider((ref) { final service = FCMService(); ref.onDispose(() { diff --git a/lib/shared/providers/app_init_provider.dart b/lib/shared/providers/app_init_provider.dart index a50a7561..c39252b8 100644 --- a/lib/shared/providers/app_init_provider.dart +++ b/lib/shared/providers/app_init_provider.dart @@ -11,6 +11,7 @@ import 'package:mostro_mobile/shared/providers/background_service_provider.dart' import 'package:mostro_mobile/shared/providers/nostr_service_provider.dart'; import 'package:mostro_mobile/shared/providers/session_notifier_provider.dart'; import 'package:mostro_mobile/features/subscriptions/subscription_manager_provider.dart'; +import 'package:mostro_mobile/features/notifications/services/background_notification_service.dart'; final appInitializerProvider = FutureProvider((ref) async { final logger = Logger(); @@ -18,16 +19,25 @@ final appInitializerProvider = FutureProvider((ref) async { final nostrService = ref.read(nostrServiceProvider); await nostrService.init(ref.read(settingsProvider)); - // Initialize FCM service for push notifications (non-critical) - // FCM is optional - app can function without it using BackgroundService final fcmService = ref.read(fcmServiceProvider); try { - await fcmService.initialize(); + await fcmService.initialize( + onMessageReceived: () async { + final settings = ref.read(settingsProvider); + final relays = settings.relays; + + if (relays.isEmpty) { + logger.w('No relays configured - cannot fetch events'); + return; + } + + logger.i('FCM message received - fetching events from ${relays.length} relays'); + await fetchAndProcessNewEvents(relays: relays); + }, + ); } catch (e, stackTrace) { - // Log but don't fail app initialization if FCM fails - // The app can still work with existing BackgroundService for notifications - logger.e('FCM initialization failed during app init: $e', error: e, stackTrace: stackTrace); - logger.w('App will continue without FCM - using BackgroundService for notifications'); + logger.e('FCM initialization failed: $e', error: e, stackTrace: stackTrace); + logger.w('App will continue without FCM'); } final keyManager = ref.read(keyManagerProvider); From c9c54671de31fa04c945477d023b896f454615f3 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Tue, 25 Nov 2025 17:41:19 -0300 Subject: [PATCH 25/39] refactor: remove verbose documentation comments from Firebase Cloud Functions --- functions/src/index.ts | 71 ++---------------------------------------- 1 file changed, 3 insertions(+), 68 deletions(-) diff --git a/functions/src/index.ts b/functions/src/index.ts index 9a83483a..8b28055b 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -1,56 +1,18 @@ -/** - * Firebase Cloud Function for Mostro Mobile Push Notifications - * - * This function polls Nostr relays for new kind 1059 (gift-wrapped) events - * and sends silent push notifications via FCM to wake up the mobile app. - * - * Privacy-preserving approach: - * - No event data sent via FCM - * - No user-to-token mapping needed - * - All devices receive the same empty notification - * - App fetches and decrypts events locally - * - * Polling-based architecture: - * - Scheduled function runs every 5 minutes - * - Queries relay for new events since last check - * - Closes connection immediately after receiving response - * - No persistent WebSocket connections - */ - import * as admin from "firebase-admin"; import * as logger from "firebase-functions/logger"; import {onSchedule} from "firebase-functions/v2/scheduler"; import {onRequest} from "firebase-functions/v2/https"; import WebSocket from "ws"; -// Initialize Firebase Admin SDK admin.initializeApp(); -// Configuration - Mostro relay from lib/core/config.dart -const NOSTR_RELAYS = [ - "wss://relay.mostro.network", -]; - -// Mostro instance public key - matches lib/core/config.dart -// This filters events to only those from your Mostro instance -const MOSTRO_PUBKEY = - "82fa8cb978b43c79b2156585bac2c011176a21d2aead6d9f7c575c005be88390"; - -// FCM topic that all app instances subscribe to +const NOSTR_RELAYS = ["wss://relay.mostro.network"]; +const MOSTRO_PUBKEY = "0a537332f2d569059add3fd2e376e1d6b8c1e1b9f7a999ac2592b4afbba74a00"; const FCM_TOPIC = "mostro_notifications"; +const SUBSCRIPTION_ID = "mostro-poller"; -// Track last check time to query for new events let lastCheckTimestamp = Math.floor(Date.now() / 1000); -// Subscription ID for tracking -const SUBSCRIPTION_ID = "mostro-poller"; - -/** - * Polls a Nostr relay for new events since the last check - * Opens connection, queries, waits for response, then closes - * @param {string} relayUrl - The WebSocket URL of the Nostr relay - * @return {Promise} Number of new events found - */ function pollRelay(relayUrl: string): Promise { return new Promise((resolve, reject) => { let eventCount = 0; @@ -61,7 +23,6 @@ function pollRelay(relayUrl: string): Promise { const ws = new WebSocket(relayUrl); - // Set timeout for the entire operation (30 seconds) timeoutHandle = setTimeout(() => { logger.warn(`Polling timeout for ${relayUrl}`); ws.close(); @@ -71,7 +32,6 @@ function pollRelay(relayUrl: string): Promise { ws.on("open", () => { logger.info(`Connected to ${relayUrl}`); - // Query for events since last check const subscriptionMessage = JSON.stringify([ "REQ", SUBSCRIPTION_ID, @@ -92,11 +52,9 @@ function pollRelay(relayUrl: string): Promise { try { const message = JSON.parse(data.toString()); - // Check if this is an EVENT message if (message[0] === "EVENT" && message[1] === SUBSCRIPTION_ID) { const event = message[2]; - // Verify it's a kind 1059 event if (event.kind === 1059) { eventCount++; logger.info(`Found new event from ${relayUrl}`, { @@ -111,7 +69,6 @@ function pollRelay(relayUrl: string): Promise { eventsFound: eventCount, }); - // Close connection after receiving EOSE clearTimeout(timeoutHandle); ws.close(); resolve(eventCount); @@ -141,25 +98,18 @@ function pollRelay(relayUrl: string): Promise { }); } -/** - * Sends a silent push notification to all subscribed devices - * Uses FCM topic messaging to broadcast to all users - */ async function sendSilentPushNotification(): Promise { try { const now = Date.now(); - // Send silent data-only message to FCM topic const message = { topic: FCM_TOPIC, data: { - // Empty payload - just wake up the app type: "silent_wake", timestamp: now.toString(), }, android: { priority: "high" as const, - // Silent notification - no sound, no vibration notification: undefined, }, apns: { @@ -187,10 +137,6 @@ async function sendSilentPushNotification(): Promise { } } -/** - * HTTP endpoint to manually trigger a test notification - * Useful for testing the FCM setup - */ export const sendTestNotification = onRequest(async (_req, res) => { try { await sendSilentPushNotification(); @@ -201,9 +147,6 @@ export const sendTestNotification = onRequest(async (_req, res) => { } }); -/** - * HTTP endpoint to get polling status - */ export const getStatus = onRequest((_req, res) => { const status = { relays: NOSTR_RELAYS, @@ -216,10 +159,6 @@ export const getStatus = onRequest((_req, res) => { res.json(status); }); -/** - * Scheduled function to poll relays for new events - * Runs every 5 minutes to check for new Mostro notifications - */ export const keepAlive = onSchedule("every 5 minutes", async () => { const checkStartTime = Math.floor(Date.now() / 1000); logger.info("Starting scheduled relay poll", { @@ -229,11 +168,9 @@ export const keepAlive = onSchedule("every 5 minutes", async () => { }); try { - // Poll all configured relays const pollPromises = NOSTR_RELAYS.map((relayUrl) => pollRelay(relayUrl)); const results = await Promise.allSettled(pollPromises); - // Count total new events let totalNewEvents = 0; results.forEach((result, index) => { if (result.status === "fulfilled") { @@ -253,7 +190,6 @@ export const keepAlive = onSchedule("every 5 minutes", async () => { relaysChecked: NOSTR_RELAYS.length, }); - // Send notification if we found new events if (totalNewEvents > 0) { logger.info(`Found ${totalNewEvents} new events, sending notification`); await sendSilentPushNotification(); @@ -261,7 +197,6 @@ export const keepAlive = onSchedule("every 5 minutes", async () => { logger.info("No new events found, skipping notification"); } - // Update last check timestamp for next poll lastCheckTimestamp = checkStartTime; } catch (error) { logger.error("Error in keepAlive poll:", error); From 2eea02adb4440a510250a74ce9ca2c9e3c3cb83c Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Wed, 26 Nov 2025 13:31:04 -0300 Subject: [PATCH 26/39] refactor: enhance FCM and lifecycle logging with structured markers and error handling --- lib/services/fcm_service.dart | 15 +++++- lib/services/lifecycle_manager.dart | 52 ++++++++++++++++----- lib/shared/providers/app_init_provider.dart | 8 ++-- 3 files changed, 58 insertions(+), 17 deletions(-) diff --git a/lib/services/fcm_service.dart b/lib/services/fcm_service.dart index 644c5d8f..450f8e4e 100644 --- a/lib/services/fcm_service.dart +++ b/lib/services/fcm_service.dart @@ -26,27 +26,38 @@ class FCMService { } try { - _logger.i('Initializing FCM service'); + _logger.i('=== FCM INITIALIZATION START ==='); _onMessageReceivedCallback = onMessageReceived; + _logger.i('Callback configured: ${onMessageReceived != null}'); + _logger.i('Requesting notification permissions...'); final permissionGranted = await _requestPermissions(); + _logger.i('Permission granted: $permissionGranted'); if (!permissionGranted) { _logger.w('Notification permissions not granted'); return; } + _logger.i('Getting FCM token...'); await _getAndStoreToken(); + + _logger.i('Subscribing to FCM topic...'); await _subscribeToTopic(); + + _logger.i('Setting up token refresh listener...'); _setupTokenRefreshListener(); + + _logger.i('Setting up foreground message handler...'); _setupForegroundMessageHandler(); _isInitialized = true; - _logger.i('FCM service initialized successfully'); + _logger.i('=== FCM INITIALIZATION COMPLETE ==='); } catch (e, stackTrace) { _logger.e('Failed to initialize FCM service: $e'); _logger.e('Stack trace: $stackTrace'); _logger.w('App will continue without FCM push notifications'); + rethrow; } } diff --git a/lib/services/lifecycle_manager.dart b/lib/services/lifecycle_manager.dart index fda71073..06bc60e8 100644 --- a/lib/services/lifecycle_manager.dart +++ b/lib/services/lifecycle_manager.dart @@ -11,6 +11,9 @@ import 'package:mostro_mobile/shared/providers/background_service_provider.dart' import 'package:mostro_mobile/shared/providers/mostro_service_provider.dart'; import 'package:mostro_mobile/shared/providers/order_repository_provider.dart'; import 'package:mostro_mobile/features/subscriptions/subscription_manager_provider.dart'; +import 'package:mostro_mobile/features/settings/settings_provider.dart'; +import 'package:mostro_mobile/features/notifications/services/background_notification_service.dart'; +import 'package:shared_preferences/shared_preferences.dart'; class LifecycleManager extends WidgetsBindingObserver { final Ref ref; @@ -23,10 +26,11 @@ class LifecycleManager extends WidgetsBindingObserver { @override void didChangeAppLifecycleState(AppLifecycleState state) async { + _logger.i('App lifecycle state changed to: $state'); + if (Platform.isAndroid || Platform.isIOS) { switch (state) { case AppLifecycleState.resumed: - // App is in foreground if (_isInBackground) { await _switchToForeground(); } @@ -34,7 +38,6 @@ class LifecycleManager extends WidgetsBindingObserver { case AppLifecycleState.paused: case AppLifecycleState.inactive: case AppLifecycleState.detached: - // App is in background if (!_isInBackground) { await _switchToBackground(); } @@ -50,10 +53,11 @@ class LifecycleManager extends WidgetsBindingObserver { _isInBackground = false; _logger.i("Switching to foreground"); + await _checkPendingFCMEvents(); + // Stop background service final backgroundService = ref.read(backgroundServiceProvider); await backgroundService.setForegroundStatus(true); - _logger.i("Background service foreground status set to true"); // Add a small delay to ensure the background service has fully transitioned await Future.delayed(const Duration(milliseconds: 500)); @@ -62,21 +66,17 @@ class LifecycleManager extends WidgetsBindingObserver { subscriptionManager.subscribeAll(); // Reinitialize the mostro service - _logger.i("Reinitializing MostroService"); ref.read(mostroServiceProvider).init(); - // Refresh order repository by re-reading it - _logger.i("Refreshing order repository"); + // Refresh order repository final orderRepo = ref.read(orderRepositoryProvider); orderRepo.reloadData(); // Reinitialize chat rooms - _logger.i("Reloading chat rooms"); final chatRooms = ref.read(chatRoomsNotifierProvider.notifier); chatRooms.reloadAllChats(); // Force UI update for trades - _logger.i("Invalidating providers to refresh UI"); ref.invalidate(filteredTradesWithOrderStateProvider); _logger.i("Foreground transition complete"); @@ -85,24 +85,52 @@ class LifecycleManager extends WidgetsBindingObserver { } } + Future _checkPendingFCMEvents() async { + try { + final sharedPrefs = SharedPreferencesAsync(); + final hasPending = await sharedPrefs.getBool('fcm.pending_fetch') ?? false; + + if (hasPending) { + _logger.i('Pending FCM events detected - processing now'); + + await sharedPrefs.setBool('fcm.pending_fetch', false); + + final settings = ref.read(settingsProvider); + final relays = settings.relays; + + if (relays.isEmpty) { + _logger.w('No relays configured - cannot fetch events'); + return; + } + + _logger.i('Fetching new events from ${relays.length} relays'); + await fetchAndProcessNewEvents(relays: relays); + _logger.i('Successfully processed pending FCM events'); + } + } catch (e, stackTrace) { + _logger.e('Error processing pending FCM events: $e'); + _logger.e('Stack trace: $stackTrace'); + } + } + Future _switchToBackground() async { try { + _isInBackground = true; + _logger.i("Switching to background"); + // Get the subscription manager final subscriptionManager = ref.read(subscriptionManagerProvider); final activeFilters = []; - + // Get actual filters for each subscription type for (final type in SubscriptionType.values) { final filters = subscriptionManager.getActiveFilters(type); if (filters.isNotEmpty) { - _logger.d('Found ${filters.length} active filters for $type'); activeFilters.addAll(filters); } } if (activeFilters.isNotEmpty) { - _isInBackground = true; - _logger.i("Switching to background"); subscriptionManager.unsubscribeAll(); // Transfer active subscriptions to background service final backgroundService = ref.read(backgroundServiceProvider); diff --git a/lib/shared/providers/app_init_provider.dart b/lib/shared/providers/app_init_provider.dart index c39252b8..74459124 100644 --- a/lib/shared/providers/app_init_provider.dart +++ b/lib/shared/providers/app_init_provider.dart @@ -16,6 +16,8 @@ import 'package:mostro_mobile/features/notifications/services/background_notific final appInitializerProvider = FutureProvider((ref) async { final logger = Logger(); + logger.i('=== APP INITIALIZATION STARTED ==='); + final nostrService = ref.read(nostrServiceProvider); await nostrService.init(ref.read(settingsProvider)); @@ -31,13 +33,11 @@ final appInitializerProvider = FutureProvider((ref) async { return; } - logger.i('FCM message received - fetching events from ${relays.length} relays'); await fetchAndProcessNewEvents(relays: relays); }, ); } catch (e, stackTrace) { logger.e('FCM initialization failed: $e', error: e, stackTrace: stackTrace); - logger.w('App will continue without FCM'); } final keyManager = ref.read(keyManagerProvider); @@ -45,7 +45,7 @@ final appInitializerProvider = FutureProvider((ref) async { final sessionManager = ref.read(sessionNotifierProvider.notifier); await sessionManager.init(); - + ref.read(subscriptionManagerProvider); ref.listen(settingsProvider, (previous, next) { @@ -63,4 +63,6 @@ final appInitializerProvider = FutureProvider((ref) async { ref.read(chatRoomsProvider(session.orderId!).notifier).subscribe(); } } + + logger.i('=== APP INITIALIZATION COMPLETED ==='); }); From cb4d8b28fc5f55c9be1467b5d81a626ef7443873 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Thu, 27 Nov 2025 05:26:43 -0300 Subject: [PATCH 27/39] refactor: remove notification state storage and improve event deduplication with EventStorage --- PLAN_FCM.md | 108 ------------------ functions/src/index.ts | 2 +- lib/background/background.dart | 8 +- .../background_notification_service.dart | 55 +++++---- lib/services/lifecycle_manager.dart | 8 +- 5 files changed, 36 insertions(+), 145 deletions(-) delete mode 100644 PLAN_FCM.md diff --git a/PLAN_FCM.md b/PLAN_FCM.md deleted file mode 100644 index 201262f0..00000000 --- a/PLAN_FCM.md +++ /dev/null @@ -1,108 +0,0 @@ -Plan de Implementación: Firebase Cloud Messaging (FCM) -Objetivo -Implementar notificaciones push cuando la app está completamente cerrada usando Firebase Cloud Messaging, manteniendo la privacidad y seguridad del sistema actual. -Arquitectura Propuesta -1. Modelo de Seguridad -FCM Payload: Solo event_id + recipient_pubkey (datos públicos) -Decryption: Siempre en el dispositivo usando trade keys -Privacy: Nunca enviar contenido sensible vía FCM -2. Flujo de Notificaciones -Mostro publica evento → Backend detecta → Envía FCM minimal payload → -Dispositivo recibe → Carga sesión desde Sembast → Fetch evento desde relay → -Decrypta con trade key → Muestra notificación local -Fases de Implementación -Fase 1: Configuración Firebase (Requiere acceso a Firebase Console) -Crear proyecto Firebase (o usar existente) -Agregar app Android (network.mostro.app) -Agregar app iOS (bundle ID desde Xcode) -Descargar configuraciones: -google-services.json → /android/app/ -GoogleService-Info.plist → /ios/Runner/ -Configurar APNs para iOS (certificado/key) -Fase 2: Dependencias y Configuración Flutter -Agregar a pubspec.yaml: -firebase_core: ^3.8.0 -firebase_messaging: ^15.1.4 -Actualizar /android/build.gradle (agregar google-services plugin) -Actualizar /android/app/build.gradle (aplicar plugin, agregar dependencies) -Actualizar /ios/Podfile si es necesario -Fase 3: Servicio FCM -Crear /lib/services/fcm_service.dart: -Inicializar Firebase -Solicitar permisos de notificación -Obtener y almacenar FCM token -Manejar refresh de token -Handler para foreground messages -Crear top-level function firebaseMessagingBackgroundHandler en main.dart: -Cargar Sembast database -Buscar sesión por recipient_pubkey -Fetch evento desde relay usando event_id -Decryptar con trade key de sesión -Mostrar notificación local usando BackgroundNotificationService -Fase 4: Integración con App -Modificar main.dart: -Inicializar Firebase antes de runApp -Registrar background handler -Inicializar FCM service -Modificar appInitializerProvider: -Agregar inicialización de FCM -Solicitar permisos de notificación -Obtener token inicial -Modificar BackgroundNotificationService: -Agregar deduplicación con EventStorage -Mejorar navigation payload para tap actions -Unificar handlers (background service vs FCM) -Fase 5: Token Management -Crear storage para FCM token en SharedPreferences -Implementar listener de token refresh -Enviar token a backend Mostro (si hay endpoint disponible) -Manejar casos de token inválido/expirado -Fase 6: Testing y Validación -Test con Firebase Console (envío manual) -Test app terminada (killed) -Test app en background -Test app en foreground -Test tap en notificación -Test múltiples sesiones activas -Verificar no duplicación de notificaciones -Archivos a Crear/Modificar -Crear: -/lib/services/fcm_service.dart - Servicio principal FCM -/android/app/google-services.json - Config Firebase Android -/ios/Runner/GoogleService-Info.plist - Config Firebase iOS -Modificar: -pubspec.yaml - Agregar dependencias Firebase -/android/build.gradle - Plugin google-services -/android/app/build.gradle - Aplicar plugin, dependencies -lib/main.dart - Inicializar Firebase, background handler -lib/shared/providers/app_init_provider.dart - Init FCM -lib/features/notifications/services/background_notification_service.dart - Mejorar handlers -Consideraciones Importantes -Backend/Server Required -⚠️ CRÍTICO: Necesitas un backend que: -Escuche eventos Mostro en relays -Detecte eventos tipo 1059 (gift-wrapped) -Envíe payload FCM minimal a dispositivos registrados -Mapee recipient_pubkey → FCM tokens -Eventos Prioritarios para Notificaciones -Alta prioridad: buyerTookOrder, payInvoice, addInvoice, canceled, disputeInitiatedByPeer Media prioridad: holdInvoicePaymentAccepted, fiatSentOk, released, purchaseCompleted -Deduplicación -Usar EventStorage existente para evitar duplicados -Coordinar con background service actual -FCM solo para app terminada, background service para backgrounded -Privacy & Security -✅ Solo datos públicos en FCM payload -✅ Decryption siempre local -✅ Trade keys nunca salen del dispositivo -❌ Nunca incluir amounts, nombres, direcciones en FCM -Preguntas Clave -Antes de implementar, necesito saber: -¿Tienes acceso a Firebase Console para crear el proyecto? -¿Existe un backend/server que pueda enviar mensajes FCM? Si no existe, habría que implementarlo -¿El backend Mostro está bajo tu control o es de terceros? -¿Prefieres que el token FCM se envíe a un backend tuyo o directamente al Mostro instance? -¿Quieres implementar Firebase Analytics/Crashlytics también, o solo FCM? -Estimación -Con backend existente: 2-3 días de desarrollo + 1 día testing -Sin backend: +3-5 días para backend FCM relay listener -Complejidad: Media-Alta (manejo de isolates, crypto en background) \ No newline at end of file diff --git a/functions/src/index.ts b/functions/src/index.ts index 8b28055b..90fdfb23 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -7,7 +7,7 @@ import WebSocket from "ws"; admin.initializeApp(); const NOSTR_RELAYS = ["wss://relay.mostro.network"]; -const MOSTRO_PUBKEY = "0a537332f2d569059add3fd2e376e1d6b8c1e1b9f7a999ac2592b4afbba74a00"; +const MOSTRO_PUBKEY = "82fa8cb978b43c79b2156585bac2c011176a21d2aead6d9f7c575c005be88390"; const FCM_TOPIC = "mostro_notifications"; const SUBSCRIPTION_ID = "mostro-poller"; diff --git a/lib/background/background.dart b/lib/background/background.dart index 6161ced3..0fb76c93 100644 --- a/lib/background/background.dart +++ b/lib/background/background.dart @@ -4,7 +4,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_background_service/flutter_background_service.dart'; import 'package:logger/logger.dart'; import 'package:mostro_mobile/data/models/nostr_filter.dart'; -import 'package:mostro_mobile/data/repositories/notification_state_storage.dart'; +import 'package:mostro_mobile/data/repositories/event_storage.dart'; import 'package:mostro_mobile/features/settings/settings.dart'; import 'package:mostro_mobile/features/notifications/services/background_notification_service.dart' as notification_service; import 'package:mostro_mobile/services/nostr_service.dart'; @@ -24,8 +24,8 @@ Future serviceMain(ServiceInstance service) async { final Map> activeSubscriptions = {}; final nostrService = NostrService(); - final db = await openMostroDatabase('notifications.db'); - final notificationStateStore = NotificationStateStorage(db: db); + final db = await openMostroDatabase('events.db'); + final eventStore = EventStorage(db: db); service.on('app-foreground-status').listen((data) { isAppForeground = data?['is-foreground'] ?? isAppForeground; @@ -75,7 +75,7 @@ Future serviceMain(ServiceInstance service) async { subscription.listen((event) async { try { - if (await notificationStateStore.isProcessed(event.id!)) return; + if (await eventStore.hasItem(event.id!)) return; await notification_service.retryNotification(event); } catch (e) { Logger().e('Error processing event', error: e); diff --git a/lib/features/notifications/services/background_notification_service.dart b/lib/features/notifications/services/background_notification_service.dart index 03d265c5..76ad8ee2 100644 --- a/lib/features/notifications/services/background_notification_service.dart +++ b/lib/features/notifications/services/background_notification_service.dart @@ -16,7 +16,6 @@ import 'package:mostro_mobile/data/models/mostro_message.dart'; import 'package:mostro_mobile/data/models/nostr_event.dart'; import 'package:mostro_mobile/data/models/session.dart'; import 'package:mostro_mobile/data/models/enums/action.dart' as mostro_action; -import 'package:mostro_mobile/data/repositories/notification_state_storage.dart'; import 'package:mostro_mobile/data/repositories/session_storage.dart'; import 'package:mostro_mobile/features/key_manager/key_derivator.dart'; import 'package:mostro_mobile/features/key_manager/key_manager.dart'; @@ -55,34 +54,18 @@ void _onNotificationTap(NotificationResponse response) { } } -/// Process and show local notification for a Nostr event Future showLocalNotification(NostrEvent event) async { - final logger = Logger(); - try { - if (event.id == null) { - logger.w('Event has no ID, cannot check for duplicates'); - return; - } - - final notificationDb = await openMostroDatabase('notifications.db'); - final notificationStateStorage = NotificationStateStorage(db: notificationDb); - - final alreadyProcessed = await notificationStateStorage.isProcessed(event.id!); - if (alreadyProcessed) { - logger.d('Event ${event.id} already processed, skipping'); - return; - } - final mostroMessage = await _decryptAndProcessEvent(event); if (mostroMessage == null) return; + final sessions = await _loadSessionsFromDatabase(); final matchingSession = sessions.cast().firstWhere( (session) => session?.orderId == mostroMessage.id, orElse: () => null, ); - + final notificationData = await NotificationDataExtractor.extractFromMostroMessage(mostroMessage, null, session: matchingSession); if (notificationData == null || notificationData.isTemporary) return; @@ -101,7 +84,7 @@ Future showLocalNotification(NostrEvent event) async { enableVibration: true, ticker: notificationText.title, icon: '@drawable/ic_notification', - styleInformation: expandedText != null + styleInformation: expandedText != null ? BigTextStyleInformation(expandedText, contentTitle: notificationText.title) : null, category: AndroidNotificationCategory.message, @@ -124,12 +107,9 @@ Future showLocalNotification(NostrEvent event) async { payload: mostroMessage.id, ); - await notificationStateStorage.markAsProcessed(event.id!); - - logger.i('Notification shown: ${notificationText.title} - ${notificationText.body}'); - } catch (e, stackTrace) { - logger.e('Notification error: $e', error: e, stackTrace: stackTrace); - rethrow; + Logger().i('Shown: ${notificationText.title} - ${notificationText.body}'); + } catch (e) { + Logger().e('Notification error: $e'); } } @@ -138,13 +118,32 @@ Future _decryptAndProcessEvent(NostrEvent event) async { try { if (event.kind != 4 && event.kind != 1059) return null; + // Extract recipient from event + String? recipient = event.recipient; + + // For kind 1059 (gift-wrapped), recipient might be in 'p' tag + if ((recipient == null || recipient.isEmpty) && event.kind == 1059 && event.tags != null) { + final pTags = event.tags!.where((tag) => tag.isNotEmpty && tag[0] == 'p'); + if (pTags.isNotEmpty && pTags.first.length > 1) { + recipient = pTags.first[1]; + } + } + + if (recipient == null || recipient.isEmpty) { + Logger().d('No recipient found for event ${event.id}'); + return null; + } + final sessions = await _loadSessionsFromDatabase(); final matchingSession = sessions.cast().firstWhere( - (s) => s?.tradeKey.public == event.recipient, + (s) => s?.tradeKey.public == recipient, orElse: () => null, ); - if (matchingSession == null) return null; + if (matchingSession == null) { + Logger().d('No matching session found for recipient: ${recipient.substring(0, 16)}...'); + return null; + } final decryptedEvent = await event.unWrap(matchingSession.tradeKey.private); if (decryptedEvent.content == null) return null; diff --git a/lib/services/lifecycle_manager.dart b/lib/services/lifecycle_manager.dart index 06bc60e8..113da0f7 100644 --- a/lib/services/lifecycle_manager.dart +++ b/lib/services/lifecycle_manager.dart @@ -115,22 +115,22 @@ class LifecycleManager extends WidgetsBindingObserver { Future _switchToBackground() async { try { - _isInBackground = true; - _logger.i("Switching to background"); - // Get the subscription manager final subscriptionManager = ref.read(subscriptionManagerProvider); final activeFilters = []; - + // Get actual filters for each subscription type for (final type in SubscriptionType.values) { final filters = subscriptionManager.getActiveFilters(type); if (filters.isNotEmpty) { + _logger.d('Found ${filters.length} active filters for $type'); activeFilters.addAll(filters); } } if (activeFilters.isNotEmpty) { + _isInBackground = true; + _logger.i("Switching to background"); subscriptionManager.unsubscribeAll(); // Transfer active subscriptions to background service final backgroundService = ref.read(backgroundServiceProvider); From b9ccfafb2c309c042a4f8f9c7062ff318b81f37e Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Thu, 27 Nov 2025 05:30:42 -0300 Subject: [PATCH 28/39] refactor: simplify Firebase options documentation comments --- lib/firebase_options.dart | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/lib/firebase_options.dart b/lib/firebase_options.dart index 528a5dd5..048396bf 100644 --- a/lib/firebase_options.dart +++ b/lib/firebase_options.dart @@ -6,37 +6,8 @@ import 'package:flutter/foundation.dart' /// Default [FirebaseOptions] for use with your Firebase apps. /// -/// ## Security Note -/// -/// The credentials in this file (API keys, App IDs, Project IDs) are **public by design** -/// and safe to commit to version control. These are client-side identifiers used to connect -/// mobile/web apps to Firebase services. -/// -/// **What is public (safe to expose):** -/// - API Keys (apiKey): Public identifiers for Firebase project -/// - App IDs (appId): Public app identifiers -/// - Project ID (projectId): Public project identifier -/// - Sender ID (messagingSenderId): Public FCM sender identifier -/// -/// **What is private (NOT in this file):** -/// - Service Account Keys (private_key): Server-side credentials for Firebase Admin SDK -/// - These are managed securely by Firebase Cloud Functions and never exposed to clients -/// -/// **Security comes from:** -/// - Firebase Security Rules (Firestore, Storage, etc.) -/// - App Check for preventing abuse -/// - Proper backend authentication and authorization -/// -/// Reference: https://firebase.google.com/docs/projects/api-keys -/// -/// Example: -/// ```dart -/// import 'firebase_options.dart'; -/// // ... -/// await Firebase.initializeApp( -/// options: DefaultFirebaseOptions.currentPlatform, -/// ); -/// ``` +/// Note: These credentials are public by design and safe to commit. +/// See: https://firebase.google.com/docs/projects/api-keys class DefaultFirebaseOptions { static FirebaseOptions get currentPlatform { if (kIsWeb) { From 3439bbaff7fb83f757576002e4d3e6965b524150 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Thu, 27 Nov 2025 06:17:17 -0300 Subject: [PATCH 29/39] refactor: improve FCM service cleanup and pending event processing (coderabbit suggest) --- .../background_notification_service.dart | 3 --- lib/services/fcm_service.dart | 20 +++++++++++++++++-- lib/services/lifecycle_manager.dart | 8 ++++++-- 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/lib/features/notifications/services/background_notification_service.dart b/lib/features/notifications/services/background_notification_service.dart index 76ad8ee2..98f2a003 100644 --- a/lib/features/notifications/services/background_notification_service.dart +++ b/lib/features/notifications/services/background_notification_service.dart @@ -1,6 +1,3 @@ -/// Background notification service - processes Nostr events for push notifications -library; - import 'dart:convert'; import 'dart:math'; diff --git a/lib/services/fcm_service.dart b/lib/services/fcm_service.dart index 450f8e4e..c3098560 100644 --- a/lib/services/fcm_service.dart +++ b/lib/services/fcm_service.dart @@ -1,3 +1,5 @@ +import 'dart:async'; + import 'package:firebase_messaging/firebase_messaging.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:logger/logger.dart'; @@ -14,6 +16,9 @@ class FCMService { static const String _fcmTopic = 'mostro_notifications'; bool _isInitialized = false; + + StreamSubscription? _tokenRefreshSub; + StreamSubscription? _foregroundMsgSub; bool get isInitialized => _isInitialized; @@ -128,7 +133,10 @@ class FCMService { } void _setupTokenRefreshListener() { - _messaging.onTokenRefresh.listen( + // Cancel existing subscription if any + _tokenRefreshSub?.cancel(); + + _tokenRefreshSub = _messaging.onTokenRefresh.listen( (newToken) { _logger.i('FCM token refreshed: ${newToken.substring(0, 20)}...'); _saveToken(newToken); @@ -140,7 +148,10 @@ class FCMService { } void _setupForegroundMessageHandler() { - FirebaseMessaging.onMessage.listen( + // Cancel existing subscription if any + _foregroundMsgSub?.cancel(); + + _foregroundMsgSub = FirebaseMessaging.onMessage.listen( (RemoteMessage message) async { _logger.i('Received foreground FCM message'); @@ -195,6 +206,11 @@ class FCMService { } void dispose() { + _logger.i('Disposing FCM service'); + _tokenRefreshSub?.cancel(); + _foregroundMsgSub?.cancel(); + _tokenRefreshSub = null; + _foregroundMsgSub = null; _isInitialized = false; } } diff --git a/lib/services/lifecycle_manager.dart b/lib/services/lifecycle_manager.dart index 113da0f7..d6835c72 100644 --- a/lib/services/lifecycle_manager.dart +++ b/lib/services/lifecycle_manager.dart @@ -88,13 +88,13 @@ class LifecycleManager extends WidgetsBindingObserver { Future _checkPendingFCMEvents() async { try { final sharedPrefs = SharedPreferencesAsync(); + + // SharedPreferencesAsync always reads fresh values final hasPending = await sharedPrefs.getBool('fcm.pending_fetch') ?? false; if (hasPending) { _logger.i('Pending FCM events detected - processing now'); - await sharedPrefs.setBool('fcm.pending_fetch', false); - final settings = ref.read(settingsProvider); final relays = settings.relays; @@ -105,11 +105,15 @@ class LifecycleManager extends WidgetsBindingObserver { _logger.i('Fetching new events from ${relays.length} relays'); await fetchAndProcessNewEvents(relays: relays); + + // Only clear flag after successful processing + await sharedPrefs.setBool('fcm.pending_fetch', false); _logger.i('Successfully processed pending FCM events'); } } catch (e, stackTrace) { _logger.e('Error processing pending FCM events: $e'); _logger.e('Stack trace: $stackTrace'); + // Flag remains set so it will be retried } } From 6b12336e1fec4bfa7e9bd256b0c75241ddaf22a7 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Sun, 30 Nov 2025 20:32:05 -0300 Subject: [PATCH 30/39] refactor: add platform checks to conditionally initialize Firebase on Android and iOS only --- lib/main.dart | 27 +++++++++--- lib/shared/providers/app_init_provider.dart | 47 +++++++++++++-------- 2 files changed, 52 insertions(+), 22 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index f7d97351..fdb1a63f 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,3 +1,5 @@ +import 'dart:io' show Platform; +import 'package:flutter/foundation.dart' show kIsWeb; import 'package:firebase_core/firebase_core.dart'; import 'package:firebase_messaging/firebase_messaging.dart'; import 'package:flutter/material.dart'; @@ -19,7 +21,14 @@ import 'package:mostro_mobile/shared/utils/notification_permission_helper.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:timeago/timeago.dart' as timeago; +/// Check if the current platform supports Firebase +bool get _isFirebaseSupported { + if (kIsWeb) return false; + return Platform.isAndroid || Platform.isIOS; +} + /// FCM background message handler - sets flag for event processing when app becomes active +/// Only active on Android and iOS platforms @pragma('vm:entry-point') Future firebaseMessagingBackgroundHandler(RemoteMessage message) async { final logger = Logger(); @@ -45,11 +54,13 @@ Future firebaseMessagingBackgroundHandler(RemoteMessage message) async { Future main() async { WidgetsFlutterBinding.ensureInitialized(); - await Firebase.initializeApp( - options: DefaultFirebaseOptions.currentPlatform, - ); - - FirebaseMessaging.onBackgroundMessage(firebaseMessagingBackgroundHandler); + // Initialize Firebase only on supported platforms (Android, iOS) + if (_isFirebaseSupported) { + await Firebase.initializeApp( + options: DefaultFirebaseOptions.currentPlatform, + ); + FirebaseMessaging.onBackgroundMessage(firebaseMessagingBackgroundHandler); + } await requestNotificationPermissionIfNeeded(); @@ -94,10 +105,16 @@ Future main() async { } /// Process pending FCM events flagged by background handler +/// Only runs on platforms where Firebase is supported (Android, iOS) Future _checkPendingEventsOnResume( SharedPreferencesAsync sharedPrefs, SettingsNotifier settings, ) async { + // Skip if Firebase is not supported on this platform + if (!_isFirebaseSupported) { + return; + } + final logger = Logger(); try { diff --git a/lib/shared/providers/app_init_provider.dart b/lib/shared/providers/app_init_provider.dart index 74459124..d8cf9dd7 100644 --- a/lib/shared/providers/app_init_provider.dart +++ b/lib/shared/providers/app_init_provider.dart @@ -1,3 +1,5 @@ +import 'dart:io' show Platform; +import 'package:flutter/foundation.dart' show kIsWeb; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:logger/logger.dart'; import 'package:mostro_mobile/core/config.dart'; @@ -13,6 +15,12 @@ import 'package:mostro_mobile/shared/providers/session_notifier_provider.dart'; import 'package:mostro_mobile/features/subscriptions/subscription_manager_provider.dart'; import 'package:mostro_mobile/features/notifications/services/background_notification_service.dart'; +/// Check if the current platform supports Firebase +bool get _isFirebaseSupported { + if (kIsWeb) return false; + return Platform.isAndroid || Platform.isIOS; +} + final appInitializerProvider = FutureProvider((ref) async { final logger = Logger(); @@ -21,23 +29,28 @@ final appInitializerProvider = FutureProvider((ref) async { final nostrService = ref.read(nostrServiceProvider); await nostrService.init(ref.read(settingsProvider)); - final fcmService = ref.read(fcmServiceProvider); - try { - await fcmService.initialize( - onMessageReceived: () async { - final settings = ref.read(settingsProvider); - final relays = settings.relays; - - if (relays.isEmpty) { - logger.w('No relays configured - cannot fetch events'); - return; - } - - await fetchAndProcessNewEvents(relays: relays); - }, - ); - } catch (e, stackTrace) { - logger.e('FCM initialization failed: $e', error: e, stackTrace: stackTrace); + // Initialize FCM only on supported platforms (Android, iOS) + if (_isFirebaseSupported) { + final fcmService = ref.read(fcmServiceProvider); + try { + await fcmService.initialize( + onMessageReceived: () async { + final settings = ref.read(settingsProvider); + final relays = settings.relays; + + if (relays.isEmpty) { + logger.w('No relays configured - cannot fetch events'); + return; + } + + await fetchAndProcessNewEvents(relays: relays); + }, + ); + } catch (e, stackTrace) { + logger.e('FCM initialization failed: $e', error: e, stackTrace: stackTrace); + } + } else { + logger.i('FCM not supported on this platform - skipping FCM initialization'); } final keyManager = ref.read(keyManagerProvider); From 0167e3dc4a117ec5fde5f86de1307e9e49c1fb3a Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Thu, 11 Dec 2025 16:41:34 -0300 Subject: [PATCH 31/39] Add comprehensive FCM implementation and testing documentation --- docs/FCM_IMPLEMENTATION.md | 382 +++++++++++++++ docs/FCM_TESTING_GUIDE.md | 440 ++++++++++++++++++ functions/src/index.ts | 2 +- .../background_notification_service.dart | 38 +- lib/main.dart | 64 ++- lib/shared/providers/app_init_provider.dart | 8 +- pubspec.lock | 80 ++-- 7 files changed, 961 insertions(+), 53 deletions(-) create mode 100644 docs/FCM_IMPLEMENTATION.md create mode 100644 docs/FCM_TESTING_GUIDE.md diff --git a/docs/FCM_IMPLEMENTATION.md b/docs/FCM_IMPLEMENTATION.md new file mode 100644 index 00000000..26455da5 --- /dev/null +++ b/docs/FCM_IMPLEMENTATION.md @@ -0,0 +1,382 @@ +# FCM Push Notifications Implementation + +## Overview + +This document describes the Firebase Cloud Messaging (FCM) implementation for MostroP2P mobile app. The system is designed to wake up the app when killed by Android and deliver notifications while **preserving user privacy** - Firebase never sees the content of messages. + +## Architecture + +### Privacy-First Design + +``` +┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐ +│ Nostr Relay │─────▶│ Firebase │─────▶│ Mobile App │ +│ (Events) │ │ Cloud Functions │ │ (Background) │ +│ │ │ │ │ │ +│ • Kind 1059 │ │ • Polls relay │ │ • Wakes up │ +│ • Encrypted │ │ • Counts events │ │ • Fetches events│ +│ │ │ • NO decryption │ │ • Decrypts │ +│ │ │ • Sends silent │ │ • Shows notif │ +│ │ │ push (no data) │ │ │ +└─────────────────┘ └──────────────────┘ └─────────────────┘ +``` + +**Key Privacy Features:** +- ✅ Firebase Functions only **count** new events, never decrypt content +- ✅ Silent push notifications contain **no user data** +- ✅ All decryption happens **locally** on the device +- ✅ Firebase never sees message content, order details, or user info + +## Components + +### 1. Backend: Firebase Cloud Functions + +**Location:** `/functions/src/index.ts` + +**Functions:** +- `keepAlive` - Scheduled function (every 1 minute) + - Polls Nostr relay for new events (kind 1059) + - Tracks last check timestamp + - Sends silent push if new events found + +- `sendTestNotification` - HTTP endpoint for testing +- `getStatus` - HTTP endpoint to check poller status + +**Configuration:** +```typescript +const NOSTR_RELAYS = ["wss://relay.mostro.network"]; +const MOSTRO_PUBKEY = "82fa8cb978b43c79b2156585bac2c011176a21d2aead6d9f7c575c005be88390"; +const FCM_TOPIC = "mostro_notifications"; +``` + +**Silent Push Format:** +```typescript +{ + topic: "mostro_notifications", + data: { + type: "silent_wake", + timestamp: "1234567890" + }, + android: { + priority: "high", + notification: undefined // Silent - no visible notification + } +} +``` + +### 2. Mobile App: Background Handler + +**Location:** `/lib/main.dart` + +**Background Message Handler:** +```dart +@pragma('vm:entry-point') +Future firebaseMessagingBackgroundHandler(RemoteMessage message) async { + // 1. Initialize Firebase + // 2. Load relay configuration from SharedPreferences + // 3. Process events directly (fetchAndProcessNewEvents) + // 4. Decrypt and show local notifications + // 5. Update timestamp or set retry flag +} +``` + +**Key Features:** +- Runs when app is **killed** by Android +- Loads relay config from local storage +- Processes events with **limits** to avoid timeout: + - Max 10 events per session + - 5 second timeout per session +- Falls back to retry flag if processing fails + +### 3. Mobile App: Foreground Handler + +**Location:** `/lib/shared/providers/app_init_provider.dart` + +**Foreground Message Handler:** +```dart +onMessageReceived: () async { + // Process events without limits (app is active) + await fetchAndProcessNewEvents(relays: relays); +} +``` + +### 4. Event Processing Service + +**Location:** `/lib/features/notifications/services/background_notification_service.dart` + +**Function:** `fetchAndProcessNewEvents()` + +**Parameters:** +- `relays` - List of Nostr relays to query +- `maxEventsPerSession` - Optional limit (used in background) +- `timeoutPerSession` - Timeout per session (default 10s) + +**Process:** +1. Load active sessions from database +2. For each session: + - Query relay for new events (kind 1059) + - Apply timeout and limits + - Decrypt events locally + - Show local notifications +3. Update last processed timestamp + +## Flow Diagrams + +### When App is Killed + +``` +1. Firebase Function detects new events (polls every 1 minute) + ↓ +2. Sends silent push to FCM topic + ↓ +3. Android wakes app (background handler) + ↓ +4. Load relay config from SharedPreferences + ↓ +5. Fetch events from Nostr relays (with limits) + ↓ +6. Decrypt locally with session keys + ↓ +7. Show local notification + ↓ +8. Update timestamp +``` + +### When App is Active (Foreground) + +``` +1. Firebase Function detects new events (polls every 1 minute) + ↓ +2. Sends silent push to FCM topic + ↓ +3. Foreground handler receives message + ↓ +4. Fetch events from Nostr relays (no limits) + ↓ +5. Decrypt locally with session keys + ↓ +6. Show local notification + ↓ +7. Update timestamp +``` + +### Fallback: App Resume + +``` +1. Background processing failed + ↓ +2. Set 'fcm.pending_fetch' flag + ↓ +3. User opens app manually + ↓ +4. _checkPendingEventsOnResume() detects flag + ↓ +5. Process pending events (no limits) + ↓ +6. Clear flag +``` + +## Configuration + +### Firebase Project Setup + +1. Create Firebase project: `mostro-test` +2. Add Android app with package: `network.mostro.app` +3. Download `google-services.json` to `/android/app/` +4. Configure FCM in Firebase Console + +### Mobile App Configuration + +**pubspec.yaml:** +```yaml +dependencies: + firebase_core: ^3.8.0 + firebase_messaging: ^15.1.4 +``` + +**AndroidManifest.xml:** +```xml + +``` + +### Cloud Functions Deployment + +```bash +cd functions +npm install +npm run deploy +``` + +## Testing + +### Test Silent Push + +```bash +# Send test notification +curl -X POST https://YOUR-REGION-YOUR-PROJECT.cloudfunctions.net/sendTestNotification + +# Check poller status +curl https://YOUR-REGION-YOUR-PROJECT.cloudfunctions.net/getStatus +``` + +### Monitor Logs + +**Cloud Functions:** +```bash +cd functions +npm run logs +``` + +**Mobile App:** +```bash +flutter run +# Look for logs: +# - "=== FCM BACKGROUND WAKE START ===" +# - "Loaded X relays from settings" +# - "Processing events from X relays..." +# - "Background event processing completed successfully" +``` + +### Debug Background Handler + +1. Kill app completely (swipe from recent apps) +2. Send test notification from Firebase Console or curl +3. Check logcat for background handler logs: +```bash +adb logcat | grep -i "fcm\|mostro" +``` + +## Limitations + +### Android Background Execution + +- **Time limit:** ~30 seconds for background handler +- **Solution:** Implemented limits (10 events, 5s timeout per session) +- **Fallback:** Retry flag for app resume + +### Battery Optimization + +- Some Android devices may restrict background execution +- Users may need to disable battery optimization for the app +- Consider adding in-app prompt for battery optimization settings + +### Cold Start + +- First notification after app install may be delayed +- FCM token needs to be registered with Firebase +- Subsequent notifications work normally + +## Monitoring + +### Key Metrics to Track + +1. **Cloud Functions:** + - Execution count (should run every 5 minutes) + - Event detection rate + - Push notification send success rate + +2. **Mobile App:** + - Background handler execution count + - Event processing success rate + - Fallback flag usage (indicates background failures) + - Notification display rate + +### Logs to Monitor + +**Success indicators:** +``` +[FCM] Background event processing completed successfully +[FCM] Processed X new events successfully +``` + +**Warning indicators:** +``` +[FCM] Timeout fetching events for session +[FCM] Limiting to 10 events (skipped X) +[FCM] Error processing events in background +``` + +**Failure indicators:** +``` +[FCM] Critical error in background handler +[FCM] Failed to initialize NostrService +[FCM] No active sessions found +``` + +## Troubleshooting + +### Notifications Not Arriving When App is Killed + +1. Check Cloud Functions logs - is poller running? +2. Check if events are being detected in relay +3. Verify FCM token is registered +4. Check Android battery optimization settings +5. Review background handler logs in logcat + +### Background Processing Timeout + +1. Reduce `maxEventsPerSession` (currently 10) +2. Reduce `timeoutPerSession` (currently 5s) +3. Check relay response times +4. Consider processing fewer sessions + +### High Battery Usage + +1. Verify Cloud Functions polling interval (5 minutes) +2. Check if background handler is being called too frequently +3. Review event processing efficiency +4. Consider increasing polling interval + +## Future Improvements + +### Potential Enhancements + +1. **Adaptive Limits:** Adjust limits based on device performance +2. **Priority Queue:** Process high-priority events first +3. **Batch Processing:** Group multiple events per notification +4. **User Preferences:** Allow users to configure notification behavior +5. **Analytics:** Track notification delivery and user engagement + +### Alternative Approaches + +1. **WorkManager:** Use WorkManager for guaranteed background execution +2. **Foreground Service:** Keep app alive with foreground service +3. **WebSocket Keepalive:** Maintain persistent connection (battery intensive) + +## Security Considerations + +### What Firebase Sees + +- ✅ Device FCM token (anonymous identifier) +- ✅ Topic subscription (`mostro_notifications`) +- ✅ Timestamp of notification delivery +- ❌ **NEVER sees:** Message content, order details, user data + +### What's Encrypted + +- All Nostr events (kind 1059) are encrypted with NIP-44 +- Decryption keys stored locally in secure storage +- Firebase Functions never have access to decryption keys + +### Attack Vectors + +1. **Timing Analysis:** Firebase could correlate notification times with user activity + - **Mitigation:** Polling interval adds noise (1 minute) + +2. **Device Fingerprinting:** FCM token could be used to track devices + - **Mitigation:** Token is rotated periodically by FCM + +3. **Relay Monitoring:** Someone monitoring relay could correlate with push timing + - **Mitigation:** Multiple users share same relay, adds ambiguity + +## Conclusion + +This implementation successfully balances: +- ✅ **Privacy:** No sensitive data shared with Firebase +- ✅ **Reliability:** Notifications work when app is killed +- ✅ **Performance:** Limits prevent timeouts and battery drain +- ✅ **User Experience:** Timely notifications without manual app opening + +The system leverages FCM purely as a **wake-up mechanism**, with all sensitive operations (decryption, processing) happening locally on the device. diff --git a/docs/FCM_TESTING_GUIDE.md b/docs/FCM_TESTING_GUIDE.md new file mode 100644 index 00000000..040f7504 --- /dev/null +++ b/docs/FCM_TESTING_GUIDE.md @@ -0,0 +1,440 @@ +# FCM Testing Guide + +## Quick Testing Checklist + +### Prerequisites +- [ ] Firebase project configured (`mostro-test`) +- [ ] Cloud Functions deployed +- [ ] App installed on Android device +- [ ] FCM token registered (check logs on first app launch) + +## Test Scenarios + +### 1. Test Background Handler (App Killed) + +**This is the critical test for the new implementation.** + +#### Steps: +1. **Launch app and verify FCM initialization:** + ```bash + adb logcat | grep -i "fcm" + ``` + Look for: `FCM INITIALIZATION COMPLETE` + +2. **Kill the app completely:** + - Swipe app from recent apps + - OR: `adb shell am force-stop network.mostro.app` + +3. **Trigger test notification:** + ```bash + curl -X POST https://YOUR-REGION-mostro-test.cloudfunctions.net/sendTestNotification + ``` + +4. **Monitor background handler execution:** + ```bash + adb logcat | grep -E "FCM BACKGROUND|fetchAndProcessNewEvents" + ``` + +5. **Expected logs:** + ``` + [FCM] === FCM BACKGROUND WAKE START === + [FCM] Message data: {type: silent_wake, timestamp: 1234567890} + [FCM] Loaded 1 relays from settings + [FCM] Processing events from 1 relays... + [FCM] Fetching new events from relays + [FCM] Max events per session: 10 + [FCM] Timeout per session: 5s + [FCM] Found X active sessions + [FCM] Processed X new events successfully + [FCM] Background event processing completed successfully + [FCM] === FCM BACKGROUND WAKE END === + ``` + +6. **Verify notification appears:** + - Check notification tray + - Should show local notification with event details + +#### Success Criteria: +- ✅ Background handler executes within 10 seconds +- ✅ Events are fetched and processed +- ✅ Local notification appears +- ✅ No timeout errors in logs + +#### Common Issues: + +**Issue:** No logs appear after test notification +- **Cause:** Battery optimization blocking background execution +- **Fix:** Disable battery optimization for the app + ```bash + adb shell dumpsys deviceidle whitelist +network.mostro.app + ``` + +**Issue:** "No active sessions found" +- **Cause:** No active orders/trades in the app +- **Fix:** Create a test order first, then kill app and test + +**Issue:** "Timeout fetching events for session" +- **Cause:** Relay not responding within 5 seconds +- **Fix:** Check relay connectivity or increase timeout + +### 2. Test Foreground Handler (App Active) + +#### Steps: +1. **Keep app open and in foreground** + +2. **Trigger test notification:** + ```bash + curl -X POST https://YOUR-REGION-mostro-test.cloudfunctions.net/sendTestNotification + ``` + +3. **Monitor foreground handler:** + ```bash + adb logcat | grep -i "foreground message" + ``` + +4. **Expected logs:** + ``` + [FCM] FCM foreground message received - processing events + [FCM] Fetching new events from relays + [FCM] Found X active sessions + [FCM] Processed X new events successfully + ``` + +#### Success Criteria: +- ✅ Handler executes immediately +- ✅ No limits applied (processes all events) +- ✅ Notifications appear + +### 3. Test Fallback Mechanism (App Resume) + +#### Steps: +1. **Simulate background processing failure:** + - Kill app + - Disconnect internet + - Send test notification (will fail to process) + - Reconnect internet + +2. **Open app manually** + +3. **Monitor resume handler:** + ```bash + adb logcat | grep -i "pending events" + ``` + +4. **Expected logs:** + ``` + [FCM] Pending events detected (background processing failed) - processing now + [FCM] Fetching new events from 1 relays + [FCM] Successfully processed pending events + ``` + +#### Success Criteria: +- ✅ Pending flag detected on app open +- ✅ Events processed successfully +- ✅ Flag cleared after processing + +### 4. Test Cloud Functions Poller + +#### Check Poller Status: +```bash +curl https://YOUR-REGION-mostro-test.cloudfunctions.net/getStatus +``` + +**Expected response:** +```json +{ + "relays": ["wss://relay.mostro.network"], + "lastCheckTimestamp": 1234567890, + "lastCheckDate": "2024-01-01T12:00:00.000Z", + "mostroPublicKey": "82fa8cb978b43c79b2156585bac2c011176a21d2aead6d9f7c575c005be88390", + "fcmTopic": "mostro_notifications" +} +``` + +#### Monitor Cloud Functions Logs: +```bash +cd functions +npm run logs +``` + +**Expected logs (every 1 minute):** +``` +Starting scheduled relay poll +Connected to wss://relay.mostro.network +Querying events since 1234567890 +Found X new events from wss://relay.mostro.network +Polling complete - totalNewEvents: X +Found X new events, sending notification +Silent push notification sent successfully +``` + +### 5. End-to-End Test + +**Complete flow test:** + +1. **Setup:** + - Create active order/trade in app + - Note the order ID + - Kill the app + +2. **Simulate real event:** + - Have another user interact with your order + - OR: Use daemon to send test event + +3. **Wait for notification:** + - Cloud Functions polls every 5 minutes + - Should detect new event + - Should send silent push + - Background handler should wake up + - Should show notification + +4. **Verify:** + ```bash + # Monitor entire flow + adb logcat | grep -E "FCM|Mostro|notification" + ``` + +5. **Expected timeline:** + ``` + T+0s: Event created in relay + T+0-1m: Cloud Function detects event (next poll) + T+0-1m: Silent push sent + T+0-1m: Background handler wakes app + T+0-1m: Events fetched and processed + T+0-1m: Local notification shown + ``` + +## Performance Testing + +### Test Limits and Timeouts + +#### Test with Many Events: +1. Create multiple orders +2. Generate many events +3. Kill app and trigger notification +4. Verify limits are applied: + ``` + [FCM] Limiting to 10 events (skipped X) + ``` + +#### Test Timeout Handling: +1. Use slow/unresponsive relay +2. Verify timeout logs: + ``` + [FCM] Timeout fetching events for session + ``` + +### Memory and Battery Testing + +#### Monitor Memory Usage: +```bash +adb shell dumpsys meminfo network.mostro.app +``` + +#### Monitor Battery Usage: +```bash +adb shell dumpsys batterystats network.mostro.app +``` + +## Debugging Commands + +### View All FCM-Related Logs: +```bash +adb logcat -s flutter,FCM,FirebaseMessaging +``` + +### Clear Logs and Start Fresh: +```bash +adb logcat -c +adb logcat | grep -i fcm +``` + +### Check SharedPreferences: +```bash +adb shell run-as network.mostro.app cat /data/data/network.mostro.app/shared_prefs/FlutterSharedPreferences.xml | grep fcm +``` + +### Force Background Handler: +```bash +# Send test notification while app is killed +adb shell am force-stop network.mostro.app +curl -X POST https://us-central1-mostro-test.cloudfunctions.net/sendTestNotification +``` + +## Troubleshooting + +### No Background Handler Execution + +**Check 1: FCM Token Registered** +```bash +adb logcat | grep "FCM token obtained" +``` + +**Check 2: Topic Subscription** +```bash +adb logcat | grep "Subscribed to topic" +``` + +**Check 3: Battery Optimization** +```bash +adb shell dumpsys deviceidle whitelist | grep mostro +``` + +**Check 4: Background Restrictions** +```bash +adb shell cmd appops get network.mostro.app RUN_IN_BACKGROUND +``` + +### Background Handler Crashes + +**View Crash Logs:** +```bash +adb logcat -s AndroidRuntime,System.err +``` + +**Common causes:** +- Out of memory (reduce limits) +- Timeout (reduce timeout or event count) +- Database access issues (check permissions) + +### Events Not Fetched + +**Check 1: Relay Connectivity** +```bash +# Test relay connection +wscat -c wss://relay.mostro.network +``` + +**Check 2: Settings Loaded** +```bash +adb logcat | grep "Loaded.*relays from settings" +``` + +**Check 3: Active Sessions** +```bash +adb logcat | grep "Found.*active sessions" +``` + +## Success Metrics + +### What to Measure + +1. **Notification Delivery Time:** + - From event creation to notification shown + - Target: < 2 minutes (1min poll + processing time) + +2. **Background Handler Success Rate:** + - Percentage of successful background executions + - Target: > 95% + +3. **Event Processing Rate:** + - Number of events processed per session + - Monitor for limit hits + +4. **Battery Impact:** + - Background handler execution time + - Target: < 10 seconds per execution + +## Test Results Template + +```markdown +## Test Results - [Date] + +### Environment +- Device: [Model] +- Android Version: [Version] +- App Version: [Version] +- Firebase Project: mostro-test + +### Test 1: Background Handler (App Killed) +- [ ] Background handler executed +- [ ] Events fetched successfully +- [ ] Notifications shown +- [ ] Time to notification: [X] seconds +- Notes: [Any issues or observations] + +### Test 2: Foreground Handler +- [ ] Handler executed +- [ ] Events processed +- [ ] Notifications shown +- Notes: [Any issues or observations] + +### Test 3: Fallback Mechanism +- [ ] Pending flag set +- [ ] Events processed on resume +- [ ] Flag cleared +- Notes: [Any issues or observations] + +### Test 4: Cloud Functions +- [ ] Poller running every 5 minutes +- [ ] Events detected correctly +- [ ] Silent push sent +- Notes: [Any issues or observations] + +### Test 5: End-to-End +- [ ] Complete flow successful +- [ ] Notification received within 6 minutes +- [ ] Content decrypted correctly +- Notes: [Any issues or observations] + +### Performance +- Background handler execution time: [X]s +- Memory usage: [X]MB +- Battery impact: [Low/Medium/High] + +### Issues Found +1. [Issue description] +2. [Issue description] + +### Recommendations +1. [Recommendation] +2. [Recommendation] +``` + +## Automated Testing + +### Consider Adding: + +1. **Integration Tests:** + ```dart + testWidgets('FCM background handler processes events', (tester) async { + // Test background handler + }); + ``` + +2. **Mock FCM Messages:** + ```dart + final mockMessage = RemoteMessage( + data: {'type': 'silent_wake', 'timestamp': '1234567890'}, + ); + await firebaseMessagingBackgroundHandler(mockMessage); + ``` + +3. **CI/CD Integration:** + - Run tests on each commit + - Monitor notification delivery rates + - Alert on failures + +## Next Steps + +After successful testing: + +1. **Monitor Production:** + - Set up Firebase Analytics + - Track notification delivery rates + - Monitor error rates + +2. **Gather User Feedback:** + - Survey users about notification reliability + - Track battery usage complaints + - Monitor app reviews + +3. **Optimize:** + - Adjust limits based on real usage + - Fine-tune timeouts + - Improve error handling + +4. **Document:** + - Update this guide with findings + - Share best practices with team + - Create troubleshooting runbook diff --git a/functions/src/index.ts b/functions/src/index.ts index 90fdfb23..ba889bf0 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -159,7 +159,7 @@ export const getStatus = onRequest((_req, res) => { res.json(status); }); -export const keepAlive = onSchedule("every 5 minutes", async () => { +export const keepAlive = onSchedule("every 1 minutes", async () => { const checkStartTime = Math.floor(Date.now() / 1000); logger.info("Starting scheduled relay poll", { lastCheckTimestamp, diff --git a/lib/features/notifications/services/background_notification_service.dart b/lib/features/notifications/services/background_notification_service.dart index 6d5ca01d..f3db104b 100644 --- a/lib/features/notifications/services/background_notification_service.dart +++ b/lib/features/notifications/services/background_notification_service.dart @@ -312,11 +312,22 @@ Future retryNotification(NostrEvent event, {int maxAttempts = 3}) async { } /// Fetch and process new events from relays -Future fetchAndProcessNewEvents({required List relays}) async { +/// +/// [maxEventsPerSession] limits the number of events processed per session (default: unlimited) +/// [timeoutPerSession] sets a timeout for fetching events per session (default: 10 seconds) +Future fetchAndProcessNewEvents({ + required List relays, + int? maxEventsPerSession, + Duration timeoutPerSession = const Duration(seconds: 10), +}) async { final logger = Logger(); try { logger.i('Fetching new events from relays'); + if (maxEventsPerSession != null) { + logger.i('Max events per session: $maxEventsPerSession'); + } + logger.i('Timeout per session: ${timeoutPerSession.inSeconds}s'); final sessions = await _loadSessionsFromDatabase(); @@ -348,6 +359,7 @@ Future fetchAndProcessNewEvents({required List relays}) async { } int processedCount = 0; + int skippedCount = 0; final now = DateTime.now(); for (final session in sessions) { @@ -360,11 +372,28 @@ Future fetchAndProcessNewEvents({required List relays}) async { logger.d('Fetching events for session: ${session.orderId}'); - final events = await nostrService.fetchEvents(filter); + // Apply timeout per session to avoid blocking + final events = await nostrService.fetchEvents(filter).timeout( + timeoutPerSession, + onTimeout: () { + logger.w('Timeout fetching events for session ${session.orderId}'); + return []; + }, + ); logger.d('Found ${events.length} events for session ${session.orderId}'); - for (final event in events) { + // Limit events per session if specified + final eventsToProcess = maxEventsPerSession != null && events.length > maxEventsPerSession + ? events.take(maxEventsPerSession).toList() + : events; + + if (maxEventsPerSession != null && events.length > maxEventsPerSession) { + skippedCount += events.length - maxEventsPerSession; + logger.w('Limiting to $maxEventsPerSession events (skipped ${events.length - maxEventsPerSession})'); + } + + for (final event in eventsToProcess) { final nostrEvent = NostrEvent( id: event.id, kind: event.kind, @@ -388,6 +417,9 @@ Future fetchAndProcessNewEvents({required List relays}) async { await sharedPrefs.setInt('fcm.last_processed_timestamp', newTimestamp); logger.i('Processed $processedCount new events successfully'); + if (skippedCount > 0) { + logger.w('Skipped $skippedCount events due to limit'); + } } catch (e, stackTrace) { logger.e('Error fetching and processing new events: $e'); diff --git a/lib/main.dart b/lib/main.dart index fdb1a63f..d129ee2a 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,3 +1,4 @@ +import 'dart:convert'; import 'dart:io' show Platform; import 'package:flutter/foundation.dart' show kIsWeb; import 'package:firebase_core/firebase_core.dart'; @@ -27,26 +28,68 @@ bool get _isFirebaseSupported { return Platform.isAndroid || Platform.isIOS; } -/// FCM background message handler - sets flag for event processing when app becomes active +/// FCM background message handler - processes events directly when app is killed /// Only active on Android and iOS platforms @pragma('vm:entry-point') Future firebaseMessagingBackgroundHandler(RemoteMessage message) async { final logger = Logger(); try { - logger.i('FCM silent push received in background'); + logger.i('=== FCM BACKGROUND WAKE START ==='); + logger.i('Message data: ${message.data}'); await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform, ); final sharedPrefs = SharedPreferencesAsync(); - await sharedPrefs.setBool('fcm.pending_fetch', true); - await sharedPrefs.setInt('fcm.last_wake_timestamp', DateTime.now().millisecondsSinceEpoch); + + // Load settings to get relay configuration + final settingsJson = await sharedPrefs.getString('mostro_settings'); + List relays = ['wss://relay.mostro.network']; // Default fallback + + if (settingsJson != null) { + try { + final settingsMap = jsonDecode(settingsJson) as Map; + final relaysList = settingsMap['relays'] as List?; + if (relaysList != null && relaysList.isNotEmpty) { + relays = relaysList.cast(); + logger.i('Loaded ${relays.length} relays from settings'); + } + } catch (e) { + logger.w('Failed to parse settings, using default relay: $e'); + } + } else { + logger.w('No settings found, using default relay'); + } + + // Process events directly in background + logger.i('Processing events from ${relays.length} relays...'); + + try { + await fetchAndProcessNewEvents( + relays: relays, + maxEventsPerSession: 10, // Limit to avoid timeout + timeoutPerSession: const Duration(seconds: 5), // Timeout per session + ); + + logger.i('Background event processing completed successfully'); + + // Update last processed timestamp + final now = (DateTime.now().millisecondsSinceEpoch / 1000).floor(); + await sharedPrefs.setInt('fcm.last_processed_timestamp', now); + + } catch (e, stackTrace) { + logger.e('Error processing events in background: $e'); + logger.e('Stack trace: $stackTrace'); + + // Set flag for retry when app opens + await sharedPrefs.setBool('fcm.pending_fetch', true); + } - logger.i('Background flag set - events will be fetched when app is active'); + logger.i('=== FCM BACKGROUND WAKE END ==='); } catch (e, stackTrace) { - logger.e('Error in background handler: $e'); + logger.e('Critical error in background handler: $e'); logger.e('Stack trace: $stackTrace'); } } @@ -106,6 +149,7 @@ Future main() async { /// Process pending FCM events flagged by background handler /// Only runs on platforms where Firebase is supported (Android, iOS) +/// This is a fallback for when background processing fails Future _checkPendingEventsOnResume( SharedPreferencesAsync sharedPrefs, SettingsNotifier settings, @@ -121,7 +165,7 @@ Future _checkPendingEventsOnResume( final hasPending = await sharedPrefs.getBool('fcm.pending_fetch') ?? false; if (hasPending) { - logger.i('Pending events detected - processing now'); + logger.i('Pending events detected (background processing failed) - processing now'); await sharedPrefs.setBool('fcm.pending_fetch', false); @@ -132,7 +176,11 @@ Future _checkPendingEventsOnResume( } logger.i('Fetching new events from ${relays.length} relays'); - await fetchAndProcessNewEvents(relays: relays); + // Process without limits since app is now active + await fetchAndProcessNewEvents( + relays: relays, + // No limits when app is active + ); logger.i('Successfully processed pending events'); } } catch (e, stackTrace) { diff --git a/lib/shared/providers/app_init_provider.dart b/lib/shared/providers/app_init_provider.dart index d8cf9dd7..32327928 100644 --- a/lib/shared/providers/app_init_provider.dart +++ b/lib/shared/providers/app_init_provider.dart @@ -35,6 +35,7 @@ final appInitializerProvider = FutureProvider((ref) async { try { await fcmService.initialize( onMessageReceived: () async { + logger.i('FCM foreground message received - processing events'); final settings = ref.read(settingsProvider); final relays = settings.relays; @@ -43,7 +44,12 @@ final appInitializerProvider = FutureProvider((ref) async { return; } - await fetchAndProcessNewEvents(relays: relays); + // In foreground, process without limits (app is active) + await fetchAndProcessNewEvents( + relays: relays, + // No maxEventsPerSession limit in foreground + // Default timeout of 10s per session + ); }, ); } catch (e, stackTrace) { diff --git a/pubspec.lock b/pubspec.lock index 4e6cac59..baa67012 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -433,6 +433,46 @@ packages: url: "https://pub.dev" source: hosted version: "7.0.1" + file_picker: + dependency: "direct main" + description: + name: file_picker + sha256: "7872545770c277236fd32b022767576c562ba28366204ff1a5628853cf8f2200" + url: "https://pub.dev" + source: hosted + version: "10.3.7" + file_selector_linux: + dependency: transitive + description: + name: file_selector_linux + sha256: "2567f398e06ac72dcf2e98a0c95df2a9edd03c2c2e0cacd4780f20cdf56263a0" + url: "https://pub.dev" + source: hosted + version: "0.9.4" + file_selector_macos: + dependency: transitive + description: + name: file_selector_macos + sha256: "5e0bbe9c312416f1787a68259ea1505b52f258c587f12920422671807c4d618a" + url: "https://pub.dev" + source: hosted + version: "0.9.5" + file_selector_platform_interface: + dependency: transitive + description: + name: file_selector_platform_interface + sha256: "35e0bd61ebcdb91a3505813b055b09b79dfdc7d0aee9c09a7ba59ae4bb13dc85" + url: "https://pub.dev" + source: hosted + version: "2.7.0" + file_selector_windows: + dependency: transitive + description: + name: file_selector_windows + sha256: "62197474ae75893a62df75939c777763d39c2bc5f73ce5b88497208bc269abfd" + url: "https://pub.dev" + source: hosted + version: "0.9.3+5" firebase_core: dependency: "direct main" description: @@ -481,46 +521,6 @@ packages: url: "https://pub.dev" source: hosted version: "3.10.10" - file_picker: - dependency: "direct main" - description: - name: file_picker - sha256: "7872545770c277236fd32b022767576c562ba28366204ff1a5628853cf8f2200" - url: "https://pub.dev" - source: hosted - version: "10.3.7" - file_selector_linux: - dependency: transitive - description: - name: file_selector_linux - sha256: "2567f398e06ac72dcf2e98a0c95df2a9edd03c2c2e0cacd4780f20cdf56263a0" - url: "https://pub.dev" - source: hosted - version: "0.9.4" - file_selector_macos: - dependency: transitive - description: - name: file_selector_macos - sha256: "5e0bbe9c312416f1787a68259ea1505b52f258c587f12920422671807c4d618a" - url: "https://pub.dev" - source: hosted - version: "0.9.5" - file_selector_platform_interface: - dependency: transitive - description: - name: file_selector_platform_interface - sha256: "35e0bd61ebcdb91a3505813b055b09b79dfdc7d0aee9c09a7ba59ae4bb13dc85" - url: "https://pub.dev" - source: hosted - version: "2.7.0" - file_selector_windows: - dependency: transitive - description: - name: file_selector_windows - sha256: "62197474ae75893a62df75939c777763d39c2bc5f73ce5b88497208bc269abfd" - url: "https://pub.dev" - source: hosted - version: "0.9.3+5" fixnum: dependency: transitive description: From e49187542e425f719016c4656c2cdea25a942256 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Thu, 11 Dec 2025 16:52:57 -0300 Subject: [PATCH 32/39] Fix timestamp tracking and add proper resource cleanup in background notification service --- .../background_notification_service.dart | 132 +++++++++++------- 1 file changed, 78 insertions(+), 54 deletions(-) diff --git a/lib/features/notifications/services/background_notification_service.dart b/lib/features/notifications/services/background_notification_service.dart index f3db104b..9914e755 100644 --- a/lib/features/notifications/services/background_notification_service.dart +++ b/lib/features/notifications/services/background_notification_service.dart @@ -358,67 +358,91 @@ Future fetchAndProcessNewEvents({ return; } - int processedCount = 0; - int skippedCount = 0; - final now = DateTime.now(); - - for (final session in sessions) { - try { - final filter = NostrFilter( - kinds: [1059], - p: [session.tradeKey.public], - since: since, - ); - - logger.d('Fetching events for session: ${session.orderId}'); - - // Apply timeout per session to avoid blocking - final events = await nostrService.fetchEvents(filter).timeout( - timeoutPerSession, - onTimeout: () { - logger.w('Timeout fetching events for session ${session.orderId}'); - return []; - }, - ); - - logger.d('Found ${events.length} events for session ${session.orderId}'); - - // Limit events per session if specified - final eventsToProcess = maxEventsPerSession != null && events.length > maxEventsPerSession - ? events.take(maxEventsPerSession).toList() - : events; - - if (maxEventsPerSession != null && events.length > maxEventsPerSession) { - skippedCount += events.length - maxEventsPerSession; - logger.w('Limiting to $maxEventsPerSession events (skipped ${events.length - maxEventsPerSession})'); - } + try { + int processedCount = 0; + int failedCount = 0; + int skippedCount = 0; + int latestEventTimestamp = lastProcessedTime; + + for (final session in sessions) { + try { + final filter = NostrFilter( + kinds: [1059], + p: [session.tradeKey.public], + since: since, + ); + + logger.d('Fetching events for session: ${session.orderId}'); - for (final event in eventsToProcess) { - final nostrEvent = NostrEvent( - id: event.id, - kind: event.kind, - content: event.content, - tags: event.tags, - createdAt: event.createdAt, - pubkey: event.pubkey, - sig: event.sig, - subscriptionId: event.subscriptionId, + // Apply timeout per session to avoid blocking + final events = await nostrService.fetchEvents(filter).timeout( + timeoutPerSession, + onTimeout: () { + logger.w('Timeout fetching events for session ${session.orderId}'); + return []; + }, ); - await showLocalNotification(nostrEvent); - processedCount++; + logger.d('Found ${events.length} events for session ${session.orderId}'); + + // Limit events per session if specified + final eventsToProcess = maxEventsPerSession != null && events.length > maxEventsPerSession + ? events.take(maxEventsPerSession).toList() + : events; + + if (maxEventsPerSession != null && events.length > maxEventsPerSession) { + skippedCount += events.length - maxEventsPerSession; + logger.w('Limiting to $maxEventsPerSession events (skipped ${events.length - maxEventsPerSession})'); + } + + for (final event in eventsToProcess) { + // Track the latest event timestamp we've seen + final eventTs = (event.createdAt?.millisecondsSinceEpoch ?? 0) ~/ 1000; + if (eventTs > latestEventTimestamp) { + latestEventTimestamp = eventTs; + } + + final nostrEvent = NostrEvent( + id: event.id, + kind: event.kind, + content: event.content, + tags: event.tags, + createdAt: event.createdAt, + pubkey: event.pubkey, + sig: event.sig, + subscriptionId: event.subscriptionId, + ); + + try { + await showLocalNotification(nostrEvent); + processedCount++; + } catch (e) { + failedCount++; + logger.e('Failed to show notification for event ${event.id}: $e'); + } + } + } catch (e) { + logger.e('Error processing events for session ${session.orderId}: $e'); } - } catch (e) { - logger.e('Error processing events for session ${session.orderId}: $e'); } - } - final newTimestamp = (now.millisecondsSinceEpoch / 1000).floor(); - await sharedPrefs.setInt('fcm.last_processed_timestamp', newTimestamp); + // Only advance timestamp if we actually processed events + if (latestEventTimestamp > lastProcessedTime) { + await sharedPrefs.setInt('fcm.last_processed_timestamp', latestEventTimestamp); + logger.i('Updated last processed timestamp to: ${DateTime.fromMillisecondsSinceEpoch(latestEventTimestamp * 1000).toIso8601String()}'); + } - logger.i('Processed $processedCount new events successfully'); - if (skippedCount > 0) { - logger.w('Skipped $skippedCount events due to limit'); + logger.i('Processed $processedCount new events successfully'); + if (failedCount > 0) { + logger.w('Failed to process $failedCount events'); + } + if (skippedCount > 0) { + logger.w('Skipped $skippedCount events due to limit'); + } + } finally { + // Always cleanup NostrService connections + await nostrService.disconnectFromRelays(); + logger.d('NostrService connections cleaned up'); } } catch (e, stackTrace) { From 18c4e6737fbb56ea2dac898db9ec9ecd0166eaf0 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Thu, 11 Dec 2025 17:01:02 -0300 Subject: [PATCH 33/39] Update FCM polling interval documentation from 5 to 1 minute --- docs/FCM_TESTING_GUIDE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/FCM_TESTING_GUIDE.md b/docs/FCM_TESTING_GUIDE.md index 040f7504..a83c6268 100644 --- a/docs/FCM_TESTING_GUIDE.md +++ b/docs/FCM_TESTING_GUIDE.md @@ -182,7 +182,7 @@ Silent push notification sent successfully - OR: Use daemon to send test event 3. **Wait for notification:** - - Cloud Functions polls every 5 minutes + - Cloud Functions polls every 1 minutes - Should detect new event - Should send silent push - Background handler should wake up From 906f256979c0b654eb43174b15421095e5b04502 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Thu, 11 Dec 2025 17:03:37 -0300 Subject: [PATCH 34/39] Add clarifying comment about SharedPreferencesAsync behavior in background handler --- lib/main.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index d129ee2a..7fc0d44b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -44,6 +44,9 @@ Future firebaseMessagingBackgroundHandler(RemoteMessage message) async { final sharedPrefs = SharedPreferencesAsync(); + // SharedPreferencesAsync always reads fresh values from native storage + // No reload() needed - it queries the platform directly on each call + // Load settings to get relay configuration final settingsJson = await sharedPrefs.getString('mostro_settings'); List relays = ['wss://relay.mostro.network']; // Default fallback From 03a0ab17b0ec5c0f9db36016812dee8578de3dbd Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Thu, 11 Dec 2025 17:07:57 -0300 Subject: [PATCH 35/39] Refactor showLocalNotification to return success status and simplify retry logic --- .../background_notification_service.dart | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/lib/features/notifications/services/background_notification_service.dart b/lib/features/notifications/services/background_notification_service.dart index 9914e755..4523a4d5 100644 --- a/lib/features/notifications/services/background_notification_service.dart +++ b/lib/features/notifications/services/background_notification_service.dart @@ -1,5 +1,4 @@ import 'dart:convert'; -import 'dart:math'; import 'package:dart_nostr/dart_nostr.dart'; import 'package:flutter_local_notifications/flutter_local_notifications.dart'; @@ -51,10 +50,12 @@ void _onNotificationTap(NotificationResponse response) { } } -Future showLocalNotification(NostrEvent event) async { +/// Shows a local notification for a Nostr event +/// Returns true if notification was shown successfully, false otherwise +Future showLocalNotification(NostrEvent event) async { try { final mostroMessage = await _decryptAndProcessEvent(event); - if (mostroMessage == null) return; + if (mostroMessage == null) return false; final sessions = await _loadSessionsFromDatabase(); final matchingSession = sessions.cast().firstWhere( @@ -65,7 +66,7 @@ Future showLocalNotification(NostrEvent event) async { final notificationData = await NotificationDataExtractor.extractFromMostroMessage(mostroMessage, null, session: matchingSession); if (notificationData == null || notificationData.isTemporary) { - return; + return false; } final notificationText = await _getLocalizedNotificationText(notificationData.action, notificationData.values); @@ -107,8 +108,10 @@ Future showLocalNotification(NostrEvent event) async { ); Logger().i('Shown: ${notificationText.title} - ${notificationText.body}'); + return true; } catch (e) { Logger().e('Notification error: $e'); + return false; } } @@ -289,24 +292,18 @@ String? _getExpandedText(Map values) { Future retryNotification(NostrEvent event, {int maxAttempts = 3}) async { + final logger = Logger(); int attempt = 0; bool success = false; while (!success && attempt < maxAttempts) { - try { - await showLocalNotification(event); - success = true; - } catch (e) { + success = await showLocalNotification(event); + if (!success) { attempt++; - if (attempt >= maxAttempts) { - Logger().e('Failed to show notification after $maxAttempts attempts: $e'); - break; + logger.w('Attempt $attempt failed to show notification'); + if (attempt < maxAttempts) { + await Future.delayed(Duration(seconds: attempt)); } - - // Exponential backoff: 1s, 2s, 4s, etc. - final backoffSeconds = pow(2, attempt - 1).toInt(); - Logger().e('Notification attempt $attempt failed: $e. Retrying in ${backoffSeconds}s'); - await Future.delayed(Duration(seconds: backoffSeconds)); } } } @@ -413,12 +410,12 @@ Future fetchAndProcessNewEvents({ subscriptionId: event.subscriptionId, ); - try { - await showLocalNotification(nostrEvent); + final success = await showLocalNotification(nostrEvent); + if (success) { processedCount++; - } catch (e) { + } else { failedCount++; - logger.e('Failed to show notification for event ${event.id}: $e'); + logger.e('Failed to show notification for event ${event.id}'); } } } catch (e) { @@ -523,7 +520,10 @@ Future processFCMBackgroundNotification({ ); // Process and show the notification - await showLocalNotification(nostrEvent); + final success = await showLocalNotification(nostrEvent); + if (!success) { + logger.w('Failed to show notification for background FCM event'); + } logger.i('FCM background notification processed and shown successfully'); From 2f4d4db857224a60634067c5991956ce881aecbd Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Thu, 11 Dec 2025 17:10:00 -0300 Subject: [PATCH 36/39] Add timeout and connection cleanup to FCM background notification processing --- .../background_notification_service.dart | 80 +++++++++++-------- 1 file changed, 46 insertions(+), 34 deletions(-) diff --git a/lib/features/notifications/services/background_notification_service.dart b/lib/features/notifications/services/background_notification_service.dart index 4523a4d5..4f2565bf 100644 --- a/lib/features/notifications/services/background_notification_service.dart +++ b/lib/features/notifications/services/background_notification_service.dart @@ -489,44 +489,56 @@ Future processFCMBackgroundNotification({ return; } - // Step 3: Create filter to fetch the specific event by ID - final filter = NostrFilter( - ids: [eventId], - kinds: [1059], // Gift-wrapped events - ); - - logger.i('Fetching event $eventId from relays...'); - - // Step 4: Fetch the event from relays - final events = await nostrService.fetchEvents(filter); - - if (events.isEmpty) { - logger.w('Event $eventId not found in any relay'); - return; - } + try { + // Step 3: Create filter to fetch the specific event by ID + final filter = NostrFilter( + ids: [eventId], + kinds: [1059], // Gift-wrapped events + ); + + logger.i('Fetching event $eventId from relays...'); + + // Step 4: Fetch the event from relays with timeout + final events = await nostrService.fetchEvents(filter).timeout( + const Duration(seconds: 10), + onTimeout: () { + logger.w('Timeout fetching event $eventId from relays'); + return []; + }, + ); + + if (events.isEmpty) { + logger.w('Event $eventId not found in any relay'); + return; + } - logger.i('Found event ${events.first.id}, processing notification...'); - - // Step 5: Convert to NostrEvent and process through existing notification system - final nostrEvent = NostrEvent( - id: events.first.id, - kind: events.first.kind, - content: events.first.content, - tags: events.first.tags, - createdAt: events.first.createdAt, - pubkey: events.first.pubkey, - sig: events.first.sig, - subscriptionId: events.first.subscriptionId, - ); + logger.i('Found event ${events.first.id}, processing notification...'); + + // Step 5: Convert to NostrEvent and process through existing notification system + final nostrEvent = NostrEvent( + id: events.first.id, + kind: events.first.kind, + content: events.first.content, + tags: events.first.tags, + createdAt: events.first.createdAt, + pubkey: events.first.pubkey, + sig: events.first.sig, + subscriptionId: events.first.subscriptionId, + ); + + // Process and show the notification + final success = await showLocalNotification(nostrEvent); + if (!success) { + logger.w('Failed to show notification for background FCM event'); + } - // Process and show the notification - final success = await showLocalNotification(nostrEvent); - if (!success) { - logger.w('Failed to show notification for background FCM event'); + logger.i('FCM background notification processed and shown successfully'); + } finally { + // Always cleanup NostrService connections + await nostrService.disconnectFromRelays(); + logger.d('NostrService connections cleaned up'); } - logger.i('FCM background notification processed and shown successfully'); - } catch (e, stackTrace) { logger.e('Error processing FCM background notification: $e'); logger.e('Stack trace: $stackTrace'); From da0f62e226c3fd24bf8969bafa1a47da1c75437a Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Thu, 11 Dec 2025 17:18:57 -0300 Subject: [PATCH 37/39] Fix grammar in Cloud Functions schedule interval from "minutes" to "minute" --- docs/FCM_TESTING_GUIDE.md | 6 +++--- functions/src/index.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/FCM_TESTING_GUIDE.md b/docs/FCM_TESTING_GUIDE.md index a83c6268..3dedcc36 100644 --- a/docs/FCM_TESTING_GUIDE.md +++ b/docs/FCM_TESTING_GUIDE.md @@ -182,7 +182,7 @@ Silent push notification sent successfully - OR: Use daemon to send test event 3. **Wait for notification:** - - Cloud Functions polls every 1 minutes + - Cloud Functions polls every 1 minute - Should detect new event - Should send silent push - Background handler should wake up @@ -366,14 +366,14 @@ adb logcat | grep "Found.*active sessions" - Notes: [Any issues or observations] ### Test 4: Cloud Functions -- [ ] Poller running every 5 minutes +- [ ] Poller running every 1 minute - [ ] Events detected correctly - [ ] Silent push sent - Notes: [Any issues or observations] ### Test 5: End-to-End - [ ] Complete flow successful -- [ ] Notification received within 6 minutes +- [ ] Notification received within 2 minutes - [ ] Content decrypted correctly - Notes: [Any issues or observations] diff --git a/functions/src/index.ts b/functions/src/index.ts index ba889bf0..6aebc155 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -159,7 +159,7 @@ export const getStatus = onRequest((_req, res) => { res.json(status); }); -export const keepAlive = onSchedule("every 1 minutes", async () => { +export const keepAlive = onSchedule("every 1 minute", async () => { const checkStartTime = Math.floor(Date.now() / 1000); logger.info("Starting scheduled relay poll", { lastCheckTimestamp, From 8bb5066afab7edd5bc93b4306ee7740d7dd07219 Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Thu, 11 Dec 2025 17:21:44 -0300 Subject: [PATCH 38/39] Move pending FCM event check from main.dart to app lifecycle observer --- lib/core/app.dart | 49 ++++++++++++++++++++++++++++++++++++++++++++++- lib/main.dart | 43 ----------------------------------------- 2 files changed, 48 insertions(+), 44 deletions(-) diff --git a/lib/core/app.dart b/lib/core/app.dart index 6ef74ba6..f89b9294 100644 --- a/lib/core/app.dart +++ b/lib/core/app.dart @@ -4,6 +4,7 @@ import 'package:flutter_localizations/flutter_localizations.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:go_router/go_router.dart'; import 'package:app_links/app_links.dart'; +import 'package:logger/logger.dart'; import 'package:mostro_mobile/core/app_routes.dart'; import 'package:mostro_mobile/core/app_theme.dart'; import 'package:mostro_mobile/core/deep_link_handler.dart'; @@ -11,8 +12,10 @@ import 'package:mostro_mobile/core/deep_link_interceptor.dart'; import 'package:mostro_mobile/features/auth/providers/auth_notifier_provider.dart'; import 'package:mostro_mobile/generated/l10n.dart'; import 'package:mostro_mobile/features/auth/notifiers/auth_state.dart'; +import 'package:mostro_mobile/features/notifications/services/background_notification_service.dart'; import 'package:mostro_mobile/services/lifecycle_manager.dart'; import 'package:mostro_mobile/shared/providers/app_init_provider.dart'; +import 'package:mostro_mobile/shared/providers/storage_providers.dart'; import 'package:mostro_mobile/features/settings/settings_provider.dart'; import 'package:mostro_mobile/shared/notifiers/locale_notifier.dart'; import 'package:mostro_mobile/features/walkthrough/providers/first_run_provider.dart'; @@ -28,7 +31,7 @@ class MostroApp extends ConsumerStatefulWidget { ConsumerState createState() => _MostroAppState(); } -class _MostroAppState extends ConsumerState { +class _MostroAppState extends ConsumerState with WidgetsBindingObserver { GoRouter? _router; bool _deepLinksInitialized = false; DeepLinkInterceptor? _deepLinkInterceptor; @@ -37,11 +40,54 @@ class _MostroAppState extends ConsumerState { @override void initState() { super.initState(); + WidgetsBinding.instance.addObserver(this); ref.read(lifecycleManagerProvider); _initializeDeepLinkInterceptor(); _processInitialDeepLink(); } + @override + void didChangeAppLifecycleState(AppLifecycleState state) { + super.didChangeAppLifecycleState(state); + if (state == AppLifecycleState.resumed) { + _checkPendingEventsOnResume(); + } + } + + /// Check and process pending FCM events when app resumes + /// This is a fallback for when background processing fails + Future _checkPendingEventsOnResume() async { + final logger = Logger(); + try { + final sharedPrefs = ref.read(sharedPreferencesProvider); + final settings = ref.read(settingsProvider.notifier); + + final hasPending = await sharedPrefs.getBool('fcm.pending_fetch') ?? false; + + if (hasPending) { + logger.i('Pending events detected on resume - processing now'); + + await sharedPrefs.setBool('fcm.pending_fetch', false); + + final relays = settings.settings.relays; + if (relays.isEmpty) { + logger.w('No relays configured - cannot fetch events'); + return; + } + + logger.i('Fetching new events from ${relays.length} relays'); + await fetchAndProcessNewEvents( + relays: relays, + // No limits when app is active + ); + logger.i('Successfully processed pending events on resume'); + } + } catch (e, stackTrace) { + logger.e('Error checking pending events on resume: $e'); + logger.e('Stack trace: $stackTrace'); + } + } + /// Initialize the deep link interceptor void _initializeDeepLinkInterceptor() { _deepLinkInterceptor = DeepLinkInterceptor(); @@ -107,6 +153,7 @@ class _MostroAppState extends ConsumerState { @override void dispose() { + WidgetsBinding.instance.removeObserver(this); _customUrlSubscription?.cancel(); _deepLinkInterceptor?.dispose(); // Deep link handler disposal is handled automatically by Riverpod diff --git a/lib/main.dart b/lib/main.dart index 7fc0d44b..decf8e69 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -140,7 +140,6 @@ Future main() async { ); _initializeRelaySynchronization(container); - _checkPendingEventsOnResume(sharedPreferences, settings); runApp( UncontrolledProviderScope( @@ -150,48 +149,6 @@ Future main() async { ); } -/// Process pending FCM events flagged by background handler -/// Only runs on platforms where Firebase is supported (Android, iOS) -/// This is a fallback for when background processing fails -Future _checkPendingEventsOnResume( - SharedPreferencesAsync sharedPrefs, - SettingsNotifier settings, -) async { - // Skip if Firebase is not supported on this platform - if (!_isFirebaseSupported) { - return; - } - - final logger = Logger(); - - try { - final hasPending = await sharedPrefs.getBool('fcm.pending_fetch') ?? false; - - if (hasPending) { - logger.i('Pending events detected (background processing failed) - processing now'); - - await sharedPrefs.setBool('fcm.pending_fetch', false); - - final relays = settings.settings.relays; - if (relays.isEmpty) { - logger.w('No relays configured - cannot fetch events'); - return; - } - - logger.i('Fetching new events from ${relays.length} relays'); - // Process without limits since app is now active - await fetchAndProcessNewEvents( - relays: relays, - // No limits when app is active - ); - logger.i('Successfully processed pending events'); - } - } catch (e, stackTrace) { - logger.e('Error processing pending events: $e'); - logger.e('Stack trace: $stackTrace'); - } -} - /// Initialize relay synchronization on app startup void _initializeRelaySynchronization(ProviderContainer container) { try { From 2e9405cabc5c77780133fa3109e61ef02ecae4ed Mon Sep 17 00:00:00 2001 From: Andrea Diaz Correia Date: Fri, 19 Dec 2025 17:49:37 -0300 Subject: [PATCH 39/39] Add push notification service with encrypted token registration Implement privacy-preserving push notification system inspired by MIP-05: - Add PushNotificationService for encrypted device token registration - Encrypt FCM tokens with server's public key using ECDH + ChaCha20-Poly1305 - Register tokens per trade pubkey for targeted notifications - Add debug notification to verify push source (cloud functions vs new server) - Update default Mostro pubkey and add configurable push server URL - Integrate --- lib/core/config.dart | 9 +- lib/main.dart | 84 ++++- lib/services/push_notification_service.dart | 312 ++++++++++++++++++ lib/shared/notifiers/session_notifier.dart | 26 ++ .../providers/push_notification_provider.dart | 10 + 5 files changed, 432 insertions(+), 9 deletions(-) create mode 100644 lib/services/push_notification_service.dart create mode 100644 lib/shared/providers/push_notification_provider.dart diff --git a/lib/core/config.dart b/lib/core/config.dart index b914793d..4f3c1901 100644 --- a/lib/core/config.dart +++ b/lib/core/config.dart @@ -12,7 +12,8 @@ class Config { // Mostro hexkey static const String mostroPubKey = String.fromEnvironment( 'MOSTRO_PUB_KEY', - defaultValue: '82fa8cb978b43c79b2156585bac2c011176a21d2aead6d9f7c575c005be88390', + defaultValue: + '0a537332f2d569059add3fd2e376e1d6b8c1e1b9f7a999ac2592b4afbba74a00', ); //'9d9d0455a96871f2dc4289b8312429db2e925f167b37c77bf7b28014be235980'; @@ -42,4 +43,10 @@ class Config { // Notification configuration static String notificationChannelId = 'mostro_mobile'; static int notificationId = 38383; + + // Push notification server + static const String pushServerUrl = String.fromEnvironment( + 'PUSH_SERVER_URL', + defaultValue: 'https://mostro-push-server.fly.dev', + ); } diff --git a/lib/main.dart b/lib/main.dart index decf8e69..cd8bbf63 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -19,8 +19,11 @@ import 'package:mostro_mobile/shared/providers/background_service_provider.dart' import 'package:mostro_mobile/shared/providers/providers.dart'; import 'package:mostro_mobile/shared/utils/biometrics_helper.dart'; import 'package:mostro_mobile/shared/utils/notification_permission_helper.dart'; +import 'package:mostro_mobile/services/push_notification_service.dart'; +import 'package:mostro_mobile/core/config.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:timeago/timeago.dart' as timeago; +import 'package:flutter_local_notifications/flutter_local_notifications.dart'; /// Check if the current platform supports Firebase bool get _isFirebaseSupported { @@ -38,19 +41,27 @@ Future firebaseMessagingBackgroundHandler(RemoteMessage message) async { logger.i('=== FCM BACKGROUND WAKE START ==='); logger.i('Message data: ${message.data}'); + // Log push source for debugging + final source = message.data['source'] ?? 'cloud-functions'; + logger.i('Push source: $source'); + + // DEBUG: Show source in a visible notification (remove after testing) + // This helps verify if push comes from new server or cloud functions + await _showDebugSourceNotification(source); + await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform, ); final sharedPrefs = SharedPreferencesAsync(); - + // SharedPreferencesAsync always reads fresh values from native storage // No reload() needed - it queries the platform directly on each call - + // Load settings to get relay configuration final settingsJson = await sharedPrefs.getString('mostro_settings'); List relays = ['wss://relay.mostro.network']; // Default fallback - + if (settingsJson != null) { try { final settingsMap = jsonDecode(settingsJson) as Map; @@ -68,24 +79,23 @@ Future firebaseMessagingBackgroundHandler(RemoteMessage message) async { // Process events directly in background logger.i('Processing events from ${relays.length} relays...'); - + try { await fetchAndProcessNewEvents( relays: relays, maxEventsPerSession: 10, // Limit to avoid timeout timeoutPerSession: const Duration(seconds: 5), // Timeout per session ); - + logger.i('Background event processing completed successfully'); - + // Update last processed timestamp final now = (DateTime.now().millisecondsSinceEpoch / 1000).floor(); await sharedPrefs.setInt('fcm.last_processed_timestamp', now); - } catch (e, stackTrace) { logger.e('Error processing events in background: $e'); logger.e('Stack trace: $stackTrace'); - + // Set flag for retry when app opens await sharedPrefs.setBool('fcm.pending_fetch', true); } @@ -124,6 +134,9 @@ Future main() async { _initializeTimeAgoLocalization(); + // Initialize push notification service for targeted notifications + await _initializePushService(); + final backgroundService = createBackgroundService(settings.settings); await backgroundService.init(); @@ -171,3 +184,58 @@ void _initializeTimeAgoLocalization() { // English is already the default, no need to set it } + +/// Initialize push notification service for targeted notifications +Future _initializePushService() async { + if (!_isFirebaseSupported) return; + + try { + final pushService = PushNotificationService( + pushServerUrl: Config.pushServerUrl, + ); + await pushService.initialize(); + } catch (e) { + debugPrint('Failed to initialize push service: $e'); + } +} + +/// DEBUG: Show a visible notification with push source (for release testing) +/// Remove this function after testing is complete +Future _showDebugSourceNotification(String source) async { + try { + final flutterLocalNotificationsPlugin = FlutterLocalNotificationsPlugin(); + + const androidSettings = + AndroidInitializationSettings('@mipmap/ic_launcher'); + const iosSettings = DarwinInitializationSettings(); + const initSettings = InitializationSettings( + android: androidSettings, + iOS: iosSettings, + ); + + await flutterLocalNotificationsPlugin.initialize(initSettings); + + const androidDetails = AndroidNotificationDetails( + 'debug_channel', + 'Debug Notifications', + importance: Importance.high, + priority: Priority.high, + ); + const iosDetails = DarwinNotificationDetails(); + const details = NotificationDetails( + android: androidDetails, + iOS: iosDetails, + ); + + await flutterLocalNotificationsPlugin.show( + 99999, // Unique ID for debug notification + 'Push Source: $source', + source == 'mostro-push-server' + ? '✅ From new push server (targeted)' + : '📢 From cloud functions (broadcast)', + details, + ); + } catch (e) { + // Silently fail - this is just for debugging + } +} diff --git a/lib/services/push_notification_service.dart b/lib/services/push_notification_service.dart new file mode 100644 index 00000000..acf44f02 --- /dev/null +++ b/lib/services/push_notification_service.dart @@ -0,0 +1,312 @@ +import 'dart:convert'; +import 'dart:typed_data'; + +import 'package:firebase_messaging/firebase_messaging.dart'; +import 'package:flutter/foundation.dart' show kIsWeb; +import 'package:http/http.dart' as http; +import 'package:logger/logger.dart'; +import 'package:pointycastle/export.dart'; +import 'dart:io' show Platform; +import 'dart:math'; + +/// Service for registering push notification tokens with the Mostro push server. +/// +/// This implements a privacy-preserving approach inspired by MIP-05: +/// - Device tokens are encrypted with the server's public key +/// - Server only knows the mapping trade_pubkey -> device_token temporarily +/// - Server cannot see message content or user identity +class PushNotificationService { + final Logger _logger = Logger(); + + final String _pushServerUrl; + String? _serverPubkey; + + static const int _paddedPayloadSize = 220; + static const int _nonceSize = 12; + static const int _pubkeySize = 33; + + static const int _platformAndroid = 0x02; + static const int _platformIos = 0x01; + + PushNotificationService({ + required String pushServerUrl, + }) : _pushServerUrl = pushServerUrl; + + /// Check if push notifications are supported on this platform + bool get isSupported { + if (kIsWeb) return false; + return Platform.isAndroid || Platform.isIOS; + } + + /// Initialize the service by fetching the server's public key + Future initialize() async { + if (!isSupported) { + _logger.i('Push notifications not supported on this platform'); + return false; + } + + try { + final response = await http + .get( + Uri.parse('$_pushServerUrl/api/info'), + ) + .timeout(const Duration(seconds: 10)); + + if (response.statusCode == 200) { + final data = jsonDecode(response.body); + _serverPubkey = data['server_pubkey']; + _logger.i( + 'Push server initialized, pubkey: ${_serverPubkey?.substring(0, 16)}...'); + return true; + } else { + _logger.e('Failed to get server info: ${response.statusCode}'); + return false; + } + } catch (e) { + _logger.e('Failed to initialize push service: $e'); + return false; + } + } + + /// Register a device token for a specific trade + /// + /// [tradePubkey] - The public key of the trade (hex, 64 chars) + /// This is the key that Mostro daemon uses in the 'p' tag when sending events + Future registerToken(String tradePubkey) async { + if (!isSupported || _serverPubkey == null) { + _logger.w('Push service not initialized or not supported'); + return false; + } + + try { + // Get FCM token + final fcmToken = await FirebaseMessaging.instance.getToken(); + if (fcmToken == null) { + _logger.w('FCM token is null, cannot register'); + return false; + } + + _logger + .d('Registering token for trade: ${tradePubkey.substring(0, 16)}...'); + + // Encrypt the token + final encryptedToken = _encryptToken(fcmToken); + if (encryptedToken == null) { + _logger.e('Failed to encrypt token'); + return false; + } + + // Send to server + final response = await http + .post( + Uri.parse('$_pushServerUrl/api/register'), + headers: {'Content-Type': 'application/json'}, + body: jsonEncode({ + 'trade_pubkey': tradePubkey, + 'encrypted_token': base64Encode(encryptedToken), + }), + ) + .timeout(const Duration(seconds: 10)); + + if (response.statusCode == 200) { + final data = jsonDecode(response.body); + if (data['success'] == true) { + _logger.i( + 'Token registered successfully for trade ${tradePubkey.substring(0, 16)}...'); + return true; + } + } + + _logger.e('Failed to register token: ${response.body}'); + return false; + } catch (e) { + _logger.e('Error registering token: $e'); + return false; + } + } + + /// Unregister a device token for a specific trade + Future unregisterToken(String tradePubkey) async { + if (!isSupported) { + return false; + } + + try { + final response = await http + .post( + Uri.parse('$_pushServerUrl/api/unregister'), + headers: {'Content-Type': 'application/json'}, + body: jsonEncode({ + 'trade_pubkey': tradePubkey, + }), + ) + .timeout(const Duration(seconds: 10)); + + if (response.statusCode == 200) { + _logger.i( + 'Token unregistered for trade ${tradePubkey.substring(0, 16)}...'); + return true; + } + + _logger.w('Failed to unregister token: ${response.body}'); + return false; + } catch (e) { + _logger.e('Error unregistering token: $e'); + return false; + } + } + + /// Encrypt a device token using the server's public key + /// + /// Format: ephemeral_pubkey (33 bytes) || nonce (12 bytes) || ciphertext (236 bytes) + /// Total: 281 bytes + Uint8List? _encryptToken(String deviceToken) { + if (_serverPubkey == null) return null; + + try { + final random = Random.secure(); + + // Parse server public key (compressed, 33 bytes) + final serverPubkeyBytes = _hexToBytes(_serverPubkey!); + + // Generate ephemeral keypair + final ecParams = ECDomainParameters('secp256k1'); + final keyGen = ECKeyGenerator() + ..init(ParametersWithRandom( + ECKeyGeneratorParameters(ecParams), + SecureRandom('Fortuna')..seed(KeyParameter(_randomBytes(32, random))), + )); + + final ephemeralKeyPair = keyGen.generateKeyPair(); + final ephemeralPrivate = ephemeralKeyPair.privateKey as ECPrivateKey; + final ephemeralPublic = ephemeralKeyPair.publicKey as ECPublicKey; + + // Get compressed ephemeral public key (33 bytes) + final ephemeralPubkeyBytes = _compressPublicKey(ephemeralPublic.Q!); + + // Parse server public key as EC point + final serverPoint = ecParams.curve.decodePoint(serverPubkeyBytes); + + // ECDH: shared_point = ephemeral_private * server_public + final sharedPoint = serverPoint! * ephemeralPrivate.d; + final sharedX = _bigIntToBytes(sharedPoint!.x!.toBigInteger()!, 32); + + // HKDF to derive encryption key + final encryptionKey = _hkdfDerive(sharedX, 32); + + // Generate random nonce + final nonce = _randomBytes(_nonceSize, random); + + // Create padded payload + final paddedPayload = _createPaddedPayload(deviceToken, random); + + // Encrypt with ChaCha20-Poly1305 + final cipher = ChaCha20Poly1305(ChaCha7539Engine(), Poly1305()); + cipher.init( + true, + AEADParameters( + KeyParameter(encryptionKey), + 128, // 16 bytes auth tag + nonce, + Uint8List(0), // no AAD + ), + ); + + final ciphertext = cipher.process(paddedPayload); + + // Combine: ephemeral_pubkey || nonce || ciphertext + final result = Uint8List(_pubkeySize + _nonceSize + ciphertext.length); + result.setRange(0, _pubkeySize, ephemeralPubkeyBytes); + result.setRange(_pubkeySize, _pubkeySize + _nonceSize, nonce); + result.setRange(_pubkeySize + _nonceSize, result.length, ciphertext); + + return result; + } catch (e) { + _logger.e('Encryption error: $e'); + return null; + } + } + + /// Create padded payload: platform_byte || token_length (2 bytes BE) || token || random_padding + Uint8List _createPaddedPayload(String deviceToken, Random random) { + final tokenBytes = utf8.encode(deviceToken); + final platformByte = Platform.isIOS ? _platformIos : _platformAndroid; + + final payload = Uint8List(_paddedPayloadSize); + payload[0] = platformByte; + payload[1] = (tokenBytes.length >> 8) & 0xFF; + payload[2] = tokenBytes.length & 0xFF; + payload.setRange(3, 3 + tokenBytes.length, tokenBytes); + + // Fill rest with random padding + final paddingStart = 3 + tokenBytes.length; + for (var i = paddingStart; i < _paddedPayloadSize; i++) { + payload[i] = random.nextInt(256); + } + + return payload; + } + + /// HKDF-SHA256 key derivation + Uint8List _hkdfDerive(Uint8List ikm, int length) { + const salt = 'mostro-push-v1'; + const info = 'mostro-token-encryption'; + + final hmac = HMac(SHA256Digest(), 64); + + // Extract + hmac.init(KeyParameter(Uint8List.fromList(utf8.encode(salt)))); + final prk = Uint8List(32); + hmac.update(ikm, 0, ikm.length); + hmac.doFinal(prk, 0); + + // Expand + hmac.init(KeyParameter(prk)); + final infoBytes = Uint8List.fromList(utf8.encode(info)); + final okm = Uint8List(length); + + final t = Uint8List(32 + infoBytes.length + 1); + t.setRange(0, infoBytes.length, infoBytes); + t[infoBytes.length] = 1; + + hmac.update(t, 0, infoBytes.length + 1); + hmac.doFinal(okm, 0); + + return okm.sublist(0, length); + } + + Uint8List _hexToBytes(String hex) { + final result = Uint8List(hex.length ~/ 2); + for (var i = 0; i < hex.length; i += 2) { + result[i ~/ 2] = int.parse(hex.substring(i, i + 2), radix: 16); + } + return result; + } + + Uint8List _randomBytes(int length, Random random) { + final bytes = Uint8List(length); + for (var i = 0; i < length; i++) { + bytes[i] = random.nextInt(256); + } + return bytes; + } + + Uint8List _bigIntToBytes(BigInt value, int length) { + final bytes = Uint8List(length); + var v = value; + for (var i = length - 1; i >= 0; i--) { + bytes[i] = (v & BigInt.from(0xFF)).toInt(); + v = v >> 8; + } + return bytes; + } + + Uint8List _compressPublicKey(ECPoint point) { + final x = _bigIntToBytes(point.x!.toBigInteger()!, 32); + final yIsOdd = point.y!.toBigInteger()!.isOdd; + final compressed = Uint8List(33); + compressed[0] = yIsOdd ? 0x03 : 0x02; + compressed.setRange(1, 33, x); + return compressed; + } +} diff --git a/lib/shared/notifiers/session_notifier.dart b/lib/shared/notifiers/session_notifier.dart index 9e9e6213..3718d92f 100644 --- a/lib/shared/notifiers/session_notifier.dart +++ b/lib/shared/notifiers/session_notifier.dart @@ -11,6 +11,7 @@ import 'package:logger/logger.dart'; import 'package:mostro_mobile/shared/utils/nostr_utils.dart'; import 'package:dart_nostr/dart_nostr.dart'; import 'package:mostro_mobile/data/models/peer.dart'; +import 'package:mostro_mobile/shared/providers/push_notification_provider.dart'; class SessionNotifier extends StateNotifier> { final Ref ref; @@ -114,10 +115,33 @@ class SessionNotifier extends StateNotifier> { _requestIdToSession[requestId] = session; } + // Register push notification token for this trade + _registerPushToken(tradeKey.public); + _emitState(); return session; } + /// Register push notification token for a trade key + Future _registerPushToken(String tradePubkey) async { + try { + final pushService = ref.read(pushNotificationServiceProvider); + await pushService.registerToken(tradePubkey); + } catch (e) { + _logger.w('Failed to register push token: $e'); + } + } + + /// Unregister push notification token for a trade key + Future _unregisterPushToken(String tradePubkey) async { + try { + final pushService = ref.read(pushNotificationServiceProvider); + await pushService.unregisterToken(tradePubkey); + } catch (e) { + _logger.w('Failed to unregister push token: $e'); + } + } + Future saveSession(Session session) async { _sessions[session.orderId!] = session; _requestIdToSession.removeWhere((_, value) => identical(value, session)); @@ -178,6 +202,8 @@ class SessionNotifier extends StateNotifier> { Future deleteSession(String sessionId) async { final removed = _sessions.remove(sessionId); if (removed != null) { + // Unregister push token when session is deleted + _unregisterPushToken(removed.tradeKey.public); _pendingChildSessions .removeWhere((_, session) => identical(session, removed)); _requestIdToSession diff --git a/lib/shared/providers/push_notification_provider.dart b/lib/shared/providers/push_notification_provider.dart new file mode 100644 index 00000000..1e1cce7a --- /dev/null +++ b/lib/shared/providers/push_notification_provider.dart @@ -0,0 +1,10 @@ +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:mostro_mobile/core/config.dart'; +import 'package:mostro_mobile/services/push_notification_service.dart'; + +final pushNotificationServiceProvider = + Provider((ref) { + return PushNotificationService( + pushServerUrl: Config.pushServerUrl, + ); +});