diff --git a/.env.local.example b/.env.local.example index 5cd83860..d86a72c9 100644 --- a/.env.local.example +++ b/.env.local.example @@ -6,4 +6,5 @@ NEXT_PUBLIC_KOFI_LINK= # Optional: Your Ko-fi donation page URL. NEXT_PUBLIC_BOOSTY_LINK= # Optional: Your Boosty.to page URL. NEXT_PUBLIC_STATUS_PAGE_LINK= # Optional: Link to your status page. NEXT_PUBLIC_PATCHER_PAGE_ENABLED= # Optional: Set to "true" to show the Sunrise Patcher page in the help section. -NEXT_PUBLIC_UNOPTIMIZED_IMAGES= # Optional: Set to "true" to disable Next.js image optimization. \ No newline at end of file +NEXT_PUBLIC_UNOPTIMIZED_IMAGES= # Optional: Set to "true" to disable Next.js image optimization. +NEXT_PUBLIC_ALLOW_LOCAL_IP= # Optional: Set to "true" to allow the image optimizer to fetch loopback/private addresses. Only needed locally. \ No newline at end of file diff --git a/.github/README.md b/.github/README.md index 076c435b..ea5e5461 100644 --- a/.github/README.md +++ b/.github/README.md @@ -36,6 +36,7 @@ docker compose -f docker-compose.yml up -d # Creates the container with app and > ```bash > NODE_TLS_REJECT_UNAUTHORIZED=0 > NEXT_PUBLIC_UNOPTIMIZED_IMAGES=true +> NEXT_PUBLIC_ALLOW_LOCAL_IP=true > ``` > to you `.env.local` file. diff --git a/app/(admin)/admin/processing/events/page.tsx b/app/(admin)/admin/processing/events/page.tsx new file mode 100644 index 00000000..a61da329 --- /dev/null +++ b/app/(admin)/admin/processing/events/page.tsx @@ -0,0 +1,163 @@ +"use client"; + +import { Filter, ScrollText } from "lucide-react"; +import Link from "next/link"; +import { useMemo, useState } from "react"; + +import PrettyDate from "@/components/General/PrettyDate"; +import PrettyHeader from "@/components/General/PrettyHeader"; +import { SmallUserElement } from "@/components/SmallUserElement"; +import Spinner from "@/components/Spinner"; +import { Badge } from "@/components/ui/badge"; +import { Button } from "@/components/ui/button"; +import { Card, CardContent } from "@/components/ui/card"; +import { MultiSelect } from "@/components/ui/multi-select"; +import { useScoreProcessingEvents } from "@/lib/hooks/api/score-processing/useScoreProcessingEvents"; +import { ScoreProcessingEventType } from "@/lib/types/api"; +import { isInstance } from "@/lib/utils/type.util"; + +const PAGE_SIZE = 25; + +export default function Page() { + const [page, setPage] = useState(1); + const [showFilters, setShowFilters] = useState(false); + const [eventTypes, setEventTypes] = useState([]); + + const { data, error, isLoading } = useScoreProcessingEvents( + useMemo(() => ({ types: eventTypes, page, limit: PAGE_SIZE }), [eventTypes, page]), + { refreshInterval: 0, revalidateOnFocus: false, keepPreviousData: true }, + ); + + const events = data?.events ?? []; + const totalCount = data?.total_count ?? 0; + const totalPages = Math.max(1, Math.ceil(totalCount / PAGE_SIZE)); + + return ( +
+ } /> + +
+

+ {totalCount} + {" "} + event(s) +

+ +
+ +
+ + + + ({ + value: option, + label: option, + }))} + defaultValue={eventTypes} + placeholder="All event types" + onValueChange={(values) => { + setEventTypes(values.filter(isScoreProcessingEventType)); + setPage(1); + }} + /> + + +
+ +
+ {error + ? ( + + + +

Could not load processing events.

+

{error.message ?? "Refresh the page and try again."}

+
+
+ ) + : isLoading && events.length === 0 + ? ( + + + + + + ) + : events.length > 0 + ? ( + events.map(event => ( + + +
+
+ {event.event_type} + {event.executor + ? ( + + ) + : Server} + {event.score_id != null && ( + + {`Score #${event.score_id}`} + + )} + {event.task_id != null && ( + + {`Task #${event.task_id}`} + + )} +
+ {event.json_data && ( +
+                              {event.json_data}
+                            
+ )} +
+ +
+
+ )) + ) + : ( + + + +

No processing events found.

+
+
+ )} +
+ +
+ + + {`Page ${page} of ${totalPages}`} + + +
+
+ ); +} + +function isScoreProcessingEventType(value: string): value is ScoreProcessingEventType { + return isInstance(value, ScoreProcessingEventType); +} diff --git a/app/(admin)/admin/processing/scores/page.tsx b/app/(admin)/admin/processing/scores/page.tsx new file mode 100644 index 00000000..dc234ae6 --- /dev/null +++ b/app/(admin)/admin/processing/scores/page.tsx @@ -0,0 +1,333 @@ +"use client"; + +import { Filter, ListChecks, RefreshCw, Search } from "lucide-react"; +import type { ComponentProps } from "react"; +import { useMemo, useState } from "react"; + +import { AddScoreProcessingDialog } from "@/components/Admin/ScoreProcessing/AddScoreProcessingDialog"; +import { ScoreProcessingTaskCard } from "@/components/Admin/ScoreProcessing/ScoreProcessingTaskCard"; +import { ScoreProcessingTaskFiltersCard } from "@/components/Admin/ScoreProcessing/ScoreProcessingTaskFiltersCard"; +import PrettyHeader from "@/components/General/PrettyHeader"; +import Spinner from "@/components/Spinner"; +import { Button } from "@/components/ui/button"; +import { Card, CardContent } from "@/components/ui/card"; +import { Input } from "@/components/ui/input"; +import { useScoreProcessingStats } from "@/lib/hooks/api/score-processing/useScoreProcessingStats"; +import type { ScoreProcessingTaskFilters } from "@/lib/hooks/api/score-processing/useScoreProcessingTasks"; +import { useScoreProcessingTasks } from "@/lib/hooks/api/score-processing/useScoreProcessingTasks"; +import useDebounce from "@/lib/hooks/useDebounce"; +import type { ScoreProcessingTaskResponse } from "@/lib/types/api"; +import { SecondsToString } from "@/lib/utils/secondsTo"; +import { tryParseNumber } from "@/lib/utils/type.util"; + +const PAGE_SIZE = 20; + +export default function Page() { + const [searchByScoreIdQuery, setSearchByScoreIdQuery] = useState(""); + const searchByScoreIdValue = useDebounce(searchByScoreIdQuery, 400); + + const [searchByTaskIdQuery, setSearchByTaskIdQuery] = useState(""); + const searchByTaskIdValue = useDebounce(searchByTaskIdQuery, 400); + + const [showFilters, setShowFilters] = useState(false); + const [filters, setFilters] = useState({}); + + const scoreIdFilter = tryParseNumber(searchByScoreIdValue) ?? null; + const taskIdFilter = tryParseNumber(searchByTaskIdValue) ?? null; + + const combinedFilters = useMemo( + () => ({ + ...filters, + ...(scoreIdFilter ? { score_id: scoreIdFilter } : {}), + ...(taskIdFilter ? { task_id: taskIdFilter } : {}), + }), + [filters, scoreIdFilter, taskIdFilter], + ); + + const { data, error, size, setSize, isLoading, mutate } = useScoreProcessingTasks(combinedFilters, PAGE_SIZE, { + refreshInterval: 10_000, + revalidateOnFocus: false, + keepPreviousData: true, + }); + + const { data: stats, error: statsError, mutate: mutateStats } = useScoreProcessingStats({ + refreshInterval: 10_000, + revalidateOnFocus: false, + keepPreviousData: true, + }); + + const tasks = data?.flatMap(page => page.tasks) ?? []; + const totalCount = data?.find(item => item.total_count !== undefined)?.total_count ?? 0; + + const isLoadingMore = Boolean(isLoading || (size > 0 && data && data[size - 1] === undefined)); + + const activeFilterCount = Object.values(filters).filter( + value => value != null, + ).length; + + const handleFilterByScoreIdChange = (value: string) => { + setSearchByScoreIdQuery(value); + setSize(1); + }; + + const handleFilterByTaskIdChange = (value: string) => { + setSearchByTaskIdQuery(value); + setSize(1); + }; + + const handleApplyFilters = (nextFilters: ScoreProcessingTaskFilters) => { + setFilters(nextFilters); + setSize(1); + }; + + return ( +
+ } /> + + + + { mutate(); mutateStats(); }} + onToggleFilters={() => setShowFilters(!showFilters)} + searchByScoreIdQuery={searchByScoreIdQuery} + searchByTaskIdQuery={searchByTaskIdQuery} + /> + + + +

+ {totalCount} + {" "} + task(s) +

+ + setSize(size + 1)} + onTaskChanged={mutate} + tasks={tasks} + totalCount={totalCount} + error={error} + /> +
+ ); +} + +function ScoreProcessingStats({ + error, + stats, +}: { + error: ReturnType["error"]; + stats: ReturnType["data"]; +}) { + if (error) { + return ( + + + Could not load processing stats. + {" "} + {error.message ?? "Refresh the page and try again."} + + + ); + } + + if (!stats) + return null; + + const values = [ + { label: "In queue", value: stats.pending.toLocaleString() }, + { label: "Processing", value: stats.processing.toLocaleString() }, + { label: "To process", value: (stats.pending + stats.processing).toLocaleString() }, + { label: "Failed", value: stats.failed.toLocaleString() }, + { + label: "Est. time to clear", + value: + stats.pending > 0 && stats.estimated_pending_completion_seconds != null + ? SecondsToString(stats.estimated_pending_completion_seconds) + : "—", + }, + ]; + + return ( +
+ {values.map(stat => ( +
+
{stat.label}
+
{stat.value}
+
+ ))} +
+ ); +} + +function ScoreProcessingToolbar({ + activeFilterCount, + onFilterByScoreIdChange, + onFilterByTaskIdChange, + onRefresh, + onToggleFilters, + searchByScoreIdQuery, + searchByTaskIdQuery, +}: { + activeFilterCount: number; + onFilterByScoreIdChange: (value: string) => void; + onFilterByTaskIdChange: (value: string) => void; + onRefresh: () => void; + onToggleFilters: () => void; + searchByScoreIdQuery: string; + searchByTaskIdQuery: string; +}) { + return ( +
+ + +
+ + + onRefresh()} /> +
+
+ ); +} + +function ScoreProcessingSearchInput({ + inputMode, + onChange, + placeholder, + value, +}: { + inputMode?: ComponentProps["inputMode"]; + onChange: (value: string) => void; + placeholder: string; + value: string; +}) { + return ( +
+ + onChange(event.target.value)} + /> +
+ ); +} + +function ScoreProcessingFiltersPanel({ + filters, + isLoading, + onApply, + showFilters, +}: { + filters: ScoreProcessingTaskFilters; + isLoading: boolean; + onApply: (filters: ScoreProcessingTaskFilters) => void; + showFilters: boolean; +}) { + return ( +
+ +
+ ); +} + +function ScoreProcessingTaskList({ + error, + isLoading, + isLoadingMore, + onLoadMore, + onTaskChanged, + tasks, + totalCount, +}: { + error: ReturnType["error"]; + isLoading: boolean; + isLoadingMore: boolean; + onLoadMore: () => void; + onTaskChanged: () => void; + tasks: ScoreProcessingTaskResponse[]; + totalCount: number; +}) { + if (error) { + return ( + + + +

Could not load score processing tasks.

+

{error.message ?? "Refresh the page and try again."}

+
+
+ ); + } + + if (isLoading && tasks.length === 0) { + return ( + + + + + + ); + } + + if (tasks.length === 0) { + return ( + + + +

No score processing tasks found.

+
+
+ ); + } + + return ( + <> +
+ {tasks.map((task, idx) => ( + // eslint-disable-next-line @eslint-react/no-array-index-key -- For pagination. + + ))} +
+ + {tasks.length < totalCount && ( +
+ +
+ )} + + ); +} diff --git a/app/(admin)/admin/scores/[id]/page.tsx b/app/(admin)/admin/scores/[id]/page.tsx new file mode 100644 index 00000000..e9e3aae9 --- /dev/null +++ b/app/(admin)/admin/scores/[id]/page.tsx @@ -0,0 +1,362 @@ +"use client"; + +import { ExternalLink, LucideHistory, LucideScanSearch, Play, Square } from "lucide-react"; +import Link from "next/link"; +import { use, useState } from "react"; + +import PrettyDate from "@/components/General/PrettyDate"; +import PrettyHeader from "@/components/General/PrettyHeader"; +import { SmallUserElement } from "@/components/SmallUserElement"; +import Spinner from "@/components/Spinner"; +import { Tooltip } from "@/components/Tooltip"; +import { Badge } from "@/components/ui/badge"; +import { Button } from "@/components/ui/button"; +import { Card, CardTitle } from "@/components/ui/card"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; +import { Table, TableBody, TableCell, TableRow } from "@/components/ui/table"; +import { useToast } from "@/hooks/use-toast"; +import { useBeatmap } from "@/lib/hooks/api/beatmap/useBeatmap"; +import { + useCancelScoreProcessingTask, + useCreateScoreProcessingTask, +} from "@/lib/hooks/api/score-processing/useScoreProcessingActions"; +import { useScoreProcessingEvents } from "@/lib/hooks/api/score-processing/useScoreProcessingEvents"; +import { useScoreProcessingPreview } from "@/lib/hooks/api/score-processing/useScoreProcessingPreview"; +import type { AdminScoreResponse, BeatmapResponse } from "@/lib/types/api"; +import { ScoreProcessingStatus, ScoreTaskType } from "@/lib/types/api"; +import { getStatusBadgeClassName } from "@/lib/utils/getStatusBadgeColor"; +import numberWith from "@/lib/utils/numberWith"; +import { tryParseNumber } from "@/lib/utils/type.util"; + +export default function Page(props: { params: Promise<{ id: string }> }) { + const params = use(props.params); + const scoreId = tryParseNumber(params.id); + + const { data: preview, error: previewError, isLoading, mutate } = useScoreProcessingPreview(scoreId ?? null); + const { data: historyData, mutate: mutateHistory } = useScoreProcessingEvents( + { scoreId: scoreId ?? null, limit: 20 }, + { refreshInterval: 0, revalidateOnFocus: false }, + ); + + const score = preview?.score.score; + const beatmapQuery = useBeatmap(score?.beatmap_id ?? null); + const beatmap = beatmapQuery.data; + + const refresh = () => { + mutate(); + mutateHistory(); + }; + + if (scoreId == null || scoreId <= 0) { + return ( + + ); + } + + if (isLoading) { + return ( +
+ +
+ ); + } + + if (previewError) { + return ( + + ); + } + + if (!preview || !score) { + return ( + + ); + } + + const adminScore = preview.score; + + return ( +
+ } /> + + + +
+ + Score details +
+
+ +
+ + + +
+ + Score utilities +
+
+ +
+ + + +
+ + Score processing history +
+
+ +
+
+ ); +} + +function ScoreDetailError({ title, description }: { title: string; description: string }) { + return ( +
+ } /> + +
+

{title}

+

{description}

+
+
+
+ ); +} + +function ScoreUtilities({ scoreId }: { scoreId: number }) { + return ( +
+ + +
+ + + + {/* TODO: Admin replay download */} + +
+
+ ); +} + +function ScoreProcessingHistory({ scoreId, preview, historyData, refresh }: { scoreId: number; preview: NonNullable["data"]>; historyData: ReturnType["data"]; refresh: () => void }) { + const [action, setAction] = useState(ScoreTaskType.RECALCULATION); + + const { toast } = useToast(); + + const handleRun = async () => { + try { + await createTask({ score_id: scoreId, action }); + toast({ title: "Task queued", description: `Queued ${action} for score #${scoreId}.` }); + refresh(); + } + catch (error) { + toast({ title: "Could not queue task", description: (error as Error).message, variant: "destructive" }); + } + }; + + const handleStop = async () => { + if (!preview?.active_task) + return; + + try { + await cancelTask(); + toast({ title: "Task stopped", description: `Task #${preview.active_task.id} was cancelled.` }); + refresh(); + } + catch (error) { + toast({ title: "Could not stop task", description: (error as Error).message, variant: "destructive" }); + } + }; + + const { trigger: createTask, isMutating: isCreating } = useCreateScoreProcessingTask(); + const { trigger: cancelTask, isMutating: isCancelling } = useCancelScoreProcessingTask(preview?.active_task?.id ?? 0); + + const activeTask = preview.active_task; + const history = historyData?.events ?? []; + + return ( +
+
+ + +
+ + {activeTask && ( +
+ Active task: + {activeTask.status} + {activeTask.task_type} + +
+ )} + +

Processing history

+ + {history.length > 0 + ? ( + history.map(event => ( +
+ {event.event_type} + {event.executor + ? ( + + {event.executor.username} + + ) + : Server} + +
+ )) + ) + :

No processing history for this score.

} + +
+ ); +} +function ScoreDetails({ scoreWithDetails, beatmap }: { scoreWithDetails: AdminScoreResponse; beatmap?: BeatmapResponse }) { + const { score } = scoreWithDetails; + + const rowDataGeneric = [ + { label: "Score ID", value: score.id }, + { label: "Beatmap", value: beatmap ? {beatmap.artist} - {beatmap.title} : `Beatmap #${score.beatmap_id}` }, + { label: "User", value: }, + { label: "Submission Status", value: scoreWithDetails.submission_status }, + { label: "Beatmap Status", value: scoreWithDetails.beatmap_status }, + { label: "When Submitted", value: }, + { label: "Replay Available", value: score.has_replay ? "Yes" : "No" }, + ]; + + const rowDataScore = [ + { label: "Mode (extended)", value: score.game_mode_extended }, + { label: "Mods", value: score.mods }, + { label: "Total Score", value: numberWith(score.total_score, ",") }, + { label: "Hit Counts", value: ( +
+
+ 300: + {score.count_300} +
+
+ Geki: + {score.count_geki} +
+
+ 100: + {score.count_100} +
+
+ Katu: + {score.count_katu} +
+
+ 50: + {score.count_50} +
+
+ Miss: + {score.count_miss} +
+
+ ) }, + { label: "Max Combo", value: `${score.max_combo}x / ${beatmap?.max_combo ?? 0}x` }, + { label: "Grade", value: score.grade }, + { label: "PP", value: {score.performance_points.toFixed(2)}pp }, + { label: "Accuracy", value: {score.accuracy.toFixed(2)}% }, + { label: "Score Hash", value: scoreWithDetails.score_hash }, + ]; + + return ( +
+ General info + + + {rowDataGeneric.map((row, index) => ( + // eslint-disable-next-line @eslint-react/no-array-index-key -- used with header + + {row.label} + {row.value} + + ))} + +
+ Score stats + + + {rowDataScore.map((row, index) => ( + // eslint-disable-next-line @eslint-react/no-array-index-key -- used with header + + {row.label} + {row.value} + + ))} + +
+
+ ); +} diff --git a/app/(admin)/admin/users/[id]/edit/components/Tabs/AdminUserEditScores/AdminUserEditScores.tsx b/app/(admin)/admin/users/[id]/edit/components/Tabs/AdminUserEditScores/AdminUserEditScores.tsx new file mode 100644 index 00000000..fb98a581 --- /dev/null +++ b/app/(admin)/admin/users/[id]/edit/components/Tabs/AdminUserEditScores/AdminUserEditScores.tsx @@ -0,0 +1,325 @@ +"use client"; + +import { Filter } from "lucide-react"; +import { useCallback, useEffect, useMemo, useState } from "react"; + +import { useAdminScoreColumns } from "@/app/(admin)/admin/users/[id]/edit/components/Tabs/AdminUserEditScores/components/AdminScoreColumns"; +import { AdminScoreDataTable } from "@/app/(admin)/admin/users/[id]/edit/components/Tabs/AdminUserEditScores/components/AdminScoreDataTable"; +import { ScoreFiltersCard } from "@/components/Admin/ScoreProcessing/ScoreFiltersCard"; +import { + AlertDialog, + AlertDialogAction, + AlertDialogCancel, + AlertDialogContent, + AlertDialogDescription, + AlertDialogHeader, + AlertDialogTitle, +} from "@/components/ui/alert-dialog"; +import { Button, buttonVariants } from "@/components/ui/button"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; +import { useToast } from "@/hooks/use-toast"; +import { + useBulkScoreProcessing, + useBulkScoreProcessingByFilter, +} from "@/lib/hooks/api/score-processing/useScoreProcessingActions"; +import type { AdminUserScoresParams } from "@/lib/hooks/api/user/useAdminUserScores"; +import { useAdminUserScores } from "@/lib/hooks/api/user/useAdminUserScores"; +import type { UserSensitiveResponse } from "@/lib/types/api"; +import { ScoreTaskType } from "@/lib/types/api"; + +const PAGE_SIZE = 25; +const MAX_BULK_IDS = 100; + +export default function AdminUserEditScores({ user }: { user: UserSensitiveResponse }) { + const { toast } = useToast(); + const userId = user.user_id; + const columns = useAdminScoreColumns(); + + const [filters, setFilters] = useState({}); + const [showFilters, setShowFilters] = useState(false); + const [pagination, setPagination] = useState({ pageIndex: 0, pageSize: PAGE_SIZE }); + const [selectedIds, setSelectedIds] = useState([]); + const [selectionResetKey, setSelectionResetKey] = useState(0); + const [bulkAction, setBulkAction] = useState(ScoreTaskType.RECALCULATION); + + const queryParams = useMemo( + () => ({ + mode: filters.mode ?? undefined, + mods: filters.mods ?? undefined, + submission_status: filters.submission_status ?? undefined, + beatmap_status: filters.beatmap_status ?? undefined, + submitted_from: filters.submitted_from ?? undefined, + submitted_to: filters.submitted_to ?? undefined, + sort: filters.sort ?? undefined, + }), + [filters], + ); + + const { data, isLoading, mutate } = useAdminUserScores( + userId, + queryParams, + pagination.pageIndex + 1, + pagination.pageSize, + { + revalidateOnFocus: false, + keepPreviousData: true, + }, + ); + + const scores = useMemo(() => data?.scores ?? [], [data?.scores]); + const totalCount = data?.total_count ?? 0; + + const clearSelection = useCallback(() => { + setSelectedIds([]); + setSelectionResetKey(value => value + 1); + }, []); + + useEffect(() => { + setPagination({ pageIndex: 0, pageSize: PAGE_SIZE }); + clearSelection(); + }, [clearSelection, queryParams]); + + const { trigger: bulkByIds, isMutating: isBulkByIds } = useBulkScoreProcessing(); + const { trigger: bulkByFilter, isMutating: isBulkByFilter } = useBulkScoreProcessingByFilter(); + + const applyBulk = async () => { + try { + if (selectedIds.length === 0) { + toast({ + title: "Nothing selected", + description: "Select scores first.", + variant: "destructive", + }); + return; + } + + if (selectedIds.length > MAX_BULK_IDS) { + toast({ + title: "Too many selected", + description: `Select up to ${MAX_BULK_IDS} scores, or use "Apply to all matching".`, + variant: "destructive", + }); + return; + } + + const result = await bulkByIds({ score_ids: selectedIds, action: bulkAction }); + toast({ + title: "Bulk queued", + description: `Queued ${result.queued}, skipped ${result.skipped}.`, + }); + + clearSelection(); + mutate(); + } + catch (error) { + toast({ + title: "Bulk action failed", + description: (error as Error).message, + variant: "destructive", + }); + } + }; + + const handleSelectionChange = useCallback((ids: number[]) => { + setSelectedIds(ids); + }, []); + + const handleApplyFilters = useCallback((next: AdminUserScoresParams) => { + setFilters(next); + setPagination({ pageIndex: 0, pageSize: PAGE_SIZE }); + }, []); + + const applyBulkAllMatching = useCallback(async () => { + try { + await bulkByFilter({ + action: bulkAction, + user_id: userId, + ...queryParams, + }); + toast({ + title: "Bulk requested", + description: + `Requested ${bulkAction} for all ${totalCount} matching scores. Active tasks will be skipped by the API.`, + }); + clearSelection(); + mutate(); + } + catch (error) { + toast({ + title: "Bulk action failed", + description: (error as Error).message, + variant: "destructive", + }); + } + }, [bulkAction, bulkByFilter, clearSelection, mutate, queryParams, toast, totalCount, userId]); + + return ( +
+
+

+ {totalCount} + {" "} + score(s) +

+ +
+ + + + + + +
+ ); +} + +function FilterPanel({ + showFilters, + filters, + isLoading, + onApplyFilters, +}: { + showFilters: boolean; + filters: AdminUserScoresParams; + isLoading: boolean; + onApplyFilters: (filters: AdminUserScoresParams) => void; +}) { + return ( +
+ +
+ ); +} + +function BulkActionToolbar({ + bulkAction, + onBulkActionChange, + onApplyBulk, + onApplyBulkAllMatching, + selectedCount, + totalCount, + pageSize, + isBulkLoading, +}: { + bulkAction: ScoreTaskType; + onBulkActionChange: (action: ScoreTaskType) => void; + onApplyBulk: () => Promise; + onApplyBulkAllMatching: () => Promise; + selectedCount: number; + totalCount: number; + pageSize: number; + isBulkLoading: boolean; +}) { + const [confirmDialogOpen, setConfirmDialogOpen] = useState(false); + const [pendingAction, setPendingAction] = useState<"single" | "all" | null>(null); + + const showAllMatchingBtn = selectedCount === pageSize && pageSize > 0 && totalCount > pageSize; + const isDeleteAction = bulkAction === ScoreTaskType.DELETE; + const confirmationScope = pendingAction === "all" + ? `all ${totalCount} scores matching the current filters` + : `${selectedCount} selected score(s)`; + const confirmationMessage = `This will queue "${bulkAction}" for ${confirmationScope}. Existing active tasks will be skipped by the API.`; + + const handleConfirm = async () => { + setConfirmDialogOpen(false); + if (pendingAction === "single") { + await onApplyBulk(); + } + else if (pendingAction === "all") { + await onApplyBulkAllMatching(); + } + setPendingAction(null); + }; + + const handleOpenDialog = (action: "single" | "all") => { + setPendingAction(action); + setConfirmDialogOpen(true); + }; + + return ( +
+ + {selectedCount} + {" "} + selected + + + + {showAllMatchingBtn && ( + + )} + + + + + {isDeleteAction ? "Confirm Score Deletion" : "Confirm Bulk Action"} + + + {confirmationMessage} + {isDeleteAction ? " This is a destructive score-processing request." : ""} + + +
+ Cancel + + {isDeleteAction ? "Confirm Delete" : "Confirm Queue"} + +
+
+
+
+ ); +} diff --git a/app/(admin)/admin/users/[id]/edit/components/Tabs/AdminUserEditScores/components/AdminScoreColumns.tsx b/app/(admin)/admin/users/[id]/edit/components/Tabs/AdminUserEditScores/components/AdminScoreColumns.tsx new file mode 100644 index 00000000..5f8d5475 --- /dev/null +++ b/app/(admin)/admin/users/[id]/edit/components/Tabs/AdminUserEditScores/components/AdminScoreColumns.tsx @@ -0,0 +1,120 @@ +"use client"; + +import type { ColumnDef } from "@tanstack/react-table"; +import { Check, X } from "lucide-react"; +import Link from "next/link"; +import { Suspense, useMemo } from "react"; + +import { Badge } from "@/components/ui/badge"; +import { Button } from "@/components/ui/button"; +import { Checkbox } from "@/components/ui/checkbox"; +import type { AdminScoreResponse } from "@/lib/types/api"; +import { getGradeColor } from "@/lib/utils/getGradeColor"; +import numberWith from "@/lib/utils/numberWith"; + +import BeatmapCellContent from "./BeatmapCellContent"; + +export function useAdminScoreColumns(): Array> { + return useMemo( + () => [ + { + id: "select", + header: ({ table }) => ( + table.toggleAllPageRowsSelected(!!value)} + aria-label="Select all" + /> + ), + cell: ({ row }) => ( + row.toggleSelected(!!value)} + aria-label="Select row" + /> + ), + enableSorting: false, + enableHiding: false, + }, + { + accessorKey: "score.id", + header: "Score ID", + cell: ({ row }) => #{row.original.score.id}, + }, + { + accessorKey: "score.grade", + header: "Grade", + cell: ({ row }) => ( + + {row.original.score.grade} + + ), + }, + { + accessorKey: "score.is_passed", + header: "Pass", + cell: ({ row }) => row.original.score.is_passed + ? + : , + }, + { + id: "preview", + header: "", + cell: ({ row }) => ( + Loading...}> + + + ), + }, + { + accessorKey: "score.total_score", + header: "Score", + cell: ({ row }) => {numberWith(row.original.score.total_score, ",")}, + }, + { + accessorKey: "score.performance_points", + header: "PP", + cell: ({ row }) => {row.original.score.performance_points.toFixed(2)}, + }, + { + accessorKey: "score.accuracy", + header: "Acc", + cell: ({ row }) => {row.original.score.accuracy.toFixed(2)}%, + }, + { + accessorKey: "score.mods", + header: "Mods", + cell: ({ row }) => ( + + {row.original.score.mods || "-"} + + ), + }, + { + accessorKey: "submission_status", + header: "Status", + cell: ({ row }) => ( + + {row.original.submission_status} + + ), + }, + { + id: "actions", + header: "", + cell: ({ row }) => { + const scoreId = row.original.score.id; + return ( + + ); + }, + }, + ], + [], + ); +} diff --git a/app/(admin)/admin/users/[id]/edit/components/Tabs/AdminUserEditScores/components/AdminScoreDataTable.tsx b/app/(admin)/admin/users/[id]/edit/components/Tabs/AdminUserEditScores/components/AdminScoreDataTable.tsx new file mode 100644 index 00000000..becbac72 --- /dev/null +++ b/app/(admin)/admin/users/[id]/edit/components/Tabs/AdminUserEditScores/components/AdminScoreDataTable.tsx @@ -0,0 +1,239 @@ +"use client"; + +import type { + ColumnDef, + OnChangeFn, + PaginationState, + RowSelectionState, + SortingState, + VisibilityState, +} from "@tanstack/react-table"; +import { + flexRender, + getCoreRowModel, + getPaginationRowModel, + getSortedRowModel, + useReactTable, +} from "@tanstack/react-table"; +import { + ChevronLeft, + ChevronRight, + ChevronsLeft, + ChevronsRight, +} from "lucide-react"; +import { useEffect, useState } from "react"; + +import Spinner from "@/components/Spinner"; +import { Button } from "@/components/ui/button"; +import { Card, CardContent } from "@/components/ui/card"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; +import { + Table, + TableBody, + TableCell, + TableHead, + TableHeader, + TableRow, +} from "@/components/ui/table"; +import type { AdminScoreResponse } from "@/lib/types/api"; + +interface AdminScoreDataTableProps { + columns: Array>; + data: AdminScoreResponse[]; + totalCount: number; + isLoading: boolean; + pagination: { + pageIndex: number; + pageSize: number; + }; + setPagination: OnChangeFn; + onSelectionIdsChange: (ids: number[]) => void; + selectionResetKey: number; +} + +export function AdminScoreDataTable({ + columns, + data, + totalCount, + isLoading, + pagination, + setPagination, + onSelectionIdsChange, + selectionResetKey, +}: AdminScoreDataTableProps) { + const [sorting, setSorting] = useState([]); + const [columnVisibility, setColumnVisibility] = useState({}); + const [rowSelection, setRowSelection] = useState({}); + + const pageCount = Math.max(1, Math.ceil(totalCount / pagination.pageSize)); + + const table = useReactTable({ + data, + columns, + manualPagination: true, + pageCount, + getRowId: row => row.score.id.toString(), + onPaginationChange: setPagination, + getCoreRowModel: getCoreRowModel(), + getPaginationRowModel: getPaginationRowModel(), + onSortingChange: setSorting, + getSortedRowModel: getSortedRowModel(), + onColumnVisibilityChange: setColumnVisibility, + onRowSelectionChange: setRowSelection, + state: { + pagination, + sorting, + columnVisibility, + rowSelection, + }, + }); + + useEffect(() => { + const selected = table.getSelectedRowModel().rows.map(row => row.original.score.id); + onSelectionIdsChange(selected); + }, [onSelectionIdsChange, rowSelection, table]); + + useEffect(() => { + setRowSelection({}); + }, [data, selectionResetKey]); + + const selectedRows = table.getFilteredSelectedRowModel().rows; + + return ( +
+
+ {isLoading && data.length === 0 + ? ( + + + + + + ) + : ( + + + {table.getHeaderGroups().map(headerGroup => ( + + {headerGroup.headers.map((header) => { + return ( + + {header.isPlaceholder + ? null + : flexRender( + header.column.columnDef.header, + header.getContext(), + )} + + ); + })} + + ))} + + + {table.getRowModel().rows?.length + ? ( + table.getRowModel().rows.map(row => ( + + {row.getVisibleCells().map(cell => ( + + {flexRender( + cell.column.columnDef.cell, + cell.getContext(), + )} + + ))} + + )) + ) + : ( + + + No scores found. + + + )} + +
+ )} +
+ + +
+ ); +} + +function AdminScorePagination({ + table, + totalCount, + pagination, + setPagination, + selectedCount, +}: { + table: ReturnType>; + totalCount: number; + pagination: { pageIndex: number; pageSize: number }; + setPagination: OnChangeFn; + selectedCount: number; +}) { + const pageCount = Math.max(1, Math.ceil(totalCount / pagination.pageSize)); + + return ( +
+
+ + per page +
+ +
+ {totalCount} + {" "} + total + {selectedCount > 0 && ` • ${selectedCount} selected`} +
+ +
+ + {`Page ${pagination.pageIndex + 1} of ${pageCount}`} + + + + + +
+
+ ); +} diff --git a/app/(admin)/admin/users/[id]/edit/components/Tabs/AdminUserEditScores/components/BeatmapCellContent.tsx b/app/(admin)/admin/users/[id]/edit/components/Tabs/AdminUserEditScores/components/BeatmapCellContent.tsx new file mode 100644 index 00000000..011128be --- /dev/null +++ b/app/(admin)/admin/users/[id]/edit/components/Tabs/AdminUserEditScores/components/BeatmapCellContent.tsx @@ -0,0 +1,63 @@ +"use client"; + +import Image from "next/image"; +import Link from "next/link"; + +import BeatmapStatusIcon from "@/components/BeatmapStatus"; +import PrettyDate from "@/components/General/PrettyDate"; +import { useBeatmap } from "@/lib/hooks/api/beatmap/useBeatmap"; +import { BeatmapStatusWeb } from "@/lib/types/api"; + +export default function BeatmapCellContent({ + beatmapId, + whenSubmitted, +}: { + beatmapId: number; + whenSubmitted: string; +}) { + const { data: beatmap } = useBeatmap(beatmapId); + + return ( +
+ {beatmap + ? ( + {`${beatmap.artist} + ) + :
} + +
+ {beatmap?.status && beatmap.status !== BeatmapStatusWeb.UNKNOWN && ( + + + + )} + {beatmap + ? ( + + {beatmap.artist} - {beatmap.title} + + ) + : ( + + {`Beatmap #${beatmapId}`} + + )} + +
+ Date played: + +
+
+
+ ); +} diff --git a/app/(admin)/admin/users/[id]/edit/page.tsx b/app/(admin)/admin/users/[id]/edit/page.tsx index 8ab864f5..085ca20d 100644 --- a/app/(admin)/admin/users/[id]/edit/page.tsx +++ b/app/(admin)/admin/users/[id]/edit/page.tsx @@ -1,11 +1,12 @@ "use client"; -import { Activity, FileText, User } from "lucide-react"; +import { FileText, Trophy, User } from "lucide-react"; import { usePathname, useSearchParams } from "next/navigation"; -import { use, useCallback, useEffect, useRef, useState } from "react"; +import { use, useEffect, useState } from "react"; import AdminUserEditEvent from "@/app/(admin)/admin/users/[id]/edit/components/Tabs/AdminUserEditEvents"; import AdminUserEditGeneral from "@/app/(admin)/admin/users/[id]/edit/components/Tabs/AdminUserEditGeneral"; +import AdminUserEditScores from "@/app/(admin)/admin/users/[id]/edit/components/Tabs/AdminUserEditScores/AdminUserEditScores"; import PrettyHeader from "@/components/General/PrettyHeader"; import Spinner from "@/components/Spinner"; import { @@ -18,10 +19,9 @@ import { AlertDialogHeader, AlertDialogTitle, } from "@/components/ui/alert-dialog"; -import { Card, CardContent } from "@/components/ui/card"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; -import { WorkInProgress } from "@/components/WorkInProgress"; import { useAdminUserSensitive } from "@/lib/hooks/api/user/useAdminUserEdit"; +import { createQueryString } from "@/lib/utils/buildQuery"; export default function Page({ params }: { params: Promise<{ id: string }> }) { const { id } = use(params); @@ -29,52 +29,22 @@ export default function Page({ params }: { params: Promise<{ id: string }> }) { const pathname = usePathname(); const searchParams = useSearchParams(); - const tab = searchParams.get("tab") ?? "general"; - const [activeTab, setActiveTab] = useState(tab); + const requestedTab = searchParams.get("tab") ?? "general"; + const [activeTab, setActiveTab] = useState(requestedTab === "events" ? "general" : requestedTab); const [hasAcceptedEventsWarning, setHasAcceptedEventsWarning] = useState(false); - const [showEventsWarning, setShowEventsWarning] = useState(false); - const [pendingTab, setPendingTab] = useState(null); - const hasCheckedInitialTab = useRef(false); + const [showEventsWarning, setShowEventsWarning] = useState(requestedTab === "events"); + const [pendingTab, setPendingTab] = useState(requestedTab === "events" ? "events" : null); const { data: user, isLoading } = useAdminUserSensitive(userId); - const createQueryString = useCallback( - (name: string, value: string) => { - const params = new URLSearchParams(searchParams.toString()); - if (value) { - params.set(name, value); - } - else { - params.delete(name); - } - return params.toString(); - }, - [searchParams], - ); - useEffect(() => { window.history.replaceState( null, "", `${pathname}?${createQueryString("tab", activeTab)}`, ); - }, [activeTab, pathname, createQueryString]); - - useEffect(() => { - if ( - !hasCheckedInitialTab.current - && tab === "events" - && !hasAcceptedEventsWarning - && !isLoading - && user - ) { - hasCheckedInitialTab.current = true; - setActiveTab("general"); - setPendingTab("events"); - setShowEventsWarning(true); - } - }, [tab, hasAcceptedEventsWarning, isLoading, user]); + }, [activeTab, pathname]); const handleTabChange = (value: string) => { if (value === "events" && !hasAcceptedEventsWarning) { @@ -148,14 +118,14 @@ export default function Page({ params }: { params: Promise<{ id: string }> }) { onValueChange={handleTabChange} className="w-full" > - + General - - - Activity + + + Scores @@ -167,12 +137,8 @@ export default function Page({ params }: { params: Promise<{ id: string }> }) { - - - - - - + + diff --git a/app/(admin)/admin/users/components/UsersSearch.tsx b/app/(admin)/admin/users/components/UsersSearch.tsx index d26cb71c..b6efe670 100644 --- a/app/(admin)/admin/users/components/UsersSearch.tsx +++ b/app/(admin)/admin/users/components/UsersSearch.tsx @@ -3,7 +3,7 @@ import type { PaginationState } from "@tanstack/react-table"; import { Search, Settings } from "lucide-react"; import { usePathname, useSearchParams } from "next/navigation"; -import { createContext, useCallback, useEffect, useState } from "react"; +import { createContext, useEffect, useState } from "react"; import { adminUserColumns } from "@/app/(admin)/admin/users/components/AdminUserColumns"; import { AdminUserDataTable } from "@/app/(admin)/admin/users/components/AdminUserDataTable"; @@ -15,6 +15,7 @@ import { Label } from "@/components/ui/label"; import { Switch } from "@/components/ui/switch"; import { useUserSearchList } from "@/lib/hooks/api/user/useUserSearchList"; import useDebounce from "@/lib/hooks/useDebounce"; +import { createQueryString } from "@/lib/utils/buildQuery"; import { tryParseNumber } from "@/lib/utils/type.util"; export const PersonalInfoVisibilityContext = createContext(false); @@ -38,37 +39,22 @@ export default function UsersSearch() { const [showPersonalInfo, setShowPersonalInfo] = useState(false); const [showSettings, setShowSettings] = useState(false); - const createQueryString = useCallback( - (name: string, value: string) => { - const params = new URLSearchParams(searchParams.toString()); - if (value) { - params.set(name, value); - } - else { - params.delete(name); - } - return params.toString(); - }, - [searchParams], - ); - useEffect(() => { window.history.replaceState( null, "", `${pathname}?${createQueryString("query", searchValue)}`, ); - }, [searchValue, pathname, createQueryString]); + }, [searchValue, pathname]); useEffect(() => { window.history.replaceState( null, "", - `${pathname - }?${ + `${pathname}?${ createQueryString("page", pagination.pageIndex.toString())}`, ); - }, [pagination.pageIndex, pathname, createQueryString]); + }, [pagination.pageIndex, pathname]); useEffect(() => { window.history.replaceState( @@ -76,7 +62,7 @@ export default function UsersSearch() { "", `${pathname}?${createQueryString("size", pagination.pageSize.toString())}`, ); - }, [pagination.pageSize, pathname, createQueryString]); + }, [pagination.pageSize, pathname]); const { data, isLoading } = useUserSearchList( searchValue || undefined, diff --git a/app/(admin)/components/AppSidebar.tsx b/app/(admin)/components/AppSidebar.tsx index 89b2faac..54cb4c75 100644 --- a/app/(admin)/components/AppSidebar.tsx +++ b/app/(admin)/components/AppSidebar.tsx @@ -1,6 +1,6 @@ "use client"; -import { ChevronsUp, Home, Moon, Music2, Sun, Users } from "lucide-react"; +import { ChevronsUp, Home, ListChecks, Moon, Music2, ScrollText, Sun, Users } from "lucide-react"; import Link from "next/link"; import type { SWRInfiniteResponse } from "swr/infinite"; @@ -64,6 +64,22 @@ const actionTabs = [ }, ]; +// It actually requires super user, but we can't check for that in the frontend, so we just check for admin instead. +const processingTabs = [ + { + title: "Score processing", + url: "/admin/processing/scores", + icon: ListChecks, + requires: UserBadge.ADMIN, + }, + { + title: "Processing events", + url: "/admin/processing/events", + icon: ScrollText, + requires: UserBadge.ADMIN, + }, +]; + export function AppSidebar() { const { self } = useSelf(); const requestsQuery = useBeatmapSetGetHypedSets(); @@ -84,6 +100,14 @@ export function AppSidebar() { return !requirements; }); + const processingTabsWithAccess = processingTabs.filter((item) => { + if (!self) + return false; + + const requirements = item.requires && !self.badges.includes(item.requires); + return !requirements; + }); + return ( @@ -128,13 +152,30 @@ export function AppSidebar() { ))} + + {self ? (processingTabsWithAccess.length > 0 ? "Background processing" : "") : null} + + + + {processingTabsWithAccess.map(item => ( + + + + + {item.title} + + + + ))} + + - + Change theme diff --git a/app/(admin)/layout.tsx b/app/(admin)/layout.tsx index 4f8fc1dd..03e6727f 100644 --- a/app/(admin)/layout.tsx +++ b/app/(admin)/layout.tsx @@ -22,8 +22,8 @@ export default function AdminLayout({
- -
{children}
+ {/* Adding bottom padding here so the "Go top" button wouldn't overlap content */} +
{children}
); diff --git a/app/(website)/(site)/page.tsx b/app/(website)/(site)/page.tsx index 05e686a1..d61af456 100644 --- a/app/(website)/(site)/page.tsx +++ b/app/(website)/(site)/page.tsx @@ -128,6 +128,7 @@ export default function Home() { alt="frontpage image" width={1150} height={1150} + loading="eager" className="size-full rounded-lg md:min-h-96 md:min-w-96" />
@@ -194,6 +195,7 @@ export default function Home() { src={card.imageUrl || "/placeholder.svg"} alt={card.titleKey} fill + sizes="(min-width: 1024px) 33vw, (min-width: 768px) 50vw, 100vw" className="rounded-t-lg object-cover " /> diff --git a/app/(website)/api/getVideo/route.ts b/app/(website)/api/getVideo/route.ts index 5ff15da3..199b328a 100644 --- a/app/(website)/api/getVideo/route.ts +++ b/app/(website)/api/getVideo/route.ts @@ -53,6 +53,10 @@ async function getVideoStream(request: Request, videoId: number) { videoStream.on("end", () => controller.close()); videoStream.on("error", err => controller.error(err)); }, + cancel() { + // Browser aborted the response (seek, unmount, navigation) + videoStream.destroy(); + }, }); const response = new Response(stream, { status: 206, headers }); diff --git a/app/(website)/beatmapsets/[...ids]/page.tsx b/app/(website)/beatmapsets/[...ids]/page.tsx index 9c6ca243..e363349e 100644 --- a/app/(website)/beatmapsets/[...ids]/page.tsx +++ b/app/(website)/beatmapsets/[...ids]/page.tsx @@ -2,7 +2,7 @@ import { Book, Clapperboard, Music2 } from "lucide-react"; import Image from "next/image"; import { usePathname, useSearchParams } from "next/navigation"; -import { use, useCallback, useEffect, useState } from "react"; +import { use, useEffect, useState } from "react"; import { BeatmapDropdown } from "@/app/(website)/beatmapsets/components/BeatmapDropdown"; import { BeatmapInfoAccordion } from "@/app/(website)/beatmapsets/components/BeatmapInfoAccordion"; @@ -25,6 +25,7 @@ import { useBeatmapSet } from "@/lib/hooks/api/beatmap/useBeatmapSet"; import { useT } from "@/lib/i18n/utils"; import type { BeatmapResponse } from "@/lib/types/api"; import { BeatmapStatusWeb, GameMode } from "@/lib/types/api"; +import { createQueryString } from "@/lib/utils/buildQuery"; import { gameModeToVanilla } from "@/lib/utils/gameMode.util"; import { isInstance, tryParseNumber } from "@/lib/utils/type.util"; @@ -56,16 +57,6 @@ export default function Beatmapset(props: BeatmapsetProps) { ); const beatmapSet = beatmapsetQuery.data; - const createQueryString = useCallback( - (name: string, value: string) => { - const params = new URLSearchParams(searchParams.toString()); - params.set(name, value); - - return params.toString(); - }, - [searchParams], - ); - useEffect(() => { if (!beatmapSet) return; @@ -110,7 +101,7 @@ export default function Beatmapset(props: BeatmapsetProps) { "", `${pathname}?${createQueryString("mode", activeMode.toString())}`, ); - }, [activeMode, createQueryString, pathname]); + }, [activeMode, pathname]); useEffect(() => { if (!activeBeatmap) @@ -121,10 +112,10 @@ export default function Beatmapset(props: BeatmapsetProps) { null, "", `/beatmapsets/${beatmapSetId}/${activeBeatmap.id}?${ - searchParams.toString()}`, + new URLSearchParams(window.location.search)}`, ); } - }, [activeBeatmap, beatmapId, beatmapSetId, searchParams]); + }, [activeBeatmap, beatmapId, beatmapSetId]); if (beatmapsetQuery.isLoading || !activeMode) { return ( diff --git a/app/(website)/leaderboard/components/UserDataTable.tsx b/app/(website)/leaderboard/components/UserDataTable.tsx index f28d9ee4..be563b05 100644 --- a/app/(website)/leaderboard/components/UserDataTable.tsx +++ b/app/(website)/leaderboard/components/UserDataTable.tsx @@ -130,29 +130,32 @@ export function UserDataTable({ data-state={row.getIsSelected() && "selected"} className="smooth-transition group relative isolate overflow-hidden hover:translate-x-2" > - {row.getVisibleCells().map(cell => ( + {row.getVisibleCells().map((cell, index) => ( + {/* Row background. Has to live inside a - a
as a direct child of is invalid HTML, the parser relocates it and hydration mismatches. The cell is position: static, so inset-0 still resolves against the relative . */} + {index === 0 && ( + <> +
+ +
+
+ + )} + {flexRender( cell.column.columnDef.cell, cell.getContext(), )} ))} - - <> -
- -
-
- )) ) : ( diff --git a/app/(website)/leaderboard/page.tsx b/app/(website)/leaderboard/page.tsx index e9f930df..95505533 100644 --- a/app/(website)/leaderboard/page.tsx +++ b/app/(website)/leaderboard/page.tsx @@ -1,7 +1,7 @@ "use client"; import { ChartColumnIncreasing } from "lucide-react"; import { usePathname, useSearchParams } from "next/navigation"; -import { useCallback, useEffect, useMemo, useState } from "react"; +import { useEffect, useMemo, useState } from "react"; import { useUserColumns } from "@/app/(website)/leaderboard/components/UserColumns"; import { UserDataTable } from "@/app/(website)/leaderboard/components/UserDataTable"; @@ -14,6 +14,7 @@ import { Button } from "@/components/ui/button"; import { useUsersLeaderboard } from "@/lib/hooks/api/user/useUsersLeaderboard"; import { useT } from "@/lib/i18n/utils"; import { GameMode, LeaderboardSortType } from "@/lib/types/api"; +import { createQueryString } from "@/lib/utils/buildQuery"; import { isInstance, tryParseNumber } from "@/lib/utils/type.util"; export default function Leaderboard() { @@ -41,23 +42,13 @@ export default function Leaderboard() { pageSize: size, }); - const createQueryString = useCallback( - (name: string, value: string) => { - const params = new URLSearchParams(searchParams.toString()); - params.set(name, value); - - return params.toString(); - }, - [searchParams], - ); - useEffect(() => { window.history.replaceState( null, "", `${pathname}?${createQueryString("type", leaderboardType.toString())}`, ); - }, [leaderboardType, pathname, createQueryString]); + }, [leaderboardType, pathname]); useEffect(() => { window.history.replaceState( @@ -65,7 +56,7 @@ export default function Leaderboard() { "", `${pathname}?${createQueryString("mode", activeMode.toString())}`, ); - }, [activeMode, pathname, createQueryString]); + }, [activeMode, pathname]); useEffect(() => { window.history.replaceState( @@ -73,17 +64,16 @@ export default function Leaderboard() { "", `${pathname}?${createQueryString("size", pagination.pageSize.toString())}`, ); - }, [pagination.pageSize, pathname, createQueryString]); + }, [pagination.pageSize, pathname]); useEffect(() => { window.history.replaceState( null, "", - `${pathname - }?${ + `${pathname}?${ createQueryString("page", pagination.pageIndex.toString())}`, ); - }, [pagination.pageIndex, pathname, createQueryString]); + }, [pagination.pageIndex, pathname]); const comboboxValues = useMemo( () => [ diff --git a/app/(website)/score/[id]/page.tsx b/app/(website)/score/[id]/page.tsx index 2722654c..3a226e07 100644 --- a/app/(website)/score/[id]/page.tsx +++ b/app/(website)/score/[id]/page.tsx @@ -17,6 +17,7 @@ import { Button } from "@/components/ui/button"; import { DropdownMenu, DropdownMenuContent, + DropdownMenuItem, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; import { Separator } from "@/components/ui/separator"; @@ -27,7 +28,7 @@ import { useScore } from "@/lib/hooks/api/score/useScore"; import { useUser } from "@/lib/hooks/api/user/useUser"; import useSelf from "@/lib/hooks/useSelf"; import { useT } from "@/lib/i18n/utils"; -import { BeatmapStatusWeb } from "@/lib/types/api"; +import { BeatmapStatusWeb, UserBadge } from "@/lib/types/api"; import { getBeatmapStarRating } from "@/lib/utils/getBeatmapStarRating"; import { getGradeColor } from "@/lib/utils/getGradeColor"; import { tryParseNumber } from "@/lib/utils/type.util"; @@ -192,7 +193,8 @@ export default function Score(props: { params: Promise<{ id: string }> }) { - + window.open(`/admin/scores/${score.id}`, "_blank")}> + {t("actions.openInAdminPanel")} + {/* TODO: Implement console.log("todo")}> diff --git a/app/(website)/topplays/page.tsx b/app/(website)/topplays/page.tsx index 9e254d1e..b7f680ad 100644 --- a/app/(website)/topplays/page.tsx +++ b/app/(website)/topplays/page.tsx @@ -11,6 +11,7 @@ import { Button } from "@/components/ui/button"; import { useTopScores } from "@/lib/hooks/api/score/useTopScores"; import { useT } from "@/lib/i18n/utils"; import { GameMode } from "@/lib/types/api"; +import { createQueryString } from "@/lib/utils/buildQuery"; import { isInstance } from "@/lib/utils/type.util"; import UserScoreMinimal from "./components/UserScoreMinimal"; @@ -39,23 +40,13 @@ export default function Topplays() { const totalCountScores = data?.find(item => item.total_count !== undefined)?.total_count ?? 0; - const createQueryString = useCallback( - (name: string, value: string) => { - const params = new URLSearchParams(searchParams.toString()); - params.set(name, value); - - return params.toString(); - }, - [searchParams], - ); - useEffect(() => { window.history.replaceState( null, "", `${pathname}?${createQueryString("mode", activeMode.toString())}`, ); - }, [activeMode, pathname, createQueryString]); + }, [activeMode, pathname]); return (
diff --git a/app/(website)/user/[id]/page.tsx b/app/(website)/user/[id]/page.tsx index cec64aab..22c007b0 100644 --- a/app/(website)/user/[id]/page.tsx +++ b/app/(website)/user/[id]/page.tsx @@ -42,6 +42,7 @@ import { GameMode, ScoreTableType, } from "@/lib/types/api"; +import { createQueryString } from "@/lib/utils/buildQuery"; import { isInstance, tryParseNumber } from "@/lib/utils/type.util"; import { isUserHasAdminPrivilege } from "@/lib/utils/userPrivileges.util"; @@ -80,16 +81,6 @@ export default function UserPage(props: { params: Promise<{ id: string }> }) { const userStatsQuery = useUserStats(userId, activeMode); const userMetadataQuery = useUserMetadata(userId); - const createQueryString = useCallback( - (name: string, value: string) => { - const params = new URLSearchParams(searchParams.toString()); - params.set(name, value); - - return params.toString(); - }, - [searchParams], - ); - const renderTabContent = useCallback( ( userStats: UserStatsResponse | undefined, @@ -169,7 +160,7 @@ export default function UserPage(props: { params: Promise<{ id: string }> }) { "", `${pathname}?${createQueryString("mode", activeMode.toString())}`, ); - }, [activeMode, createQueryString, pathname]); + }, [activeMode, pathname]); useEffect(() => { if (activeMode || !userQuery.data) diff --git a/components/Admin/ScoreProcessing/AddScoreProcessingDialog.tsx b/components/Admin/ScoreProcessing/AddScoreProcessingDialog.tsx new file mode 100644 index 00000000..4eca968d --- /dev/null +++ b/components/Admin/ScoreProcessing/AddScoreProcessingDialog.tsx @@ -0,0 +1,185 @@ +"use client"; + +import { Plus } from "lucide-react"; +import { useState } from "react"; + +import Spinner from "@/components/Spinner"; +import { Badge } from "@/components/ui/badge"; +import { Button } from "@/components/ui/button"; +import { + Dialog, + DialogContent, + DialogDescription, + DialogFooter, + DialogHeader, + DialogTitle, + DialogTrigger, +} from "@/components/ui/dialog"; +import { Input } from "@/components/ui/input"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; +import { useToast } from "@/hooks/use-toast"; +import { useCreateScoreProcessingTask } from "@/lib/hooks/api/score-processing/useScoreProcessingActions"; +import { useScoreProcessingPreview } from "@/lib/hooks/api/score-processing/useScoreProcessingPreview"; +import useDebounce from "@/lib/hooks/useDebounce"; +import { ScoreTaskType } from "@/lib/types/api"; +import { getStatusBadgeClassName } from "@/lib/utils/getStatusBadgeColor"; +import { tryParseNumber } from "@/lib/utils/type.util"; + +interface AddScoreProcessingDialogProps { + onCreated: () => void; +} + +export function AddScoreProcessingDialog({ onCreated }: AddScoreProcessingDialogProps) { + const { toast } = useToast(); + const [open, setOpen] = useState(false); + const [scoreIdInput, setScoreIdInput] = useState(""); + const [action, setAction] = useState(ScoreTaskType.RECALCULATION); + + const debouncedScoreId = useDebounce(scoreIdInput, 400); + const currentScoreId = parsePositiveScoreId(scoreIdInput); + const parsedScoreId = parsePositiveScoreId(debouncedScoreId); + + const { data: preview, isLoading, error } = useScoreProcessingPreview(parsedScoreId); + const { trigger: createTask, isMutating } = useCreateScoreProcessingTask(); + const hasLoadedPreview = currentScoreId != null && preview?.score.score.id === currentScoreId; + const canSubmit = hasLoadedPreview && !isLoading && !error; + + const handleSubmit = async () => { + if (currentScoreId == null) { + toast({ title: "Invalid score id", description: "Enter a valid score id.", variant: "destructive" }); + return; + } + + if (!canSubmit) { + toast({ + title: "Preview required", + description: "Load a valid score preview before queueing a task.", + variant: "destructive", + }); + return; + } + + try { + await createTask({ score_id: currentScoreId, action }); + toast({ title: "Task queued", description: `Queued ${action} for score #${currentScoreId}.` }); + onCreated(); + setOpen(false); + setScoreIdInput(""); + } + catch (createError) { + toast({ title: "Could not queue task", description: (createError as Error).message, variant: "destructive" }); + } + }; + + return ( + + + + + + + Queue score processing + + Enter a score id, review the preview, then choose an action to queue. + + + +
+
+ + setScoreIdInput(event.target.value)} + /> +
+ + {parsedScoreId && ( +
+ {isLoading + ? ( +
+ +
+ ) + : error + ?

Score not found.

+ : preview + ? ( +
+

+ Score # + {preview.score.score.id} + {" · "} + {preview.score.score.user?.username ?? "Unknown"} +

+

+ {Math.round(preview.score.score.performance_points)} + pp + {" · "} + {preview.score.submission_status} + {" · "} + {preview.score.beatmap_status} +

+ {preview.active_task && ( + + Active: + {" "} + {preview.active_task.task_type} + {" "} + ( + {preview.active_task.status} + ) + + )} +
+ ) + : null} +
+ )} + +
+ + +
+
+ + + + +
+
+ ); +} + +function parsePositiveScoreId(value: string) { + const parsed = tryParseNumber(value); + return parsed != null && parsed > 0 ? parsed : null; +} diff --git a/components/Admin/ScoreProcessing/ScoreFiltersCard.tsx b/components/Admin/ScoreProcessing/ScoreFiltersCard.tsx new file mode 100644 index 00000000..47c1dc84 --- /dev/null +++ b/components/Admin/ScoreProcessing/ScoreFiltersCard.tsx @@ -0,0 +1,161 @@ +"use client"; + +import { useCallback, useState } from "react"; + +import { Button } from "@/components/ui/button"; +import { Card, CardContent } from "@/components/ui/card"; +import { Input } from "@/components/ui/input"; +import { MultiSelect } from "@/components/ui/multi-select"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; +import type { AdminUserScoresParams } from "@/lib/hooks/api/user/useAdminUserScores"; +import { BeatmapStatus, GameMode, Mods, ScoreSortType, SubmissionStatus } from "@/lib/types/api"; + +interface ScoreFiltersCardProps { + value: AdminUserScoresParams; + onApply: (filters: AdminUserScoresParams) => void; + isLoading?: boolean; +} + +const ANY_VALUE = "any"; + +export function ScoreFiltersCard({ + value, + onApply, + isLoading, +}: ScoreFiltersCardProps) { + const [draft, setDraft] = useState(value); + + const update = useCallback( + (key: Key, next: AdminUserScoresParams[Key]) => { + setDraft(previous => ({ ...previous, [key]: next })); + }, + [], + ); + + const handleApply = useCallback(() => onApply(draft), [draft, onApply]); + + return ( + + +
+ + +
+ +
+ + ({ label: option, value: option }))} + defaultValue={draft.mods ?? []} + placeholder="Any mods" + onValueChange={selected => update("mods", selected.length > 0 ? selected as Mods[] : undefined)} + /> +
+ +
+ + +
+ +
+ + +
+ +
+ + update("submitted_from", event.target.value || undefined)} + /> +
+ +
+ + update("submitted_to", event.target.value || undefined)} + /> +
+ +
+ + +
+ +
+ +
+
+
+ ); +} diff --git a/components/Admin/ScoreProcessing/ScoreProcessingTaskCard.tsx b/components/Admin/ScoreProcessing/ScoreProcessingTaskCard.tsx new file mode 100644 index 00000000..87c4b608 --- /dev/null +++ b/components/Admin/ScoreProcessing/ScoreProcessingTaskCard.tsx @@ -0,0 +1,157 @@ +"use client"; + +import { ExternalLink, RotateCcw, Square } from "lucide-react"; +import Link from "next/link"; + +import PrettyDate from "@/components/General/PrettyDate"; +import ImageWithFallback from "@/components/ImageWithFallback"; +import { SmallUserElement } from "@/components/SmallUserElement"; +import { Tooltip } from "@/components/Tooltip"; +import { Badge } from "@/components/ui/badge"; +import { Button } from "@/components/ui/button"; +import { useToast } from "@/hooks/use-toast"; +import { useBeatmap } from "@/lib/hooks/api/beatmap/useBeatmap"; +import { + useCancelScoreProcessingTask, + useRequeueScoreProcessingTask, +} from "@/lib/hooks/api/score-processing/useScoreProcessingActions"; +import type { ScoreProcessingTaskResponse } from "@/lib/types/api"; +import { ScoreProcessingStatus } from "@/lib/types/api"; +import { getGradeColor } from "@/lib/utils/getGradeColor"; +import { getStatusBadgeTextClassName } from "@/lib/utils/getStatusBadgeColor"; + +interface ScoreProcessingTaskCardProps { + task: ScoreProcessingTaskResponse; + onChanged: () => void; +} + +export function ScoreProcessingTaskCard({ task, onChanged }: ScoreProcessingTaskCardProps) { + const { toast } = useToast(); + const score = task.score?.score; + const beatmapQuery = useBeatmap(score?.beatmap_id ?? null); + const beatmap = beatmapQuery.data; + + const { trigger: cancelTask, isMutating: isCancelling } = useCancelScoreProcessingTask(task.id); + const { trigger: requeueTask, isMutating: isRequeueing } = useRequeueScoreProcessingTask(task.id); + + const handleStop = async () => { + try { + await cancelTask(); + toast({ title: "Task stopped", description: `Task #${task.id} was cancelled.` }); + onChanged(); + } + catch (error) { + toast({ title: "Could not stop task", description: (error as Error).message, variant: "destructive" }); + } + }; + + const handleRequeue = async () => { + try { + await requeueTask(); + toast({ title: "Task requeued", description: `Task #${task.id} was requeued.` }); + onChanged(); + } + catch (error) { + toast({ title: "Could not requeue task", description: (error as Error).message, variant: "destructive" }); + } + }; + + const isProcessing = task.status === ScoreProcessingStatus.PROCESSING; + const isPending = task.status === ScoreProcessingStatus.PENDING; + const isFailed = task.status === ScoreProcessingStatus.FAILED; + + return ( +
+
+ {beatmap && ( + + )} +
+
+ {task.status} + {`ID: ${task.id}`} + {task.score?.score.game_mode_extended} + {task.task_type} + {task.retry_count > 0 && ( + + {`Retries: ${task.retry_count} / Retry: ${task.status === ScoreProcessingStatus.PENDING ? "✔" : "✖"}`} + + )} +
+ +
+ {score && ( + + {score.grade} + + )} +

+ {beatmap ? `${beatmap.artist} - ${beatmap.title}` : `Beatmap #${score?.beatmap_id ?? "?"}`} +

+

+ {score?.mods} +

+
+ +
+ {score?.user && ( + + )} + + Score ID: {task.score_id} + + +
+ + {isFailed && task.error_message && ( +
+ {task.error_code ? `${task.error_code}: ` : ""} + {task.error_message} +
+ )} +
+ +
+ + + {isFailed && ( + + )} + + {isProcessing && ( + + + + + + )} + + {isPending && ( + + )} +
+
+
+ ); +} diff --git a/components/Admin/ScoreProcessing/ScoreProcessingTaskFiltersCard.tsx b/components/Admin/ScoreProcessing/ScoreProcessingTaskFiltersCard.tsx new file mode 100644 index 00000000..96770f40 --- /dev/null +++ b/components/Admin/ScoreProcessing/ScoreProcessingTaskFiltersCard.tsx @@ -0,0 +1,93 @@ +"use client"; + +import { useCallback, useState } from "react"; + +import { Button } from "@/components/ui/button"; +import { Card, CardContent } from "@/components/ui/card"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; +import type { ScoreProcessingTaskFilters } from "@/lib/hooks/api/score-processing/useScoreProcessingTasks"; +import { ScoreProcessingStatus, ScoreTaskType } from "@/lib/types/api"; + +interface ScoreProcessingTaskFiltersCardProps { + value: ScoreProcessingTaskFilters; + onApply: (filters: ScoreProcessingTaskFilters) => void; + isLoading?: boolean; +} + +const ANY_VALUE = "any"; + +export function ScoreProcessingTaskFiltersCard({ + value, + onApply, + isLoading, +}: ScoreProcessingTaskFiltersCardProps) { + const [draft, setDraft] = useState(value); + + const update = useCallback( + (key: Key, next: ScoreProcessingTaskFilters[Key]) => { + setDraft(previous => ({ ...previous, [key]: next })); + }, + [], + ); + + const handleApply = useCallback(() => onApply(draft), [draft, onApply]); + + return ( + + + +
+ + +
+ +
+ + +
+ +
+ +
+
+
+ ); +} diff --git a/eslint.config.ts b/eslint.config.ts index 8dea1e83..9a546370 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -1,7 +1,7 @@ import { defineConfig } from "@richardscull/eslint-config"; export default defineConfig({ - ignores: ["**/components/ui/**.tsx"], // shadcn/ui components, managed externally + ignores: ["**/components/ui/**.tsx", "lib/types/api/client/**", "lib/types/api/core/**"], tailwindCSS: true, }, { rules: { diff --git a/lib/hooks/api/score-processing/useScoreProcessingActions.ts b/lib/hooks/api/score-processing/useScoreProcessingActions.ts new file mode 100644 index 00000000..d49e7e3e --- /dev/null +++ b/lib/hooks/api/score-processing/useScoreProcessingActions.ts @@ -0,0 +1,45 @@ +import useSWRMutation from "swr/mutation"; + +import poster from "@/lib/services/poster"; +import type { BulkScoreProcessingByFilterRequest, BulkScoreProcessingRequest, BulkScoreProcessingResultResponse, CreateScoreProcessingTaskRequest, ScoreProcessingTaskResponse } from "@/lib/types/api"; + +export function useCreateScoreProcessingTask() { + return useSWRMutation( + "score-processing/create", + async (_key: string, { arg }: { arg: CreateScoreProcessingTaskRequest }) => { + return poster("score-processing", { json: arg }); + }, + ); +} + +export function useCancelScoreProcessingTask(taskId: number) { + return useSWRMutation( + `score-processing/${taskId}/cancel`, + async (url: string) => poster(url), + ); +} + +export function useRequeueScoreProcessingTask(taskId: number) { + return useSWRMutation( + `score-processing/${taskId}/requeue`, + async (url: string) => poster(url), + ); +} + +export function useBulkScoreProcessing() { + return useSWRMutation( + "score-processing/bulk", + async (_key: string, { arg }: { arg: BulkScoreProcessingRequest }) => { + return poster("score-processing/bulk", { json: arg }); + }, + ); +} + +export function useBulkScoreProcessingByFilter() { + return useSWRMutation( + "score-processing/bulk-by-filter", + async (_key: string, { arg }: { arg: BulkScoreProcessingByFilterRequest }) => { + return poster("score-processing/bulk-by-filter", { json: arg }); + }, + ); +} diff --git a/lib/hooks/api/score-processing/useScoreProcessingEvents.ts b/lib/hooks/api/score-processing/useScoreProcessingEvents.ts new file mode 100644 index 00000000..f22ca1ad --- /dev/null +++ b/lib/hooks/api/score-processing/useScoreProcessingEvents.ts @@ -0,0 +1,25 @@ +import type { SWRConfiguration } from "swr"; +import useSWR from "swr"; + +import fetcher from "@/lib/services/fetcher"; +import type { EventScoreProcessingListResponse, GetScoreProcessingEventsData } from "@/lib/types/api"; +import { buildQuery } from "@/lib/utils/buildQuery"; + +export interface ScoreProcessingEventsParams extends Omit, "score_id"> { + scoreId?: number | null; +} + +export function useScoreProcessingEvents( + params: ScoreProcessingEventsParams, + options?: SWRConfiguration, +) { + const queryString = buildQuery({ + page: params.page, + limit: params.limit, + score_id: params.scoreId, + types: params.types, + }); + const endpoint = `score-processing/events${queryString}`; + + return useSWR(endpoint, fetcher, { ...options }); +} diff --git a/lib/hooks/api/score-processing/useScoreProcessingPreview.ts b/lib/hooks/api/score-processing/useScoreProcessingPreview.ts new file mode 100644 index 00000000..03570713 --- /dev/null +++ b/lib/hooks/api/score-processing/useScoreProcessingPreview.ts @@ -0,0 +1,9 @@ +import useSWR from "swr"; + +import type { ScoreProcessingPreviewResponse } from "@/lib/types/api"; + +export function useScoreProcessingPreview(scoreId: number | null) { + return useSWR( + scoreId && scoreId > 0 ? `score-processing/score/${scoreId}` : null, + ); +} diff --git a/lib/hooks/api/score-processing/useScoreProcessingStats.ts b/lib/hooks/api/score-processing/useScoreProcessingStats.ts new file mode 100644 index 00000000..689a3d17 --- /dev/null +++ b/lib/hooks/api/score-processing/useScoreProcessingStats.ts @@ -0,0 +1,9 @@ +import type { SWRConfiguration } from "swr"; +import useSWR from "swr"; + +import fetcher from "@/lib/services/fetcher"; +import type { ScoreProcessingStatsResponse } from "@/lib/types/api"; + +export function useScoreProcessingStats(options?: SWRConfiguration) { + return useSWR("score-processing/stats", fetcher, { ...options }); +} diff --git a/lib/hooks/api/score-processing/useScoreProcessingTasks.ts b/lib/hooks/api/score-processing/useScoreProcessingTasks.ts new file mode 100644 index 00000000..70dd33ce --- /dev/null +++ b/lib/hooks/api/score-processing/useScoreProcessingTasks.ts @@ -0,0 +1,38 @@ +import type { SWRInfiniteConfiguration } from "swr/infinite"; +import useSWRInfinite from "swr/infinite"; + +import type { GetScoreProcessingData, ScoreProcessingTasksResponse } from "@/lib/types/api"; + +export interface ScoreProcessingTaskFilters extends Omit, "page" | "limit"> {} + +export function useScoreProcessingTasks( + filters: ScoreProcessingTaskFilters, + limit = 20, + options?: SWRInfiniteConfiguration, +) { + const getKey = ( + pageIndex: number, + previousPageData: ScoreProcessingTasksResponse | null, + ) => { + if (previousPageData && previousPageData.tasks.length === 0) + return null; + + const params = new URLSearchParams({ + page: (pageIndex + 1).toString(), + limit: limit.toString(), + }); + + if (filters.status) + params.append("status", filters.status); + if (filters.task_type) + params.append("task_type", filters.task_type); + if (filters.score_id) + params.append("score_id", filters.score_id.toString()); + if (filters.task_id) + params.append("task_id", filters.task_id.toString()); + + return `score-processing?${params.toString()}`; + }; + + return useSWRInfinite(getKey, options); +} diff --git a/lib/hooks/api/user/useAdminUserScores.ts b/lib/hooks/api/user/useAdminUserScores.ts new file mode 100644 index 00000000..deaabe67 --- /dev/null +++ b/lib/hooks/api/user/useAdminUserScores.ts @@ -0,0 +1,25 @@ +import type { SWRConfiguration } from "swr"; +import useSWR from "swr"; + +import fetcher from "@/lib/services/fetcher"; +import type { AdminScoresResponse, GetUserByIdScoresAdminData } from "@/lib/types/api"; +import { buildQuery } from "@/lib/utils/buildQuery"; + +export interface AdminUserScoresParams extends Omit, "page" | "limit"> {} + +export function useAdminUserScores( + userId: number, + params: AdminUserScoresParams, + page?: number, + limit?: number, + options?: SWRConfiguration, +) { + const queryString = buildQuery({ + ...params, + page: page ?? 1, + limit: limit ?? 20, + }); + const endpoint = `user/${userId}/scores/admin${queryString}`; + + return useSWR(endpoint, fetcher, { ...options }); +} diff --git a/lib/i18n/messages/en.json b/lib/i18n/messages/en.json index dbaa0a62..163571c7 100644 --- a/lib/i18n/messages/en.json +++ b/lib/i18n/messages/en.json @@ -1427,6 +1427,10 @@ "openMenu": { "text": "Open menu", "context": "Screen reader text for the dropdown menu button" + }, + "openInAdminPanel": { + "text": "Open in Admin Panel", + "context": "Dropdown menu item text to open score in admin panel" } }, "error": { diff --git a/lib/overrides/next/link.tsx b/lib/overrides/next/link.tsx deleted file mode 100644 index 41b8794b..00000000 --- a/lib/overrides/next/link.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import NextLink from "next/dist/client/link"; -import type { ComponentPropsWithRef } from "react"; - -/* - * ! Using prefetched pages omits their metadata, which causes pages to miss titles/descriptions. - * ! Therefore, we disable prefetching for all links by default. - */ - -function Link(props: ComponentPropsWithRef) { - return ; -} - -export default Link; diff --git a/lib/types/api/client.gen.ts b/lib/types/api/client.gen.ts deleted file mode 100644 index ea9d9963..00000000 --- a/lib/types/api/client.gen.ts +++ /dev/null @@ -1,18 +0,0 @@ -// This file is auto-generated by @hey-api/openapi-ts - -import type { ClientOptions as DefaultClientOptions, Config } from "@hey-api/client-fetch"; -import { createClient, createConfig } from "@hey-api/client-fetch"; - -import type { ClientOptions } from "./types.gen"; - -/** - * The `createClientConfig()` function will be called on client initialization - * and the returned object will become the client's initial configuration. - * - * You may want to initialize your client this way instead of calling - * `setConfig()`. This is useful for example if you're using Next.js - * to ensure your client always has the correct values. - */ -export type CreateClientConfig = (override?: Config) => Config & T>; - -export const client = createClient(createConfig()); diff --git a/lib/types/api/index.ts b/lib/types/api/index.ts index 25d4e5d9..5dda1e77 100644 --- a/lib/types/api/index.ts +++ b/lib/types/api/index.ts @@ -1,2 +1,3 @@ // This file is auto-generated by @hey-api/openapi-ts -export * from "./types.gen"; + +export { type AdminScoreResponse, type AdminScoresResponse, type BeatmapEventResponse, BeatmapEventType, type BeatmapResponse, type BeatmapSetEventsResponse, type BeatmapSetHypeCountResponse, type BeatmapSetResponse, type BeatmapSetsResponse, BeatmapStatus, BeatmapStatusWeb, type BulkScoreProcessingByFilterRequest, type BulkScoreProcessingRequest, type BulkScoreProcessingResultResponse, type Category, type ChangePasswordRequest, type ClientOptions, type CountryChangeRequest, CountryCode, type CreateScoreProcessingTaskRequest, type CustomBeatmapStatusChangeResponse, type DifficultyAttributes, type EditBeatmapsetFavouriteStatusRequest, type EditDefaultGameModeRequest, type EditDescriptionRequest, type EditFriendshipStatusRequest, type EditHidePreviousUsernameRequest, type EditIgnoreLoginDataRequest, type EditUserMetadataRequest, type EditUserPrivilegeRequest, type EditUserRestrictionRequest, type EventScoreProcessingListResponse, type EventScoreProcessingResponse, type EventUserResponse, type EventUsersResponse, type FavouritedResponse, type FollowersResponse, type FriendsResponse, type FriendStatusResponse, GameMode, type GetBeatmapByIdData, type GetBeatmapByIdError, type GetBeatmapByIdErrors, type GetBeatmapByIdLeaderboardData, type GetBeatmapByIdLeaderboardError, type GetBeatmapByIdLeaderboardErrors, type GetBeatmapByIdLeaderboardResponse, type GetBeatmapByIdLeaderboardResponses, type GetBeatmapByIdPpData, type GetBeatmapByIdPpError, type GetBeatmapByIdPpErrors, type GetBeatmapByIdPpResponse, type GetBeatmapByIdPpResponses, type GetBeatmapByIdResponse, type GetBeatmapByIdResponses, type GetBeatmapsetByBeatmapSetByIdData, type GetBeatmapsetByBeatmapSetByIdError, type GetBeatmapsetByBeatmapSetByIdErrors, type GetBeatmapsetByBeatmapSetByIdLeaderboardData, type GetBeatmapsetByBeatmapSetByIdLeaderboardError, type GetBeatmapsetByBeatmapSetByIdLeaderboardErrors, type GetBeatmapsetByBeatmapSetByIdLeaderboardResponse, type GetBeatmapsetByBeatmapSetByIdLeaderboardResponses, type GetBeatmapsetByBeatmapSetByIdPpData, type GetBeatmapsetByBeatmapSetByIdPpError, type GetBeatmapsetByBeatmapSetByIdPpErrors, type GetBeatmapsetByBeatmapSetByIdPpResponse, type GetBeatmapsetByBeatmapSetByIdPpResponses, type GetBeatmapsetByBeatmapSetByIdResponse, type GetBeatmapsetByBeatmapSetByIdResponses, type GetBeatmapsetByIdData, type GetBeatmapsetByIdError, type GetBeatmapsetByIdErrors, type GetBeatmapsetByIdEventsData, type GetBeatmapsetByIdEventsError, type GetBeatmapsetByIdEventsErrors, type GetBeatmapsetByIdEventsResponse, type GetBeatmapsetByIdEventsResponses, type GetBeatmapsetByIdFavouritedData, type GetBeatmapsetByIdFavouritedError, type GetBeatmapsetByIdFavouritedErrors, type GetBeatmapsetByIdFavouritedResponse, type GetBeatmapsetByIdFavouritedResponses, type GetBeatmapsetByIdHypeData, type GetBeatmapsetByIdHypeError, type GetBeatmapsetByIdHypeErrors, type GetBeatmapsetByIdHypeResponse, type GetBeatmapsetByIdHypeResponses, type GetBeatmapsetByIdResponse, type GetBeatmapsetByIdResponses, type GetBeatmapsetEventsData, type GetBeatmapsetEventsError, type GetBeatmapsetEventsErrors, type GetBeatmapsetEventsResponse, type GetBeatmapsetEventsResponses, type GetBeatmapsetGetHypedSetsData, type GetBeatmapsetGetHypedSetsError, type GetBeatmapsetGetHypedSetsErrors, type GetBeatmapsetGetHypedSetsResponse, type GetBeatmapsetGetHypedSetsResponses, type GetBeatmapsetSearchData, type GetBeatmapsetSearchError, type GetBeatmapsetSearchErrors, type GetBeatmapsetSearchResponse, type GetBeatmapsetSearchResponses, type GetLimitsData, type GetLimitsError, type GetLimitsErrors, type GetLimitsResponse, type GetLimitsResponses, type GetPingData, type GetPingError, type GetPingErrors, type GetPingResponse, type GetPingResponses, type GetScoreByIdData, type GetScoreByIdError, type GetScoreByIdErrors, type GetScoreByIdReplayData, type GetScoreByIdReplayError, type GetScoreByIdReplayErrors, type GetScoreByIdReplayResponse, type GetScoreByIdReplayResponses, type GetScoreByIdResponse, type GetScoreByIdResponses, type GetScoreProcessingByIdData, type GetScoreProcessingByIdError, type GetScoreProcessingByIdErrors, type GetScoreProcessingByIdResponse, type GetScoreProcessingByIdResponses, type GetScoreProcessingData, type GetScoreProcessingError, type GetScoreProcessingErrors, type GetScoreProcessingEventsData, type GetScoreProcessingEventsError, type GetScoreProcessingEventsErrors, type GetScoreProcessingEventsResponse, type GetScoreProcessingEventsResponses, type GetScoreProcessingResponse, type GetScoreProcessingResponses, type GetScoreProcessingScoreByScoreIdData, type GetScoreProcessingScoreByScoreIdError, type GetScoreProcessingScoreByScoreIdErrors, type GetScoreProcessingScoreByScoreIdResponse, type GetScoreProcessingScoreByScoreIdResponses, type GetScoreProcessingStatsData, type GetScoreProcessingStatsError, type GetScoreProcessingStatsErrors, type GetScoreProcessingStatsResponse, type GetScoreProcessingStatsResponses, type GetScoreTopData, type GetScoreTopError, type GetScoreTopErrors, type GetScoreTopResponse, type GetScoreTopResponses, type GetStatusData, type GetStatusError, type GetStatusErrors, type GetStatusResponse, type GetStatusResponses, type GetUserByIdByModeData, type GetUserByIdByModeError, type GetUserByIdByModeErrors, type GetUserByIdByModeResponse, type GetUserByIdByModeResponses, type GetUserByIdData, type GetUserByIdError, type GetUserByIdErrors, type GetUserByIdEventsData, type GetUserByIdEventsError, type GetUserByIdEventsErrors, type GetUserByIdEventsResponse, type GetUserByIdEventsResponses, type GetUserByIdFavouritesData, type GetUserByIdFavouritesError, type GetUserByIdFavouritesErrors, type GetUserByIdFavouritesResponse, type GetUserByIdFavouritesResponses, type GetUserByIdFollowersData, type GetUserByIdFollowersError, type GetUserByIdFollowersErrors, type GetUserByIdFollowersResponse, type GetUserByIdFollowersResponses, type GetUserByIdFriendsCountData, type GetUserByIdFriendsCountError, type GetUserByIdFriendsCountErrors, type GetUserByIdFriendsCountResponse, type GetUserByIdFriendsCountResponses, type GetUserByIdFriendsData, type GetUserByIdFriendsError, type GetUserByIdFriendsErrors, type GetUserByIdFriendsResponse, type GetUserByIdFriendsResponses, type GetUserByIdFriendStatusData, type GetUserByIdFriendStatusError, type GetUserByIdFriendStatusErrors, type GetUserByIdFriendStatusResponse, type GetUserByIdFriendStatusResponses, type GetUserByIdGradesData, type GetUserByIdGradesError, type GetUserByIdGradesErrors, type GetUserByIdGradesResponse, type GetUserByIdGradesResponses, type GetUserByIdMedalsData, type GetUserByIdMedalsError, type GetUserByIdMedalsErrors, type GetUserByIdMedalsResponse, type GetUserByIdMedalsResponses, type GetUserByIdMetadataData, type GetUserByIdMetadataError, type GetUserByIdMetadataErrors, type GetUserByIdMetadataResponse, type GetUserByIdMetadataResponses, type GetUserByIdMostplayedData, type GetUserByIdMostplayedError, type GetUserByIdMostplayedErrors, type GetUserByIdMostplayedResponse, type GetUserByIdMostplayedResponses, type GetUserByIdPreviousUsernamesData, type GetUserByIdPreviousUsernamesError, type GetUserByIdPreviousUsernamesErrors, type GetUserByIdPreviousUsernamesResponse, type GetUserByIdPreviousUsernamesResponses, type GetUserByIdResponse, type GetUserByIdResponses, type GetUserByIdScoresAdminData, type GetUserByIdScoresAdminError, type GetUserByIdScoresAdminErrors, type GetUserByIdScoresAdminResponse, type GetUserByIdScoresAdminResponses, type GetUserByIdScoresData, type GetUserByIdScoresError, type GetUserByIdScoresErrors, type GetUserByIdScoresResponse, type GetUserByIdScoresResponses, type GetUserByIdSensitiveData, type GetUserByIdSensitiveError, type GetUserByIdSensitiveErrors, type GetUserByIdSensitiveResponse, type GetUserByIdSensitiveResponses, type GetUserByUserIdGraphData, type GetUserByUserIdGraphError, type GetUserByUserIdGraphErrors, type GetUserByUserIdGraphResponse, type GetUserByUserIdGraphResponses, type GetUserByUserIdPlayHistoryGraphData, type GetUserByUserIdPlayHistoryGraphError, type GetUserByUserIdPlayHistoryGraphErrors, type GetUserByUserIdPlayHistoryGraphResponse, type GetUserByUserIdPlayHistoryGraphResponses, type GetUserFollowersData, type GetUserFollowersError, type GetUserFollowersErrors, type GetUserFollowersResponse, type GetUserFollowersResponses, type GetUserFriendsData, type GetUserFriendsError, type GetUserFriendsErrors, type GetUserFriendsResponse, type GetUserFriendsResponses, type GetUserInventoryItemData, type GetUserInventoryItemError, type GetUserInventoryItemErrors, type GetUserInventoryItemResponse, type GetUserInventoryItemResponses, type GetUserLeaderboardData, type GetUserLeaderboardError, type GetUserLeaderboardErrors, type GetUserLeaderboardResponse, type GetUserLeaderboardResponses, type GetUserSearchData, type GetUserSearchError, type GetUserSearchErrors, type GetUserSearchListData, type GetUserSearchListError, type GetUserSearchListErrors, type GetUserSearchListResponse, type GetUserSearchListResponses, type GetUserSearchResponse, type GetUserSearchResponses, type GetUserSelfByModeData, type GetUserSelfByModeError, type GetUserSelfByModeErrors, type GetUserSelfByModeResponse, type GetUserSelfByModeResponses, type GetUserSelfData, type GetUserSelfError, type GetUserSelfErrors, type GetUserSelfResponse, type GetUserSelfResponses, type GetVersionData, type GetVersionError, type GetVersionErrors, type GetVersionResponse, type GetVersionResponses, type GetWsData, type GetWsResponse, type GetWsResponses, type GradesResponse, type HypedBeatmapSetResponse, type HypedBeatmapSetsResponse, type InventoryItemResponse, ItemType, type LeaderboardResponse, LeaderboardSortType, type LimitsResponse, type MedalsResponse, type MedalsResponseWritable, Mods, type MostPlayedBeatmapResponse, type MostPlayedResponse, type PerformanceAttributes, type PlayHistorySnapshotResponse, type PlayHistorySnapshotsResponse, type PostAuthRefreshData, type PostAuthRefreshError, type PostAuthRefreshErrors, type PostAuthRefreshResponse, type PostAuthRefreshResponses, type PostAuthRegisterData, type PostAuthRegisterError, type PostAuthRegisterErrors, type PostAuthRegisterResponse, type PostAuthRegisterResponses, type PostAuthTokenData, type PostAuthTokenError, type PostAuthTokenErrors, type PostAuthTokenResponse, type PostAuthTokenResponses, type PostBeatmapsetByIdFavouritedData, type PostBeatmapsetByIdFavouritedError, type PostBeatmapsetByIdFavouritedErrors, type PostBeatmapsetByIdFavouritedResponses, type PostBeatmapsetByIdHypeData, type PostBeatmapsetByIdHypeError, type PostBeatmapsetByIdHypeErrors, type PostBeatmapsetByIdHypeResponses, type PostBeatmapUpdateCustomStatusData, type PostBeatmapUpdateCustomStatusError, type PostBeatmapUpdateCustomStatusErrors, type PostBeatmapUpdateCustomStatusResponses, type PostScoreProcessingBulkByFilterData, type PostScoreProcessingBulkByFilterError, type PostScoreProcessingBulkByFilterErrors, type PostScoreProcessingBulkByFilterResponses, type PostScoreProcessingBulkData, type PostScoreProcessingBulkError, type PostScoreProcessingBulkErrors, type PostScoreProcessingBulkResponse, type PostScoreProcessingBulkResponses, type PostScoreProcessingByIdCancelData, type PostScoreProcessingByIdCancelError, type PostScoreProcessingByIdCancelErrors, type PostScoreProcessingByIdCancelResponses, type PostScoreProcessingByIdRequeueData, type PostScoreProcessingByIdRequeueError, type PostScoreProcessingByIdRequeueErrors, type PostScoreProcessingByIdRequeueResponses, type PostScoreProcessingData, type PostScoreProcessingError, type PostScoreProcessingErrors, type PostScoreProcessingResponse, type PostScoreProcessingResponses, type PostUserByIdCountryChangeData, type PostUserByIdCountryChangeError, type PostUserByIdCountryChangeErrors, type PostUserByIdCountryChangeResponses, type PostUserByIdEditDescriptionData, type PostUserByIdEditDescriptionError, type PostUserByIdEditDescriptionErrors, type PostUserByIdEditDescriptionResponses, type PostUserByIdEditIgnoreLoginDataData, type PostUserByIdEditIgnoreLoginDataError, type PostUserByIdEditIgnoreLoginDataErrors, type PostUserByIdEditIgnoreLoginDataResponses, type PostUserByIdEditMetadataData, type PostUserByIdEditMetadataError, type PostUserByIdEditMetadataErrors, type PostUserByIdEditMetadataResponses, type PostUserByIdEditPrivilegeData, type PostUserByIdEditPrivilegeError, type PostUserByIdEditPrivilegeErrors, type PostUserByIdEditPrivilegeResponses, type PostUserByIdEditRestrictionData, type PostUserByIdEditRestrictionError, type PostUserByIdEditRestrictionErrors, type PostUserByIdEditRestrictionResponses, type PostUserByIdFriendStatusData, type PostUserByIdFriendStatusError, type PostUserByIdFriendStatusErrors, type PostUserByIdFriendStatusResponses, type PostUserByIdPasswordChangeData, type PostUserByIdPasswordChangeError, type PostUserByIdPasswordChangeErrors, type PostUserByIdPasswordChangeResponses, type PostUserByIdUploadAvatarData, type PostUserByIdUploadAvatarError, type PostUserByIdUploadAvatarErrors, type PostUserByIdUploadAvatarResponses, type PostUserByIdUploadBannerData, type PostUserByIdUploadBannerError, type PostUserByIdUploadBannerErrors, type PostUserByIdUploadBannerResponses, type PostUserByIdUsernameChangeData, type PostUserByIdUsernameChangeError, type PostUserByIdUsernameChangeErrors, type PostUserByIdUsernameChangeResponses, type PostUserCountryChangeData, type PostUserCountryChangeError, type PostUserCountryChangeErrors, type PostUserCountryChangeResponses, type PostUserEditDefaultGamemodeData, type PostUserEditDefaultGamemodeError, type PostUserEditDefaultGamemodeErrors, type PostUserEditDefaultGamemodeResponses, type PostUserEditDescriptionData, type PostUserEditDescriptionError, type PostUserEditDescriptionErrors, type PostUserEditDescriptionResponses, type PostUserEditHidePreviousUsernameData, type PostUserEditHidePreviousUsernameError, type PostUserEditHidePreviousUsernameErrors, type PostUserEditHidePreviousUsernameResponses, type PostUserEditMetadataData, type PostUserEditMetadataError, type PostUserEditMetadataErrors, type PostUserEditMetadataResponses, type PostUserPasswordChangeData, type PostUserPasswordChangeError, type PostUserPasswordChangeErrors, type PostUserPasswordChangeResponses, type PostUserUploadAvatarData, type PostUserUploadAvatarError, type PostUserUploadAvatarErrors, type PostUserUploadAvatarResponses, type PostUserUploadBannerData, type PostUserUploadBannerError, type PostUserUploadBannerErrors, type PostUserUploadBannerResponses, type PostUserUsernameChangeData, type PostUserUsernameChangeError, type PostUserUsernameChangeErrors, type PostUserUsernameChangeResponses, type PreviousUsernamesResponse, type ProblemDetailsResponseType, type RateLimits, type RefreshTokenRequest, type RefreshTokenResponse, type RegisterRequest, type ResetPasswordRequest, ScoreProcessingErrorCode, ScoreProcessingEventType, type ScoreProcessingPreviewResponse, type ScoreProcessingStatsResponse, ScoreProcessingStatus, type ScoreProcessingTaskResponse, type ScoreProcessingTasksResponse, type ScoreResponse, ScoreSortType, type ScoresResponse, type ScoreState, ScoreTableType, ScoreTaskType, type SolarSystemVersionResponse, type StatsSnapshotResponse, type StatsSnapshotsResponse, type StatusResponse, SubmissionStatus, type TokenRequest, type TokenResponse, type UpdateBeatmapsCustomStatusRequest, UpdateFriendshipStatusAction, UserBadge, UserEventType, type UserMedalResponse, type UserMetadataResponse, type UsernameChangeRequest, UserPlaystyle, UserPrivilege, type UserRelationsCountersResponse, type UserResponse, type UserSensitiveResponse, type UsersSensitiveListResponse, type UserStatsResponse, type UserWithStats, type UserWithStatsResponse, WebSocketEventType, type WebSocketMessage, type WebSocketMessageWritable } from "./types.gen"; diff --git a/lib/types/api/types.gen.ts b/lib/types/api/types.gen.ts index e4c85d54..804cd2b9 100644 --- a/lib/types/api/types.gen.ts +++ b/lib/types/api/types.gen.ts @@ -1,5 +1,22 @@ // This file is auto-generated by @hey-api/openapi-ts +export type ClientOptions = { + baseUrl: "https://api.sunrise.local" | (string & {}); +}; + +export type AdminScoreResponse = { + score: ScoreResponse; + submission_status: SubmissionStatus; + beatmap_status: BeatmapStatus; + is_scoreable: boolean; + score_hash?: string | null; +}; + +export type AdminScoresResponse = { + scores: AdminScoreResponse[]; + total_count: number; +}; + export type BeatmapEventResponse = { event_id: number; executor: UserResponse; @@ -71,7 +88,7 @@ export type BeatmapSetResponse = { creator_id: number; status: BeatmapStatusWeb; last_updated: string; - submitted_date?: string | null; + submitted_date: string; ranked_date?: string | null; video: boolean; beatmaps: BeatmapResponse[]; @@ -88,6 +105,17 @@ export type BeatmapSetsResponse = { total_count?: number | null; }; +export enum BeatmapStatus { + PENDING = "Pending", + NEEDS_UPDATE = "NeedsUpdate", + RANKED = "Ranked", + APPROVED = "Approved", + QUALIFIED = "Qualified", + LOVED = "Loved", + UNKNOWN = "Unknown", + NOT_SUBMITTED = "NotSubmitted", +} + export enum BeatmapStatusWeb { PENDING = "Pending", RANKED = "Ranked", @@ -99,6 +127,27 @@ export enum BeatmapStatusWeb { WIP = "Wip", } +export type BulkScoreProcessingByFilterRequest = { + action: ScoreTaskType; + user_id: number; + mode?: GameMode; + mods?: Mods[] | null; + submission_status?: SubmissionStatus; + beatmap_status?: BeatmapStatus; + submitted_from?: string | null; + submitted_to?: string | null; +}; + +export type BulkScoreProcessingRequest = { + score_ids: number[]; + action: ScoreTaskType; +}; + +export type BulkScoreProcessingResultResponse = { + queued: number; + skipped: number; +}; + export type Category = { readonly medals: UserMedalResponse[]; }; @@ -332,6 +381,11 @@ export enum CountryCode { MF = "MF", } +export type CreateScoreProcessingTaskRequest = { + score_id: number; + action: ScoreTaskType; +}; + export type CustomBeatmapStatusChangeResponse = { beatmap: BeatmapResponse; new_status: BeatmapStatusWeb; @@ -418,6 +472,21 @@ export type EditUserRestrictionRequest = { restriction_reason?: string | null; }; +export type EventScoreProcessingListResponse = { + events: EventScoreProcessingResponse[]; + total_count: number; +}; + +export type EventScoreProcessingResponse = { + id: number; + event_type: ScoreProcessingEventType; + executor?: UserResponse; + score_id?: number | null; + task_id?: number | null; + json_data?: string | null; + created_at: string; +}; + export type EventUserResponse = { id: number; user: UserResponse; @@ -485,7 +554,7 @@ export type HypedBeatmapSetResponse = { creator_id: number; status: BeatmapStatusWeb; last_updated: string; - submitted_date?: string | null; + submitted_date: string; ranked_date?: string | null; video: boolean; beatmaps: BeatmapResponse[]; @@ -673,6 +742,73 @@ export type ResetPasswordRequest = { new_password: string; }; +export enum ScoreProcessingErrorCode { + UNEXPECTED = "Unexpected", + BEATMAP_NOT_FOUND = "BeatmapNotFound", + DUPLICATE_SCORE = "DuplicateScore", + PP_CALCULATION_FAILED = "PpCalculationFailed", + REPLAY_MISSING = "ReplayMissing", + INVALID_MODS = "InvalidMods", + BANNABLE_PP_THRESHOLD = "BannablePpThreshold", + INVALID_CHECKSUMS = "InvalidChecksums", + USER_NOT_FOUND = "UserNotFound", + USER_STATS_NOT_FOUND = "UserStatsNotFound", + USER_GRADES_NOT_FOUND = "UserGradesNotFound", + TRANSACTION_FAILED = "TransactionFailed", + PARSED_SCORE_INVALID = "ParsedScoreInvalid", + CANCELLED_BY_OPERATOR = "CancelledByOperator", + INVALID_SCORE_STATE = "InvalidScoreState", + INVALID_CLIENT_VERSION = "InvalidClientVersion", + INVALID_REPLAY = "InvalidReplay", +} + +export enum ScoreProcessingEventType { + RECALCULATION_REQUESTED = "RecalculationRequested", + RESTORE_REQUESTED = "RestoreRequested", + DELETE_REQUESTED = "DeleteRequested", + SUBMISSION_ENQUEUED = "SubmissionEnqueued", + CANCELLED = "Cancelled", + REQUEUED = "Requeued", + BULK_REQUESTED = "BulkRequested", +} + +export type ScoreProcessingPreviewResponse = { + score: AdminScoreResponse; + active_task?: ScoreProcessingTaskResponse; +}; + +export type ScoreProcessingStatsResponse = { + pending: number; + processing: number; + failed: number; + estimated_pending_completion_seconds?: number | null; +}; + +export enum ScoreProcessingStatus { + PENDING = "Pending", + PROCESSING = "Processing", + FAILED = "Failed", +} + +export type ScoreProcessingTaskResponse = { + id: number; + task_type: ScoreTaskType; + status: ScoreProcessingStatus; + priority: number; + retry_count: number; + error_code?: ScoreProcessingErrorCode; + error_message?: string | null; + next_retry_at?: string | null; + created_at: string; + score_id?: number | null; + score?: AdminScoreResponse; +}; + +export type ScoreProcessingTasksResponse = { + tasks: ScoreProcessingTaskResponse[]; + total_count: number; +}; + export type ScoreResponse = { accuracy: number; beatmap_id: number; @@ -700,6 +836,11 @@ export type ScoreResponse = { user: UserResponse; }; +export enum ScoreSortType { + DATE = "Date", + PERFORMANCE = "Performance", +} + export type ScoreState = { maxCombo?: number | null; osuLargeTickHits?: number | null; @@ -719,6 +860,14 @@ export enum ScoreTableType { TOP = "Top", } +export enum ScoreTaskType { + SUBMISSION = "Submission", + RECALCULATION = "Recalculation", + RESTORE = "Restore", + DELETE = "Delete", + BEATMAP_STATUS_CHANGE = "BeatmapStatusChange", +} + export type ScoresResponse = { scores: ScoreResponse[]; total_count: number; @@ -752,6 +901,14 @@ export type StatusResponse = { total_restrictions?: number | null; }; +export enum SubmissionStatus { + FAILED = "Failed", + SUBMITTED = "Submitted", + BEST = "Best", + DELETED = "Deleted", + UNKNOWN = "Unknown", +} + export type TokenRequest = { username: string; password: string; @@ -927,6 +1084,12 @@ export type WebSocketMessage = { readonly data: string; }; +export type MedalsResponseWritable = Record; + +export type WebSocketMessageWritable = { + messageType: WebSocketEventType; +}; + export type PostAuthTokenData = { body?: TokenRequest; path?: never; @@ -1745,6 +1908,386 @@ export type GetScoreTopResponses = { export type GetScoreTopResponse = GetScoreTopResponses[keyof GetScoreTopResponses]; +export type GetScoreProcessingData = { + body?: never; + path?: never; + query?: { + page?: number; + limit?: number; + status?: ScoreProcessingStatus; + task_type?: ScoreTaskType; + score_id?: number; + task_id?: number; + }; + url: "/score-processing"; +}; + +export type GetScoreProcessingErrors = { + /** + * Bad Request + */ + 400: ProblemDetailsResponseType; + /** + * Unauthorized + */ + 401: ProblemDetailsResponseType; + /** + * Forbidden + */ + 403: ProblemDetailsResponseType; +}; + +export type GetScoreProcessingError = GetScoreProcessingErrors[keyof GetScoreProcessingErrors]; + +export type GetScoreProcessingResponses = { + /** + * OK + */ + 200: ScoreProcessingTasksResponse; +}; + +export type GetScoreProcessingResponse = GetScoreProcessingResponses[keyof GetScoreProcessingResponses]; + +export type PostScoreProcessingData = { + body?: CreateScoreProcessingTaskRequest; + path?: never; + query?: never; + url: "/score-processing"; +}; + +export type PostScoreProcessingErrors = { + /** + * Bad Request + */ + 400: ProblemDetailsResponseType; + /** + * Unauthorized + */ + 401: ProblemDetailsResponseType; + /** + * Forbidden + */ + 403: ProblemDetailsResponseType; + /** + * Not Found + */ + 404: ProblemDetailsResponseType; + /** + * Conflict + */ + 409: ProblemDetailsResponseType; +}; + +export type PostScoreProcessingError = PostScoreProcessingErrors[keyof PostScoreProcessingErrors]; + +export type PostScoreProcessingResponses = { + /** + * OK + */ + 200: unknown; + /** + * Created + */ + 201: ScoreProcessingTaskResponse; +}; + +export type PostScoreProcessingResponse = PostScoreProcessingResponses[keyof PostScoreProcessingResponses]; + +export type GetScoreProcessingStatsData = { + body?: never; + path?: never; + query?: never; + url: "/score-processing/stats"; +}; + +export type GetScoreProcessingStatsErrors = { + /** + * Bad Request + */ + 400: ProblemDetailsResponseType; + /** + * Unauthorized + */ + 401: ProblemDetailsResponseType; + /** + * Forbidden + */ + 403: ProblemDetailsResponseType; +}; + +export type GetScoreProcessingStatsError = GetScoreProcessingStatsErrors[keyof GetScoreProcessingStatsErrors]; + +export type GetScoreProcessingStatsResponses = { + /** + * OK + */ + 200: ScoreProcessingStatsResponse; +}; + +export type GetScoreProcessingStatsResponse = GetScoreProcessingStatsResponses[keyof GetScoreProcessingStatsResponses]; + +export type GetScoreProcessingByIdData = { + body?: never; + path: { + id: number; + }; + query?: never; + url: "/score-processing/{id}"; +}; + +export type GetScoreProcessingByIdErrors = { + /** + * Bad Request + */ + 400: ProblemDetailsResponseType; + /** + * Unauthorized + */ + 401: ProblemDetailsResponseType; + /** + * Forbidden + */ + 403: ProblemDetailsResponseType; + /** + * Not Found + */ + 404: ProblemDetailsResponseType; +}; + +export type GetScoreProcessingByIdError = GetScoreProcessingByIdErrors[keyof GetScoreProcessingByIdErrors]; + +export type GetScoreProcessingByIdResponses = { + /** + * OK + */ + 200: ScoreProcessingTaskResponse; +}; + +export type GetScoreProcessingByIdResponse = GetScoreProcessingByIdResponses[keyof GetScoreProcessingByIdResponses]; + +export type GetScoreProcessingScoreByScoreIdData = { + body?: never; + path: { + scoreId: number; + }; + query?: never; + url: "/score-processing/score/{scoreId}"; +}; + +export type GetScoreProcessingScoreByScoreIdErrors = { + /** + * Bad Request + */ + 400: ProblemDetailsResponseType; + /** + * Unauthorized + */ + 401: ProblemDetailsResponseType; + /** + * Forbidden + */ + 403: ProblemDetailsResponseType; + /** + * Not Found + */ + 404: ProblemDetailsResponseType; +}; + +export type GetScoreProcessingScoreByScoreIdError = GetScoreProcessingScoreByScoreIdErrors[keyof GetScoreProcessingScoreByScoreIdErrors]; + +export type GetScoreProcessingScoreByScoreIdResponses = { + /** + * OK + */ + 200: ScoreProcessingPreviewResponse; +}; + +export type GetScoreProcessingScoreByScoreIdResponse = GetScoreProcessingScoreByScoreIdResponses[keyof GetScoreProcessingScoreByScoreIdResponses]; + +export type PostScoreProcessingByIdCancelData = { + body?: never; + path: { + id: number; + }; + query?: never; + url: "/score-processing/{id}/cancel"; +}; + +export type PostScoreProcessingByIdCancelErrors = { + /** + * Bad Request + */ + 400: ProblemDetailsResponseType; + /** + * Unauthorized + */ + 401: ProblemDetailsResponseType; + /** + * Forbidden + */ + 403: ProblemDetailsResponseType; + /** + * Not Found + */ + 404: ProblemDetailsResponseType; + /** + * Conflict + */ + 409: ProblemDetailsResponseType; +}; + +export type PostScoreProcessingByIdCancelError = PostScoreProcessingByIdCancelErrors[keyof PostScoreProcessingByIdCancelErrors]; + +export type PostScoreProcessingByIdCancelResponses = { + /** + * OK + */ + 200: unknown; +}; + +export type PostScoreProcessingByIdRequeueData = { + body?: never; + path: { + id: number; + }; + query?: never; + url: "/score-processing/{id}/requeue"; +}; + +export type PostScoreProcessingByIdRequeueErrors = { + /** + * Bad Request + */ + 400: ProblemDetailsResponseType; + /** + * Unauthorized + */ + 401: ProblemDetailsResponseType; + /** + * Forbidden + */ + 403: ProblemDetailsResponseType; + /** + * Not Found + */ + 404: ProblemDetailsResponseType; + /** + * Conflict + */ + 409: ProblemDetailsResponseType; +}; + +export type PostScoreProcessingByIdRequeueError = PostScoreProcessingByIdRequeueErrors[keyof PostScoreProcessingByIdRequeueErrors]; + +export type PostScoreProcessingByIdRequeueResponses = { + /** + * OK + */ + 200: unknown; +}; + +export type PostScoreProcessingBulkData = { + body?: BulkScoreProcessingRequest; + path?: never; + query?: never; + url: "/score-processing/bulk"; +}; + +export type PostScoreProcessingBulkErrors = { + /** + * Bad Request + */ + 400: ProblemDetailsResponseType; + /** + * Unauthorized + */ + 401: ProblemDetailsResponseType; + /** + * Forbidden + */ + 403: ProblemDetailsResponseType; +}; + +export type PostScoreProcessingBulkError = PostScoreProcessingBulkErrors[keyof PostScoreProcessingBulkErrors]; + +export type PostScoreProcessingBulkResponses = { + /** + * OK + */ + 200: BulkScoreProcessingResultResponse; +}; + +export type PostScoreProcessingBulkResponse = PostScoreProcessingBulkResponses[keyof PostScoreProcessingBulkResponses]; + +export type PostScoreProcessingBulkByFilterData = { + body?: BulkScoreProcessingByFilterRequest; + path?: never; + query?: never; + url: "/score-processing/bulk-by-filter"; +}; + +export type PostScoreProcessingBulkByFilterErrors = { + /** + * Bad Request + */ + 400: ProblemDetailsResponseType; + /** + * Unauthorized + */ + 401: ProblemDetailsResponseType; + /** + * Forbidden + */ + 403: ProblemDetailsResponseType; +}; + +export type PostScoreProcessingBulkByFilterError = PostScoreProcessingBulkByFilterErrors[keyof PostScoreProcessingBulkByFilterErrors]; + +export type PostScoreProcessingBulkByFilterResponses = { + /** + * OK + */ + 200: unknown; +}; + +export type GetScoreProcessingEventsData = { + body?: never; + path?: never; + query?: { + page?: number; + limit?: number; + types?: ScoreProcessingEventType[]; + score_id?: number; + }; + url: "/score-processing/events"; +}; + +export type GetScoreProcessingEventsErrors = { + /** + * Bad Request + */ + 400: ProblemDetailsResponseType; + /** + * Unauthorized + */ + 401: ProblemDetailsResponseType; + /** + * Forbidden + */ + 403: ProblemDetailsResponseType; +}; + +export type GetScoreProcessingEventsError = GetScoreProcessingEventsErrors[keyof GetScoreProcessingEventsErrors]; + +export type GetScoreProcessingEventsResponses = { + /** + * OK + */ + 200: EventScoreProcessingListResponse; +}; + +export type GetScoreProcessingEventsResponse = GetScoreProcessingEventsResponses[keyof GetScoreProcessingEventsResponses]; + export type GetUserByIdData = { body?: never; path: { @@ -2171,6 +2714,47 @@ export type GetUserByIdScoresResponses = { export type GetUserByIdScoresResponse = GetUserByIdScoresResponses[keyof GetUserByIdScoresResponses]; +export type GetUserByIdScoresAdminData = { + body?: never; + path: { + id: number; + }; + query?: { + mode?: GameMode; + mods?: Mods[]; + submission_status?: SubmissionStatus; + beatmap_status?: BeatmapStatus; + submitted_from?: string; + submitted_to?: string; + sort?: ScoreSortType; + limit?: number; + page?: number; + }; + url: "/user/{id}/scores/admin"; +}; + +export type GetUserByIdScoresAdminErrors = { + /** + * Bad Request + */ + 400: ProblemDetailsResponseType; + /** + * Not Found + */ + 404: ProblemDetailsResponseType; +}; + +export type GetUserByIdScoresAdminError = GetUserByIdScoresAdminErrors[keyof GetUserByIdScoresAdminErrors]; + +export type GetUserByIdScoresAdminResponses = { + /** + * OK + */ + 200: AdminScoresResponse; +}; + +export type GetUserByIdScoresAdminResponse = GetUserByIdScoresAdminResponses[keyof GetUserByIdScoresAdminResponses]; + export type GetUserByIdMostplayedData = { body?: never; path: { @@ -3138,7 +3722,3 @@ export type GetWsResponses = { }; export type GetWsResponse = GetWsResponses[keyof GetWsResponses]; - -export type ClientOptions = { - baseUrl: "https://api.sunrize.uk" | (string & {}); -}; diff --git a/lib/types/api/zod.gen.ts b/lib/types/api/zod.gen.ts index ccafed32..9c30aecf 100644 --- a/lib/types/api/zod.gen.ts +++ b/lib/types/api/zod.gen.ts @@ -2,6 +2,49 @@ import { z } from "zod"; +export const zBeatmapEventType = z.enum([ + "BeatmapSetHyped", + "BeatmapStatusChanged", + "BeatmapSetHypeCleared", +]); + +export const zBeatmapSetHypeCountResponse = z.object({ + current_hypes: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + required_hypes: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), +}); + +export const zBeatmapStatus = z.enum([ + "Pending", + "NeedsUpdate", + "Ranked", + "Approved", + "Qualified", + "Loved", + "Unknown", + "NotSubmitted", +]); + +export const zBeatmapStatusWeb = z.enum([ + "Pending", + "Ranked", + "Approved", + "Qualified", + "Loved", + "Unknown", + "Graveyard", + "Wip", +]); + +export const zBulkScoreProcessingResultResponse = z.object({ + queued: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + skipped: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), +}); + +export const zChangePasswordRequest = z.object({ + current_password: z.string().min(1), + new_password: z.string().min(1), +}); + export const zCountryCode = z.enum([ "XX", "AD", @@ -222,6 +265,41 @@ export const zCountryCode = z.enum([ "MF", ]); +export const zCountryChangeRequest = z.object({ + new_country: zCountryCode, +}); + +export const zEditBeatmapsetFavouriteStatusRequest = z.object({ + favourited: z.boolean(), +}); + +export const zEditDescriptionRequest = z.object({ + description: z.string().min(1).max(2000), +}); + +export const zEditHidePreviousUsernameRequest = z.object({ + event_id: z.number().int().gte(1).lte(2147483647), + is_hidden: z.boolean(), +}); + +export const zEditIgnoreLoginDataRequest = z.object({ + is_ignored: z.boolean(), +}); + +export const zEditUserRestrictionRequest = z.object({ + is_restrict: z.boolean(), + restriction_reason: z.string().min(3).max(256).nullish(), +}); + +export const zFavouritedResponse = z.object({ + favourited: z.boolean(), +}); + +export const zFriendStatusResponse = z.object({ + is_following_you: z.boolean(), + is_followed_by_you: z.boolean(), +}); + export const zGameMode = z.enum([ "Standard", "Taiko", @@ -237,411 +315,313 @@ export const zGameMode = z.enum([ "ScoreV2Mania", ]); -export const zUserBadge = z.enum([ - "Developer", - "Admin", - "Bat", - "Bot", - "Supporter", -]); +export const zDifficultyAttributes = z.object({ + aim: z.number().nullish(), + aimDifficultStrainCount: z.number().nullish(), + ar: z.number().nullish(), + color: z.number().nullish(), + flashlight: z.number().nullish(), + greatHitWindow: z.number().nullish(), + hp: z.number().nullish(), + isConvert: z.boolean(), + maxCombo: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + mode: zGameMode, + monoStaminaFactor: z.number().nullish(), + nCircles: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + nDroplets: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + nFruits: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + nHoldNotes: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + nLargeTicks: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + nObjects: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + nSliders: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + nSpinners: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + nTinyDroplets: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + od: z.number().nullish(), + okHitWindow: z.number().nullish(), + peak: z.number().nullish(), + rhythm: z.number().nullish(), + sliderFactor: z.number().nullish(), + speed: z.number().nullish(), + speedDifficultStrainCount: z.number().nullish(), + speedNoteCount: z.number().nullish(), + stamina: z.number().nullish(), + stars: z.number(), +}); -export const zUserResponse = z.object({ - user_id: z.number().int(), - username: z.string(), - description: z.union([ - z.string(), - z.null(), - ]).optional(), - country_code: zCountryCode, - register_date: z.string().datetime(), - avatar_url: z.string(), - banner_url: z.string(), - last_online_time: z.string().datetime(), - restricted: z.boolean(), - silenced_until: z.union([ - z.string().datetime(), - z.null(), - ]).optional(), +export const zEditDefaultGameModeRequest = z.object({ default_gamemode: zGameMode, - badges: z.array(zUserBadge), - user_status: z.string(), }); -export const zBeatmapEventType = z.enum([ - "BeatmapSetHyped", - "BeatmapStatusChanged", - "BeatmapSetHypeCleared", -]); +export const zGradesResponse = z.object({ + count_xh: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + count_x: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + count_sh: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + count_s: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + count_a: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + count_b: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + count_c: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + count_d: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), +}); -export const zBeatmapStatusWeb = z.enum([ - "Pending", - "Ranked", - "Approved", - "Qualified", - "Loved", - "Unknown", - "Graveyard", - "Wip", -]); +export const zItemType = z.enum(["Hype"]); -export const zBeatmapResponse = z.object({ - id: z.number().int(), - beatmapset_id: z.number().int(), - hash: z.string(), - version: z.string(), - status: zBeatmapStatusWeb, - star_rating_osu: z.number(), - star_rating_taiko: z.number(), - star_rating_ctb: z.number(), - star_rating_mania: z.number(), - total_length: z.number().int(), - max_combo: z.number().int(), - accuracy: z.union([ - z.number(), - z.null(), - ]).optional(), - ar: z.union([ - z.number(), - z.null(), - ]).optional(), - bpm: z.number(), - convert: z.boolean(), - count_circles: z.number().int(), - count_sliders: z.number().int(), - count_spinners: z.number().int(), - cs: z.number(), - deleted_at: z.union([ - z.string().datetime(), - z.null(), - ]).optional(), - drain: z.union([ - z.number(), - z.null(), - ]).optional(), - hit_length: z.number().int(), - is_scoreable: z.boolean(), - is_ranked: z.boolean(), - last_updated: z.string().datetime(), - mode_int: z.number().int(), - mode: zGameMode, - ranked: z.number().int(), - title: z.union([ - z.string(), - z.null(), - ]).optional(), - artist: z.union([ - z.string(), - z.null(), - ]).optional(), - creator: z.union([ - z.string(), - z.null(), - ]).optional(), - creator_id: z.number().int(), - beatmap_nominator_user: zUserResponse.optional(), +export const zInventoryItemResponse = z.object({ + quantity: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + item_type: zItemType, }); -export const zBeatmapSetResponse = z.object({ - id: z.number().int(), - artist: z.string(), - title: z.string(), - creator: z.string(), - creator_id: z.number().int(), - status: zBeatmapStatusWeb, - last_updated: z.string().datetime(), - submitted_date: z.union([ - z.string().datetime(), - z.null(), - ]).optional(), - ranked_date: z.union([ - z.string().datetime(), - z.null(), - ]).optional(), - video: z.boolean(), - beatmaps: z.array(zBeatmapResponse), - description: z.string(), - genre: z.string(), - language: z.string(), - tags: z.array(z.string()), - beatmap_nominator_user: zUserResponse.optional(), - can_be_hyped: z.boolean(), -}); +export const zLeaderboardSortType = z.enum(["Pp", "Score"]); -export const zBeatmapEventResponse = z.object({ - event_id: z.number().int(), - executor: zUserResponse, - type: zBeatmapEventType, - beatmapset_id: z.number().int(), - beatmapset: zBeatmapSetResponse, - beatmap_hash: z.union([ - z.string(), - z.null(), - ]).optional(), - new_status: zBeatmapStatusWeb.optional(), - created_at: z.string().datetime(), -}); +export const zMods = z.enum([ + "None", + "NoFail", + "Easy", + "TouchDevice", + "Hidden", + "HardRock", + "SuddenDeath", + "DoubleTime", + "Relax", + "HalfTime", + "Nightcore", + "Flashlight", + "Autoplay", + "SpunOut", + "Relax2", + "Perfect", + "Key4", + "Key5", + "Key6", + "Key7", + "Key8", + "FadeIn", + "Random", + "Cinema", + "Target", + "Key9", + "KeyCoop", + "Key1", + "Key3", + "Key2", + "ScoreV2", + "Mirror", +]); -export const zBeatmapSetEventsResponse = z.object({ - events: z.array(zBeatmapEventResponse), - total_count: z.number().int(), +export const zPlayHistorySnapshotResponse = z.object({ + play_count: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + saved_at: z.string().datetime(), }); -export const zBeatmapSetHypeCountResponse = z.object({ - current_hypes: z.number().int(), - required_hypes: z.number().int(), +export const zPlayHistorySnapshotsResponse = z.object({ + total_count: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + snapshots: z.array(zPlayHistorySnapshotResponse), }); -export const zBeatmapSetsResponse = z.object({ - sets: z.array(zBeatmapSetResponse), - total_count: z.union([ - z.number().int(), - z.null(), - ]).optional(), +export const zPreviousUsernamesResponse = z.object({ + usernames: z.array(z.string()), }); -export const zUserMedalResponse = z.object({ - id: z.number().int().readonly(), - name: z.string().readonly(), - description: z.string().readonly(), - unlocked_at: z.union([ - z.string().datetime().readonly(), - z.null(), - ]).readonly().optional(), +export const zProblemDetailsResponseType = z.object({ + type: z.string().nullish(), + title: z.string().nullish(), + status: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + detail: z.string().nullish(), + instance: z.string().nullish(), + traceId: z.string().nullish(), + errors: z.unknown().optional(), }); -export const zCategory = z.object({ - medals: z.array(zUserMedalResponse).readonly(), +export const zRateLimits = z.object({ + total_limit: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + remaining_calls: z.coerce.bigint().min(BigInt("-9223372036854775808"), { message: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { message: "Invalid value: Expected int64 to be <= 9223372036854775807" }), }); -export const zChangePasswordRequest = z.object({ - current_password: z.string().min(1), - new_password: z.string().min(1), +export const zLimitsResponse = z.object({ + message: z.string(), + rate_limits: zRateLimits, + beatmap_rate_limits: zRateLimits, }); -export const zCountryChangeRequest = z.object({ - new_country: zCountryCode, +export const zRefreshTokenRequest = z.object({ + refresh_token: z.string().min(1), }); -export const zCustomBeatmapStatusChangeResponse = z.object({ - beatmap: zBeatmapResponse, - new_status: zBeatmapStatusWeb, - old_status: zBeatmapStatusWeb, - bat: zUserResponse, +export const zRefreshTokenResponse = z.object({ + token: z.string(), + expires_in: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), }); -export const zDifficultyAttributes = z.object({ - aim: z.union([ - z.number(), - z.null(), - ]).optional(), - aimDifficultStrainCount: z.union([ - z.number(), - z.null(), - ]).optional(), - ar: z.union([ - z.number(), - z.null(), - ]).optional(), - color: z.union([ - z.number(), - z.null(), - ]).optional(), - flashlight: z.union([ - z.number(), - z.null(), - ]).optional(), - greatHitWindow: z.union([ - z.number(), - z.null(), - ]).optional(), - hp: z.union([ - z.number(), - z.null(), - ]).optional(), - isConvert: z.boolean(), - maxCombo: z.number().int(), - mode: zGameMode, - monoStaminaFactor: z.union([ - z.number(), - z.null(), - ]).optional(), - nCircles: z.union([ - z.number().int(), - z.null(), - ]).optional(), - nDroplets: z.union([ - z.number().int(), - z.null(), - ]).optional(), - nFruits: z.union([ - z.number().int(), - z.null(), - ]).optional(), - nHoldNotes: z.union([ - z.number().int(), - z.null(), - ]).optional(), - nLargeTicks: z.union([ - z.number().int(), - z.null(), - ]).optional(), - nObjects: z.union([ - z.number().int(), - z.null(), - ]).optional(), - nSliders: z.union([ - z.number().int(), - z.null(), - ]).optional(), - nSpinners: z.union([ - z.number().int(), - z.null(), - ]).optional(), - nTinyDroplets: z.union([ - z.number().int(), - z.null(), - ]).optional(), - od: z.union([ - z.number(), - z.null(), - ]).optional(), - okHitWindow: z.union([ - z.number(), - z.null(), - ]).optional(), - peak: z.union([ - z.number(), - z.null(), - ]).optional(), - rhythm: z.union([ - z.number(), - z.null(), - ]).optional(), - sliderFactor: z.union([ - z.number(), - z.null(), - ]).optional(), - speed: z.union([ - z.number(), - z.null(), - ]).optional(), - speedDifficultStrainCount: z.union([ - z.number(), - z.null(), - ]).optional(), - speedNoteCount: z.union([ - z.number(), - z.null(), - ]).optional(), - stamina: z.union([ - z.number(), - z.null(), - ]).optional(), - stars: z.number(), +export const zRegisterRequest = z.object({ + username: z.string().min(1), + password: z.string().min(1), + email: z.string().min(1).regex(/^\S[^\s@]*@\S[^\s.]*\.\S+$/), }); -export const zEditBeatmapsetFavouriteStatusRequest = z.object({ - favourited: z.boolean(), +export const zResetPasswordRequest = z.object({ + new_password: z.string().min(1), }); -export const zEditDefaultGameModeRequest = z.object({ - default_gamemode: zGameMode, -}); +export const zScoreProcessingErrorCode = z.enum([ + "Unexpected", + "BeatmapNotFound", + "DuplicateScore", + "PpCalculationFailed", + "ReplayMissing", + "InvalidMods", + "BannablePpThreshold", + "InvalidChecksums", + "UserNotFound", + "UserStatsNotFound", + "UserGradesNotFound", + "TransactionFailed", + "ParsedScoreInvalid", + "CancelledByOperator", + "InvalidScoreState", + "InvalidClientVersion", + "InvalidReplay", +]); -export const zEditDescriptionRequest = z.object({ - description: z.string().min(1).max(2000), +export const zScoreProcessingEventType = z.enum([ + "RecalculationRequested", + "RestoreRequested", + "DeleteRequested", + "SubmissionEnqueued", + "Cancelled", + "Requeued", + "BulkRequested", +]); + +export const zScoreProcessingStatsResponse = z.object({ + pending: z.coerce.bigint().min(BigInt("-9223372036854775808"), { message: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { message: "Invalid value: Expected int64 to be <= 9223372036854775807" }), + processing: z.coerce.bigint().min(BigInt("-9223372036854775808"), { message: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { message: "Invalid value: Expected int64 to be <= 9223372036854775807" }), + failed: z.coerce.bigint().min(BigInt("-9223372036854775808"), { message: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { message: "Invalid value: Expected int64 to be <= 9223372036854775807" }), + estimated_pending_completion_seconds: z.number().nullish(), }); -export const zUpdateFriendshipStatusAction = z.enum([ - "Add", - "Remove", +export const zScoreProcessingStatus = z.enum([ + "Pending", + "Processing", + "Failed", ]); -export const zEditFriendshipStatusRequest = z.object({ - action: zUpdateFriendshipStatusAction, -}); +export const zScoreSortType = z.enum(["Date", "Performance"]); -export const zEditHidePreviousUsernameRequest = z.object({ - event_id: z.number().int().gte(1).lte(2147483647), - is_hidden: z.boolean(), +export const zScoreState = z.object({ + maxCombo: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + osuLargeTickHits: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + osuSmallTickHits: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + sliderEndHits: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + nGeki: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + nKatu: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + n300: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + n100: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + n50: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + misses: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), }); -export const zEditIgnoreLoginDataRequest = z.object({ - is_ignored: z.boolean(), +export const zPerformanceAttributes = z.object({ + difficulty: zDifficultyAttributes, + effectiveMissCount: z.number().nullish(), + estimatedUnstableRate: z.number().nullish(), + pp: z.number(), + ppAccuracy: z.number().nullish(), + ppAim: z.number().nullish(), + ppDifficulty: z.number().nullish(), + ppFlashlight: z.number().nullish(), + ppSpeed: z.number().nullish(), + state: zScoreState, }); -export const zUserPlaystyle = z.enum([ - "None", - "Mouse", - "Keyboard", - "Tablet", - "TouchScreen", +export const zScoreTableType = z.enum([ + "Best", + "Recent", + "Top", ]); -export const zEditUserMetadataRequest = z.object({ - playstyle: z.union([ - z.array(zUserPlaystyle), - z.null(), - ]).optional(), - location: z.union([ - z.string().max(32), - z.null(), - ]).optional(), - interest: z.union([ - z.string().max(32), - z.null(), - ]).optional(), - occupation: z.union([ - z.string().max(32), - z.null(), - ]).optional(), - telegram: z.union([ - z.string().max(32), - z.null(), - ]).optional(), - twitch: z.union([ - z.string().max(32), - z.null(), - ]).optional(), - twitter: z.union([ - z.string().max(32), - z.null(), - ]).optional(), - discord: z.union([ - z.string().max(32), - z.null(), - ]).optional(), - website: z.union([ - z.string().max(200), - z.null(), - ]).optional(), +export const zScoreTaskType = z.enum([ + "Submission", + "Recalculation", + "Restore", + "Delete", + "BeatmapStatusChange", +]); + +export const zBulkScoreProcessingRequest = z.object({ + score_ids: z.array(z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" })).min(1), + action: zScoreTaskType, }); -export const zUserPrivilege = z.enum([ - "User", - "Supporter", - "Admin", - "Developer", - "SuperUser", - "ServerBot", - "BeatmapApprovalTeamStandard", - "BeatmapApprovalTeamTaiko", - "BeatmapApprovalTeamCatch", - "BeatmapApprovalTeamMania", +export const zCreateScoreProcessingTaskRequest = z.object({ + score_id: z.number().int().gte(1).lte(2147483647), + action: zScoreTaskType, +}); + +export const zSolarSystemVersionResponse = z.object({ + is_running_under_solar_system: z.boolean(), + solar_system_version: z.string().nullish(), +}); + +export const zStatsSnapshotResponse = z.object({ + country_rank: z.coerce.bigint().min(BigInt("-9223372036854775808"), { message: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { message: "Invalid value: Expected int64 to be <= 9223372036854775807" }), + pp: z.number(), + global_rank: z.coerce.bigint().min(BigInt("-9223372036854775808"), { message: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { message: "Invalid value: Expected int64 to be <= 9223372036854775807" }), + saved_at: z.string().datetime(), +}); + +export const zStatsSnapshotsResponse = z.object({ + total_count: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + snapshots: z.array(zStatsSnapshotResponse), +}); + +export const zSubmissionStatus = z.enum([ + "Failed", + "Submitted", + "Best", + "Deleted", + "Unknown", ]); -export const zEditUserPrivilegeRequest = z.object({ - privilege: z.array(zUserPrivilege), +export const zBulkScoreProcessingByFilterRequest = z.object({ + action: zScoreTaskType, + user_id: z.number().int().gte(1).lte(2147483647), + mode: zGameMode.optional(), + mods: z.array(zMods).nullish(), + submission_status: zSubmissionStatus.optional(), + beatmap_status: zBeatmapStatus.optional(), + submitted_from: z.string().datetime().nullish(), + submitted_to: z.string().datetime().nullish(), }); -export const zEditUserRestrictionRequest = z.object({ - is_restrict: z.boolean(), - restriction_reason: z.union([ - z.string().min(3).max(256), - z.null(), - ]).optional(), +export const zTokenRequest = z.object({ + username: z.string().min(1), + password: z.string().min(1), +}); + +export const zTokenResponse = z.object({ + token: z.string(), + refresh_token: z.string(), + expires_in: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), +}); + +export const zUpdateBeatmapsCustomStatusRequest = z.object({ + ids: z.array(z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" })), + status: zBeatmapStatusWeb, }); +export const zUpdateFriendshipStatusAction = z.enum(["Add", "Remove"]); + +export const zEditFriendshipStatusRequest = z.object({ + action: zUpdateFriendshipStatusAction, +}); + +export const zUserBadge = z.enum([ + "Developer", + "Admin", + "Bat", + "Bot", + "Supporter", +]); + export const zUserEventType = z.enum([ "GameLogin", "WebLogin", @@ -661,66 +641,140 @@ export const zUserEventType = z.enum([ "Unrestrict", ]); -export const zEventUserResponse = z.object({ - id: z.number().int(), - user: zUserResponse, - event_type: zUserEventType, - ip: z.string(), - json_data: z.string(), - created_at: z.string().datetime(), +export const zUserMedalResponse = z.object({ + id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).readonly(), + name: z.string().readonly(), + description: z.string().readonly(), + unlocked_at: z.string().datetime().readonly().nullish(), }); -export const zEventUsersResponse = z.object({ - events: z.array(zEventUserResponse), - total_count: z.number().int(), +export const zCategory = z.object({ + medals: z.array(zUserMedalResponse).readonly(), }); -export const zFavouritedResponse = z.object({ - favourited: z.boolean(), +export const zMedalsResponse = z.object({ + hush_hush: zCategory, + beatmap_hunt: zCategory, + mod_introduction: zCategory, + skill: zCategory, }); -export const zFollowersResponse = z.object({ - followers: z.array(zUserResponse), - total_count: z.number().int(), +export const zUserPlaystyle = z.enum([ + "None", + "Mouse", + "Keyboard", + "Tablet", + "TouchScreen", +]); + +export const zEditUserMetadataRequest = z.object({ + playstyle: z.array(zUserPlaystyle).nullish(), + location: z.string().max(32).nullish(), + interest: z.string().max(32).nullish(), + occupation: z.string().max(32).nullish(), + telegram: z.string().max(32).nullish(), + twitch: z.string().max(32).nullish(), + twitter: z.string().max(32).nullish(), + discord: z.string().max(32).nullish(), + website: z.string().max(200).nullish(), }); -export const zFriendStatusResponse = z.object({ - is_following_you: z.boolean(), - is_followed_by_you: z.boolean(), +export const zUserMetadataResponse = z.object({ + playstyle: z.array(zUserPlaystyle), + location: z.string(), + interest: z.string(), + occupation: z.string(), + telegram: z.string(), + twitch: z.string(), + twitter: z.string(), + discord: z.string(), + website: z.string(), }); -export const zFriendsResponse = z.object({ - friends: z.array(zUserResponse), - total_count: z.number().int(), +export const zUserPrivilege = z.enum([ + "User", + "Supporter", + "Admin", + "Developer", + "SuperUser", + "ServerBot", + "BeatmapApprovalTeamStandard", + "BeatmapApprovalTeamTaiko", + "BeatmapApprovalTeamCatch", + "BeatmapApprovalTeamMania", +]); + +export const zEditUserPrivilegeRequest = z.object({ + privilege: z.array(zUserPrivilege), }); -export const zGradesResponse = z.object({ - count_xh: z.number().int(), - count_x: z.number().int(), - count_sh: z.number().int(), - count_s: z.number().int(), - count_a: z.number().int(), - count_b: z.number().int(), - count_c: z.number().int(), - count_d: z.number().int(), +export const zUserRelationsCountersResponse = z.object({ + followers: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + following: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), }); -export const zHypedBeatmapSetResponse = z.object({ - id: z.number().int(), +export const zUserResponse = z.object({ + user_id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + username: z.string(), + description: z.string().nullish(), + country_code: zCountryCode, + register_date: z.string().datetime(), + avatar_url: z.string(), + banner_url: z.string(), + last_online_time: z.string().datetime(), + restricted: z.boolean(), + silenced_until: z.string().datetime().nullish(), + default_gamemode: zGameMode, + badges: z.array(zUserBadge), + user_status: z.string(), +}); + +export const zBeatmapResponse = z.object({ + id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + beatmapset_id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + hash: z.string(), + version: z.string(), + status: zBeatmapStatusWeb, + star_rating_osu: z.number(), + star_rating_taiko: z.number(), + star_rating_ctb: z.number(), + star_rating_mania: z.number(), + total_length: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + max_combo: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + accuracy: z.number().nullish(), + ar: z.number().nullish(), + bpm: z.number(), + convert: z.boolean(), + count_circles: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + count_sliders: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + count_spinners: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + cs: z.number(), + deleted_at: z.string().datetime().nullish(), + drain: z.number().nullish(), + hit_length: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + is_scoreable: z.boolean(), + is_ranked: z.boolean(), + last_updated: z.string().datetime(), + mode_int: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + mode: zGameMode, + ranked: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + title: z.string().nullish(), + artist: z.string().nullish(), + creator: z.string().nullish(), + creator_id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + beatmap_nominator_user: zUserResponse.optional(), +}); + +export const zBeatmapSetResponse = z.object({ + id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), artist: z.string(), title: z.string(), creator: z.string(), - creator_id: z.number().int(), + creator_id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), status: zBeatmapStatusWeb, last_updated: z.string().datetime(), - submitted_date: z.union([ - z.string().datetime(), - z.null(), - ]).optional(), - ranked_date: z.union([ - z.string().datetime(), - z.null(), - ]).optional(), + submitted_date: z.string().datetime(), + ranked_date: z.string().datetime().nullish(), video: z.boolean(), beatmaps: z.array(zBeatmapResponse), description: z.string(), @@ -729,116 +783,104 @@ export const zHypedBeatmapSetResponse = z.object({ tags: z.array(z.string()), beatmap_nominator_user: zUserResponse.optional(), can_be_hyped: z.boolean(), - hypeCount: z.number().int(), }); -export const zHypedBeatmapSetsResponse = z.object({ - sets: z.array(zHypedBeatmapSetResponse), - total_count: z.union([ - z.number().int(), - z.null(), - ]).optional(), +export const zBeatmapEventResponse = z.object({ + event_id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + executor: zUserResponse, + type: zBeatmapEventType, + beatmapset_id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + beatmapset: zBeatmapSetResponse, + beatmap_hash: z.string().nullish(), + new_status: zBeatmapStatusWeb.optional(), + created_at: z.string().datetime(), }); -export const zItemType = z.enum([ - "Hype", -]); +export const zBeatmapSetEventsResponse = z.object({ + events: z.array(zBeatmapEventResponse), + total_count: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), +}); -export const zInventoryItemResponse = z.object({ - quantity: z.number().int(), - item_type: zItemType, +export const zBeatmapSetsResponse = z.object({ + sets: z.array(zBeatmapSetResponse), + total_count: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), }); -export const zUserStatsResponse = z.object({ - user_id: z.number().int(), - gamemode: zGameMode, - accuracy: z.number(), - total_score: z.coerce.bigint(), - ranked_score: z.coerce.bigint(), - play_count: z.number().int(), - pp: z.number(), - rank: z.coerce.bigint(), - country_rank: z.coerce.bigint(), - max_combo: z.number().int(), - play_time: z.number().int(), - total_hits: z.number().int(), - best_global_rank: z.coerce.bigint(), - best_global_rank_date: z.string().datetime(), - best_country_rank: z.coerce.bigint(), - best_country_rank_date: z.string().datetime(), +export const zCustomBeatmapStatusChangeResponse = z.object({ + beatmap: zBeatmapResponse, + new_status: zBeatmapStatusWeb, + old_status: zBeatmapStatusWeb, + bat: zUserResponse, }); -export const zUserWithStats = z.object({ - user: zUserResponse, - stats: zUserStatsResponse, +export const zEventScoreProcessingResponse = z.object({ + id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + event_type: zScoreProcessingEventType, + executor: zUserResponse.optional(), + score_id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + task_id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + json_data: z.string().nullish(), + created_at: z.string().datetime(), }); -export const zLeaderboardResponse = z.object({ - users: z.array(zUserWithStats), - total_count: z.number().int(), +export const zEventScoreProcessingListResponse = z.object({ + events: z.array(zEventScoreProcessingResponse), + total_count: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), }); -export const zLeaderboardSortType = z.enum([ - "Pp", - "Score", -]); +export const zEventUserResponse = z.object({ + id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + user: zUserResponse, + event_type: zUserEventType, + ip: z.string(), + json_data: z.string(), + created_at: z.string().datetime(), +}); -export const zRateLimits = z.object({ - total_limit: z.number().int(), - remaining_calls: z.coerce.bigint(), +export const zEventUsersResponse = z.object({ + events: z.array(zEventUserResponse), + total_count: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), }); -export const zLimitsResponse = z.object({ - message: z.string(), - rate_limits: zRateLimits, - beatmap_rate_limits: zRateLimits, +export const zFollowersResponse = z.object({ + followers: z.array(zUserResponse), + total_count: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), }); -export const zMedalsResponse = z.object({ - hush_hush: zCategory, - beatmap_hunt: zCategory, - mod_introduction: zCategory, - skill: zCategory, +export const zFriendsResponse = z.object({ + friends: z.array(zUserResponse), + total_count: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), }); -export const zMods = z.enum([ - "None", - "NoFail", - "Easy", - "TouchDevice", - "Hidden", - "HardRock", - "SuddenDeath", - "DoubleTime", - "Relax", - "HalfTime", - "Nightcore", - "Flashlight", - "Autoplay", - "SpunOut", - "Relax2", - "Perfect", - "Key4", - "Key5", - "Key6", - "Key7", - "Key8", - "FadeIn", - "Random", - "Cinema", - "Target", - "Key9", - "KeyCoop", - "Key1", - "Key3", - "Key2", - "ScoreV2", - "Mirror", -]); +export const zHypedBeatmapSetResponse = z.object({ + id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + artist: z.string(), + title: z.string(), + creator: z.string(), + creator_id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + status: zBeatmapStatusWeb, + last_updated: z.string().datetime(), + submitted_date: z.string().datetime(), + ranked_date: z.string().datetime().nullish(), + video: z.boolean(), + beatmaps: z.array(zBeatmapResponse), + description: z.string(), + genre: z.string(), + language: z.string(), + tags: z.array(z.string()), + beatmap_nominator_user: zUserResponse.optional(), + can_be_hyped: z.boolean(), + hypeCount: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), +}); + +export const zHypedBeatmapSetsResponse = z.object({ + sets: z.array(zHypedBeatmapSetResponse), + total_count: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), +}); export const zMostPlayedBeatmapResponse = z.object({ - id: z.number().int(), - beatmapset_id: z.number().int(), + id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + beatmapset_id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), hash: z.string(), version: z.string(), status: zBeatmapStatusWeb, @@ -846,344 +888,165 @@ export const zMostPlayedBeatmapResponse = z.object({ star_rating_taiko: z.number(), star_rating_ctb: z.number(), star_rating_mania: z.number(), - total_length: z.number().int(), - max_combo: z.number().int(), - accuracy: z.union([ - z.number(), - z.null(), - ]).optional(), - ar: z.union([ - z.number(), - z.null(), - ]).optional(), + total_length: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + max_combo: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + accuracy: z.number().nullish(), + ar: z.number().nullish(), bpm: z.number(), convert: z.boolean(), - count_circles: z.number().int(), - count_sliders: z.number().int(), - count_spinners: z.number().int(), + count_circles: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + count_sliders: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + count_spinners: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), cs: z.number(), - deleted_at: z.union([ - z.string().datetime(), - z.null(), - ]).optional(), - drain: z.union([ - z.number(), - z.null(), - ]).optional(), - hit_length: z.number().int(), + deleted_at: z.string().datetime().nullish(), + drain: z.number().nullish(), + hit_length: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), is_scoreable: z.boolean(), is_ranked: z.boolean(), last_updated: z.string().datetime(), - mode_int: z.number().int(), + mode_int: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), mode: zGameMode, - ranked: z.number().int(), - title: z.union([ - z.string(), - z.null(), - ]).optional(), - artist: z.union([ - z.string(), - z.null(), - ]).optional(), - creator: z.union([ - z.string(), - z.null(), - ]).optional(), - creator_id: z.number().int(), + ranked: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + title: z.string().nullish(), + artist: z.string().nullish(), + creator: z.string().nullish(), + creator_id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), beatmap_nominator_user: zUserResponse.optional(), - play_count: z.number().int(), + play_count: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), }); export const zMostPlayedResponse = z.object({ most_played: z.array(zMostPlayedBeatmapResponse), - total_count: z.number().int(), -}); - -export const zScoreState = z.object({ - maxCombo: z.union([ - z.number().int(), - z.null(), - ]).optional(), - osuLargeTickHits: z.union([ - z.number().int(), - z.null(), - ]).optional(), - osuSmallTickHits: z.union([ - z.number().int(), - z.null(), - ]).optional(), - sliderEndHits: z.union([ - z.number().int(), - z.null(), - ]).optional(), - nGeki: z.union([ - z.number().int(), - z.null(), - ]).optional(), - nKatu: z.union([ - z.number().int(), - z.null(), - ]).optional(), - n300: z.union([ - z.number().int(), - z.null(), - ]).optional(), - n100: z.union([ - z.number().int(), - z.null(), - ]).optional(), - n50: z.union([ - z.number().int(), - z.null(), - ]).optional(), - misses: z.union([ - z.number().int(), - z.null(), - ]).optional(), -}); - -export const zPerformanceAttributes = z.object({ - difficulty: zDifficultyAttributes, - effectiveMissCount: z.union([ - z.number(), - z.null(), - ]).optional(), - estimatedUnstableRate: z.union([ - z.number(), - z.null(), - ]).optional(), - pp: z.number(), - ppAccuracy: z.union([ - z.number(), - z.null(), - ]).optional(), - ppAim: z.union([ - z.number(), - z.null(), - ]).optional(), - ppDifficulty: z.union([ - z.number(), - z.null(), - ]).optional(), - ppFlashlight: z.union([ - z.number(), - z.null(), - ]).optional(), - ppSpeed: z.union([ - z.number(), - z.null(), - ]).optional(), - state: zScoreState, -}); - -export const zPlayHistorySnapshotResponse = z.object({ - play_count: z.number().int(), - saved_at: z.string().datetime(), -}); - -export const zPlayHistorySnapshotsResponse = z.object({ - total_count: z.number().int(), - snapshots: z.array(zPlayHistorySnapshotResponse), -}); - -export const zPreviousUsernamesResponse = z.object({ - usernames: z.array(z.string()), -}); - -export const zProblemDetailsResponseType = z.object({ - type: z.union([ - z.string(), - z.null(), - ]).optional(), - title: z.union([ - z.string(), - z.null(), - ]).optional(), - status: z.union([ - z.number().int(), - z.null(), - ]).optional(), - detail: z.union([ - z.string(), - z.null(), - ]).optional(), - instance: z.union([ - z.string(), - z.null(), - ]).optional(), - traceId: z.union([ - z.string(), - z.null(), - ]).optional(), - errors: z.unknown().optional(), -}); - -export const zRefreshTokenRequest = z.object({ - refresh_token: z.string().min(1), -}); - -export const zRefreshTokenResponse = z.object({ - token: z.string(), - expires_in: z.number().int(), -}); - -export const zRegisterRequest = z.object({ - username: z.string().min(1), - password: z.string().min(1), - email: z.string().min(1).regex(/^\S[^\s@]*@\S[^\s.]*\.\S+$/), -}); - -export const zResetPasswordRequest = z.object({ - new_password: z.string().min(1), + total_count: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), }); -export const zScoreResponse = z.object({ - accuracy: z.number(), - beatmap_id: z.number().int(), - count_100: z.number().int(), - count_300: z.number().int(), - count_50: z.number().int(), - count_geki: z.number().int(), - count_katu: z.number().int(), - count_miss: z.number().int(), - game_mode: zGameMode, - game_mode_extended: zGameMode, - grade: z.string(), - id: z.number().int(), - is_passed: z.boolean(), - has_replay: z.boolean(), - leaderboard_rank: z.union([ - z.number().int(), - z.null(), - ]).optional(), - max_combo: z.number().int(), - mods: z.union([ - z.string(), - z.null(), - ]).optional(), - mods_int: z.union([ - z.number().int(), - z.null(), - ]).optional(), - is_perfect: z.boolean(), - performance_points: z.number(), - total_score: z.coerce.bigint(), - user_id: z.number().int(), - when_played: z.string().datetime(), - user: zUserResponse, -}); - -export const zScoreTableType = z.enum([ - "Best", - "Recent", - "Top", -]); - -export const zScoresResponse = z.object({ - scores: z.array(zScoreResponse), - total_count: z.number().int(), -}); - -export const zSolarSystemVersionResponse = z.object({ - is_running_under_solar_system: z.boolean(), - solar_system_version: z.union([ - z.string(), - z.null(), - ]).optional(), -}); - -export const zStatsSnapshotResponse = z.object({ - country_rank: z.coerce.bigint(), - pp: z.number(), - global_rank: z.coerce.bigint(), - saved_at: z.string().datetime(), +export const zScoreResponse = z.object({ + accuracy: z.number(), + beatmap_id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + count_100: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + count_300: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + count_50: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + count_geki: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + count_katu: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + count_miss: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + game_mode: zGameMode, + game_mode_extended: zGameMode, + grade: z.string(), + id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + is_passed: z.boolean(), + has_replay: z.boolean(), + leaderboard_rank: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + max_combo: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + mods: z.string().nullish(), + mods_int: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + is_perfect: z.boolean(), + performance_points: z.number(), + total_score: z.coerce.bigint().min(BigInt("-9223372036854775808"), { message: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { message: "Invalid value: Expected int64 to be <= 9223372036854775807" }), + user_id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + when_played: z.string().datetime(), + user: zUserResponse, }); -export const zStatsSnapshotsResponse = z.object({ - total_count: z.number().int(), - snapshots: z.array(zStatsSnapshotResponse), +export const zAdminScoreResponse = z.object({ + score: zScoreResponse, + submission_status: zSubmissionStatus, + beatmap_status: zBeatmapStatus, + is_scoreable: z.boolean(), + score_hash: z.string().nullish(), }); -export const zStatusResponse = z.object({ - is_online: z.boolean(), - is_on_maintenance: z.boolean(), - users_online: z.number().int(), - current_users_online: z.union([ - z.array(zUserResponse), - z.null(), - ]).optional(), - total_users: z.coerce.bigint(), - recent_users: z.union([ - z.array(zUserResponse), - z.null(), - ]).optional(), - total_scores: z.union([ - z.coerce.bigint(), - z.null(), - ]).optional(), - total_restrictions: z.union([ - z.coerce.bigint(), - z.null(), - ]).optional(), +export const zAdminScoresResponse = z.object({ + scores: z.array(zAdminScoreResponse), + total_count: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), }); -export const zTokenRequest = z.object({ - username: z.string().min(1), - password: z.string().min(1), +export const zScoreProcessingTaskResponse = z.object({ + id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + task_type: zScoreTaskType, + status: zScoreProcessingStatus, + priority: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + retry_count: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + error_code: zScoreProcessingErrorCode.optional(), + error_message: z.string().nullish(), + next_retry_at: z.string().datetime().nullish(), + created_at: z.string().datetime(), + score_id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(), + score: zAdminScoreResponse.optional(), }); -export const zTokenResponse = z.object({ - token: z.string(), - refresh_token: z.string(), - expires_in: z.number().int(), +export const zScoreProcessingPreviewResponse = z.object({ + score: zAdminScoreResponse, + active_task: zScoreProcessingTaskResponse.optional(), }); -export const zUpdateBeatmapsCustomStatusRequest = z.object({ - ids: z.array(z.number().int()), - status: zBeatmapStatusWeb, +export const zScoreProcessingTasksResponse = z.object({ + tasks: z.array(zScoreProcessingTaskResponse), + total_count: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), }); -export const zUserMetadataResponse = z.object({ - playstyle: z.array(zUserPlaystyle), - location: z.string(), - interest: z.string(), - occupation: z.string(), - telegram: z.string(), - twitch: z.string(), - twitter: z.string(), - discord: z.string(), - website: z.string(), +export const zScoresResponse = z.object({ + scores: z.array(zScoreResponse), + total_count: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), }); -export const zUserRelationsCountersResponse = z.object({ - followers: z.number().int(), - following: z.number().int(), +export const zStatusResponse = z.object({ + is_online: z.boolean(), + is_on_maintenance: z.boolean(), + users_online: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + current_users_online: z.array(zUserResponse).nullish(), + total_users: z.coerce.bigint().min(BigInt("-9223372036854775808"), { message: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { message: "Invalid value: Expected int64 to be <= 9223372036854775807" }), + recent_users: z.array(zUserResponse).nullish(), + total_scores: z.coerce.bigint().min(BigInt("-9223372036854775808"), { message: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { message: "Invalid value: Expected int64 to be <= 9223372036854775807" }).nullish(), + total_restrictions: z.coerce.bigint().min(BigInt("-9223372036854775808"), { message: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { message: "Invalid value: Expected int64 to be <= 9223372036854775807" }).nullish(), }); export const zUserSensitiveResponse = z.object({ - user_id: z.number().int(), + user_id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), username: z.string(), email: z.string(), privilege: z.array(zUserPrivilege), - description: z.union([ - z.string(), - z.null(), - ]).optional(), + description: z.string().nullish(), country_code: zCountryCode, register_date: z.string().datetime(), avatar_url: z.string(), banner_url: z.string(), last_online_time: z.string().datetime(), restricted: z.boolean(), - silenced_until: z.union([ - z.string().datetime(), - z.null(), - ]).optional(), + silenced_until: z.string().datetime().nullish(), default_gamemode: zGameMode, badges: z.array(zUserBadge), user_status: z.string(), }); +export const zUserStatsResponse = z.object({ + user_id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + gamemode: zGameMode, + accuracy: z.number(), + total_score: z.coerce.bigint().min(BigInt("-9223372036854775808"), { message: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { message: "Invalid value: Expected int64 to be <= 9223372036854775807" }), + ranked_score: z.coerce.bigint().min(BigInt("-9223372036854775808"), { message: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { message: "Invalid value: Expected int64 to be <= 9223372036854775807" }), + play_count: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + pp: z.number(), + rank: z.coerce.bigint().min(BigInt("-9223372036854775808"), { message: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { message: "Invalid value: Expected int64 to be <= 9223372036854775807" }), + country_rank: z.coerce.bigint().min(BigInt("-9223372036854775808"), { message: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { message: "Invalid value: Expected int64 to be <= 9223372036854775807" }), + max_combo: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + play_time: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + total_hits: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), + best_global_rank: z.coerce.bigint().min(BigInt("-9223372036854775808"), { message: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { message: "Invalid value: Expected int64 to be <= 9223372036854775807" }), + best_global_rank_date: z.string().datetime(), + best_country_rank: z.coerce.bigint().min(BigInt("-9223372036854775808"), { message: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { message: "Invalid value: Expected int64 to be <= 9223372036854775807" }), + best_country_rank_date: z.string().datetime(), +}); + +export const zUserWithStats = z.object({ + user: zUserResponse, + stats: zUserStatsResponse, +}); + +export const zLeaderboardResponse = z.object({ + users: z.array(zUserWithStats), + total_count: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), +}); + export const zUserWithStatsResponse = z.object({ user: zUserResponse, stats: zUserStatsResponse.optional(), @@ -1195,113 +1058,718 @@ export const zUsernameChangeRequest = z.object({ export const zUsersSensitiveListResponse = z.object({ users: z.array(zUserSensitiveResponse), - total_count: z.number().int(), + total_count: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }), }); -export const zWebSocketEventType = z.enum([ - "NewScoreSubmitted", - "CustomBeatmapStatusChanged", -]); +export const zWebSocketEventType = z.enum(["NewScoreSubmitted", "CustomBeatmapStatusChanged"]); export const zWebSocketMessage = z.object({ messageType: zWebSocketEventType, data: z.string().readonly(), }); +export const zMedalsResponseWritable = z.record(z.never()); + +export const zWebSocketMessageWritable = z.object({ + messageType: zWebSocketEventType, +}); + +export const zPostAuthTokenBody = zTokenRequest; + +/** + * OK + */ export const zPostAuthTokenResponse = zTokenResponse; +export const zPostAuthRefreshBody = zRefreshTokenRequest; + +/** + * OK + */ export const zPostAuthRefreshResponse = zRefreshTokenResponse; +export const zPostAuthRegisterBody = zRegisterRequest; + +/** + * OK + */ export const zPostAuthRegisterResponse = zTokenResponse; +/** + * OK + */ export const zGetPingResponse = z.string(); +/** + * OK + */ export const zGetLimitsResponse = zLimitsResponse; +export const zGetStatusQuery = z.object({ + detailed: z.boolean().optional().default(false), + includeRecentUsers: z.boolean().optional().default(false), +}); + +/** + * OK + */ export const zGetStatusResponse = zStatusResponse; +/** + * OK + */ export const zGetVersionResponse = zSolarSystemVersionResponse; +export const zGetBeatmapByIdPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +/** + * OK + */ export const zGetBeatmapByIdResponse = zBeatmapResponse; +export const zGetBeatmapsetByBeatmapSetByIdPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), + beatmapSet: z.string(), +}); + +/** + * OK + */ export const zGetBeatmapsetByBeatmapSetByIdResponse = zBeatmapResponse; +export const zGetBeatmapByIdPpPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zGetBeatmapByIdPpQuery = z.object({ + mods: z.array(zMods).optional(), + mode: zGameMode.optional(), + combo: z.number().int().gte(0).lte(2147483647).optional(), + misses: z.number().int().gte(0).lte(2147483647).optional(), + accuracy: z.number().gte(0).lte(100).optional(), +}); + +/** + * OK + */ export const zGetBeatmapByIdPpResponse = zPerformanceAttributes; +export const zGetBeatmapsetByBeatmapSetByIdPpPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), + beatmapSet: z.string(), +}); + +export const zGetBeatmapsetByBeatmapSetByIdPpQuery = z.object({ + mods: z.array(zMods).optional(), + mode: zGameMode.optional(), + combo: z.number().int().gte(0).lte(2147483647).optional(), + misses: z.number().int().gte(0).lte(2147483647).optional(), + accuracy: z.number().gte(0).lte(100).optional(), +}); + +/** + * OK + */ export const zGetBeatmapsetByBeatmapSetByIdPpResponse = zPerformanceAttributes; +export const zGetBeatmapByIdLeaderboardPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zGetBeatmapByIdLeaderboardQuery = z.object({ + mode: zGameMode, + mods: z.array(zMods).optional(), + limit: z.number().int().gte(1).lte(100).optional().default(50), +}); + +/** + * OK + */ export const zGetBeatmapByIdLeaderboardResponse = zScoresResponse; +export const zGetBeatmapsetByBeatmapSetByIdLeaderboardPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), + beatmapSet: z.string(), +}); + +export const zGetBeatmapsetByBeatmapSetByIdLeaderboardQuery = z.object({ + mode: zGameMode, + mods: z.array(zMods).optional(), + limit: z.number().int().gte(1).lte(100).optional().default(50), +}); + +/** + * OK + */ export const zGetBeatmapsetByBeatmapSetByIdLeaderboardResponse = zScoresResponse; +export const zGetBeatmapsetByIdPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +/** + * OK + */ export const zGetBeatmapsetByIdResponse = zBeatmapSetResponse; +export const zGetBeatmapsetByIdHypePath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +/** + * OK + */ export const zGetBeatmapsetByIdHypeResponse = zBeatmapSetHypeCountResponse; +export const zPostBeatmapsetByIdHypePath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zGetBeatmapsetGetHypedSetsQuery = z.object({ + limit: z.number().int().gte(1).lte(100).optional().default(50), + page: z.number().int().gte(1).lte(2147483647).optional().default(1), +}); + +/** + * OK + */ export const zGetBeatmapsetGetHypedSetsResponse = zHypedBeatmapSetsResponse; +export const zGetBeatmapsetByIdEventsPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zGetBeatmapsetByIdEventsQuery = z.object({ + limit: z.number().int().gte(1).lte(100).optional().default(50), + page: z.number().int().gte(1).lte(2147483647).optional().default(1), +}); + +/** + * OK + */ export const zGetBeatmapsetByIdEventsResponse = zBeatmapSetEventsResponse; +export const zGetBeatmapsetEventsQuery = z.object({ + limit: z.number().int().gte(1).lte(100).optional().default(50), + page: z.number().int().gte(1).lte(2147483647).optional().default(1), +}); + +/** + * OK + */ export const zGetBeatmapsetEventsResponse = zBeatmapSetEventsResponse; +export const zGetBeatmapsetByIdFavouritedPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +/** + * OK + */ export const zGetBeatmapsetByIdFavouritedResponse = zFavouritedResponse; +export const zPostBeatmapsetByIdFavouritedBody = zEditBeatmapsetFavouriteStatusRequest; + +export const zPostBeatmapsetByIdFavouritedPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zPostBeatmapUpdateCustomStatusBody = zUpdateBeatmapsCustomStatusRequest; + +export const zGetBeatmapsetSearchQuery = z.object({ + query: z.string().optional(), + status: z.array(zBeatmapStatusWeb).optional(), + mode: zGameMode.optional(), + searchByCustomStatus: z.boolean().optional().default(false), + limit: z.number().int().gte(1).lte(100).optional().default(50), + page: z.number().int().gte(1).lte(2147483647).optional().default(1), +}); + +/** + * OK + */ export const zGetBeatmapsetSearchResponse = zBeatmapSetsResponse; +export const zGetScoreByIdPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +/** + * OK + */ export const zGetScoreByIdResponse = zScoreResponse; +export const zGetScoreByIdReplayPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +/** + * OK + */ export const zGetScoreByIdReplayResponse = z.string(); +export const zGetScoreTopQuery = z.object({ + mode: zGameMode.optional(), + limit: z.number().int().gte(1).lte(100).optional().default(15), + page: z.number().int().gte(1).lte(2147483647).optional().default(1), +}); + +/** + * OK + */ export const zGetScoreTopResponse = zScoresResponse; +export const zGetScoreProcessingQuery = z.object({ + page: z.number().int().gte(1).lte(2147483647).optional().default(1), + limit: z.number().int().gte(1).lte(100).optional().default(25), + status: zScoreProcessingStatus.optional(), + task_type: zScoreTaskType.optional(), + score_id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).optional(), + task_id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).optional(), +}); + +/** + * OK + */ +export const zGetScoreProcessingResponse = zScoreProcessingTasksResponse; + +export const zPostScoreProcessingBody = zCreateScoreProcessingTaskRequest; + +export const zPostScoreProcessingResponse = z.union([ + z.unknown(), + zScoreProcessingTaskResponse, +]); + +/** + * OK + */ +export const zGetScoreProcessingStatsResponse = zScoreProcessingStatsResponse; + +export const zGetScoreProcessingByIdPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +/** + * OK + */ +export const zGetScoreProcessingByIdResponse = zScoreProcessingTaskResponse; + +export const zGetScoreProcessingScoreByScoreIdPath = z.object({ + scoreId: z.number().int().gte(1).lte(2147483647), +}); + +/** + * OK + */ +export const zGetScoreProcessingScoreByScoreIdResponse = zScoreProcessingPreviewResponse; + +export const zPostScoreProcessingByIdCancelPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zPostScoreProcessingByIdRequeuePath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zPostScoreProcessingBulkBody = zBulkScoreProcessingRequest; + +/** + * OK + */ +export const zPostScoreProcessingBulkResponse = zBulkScoreProcessingResultResponse; + +export const zPostScoreProcessingBulkByFilterBody = zBulkScoreProcessingByFilterRequest; + +export const zGetScoreProcessingEventsQuery = z.object({ + page: z.number().int().gte(1).lte(2147483647).optional().default(1), + limit: z.number().int().gte(1).lte(100).optional().default(25), + types: z.array(zScoreProcessingEventType).optional(), + score_id: z.number().int().min(-2147483648, { message: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { message: "Invalid value: Expected int32 to be <= 2147483647" }).optional(), +}); + +/** + * OK + */ +export const zGetScoreProcessingEventsResponse = zEventScoreProcessingListResponse; + +export const zGetUserByIdPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +/** + * OK + */ export const zGetUserByIdResponse = zUserResponse; +export const zGetUserByIdSensitivePath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +/** + * OK + */ export const zGetUserByIdSensitiveResponse = zUserSensitiveResponse; +export const zGetUserByIdByModePath = z.object({ + id: z.number().int().gte(1).lte(2147483647), + mode: zGameMode, +}); + +/** + * OK + */ export const zGetUserByIdByModeResponse = zUserWithStatsResponse; +/** + * OK + */ export const zGetUserSelfResponse = zUserResponse; +export const zGetUserSelfByModePath = z.object({ + mode: zGameMode, +}); + +/** + * OK + */ export const zGetUserSelfByModeResponse = zUserWithStatsResponse; +export const zPostUserEditDescriptionBody = zEditDescriptionRequest; + +export const zPostUserByIdEditDescriptionBody = zEditDescriptionRequest; + +export const zPostUserByIdEditDescriptionPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zPostUserEditDefaultGamemodeBody = zEditDefaultGameModeRequest; + +export const zPostUserByIdEditRestrictionBody = zEditUserRestrictionRequest; + +export const zPostUserByIdEditRestrictionPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zPostUserByIdEditIgnoreLoginDataBody = zEditIgnoreLoginDataRequest; + +export const zPostUserByIdEditIgnoreLoginDataPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zPostUserEditHidePreviousUsernameBody = zEditHidePreviousUsernameRequest; + +export const zGetUserByUserIdGraphPath = z.object({ + userId: z.number().int().gte(1).lte(2147483647), +}); + +export const zGetUserByUserIdGraphQuery = z.object({ + mode: zGameMode, +}); + +/** + * OK + */ export const zGetUserByUserIdGraphResponse = zStatsSnapshotsResponse; +export const zGetUserByUserIdPlayHistoryGraphPath = z.object({ + userId: z.number().int().gte(1).lte(2147483647), +}); + +/** + * OK + */ export const zGetUserByUserIdPlayHistoryGraphResponse = zPlayHistorySnapshotsResponse; +export const zGetUserByIdScoresPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zGetUserByIdScoresQuery = z.object({ + mode: zGameMode.optional(), + type: zScoreTableType.optional(), + limit: z.number().int().gte(1).lte(100).optional().default(15), + page: z.number().int().gte(1).lte(2147483647).optional().default(1), +}); + +/** + * OK + */ export const zGetUserByIdScoresResponse = zScoresResponse; +export const zGetUserByIdScoresAdminPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zGetUserByIdScoresAdminQuery = z.object({ + mode: zGameMode.optional(), + mods: z.array(zMods).optional(), + submission_status: zSubmissionStatus.optional(), + beatmap_status: zBeatmapStatus.optional(), + submitted_from: z.string().datetime().optional(), + submitted_to: z.string().datetime().optional(), + sort: zScoreSortType.optional(), + limit: z.number().int().gte(1).lte(100).optional().default(25), + page: z.number().int().gte(1).lte(2147483647).optional().default(1), +}); + +/** + * OK + */ +export const zGetUserByIdScoresAdminResponse = zAdminScoresResponse; + +export const zGetUserByIdMostplayedPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zGetUserByIdMostplayedQuery = z.object({ + mode: zGameMode.optional(), + limit: z.number().int().gte(1).lte(100).optional().default(15), + page: z.number().int().gte(1).lte(2147483647).optional().default(1), +}); + +/** + * OK + */ export const zGetUserByIdMostplayedResponse = zMostPlayedResponse; +export const zGetUserByIdFavouritesPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zGetUserByIdFavouritesQuery = z.object({ + limit: z.number().int().gte(1).lte(100).optional().default(50), + page: z.number().int().gte(1).lte(2147483647).optional().default(1), +}); + +/** + * OK + */ export const zGetUserByIdFavouritesResponse = zBeatmapSetsResponse; +export const zGetUserByIdPreviousUsernamesPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +/** + * OK + */ export const zGetUserByIdPreviousUsernamesResponse = zPreviousUsernamesResponse; +export const zGetUserLeaderboardQuery = z.object({ + mode: zGameMode.optional(), + type: zLeaderboardSortType.optional(), + limit: z.number().int().gte(1).lte(100).optional().default(50), + page: z.number().int().gte(1).lte(2147483647).optional().default(1), +}); + +/** + * OK + */ export const zGetUserLeaderboardResponse = zLeaderboardResponse; +export const zGetUserSearchQuery = z.object({ + query: z.string(), + limit: z.number().int().gte(1).lte(100).optional().default(50), + page: z.number().int().gte(1).lte(2147483647).optional().default(1), +}); + +/** + * OK + */ export const zGetUserSearchResponse = z.array(zUserResponse); +export const zGetUserSearchListQuery = z.object({ + query: z.string().optional(), + limit: z.number().int().gte(1).lte(100).optional().default(50), + page: z.number().int().gte(1).lte(2147483647).optional().default(1), +}); + +/** + * OK + */ export const zGetUserSearchListResponse = zUsersSensitiveListResponse; +export const zGetUserFriendsQuery = z.object({ + limit: z.number().int().gte(1).lte(100).optional().default(50), + page: z.number().int().gte(1).lte(2147483647).optional().default(1), +}); + +/** + * OK + */ export const zGetUserFriendsResponse = zFriendsResponse; +export const zGetUserByIdFriendsPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zGetUserByIdFriendsQuery = z.object({ + limit: z.number().int().gte(1).lte(100).optional().default(50), + page: z.number().int().gte(1).lte(2147483647).optional().default(1), +}); + +/** + * OK + */ export const zGetUserByIdFriendsResponse = zFriendsResponse; +export const zGetUserFollowersQuery = z.object({ + limit: z.number().int().gte(1).lte(100).optional().default(50), + page: z.number().int().gte(1).lte(2147483647).optional().default(1), +}); + +/** + * OK + */ export const zGetUserFollowersResponse = zFollowersResponse; +export const zGetUserByIdFollowersPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zGetUserByIdFollowersQuery = z.object({ + limit: z.number().int().gte(1).lte(100).optional().default(50), + page: z.number().int().gte(1).lte(2147483647).optional().default(1), +}); + +/** + * OK + */ export const zGetUserByIdFollowersResponse = zFollowersResponse; +export const zGetUserByIdFriendStatusPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +/** + * OK + */ export const zGetUserByIdFriendStatusResponse = zFriendStatusResponse; +export const zPostUserByIdFriendStatusBody = zEditFriendshipStatusRequest; + +export const zPostUserByIdFriendStatusPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zGetUserByIdEventsPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zGetUserByIdEventsQuery = z.object({ + limit: z.number().int().gte(1).lte(100).optional().default(50), + page: z.number().int().gte(1).lte(2147483647).optional().default(1), + query: z.string().optional(), + types: z.array(zUserEventType).optional(), +}); + +/** + * OK + */ export const zGetUserByIdEventsResponse = zEventUsersResponse; +export const zGetUserInventoryItemQuery = z.object({ + type: zItemType, +}); + +/** + * OK + */ export const zGetUserInventoryItemResponse = zInventoryItemResponse; +export const zGetUserByIdFriendsCountPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +/** + * OK + */ export const zGetUserByIdFriendsCountResponse = zUserRelationsCountersResponse; +export const zGetUserByIdMedalsPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zGetUserByIdMedalsQuery = z.object({ + mode: zGameMode, +}); + +/** + * OK + */ export const zGetUserByIdMedalsResponse = zMedalsResponse; +export const zGetUserByIdGradesPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zGetUserByIdGradesQuery = z.object({ + mode: zGameMode, +}); + +/** + * OK + */ export const zGetUserByIdGradesResponse = zGradesResponse; +export const zGetUserByIdMetadataPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +/** + * OK + */ export const zGetUserByIdMetadataResponse = zUserMetadataResponse; +export const zPostUserByIdEditMetadataBody = zEditUserMetadataRequest; + +export const zPostUserByIdEditMetadataPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zPostUserByIdEditPrivilegeBody = zEditUserPrivilegeRequest; + +export const zPostUserByIdEditPrivilegePath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zPostUserEditMetadataBody = zEditUserMetadataRequest; + +export const zPostUserByIdUploadAvatarPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zPostUserByIdUploadBannerPath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zPostUserByIdPasswordChangeBody = zResetPasswordRequest; + +export const zPostUserByIdPasswordChangePath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zPostUserPasswordChangeBody = zChangePasswordRequest; + +export const zPostUserByIdUsernameChangeBody = zUsernameChangeRequest; + +export const zPostUserByIdUsernameChangePath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zPostUserUsernameChangeBody = zUsernameChangeRequest; + +export const zPostUserByIdCountryChangeBody = zCountryChangeRequest; + +export const zPostUserByIdCountryChangePath = z.object({ + id: z.number().int().gte(1).lte(2147483647), +}); + +export const zPostUserCountryChangeBody = zCountryChangeRequest; + +/** + * OK + */ export const zGetWsResponse = zWebSocketMessage; diff --git a/lib/utils/buildQuery.ts b/lib/utils/buildQuery.ts index 3c9b54ba..0c0e5844 100644 --- a/lib/utils/buildQuery.ts +++ b/lib/utils/buildQuery.ts @@ -26,3 +26,16 @@ export function buildQuery>( const queryString = params.toString(); return withPrefix && queryString ? `?${queryString}` : queryString; } + +export function createQueryString(name: string, value: string): string { + const params = new URLSearchParams(window.location.search); + + if (value) { + params.set(name, value); + } + else { + params.delete(name); + } + + return params.toString(); +} diff --git a/lib/utils/getStatusBadgeColor.ts b/lib/utils/getStatusBadgeColor.ts new file mode 100644 index 00000000..039561aa --- /dev/null +++ b/lib/utils/getStatusBadgeColor.ts @@ -0,0 +1,24 @@ +import { ScoreProcessingStatus } from "@/lib/types/api"; + +const STATUS_BADGE_CLASSES: Partial> = { + [ScoreProcessingStatus.PENDING]: { + badge: "bg-yellow-500/15 text-yellow-500", + text: "text-yellow-500", + }, + [ScoreProcessingStatus.PROCESSING]: { + badge: "bg-blue-500/15 text-blue-500", + text: "text-blue-500", + }, + [ScoreProcessingStatus.FAILED]: { + badge: "bg-red-500/15 text-red-500", + text: "text-red-500", + }, +}; + +export function getStatusBadgeClassName(status: ScoreProcessingStatus): string { + return STATUS_BADGE_CLASSES[status]?.badge ?? "bg-muted text-muted-foreground"; +} + +export function getStatusBadgeTextClassName(status: ScoreProcessingStatus): string { + return STATUS_BADGE_CLASSES[status]?.text ?? "text-muted-foreground"; +} diff --git a/next.config.mjs b/next.config.mjs index 6fbe3d2f..db18140b 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,32 +1,13 @@ -import path from "node:path"; -import { fileURLToPath } from "node:url"; - import createNextIntlPlugin from "next-intl/plugin"; -const __filename = fileURLToPath(import.meta.url); -const __dirname = path.dirname(__filename); - const domain = process.env.NEXT_PUBLIC_SERVER_DOMAIN || "ppy.sh"; const shouldUnoptimizeImages = process.env.NEXT_PUBLIC_UNOPTIMIZED_IMAGES === "true"; +const shouldAllowLocalIP = process.env.NEXT_PUBLIC_ALLOW_LOCAL_IP === "true"; + /** @type {import('next').NextConfig} */ const nextConfig = { - webpack(config) { - config.module.rules.push({ - test: /\.svg$/i, - issuer: /\.[jt]sx?$/, - use: [{ loader: "@svgr/webpack", options: { icon: true } }], - }); - - config.resolve.alias["next/link"] = path.resolve( - __dirname, - "lib/overrides/next/link", - ); - - return config; - }, - turbopack: { rules: { "*.svg": { @@ -57,6 +38,7 @@ const nextConfig = { images: { unoptimized: shouldUnoptimizeImages, + dangerouslyAllowLocalIP: shouldAllowLocalIP, remotePatterns: [ { protocol: "https", diff --git a/openapi-ts.config.ts b/openapi-ts.config.ts index 9e9c7dbb..524909c4 100644 --- a/openapi-ts.config.ts +++ b/openapi-ts.config.ts @@ -1,18 +1,16 @@ -export default { +import { defineConfig } from "@hey-api/openapi-ts"; + +export default defineConfig({ input: `https://api.${process.env.NEXT_PUBLIC_SERVER_DOMAIN}/openapi/v1.json`, output: { path: "lib/types/api", - lint: "eslint", + postProcess: [{ command: "eslint", args: ["--fix", "{{path}}"] }], }, plugins: [ "zod", - { - baseUrl: false, - name: "@hey-api/client-fetch", - }, { enums: "typescript", name: "@hey-api/typescript", }, ], -}; +}); diff --git a/package-lock.json b/package-lock.json index 963f1688..042f43b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,6 @@ "dependencies": { "@bbob/html": "^4.2.0", "@bbob/preset-html5": "^4.2.0", - "@hey-api/client-fetch": "^0.10.0", "@hookform/resolvers": "^5.0.1", "@radix-ui/react-accordion": "^1.2.4", "@radix-ui/react-alert-dialog": "^1.1.7", @@ -43,7 +42,7 @@ "ky": "^1.7.5", "lodash": "^4.17.21", "lucide-react": "^0.441.0", - "next": "^15.5.9", + "next": "^16.3.6", "next-intl": "^4.4.0", "next-themes": "^0.4.6", "react": "19.1.0", @@ -51,7 +50,7 @@ "react-easy-crop": "^5.5.6", "react-hook-form": "^7.55.0", "recharts": "^2.15.2", - "sharp": "^0.33.5", + "sharp": "^0.35.4", "swr": "^2.3.3", "tailwind-merge": "^2.6.0", "tailwindcss-animate": "^1.0.7", @@ -59,7 +58,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@hey-api/openapi-ts": "^0.66.7", + "@hey-api/openapi-ts": "^0.99.0", "@richardscull/eslint-config": "^1.0.6", "@svgr/webpack": "^8.1.0", "@types/js-cookie": "^3.0.6", @@ -69,7 +68,7 @@ "@types/react-dom": "19.1.2", "dotenv-cli": "^8.0.0", "eslint": "^9.39.2", - "eslint-config-next": "^15.5.9", + "eslint-config-next": "^16.3.6", "jiti": "^2.6.1", "lint-staged": "^16.2.7", "postcss": "^8", @@ -96,26 +95,14 @@ "dev": true, "license": "ISC" }, - "node_modules/@ampproject/remapping": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", - "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", - "dev": true, - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/@babel/code-frame": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", - "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", + "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-validator-identifier": "^7.27.1", + "@babel/helper-validator-identifier": "^7.29.7", "js-tokens": "^4.0.0", "picocolors": "^1.1.1" }, @@ -124,30 +111,32 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.25.8.tgz", - "integrity": "sha512-ZsysZyXY4Tlx+Q53XdnOFmqwfB9QDTHYxaZYajWRoBLuLEAwI2UIbtxOjWh/cFaa9IKUlcB+DDuoskLuKu56JA==", + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz", + "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.25.8.tgz", - "integrity": "sha512-Oixnb+DzmRT30qu9d3tJSQkxuygWm32DFykT4bRoORPa9hZ/L4KhVB/XiRm6KG+roIEM7DBQlmg27kw2HZkdZg==", - "dev": true, - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.25.7", - "@babel/generator": "^7.25.7", - "@babel/helper-compilation-targets": "^7.25.7", - "@babel/helper-module-transforms": "^7.25.7", - "@babel/helpers": "^7.25.7", - "@babel/parser": "^7.25.8", - "@babel/template": "^7.25.7", - "@babel/traverse": "^7.25.7", - "@babel/types": "^7.25.8", + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz", + "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.7", + "@babel/helper-compilation-targets": "^7.29.7", + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helpers": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/template": "^7.29.7", + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7", + "@jridgewell/remapping": "^2.3.5", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -184,14 +173,16 @@ } }, "node_modules/@babel/generator": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.7.tgz", - "integrity": "sha512-5Dqpl5fyV9pIAD62yK9P7fcA768uVPUyrQmqpqstHWgMma4feF1x/oFysBCVZLY5wJ2GkMUCdsNDnGZrPoR6rA==", + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz", + "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.25.7", - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25", + "@babel/parser": "^7.29.8", + "@babel/types": "^7.29.8", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" }, "engines": { @@ -224,13 +215,14 @@ } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.7.tgz", - "integrity": "sha512-DniTEax0sv6isaw6qSQSfV4gVRNtw2rte8HHM45t9ZR0xILaufBRNkpMifCRiAPyvL4ACD6v0gfCwCmtOQaV4A==", + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz", + "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.25.7", - "@babel/helper-validator-option": "^7.25.7", + "@babel/compat-data": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", "browserslist": "^4.24.0", "lru-cache": "^5.1.1", "semver": "^6.3.1" @@ -329,6 +321,16 @@ "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, + "node_modules/@babel/helper-globals": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz", + "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/helper-member-expression-to-functions": { "version": "7.25.7", "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.25.7.tgz", @@ -343,28 +345,29 @@ } }, "node_modules/@babel/helper-module-imports": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.7.tgz", - "integrity": "sha512-o0xCgpNmRohmnoWKQ0Ij8IdddjyBFE4T2kagL/x6M3+4zUgc+4qTOUBoNe4XxDskt1HPKO007ZPiMgLDq2s7Kw==", + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz", + "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/traverse": "^7.25.7", - "@babel/types": "^7.25.7" + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.25.7.tgz", - "integrity": "sha512-k/6f8dKG3yDz/qCwSM+RKovjMix563SLxQFo0UhRNo239SP6n9u5/eLtKD6EAjwta2JHJ49CsD8pms2HdNiMMQ==", + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz", + "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-module-imports": "^7.25.7", - "@babel/helper-simple-access": "^7.25.7", - "@babel/helper-validator-identifier": "^7.25.7", - "@babel/traverse": "^7.25.7" + "@babel/helper-module-imports": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7", + "@babel/traverse": "^7.29.7" }, "engines": { "node": ">=6.9.0" @@ -386,10 +389,11 @@ } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.7.tgz", - "integrity": "sha512-eaPZai0PiqCi09pPs3pAFfl/zYgGaE6IdXtYvmf0qlcDTd3WCtO7JWCcRd64e0EQrcYgiHibEZnOGsSY4QSgaw==", + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz", + "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -455,28 +459,31 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.7.tgz", - "integrity": "sha512-CbkjYdsJNHFk8uqpEkpCvRs3YRp9tY6FmFY7wLMSYuGYkrdUi7r2lc4/wqsvlHoMznX3WJ9IP8giGPq68T/Y6g==", + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", + "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", - "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.7.tgz", - "integrity": "sha512-ytbPLsm+GjArDYXJ8Ydr1c/KJuutjF2besPNbIZnZ6MKUxi/uTA22t2ymmA4WFjZFpjiAMO0xuuJPqK2nvDVfQ==", + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz", + "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -496,25 +503,27 @@ } }, "node_modules/@babel/helpers": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.25.7.tgz", - "integrity": "sha512-Sv6pASx7Esm38KQpF/U/OXLwPPrdGHNKoeblRxgZRLXnAtnkEe4ptJPDtAZM7fBLadbc1Q07kQpSiGQ0Jg6tRA==", + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz", + "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/template": "^7.25.7", - "@babel/types": "^7.25.7" + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/parser": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.8.tgz", - "integrity": "sha512-HcttkxzdPucv3nNFmfOOMfFf64KgdJVqm1KaCm25dPGMLElo9nsLvXeJECQg8UzPuBGLyTSA0ZzqCtDSzKTEoQ==", + "version": "7.29.9", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz", + "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.25.8" + "@babel/types": "^7.29.8" }, "bin": { "parser": "bin/babel-parser.js" @@ -1081,15 +1090,16 @@ } }, "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.25.7.tgz", - "integrity": "sha512-t9jZIvBmOXJsiuyOwhrIGs8dVcD6jDyg2icw1VL4A/g+FnWyJKwUfSSU2nwJuMV2Zqui856El9u+ElB+j9fV1g==", + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.29.8.tgz", + "integrity": "sha512-6iSnEK0zlkLKU4heofK/AdmRD4e2SHVpJMtrwnTCzhnaM98ria4rTrOXBBi45BTTYnJtO8txnPsX4fChYXkmeA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-module-transforms": "^7.25.7", - "@babel/helper-plugin-utils": "^7.25.7", - "@babel/helper-validator-identifier": "^7.25.7", - "@babel/traverse": "^7.25.7" + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7", + "@babel/traverse": "^7.29.8" }, "engines": { "node": ">=6.9.0" @@ -1728,55 +1738,48 @@ } }, "node_modules/@babel/template": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.7.tgz", - "integrity": "sha512-wRwtAgI3bAS+JGU2upWNL9lSlDcRCqD05BZ1n3X2ONLH1WilFP6O1otQjeMK/1g0pvYcXC7b/qVUB1keofjtZA==", + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz", + "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.25.7", - "@babel/parser": "^7.25.7", - "@babel/types": "^7.25.7" + "@babel/code-frame": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/types": "^7.29.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.25.7", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.25.7.tgz", - "integrity": "sha512-jatJPT1Zjqvh/1FyJs6qAHL+Dzb7sTb+xr7Q+gM1b+1oBsMsQQ4FkVKb6dFlJvLlVssqkRzV05Jzervt9yhnzg==", + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.8.tgz", + "integrity": "sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.25.7", - "@babel/generator": "^7.25.7", - "@babel/parser": "^7.25.7", - "@babel/template": "^7.25.7", - "@babel/types": "^7.25.7", - "debug": "^4.3.1", - "globals": "^11.1.0" + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.8", + "@babel/helper-globals": "^7.29.7", + "@babel/parser": "^7.29.8", + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.8", + "debug": "^4.3.1" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/traverse/node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/@babel/types": { - "version": "7.25.8", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.8.tgz", - "integrity": "sha512-JWtuCu8VQsMladxVz/P4HzHUGCAwpuqacmowgXFs5XjxIgKuNjnLokQzuVjlTvIzODaDmpjT3oxcC48vyk9EWg==", + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", + "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.25.7", - "@babel/helper-validator-identifier": "^7.25.7", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" }, "engines": { "node": ">=6.9.0" @@ -1843,6 +1846,31 @@ "resolved": "https://registry.npmjs.org/@bbob/types/-/types-4.2.0.tgz", "integrity": "sha512-bSCZnNg0VrPosBBUVkjBDYVKNEqwT0jTNuzvAuNrZkuILgUKtLYI9GHuT8rY4lZecCb7UqGDsHsYt0YJO36eJg==" }, + "node_modules/@eloqnt/config": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@eloqnt/config/-/config-0.1.0.tgz", + "integrity": "sha512-SLR6ZSHxu6XdZtmOz3xRmC3gsY/sCzqtLMD1gxbW2I3XXPBbupwL5RZbkLU/NcZm74AKZrIUPfz3CtEJfxUKqQ==", + "license": "MIT" + }, + "node_modules/@eloqnt/format-json": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@eloqnt/format-json/-/format-json-0.1.0.tgz", + "integrity": "sha512-4Pkb+HyzgWNJXoU48aJhUyNZSjZvMGooPCNG1ZFmBm55xTiNNPQCNXH66Ob6sXS6RvbWZrRpCf+Uo/Jz9K9g+A==", + "license": "MIT", + "dependencies": { + "@eloqnt/config": "^0.1.0" + } + }, + "node_modules/@eloqnt/format-po": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@eloqnt/format-po/-/format-po-0.1.0.tgz", + "integrity": "sha512-odgtuICWs67GdkNqY51/d2vaIukuOdlGalKASUGkI5c4cyWOmv/WIVyk5gZyn3xr614RzwWp57s9WB40lRLlBw==", + "license": "MIT", + "dependencies": { + "@eloqnt/config": "^0.1.0", + "po-parser": "^2.2.0" + } + }, "node_modules/@emnapi/core": { "version": "1.7.1", "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.7.1.tgz", @@ -1856,9 +1884,10 @@ } }, "node_modules/@emnapi/runtime": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.7.1.tgz", - "integrity": "sha512-PVtJr5CmLwYAU9PZDMITZoR5iAOShYREoR45EyyLrbntV50mdePTgUn4AmOw90Ifcj+x2kRjdzr1HP3RrNiHGA==", + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz", + "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==", + "license": "MIT", "optional": true, "dependencies": { "tslib": "^2.4.0" @@ -1913,10 +1942,11 @@ } }, "node_modules/@eslint-community/eslint-utils": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz", - "integrity": "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==", + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", + "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", "dev": true, + "license": "MIT", "dependencies": { "eslint-visitor-keys": "^3.4.3" }, @@ -2225,125 +2255,170 @@ "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.9.tgz", "integrity": "sha512-MDWhGtE+eHw5JW7lq4qhc5yRLS11ERl1c7Z6Xd0a58DozHES6EnNNwUWbMiG4J9Cgj053Bhk8zvlhFYKVhULwg==" }, - "node_modules/@formatjs/ecma402-abstract": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/@formatjs/ecma402-abstract/-/ecma402-abstract-2.3.6.tgz", - "integrity": "sha512-HJnTFeRM2kVFVr5gr5kH1XP6K0JcJtE7Lzvtr3FS/so5f1kpsqqqxy5JF+FRaO6H2qmcMfAUIox7AJteieRtVw==", - "license": "MIT", - "dependencies": { - "@formatjs/fast-memoize": "2.2.7", - "@formatjs/intl-localematcher": "0.6.2", - "decimal.js": "^10.4.3", - "tslib": "^2.8.0" - } - }, - "node_modules/@formatjs/ecma402-abstract/node_modules/@formatjs/intl-localematcher": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.6.2.tgz", - "integrity": "sha512-XOMO2Hupl0wdd172Y06h6kLpBz6Dv+J4okPLl4LPtzbr8f66WbIoy4ev98EBuZ6ZK4h5ydTN6XneT4QVpD7cdA==", - "license": "MIT", - "dependencies": { - "tslib": "^2.8.0" - } - }, "node_modules/@formatjs/fast-memoize": { - "version": "2.2.7", - "resolved": "https://registry.npmjs.org/@formatjs/fast-memoize/-/fast-memoize-2.2.7.tgz", - "integrity": "sha512-Yabmi9nSvyOMrlSeGGWDiH7rf3a7sIwplbvo/dlz9WCIjzIQAfy1RMf4S0X3yG724n5Ghu2GmEl5NJIV6O9sZQ==", - "license": "MIT", - "dependencies": { - "tslib": "^2.8.0" - } + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@formatjs/fast-memoize/-/fast-memoize-3.1.7.tgz", + "integrity": "sha512-zXfhLpvA6T7+efdt9JLbBwZ00tT7NsBMDVnDu8rpHeNNv8KfRZAMo2gkG0k9lK/Nzc//3kJ9pImsfuJxk3KhUA==", + "license": "MIT" }, "node_modules/@formatjs/icu-messageformat-parser": { - "version": "2.11.4", - "resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.11.4.tgz", - "integrity": "sha512-7kR78cRrPNB4fjGFZg3Rmj5aah8rQj9KPzuLsmcSn4ipLXQvC04keycTI1F7kJYDwIXtT2+7IDEto842CfZBtw==", + "version": "3.5.20", + "resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-3.5.20.tgz", + "integrity": "sha512-DUzCb2iskGDKvLU7P+nz/rjpmN59luoTRbWHFFNYNnZTxWCKvwPI94rNll99TGZaI6XoTbDF0QGegk21GFrQZQ==", "license": "MIT", "dependencies": { - "@formatjs/ecma402-abstract": "2.3.6", - "@formatjs/icu-skeleton-parser": "1.8.16", - "tslib": "^2.8.0" + "@formatjs/icu-skeleton-parser": "2.1.12" } }, "node_modules/@formatjs/icu-skeleton-parser": { - "version": "1.8.16", - "resolved": "https://registry.npmjs.org/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.8.16.tgz", - "integrity": "sha512-H13E9Xl+PxBd8D5/6TVUluSpxGNvFSlN/b3coUp0e0JpuWXXnQDiavIpY3NnvSp4xhEMoXyyBvVfdFX8jglOHQ==", - "license": "MIT", - "dependencies": { - "@formatjs/ecma402-abstract": "2.3.6", - "tslib": "^2.8.0" - } + "version": "2.1.12", + "resolved": "https://registry.npmjs.org/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-2.1.12.tgz", + "integrity": "sha512-ca7tZMLpfHX3sUD7hP6gE/qr6Iq89EDd3ZLeRhbsB7r0UD55DGJq+tmFLzrGrnx5StahUevQmQQVtbDRHsfDHA==", + "license": "MIT" }, "node_modules/@formatjs/intl-localematcher": { - "version": "0.5.10", - "resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.5.10.tgz", - "integrity": "sha512-af3qATX+m4Rnd9+wHcjJ4w2ijq+rAVP3CCinJQvFv1kgSu1W6jypUmvleJxcewdxmutM8dmIRZFxO/IQBZmP2Q==", + "version": "0.8.14", + "resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.8.14.tgz", + "integrity": "sha512-8O7V38QmbB11+ryJ3KM/znrzXtiqgpXzqNoqDsndHZZ5/zDKTTL+cf5F0mzXkQEwhx8IlWnqYvEovf2S5EwLTw==", "license": "MIT", "dependencies": { - "tslib": "2" + "@formatjs/fast-memoize": "3.1.7" } }, - "node_modules/@hey-api/client-fetch": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/@hey-api/client-fetch/-/client-fetch-0.10.0.tgz", - "integrity": "sha512-C7vzj4t52qPiHCqjn1l8cRTI2p4pZCd7ViLtJDTHr5ZwI4sWOYC1tmv6bd529qqY6HFFbhGCz4TAZSwKAMJncg==", + "node_modules/@hey-api/codegen-core": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/@hey-api/codegen-core/-/codegen-core-0.9.1.tgz", + "integrity": "sha512-s97jL1dgTMuiMHv2BZ1X4Tgd99Mf9GOvGdNqNcGwIMmnR+PgYNoraj4Zvp134MKsNCap/m7k0r0vKKnl56pj4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@hey-api/types": "0.1.4", + "ansi-colors": "4.1.3", + "c12": "3.3.4", + "color-support": "1.1.3" + }, + "engines": { + "node": ">=22.18.0" + }, "funding": { "url": "https://github.com/sponsors/hey-api" - }, - "peerDependencies": { - "@hey-api/openapi-ts": "< 2" } }, "node_modules/@hey-api/json-schema-ref-parser": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@hey-api/json-schema-ref-parser/-/json-schema-ref-parser-1.0.5.tgz", - "integrity": "sha512-bWUV9ICwvU5I3YKVZqWIUXFC2SIXznUi/u+LqurJx6ILiyImfZD5+g/lj3w4EiyXxmjqyaxptzUz/1IgK3vVtw==", + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/@hey-api/json-schema-ref-parser/-/json-schema-ref-parser-1.4.4.tgz", + "integrity": "sha512-otmd+zCxbYVBIp/mlMTnGkvlNYLkVKgs3VOIq0kSnenhB1+fRwLPQIeSwyWM6E51oXhUedkYjVsVpkVexeuJOA==", + "dev": true, + "license": "MIT", "dependencies": { - "@jsdevtools/ono": "^7.1.3", - "@types/json-schema": "^7.0.15", - "js-yaml": "^4.1.0", - "lodash": "^4.17.21" + "@jsdevtools/ono": "7.1.3", + "@types/json-schema": "7.0.15", + "js-yaml": "4.2.0" }, "engines": { - "node": ">= 16" + "node": ">=22.18.0" }, "funding": { "url": "https://github.com/sponsors/hey-api" } }, "node_modules/@hey-api/openapi-ts": { - "version": "0.66.7", - "resolved": "https://registry.npmjs.org/@hey-api/openapi-ts/-/openapi-ts-0.66.7.tgz", - "integrity": "sha512-BQMrbiNTWPHwZQ2wMnFdKXVMR47P77hc8fuUseQmmXsXG3Rvt2qstXtlQPmbEds/RO5iTL+JKqdcbhPSWuu/og==", + "version": "0.99.0", + "resolved": "https://registry.npmjs.org/@hey-api/openapi-ts/-/openapi-ts-0.99.0.tgz", + "integrity": "sha512-SePU/5oEWWkvUBYmvzdYRctseoLuskyhs4ET0RvLIcmzc8yLQoA2R+KtBIQ8bPsoSUB0m4E5SmBnl6aGSA0szQ==", + "dev": true, + "license": "MIT", "dependencies": { - "@hey-api/json-schema-ref-parser": "1.0.5", - "c12": "2.0.1", - "commander": "13.0.0", - "handlebars": "4.7.8" + "@hey-api/codegen-core": "0.9.1", + "@hey-api/json-schema-ref-parser": "1.4.4", + "@hey-api/shared": "0.5.0", + "@hey-api/spec-types": "0.2.0", + "@hey-api/types": "0.1.4", + "@lukeed/ms": "2.0.2", + "ansi-colors": "4.1.3", + "color-support": "1.1.3", + "commander": "15.0.0", + "get-tsconfig": "4.14.0" }, "bin": { - "openapi-ts": "bin/index.cjs" + "openapi-ts": "bin/run.js" }, "engines": { - "node": "^18.18.0 || ^20.9.0 || >=22.10.0" + "node": ">=22.18.0" }, "funding": { "url": "https://github.com/sponsors/hey-api" }, "peerDependencies": { - "typescript": "^5.5.3" + "typescript": ">=5.5.3 || >=6.0.0 || 6.0.1-rc" } }, "node_modules/@hey-api/openapi-ts/node_modules/commander": { - "version": "13.0.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-13.0.0.tgz", - "integrity": "sha512-oPYleIY8wmTVzkvQq10AEok6YcTC4sRUBl8F9gVuwchGVUCTbl/vhLTaQqutuuySYOsu8YTgV+OxKc/8Yvx+mQ==", + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-15.0.0.tgz", + "integrity": "sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=18" + "node": ">=22.12.0" + } + }, + "node_modules/@hey-api/shared": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@hey-api/shared/-/shared-0.5.0.tgz", + "integrity": "sha512-JN/j4Ebh4cJGYIQ5cwWuqe7GeSUyQoz7oC51WqyhKOcrejK6DKZMDkshc5d1eKTRuRL+rjozuRcoUaZZn2DGPw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@hey-api/codegen-core": "0.9.1", + "@hey-api/json-schema-ref-parser": "1.4.4", + "@hey-api/spec-types": "0.2.0", + "@hey-api/types": "0.1.4", + "ansi-colors": "4.1.3", + "cross-spawn": "7.0.6", + "open": "11.0.0", + "semver": "7.8.4" + }, + "engines": { + "node": ">=22.18.0" + }, + "funding": { + "url": "https://github.com/sponsors/hey-api" + } + }, + "node_modules/@hey-api/shared/node_modules/semver": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.4.tgz", + "integrity": "sha512-rUCObTnP32Q08R2uuIrt7r9PlEonuTmtuXYcW6s5kjdlj3xbnwe+21yXptAUYcMAABLkYYTtnmzb3w3EDZfueA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@hey-api/spec-types": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@hey-api/spec-types/-/spec-types-0.2.0.tgz", + "integrity": "sha512-ibQ8Is7evMavzr8GNyJCcTg975d8DpaMUyLmOrQ85UBdy1l6t1KuRAwgChAbesJsIlNV6gjmlXruWyegDX18Fg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@hey-api/types": "0.1.4" + }, + "funding": { + "url": "https://github.com/sponsors/hey-api" } }, + "node_modules/@hey-api/types": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/@hey-api/types/-/types-0.1.4.tgz", + "integrity": "sha512-thWfawrDIP7wSI9ioT13I5soaaqB5vAPIiZmgD8PbeEVKNrkonc0N/Sjj97ezl7oQgusZmaNphGdMKipPO6IBg==", + "dev": true, + "license": "MIT" + }, "node_modules/@hookform/resolvers": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-5.0.1.tgz", @@ -2356,27 +2431,43 @@ } }, "node_modules/@humanfs/core": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", - "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", + "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/types": "^0.15.0" + }, "engines": { "node": ">=18.18.0" } }, "node_modules/@humanfs/node": { - "version": "0.16.7", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz", - "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==", + "version": "0.16.8", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz", + "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "@humanfs/core": "^0.19.1", + "@humanfs/core": "^0.19.2", + "@humanfs/types": "^0.15.0", "@humanwhocodes/retry": "^0.4.0" }, "engines": { "node": ">=18.18.0" } }, + "node_modules/@humanfs/types": { + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz", + "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, "node_modules/@humanwhocodes/module-importer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", @@ -2404,63 +2495,101 @@ } }, "node_modules/@img/colour": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.0.0.tgz", - "integrity": "sha512-A5P/LfWGFSl6nsckYtjw9da+19jB8hkJ6ACTGcDfEJ0aE+l2n2El7dsVM7UVHZQ9s2lmYMWlrS21YLy2IR1LUw==", - "optional": true, + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz", + "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==", + "license": "MIT", "engines": { "node": ">=18" } }, "node_modules/@img/sharp-darwin-arm64": { - "version": "0.33.5", - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.33.5.tgz", - "integrity": "sha512-UT4p+iz/2H4twwAoLCqfA9UH5pI6DggwKEGuaPy7nCVQ8ZsiY5PIcrRvD1DzuY3qYL07NtIQcWnBSY/heikIFQ==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.4.tgz", + "integrity": "sha512-Uhfl4V4lhP2nbUVF9+hyH1+luj86f1gUFeo8ALYxFoULoU+G87D43BfeMP8XHsk9boxAnCY/bf2EHwhA7MuGsA==", "cpu": [ "arm64" ], + "license": "Apache-2.0", "optional": true, "os": [ "darwin" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-darwin-arm64": "1.0.4" + "@img/sharp-libvips-darwin-arm64": "1.3.3" } }, "node_modules/@img/sharp-darwin-x64": { - "version": "0.33.5", - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.33.5.tgz", - "integrity": "sha512-fyHac4jIc1ANYGRDxtiqelIbdWkIuQaI84Mv45KvGRRxSAa7o7d1ZKAOBaYbnepLC1WqxfpimdeWfvqqSGwR2Q==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.4.tgz", + "integrity": "sha512-hWniXY3bG5qKpkKrAwPe4y+VTPmf086YQAnkxWh7uA1YrlRouWGa0M0Mxj3ZjnXFkv7/TD1bTy9lGUK26vRvWw==", "cpu": [ "x64" ], + "license": "Apache-2.0", "optional": true, "os": [ "darwin" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-darwin-x64": "1.0.4" + "@img/sharp-libvips-darwin-x64": "1.3.3" + } + }, + "node_modules/@img/sharp-freebsd-wasm32": { + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.4.tgz", + "integrity": "sha512-lIsKw/BU+kjB4eZjxrYrZmwOJYi3Ajrv66iAlBmUPyKc3HpnloevB1g3wxGD9P/5BbQ1brBGl65VRRrCvQDEqA==", + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "dependencies": { + "@img/sharp-wasm32": "0.35.4" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-freebsd-wasm32/node_modules/@img/sharp-wasm32": { + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.4.tgz", + "integrity": "sha512-zQnl4Kwp7Q6NHsENtU2T/00Zi+w3AQNwz3+UaTyVBy2FpXrzXzGjndpK61onhZjRtRpQXxCTeqw19bVyXOh7jA==", + "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", + "optional": true, + "dependencies": { + "@emnapi/runtime": "^1.11.3" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" } }, "node_modules/@img/sharp-libvips-darwin-arm64": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.0.4.tgz", - "integrity": "sha512-XblONe153h0O2zuFfTAbQYAX2JhYmDHeWikp1LM9Hul9gVPjFY427k6dFEcOL72O01QxQsWi761svJ/ev9xEDg==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.3.tgz", + "integrity": "sha512-suTBPTDGrI9WodccaDdwZItTSaBYASlBk1NSfElSHrUfzu3szG6lvIF58+WiFvnfzuK8ZBFS5zE00PxqxnRiPg==", "cpu": [ "arm64" ], + "license": "LGPL-3.0-or-later", "optional": true, "os": [ "darwin" @@ -2470,12 +2599,13 @@ } }, "node_modules/@img/sharp-libvips-darwin-x64": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.0.4.tgz", - "integrity": "sha512-xnGR8YuZYfJGmWPvmlunFaWJsb9T/AO2ykoP3Fz/0X5XV2aoYBPkX6xqCQvUTKKiLddarLaxpzNe+b1hjeWHAQ==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.3.tgz", + "integrity": "sha512-FVJZ5mITMobmXIz/hPDTw0EintTW5H3WfrxwLqEqjiIihlu+hVRyGrFQ60xl0Lxn7Bt3zdpevPaQi0HEzqz9fw==", "cpu": [ "x64" ], + "license": "LGPL-3.0-or-later", "optional": true, "os": [ "darwin" @@ -2485,12 +2615,13 @@ } }, "node_modules/@img/sharp-libvips-linux-arm": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.0.5.tgz", - "integrity": "sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.3.tgz", + "integrity": "sha512-3rbU4vqXXc3hY/OiXdl52xZvT0F1yEngWfvqudtPJg/KkyiaQw2DRsFrNzpmLvfavbwOq3qXn36GP8obHRULQA==", "cpu": [ "arm" ], + "license": "LGPL-3.0-or-later", "optional": true, "os": [ "linux" @@ -2500,12 +2631,13 @@ } }, "node_modules/@img/sharp-libvips-linux-arm64": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.0.4.tgz", - "integrity": "sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.3.tgz", + "integrity": "sha512-0DaL0A6Xu6sQSQFwe4iVCrKWU2cCTItnRsYsCdxAMm9NF6twAA9BKnoqy4hqz4+azQ0JHuA26qiUKsf1XJ/v5A==", "cpu": [ "arm64" ], + "license": "LGPL-3.0-or-later", "optional": true, "os": [ "linux" @@ -2515,9 +2647,9 @@ } }, "node_modules/@img/sharp-libvips-linux-ppc64": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.2.4.tgz", - "integrity": "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.3.tgz", + "integrity": "sha512-cdn1OvUBwsXhbC0zSzJnNzf5MZ/mTrobawDvNXBTxe8VtqKAm0sRuEY2Evzovb/w9JMk4TvRxqt1mekSuJz64w==", "cpu": [ "ppc64" ], @@ -2531,12 +2663,13 @@ } }, "node_modules/@img/sharp-libvips-linux-riscv64": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.2.4.tgz", - "integrity": "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.3.tgz", + "integrity": "sha512-HjPVx7yKz+0lqdhDlTw1tt90wamBoxhiXpvl1XZpJLiHH4RCJ5yDTqH+VlYPv2fwFs89JFw4c1IexYOcQUi4IQ==", "cpu": [ "riscv64" ], + "license": "LGPL-3.0-or-later", "optional": true, "os": [ "linux" @@ -2546,12 +2679,13 @@ } }, "node_modules/@img/sharp-libvips-linux-s390x": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.0.4.tgz", - "integrity": "sha512-u7Wz6ntiSSgGSGcjZ55im6uvTrOxSIS8/dgoVMoiGE9I6JAfU50yH5BoDlYA1tcuGS7g/QNtetJnxA6QEsCVTA==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.3.tgz", + "integrity": "sha512-neWLh+3yCNThxnfy3c4BbVBeGgt9aftno+XbT56iK28RgeDs3UOFWviLWlUu0bArYVYJaFDK+RRohbicUNCm8Q==", "cpu": [ "s390x" ], + "license": "LGPL-3.0-or-later", "optional": true, "os": [ "linux" @@ -2561,12 +2695,13 @@ } }, "node_modules/@img/sharp-libvips-linux-x64": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.0.4.tgz", - "integrity": "sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.3.tgz", + "integrity": "sha512-4vKmvAst9nrowcqquKFAyZJUDolUaIp8uRiN0mWFguJ1IplC9/pitXtlnnlU4aa/eJw3J7i67V+pwUL+wZGdsA==", "cpu": [ "x64" ], + "license": "LGPL-3.0-or-later", "optional": true, "os": [ "linux" @@ -2576,12 +2711,13 @@ } }, "node_modules/@img/sharp-libvips-linuxmusl-arm64": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.0.4.tgz", - "integrity": "sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.3.tgz", + "integrity": "sha512-Y9kQaLMuNoB0bPYOOdcZMaseNrFpPodIWWMrx+CZyydf2xn68j9WYc6sWWRrDwNkzCQjKYfc68L7jKjGlHMibw==", "cpu": [ "arm64" ], + "license": "LGPL-3.0-or-later", "optional": true, "os": [ "linux" @@ -2591,12 +2727,13 @@ } }, "node_modules/@img/sharp-libvips-linuxmusl-x64": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.0.4.tgz", - "integrity": "sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.3.tgz", + "integrity": "sha512-fj8Mv0HHfD1Rr+4I68+3agJynxDWtBFgicTbSOb9Bke6pIwzGcJ+RX/yHjmiEGFMCavY/dxvem7MyNaJF+wDiw==", "cpu": [ "x64" ], + "license": "LGPL-3.0-or-later", "optional": true, "os": [ "linux" @@ -2606,268 +2743,273 @@ } }, "node_modules/@img/sharp-linux-arm": { - "version": "0.33.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.33.5.tgz", - "integrity": "sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.4.tgz", + "integrity": "sha512-7OAS8gI0EReKGVN2HssHlM6umJgxF5VI3xN0p9FA91p/YO+ou5hiNghLdZ5BEHztwaaK5+bLKRf8x/o2L2nk9A==", "cpu": [ "arm" ], + "license": "Apache-2.0", "optional": true, "os": [ "linux" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-arm": "1.0.5" + "@img/sharp-libvips-linux-arm": "1.3.3" } }, "node_modules/@img/sharp-linux-arm64": { - "version": "0.33.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.33.5.tgz", - "integrity": "sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.4.tgz", + "integrity": "sha512-De4jpEnAU8Hd5oT0j1G3uL4ZvTuipVMn7YC6vPaJhy6/7EwEae0SVAoBrUMYQbkLGDm85taVWwuPc1a44LTzCQ==", "cpu": [ "arm64" ], + "license": "Apache-2.0", "optional": true, "os": [ "linux" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-arm64": "1.0.4" + "@img/sharp-libvips-linux-arm64": "1.3.3" } }, "node_modules/@img/sharp-linux-ppc64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.34.5.tgz", - "integrity": "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.4.tgz", + "integrity": "sha512-2oYZJeIl4kCcMGk4ouZVjnkCtFrpQFlNEtJ6GbxzhHQchwH0NH/qEb9ykmOl29dqwMq+JhFdZn+1ak2FKhI9fQ==", "cpu": [ "ppc64" ], + "license": "Apache-2.0", "optional": true, "os": [ "linux" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-ppc64": "1.2.4" + "@img/sharp-libvips-linux-ppc64": "1.3.3" } }, "node_modules/@img/sharp-linux-riscv64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.34.5.tgz", - "integrity": "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.4.tgz", + "integrity": "sha512-cPbNChoRURAWdebDIHSenxRpgEdy7JkPydSnUxRm9VvKD7m0/xVaR/8Fzlu81pk5nHEvHH87UZUA7cTtwnbJSA==", "cpu": [ "riscv64" ], + "license": "Apache-2.0", "optional": true, "os": [ "linux" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-riscv64": "1.2.4" + "@img/sharp-libvips-linux-riscv64": "1.3.3" } }, "node_modules/@img/sharp-linux-s390x": { - "version": "0.33.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.33.5.tgz", - "integrity": "sha512-y/5PCd+mP4CA/sPDKl2961b+C9d+vPAveS33s6Z3zfASk2j5upL6fXVPZi7ztePZ5CuH+1kW8JtvxgbuXHRa4Q==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.4.tgz", + "integrity": "sha512-RY0JFY8Fd6RonCBtHz+DvadaPkXDSI1AUn6yWL9TipqkZ1vY8w8evqdgyDFnkm4/K1ve1TvZiaePP5oSd4+WVQ==", "cpu": [ "s390x" ], + "license": "Apache-2.0", "optional": true, "os": [ "linux" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-s390x": "1.0.4" + "@img/sharp-libvips-linux-s390x": "1.3.3" } }, "node_modules/@img/sharp-linux-x64": { - "version": "0.33.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.33.5.tgz", - "integrity": "sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.4.tgz", + "integrity": "sha512-9qvvEAuk8k89TfWUoX2htWjbAMX8p+NxCppjpcg5k6xMsjhBQPTsoIh36h9Qde4WRuGpJeYnOjdosDn/cnv+OA==", "cpu": [ "x64" ], + "license": "Apache-2.0", "optional": true, "os": [ "linux" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linux-x64": "1.0.4" + "@img/sharp-libvips-linux-x64": "1.3.3" } }, "node_modules/@img/sharp-linuxmusl-arm64": { - "version": "0.33.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.33.5.tgz", - "integrity": "sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.4.tgz", + "integrity": "sha512-KB5jxpfWQTr0nc3xdHtWChdbifHrBGsd2SM62Eyxrl8afikm+f5qGBU75SJIZBT/S1MC8XyacdlXBMSWq6OURA==", "cpu": [ "arm64" ], + "license": "Apache-2.0", "optional": true, "os": [ "linux" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linuxmusl-arm64": "1.0.4" + "@img/sharp-libvips-linuxmusl-arm64": "1.3.3" } }, "node_modules/@img/sharp-linuxmusl-x64": { - "version": "0.33.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.33.5.tgz", - "integrity": "sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.4.tgz", + "integrity": "sha512-f+eZJZIQNEEd26RPSW+76chwOf1XtA2Y/O+5ocVyLliHkeih3e+jhLVBdNTd2rS3IbNXK8+ug93Vf5ZXtF5Lxg==", "cpu": [ "x64" ], + "license": "Apache-2.0", "optional": true, "os": [ "linux" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-libvips-linuxmusl-x64": "1.0.4" + "@img/sharp-libvips-linuxmusl-x64": "1.3.3" } }, - "node_modules/@img/sharp-wasm32": { - "version": "0.33.5", - "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.33.5.tgz", - "integrity": "sha512-ykUW4LVGaMcU9lu9thv85CbRMAwfeadCJHRsg2GmeRa/cJxsVY9Rbd57JcMxBkKHag5U/x7TSBpScF4U8ElVzg==", + "node_modules/@img/sharp-webcontainers-wasm32": { + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.4.tgz", + "integrity": "sha512-ESfNkywmCfPNyaZjxooddJQiQ+l/nTpGEOGthxiLnIHXC/CmcBixnfwUleX9mCz9ovrUUvKMap/pm8RYbzfwaA==", "cpu": [ "wasm32" ], + "license": "Apache-2.0", "optional": true, "dependencies": { - "@emnapi/runtime": "^1.2.0" + "@img/sharp-wasm32": "0.35.4" }, "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-webcontainers-wasm32/node_modules/@img/sharp-wasm32": { + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.4.tgz", + "integrity": "sha512-zQnl4Kwp7Q6NHsENtU2T/00Zi+w3AQNwz3+UaTyVBy2FpXrzXzGjndpK61onhZjRtRpQXxCTeqw19bVyXOh7jA==", + "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", + "optional": true, + "dependencies": { + "@emnapi/runtime": "^1.11.3" + }, + "engines": { + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" } }, "node_modules/@img/sharp-win32-arm64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.34.5.tgz", - "integrity": "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.4.tgz", + "integrity": "sha512-iNdlBX9gLVvqe2I3uIJSIKTq6wckP/DYxZtcqxm09x5Gi24DnFBmPAWZmr60ZyYMG0xlzo6goG3670ar+RXvRw==", "cpu": [ "arm64" ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", "optional": true, "os": [ "win32" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" } }, "node_modules/@img/sharp-win32-ia32": { - "version": "0.33.5", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.33.5.tgz", - "integrity": "sha512-T36PblLaTwuVJ/zw/LaH0PdZkRz5rd3SmMHX8GSmR7vtNSP5Z6bQkExdSK7xGWyxLw4sUknBuugTelgw2faBbQ==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.4.tgz", + "integrity": "sha512-kqRsbaa5CS6KHlpxnN7WhE6vAAugXyZButpRdvDWetlv6Qv4N9WTcrWzF7tXfB9T7MsoadqdI8hmwLq6UlLvtw==", "cpu": [ "ia32" ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", "optional": true, "os": [ "win32" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": "^20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" } }, "node_modules/@img/sharp-win32-x64": { - "version": "0.33.5", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.33.5.tgz", - "integrity": "sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg==", + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.4.tgz", + "integrity": "sha512-XtmnYhBcrORsJ4XJngyzr/EWP0hRZLAZRFaApdKuviyqF78+ylxh2y06ZmtULAMOnObJ3ucpN0AcwSWnMowTRg==", "cpu": [ "x64" ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", "optional": true, "os": [ "win32" ], "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" } }, - "node_modules/@isaacs/balanced-match": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", - "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "20 || >=22" - } - }, - "node_modules/@isaacs/brace-expansion": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", - "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@isaacs/balanced-match": "^4.0.1" - }, - "engines": { - "node": "20 || >=22" - } - }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -2913,16 +3055,24 @@ } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", - "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "license": "MIT", "dependencies": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" } }, "node_modules/@jridgewell/resolve-uri": { @@ -2933,23 +3083,16 @@ "node": ">=6.0.0" } }, - "node_modules/@jridgewell/set-array": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", - "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/@jridgewell/sourcemap-codec": { "version": "1.5.5", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==" }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.25", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", - "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" @@ -2958,7 +3101,19 @@ "node_modules/@jsdevtools/ono": { "version": "7.1.3", "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz", - "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==" + "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@lukeed/ms": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@lukeed/ms/-/ms-2.0.2.tgz", + "integrity": "sha512-9I2Zn6+NJLfaGoz9jN3lpwDgAYvfGeNYdbAIjJOqzs4Tpc+VU3Jqq4IofSUBKajiDS8k9fZIg18/z13mpk1bsA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } }, "node_modules/@napi-rs/wasm-runtime": { "version": "0.2.12", @@ -2974,16 +3129,19 @@ } }, "node_modules/@next/env": { - "version": "15.5.9", - "resolved": "https://registry.npmjs.org/@next/env/-/env-15.5.9.tgz", - "integrity": "sha512-4GlTZ+EJM7WaW2HEZcyU317tIQDjkQIyENDLxYJfSWlfqguN+dHkZgyQTV/7ykvobU7yEH5gKvreNrH4B6QgIg==" + "version": "16.3.6", + "resolved": "https://registry.npmjs.org/@next/env/-/env-16.3.6.tgz", + "integrity": "sha512-x9Vblze1EbtltQYnNH38xCPWU3TVfBd1eXqA3+w9+BTpedkkdNpAaltXlGQ/nsc1+E0mVTNrtcbX3GoO09zeLQ==", + "license": "MIT" }, "node_modules/@next/eslint-plugin-next": { - "version": "15.5.9", - "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-15.5.9.tgz", - "integrity": "sha512-kUzXx0iFiXw27cQAViE1yKWnz/nF8JzRmwgMRTMh8qMY90crNsdXJRh2e+R0vBpFR3kk1yvAR7wev7+fCCb79Q==", + "version": "16.3.6", + "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-16.3.6.tgz", + "integrity": "sha512-jowwDX+7DOlDIjJLgTMxudw+k37QnWu1JkZLkSi9MaJBfDYcfhAPMKBhXL0idYzFN/AGg//axnOR4cLkHX/Rng==", "dev": true, + "license": "MIT", "dependencies": { + "@eslint-community/eslint-utils": "4.9.1", "fast-glob": "3.3.1" } }, @@ -2992,6 +3150,7 @@ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -3008,6 +3167,7 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, + "license": "ISC", "dependencies": { "is-glob": "^4.0.1" }, @@ -3016,9 +3176,9 @@ } }, "node_modules/@next/swc-darwin-arm64": { - "version": "15.5.7", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.5.7.tgz", - "integrity": "sha512-IZwtxCEpI91HVU/rAUOOobWSZv4P2DeTtNaCdHqLcTJU4wdNXgAySvKa/qJCgR5m6KI8UsKDXtO2B31jcaw1Yw==", + "version": "16.3.6", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.3.6.tgz", + "integrity": "sha512-E/7GEqaUkt8mk/T8v9lAnrhzR06kdq1ZBkC12F8tAMkdIadwNp3H1KqHynDHrpcTlGCUdq/qu6vUL2aYVyYBdw==", "cpu": [ "arm64" ], @@ -3032,9 +3192,9 @@ } }, "node_modules/@next/swc-darwin-x64": { - "version": "15.5.7", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-15.5.7.tgz", - "integrity": "sha512-UP6CaDBcqaCBuiq/gfCEJw7sPEoX1aIjZHnBWN9v9qYHQdMKvCKcAVs4OX1vIjeE+tC5EIuwDTVIoXpUes29lg==", + "version": "16.3.6", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.3.6.tgz", + "integrity": "sha512-yBE893/nDWTlaiBD1p+qgt7NUen4U5R6FXyH0s67Npq1S3E0cVSef1WIXC2xBRgQvwAvJq6DnS6Y6PrY0cy4Ew==", "cpu": [ "x64" ], @@ -3048,9 +3208,9 @@ } }, "node_modules/@next/swc-linux-arm64-gnu": { - "version": "15.5.7", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.5.7.tgz", - "integrity": "sha512-NCslw3GrNIw7OgmRBxHtdWFQYhexoUCq+0oS2ccjyYLtcn1SzGzeM54jpTFonIMUjNbHmpKpziXnpxhSWLcmBA==", + "version": "16.3.6", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.3.6.tgz", + "integrity": "sha512-KJDpjBqBPYlvkivmyrp+Qys6k/7ksbqGQvRVc6ZEGfR+cjQxx+nUkJaWmNZJsmoOrqYNbaXByF8wa0lBwDhB3Q==", "cpu": [ "arm64" ], @@ -3064,9 +3224,9 @@ } }, "node_modules/@next/swc-linux-arm64-musl": { - "version": "15.5.7", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.5.7.tgz", - "integrity": "sha512-nfymt+SE5cvtTrG9u1wdoxBr9bVB7mtKTcj0ltRn6gkP/2Nu1zM5ei8rwP9qKQP0Y//umK+TtkKgNtfboBxRrw==", + "version": "16.3.6", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.3.6.tgz", + "integrity": "sha512-mqNg2K+hvWskSRb/QM+Ix412DvBsuSF0XV+frTSw5vmoucNnIlynFwKYew8D01bfATErMOM7Bujrf0BA5DRKFA==", "cpu": [ "arm64" ], @@ -3080,9 +3240,9 @@ } }, "node_modules/@next/swc-linux-x64-gnu": { - "version": "15.5.7", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.5.7.tgz", - "integrity": "sha512-hvXcZvCaaEbCZcVzcY7E1uXN9xWZfFvkNHwbe/n4OkRhFWrs1J1QV+4U1BN06tXLdaS4DazEGXwgqnu/VMcmqw==", + "version": "16.3.6", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.3.6.tgz", + "integrity": "sha512-nFncBNGAYouRHjRVaITs9beZRfhX4ssVwpnvPIAbkZVH6LtGoAVlH4bJ8Cnf9SOo9bsXgPFer/GdHtEE3JNOkw==", "cpu": [ "x64" ], @@ -3096,9 +3256,9 @@ } }, "node_modules/@next/swc-linux-x64-musl": { - "version": "15.5.7", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.5.7.tgz", - "integrity": "sha512-4IUO539b8FmF0odY6/SqANJdgwn1xs1GkPO5doZugwZ3ETF6JUdckk7RGmsfSf7ws8Qb2YB5It33mvNL/0acqA==", + "version": "16.3.6", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.3.6.tgz", + "integrity": "sha512-5Mf3cHDGR/Iz0ng2Bj3zUR3p5QS9YK3Hn2QiAfavFmyF48zwThAjpFoiTKNIcOHLYS4zEk+gzyJ/9deQ2ZB8yQ==", "cpu": [ "x64" ], @@ -3112,9 +3272,9 @@ } }, "node_modules/@next/swc-win32-arm64-msvc": { - "version": "15.5.7", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.5.7.tgz", - "integrity": "sha512-CpJVTkYI3ZajQkC5vajM7/ApKJUOlm6uP4BknM3XKvJ7VXAvCqSjSLmM0LKdYzn6nBJVSjdclx8nYJSa3xlTgQ==", + "version": "16.3.6", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.3.6.tgz", + "integrity": "sha512-0jkJy0C2kbrJWTk4YLa3xk80pVBpx8FCHJym7CnUfDAXe/FWv5qT7SQJbR0KuemyxaEDlEx5WT4VQJoTW+/9Qw==", "cpu": [ "arm64" ], @@ -3128,9 +3288,9 @@ } }, "node_modules/@next/swc-win32-x64-msvc": { - "version": "15.5.7", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.5.7.tgz", - "integrity": "sha512-gMzgBX164I6DN+9/PGA+9dQiwmTkE4TloBNx8Kv9UiGARsr9Nba7IpcBRA1iTV9vwlYnrE3Uy6I7Aj6qLjQuqw==", + "version": "16.3.6", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.3.6.tgz", + "integrity": "sha512-/YXjI1e5OXcZ7YpxRwgP/1jAV/SBKTzeVKqN2mk7mLpcICsyn3Gl5+dIfDTJp70M0ccMhyMMRso4v6mPDCGepg==", "cpu": [ "x64" ], @@ -3175,6 +3335,292 @@ "node": ">= 8" } }, + "node_modules/@parcel/watcher": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.6.0.tgz", + "integrity": "sha512-7FNeNl8NCE7aINx7WXiKQrPYZWC/hvrTsmk6zmxbI7LTXE7hVek/n8AfVgpe2y82zl3w0HvCHN0bVKMBoJcC0w==", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "detect-libc": "^2.0.3", + "is-glob": "^4.0.3", + "node-addon-api": "^7.0.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "@parcel/watcher-android-arm64": "2.6.0", + "@parcel/watcher-darwin-arm64": "2.6.0", + "@parcel/watcher-darwin-x64": "2.6.0", + "@parcel/watcher-freebsd-x64": "2.6.0", + "@parcel/watcher-linux-arm-glibc": "2.6.0", + "@parcel/watcher-linux-arm-musl": "2.6.0", + "@parcel/watcher-linux-arm64-glibc": "2.6.0", + "@parcel/watcher-linux-arm64-musl": "2.6.0", + "@parcel/watcher-linux-x64-glibc": "2.6.0", + "@parcel/watcher-linux-x64-musl": "2.6.0", + "@parcel/watcher-win32-arm64": "2.6.0", + "@parcel/watcher-win32-x64": "2.6.0" + } + }, + "node_modules/@parcel/watcher-android-arm64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.6.0.tgz", + "integrity": "sha512-trgpLSCKRC/huFjXX/Smh+0sWe4+YtKfktIToiMl59ghz7z+qkH6kMvNnUbLyRs9N11t8l4svSCs1+5B3rOAhA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-arm64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.6.0.tgz", + "integrity": "sha512-Y3QV0gl7Q1zbfueunkWIERICbEojQFCgpyG7YqOGNFLsckXyI1xu9mAIUpKY9QBYzBtSkN8dBPwd3yiAO9ovMw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-x64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.6.0.tgz", + "integrity": "sha512-Ohv6OpzhUfKYD7Beb8kDvG0jbIxORCYY1JRdZnaBtnjjkJxgD7ZVL0nw2sCYd0yTMKTvz3nnTnOF3cDifK+kvw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-freebsd-x64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.6.0.tgz", + "integrity": "sha512-5HmXvDgs8VK+74jF9y9/2FE3/OnlcKmc56tjmSrEuZjpSZOGL+fvAu+HKJBdPs9uwoP2hE6TlSUpXZ/C5jUFmQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-glibc": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.6.0.tgz", + "integrity": "sha512-Ps/hui3A+vMbjdqlqAowK2ZL8+BO8dBjxeWXj6npTBs3jx4wWmbPpaLuqwrQrSqIVMCnpWo238bJ1U37GhQOYg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-musl": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.6.0.tgz", + "integrity": "sha512-9c6AUHgHoG+IY88MRIHupztQiQnrbqHYQjkM2btA+Bf/wQnQMuiD0Wfk1EVv3TlNT3x41uU71rn6E4xh/+zvkw==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-glibc": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.6.0.tgz", + "integrity": "sha512-yHRqS2owEXe6Hic9z6Mh1ECsCd+ODVOGvZDyciqRd21+v+o+DnXMOrw50DSpIG2sb8GPEaPPmfeCAWKPJdq46g==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-musl": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.6.0.tgz", + "integrity": "sha512-WhB2e/V7rqdHHWZusBSPuy5Ei8S6lSz6FE5TKKQz5h3a0O+C+mhY7vxU9b/stqvMb8beLnPY82ZrFTLKs+SrKA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-glibc": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.6.0.tgz", + "integrity": "sha512-ulGE6x6Oz6iAwg75T8YQSoguBWasniIbX+QWpaYPcCnDOpdWX3k+4xbEYPZVLxOuoJI+svJJPD3sEj8G7lrQ3A==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-musl": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.6.0.tgz", + "integrity": "sha512-tkBYKt7YQrjIJWYDnto2YgO8MRkjlMTSNoRHzsXinBqbLdeOM3L32wPZJvIZxqaLMfSlS/4sUjH/6STVP/XDLw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-arm64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.6.0.tgz", + "integrity": "sha512-gIZAP23jaHjGWasY/TY6yL7NHFClf0Ga7FN+iINvk+KN94rhm94lYZhFsbYFNcA04/onvGD9kKmiJLJB2HbNwQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-x64": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.6.0.tgz", + "integrity": "sha512-cA+/pXV2YkfxlIcXOQ5fSWqAzzPyD78/x5qbK/I0vUkrlYHA8TIz+MXjAbGouguKVSI4bOmkTSJ1/poVSsgt+A==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher/node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", @@ -5618,30 +6064,10 @@ } } }, - "node_modules/@richardscull/eslint-config/node_modules/eslint-plugin-react-hooks": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.0.1.tgz", - "integrity": "sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.24.4", - "@babel/parser": "^7.24.4", - "hermes-parser": "^0.25.1", - "zod": "^3.25.0 || ^4.0.0", - "zod-validation-error": "^3.5.0 || ^4.0.0" - }, - "engines": { - "node": ">=18" - }, - "peerDependencies": { - "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0" - } - }, - "node_modules/@richardscull/eslint-config/node_modules/globals": { - "version": "16.5.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz", - "integrity": "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==", + "node_modules/@richardscull/eslint-config/node_modules/globals": { + "version": "16.5.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz", + "integrity": "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==", "dev": true, "license": "MIT", "engines": { @@ -5651,41 +6077,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@richardscull/eslint-config/node_modules/zod": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/zod/-/zod-4.2.1.tgz", - "integrity": "sha512-0wZ1IRqGGhMP76gLqz8EyfBXKk0J2qo2+H3fi4mcUP/KtTocoX08nmIAHl1Z2kJIZbZee8KOpBCSNPRgauucjw==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } - }, - "node_modules/@richardscull/eslint-config/node_modules/zod-validation-error": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz", - "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "zod": "^3.25.0 || ^4.0.0" - } - }, "node_modules/@rtsao/scc": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==", "dev": true }, - "node_modules/@rushstack/eslint-patch": { - "version": "1.10.4", - "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.10.4.tgz", - "integrity": "sha512-WJgX9nzTqknM393q1QJDJmoW28kUfEnybeTfVNcNAPnIx210RXm2DiXiHzfNPJNIUUb1tJnz/l4QGtJ30PgWmA==", - "dev": true - }, "node_modules/@schummar/icu-type-parser": { "version": "1.21.5", "resolved": "https://registry.npmjs.org/@schummar/icu-type-parser/-/icu-type-parser-1.21.5.tgz", @@ -5732,9 +6129,9 @@ } }, "node_modules/@stylistic/eslint-plugin/node_modules/picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "dev": true, "license": "MIT", "engines": { @@ -6001,14 +6398,222 @@ "url": "https://github.com/sponsors/gregberge" } }, + "node_modules/@swc/core-darwin-arm64": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.16.2.tgz", + "integrity": "sha512-i/j0HNbnn79qnTVPicvay92Nark8fW8NQqn1e2mGERjUXNpBV0+SwQxlRpk2zBhn6laJ8PDI6Kn1nHZhnz3LCA==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-darwin-x64": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.16.2.tgz", + "integrity": "sha512-HrwqHyEyHVXO3qTk8EkNK7/b6sOZSEoNh+pot6RdE5x0LbNqfo8LtJUvi3UTXr+5ja/o5HbJdW80eCXo+NjbiA==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm-gnueabihf": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.16.2.tgz", + "integrity": "sha512-MdXi83Z/gGp1LIrg+h7HKxiul/z/Bty/ZJSvYAFqDl9zteC1XLSAZdScquKtXPp50rdyXqritTDCqQBhwVfZKA==", + "cpu": [ + "arm" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm64-gnu": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.16.2.tgz", + "integrity": "sha512-/jcTmK6Ktz3owM3YtiKvjofV6p3VpHnYzTIrOGwDIOsDigRAAVuZ8east33wYO/7UTdKYFlyHNnJNT0WJqOA3Q==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-arm64-musl": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.16.2.tgz", + "integrity": "sha512-4gFarKaFnlJTSlJYKmMhV4u+3YE4uYfiydpBoYjmgQhCf9lAieOq+WilZaK9vVSHeqLuQpTEiGULZqAdsRX5Dw==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-ppc64-gnu": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/@swc/core-linux-ppc64-gnu/-/core-linux-ppc64-gnu-1.16.2.tgz", + "integrity": "sha512-syqSLGd6KlZ1PciNzs6bIUlhOuFztZufebOHaERjc4N4SqNZxyqYd4I+jj/EfOYnpe0kNjccn9HJLN1p5dz3+w==", + "cpu": [ + "ppc64" + ], + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-s390x-gnu": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/@swc/core-linux-s390x-gnu/-/core-linux-s390x-gnu-1.16.2.tgz", + "integrity": "sha512-ZBBLK+ewGyXLzWeMS7wbKtWBdnif6etn7xvPY/iOfbdsjX/+bgkp1pQt2lWF2wlu2hXYZuhJ/tHZE/QR8/apzg==", + "cpu": [ + "s390x" + ], + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-gnu": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.16.2.tgz", + "integrity": "sha512-LyHJgxCA4Tje0ysBMbEb0tt/ie8kgUKoFE3JAKFhpevmTmhYEoC0H9s47WuDsqiFckF1ITUguZIXJG6K5e0dvg==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-linux-x64-musl": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.16.2.tgz", + "integrity": "sha512-PghXJlVM1cgtLfNUR1vxFo1z+PDRAe8cWAJlZZ7spmeiN7BospGXg/MHUg7oNSgwSX7Zo//YKv9P5yD9apsFJQ==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-arm64-msvc": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.16.2.tgz", + "integrity": "sha512-StTOSefYBxemvNYYUI3UmO1a8y+hSPjjfHogC2TEHL+Z1PlEBim/XtLas5rS04jAzT9RrNmbtX911SZ42H9jSQ==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-ia32-msvc": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.16.2.tgz", + "integrity": "sha512-fycER209DYIzsibpTMC+chND05OfOjgztWL9U8OE6/uUlsOUZH3eh98isBLEnOymYUhlJLEt5++W1+KL/FOh5Q==", + "cpu": [ + "ia32" + ], + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/core-win32-x64-msvc": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.16.2.tgz", + "integrity": "sha512-cSd1z6ivSrJPVr+moVwOHWjeKy6TpO4/Shwcv5KCrKYXCccxwh4pRy1C3fDioNx2PF1jPZWHKZjtXt+Be9VbaQ==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0 AND MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=10" + } + }, + "node_modules/@swc/counter": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz", + "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==", + "license": "Apache-2.0" + }, "node_modules/@swc/helpers": { - "version": "0.5.15", - "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz", - "integrity": "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==", + "version": "0.5.23", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.23.tgz", + "integrity": "sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==", + "license": "Apache-2.0", "dependencies": { "tslib": "^2.8.0" } }, + "node_modules/@swc/types": { + "version": "0.1.28", + "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.28.tgz", + "integrity": "sha512-V6Mnml8v09QALx6K0elJ7o9K/MkVDtW3t6L+7Ou/JcWtb3xwId2AH4FeOceySd2JaO87IMw4+6vSZxLm34LPbw==", + "license": "Apache-2.0", + "dependencies": { + "@swc/counter": "^0.1.3" + } + }, "node_modules/@tanstack/react-table": { "version": "8.21.2", "resolved": "https://registry.npmjs.org/@tanstack/react-table/-/react-table-8.21.2.tgz", @@ -6040,15 +6645,6 @@ "url": "https://github.com/sponsors/tannerlinsley" } }, - "node_modules/@trysound/sax": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz", - "integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==", - "dev": true, - "engines": { - "node": ">=10.13.0" - } - }, "node_modules/@tybys/wasm-util": { "version": "0.10.1", "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz", @@ -6129,7 +6725,8 @@ "node_modules/@types/json-schema": { "version": "7.0.15", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==" + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true }, "node_modules/@types/json5": { "version": "0.0.29", @@ -6358,21 +6955,23 @@ } }, "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", - "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz", + "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==", "dev": true, + "license": "MIT", "dependencies": { "balanced-match": "^1.0.0" } }, "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "version": "9.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", + "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", "dev": true, + "license": "ISC", "dependencies": { - "brace-expansion": "^2.0.1" + "brace-expansion": "^2.0.2" }, "engines": { "node": ">=16 || 14 >=14.17" @@ -6787,6 +7386,7 @@ "version": "8.15.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "dev": true, "bin": { "acorn": "bin/acorn" }, @@ -6804,10 +7404,11 @@ } }, "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", + "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", "dev": true, + "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", @@ -6819,6 +7420,16 @@ "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/ansi-colors": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", + "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/ansi-escapes": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.2.0.tgz", @@ -6881,7 +7492,8 @@ "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true }, "node_modules/aria-hidden": { "version": "1.2.4", @@ -6920,17 +7532,20 @@ } }, "node_modules/array-includes": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.8.tgz", - "integrity": "sha512-itaWrbYbqpGXkGhZPGUulwnhVf5Hpy1xiCFsGqyIGglbBxmG5vSjxQen3/WGOjPpNEv1RtBLKxbmVXm8HpJStQ==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.2.0.tgz", + "integrity": "sha512-VXY5eFRarnXcYxwBjJzPmEhH55+rmP79/+ueDhi0F+TuqfHCItagIHqxeUZrmgrOPa31QTh9H85DjX3FfJ0FTg==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.9", + "call-bound": "^1.0.4", "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", - "es-object-atoms": "^1.0.0", - "get-intrinsic": "^1.2.4", - "is-string": "^1.0.7" + "es-abstract": "^1.24.2", + "es-object-atoms": "^1.1.2", + "es-shim-unscopables": "^1.1.0", + "is-string": "^1.1.1", + "math-intrinsics": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -6960,17 +7575,19 @@ } }, "node_modules/array.prototype.findlastindex": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.5.tgz", - "integrity": "sha512-zfETvRFA8o7EiNn++N5f/kaCw221hrpGsDmcpndVupkPzEc1Wuf3VgC0qby1BbHs7f5DVYjgtEU2LLh5bqeGfQ==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.6.tgz", + "integrity": "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", + "es-abstract": "^1.23.9", "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "es-shim-unscopables": "^1.0.2" + "es-object-atoms": "^1.1.1", + "es-shim-unscopables": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -6980,15 +7597,16 @@ } }, "node_modules/array.prototype.flat": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", - "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz", + "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "es-shim-unscopables": "^1.0.0" + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" }, "engines": { "node": ">= 0.4" @@ -7154,12 +7772,15 @@ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, "node_modules/baseline-browser-mapping": { - "version": "2.9.11", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.11.tgz", - "integrity": "sha512-Sg0xJUNDU1sJNGdfGWhVHX0kkZ+HWcvmVymJbj6NSgZZmW/8S9Y2HQ5euytnIgakgxN6papOAWiwDo1ctFDcoQ==", - "dev": true, + "version": "2.11.26", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.26.tgz", + "integrity": "sha512-GLQdD3y6UF8iVuMJl5fHgE4jdn/ua7n+toKfLgNlg3BqQtOZjpy68T8Tup8/wGWZCDlm7KMg7tPb4MPn7oN0TQ==", + "license": "Apache-2.0", "bin": { - "baseline-browser-mapping": "dist/cli.js" + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" } }, "node_modules/binary-extensions": { @@ -7187,9 +7808,9 @@ "dev": true }, "node_modules/brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", + "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", "dev": true, "license": "MIT", "dependencies": { @@ -7209,9 +7830,9 @@ } }, "node_modules/browserslist": { - "version": "4.28.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", - "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", + "version": "4.29.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.1.tgz", + "integrity": "sha512-AUdjuRyCNGUYtqpqfTmWyM4fXay8yIQhmLnvYe/THMGfT9B/34X7xQd3ifKxwyNPPpowVBjLb+64BN9Rn1mizw==", "dev": true, "funding": [ { @@ -7227,12 +7848,13 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { - "baseline-browser-mapping": "^2.9.0", - "caniuse-lite": "^1.0.30001759", - "electron-to-chromium": "^1.5.263", - "node-releases": "^2.0.27", - "update-browserslist-db": "^1.2.0" + "baseline-browser-mapping": "^2.11.25", + "caniuse-lite": "^1.0.30001810", + "electron-to-chromium": "^1.5.438", + "node-releases": "^2.0.57", + "update-browserslist-db": "^1.3.3" }, "bin": { "browserslist": "cli.js" @@ -7254,26 +7876,44 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/bundle-name": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.1.tgz", + "integrity": "sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==", + "dev": true, + "license": "MIT", + "dependencies": { + "run-applescript": "^7.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/c12": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/c12/-/c12-2.0.1.tgz", - "integrity": "sha512-Z4JgsKXHG37C6PYUtIxCfLJZvo6FyhHJoClwwb9ftUkLpPSkuYqn6Tr+vnaN8hymm0kIbcg6Ey3kv/Q71k5w/A==", + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/c12/-/c12-3.3.4.tgz", + "integrity": "sha512-cM0ApFQSBXuourJejzwv/AuPRvAxordTyParRVcHjjtXirtkzM0uK2L9TTn9s0cXZbG7E55jCivRQzoxYmRAlA==", + "dev": true, + "license": "MIT", "dependencies": { - "chokidar": "^4.0.1", - "confbox": "^0.1.7", - "defu": "^6.1.4", - "dotenv": "^16.4.5", - "giget": "^1.2.3", - "jiti": "^2.3.0", - "mlly": "^1.7.1", - "ohash": "^1.1.4", - "pathe": "^1.1.2", - "perfect-debounce": "^1.0.0", - "pkg-types": "^1.2.0", - "rc9": "^2.1.2" + "chokidar": "^5.0.0", + "confbox": "^0.2.4", + "defu": "^6.1.6", + "dotenv": "^17.3.1", + "exsolve": "^1.0.8", + "giget": "^3.2.0", + "jiti": "^2.6.1", + "ohash": "^2.0.11", + "pathe": "^2.0.3", + "perfect-debounce": "^2.1.0", + "pkg-types": "^2.3.0", + "rc9": "^3.0.1" }, "peerDependencies": { - "magicast": "^0.3.5" + "magicast": "*" }, "peerDependenciesMeta": { "magicast": { @@ -7282,25 +7922,68 @@ } }, "node_modules/c12/node_modules/chokidar": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", - "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz", + "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==", + "dev": true, + "license": "MIT", "dependencies": { - "readdirp": "^4.0.1" + "readdirp": "^5.0.0" }, "engines": { - "node": ">= 14.16.0" + "node": ">= 20.19.0" }, "funding": { "url": "https://paulmillr.com/funding/" } }, - "node_modules/c12/node_modules/readdirp": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", - "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "node_modules/c12/node_modules/confbox": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.2.4.tgz", + "integrity": "sha512-ysOGlgTFbN2/Y6Cg3Iye8YKulHw+R2fNXHrgSmXISQdMnomY6eNDprVdW9R5xBguEqI954+S6709UyiO7B+6OQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/c12/node_modules/dotenv": { + "version": "17.4.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz", + "integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/c12/node_modules/pkg-types": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.3.3.tgz", + "integrity": "sha512-j/lCFdcppV0JxWpCEITdbDltBxPP6cHT+yNJ6Go2OgoSA9518X847X9z0p6LtA4Nc16+eQzCZjRrWanTGvHJ5w==", + "dev": true, + "license": "MIT", + "dependencies": { + "confbox": "^0.3.1", + "exsolve": "^1.1.1", + "pathe": "^2.0.3" + } + }, + "node_modules/c12/node_modules/pkg-types/node_modules/confbox": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.3.1.tgz", + "integrity": "sha512-cKUSoKa8YxFZZSmraVi7onONx3amu77ngK3kGpsYHDH7drPwCRkQE1RYMPlLRrMtnciRj274XNRxcHxnKmDSnA==", + "dev": true, + "license": "MIT" + }, + "node_modules/c12/node_modules/readdirp": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.1.1.tgz", + "integrity": "sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==", + "dev": true, + "license": "MIT", "engines": { - "node": ">= 14.18.0" + "node": ">= 20.19.0" }, "funding": { "type": "individual", @@ -7308,14 +7991,15 @@ } }, "node_modules/call-bind": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", - "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz", + "integrity": "sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind-apply-helpers": "^1.0.0", - "es-define-property": "^1.0.0", - "get-intrinsic": "^1.2.4", + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "get-intrinsic": "^1.3.0", "set-function-length": "^1.2.2" }, "engines": { @@ -7384,9 +8068,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001761", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001761.tgz", - "integrity": "sha512-JF9ptu1vP2coz98+5051jZ4PwQgd2ni8A+gYSN7EA7dPKIMf0pDlSUxhdmVOaV3/fYK5uWBkgSXJaRLr4+3A6g==", + "version": "1.0.30001812", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001812.tgz", + "integrity": "sha512-qN+QNNBr93TCmFrmte0bBCjSDMuRvt78VlHT99qIGPszm4QsqCX8lnyWUFkHi8B7ZBAPq8SH+UqyXNy/odMdng==", "funding": [ { "type": "opencollective", @@ -7400,7 +8084,8 @@ "type": "github", "url": "https://github.com/sponsors/ai" } - ] + ], + "license": "CC-BY-4.0" }, "node_modules/chalk": { "version": "4.1.2", @@ -7459,14 +8144,6 @@ "node": ">= 6" } }, - "node_modules/chownr": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", - "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", - "engines": { - "node": ">=10" - } - }, "node_modules/ci-info": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.1.tgz", @@ -7483,14 +8160,6 @@ "node": ">=8" } }, - "node_modules/citty": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/citty/-/citty-0.1.6.tgz", - "integrity": "sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ==", - "dependencies": { - "consola": "^3.2.3" - } - }, "node_modules/class-variance-authority": { "version": "0.7.1", "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz", @@ -7727,18 +8396,6 @@ "react-dom": "^18 || ^19 || ^19.0.0-rc" } }, - "node_modules/color": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz", - "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==", - "dependencies": { - "color-convert": "^2.0.1", - "color-string": "^1.9.0" - }, - "engines": { - "node": ">=12.5.0" - } - }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -7755,13 +8412,14 @@ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, - "node_modules/color-string": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", - "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", - "dependencies": { - "color-name": "^1.0.0", - "simple-swizzle": "^0.2.2" + "node_modules/color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "dev": true, + "license": "ISC", + "bin": { + "color-support": "bin.js" } }, "node_modules/colorette": { @@ -7804,15 +8462,8 @@ "node_modules/confbox": { "version": "0.1.8", "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz", - "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==" - }, - "node_modules/consola": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/consola/-/consola-3.4.2.tgz", - "integrity": "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==", - "engines": { - "node": "^14.18.0 || >=16.10.0" - } + "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", + "dev": true }, "node_modules/convert-source-map": { "version": "2.0.0", @@ -8146,12 +8797,6 @@ } } }, - "node_modules/decimal.js": { - "version": "10.6.0", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz", - "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==", - "license": "MIT" - }, "node_modules/decimal.js-light": { "version": "2.5.1", "resolved": "https://registry.npmjs.org/decimal.js-light/-/decimal.js-light-2.5.1.tgz", @@ -8172,6 +8817,36 @@ "node": ">=0.10.0" } }, + "node_modules/default-browser": { + "version": "5.5.1", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.5.1.tgz", + "integrity": "sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "bundle-name": "^4.1.0", + "default-browser-id": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser-id": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.1.tgz", + "integrity": "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/define-data-property": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", @@ -8189,6 +8864,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/define-lazy-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", + "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/define-properties": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", @@ -8207,9 +8895,11 @@ } }, "node_modules/defu": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.4.tgz", - "integrity": "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==" + "version": "6.1.7", + "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.7.tgz", + "integrity": "sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==", + "dev": true, + "license": "MIT" }, "node_modules/dequal": { "version": "2.0.3", @@ -8223,7 +8913,9 @@ "node_modules/destr": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/destr/-/destr-2.0.5.tgz", - "integrity": "sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==" + "integrity": "sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==", + "dev": true, + "license": "MIT" }, "node_modules/detect-indent": { "version": "7.0.2", @@ -8362,6 +9054,7 @@ "version": "16.5.0", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.5.0.tgz", "integrity": "sha512-m/C+AwOAr9/W1UOIZUo232ejMNnJAJtYQjUbHoNTBNTJSvqzzDh7vnrei3o3r3m9blf6ZoDkvcw0VmozNRFJxg==", + "dev": true, "engines": { "node": ">=12" }, @@ -8414,10 +9107,11 @@ "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.5.267", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz", - "integrity": "sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==", - "dev": true + "version": "1.5.439", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.439.tgz", + "integrity": "sha512-qu6QIPXhsb+CRcAiTMNjR4A1y/7tCYKkKjr5CZXRVih6qkDf79peZ2BpEU3qoDBNCRrcy3Mra3X9nG5oruuA7Q==", + "dev": true, + "license": "ISC" }, "node_modules/embla-carousel": { "version": "8.6.0", @@ -8502,27 +9196,28 @@ "dev": true }, "node_modules/es-abstract": { - "version": "1.23.9", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.9.tgz", - "integrity": "sha512-py07lI0wjxAC/DcfK1S6G7iANonniZwTISvdPzk9hzeH0IZIshbuuFxLIU96OyF89Yb9hiqWn8M/bY83KY5vzA==", + "version": "1.24.2", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.2.tgz", + "integrity": "sha512-2FpH9Q5i2RRwyEP1AylXe6nYLR5OhaJTZwmlcP0dL/+JCbgg7yyEo/sEK6HeGZRf3dFpWwThaRHVApXSkW3xeg==", "dev": true, + "license": "MIT", "dependencies": { "array-buffer-byte-length": "^1.0.2", "arraybuffer.prototype.slice": "^1.0.4", "available-typed-arrays": "^1.0.7", "call-bind": "^1.0.8", - "call-bound": "^1.0.3", + "call-bound": "^1.0.4", "data-view-buffer": "^1.0.2", "data-view-byte-length": "^1.0.2", "data-view-byte-offset": "^1.0.1", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", + "es-object-atoms": "^1.1.1", "es-set-tostringtag": "^2.1.0", "es-to-primitive": "^1.3.0", "function.prototype.name": "^1.1.8", - "get-intrinsic": "^1.2.7", - "get-proto": "^1.0.0", + "get-intrinsic": "^1.3.0", + "get-proto": "^1.0.1", "get-symbol-description": "^1.1.0", "globalthis": "^1.0.4", "gopd": "^1.2.0", @@ -8534,21 +9229,24 @@ "is-array-buffer": "^3.0.5", "is-callable": "^1.2.7", "is-data-view": "^1.0.2", + "is-negative-zero": "^2.0.3", "is-regex": "^1.2.1", + "is-set": "^2.0.3", "is-shared-array-buffer": "^1.0.4", "is-string": "^1.1.1", "is-typed-array": "^1.1.15", - "is-weakref": "^1.1.0", + "is-weakref": "^1.1.1", "math-intrinsics": "^1.1.0", - "object-inspect": "^1.13.3", + "object-inspect": "^1.13.4", "object-keys": "^1.1.1", "object.assign": "^4.1.7", "own-keys": "^1.0.1", - "regexp.prototype.flags": "^1.5.3", + "regexp.prototype.flags": "^1.5.4", "safe-array-concat": "^1.1.3", "safe-push-apply": "^1.0.0", "safe-regex-test": "^1.1.0", "set-proto": "^1.0.0", + "stop-iteration-iterator": "^1.1.0", "string.prototype.trim": "^1.2.10", "string.prototype.trimend": "^1.0.9", "string.prototype.trimstart": "^1.0.8", @@ -8557,7 +9255,7 @@ "typed-array-byte-offset": "^1.0.4", "typed-array-length": "^1.0.7", "unbox-primitive": "^1.1.0", - "which-typed-array": "^1.1.18" + "which-typed-array": "^1.1.19" }, "engines": { "node": ">= 0.4" @@ -8612,10 +9310,11 @@ } }, "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", + "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", "dev": true, + "license": "MIT", "dependencies": { "es-errors": "^1.3.0" }, @@ -8639,12 +9338,16 @@ } }, "node_modules/es-shim-unscopables": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", - "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz", + "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==", "dev": true, + "license": "MIT", "dependencies": { - "hasown": "^2.0.0" + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" } }, "node_modules/es-to-primitive": { @@ -8777,24 +9480,24 @@ } }, "node_modules/eslint-config-next": { - "version": "15.5.9", - "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-15.5.9.tgz", - "integrity": "sha512-852JYI3NkFNzW8CqsMhI0K2CDRxTObdZ2jQJj5CtpEaOkYHn13107tHpNuD/h0WRpU4FAbCdUaxQsrfBtNK9Kw==", + "version": "16.3.6", + "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-16.3.6.tgz", + "integrity": "sha512-1Upt3U7BDwU+ilpe2byZjAfts9oNq4d4fv/zXEvs8/4yS+cwOQW/WCxUNy8gCDquX67SzeehDvKblVC6ZBMocQ==", "dev": true, + "license": "MIT", "dependencies": { - "@next/eslint-plugin-next": "15.5.9", - "@rushstack/eslint-patch": "^1.10.3", - "@typescript-eslint/eslint-plugin": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0", - "@typescript-eslint/parser": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0", + "@next/eslint-plugin-next": "16.3.6", "eslint-import-resolver-node": "^0.3.6", "eslint-import-resolver-typescript": "^3.5.2", - "eslint-plugin-import": "^2.31.0", + "eslint-plugin-import": "^2.32.0", "eslint-plugin-jsx-a11y": "^6.10.0", "eslint-plugin-react": "^7.37.0", - "eslint-plugin-react-hooks": "^5.0.0" + "eslint-plugin-react-hooks": "^7.0.0", + "globals": "16.4.0", + "typescript-eslint": "^8.46.0" }, "peerDependencies": { - "eslint": "^7.23.0 || ^8.0.0 || ^9.0.0", + "eslint": ">=9.0.0", "typescript": ">=3.3.1" }, "peerDependenciesMeta": { @@ -8803,6 +9506,19 @@ } } }, + "node_modules/eslint-config-next/node_modules/globals": { + "version": "16.4.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.4.0.tgz", + "integrity": "sha512-ob/2LcVVaVGCYN+r14cnwnoDPUufjiYgSqRhiFD0Q1iI4Odora5RE8Iv1D24hAz5oMophRGkGz+yuvQmmUMnMw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/eslint-fix-utils": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/eslint-fix-utils/-/eslint-fix-utils-0.4.0.tgz", @@ -8915,10 +9631,11 @@ } }, "node_modules/eslint-module-utils": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.0.tgz", - "integrity": "sha512-wALZ0HFoytlyh/1+4wuZ9FJCD/leWHQzzrxJ8+rebyReSLk7LApMyd3WJaLVoN+D5+WIdJyDK1c6JnE65V4Zyg==", + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.14.0.tgz", + "integrity": "sha512-W2WCRZ9Dqntd+2u8jJcVMV2PKulc6RdLgUUoh/yQr3uB6lo/ZOeGx11sv60/8S4QFFKNslAlWhr9u0Ef7ZW6Ig==", "dev": true, + "license": "MIT", "dependencies": { "debug": "^3.2.7" }, @@ -8980,29 +9697,30 @@ } }, "node_modules/eslint-plugin-import": { - "version": "2.31.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.31.0.tgz", - "integrity": "sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A==", + "version": "2.32.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz", + "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==", "dev": true, + "license": "MIT", "dependencies": { "@rtsao/scc": "^1.1.0", - "array-includes": "^3.1.8", - "array.prototype.findlastindex": "^1.2.5", - "array.prototype.flat": "^1.3.2", - "array.prototype.flatmap": "^1.3.2", + "array-includes": "^3.1.9", + "array.prototype.findlastindex": "^1.2.6", + "array.prototype.flat": "^1.3.3", + "array.prototype.flatmap": "^1.3.3", "debug": "^3.2.7", "doctrine": "^2.1.0", "eslint-import-resolver-node": "^0.3.9", - "eslint-module-utils": "^2.12.0", + "eslint-module-utils": "^2.12.1", "hasown": "^2.0.2", - "is-core-module": "^2.15.1", + "is-core-module": "^2.16.1", "is-glob": "^4.0.3", "minimatch": "^3.1.2", "object.fromentries": "^2.0.8", "object.groupby": "^1.0.3", - "object.values": "^1.2.0", + "object.values": "^1.2.1", "semver": "^6.3.1", - "string.prototype.trimend": "^1.0.8", + "string.prototype.trimend": "^1.0.9", "tsconfig-paths": "^3.15.0" }, "engines": { @@ -9049,17 +9767,40 @@ } } }, + "node_modules/eslint-plugin-import-x/node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/eslint-plugin-import-x/node_modules/brace-expansion": { + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", + "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "20 || >=22" + } + }, "node_modules/eslint-plugin-import-x/node_modules/minimatch": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.1.tgz", - "integrity": "sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==", + "version": "10.2.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", + "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", "dev": true, "license": "BlueOak-1.0.0", "dependencies": { - "@isaacs/brace-expansion": "^5.0.0" + "brace-expansion": "^5.0.8" }, "engines": { - "node": "20 || >=22" + "node": "18 || 20 || >=22" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -9253,15 +9994,23 @@ } }, "node_modules/eslint-plugin-react-hooks": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.2.0.tgz", - "integrity": "sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.1.1.tgz", + "integrity": "sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==", "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.24.4", + "@babel/parser": "^7.24.4", + "hermes-parser": "^0.25.1", + "zod": "^3.25.0 || ^4.0.0", + "zod-validation-error": "^3.5.0 || ^4.0.0" + }, "engines": { - "node": ">=10" + "node": ">=18" }, "peerDependencies": { - "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0" + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0" } }, "node_modules/eslint-plugin-react-hooks-extra": { @@ -9291,6 +10040,29 @@ "typescript": ">=4.8.4 <6.0.0" } }, + "node_modules/eslint-plugin-react-hooks/node_modules/zod": { + "version": "4.6.5", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.5.tgz", + "integrity": "sha512-v5l/aFXZQeai4awLbOpSoHecE9UiMrnfx75tEXLjNonXVARxQ5mOeipTjROUchszUNCqnE+hqAMujRsRHsut2Q==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/eslint-plugin-react-hooks/node_modules/zod-validation-error": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz", + "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + } + }, "node_modules/eslint-plugin-react-naming-convention": { "version": "2.3.13", "resolved": "https://registry.npmjs.org/eslint-plugin-react-naming-convention/-/eslint-plugin-react-naming-convention-2.3.13.tgz", @@ -9691,9 +10463,9 @@ "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" }, "node_modules/exsolve": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.8.tgz", - "integrity": "sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.1.1.tgz", + "integrity": "sha512-9U/jZUgjnSGyntRr6y5Muu1MJcwFl6kPu7k8qLF0IMNfLqvw0NZ4nnVDq0RVoZ0RvCyumib4Ez3KYrVfilrw+g==", "dev": true, "license": "MIT" }, @@ -9823,10 +10595,11 @@ } }, "node_modules/flatted": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", - "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", - "dev": true + "version": "3.4.4", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz", + "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==", + "dev": true, + "license": "ISC" }, "node_modules/for-each": { "version": "0.3.5", @@ -9858,33 +10631,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/fs-minipass": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/fs-minipass/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/fs-minipass/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", @@ -10029,10 +10775,11 @@ } }, "node_modules/get-tsconfig": { - "version": "4.13.0", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.13.0.tgz", - "integrity": "sha512-1VKTZJCwBrvbd+Wn3AOgQP/2Av+TfTCOlE4AcRJE72W1ksZXbAx8PPBR9RzgTeSPzlPMHrbANMH3LbltH73wxQ==", + "version": "4.14.0", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.14.0.tgz", + "integrity": "sha512-yTb+8DXzDREzgvYmh6s9vHsSVCHeC0G3PI5bEXNBHtmshPnO+S5O7qgLEOn0I5QvMy6kpZN8K1NKGyilLb93wA==", "dev": true, + "license": "MIT", "dependencies": { "resolve-pkg-maps": "^1.0.0" }, @@ -10041,27 +10788,15 @@ } }, "node_modules/giget": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/giget/-/giget-1.2.5.tgz", - "integrity": "sha512-r1ekGw/Bgpi3HLV3h1MRBIlSAdHoIMklpaQ3OQLFcRw9PwAj2rqigvIbg+dBUI51OxVI2jsEtDywDBjSiuf7Ug==", - "dependencies": { - "citty": "^0.1.6", - "consola": "^3.4.0", - "defu": "^6.1.4", - "node-fetch-native": "^1.6.6", - "nypm": "^0.5.4", - "pathe": "^2.0.3", - "tar": "^6.2.1" - }, + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/giget/-/giget-3.3.1.tgz", + "integrity": "sha512-r+mvuDjrjMpsdw46Kmeydb8bdHm7wOKw8wNBtTndkjbPjgAp5oUJUxRE76wZFknxIPokfWvep2qSXK37aXE6zg==", + "dev": true, + "license": "MIT", "bin": { "giget": "dist/cli.mjs" } }, - "node_modules/giget/node_modules/pathe": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", - "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==" - }, "node_modules/git-hooks-list": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/git-hooks-list/-/git-hooks-list-4.1.1.tgz", @@ -10104,20 +10839,21 @@ } }, "node_modules/glob/node_modules/brace-expansion": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", - "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz", + "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==", "license": "MIT", "dependencies": { "balanced-match": "^1.0.0" } }, "node_modules/glob/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "version": "9.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", + "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", + "license": "ISC", "dependencies": { - "brace-expansion": "^2.0.1" + "brace-expansion": "^2.0.2" }, "engines": { "node": ">=16 || 14 >=14.17" @@ -10179,26 +10915,6 @@ "dev": true, "license": "MIT" }, - "node_modules/handlebars": { - "version": "4.7.8", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", - "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", - "dependencies": { - "minimist": "^1.2.5", - "neo-async": "^2.6.2", - "source-map": "^0.6.1", - "wordwrap": "^1.0.0" - }, - "bin": { - "handlebars": "bin/handlebars" - }, - "engines": { - "node": ">=0.4.7" - }, - "optionalDependencies": { - "uglify-js": "^3.1.4" - } - }, "node_modules/has-bigints": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", @@ -10325,6 +11041,21 @@ "node": "20 || >=22" } }, + "node_modules/icu-minify": { + "version": "4.14.7", + "resolved": "https://registry.npmjs.org/icu-minify/-/icu-minify-4.14.7.tgz", + "integrity": "sha512-cbBAiLGee7kzysqaoQLLaIXAYaKEhNRYo05ye9rLj8+MLq/VurqLBHv6vqhTVeyQ7jcvuTujkxmiR1Au4ku8nw==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/amannn" + } + ], + "license": "MIT", + "dependencies": { + "@formatjs/icu-messageformat-parser": "^3.4.0" + } + }, "node_modules/ignore": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", @@ -10408,17 +11139,30 @@ } }, "node_modules/intl-messageformat": { - "version": "10.7.18", - "resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-10.7.18.tgz", - "integrity": "sha512-m3Ofv/X/tV8Y3tHXLohcuVuhWKo7BBq62cqY15etqmLxg2DZ34AGGgQDeR+SCta2+zICb1NX83af0GJmbQ1++g==", + "version": "11.2.15", + "resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-11.2.15.tgz", + "integrity": "sha512-W4VNytsXyWgW5lvVchmsb9xgA5rSKqoflu3/IQ9UCtB0z4R+Bx9MoEkwFT/+30RCl/KzUoH0QGGe9lppF5SuvQ==", "license": "BSD-3-Clause", "dependencies": { - "@formatjs/ecma402-abstract": "2.3.6", - "@formatjs/fast-memoize": "2.2.7", - "@formatjs/icu-messageformat-parser": "2.11.4", - "tslib": "^2.8.0" + "@formatjs/fast-memoize": "3.1.7", + "@formatjs/icu-messageformat-parser": "3.5.18" + } + }, + "node_modules/intl-messageformat/node_modules/@formatjs/icu-messageformat-parser": { + "version": "3.5.18", + "resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-3.5.18.tgz", + "integrity": "sha512-wX1efcL8d7K5QapOTRsP/OLTA/kpwe4LwqWyNxDNg5iRs8i9jJbCyxB5P8jc4KOW5oiLzz2DJr+BRY5xMV9+bA==", + "license": "MIT", + "dependencies": { + "@formatjs/icu-skeleton-parser": "2.1.11" } }, + "node_modules/intl-messageformat/node_modules/@formatjs/icu-skeleton-parser": { + "version": "2.1.11", + "resolved": "https://registry.npmjs.org/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-2.1.11.tgz", + "integrity": "sha512-j8cUmOJzVgkHuS0QiQ6ga76UIoLOFSAMWhs7aZJztH3aAdCOAE6vpC8KVvFB4cU10ON0y2/5oOVmPJ43s2lTwA==", + "license": "MIT" + }, "node_modules/is-array-buffer": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", @@ -10436,11 +11180,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-arrayish": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", - "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" - }, "node_modules/is-async-function": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", @@ -10577,12 +11316,28 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "engines": { - "node": ">=0.10.0" + "node_modules/is-docker": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", + "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "dev": true, + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "engines": { + "node": ">=0.10.0" } }, "node_modules/is-finalizationregistry": { @@ -10654,6 +11409,38 @@ "typescript": ">=4.7.4" } }, + "node_modules/is-in-ssh": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-in-ssh/-/is-in-ssh-1.0.0.tgz", + "integrity": "sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-inside-container": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", + "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-docker": "^3.0.0" + }, + "bin": { + "is-inside-container": "cli.js" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-map": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", @@ -10666,6 +11453,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-negative-zero": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", + "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", @@ -10839,6 +11639,22 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-wsl": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.1.tgz", + "integrity": "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-inside-container": "^1.0.0" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/isarray": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", @@ -10886,17 +11702,16 @@ "version": "2.6.1", "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz", "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==", + "dev": true, "bin": { "jiti": "lib/jiti-cli.mjs" } }, "node_modules/js-cookie": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.5.tgz", - "integrity": "sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==", - "engines": { - "node": ">=14" - } + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.8.tgz", + "integrity": "sha512-yeJd4aNAdYZQjaon2bpD/Gb0B/omw7HQOsynXXcOiWVCacbBcPlgn8S/d1X6blFSaHao7ozqtW7NZW19xpCtIw==", + "license": "MIT" }, "node_modules/js-tokens": { "version": "4.0.0", @@ -10904,9 +11719,20 @@ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "node_modules/js-yaml": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", - "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", + "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], "license": "MIT", "dependencies": { "argparse": "^2.0.1" @@ -11249,13 +12075,6 @@ "dev": true, "license": "MIT" }, - "node_modules/local-pkg/node_modules/pathe": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", - "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", - "dev": true, - "license": "MIT" - }, "node_modules/local-pkg/node_modules/pkg-types": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.3.0.tgz", @@ -11284,9 +12103,9 @@ } }, "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz", + "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==", "license": "MIT" }, "node_modules/lodash.debounce": { @@ -11491,10 +12310,11 @@ } }, "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", + "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", "dev": true, + "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -11506,6 +12326,7 @@ "version": "1.2.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -11518,49 +12339,11 @@ "node": ">=16 || 14 >=14.17" } }, - "node_modules/minizlib": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", - "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", - "dependencies": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/minizlib/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minizlib/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, - "node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/mlly": { "version": "1.7.4", "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.7.4.tgz", "integrity": "sha512-qmdSIPC4bDJXgZTCR7XosJiNKySV7O215tsPtDN9iEO/7q/76b/ijtgRu/+epFXSJhijtTCCGp3DWS549P3xKw==", + "dev": true, "dependencies": { "acorn": "^8.14.0", "pathe": "^2.0.1", @@ -11568,11 +12351,6 @@ "ufo": "^1.5.4" } }, - "node_modules/mlly/node_modules/pathe": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", - "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==" - }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -11602,9 +12380,9 @@ } }, "node_modules/nanoid": { - "version": "3.3.11", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", - "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "version": "3.3.19", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz", + "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==", "funding": [ { "type": "github", @@ -11650,38 +12428,35 @@ "node": ">= 0.6" } }, - "node_modules/neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" - }, "node_modules/next": { - "version": "15.5.9", - "resolved": "https://registry.npmjs.org/next/-/next-15.5.9.tgz", - "integrity": "sha512-agNLK89seZEtC5zUHwtut0+tNrc0Xw4FT/Dg+B/VLEo9pAcS9rtTKpek3V6kVcVwsB2YlqMaHdfZL4eLEVYuCg==", + "version": "16.3.6", + "resolved": "https://registry.npmjs.org/next/-/next-16.3.6.tgz", + "integrity": "sha512-L+otWM/aQbYTx98aZhgEoMb4bZAXx1YVW4UMA/vuCyCoWG5HJyZUili8QAkqzrcC+5///tsz3s0M+SlyB5bLMw==", + "license": "MIT", "dependencies": { - "@next/env": "15.5.9", - "@swc/helpers": "0.5.15", + "@next/env": "16.3.6", + "@swc/helpers": "0.5.23", + "baseline-browser-mapping": "^2.9.19", "caniuse-lite": "^1.0.30001579", - "postcss": "8.4.31", + "postcss": "8.5.23", "styled-jsx": "5.1.6" }, "bin": { "next": "dist/bin/next" }, "engines": { - "node": "^18.18.0 || ^19.8.0 || >= 20.0.0" + "node": ">=20.9.0" }, "optionalDependencies": { - "@next/swc-darwin-arm64": "15.5.7", - "@next/swc-darwin-x64": "15.5.7", - "@next/swc-linux-arm64-gnu": "15.5.7", - "@next/swc-linux-arm64-musl": "15.5.7", - "@next/swc-linux-x64-gnu": "15.5.7", - "@next/swc-linux-x64-musl": "15.5.7", - "@next/swc-win32-arm64-msvc": "15.5.7", - "@next/swc-win32-x64-msvc": "15.5.7", - "sharp": "^0.34.3" + "@next/swc-darwin-arm64": "16.3.6", + "@next/swc-darwin-x64": "16.3.6", + "@next/swc-linux-arm64-gnu": "16.3.6", + "@next/swc-linux-arm64-musl": "16.3.6", + "@next/swc-linux-x64-gnu": "16.3.6", + "@next/swc-linux-x64-musl": "16.3.6", + "@next/swc-win32-arm64-msvc": "16.3.6", + "@next/swc-win32-x64-msvc": "16.3.6", + "sharp": "^0.35.4" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0", @@ -11707,406 +12482,98 @@ } }, "node_modules/next-intl": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/next-intl/-/next-intl-4.4.0.tgz", - "integrity": "sha512-QHqnP9V9Pe7Tn0PdVQ7u1Z8k9yCkW5SJKeRy2g5gxzhSt/C01y3B9qNxuj3Fsmup/yreIHe6osxU6sFa+9WIkQ==", + "version": "4.14.7", + "resolved": "https://registry.npmjs.org/next-intl/-/next-intl-4.14.7.tgz", + "integrity": "sha512-VQJu34ga2pG8EO7aQO7mzinoso/XpvQdMPfifBZIeWAoyGlKU3//nt7QVwWBZuOMBne4g6onsEFk+IA5ueF61g==", "funding": [ { "type": "individual", "url": "https://github.com/sponsors/amannn" } ], - "license": "MIT", - "dependencies": { - "@formatjs/intl-localematcher": "^0.5.4", - "negotiator": "^1.0.0", - "use-intl": "^4.4.0" - }, - "peerDependencies": { - "next": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", - "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0", - "typescript": "^5.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/next-themes": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.4.6.tgz", - "integrity": "sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==", - "peerDependencies": { - "react": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc", - "react-dom": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc" - } - }, - "node_modules/next/node_modules/@img/sharp-darwin-arm64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.5.tgz", - "integrity": "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-darwin-arm64": "1.2.4" - } - }, - "node_modules/next/node_modules/@img/sharp-darwin-x64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.5.tgz", - "integrity": "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-darwin-x64": "1.2.4" - } - }, - "node_modules/next/node_modules/@img/sharp-libvips-darwin-arm64": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.2.4.tgz", - "integrity": "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==", - "cpu": [ - "arm64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "darwin" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/next/node_modules/@img/sharp-libvips-darwin-x64": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.2.4.tgz", - "integrity": "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==", - "cpu": [ - "x64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "darwin" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/next/node_modules/@img/sharp-libvips-linux-arm": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.2.4.tgz", - "integrity": "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==", - "cpu": [ - "arm" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/next/node_modules/@img/sharp-libvips-linux-arm64": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.2.4.tgz", - "integrity": "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==", - "cpu": [ - "arm64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/next/node_modules/@img/sharp-libvips-linux-s390x": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.2.4.tgz", - "integrity": "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==", - "cpu": [ - "s390x" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/next/node_modules/@img/sharp-libvips-linux-x64": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.2.4.tgz", - "integrity": "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==", - "cpu": [ - "x64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/next/node_modules/@img/sharp-libvips-linuxmusl-arm64": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.2.4.tgz", - "integrity": "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==", - "cpu": [ - "arm64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/next/node_modules/@img/sharp-libvips-linuxmusl-x64": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.2.4.tgz", - "integrity": "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==", - "cpu": [ - "x64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/next/node_modules/@img/sharp-linux-arm": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.5.tgz", - "integrity": "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==", - "cpu": [ - "arm" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-arm": "1.2.4" - } - }, - "node_modules/next/node_modules/@img/sharp-linux-arm64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.5.tgz", - "integrity": "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-arm64": "1.2.4" - } - }, - "node_modules/next/node_modules/@img/sharp-linux-s390x": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.34.5.tgz", - "integrity": "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==", - "cpu": [ - "s390x" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-s390x": "1.2.4" - } - }, - "node_modules/next/node_modules/@img/sharp-linux-x64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.34.5.tgz", - "integrity": "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-x64": "1.2.4" - } - }, - "node_modules/next/node_modules/@img/sharp-linuxmusl-arm64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.34.5.tgz", - "integrity": "sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linuxmusl-arm64": "1.2.4" - } - }, - "node_modules/next/node_modules/@img/sharp-linuxmusl-x64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.34.5.tgz", - "integrity": "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linuxmusl-x64": "1.2.4" - } - }, - "node_modules/next/node_modules/@img/sharp-wasm32": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.34.5.tgz", - "integrity": "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==", - "cpu": [ - "wasm32" - ], - "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", - "optional": true, + "license": "MIT", "dependencies": { - "@emnapi/runtime": "^1.7.0" + "@eloqnt/config": "^0.1.0", + "@eloqnt/format-json": "^0.1.0", + "@eloqnt/format-po": "^0.1.0", + "@formatjs/intl-localematcher": "^0.8.1", + "@parcel/watcher": "^2.4.1", + "@swc/core": "~1.16.0", + "icu-minify": "^4.14.7", + "negotiator": "^1.0.0", + "next-intl-swc-plugin-extractor": "4.14.7", + "use-intl": "^4.14.7" }, - "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "peerDependencies": { + "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", + "next": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0" }, - "funding": { - "url": "https://opencollective.com/libvips" + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, - "node_modules/next/node_modules/@img/sharp-win32-ia32": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.34.5.tgz", - "integrity": "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==", - "cpu": [ - "ia32" - ], - "license": "Apache-2.0 AND LGPL-3.0-or-later", - "optional": true, - "os": [ - "win32" - ], + "node_modules/next-intl-swc-plugin-extractor": { + "version": "4.14.7", + "resolved": "https://registry.npmjs.org/next-intl-swc-plugin-extractor/-/next-intl-swc-plugin-extractor-4.14.7.tgz", + "integrity": "sha512-0KUc8helXuJfyXVUQDolz0wnRnaW+dkJf6ozX6A+O9x1dd1+cb4PpZqj6FfcDdJagMuIxtnDmeRT7yUhllMYKA==", + "license": "MIT" + }, + "node_modules/next-intl/node_modules/@swc/core": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.16.2.tgz", + "integrity": "sha512-95I4kiSMeveI/Mhi+tE4fiWcWLUMfzfKrk0jtr8LRMqHgOgq+xHS+zExkDqoO4b5OeeuXHMWVdD5MeP3X6sULw==", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@swc/counter": "^0.1.3", + "@swc/types": "^0.1.28" + }, "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=10" }, "funding": { - "url": "https://opencollective.com/libvips" + "type": "opencollective", + "url": "https://opencollective.com/swc" + }, + "optionalDependencies": { + "@swc/core-darwin-arm64": "1.16.2", + "@swc/core-darwin-x64": "1.16.2", + "@swc/core-linux-arm-gnueabihf": "1.16.2", + "@swc/core-linux-arm64-gnu": "1.16.2", + "@swc/core-linux-arm64-musl": "1.16.2", + "@swc/core-linux-ppc64-gnu": "1.16.2", + "@swc/core-linux-s390x-gnu": "1.16.2", + "@swc/core-linux-x64-gnu": "1.16.2", + "@swc/core-linux-x64-musl": "1.16.2", + "@swc/core-win32-arm64-msvc": "1.16.2", + "@swc/core-win32-ia32-msvc": "1.16.2", + "@swc/core-win32-x64-msvc": "1.16.2" + }, + "peerDependencies": { + "@swc/helpers": ">=0.5.17" + }, + "peerDependenciesMeta": { + "@swc/helpers": { + "optional": true + } } }, - "node_modules/next/node_modules/@img/sharp-win32-x64": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.5.tgz", - "integrity": "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0 AND LGPL-3.0-or-later", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" + "node_modules/next-themes": { + "version": "0.4.6", + "resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.4.6.tgz", + "integrity": "sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==", + "peerDependencies": { + "react": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc" } }, "node_modules/next/node_modules/postcss": { - "version": "8.4.31", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", - "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", + "version": "8.5.23", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.23.tgz", + "integrity": "sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg==", "funding": [ { "type": "opencollective", @@ -12121,60 +12588,16 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { - "nanoid": "^3.3.6", - "picocolors": "^1.0.0", - "source-map-js": "^1.0.2" + "nanoid": "^3.3.16", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" }, "engines": { "node": "^10 || ^12 || >=14" } }, - "node_modules/next/node_modules/sharp": { - "version": "0.34.5", - "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.5.tgz", - "integrity": "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==", - "hasInstallScript": true, - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "@img/colour": "^1.0.0", - "detect-libc": "^2.1.2", - "semver": "^7.7.3" - }, - "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-darwin-arm64": "0.34.5", - "@img/sharp-darwin-x64": "0.34.5", - "@img/sharp-libvips-darwin-arm64": "1.2.4", - "@img/sharp-libvips-darwin-x64": "1.2.4", - "@img/sharp-libvips-linux-arm": "1.2.4", - "@img/sharp-libvips-linux-arm64": "1.2.4", - "@img/sharp-libvips-linux-ppc64": "1.2.4", - "@img/sharp-libvips-linux-riscv64": "1.2.4", - "@img/sharp-libvips-linux-s390x": "1.2.4", - "@img/sharp-libvips-linux-x64": "1.2.4", - "@img/sharp-libvips-linuxmusl-arm64": "1.2.4", - "@img/sharp-libvips-linuxmusl-x64": "1.2.4", - "@img/sharp-linux-arm": "0.34.5", - "@img/sharp-linux-arm64": "0.34.5", - "@img/sharp-linux-ppc64": "0.34.5", - "@img/sharp-linux-riscv64": "0.34.5", - "@img/sharp-linux-s390x": "0.34.5", - "@img/sharp-linux-x64": "0.34.5", - "@img/sharp-linuxmusl-arm64": "0.34.5", - "@img/sharp-linuxmusl-x64": "0.34.5", - "@img/sharp-wasm32": "0.34.5", - "@img/sharp-win32-arm64": "0.34.5", - "@img/sharp-win32-ia32": "0.34.5", - "@img/sharp-win32-x64": "0.34.5" - } - }, "node_modules/no-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", @@ -12185,16 +12608,21 @@ "tslib": "^2.0.3" } }, - "node_modules/node-fetch-native": { - "version": "1.6.6", - "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.6.tgz", - "integrity": "sha512-8Mc2HhqPdlIfedsuZoc3yioPuzp6b+L5jRCRY1QzuWZh2EGJVQrGppC6V6cF0bLdbW0+O2YpqCA25aF/1lvipQ==" + "node_modules/node-addon-api": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", + "license": "MIT" }, "node_modules/node-releases": { - "version": "2.0.27", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", - "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", - "dev": true + "version": "2.0.57", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.57.tgz", + "integrity": "sha512-kQK9LGGFiHtrWiNhZtA7Qbw17AQz+dmsEKODRIVTXA9+e5MS/2gZEBhYJt13GrAz5/IOZKddH/0Z3TP/Zgo+yw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } }, "node_modules/normalize-package-data": { "version": "8.0.0", @@ -12237,30 +12665,6 @@ "url": "https://github.com/fb55/nth-check?sponsor=1" } }, - "node_modules/nypm": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/nypm/-/nypm-0.5.4.tgz", - "integrity": "sha512-X0SNNrZiGU8/e/zAB7sCTtdxWTMSIO73q+xuKgglm2Yvzwlo8UoC5FNySQFCvl84uPaeADkqHUZUkWy4aH4xOA==", - "dependencies": { - "citty": "^0.1.6", - "consola": "^3.4.0", - "pathe": "^2.0.3", - "pkg-types": "^1.3.1", - "tinyexec": "^0.3.2", - "ufo": "^1.5.4" - }, - "bin": { - "nypm": "dist/cli.mjs" - }, - "engines": { - "node": "^14.16.0 || >=16.10.0" - } - }, - "node_modules/nypm/node_modules/pathe": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", - "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==" - }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", @@ -12384,9 +12788,11 @@ } }, "node_modules/ohash": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/ohash/-/ohash-1.1.6.tgz", - "integrity": "sha512-TBu7PtV8YkAZn0tSxobKY2n2aAQva936lhRrj6957aDaCf9IEtqsKbgMzXE/F/sjqYOwmrukeORHNLe5glk7Cg==" + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/ohash/-/ohash-2.0.12.tgz", + "integrity": "sha512-65S/5gk9YSsaRjcyf7Nfa6h/d3E8/1gslpXfI4W7Dxn/oap8IKRuNT5VXkLQ1YFKIEg4apRY4Pj6aiwFzrDdmw==", + "dev": true, + "license": "MIT" }, "node_modules/onetime": { "version": "7.0.0", @@ -12403,6 +12809,27 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/open": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/open/-/open-11.0.0.tgz", + "integrity": "sha512-smsWv2LzFjP03xmvFoJ331ss6h+jixfA4UUV/Bsiyuu4YJPfN+FIQGOIiv4w9/+MoHkfkJ22UIaQWRVFRfH6Vw==", + "dev": true, + "license": "MIT", + "dependencies": { + "default-browser": "^5.4.0", + "define-lazy-prop": "^3.0.0", + "is-in-ssh": "^1.0.0", + "is-inside-container": "^1.0.0", + "powershell-utils": "^0.1.0", + "wsl-utils": "^0.3.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/optionator": { "version": "0.9.4", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", @@ -12569,14 +12996,18 @@ } }, "node_modules/pathe": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", - "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==" + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" }, "node_modules/perfect-debounce": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-1.0.0.tgz", - "integrity": "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==" + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-2.1.0.tgz", + "integrity": "sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==", + "dev": true, + "license": "MIT" }, "node_modules/picocolors": { "version": "1.1.1", @@ -12584,9 +13015,10 @@ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" }, "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "license": "MIT", "engines": { "node": ">=8.6" }, @@ -12626,17 +13058,13 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz", "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", + "dev": true, "dependencies": { "confbox": "^0.1.8", "mlly": "^1.7.4", "pathe": "^2.0.1" } }, - "node_modules/pkg-types/node_modules/pathe": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", - "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==" - }, "node_modules/pluralize": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", @@ -12647,6 +13075,12 @@ "node": ">=4" } }, + "node_modules/po-parser": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/po-parser/-/po-parser-2.2.0.tgz", + "integrity": "sha512-NdTrKgh0oO7+y+RFX8KKhOB438x/j94UGXEFzl/7pHH0JjWSn42iJ9tgmPksIO6n1JKDHmNDcejPJfKspljB9g==", + "license": "MIT" + }, "node_modules/possible-typed-array-names": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", @@ -12657,9 +13091,9 @@ } }, "node_modules/postcss": { - "version": "8.4.41", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.41.tgz", - "integrity": "sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ==", + "version": "8.5.28", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz", + "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==", "funding": [ { "type": "opencollective", @@ -12674,10 +13108,11 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { - "nanoid": "^3.3.7", - "picocolors": "^1.0.1", - "source-map-js": "^1.2.0" + "nanoid": "^3.3.18", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" }, "engines": { "node": "^10 || ^12 || >=14" @@ -12787,9 +13222,10 @@ } }, "node_modules/postcss-selector-parser": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.1.tgz", - "integrity": "sha512-b4dlw/9V8A71rLIDsSwVmak9z2DuBUB7CA1/wSdelNEzqsjoSPeADTWNO09lpH49Diy3/JIZ2bSPB1dI3LJCHg==", + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.4.tgz", + "integrity": "sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==", + "license": "MIT", "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" @@ -12803,6 +13239,19 @@ "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" }, + "node_modules/powershell-utils": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/powershell-utils/-/powershell-utils-0.1.0.tgz", + "integrity": "sha512-dM0jVuXJPsDN6DvRpea484tCUaMiXWjuCn++HGTqUWzGDjv5tZkEZldAJ/UMlqRYGFrD/etByo4/xOuC/snX2A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -12868,12 +13317,14 @@ ] }, "node_modules/rc9": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/rc9/-/rc9-2.1.2.tgz", - "integrity": "sha512-btXCnMmRIBINM2LDZoEmOogIZU7Qe7zn4BpomSKZ/ykbLObuBdvG+mFq11DL6fjH1DRwHhrlgtYWG96bJiC7Cg==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/rc9/-/rc9-3.1.0.tgz", + "integrity": "sha512-ufjkNVzbRHKcCOmTahZkmVsyc3W+MSk3jY03m+a7tGHkIsdVMG9l10/3HvFbWkkKzY5VFp3pkRsIo/UYgmFL7Q==", + "dev": true, + "license": "MIT", "dependencies": { - "defu": "^6.1.4", - "destr": "^2.0.3" + "defu": "^6.1.7", + "destr": "^2.0.5" } }, "node_modules/react": { @@ -13363,6 +13814,19 @@ "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==", "dev": true }, + "node_modules/run-applescript": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.1.0.tgz", + "integrity": "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -13437,6 +13901,16 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/sax": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.1.tgz", + "integrity": "sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=11.0.0" + } + }, "node_modules/scheduler": { "version": "0.26.0", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.26.0.tgz", @@ -13458,9 +13932,10 @@ } }, "node_modules/semver": { - "version": "7.7.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", - "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -13515,41 +13990,52 @@ } }, "node_modules/sharp": { - "version": "0.33.5", - "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.33.5.tgz", - "integrity": "sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw==", - "hasInstallScript": true, + "version": "0.35.4", + "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.4.tgz", + "integrity": "sha512-n++8XWcj+jCOr2IOl7h8LbKnGBDY4aPbmprMONBNFdn0ImXqpGVv5zliDs0V9HbmbCQLpbuo2ej9rAoOQTvMDA==", + "license": "Apache-2.0", "dependencies": { - "color": "^4.2.3", - "detect-libc": "^2.0.3", - "semver": "^7.6.3" + "@img/colour": "^1.1.0", + "detect-libc": "^2.1.2", + "semver": "^7.8.5" }, "engines": { - "node": "^18.17.0 || ^20.3.0 || >=21.0.0" + "node": ">=20.9.0" }, "funding": { "url": "https://opencollective.com/libvips" }, "optionalDependencies": { - "@img/sharp-darwin-arm64": "0.33.5", - "@img/sharp-darwin-x64": "0.33.5", - "@img/sharp-libvips-darwin-arm64": "1.0.4", - "@img/sharp-libvips-darwin-x64": "1.0.4", - "@img/sharp-libvips-linux-arm": "1.0.5", - "@img/sharp-libvips-linux-arm64": "1.0.4", - "@img/sharp-libvips-linux-s390x": "1.0.4", - "@img/sharp-libvips-linux-x64": "1.0.4", - "@img/sharp-libvips-linuxmusl-arm64": "1.0.4", - "@img/sharp-libvips-linuxmusl-x64": "1.0.4", - "@img/sharp-linux-arm": "0.33.5", - "@img/sharp-linux-arm64": "0.33.5", - "@img/sharp-linux-s390x": "0.33.5", - "@img/sharp-linux-x64": "0.33.5", - "@img/sharp-linuxmusl-arm64": "0.33.5", - "@img/sharp-linuxmusl-x64": "0.33.5", - "@img/sharp-wasm32": "0.33.5", - "@img/sharp-win32-ia32": "0.33.5", - "@img/sharp-win32-x64": "0.33.5" + "@img/sharp-darwin-arm64": "0.35.4", + "@img/sharp-darwin-x64": "0.35.4", + "@img/sharp-freebsd-wasm32": "0.35.4", + "@img/sharp-libvips-darwin-arm64": "1.3.3", + "@img/sharp-libvips-darwin-x64": "1.3.3", + "@img/sharp-libvips-linux-arm": "1.3.3", + "@img/sharp-libvips-linux-arm64": "1.3.3", + "@img/sharp-libvips-linux-ppc64": "1.3.3", + "@img/sharp-libvips-linux-riscv64": "1.3.3", + "@img/sharp-libvips-linux-s390x": "1.3.3", + "@img/sharp-libvips-linux-x64": "1.3.3", + "@img/sharp-libvips-linuxmusl-arm64": "1.3.3", + "@img/sharp-libvips-linuxmusl-x64": "1.3.3", + "@img/sharp-linux-arm": "0.35.4", + "@img/sharp-linux-arm64": "0.35.4", + "@img/sharp-linux-ppc64": "0.35.4", + "@img/sharp-linux-riscv64": "0.35.4", + "@img/sharp-linux-s390x": "0.35.4", + "@img/sharp-linux-x64": "0.35.4", + "@img/sharp-linuxmusl-arm64": "0.35.4", + "@img/sharp-linuxmusl-x64": "0.35.4", + "@img/sharp-webcontainers-wasm32": "0.35.4", + "@img/sharp-win32-arm64": "0.35.4", + "@img/sharp-win32-ia32": "0.35.4", + "@img/sharp-win32-x64": "0.35.4" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } } }, "node_modules/shebang-command": { @@ -13664,14 +14150,6 @@ "simple-git-hooks": "cli.js" } }, - "node_modules/simple-swizzle": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", - "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==", - "dependencies": { - "is-arrayish": "^0.3.1" - } - }, "node_modules/slice-ansi": { "version": "7.1.2", "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.2.tgz", @@ -13754,18 +14232,11 @@ "node": ">=20" } }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/source-map-js": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", - "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } @@ -13816,6 +14287,20 @@ "node": ">=12.0.0" } }, + "node_modules/stop-iteration-iterator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz", + "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "internal-slot": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/string-argv": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", @@ -14135,18 +14620,19 @@ "dev": true }, "node_modules/svgo": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-3.3.2.tgz", - "integrity": "sha512-OoohrmuUlBs8B8o6MB2Aevn+pRIH9zDALSR+6hhqVfa6fRwG/Qw9VUMSMW9VNg2CFc/MTIfabtdOVl9ODIJjpw==", + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-3.3.5.tgz", + "integrity": "sha512-8SQMzdrvWaD8deUmrnYB+ASyxBVgWUOilg+A75nE/76WdLpj6LopCwiAVvkzkcqy/9b7t2Mg7faFLjg0ZRcZ3w==", "dev": true, + "license": "MIT", "dependencies": { - "@trysound/sax": "0.2.0", "commander": "^7.2.0", "css-select": "^5.1.0", "css-tree": "^2.3.1", "css-what": "^6.1.0", "csso": "^5.0.5", - "picocolors": "^1.0.0" + "picocolors": "^1.0.0", + "sax": "^1.5.0" }, "bin": { "svgo": "bin/svgo" @@ -14297,35 +14783,6 @@ "node": ">=6" } }, - "node_modules/tar": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", - "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", - "dependencies": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^5.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/tar/node_modules/minipass": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", - "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/tar/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, "node_modules/thenify": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", @@ -14350,11 +14807,6 @@ "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz", "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==" }, - "node_modules/tinyexec": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", - "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==" - }, "node_modules/tinyglobby": { "version": "0.2.15", "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", @@ -14389,10 +14841,11 @@ } }, "node_modules/tinyglobby/node_modules/picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "dev": true, + "license": "MIT", "engines": { "node": ">=12" }, @@ -14400,15 +14853,6 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -14456,9 +14900,9 @@ } }, "node_modules/ts-declaration-location/node_modules/picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "dev": true, "license": "MIT", "engines": { @@ -14603,6 +15047,7 @@ "version": "5.5.4", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.4.tgz", "integrity": "sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==", + "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -14638,19 +15083,8 @@ "node_modules/ufo": { "version": "1.6.1", "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.1.tgz", - "integrity": "sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA==" - }, - "node_modules/uglify-js": { - "version": "3.19.3", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz", - "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==", - "optional": true, - "bin": { - "uglifyjs": "bin/uglifyjs" - }, - "engines": { - "node": ">=0.8.0" - } + "integrity": "sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA==", + "dev": true }, "node_modules/unbox-primitive": { "version": "1.1.0", @@ -14830,9 +15264,9 @@ } }, "node_modules/update-browserslist-db": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", - "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.3.tgz", + "integrity": "sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==", "dev": true, "funding": [ { @@ -14848,6 +15282,7 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { "escalade": "^3.2.0", "picocolors": "^1.1.1" @@ -14889,17 +15324,30 @@ } }, "node_modules/use-intl": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/use-intl/-/use-intl-4.4.0.tgz", - "integrity": "sha512-smFekJWtokDRBLC5/ZumlBREzdXOkw06+56Ifj2uRe9266Mk+yWQm2PcJO+EwlOE5sHIXHixOTzN6V8E0RGUbw==", + "version": "4.14.7", + "resolved": "https://registry.npmjs.org/use-intl/-/use-intl-4.14.7.tgz", + "integrity": "sha512-L7l2mo3KE8OetLkyIOdKZfN0J05+e9gB7cxgrVthkjIGu1nCW9KOBgZkVcK7w0tbc3WLfnEMgX3J+vSXMCZA/A==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/amannn" + } + ], "license": "MIT", "dependencies": { - "@formatjs/fast-memoize": "^2.2.0", + "@formatjs/fast-memoize": "^3.1.0", "@schummar/icu-type-parser": "1.21.5", - "intl-messageformat": "^10.5.14" + "icu-minify": "^4.14.7", + "intl-messageformat": "^11.1.0" }, "peerDependencies": { + "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", "react": "^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } } }, "node_modules/use-sidecar": { @@ -15098,11 +15546,6 @@ "node": ">=0.10.0" } }, - "node_modules/wordwrap": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==" - }, "node_modules/wrap-ansi": { "version": "8.1.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", @@ -15197,6 +15640,23 @@ "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, + "node_modules/wsl-utils": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/wsl-utils/-/wsl-utils-0.3.1.tgz", + "integrity": "sha512-g/eziiSUNBSsdDJtCLB8bdYEUMj4jR7AGeUo96p/3dTafgjHhpF4RiCFPiRILwjQoDXx5MqkBr4fwWtR3Ky4Wg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-wsl": "^3.1.0", + "powershell-utils": "^0.1.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", @@ -15214,9 +15674,10 @@ "dev": true }, "node_modules/yaml": { - "version": "2.8.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.2.tgz", - "integrity": "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==", + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz", + "integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==", + "license": "ISC", "bin": { "yaml": "bin.mjs" }, diff --git a/package.json b/package.json index 8a8d8139..0a864a7c 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "build": "next build", - "dev": "next dev --turbo", + "dev": "next dev", "generate:openapi": "dotenv -e .env.local -- openapi-ts", "lint": "eslint --fix", "lint:check": "eslint", @@ -13,7 +13,6 @@ "dependencies": { "@bbob/html": "^4.2.0", "@bbob/preset-html5": "^4.2.0", - "@hey-api/client-fetch": "^0.10.0", "@hookform/resolvers": "^5.0.1", "@radix-ui/react-accordion": "^1.2.4", "@radix-ui/react-alert-dialog": "^1.1.7", @@ -46,7 +45,7 @@ "ky": "^1.7.5", "lodash": "^4.17.21", "lucide-react": "^0.441.0", - "next": "^15.5.9", + "next": "^16.3.6", "next-intl": "^4.4.0", "next-themes": "^0.4.6", "react": "19.1.0", @@ -54,7 +53,7 @@ "react-easy-crop": "^5.5.6", "react-hook-form": "^7.55.0", "recharts": "^2.15.2", - "sharp": "^0.33.5", + "sharp": "^0.35.4", "swr": "^2.3.3", "tailwind-merge": "^2.6.0", "tailwindcss-animate": "^1.0.7", @@ -62,7 +61,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@hey-api/openapi-ts": "^0.66.7", + "@hey-api/openapi-ts": "^0.99.0", "@richardscull/eslint-config": "^1.0.6", "@svgr/webpack": "^8.1.0", "@types/js-cookie": "^3.0.6", @@ -72,7 +71,7 @@ "@types/react-dom": "19.1.2", "dotenv-cli": "^8.0.0", "eslint": "^9.39.2", - "eslint-config-next": "^15.5.9", + "eslint-config-next": "^16.3.6", "jiti": "^2.6.1", "lint-staged": "^16.2.7", "postcss": "^8", @@ -83,7 +82,11 @@ "overrides": { "@types/react": "19.1.1", "@types/react-dom": "19.1.2", - "react-is": "^19.0.0-rc-69d4b800-20241021" + "brace-expansion@<1.1.21": "^1.1.21", + "handlebars": "^4.7.9", + "js-yaml": "^4.3.2", + "react-is": "^19.0.0-rc-69d4b800-20241021", + "tar": "^7.5.22" }, "simple-git-hooks": { "pre-commit": "npx lint-staged" diff --git a/tailwind.config.ts b/tailwind.config.ts index 9ea635e5..abb05fe2 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -6,6 +6,7 @@ const config: Config = { "./pages/**/*.{js,ts,jsx,tsx,mdx}", "./components/**/*.{js,ts,jsx,tsx,mdx}", "./app/**/*.{js,ts,jsx,tsx,mdx}", + "./lib/**/*.{js,ts,jsx,tsx,mdx}", ], theme: { extend: { diff --git a/tsconfig.json b/tsconfig.json index 70be6865..9e9bbf7b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,10 @@ { "compilerOptions": { - "lib": ["dom", "dom.iterable", "esnext"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -10,7 +14,7 @@ "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true, - "jsx": "preserve", + "jsx": "react-jsx", "incremental": true, "plugins": [ { @@ -18,11 +22,20 @@ } ], "paths": { - "@/*": ["./*"], - "next/link": ["./lib/overrides/next/link"] + "@/*": [ + "./*" + ] }, "target": "ES2017" }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts", + ".next/dev/types/**/*.ts" + ], + "exclude": [ + "node_modules" + ] }