diff --git a/Directory.Build.props b/Directory.Build.props index a8e1856..876cb40 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,7 +2,7 @@ - net10.0 + net11.0 enable enable OpenShock diff --git a/Directory.Packages.props b/Directory.Packages.props index a3b98d2..3494cc0 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,42 +5,36 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - + + + - + - - + + - + \ No newline at end of file diff --git a/DiscordBot/DiscordBot.csproj b/DiscordBot/DiscordBot.csproj index 42c5a64..744f693 100644 --- a/DiscordBot/DiscordBot.csproj +++ b/DiscordBot/DiscordBot.csproj @@ -18,13 +18,8 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/DiscordBot/DiscordBotConfig.cs b/DiscordBot/DiscordBotConfig.cs index 862fffd..f97310e 100644 --- a/DiscordBot/DiscordBotConfig.cs +++ b/DiscordBot/DiscordBotConfig.cs @@ -3,4 +3,24 @@ public sealed class DiscordBotConfig { public required string Token { get; init; } -} \ No newline at end of file + + public WidgetSyncConfig Widget { get; init; } = new(); +} + +/// Keeps users' Discord profile widgets in sync with their OpenShock control stats. +public sealed class WidgetSyncConfig +{ + /// The OpenShock API stats are read from. Users linked to any other server are skipped. + public Uri ApiServer { get; init; } = new("https://api.openshock.app/"); + + /// Automation token granting ControlStatsRead on . Sync is off when unset. + public string? AutomationToken { get; init; } + + public TimeSpan Interval { get; init; } = TimeSpan.FromMinutes(1); + + /// + /// How long to stop syncing when Discord refuses every write of a tick with 403, which means the application + /// itself may not write game stats (e.g. its game isn't claimed) rather than individual users having revoked. + /// + public TimeSpan ForbiddenPause { get; init; } = TimeSpan.FromHours(1); +} diff --git a/DiscordBot/Dockerfile b/DiscordBot/Dockerfile index d926bf0..eabd121 100644 --- a/DiscordBot/Dockerfile +++ b/DiscordBot/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine@sha256:620e765fe18186c08399f7aa978f79f04b6bbf0ee1b3b8a91e2d5c9619e59da1 AS build +FROM mcr.microsoft.com/dotnet/sdk:11.0-alpine@sha256:52556c0fb9d0f609ae9aeab9efeeba96f4acc2f7038f7696f2235ccbdbb8e290 AS build WORKDIR /src # Copy only project files first for layer-cached restore. @@ -13,7 +13,7 @@ COPY DiscordBot/ ./DiscordBot/ RUN dotnet publish DiscordBot/DiscordBot.csproj -c Release -o /publish --no-restore -FROM mcr.microsoft.com/dotnet/runtime:10.0-alpine@sha256:216f4e2027da6ae806e0bc4b448669ac0faa00125908e308f31dd70598e58136 +FROM mcr.microsoft.com/dotnet/runtime:11.0-alpine@sha256:f79ce0f256d44492ac098aa861836d1a71b3b178019d7357cc6d1437f3ad78d1 WORKDIR /app ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false diff --git a/DiscordBot/Program.cs b/DiscordBot/Program.cs index 3fe8d81..90f758e 100644 --- a/DiscordBot/Program.cs +++ b/DiscordBot/Program.cs @@ -14,6 +14,7 @@ using System.Reflection; using OpenShock.DiscordBot.MessageHandler; using OpenShock.DiscordBot.Services.ProfanityDetector; +using OpenShock.DiscordBot.Services.Widget; try { @@ -101,6 +102,17 @@ httpClient.BaseAddress = new Uri("https://api.openshock.app/"); }); services.AddHostedService(); + + services.AddHttpClient(httpClient => + { + httpClient.DefaultRequestHeaders.Add("User-Agent", "OpenShockDiscordBot/1.0"); + httpClient.BaseAddress = discordBotConfig.Widget.ApiServer; + if (!string.IsNullOrWhiteSpace(discordBotConfig.Widget.AutomationToken)) + httpClient.DefaultRequestHeaders.Add(ControlStatsClient.AutomationTokenHeader, + discordBotConfig.Widget.AutomationToken); + }); + services.AddHttpClient(); + services.AddHostedService(); }); diff --git a/DiscordBot/Services/Widget/ControlStatsClient.cs b/DiscordBot/Services/Widget/ControlStatsClient.cs new file mode 100644 index 0000000..2710989 --- /dev/null +++ b/DiscordBot/Services/Widget/ControlStatsClient.cs @@ -0,0 +1,60 @@ +using System.Net.Http.Json; + +namespace OpenShock.DiscordBot.Services.Widget; + +/// +/// Client for the OpenShock API's integration endpoint that reports users' lifetime control stats, but only +/// for users whose stats changed since a cursor. +/// +public sealed class ControlStatsClient +{ + public const string AutomationTokenHeader = "X-OpenShock-Automation-Token"; + + /// Server side limit of user ids per request. + private const int MaxUserIds = 1000; + + private readonly HttpClient _http; + + public ControlStatsClient(HttpClient http) + { + _http = http; + } + + /// + /// Totals of every user in whose stats changed since , or of + /// all of them when it is null. The returned cursor is the oldest one of all chunks. + /// + public async Task GetChangesAsync(DateTime? since, IReadOnlyCollection userIds, + CancellationToken ct) + { + DateTime? cursor = null; + var users = new List(); + + foreach (var chunk in userIds.Chunk(MaxUserIds)) + { + using var response = await _http.PostAsJsonAsync("1/integrations/control-stats/changes", + new { since, userIds = chunk }, ct); + response.EnsureSuccessStatusCode(); + + var page = await response.Content.ReadFromJsonAsync(ct) + ?? throw new InvalidOperationException("Empty control stats response"); + users.AddRange(page.Users); + if (cursor is null || page.Cursor < cursor) cursor = page.Cursor; + } + + return new ControlStatChanges(cursor ?? DateTime.UtcNow, users); + } +} + +public sealed record ControlStatChanges(DateTime Cursor, IReadOnlyList Users); + +public sealed record UserControlStatTotals(Guid UserId, ControlStatTotals[] Received, ControlStatTotals[] Given); + +/// One control type's totals, is the API's enum name (Shock, Vibrate, Sound). +public sealed record ControlStatTotals( + string Type, + bool Live, + long Count, + long DurationMs, + double AverageIntensity, + byte MaxIntensity); diff --git a/DiscordBot/Services/Widget/ProfileWidgetClient.cs b/DiscordBot/Services/Widget/ProfileWidgetClient.cs new file mode 100644 index 0000000..1676b78 --- /dev/null +++ b/DiscordBot/Services/Widget/ProfileWidgetClient.cs @@ -0,0 +1,86 @@ +using System.Net; +using System.Net.Http.Headers; +using System.Net.Http.Json; +using System.Text.Json.Nodes; +using Microsoft.Extensions.Logging; + +namespace OpenShock.DiscordBot.Services.Widget; + +public enum ProfileWidgetResult +{ + Success, + + /// + /// Discord answered 403. Either the user no longer grants application_identities.write, or the whole + /// application isn't allowed to write game stats (e.g. the game isn't claimed); the response doesn't tell which. + /// + Forbidden, + + /// Anything else (rate limits, outages), worth retrying later. + Failed +} + +/// +/// Writes Game Stats Widget data through Discord's Application Identity Profile API, authorized with the bot token. +/// +public sealed class ProfileWidgetClient +{ + private readonly HttpClient _http; + private readonly DiscordBotConfig _config; + private readonly ILogger _logger; + + public ProfileWidgetClient(HttpClient http, DiscordBotConfig config, ILogger logger) + { + _http = http; + _config = config; + _logger = logger; + } + + /// + /// Replaces the user's widget data for the given OpenShock identity. Discord replaces the whole data object on + /// every PATCH, so must always be complete; an empty object clears it. + /// + public async Task UpdateAsync(ulong applicationId, ulong discordId, Guid openShockId, + JsonObject data, CancellationToken ct) + { + using var request = new HttpRequestMessage(HttpMethod.Patch, + $"https://discord.com/api/v10/applications/{applicationId}/users/{discordId}/identities/{openShockId}/profile"); + request.Headers.Authorization = new AuthenticationHeaderValue("Bot", _config.Token); + request.Content = JsonContent.Create(new JsonObject { ["data"] = data }); + + using var response = await _http.SendAsync(request, ct); + if (response.IsSuccessStatusCode) return ProfileWidgetResult.Success; + + _logger.LogWarning("Profile widget update for {DiscordId} failed with {Status}: {Error}", + discordId, response.StatusCode, await response.Content.ReadAsStringAsync(ct)); + + return response.StatusCode == HttpStatusCode.Forbidden + ? ProfileWidgetResult.Forbidden + : ProfileWidgetResult.Failed; + } + + /// + /// Deletes the profile-only identity (provider type NONE) the first created, + /// widget data included. Discord only accepts writes for the provider issued user id of an existing identity, + /// so the old one has to go before writing for another OpenShock account. An identity that's already gone + /// counts as deleted. + /// + public async Task DeleteAsync(ulong applicationId, ulong discordId, Guid openShockId, + CancellationToken ct) + { + using var request = new HttpRequestMessage(HttpMethod.Post, + $"https://discord.com/api/v10/users/{discordId}/application-identities/{applicationId}/NONE/{openShockId}/delete"); + request.Headers.Authorization = new AuthenticationHeaderValue("Bot", _config.Token); + + using var response = await _http.SendAsync(request, ct); + if (response.IsSuccessStatusCode || response.StatusCode == HttpStatusCode.NotFound) + return ProfileWidgetResult.Success; + + _logger.LogWarning("Profile widget identity delete for {DiscordId} failed with {Status}: {Error}", + discordId, response.StatusCode, await response.Content.ReadAsStringAsync(ct)); + + return response.StatusCode == HttpStatusCode.Forbidden + ? ProfileWidgetResult.Forbidden + : ProfileWidgetResult.Failed; + } +} diff --git a/DiscordBot/Services/Widget/WidgetSyncService.cs b/DiscordBot/Services/Widget/WidgetSyncService.cs new file mode 100644 index 0000000..8b3922c --- /dev/null +++ b/DiscordBot/Services/Widget/WidgetSyncService.cs @@ -0,0 +1,221 @@ +using System.Text.Json.Nodes; +using Discord.WebSocket; +using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Logging; +using OpenShock.DiscordBot.OpenShockDiscordDb; + +namespace OpenShock.DiscordBot.Services.Widget; + +/// +/// Periodically pushes the OpenShock control stats of users who granted application_identities.write to +/// their Discord profile widget. Each tick costs one stats request: the API only reports users whose stats changed +/// since the previous cursor, and users seen for the first time get one full sync. A widget is only written when +/// its data actually differs from what was last written. Every identity written is recorded in +/// and deleted at Discord once the user unlinks, revokes or +/// re-links another account, across restarts too. +/// +public sealed class WidgetSyncService : BackgroundService +{ + private readonly IServiceProvider _services; + private readonly DiscordSocketClient _client; + private readonly WidgetSyncConfig _config; + private readonly ILogger _logger; + + private DateTime? _cursor; + + /// Set when Discord refused every write, see . + private DateTime _pausedUntil; + + public WidgetSyncService(IServiceProvider services, DiscordSocketClient client, DiscordBotConfig config, + ILogger logger) + { + _services = services; + _client = client; + _config = config.Widget; + _logger = logger; + } + + protected override async Task ExecuteAsync(CancellationToken stoppingToken) + { + if (string.IsNullOrWhiteSpace(_config.AutomationToken)) + { + _logger.LogInformation("No widget automation token configured, profile widget sync is disabled"); + return; + } + + using var timer = new PeriodicTimer(_config.Interval); + do + { + try + { + await SyncAsync(stoppingToken); + } + catch (Exception e) when (!stoppingToken.IsCancellationRequested) + { + _logger.LogError(e, "Profile widget sync failed"); + } + } while (await timer.WaitForNextTickAsync(stoppingToken)); + } + + private async Task SyncAsync(CancellationToken ct) + { + if (DateTime.UtcNow < _pausedUntil) return; + + // The bot user's id is the application id, unknown until the gateway logged in + if (_client.CurrentUser is not { } bot) return; + var applicationId = bot.Id; + + await using var scope = _services.CreateAsyncScope(); + var db = scope.ServiceProvider.GetRequiredService(); + var stats = scope.ServiceProvider.GetRequiredService(); + var widgets = scope.ServiceProvider.GetRequiredService(); + + var authorized = (await db.Users.Where(x => x.WidgetAuthorized) + .Select(x => new { x.DiscordId, x.OpenshockId, x.ApiServer }) + .ToArrayAsync(ct)) + .Where(x => IsSyncedServer(x.ApiServer)) + .ToDictionary(x => x.DiscordId, x => x.OpenshockId); + + // Persisted, so identities of users who unlinked while the bot was down are still cleaned up + var identities = await db.WidgetIdentities.ToDictionaryAsync(x => x.DiscordId, ct); + + // Unlinked, revoked or re-linked to another OpenShock account: delete the identity we created for the old + // account. Its row stays until Discord confirmed, so a failed delete is retried next tick. + foreach (var identity in identities.Values.ToArray()) + { + if (authorized.TryGetValue(identity.DiscordId, out var openShockId) && openShockId == identity.OpenShockId) + continue; + + var result = await widgets.DeleteAsync(applicationId, identity.DiscordId, identity.OpenShockId, ct); + // Forbidden: without the scope there is nothing left we're allowed to clean up + if (result == ProfileWidgetResult.Failed) continue; + + db.WidgetIdentities.Remove(identity); + identities.Remove(identity.DiscordId); + } + + await db.SaveChangesAsync(ct); + + // A re-linked user whose old identity couldn't be deleted yet would only get a 400, wait for the delete + var syncable = authorized + .Where(x => !identities.TryGetValue(x.Key, out var identity) || identity.OpenShockId == x.Value) + .ToArray(); + + // Users whose last written data is known only need their changes. Everyone else, and everyone after a + // restart (no cursor yet), gets a full sync. + var known = _cursor is null + ? [] + : syncable.Where(x => identities.TryGetValue(x.Key, out var identity) && identity.Data is not null) + .Select(x => x.Value) + .ToArray(); + var fresh = syncable.Select(x => x.Value).Except(known).ToArray(); + + var updates = new List(); + DateTime? cursor = null; + + if (known.Length > 0) + { + var changes = await stats.GetChangesAsync(_cursor, known, ct); + updates.AddRange(changes.Users); + cursor = changes.Cursor; + } + + if (fresh.Length > 0) + { + var initial = await stats.GetChangesAsync(null, fresh, ct); + updates.AddRange(initial.Users); + if (cursor is null || initial.Cursor < cursor) cursor = initial.Cursor; + } + + var discordIds = syncable.ToDictionary(x => x.Value, x => x.Key); + var anySucceeded = false; + var forbidden = new List(); + + foreach (var totals in updates) + { + if (!discordIds.TryGetValue(totals.UserId, out var discordId)) continue; + + var data = BuildWidgetData(totals); + var serialized = data.ToJsonString(); + identities.TryGetValue(discordId, out var identity); + if (identity?.Data == serialized) continue; + + var result = await widgets.UpdateAsync(applicationId, discordId, totals.UserId, data, ct); + if (result == ProfileWidgetResult.Success) + { + anySucceeded = true; + if (identity is null) + { + identity = new WidgetIdentity { DiscordId = discordId, OpenShockId = totals.UserId }; + db.WidgetIdentities.Add(identity); + identities[discordId] = identity; + } + + identity.Data = serialized; + identity.UpdatedAt = DateTime.UtcNow; + } + else + { + if (result == ProfileWidgetResult.Forbidden) forbidden.Add(discordId); + + // Unknown data means a full sync next tick, which retries the write. The row itself stays: the + // identity may exist and has to be deleted on unlink. + if (identity is not null) identity.Data = null; + } + } + + await db.SaveChangesAsync(ct); + if (cursor is not null) _cursor = cursor; + + if (forbidden.Count == 0) return; + + // A 403 doesn't say whether the user revoked the scope or the application may not write game stats at all + // (e.g. its game isn't claimed). Only when other writes went through is it about these users; otherwise + // keep every grant and back off, the users get a full sync once the pause is over. + if (anySucceeded) + { + _logger.LogInformation("Dropping the profile widget grant of {Count} user(s) Discord refused", forbidden.Count); + await db.Users.Where(x => forbidden.Contains(x.DiscordId)) + .ExecuteUpdateAsync(s => s.SetProperty(x => x.WidgetAuthorized, false), ct); + } + else + { + _pausedUntil = DateTime.UtcNow + _config.ForbiddenPause; + _logger.LogError( + "Discord refused all {Count} profile widget write(s) with 403, the application is likely not allowed to write game stats (is the game claimed?). Pausing widget sync until {PausedUntil:u}, user grants are kept", + forbidden.Count, _pausedUntil); + } + } + + private bool IsSyncedServer(string apiServer) => + Uri.TryCreate(apiServer, UriKind.Absolute, out var uri) && + Uri.Compare(uri, _config.ApiServer, UriComponents.SchemeAndServer, UriFormat.Unescaped, + StringComparison.OrdinalIgnoreCase) == 0; + + /// + /// The widget's dynamic fields. Their names are the "User Data" keys the widget layout maps in the Developer + /// Portal, so renaming one needs the layout updated too. + /// + private static JsonObject BuildWidgetData(UserControlStatTotals totals) + { + var fields = new JsonArray(); + + foreach (var (direction, rows) in new[] { ("received", totals.Received), ("given", totals.Given) }) + { + var shocks = rows.Where(x => x.Type == "Shock").ToArray(); + + AddNumber(fields, $"shocks_{direction}", shocks.Sum(x => x.Count)); + AddNumber(fields, $"vibrations_{direction}", rows.Where(x => x.Type == "Vibrate").Sum(x => x.Count)); + AddNumber(fields, $"sounds_{direction}", rows.Where(x => x.Type == "Sound").Sum(x => x.Count)); + AddNumber(fields, $"shock_seconds_{direction}", Math.Round(shocks.Sum(x => x.DurationMs) / 1000.0, 1)); + AddNumber(fields, $"max_shock_intensity_{direction}", shocks.Select(x => (int)x.MaxIntensity).DefaultIfEmpty().Max()); + } + + return new JsonObject { ["dynamic"] = fields }; + } + + private static void AddNumber(JsonArray fields, string name, JsonNode value) => + fields.Add(new JsonObject { ["type"] = 2, ["name"] = name, ["value"] = value }); +} diff --git a/OpenShock.Activity.Api/Auth/ClaimsExtensions.cs b/OpenShock.Activity.Api/Auth/ClaimsExtensions.cs index 68dd9f4..d91167d 100644 --- a/OpenShock.Activity.Api/Auth/ClaimsExtensions.cs +++ b/OpenShock.Activity.Api/Auth/ClaimsExtensions.cs @@ -4,6 +4,9 @@ namespace OpenShock.Activity.Api.Auth; public static class ClaimsExtensions { + /// Set when the session's Discord grant included the profile widget scope. + public const string WidgetClaim = "widget"; + /// The Discord user id, taken from the JWT sub claim. public static ulong GetDiscordId(this ClaimsPrincipal principal) { @@ -15,4 +18,8 @@ public static ulong GetDiscordId(this ClaimsPrincipal principal) /// The Discord display name, taken from the JWT name claim. public static string GetDisplayName(this ClaimsPrincipal principal) => principal.FindFirstValue("name") ?? principal.GetDiscordId().ToString(); + + /// Whether the user granted the profile widget scope when this session was issued. + public static bool HasWidgetGrant(this ClaimsPrincipal principal) + => principal.FindFirstValue(WidgetClaim) == "true"; } diff --git a/OpenShock.Activity.Api/Auth/DiscordOAuthService.cs b/OpenShock.Activity.Api/Auth/DiscordOAuthService.cs index 7ad4774..c9e337e 100644 --- a/OpenShock.Activity.Api/Auth/DiscordOAuthService.cs +++ b/OpenShock.Activity.Api/Auth/DiscordOAuthService.cs @@ -5,13 +5,16 @@ namespace OpenShock.Activity.Api.Auth; -public sealed record DiscordIdentity(ulong Id, string Name, string AccessToken, string? Avatar); +public sealed record DiscordIdentity(ulong Id, string Name, string AccessToken, string? Avatar, bool WidgetAuthorized); public sealed class DiscordOAuthService { private const string TokenUrl = "https://discord.com/api/oauth2/token"; private const string MeUrl = "https://discord.com/api/users/@me"; + /// OAuth2 scope that lets the bot write the user's profile widget (Game Stats Widget) data. + public const string WidgetScope = "application_identities.write"; + private readonly HttpClient _http; private readonly DiscordConfig _cfg; private readonly ILogger _logger; @@ -61,10 +64,13 @@ public DiscordOAuthService(HttpClient http, ActivityApiConfig cfg, ILogger(ct); if (me is null || !ulong.TryParse(me.Id, out var id)) return null; - return new DiscordIdentity(id, me.GlobalName ?? me.Username, token.AccessToken, me.Avatar); + var widgetAuthorized = token.Scope?.Split(' ').Contains(WidgetScope) ?? false; + return new DiscordIdentity(id, me.GlobalName ?? me.Username, token.AccessToken, me.Avatar, widgetAuthorized); } - private sealed record DiscordTokenResponse([property: JsonPropertyName("access_token")] string? AccessToken); + private sealed record DiscordTokenResponse( + [property: JsonPropertyName("access_token")] string? AccessToken, + [property: JsonPropertyName("scope")] string? Scope); private sealed record DiscordMeResponse( [property: JsonPropertyName("id")] string Id, diff --git a/OpenShock.Activity.Api/Auth/JwtTokenService.cs b/OpenShock.Activity.Api/Auth/JwtTokenService.cs index 55f830e..e3488ad 100644 --- a/OpenShock.Activity.Api/Auth/JwtTokenService.cs +++ b/OpenShock.Activity.Api/Auth/JwtTokenService.cs @@ -18,17 +18,21 @@ public JwtTokenService(ActivityApiConfig cfg) public SymmetricSecurityKey SigningKey { get; } - public string Issue(ulong discordId, string name) + public string Issue(ulong discordId, string name, bool widgetAuthorized = false) { + List claims = + [ + new("sub", discordId.ToString()), + new("name", name) + ]; + if (widgetAuthorized) claims.Add(new Claim(ClaimsExtensions.WidgetClaim, "true")); + var descriptor = new SecurityTokenDescriptor { Issuer = _cfg.Issuer, Audience = _cfg.Audience, Expires = DateTime.UtcNow.AddDays(_cfg.LifetimeDays), - Subject = new ClaimsIdentity([ - new Claim("sub", discordId.ToString()), - new Claim("name", name) - ]), + Subject = new ClaimsIdentity(claims), SigningCredentials = new SigningCredentials(SigningKey, SecurityAlgorithms.HmacSha256) }; diff --git a/OpenShock.Activity.Api/Controllers/AuthController.cs b/OpenShock.Activity.Api/Controllers/AuthController.cs index a61337a..cb2179a 100644 --- a/OpenShock.Activity.Api/Controllers/AuthController.cs +++ b/OpenShock.Activity.Api/Controllers/AuthController.cs @@ -1,8 +1,10 @@ using System.Net.Mime; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; +using Microsoft.EntityFrameworkCore; using OpenShock.Activity.Api.Auth; using OpenShock.Activity.Api.Problems; +using OpenShock.DiscordBot.OpenShockDiscordDb; namespace OpenShock.Activity.Api.Controllers; @@ -11,12 +13,15 @@ public sealed class AuthController : ActivityControllerBase { private readonly DiscordOAuthService _discord; private readonly JwtTokenService _jwt; + private readonly OpenShockDiscordContext _db; private readonly IHostEnvironment _env; - public AuthController(DiscordOAuthService discord, JwtTokenService jwt, IHostEnvironment env) + public AuthController(DiscordOAuthService discord, JwtTokenService jwt, OpenShockDiscordContext db, + IHostEnvironment env) { _discord = discord; _jwt = jwt; + _db = db; _env = env; } @@ -32,7 +37,13 @@ public async Task Token(TokenRequest req, CancellationToken ct) var identity = await _discord.ExchangeCodeAsync(req.Code, ct); if (identity is null) return Problem(AuthError.DiscordExchangeFailed); - var token = _jwt.Issue(identity.Id, identity.Name); + // The bot's widget sync picks flagged users up. Users who aren't linked yet get flagged from the + // session's widget claim in POST /link. + if (identity.WidgetAuthorized) + await _db.Users.Where(x => x.DiscordId == identity.Id && !x.WidgetAuthorized) + .ExecuteUpdateAsync(s => s.SetProperty(x => x.WidgetAuthorized, true), ct); + + var token = _jwt.Issue(identity.Id, identity.Name, identity.WidgetAuthorized); return Ok(new TokenResponse(identity.AccessToken, token, new AuthUserDto(identity.Id.ToString(), identity.Name, identity.Avatar))); } diff --git a/OpenShock.Activity.Api/Controllers/UserController.cs b/OpenShock.Activity.Api/Controllers/UserController.cs index bb5b00c..035bf03 100644 --- a/OpenShock.Activity.Api/Controllers/UserController.cs +++ b/OpenShock.Activity.Api/Controllers/UserController.cs @@ -4,6 +4,7 @@ using Microsoft.EntityFrameworkCore; using OpenShock.Activity.Api.Problems; using OpenShock.Activity.Api.Realtime; +using OpenShock.Activity.Api.Auth; using OpenShock.DiscordBot.OpenShockDiscordDb; using OpenShock.SDK.CSharp; using OpenShock.SDK.CSharp.Models; @@ -64,7 +65,8 @@ public async Task Link(LinkRequest req, CancellationToken ct) DiscordId = DiscordId, OpenshockId = self.Id, ApiKey = req.ApiToken, - ApiServer = serverUri.ToString() + ApiServer = serverUri.ToString(), + WidgetAuthorized = User.HasWidgetGrant() }); } else @@ -72,6 +74,7 @@ public async Task Link(LinkRequest req, CancellationToken ct) existing.OpenshockId = self.Id; existing.ApiKey = req.ApiToken; existing.ApiServer = serverUri.ToString(); + existing.WidgetAuthorized |= User.HasWidgetGrant(); } await _db.SaveChangesAsync(ct); diff --git a/OpenShock.Activity.Api/Dockerfile b/OpenShock.Activity.Api/Dockerfile index d724fc8..bb02685 100644 --- a/OpenShock.Activity.Api/Dockerfile +++ b/OpenShock.Activity.Api/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine@sha256:620e765fe18186c08399f7aa978f79f04b6bbf0ee1b3b8a91e2d5c9619e59da1 AS build +FROM mcr.microsoft.com/dotnet/sdk:11.0-alpine@sha256:52556c0fb9d0f609ae9aeab9efeeba96f4acc2f7038f7696f2235ccbdbb8e290 AS build WORKDIR /src # Copy only project files first for layer-cached restore. @@ -13,7 +13,7 @@ COPY OpenShock.Activity.Api/ ./OpenShock.Activity.Api/ RUN dotnet publish OpenShock.Activity.Api/OpenShock.Activity.Api.csproj -c Release -o /app --no-restore -FROM mcr.microsoft.com/dotnet/aspnet:10.0-alpine@sha256:c4b29bf368004ad9076c1ab9bc91fb373561e3905b4345637e14e8b8c57e3be8 AS final-api +FROM mcr.microsoft.com/dotnet/aspnet:11.0-alpine@sha256:d39b72ad1534fa0faf52b488bffb0762df7ba269d120f0338713d4dda2a41bf5 AS final-api WORKDIR /app RUN apk add --no-cache openssl diff --git a/OpenShock.DiscordBot.Shared/Migrations/20261011154810_AddWidgetAuthorized.Designer.cs b/OpenShock.DiscordBot.Shared/Migrations/20261011154810_AddWidgetAuthorized.Designer.cs new file mode 100644 index 0000000..149c021 --- /dev/null +++ b/OpenShock.DiscordBot.Shared/Migrations/20261011154810_AddWidgetAuthorized.Designer.cs @@ -0,0 +1,354 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; +using OpenShock.DiscordBot.OpenShockDiscordDb; + +#nullable disable + +namespace OpenShock.DiscordBot.Migrations +{ + [DbContext(typeof(OpenShockDiscordContext))] + [Migration("20261011154810_AddWidgetAuthorized")] + partial class AddWidgetAuthorized + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "10.0.10") + .HasAnnotation("Relational:MaxIdentifierLength", 63); + + NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.BotAdmin", b => + { + b.Property("DiscordId") + .ValueGeneratedOnAdd() + .HasColumnType("numeric(20,0)") + .HasColumnName("discord_id"); + + b.Property("CreatedOn") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_on") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.Property("IsRemovable") + .HasColumnType("boolean") + .HasColumnName("is_removable"); + + b.HasKey("DiscordId") + .HasName("administrators_pkey"); + + b.ToTable("administrators", (string)null); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.ProfanityRule", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("AddedByUserId") + .HasColumnType("numeric(20,0)") + .HasColumnName("added_by_user_id"); + + b.Property("Category") + .HasMaxLength(32) + .HasColumnType("character varying(32)") + .HasColumnName("category"); + + b.Property("Comment") + .HasMaxLength(512) + .HasColumnType("character varying(512)") + .HasColumnName("comment"); + + b.Property("CreatedAt") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_at") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.Property("IsActive") + .ValueGeneratedOnAdd() + .HasColumnType("boolean") + .HasDefaultValue(true) + .HasColumnName("is_active"); + + b.Property("LanguageCode") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("character varying(16)") + .HasColumnName("language_code"); + + b.Property("MatchWholeWord") + .ValueGeneratedOnAdd() + .HasColumnType("boolean") + .HasDefaultValue(true) + .HasColumnName("match_whole_word"); + + b.Property("SeverityScore") + .HasColumnType("real") + .HasColumnName("severity_score"); + + b.Property("Trigger") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("character varying(128)") + .HasColumnName("trigger"); + + b.Property("ValidationRegex") + .HasMaxLength(512) + .HasColumnType("character varying(512)") + .HasColumnName("validation_regex"); + + b.HasKey("Id") + .HasName("profanity_rules_pkey"); + + b.ToTable("profanity_rules", (string)null); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.ProfanitySuggestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(512) + .HasColumnType("character varying(512)") + .HasColumnName("comment"); + + b.Property("LanguageCode") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("character varying(16)") + .HasColumnName("language_code"); + + b.Property("SuggestedAt") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("suggested_at") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.Property("SuggestedByUserId") + .HasColumnType("numeric(20,0)") + .HasColumnName("suggested_by_user_id"); + + b.Property("Trigger") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("character varying(128)") + .HasColumnName("trigger"); + + b.HasKey("Id") + .HasName("profanity_suggestions_pkey"); + + b.ToTable("profanity_suggestions", (string)null); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.RejectedProfanitySuggestion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); + + b.Property("CreatedAt") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_at") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.Property("LanguageCode") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("character varying(16)") + .HasColumnName("language_code"); + + b.Property("Reason") + .IsRequired() + .HasMaxLength(512) + .HasColumnType("character varying(512)") + .HasColumnName("reason"); + + b.Property("SuggestedByUserId") + .HasColumnType("numeric(20,0)") + .HasColumnName("suggested_by_user_id"); + + b.Property("Trigger") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("character varying(128)") + .HasColumnName("trigger"); + + b.HasKey("Id") + .HasName("rejected_profanity_suggestions_pkey"); + + b.ToTable("rejected_profanity_suggestions", (string)null); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.User", b => + { + b.Property("DiscordId") + .ValueGeneratedOnAdd() + .HasColumnType("numeric(20,0)") + .HasColumnName("discord_id"); + + b.Property("AllowRoomShocks") + .ValueGeneratedOnAdd() + .HasColumnType("boolean") + .HasColumnName("allow_room_shocks") + .HasDefaultValueSql("false"); + + b.Property("ApiKey") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("character varying(256)") + .HasColumnName("api_key"); + + b.Property("ApiServer") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("character varying(256)") + .HasColumnName("api_server"); + + b.Property("CreatedOn") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_on") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.Property("OpenshockId") + .HasColumnType("uuid") + .HasColumnName("openshock_id"); + + b.Property("ProfanityShocking") + .ValueGeneratedOnAdd() + .HasColumnType("boolean") + .HasColumnName("profanity_shocking") + .HasDefaultValueSql("false"); + + b.Property("RoomMaxDurationMs") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasDefaultValue(3000) + .HasColumnName("room_max_duration_ms"); + + b.Property("RoomMaxIntensity") + .ValueGeneratedOnAdd() + .HasColumnType("smallint") + .HasDefaultValue((byte)30) + .HasColumnName("room_max_intensity"); + + b.Property("WidgetAuthorized") + .ValueGeneratedOnAdd() + .HasColumnType("boolean") + .HasColumnName("widget_authorized") + .HasDefaultValueSql("false"); + + b.HasKey("DiscordId") + .HasName("users_pkey"); + + b.HasIndex(new[] { "OpenshockId" }, "users_openshock_id") + .IsUnique() + .HasAnnotation("Npgsql:StorageParameter:deduplicate_items", "true"); + + b.ToTable("users", (string)null); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.UsersFriendwhitelist", b => + { + b.Property("User") + .HasColumnType("numeric(20,0)") + .HasColumnName("user"); + + b.Property("WhitelistedFriend") + .HasColumnType("numeric(20,0)") + .HasColumnName("whitelisted_friend"); + + b.Property("CreatedOn") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_on") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.HasKey("User", "WhitelistedFriend") + .HasName("users_friendwhitelist_pkey"); + + b.HasIndex(new[] { "WhitelistedFriend" }, "friend_id") + .HasAnnotation("Npgsql:StorageParameter:deduplicate_items", "true"); + + b.ToTable("users_friendwhitelist", (string)null); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.UsersShocker", b => + { + b.Property("User") + .HasColumnType("numeric(20,0)") + .HasColumnName("user"); + + b.Property("ShockerId") + .HasColumnType("uuid") + .HasColumnName("shocker_id"); + + b.Property("CreatedAt") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_at") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.HasKey("User", "ShockerId") + .HasName("users_shockers_pkey"); + + b.ToTable("users_shockers", (string)null); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.UsersFriendwhitelist", b => + { + b.HasOne("OpenShock.DiscordBot.OpenShockDiscordDb.User", "UserNavigation") + .WithMany("UsersFriendwhitelists") + .HasForeignKey("User") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_user"); + + b.Navigation("UserNavigation"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.UsersShocker", b => + { + b.HasOne("OpenShock.DiscordBot.OpenShockDiscordDb.User", "UserNavigation") + .WithMany("UsersShockers") + .HasForeignKey("User") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_user"); + + b.Navigation("UserNavigation"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.User", b => + { + b.Navigation("UsersFriendwhitelists"); + + b.Navigation("UsersShockers"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/OpenShock.DiscordBot.Shared/Migrations/20261011154810_AddWidgetAuthorized.cs b/OpenShock.DiscordBot.Shared/Migrations/20261011154810_AddWidgetAuthorized.cs new file mode 100644 index 0000000..7c0a5a9 --- /dev/null +++ b/OpenShock.DiscordBot.Shared/Migrations/20261011154810_AddWidgetAuthorized.cs @@ -0,0 +1,29 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace OpenShock.DiscordBot.Migrations +{ + /// + public partial class AddWidgetAuthorized : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "widget_authorized", + table: "users", + type: "boolean", + nullable: false, + defaultValueSql: "false"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "widget_authorized", + table: "users"); + } + } +} diff --git a/OpenShock.DiscordBot.Shared/Migrations/20261128191043_AddWidgetIdentities.Designer.cs b/OpenShock.DiscordBot.Shared/Migrations/20261128191043_AddWidgetIdentities.Designer.cs new file mode 100644 index 0000000..08f14eb --- /dev/null +++ b/OpenShock.DiscordBot.Shared/Migrations/20261128191043_AddWidgetIdentities.Designer.cs @@ -0,0 +1,386 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; +using OpenShock.DiscordBot.OpenShockDiscordDb; + +#nullable disable + +namespace OpenShock.DiscordBot.Migrations; + +[DbContext(typeof(OpenShockDiscordContext))] +[Migration("20261128191043_AddWidgetIdentities")] +partial class _20261128191043_AddWidgetIdentities +{ + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "11.0.0") + .HasAnnotation("Relational:MaxIdentifierLength", 63); + + NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.BotAdmin", b => + { + b.Property("DiscordId") + .ValueGeneratedOnAdd() + .HasColumnType("numeric(20,0)") + .HasColumnName("discord_id"); + + b.Property("CreatedOn") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_on") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.Property("IsRemovable") + .HasColumnType("boolean") + .HasColumnName("is_removable"); + + b.HasKey("DiscordId") + .HasName("administrators_pkey"); + + b.ToTable("administrators"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.ProfanityRule", b => + { + var id = b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(id); + + b.Property("AddedByUserId") + .HasColumnType("numeric(20,0)") + .HasColumnName("added_by_user_id"); + + b.Property("Category") + .HasMaxLength(32) + .HasColumnType("character varying(32)") + .HasColumnName("category"); + + b.Property("Comment") + .HasMaxLength(512) + .HasColumnType("character varying(512)") + .HasColumnName("comment"); + + b.Property("CreatedAt") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_at") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.Property("IsActive") + .ValueGeneratedOnAdd() + .HasColumnType("boolean") + .HasDefaultValue(true) + .HasColumnName("is_active"); + + b.Property("LanguageCode") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("character varying(16)") + .HasColumnName("language_code"); + + b.Property("MatchWholeWord") + .ValueGeneratedOnAdd() + .HasColumnType("boolean") + .HasDefaultValue(true) + .HasColumnName("match_whole_word"); + + b.Property("SeverityScore") + .HasColumnType("real") + .HasColumnName("severity_score"); + + b.Property("Trigger") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("character varying(128)") + .HasColumnName("trigger"); + + b.Property("ValidationRegex") + .HasMaxLength(512) + .HasColumnType("character varying(512)") + .HasColumnName("validation_regex"); + + b.HasKey("Id") + .HasName("profanity_rules_pkey"); + + b.ToTable("profanity_rules"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.ProfanitySuggestion", b => + { + var id = b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(id); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(512) + .HasColumnType("character varying(512)") + .HasColumnName("comment"); + + b.Property("LanguageCode") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("character varying(16)") + .HasColumnName("language_code"); + + b.Property("SuggestedAt") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("suggested_at") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.Property("SuggestedByUserId") + .HasColumnType("numeric(20,0)") + .HasColumnName("suggested_by_user_id"); + + b.Property("Trigger") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("character varying(128)") + .HasColumnName("trigger"); + + b.HasKey("Id") + .HasName("profanity_suggestions_pkey"); + + b.ToTable("profanity_suggestions"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.RejectedProfanitySuggestion", b => + { + var id = b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(id); + + b.Property("CreatedAt") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_at") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.Property("LanguageCode") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("character varying(16)") + .HasColumnName("language_code"); + + b.Property("Reason") + .IsRequired() + .HasMaxLength(512) + .HasColumnType("character varying(512)") + .HasColumnName("reason"); + + b.Property("SuggestedByUserId") + .HasColumnType("numeric(20,0)") + .HasColumnName("suggested_by_user_id"); + + b.Property("Trigger") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("character varying(128)") + .HasColumnName("trigger"); + + b.HasKey("Id") + .HasName("rejected_profanity_suggestions_pkey"); + + b.ToTable("rejected_profanity_suggestions"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.User", b => + { + b.Property("DiscordId") + .ValueGeneratedOnAdd() + .HasColumnType("numeric(20,0)") + .HasColumnName("discord_id"); + + b.Property("AllowRoomShocks") + .ValueGeneratedOnAdd() + .HasColumnType("boolean") + .HasColumnName("allow_room_shocks") + .HasDefaultValueSql("false"); + + b.Property("ApiKey") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("character varying(256)") + .HasColumnName("api_key"); + + b.Property("ApiServer") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("character varying(256)") + .HasColumnName("api_server"); + + b.Property("CreatedOn") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_on") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.Property("OpenshockId") + .HasColumnType("uuid") + .HasColumnName("openshock_id"); + + b.Property("ProfanityShocking") + .ValueGeneratedOnAdd() + .HasColumnType("boolean") + .HasColumnName("profanity_shocking") + .HasDefaultValueSql("false"); + + b.Property("RoomMaxDurationMs") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasDefaultValue(3000) + .HasColumnName("room_max_duration_ms"); + + b.Property("RoomMaxIntensity") + .ValueGeneratedOnAdd() + .HasColumnType("smallint") + .HasDefaultValue((byte)30) + .HasColumnName("room_max_intensity"); + + b.Property("WidgetAuthorized") + .ValueGeneratedOnAdd() + .HasColumnType("boolean") + .HasColumnName("widget_authorized") + .HasDefaultValueSql("false"); + + b.HasKey("DiscordId") + .HasName("users_pkey"); + + b.HasIndex(new[] { "OpenshockId" }, "users_openshock_id") + .IsUnique() + .HasAnnotation("Npgsql:StorageParameter:deduplicate_items", "true"); + + b.ToTable("users"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.UsersFriendwhitelist", b => + { + b.Property("User") + .HasColumnType("numeric(20,0)") + .HasColumnName("user"); + + b.Property("WhitelistedFriend") + .HasColumnType("numeric(20,0)") + .HasColumnName("whitelisted_friend"); + + b.Property("CreatedOn") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_on") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.HasKey("User", "WhitelistedFriend") + .HasName("users_friendwhitelist_pkey"); + + b.HasIndex(new[] { "WhitelistedFriend" }, "friend_id") + .HasAnnotation("Npgsql:StorageParameter:deduplicate_items", "true"); + + b.ToTable("users_friendwhitelist"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.UsersShocker", b => + { + b.Property("User") + .HasColumnType("numeric(20,0)") + .HasColumnName("user"); + + b.Property("ShockerId") + .HasColumnType("uuid") + .HasColumnName("shocker_id"); + + b.Property("CreatedAt") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_at") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.HasKey("User", "ShockerId") + .HasName("users_shockers_pkey"); + + b.ToTable("users_shockers"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.WidgetIdentity", b => + { + b.Property("DiscordId") + .ValueGeneratedOnAdd() + .HasColumnType("numeric(20,0)") + .HasColumnName("discord_id"); + + b.Property("CreatedAt") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_at") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.Property("Data") + .HasColumnType("text") + .HasColumnName("data"); + + b.Property("OpenShockId") + .HasColumnType("uuid") + .HasColumnName("openshock_id"); + + b.Property("UpdatedAt") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("updated_at") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.HasKey("DiscordId") + .HasName("widget_identities_pkey"); + + b.ToTable("widget_identities"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.UsersFriendwhitelist", b => + { + b.HasOne("OpenShock.DiscordBot.OpenShockDiscordDb.User", "UserNavigation") + .WithMany("UsersFriendwhitelists") + .HasForeignKey("User") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_user"); + + b.Navigation("UserNavigation"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.UsersShocker", b => + { + b.HasOne("OpenShock.DiscordBot.OpenShockDiscordDb.User", "UserNavigation") + .WithMany("UsersShockers") + .HasForeignKey("User") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_user"); + + b.Navigation("UserNavigation"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.User", b => + { + b.Navigation("UsersFriendwhitelists"); + + b.Navigation("UsersShockers"); + }); +#pragma warning restore 612, 618 + } +} diff --git a/OpenShock.DiscordBot.Shared/Migrations/20261128191043_AddWidgetIdentities.cs b/OpenShock.DiscordBot.Shared/Migrations/20261128191043_AddWidgetIdentities.cs new file mode 100644 index 0000000..82c62be --- /dev/null +++ b/OpenShock.DiscordBot.Shared/Migrations/20261128191043_AddWidgetIdentities.cs @@ -0,0 +1,36 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace OpenShock.DiscordBot.Migrations; + +/// +public partial class _20261128191043_AddWidgetIdentities : Migration +{ + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "widget_identities", + columns: table => new + { + discord_id = table.Column(type: "numeric(20,0)", nullable: false), + openshock_id = table.Column(type: "uuid", nullable: false), + data = table.Column(type: "text", nullable: true), + created_at = table.Column(type: "timestamp with time zone", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP"), + updated_at = table.Column(type: "timestamp with time zone", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP") + }, + constraints: table => + { + table.PrimaryKey("widget_identities_pkey", x => x.discord_id); + }); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "widget_identities"); + } +} diff --git a/OpenShock.DiscordBot.Shared/Migrations/OpenShockDiscordContextModelSnapshot.cs b/OpenShock.DiscordBot.Shared/Migrations/OpenShockDiscordContextModelSnapshot.cs index 328f66a..c90500f 100644 --- a/OpenShock.DiscordBot.Shared/Migrations/OpenShockDiscordContextModelSnapshot.cs +++ b/OpenShock.DiscordBot.Shared/Migrations/OpenShockDiscordContextModelSnapshot.cs @@ -1,4 +1,4 @@ -// +// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; @@ -8,338 +8,381 @@ #nullable disable -namespace OpenShock.DiscordBot.Migrations +namespace OpenShock.DiscordBot.Migrations; + +[DbContext(typeof(OpenShockDiscordContext))] +partial class OpenShockDiscordContextModelSnapshot : ModelSnapshot { - [DbContext(typeof(OpenShockDiscordContext))] - partial class OpenShockDiscordContextModelSnapshot : ModelSnapshot + // If you encounter a merge conflict in the line below, it means you need to + // discard one of the migration branches and recreate its migrations on top of + // the other branch. See https://aka.ms/efcore-docs-migrations-conflicts for more info. + public override string LastMigrationId => "20261128191043_AddWidgetIdentities"; + + protected override void BuildModel(ModelBuilder modelBuilder) { - protected override void BuildModel(ModelBuilder modelBuilder) - { #pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "10.0.5") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - - modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.BotAdmin", b => - { - b.Property("DiscordId") - .ValueGeneratedOnAdd() - .HasColumnType("numeric(20,0)") - .HasColumnName("discord_id"); - - b.Property("CreatedOn") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("created_on") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("IsRemovable") - .HasColumnType("boolean") - .HasColumnName("is_removable"); - - b.HasKey("DiscordId") - .HasName("administrators_pkey"); - - b.ToTable("administrators", (string)null); - }); - - modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.ProfanityRule", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasColumnName("id"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("AddedByUserId") - .HasColumnType("numeric(20,0)") - .HasColumnName("added_by_user_id"); - - b.Property("Category") - .HasMaxLength(32) - .HasColumnType("character varying(32)") - .HasColumnName("category"); - - b.Property("Comment") - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("comment"); - - b.Property("CreatedAt") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("created_at") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("IsActive") - .ValueGeneratedOnAdd() - .HasColumnType("boolean") - .HasDefaultValue(true) - .HasColumnName("is_active"); - - b.Property("LanguageCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("character varying(16)") - .HasColumnName("language_code"); - - b.Property("MatchWholeWord") - .ValueGeneratedOnAdd() - .HasColumnType("boolean") - .HasDefaultValue(true) - .HasColumnName("match_whole_word"); - - b.Property("SeverityScore") - .HasColumnType("real") - .HasColumnName("severity_score"); - - b.Property("Trigger") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("trigger"); - - b.Property("ValidationRegex") - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("validation_regex"); - - b.HasKey("Id") - .HasName("profanity_rules_pkey"); - - b.ToTable("profanity_rules", (string)null); - }); - - modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.ProfanitySuggestion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasColumnName("id"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("Comment") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("comment"); - - b.Property("LanguageCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("character varying(16)") - .HasColumnName("language_code"); - - b.Property("SuggestedAt") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("suggested_at") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("SuggestedByUserId") - .HasColumnType("numeric(20,0)") - .HasColumnName("suggested_by_user_id"); - - b.Property("Trigger") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("trigger"); - - b.HasKey("Id") - .HasName("profanity_suggestions_pkey"); - - b.ToTable("profanity_suggestions", (string)null); - }); - - modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.RejectedProfanitySuggestion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasColumnName("id"); - - NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id")); - - b.Property("CreatedAt") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("created_at") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("LanguageCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("character varying(16)") - .HasColumnName("language_code"); - - b.Property("Reason") - .IsRequired() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("reason"); - - b.Property("SuggestedByUserId") - .HasColumnType("numeric(20,0)") - .HasColumnName("suggested_by_user_id"); - - b.Property("Trigger") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("trigger"); - - b.HasKey("Id") - .HasName("rejected_profanity_suggestions_pkey"); - - b.ToTable("rejected_profanity_suggestions", (string)null); - }); - - modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.User", b => - { - b.Property("DiscordId") - .ValueGeneratedOnAdd() - .HasColumnType("numeric(20,0)") - .HasColumnName("discord_id"); - - b.Property("AllowRoomShocks") - .ValueGeneratedOnAdd() - .HasColumnType("boolean") - .HasColumnName("allow_room_shocks") - .HasDefaultValueSql("false"); - - b.Property("ApiKey") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("api_key"); - - b.Property("ApiServer") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("character varying(256)") - .HasColumnName("api_server"); - - b.Property("CreatedOn") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("created_on") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("OpenshockId") - .HasColumnType("uuid") - .HasColumnName("openshock_id"); - - b.Property("ProfanityShocking") - .ValueGeneratedOnAdd() - .HasColumnType("boolean") - .HasColumnName("profanity_shocking") - .HasDefaultValueSql("false"); - - b.Property("RoomMaxDurationMs") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasDefaultValue(3000) - .HasColumnName("room_max_duration_ms"); - - b.Property("RoomMaxIntensity") - .ValueGeneratedOnAdd() - .HasColumnType("smallint") - .HasDefaultValue((byte)30) - .HasColumnName("room_max_intensity"); - - b.HasKey("DiscordId") - .HasName("users_pkey"); - - b.HasIndex(new[] { "OpenshockId" }, "users_openshock_id") - .IsUnique() - .HasAnnotation("Npgsql:StorageParameter:deduplicate_items", "true"); - - b.ToTable("users", (string)null); - }); - - modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.UsersFriendwhitelist", b => - { - b.Property("User") - .HasColumnType("numeric(20,0)") - .HasColumnName("user"); - - b.Property("WhitelistedFriend") - .HasColumnType("numeric(20,0)") - .HasColumnName("whitelisted_friend"); - - b.Property("CreatedOn") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("created_on") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.HasKey("User", "WhitelistedFriend") - .HasName("users_friendwhitelist_pkey"); - - b.HasIndex(new[] { "WhitelistedFriend" }, "friend_id") - .HasAnnotation("Npgsql:StorageParameter:deduplicate_items", "true"); - - b.ToTable("users_friendwhitelist", (string)null); - }); - - modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.UsersShocker", b => - { - b.Property("User") - .HasColumnType("numeric(20,0)") - .HasColumnName("user"); - - b.Property("ShockerId") - .HasColumnType("uuid") - .HasColumnName("shocker_id"); - - b.Property("CreatedAt") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("created_at") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.HasKey("User", "ShockerId") - .HasName("users_shockers_pkey"); - - b.ToTable("users_shockers", (string)null); - }); - - modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.UsersFriendwhitelist", b => - { - b.HasOne("OpenShock.DiscordBot.OpenShockDiscordDb.User", "UserNavigation") - .WithMany("UsersFriendwhitelists") - .HasForeignKey("User") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired() - .HasConstraintName("fk_user"); - - b.Navigation("UserNavigation"); - }); - - modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.UsersShocker", b => - { - b.HasOne("OpenShock.DiscordBot.OpenShockDiscordDb.User", "UserNavigation") - .WithMany("UsersShockers") - .HasForeignKey("User") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired() - .HasConstraintName("fk_user"); - - b.Navigation("UserNavigation"); - }); - - modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.User", b => - { - b.Navigation("UsersFriendwhitelists"); - - b.Navigation("UsersShockers"); - }); + modelBuilder + .HasAnnotation("ProductVersion", "11.0.0") + .HasAnnotation("Relational:MaxIdentifierLength", 63); + + NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.BotAdmin", b => + { + b.Property("DiscordId") + .ValueGeneratedOnAdd() + .HasColumnType("numeric(20,0)") + .HasColumnName("discord_id"); + + b.Property("CreatedOn") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_on") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.Property("IsRemovable") + .HasColumnType("boolean") + .HasColumnName("is_removable"); + + b.HasKey("DiscordId") + .HasName("administrators_pkey"); + + b.ToTable("administrators"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.ProfanityRule", b => + { + var id = b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(id); + + b.Property("AddedByUserId") + .HasColumnType("numeric(20,0)") + .HasColumnName("added_by_user_id"); + + b.Property("Category") + .HasMaxLength(32) + .HasColumnType("character varying(32)") + .HasColumnName("category"); + + b.Property("Comment") + .HasMaxLength(512) + .HasColumnType("character varying(512)") + .HasColumnName("comment"); + + b.Property("CreatedAt") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_at") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.Property("IsActive") + .ValueGeneratedOnAdd() + .HasColumnType("boolean") + .HasDefaultValue(true) + .HasColumnName("is_active"); + + b.Property("LanguageCode") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("character varying(16)") + .HasColumnName("language_code"); + + b.Property("MatchWholeWord") + .ValueGeneratedOnAdd() + .HasColumnType("boolean") + .HasDefaultValue(true) + .HasColumnName("match_whole_word"); + + b.Property("SeverityScore") + .HasColumnType("real") + .HasColumnName("severity_score"); + + b.Property("Trigger") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("character varying(128)") + .HasColumnName("trigger"); + + b.Property("ValidationRegex") + .HasMaxLength(512) + .HasColumnType("character varying(512)") + .HasColumnName("validation_regex"); + + b.HasKey("Id") + .HasName("profanity_rules_pkey"); + + b.ToTable("profanity_rules"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.ProfanitySuggestion", b => + { + var id = b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(id); + + b.Property("Comment") + .IsRequired() + .HasMaxLength(512) + .HasColumnType("character varying(512)") + .HasColumnName("comment"); + + b.Property("LanguageCode") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("character varying(16)") + .HasColumnName("language_code"); + + b.Property("SuggestedAt") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("suggested_at") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.Property("SuggestedByUserId") + .HasColumnType("numeric(20,0)") + .HasColumnName("suggested_by_user_id"); + + b.Property("Trigger") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("character varying(128)") + .HasColumnName("trigger"); + + b.HasKey("Id") + .HasName("profanity_suggestions_pkey"); + + b.ToTable("profanity_suggestions"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.RejectedProfanitySuggestion", b => + { + var id = b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasColumnName("id"); + + NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(id); + + b.Property("CreatedAt") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_at") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.Property("LanguageCode") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("character varying(16)") + .HasColumnName("language_code"); + + b.Property("Reason") + .IsRequired() + .HasMaxLength(512) + .HasColumnType("character varying(512)") + .HasColumnName("reason"); + + b.Property("SuggestedByUserId") + .HasColumnType("numeric(20,0)") + .HasColumnName("suggested_by_user_id"); + + b.Property("Trigger") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("character varying(128)") + .HasColumnName("trigger"); + + b.HasKey("Id") + .HasName("rejected_profanity_suggestions_pkey"); + + b.ToTable("rejected_profanity_suggestions"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.User", b => + { + b.Property("DiscordId") + .ValueGeneratedOnAdd() + .HasColumnType("numeric(20,0)") + .HasColumnName("discord_id"); + + b.Property("AllowRoomShocks") + .ValueGeneratedOnAdd() + .HasColumnType("boolean") + .HasColumnName("allow_room_shocks") + .HasDefaultValueSql("false"); + + b.Property("ApiKey") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("character varying(256)") + .HasColumnName("api_key"); + + b.Property("ApiServer") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("character varying(256)") + .HasColumnName("api_server"); + + b.Property("CreatedOn") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_on") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.Property("OpenshockId") + .HasColumnType("uuid") + .HasColumnName("openshock_id"); + + b.Property("ProfanityShocking") + .ValueGeneratedOnAdd() + .HasColumnType("boolean") + .HasColumnName("profanity_shocking") + .HasDefaultValueSql("false"); + + b.Property("RoomMaxDurationMs") + .ValueGeneratedOnAdd() + .HasColumnType("integer") + .HasDefaultValue(3000) + .HasColumnName("room_max_duration_ms"); + + b.Property("RoomMaxIntensity") + .ValueGeneratedOnAdd() + .HasColumnType("smallint") + .HasDefaultValue((byte)30) + .HasColumnName("room_max_intensity"); + + b.Property("WidgetAuthorized") + .ValueGeneratedOnAdd() + .HasColumnType("boolean") + .HasColumnName("widget_authorized") + .HasDefaultValueSql("false"); + + b.HasKey("DiscordId") + .HasName("users_pkey"); + + b.HasIndex(new[] { "OpenshockId" }, "users_openshock_id") + .IsUnique() + .HasAnnotation("Npgsql:StorageParameter:deduplicate_items", "true"); + + b.ToTable("users"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.UsersFriendwhitelist", b => + { + b.Property("User") + .HasColumnType("numeric(20,0)") + .HasColumnName("user"); + + b.Property("WhitelistedFriend") + .HasColumnType("numeric(20,0)") + .HasColumnName("whitelisted_friend"); + + b.Property("CreatedOn") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_on") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.HasKey("User", "WhitelistedFriend") + .HasName("users_friendwhitelist_pkey"); + + b.HasIndex(new[] { "WhitelistedFriend" }, "friend_id") + .HasAnnotation("Npgsql:StorageParameter:deduplicate_items", "true"); + + b.ToTable("users_friendwhitelist"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.UsersShocker", b => + { + b.Property("User") + .HasColumnType("numeric(20,0)") + .HasColumnName("user"); + + b.Property("ShockerId") + .HasColumnType("uuid") + .HasColumnName("shocker_id"); + + b.Property("CreatedAt") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_at") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.HasKey("User", "ShockerId") + .HasName("users_shockers_pkey"); + + b.ToTable("users_shockers"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.WidgetIdentity", b => + { + b.Property("DiscordId") + .ValueGeneratedOnAdd() + .HasColumnType("numeric(20,0)") + .HasColumnName("discord_id"); + + b.Property("CreatedAt") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("created_at") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.Property("Data") + .HasColumnType("text") + .HasColumnName("data"); + + b.Property("OpenShockId") + .HasColumnType("uuid") + .HasColumnName("openshock_id"); + + b.Property("UpdatedAt") + .ValueGeneratedOnAdd() + .HasColumnType("timestamp with time zone") + .HasColumnName("updated_at") + .HasDefaultValueSql("CURRENT_TIMESTAMP"); + + b.HasKey("DiscordId") + .HasName("widget_identities_pkey"); + + b.ToTable("widget_identities"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.UsersFriendwhitelist", b => + { + b.HasOne("OpenShock.DiscordBot.OpenShockDiscordDb.User", "UserNavigation") + .WithMany("UsersFriendwhitelists") + .HasForeignKey("User") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_user"); + + b.Navigation("UserNavigation"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.UsersShocker", b => + { + b.HasOne("OpenShock.DiscordBot.OpenShockDiscordDb.User", "UserNavigation") + .WithMany("UsersShockers") + .HasForeignKey("User") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired() + .HasConstraintName("fk_user"); + + b.Navigation("UserNavigation"); + }); + + modelBuilder.Entity("OpenShock.DiscordBot.OpenShockDiscordDb.User", b => + { + b.Navigation("UsersFriendwhitelists"); + + b.Navigation("UsersShockers"); + }); #pragma warning restore 612, 618 - } } } diff --git a/OpenShock.DiscordBot.Shared/OpenShock.DiscordBot.Shared.csproj b/OpenShock.DiscordBot.Shared/OpenShock.DiscordBot.Shared.csproj index 103a5c8..a432202 100644 --- a/OpenShock.DiscordBot.Shared/OpenShock.DiscordBot.Shared.csproj +++ b/OpenShock.DiscordBot.Shared/OpenShock.DiscordBot.Shared.csproj @@ -12,7 +12,6 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - diff --git a/OpenShock.DiscordBot.Shared/OpenShockDiscordDb/OpenShockDiscordContext.cs b/OpenShock.DiscordBot.Shared/OpenShockDiscordDb/OpenShockDiscordContext.cs index 95ac7f0..5db3a35 100644 --- a/OpenShock.DiscordBot.Shared/OpenShockDiscordDb/OpenShockDiscordContext.cs +++ b/OpenShock.DiscordBot.Shared/OpenShockDiscordDb/OpenShockDiscordContext.cs @@ -27,6 +27,8 @@ public OpenShockDiscordContext(DbContextOptions options public virtual DbSet RejectedProfanitySuggestions { get; set; } + public virtual DbSet WidgetIdentities { get; set; } + protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (!optionsBuilder.IsConfigured) @@ -69,6 +71,9 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) entity.Property(e => e.RoomMaxDurationMs) .HasDefaultValue(3000) .HasColumnName("room_max_duration_ms"); + entity.Property(e => e.WidgetAuthorized) + .HasDefaultValueSql("false") + .HasColumnName("widget_authorized"); entity.Property(e => e.OpenshockId).HasColumnName("openshock_id"); }); @@ -233,6 +238,23 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) .HasColumnName("created_at"); }); + modelBuilder.Entity(entity => + { + entity.HasKey(e => e.DiscordId).HasName("widget_identities_pkey"); + + entity.ToTable("widget_identities"); + + entity.Property(e => e.DiscordId).HasColumnName("discord_id"); + entity.Property(e => e.OpenShockId).HasColumnName("openshock_id"); + entity.Property(e => e.Data).HasColumnName("data"); + entity.Property(e => e.CreatedAt) + .HasDefaultValueSql("CURRENT_TIMESTAMP") + .HasColumnName("created_at"); + entity.Property(e => e.UpdatedAt) + .HasDefaultValueSql("CURRENT_TIMESTAMP") + .HasColumnName("updated_at"); + }); + OnModelCreatingPartial(modelBuilder); } diff --git a/OpenShock.DiscordBot.Shared/OpenShockDiscordDb/User.cs b/OpenShock.DiscordBot.Shared/OpenShockDiscordDb/User.cs index 6cbd134..c8d2ed3 100644 --- a/OpenShock.DiscordBot.Shared/OpenShockDiscordDb/User.cs +++ b/OpenShock.DiscordBot.Shared/OpenShockDiscordDb/User.cs @@ -27,6 +27,12 @@ public partial class User /// Upper bound in milliseconds applied to room-consent shocks. public int RoomMaxDurationMs { get; set; } = 3000; + /// + /// True once the user granted the application_identities.write OAuth2 scope (via the Discord + /// Activity), which is required before we may push stats to their Discord profile widget. + /// + public bool WidgetAuthorized { get; set; } + public virtual ICollection UsersFriendwhitelists { get; set; } = new List(); public virtual ICollection UsersShockers { get; set; } = new List(); diff --git a/OpenShock.DiscordBot.Shared/OpenShockDiscordDb/WidgetIdentity.cs b/OpenShock.DiscordBot.Shared/OpenShockDiscordDb/WidgetIdentity.cs new file mode 100644 index 0000000..7d5eef6 --- /dev/null +++ b/OpenShock.DiscordBot.Shared/OpenShockDiscordDb/WidgetIdentity.cs @@ -0,0 +1,20 @@ +namespace OpenShock.DiscordBot.OpenShockDiscordDb; + +/// +/// A Discord Application Identity the bot created by writing a user's profile widget. Deliberately not tied to +/// : it has to outlive the user unlinking, so the bot can still delete the identity afterwards. +/// +public class WidgetIdentity +{ + public ulong DiscordId { get; set; } + + /// The provider issued user id the identity was created with. + public Guid OpenShockId { get; set; } + + /// The widget data last written, null when unknown and the next sync has to write it in full. + public string? Data { get; set; } + + public DateTime CreatedAt { get; set; } + + public DateTime UpdatedAt { get; set; } +} diff --git a/activity/eslint.config.js b/activity/eslint.config.js index 7d48105..1e7f0d5 100644 --- a/activity/eslint.config.js +++ b/activity/eslint.config.js @@ -1,12 +1,14 @@ import { includeIgnoreFile } from '@eslint/compat'; import js from '@eslint/js'; +import { loadConfig } from '@sveltejs/load-config'; import prettier from 'eslint-config-prettier'; import svelte from 'eslint-plugin-svelte'; import { defineConfig } from 'eslint/config'; import globals from 'globals'; import path from 'node:path'; import ts from 'typescript-eslint'; -import svelteConfig from './svelte.config.js'; + +const svelteConfig = (await loadConfig('./', { traverse: false }))?.config; const gitignorePath = path.resolve(import.meta.dirname, '.gitignore'); diff --git a/activity/package.json b/activity/package.json index c5a9edc..0144c3f 100644 --- a/activity/package.json +++ b/activity/package.json @@ -25,11 +25,12 @@ }, "devDependencies": { "@eslint/compat": "^2.1.0", - "@hey-api/openapi-ts": "^0.99.0", "@eslint/js": "^10.0.1", + "@hey-api/openapi-ts": "^0.99.0", "@playwright/test": "^1.61.1", - "@sveltejs/adapter-cloudflare": "^7.2.9", - "@sveltejs/kit": "^2.69.1", + "@sveltejs/adapter-cloudflare": "^9.0.1", + "@sveltejs/kit": "^3.4.1", + "@sveltejs/load-config": "^0.2.2", "@sveltejs/vite-plugin-svelte": "^7.2.0", "@tailwindcss/forms": "^0.5.11", "@tailwindcss/typography": "^0.5.20", @@ -45,8 +46,8 @@ "prettier-plugin-organize-imports": "^4.3.0", "prettier-plugin-svelte": "^4.1.1", "prettier-plugin-tailwindcss": "^0.8.0", - "svelte": "^5.56.4", - "svelte-check": "^4.7.2", + "svelte": "^5.57.2", + "svelte-check": "^4.7.5", "tailwindcss": "^4.3.2", "tw-animate-css": "^1.4.0", "typescript": "^6.0.3", @@ -55,7 +56,7 @@ "vite-plugin-devtools-json": "^1.0.0", "vitest": "^4.1.10", "vitest-browser-svelte": "^2.2.0", - "wrangler": "^4.115.0" + "wrangler": "^4.169.0" }, "dependencies": { "@discord/embedded-app-sdk": "^2.5.0", @@ -67,5 +68,9 @@ "svelte-sonner": "^1.1.1", "tailwind-merge": "^3.6.0", "tailwind-variants": "^3.2.2" + }, + "imports": { + "#lib": "./src/lib/index.js", + "#lib/*": "./src/lib/*" } } diff --git a/activity/pnpm-lock.yaml b/activity/pnpm-lock.yaml index 6e35053..f915a44 100644 --- a/activity/pnpm-lock.yaml +++ b/activity/pnpm-lock.yaml @@ -18,7 +18,7 @@ importers: version: 2.5.0 '@lucide/svelte': specifier: ^1.23.0 - version: 1.23.0(svelte@5.56.4(@typescript-eslint/types@8.63.0)) + version: 1.23.0(svelte@5.59.2(@typescript-eslint/types@8.63.0)) '@microsoft/signalr': specifier: ^10.0.0 version: 10.0.0 @@ -27,13 +27,13 @@ importers: version: link:packages/svelte-core bits-ui: specifier: 2.18.1 - version: 2.18.1(@internationalized/date@3.12.2)(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0)) + version: 2.18.1(@internationalized/date@3.12.2)(@sveltejs/kit@3.4.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.59.2(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0)) clsx: specifier: ^2.1.1 version: 2.1.1 svelte-sonner: specifier: ^1.1.1 - version: 1.1.1(svelte@5.56.4(@typescript-eslint/types@8.63.0)) + version: 1.1.1(svelte@5.59.2(@typescript-eslint/types@8.63.0)) tailwind-merge: specifier: ^3.6.0 version: 3.6.0 @@ -54,14 +54,17 @@ importers: specifier: ^1.61.1 version: 1.61.1 '@sveltejs/adapter-cloudflare': - specifier: ^7.2.9 - version: 7.2.9(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(wrangler@4.115.0) + specifier: ^9.0.1 + version: 9.0.1(@sveltejs/kit@3.4.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.59.2(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(@types/node@26.1.0)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0))(workerd@1.20261127.1)(wrangler@4.169.0(@types/node@26.1.0)(vitest@4.1.10)) '@sveltejs/kit': - specifier: ^2.69.1 - version: 2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + specifier: ^3.4.1 + version: 3.4.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.59.2(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) + '@sveltejs/load-config': + specifier: ^0.2.2 + version: 0.2.3 '@sveltejs/vite-plugin-svelte': specifier: ^7.2.0 - version: 7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + version: 7.2.0(svelte@5.59.2(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) '@tailwindcss/forms': specifier: ^0.5.11 version: 0.5.11(tailwindcss@4.3.2) @@ -70,13 +73,13 @@ importers: version: 0.5.20(tailwindcss@4.3.2) '@tailwindcss/vite': specifier: ^4.3.2 - version: 4.3.2(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + version: 4.3.2(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) '@types/node': specifier: ^26.1.0 version: 26.1.0 '@vitest/browser-playwright': specifier: ^4.1.10 - version: 4.1.10(playwright@1.61.1)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0))(vitest@4.1.10) + version: 4.1.10(playwright@1.61.1)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0))(vitest@4.1.10) eslint: specifier: ^10.6.0 version: 10.6.0(jiti@2.7.0) @@ -85,7 +88,7 @@ importers: version: 10.1.8(eslint@10.6.0(jiti@2.7.0)) eslint-plugin-svelte: specifier: ^3.20.0 - version: 3.20.0(eslint@10.6.0(jiti@2.7.0))(svelte@5.56.4(@typescript-eslint/types@8.63.0)) + version: 3.20.0(eslint@10.6.0(jiti@2.7.0))(svelte@5.59.2(@typescript-eslint/types@8.63.0)) globals: specifier: ^17.7.0 version: 17.7.0 @@ -100,16 +103,16 @@ importers: version: 4.3.0(prettier@3.9.4)(typescript@6.0.3) prettier-plugin-svelte: specifier: ^4.1.1 - version: 4.1.1(prettier@3.9.4)(svelte@5.56.4(@typescript-eslint/types@8.63.0)) + version: 4.1.1(prettier@3.9.4)(svelte@5.59.2(@typescript-eslint/types@8.63.0)) prettier-plugin-tailwindcss: specifier: ^0.8.0 - version: 0.8.0(prettier-plugin-organize-imports@4.3.0(prettier@3.9.4)(typescript@6.0.3))(prettier-plugin-svelte@4.1.1(prettier@3.9.4)(svelte@5.56.4(@typescript-eslint/types@8.63.0)))(prettier@3.9.4) + version: 0.8.0(prettier-plugin-organize-imports@4.3.0(prettier@3.9.4)(typescript@6.0.3))(prettier-plugin-svelte@4.1.1(prettier@3.9.4)(svelte@5.59.2(@typescript-eslint/types@8.63.0)))(prettier@3.9.4) svelte: - specifier: ^5.56.4 - version: 5.56.4(@typescript-eslint/types@8.63.0) + specifier: ^5.57.2 + version: 5.59.2(@typescript-eslint/types@8.63.0) svelte-check: - specifier: ^4.7.2 - version: 4.7.2(picomatch@4.0.5)(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3) + specifier: ^4.7.5 + version: 4.7.8(picomatch@4.0.5)(svelte@5.59.2(@typescript-eslint/types@8.63.0))(typescript@6.0.3) tailwindcss: specifier: ^4.3.2 version: 4.3.2 @@ -124,19 +127,19 @@ importers: version: 8.63.0(eslint@10.6.0(jiti@2.7.0))(typescript@6.0.3) vite: specifier: ^8.1.3 - version: 8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0) + version: 8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0) vite-plugin-devtools-json: specifier: ^1.0.0 - version: 1.0.0(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + version: 1.0.0(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) vitest: specifier: ^4.1.10 - version: 4.1.10(@types/node@26.1.0)(@vitest/browser-playwright@4.1.10)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + version: 4.1.10(@types/node@26.1.0)(@vitest/browser-playwright@4.1.10)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) vitest-browser-svelte: specifier: ^2.2.0 - version: 2.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vitest@4.1.10) + version: 2.2.0(svelte@5.59.2(@typescript-eslint/types@8.63.0))(vitest@4.1.10) wrangler: - specifier: ^4.115.0 - version: 4.115.0 + specifier: ^4.169.0 + version: 4.169.0(@types/node@26.1.0)(vitest@4.1.10) packages/svelte-core: devDependencies: @@ -151,31 +154,31 @@ importers: version: 1.23.0(svelte@5.56.4(@typescript-eslint/types@8.63.0)) '@sveltejs/adapter-auto': specifier: ^7.0.1 - version: 7.0.1(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0))) + version: 7.0.1(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0))) '@sveltejs/kit': specifier: ^2.68.0 - version: 2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + version: 2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) '@sveltejs/package': specifier: ^2.5.8 version: 2.5.8(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3) '@sveltejs/vite-plugin-svelte': specifier: ^7.1.2 - version: 7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + version: 7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) '@tailwindcss/vite': specifier: ^4.3.1 - version: 4.3.2(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + version: 4.3.2(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) '@tanstack/table-core': specifier: ^8.21.3 version: 8.21.3 bits-ui: specifier: 2.18.1 - version: 2.18.1(@internationalized/date@3.12.2)(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0)) + version: 2.18.1(@internationalized/date@3.12.2)(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0)) clsx: specifier: ^2.1.1 version: 2.1.1 formsnap: specifier: ^2.0.1 - version: 2.0.1(svelte@5.56.4(@typescript-eslint/types@8.63.0))(sveltekit-superforms@2.30.2(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(@types/json-schema@7.0.15)(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)) + version: 2.0.1(svelte@5.56.4(@typescript-eslint/types@8.63.0))(sveltekit-superforms@2.30.2(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(@types/json-schema@7.0.15)(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)) prettier: specifier: ^3.8.5 version: 3.9.4 @@ -202,7 +205,7 @@ importers: version: 1.1.1(svelte@5.56.4(@typescript-eslint/types@8.63.0)) sveltekit-superforms: specifier: ^2.30.1 - version: 2.30.2(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(@types/json-schema@7.0.15)(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3) + version: 2.30.2(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(@types/json-schema@7.0.15)(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3) tailwind-merge: specifier: ^3.6.0 version: 3.6.0 @@ -226,10 +229,10 @@ importers: version: 1.0.0-next.7(svelte@5.56.4(@typescript-eslint/types@8.63.0)) vite: specifier: ^8.1.0 - version: 8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0) + version: 8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0) vitest: specifier: ^4.1.9 - version: 4.1.10(@types/node@26.1.0)(@vitest/browser-playwright@4.1.10)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + version: 4.1.10(@types/node@26.1.0)(@vitest/browser-playwright@4.1.10)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) packages: @@ -301,12 +304,12 @@ packages: '@changesets/write@0.4.0': resolution: {integrity: sha512-CdTLvIOPiCNuH71pyDu3rA+Q0n65cmAbXnwWH84rKGiFumFzkmHNT8KHTMEchcxN+Kl8I54xGUhJ7l3E7X396Q==} - '@cloudflare/kv-asset-handler@0.5.0': - resolution: {integrity: sha512-jxQYkj8dSIzc0cD6cMMNdOc1UVjqSqu8BZdor5s8cGjW2I8BjODt/kWPVdY+u9zj3ms75Q5qaZgnxUad83+eAg==} + '@cloudflare/kv-asset-handler@0.5.1': + resolution: {integrity: sha512-48OysfSW3MkQY1XjkhkpPkgrEkOvgfoyHzA2eyX5wpzFpijC02uWigv3hkNdJdT3C7ybW/U17yYHXeR68pLeww==} engines: {node: '>=22.0.0'} - '@cloudflare/unenv-preset@2.16.1': - resolution: {integrity: sha512-ECxObrMfyTl5bhQf/lZCXwo5G6xX9IAUo+nDMKK4SZ8m4Jvvxp52vilxyySSWh2YTZz8+HQ07qGH/2rEom1vDw==} + '@cloudflare/unenv-preset@2.16.2': + resolution: {integrity: sha512-JBP1+Z7ZSNG/d4mRP+y8VC5dka3tZVMLEZRvS+rzQ4DGV1EoxRFQckcJTTkXbHSQiTj0DtNI01Zwb/V2fX0mvQ==} peerDependencies: unenv: 2.0.0-rc.24 workerd: '>1.20260305.0 <2.0.0-0' @@ -314,38 +317,79 @@ packages: workerd: optional: true - '@cloudflare/workerd-darwin-64@1.20260722.1': - resolution: {integrity: sha512-vZOP8vIS3NwnuaO+gz0FZ7kIGeiO3bZmxV35Ph9zOXKSREhDFlH7wQ7mkCdhW3O4jnXsew+XT7b+DNEI2CcJGQ==} + '@cloudflare/vite-plugin@1.70.2': + resolution: {integrity: sha512-8bxssxmIrhB2279SyOY6BsmgR5BDVy58qcIeOzxJxPPyMXxm0VNPvh43SgNDM81DZtJQ7gDOoVssdbY4uojYSg==} + peerDependencies: + vite: ^6.1.0 || ^7.0.0 || ^8.0.0 + wrangler: ^4.168.0 + + '@cloudflare/workerd-darwin-64@1.20261123.1': + resolution: {integrity: sha512-eHJEySbW8swWiAYYaOn4LdtHQEPfug9oetPATkaXbsYxjsMX+nfyJ16//2ghXws8npxA+ZJkt5RYpimFfVdgkQ==} engines: {node: '>=16'} cpu: [x64] os: [darwin] - '@cloudflare/workerd-darwin-arm64@1.20260722.1': - resolution: {integrity: sha512-EmIQymihDq6WNdER4+LF8Qn80yqayBUpJ+tkOO7wmY8pmgfyXjIUFNXotl21AHovTeu2seR7HdVUgeN/BilCWw==} + '@cloudflare/workerd-darwin-64@1.20261127.1': + resolution: {integrity: sha512-7kDdqYmmWX8S/P9pE6ae9BFU807UjivLqtF2dzUGXIQVYEenY+S8zQcKtaRm9wzhkmq8ZYyIjm0XYW5SEc8kMg==} + engines: {node: '>=16'} + cpu: [x64] + os: [darwin] + + '@cloudflare/workerd-darwin-arm64@1.20261123.1': + resolution: {integrity: sha512-rDj5iScvzFD/6/pk01GqyIWa78DOGYLf18WCNG4bzfw1Z+VE/pG8msAllduLh0F/1WGD/PYxXJn03CCeSQPOUw==} + engines: {node: '>=16'} + cpu: [arm64] + os: [darwin] + + '@cloudflare/workerd-darwin-arm64@1.20261127.1': + resolution: {integrity: sha512-mSgMwlIlMsfLfzWTUi3ngrahDb8P+TKTbtic4nvEJOnnYM1KtZNf8EfYQHtB2GVoXau79uK0UEdS+kAN0WItAg==} engines: {node: '>=16'} cpu: [arm64] os: [darwin] - '@cloudflare/workerd-linux-64@1.20260722.1': - resolution: {integrity: sha512-jvZ3k9fxcnEn04s80CgIYxQfpOyAiz/8qC42DP8EBa9tR27qWyg9wmm31zIobVlrgBZn/+8NfdP73avRGcQOjQ==} + '@cloudflare/workerd-linux-64@1.20261123.1': + resolution: {integrity: sha512-hQs6svgH3YxdgKw7K0IVZ/gmeW49/z4UEHcxpsQHEa6Y2ZabUQef7YCI/BVcaCoHHp8p3cE/cziU3qh9ALIICw==} engines: {node: '>=16'} cpu: [x64] os: [linux] - '@cloudflare/workerd-linux-arm64@1.20260722.1': - resolution: {integrity: sha512-BOSB55SMNdy+DA5uj2WirgiNanpHGis5PVvXH1wSfvjRKr4JGgWK+EZzxz0RFUo6QjjQQC/NimEzNZ7va7jmKg==} + '@cloudflare/workerd-linux-64@1.20261127.1': + resolution: {integrity: sha512-/7c3pJfyn9tg38nXEzLqdZPTwWolhlVOVyBv85FoWSmMPC23eQsFunRQAgsWi1Os/h1a6n3505MAChgqYrpq7w==} + engines: {node: '>=16'} + cpu: [x64] + os: [linux] + + '@cloudflare/workerd-linux-arm64@1.20261123.1': + resolution: {integrity: sha512-LLsuu+ZIcppjDNU4A9QGIbotqkiSXP2QF3HD9kCaateQUxB5GOJ6GRx+qKIu/1A+UBDKR3JutXpT9kKWe5PzEA==} engines: {node: '>=16'} cpu: [arm64] os: [linux] - '@cloudflare/workerd-windows-64@1.20260722.1': - resolution: {integrity: sha512-sYM8YgUpKnRz2xjvdJLX1Ojzoi4MlA4gk8WTTExhGydjYB2UTs5NIbv0ZmpKgMoK9io3ixgmiW56ZnTbcWOdiA==} + '@cloudflare/workerd-linux-arm64@1.20261127.1': + resolution: {integrity: sha512-x/MJ8Vd+Q9VamNtj3pFRJZdZc9r3HcSqOpU6XfhcOTFuQEpA9t/0/DWdP27NrzxKNdHV5139XYxUw+x/oGY/Kw==} + engines: {node: '>=16'} + cpu: [arm64] + os: [linux] + + '@cloudflare/workerd-windows-64@1.20261123.1': + resolution: {integrity: sha512-/zl++/e/0JLMttdz4lUsCo58NaLKQZKancI2YPciaLH9iLHq6UOP2BQZt+dejGRrV9UxdpPYPHUYU9Km5PcALA==} engines: {node: '>=16'} cpu: [x64] os: [win32] - '@cloudflare/workers-types@4.20260702.1': - resolution: {integrity: sha512-mOhf5TUEB1m2vPrxtqoIGfz0fUC9xyxRDx5gWHy5s+OCo6dcV+g7wI1R7gYCMFohhqF/2y2xeKVwMwCJjfn/WA==} + '@cloudflare/workerd-windows-64@1.20261127.1': + resolution: {integrity: sha512-ebko9XaZy6iqDHLr4WH2dC01Hf8L8xQe2GxBwqdsUfAmhMPGbnk33GtvR5FFaae+CPCPiU/H2TY1WeJ8cNSKdQ==} + engines: {node: '>=16'} + cpu: [x64] + os: [win32] + + '@cloudflare/workers-utils@0.58.0': + resolution: {integrity: sha512-Mib8I2ijrBIm7mEykEYq369kOHtJvHIwhUh4n6w+RSuOL8LeXCHRXTKt8luE8irRM9d35kYlG+crDKjE7PQj6g==} + peerDependencies: + vitest: ^4.1.0 || ^5.0.0 + peerDependenciesMeta: + vitest: + optional: true '@cspotcode/source-map-support@0.8.1': resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} @@ -360,161 +404,164 @@ packages: '@emnapi/runtime@1.11.1': resolution: {integrity: sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw==} + '@emnapi/runtime@1.11.3': + resolution: {integrity: sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==} + '@emnapi/wasi-threads@1.2.2': resolution: {integrity: sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==} - '@esbuild/aix-ppc64@0.28.1': - resolution: {integrity: sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==} + '@esbuild/aix-ppc64@0.28.2': + resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==} engines: {node: '>=18'} cpu: [ppc64] os: [aix] - '@esbuild/android-arm64@0.28.1': - resolution: {integrity: sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg==} + '@esbuild/android-arm64@0.28.2': + resolution: {integrity: sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==} engines: {node: '>=18'} cpu: [arm64] os: [android] - '@esbuild/android-arm@0.28.1': - resolution: {integrity: sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==} + '@esbuild/android-arm@0.28.2': + resolution: {integrity: sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==} engines: {node: '>=18'} cpu: [arm] os: [android] - '@esbuild/android-x64@0.28.1': - resolution: {integrity: sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng==} + '@esbuild/android-x64@0.28.2': + resolution: {integrity: sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==} engines: {node: '>=18'} cpu: [x64] os: [android] - '@esbuild/darwin-arm64@0.28.1': - resolution: {integrity: sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q==} + '@esbuild/darwin-arm64@0.28.2': + resolution: {integrity: sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==} engines: {node: '>=18'} cpu: [arm64] os: [darwin] - '@esbuild/darwin-x64@0.28.1': - resolution: {integrity: sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ==} + '@esbuild/darwin-x64@0.28.2': + resolution: {integrity: sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==} engines: {node: '>=18'} cpu: [x64] os: [darwin] - '@esbuild/freebsd-arm64@0.28.1': - resolution: {integrity: sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw==} + '@esbuild/freebsd-arm64@0.28.2': + resolution: {integrity: sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==} engines: {node: '>=18'} cpu: [arm64] os: [freebsd] - '@esbuild/freebsd-x64@0.28.1': - resolution: {integrity: sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ==} + '@esbuild/freebsd-x64@0.28.2': + resolution: {integrity: sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==} engines: {node: '>=18'} cpu: [x64] os: [freebsd] - '@esbuild/linux-arm64@0.28.1': - resolution: {integrity: sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g==} + '@esbuild/linux-arm64@0.28.2': + resolution: {integrity: sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==} engines: {node: '>=18'} cpu: [arm64] os: [linux] - '@esbuild/linux-arm@0.28.1': - resolution: {integrity: sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ==} + '@esbuild/linux-arm@0.28.2': + resolution: {integrity: sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==} engines: {node: '>=18'} cpu: [arm] os: [linux] - '@esbuild/linux-ia32@0.28.1': - resolution: {integrity: sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w==} + '@esbuild/linux-ia32@0.28.2': + resolution: {integrity: sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==} engines: {node: '>=18'} cpu: [ia32] os: [linux] - '@esbuild/linux-loong64@0.28.1': - resolution: {integrity: sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg==} + '@esbuild/linux-loong64@0.28.2': + resolution: {integrity: sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==} engines: {node: '>=18'} cpu: [loong64] os: [linux] - '@esbuild/linux-mips64el@0.28.1': - resolution: {integrity: sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ==} + '@esbuild/linux-mips64el@0.28.2': + resolution: {integrity: sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==} engines: {node: '>=18'} cpu: [mips64el] os: [linux] - '@esbuild/linux-ppc64@0.28.1': - resolution: {integrity: sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ==} + '@esbuild/linux-ppc64@0.28.2': + resolution: {integrity: sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==} engines: {node: '>=18'} cpu: [ppc64] os: [linux] - '@esbuild/linux-riscv64@0.28.1': - resolution: {integrity: sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ==} + '@esbuild/linux-riscv64@0.28.2': + resolution: {integrity: sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==} engines: {node: '>=18'} cpu: [riscv64] os: [linux] - '@esbuild/linux-s390x@0.28.1': - resolution: {integrity: sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag==} + '@esbuild/linux-s390x@0.28.2': + resolution: {integrity: sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==} engines: {node: '>=18'} cpu: [s390x] os: [linux] - '@esbuild/linux-x64@0.28.1': - resolution: {integrity: sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA==} + '@esbuild/linux-x64@0.28.2': + resolution: {integrity: sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==} engines: {node: '>=18'} cpu: [x64] os: [linux] - '@esbuild/netbsd-arm64@0.28.1': - resolution: {integrity: sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==} + '@esbuild/netbsd-arm64@0.28.2': + resolution: {integrity: sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==} engines: {node: '>=18'} cpu: [arm64] os: [netbsd] - '@esbuild/netbsd-x64@0.28.1': - resolution: {integrity: sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg==} + '@esbuild/netbsd-x64@0.28.2': + resolution: {integrity: sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==} engines: {node: '>=18'} cpu: [x64] os: [netbsd] - '@esbuild/openbsd-arm64@0.28.1': - resolution: {integrity: sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==} + '@esbuild/openbsd-arm64@0.28.2': + resolution: {integrity: sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==} engines: {node: '>=18'} cpu: [arm64] os: [openbsd] - '@esbuild/openbsd-x64@0.28.1': - resolution: {integrity: sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw==} + '@esbuild/openbsd-x64@0.28.2': + resolution: {integrity: sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==} engines: {node: '>=18'} cpu: [x64] os: [openbsd] - '@esbuild/openharmony-arm64@0.28.1': - resolution: {integrity: sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==} + '@esbuild/openharmony-arm64@0.28.2': + resolution: {integrity: sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==} engines: {node: '>=18'} cpu: [arm64] os: [openharmony] - '@esbuild/sunos-x64@0.28.1': - resolution: {integrity: sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ==} + '@esbuild/sunos-x64@0.28.2': + resolution: {integrity: sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==} engines: {node: '>=18'} cpu: [x64] os: [sunos] - '@esbuild/win32-arm64@0.28.1': - resolution: {integrity: sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA==} + '@esbuild/win32-arm64@0.28.2': + resolution: {integrity: sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==} engines: {node: '>=18'} cpu: [arm64] os: [win32] - '@esbuild/win32-ia32@0.28.1': - resolution: {integrity: sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg==} + '@esbuild/win32-ia32@0.28.2': + resolution: {integrity: sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==} engines: {node: '>=18'} cpu: [ia32] os: [win32] - '@esbuild/win32-x64@0.28.1': - resolution: {integrity: sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A==} + '@esbuild/win32-x64@0.28.2': + resolution: {integrity: sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==} engines: {node: '>=18'} cpu: [x64] os: [win32] @@ -634,160 +681,160 @@ packages: resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==} engines: {node: '>=18'} - '@img/sharp-darwin-arm64@0.35.2': - resolution: {integrity: sha512-eEieHsMksAW4IiO5NzauESRl2D2qz3J/kwUxUrSfV06A93eEaRfMpHXyUb1mAqrR7i8U9A0GRqE9pjn6u1Jjpg==} + '@img/sharp-darwin-arm64@0.35.5': + resolution: {integrity: sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==} engines: {node: '>=20.9.0'} cpu: [arm64] os: [darwin] - '@img/sharp-darwin-x64@0.35.2': - resolution: {integrity: sha512-BaktuGPCeHJMARpodR8jK4uKiZrPAy9WrfQW0sdI37clracq8Bp01AYS3SZgi5FS/y5twa9t4+LIuuxQjqRrWw==} + '@img/sharp-darwin-x64@0.35.5': + resolution: {integrity: sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==} engines: {node: '>=20.9.0'} cpu: [x64] os: [darwin] - '@img/sharp-freebsd-wasm32@0.35.2': - resolution: {integrity: sha512-YoAxdnd8hPUkvLHd3bWY+YA8nw3xM/RyRopYucNsWHVSan8NLVM3X2volsfoRDcXdUJPg6tXahSd7HXPK7lRnw==} + '@img/sharp-freebsd-wasm32@0.35.5': + resolution: {integrity: sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==} engines: {node: '>=20.9.0'} os: [freebsd] - '@img/sharp-libvips-darwin-arm64@1.3.1': - resolution: {integrity: sha512-4V/M3roRMTYjiwZY9IOVQOE8OyeCxFAkYmyZDrZl51uOKjibm3oeEJ4WAmLxutAfzFbC9jqUiPs2gbnGflH+7g==} + '@img/sharp-libvips-darwin-arm64@1.3.4': + resolution: {integrity: sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==} cpu: [arm64] os: [darwin] - '@img/sharp-libvips-darwin-x64@1.3.1': - resolution: {integrity: sha512-c0/DxItpJv2+dGhgycJBBgotdqruGYDvA79drdh0MD1dFpy7JzJ/PlXwi1H4rFf0eTy8tgbI91aHDnZIceY3jQ==} + '@img/sharp-libvips-darwin-x64@1.3.4': + resolution: {integrity: sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==} cpu: [x64] os: [darwin] - '@img/sharp-libvips-linux-arm64@1.3.1': - resolution: {integrity: sha512-JznefmcK9j1JKPz8AkQDh89kjojubyfOasWBPKfzMIhPwsgDy9evpE/naJTXXXmghS1iFwR8u/kTwh/I2/+GCw==} + '@img/sharp-libvips-linux-arm64@1.3.4': + resolution: {integrity: sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==} cpu: [arm64] os: [linux] libc: [glibc] - '@img/sharp-libvips-linux-arm@1.3.1': - resolution: {integrity: sha512-aGGy9aWzXgHBG7HNyQPWorZthlp7+x6fDRoPAQbGO3ThcttuTyKIx3NuSHb6zb4gBNq6/yNn9f1cy9nFKS/Vmg==} + '@img/sharp-libvips-linux-arm@1.3.4': + resolution: {integrity: sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==} cpu: [arm] os: [linux] libc: [glibc] - '@img/sharp-libvips-linux-ppc64@1.3.1': - resolution: {integrity: sha512-1EkwGNCZk6iWNCMWqrvdJ+r1j0PT1zIz60CNPhYnJlK/zyeWqlsPZIe+ocBVqPF8k/Ssee/NCk+tE9Ryrko6ng==} + '@img/sharp-libvips-linux-ppc64@1.3.4': + resolution: {integrity: sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==} cpu: [ppc64] os: [linux] libc: [glibc] - '@img/sharp-libvips-linux-riscv64@1.3.1': - resolution: {integrity: sha512-Ilays+w2bXdnxzxtQdmXR62u8o8GYa3eL4+Gr+1KiE4xperMZUslRaVPJwwPkzlHEjGfXAfRVAa/7CYCtSqsBw==} + '@img/sharp-libvips-linux-riscv64@1.3.4': + resolution: {integrity: sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==} cpu: [riscv64] os: [linux] libc: [glibc] - '@img/sharp-libvips-linux-s390x@1.3.1': - resolution: {integrity: sha512-VfBwVHQTbRoj4XlpA/KLZ7ltgMpz+4WSejFzQ+GnoImjo1PtEJ59QB2qR1xQEeRPYIkNrPIm2L4cICMvz4C2ew==} + '@img/sharp-libvips-linux-s390x@1.3.4': + resolution: {integrity: sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==} cpu: [s390x] os: [linux] libc: [glibc] - '@img/sharp-libvips-linux-x64@1.3.1': - resolution: {integrity: sha512-+c8ukgwU62DS54nCAjw7keOfHUkmr0B5QHEdcOqRnodF/MNXJbVI8Eopoj4B/0H8Asr65I+A4Amrn7a85/md6A==} + '@img/sharp-libvips-linux-x64@1.3.4': + resolution: {integrity: sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==} cpu: [x64] os: [linux] libc: [glibc] - '@img/sharp-libvips-linuxmusl-arm64@1.3.1': - resolution: {integrity: sha512-qlKb/pwbkAi1WMsJrYHk7CuDrd12s27U2QnRhFYUoJNrRCmkosMTttuRFat/DDB3IlDm5qE1TJgZ4JDnHX8Ldw==} + '@img/sharp-libvips-linuxmusl-arm64@1.3.4': + resolution: {integrity: sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==} cpu: [arm64] os: [linux] libc: [musl] - '@img/sharp-libvips-linuxmusl-x64@1.3.1': - resolution: {integrity: sha512-yO21HwoUVLN8Qa+/SBjQLMYwBWAVJjeGPNe+hc0OUeMeifEtJqu5a1c4HayE1nNpDih9y3/KkoltfkDodmKAlg==} + '@img/sharp-libvips-linuxmusl-x64@1.3.4': + resolution: {integrity: sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==} cpu: [x64] os: [linux] libc: [musl] - '@img/sharp-linux-arm64@0.35.2': - resolution: {integrity: sha512-af12Pnd0ZGu2HfP8NayB0kk6eC/lrfbQE6HlR4jD+34wdJ1Vw9TF6TMn6ZvffT+WgqVsl0hRbmNvz2u/23VmwA==} + '@img/sharp-linux-arm64@0.35.5': + resolution: {integrity: sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==} engines: {node: '>=20.9.0'} cpu: [arm64] os: [linux] libc: [glibc] - '@img/sharp-linux-arm@0.35.2': - resolution: {integrity: sha512-SE4kzF2mepn6z+6E7L6lsV8FzuLL6IPQdyX8ZiwROAG/G8td+hP/m7FsFPwidtrF19gvajuC9l6TxAVcsA4S7A==} + '@img/sharp-linux-arm@0.35.5': + resolution: {integrity: sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==} engines: {node: '>=20.9.0'} cpu: [arm] os: [linux] libc: [glibc] - '@img/sharp-linux-ppc64@0.35.2': - resolution: {integrity: sha512-hYSBm7zcNtDCozCxQHYZJiu63b/bXsgRZuOxCIBZsStMM9Vap47iFHdbX4kCvQsblPB/k+clhELpdQJHQLSHvg==} + '@img/sharp-linux-ppc64@0.35.5': + resolution: {integrity: sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==} engines: {node: '>=20.9.0'} cpu: [ppc64] os: [linux] libc: [glibc] - '@img/sharp-linux-riscv64@0.35.2': - resolution: {integrity: sha512-qQt0Kc13+Hoan/Awq/qMSQw3L+RI1NCRPgD5cUJ/1WSSmIoysLOc72jlRM3E0OHN9Yr313jgeQ2T+zW+F03QFA==} + '@img/sharp-linux-riscv64@0.35.5': + resolution: {integrity: sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==} engines: {node: '>=20.9.0'} cpu: [riscv64] os: [linux] libc: [glibc] - '@img/sharp-linux-s390x@0.35.2': - resolution: {integrity: sha512-E4fLLfRPzDLlEeDaTzI98OFLcv++WL5ChLLMwPoVd0CIoZQqupBSNbOisPL5am9XsbQ9T84+iiMpUvbFtkunbA==} + '@img/sharp-linux-s390x@0.35.5': + resolution: {integrity: sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==} engines: {node: '>=20.9.0'} cpu: [s390x] os: [linux] libc: [glibc] - '@img/sharp-linux-x64@0.35.2': - resolution: {integrity: sha512-gi0zFJJRLswfCZmHtJdikXPOc5u7qamSOS3NHedLqLd4W8Q0NqjdBr6TTRIgsfFjqfTsHFgdfvJ9LwqSgcHiAA==} + '@img/sharp-linux-x64@0.35.5': + resolution: {integrity: sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==} engines: {node: '>=20.9.0'} cpu: [x64] os: [linux] libc: [glibc] - '@img/sharp-linuxmusl-arm64@0.35.2': - resolution: {integrity: sha512-siWbOW1u6HFnFLrp0waKyW7VEf7jYvcDWdrXEFa8AkdAQgEvuu5Fz8/Y70w9EeqAdwDtfU012BhEHHaDqvQNzg==} + '@img/sharp-linuxmusl-arm64@0.35.5': + resolution: {integrity: sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==} engines: {node: '>=20.9.0'} cpu: [arm64] os: [linux] libc: [musl] - '@img/sharp-linuxmusl-x64@0.35.2': - resolution: {integrity: sha512-YBqMMcjDi4QGYiSn4vNOYBhmlC4z5AXqkOUUqI2e0AFA4urNv4ESgOgwNl3K+4etQhha0twXlzeF20bbULm9Yg==} + '@img/sharp-linuxmusl-x64@0.35.5': + resolution: {integrity: sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==} engines: {node: '>=20.9.0'} cpu: [x64] os: [linux] libc: [musl] - '@img/sharp-wasm32@0.35.2': - resolution: {integrity: sha512-Mrv4JQNYVQ94xH+jzZ9r+gowleN8mv2FTgKT+PI6bx5C0G8TdNYndu161pg2i7uoBwxy2ImPMHrJOM2LZef7Bw==} + '@img/sharp-wasm32@0.35.5': + resolution: {integrity: sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==} engines: {node: '>=20.9.0'} - '@img/sharp-webcontainers-wasm32@0.35.2': - resolution: {integrity: sha512-QNV27pxs9wpApEiCfvHM1RDoP1w1+2KrUWWDPEhEwg+latvOrfuhWrHWZKwdSFwU6jh3myjw/yOCRsUIuOft3g==} + '@img/sharp-webcontainers-wasm32@0.35.5': + resolution: {integrity: sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==} engines: {node: '>=20.9.0'} cpu: [wasm32] - '@img/sharp-win32-arm64@0.35.2': - resolution: {integrity: sha512-BiVRYc/t6/Vl3e1hBx0hugG4oN9Pydf4fgMSpxTQJmwGUg/YoXTWHiFeRymHfCZzifxu4F4rpk/I67D0LQ20wQ==} + '@img/sharp-win32-arm64@0.35.5': + resolution: {integrity: sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==} engines: {node: '>=20.9.0'} cpu: [arm64] os: [win32] - '@img/sharp-win32-ia32@0.35.2': - resolution: {integrity: sha512-YYEhx9PImCC7T0tI8JDMi4DB9LwLCXCU5OWNYEXAxh5Q1ShKkyC6byxzoBJ3gEFDnH2lQckWuDe70G7mB2XJog==} + '@img/sharp-win32-ia32@0.35.5': + resolution: {integrity: sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==} engines: {node: ^20.9.0} cpu: [ia32] os: [win32] - '@img/sharp-win32-x64@0.35.2': - resolution: {integrity: sha512-imoOyBcoM/iiUr4J6VPpCNjPnjvP/Gks95898yB8YqoGGYmHYbOyCuNv9FMhFgtaiHFGbHW8bxKqRV6VjtXThQ==} + '@img/sharp-win32-x64@0.35.5': + resolution: {integrity: sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==} engines: {node: '>=20.9.0'} cpu: [x64] os: [win32] @@ -817,6 +864,9 @@ packages: '@jridgewell/sourcemap-codec@1.5.5': resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + '@jridgewell/trace-mapping@0.3.31': resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} @@ -1011,16 +1061,21 @@ packages: peerDependencies: acorn: ^8.9.0 + '@sveltejs/acorn-typescript@1.0.13': + resolution: {integrity: sha512-wgKggnhZVL9Bfx1OaKKTrYY9BFRk6C8UAkQNUcIv1+llzYrIqy+RZm5HPKzn0NpEBvTVhTqB4kQyllZywsRBRQ==} + peerDependencies: + acorn: ^8.9.0 + '@sveltejs/adapter-auto@7.0.1': resolution: {integrity: sha512-dvuPm1E7M9NI/+canIQ6KKQDU2AkEefEZ2Dp7cY6uKoPq9Z/PhOXABe526UdW2mN986gjVkuSLkOYIBnS/M2LQ==} peerDependencies: '@sveltejs/kit': ^2.0.0 - '@sveltejs/adapter-cloudflare@7.2.9': - resolution: {integrity: sha512-LEfLRYKZIiNYBPYk9Cu4dFCCIX37NO96jESNRDv7yr3vvblKU4Yh05FPUMRSrOWFKtG6bJcGIvdG/M2DSf4D1w==} + '@sveltejs/adapter-cloudflare@9.0.1': + resolution: {integrity: sha512-4O9aVl6lBzIYpeu5BAMG3kmIo9hsm0lVJih7PXrCxZIeq6CiJiAWfVts5t7Hhcv3S+aurejXWAX3CayxBMnXiA==} peerDependencies: - '@sveltejs/kit': ^2.0.0 - wrangler: ^4.0.0 + '@sveltejs/kit': ^3.0.0-next.0 + wrangler: ^4.162.0 '@sveltejs/kit@2.69.1': resolution: {integrity: sha512-+nz8Fx/cElzb2ZPHC+6Ll3y3NEVIe4Na75PeplLlyTmd1dBXAjz2KR14y1ZgNjb2ThfAYzulu+PFy1UE3RCUzA==} @@ -1038,10 +1093,30 @@ packages: typescript: optional: true + '@sveltejs/kit@3.4.1': + resolution: {integrity: sha512-AQwy6NVRJYPuMJdz27jehqD8o2u1wn3nyMV0+RqiZuLNSHqVkihfoHcjzI2295CUiAVJL8I1mK1bJxTWtTX1kg==} + engines: {node: '>=22.17'} + hasBin: true + peerDependencies: + '@opentelemetry/api': ^1.0.0 + '@sveltejs/vite-plugin-svelte': ^7.0.0 + svelte: ^5.57.1 + typescript: ^6.0.0 + vite: ^8.0.12 + peerDependenciesMeta: + '@opentelemetry/api': + optional: true + typescript: + optional: true + '@sveltejs/load-config@0.2.0': resolution: {integrity: sha512-1LgZ/qUqSoq+QorD83lk2hka79Px0wXNW2q5V1nZlxGhQgw1jrsIbVz5YiCeucVLo4XvFLjXukUaQjIiqowkcg==} engines: {node: '>= 18.0.0'} + '@sveltejs/load-config@0.2.3': + resolution: {integrity: sha512-VT3qmUb8pRV2QrZjd8iAmtg8lf4W0TIjZbvXtz5MKei/q96teWZgGJyyidJzOjzZzvdq616eSRVeMYIQChUTAQ==} + engines: {node: '>= 18.0.0'} + '@sveltejs/package@2.5.8': resolution: {integrity: sha512-zeBbsXYvHiBu56v4gJaGQoEHzg96w0E1j3dOMX8vo56s6vI5eQ57ZEZhudjwjnegnVitRRu5MrmhO0eNvaonIw==} engines: {node: ^16.14 || >=18} @@ -1200,9 +1275,15 @@ packages: '@types/lodash@4.17.24': resolution: {integrity: sha512-gIW7lQLZbue7lRSWEFql49QJJWThrTFFeIMJdp3eH4tKoxm1OvEPg02rm4wCCSHS0cL3/Fizimb35b7k8atwsQ==} + '@types/node-fetch@2.6.13': + resolution: {integrity: sha512-QGpRVpzSaUs30JBSGPjOg4Uveu384erbHBoT1zeONvyCfwQxIkUshLAOqN/k9EjGviPRmWTTe6aH2qySWKTVSw==} + '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} + '@types/node@18.19.130': + resolution: {integrity: sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==} + '@types/node@26.1.0': resolution: {integrity: sha512-O0A1G3xPGy4w7AgQdAQYUlQ+BKk2Oovw8eRpofyp5KdBZULnbe+WqaOVNrm705SHphCiG4XHsACrSmPu1f+Kgw==} @@ -1215,6 +1296,12 @@ packages: '@types/validator@13.15.10': resolution: {integrity: sha512-T8L6i7wCuyoK8A/ZeLYt1+q0ty3Zb9+qbSSvrIVitzT3YjZqkTZ40IbRsPanlB4h1QB3JVL1SYCdR6ngtFYcuA==} + '@types/yargs-parser@21.0.3': + resolution: {integrity: sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==} + + '@types/yargs@17.0.24': + resolution: {integrity: sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==} + '@typeschema/class-validator@0.3.0': resolution: {integrity: sha512-OJSFeZDIQ8EK1HTljKLT5CItM2wsbgczLN8tMEfz3I1Lmhc5TBfkZ0eikFzUC16tI3d1Nag7um6TfCgp2I2Bww==} peerDependencies: @@ -1357,6 +1444,15 @@ packages: engines: {node: '>=0.4.0'} hasBin: true + acorn@8.19.0: + resolution: {integrity: sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==} + engines: {node: '>=0.4.0'} + hasBin: true + + agentkeepalive@4.6.0: + resolution: {integrity: sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==} + engines: {node: '>= 8.0.0'} + ajv@6.15.0: resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==} @@ -1392,6 +1488,9 @@ packages: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} + asynckit@0.4.0: + resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} + axobject-query@4.1.0: resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==} engines: {node: '>= 0.4'} @@ -1415,9 +1514,6 @@ packages: '@internationalized/date': ^3.8.1 svelte: ^5.33.0 - blake3-wasm@2.1.5: - resolution: {integrity: sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==} - brace-expansion@5.0.8: resolution: {integrity: sha512-JZyDyq3D4AUifKTPOB7DELf6XsB3WdPuNxCtob1vFXPsSXhdAiHBWJ/tJ8HAc9aH84BK+5JFZLNkJKx3G9kzQg==} engines: {node: 20 || >=22} @@ -1438,6 +1534,10 @@ packages: magicast: optional: true + call-bind-apply-helpers@1.0.2: + resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==} + engines: {node: '>= 0.4'} + camelcase@8.0.0: resolution: {integrity: sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==} engines: {node: '>=16'} @@ -1446,6 +1546,10 @@ packages: resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==} engines: {node: '>=18'} + chalk@5.3.0: + resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + chardet@2.2.0: resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==} @@ -1460,6 +1564,9 @@ packages: class-validator@0.14.4: resolution: {integrity: sha512-AwNusCCam51q703dW82x95tOqQp6oC9HNUl724KxJJOfnKscI8dOloXFgyez7LbTTKWuRBA37FScqVbJEoq8Yw==} + cloudflare@5.2.0: + resolution: {integrity: sha512-dVzqDpPFYR9ApEC9e+JJshFJZXcw4HzM8W+3DHzO5oy9+8rLC53G7x6fEf9A7/gSuSCxuvndzui5qJKftfIM9A==} + clsx@2.1.1: resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} engines: {node: '>=6'} @@ -1468,6 +1575,10 @@ packages: resolution: {integrity: sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==} hasBin: true + combined-stream@1.0.8: + resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} + engines: {node: '>= 0.8'} + commander@15.0.0: resolution: {integrity: sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg==} engines: {node: '>=22.12.0'} @@ -1486,6 +1597,10 @@ packages: resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==} engines: {node: '>=18'} + cookie@2.0.2: + resolution: {integrity: sha512-SL0cVuEdETEp7pN0FuZb01toc3vnODEfVUCooxG1SJN0yIirh7JMb9X9bvfCFf0vzzbT68RdbKDHYTiWy7a7iw==} + engines: {node: '>=22'} + cross-spawn@7.0.6: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} @@ -1535,6 +1650,10 @@ packages: defu@6.1.7: resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} + delayed-stream@1.0.0: + resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} + engines: {node: '>=0.4.0'} + dequal@2.0.3: resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} engines: {node: '>=6'} @@ -1553,6 +1672,16 @@ packages: devalue@5.8.1: resolution: {integrity: sha512-4CXDYRBGqN+57wVJkuXBYmpAVUSg3L6JAQa/DFqm238G73E1wuyc/JhGQJzN7vUf/CMphYau2zXbfWzDR5aTEw==} + devalue@5.9.4: + resolution: {integrity: sha512-sPAT4pztbu6586/hrhOnMKS17IJrvg12mXiSPSS3W5qDeN2RGgvZ0diZCm31dBbnevfVmujNO3IM2wrS4Y2Rhg==} + + devalue@6.0.4: + resolution: {integrity: sha512-8L3d5HaKt6/wnWKRtwmJu7qrLM6YiGb6mxktIFfgjQzQzIAR5vAZdHioZv/252Pp4SN/xu47oxe7RlwoZzWTTA==} + engines: {node: '>=18'} + + devtools-protocol@0.0.1182435: + resolution: {integrity: sha512-EmlkWb62wSbQNE1gRZZsi4KZYRaF5Skpp183LhRU7+sadKR06O1dHCjZmFSEG6Kv7P6S/UYLxcY3NlYwqKM99w==} + dir-glob@3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -1560,10 +1689,18 @@ packages: dlv@1.1.3: resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==} + dotenv@16.3.1: + resolution: {integrity: sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==} + engines: {node: '>=12'} + dotenv@17.4.2: resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} engines: {node: '>=12'} + dunder-proto@1.0.1: + resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} + engines: {node: '>= 0.4'} + effect@3.21.4: resolution: {integrity: sha512-B89v/xSgPbl1J2Ai2u18jxq3odpFauU1rC6/eSs4FeNHi72kwKdJp12VGigvRV2lK+kRnx+OOz41XV8guZd4gQ==} @@ -1578,11 +1715,27 @@ packages: error-stack-parser-es@1.0.5: resolution: {integrity: sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA==} + es-define-property@1.0.1: + resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==} + engines: {node: '>= 0.4'} + + es-errors@1.3.0: + resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} + engines: {node: '>= 0.4'} + es-module-lexer@2.3.0: resolution: {integrity: sha512-KLdwQm2NvGLDkQDCGvmiQrhkd0JbMzXthwQAUgWjQuQdBLFa3eiBP5arXZyA+f8x+x7OXgud6bq2rxjGtHV2tw==} - esbuild@0.28.1: - resolution: {integrity: sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==} + es-object-atoms@1.1.2: + resolution: {integrity: sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==} + engines: {node: '>= 0.4'} + + es-set-tostringtag@2.1.0: + resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==} + engines: {node: '>= 0.4'} + + esbuild@0.28.2: + resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==} engines: {node: '>=18'} hasBin: true @@ -1664,6 +1817,14 @@ packages: '@typescript-eslint/types': optional: true + esrap@2.4.2: + resolution: {integrity: sha512-WpVZsWnSheHBy+fGrO/0duwnbe6ODZH1QyBbjupreSCJGojaBWRncrq+HVeIJ8eHQjEwSJg9hC4yPJyNVOrpqg==} + peerDependencies: + '@typescript-eslint/types': ^8.2.0 + peerDependenciesMeta: + '@typescript-eslint/types': + optional: true + esrecurse@4.3.0: resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} engines: {node: '>=4.0'} @@ -1755,6 +1916,17 @@ packages: flatted@3.4.2: resolution: {integrity: sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==} + form-data-encoder@1.7.2: + resolution: {integrity: sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==} + + form-data@4.0.6: + resolution: {integrity: sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==} + engines: {node: '>= 6'} + + formdata-node@4.4.1: + resolution: {integrity: sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==} + engines: {node: '>= 12.20'} + formsnap@2.0.1: resolution: {integrity: sha512-iJSe4YKd/W6WhLwKDVJU9FQeaJRpEFuolhju7ZXlRpUVyDdqFdMP8AUBICgnVvQPyP41IPAlBa/v0Eo35iE6wQ==} engines: {node: '>=18', pnpm: '>=8.7.0'} @@ -1780,6 +1952,17 @@ packages: engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] + function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + + get-intrinsic@1.3.0: + resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} + engines: {node: '>= 0.4'} + + get-proto@1.0.1: + resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==} + engines: {node: '>= 0.4'} + get-tsconfig@4.14.0: resolution: {integrity: sha512-yTb+8DXzDREzgvYmh6s9vHsSVCHeC0G3PI5bEXNBHtmshPnO+S5O7qgLEOn0I5QvMy6kpZN8K1NKGyilLb93wA==} @@ -1807,13 +1990,32 @@ packages: resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} engines: {node: '>=10'} + gopd@1.2.0: + resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} + engines: {node: '>= 0.4'} + graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + has-symbols@1.1.0: + resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==} + engines: {node: '>= 0.4'} + + has-tostringtag@1.0.2: + resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==} + engines: {node: '>= 0.4'} + + hasown@2.0.4: + resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==} + engines: {node: '>= 0.4'} + human-id@4.2.0: resolution: {integrity: sha512-K3GbkIWqyvvlpfhBPlbEvD97TtqBpAYA4kt+cn2lD2x2HuohzZCibcA2nOlnJT6exqvJLggoB5nv2dNf192nEA==} hasBin: true + humanize-ms@1.2.1: + resolution: {integrity: sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==} + iconv-lite@0.7.3: resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} engines: {node: '>=0.10.0'} @@ -2027,6 +2229,13 @@ packages: magic-string@0.30.21: resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + magic-string@1.4.5: + resolution: {integrity: sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==} + + math-intrinsics@1.1.0: + resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} + engines: {node: '>= 0.4'} + memoize-weak@1.0.2: resolution: {integrity: sha512-gj39xkrjEw7nCn4nJ1M5ms6+MyMlyiGmttzsqAUsAKn6bYKwuTHh/AO3cKPF8IBrTIYTxb0wWXFs3E//Y8VoWQ==} @@ -2038,14 +2247,35 @@ packages: resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} engines: {node: '>=8.6'} + mime-db@1.52.0: + resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} + engines: {node: '>= 0.6'} + + mime-types@2.1.35: + resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} + engines: {node: '>= 0.6'} + mini-svg-data-uri@1.4.4: resolution: {integrity: sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==} hasBin: true - miniflare@4.20260722.1: - resolution: {integrity: sha512-FJIg4omaCb2wwSyOeRosEdmVRi3JzGAOOH3pa3twmmtvWECl6BVZMIDwJbjByLKRyU+mrfk0M/n3oSiojFZvSA==} - engines: {node: '>=22.0.0'} - hasBin: true + miniflare@5.20261123.1-beta: + resolution: {integrity: sha512-o2a+xv6Ug144FgUJm7ciSWMiI7R0OH0svGCfqb1+6l9cUfZebc6YMWIK43PeyzWr3x6BLq2j4O9i8BsKk055oA==} + engines: {node: '>=22.12.0'} + peerDependencies: + kerberos: ^2.0.0 + peerDependenciesMeta: + kerberos: + optional: true + + miniflare@5.20261127.0-beta: + resolution: {integrity: sha512-Q1i2itrbIALM7mScS//+oLSUJVdmG8UFK74VkHWpU+/Gg8h+1ZCySHAvyXvehNBMdSMKoPSnhgv9WAnzz0EYeQ==} + engines: {node: '>=22.12.0'} + peerDependencies: + kerberos: ^2.0.0 + peerDependenciesMeta: + kerberos: + optional: true minimatch@10.2.5: resolution: {integrity: sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==} @@ -2070,6 +2300,11 @@ packages: natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + node-domexception@1.0.0: + resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} + engines: {node: '>=10.5.0'} + deprecated: Use your platform's native DOMException instead + node-fetch@2.7.0: resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} engines: {node: 4.x || >=6.0.0} @@ -2356,10 +2591,6 @@ packages: resolution: {integrity: sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==} engines: {node: '>= 20.19.0'} - regexparam@3.0.0: - resolution: {integrity: sha512-RSYAtP31mvYLkAHrOlh25pCNQ5hWnT106VukGaaFfuJrZFkGRX5GhUAdPqpSDXxOhA2c4akmRuplv1mRqnBn6Q==} - engines: {node: '>=8'} - requires-port@1.0.0: resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==} @@ -2431,9 +2662,14 @@ packages: set-cookie-parser@3.1.1: resolution: {integrity: sha512-vM9SUhjsUYs6UeJUmygc5Ofm5eQGe85riob5ju6XCgFGJI5PLV4nrDAQpQjd+LkFBpAkADn5BQQpZ9EUNkyLuA==} - sharp@0.35.2: - resolution: {integrity: sha512-FVtFjtBCMiJS6yb5CX7Sop45WFMpeGw6oRKuJnXYgf/f1ms/D7LE/ZUSNxnW7rZ/dbslQWYkoqFHGPaDBtaK4w==} + sharp@0.35.5: + resolution: {integrity: sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==} engines: {node: '>=20.9.0'} + peerDependencies: + '@types/node': '*' + peerDependenciesMeta: + '@types/node': + optional: true shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} @@ -2501,6 +2737,14 @@ packages: svelte: ^4.0.0 || ^5.0.0-next.0 typescript: '>=5.0.0' + svelte-check@4.7.8: + resolution: {integrity: sha512-laZ49GFHZ3b0z2PWinJWL0syehc/PTR8aHaUaTiBkWJ+4Y38nhxjmXsSz7CbGa3VdKopViVbrBH3bGNqIAI0bQ==} + engines: {node: '>= 18.0.0'} + hasBin: true + peerDependencies: + svelte: ^4.0.0 || ^5.0.0-next.0 + typescript: ^5.0.0 || ^6.0.0 + svelte-eslint-parser@1.8.0: resolution: {integrity: sha512-mikR1qwIVy3t5WthUoAXkMwxkXvabZP9FJgdx35Ei7EbGWmctva1Pih16Koeor/bdNNq8NXHlwKGS6NkYTawLg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0, pnpm: 10.34.1} @@ -2543,6 +2787,10 @@ packages: resolution: {integrity: sha512-/d0QHehmRuJW8gVz395MTkPcPozxzdjBMBE8oEYGz8O3b9KTMzzQ9ZHJQLuFKOHOPQbU6kx/X4iid/EBBzH7iw==} engines: {node: '>=18'} + svelte@5.59.2: + resolution: {integrity: sha512-XsSgJYzoRJ1GfD5IOJorwRy77eIEv8I1p+3wDQGkDIEbVd8BFXCy4PTQ8diPtuazRRHq6IWidBg2m3rDrqNtcA==} + engines: {node: '>=18'} + sveltekit-superforms@2.30.2: resolution: {integrity: sha512-6sR70ZfjFMAfdNure/Bu26o1rY32+WGxebko1L8jUFS+qZw5fxIHBPkUaTpNBkOIlJZ/UJwoNCYCm5xK2Z7Kqw==} peerDependencies: @@ -2663,11 +2911,14 @@ packages: engines: {node: '>=14.17'} hasBin: true + undici-types@5.26.5: + resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + undici-types@8.3.0: resolution: {integrity: sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==} - undici@7.28.0: - resolution: {integrity: sha512-cRZYrTDwWznlnRiPjggAGxZXanty6M8RV1ff8Wm4LWXBp7/IG8v5DnOm74DtUBp9OONpK75YlPnIjQqX0dBDtA==} + undici@7.30.2: + resolution: {integrity: sha512-mLyPQnHwUxaM/rideoK/+KL8DaAJLRl4aBCfmX444aCSLnIaomqPLtNRe2jdCYcsk5wZzXrDIQC8ZeYNRAYyIA==} engines: {node: '>=20.18.1'} unenv@2.0.0-rc.24: @@ -2815,6 +3066,10 @@ packages: jsdom: optional: true + web-streams-polyfill@4.0.0-beta.3: + resolution: {integrity: sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==} + engines: {node: '>= 14'} + webidl-conversions@3.0.1: resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} @@ -2835,21 +3090,22 @@ packages: resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} engines: {node: '>=0.10.0'} - workerd@1.20260722.1: - resolution: {integrity: sha512-NycKuc1x2onvsRfGGpM093vRlLFU2zHDAM0+APpccfg4+gZxDGCH27RmdDvkeBuoZyYqgLo3oAfF6re4mvC3vQ==} + workerd@1.20261123.1: + resolution: {integrity: sha512-2FifnvyeJeCgL9G9QbFqldSrkwMkiWt7VqXjA025H8I4vjMsSHUKTmZ6+72VbB8CJZct/gzm2u8o7ltuRaPOmw==} engines: {node: '>=16'} hasBin: true - worktop@0.8.0-next.18: - resolution: {integrity: sha512-+TvsA6VAVoMC3XDKR5MoC/qlLqDixEfOBysDEKnPIPou/NvoPWCAuXHXMsswwlvmEuvX56lQjvELLyLuzTKvRw==} - engines: {node: '>=12'} + workerd@1.20261127.1: + resolution: {integrity: sha512-0iiH4PRpbGnXCh9MWYczOWciw6d0ddFZ1W/I/W8qCRS2oZSNv6swptZ/n1U5pJRyrYaO9Eh6oo3Kc7+iPix4hg==} + engines: {node: '>=16'} + hasBin: true - wrangler@4.115.0: - resolution: {integrity: sha512-+upG2VW66M1sjb43yzgUZ6Ss8iYpJ6+7F3U4GF8TY5EYd+08sYdS54d24AEwCnhuef3J9KlSPusqiqR9WYy1UA==} - engines: {node: '>=22.0.0'} + wrangler@4.169.0: + resolution: {integrity: sha512-xzbNeNBbfUn2Y9KLGQ+no60g8xr+2pwckSLAAPFg1pzgBqDUVYvkBs3GImhQVqkW6rq4pX+T8UdApTFZ/yIMPQ==} + engines: {node: '>=22.12.0'} hasBin: true peerDependencies: - '@cloudflare/workers-types': ^5.20260722.1 + '@cloudflare/workers-types': ^5.20261127.1 peerDependenciesMeta: '@cloudflare/workers-types': optional: true @@ -2878,6 +3134,18 @@ packages: utf-8-validate: optional: true + ws@8.22.0: + resolution: {integrity: sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==} + 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 + wsl-utils@0.3.1: resolution: {integrity: sha512-g/eziiSUNBSsdDJtCLB8bdYEUMj4jR7AGeUo96p/3dTafgjHhpF4RiCFPiRILwjQoDXx5MqkBr4fwWtR3Ky4Wg==} engines: {node: '>=20'} @@ -3070,30 +3338,67 @@ snapshots: human-id: 4.2.0 prettier: 2.8.8 - '@cloudflare/kv-asset-handler@0.5.0': {} + '@cloudflare/kv-asset-handler@0.5.1': {} - '@cloudflare/unenv-preset@2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260722.1)': + '@cloudflare/unenv-preset@2.16.2(unenv@2.0.0-rc.24)(workerd@1.20261127.1)': dependencies: unenv: 2.0.0-rc.24 optionalDependencies: - workerd: 1.20260722.1 + workerd: 1.20261127.1 - '@cloudflare/workerd-darwin-64@1.20260722.1': + '@cloudflare/vite-plugin@1.70.2(@types/node@26.1.0)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0))(workerd@1.20261127.1)(wrangler@4.169.0(@types/node@26.1.0)(vitest@4.1.10))': + dependencies: + '@cloudflare/unenv-preset': 2.16.2(unenv@2.0.0-rc.24)(workerd@1.20261127.1) + miniflare: 5.20261123.1-beta(@types/node@26.1.0) + unenv: 2.0.0-rc.24 + vite: 8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0) + wrangler: 4.169.0(@types/node@26.1.0)(vitest@4.1.10) + ws: 8.22.0 + transitivePeerDependencies: + - '@types/node' + - bufferutil + - kerberos + - utf-8-validate + - workerd + + '@cloudflare/workerd-darwin-64@1.20261123.1': + optional: true + + '@cloudflare/workerd-darwin-64@1.20261127.1': + optional: true + + '@cloudflare/workerd-darwin-arm64@1.20261123.1': + optional: true + + '@cloudflare/workerd-darwin-arm64@1.20261127.1': + optional: true + + '@cloudflare/workerd-linux-64@1.20261123.1': optional: true - '@cloudflare/workerd-darwin-arm64@1.20260722.1': + '@cloudflare/workerd-linux-64@1.20261127.1': optional: true - '@cloudflare/workerd-linux-64@1.20260722.1': + '@cloudflare/workerd-linux-arm64@1.20261123.1': optional: true - '@cloudflare/workerd-linux-arm64@1.20260722.1': + '@cloudflare/workerd-linux-arm64@1.20261127.1': optional: true - '@cloudflare/workerd-windows-64@1.20260722.1': + '@cloudflare/workerd-windows-64@1.20261123.1': optional: true - '@cloudflare/workers-types@4.20260702.1': {} + '@cloudflare/workerd-windows-64@1.20261127.1': + optional: true + + '@cloudflare/workers-utils@0.58.0(vitest@4.1.10)': + dependencies: + '@cspotcode/source-map-support': 0.8.1 + chalk: 5.3.0 + dotenv: 16.3.1 + undici: 7.30.2 + optionalDependencies: + vitest: 4.1.10(@types/node@26.1.0)(@vitest/browser-playwright@4.1.10)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) '@cspotcode/source-map-support@0.8.1': dependencies: @@ -3121,87 +3426,92 @@ snapshots: tslib: 2.8.1 optional: true + '@emnapi/runtime@1.11.3': + dependencies: + tslib: 2.8.1 + optional: true + '@emnapi/wasi-threads@1.2.2': dependencies: tslib: 2.8.1 optional: true - '@esbuild/aix-ppc64@0.28.1': + '@esbuild/aix-ppc64@0.28.2': optional: true - '@esbuild/android-arm64@0.28.1': + '@esbuild/android-arm64@0.28.2': optional: true - '@esbuild/android-arm@0.28.1': + '@esbuild/android-arm@0.28.2': optional: true - '@esbuild/android-x64@0.28.1': + '@esbuild/android-x64@0.28.2': optional: true - '@esbuild/darwin-arm64@0.28.1': + '@esbuild/darwin-arm64@0.28.2': optional: true - '@esbuild/darwin-x64@0.28.1': + '@esbuild/darwin-x64@0.28.2': optional: true - '@esbuild/freebsd-arm64@0.28.1': + '@esbuild/freebsd-arm64@0.28.2': optional: true - '@esbuild/freebsd-x64@0.28.1': + '@esbuild/freebsd-x64@0.28.2': optional: true - '@esbuild/linux-arm64@0.28.1': + '@esbuild/linux-arm64@0.28.2': optional: true - '@esbuild/linux-arm@0.28.1': + '@esbuild/linux-arm@0.28.2': optional: true - '@esbuild/linux-ia32@0.28.1': + '@esbuild/linux-ia32@0.28.2': optional: true - '@esbuild/linux-loong64@0.28.1': + '@esbuild/linux-loong64@0.28.2': optional: true - '@esbuild/linux-mips64el@0.28.1': + '@esbuild/linux-mips64el@0.28.2': optional: true - '@esbuild/linux-ppc64@0.28.1': + '@esbuild/linux-ppc64@0.28.2': optional: true - '@esbuild/linux-riscv64@0.28.1': + '@esbuild/linux-riscv64@0.28.2': optional: true - '@esbuild/linux-s390x@0.28.1': + '@esbuild/linux-s390x@0.28.2': optional: true - '@esbuild/linux-x64@0.28.1': + '@esbuild/linux-x64@0.28.2': optional: true - '@esbuild/netbsd-arm64@0.28.1': + '@esbuild/netbsd-arm64@0.28.2': optional: true - '@esbuild/netbsd-x64@0.28.1': + '@esbuild/netbsd-x64@0.28.2': optional: true - '@esbuild/openbsd-arm64@0.28.1': + '@esbuild/openbsd-arm64@0.28.2': optional: true - '@esbuild/openbsd-x64@0.28.1': + '@esbuild/openbsd-x64@0.28.2': optional: true - '@esbuild/openharmony-arm64@0.28.1': + '@esbuild/openharmony-arm64@0.28.2': optional: true - '@esbuild/sunos-x64@0.28.1': + '@esbuild/sunos-x64@0.28.2': optional: true - '@esbuild/win32-arm64@0.28.1': + '@esbuild/win32-arm64@0.28.2': optional: true - '@esbuild/win32-ia32@0.28.1': + '@esbuild/win32-ia32@0.28.2': optional: true - '@esbuild/win32-x64@0.28.1': + '@esbuild/win32-x64@0.28.2': optional: true '@eslint-community/eslint-utils@4.9.1(eslint@10.6.0(jiti@2.7.0))': @@ -3334,108 +3644,108 @@ snapshots: '@img/colour@1.1.0': {} - '@img/sharp-darwin-arm64@0.35.2': + '@img/sharp-darwin-arm64@0.35.5': optionalDependencies: - '@img/sharp-libvips-darwin-arm64': 1.3.1 + '@img/sharp-libvips-darwin-arm64': 1.3.4 optional: true - '@img/sharp-darwin-x64@0.35.2': + '@img/sharp-darwin-x64@0.35.5': optionalDependencies: - '@img/sharp-libvips-darwin-x64': 1.3.1 + '@img/sharp-libvips-darwin-x64': 1.3.4 optional: true - '@img/sharp-freebsd-wasm32@0.35.2': + '@img/sharp-freebsd-wasm32@0.35.5': dependencies: - '@img/sharp-wasm32': 0.35.2 + '@img/sharp-wasm32': 0.35.5 optional: true - '@img/sharp-libvips-darwin-arm64@1.3.1': + '@img/sharp-libvips-darwin-arm64@1.3.4': optional: true - '@img/sharp-libvips-darwin-x64@1.3.1': + '@img/sharp-libvips-darwin-x64@1.3.4': optional: true - '@img/sharp-libvips-linux-arm64@1.3.1': + '@img/sharp-libvips-linux-arm64@1.3.4': optional: true - '@img/sharp-libvips-linux-arm@1.3.1': + '@img/sharp-libvips-linux-arm@1.3.4': optional: true - '@img/sharp-libvips-linux-ppc64@1.3.1': + '@img/sharp-libvips-linux-ppc64@1.3.4': optional: true - '@img/sharp-libvips-linux-riscv64@1.3.1': + '@img/sharp-libvips-linux-riscv64@1.3.4': optional: true - '@img/sharp-libvips-linux-s390x@1.3.1': + '@img/sharp-libvips-linux-s390x@1.3.4': optional: true - '@img/sharp-libvips-linux-x64@1.3.1': + '@img/sharp-libvips-linux-x64@1.3.4': optional: true - '@img/sharp-libvips-linuxmusl-arm64@1.3.1': + '@img/sharp-libvips-linuxmusl-arm64@1.3.4': optional: true - '@img/sharp-libvips-linuxmusl-x64@1.3.1': + '@img/sharp-libvips-linuxmusl-x64@1.3.4': optional: true - '@img/sharp-linux-arm64@0.35.2': + '@img/sharp-linux-arm64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-arm64': 1.3.1 + '@img/sharp-libvips-linux-arm64': 1.3.4 optional: true - '@img/sharp-linux-arm@0.35.2': + '@img/sharp-linux-arm@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-arm': 1.3.1 + '@img/sharp-libvips-linux-arm': 1.3.4 optional: true - '@img/sharp-linux-ppc64@0.35.2': + '@img/sharp-linux-ppc64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-ppc64': 1.3.1 + '@img/sharp-libvips-linux-ppc64': 1.3.4 optional: true - '@img/sharp-linux-riscv64@0.35.2': + '@img/sharp-linux-riscv64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-riscv64': 1.3.1 + '@img/sharp-libvips-linux-riscv64': 1.3.4 optional: true - '@img/sharp-linux-s390x@0.35.2': + '@img/sharp-linux-s390x@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-s390x': 1.3.1 + '@img/sharp-libvips-linux-s390x': 1.3.4 optional: true - '@img/sharp-linux-x64@0.35.2': + '@img/sharp-linux-x64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-x64': 1.3.1 + '@img/sharp-libvips-linux-x64': 1.3.4 optional: true - '@img/sharp-linuxmusl-arm64@0.35.2': + '@img/sharp-linuxmusl-arm64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linuxmusl-arm64': 1.3.1 + '@img/sharp-libvips-linuxmusl-arm64': 1.3.4 optional: true - '@img/sharp-linuxmusl-x64@0.35.2': + '@img/sharp-linuxmusl-x64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linuxmusl-x64': 1.3.1 + '@img/sharp-libvips-linuxmusl-x64': 1.3.4 optional: true - '@img/sharp-wasm32@0.35.2': + '@img/sharp-wasm32@0.35.5': dependencies: - '@emnapi/runtime': 1.11.1 + '@emnapi/runtime': 1.11.3 optional: true - '@img/sharp-webcontainers-wasm32@0.35.2': + '@img/sharp-webcontainers-wasm32@0.35.5': dependencies: - '@img/sharp-wasm32': 0.35.2 + '@img/sharp-wasm32': 0.35.5 optional: true - '@img/sharp-win32-arm64@0.35.2': + '@img/sharp-win32-arm64@0.35.5': optional: true - '@img/sharp-win32-ia32@0.35.2': + '@img/sharp-win32-ia32@0.35.5': optional: true - '@img/sharp-win32-x64@0.35.2': + '@img/sharp-win32-x64@0.35.5': optional: true '@inquirer/external-editor@1.0.3(@types/node@26.1.0)': @@ -3463,6 +3773,8 @@ snapshots: '@jridgewell/sourcemap-codec@1.5.5': {} + '@jridgewell/sourcemap-codec@1.6.0': {} + '@jridgewell/trace-mapping@0.3.31': dependencies: '@jridgewell/resolve-uri': 3.1.2 @@ -3479,6 +3791,10 @@ snapshots: dependencies: svelte: 5.56.4(@typescript-eslint/types@8.63.0) + '@lucide/svelte@1.23.0(svelte@5.59.2(@typescript-eslint/types@8.63.0))': + dependencies: + svelte: 5.59.2(@typescript-eslint/types@8.63.0) + '@lukeed/ms@2.0.2': {} '@manypkg/find-root@1.1.0': @@ -3627,22 +3943,34 @@ snapshots: dependencies: acorn: 8.17.0 - '@sveltejs/adapter-auto@7.0.1(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))': + '@sveltejs/acorn-typescript@1.0.13(acorn@8.19.0)': dependencies: - '@sveltejs/kit': 2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + acorn: 8.19.0 - '@sveltejs/adapter-cloudflare@7.2.9(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(wrangler@4.115.0)': + '@sveltejs/adapter-auto@7.0.1(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))': dependencies: - '@cloudflare/workers-types': 4.20260702.1 - '@sveltejs/kit': 2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) - worktop: 0.8.0-next.18 - wrangler: 4.115.0 + '@sveltejs/kit': 2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) - '@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0))': + '@sveltejs/adapter-cloudflare@9.0.1(@sveltejs/kit@3.4.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.59.2(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(@types/node@26.1.0)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0))(workerd@1.20261127.1)(wrangler@4.169.0(@types/node@26.1.0)(vitest@4.1.10))': + dependencies: + '@cloudflare/vite-plugin': 1.70.2(@types/node@26.1.0)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0))(workerd@1.20261127.1)(wrangler@4.169.0(@types/node@26.1.0)(vitest@4.1.10)) + '@rolldown/pluginutils': 1.0.1 + '@sveltejs/kit': 3.4.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.59.2(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) + magic-string: 1.4.5 + wrangler: 4.169.0(@types/node@26.1.0)(vitest@4.1.10) + transitivePeerDependencies: + - '@types/node' + - bufferutil + - kerberos + - utf-8-validate + - vite + - workerd + + '@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0))': dependencies: '@standard-schema/spec': 1.1.0 '@sveltejs/acorn-typescript': 1.0.11(acorn@8.17.0) - '@sveltejs/vite-plugin-svelte': 7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + '@sveltejs/vite-plugin-svelte': 7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) '@types/cookie': 0.6.0 acorn: 8.17.0 cookie: 0.7.2 @@ -3654,12 +3982,31 @@ snapshots: set-cookie-parser: 3.1.1 sirv: 3.0.2 svelte: 5.56.4(@typescript-eslint/types@8.63.0) - vite: 8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0) + vite: 8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0) + optionalDependencies: + typescript: 6.0.3 + + '@sveltejs/kit@3.4.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.59.2(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0))': + dependencies: + '@jridgewell/trace-mapping': 0.3.31 + '@rolldown/pluginutils': 1.0.1 + '@standard-schema/spec': 1.1.0 + '@sveltejs/vite-plugin-svelte': 7.2.0(svelte@5.59.2(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) + cookie: 2.0.2 + devalue: 5.9.4 + esm-env: 1.2.2 + magic-string: 1.4.5 + mrmime: 2.0.1 + sirv: 3.0.2 + svelte: 5.59.2(@typescript-eslint/types@8.63.0) + vite: 8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0) optionalDependencies: typescript: 6.0.3 '@sveltejs/load-config@0.2.0': {} + '@sveltejs/load-config@0.2.3': {} + '@sveltejs/package@2.5.8(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)': dependencies: chokidar: 5.0.0 @@ -3671,14 +4018,23 @@ snapshots: transitivePeerDependencies: - typescript - '@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0))': + '@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0))': dependencies: deepmerge: 4.3.1 magic-string: 0.30.21 obug: 2.1.3 svelte: 5.56.4(@typescript-eslint/types@8.63.0) - vite: 8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0) - vitefu: 1.1.3(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + vite: 8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0) + vitefu: 1.1.3(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) + + '@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.59.2(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0))': + dependencies: + deepmerge: 4.3.1 + magic-string: 0.30.21 + obug: 2.1.3 + svelte: 5.59.2(@typescript-eslint/types@8.63.0) + vite: 8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0) + vitefu: 1.1.3(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) '@swc/helpers@0.5.23': dependencies: @@ -3755,18 +4111,18 @@ snapshots: postcss-selector-parser: 6.0.10 tailwindcss: 4.3.2 - '@tailwindcss/vite@4.3.2(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0))': + '@tailwindcss/vite@4.3.2(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0))': dependencies: '@tailwindcss/node': 4.3.2 '@tailwindcss/oxide': 4.3.2 tailwindcss: 4.3.2 - vite: 8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0) + vite: 8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0) '@tanstack/table-core@8.21.3': {} - '@testing-library/svelte-core@1.1.3(svelte@5.56.4(@typescript-eslint/types@8.63.0))': + '@testing-library/svelte-core@1.1.3(svelte@5.59.2(@typescript-eslint/types@8.63.0))': dependencies: - svelte: 5.56.4(@typescript-eslint/types@8.63.0) + svelte: 5.59.2(@typescript-eslint/types@8.63.0) '@tybys/wasm-util@0.10.3': dependencies: @@ -3794,8 +4150,17 @@ snapshots: '@types/lodash@4.17.24': {} + '@types/node-fetch@2.6.13': + dependencies: + '@types/node': 26.1.0 + form-data: 4.0.6 + '@types/node@12.20.55': {} + '@types/node@18.19.130': + dependencies: + undici-types: 5.26.5 + '@types/node@26.1.0': dependencies: undici-types: 8.3.0 @@ -3807,6 +4172,12 @@ snapshots: '@types/validator@13.15.10': optional: true + '@types/yargs-parser@21.0.3': {} + + '@types/yargs@17.0.24': + dependencies: + '@types/yargs-parser': 21.0.3 + '@typeschema/class-validator@0.3.0(@types/json-schema@7.0.15)(class-validator@0.14.4)': dependencies: '@typeschema/core': 0.14.0(@types/json-schema@7.0.15) @@ -3932,29 +4303,29 @@ snapshots: validator: 13.15.35 optional: true - '@vitest/browser-playwright@4.1.10(playwright@1.61.1)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0))(vitest@4.1.10)': + '@vitest/browser-playwright@4.1.10(playwright@1.61.1)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0))(vitest@4.1.10)': dependencies: - '@vitest/browser': 4.1.10(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0))(vitest@4.1.10) - '@vitest/mocker': 4.1.10(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + '@vitest/browser': 4.1.10(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0))(vitest@4.1.10) + '@vitest/mocker': 4.1.10(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) playwright: 1.61.1 tinyrainbow: 3.1.0 - vitest: 4.1.10(@types/node@26.1.0)(@vitest/browser-playwright@4.1.10)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + vitest: 4.1.10(@types/node@26.1.0)(@vitest/browser-playwright@4.1.10)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) transitivePeerDependencies: - bufferutil - msw - utf-8-validate - vite - '@vitest/browser@4.1.10(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0))(vitest@4.1.10)': + '@vitest/browser@4.1.10(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0))(vitest@4.1.10)': dependencies: '@blazediff/core': 1.9.1 - '@vitest/mocker': 4.1.10(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + '@vitest/mocker': 4.1.10(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) '@vitest/utils': 4.1.10 magic-string: 0.30.21 pngjs: 7.0.0 sirv: 3.0.2 tinyrainbow: 3.1.0 - vitest: 4.1.10(@types/node@26.1.0)(@vitest/browser-playwright@4.1.10)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + vitest: 4.1.10(@types/node@26.1.0)(@vitest/browser-playwright@4.1.10)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) ws: 8.21.0 transitivePeerDependencies: - bufferutil @@ -3971,13 +4342,13 @@ snapshots: chai: 6.2.2 tinyrainbow: 3.1.0 - '@vitest/mocker@4.1.10(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0))': + '@vitest/mocker@4.1.10(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0))': dependencies: '@vitest/spy': 4.1.10 estree-walker: 3.0.3 magic-string: 0.30.21 optionalDependencies: - vite: 8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0) + vite: 8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0) '@vitest/pretty-format@4.1.10': dependencies: @@ -4013,6 +4384,12 @@ snapshots: acorn@8.17.0: {} + acorn@8.19.0: {} + + agentkeepalive@4.6.0: + dependencies: + humanize-ms: 1.2.1 + ajv@6.15.0: dependencies: fast-deep-equal: 3.1.3 @@ -4048,6 +4425,8 @@ snapshots: assertion-error@2.0.1: {} + asynckit@0.4.0: {} + axobject-query@4.1.0: {} balanced-match@4.0.4: {} @@ -4058,20 +4437,31 @@ snapshots: big-integer@1.6.52: {} - bits-ui@2.18.1(@internationalized/date@3.12.2)(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0)): + bits-ui@2.18.1(@internationalized/date@3.12.2)(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0)): dependencies: '@floating-ui/core': 1.7.5 '@floating-ui/dom': 1.7.6 '@internationalized/date': 3.12.2 esm-env: 1.2.2 - runed: 0.35.1(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0)) + runed: 0.35.1(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0)) svelte: 5.56.4(@typescript-eslint/types@8.63.0) - svelte-toolbelt: 0.10.6(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0)) + svelte-toolbelt: 0.10.6(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0)) tabbable: 6.5.0 transitivePeerDependencies: - '@sveltejs/kit' - blake3-wasm@2.1.5: {} + bits-ui@2.18.1(@internationalized/date@3.12.2)(@sveltejs/kit@3.4.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.59.2(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0)): + dependencies: + '@floating-ui/core': 1.7.5 + '@floating-ui/dom': 1.7.6 + '@internationalized/date': 3.12.2 + esm-env: 1.2.2 + runed: 0.35.1(@sveltejs/kit@3.4.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.59.2(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0)) + svelte: 5.59.2(@typescript-eslint/types@8.63.0) + svelte-toolbelt: 0.10.6(@sveltejs/kit@3.4.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.59.2(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0)) + tabbable: 6.5.0 + transitivePeerDependencies: + - '@sveltejs/kit' brace-expansion@5.0.8: dependencies: @@ -4100,11 +4490,18 @@ snapshots: pkg-types: 2.3.1 rc9: 3.0.1 + call-bind-apply-helpers@1.0.2: + dependencies: + es-errors: 1.3.0 + function-bind: 1.1.2 + camelcase@8.0.0: optional: true chai@6.2.2: {} + chalk@5.3.0: {} + chardet@2.2.0: {} chokidar@4.0.3: @@ -4122,10 +4519,26 @@ snapshots: validator: 13.15.35 optional: true + cloudflare@5.2.0: + dependencies: + '@types/node': 18.19.130 + '@types/node-fetch': 2.6.13 + abort-controller: 3.0.0 + agentkeepalive: 4.6.0 + form-data-encoder: 1.7.2 + formdata-node: 4.4.1 + node-fetch: 2.7.0 + transitivePeerDependencies: + - encoding + clsx@2.1.1: {} color-support@1.1.3: {} + combined-stream@1.0.8: + dependencies: + delayed-stream: 1.0.0 + commander@15.0.0: {} confbox@0.2.4: {} @@ -4136,6 +4549,8 @@ snapshots: cookie@1.1.1: {} + cookie@2.0.2: {} + cross-spawn@7.0.6: dependencies: path-key: 3.1.1 @@ -4170,6 +4585,8 @@ snapshots: defu@6.1.7: {} + delayed-stream@1.0.0: {} + dequal@2.0.3: {} destr@2.0.5: {} @@ -4180,6 +4597,12 @@ snapshots: devalue@5.8.1: {} + devalue@5.9.4: {} + + devalue@6.0.4: {} + + devtools-protocol@0.0.1182435: {} + dir-glob@3.0.1: dependencies: path-type: 4.0.0 @@ -4187,8 +4610,16 @@ snapshots: dlv@1.1.3: optional: true + dotenv@16.3.1: {} + dotenv@17.4.2: {} + dunder-proto@1.0.1: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-errors: 1.3.0 + gopd: 1.2.0 + effect@3.21.4: dependencies: '@standard-schema/spec': 1.1.0 @@ -4207,36 +4638,51 @@ snapshots: error-stack-parser-es@1.0.5: {} + es-define-property@1.0.1: {} + + es-errors@1.3.0: {} + es-module-lexer@2.3.0: {} - esbuild@0.28.1: + es-object-atoms@1.1.2: + dependencies: + es-errors: 1.3.0 + + es-set-tostringtag@2.1.0: + dependencies: + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + has-tostringtag: 1.0.2 + hasown: 2.0.4 + + esbuild@0.28.2: optionalDependencies: - '@esbuild/aix-ppc64': 0.28.1 - '@esbuild/android-arm': 0.28.1 - '@esbuild/android-arm64': 0.28.1 - '@esbuild/android-x64': 0.28.1 - '@esbuild/darwin-arm64': 0.28.1 - '@esbuild/darwin-x64': 0.28.1 - '@esbuild/freebsd-arm64': 0.28.1 - '@esbuild/freebsd-x64': 0.28.1 - '@esbuild/linux-arm': 0.28.1 - '@esbuild/linux-arm64': 0.28.1 - '@esbuild/linux-ia32': 0.28.1 - '@esbuild/linux-loong64': 0.28.1 - '@esbuild/linux-mips64el': 0.28.1 - '@esbuild/linux-ppc64': 0.28.1 - '@esbuild/linux-riscv64': 0.28.1 - '@esbuild/linux-s390x': 0.28.1 - '@esbuild/linux-x64': 0.28.1 - '@esbuild/netbsd-arm64': 0.28.1 - '@esbuild/netbsd-x64': 0.28.1 - '@esbuild/openbsd-arm64': 0.28.1 - '@esbuild/openbsd-x64': 0.28.1 - '@esbuild/openharmony-arm64': 0.28.1 - '@esbuild/sunos-x64': 0.28.1 - '@esbuild/win32-arm64': 0.28.1 - '@esbuild/win32-ia32': 0.28.1 - '@esbuild/win32-x64': 0.28.1 + '@esbuild/aix-ppc64': 0.28.2 + '@esbuild/android-arm': 0.28.2 + '@esbuild/android-arm64': 0.28.2 + '@esbuild/android-x64': 0.28.2 + '@esbuild/darwin-arm64': 0.28.2 + '@esbuild/darwin-x64': 0.28.2 + '@esbuild/freebsd-arm64': 0.28.2 + '@esbuild/freebsd-x64': 0.28.2 + '@esbuild/linux-arm': 0.28.2 + '@esbuild/linux-arm64': 0.28.2 + '@esbuild/linux-ia32': 0.28.2 + '@esbuild/linux-loong64': 0.28.2 + '@esbuild/linux-mips64el': 0.28.2 + '@esbuild/linux-ppc64': 0.28.2 + '@esbuild/linux-riscv64': 0.28.2 + '@esbuild/linux-s390x': 0.28.2 + '@esbuild/linux-x64': 0.28.2 + '@esbuild/netbsd-arm64': 0.28.2 + '@esbuild/netbsd-x64': 0.28.2 + '@esbuild/openbsd-arm64': 0.28.2 + '@esbuild/openbsd-x64': 0.28.2 + '@esbuild/openharmony-arm64': 0.28.2 + '@esbuild/sunos-x64': 0.28.2 + '@esbuild/win32-arm64': 0.28.2 + '@esbuild/win32-ia32': 0.28.2 + '@esbuild/win32-x64': 0.28.2 escape-string-regexp@4.0.0: {} @@ -4244,7 +4690,7 @@ snapshots: dependencies: eslint: 10.6.0(jiti@2.7.0) - eslint-plugin-svelte@3.20.0(eslint@10.6.0(jiti@2.7.0))(svelte@5.56.4(@typescript-eslint/types@8.63.0)): + eslint-plugin-svelte@3.20.0(eslint@10.6.0(jiti@2.7.0))(svelte@5.59.2(@typescript-eslint/types@8.63.0)): dependencies: '@eslint-community/eslint-utils': 4.9.1(eslint@10.6.0(jiti@2.7.0)) '@jridgewell/sourcemap-codec': 1.5.5 @@ -4256,9 +4702,9 @@ snapshots: postcss-load-config: 3.1.4(postcss@8.5.23) postcss-safe-parser: 7.0.1(postcss@8.5.23) semver: 7.8.5 - svelte-eslint-parser: 1.8.0(svelte@5.56.4(@typescript-eslint/types@8.63.0)) + svelte-eslint-parser: 1.8.0(svelte@5.59.2(@typescript-eslint/types@8.63.0)) optionalDependencies: - svelte: 5.56.4(@typescript-eslint/types@8.63.0) + svelte: 5.59.2(@typescript-eslint/types@8.63.0) transitivePeerDependencies: - ts-node @@ -4343,6 +4789,12 @@ snapshots: optionalDependencies: '@typescript-eslint/types': 8.63.0 + esrap@2.4.2(@typescript-eslint/types@8.63.0): + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + optionalDependencies: + '@typescript-eslint/types': 8.63.0 + esrecurse@4.3.0: dependencies: estraverse: 5.3.0 @@ -4424,11 +4876,26 @@ snapshots: flatted@3.4.2: {} - formsnap@2.0.1(svelte@5.56.4(@typescript-eslint/types@8.63.0))(sveltekit-superforms@2.30.2(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(@types/json-schema@7.0.15)(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)): + form-data-encoder@1.7.2: {} + + form-data@4.0.6: + dependencies: + asynckit: 0.4.0 + combined-stream: 1.0.8 + es-set-tostringtag: 2.1.0 + hasown: 2.0.4 + mime-types: 2.1.35 + + formdata-node@4.4.1: + dependencies: + node-domexception: 1.0.0 + web-streams-polyfill: 4.0.0-beta.3 + + formsnap@2.0.1(svelte@5.56.4(@typescript-eslint/types@8.63.0))(sveltekit-superforms@2.30.2(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(@types/json-schema@7.0.15)(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)): dependencies: svelte: 5.56.4(@typescript-eslint/types@8.63.0) svelte-toolbelt: 0.5.0(svelte@5.56.4(@typescript-eslint/types@8.63.0)) - sveltekit-superforms: 2.30.2(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(@types/json-schema@7.0.15)(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3) + sveltekit-superforms: 2.30.2(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(@types/json-schema@7.0.15)(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3) fs-extra@7.0.1: dependencies: @@ -4448,6 +4915,26 @@ snapshots: fsevents@2.3.3: optional: true + function-bind@1.1.2: {} + + get-intrinsic@1.3.0: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-define-property: 1.0.1 + es-errors: 1.3.0 + es-object-atoms: 1.1.2 + function-bind: 1.1.2 + get-proto: 1.0.1 + gopd: 1.2.0 + has-symbols: 1.1.0 + hasown: 2.0.4 + math-intrinsics: 1.1.0 + + get-proto@1.0.1: + dependencies: + dunder-proto: 1.0.1 + es-object-atoms: 1.1.2 + get-tsconfig@4.14.0: dependencies: resolve-pkg-maps: 1.0.0 @@ -4475,10 +4962,26 @@ snapshots: merge2: 1.4.1 slash: 3.0.0 + gopd@1.2.0: {} + graceful-fs@4.2.11: {} + has-symbols@1.1.0: {} + + has-tostringtag@1.0.2: + dependencies: + has-symbols: 1.1.0 + + hasown@2.0.4: + dependencies: + function-bind: 1.1.2 + human-id@4.2.0: {} + humanize-ms@1.2.1: + dependencies: + ms: 2.1.3 + iconv-lite@0.7.3: dependencies: safer-buffer: 2.1.2 @@ -4646,6 +5149,12 @@ snapshots: dependencies: '@jridgewell/sourcemap-codec': 1.5.5 + magic-string@1.4.5: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + math-intrinsics@1.1.0: {} + memoize-weak@1.0.2: {} merge2@1.4.1: {} @@ -4655,17 +5164,37 @@ snapshots: braces: 3.0.3 picomatch: 2.3.2 + mime-db@1.52.0: {} + + mime-types@2.1.35: + dependencies: + mime-db: 1.52.0 + mini-svg-data-uri@1.4.4: {} - miniflare@4.20260722.1: + miniflare@5.20261123.1-beta(@types/node@26.1.0): dependencies: '@cspotcode/source-map-support': 0.8.1 - sharp: 0.35.2 - undici: 7.28.0 - workerd: 1.20260722.1 + sharp: 0.35.5(@types/node@26.1.0) + undici: 7.30.2 + workerd: 1.20261123.1 ws: 8.21.0 youch: 4.1.0-beta.10 transitivePeerDependencies: + - '@types/node' + - bufferutil + - utf-8-validate + + miniflare@5.20261127.0-beta(@types/node@26.1.0): + dependencies: + '@cspotcode/source-map-support': 0.8.1 + sharp: 0.35.5(@types/node@26.1.0) + undici: 7.30.2 + workerd: 1.20261127.1 + ws: 8.21.0 + youch: 4.1.0-beta.10 + transitivePeerDependencies: + - '@types/node' - bufferutil - utf-8-validate @@ -4683,6 +5212,8 @@ snapshots: natural-compare@1.4.0: {} + node-domexception@1.0.0: {} + node-fetch@2.7.0: dependencies: whatwg-url: 5.0.0 @@ -4825,6 +5356,11 @@ snapshots: prettier: 3.9.4 svelte: 5.56.4(@typescript-eslint/types@8.63.0) + prettier-plugin-svelte@4.1.1(prettier@3.9.4)(svelte@5.59.2(@typescript-eslint/types@8.63.0)): + dependencies: + prettier: 3.9.4 + svelte: 5.59.2(@typescript-eslint/types@8.63.0) + prettier-plugin-tailwindcss@0.8.0(prettier-plugin-organize-imports@4.3.0(prettier@3.9.4)(typescript@6.0.3))(prettier-plugin-svelte@4.1.1(prettier@3.9.4)(svelte@5.56.4(@typescript-eslint/types@8.63.0)))(prettier@3.9.4): dependencies: prettier: 3.9.4 @@ -4832,6 +5368,13 @@ snapshots: prettier-plugin-organize-imports: 4.3.0(prettier@3.9.4)(typescript@6.0.3) prettier-plugin-svelte: 4.1.1(prettier@3.9.4)(svelte@5.56.4(@typescript-eslint/types@8.63.0)) + prettier-plugin-tailwindcss@0.8.0(prettier-plugin-organize-imports@4.3.0(prettier@3.9.4)(typescript@6.0.3))(prettier-plugin-svelte@4.1.1(prettier@3.9.4)(svelte@5.59.2(@typescript-eslint/types@8.63.0)))(prettier@3.9.4): + dependencies: + prettier: 3.9.4 + optionalDependencies: + prettier-plugin-organize-imports: 4.3.0(prettier@3.9.4)(typescript@6.0.3) + prettier-plugin-svelte: 4.1.1(prettier@3.9.4)(svelte@5.59.2(@typescript-eslint/types@8.63.0)) + prettier@2.8.8: {} prettier@3.9.4: {} @@ -4877,8 +5420,6 @@ snapshots: readdirp@5.0.0: {} - regexparam@3.0.0: {} - requires-port@1.0.0: {} resolve-from@5.0.0: {} @@ -4924,14 +5465,28 @@ snapshots: esm-env: 1.2.2 svelte: 5.56.4(@typescript-eslint/types@8.63.0) - runed@0.35.1(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0)): + runed@0.28.0(svelte@5.59.2(@typescript-eslint/types@8.63.0)): + dependencies: + esm-env: 1.2.2 + svelte: 5.59.2(@typescript-eslint/types@8.63.0) + + runed@0.35.1(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0)): dependencies: dequal: 2.0.3 esm-env: 1.2.2 lz-string: 1.5.0 svelte: 5.56.4(@typescript-eslint/types@8.63.0) optionalDependencies: - '@sveltejs/kit': 2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + '@sveltejs/kit': 2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) + + runed@0.35.1(@sveltejs/kit@3.4.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.59.2(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0)): + dependencies: + dequal: 2.0.3 + esm-env: 1.2.2 + lz-string: 1.5.0 + svelte: 5.59.2(@typescript-eslint/types@8.63.0) + optionalDependencies: + '@sveltejs/kit': 3.4.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.59.2(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) sade@1.8.1: dependencies: @@ -4949,37 +5504,38 @@ snapshots: set-cookie-parser@3.1.1: {} - sharp@0.35.2: + sharp@0.35.5(@types/node@26.1.0): dependencies: '@img/colour': 1.1.0 detect-libc: 2.1.2 semver: 7.8.5 optionalDependencies: - '@img/sharp-darwin-arm64': 0.35.2 - '@img/sharp-darwin-x64': 0.35.2 - '@img/sharp-freebsd-wasm32': 0.35.2 - '@img/sharp-libvips-darwin-arm64': 1.3.1 - '@img/sharp-libvips-darwin-x64': 1.3.1 - '@img/sharp-libvips-linux-arm': 1.3.1 - '@img/sharp-libvips-linux-arm64': 1.3.1 - '@img/sharp-libvips-linux-ppc64': 1.3.1 - '@img/sharp-libvips-linux-riscv64': 1.3.1 - '@img/sharp-libvips-linux-s390x': 1.3.1 - '@img/sharp-libvips-linux-x64': 1.3.1 - '@img/sharp-libvips-linuxmusl-arm64': 1.3.1 - '@img/sharp-libvips-linuxmusl-x64': 1.3.1 - '@img/sharp-linux-arm': 0.35.2 - '@img/sharp-linux-arm64': 0.35.2 - '@img/sharp-linux-ppc64': 0.35.2 - '@img/sharp-linux-riscv64': 0.35.2 - '@img/sharp-linux-s390x': 0.35.2 - '@img/sharp-linux-x64': 0.35.2 - '@img/sharp-linuxmusl-arm64': 0.35.2 - '@img/sharp-linuxmusl-x64': 0.35.2 - '@img/sharp-webcontainers-wasm32': 0.35.2 - '@img/sharp-win32-arm64': 0.35.2 - '@img/sharp-win32-ia32': 0.35.2 - '@img/sharp-win32-x64': 0.35.2 + '@img/sharp-darwin-arm64': 0.35.5 + '@img/sharp-darwin-x64': 0.35.5 + '@img/sharp-freebsd-wasm32': 0.35.5 + '@img/sharp-libvips-darwin-arm64': 1.3.4 + '@img/sharp-libvips-darwin-x64': 1.3.4 + '@img/sharp-libvips-linux-arm': 1.3.4 + '@img/sharp-libvips-linux-arm64': 1.3.4 + '@img/sharp-libvips-linux-ppc64': 1.3.4 + '@img/sharp-libvips-linux-riscv64': 1.3.4 + '@img/sharp-libvips-linux-s390x': 1.3.4 + '@img/sharp-libvips-linux-x64': 1.3.4 + '@img/sharp-libvips-linuxmusl-arm64': 1.3.4 + '@img/sharp-libvips-linuxmusl-x64': 1.3.4 + '@img/sharp-linux-arm': 0.35.5 + '@img/sharp-linux-arm64': 0.35.5 + '@img/sharp-linux-ppc64': 0.35.5 + '@img/sharp-linux-riscv64': 0.35.5 + '@img/sharp-linux-s390x': 0.35.5 + '@img/sharp-linux-x64': 0.35.5 + '@img/sharp-linuxmusl-arm64': 0.35.5 + '@img/sharp-linuxmusl-x64': 0.35.5 + '@img/sharp-webcontainers-wasm32': 0.35.5 + '@img/sharp-win32-arm64': 0.35.5 + '@img/sharp-win32-ia32': 0.35.5 + '@img/sharp-win32-x64': 0.35.5 + '@types/node': 26.1.0 shebang-command@2.0.0: dependencies: @@ -5040,7 +5596,20 @@ snapshots: transitivePeerDependencies: - picomatch - svelte-eslint-parser@1.8.0(svelte@5.56.4(@typescript-eslint/types@8.63.0)): + svelte-check@4.7.8(picomatch@4.0.5)(svelte@5.59.2(@typescript-eslint/types@8.63.0))(typescript@6.0.3): + dependencies: + '@jridgewell/trace-mapping': 0.3.31 + '@sveltejs/load-config': 0.2.3 + chokidar: 4.0.3 + fdir: 6.5.0(picomatch@4.0.5) + picocolors: 1.1.1 + sade: 1.8.1 + svelte: 5.59.2(@typescript-eslint/types@8.63.0) + typescript: 6.0.3 + transitivePeerDependencies: + - picomatch + + svelte-eslint-parser@1.8.0(svelte@5.59.2(@typescript-eslint/types@8.63.0)): dependencies: eslint-scope: 8.4.0 eslint-visitor-keys: 4.2.1 @@ -5050,22 +5619,36 @@ snapshots: postcss-selector-parser: 7.1.4 semver: 7.8.5 optionalDependencies: - svelte: 5.56.4(@typescript-eslint/types@8.63.0) + svelte: 5.59.2(@typescript-eslint/types@8.63.0) svelte-sonner@1.1.1(svelte@5.56.4(@typescript-eslint/types@8.63.0)): dependencies: runed: 0.28.0(svelte@5.56.4(@typescript-eslint/types@8.63.0)) svelte: 5.56.4(@typescript-eslint/types@8.63.0) - svelte-toolbelt@0.10.6(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0)): + svelte-sonner@1.1.1(svelte@5.59.2(@typescript-eslint/types@8.63.0)): + dependencies: + runed: 0.28.0(svelte@5.59.2(@typescript-eslint/types@8.63.0)) + svelte: 5.59.2(@typescript-eslint/types@8.63.0) + + svelte-toolbelt@0.10.6(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0)): dependencies: clsx: 2.1.1 - runed: 0.35.1(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0)) + runed: 0.35.1(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0)) style-to-object: 1.0.14 svelte: 5.56.4(@typescript-eslint/types@8.63.0) transitivePeerDependencies: - '@sveltejs/kit' + svelte-toolbelt@0.10.6(@sveltejs/kit@3.4.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.59.2(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0)): + dependencies: + clsx: 2.1.1 + runed: 0.35.1(@sveltejs/kit@3.4.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.59.2(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.59.2(@typescript-eslint/types@8.63.0)) + style-to-object: 1.0.14 + svelte: 5.59.2(@typescript-eslint/types@8.63.0) + transitivePeerDependencies: + - '@sveltejs/kit' + svelte-toolbelt@0.5.0(svelte@5.56.4(@typescript-eslint/types@8.63.0)): dependencies: clsx: 2.1.1 @@ -5107,9 +5690,29 @@ snapshots: transitivePeerDependencies: - '@typescript-eslint/types' - sveltekit-superforms@2.30.2(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(@types/json-schema@7.0.15)(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3): + svelte@5.59.2(@typescript-eslint/types@8.63.0): + dependencies: + '@jridgewell/remapping': 2.3.5 + '@jridgewell/sourcemap-codec': 1.6.0 + '@sveltejs/acorn-typescript': 1.0.13(acorn@8.19.0) + '@types/estree': 1.0.9 + acorn: 8.19.0 + aria-query: 5.3.1 + axobject-query: 4.1.0 + clsx: 2.1.1 + devalue: 6.0.4 + esm-env: 1.2.2 + esrap: 2.4.2(@typescript-eslint/types@8.63.0) + is-reference: 3.0.3 + locate-character: 3.0.0 + magic-string: 0.30.21 + zimmerframe: 1.1.4 + transitivePeerDependencies: + - '@typescript-eslint/types' + + sveltekit-superforms@2.30.2(@sveltejs/kit@2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(@types/json-schema@7.0.15)(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3): dependencies: - '@sveltejs/kit': 2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + '@sveltejs/kit': 2.69.1(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)))(svelte@5.56.4(@typescript-eslint/types@8.63.0))(typescript@6.0.3)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) devalue: 5.8.1 memoize-weak: 1.0.2 svelte: 5.56.4(@typescript-eslint/types@8.63.0) @@ -5228,9 +5831,11 @@ snapshots: typescript@6.0.3: {} + undici-types@5.26.5: {} + undici-types@8.3.0: {} - undici@7.28.0: {} + undici@7.30.2: {} unenv@2.0.0-rc.24: dependencies: @@ -5267,12 +5872,12 @@ snapshots: svelte: 5.56.4(@typescript-eslint/types@8.63.0) svelte-toolbelt: 0.7.1(svelte@5.56.4(@typescript-eslint/types@8.63.0)) - vite-plugin-devtools-json@1.0.0(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)): + vite-plugin-devtools-json@1.0.0(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)): dependencies: uuid: 11.1.1 - vite: 8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0) + vite: 8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0) - vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0): + vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0): dependencies: lightningcss: 1.32.0 picomatch: 4.0.5 @@ -5281,24 +5886,24 @@ snapshots: tinyglobby: 0.2.17 optionalDependencies: '@types/node': 26.1.0 - esbuild: 0.28.1 + esbuild: 0.28.2 fsevents: 2.3.3 jiti: 2.7.0 - vitefu@1.1.3(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)): + vitefu@1.1.3(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)): optionalDependencies: - vite: 8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0) + vite: 8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0) - vitest-browser-svelte@2.2.0(svelte@5.56.4(@typescript-eslint/types@8.63.0))(vitest@4.1.10): + vitest-browser-svelte@2.2.0(svelte@5.59.2(@typescript-eslint/types@8.63.0))(vitest@4.1.10): dependencies: - '@testing-library/svelte-core': 1.1.3(svelte@5.56.4(@typescript-eslint/types@8.63.0)) - svelte: 5.56.4(@typescript-eslint/types@8.63.0) - vitest: 4.1.10(@types/node@26.1.0)(@vitest/browser-playwright@4.1.10)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + '@testing-library/svelte-core': 1.1.3(svelte@5.59.2(@typescript-eslint/types@8.63.0)) + svelte: 5.59.2(@typescript-eslint/types@8.63.0) + vitest: 4.1.10(@types/node@26.1.0)(@vitest/browser-playwright@4.1.10)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) - vitest@4.1.10(@types/node@26.1.0)(@vitest/browser-playwright@4.1.10)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)): + vitest@4.1.10(@types/node@26.1.0)(@vitest/browser-playwright@4.1.10)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)): dependencies: '@vitest/expect': 4.1.10 - '@vitest/mocker': 4.1.10(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0)) + '@vitest/mocker': 4.1.10(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0)) '@vitest/pretty-format': 4.1.10 '@vitest/runner': 4.1.10 '@vitest/snapshot': 4.1.10 @@ -5315,14 +5920,16 @@ snapshots: tinyexec: 1.2.4 tinyglobby: 0.2.17 tinyrainbow: 3.1.0 - vite: 8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0) + vite: 8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0) why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 26.1.0 - '@vitest/browser-playwright': 4.1.10(playwright@1.61.1)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.1)(jiti@2.7.0))(vitest@4.1.10) + '@vitest/browser-playwright': 4.1.10(playwright@1.61.1)(vite@8.1.3(@types/node@26.1.0)(esbuild@0.28.2)(jiti@2.7.0))(vitest@4.1.10) transitivePeerDependencies: - msw + web-streams-polyfill@4.0.0-beta.3: {} + webidl-conversions@3.0.1: {} whatwg-url@5.0.0: @@ -5341,39 +5948,53 @@ snapshots: word-wrap@1.2.5: {} - workerd@1.20260722.1: + workerd@1.20261123.1: optionalDependencies: - '@cloudflare/workerd-darwin-64': 1.20260722.1 - '@cloudflare/workerd-darwin-arm64': 1.20260722.1 - '@cloudflare/workerd-linux-64': 1.20260722.1 - '@cloudflare/workerd-linux-arm64': 1.20260722.1 - '@cloudflare/workerd-windows-64': 1.20260722.1 + '@cloudflare/workerd-darwin-64': 1.20261123.1 + '@cloudflare/workerd-darwin-arm64': 1.20261123.1 + '@cloudflare/workerd-linux-64': 1.20261123.1 + '@cloudflare/workerd-linux-arm64': 1.20261123.1 + '@cloudflare/workerd-windows-64': 1.20261123.1 - worktop@0.8.0-next.18: - dependencies: - mrmime: 2.0.1 - regexparam: 3.0.0 + workerd@1.20261127.1: + optionalDependencies: + '@cloudflare/workerd-darwin-64': 1.20261127.1 + '@cloudflare/workerd-darwin-arm64': 1.20261127.1 + '@cloudflare/workerd-linux-64': 1.20261127.1 + '@cloudflare/workerd-linux-arm64': 1.20261127.1 + '@cloudflare/workerd-windows-64': 1.20261127.1 - wrangler@4.115.0: + wrangler@4.169.0(@types/node@26.1.0)(vitest@4.1.10): dependencies: - '@cloudflare/kv-asset-handler': 0.5.0 - '@cloudflare/unenv-preset': 2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260722.1) - blake3-wasm: 2.1.5 - esbuild: 0.28.1 - miniflare: 4.20260722.1 + '@cloudflare/kv-asset-handler': 0.5.1 + '@cloudflare/unenv-preset': 2.16.2(unenv@2.0.0-rc.24)(workerd@1.20261127.1) + '@cloudflare/workers-utils': 0.58.0(vitest@4.1.10) + '@cspotcode/source-map-support': 0.8.1 + '@types/yargs': 17.0.24 + cloudflare: 5.2.0 + devtools-protocol: 0.0.1182435 + esbuild: 0.28.2 + miniflare: 5.20261127.0-beta(@types/node@26.1.0) path-to-regexp: 6.3.0 + undici: 7.30.2 unenv: 2.0.0-rc.24 - workerd: 1.20260722.1 + workerd: 1.20261127.1 optionalDependencies: fsevents: 2.3.3 transitivePeerDependencies: + - '@types/node' - bufferutil + - encoding + - kerberos - utf-8-validate + - vitest ws@7.5.11: {} ws@8.21.0: {} + ws@8.22.0: {} + wsl-utils@0.3.1: dependencies: is-wsl: 3.1.1 diff --git a/activity/src/env.ts b/activity/src/env.ts new file mode 100644 index 0000000..1d3fc78 --- /dev/null +++ b/activity/src/env.ts @@ -0,0 +1,6 @@ +import { defineEnvVars } from '@sveltejs/kit/env'; + +export const variables = defineEnvVars({ + PUBLIC_DISCORD_CLIENT_ID: { public: true, static: true }, + PUBLIC_API_BASE: { public: true, static: true }, +}); diff --git a/activity/src/lib/api/index.ts b/activity/src/lib/api/index.ts index cc55154..64d38cf 100644 --- a/activity/src/lib/api/index.ts +++ b/activity/src/lib/api/index.ts @@ -1,4 +1,4 @@ -import { session } from '$lib/stores/session.svelte'; +import { session } from '#lib/stores/session.svelte.ts'; import { client } from './generated/client.gen'; import { deleteLink, diff --git a/activity/src/lib/api/runtime-config.ts b/activity/src/lib/api/runtime-config.ts index aa3c9f0..2b1e874 100644 --- a/activity/src/lib/api/runtime-config.ts +++ b/activity/src/lib/api/runtime-config.ts @@ -1,4 +1,4 @@ -import { PUBLIC_API_BASE } from '$env/static/public'; +import { PUBLIC_API_BASE } from '$app/env/public'; import type { CreateClientConfig } from './generated/client.gen'; // The API serves its routes at root; the browser calls them under "/api" (the prefix Discord strips in diff --git a/activity/src/lib/discord.ts b/activity/src/lib/discord.ts index d9d008f..d0c3444 100644 --- a/activity/src/lib/discord.ts +++ b/activity/src/lib/discord.ts @@ -1,9 +1,9 @@ -import { PUBLIC_DISCORD_CLIENT_ID } from '$env/static/public'; -import { api } from '$lib/api'; -import { connectRealtime } from '$lib/realtime'; -import { setDiscordParticipants } from '$lib/stores/room.svelte'; -import { session } from '$lib/stores/session.svelte'; -import { DiscordSDK } from '@discord/embedded-app-sdk'; +import { api } from '#lib/api/index.ts'; +import { connectRealtime } from '#lib/realtime.ts'; +import { setDiscordParticipants } from '#lib/stores/room.svelte.ts'; +import { session } from '#lib/stores/session.svelte.ts'; +import { PUBLIC_DISCORD_CLIENT_ID } from '$app/env/public'; +import { DiscordSDK, type Types } from '@discord/embedded-app-sdk'; const CLIENT_ID = PUBLIC_DISCORD_CLIENT_ID; @@ -23,7 +23,9 @@ export async function initDiscord(): Promise { response_type: 'code', state: '', prompt: 'none', - scope: ['identify'], + // application_identities.write lets the bot push stats to the user's Discord profile widget. + // The SDK's OAuthScopes union predates that scope (its RPC schema already knows it), hence the cast. + scope: ['identify', 'application_identities.write' as Types.OAuthScopes], }); const token = await api.exchangeToken(code); diff --git a/activity/src/lib/index.ts b/activity/src/lib/index.ts index 856f2b6..73c55ef 100644 --- a/activity/src/lib/index.ts +++ b/activity/src/lib/index.ts @@ -1 +1 @@ -// place files you want to import through the `$lib` alias in this folder. +// place files you want to import through the `#lib` alias in this folder. diff --git a/activity/src/lib/realtime.ts b/activity/src/lib/realtime.ts index 6dec805..fa25f21 100644 --- a/activity/src/lib/realtime.ts +++ b/activity/src/lib/realtime.ts @@ -1,13 +1,13 @@ -import { PUBLIC_API_BASE } from '$env/static/public'; import { applyRoster, markHubLeft, onShock, setConsent, upsertHubParticipant, -} from '$lib/stores/room.svelte'; -import { session } from '$lib/stores/session.svelte'; -import type { ConsentChangedEvent, Participant, ShockDeliveredEvent } from '$lib/types'; +} from '#lib/stores/room.svelte.ts'; +import { session } from '#lib/stores/session.svelte.ts'; +import type { ConsentChangedEvent, Participant, ShockDeliveredEvent } from '#lib/types.ts'; +import { PUBLIC_API_BASE } from '$app/env/public'; import * as signalR from '@microsoft/signalr'; const BASE = PUBLIC_API_BASE; diff --git a/activity/src/lib/stores/room.svelte.ts b/activity/src/lib/stores/room.svelte.ts index 62f93ae..2125ec3 100644 --- a/activity/src/lib/stores/room.svelte.ts +++ b/activity/src/lib/stores/room.svelte.ts @@ -1,4 +1,4 @@ -import type { Participant, ShockDeliveredEvent } from '$lib/types'; +import type { Participant, ShockDeliveredEvent } from '#lib/types.ts'; export interface RoomMember { discordId: string; diff --git a/activity/src/lib/stores/session.svelte.ts b/activity/src/lib/stores/session.svelte.ts index 8904ae3..e7e0c66 100644 --- a/activity/src/lib/stores/session.svelte.ts +++ b/activity/src/lib/stores/session.svelte.ts @@ -1,4 +1,4 @@ -import type { AuthUser } from '$lib/types'; +import type { AuthUser } from '#lib/types.ts'; export type SessionStatus = 'connecting' | 'ready' | 'error'; diff --git a/activity/src/lib/types.ts b/activity/src/lib/types.ts index b77e4c9..b9aa430 100644 --- a/activity/src/lib/types.ts +++ b/activity/src/lib/types.ts @@ -8,7 +8,7 @@ export type { ShockMode, ShockerDto, WhitelistEntryDto as WhitelistEntry, -} from '$lib/api/generated'; +} from '#lib/api/generated/index.ts'; // SignalR event payloads (RoomHub) are not part of the REST API, so they stay hand-written here. // All Discord IDs are strings (64-bit snowflakes exceed JS's safe-integer range). diff --git a/activity/src/routes/+layout.svelte b/activity/src/routes/+layout.svelte index 84ad998..8dc531a 100644 --- a/activity/src/routes/+layout.svelte +++ b/activity/src/routes/+layout.svelte @@ -1,11 +1,11 @@