📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
chore: reduce direct runtime dependencies
Blue Mouse8f41cb830d72
diff --git a/backend/Dockerfile b/backend/Dockerfileindex cb6fb27f6..80f94828c 100644--- a/backend/Dockerfile+++ b/backend/Dockerfile@@ -1,18 +1,20 @@#Stage 1: BuildFROM node:lts-alpine AS buildWORKDIR /build-COPY package*.json .-RUN npm install --force+COPY package*.json ./+RUN npm ci --forceCOPY . .RUN npm run deploy:communityRUN node ./meta/dbip-free-sync.js+RUN npm prune --omit=dev --force#Stage 2: RuntimeFROM node:lts-alpine AS runLABEL maintainer="swetrix.com <[email protected]>"ENV TZ=UTC \- NODE_ENV=production+ NODE_ENV=production \+ NPM_CONFIG_OMIT=devENV REDIS_HOST=localhost \REDIS_PORT=6379 \diff --git a/backend/apps/cloud/src/analytics/analytics.service.ts b/backend/apps/cloud/src/analytics/analytics.service.tsindex e58df4232..216d76e64 100644--- a/backend/apps/cloud/src/analytics/analytics.service.ts+++ b/backend/apps/cloud/src/analytics/analytics.service.ts@@ -25,7 +25,6 @@ import dayjs from 'dayjs'import utc from 'dayjs/plugin/utc'import dayjsTimezone from 'dayjs/plugin/timezone'import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'-import ipRangeCheck from 'ip-range-check'import {Injectable,BadRequestException,@@ -71,6 +70,7 @@ import {sumArrays,formatDuration,} from '../common/utils'+import { isIpInRange } from '../common/ip-range'import { PageviewsDto } from './dto/pageviews.dto'import { EventsDto } from './dto/events.dto'import { ProjectService } from '../project/project.service'@@ -601,7 +601,7 @@ export class AnalyticsService {// TODO: Properly validate the ipBlacklist on project updateconst ipBlacklist = _filter(project.ipBlacklist, Boolean) as string[]- if (!_isEmpty(ipBlacklist) && ipRangeCheck(ip, ipBlacklist)) {+ if (!_isEmpty(ipBlacklist) && isIpInRange(ip, ipBlacklist)) {throw new BadRequestException('Incoming analytics is disabled for this IP address',)diff --git a/backend/apps/cloud/src/common/ip-range.ts b/backend/apps/cloud/src/common/ip-range.tsnew file mode 100644index 000000000..32dd1a269--- /dev/null+++ b/backend/apps/cloud/src/common/ip-range.ts@@ -0,0 +1,148 @@+import { isIP } from 'node:net'++interface ParsedIp {+ version: 4 | 6+ bytes: number[]+}++const parseIPv4 = (address: string): number[] | null => {+ const parts = address.split('.')+ if (parts.length !== 4) return null++ const bytes = parts.map((part) => {+ if (!/^\d+$/.test(part)) return NaN+ const value = Number(part)+ return value >= 0 && value <= 255 ? value : NaN+ })++ return bytes.some(Number.isNaN) ? null : bytes+}++const parseHextet = (part: string): number | null => {+ if (!/^[0-9a-f]{1,4}$/i.test(part)) return null+ return parseInt(part, 16)+}++const parseIPv6Bytes = (address: string): number[] | null => {+ let normalised = address.toLowerCase()+ const ipv4Tail = normalised.match(/(.+:)(\d+\.\d+\.\d+\.\d+)$/)++ if (ipv4Tail) {+ const ipv4Bytes = parseIPv4(ipv4Tail[2])+ if (!ipv4Bytes) return null++ normalised =+ ipv4Tail[1] ++ [ipv4Bytes[0] * 256 + ipv4Bytes[1], ipv4Bytes[2] * 256 + ipv4Bytes[3]]+ .map((part) => part.toString(16))+ .join(':')+ }++ const doubleColonParts = normalised.split('::')+ if (doubleColonParts.length > 2) return null++ const left = doubleColonParts[0]+ ? doubleColonParts[0].split(':').filter(Boolean)+ : []+ const right = doubleColonParts[1]+ ? doubleColonParts[1].split(':').filter(Boolean)+ : []++ const missing = 8 - left.length - right.length+ if (doubleColonParts.length === 1 && missing !== 0) return null+ if (doubleColonParts.length === 2 && missing < 1) return null++ const hextets = [...left, ...Array(Math.max(missing, 0)).fill('0'), ...right]++ if (hextets.length !== 8) return null++ const bytes: number[] = []+ for (const hextet of hextets) {+ const value = parseHextet(hextet)+ if (value === null) return null+ bytes.push((value >> 8) & 0xff, value & 0xff)+ }++ return bytes+}++const isIPv4MappedIPv6 = (bytes: number[]): boolean => {+ return (+ bytes.length === 16 &&+ bytes.slice(0, 10).every((byte) => byte === 0) &&+ bytes[10] === 0xff &&+ bytes[11] === 0xff+ )+}++const parseIp = (address: string): ParsedIp | null => {+ const version = isIP(address)++ if (version === 4) {+ const bytes = parseIPv4(address)+ return bytes ? { version: 4, bytes } : null+ }++ if (version === 6) {+ const bytes = parseIPv6Bytes(address)+ if (!bytes) return null+ if (isIPv4MappedIPv6(bytes)) {+ return { version: 4, bytes: bytes.slice(12) }+ }+ return { version: 6, bytes }+ }++ return null+}++const matchesPrefix = (+ target: ParsedIp,+ range: ParsedIp,+ prefix: number,+): boolean => {+ if (target.version !== range.version) return false++ const maxPrefix = target.bytes.length * 8+ if (!Number.isInteger(prefix) || prefix < 0 || prefix > maxPrefix) {+ return false+ }++ const fullBytes = Math.floor(prefix / 8)+ for (let i = 0; i < fullBytes; i += 1) {+ if (target.bytes[i] !== range.bytes[i]) return false+ }++ const remainingBits = prefix % 8+ if (remainingBits === 0) return true++ const mask = (0xff << (8 - remainingBits)) & 0xff+ return (target.bytes[fullBytes] & mask) === (range.bytes[fullBytes] & mask)+}++const matchesSingleRange = (address: string, range: string): boolean => {+ const target = parseIp(address)+ if (!target) return false++ const [rangeAddress, prefixText] = range.split('/')+ const parsedRange = parseIp(rangeAddress)+ if (!parsedRange) return false++ if (prefixText === undefined) {+ return (+ target.version === parsedRange.version &&+ target.bytes.length === parsedRange.bytes.length &&+ target.bytes.every((byte, index) => byte === parsedRange.bytes[index])+ )+ }++ if (!/^\d+$/.test(prefixText)) return false+ return matchesPrefix(target, parsedRange, Number(prefixText))+}++export const isIpInRange = (+ address: string,+ ranges: string | string[],+): boolean => {+ const list = Array.isArray(ranges) ? ranges : [ranges]+ return list.some((range) => matchesSingleRange(address, range))+}diff --git a/backend/apps/cloud/src/notification-channel/dispatchers/http-client.ts b/backend/apps/cloud/src/notification-channel/dispatchers/http-client.tsnew file mode 100644index 000000000..7a4661b1d--- /dev/null+++ b/backend/apps/cloud/src/notification-channel/dispatchers/http-client.ts@@ -0,0 +1,74 @@+import * as http from 'http'+import * as https from 'https'+import { useAgent } from 'request-filtering-agent'++interface PostOptions {+ url: string+ headers: Record<string, string>+ body: string+ timeoutMs: number+}++interface PostResponse {+ ok: boolean+ status: number+}++export const postWithFilteredAgent = ({+ url,+ headers,+ body,+ timeoutMs,+}: PostOptions): Promise<PostResponse> => {+ return new Promise((resolve, reject) => {+ const target = new URL(url)+ const transport = target.protocol === 'https:' ? https : http++ let settled = false+ let req: http.ClientRequest++ const finish = (handler: () => void) => {+ if (settled) return+ settled = true+ handler()+ }++ req = transport.request(+ target,+ {+ method: 'POST',+ headers: {+ ...headers,+ 'Content-Length': Buffer.byteLength(body).toString(),+ },+ agent: useAgent(url),+ },+ (res) => {+ const status = res.statusCode ?? 0++ if (status >= 300 && status < 400 && res.headers.location) {+ res.resume()+ finish(() => reject(new Error('Redirects are not allowed')))+ return+ }++ res.resume()+ res.on('end', () =>+ finish(() => resolve({ status, ok: status >= 200 && status < 300 })),+ )+ res.on('error', (reason) => finish(() => reject(reason)))+ },+ )++ req.on('error', (reason) => finish(() => reject(reason)))+ req.setTimeout(timeoutMs, () => {+ finish(() => {+ req.destroy()+ reject(new Error(`Request timed out after ${timeoutMs}ms`))+ })+ })++ req.write(body)+ req.end()+ })+}diff --git a/backend/apps/cloud/src/notification-channel/dispatchers/webhook-channel.service.ts b/backend/apps/cloud/src/notification-channel/dispatchers/webhook-channel.service.tsindex c7d82565d..d1ac10989 100644--- a/backend/apps/cloud/src/notification-channel/dispatchers/webhook-channel.service.ts+++ b/backend/apps/cloud/src/notification-channel/dispatchers/webhook-channel.service.ts@@ -1,14 +1,11 @@import { Injectable, Logger } from '@nestjs/common'import { createHmac } from 'crypto'-// using node-fetch instead of undici because the native fetch does not support-// 'agent' option (to prevent SSRF)-import fetch from 'node-fetch'-import { useAgent } from 'request-filtering-agent'import {NotificationChannel,NotificationChannelType,} from '../entity/notification-channel.entity'import { ChannelDispatcher, RenderedAlertMessage } from './types'+import { postWithFilteredAgent } from './http-client'@Injectable()export class WebhookChannelService implements ChannelDispatcher {@@ -64,13 +61,11 @@ export class WebhookChannelService implements ChannelDispatcher {headers['X-Swetrix-Signature'] = `sha256=${sig}`}const webhookUrl = cfg.url- const res = await fetch(webhookUrl, {- method: 'POST',+ const res = await postWithFilteredAgent({+ url: webhookUrl,headers,body: bodyStr,- agent: useAgent(webhookUrl),- signal: AbortSignal.timeout(10_000),- redirect: 'error',+ timeoutMs: 10_000,})if (!res.ok) {this.logger.warn(@@ -97,13 +92,11 @@ export class WebhookChannelService implements ChannelDispatcher {const sig = createHmac('sha256', secret).update(payload).digest('hex')headers['X-Swetrix-Signature'] = `sha256=${sig}`}- const res = await fetch(url, {- method: 'POST',+ const res = await postWithFilteredAgent({+ url,headers,body: payload,- agent: useAgent(url),- signal: AbortSignal.timeout(5_000),- redirect: 'error',+ timeoutMs: 5_000,})return res.ok} catch (reason) {diff --git a/backend/apps/community/src/analytics/analytics.service.ts b/backend/apps/community/src/analytics/analytics.service.tsindex 564addcf5..7d6769872 100644--- a/backend/apps/community/src/analytics/analytics.service.ts+++ b/backend/apps/community/src/analytics/analytics.service.ts@@ -25,7 +25,6 @@ import dayjs from 'dayjs'import utc from 'dayjs/plugin/utc'import dayjsTimezone from 'dayjs/plugin/timezone'import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'-import ipRangeCheck from 'ip-range-check'import {Injectable,BadRequestException,@@ -65,6 +64,7 @@ import {millisecondsToSeconds,sumArrays,} from '../common/utils'+import { isIpInRange } from '../common/ip-range'import { PageviewsDto } from './dto/pageviews.dto'import { EventsDto } from './dto/events.dto'import { ProjectService } from '../project/project.service'@@ -576,7 +576,7 @@ export class AnalyticsService {// TODO: Properly validate the ipBlacklist on project updateconst ipBlacklist = _filter(project.ipBlacklist, Boolean) as string[]- if (!_isEmpty(ipBlacklist) && ipRangeCheck(ip, ipBlacklist)) {+ if (!_isEmpty(ipBlacklist) && isIpInRange(ip, ipBlacklist)) {throw new BadRequestException('Incoming analytics is disabled for this IP address',)diff --git a/backend/apps/community/src/common/ip-range.ts b/backend/apps/community/src/common/ip-range.tsnew file mode 100644index 000000000..32dd1a269--- /dev/null+++ b/backend/apps/community/src/common/ip-range.ts@@ -0,0 +1,148 @@+import { isIP } from 'node:net'++interface ParsedIp {+ version: 4 | 6+ bytes: number[]+}++const parseIPv4 = (address: string): number[] | null => {+ const parts = address.split('.')+ if (parts.length !== 4) return null++ const bytes = parts.map((part) => {+ if (!/^\d+$/.test(part)) return NaN+ const value = Number(part)+ return value >= 0 && value <= 255 ? value : NaN+ })++ return bytes.some(Number.isNaN) ? null : bytes+}++const parseHextet = (part: string): number | null => {+ if (!/^[0-9a-f]{1,4}$/i.test(part)) return null+ return parseInt(part, 16)+}++const parseIPv6Bytes = (address: string): number[] | null => {+ let normalised = address.toLowerCase()+ const ipv4Tail = normalised.match(/(.+:)(\d+\.\d+\.\d+\.\d+)$/)++ if (ipv4Tail) {+ const ipv4Bytes = parseIPv4(ipv4Tail[2])+ if (!ipv4Bytes) return null++ normalised =+ ipv4Tail[1] ++ [ipv4Bytes[0] * 256 + ipv4Bytes[1], ipv4Bytes[2] * 256 + ipv4Bytes[3]]+ .map((part) => part.toString(16))+ .join(':')+ }++ const doubleColonParts = normalised.split('::')+ if (doubleColonParts.length > 2) return null++ const left = doubleColonParts[0]+ ? doubleColonParts[0].split(':').filter(Boolean)+ : []+ const right = doubleColonParts[1]+ ? doubleColonParts[1].split(':').filter(Boolean)+ : []++ const missing = 8 - left.length - right.length+ if (doubleColonParts.length === 1 && missing !== 0) return null+ if (doubleColonParts.length === 2 && missing < 1) return null++ const hextets = [...left, ...Array(Math.max(missing, 0)).fill('0'), ...right]++ if (hextets.length !== 8) return null++ const bytes: number[] = []+ for (const hextet of hextets) {+ const value = parseHextet(hextet)+ if (value === null) return null+ bytes.push((value >> 8) & 0xff, value & 0xff)+ }++ return bytes+}++const isIPv4MappedIPv6 = (bytes: number[]): boolean => {+ return (+ bytes.length === 16 &&+ bytes.slice(0, 10).every((byte) => byte === 0) &&+ bytes[10] === 0xff &&+ bytes[11] === 0xff+ )+}++const parseIp = (address: string): ParsedIp | null => {+ const version = isIP(address)++ if (version === 4) {+ const bytes = parseIPv4(address)+ return bytes ? { version: 4, bytes } : null+ }++ if (version === 6) {+ const bytes = parseIPv6Bytes(address)+ if (!bytes) return null+ if (isIPv4MappedIPv6(bytes)) {+ return { version: 4, bytes: bytes.slice(12) }+ }+ return { version: 6, bytes }+ }++ return null+}++const matchesPrefix = (+ target: ParsedIp,+ range: ParsedIp,+ prefix: number,+): boolean => {+ if (target.version !== range.version) return false++ const maxPrefix = target.bytes.length * 8+ if (!Number.isInteger(prefix) || prefix < 0 || prefix > maxPrefix) {+ return false+ }++ const fullBytes = Math.floor(prefix / 8)+ for (let i = 0; i < fullBytes; i += 1) {+ if (target.bytes[i] !== range.bytes[i]) return false+ }++ const remainingBits = prefix % 8+ if (remainingBits === 0) return true++ const mask = (0xff << (8 - remainingBits)) & 0xff+ return (target.bytes[fullBytes] & mask) === (range.bytes[fullBytes] & mask)+}++const matchesSingleRange = (address: string, range: string): boolean => {+ const target = parseIp(address)+ if (!target) return false++ const [rangeAddress, prefixText] = range.split('/')+ const parsedRange = parseIp(rangeAddress)+ if (!parsedRange) return false++ if (prefixText === undefined) {+ return (+ target.version === parsedRange.version &&+ target.bytes.length === parsedRange.bytes.length &&+ target.bytes.every((byte, index) => byte === parsedRange.bytes[index])+ )+ }++ if (!/^\d+$/.test(prefixText)) return false+ return matchesPrefix(target, parsedRange, Number(prefixText))+}++export const isIpInRange = (+ address: string,+ ranges: string | string[],+): boolean => {+ const list = Array.isArray(ranges) ? ranges : [ranges]+ return list.some((range) => matchesSingleRange(address, range))+}diff --git a/backend/package-lock.json b/backend/package-lock.jsonindex 82cdbd614..b01021bc3 100644--- a/backend/package-lock.json+++ b/backend/package-lock.json@@ -8,7 +8,6 @@"dependencies": {"@ai-sdk/openai": "^3.0.52","@clickhouse/client": "^1.18.2",- "@faker-js/faker": "^10.4.0","@google-analytics/data": "^5.2.1","@googleapis/searchconsole": "^6.0.1","@nestjs-modules/mailer": "^2.3.4",@@ -26,11 +25,9 @@"@nestjs/terminus": "^11.1.1","@nestjs/typeorm": "^11.0.1","@nestjs/websockets": "^11.1.18",- "@sentry/cli": "^3.3.5","@sentry/nestjs": "^10.47.0","@sentry/profiling-node": "^10.47.0","@swetrix/node": "^3.2.0",- "@types/web-push": "^3.6.4","@ua-parser-js/pro-business": "^2.0.9","ai": "^6.0.153","bcrypt": "^6.0.0",@@ -39,7 +36,6 @@"class-validator": "^0.15.1","cookie-parser": "^1.4.7","countries-and-timezones": "^3.8.0",- "cross-env": "^10.1.0","crypto-js": "^4.2.0","csv-parse": "^6.2.1","dayjs": "^1.11.20",@@ -51,7 +47,6 @@"handlebars": "^4.7.9","i18n-iso-countries": "^7.14.0","ioredis": "^5.10.1",- "ip-range-check": "^0.2.0","isbot": "^5.1.37","jsonwebtoken": "^9.0.3","jwks-rsa": "^4.0.1",@@ -60,7 +55,6 @@"mysql2": "^3.20.0","nestjs-i18n": "^10.6.0","nestjs-telegraf": "^2.9.1",- "node-fetch": "^2.7.0","nodemailer": "^8.0.5","otplib": "^13.4.0","passport": "^0.7.0",@@ -69,7 +63,6 @@"php-serialize": "^5.1.3","reflect-metadata": "^0.2.2","request-filtering-agent": "^3.2.0",- "rimraf": "^6.1.3","rxjs": "^7.8.2","sns-payload-validator": "^2.1.0","socket.io": "^4.8.3",@@ -80,8 +73,10 @@"zod": "^4.3.6"},"devDependencies": {+ "@faker-js/faker": "^10.4.0","@nestjs/cli": "^11.0.18","@nestjs/schematics": "^11.0.10",+ "@sentry/cli": "^3.3.5","@types/bcrypt": "^6.0.0","@types/cookie-parser": "^1.4.10","@types/express": "^5.0.6",@@ -89,12 +84,14 @@"@types/lodash": "^4.17.24","@types/multer": "^2.1.0","@types/node": "^25.5.2",- "@types/node-fetch": "^2.6.13","@types/nodemailer": "^8.0.0","@types/passport-jwt": "^4.0.1",+ "@types/web-push": "^3.6.4",+ "cross-env": "^10.1.0","knip": "^6.3.1","oxfmt": "^0.44.0","oxlint": "^1.59.0",+ "rimraf": "^6.1.3","ts-prune": "^0.10.3","typescript": "^5.9.3"},@@ -603,16 +600,29 @@"node": ">= 10"}},+ "node_modules/@emnapi/wasi-threads": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz",+ "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "tslib": "^2.4.0"+ }+ },"node_modules/@epic-web/invariant": {"version": "1.0.0","resolved": "https://registry.npmjs.org/@epic-web/invariant/-/invariant-1.0.0.tgz","integrity": "sha512-lrTPqgvfFQtR/eY/qkIzp98OGdNJu0m5ji3q/nJI8v3SXkRKEnWiOxMmbvcSoAIzv/cGiuvRy57k4suKQSAdwA==",+ "dev": true,"license": "MIT"},"node_modules/@faker-js/faker": {"version": "10.4.0","resolved": "https://registry.npmjs.org/@faker-js/faker/-/faker-10.4.0.tgz","integrity": "sha512-sDBWI3yLy8EcDzgobvJTWq1MJYzAkQdpjXuPukga9wXonhpMRvd1Izuo2Qgwey2OiEoRIBr35RMU9HJRoOHzpw==",+ "dev": true,"funding": [{"type": "opencollective",@@ -1566,6 +1576,32 @@"url": "https://github.com/sponsors/isaacs"}},+ "node_modules/@nestjs-modules/mailer/node_modules/picomatch": {+ "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",+ "optional": true,+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/@nestjs-modules/mailer/node_modules/readdirp": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "picomatch": "^2.2.1"+ },+ "engines": {+ "node": ">=8.10.0"+ }+ },"node_modules/@nestjs/bull-shared": {"version": "11.0.4","resolved": "https://registry.npmjs.org/@nestjs/bull-shared/-/bull-shared-11.0.4.tgz",@@ -1718,6 +1754,7 @@"resolved": "https://registry.npmjs.org/@nestjs/common/-/common-11.1.18.tgz","integrity": "sha512-0sLq8Z+TIjLnz1Tqp0C/x9BpLbqpt1qEu0VcH4/fkE0y3F5JxhfK1AdKQ/SPbKhKgwqVDoY4gS8GQr2G6ujaWg==","license": "MIT",+ "peer": true,"dependencies": {"file-type": "21.3.4","iterare": "1.2.1",@@ -1765,6 +1802,7 @@"integrity": "sha512-wR3DtGyk/LUAiPtbXDuWJJwVkWElKBY0sqnTzf9d4uM3+X18FRZhK7WFc47czsIGOdWuRsMeLYV+1Z9dO4zDEQ==","hasInstallScript": true,"license": "MIT",+ "peer": true,"dependencies": {"@nuxt/opencollective": "0.4.1","fast-safe-stringify": "2.1.1",@@ -1848,6 +1886,7 @@"resolved": "https://registry.npmjs.org/@nestjs/platform-express/-/platform-express-11.1.18.tgz","integrity": "sha512-s6GdHMTa3qx0fJewR74Xa30ysPHfBEqxIwZ7BGSTLoAEQ1vTP24urNl+b6+s49NFLEIOyeNho5fN/9/I17QlOw==","license": "MIT",+ "peer": true,"dependencies": {"cors": "2.8.6","express": "5.2.1",@@ -1869,6 +1908,7 @@"resolved": "https://registry.npmjs.org/@nestjs/platform-socket.io/-/platform-socket.io-11.1.18.tgz","integrity": "sha512-DiFRpMIdFaHqZQFwqLqGHMdNurrKVkRkMHxIrecjooPHJNNIMgrbpYZ+oJW8hpwifUyZUL4r4uXXRy4+yFEMjA==","license": "MIT",+ "peer": true,"dependencies": {"socket.io": "4.8.3","tslib": "2.8.1"@@ -1951,6 +1991,7 @@"resolved": "https://registry.npmjs.org/@nestjs/terminus/-/terminus-11.1.1.tgz","integrity": "sha512-Ssql79H+EQY/Wg108eJqN4NiNsO/tLrj+qbzOWSQUf2JE4vJQ2RG3WTqUOrYjfjWmVHD3+Ys0+azed7LSMKScw==","license": "MIT",+ "peer": true,"dependencies": {"boxen": "5.1.2","check-disk-space": "3.4.0"@@ -2021,6 +2062,7 @@"resolved": "https://registry.npmjs.org/@nestjs/typeorm/-/typeorm-11.0.1.tgz","integrity": "sha512-8rw/nKT0S+L+MkzgE9F2/mox7mAgsPlwfzmW9gsESN1lmQtIrVEfiiBwC2O8+guS1jBfQehJIdcdUj2OAp4VUQ==","license": "MIT",+ "peer": true,"peerDependencies": {"@nestjs/common": "^10.0.0 || ^11.0.0","@nestjs/core": "^10.0.0 || ^11.0.0",@@ -2034,6 +2076,7 @@"resolved": "https://registry.npmjs.org/@nestjs/websockets/-/websockets-11.1.18.tgz","integrity": "sha512-HLO/QGlJoJaMMDphgjbcIwW7/8EA8nnFQjf+qPvA+wWLLfPKoiFPUezc5m9YgN2A7jmzwo6YmEAXeHyqO9tvTw==","license": "MIT",+ "peer": true,"dependencies": {"iterare": "1.2.1","object-hash": "3.0.0",@@ -2123,6 +2166,7 @@"resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz","integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==","license": "Apache-2.0",+ "peer": true,"engines": {"node": ">=8.0.0"}@@ -2144,6 +2188,7 @@"resolved": "https://registry.npmjs.org/@opentelemetry/context-async-hooks/-/context-async-hooks-2.6.1.tgz","integrity": "sha512-XHzhwRNkBpeP8Fs/qjGrAf9r9PRv67wkJQ/7ZPaBQQ68DYlTBBx5MF9LvPx7mhuXcDessKK2b+DcxqwpgkcivQ==","license": "Apache-2.0",+ "peer": true,"engines": {"node": "^18.19.0 || >=20.6.0"},@@ -2156,6 +2201,7 @@"resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-2.6.1.tgz","integrity": "sha512-8xHSGWpJP9wBxgBpnqGL0R3PbdWQndL1Qp50qrg71+B28zK5OQmUgcDKLJgzyAAV38t4tOyLMGDD60LneR5W8g==","license": "Apache-2.0",+ "peer": true,"dependencies": {"@opentelemetry/semantic-conventions": "^1.29.0"},@@ -2580,6 +2626,7 @@"resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-2.6.1.tgz","integrity": "sha512-lID/vxSuKWXM55XhAKNoYXu9Cutoq5hFdkbTdI/zDKQktXzcWBVhNsOkiZFTMU9UtEWuGRNe0HUgmsFldIdxVA==","license": "Apache-2.0",+ "peer": true,"dependencies": {"@opentelemetry/core": "2.6.1","@opentelemetry/semantic-conventions": "^1.29.0"@@ -2596,6 +2643,7 @@"resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-2.6.1.tgz","integrity": "sha512-r86ut4T1e8vNwB35CqCcKd45yzqH6/6Wzvpk2/cZB8PsPLlZFTvrh8yfOS3CYZYcUmAx4hHTZJ8AO8Dj8nrdhw==","license": "Apache-2.0",+ "peer": true,"dependencies": {"@opentelemetry/core": "2.6.1","@opentelemetry/resources": "2.6.1",@@ -2613,6 +2661,7 @@"resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.40.0.tgz","integrity": "sha512-cifvXDhcqMwwTlTK04GBNeIe7yyo28Mfby85QXFe1Yk8nmi36Ab/5UQwptOx84SsoGNRg+EVSjwzfSZMy6pmlw==","license": "Apache-2.0",+ "peer": true,"engines": {"node": ">=14"}@@ -4142,6 +4191,7 @@"version": "3.3.5","resolved": "https://registry.npmjs.org/@sentry/cli/-/cli-3.3.5.tgz","integrity": "sha512-eyLHTj0rpeCsOUX+1ZU8UEWRXy6nXvTXNdhtAt1t6YXan9gSsAexZf28zVmDcYcP8WRbK0D2JMLp7NcaQCQgEA==",+ "dev": true,"hasInstallScript": true,"license": "FSL-1.1-MIT","dependencies": {@@ -4171,6 +4221,7 @@"version": "3.3.5","resolved": "https://registry.npmjs.org/@sentry/cli-darwin/-/cli-darwin-3.3.5.tgz","integrity": "sha512-E/SIY6+j2nt6Ri9nMt78sYle3LiF6uZyz4HGmvcEMU6HXjegmAayhy0J10JST+vZTzN6VixD8sUsa5UeJiOPcg==",+ "dev": true,"license": "FSL-1.1-MIT","optional": true,"os": [@@ -4187,6 +4238,7 @@"cpu": ["arm"],+ "dev": true,"license": "FSL-1.1-MIT","optional": true,"os": [@@ -4205,6 +4257,7 @@"cpu": ["arm64"],+ "dev": true,"license": "FSL-1.1-MIT","optional": true,"os": [@@ -4224,6 +4277,7 @@"x86","ia32"],+ "dev": true,"license": "FSL-1.1-MIT","optional": true,"os": [@@ -4242,6 +4296,7 @@"cpu": ["x64"],+ "dev": true,"license": "FSL-1.1-MIT","optional": true,"os": [@@ -4260,6 +4315,7 @@"cpu": ["arm64"],+ "dev": true,"license": "FSL-1.1-MIT","optional": true,"os": [@@ -4277,6 +4333,7 @@"x86","ia32"],+ "dev": true,"license": "FSL-1.1-MIT","optional": true,"os": [@@ -4293,6 +4350,7 @@"cpu": ["x64"],+ "dev": true,"license": "FSL-1.1-MIT","optional": true,"os": [@@ -4691,6 +4749,7 @@"integrity": "sha512-sKYVuV7Sv9fbPIt/442koC7+IIwK5olP1KWeD88e/idgoJqDm3JV/YUiPwkoKK92ylff2MGxSz1CSjsXelx0YA==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"@types/body-parser": "*","@types/express-serve-static-core": "^5.0.0",@@ -4804,21 +4863,11 @@"resolved": "https://registry.npmjs.org/@types/node/-/node-25.5.2.tgz","integrity": "sha512-tO4ZIRKNC+MDWV4qKVZe3Ql/woTnmHDr5JD8UI5hn2pwBrHEwOEMZK7WlNb5RKB6EoJ02gwmQS9OrjuFnZYdpg==","license": "MIT",+ "peer": true,"dependencies": {"undici-types": "~7.18.0"}},- "node_modules/@types/node-fetch": {- "version": "2.6.13",- "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.13.tgz",- "integrity": "sha512-QGpRVpzSaUs30JBSGPjOg4Uveu384erbHBoT1zeONvyCfwQxIkUshLAOqN/k9EjGviPRmWTTe6aH2qySWKTVSw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/node": "*",- "form-data": "^4.0.4"- }- },"node_modules/@types/nodemailer": {"version": "8.0.0","resolved": "https://registry.npmjs.org/@types/nodemailer/-/nodemailer-8.0.0.tgz",@@ -4956,6 +5005,7 @@"version": "3.6.4","resolved": "https://registry.npmjs.org/@types/web-push/-/web-push-3.6.4.tgz","integrity": "sha512-GnJmSr40H3RAnj0s34FNTcJi1hmWFV5KXugE0mYWnYhgTAHLJ/dJKAwDmvPJYMke0RplY2XE9LnM4hqSqKIjhQ==",+ "dev": true,"license": "MIT","dependencies": {"@types/node": "*"@@ -5257,6 +5307,7 @@"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz","integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==","license": "MIT",+ "peer": true,"bin": {"acorn": "bin/acorn"},@@ -5319,6 +5370,7 @@"integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"fast-deep-equal": "^3.1.3","fast-uri": "^3.0.1",@@ -5531,13 +5583,6 @@"license": "MIT","optional": true},- "node_modules/asynckit": {- "version": "0.4.0",- "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",- "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",- "dev": true,- "license": "MIT"- },"node_modules/available-typed-arrays": {"version": "1.0.7","resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz",@@ -5805,6 +5850,7 @@}],"license": "MIT",+ "peer": true,"dependencies": {"baseline-browser-mapping": "^2.9.0","caniuse-lite": "^1.0.30001759",@@ -5883,6 +5929,7 @@"resolved": "https://registry.npmjs.org/bullmq/-/bullmq-5.76.3.tgz","integrity": "sha512-UBICMeWLYa+Dz7IGBNebXApQ1OIxNd4t6nX+AFPQ5gFA3sosW34PENe8Q1cvbjcbMTaU3xrKPorb6tM1czRSsw==","license": "MIT",+ "peer": true,"dependencies": {"cron-parser": "4.9.0","ioredis": "5.10.1",@@ -6176,13 +6223,15 @@"version": "0.5.1","resolved": "https://registry.npmjs.org/class-transformer/-/class-transformer-0.5.1.tgz","integrity": "sha512-SQa1Ws6hUbfC98vKGxZH3KFY0Y1lm5Zm0SY8XX9zbK7FJCyVEac3ATW0RIpwzW+oOfmHE5PMPufDG9hCfoEOMw==",- "license": "MIT"+ "license": "MIT",+ "peer": true},"node_modules/class-validator": {"version": "0.15.1","resolved": "https://registry.npmjs.org/class-validator/-/class-validator-0.15.1.tgz","integrity": "sha512-LqoS80HBBSCVhz/3KloUly0ovokxpdOLR++Al3J3+dHXWt9sTKlKd4eYtoxhxyUjoe5+UcIM+5k9MIxyBWnRTw==","license": "MIT",+ "peer": true,"dependencies": {"@types/validator": "^13.15.3","libphonenumber-js": "^1.11.1",@@ -6349,19 +6398,6 @@"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==","license": "MIT"},- "node_modules/combined-stream": {- "version": "1.0.8",- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",- "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",- "dev": true,- "license": "MIT",- "dependencies": {- "delayed-stream": "~1.0.0"- },- "engines": {- "node": ">= 0.8"- }- },"node_modules/commander": {"version": "4.1.1","resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",@@ -6565,6 +6601,7 @@"version": "10.1.0","resolved": "https://registry.npmjs.org/cross-env/-/cross-env-10.1.0.tgz","integrity": "sha512-GsYosgnACZTADcmEyJctkJIoqAhHjttw7RsFrVoJNXbsWWqaq6Ym+7kZjq6mS45O0jij6vtiReppKQEtqWy6Dw==",+ "dev": true,"license": "MIT","dependencies": {"@epic-web/invariant": "^1.0.0",@@ -6668,27 +6705,6 @@"node": ">=4"}},- "node_modules/cssnano": {- "version": "7.1.4",- "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-7.1.4.tgz",- "integrity": "sha512-T9PNS7y+5Nc9Qmu9mRONqfxG1RVY7Vuvky0XN6MZ+9hqplesTEwnj9r0ROtVuSwUVfaDhVlavuzWIVLUgm4hkQ==",- "license": "MIT",- "optional": true,- "dependencies": {- "cssnano-preset-default": "^7.0.12",- "lilconfig": "^3.1.3"- },- "engines": {- "node": "^18.12.0 || ^20.9.0 || >=22.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/cssnano"- },- "peerDependencies": {- "postcss": "^8.4.32"- }- },"node_modules/cssnano-preset-default": {"version": "7.0.12","resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-7.0.12.tgz",@@ -6904,16 +6920,6 @@"url": "https://github.com/sponsors/ljharb"}},- "node_modules/delayed-stream": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",- "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.4.0"- }- },"node_modules/denque": {"version": "2.1.0","resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz",@@ -7400,22 +7406,6 @@"node": ">= 0.4"}},- "node_modules/es-set-tostringtag": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",- "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",- "dev": true,- "license": "MIT",- "dependencies": {- "es-errors": "^1.3.0",- "get-intrinsic": "^1.2.6",- "has-tostringtag": "^1.0.2",- "hasown": "^2.0.2"- },- "engines": {- "node": ">= 0.4"- }- },"node_modules/escalade": {"version": "3.2.0","resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",@@ -7895,46 +7885,6 @@"node": "*"}},- "node_modules/form-data": {- "version": "4.0.5",- "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz",- "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==",- "dev": true,- "license": "MIT",- "dependencies": {- "asynckit": "^0.4.0",- "combined-stream": "^1.0.8",- "es-set-tostringtag": "^2.1.0",- "hasown": "^2.0.2",- "mime-types": "^2.1.12"- },- "engines": {- "node": ">= 6"- }- },- "node_modules/form-data/node_modules/mime-db": {- "version": "1.52.0",- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",- "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.6"- }- },- "node_modules/form-data/node_modules/mime-types": {- "version": "2.1.35",- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",- "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",- "dev": true,- "license": "MIT",- "dependencies": {- "mime-db": "1.52.0"- },- "engines": {- "node": ">= 0.6"- }- },"node_modules/formatly": {"version": "0.3.0","resolved": "https://registry.npmjs.org/formatly/-/formatly-0.3.0.tgz",@@ -8767,15 +8717,6 @@"url": "https://opencollective.com/ioredis"}},- "node_modules/ip-range-check": {- "version": "0.2.0",- "resolved": "https://registry.npmjs.org/ip-range-check/-/ip-range-check-0.2.0.tgz",- "integrity": "sha512-oaM3l/3gHbLlt/tCWLvt0mj1qUaI+STuRFnUvARGCujK9vvU61+2JsDpmkMzR4VsJhuFXWWgeKKVnwwoFfzCqw==",- "license": "MIT",- "dependencies": {- "ipaddr.js": "^1.0.1"- }- },"node_modules/ipaddr.js": {"version": "1.9.1","resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",@@ -10555,6 +10496,7 @@"resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.20.0.tgz","integrity": "sha512-eCLUs7BNbgA6nf/MZXsaBO1SfGs0LtLVrJD3WeWq+jPLDWkSufTD+aGMwykfUVPdZnblaUK1a8G/P63cl9FkKg==","license": "MIT",+ "peer": true,"dependencies": {"aws-ssl-profiles": "^1.1.2","denque": "^2.1.0",@@ -10820,6 +10762,7 @@"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-8.0.5.tgz","integrity": "sha512-0PF8Yb1yZuQfQbq+5/pZJrtF6WQcjTd5/S4JOHs9PGFxuTqoB/icwuB44pOdURHJbRKX1PPoJZtY7R4VUoCC8w==","license": "MIT-0",+ "peer": true,"engines": {"node": ">=6.0.0"}@@ -11333,6 +11276,7 @@"resolved": "https://registry.npmjs.org/passport/-/passport-0.7.0.tgz","integrity": "sha512-cPLl+qZpSc+ireUvt+IzqbED1cHHkDoVYMo30jbJIdOOjQ1MQYZBPiNvmi8UM6lJuOpTPXJGZQk0DtC4y61MYQ==","license": "MIT",+ "peer": true,"dependencies": {"passport-strategy": "1.x.x","pause": "0.0.1",@@ -11533,35 +11477,6 @@"node": ">= 0.4"}},- "node_modules/postcss": {- "version": "8.5.12",- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.12.tgz",- "integrity": "sha512-W62t/Se6rA0Az3DfCL0AqJwXuKwBeYg6nOaIgzP+xZ7N5BFCI7DYi1qs6ygUYT6rvfi6t9k65UMLJC+PHZpDAA==",- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/postcss"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "optional": true,- "dependencies": {- "nanoid": "^3.3.11",- "picocolors": "^1.1.1",- "source-map-js": "^1.2.1"- },- "engines": {- "node": "^10 || ^12 || >=14"- }- },"node_modules/postcss-calc": {"version": "10.1.1","resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-10.1.1.tgz",@@ -12232,6 +12147,7 @@"version": "2.0.3","resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz","integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",+ "dev": true,"license": "MIT","engines": {"node": ">=0.4.0"@@ -12300,6 +12216,7 @@"version": "1.1.0","resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz","integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",+ "dev": true,"license": "MIT"},"node_modules/pug": {@@ -12742,6 +12659,7 @@"version": "6.1.3","resolved": "https://registry.npmjs.org/rimraf/-/rimraf-6.1.3.tgz","integrity": "sha512-LKg+Cr2ZF61fkcaK1UdkH2yEBBKnYjTyWzTJT6KNPcSPaiT7HSdhtMXQuN5wkTX0Xu72KQ1l8S42rlmexS2hSA==",+ "dev": true,"license": "BlueOak-1.0.0","dependencies": {"glob": "^13.0.3",@@ -12761,6 +12679,7 @@"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"@@ -12770,6 +12689,7 @@"version": "5.0.5","resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.5.tgz","integrity": "sha512-VZznLgtwhn+Mact9tfiwx64fA9erHH/MCXEUfB/0bX/6Fz6ny5EGTXYltMocqg4xFAQZtnO3DHWWXi8RiuN7cQ==",+ "dev": true,"license": "MIT","dependencies": {"balanced-match": "^4.0.2"@@ -12782,6 +12702,7 @@"version": "13.0.6","resolved": "https://registry.npmjs.org/glob/-/glob-13.0.6.tgz","integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==",+ "dev": true,"license": "BlueOak-1.0.0","dependencies": {"minimatch": "^10.2.2",@@ -12799,6 +12720,7 @@"version": "10.2.4","resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.4.tgz","integrity": "sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==",+ "dev": true,"license": "BlueOak-1.0.0","dependencies": {"brace-expansion": "^5.0.2"@@ -12814,6 +12736,7 @@"version": "2.0.2","resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz","integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==",+ "dev": true,"license": "BlueOak-1.0.0","dependencies": {"lru-cache": "^11.0.0",@@ -12976,6 +12899,7 @@"integrity": "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"fast-deep-equal": "^3.1.1","fast-json-stable-stringify": "^2.0.0",@@ -13777,6 +13701,7 @@"resolved": "https://registry.npmjs.org/telegraf/-/telegraf-4.16.3.tgz","integrity": "sha512-yjEu2NwkHlXu0OARWoNhJlIjX09dRktiMQFsM678BAH/PEPVwctzL67+tvXqLCRQQvm3SDtki2saGO9hLlz68w==","license": "MIT",+ "peer": true,"dependencies": {"@telegraf/types": "^7.1.0","abort-controller": "^3.0.0",@@ -13809,6 +13734,7 @@"integrity": "sha512-t/R3R/n0MSwnnazuPpPNVO60LX0SKL45pyl9YlvxIdkH0Of7D5qM2EVe+yASRIlY5pZ73nclYJfNANGWPwFDZw==","devOptional": true,"license": "BSD-2-Clause",+ "peer": true,"dependencies": {"@jridgewell/source-map": "^0.3.3","acorn": "^8.15.0",@@ -14168,6 +14094,7 @@"resolved": "https://registry.npmjs.org/typeorm/-/typeorm-0.3.28.tgz","integrity": "sha512-6GH7wXhtfq2D33ZuRXYwIsl/qM5685WZcODZb7noOOcRMteM9KF2x2ap3H0EBjnSV0VO4gNAfJT5Ukp0PkOlvg==","license": "MIT",+ "peer": true,"dependencies": {"@sqltools/formatter": "^1.2.5","ansis": "^4.2.0",@@ -14319,6 +14246,7 @@"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz","integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==","license": "Apache-2.0",+ "peer": true,"bin": {"tsc": "bin/tsc","tsserver": "bin/tsserver"@@ -14405,6 +14333,7 @@"version": "6.24.1","resolved": "https://registry.npmjs.org/undici/-/undici-6.24.1.tgz","integrity": "sha512-sC+b0tB1whOCzbtlx20fx3WgCXwkW627p4EA9uM+/tNNPkSS+eSEld6pAs9nDv7WbY1UUljBMYPtu9BCOrCWKA==",+ "devOptional": true,"license": "MIT","engines": {"node": ">=18.17"@@ -14660,6 +14589,7 @@"integrity": "sha512-jTywjboN9aHxFlToqb0K0Zs9SbBoW4zRUlGzI2tYNxVYcEi/IPpn+Xi4ye5jTLvX2YeLuic/IvxNot+Q1jMoOw==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"@types/eslint-scope": "^3.7.7","@types/estree": "^1.0.8",@@ -15102,6 +15032,7 @@"resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz","integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==","license": "MIT",+ "peer": true,"funding": {"url": "https://github.com/sponsors/colinhacks"}diff --git a/backend/package.json b/backend/package.jsonindex 79ff1edfd..b84a1cbe9 100644--- a/backend/package.json+++ b/backend/package.json@@ -18,7 +18,7 @@"start:dev": "cross-env NODE_ENV=development nest start --watch","start:community": "cross-env NODE_ENV=development nest start community --watch","start:debug": "cross-env NODE_ENV=development nest start --debug --watch",- "start:prod": "npm run clickhouse:initialise && cross-env NODE_ENV=cloud node dist/main",+ "start:prod": "npm run clickhouse:initialise && NODE_ENV=cloud node dist/main","lint": "oxlint apps/cloud/src apps/community/src","lint:fix": "oxlint --fix apps/cloud/src apps/community/src","lint:tsc": "tsc --noEmit",@@ -29,7 +29,6 @@"dependencies": {"@ai-sdk/openai": "^3.0.52","@clickhouse/client": "^1.18.2",- "@faker-js/faker": "^10.4.0","@google-analytics/data": "^5.2.1","@googleapis/searchconsole": "^6.0.1","@nestjs-modules/mailer": "^2.3.4",@@ -47,11 +46,9 @@"@nestjs/terminus": "^11.1.1","@nestjs/typeorm": "^11.0.1","@nestjs/websockets": "^11.1.18",- "@sentry/cli": "^3.3.5","@sentry/nestjs": "^10.47.0","@sentry/profiling-node": "^10.47.0","@swetrix/node": "^3.2.0",- "@types/web-push": "^3.6.4","@ua-parser-js/pro-business": "^2.0.9","ai": "^6.0.153","bcrypt": "^6.0.0",@@ -60,7 +57,6 @@"class-validator": "^0.15.1","cookie-parser": "^1.4.7","countries-and-timezones": "^3.8.0",- "cross-env": "^10.1.0","crypto-js": "^4.2.0","csv-parse": "^6.2.1","dayjs": "^1.11.20",@@ -72,7 +68,6 @@"handlebars": "^4.7.9","i18n-iso-countries": "^7.14.0","ioredis": "^5.10.1",- "ip-range-check": "^0.2.0","isbot": "^5.1.37","jsonwebtoken": "^9.0.3","jwks-rsa": "^4.0.1",@@ -81,7 +76,6 @@"mysql2": "^3.20.0","nestjs-i18n": "^10.6.0","nestjs-telegraf": "^2.9.1",- "node-fetch": "^2.7.0","nodemailer": "^8.0.5","otplib": "^13.4.0","passport": "^0.7.0",@@ -90,7 +84,6 @@"php-serialize": "^5.1.3","reflect-metadata": "^0.2.2","request-filtering-agent": "^3.2.0",- "rimraf": "^6.1.3","rxjs": "^7.8.2","sns-payload-validator": "^2.1.0","socket.io": "^4.8.3",@@ -101,8 +94,10 @@"zod": "^4.3.6"},"devDependencies": {+ "@faker-js/faker": "^10.4.0","@nestjs/cli": "^11.0.18","@nestjs/schematics": "^11.0.10",+ "@sentry/cli": "^3.3.5","@types/bcrypt": "^6.0.0","@types/cookie-parser": "^1.4.10","@types/express": "^5.0.6",@@ -110,12 +105,14 @@"@types/lodash": "^4.17.24","@types/multer": "^2.1.0","@types/node": "^25.5.2",- "@types/node-fetch": "^2.6.13","@types/nodemailer": "^8.0.0","@types/passport-jwt": "^4.0.1",+ "@types/web-push": "^3.6.4",+ "cross-env": "^10.1.0","knip": "^6.3.1","oxfmt": "^0.44.0","oxlint": "^1.59.0",+ "rimraf": "^6.1.3","ts-prune": "^0.10.3","typescript": "^5.9.3"},diff --git a/web/Dockerfile b/web/Dockerfileindex 1a1d5c272..1ee814bec 100644--- a/web/Dockerfile+++ b/web/Dockerfile@@ -45,6 +45,7 @@ COPY --from=production-deps /app/node_modules /app/node_modulesCOPY --from=build /app/build /app/buildCOPY --from=build /app/public /app/public-ADD . .+COPY package*.json .npmrc ./+COPY start.cjs ./start.cjsCMD ["npm", "run", "start"]diff --git a/web/app/pages/Project/View/ViewProject.helpers.tsx b/web/app/pages/Project/View/ViewProject.helpers.tsxindex 64b474e76..996080ad1 100644--- a/web/app/pages/Project/View/ViewProject.helpers.tsx+++ b/web/app/pages/Project/View/ViewProject.helpers.tsx@@ -4,7 +4,6 @@ import * as d3 from 'd3'import dayjs from 'dayjs'import utc from 'dayjs/plugin/utc'import timezonePlugin from 'dayjs/plugin/timezone'-import filesaver from 'file-saver'import type i18next from 'i18next'import JSZip from 'jszip'import _fill from 'lodash/fill'@@ -67,6 +66,7 @@ import {escapeHtml,} from '~/utils/generic'import countries from '~/utils/isoCountries'+import { downloadBlob } from '~/utils/download'import { TrafficLogResponse } from './interfaces/traffic'@@ -76,8 +76,6 @@ dayjs.extend(timezonePlugin)// Max length of annotation text displayed on chart (truncated with "...")const ANNOTATION_CHART_TEXT_MAX_LENGTH = 25-const { saveAs } = filesaver-const getAvg = (arr: any) => {const total = _reduce(arr, (acc, c) => acc + c, 0)return total / _size(arr)@@ -238,7 +236,7 @@ const onCSVExportClick = (})zip.generateAsync({ type: 'blob' }).then((content) => {- saveAs(content, getExportFilename(`swetrix-${pid}`))+ downloadBlob(content, getExportFilename(`swetrix-${pid}`))})}diff --git a/web/app/pages/Project/View/components/InteractiveMap.tsx b/web/app/pages/Project/View/components/InteractiveMap.tsxindex 1e4af8969..164037b86 100644--- a/web/app/pages/Project/View/components/InteractiveMap.tsx+++ b/web/app/pages/Project/View/components/InteractiveMap.tsx@@ -6,7 +6,7 @@ import {} from '@phosphor-icons/react'import cx from 'clsx'import { scalePow, scaleThreshold } from 'd3-scale'-import { Feature, GeoJsonObject } from 'geojson'+import type { Feature, GeoJsonObject } from 'geojson'import { Layer, Path } from 'leaflet'import 'leaflet/dist/leaflet.css'import _round from 'lodash/round'diff --git a/web/app/pages/Project/tabs/AskAI/AskAIView.tsx b/web/app/pages/Project/tabs/AskAI/AskAIView.tsxindex 3d2e308cf..96a19189d 100644--- a/web/app/pages/Project/tabs/AskAI/AskAIView.tsx+++ b/web/app/pages/Project/tabs/AskAI/AskAIView.tsx@@ -44,7 +44,6 @@ import { useTranslation } from 'react-i18next'import { useSearchParams, useFetcher } from 'react-router'import sanitizeHtml from 'sanitize-html'import { toast } from 'sonner'-import { useStickToBottom } from 'use-stick-to-bottom'import { askAI } from '~/api'import useSpeechRecognition from '~/hooks/useSpeechRecognition'@@ -978,9 +977,11 @@ const UserMessage = ({const ScrollToBottomButton = ({isAtBottom,+ isStreaming,scrollToBottom,}: {isAtBottom: boolean+ isStreaming: booleanscrollToBottom: () => void}) => {const { t } = useTranslation('common')@@ -991,14 +992,85 @@ const ScrollToBottomButton = ({<buttontype='button'onClick={scrollToBottom}- className='absolute bottom-4 left-1/2 z-10 flex h-8 w-8 -translate-x-1/2 items-center justify-center rounded-full border border-gray-200 bg-white text-gray-700 transition-all hover:bg-gray-50 dark:border-slate-800/50 dark:bg-slate-900 dark:text-gray-200 hover:dark:bg-slate-700'- aria-label={t('project.askAi.scrollToBottom')}+ className='absolute bottom-32 left-1/2 z-30 flex h-10 w-10 -translate-x-1/2 items-center justify-center rounded-full bg-white text-gray-800 ring-1 ring-gray-200/80 transition-colors hover:bg-gray-50 focus:ring-2 focus:ring-slate-900 focus:outline-hidden dark:bg-slate-900 dark:text-gray-100 dark:ring-slate-700/80 dark:hover:bg-slate-800 dark:focus:ring-slate-300'+ aria-label={+ isStreaming+ ? t('project.askAi.thinking')+ : t('project.askAi.scrollToBottom')+ }>- <ArrowDownIcon className='h-4 w-4' />+ {isStreaming ? (+ <span className='flex items-center gap-1'>+ {[0, 1, 2].map((index) => (+ <span+ key={index}+ className='h-1.5 w-1.5 animate-bounce rounded-full bg-current'+ style={{ animationDelay: `${index * 120}ms` }}+ />+ ))}+ </span>+ ) : (+ <ArrowDownIcon className='h-5 w-5' />+ )}</button>)}+const SCROLL_BOTTOM_THRESHOLD = 96++const useChatScroll = () => {+ const scrollRef = useRef<HTMLDivElement>(null)+ const contentRef = useRef<HTMLDivElement>(null)+ const isAtBottomRef = useRef(true)+ const [isAtBottom, setIsAtBottom] = useState(true)++ const updateIsAtBottom = useCallback(() => {+ const scrollEl = scrollRef.current+ if (!scrollEl) return++ const distanceFromBottom =+ scrollEl.scrollHeight - scrollEl.scrollTop - scrollEl.clientHeight+ const nextIsAtBottom = distanceFromBottom <= SCROLL_BOTTOM_THRESHOLD++ if (isAtBottomRef.current !== nextIsAtBottom) {+ setIsAtBottom(nextIsAtBottom)+ }+ isAtBottomRef.current = nextIsAtBottom+ }, [])++ const scrollToBottom = useCallback((behavior: ScrollBehavior = 'smooth') => {+ const scrollEl = scrollRef.current+ if (!scrollEl) return++ scrollEl.scrollTo({+ top: scrollEl.scrollHeight,+ behavior,+ })+ isAtBottomRef.current = true+ setIsAtBottom(true)+ }, [])++ useEffect(() => {+ const scrollEl = scrollRef.current+ if (!scrollEl) return++ updateIsAtBottom()+ scrollEl.addEventListener('scroll', updateIsAtBottom, { passive: true })++ return () => {+ scrollEl.removeEventListener('scroll', updateIsAtBottom)+ }+ }, [updateIsAtBottom])++ return {+ scrollRef,+ contentRef,+ isAtBottom,+ isAtBottomRef,+ scrollToBottom,+ }+}+interface VoiceInputButtonProps {isListening: booleanisLoading: boolean@@ -1769,11 +1841,8 @@ const AskAIView = ({ projectId }: AskAIViewProps) => {const isLoadingChats = allChatsFetcher.state !== 'idle'- const { scrollRef, contentRef, isAtBottom, scrollToBottom } =- useStickToBottom({- resize: 'smooth',- initial: 'smooth',- })+ const { scrollRef, contentRef, isAtBottom, isAtBottomRef, scrollToBottom } =+ useChatScroll()const streamingContentRef = useRef('')const streamingReasoningRef = useRef('')@@ -2787,6 +2856,23 @@ const AskAIView = ({ projectId }: AskAIViewProps) => {const isEmpty = _isEmpty(messages) && !streamingMessageconst isChatActive = !isEmpty+ useEffect(() => {+ if (!isChatActive || !isAtBottomRef.current) return++ const frame = window.requestAnimationFrame(() => {+ scrollToBottom('auto')+ })++ return () => window.cancelAnimationFrame(frame)+ }, [+ messages,+ streamingMessage,+ isWaitingForResponse,+ isChatActive,+ isAtBottomRef,+ scrollToBottom,+ ])+const formatRelativeTime = useCallback((dateStr: string) => {const date = new Date(dateStr)@@ -3115,6 +3201,7 @@ const AskAIView = ({ projectId }: AskAIViewProps) => {</div><ScrollToBottomButtonisAtBottom={isAtBottom}+ isStreaming={isLoading}scrollToBottom={scrollToBottom}/></div>diff --git a/web/app/pages/Project/tabs/AskAI/exportHelpers.ts b/web/app/pages/Project/tabs/AskAI/exportHelpers.tsindex 7e9b96d8c..a4a59b01e 100644--- a/web/app/pages/Project/tabs/AskAI/exportHelpers.ts+++ b/web/app/pages/Project/tabs/AskAI/exportHelpers.ts@@ -1,5 +1,7 @@import type { TFunction } from 'i18next'+import { downloadText } from '~/utils/download'+import { parseSegments } from './contentSegments'export interface ExportMessagePart {@@ -169,13 +171,5 @@ export const getChatExportFilename = (}export const downloadMarkdown = (markdown: string, filename: string) => {- const blob = new Blob([markdown], { type: 'text/markdown;charset=utf-8' })- const url = URL.createObjectURL(blob)- const a = document.createElement('a')- a.href = url- a.download = filename- document.body.appendChild(a)- a.click()- document.body.removeChild(a)- setTimeout(() => URL.revokeObjectURL(url), 0)+ downloadText(markdown, filename, 'text/markdown;charset=utf-8')}diff --git a/web/app/ui/TimezonePicker.tsx b/web/app/ui/TimezonePicker.tsxindex f76594ddf..8bd5bd70f 100644--- a/web/app/ui/TimezonePicker.tsx+++ b/web/app/ui/TimezonePicker.tsx@@ -1,39 +1,84 @@import _find from 'lodash/find'import _includes from 'lodash/includes'import _reduce from 'lodash/reduce'-import spacetime from 'spacetime'-import soft from 'timezone-soft'import timezones from '~/lib/constants/timezones'import Select from './Select'-const options = _reduce(- Object.entries(timezones),- (selectOptions: any[], zone) => {- const now = spacetime.now(zone[0])- const tz = now.timezone()- const tzStrings = soft(zone[0])+const date = new Date()++const getTimezoneOffsetMinutes = (timeZone: string): number => {+ try {+ const parts = new Intl.DateTimeFormat('en-US', {+ timeZone,+ hour12: false,+ hourCycle: 'h23',+ year: 'numeric',+ month: '2-digit',+ day: '2-digit',+ hour: '2-digit',+ minute: '2-digit',+ second: '2-digit',+ }).formatToParts(date)++ const values = Object.fromEntries(+ parts.map((part) => [part.type, part.value]),+ )++ const asUtc = Date.UTC(+ Number(values.year),+ Number(values.month) - 1,+ Number(values.day),+ Number(values.hour),+ Number(values.minute),+ Number(values.second),+ )++ return Math.round((asUtc - date.getTime()) / 60000)+ } catch {+ return 0+ }+}- const abbr = now.isDST()- ? tzStrings[0].daylight?.abbr- : tzStrings[0].standard?.abbr- const altName = now.isDST()- ? tzStrings[0].daylight?.name- : tzStrings[0].standard?.name+const getTimezoneName = (+ timeZone: string,+ timeZoneName: 'short' | 'long',+): string | undefined => {+ try {+ return new Intl.DateTimeFormat('en-US', {+ timeZone,+ timeZoneName,+ })+ .formatToParts(date)+ .find((part) => part.type === 'timeZoneName')?.value+ } catch {+ return undefined+ }+}++const formatOffset = (offsetMinutes: number): string => {+ const sign = offsetMinutes < 0 ? '-' : ''+ const absolute = Math.abs(offsetMinutes)+ const hours = Math.trunc(absolute / 60)+ const minutes = absolute % 60- const min = tz.current.offset * 60+ return `${sign}${hours}:${String(minutes).padStart(2, '0')}`+}- const hr =- `${(min / 60) ^ 0}:` + (min % 60 === 0 ? '00' : Math.abs(min % 60))+const options = _reduce(+ Object.entries(timezones),+ (selectOptions: any[], zone) => {+ const offsetMinutes = getTimezoneOffsetMinutes(zone[0])+ const hr = formatOffset(offsetMinutes)const label = `(GMT${_includes(hr, '-') ? hr : `+${hr}`}) ${zone[1]}`selectOptions.push({- value: tz.name,+ value: zone[0],label,- offset: tz.current.offset,- abbrev: abbr,- altName,+ offset: offsetMinutes / 60,+ abbrev: getTimezoneName(zone[0], 'short'),+ altName: getTimezoneName(zone[0], 'long'),})return selectOptionsdiff --git a/web/app/utils/download.ts b/web/app/utils/download.tsnew file mode 100644index 000000000..0279bc279--- /dev/null+++ b/web/app/utils/download.ts@@ -0,0 +1,18 @@+export const downloadBlob = (blob: Blob, filename: string) => {+ const url = URL.createObjectURL(blob)+ const anchor = document.createElement('a')+ anchor.href = url+ anchor.download = filename+ document.body.appendChild(anchor)+ anchor.click()+ document.body.removeChild(anchor)+ setTimeout(() => URL.revokeObjectURL(url), 0)+}++export const downloadText = (+ text: string,+ filename: string,+ type = 'text/plain;charset=utf-8',+) => {+ downloadBlob(new Blob([text], { type }), filename)+}diff --git a/web/package-lock.json b/web/package-lock.jsonindex 2940cf3da..a5e278688 100644--- a/web/package-lock.json+++ b/web/package-lock.json@@ -14,10 +14,8 @@"@react-router/node": "^7.14.0","@react-router/serve": "^7.14.0","@swetrix/node": "^3.2.0",- "@tailwindcss/vite": "^4.2.2","@takumi-rs/image-response": "^0.73.1","@tanstack/react-virtual": "^3.13.23",- "@types/leaflet": "^1.9.21","@ua-parser-js/pro-business": "^2.0.9","billboard.js": "^3.18.0","boring-avatars": "^2.0.4",@@ -26,9 +24,7 @@"d3-scale": "^4.0.2","dayjs": "^1.11.20","fast-xml-parser": "^5.5.11",- "file-saver": "^2.0.5","framer-motion": "^12.38.0",- "geojson": "^0.5.0","i18n-iso-countries": "^7.14.0","i18next": "^26.0.4","i18next-browser-languagedetector": "^8.2.1",@@ -52,11 +48,8 @@"sanitize-html": "^2.17.2","simple-icons": "^16.15.0","sonner": "^2.0.7",- "spacetime": "^7.12.0","swetrix": "^4.2.0","tailwind-merge": "^3.5.0",- "timezone-soft": "^1.5.2",- "use-stick-to-bottom": "^1.1.3","vaul": "^1.1.2"},"devDependencies": {@@ -65,14 +58,16 @@"@react-router/dev": "^7.14.0","@tailwindcss/forms": "^0.5.11","@tailwindcss/typography": "^0.5.19",+ "@tailwindcss/vite": "^4.2.2","@types/d3": "^7.4.3",- "@types/file-saver": "^2.0.7",+ "@types/leaflet": "^1.9.21","@types/lodash": "^4.17.24","@types/node": "^25.5.2","@types/react": "^19.2.14","@types/react-dom": "^19.2.3","@types/sanitize-html": "^2.16.1","cross-env": "^10.1.0",+ "geojson": "^0.5.0","knip": "^6.3.1","oxfmt": "^0.44.0","oxlint": "^1.59.0",@@ -573,6 +568,7 @@"version": "1.9.1","resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.9.1.tgz","integrity": "sha512-mukuNALVsoix/w1BJwFzwXBN/dHeejQtuVzcDsfOEsdpCumXb/E9j8w11h5S54tT1xhifGfbbSm/ICrObRb3KA==",+ "dev": true,"license": "MIT","optional": true,"dependencies": {@@ -584,6 +580,7 @@"version": "1.9.1","resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.1.tgz","integrity": "sha512-VYi5+ZVLhpgK4hQ0TAjiQiZ6ol0oe4mBx7mVv7IflsiEp0OWoVsp/+f9Vc1hOhE0TtkORVrI1GvzyreqpgWtkA==",+ "dev": true,"license": "MIT","optional": true,"dependencies": {@@ -594,6 +591,7 @@"version": "1.2.0","resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.0.tgz","integrity": "sha512-N10dEJNSsUx41Z6pZsXU8FjPjpBEplgH24sfkmITrBED1/U2Esum9F3lfLrMjKHHjmi557zQn7kR9R+XWXu5Rg==",+ "dev": true,"license": "MIT","optional": true,"dependencies": {@@ -1143,6 +1141,7 @@"version": "0.3.13","resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz","integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",+ "dev": true,"license": "MIT","dependencies": {"@jridgewell/sourcemap-codec": "^1.5.0",@@ -1153,6 +1152,7 @@"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",@@ -1163,6 +1163,7 @@"version": "3.1.2","resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz","integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",+ "dev": true,"license": "MIT","engines": {"node": ">=6.0.0"@@ -1172,12 +1173,14 @@"version": "1.5.5","resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz","integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",+ "dev": true,"license": "MIT"},"node_modules/@jridgewell/trace-mapping": {"version": "0.3.31","resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz","integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",+ "dev": true,"license": "MIT","dependencies": {"@jridgewell/resolve-uri": "^3.1.0",@@ -1194,6 +1197,7 @@"version": "1.1.3","resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.3.tgz","integrity": "sha512-xK9sGVbJWYb08+mTJt3/YV24WxvxpXcXtP6B172paPZ+Ts69Re9dAr7lKwJoeIx8OoeuimEiRZ7umkiUVClmmQ==",+ "dev": true,"license": "MIT","optional": true,"dependencies": {@@ -4232,6 +4236,7 @@"version": "4.2.2","resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.2.2.tgz","integrity": "sha512-pXS+wJ2gZpVXqFaUEjojq7jzMpTGf8rU6ipJz5ovJV6PUGmlJ+jvIwGrzdHdQ80Sg+wmQxUFuoW1UAAwHNEdFA==",+ "dev": true,"license": "MIT","dependencies": {"@jridgewell/remapping": "^2.3.5",@@ -4247,6 +4252,7 @@"version": "4.2.2","resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.2.2.tgz","integrity": "sha512-qEUA07+E5kehxYp9BVMpq9E8vnJuBHfJEC0vPC5e7iL/hw7HR61aDKoVoKzrG+QKp56vhNZe4qwkRmMC0zDLvg==",+ "dev": true,"license": "MIT","engines": {"node": ">= 20"@@ -4273,6 +4279,7 @@"cpu": ["arm64"],+ "dev": true,"license": "MIT","optional": true,"os": [@@ -4289,6 +4296,7 @@"cpu": ["arm64"],+ "dev": true,"license": "MIT","optional": true,"os": [@@ -4305,6 +4313,7 @@"cpu": ["x64"],+ "dev": true,"license": "MIT","optional": true,"os": [@@ -4321,6 +4330,7 @@"cpu": ["x64"],+ "dev": true,"license": "MIT","optional": true,"os": [@@ -4337,6 +4347,7 @@"cpu": ["arm"],+ "dev": true,"license": "MIT","optional": true,"os": [@@ -4353,6 +4364,7 @@"cpu": ["arm64"],+ "dev": true,"license": "MIT","optional": true,"os": [@@ -4369,6 +4381,7 @@"cpu": ["arm64"],+ "dev": true,"license": "MIT","optional": true,"os": [@@ -4385,6 +4398,7 @@"cpu": ["x64"],+ "dev": true,"license": "MIT","optional": true,"os": [@@ -4401,6 +4415,7 @@"cpu": ["x64"],+ "dev": true,"license": "MIT","optional": true,"os": [@@ -4425,6 +4440,7 @@"cpu": ["wasm32"],+ "dev": true,"license": "MIT","optional": true,"dependencies": {@@ -4446,6 +4462,7 @@"cpu": ["arm64"],+ "dev": true,"license": "MIT","optional": true,"os": [@@ -4462,6 +4479,7 @@"cpu": ["x64"],+ "dev": true,"license": "MIT","optional": true,"os": [@@ -4488,6 +4506,7 @@"version": "4.2.2","resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.2.2.tgz","integrity": "sha512-mEiF5HO1QqCLXoNEfXVA1Tzo+cYsrqV7w9Juj2wdUFyW07JRenqMG225MvPwr3ZD9N1bFQj46X7r33iHxLUW0w==",+ "dev": true,"license": "MIT","dependencies": {"@tailwindcss/node": "4.2.2",@@ -4705,6 +4724,7 @@"version": "0.10.1","resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz","integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==",+ "dev": true,"license": "MIT","optional": true,"dependencies": {@@ -5018,23 +5038,18 @@"dev": true,"license": "MIT"},- "node_modules/@types/file-saver": {- "version": "2.0.7",- "resolved": "https://registry.npmjs.org/@types/file-saver/-/file-saver-2.0.7.tgz",- "integrity": "sha512-dNKVfHd/jk0SkR/exKGj2ggkB45MAkzvWCaqLUUgkyjITkGNzH8H+yUwr+BLJUBjZOe9w8X3wgmXhZDRg1ED6A==",- "dev": true,- "license": "MIT"- },"node_modules/@types/geojson": {"version": "7946.0.16","resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.16.tgz","integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==",+ "dev": true,"license": "MIT"},"node_modules/@types/leaflet": {"version": "1.9.21","resolved": "https://registry.npmjs.org/@types/leaflet/-/leaflet-1.9.21.tgz","integrity": "sha512-TbAd9DaPGSnzp6QvtYngntMZgcRk+igFELwR2N99XZn7RXUdKgsXMR+28bUO0rPsWp8MIu/f47luLIQuSLYv/w==",+ "dev": true,"license": "MIT","dependencies": {"@types/geojson": "*"@@ -6322,6 +6337,7 @@"version": "2.1.2","resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz","integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",+ "dev": true,"license": "Apache-2.0","engines": {"node": ">=8"@@ -6456,6 +6472,7 @@"version": "5.20.1","resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.20.1.tgz","integrity": "sha512-Qohcme7V1inbAfvjItgw0EaxVX5q2rdVEZHRBrEQdRZTssLDGsL8Lwrznl8oQ/6kuTJONLaDcGjkNP247XEhcA==",+ "dev": true,"license": "MIT","dependencies": {"graceful-fs": "^4.2.4",@@ -6820,12 +6837,6 @@"node": "^12.20 || >= 14.13"}},- "node_modules/file-saver": {- "version": "2.0.5",- "resolved": "https://registry.npmjs.org/file-saver/-/file-saver-2.0.5.tgz",- "integrity": "sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA==",- "license": "MIT"- },"node_modules/fill-range": {"version": "7.1.1","resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",@@ -7087,6 +7098,7 @@"version": "0.5.0","resolved": "https://registry.npmjs.org/geojson/-/geojson-0.5.0.tgz","integrity": "sha512-/Bx5lEn+qRF4TfQ5aLu6NH+UKtvIv7Lhc487y/c8BdludrCTpiWf9wyI0RTyqg49MFefIAvFDuEi5Dfd/zgNxQ==",+ "dev": true,"license": "MIT","engines": {"node": ">= 0.10"@@ -7207,6 +7219,7 @@"version": "4.2.11","resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz","integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",+ "dev": true,"license": "ISC"},"node_modules/has-symbols": {@@ -7518,6 +7531,7 @@"version": "2.6.1","resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz","integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==",+ "dev": true,"license": "MIT","bin": {"jiti": "lib/jiti-cli.mjs"@@ -7673,6 +7687,7 @@"version": "1.32.0","resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz","integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",+ "dev": true,"license": "MPL-2.0","dependencies": {"detect-libc": "^2.0.3"@@ -7705,6 +7720,7 @@"cpu": ["arm64"],+ "dev": true,"license": "MPL-2.0","optional": true,"os": [@@ -7725,6 +7741,7 @@"cpu": ["arm64"],+ "dev": true,"license": "MPL-2.0","optional": true,"os": [@@ -7745,6 +7762,7 @@"cpu": ["x64"],+ "dev": true,"license": "MPL-2.0","optional": true,"os": [@@ -7765,6 +7783,7 @@"cpu": ["x64"],+ "dev": true,"license": "MPL-2.0","optional": true,"os": [@@ -7785,6 +7804,7 @@"cpu": ["arm"],+ "dev": true,"license": "MPL-2.0","optional": true,"os": [@@ -7805,6 +7825,7 @@"cpu": ["arm64"],+ "dev": true,"license": "MPL-2.0","optional": true,"os": [@@ -7825,6 +7846,7 @@"cpu": ["arm64"],+ "dev": true,"license": "MPL-2.0","optional": true,"os": [@@ -7845,6 +7867,7 @@"cpu": ["x64"],+ "dev": true,"license": "MPL-2.0","optional": true,"os": [@@ -7865,6 +7888,7 @@"cpu": ["x64"],+ "dev": true,"license": "MPL-2.0","optional": true,"os": [@@ -7885,6 +7909,7 @@"cpu": ["arm64"],+ "dev": true,"license": "MPL-2.0","optional": true,"os": [@@ -7905,6 +7930,7 @@"cpu": ["x64"],+ "dev": true,"license": "MPL-2.0","optional": true,"os": [@@ -7972,6 +7998,7 @@"version": "0.30.21","resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz","integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",+ "dev": true,"license": "MIT","dependencies": {"@jridgewell/sourcemap-codec": "^1.5.5"@@ -9678,12 +9705,6 @@"node": ">=0.10.0"}},- "node_modules/spacetime": {- "version": "7.12.0",- "resolved": "https://registry.npmjs.org/spacetime/-/spacetime-7.12.0.tgz",- "integrity": "sha512-n7iQdr/oiTc0Yc0m5/8lpqRPMxuD9c6Yk7F8Np5+jH7tawt+dJZeCLDHNnr2kP5tUlv1H0fazdCOE9EQUv0B3g==",- "license": "Apache-2.0"- },"node_modules/statuses": {"version": "2.0.2","resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",@@ -9773,12 +9794,14 @@"version": "4.2.2","resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.2.2.tgz","integrity": "sha512-KWBIxs1Xb6NoLdMVqhbhgwZf2PGBpPEiwOqgI4pFIYbNTfBXiKYyWoTsXgBQ9WFg/OlhnvHaY+AEpW7wSmFo2Q==",+ "dev": true,"license": "MIT"},"node_modules/tapable": {"version": "2.3.2","resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.2.tgz","integrity": "sha512-1MOpMXuhGzGL5TTCZFItxCc0AARf1EZFQkGqMm7ERKj8+Hgr5oLvJOVFcC+lRmR8hCe2S3jC4T5D7Vg/d7/fhA==",+ "dev": true,"license": "MIT","engines": {"node": ">=6"@@ -9788,12 +9811,6 @@"url": "https://opencollective.com/webpack"}},- "node_modules/timezone-soft": {- "version": "1.5.2",- "resolved": "https://registry.npmjs.org/timezone-soft/-/timezone-soft-1.5.2.tgz",- "integrity": "sha512-BUr+CfBfeWXJwFAuEzPO9uF+v6sy3pL5SKLkDg4vdEhsyXgbBnpFoBCW8oEKSNTqNq9YHbVOjNb31xE7WyGmrA==",- "license": "MIT"- },"node_modules/tinyglobby": {"version": "0.2.15","resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",@@ -10035,15 +10052,6 @@}}},- "node_modules/use-stick-to-bottom": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/use-stick-to-bottom/-/use-stick-to-bottom-1.1.3.tgz",- "integrity": "sha512-GgRLdeGhxBxpcbrBbEIEoOKUQ9d46/eaSII+wyv1r9Du+NbCn1W/OE+VddefvRP4+5w/1kATN/6g2/BAC/yowQ==",- "license": "MIT",- "peerDependencies": {- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"- }- },"node_modules/use-sync-external-store": {"version": "1.6.0","resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",diff --git a/web/package.json b/web/package.jsonindex 23eca2871..ebb9ca633 100644--- a/web/package.json+++ b/web/package.json@@ -27,10 +27,8 @@"@react-router/node": "^7.14.0","@react-router/serve": "^7.14.0","@swetrix/node": "^3.2.0",- "@tailwindcss/vite": "^4.2.2","@takumi-rs/image-response": "^0.73.1","@tanstack/react-virtual": "^3.13.23",- "@types/leaflet": "^1.9.21","@ua-parser-js/pro-business": "^2.0.9","billboard.js": "^3.18.0","boring-avatars": "^2.0.4",@@ -39,9 +37,7 @@"d3-scale": "^4.0.2","dayjs": "^1.11.20","fast-xml-parser": "^5.5.11",- "file-saver": "^2.0.5","framer-motion": "^12.38.0",- "geojson": "^0.5.0","i18n-iso-countries": "^7.14.0","i18next": "^26.0.4","i18next-browser-languagedetector": "^8.2.1",@@ -65,11 +61,8 @@"sanitize-html": "^2.17.2","simple-icons": "^16.15.0","sonner": "^2.0.7",- "spacetime": "^7.12.0","swetrix": "^4.2.0","tailwind-merge": "^3.5.0",- "timezone-soft": "^1.5.2",- "use-stick-to-bottom": "^1.1.3","vaul": "^1.1.2"},"devDependencies": {@@ -78,14 +71,16 @@"@react-router/dev": "^7.14.0","@tailwindcss/forms": "^0.5.11","@tailwindcss/typography": "^0.5.19",+ "@tailwindcss/vite": "^4.2.2","@types/d3": "^7.4.3",- "@types/file-saver": "^2.0.7",+ "@types/leaflet": "^1.9.21","@types/lodash": "^4.17.24","@types/node": "^25.5.2","@types/react": "^19.2.14","@types/react-dom": "^19.2.3","@types/sanitize-html": "^2.16.1","cross-env": "^10.1.0",+ "geojson": "^0.5.0","knip": "^6.3.1","oxfmt": "^0.44.0","oxlint": "^1.59.0",