web: založení projektu Helpdesk.Web a layout aplikace

ASP.NET Core MVC (.NET 10) s Bootstrapem 5, layout s menu podle role,
chybové stránky, bezpečnostní hlavičky (CSP, Referrer-Policy) a česká kultura.

Refs #19, #20
This commit is contained in:
PatTheEvil committed 2026-12-02 00:20:49 +01:00
1 parent b402d9f92c
commit abd075287c
25 files changed
+523

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
namespace Helpdesk.Web.Auth;
/// <summary>Kódy rolí z API (claim <c>role</c>) a jejich české názvy pro rozhraní.</summary>
public static class UserRoles
{
public const string Student = "STUDENT";
public const string Teacher = "TEACHER";
public const string FacilityManager = "FACILITY_MANAGER";
public const string Management = "MANAGEMENT";
public const string Admin = "ADMIN";
public static string DisplayName(string? role) => role switch
{
Student => "Student",
Teacher => "Vyučující",
FacilityManager => "Správce budov",
Management => "Vedení školy",
Admin => "Administrátor",
_ => "Uživatel",
};
}
@@ -0,0 +1,19 @@
using Microsoft.AspNetCore.Mvc;
namespace Helpdesk.Web.Controllers;
public sealed class HomeController : Controller
{
/// <summary>Nástěnka.</summary>
public IActionResult Index() => View();
/// <summary>Chybová stránka pro neošetřené výjimky a stavové kódy (404, 403, …).</summary>
[Route("error/{statusCode:int?}")]
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error(int? statusCode)
{
var code = statusCode ?? StatusCodes.Status500InternalServerError;
Response.StatusCode = code;
return View(code);
}
}
+7
View File
@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<ItemGroup>
<InternalsVisibleTo Include="Helpdesk.Web.Tests" />
</ItemGroup>
</Project>
+14
View File
@@ -0,0 +1,14 @@
using Microsoft.AspNetCore.Mvc.ViewFeatures;
namespace Helpdesk.Web.Infrastructure;
/// <summary>Jednorázové zprávy přes přesměrování (vzor Post/Redirect/Get).</summary>
public static class Flash
{
public const string Success = "Flash.Success";
public const string Error = "Flash.Error";
public static void SetSuccess(this ITempDataDictionary tempData, string message) => tempData[Success] = message;
public static void SetError(this ITempDataDictionary tempData, string message) => tempData[Error] = message;
}
@@ -0,0 +1,25 @@
using System.Security.Claims;
using Helpdesk.Web.Auth;
namespace Helpdesk.Web.Infrastructure;
/// <summary>Položka hlavního menu. Bez rolí ji vidí každý přihlášený uživatel.</summary>
public sealed record NavItem(string Text, string Controller, string Action, params string[] Roles)
{
public bool IsVisibleTo(ClaimsPrincipal user) =>
user.Identity?.IsAuthenticated == true && (Roles.Length == 0 || Roles.Any(user.IsInRole));
}
/// <summary>
/// Hlavní menu na jednom místě. Viditelnost podle role je jen pohodlí pro uživatele –
/// oprávnění skutečně kontroluje API (kap. 9.3 návrhu).
/// </summary>
public static class Navigation
{
public static readonly IReadOnlyList<NavItem> Items =
[
new("Nástěnka", "Home", "Index"),
];
public static IEnumerable<NavItem> For(ClaimsPrincipal user) => Items.Where(i => i.IsVisibleTo(user));
}
@@ -0,0 +1,21 @@
namespace Helpdesk.Web.Infrastructure;
/// <summary>Bezpečnostní hlavičky pro všechny odpovědi webu.</summary>
public static class SecurityHeaders
{
// Všechny skripty a styly jsou ze stejného původu (wwwroot), takže CSP nepotřebuje žádné výjimky.
private const string ContentSecurityPolicy =
"default-src 'self'; img-src 'self' data: blob:; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'";
public static IApplicationBuilder UseSecurityHeaders(this IApplicationBuilder app) =>
app.Use(async (context, next) =>
{
var headers = context.Response.Headers;
headers.ContentSecurityPolicy = ContentSecurityPolicy;
headers.XContentTypeOptions = "nosniff";
headers.XFrameOptions = "DENY";
// Odkazy z e-mailů nesou token v URL – nesmí uniknout v hlavičce Referer.
headers["Referrer-Policy"] = "no-referrer";
await next();
});
}
+70
View File
@@ -0,0 +1,70 @@
using System.Globalization;
using System.Net;
using Helpdesk.Web.Infrastructure;
using Microsoft.AspNetCore.DataProtection;
using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.AspNetCore.Localization;
using Microsoft.AspNetCore.Mvc;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllersWithViews(options =>
{
// Anti-forgery token u všech formulářů odesílaných metodou POST (CSRF, kap. 10).
options.Filters.Add(new AutoValidateAntiforgeryTokenAttribute());
});
// Klíče Data Protection šifrují autentizační cookie. Bez uložení na volume by
// restart kontejneru odhlásil všechny uživatele (kap. 15.3).
var dataProtection = builder.Services.AddDataProtection().SetApplicationName("Helpdesk.Web");
var keysPath = builder.Configuration["DataProtection:KeysPath"];
if (!string.IsNullOrWhiteSpace(keysPath))
dataProtection.PersistKeysToFileSystem(new DirectoryInfo(keysPath));
var trustedProxy = builder.Configuration["ReverseProxy:TrustedIp"];
if (!string.IsNullOrWhiteSpace(trustedProxy))
{
if (!IPAddress.TryParse(trustedProxy, out var proxyAddress))
throw new InvalidOperationException("Nastavte platnou IP adresu důvěryhodné reverse proxy.");
builder.Services.Configure<ForwardedHeadersOptions>(options =>
{
options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;
options.KnownIPNetworks.Clear();
options.KnownProxies.Clear();
options.KnownProxies.Add(proxyAddress);
});
}
var app = builder.Build();
if (!string.IsNullOrWhiteSpace(trustedProxy))
app.UseForwardedHeaders();
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/error");
app.UseHsts();
}
app.UseStatusCodePagesWithReExecute("/error/{0}");
app.UseSecurityHeaders();
var czech = new CultureInfo("cs-CZ");
app.UseRequestLocalization(new RequestLocalizationOptions
{
DefaultRequestCulture = new RequestCulture(czech),
SupportedCultures = [czech],
SupportedUICultures = [czech],
});
app.UseRouting();
app.UseAuthorization();
app.MapStaticAssets();
app.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}").WithStaticAssets();
app.Run();
/// <summary>Vstupní bod – veřejný kvůli testům (WebApplicationFactory).</summary>
public partial class Program;
@@ -0,0 +1,13 @@
{
"$schema": "https://json.schemastore.org/launchsettings.json",
"profiles": {
"http": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "http://localhost:5080",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
+17
View File
@@ -0,0 +1,17 @@
@model int
@{
var (title, text) = Model switch
{
404 => ("Stránka nenalezena", "Stránka neexistuje, nebo byla přesunuta. Zkontrolujte adresu."),
403 => ("Přístup odepřen", "K této stránce nemáte oprávnění. Pokud si myslíte, že byste je mít měli, obraťte se na administrátora."),
_ => ("Něco se pokazilo", "Požadavek se nepodařilo zpracovat. Zkuste to prosím za chvíli znovu."),
};
ViewData["Title"] = title;
}
<section class="app-empty">
<p class="app-empty-code">@Model</p>
<h1 class="h3">@title</h1>
<p class="text-body-secondary">@text</p>
<a class="btn btn-primary" asp-controller="Home" asp-action="Index">Zpět na nástěnku</a>
</section>
+8
View File
@@ -0,0 +1,8 @@
@{
ViewData["Title"] = "Nástěnka";
}
<section class="app-page-head">
<h1>Univerzitní helpdesk</h1>
<p class="lead text-body-secondary">Nahlaste závadu v budově, na vybavení nebo ve službách a sledujte, jak se řeší. Podejte návrh na zlepšení univerzity a hlasujte pro návrhy ostatních.</p>
</section>
@@ -0,0 +1,15 @@
@* Krátká zpráva po přesměrování (např. „Profil uložen“). Nastavuje se přes TempData.Success / TempData.Error. *@
@if (TempData[Flash.Success] is string success)
{
<div class="alert alert-success alert-dismissible fade show" role="status">
@success
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Zavřít"></button>
</div>
}
@if (TempData[Flash.Error] is string error)
{
<div class="alert alert-danger alert-dismissible fade show" role="alert">
@error
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Zavřít"></button>
</div>
}
@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>@(ViewData["Title"] is string title ? $"{title} · NTBug" : "NTBug")</title>
<link rel="icon" href="~/favicon.svg" type="image/svg+xml" />
<link rel="stylesheet" href="~/lib/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
</head>
<body>
<a class="visually-hidden-focusable skip-link" href="#main">Přeskočit na obsah</a>
<header class="app-header border-bottom">
<nav class="navbar navbar-expand-lg container-xl" aria-label="Hlavní menu">
<a class="navbar-brand app-brand" asp-controller="Home" asp-action="Index">
<span class="app-brand-mark" aria-hidden="true">NT</span>
<span>NTBug <span class="app-brand-sub">helpdesk</span></span>
</a>
@if (User.Identity?.IsAuthenticated == true)
{
var controller = ViewContext.RouteData.Values["controller"] as string;
var action = ViewContext.RouteData.Values["action"] as string;
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mainNav"
aria-controls="mainNav" aria-expanded="false" aria-label="Zobrazit menu">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="mainNav">
<ul class="navbar-nav me-auto">
@foreach (var item in Navigation.For(User))
{
var active = item.Controller == controller && item.Action == action;
<li class="nav-item">
<a class="nav-link @(active ? "active" : "")" aria-current="@(active ? "page" : null)"
asp-controller="@item.Controller" asp-action="@item.Action">@item.Text</a>
</li>
}
</ul>
@await Html.PartialAsync("_UserMenu")
</div>
}
</nav>
</header>
<main id="main" class="container-xl app-main">
@await Html.PartialAsync("_Alerts")
@RenderBody()
</main>
<footer class="app-footer container-xl">
Univerzitní helpdesk a portál návrhů na zlepšení · NNPRO
</footer>
<script src="~/lib/bootstrap/js/bootstrap.bundle.min.js"></script>
@await RenderSectionAsync("Scripts", required: false)
</body>
</html>
@@ -0,0 +1,12 @@
@{
var role = User.FindFirst(ClaimTypes.Role)?.Value;
}
<div class="dropdown">
<button class="btn btn-link app-user-toggle dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
<span class="fw-semibold">@User.Identity?.Name</span>
<span class="badge app-role-badge ms-1">@UserRoles.DisplayName(role)</span>
</button>
<ul class="dropdown-menu dropdown-menu-end">
<li><span class="dropdown-item-text small text-body-secondary">@User.FindFirst(ClaimTypes.Email)?.Value</span></li>
</ul>
</div>
@@ -0,0 +1,5 @@
@using System.Security.Claims
@using Helpdesk.Web
@using Helpdesk.Web.Auth
@using Helpdesk.Web.Infrastructure
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
+3
View File
@@ -0,0 +1,3 @@
@{
Layout = "_Layout";
}
+19
View File
@@ -0,0 +1,19 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"System.Net.Http.HttpClient": "Warning"
}
},
"AllowedHosts": "*",
"Api": {
"BaseUrl": "http://localhost:8080/"
},
"DataProtection": {
"KeysPath": ""
},
"ReverseProxy": {
"TrustedIp": ""
}
}
+98
View File
@@ -0,0 +1,98 @@
/* Vzhled NTBug nad Bootstrapem 5. Barvy stavů závad odpovídají kap. 13.2 návrhu
a jsou stejné jako v mobilní aplikaci. */
:root {
--app-accent: #0d6b66;
--app-accent-hover: #0a5551;
--app-accent-soft: #e0f0ee;
--app-surface: #f4f6f8;
--app-line: #d9dfe6;
--status-received: #6c757d; /* Přijata – šedá */
--status-assigned: #2563eb; /* Přiřazena – modrá */
--status-in-progress: #d97706; /* V řešení – oranžová */
--status-verification: #7c3aed; /* Čeká na ověření – fialová */
--status-resolved: #15803d; /* Vyřešena – zelená */
--status-rejected: #dc2626; /* Zamítnuta – červená */
--bs-primary: var(--app-accent);
--bs-primary-rgb: 13, 107, 102;
--bs-link-color: var(--app-accent);
--bs-link-color-rgb: 13, 107, 102;
--bs-link-hover-color: var(--app-accent-hover);
--bs-link-hover-color-rgb: 10, 85, 81;
--bs-body-bg: var(--app-surface);
--bs-border-color: var(--app-line);
}
.btn-primary {
--bs-btn-bg: var(--app-accent);
--bs-btn-border-color: var(--app-accent);
--bs-btn-hover-bg: var(--app-accent-hover);
--bs-btn-hover-border-color: var(--app-accent-hover);
--bs-btn-active-bg: var(--app-accent-hover);
--bs-btn-active-border-color: var(--app-accent-hover);
--bs-btn-disabled-bg: var(--app-accent);
--bs-btn-disabled-border-color: var(--app-accent);
}
.btn-outline-primary {
--bs-btn-color: var(--app-accent);
--bs-btn-border-color: var(--app-accent);
--bs-btn-hover-bg: var(--app-accent);
--bs-btn-hover-border-color: var(--app-accent);
--bs-btn-active-bg: var(--app-accent-hover);
--bs-btn-active-border-color: var(--app-accent-hover);
}
.form-control:focus, .form-select:focus, .form-check-input:focus {
border-color: var(--app-accent);
box-shadow: 0 0 0 .2rem rgba(13, 107, 102, .2);
}
.form-check-input:checked { background-color: var(--app-accent); border-color: var(--app-accent); }
body { min-height: 100vh; display: flex; flex-direction: column; }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 1100; background: #fff; padding: .5rem .75rem; border-radius: .375rem; }
/* hlavička */
.app-header { background: #fff; }
.app-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: inherit; }
.app-brand-mark {
display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: .45rem;
background: var(--app-accent); color: #fff; font-size: .8rem; letter-spacing: .02em;
}
.app-brand-sub { font-weight: 400; color: var(--bs-secondary-color); }
.navbar .nav-link.active { color: var(--app-accent); font-weight: 600; }
.app-user-toggle { color: inherit; text-decoration: none; }
.app-role-badge { background: var(--app-accent-soft); color: var(--app-accent); font-weight: 600; }
/* obsah */
.app-main { flex: 1; padding-block: 2rem 3rem; }
.app-page-head { margin-bottom: 1.5rem; }
.app-page-head h1 { font-size: 1.75rem; font-weight: 700; text-wrap: balance; }
.app-page-head .lead { max-width: 65ch; }
.app-card { background: #fff; border: 1px solid var(--app-line); border-radius: .6rem; padding: 1.5rem; }
/* přihlášení, registrace a další jednoduché formuláře */
.app-auth { max-width: 26rem; margin: 1rem auto 0; }
.app-auth h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: .25rem; }
.app-auth .app-card { padding: 1.75rem; }
.app-auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 1rem; font-size: .925rem; }
/* prázdné a chybové stavy */
.app-empty { max-width: 32rem; margin: 3rem auto; text-align: center; }
.app-empty-code { font-size: 3rem; font-weight: 700; color: var(--app-accent); margin-bottom: 0; font-variant-numeric: tabular-nums; }
.app-footer { padding-block: 1.25rem; color: var(--bs-secondary-color); font-size: .875rem; border-top: 1px solid var(--app-line); }
/* štítky stavů závad */
.status-badge { display: inline-block; padding: .2em .6em; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #fff; white-space: nowrap; }
.status-RECEIVED { background: var(--status-received); }
.status-ASSIGNED { background: var(--status-assigned); }
.status-IN_PROGRESS { background: var(--status-in-progress); }
.status-PENDING_VERIFICATION { background: var(--status-verification); }
.status-RESOLVED { background: var(--status-resolved); }
.status-REJECTED { background: var(--status-rejected); }
@media (prefers-reduced-motion: reduce) {
.fade, .collapsing { transition: none !important; }
}
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32" rx="7" fill="#0d6b66"/><text x="16" y="21.5" font-family="Segoe UI, Arial, sans-serif" font-size="14" font-weight="700" fill="#fff" text-anchor="middle">NT</text></svg>

After

Width:  |  Height:  |  Size: 258 B

@@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2011-2021 Twitter, Inc.
Copyright (c) 2011-2021 The Bootstrap Authors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@@ -0,0 +1,6 @@
@charset "UTF-8";/*!
* Bootstrap v5.3.3 (https://getbootstrap.com/)
* Copyright 2011-2024 The Bootstrap Authors
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/:root,[data-bs-theme=light]{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33,37,41;--bs-body-bg:#fff;--bs-body-bg-rgb:255,255,255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0,0,0;--bs-secondary-color:rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb:33,37,41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233,236,239;--bs-tertiary-color:rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb:33,37,41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248,249,250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13,110,253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10,88,202;--bs-code-color:#d63384;--bs-highlight-color:#212529;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13, 110, 253, 0.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color:#dee2e6;--bs-body-color-rgb:222,226,230;--bs-body-bg:#212529;--bs-body-bg-rgb:33,37,41;--bs-emphasis-color:#fff;--bs-emphasis-color-rgb:255,255,255;--bs-secondary-color:rgba(222, 226, 230, 0.75);--bs-secondary-color-rgb:222,226,230;--bs-secondary-bg:#343a40;--bs-secondary-bg-rgb:52,58,64;--bs-tertiary-color:rgba(222, 226, 230, 0.5);--bs-tertiary-color-rgb:222,226,230;--bs-tertiary-bg:#2b3035;--bs-tertiary-bg-rgb:43,48,53;--bs-primary-text-emphasis:#6ea8fe;--bs-secondary-text-emphasis:#a7acb1;--bs-success-text-emphasis:#75b798;--bs-info-text-emphasis:#6edff6;--bs-warning-text-emphasis:#ffda6a;--bs-danger-text-emphasis:#ea868f;--bs-light-text-emphasis:#f8f9fa;--bs-dark-text-emphasis:#dee2e6;--bs-primary-bg-subtle:#031633;--bs-secondary-bg-subtle:#161719;--bs-success-bg-subtle:#051b11;--bs-info-bg-subtle:#032830;--bs-warning-bg-subtle:#332701;--bs-danger-bg-subtle:#2c0b0e;--bs-light-bg-subtle:#343a40;--bs-dark-bg-subtle:#1a1d20;--bs-primary-border-subtle:#084298;--bs-secondary-border-subtle:#41464b;--bs-success-border-subtle:#0f5132;--bs-info-border-subtle:#087990;--bs-warning-border-subtle:#997404;--bs-danger-border-subtle:#842029;--bs-light-border-subtle:#495057;--bs-dark-border-subtle:#343a40;--bs-heading-color:inherLine truncated
/*# sourceMappingURL=bootstrap.min.css.map */
@@ -0,0 +1,7 @@
/*!
* Bootstrap v5.3.3 (https://getbootstrap.com/)
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use strict";const t=new Map,e={set(e,i,n){t.has(e)||t.set(e,new Map);const s=t.get(e);s.has(i)||0===s.size?s.set(i,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(e,i)=>t.has(e)&&t.get(e).get(i)||null,remove(e,i){if(!t.has(e))return;const n=t.get(e);n.delete(i),0===n.size&&t.delete(e)}},i="transitionend",n=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),s=t=>{t.dispatchEvent(new Event(i))},o=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),r=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(n(t)):null,a=t=>{if(!o(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},l=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),c=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?c(t.parentNode):null},h=()=>{},d=t=>{t.offsetHeight},u=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,f=[],p=()=>"rtl"===document.documentElement.dir,m=t=>{var e;e=()=>{const e=u();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(f.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of f)t()})),f.push(e)):e()},g=(t,e=[],i=t)=>"function"==typeof t?t(...e):i,_=(t,e,n=!0)=>{if(!n)return void g(t);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let r=!1;const a=({target:n})=>{n===e&&(r=!0,e.removeEventListener(i,a),g(t))};e.addEventListener(i,a),setTimeout((()=>{r||s(e)}),o)},b=(t,e,i,n)=>{const s=t.length;let o=t.indexOf(e);return-1===o?!i&&n?t[s-1]:t[0]:(o+=i?1:-1,n&&(o=(o+s)%s),t[Math.max(0,Math.min(o,s-1))])},v=/[^.]*(?=\..*)\.|.*/,y=/\..*/,w=/::\d+$/,A={};let E=1;const T={mouseenter:"mouseover",mouseleave:"mouseout"},C=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function O(t,e){return e&&`${e}::${E++}`||t.uidEvent||E++}function x(t){const e=O(t);return t.uidEvent=e,A[e]=A[e]||{},A[e]}function k(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function L(t,e,i){const n="string"==typeof e,s=n?i:e||i;let o=I(t);return C.has(o)||(o=t),[n,s,o]}function S(t,e,i,n,s){if("string"!=typeof e||!t)return;let[o,r,a]=L(e,i,n);if(e in T){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=x(t),c=l[a]||(l[a]={}),h=k(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=O(r,e.replace(v,"")),u=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return P(s,{delegateTarget:r}),n.oneOff&&N.off(t,s.type,e,i),i.apply(r,[s])}}(t,i,r):function(t,e){return function i(n){return P(n,{delegateTarget:t}),i.oneOff&&N.off(t,n.type,e),e.apply(t,[n])}}(t,r);u.delegationSelector=o?i:null,u.callable=r,u.oneOff=s,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function D(t,e,i,n,s){const o=k(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function $(t,e,i,n){const s=e[i]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&D(t,e,i,r.callable,r.delegationSelector)}function I(t){return t=t.replace(y,""),T[t]||t}const N={on(t,e,i,n){S(t,e,i,n,!1)},one(t,e,i,n){S(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=L(e,i,n),a=r!==e,l=x(t),c=l[r]||{},h=e.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))$(t,l,i,e.slLine truncated
//# sourceMappingURL=bootstrap.bundle.min.js.map