diff --git a/.gitignore b/.gitignore index e92ccd0..ea15021 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,5 @@ __pycache__ .wheels .vendor .python3-deb -SRV/storage/subnets/* -SRV/storage/wifi/wifi.json -build/ +SRV/storage/devices/devices.json +SRV/storage/wifi/wifi.json \ No newline at end of file diff --git a/.woodpecker/.woodpecker.yml b/.woodpecker/.woodpecker.yml deleted file mode 100644 index 6220c93..0000000 --- a/.woodpecker/.woodpecker.yml +++ /dev/null @@ -1,137 +0,0 @@ -when: - event: manual - -steps: - checkout: - image: debian:latest - commands: - # ПОДГОТОВКА ГИТА И КЛОНИРОВАНИЕ GONETS - - apt update - - apt install -y git git-lfs - - git lfs install - - # УСТАНОВКА НЕОБХОДИМЫХ ЗАВИСИМОСТЕЙ НА СИСТЕМЕ - - apt update - - apt install -y python3 curl findutils grep sed openssh-server tree libnss3 libnss3-dev libnspr4 libnspr4-dev libasound2 libasound2-dev python3.11-venv python3-pip python3-poetry nodejs npm debhelper devscripts build-essential fakeroot dh-make dpkg-dev cmake libgirepository1.0-dev gobject-introspection libcairo2-dev pkg-config python3-dev libdbus-1-dev - - python3 --version - - node -v - - npm -v - raspberry - - # ПОДГОТОВКА СПИСКА PYTHON ЗАВИСИМОСТЕЙ GONETS - - rm -rf /usr/lib/python3.11/EXTERNALLY-MANAGED - - rm -rf /root/.local/share/pypoetry - - rm -rf /root/.poetry - - rm -rf /usr/bin/poetry - - pip install pipx - - pipx ensurepath - - pipx install poetry - - echo 'export PATH="$HOME/.local/bin:$PATH"' >> /root/.bashrc - - . /root/.bashrc - - poetry --version - - cd SRV - - poetry env activate - - poetry add poetry-plugin-export - - poetry install - - poetry self update - - rm -f requirements.txt - - poetry run poetry export -f requirements.txt --output requirements.txt --without-hashes - - # ПОДГОТОВКА И СБОРКА FRONTEND ЧАСТИ GONETS - - pwd - - cd .. - - pwd - - cd FRONT/DEV - - pwd - - npm install - - npm run package - - cd dist/gonets-linux-x64/resources/app - - pwd - - npm run build - - sed -i 's#href="/assets/#href="./assets/#g' dist/index.html - - sed -i 's#src="/assets/#src="./assets/#g' dist/index.html - - cd ../../../../.. - - pwd - - rm -rf BUILD/* - - cp -r DEV/dist/gonets-linux-x64/* BUILD/ - - rm -rf DEV - - # ИНИЦИАЛИЗАЦИЯ DEBIAN КОНФИГУРАЦИЙ ДЛЯ СБОРКИ - - cd .. - - pwd - - cd .. - - pwd - - mv gonets gonets-0.1 - - cd gonets-0.1 - - pwd - - ls - - DEBEMAIL="devteam@gossys.dev" DEBFULLNAME="GOSSYS LLC" dh_make --single -y --createorig - - cd debian/ - - rm -f *.ex - - rm -f README.* - - # КЛОНИРОВАНИЕ НЕОБХОДИМЫХ ШАБЛОНОВ КОНФИГОВ ДЕБИАНА ДЛЯ СБОРКИ - - mkdir -p /woodpecker/src/dev.gossys.dev/HybrydMain/templates - - git clone https://s.galanskiy:${GONETS}@dev.gossys.dev/s.galanskiy/gonets-debian-template.git /woodpecker/src/dev.gossys.dev/HybrydMain/templates - - mv /woodpecker/src/dev.gossys.dev/HybrydMain/templates/changelog /woodpecker/src/dev.gossys.dev/HybrydMain/gonets-0.1/debian/ - - mv /woodpecker/src/dev.gossys.dev/HybrydMain/templates/control /woodpecker/src/dev.gossys.dev/HybrydMain/gonets-0.1/debian/ - - mv /woodpecker/src/dev.gossys.dev/HybrydMain/templates/copyright /woodpecker/src/dev.gossys.dev/HybrydMain/gonets-0.1/debian/ - - mv /woodpecker/src/dev.gossys.dev/HybrydMain/templates/install /woodpecker/src/dev.gossys.dev/HybrydMain/gonets-0.1/debian/ - - mv /woodpecker/src/dev.gossys.dev/HybrydMain/templates/postinst /woodpecker/src/dev.gossys.dev/HybrydMain/gonets-0.1/debian/ - - mv /woodpecker/src/dev.gossys.dev/HybrydMain/templates/postrm /woodpecker/src/dev.gossys.dev/HybrydMain/gonets-0.1/debian/ - - mv /woodpecker/src/dev.gossys.dev/HybrydMain/templates/rules /woodpecker/src/dev.gossys.dev/HybrydMain/gonets-0.1/debian/ - - # СБОРКА ДЕБИАН ПАКЕТА - - cd .. - - pwd - - dpkg-buildpackage -us -uc -b - - # ИЗВЛЕЧЕНИЕ ВЕРСИИ ПАКЕТА ДЛЯ КОММИТА - - VERSION=$(dpkg-parsechangelog -l./debian/changelog --show-field Version) - - echo "VERSION=$VERSION" > version.env - - # КОММИТ И ТЕГ НА ВЕТКУ DEVELOP - - . ./version.env - - git config user.name "s.galanskiy" - - git config user.email "s.galanskiy@gossys.dev" - - git fetch --all --prune - - git branch -r - - git checkout -b "release/$VERSION" - - git commit -am "Релиз $VERSION" - - git tag -f "v$VERSION" - - git push "https://s.galanskiy:b4785198d18200dfed812dc4299575f736255bd7@dev.gossys.dev/HybrydMain/gonets.git" "release/$VERSION" - - git push -f https://s.galanskiy:b4785198d18200dfed812dc4299575f736255bd7@dev.gossys.dev/HybrydMain/gonets.git "v$VERSION" - - # СОЗДАНИЕ И ЗАГРУЗКА РЕЛИЗА ЧЕРЕЗ API - - | - VERSION=$(dpkg-parsechangelog -l./debian/changelog --show-field Version) - echo "VERSION=$VERSION" > version.env - - # Задать переменные - . ./version.env - TAG="v$VERSION" - - DEB_PATH=$(find .. -maxdepth 1 -type f -name "gonets_*_amd64.deb" | head -n 1) - - if [ ! -f "$DEB_PATH" ]; then - echo ".deb файл не найден по пути: $DEB_PATH" - exit 1 - fi - - RELEASE_JSON=$(curl -s -X POST "https://dev.gossys.dev/api/v1/repos/HybrydMain/gonets/releases" \ - -H "Authorization: token b4785198d18200dfed812dc4299575f736255bd7" \ - -H "Content-Type: application/json" \ - -d "{\"tag_name\": \"$TAG\", \"name\": \"Релиз $TAG\", \"body\": \"Сборка .deb пакета для версии $TAG\", \"draft\": false, \"prerelease\": true}") - - RELEASE_ID=$(echo "$RELEASE_JSON" | grep '"id":' | head -n1 | sed 's/[^0-9]*\([0-9]*\).*/\1/') - - if [ -z "$RELEASE_ID" ]; then - echo "Не удалось получить ID релиза из ответа:" - echo "$RELEASE_JSON" - exit 1 - fi - - curl -s -X POST \ - -H "Authorization: token b4785198d18200dfed812dc4299575f736255bd7" \ - -F "attachment=@$DEB_PATH" \ - "https://dev.gossys.dev/api/v1/repos/HybrydMain/gonets/releases/$RELEASE_ID/assets" || echo "Ошибка загрузки файла" \ No newline at end of file diff --git a/FRONT/BUILD/index.html b/FRONT/BUILD/index.html deleted file mode 100644 index 8f4d4d1..0000000 --- a/FRONT/BUILD/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - GoNets - - - - - -
- - \ No newline at end of file diff --git a/FRONT/BUILD/resources/app/src/components/UI/Dropdown/DeviceCard.tsx b/FRONT/BUILD/resources/app/src/components/UI/Dropdown/DeviceCard.tsx index cfed6c4..0345346 100644 --- a/FRONT/BUILD/resources/app/src/components/UI/Dropdown/DeviceCard.tsx +++ b/FRONT/BUILD/resources/app/src/components/UI/Dropdown/DeviceCard.tsx @@ -100,7 +100,7 @@ const DeviceCard: React.FC = ({ device, status }) => { - {device.hostname || 'Неизвестно'} + {device.hostname || device.ip} diff --git a/FRONT/BUILD/resources/app/src/components/UI/tables/TableScanner.tsx b/FRONT/BUILD/resources/app/src/components/UI/tables/TableScanner.tsx index e1b8c6f..320f625 100644 --- a/FRONT/BUILD/resources/app/src/components/UI/tables/TableScanner.tsx +++ b/FRONT/BUILD/resources/app/src/components/UI/tables/TableScanner.tsx @@ -87,7 +87,7 @@ const TableScanner = ({devices}:TableScannerProps) => { {devices.map((item, i) => ( - {item.hostname || 'Неизвестен'} + {item.hostname || item.ip} {item.vendor} {item.ip} {item.open_ports.join(', ') || '-'} diff --git a/FRONT/BUILD/resources/app/src/components/workSpace/modules/appModules/usersScanner/modules/ListUsers.tsx b/FRONT/BUILD/resources/app/src/components/workSpace/modules/appModules/usersScanner/modules/ListUsers.tsx index 1075a09..5c0099e 100644 --- a/FRONT/BUILD/resources/app/src/components/workSpace/modules/appModules/usersScanner/modules/ListUsers.tsx +++ b/FRONT/BUILD/resources/app/src/components/workSpace/modules/appModules/usersScanner/modules/ListUsers.tsx @@ -31,7 +31,7 @@ const ListUsers = ({loading, handleScan, devices, scanInitiated}: ListUsersProps return ( <> - {devices.length > 0 ? 'Обновить список' : 'Сканировать сеть'} + {devices.length > 0 ? 'Обновить список' : 'Сканировать узлы подсети'} {devices.length > 0 ? ( diff --git a/FRONT/BUILD/resources/app/src/components/workSpace/modules/appModules/usersScanner/modules/TableUsers.tsx b/FRONT/BUILD/resources/app/src/components/workSpace/modules/appModules/usersScanner/modules/TableUsers.tsx index ebe71a9..cd2e9c4 100644 --- a/FRONT/BUILD/resources/app/src/components/workSpace/modules/appModules/usersScanner/modules/TableUsers.tsx +++ b/FRONT/BUILD/resources/app/src/components/workSpace/modules/appModules/usersScanner/modules/TableUsers.tsx @@ -30,7 +30,7 @@ const ListUsers = ({loading, handleScan, devices, scanInitiated}: ListUsersProps return ( <> - {devices.length > 0 ? 'Обновить список' : 'Сканировать сеть'} + {devices.length > 0 ? 'Обновить список' : 'Сканировать узлы подсети'} {devices.length > 0 ? ( diff --git a/FRONT/BUILD/resources/app/src/components/workSpace/modules/appModules/usersScanner/userScanner.tsx b/FRONT/BUILD/resources/app/src/components/workSpace/modules/appModules/usersScanner/userScanner.tsx index cb816ca..dd3f035 100644 --- a/FRONT/BUILD/resources/app/src/components/workSpace/modules/appModules/usersScanner/userScanner.tsx +++ b/FRONT/BUILD/resources/app/src/components/workSpace/modules/appModules/usersScanner/userScanner.tsx @@ -163,7 +163,7 @@ export default function UserScanner() { return ( - {(!scanInitiated || loading) && (Сканирование пользователей в сети)} + {(!scanInitiated || loading) && (Сканирование узлов в подсети)} @@ -177,7 +177,7 @@ export default function UserScanner() { {loading ? ( - Сканирование сети + Сканирование узлов в подсети ) : selectedView.value == 1 ? ( diff --git a/FRONT/BUILD/resources/app/src/components/workSpace/modules/appModules/wifiScanner/WifiScanner.tsx b/FRONT/BUILD/resources/app/src/components/workSpace/modules/appModules/wifiScanner/WifiScanner.tsx index b24e367..9cabdd7 100644 --- a/FRONT/BUILD/resources/app/src/components/workSpace/modules/appModules/wifiScanner/WifiScanner.tsx +++ b/FRONT/BUILD/resources/app/src/components/workSpace/modules/appModules/wifiScanner/WifiScanner.tsx @@ -161,7 +161,7 @@ export function WifiScanner() { return ( - Сканирование Wi-Fi сети + Сканирование точек доступа Wi-Fi @@ -186,11 +186,11 @@ export function WifiScanner() { {loading ? ( - Сканирование сети + Сканирование точек доступа ) : ( 0 }> - {wifiNetworks.length > 0 ? 'Обновить список' : 'Сканировать сеть'} + {wifiNetworks.length > 0 ? 'Обновить список' : 'Сканировать точки доступа'} )} diff --git a/FRONT/BUILD/resources/app/src/components/workSpace/modules/workModules/networkInterfaces.tsx b/FRONT/BUILD/resources/app/src/components/workSpace/modules/workModules/networkInterfaces.tsx index d0325ef..1996ddd 100644 --- a/FRONT/BUILD/resources/app/src/components/workSpace/modules/workModules/networkInterfaces.tsx +++ b/FRONT/BUILD/resources/app/src/components/workSpace/modules/workModules/networkInterfaces.tsx @@ -76,7 +76,7 @@ export const NetworkInterfaces = ({ startConnection, ws }: Props) => { setHasInited(false) initializationAttempt.current = 0; - const newSocket = new WebSocket(`ws://${ws}:8001/api/v1`); + const newSocket = new WebSocket(`wss://${ws}:8001/api/v1`); let connectionTimeout; setSocket(newSocket); diff --git a/FRONT/BUILD/resources/app/src/components/workSpace/sideBar/toolSpace/devicesBar.tsx b/FRONT/BUILD/resources/app/src/components/workSpace/sideBar/toolSpace/devicesBar.tsx index dd5ca2b..8b919f4 100644 --- a/FRONT/BUILD/resources/app/src/components/workSpace/sideBar/toolSpace/devicesBar.tsx +++ b/FRONT/BUILD/resources/app/src/components/workSpace/sideBar/toolSpace/devicesBar.tsx @@ -115,7 +115,7 @@ export const DevicesBar = () => { const checkWebSocketAvailability = async (ip: string): Promise => { return new Promise((resolve) => { - const testSocket = new WebSocket(`ws://${ip}:8001/api/v1`); + const testSocket = new WebSocket(`wss://${ip}:8001/api/v1`); const timeout = setTimeout(() => { testSocket.close(); resolve(false); diff --git a/FRONT/DEV/index.tsx b/FRONT/DEV/index.tsx deleted file mode 100644 index eb6f456..0000000 --- a/FRONT/DEV/index.tsx +++ /dev/null @@ -1,61 +0,0 @@ -import React from 'react'; -import { createRoot } from 'react-dom/client'; -import { HashRouter } from 'react-router-dom'; -import { useIpStore } from './src/store'; -import { useEffect } from 'react'; -import { useCheckAdmin } from './src/utils/checkAdmin'; - -import { - ModalProvider, - useModalContext, - ThemeProvider -} from './src/store'; - -import WindowComponent from './src/components/modalwindows/modalWindow'; -import Router from './src/router'; -import { I18nProvider } from "./src/utils/i18n/provider"; -import { useLanguage } from "./src/hooks/useSettings"; - -const AppWithProviders = () => { - const currentLanguage = useLanguage(); - - return ( - - - - - - - - - - ); -}; - -const MainComponent = () => { - const checkAdmin = useCheckAdmin(); - const { ipAddress } = useIpStore(); - - useEffect(() => { - const checkAdminStatus = async () => { - await checkAdmin(); - }; - checkAdminStatus(); - }, [ipAddress]); - - const { isOpen, modalType, modalData } = useModalContext(); - return ( - <> - - - - ); -}; - -const container = document.getElementById('root'); -if (!container) { - throw new Error('Root element with id "root" not found'); -} - -const root = createRoot(container); -root.render(); \ No newline at end of file diff --git a/FRONT/DEV/package-lock.json b/FRONT/DEV/package-lock.json deleted file mode 100644 index f219eda..0000000 --- a/FRONT/DEV/package-lock.json +++ /dev/null @@ -1,4966 +0,0 @@ -{ - "name": "gonets", - "version": "0.0.2", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "gonets", - "version": "0.0.2", - "dependencies": { - "@iconify/icons-ic": "^1.2.13", - "@iconify/icons-ph": "^1.2.5", - "@iconify/react": "^5.2.0", - "@reduxjs/toolkit": "^2.6.0", - "@xyflow/react": "^12.3.5", - "axios": "^1.7.9", - "react": "^18.3.1", - "react-dom": "^18.3.1", - "react-flow-renderer": "^10.3.17", - "react-redux": "^9.2.0", - "react-router-dom": "^7.0.2", - "styled-components": "^6.1.13", - "zustand": "^5.0.3" - }, - "devDependencies": { - "@iconify-json/ic": "^1.2.2", - "@types/react": "^18.0.28", - "@types/react-dom": "^18.0.11", - "@vitejs/plugin-basic-ssl": "^2.0.0", - "@vitejs/plugin-react": "^4.4.1", - "electron": "^39.2.3", - "electron-packager": "^17.1.2", - "esbuild-wasm": "^0.17.12", - "typescript": "^4.9.5", - "vite": "^6.3.4" - } - }, - "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, - "license": "Apache-2.0", - "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.26.2", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", - "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.25.9", - "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.26.8", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.8.tgz", - "integrity": "sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.26.10", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.10.tgz", - "integrity": "sha512-vMqyb7XCDMPvJFFOaT9kxtiRh42GwlZEg1/uIgtZshS5a/8OaduUfCi7kynKgc3Tw/6Uo2D+db9qBttghhmxwQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.26.2", - "@babel/generator": "^7.26.10", - "@babel/helper-compilation-targets": "^7.26.5", - "@babel/helper-module-transforms": "^7.26.0", - "@babel/helpers": "^7.26.10", - "@babel/parser": "^7.26.10", - "@babel/template": "^7.26.9", - "@babel/traverse": "^7.26.10", - "@babel/types": "^7.26.10", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/generator": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.27.0.tgz", - "integrity": "sha512-VybsKvpiN1gU1sdMZIp7FcqphVVKEwcuj02x73uvcHE0PTihx1nlBcowYWhDwjpoAXRv43+gDzyggGnn1XZhVw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.27.0", - "@babel/types": "^7.27.0", - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25", - "jsesc": "^3.0.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.0.tgz", - "integrity": "sha512-LVk7fbXml0H2xH34dFzKQ7TDZ2G4/rVTOrq9V+icbbadjbVxxeFeDsNHv2SrZeWoA+6ZiTyWYWtScEIW07EAcA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.26.8", - "@babel/helper-validator-option": "^7.25.9", - "browserslist": "^4.24.0", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz", - "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.25.9", - "@babel/types": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz", - "integrity": "sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-imports": "^7.25.9", - "@babel/helper-validator-identifier": "^7.25.9", - "@babel/traverse": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.9.tgz", - "integrity": "sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", - "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", - "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz", - "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.26.10", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.26.10.tgz", - "integrity": "sha512-UPYc3SauzZ3JGgj87GgZ89JVdC5dj0AoetR5Bw6wj4niittNyFh6+eOGonYvJ1ao6B8lEa3Q3klS7ADZ53bc5g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/template": "^7.26.9", - "@babel/types": "^7.26.10" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.27.0.tgz", - "integrity": "sha512-iaepho73/2Pz7w2eMS0Q5f83+0RKI7i4xmiYeBmDzfRVbQtTOG7Ts0S4HzJVsTMGI9keU8rNfuZr8DKfSt7Yyg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.27.0" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx-self": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.25.9.tgz", - "integrity": "sha512-y8quW6p0WHkEhmErnfe58r7x0A70uKphQm8Sp8cV7tjNQwK56sNVK0M73LK3WuYmsuyrftut4xAkjjgU0twaMg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx-source": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.25.9.tgz", - "integrity": "sha512-+iqjT8xmXhhYv4/uiYd8FNQsraMFZIfxVSqxxVSZP0WbbSAWvBXAul0m/zu+7Vv4O/3WtApy9pmaTMiumEZgfg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/runtime": { - "version": "7.26.10", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.26.10.tgz", - "integrity": "sha512-2WJMeRQPHKSPemqk/awGrAiuFfzBmOIPXKizAsVhWH9YJqLZ0H+HS4c8loHGgW6utJ3E/ejXQUsiGaQy2NZ9Fw==", - "license": "MIT", - "dependencies": { - "regenerator-runtime": "^0.14.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.0.tgz", - "integrity": "sha512-2ncevenBqXI6qRMukPlXwHKHchC7RyMuu4xv5JBXRfOGVcTy1mXCD12qrp7Jsoxll1EV3+9sE4GugBVRjT2jFA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.26.2", - "@babel/parser": "^7.27.0", - "@babel/types": "^7.27.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.27.0.tgz", - "integrity": "sha512-19lYZFzYVQkkHkl4Cy4WrAVcqBkgvV2YM2TU3xG6DIwO7O3ecbDPfW3yM3bjAGcqcQHi+CCtjMR3dIEHxsd6bA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.26.2", - "@babel/generator": "^7.27.0", - "@babel/parser": "^7.27.0", - "@babel/template": "^7.27.0", - "@babel/types": "^7.27.0", - "debug": "^4.3.1", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", - "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.25.9", - "@babel/helper-validator-identifier": "^7.25.9" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@electron/asar": { - "version": "3.2.18", - "resolved": "https://registry.npmjs.org/@electron/asar/-/asar-3.2.18.tgz", - "integrity": "sha512-2XyvMe3N3Nrs8cV39IKELRHTYUWFKrmqqSY1U+GMlc0jvqjIVnoxhNd2H4JolWQncbJi1DCvb5TNxZuI2fEjWg==", - "dev": true, - "license": "MIT", - "dependencies": { - "commander": "^5.0.0", - "glob": "^7.1.6", - "minimatch": "^3.0.4" - }, - "bin": { - "asar": "bin/asar.js" - }, - "engines": { - "node": ">=10.12.0" - } - }, - "node_modules/@electron/get": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@electron/get/-/get-2.0.3.tgz", - "integrity": "sha512-Qkzpg2s9GnVV2I2BjRksUi43U5e6+zaQMcjoJy0C+C5oxaKl+fmckGDQFtRpZpZV0NQekuZZ+tGz7EA9TVnQtQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.1.1", - "env-paths": "^2.2.0", - "fs-extra": "^8.1.0", - "got": "^11.8.5", - "progress": "^2.0.3", - "semver": "^6.2.0", - "sumchecker": "^3.0.1" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "global-agent": "^3.0.0" - } - }, - "node_modules/@electron/notarize": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@electron/notarize/-/notarize-1.2.4.tgz", - "integrity": "sha512-W5GQhJEosFNafewnS28d3bpQ37/s91CDWqxVchHfmv2dQSTWpOzNlUVQwYzC1ay5bChRV/A9BTL68yj0Pa+TSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.1.1", - "fs-extra": "^9.0.1" - }, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@electron/notarize/node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@electron/notarize/node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/@electron/notarize/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@electron/osx-sign": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@electron/osx-sign/-/osx-sign-1.3.2.tgz", - "integrity": "sha512-KqVlm9WMWq19lBpCXQoThC/Koaiji2zotUDYwZDaZlZZym+FXY9mQW8wN6sUQ93nkVc42f3TQ1S/XN9S1kjM5Q==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "compare-version": "^0.1.2", - "debug": "^4.3.4", - "fs-extra": "^10.0.0", - "isbinaryfile": "^4.0.8", - "minimist": "^1.2.6", - "plist": "^3.0.5" - }, - "bin": { - "electron-osx-flat": "bin/electron-osx-flat.js", - "electron-osx-sign": "bin/electron-osx-sign.js" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/@electron/osx-sign/node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@electron/osx-sign/node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/@electron/osx-sign/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@electron/universal": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/@electron/universal/-/universal-1.5.1.tgz", - "integrity": "sha512-kbgXxyEauPJiQQUNG2VgUeyfQNFk6hBF11ISN2PNI6agUgPl55pv4eQmaqHzTAzchBvqZ2tQuRVaPStGf0mxGw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@electron/asar": "^3.2.1", - "@malept/cross-spawn-promise": "^1.1.0", - "debug": "^4.3.1", - "dir-compare": "^3.0.0", - "fs-extra": "^9.0.1", - "minimatch": "^3.0.4", - "plist": "^3.0.4" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/@electron/universal/node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@electron/universal/node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/@electron/universal/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@emotion/is-prop-valid": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.2.2.tgz", - "integrity": "sha512-uNsoYd37AFmaCdXlg6EYD1KaPOaRWRByMCYzbKUX4+hhMfrxdVSelShywL4JVaAeM/eHUOSprYBQls+/neX3pw==", - "license": "MIT", - "dependencies": { - "@emotion/memoize": "^0.8.1" - } - }, - "node_modules/@emotion/memoize": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.8.1.tgz", - "integrity": "sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==", - "license": "MIT" - }, - "node_modules/@emotion/unitless": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.8.1.tgz", - "integrity": "sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==", - "license": "MIT" - }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.3.tgz", - "integrity": "sha512-W8bFfPA8DowP8l//sxjJLSLkD8iEjMc7cBVyP+u4cEv9sM7mdUCkgsj+t0n/BWPFtv7WWCN5Yzj0N6FJNUUqBQ==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.3.tgz", - "integrity": "sha512-PuwVXbnP87Tcff5I9ngV0lmiSu40xw1At6i3GsU77U7cjDDB4s0X2cyFuBiDa1SBk9DnvWwnGvVaGBqoFWPb7A==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.3.tgz", - "integrity": "sha512-XelR6MzjlZuBM4f5z2IQHK6LkK34Cvv6Rj2EntER3lwCBFdg6h2lKbtRjpTTsdEjD/WSe1q8UyPBXP1x3i/wYQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.3.tgz", - "integrity": "sha512-ogtTpYHT/g1GWS/zKM0cc/tIebFjm1F9Aw1boQ2Y0eUQ+J89d0jFY//s9ei9jVIlkYi8AfOjiixcLJSGNSOAdQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.3.tgz", - "integrity": "sha512-eESK5yfPNTqpAmDfFWNsOhmIOaQA59tAcF/EfYvo5/QWQCzXn5iUSOnqt3ra3UdzBv073ykTtmeLJZGt3HhA+w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.3.tgz", - "integrity": "sha512-Kd8glo7sIZtwOLcPbW0yLpKmBNWMANZhrC1r6K++uDR2zyzb6AeOYtI6udbtabmQpFaxJ8uduXMAo1gs5ozz8A==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.3.tgz", - "integrity": "sha512-EJiyS70BYybOBpJth3M0KLOus0n+RRMKTYzhYhFeMwp7e/RaajXvP+BWlmEXNk6uk+KAu46j/kaQzr6au+JcIw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.3.tgz", - "integrity": "sha512-Q+wSjaLpGxYf7zC0kL0nDlhsfuFkoN+EXrx2KSB33RhinWzejOd6AvgmP5JbkgXKmjhmpfgKZq24pneodYqE8Q==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.3.tgz", - "integrity": "sha512-dUOVmAUzuHy2ZOKIHIKHCm58HKzFqd+puLaS424h6I85GlSDRZIA5ycBixb3mFgM0Jdh+ZOSB6KptX30DD8YOQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.3.tgz", - "integrity": "sha512-xCUgnNYhRD5bb1C1nqrDV1PfkwgbswTTBRbAd8aH5PhYzikdf/ddtsYyMXFfGSsb/6t6QaPSzxtbfAZr9uox4A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.3.tgz", - "integrity": "sha512-yplPOpczHOO4jTYKmuYuANI3WhvIPSVANGcNUeMlxH4twz/TeXuzEP41tGKNGWJjuMhotpGabeFYGAOU2ummBw==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.3.tgz", - "integrity": "sha512-P4BLP5/fjyihmXCELRGrLd793q/lBtKMQl8ARGpDxgzgIKJDRJ/u4r1A/HgpBpKpKZelGct2PGI4T+axcedf6g==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.3.tgz", - "integrity": "sha512-eRAOV2ODpu6P5divMEMa26RRqb2yUoYsuQQOuFUexUoQndm4MdpXXDBbUoKIc0iPa4aCO7gIhtnYomkn2x+bag==", - "cpu": [ - "mips64el" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.3.tgz", - "integrity": "sha512-ZC4jV2p7VbzTlnl8nZKLcBkfzIf4Yad1SJM4ZMKYnJqZFD4rTI+pBG65u8ev4jk3/MPwY9DvGn50wi3uhdaghg==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.3.tgz", - "integrity": "sha512-LDDODcFzNtECTrUUbVCs6j9/bDVqy7DDRsuIXJg6so+mFksgwG7ZVnTruYi5V+z3eE5y+BJZw7VvUadkbfg7QA==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.3.tgz", - "integrity": "sha512-s+w/NOY2k0yC2p9SLen+ymflgcpRkvwwa02fqmAwhBRI3SC12uiS10edHHXlVWwfAagYSY5UpmT/zISXPMW3tQ==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.3.tgz", - "integrity": "sha512-nQHDz4pXjSDC6UfOE1Fw9Q8d6GCAd9KdvMZpfVGWSJztYCarRgSDfOVBY5xwhQXseiyxapkiSJi/5/ja8mRFFA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.3.tgz", - "integrity": "sha512-1QaLtOWq0mzK6tzzp0jRN3eccmN3hezey7mhLnzC6oNlJoUJz4nym5ZD7mDnS/LZQgkrhEbEiTn515lPeLpgWA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.3.tgz", - "integrity": "sha512-i5Hm68HXHdgv8wkrt+10Bc50zM0/eonPb/a/OFVfB6Qvpiirco5gBA5bz7S2SHuU+Y4LWn/zehzNX14Sp4r27g==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.3.tgz", - "integrity": "sha512-zGAVApJEYTbOC6H/3QBr2mq3upG/LBEXr85/pTtKiv2IXcgKV0RT0QA/hSXZqSvLEpXeIxah7LczB4lkiYhTAQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.3.tgz", - "integrity": "sha512-fpqctI45NnCIDKBH5AXQBsD0NDPbEFczK98hk/aa6HJxbl+UtLkJV2+Bvy5hLSLk3LHmqt0NTkKNso1A9y1a4w==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.3.tgz", - "integrity": "sha512-ROJhm7d8bk9dMCUZjkS8fgzsPAZEjtRJqCAmVgB0gMrvG7hfmPmz9k1rwO4jSiblFjYmNvbECL9uhaPzONMfgA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.3.tgz", - "integrity": "sha512-YWcow8peiHpNBiIXHwaswPnAXLsLVygFwCB3A7Bh5jRkIBFWHGmNQ48AlX4xDvQNoMZlPYzjVOQDYEzWCqufMQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.3.tgz", - "integrity": "sha512-qspTZOIGoXVS4DpNqUYUs9UxVb04khS1Degaw/MnfMe7goQ3lTfQ13Vw4qY/Nj0979BGvMRpAYbs/BAxEvU8ew==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.3.tgz", - "integrity": "sha512-ICgUR+kPimx0vvRzf+N/7L7tVSQeE3BYY+NhHRHXS1kBuPO7z2+7ea2HbhDyZdTephgvNvKrlDDKUexuCVBVvg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@iconify-json/ic": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@iconify-json/ic/-/ic-1.2.2.tgz", - "integrity": "sha512-QmjwS3lYiOmVWgTCEOTFyGODaR/+689+ajep/VsrCcsUN0Gdle5PmIcibDsdmRyrOsW/E77G41UUijdbjQUofw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@iconify/types": "*" - } - }, - "node_modules/@iconify/icons-ic": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/@iconify/icons-ic/-/icons-ic-1.2.13.tgz", - "integrity": "sha512-TphrhwOvgd7CTmUhz6jgXF+SPnMtvTm03bZsAYbny2kwq4zlkhr9e16YEyPGMvKhjtTqNooA3iZ9Wa+pZ8moXQ==", - "license": "Apache-2.0", - "dependencies": { - "@iconify/types": "*" - } - }, - "node_modules/@iconify/icons-ph": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/@iconify/icons-ph/-/icons-ph-1.2.5.tgz", - "integrity": "sha512-ewrnpL0u3MAP0wLDnXb/39W9W71ObyY8DNig6rYj7NEwcndWWlrGHt1RxEGYE3eqILl/IUcNIQQF1CXZAhwr/w==", - "license": "MIT", - "dependencies": { - "@iconify/types": "*" - } - }, - "node_modules/@iconify/react": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@iconify/react/-/react-5.2.0.tgz", - "integrity": "sha512-7Sdjrqq3fkkQNks9SY3adGC37NQTHsBJL2PRKlQd455PoDi9s+Es9AUTY+vGLFOYs5yO9w9yCE42pmxCwG26WA==", - "license": "MIT", - "dependencies": { - "@iconify/types": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/cyberalien" - }, - "peerDependencies": { - "react": ">=16" - } - }, - "node_modules/@iconify/types": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz", - "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==", - "license": "MIT" - }, - "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==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "license": "MIT", - "engines": { - "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==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", - "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", - "dev": true, - "license": "MIT" - }, - "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==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@malept/cross-spawn-promise": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-1.1.1.tgz", - "integrity": "sha512-RTBGWL5FWQcg9orDOCcp4LvItNzUPcyEU9bwaeJX0rJ1IQxzucC48Y0/sQLp/g6t99IQgAlGIaesJS+gTn7tVQ==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/malept" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/subscription/pkg/npm-.malept-cross-spawn-promise?utm_medium=referral&utm_source=npm_fund" - } - ], - "license": "Apache-2.0", - "dependencies": { - "cross-spawn": "^7.0.1" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/@reduxjs/toolkit": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.6.0.tgz", - "integrity": "sha512-mWJCYpewLRyTuuzRSEC/IwIBBkYg2dKtQas8mty5MaV2iXzcmicS3gW554FDeOvLnY3x13NIk8MB1e8wHO7rqQ==", - "license": "MIT", - "dependencies": { - "immer": "^10.0.3", - "redux": "^5.0.1", - "redux-thunk": "^3.1.0", - "reselect": "^5.1.0" - }, - "peerDependencies": { - "react": "^16.9.0 || ^17.0.0 || ^18 || ^19", - "react-redux": "^7.2.1 || ^8.1.3 || ^9.0.0" - }, - "peerDependenciesMeta": { - "react": { - "optional": true - }, - "react-redux": { - "optional": true - } - } - }, - "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.40.1.tgz", - "integrity": "sha512-kxz0YeeCrRUHz3zyqvd7n+TVRlNyTifBsmnmNPtk3hQURUyG9eAB+usz6DAwagMusjx/zb3AjvDUvhFGDAexGw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-android-arm64": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.40.1.tgz", - "integrity": "sha512-PPkxTOisoNC6TpnDKatjKkjRMsdaWIhyuMkA4UsBXT9WEZY4uHezBTjs6Vl4PbqQQeu6oION1w2voYZv9yquCw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.40.1.tgz", - "integrity": "sha512-VWXGISWFY18v/0JyNUy4A46KCFCb9NVsH+1100XP31lud+TzlezBbz24CYzbnA4x6w4hx+NYCXDfnvDVO6lcAA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.40.1.tgz", - "integrity": "sha512-nIwkXafAI1/QCS7pxSpv/ZtFW6TXcNUEHAIA9EIyw5OzxJZQ1YDrX+CL6JAIQgZ33CInl1R6mHet9Y/UZTg2Bw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.40.1.tgz", - "integrity": "sha512-BdrLJ2mHTrIYdaS2I99mriyJfGGenSaP+UwGi1kB9BLOCu9SR8ZpbkmmalKIALnRw24kM7qCN0IOm6L0S44iWw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.40.1.tgz", - "integrity": "sha512-VXeo/puqvCG8JBPNZXZf5Dqq7BzElNJzHRRw3vjBE27WujdzuOPecDPc/+1DcdcTptNBep3861jNq0mYkT8Z6Q==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.40.1.tgz", - "integrity": "sha512-ehSKrewwsESPt1TgSE/na9nIhWCosfGSFqv7vwEtjyAqZcvbGIg4JAcV7ZEh2tfj/IlfBeZjgOXm35iOOjadcg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.40.1.tgz", - "integrity": "sha512-m39iO/aaurh5FVIu/F4/Zsl8xppd76S4qoID8E+dSRQvTyZTOI2gVk3T4oqzfq1PtcvOfAVlwLMK3KRQMaR8lg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.40.1.tgz", - "integrity": "sha512-Y+GHnGaku4aVLSgrT0uWe2o2Rq8te9hi+MwqGF9r9ORgXhmHK5Q71N757u0F8yU1OIwUIFy6YiJtKjtyktk5hg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.40.1.tgz", - "integrity": "sha512-jEwjn3jCA+tQGswK3aEWcD09/7M5wGwc6+flhva7dsQNRZZTe30vkalgIzV4tjkopsTS9Jd7Y1Bsj6a4lzz8gQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loongarch64-gnu": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.40.1.tgz", - "integrity": "sha512-ySyWikVhNzv+BV/IDCsrraOAZ3UaC8SZB67FZlqVwXwnFhPihOso9rPOxzZbjp81suB1O2Topw+6Ug3JNegejQ==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.40.1.tgz", - "integrity": "sha512-BvvA64QxZlh7WZWqDPPdt0GH4bznuL6uOO1pmgPnnv86rpUpc8ZxgZwcEgXvo02GRIZX1hQ0j0pAnhwkhwPqWg==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.40.1.tgz", - "integrity": "sha512-EQSP+8+1VuSulm9RKSMKitTav89fKbHymTf25n5+Yr6gAPZxYWpj3DzAsQqoaHAk9YX2lwEyAf9S4W8F4l3VBQ==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.40.1.tgz", - "integrity": "sha512-n/vQ4xRZXKuIpqukkMXZt9RWdl+2zgGNx7Uda8NtmLJ06NL8jiHxUawbwC+hdSq1rrw/9CghCpEONor+l1e2gA==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.40.1.tgz", - "integrity": "sha512-h8d28xzYb98fMQKUz0w2fMc1XuGzLLjdyxVIbhbil4ELfk5/orZlSTpF/xdI9C8K0I8lCkq+1En2RJsawZekkg==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.40.1.tgz", - "integrity": "sha512-XiK5z70PEFEFqcNj3/zRSz/qX4bp4QIraTy9QjwJAb/Z8GM7kVUsD0Uk8maIPeTyPCP03ChdI+VVmJriKYbRHQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.40.1.tgz", - "integrity": "sha512-2BRORitq5rQ4Da9blVovzNCMaUlyKrzMSvkVR0D4qPuOy/+pMCrh1d7o01RATwVy+6Fa1WBw+da7QPeLWU/1mQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.40.1.tgz", - "integrity": "sha512-b2bcNm9Kbde03H+q+Jjw9tSfhYkzrDUf2d5MAd1bOJuVplXvFhWz7tRtWvD8/ORZi7qSCy0idW6tf2HgxSXQSg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.40.1.tgz", - "integrity": "sha512-DfcogW8N7Zg7llVEfpqWMZcaErKfsj9VvmfSyRjCyo4BI3wPEfrzTtJkZG6gKP/Z92wFm6rz2aDO7/JfiR/whA==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.40.1.tgz", - "integrity": "sha512-ECyOuDeH3C1I8jH2MK1RtBJW+YPMvSfT0a5NN0nHfQYnDSJ6tUiZH3gzwVP5/Kfh/+Tt7tpWVF9LXNTnhTJ3kA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@sindresorhus/is": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", - "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/is?sponsor=1" - } - }, - "node_modules/@szmarczak/http-timer": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", - "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==", - "dev": true, - "license": "MIT", - "dependencies": { - "defer-to-connect": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@types/babel__core": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", - "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", - "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", - "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.7.tgz", - "integrity": "sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.20.7" - } - }, - "node_modules/@types/cacheable-request": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz", - "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/http-cache-semantics": "*", - "@types/keyv": "^3.1.4", - "@types/node": "*", - "@types/responselike": "^1.0.0" - } - }, - "node_modules/@types/d3": { - "version": "7.4.3", - "resolved": "https://registry.npmjs.org/@types/d3/-/d3-7.4.3.tgz", - "integrity": "sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww==", - "license": "MIT", - "dependencies": { - "@types/d3-array": "*", - "@types/d3-axis": "*", - "@types/d3-brush": "*", - "@types/d3-chord": "*", - "@types/d3-color": "*", - "@types/d3-contour": "*", - "@types/d3-delaunay": "*", - "@types/d3-dispatch": "*", - "@types/d3-drag": "*", - "@types/d3-dsv": "*", - "@types/d3-ease": "*", - "@types/d3-fetch": "*", - "@types/d3-force": "*", - "@types/d3-format": "*", - "@types/d3-geo": "*", - "@types/d3-hierarchy": "*", - "@types/d3-interpolate": "*", - "@types/d3-path": "*", - "@types/d3-polygon": "*", - "@types/d3-quadtree": "*", - "@types/d3-random": "*", - "@types/d3-scale": "*", - "@types/d3-scale-chromatic": "*", - "@types/d3-selection": "*", - "@types/d3-shape": "*", - "@types/d3-time": "*", - "@types/d3-time-format": "*", - "@types/d3-timer": "*", - "@types/d3-transition": "*", - "@types/d3-zoom": "*" - } - }, - "node_modules/@types/d3-array": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.1.tgz", - "integrity": "sha512-Y2Jn2idRrLzUfAKV2LyRImR+y4oa2AntrgID95SHJxuMUrkNXmanDSed71sRNZysveJVt1hLLemQZIady0FpEg==", - "license": "MIT" - }, - "node_modules/@types/d3-axis": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@types/d3-axis/-/d3-axis-3.0.6.tgz", - "integrity": "sha512-pYeijfZuBd87T0hGn0FO1vQ/cgLk6E1ALJjfkC0oJ8cbwkZl3TpgS8bVBLZN+2jjGgg38epgxb2zmoGtSfvgMw==", - "license": "MIT", - "dependencies": { - "@types/d3-selection": "*" - } - }, - "node_modules/@types/d3-brush": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@types/d3-brush/-/d3-brush-3.0.6.tgz", - "integrity": "sha512-nH60IZNNxEcrh6L1ZSMNA28rj27ut/2ZmI3r96Zd+1jrZD++zD3LsMIjWlvg4AYrHn/Pqz4CF3veCxGjtbqt7A==", - "license": "MIT", - "dependencies": { - "@types/d3-selection": "*" - } - }, - "node_modules/@types/d3-chord": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@types/d3-chord/-/d3-chord-3.0.6.tgz", - "integrity": "sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg==", - "license": "MIT" - }, - "node_modules/@types/d3-color": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz", - "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==", - "license": "MIT" - }, - "node_modules/@types/d3-contour": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@types/d3-contour/-/d3-contour-3.0.6.tgz", - "integrity": "sha512-BjzLgXGnCWjUSYGfH1cpdo41/hgdWETu4YxpezoztawmqsvCeep+8QGfiY6YbDvfgHz/DkjeIkkZVJavB4a3rg==", - "license": "MIT", - "dependencies": { - "@types/d3-array": "*", - "@types/geojson": "*" - } - }, - "node_modules/@types/d3-delaunay": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/@types/d3-delaunay/-/d3-delaunay-6.0.4.tgz", - "integrity": "sha512-ZMaSKu4THYCU6sV64Lhg6qjf1orxBthaC161plr5KuPHo3CNm8DTHiLw/5Eq2b6TsNP0W0iJrUOFscY6Q450Hw==", - "license": "MIT" - }, - "node_modules/@types/d3-dispatch": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@types/d3-dispatch/-/d3-dispatch-3.0.6.tgz", - "integrity": "sha512-4fvZhzMeeuBJYZXRXrRIQnvUYfyXwYmLsdiN7XXmVNQKKw1cM8a5WdID0g1hVFZDqT9ZqZEY5pD44p24VS7iZQ==", - "license": "MIT" - }, - "node_modules/@types/d3-drag": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/@types/d3-drag/-/d3-drag-3.0.7.tgz", - "integrity": "sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==", - "license": "MIT", - "dependencies": { - "@types/d3-selection": "*" - } - }, - "node_modules/@types/d3-dsv": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/@types/d3-dsv/-/d3-dsv-3.0.7.tgz", - "integrity": "sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g==", - "license": "MIT" - }, - "node_modules/@types/d3-ease": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz", - "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==", - "license": "MIT" - }, - "node_modules/@types/d3-fetch": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/@types/d3-fetch/-/d3-fetch-3.0.7.tgz", - "integrity": "sha512-fTAfNmxSb9SOWNB9IoG5c8Hg6R+AzUHDRlsXsDZsNp6sxAEOP0tkP3gKkNSO/qmHPoBFTxNrjDprVHDQDvo5aA==", - "license": "MIT", - "dependencies": { - "@types/d3-dsv": "*" - } - }, - "node_modules/@types/d3-force": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/@types/d3-force/-/d3-force-3.0.10.tgz", - "integrity": "sha512-ZYeSaCF3p73RdOKcjj+swRlZfnYpK1EbaDiYICEEp5Q6sUiqFaFQ9qgoshp5CzIyyb/yD09kD9o2zEltCexlgw==", - "license": "MIT" - }, - "node_modules/@types/d3-format": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/d3-format/-/d3-format-3.0.4.tgz", - "integrity": "sha512-fALi2aI6shfg7vM5KiR1wNJnZ7r6UuggVqtDA+xiEdPZQwy/trcQaHnwShLuLdta2rTymCNpxYTiMZX/e09F4g==", - "license": "MIT" - }, - "node_modules/@types/d3-geo": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@types/d3-geo/-/d3-geo-3.1.0.tgz", - "integrity": "sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ==", - "license": "MIT", - "dependencies": { - "@types/geojson": "*" - } - }, - "node_modules/@types/d3-hierarchy": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@types/d3-hierarchy/-/d3-hierarchy-3.1.7.tgz", - "integrity": "sha512-tJFtNoYBtRtkNysX1Xq4sxtjK8YgoWUNpIiUee0/jHGRwqvzYxkq0hGVbbOGSz+JgFxxRu4K8nb3YpG3CMARtg==", - "license": "MIT" - }, - "node_modules/@types/d3-interpolate": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz", - "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==", - "license": "MIT", - "dependencies": { - "@types/d3-color": "*" - } - }, - "node_modules/@types/d3-path": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.0.tgz", - "integrity": "sha512-P2dlU/q51fkOc/Gfl3Ul9kicV7l+ra934qBFXCFhrZMOL6du1TM0pm1ThYvENukyOn5h9v+yMJ9Fn5JK4QozrQ==", - "license": "MIT" - }, - "node_modules/@types/d3-polygon": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@types/d3-polygon/-/d3-polygon-3.0.2.tgz", - "integrity": "sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA==", - "license": "MIT" - }, - "node_modules/@types/d3-quadtree": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@types/d3-quadtree/-/d3-quadtree-3.0.6.tgz", - "integrity": "sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg==", - "license": "MIT" - }, - "node_modules/@types/d3-random": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/d3-random/-/d3-random-3.0.3.tgz", - "integrity": "sha512-Imagg1vJ3y76Y2ea0871wpabqp613+8/r0mCLEBfdtqC7xMSfj9idOnmBYyMoULfHePJyxMAw3nWhJxzc+LFwQ==", - "license": "MIT" - }, - "node_modules/@types/d3-scale": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.8.tgz", - "integrity": "sha512-gkK1VVTr5iNiYJ7vWDI+yUFFlszhNMtVeneJ6lUTKPjprsvLLI9/tgEGiXJOnlINJA8FyA88gfnQsHbybVZrYQ==", - "license": "MIT", - "dependencies": { - "@types/d3-time": "*" - } - }, - "node_modules/@types/d3-scale-chromatic": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", - "integrity": "sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ==", - "license": "MIT" - }, - "node_modules/@types/d3-selection": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/@types/d3-selection/-/d3-selection-3.0.11.tgz", - "integrity": "sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==", - "license": "MIT" - }, - "node_modules/@types/d3-shape": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.6.tgz", - "integrity": "sha512-5KKk5aKGu2I+O6SONMYSNflgiP0WfZIQvVUMan50wHsLG1G94JlxEVnCpQARfTtzytuY0p/9PXXZb3I7giofIA==", - "license": "MIT", - "dependencies": { - "@types/d3-path": "*" - } - }, - "node_modules/@types/d3-time": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz", - "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==", - "license": "MIT" - }, - "node_modules/@types/d3-time-format": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@types/d3-time-format/-/d3-time-format-4.0.3.tgz", - "integrity": "sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg==", - "license": "MIT" - }, - "node_modules/@types/d3-timer": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz", - "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==", - "license": "MIT" - }, - "node_modules/@types/d3-transition": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/@types/d3-transition/-/d3-transition-3.0.9.tgz", - "integrity": "sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==", - "license": "MIT", - "dependencies": { - "@types/d3-selection": "*" - } - }, - "node_modules/@types/d3-zoom": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@types/d3-zoom/-/d3-zoom-3.0.8.tgz", - "integrity": "sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==", - "license": "MIT", - "dependencies": { - "@types/d3-interpolate": "*", - "@types/d3-selection": "*" - } - }, - "node_modules/@types/estree": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz", - "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/geojson": { - "version": "7946.0.14", - "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.14.tgz", - "integrity": "sha512-WCfD5Ht3ZesJUsONdhvm84dmzWOiOzOAqOncN0++w0lBw1o8OuDNJF2McvvCef/yBqb/HYRahp1BYtODFQ8bRg==", - "license": "MIT" - }, - "node_modules/@types/http-cache-semantics": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz", - "integrity": "sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/keyv": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz", - "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/node": { - "version": "22.19.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.1.tgz", - "integrity": "sha512-LCCV0HdSZZZb34qifBsyWlUmok6W7ouER+oQIGBScS8EsZsQbrtFTUrDX4hOl+CS6p7cnNC4td+qrSVGSCTUfQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~6.21.0" - } - }, - "node_modules/@types/prop-types": { - "version": "15.7.13", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.13.tgz", - "integrity": "sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA==", - "devOptional": true, - "license": "MIT" - }, - "node_modules/@types/react": { - "version": "18.3.12", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.12.tgz", - "integrity": "sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw==", - "devOptional": true, - "license": "MIT", - "dependencies": { - "@types/prop-types": "*", - "csstype": "^3.0.2" - } - }, - "node_modules/@types/react-dom": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.1.tgz", - "integrity": "sha512-qW1Mfv8taImTthu4KoXgDfLuk4bydU6Q/TkADnDWWHwi4NX4BR+LWfTp2sVmTqRrsHvyDDTelgelxJ+SsejKKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/react": "*" - } - }, - "node_modules/@types/resize-observer-browser": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@types/resize-observer-browser/-/resize-observer-browser-0.1.11.tgz", - "integrity": "sha512-cNw5iH8JkMkb3QkCoe7DaZiawbDQEUX8t7iuQaRTyLOyQCR2h+ibBD4GJt7p5yhUHrlOeL7ZtbxNHeipqNsBzQ==", - "license": "MIT" - }, - "node_modules/@types/responselike": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz", - "integrity": "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/stylis": { - "version": "4.2.5", - "resolved": "https://registry.npmjs.org/@types/stylis/-/stylis-4.2.5.tgz", - "integrity": "sha512-1Xve+NMN7FWjY14vLoY5tL3BVEQ/n42YLwaqJIPYhotZ9uBHt87VceMwWQpzmdEt2TNXIorIFG+YeCUUW7RInw==", - "license": "MIT" - }, - "node_modules/@types/use-sync-external-store": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.6.tgz", - "integrity": "sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==", - "license": "MIT" - }, - "node_modules/@types/yauzl": { - "version": "2.10.3", - "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", - "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@vitejs/plugin-basic-ssl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-2.0.0.tgz", - "integrity": "sha512-gc9Tjg8bUxBVSTzeWT3Njc0Cl3PakHFKdNfABnZWiUgbxqmHDEn7uECv3fHVylxoYgNzAcmU7ZrILz+BwSo3sA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" - }, - "peerDependencies": { - "vite": "^6.0.0" - } - }, - "node_modules/@vitejs/plugin-react": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.4.1.tgz", - "integrity": "sha512-IpEm5ZmeXAP/osiBXVVP5KjFMzbWOonMs0NaQQl+xYnUAcq4oHUBsF2+p4MgKWG4YMmFYJU8A6sxRPuowllm6w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.26.10", - "@babel/plugin-transform-react-jsx-self": "^7.25.9", - "@babel/plugin-transform-react-jsx-source": "^7.25.9", - "@types/babel__core": "^7.20.5", - "react-refresh": "^0.17.0" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "peerDependencies": { - "vite": "^4.2.0 || ^5.0.0 || ^6.0.0" - } - }, - "node_modules/@xmldom/xmldom": { - "version": "0.8.10", - "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.10.tgz", - "integrity": "sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/@xyflow/react": { - "version": "12.3.5", - "resolved": "https://registry.npmjs.org/@xyflow/react/-/react-12.3.5.tgz", - "integrity": "sha512-wAYqpicdrVo1rxCu0X3M9s3YIF45Agqfabw0IBryTGqjWvr2NyfciI8gIP4MB+NKpWWN5kxZ9tiZ9u8lwC7iAg==", - "license": "MIT", - "dependencies": { - "@xyflow/system": "0.0.46", - "classcat": "^5.0.3", - "zustand": "^4.4.0" - }, - "peerDependencies": { - "react": ">=17", - "react-dom": ">=17" - } - }, - "node_modules/@xyflow/react/node_modules/zustand": { - "version": "4.5.6", - "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.6.tgz", - "integrity": "sha512-ibr/n1hBzLLj5Y+yUcU7dYw8p6WnIVzdJbnX+1YpaScvZVF2ziugqHs+LAmHw4lWO9c/zRj+K1ncgWDQuthEdQ==", - "license": "MIT", - "dependencies": { - "use-sync-external-store": "^1.2.2" - }, - "engines": { - "node": ">=12.7.0" - }, - "peerDependencies": { - "@types/react": ">=16.8", - "immer": ">=9.0.6", - "react": ">=16.8" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - }, - "immer": { - "optional": true - }, - "react": { - "optional": true - } - } - }, - "node_modules/@xyflow/system": { - "version": "0.0.46", - "resolved": "https://registry.npmjs.org/@xyflow/system/-/system-0.0.46.tgz", - "integrity": "sha512-bmFXvboVdiydIFZmDCjrbBCYgB0d5pYdkcZPWbAxGmhMRUZ+kW3CksYgYxWabrw51rwpWitLEadvLrivG0mVfA==", - "license": "MIT", - "dependencies": { - "@types/d3-drag": "^3.0.7", - "@types/d3-selection": "^3.0.10", - "@types/d3-transition": "^3.0.8", - "@types/d3-zoom": "^3.0.8", - "d3-drag": "^3.0.0", - "d3-selection": "^3.0.0", - "d3-zoom": "^3.0.0" - } - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "license": "MIT" - }, - "node_modules/at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/author-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/author-regex/-/author-regex-1.0.0.tgz", - "integrity": "sha512-KbWgR8wOYRAPekEmMXrYYdc7BRyhn2Ftk7KWfMUnQ43hFdojWEFRxhhRUm3/OFEdPa1r0KAvTTg9YQK57xTe0g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8" - } - }, - "node_modules/axios": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.13.2.tgz", - "integrity": "sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA==", - "license": "MIT", - "dependencies": { - "follow-redirects": "^1.15.6", - "form-data": "^4.0.4", - "proxy-from-env": "^1.1.0" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/bluebird": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", - "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", - "dev": true, - "license": "MIT" - }, - "node_modules/boolean": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz", - "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==", - "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", - "dev": true, - "license": "MIT", - "optional": 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==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/browserslist": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz", - "integrity": "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "caniuse-lite": "^1.0.30001688", - "electron-to-chromium": "^1.5.73", - "node-releases": "^2.0.19", - "update-browserslist-db": "^1.1.1" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/buffer-equal": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-1.0.0.tgz", - "integrity": "sha512-tcBWO2Dl4e7Asr9hTGcpVrCe+F7DubpmqWCTbj4FHLmjqO2hIaC383acQubWtRJhdceqs5uBHs6Es+Sk//RKiQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/cacheable-lookup": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", - "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10.6.0" - } - }, - "node_modules/cacheable-request": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz", - "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==", - "dev": true, - "license": "MIT", - "dependencies": { - "clone-response": "^1.0.2", - "get-stream": "^5.1.0", - "http-cache-semantics": "^4.0.0", - "keyv": "^4.0.0", - "lowercase-keys": "^2.0.0", - "normalize-url": "^6.0.1", - "responselike": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/camelize": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.1.tgz", - "integrity": "sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001716", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001716.tgz", - "integrity": "sha512-49/c1+x3Kwz7ZIWt+4DvK3aMJy9oYXXG6/97JKsnjdCk/6n9vVyWL8NAwVt95Lwt9eigI10Hl782kDfZUUlRXw==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "CC-BY-4.0" - }, - "node_modules/classcat": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/classcat/-/classcat-5.0.5.tgz", - "integrity": "sha512-JhZUT7JFcQy/EzW605k/ktHtncoo9vnyW/2GspNYwFlN1C/WmjuV/xtS04e9SOkL2sTdw0VAZ2UGCcQ9lR6p6w==", - "license": "MIT" - }, - "node_modules/clone-response": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", - "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-response": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "license": "MIT", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/commander": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", - "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, - "node_modules/compare-version": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/compare-version/-/compare-version-0.1.2.tgz", - "integrity": "sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true, - "license": "MIT" - }, - "node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true, - "license": "MIT" - }, - "node_modules/cookie": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.0.2.tgz", - "integrity": "sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA==", - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/cross-spawn-windows-exe": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/cross-spawn-windows-exe/-/cross-spawn-windows-exe-1.2.0.tgz", - "integrity": "sha512-mkLtJJcYbDCxEG7Js6eUnUNndWjyUZwJ3H7bErmmtOYU/Zb99DyUkpamuIZE0b3bhmJyZ7D90uS6f+CGxRRjOw==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/malept" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/subscription/pkg/npm-cross-spawn-windows-exe?utm_medium=referral&utm_source=npm_fund" - } - ], - "license": "Apache-2.0", - "dependencies": { - "@malept/cross-spawn-promise": "^1.1.0", - "is-wsl": "^2.2.0", - "which": "^2.0.2" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/css-color-keywords": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/css-color-keywords/-/css-color-keywords-1.0.0.tgz", - "integrity": "sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg==", - "license": "ISC", - "engines": { - "node": ">=4" - } - }, - "node_modules/css-to-react-native": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/css-to-react-native/-/css-to-react-native-3.2.0.tgz", - "integrity": "sha512-e8RKaLXMOFii+02mOlqwjbD00KSEKqblnpO9e++1aXS1fPQOpS1YoqdVHBqPjHNoxeF2mimzVqawm2KCbEdtHQ==", - "license": "MIT", - "dependencies": { - "camelize": "^1.0.0", - "css-color-keywords": "^1.0.0", - "postcss-value-parser": "^4.0.2" - } - }, - "node_modules/csstype": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", - "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", - "license": "MIT" - }, - "node_modules/d3-color": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", - "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-dispatch": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-3.0.1.tgz", - "integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-drag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-3.0.0.tgz", - "integrity": "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==", - "license": "ISC", - "dependencies": { - "d3-dispatch": "1 - 3", - "d3-selection": "3" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-ease": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz", - "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==", - "license": "BSD-3-Clause", - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-interpolate": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", - "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", - "license": "ISC", - "dependencies": { - "d3-color": "1 - 3" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-selection": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz", - "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-timer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz", - "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-transition": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-3.0.1.tgz", - "integrity": "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==", - "license": "ISC", - "dependencies": { - "d3-color": "1 - 3", - "d3-dispatch": "1 - 3", - "d3-ease": "1 - 3", - "d3-interpolate": "1 - 3", - "d3-timer": "1 - 3" - }, - "engines": { - "node": ">=12" - }, - "peerDependencies": { - "d3-selection": "2 - 3" - } - }, - "node_modules/d3-zoom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-3.0.0.tgz", - "integrity": "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==", - "license": "ISC", - "dependencies": { - "d3-dispatch": "1 - 3", - "d3-drag": "2 - 3", - "d3-interpolate": "1 - 3", - "d3-selection": "2 - 3", - "d3-transition": "2 - 3" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/debug": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", - "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/decompress-response": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", - "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-response": "^3.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/decompress-response/node_modules/mimic-response": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", - "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/defer-to-connect": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", - "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/define-properties": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", - "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/detect-node": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", - "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", - "dev": true, - "license": "MIT", - "optional": true - }, - "node_modules/dir-compare": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/dir-compare/-/dir-compare-3.3.0.tgz", - "integrity": "sha512-J7/et3WlGUCxjdnD3HAAzQ6nsnc0WL6DD7WcwJb7c39iH1+AWfg+9OqzJNaI6PkBwBvm1mhZNL9iY/nRiZXlPg==", - "dev": true, - "license": "MIT", - "dependencies": { - "buffer-equal": "^1.0.0", - "minimatch": "^3.0.4" - } - }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/electron": { - "version": "39.2.3", - "resolved": "https://registry.npmjs.org/electron/-/electron-39.2.3.tgz", - "integrity": "sha512-j7k7/bj3cNA29ty54FzEMRUoqirE+RBQPhPFP+XDuM93a1l2WcDPiYumxKWz+iKcXxBJLFdMIAlvtLTB/RfCkg==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "@electron/get": "^2.0.0", - "@types/node": "^22.7.7", - "extract-zip": "^2.0.1" - }, - "bin": { - "electron": "cli.js" - }, - "engines": { - "node": ">= 12.20.55" - } - }, - "node_modules/electron-packager": { - "version": "17.1.2", - "resolved": "https://registry.npmjs.org/electron-packager/-/electron-packager-17.1.2.tgz", - "integrity": "sha512-XofXdikjYI7MVBcnXeoOvRR+yFFFHOLs3J7PF5KYQweigtgLshcH4W660PsvHr4lYZ03JBpLyEcUB8DzHZ+BNw==", - "deprecated": "Please use @electron/packager moving forward. There is no API change, just a package name change", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "@electron/asar": "^3.2.1", - "@electron/get": "^2.0.0", - "@electron/notarize": "^1.2.3", - "@electron/osx-sign": "^1.0.5", - "@electron/universal": "^1.3.2", - "cross-spawn-windows-exe": "^1.2.0", - "debug": "^4.0.1", - "extract-zip": "^2.0.0", - "filenamify": "^4.1.0", - "fs-extra": "^11.1.0", - "galactus": "^1.0.0", - "get-package-info": "^1.0.0", - "junk": "^3.1.0", - "parse-author": "^2.0.0", - "plist": "^3.0.0", - "rcedit": "^3.0.1", - "resolve": "^1.1.6", - "semver": "^7.1.3", - "yargs-parser": "^21.1.1" - }, - "bin": { - "electron-packager": "bin/electron-packager.js" - }, - "engines": { - "node": ">= 14.17.5" - }, - "funding": { - "url": "https://github.com/electron/electron-packager?sponsor=1" - } - }, - "node_modules/electron-packager/node_modules/fs-extra": { - "version": "11.3.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.0.tgz", - "integrity": "sha512-Z4XaCL6dUDHfP/jT25jJKMmtxvuwbkrD1vNSMFlo9lNLY2c5FHYSQgHPRZUjAB26TpDEoW9HCOgplrdbaPV/ew==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=14.14" - } - }, - "node_modules/electron-packager/node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/electron-packager/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/electron-packager/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/electron-to-chromium": { - "version": "1.5.145", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.145.tgz", - "integrity": "sha512-pZ5EcTWRq/055MvSBgoFEyKf2i4apwfoqJbK/ak2jnFq8oHjZ+vzc3AhRcz37Xn+ZJfL58R666FLJx0YOK9yTw==", - "dev": true, - "license": "ISC" - }, - "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "once": "^1.4.0" - } - }, - "node_modules/env-paths": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", - "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-set-tostringtag": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", - "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", - "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/es6-error": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", - "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", - "dev": true, - "license": "MIT", - "optional": true - }, - "node_modules/esbuild": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.3.tgz", - "integrity": "sha512-qKA6Pvai73+M2FtftpNKRxJ78GIjmFXFxd/1DVBqGo/qNhLSfv+G12n9pNoWdytJC8U00TrViOwpjT0zgqQS8Q==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.3", - "@esbuild/android-arm": "0.25.3", - "@esbuild/android-arm64": "0.25.3", - "@esbuild/android-x64": "0.25.3", - "@esbuild/darwin-arm64": "0.25.3", - "@esbuild/darwin-x64": "0.25.3", - "@esbuild/freebsd-arm64": "0.25.3", - "@esbuild/freebsd-x64": "0.25.3", - "@esbuild/linux-arm": "0.25.3", - "@esbuild/linux-arm64": "0.25.3", - "@esbuild/linux-ia32": "0.25.3", - "@esbuild/linux-loong64": "0.25.3", - "@esbuild/linux-mips64el": "0.25.3", - "@esbuild/linux-ppc64": "0.25.3", - "@esbuild/linux-riscv64": "0.25.3", - "@esbuild/linux-s390x": "0.25.3", - "@esbuild/linux-x64": "0.25.3", - "@esbuild/netbsd-arm64": "0.25.3", - "@esbuild/netbsd-x64": "0.25.3", - "@esbuild/openbsd-arm64": "0.25.3", - "@esbuild/openbsd-x64": "0.25.3", - "@esbuild/sunos-x64": "0.25.3", - "@esbuild/win32-arm64": "0.25.3", - "@esbuild/win32-ia32": "0.25.3", - "@esbuild/win32-x64": "0.25.3" - } - }, - "node_modules/esbuild-wasm": { - "version": "0.17.19", - "resolved": "https://registry.npmjs.org/esbuild-wasm/-/esbuild-wasm-0.17.19.tgz", - "integrity": "sha512-X9UQEMJMZXwlGCfqcBmJ1jEa+KrLfd+gCBypO/TSzo5hZvbVwFqpxj1YCuX54ptTF75wxmrgorR4RL40AKtLVg==", - "dev": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/extract-zip": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", - "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "debug": "^4.1.1", - "get-stream": "^5.1.0", - "yauzl": "^2.10.0" - }, - "bin": { - "extract-zip": "cli.js" - }, - "engines": { - "node": ">= 10.17.0" - }, - "optionalDependencies": { - "@types/yauzl": "^2.9.1" - } - }, - "node_modules/fd-slicer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", - "dev": true, - "license": "MIT", - "dependencies": { - "pend": "~1.2.0" - } - }, - "node_modules/fdir": { - "version": "6.4.4", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.4.tgz", - "integrity": "sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/filename-reserved-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz", - "integrity": "sha512-lc1bnsSr4L4Bdif8Xb/qrtokGbq5zlsms/CYH8PP+WtCkGNF65DPiQY8vG3SakEdRn8Dlnm+gW/qWKKjS5sZzQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/filenamify": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/filenamify/-/filenamify-4.3.0.tgz", - "integrity": "sha512-hcFKyUG57yWGAzu1CMt/dPzYZuv+jAJUT85bL8mrXvNe6hWj6yEHEc4EdcgiA6Z3oi1/9wXJdZPXF2dZNgwgOg==", - "dev": true, - "license": "MIT", - "dependencies": { - "filename-reserved-regex": "^2.0.0", - "strip-outer": "^1.0.1", - "trim-repeated": "^1.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/flora-colossus": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/flora-colossus/-/flora-colossus-2.0.0.tgz", - "integrity": "sha512-dz4HxH6pOvbUzZpZ/yXhafjbR2I8cenK5xL0KtBFb7U2ADsR+OwXifnxZjij/pZWF775uSCMzWVd+jDik2H2IA==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.3.4", - "fs-extra": "^10.1.0" - }, - "engines": { - "node": ">= 12" - } - }, - "node_modules/flora-colossus/node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/flora-colossus/node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/flora-colossus/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/follow-redirects": { - "version": "1.15.9", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", - "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "license": "MIT", - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "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==", - "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/fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - }, - "engines": { - "node": ">=6 <7 || >=8" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true, - "license": "ISC" - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/galactus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/galactus/-/galactus-1.0.0.tgz", - "integrity": "sha512-R1fam6D4CyKQGNlvJne4dkNF+PvUUl7TAJInvTGa9fti9qAv95quQz29GXapA4d8Ec266mJJxFVh82M4GIIGDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.3.4", - "flora-colossus": "^2.0.0", - "fs-extra": "^10.1.0" - }, - "engines": { - "node": ">= 12" - } - }, - "node_modules/galactus/node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/galactus/node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/galactus/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-package-info": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-package-info/-/get-package-info-1.0.0.tgz", - "integrity": "sha512-SCbprXGAPdIhKAXiG+Mk6yeoFH61JlYunqdFQFHDtLjJlDjFf6x07dsS8acO+xWt52jpdVo49AlVDnUVK1sDNw==", - "dev": true, - "license": "MIT", - "dependencies": { - "bluebird": "^3.1.1", - "debug": "^2.2.0", - "lodash.get": "^4.0.0", - "read-pkg-up": "^2.0.0" - }, - "engines": { - "node": ">= 4.0" - } - }, - "node_modules/get-package-info/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/get-package-info/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true, - "license": "MIT" - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dev": true, - "license": "MIT", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dev": true, - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/global-agent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz", - "integrity": "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==", - "dev": true, - "license": "BSD-3-Clause", - "optional": true, - "dependencies": { - "boolean": "^3.0.1", - "es6-error": "^4.1.1", - "matcher": "^3.0.0", - "roarr": "^2.15.3", - "semver": "^7.3.2", - "serialize-error": "^7.0.1" - }, - "engines": { - "node": ">=10.0" - } - }, - "node_modules/global-agent/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "dev": true, - "license": "ISC", - "optional": true, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "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, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/globalthis": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", - "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "define-properties": "^1.2.1", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/got": { - "version": "11.8.6", - "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", - "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@sindresorhus/is": "^4.0.0", - "@szmarczak/http-timer": "^4.0.5", - "@types/cacheable-request": "^6.0.1", - "@types/responselike": "^1.0.0", - "cacheable-lookup": "^5.0.3", - "cacheable-request": "^7.0.2", - "decompress-response": "^6.0.0", - "http2-wrapper": "^1.0.0-beta.5.2", - "lowercase-keys": "^2.0.0", - "p-cancelable": "^2.0.0", - "responselike": "^2.0.0" - }, - "engines": { - "node": ">=10.19.0" - }, - "funding": { - "url": "https://github.com/sindresorhus/got?sponsor=1" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/hosted-git-info": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", - "dev": true, - "license": "ISC" - }, - "node_modules/http-cache-semantics": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", - "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", - "dev": true, - "license": "BSD-2-Clause" - }, - "node_modules/http2-wrapper": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", - "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", - "dev": true, - "license": "MIT", - "dependencies": { - "quick-lru": "^5.1.1", - "resolve-alpn": "^1.0.0" - }, - "engines": { - "node": ">=10.19.0" - } - }, - "node_modules/immer": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/immer/-/immer-10.1.1.tgz", - "integrity": "sha512-s2MPrmjovJcoMaHtx6K11Ra7oD05NT97w1IC5zpMkT6Atjr7H8LjaDd81iIxUYpMKSRRNMJE703M1Fhr/TctHw==", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/immer" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", - "dev": true, - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true, - "license": "MIT" - }, - "node_modules/is-core-module": { - "version": "2.16.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", - "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", - "dev": true, - "license": "MIT", - "dependencies": { - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "dev": true, - "license": "MIT", - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-docker": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/isbinaryfile": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.10.tgz", - "integrity": "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/gjtorikian/" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "license": "MIT" - }, - "node_modules/jsesc": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz", - "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==", - "dev": true, - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", - "dev": true, - "license": "ISC", - "optional": true - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "license": "MIT", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "dev": true, - "license": "MIT", - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/junk": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/junk/-/junk-3.1.0.tgz", - "integrity": "sha512-pBxcB3LFc8QVgdggvZWyeys+hnrNWg4OcZIU/1X59k5jQdLBlCsYGRQaz234SqoRLTCgMH00fY0xRJH+F9METQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/load-json-file": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", - "integrity": "sha512-3p6ZOGNbiX4CdvEd1VcE6yi78UrGNpjHO33noGwHCnT/o2fyllJDepsm8+mFFv/DvtwFHht5HIHSyOy5a+ChVQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", - "strip-bom": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/lodash.get": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", - "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==", - "deprecated": "This package is deprecated. Use the optional chaining (?.) operator instead.", - "dev": true, - "license": "MIT" - }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "license": "MIT", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, - "node_modules/lowercase-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", - "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/matcher": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz", - "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "escape-string-regexp": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "license": "MIT", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mimic-response": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", - "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" - }, - "node_modules/nanoid": { - "version": "3.3.8", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz", - "integrity": "sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/node-releases": { - "version": "2.0.19", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", - "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", - "dev": true, - "license": "MIT" - }, - "node_modules/normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "node_modules/normalize-package-data/node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/normalize-url": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", - "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/p-cancelable": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", - "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-try": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^1.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/parse-author": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/parse-author/-/parse-author-2.0.0.tgz", - "integrity": "sha512-yx5DfvkN8JsHL2xk2Os9oTia467qnvRgey4ahSm2X8epehBLx/gWLcy5KI+Y36ful5DzGbCS6RazqZGgy1gHNw==", - "dev": true, - "license": "MIT", - "dependencies": { - "author-regex": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/parse-json": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", - "integrity": "sha512-QR/GGaKCkhwk1ePQNYDRKYZ3mwU9ypsKhB0XyFnLQdomyEqk3e8wpW3V5Jp88zbxK4n5ST1nqo+g9juTpownhQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "error-ex": "^1.2.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true, - "license": "MIT" - }, - "node_modules/path-type": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz", - "integrity": "sha512-dUnb5dXUf+kzhC/W/F4e5/SkluXIFf5VUHolW1Eg1irn1hGWjPGdsRcvYJ1nD6lhk8Ir7VM0bHJKsYTx8Jx9OQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "pify": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/pend": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", - "dev": true, - "license": "MIT" - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", - "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/plist": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.0.tgz", - "integrity": "sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@xmldom/xmldom": "^0.8.8", - "base64-js": "^1.5.1", - "xmlbuilder": "^15.1.1" - }, - "engines": { - "node": ">=10.4.0" - } - }, - "node_modules/postcss": { - "version": "8.4.38", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz", - "integrity": "sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==", - "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", - "dependencies": { - "nanoid": "^3.3.7", - "picocolors": "^1.0.0", - "source-map-js": "^1.2.0" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/postcss-value-parser": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", - "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", - "license": "MIT" - }, - "node_modules/progress": { - "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" - } - }, - "node_modules/proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", - "license": "MIT" - }, - "node_modules/pump": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz", - "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", - "dev": true, - "license": "MIT", - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "node_modules/quick-lru": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", - "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/rcedit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/rcedit/-/rcedit-3.1.0.tgz", - "integrity": "sha512-WRlRdY1qZbu1L11DklT07KuHfRk42l0NFFJdaExELEu4fEQ982bP5Z6OWGPj/wLLIuKRQDCxZJGAwoFsxhZhNA==", - "dev": true, - "license": "MIT", - "dependencies": { - "cross-spawn-windows-exe": "^1.1.0" - }, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/react": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", - "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-dom": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", - "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0", - "scheduler": "^0.23.2" - }, - "peerDependencies": { - "react": "^18.3.1" - } - }, - "node_modules/react-flow-renderer": { - "version": "10.3.17", - "resolved": "https://registry.npmjs.org/react-flow-renderer/-/react-flow-renderer-10.3.17.tgz", - "integrity": "sha512-bywiqVErlh5kCDqw3x0an5Ur3mT9j9CwJsDwmhmz4i1IgYM1a0SPqqEhClvjX+s5pU4nHjmVaGXWK96pwsiGcQ==", - "deprecated": "react-flow-renderer has been renamed to reactflow, please use this package from now on https://reactflow.dev/docs/guides/migrate-to-v11/", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.18.9", - "@types/d3": "^7.4.0", - "@types/resize-observer-browser": "^0.1.7", - "classcat": "^5.0.3", - "d3-drag": "^3.0.0", - "d3-selection": "^3.0.0", - "d3-zoom": "^3.0.0", - "zustand": "^3.7.2" - }, - "engines": { - "node": ">=14" - }, - "peerDependencies": { - "react": "16 || 17 || 18", - "react-dom": "16 || 17 || 18" - } - }, - "node_modules/react-flow-renderer/node_modules/zustand": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/zustand/-/zustand-3.7.2.tgz", - "integrity": "sha512-PIJDIZKtokhof+9+60cpockVOq05sJzHCriyvaLBmEJixseQ1a5Kdov6fWZfWOu5SK9c+FhH1jU0tntLxRJYMA==", - "license": "MIT", - "engines": { - "node": ">=12.7.0" - }, - "peerDependencies": { - "react": ">=16.8" - }, - "peerDependenciesMeta": { - "react": { - "optional": true - } - } - }, - "node_modules/react-redux": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-9.2.0.tgz", - "integrity": "sha512-ROY9fvHhwOD9ySfrF0wmvu//bKCQ6AeZZq1nJNtbDC+kk5DuSuNX/n6YWYF/SYy7bSba4D4FSz8DJeKY/S/r+g==", - "license": "MIT", - "dependencies": { - "@types/use-sync-external-store": "^0.0.6", - "use-sync-external-store": "^1.4.0" - }, - "peerDependencies": { - "@types/react": "^18.2.25 || ^19", - "react": "^18.0 || ^19", - "redux": "^5.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - }, - "redux": { - "optional": true - } - } - }, - "node_modules/react-redux/node_modules/use-sync-external-store": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.4.0.tgz", - "integrity": "sha512-9WXSPC5fMv61vaupRkCKCxsPxBocVnwakBEkMIHHpkTTg6icbJtg6jzgtLDm4bl3cSHAca52rYWih0k4K3PfHw==", - "license": "MIT", - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" - } - }, - "node_modules/react-refresh": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz", - "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-router": { - "version": "7.5.2", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.5.2.tgz", - "integrity": "sha512-9Rw8r199klMnlGZ8VAsV/I8WrIF6IyJ90JQUdboupx1cdkgYqwnrYjH+I/nY/7cA1X5zia4mDJqH36npP7sxGQ==", - "license": "MIT", - "dependencies": { - "cookie": "^1.0.1", - "set-cookie-parser": "^2.6.0", - "turbo-stream": "2.4.0" - }, - "engines": { - "node": ">=20.0.0" - }, - "peerDependencies": { - "react": ">=18", - "react-dom": ">=18" - }, - "peerDependenciesMeta": { - "react-dom": { - "optional": true - } - } - }, - "node_modules/react-router-dom": { - "version": "7.5.2", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.5.2.tgz", - "integrity": "sha512-yk1XW8Fj7gK7flpYBXF3yzd2NbX6P7Kxjvs2b5nu1M04rb5pg/Zc4fGdBNTeT4eDYL2bvzWNyKaIMJX/RKHTTg==", - "license": "MIT", - "dependencies": { - "react-router": "7.5.2" - }, - "engines": { - "node": ">=20.0.0" - }, - "peerDependencies": { - "react": ">=18", - "react-dom": ">=18" - } - }, - "node_modules/read-pkg": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", - "integrity": "sha512-eFIBOPW7FGjzBuk3hdXEuNSiTZS/xEMlH49HxMyzb0hyPfu4EhVjT2DH32K1hSSmVq4sebAWnZuuY5auISUTGA==", - "dev": true, - "license": "MIT", - "dependencies": { - "load-json-file": "^2.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/read-pkg-up": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz", - "integrity": "sha512-1orxQfbWGUiTn9XsPlChs6rLie/AV9jwZTGmu2NZw/CUDJQchXJFYE0Fq5j7+n558T1JhDWLdhyd1Zj+wLY//w==", - "dev": true, - "license": "MIT", - "dependencies": { - "find-up": "^2.0.0", - "read-pkg": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/redux": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/redux/-/redux-5.0.1.tgz", - "integrity": "sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==", - "license": "MIT" - }, - "node_modules/redux-thunk": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-3.1.0.tgz", - "integrity": "sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==", - "license": "MIT", - "peerDependencies": { - "redux": "^5.0.0" - } - }, - "node_modules/regenerator-runtime": { - "version": "0.14.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", - "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", - "license": "MIT" - }, - "node_modules/reselect": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.1.1.tgz", - "integrity": "sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w==", - "license": "MIT" - }, - "node_modules/resolve": { - "version": "1.22.10", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", - "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-core-module": "^2.16.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-alpn": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", - "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==", - "dev": true, - "license": "MIT" - }, - "node_modules/responselike": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", - "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", - "dev": true, - "license": "MIT", - "dependencies": { - "lowercase-keys": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/roarr": { - "version": "2.15.4", - "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz", - "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==", - "dev": true, - "license": "BSD-3-Clause", - "optional": true, - "dependencies": { - "boolean": "^3.0.1", - "detect-node": "^2.0.4", - "globalthis": "^1.0.1", - "json-stringify-safe": "^5.0.1", - "semver-compare": "^1.0.0", - "sprintf-js": "^1.1.2" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/rollup": { - "version": "4.40.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.40.1.tgz", - "integrity": "sha512-C5VvvgCCyfyotVITIAv+4efVytl5F7wt+/I2i9q9GZcEXW9BP52YYOXC58igUi+LFZVHukErIIqQSWwv/M3WRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "1.0.7" - }, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.40.1", - "@rollup/rollup-android-arm64": "4.40.1", - "@rollup/rollup-darwin-arm64": "4.40.1", - "@rollup/rollup-darwin-x64": "4.40.1", - "@rollup/rollup-freebsd-arm64": "4.40.1", - "@rollup/rollup-freebsd-x64": "4.40.1", - "@rollup/rollup-linux-arm-gnueabihf": "4.40.1", - "@rollup/rollup-linux-arm-musleabihf": "4.40.1", - "@rollup/rollup-linux-arm64-gnu": "4.40.1", - "@rollup/rollup-linux-arm64-musl": "4.40.1", - "@rollup/rollup-linux-loongarch64-gnu": "4.40.1", - "@rollup/rollup-linux-powerpc64le-gnu": "4.40.1", - "@rollup/rollup-linux-riscv64-gnu": "4.40.1", - "@rollup/rollup-linux-riscv64-musl": "4.40.1", - "@rollup/rollup-linux-s390x-gnu": "4.40.1", - "@rollup/rollup-linux-x64-gnu": "4.40.1", - "@rollup/rollup-linux-x64-musl": "4.40.1", - "@rollup/rollup-win32-arm64-msvc": "4.40.1", - "@rollup/rollup-win32-ia32-msvc": "4.40.1", - "@rollup/rollup-win32-x64-msvc": "4.40.1", - "fsevents": "~2.3.2" - } - }, - "node_modules/scheduler": { - "version": "0.23.2", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", - "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0" - } - }, - "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/semver-compare": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", - "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==", - "dev": true, - "license": "MIT", - "optional": true - }, - "node_modules/serialize-error": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", - "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "type-fest": "^0.13.1" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/set-cookie-parser": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.1.tgz", - "integrity": "sha512-IOc8uWeOZgnb3ptbCURJWNjWUPcO3ZnTTdzsurqERrP6nPyv+paC55vJM0LpOlT2ne+Ix+9+CRG1MNLlyZ4GjQ==", - "license": "MIT" - }, - "node_modules/shallowequal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", - "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==", - "license": "MIT" - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/source-map-js": { - "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" - } - }, - "node_modules/spdx-correct": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", - "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-exceptions": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz", - "integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==", - "dev": true, - "license": "CC-BY-3.0" - }, - "node_modules/spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-license-ids": { - "version": "3.0.21", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.21.tgz", - "integrity": "sha512-Bvg/8F5XephndSK3JffaRqdT+gyhfqIPwDHpX80tJrF8QQRYMo8sNMeaZ2Dp5+jhwKnUmIOyFFQfHRkjJm5nXg==", - "dev": true, - "license": "CC0-1.0" - }, - "node_modules/sprintf-js": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", - "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", - "dev": true, - "license": "BSD-3-Clause", - "optional": true - }, - "node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-outer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.1.tgz", - "integrity": "sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==", - "dev": true, - "license": "MIT", - "dependencies": { - "escape-string-regexp": "^1.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/strip-outer/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/styled-components": { - "version": "6.1.13", - "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-6.1.13.tgz", - "integrity": "sha512-M0+N2xSnAtwcVAQeFEsGWFFxXDftHUD7XrKla06QbpUMmbmtFBMMTcKWvFXtWxuD5qQkB8iU5gk6QASlx2ZRMw==", - "license": "MIT", - "dependencies": { - "@emotion/is-prop-valid": "1.2.2", - "@emotion/unitless": "0.8.1", - "@types/stylis": "4.2.5", - "css-to-react-native": "3.2.0", - "csstype": "3.1.3", - "postcss": "8.4.38", - "shallowequal": "1.1.0", - "stylis": "4.3.2", - "tslib": "2.6.2" - }, - "engines": { - "node": ">= 16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/styled-components" - }, - "peerDependencies": { - "react": ">= 16.8.0", - "react-dom": ">= 16.8.0" - } - }, - "node_modules/stylis": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.3.2.tgz", - "integrity": "sha512-bhtUjWd/z6ltJiQwg0dUfxEJ+W+jdqQd8TbWLWyeIJHlnsqmGLRFFd8e5mA0AZi/zx90smXRlN66YMTcaSFifg==", - "license": "MIT" - }, - "node_modules/sumchecker": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz", - "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "debug": "^4.1.0" - }, - "engines": { - "node": ">= 8.0" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/tinyglobby": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.13.tgz", - "integrity": "sha512-mEwzpUgrLySlveBwEVDMKk5B57bhLPYovRfPAXD5gA/98Opn0rCDj3GtLwFvCvH5RK9uPCExUROW5NjDwvqkxw==", - "dev": true, - "license": "MIT", - "dependencies": { - "fdir": "^6.4.4", - "picomatch": "^4.0.2" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" - } - }, - "node_modules/trim-repeated": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz", - "integrity": "sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg==", - "dev": true, - "license": "MIT", - "dependencies": { - "escape-string-regexp": "^1.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/trim-repeated/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/tslib": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", - "license": "0BSD" - }, - "node_modules/turbo-stream": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/turbo-stream/-/turbo-stream-2.4.0.tgz", - "integrity": "sha512-FHncC10WpBd2eOmGwpmQsWLDoK4cqsA/UT/GqNoaKOQnT8uzhtCbg3EoUDMvqpOSAI0S26mr0rkjzbOO6S3v1g==", - "license": "ISC" - }, - "node_modules/type-fest": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", - "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "optional": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", - "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.1" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/use-sync-external-store": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.2.tgz", - "integrity": "sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw==", - "license": "MIT", - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0" - } - }, - "node_modules/validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "node_modules/vite": { - "version": "6.4.1", - "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.1.tgz", - "integrity": "sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "^0.25.0", - "fdir": "^6.4.4", - "picomatch": "^4.0.2", - "postcss": "^8.5.3", - "rollup": "^4.34.9", - "tinyglobby": "^0.2.13" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - }, - "peerDependencies": { - "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", - "jiti": ">=1.21.0", - "less": "*", - "lightningcss": "^1.21.0", - "sass": "*", - "sass-embedded": "*", - "stylus": "*", - "sugarss": "*", - "terser": "^5.16.0", - "tsx": "^4.8.1", - "yaml": "^2.4.2" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "jiti": { - "optional": true - }, - "less": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "sass": { - "optional": true - }, - "sass-embedded": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - }, - "tsx": { - "optional": true - }, - "yaml": { - "optional": true - } - } - }, - "node_modules/vite/node_modules/postcss": { - "version": "8.5.3", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.3.tgz", - "integrity": "sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==", - "dev": true, - "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", - "dependencies": { - "nanoid": "^3.3.8", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/xmlbuilder": { - "version": "15.1.1", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz", - "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.0" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true, - "license": "ISC" - }, - "node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/yauzl": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", - "dev": true, - "license": "MIT", - "dependencies": { - "buffer-crc32": "~0.2.3", - "fd-slicer": "~1.1.0" - } - }, - "node_modules/zustand": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.3.tgz", - "integrity": "sha512-14fwWQtU3pH4dE0dOpdMiWjddcH+QzKIgk1cl8epwSE7yag43k/AD/m4L6+K7DytAOr9gGBe3/EXj9g7cdostg==", - "license": "MIT", - "engines": { - "node": ">=12.20.0" - }, - "peerDependencies": { - "@types/react": ">=18.0.0", - "immer": ">=9.0.6", - "react": ">=18.0.0", - "use-sync-external-store": ">=1.2.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - }, - "immer": { - "optional": true - }, - "react": { - "optional": true - }, - "use-sync-external-store": { - "optional": true - } - } - } - } -} diff --git a/FRONT/DEV/preload.js b/FRONT/DEV/preload.js deleted file mode 100644 index 1ceb420..0000000 --- a/FRONT/DEV/preload.js +++ /dev/null @@ -1,11 +0,0 @@ -const { contextBridge, ipcRenderer } = require('electron'); - -contextBridge.exposeInMainWorld('electronAPI', { - send: (channel, data) => ipcRenderer.send(channel, data), - on: (channel, func) => ipcRenderer.on(channel, (event, ...args) => func(...args)), - quitApp: () => ipcRenderer.send('quit-app'), - - showSaveDialog: (options) => ipcRenderer.invoke('show-save-dialog', options), - writeFile: (path, data) => ipcRenderer.invoke('write-file', { path, data }), - onThemeChange: (callback) => ipcRenderer.on('theme-update', (event, theme) => callback(theme)) -}); \ No newline at end of file diff --git a/FRONT/DEV/public/locales/en/common.json b/FRONT/DEV/public/locales/en/common.json deleted file mode 100644 index 966fec1..0000000 --- a/FRONT/DEV/public/locales/en/common.json +++ /dev/null @@ -1,186 +0,0 @@ -{ - "userScanner-title": "Subnet Node Scanning", - "userScanner-visible": "Display Method", - "userScanner-loading": "Scanning nodes", - "userScanner-refresh": "Refresh List", - "userScanner-scan": "Scan Nodes", - "userScanner-notFound": "Nodes not found", - "tableScanner-online": "Online", - "tableScanner-name": "Name", - "tableScanner-vendor": "Vendor", - "tableScanner-ip": "IP Address", - "tableScanner-ports": "Open Ports", - "tableScanner-activity": "Last Activity", - "tableScanner-note": "Note", - "tableScanner-action": "Action", - "tableScanner-unknown": "Unknown", - "tableScanner-noData": "No data to display", - "listUsers-activeNodes": "Active Nodes", - "listUsers-inactiveNodes": "Inactive Nodes", - "ipInput-placeholder": "Enter IP", - "ipInput-error": "Enter a valid IP address", - "userScanner-visible_table": "Table", - "userScanner-visible_list": "List", - - "wifiScanner-title": "Wi-Fi Access Point Scanning", - "wifiScanner-scanning": "Scanning access points", - "wifiScanner-scanError": "Network scanning error", - "wifiScanner-refresh": "Refresh List", - "wifiScanner-scan": "Scan Access Points", - "wifiModal-bssid": "BSSID", - "wifiModal-vendor": "Vendor", - "wifiModal-signal": "Signal", - "wifiModal-channel": "Channel", - "wifiModal-encryption": "Encryption", - "wifiModal-frequency": "Frequency", - "wifiModal-hidden": "Hidden Network", - "wifiModal-note": "Note", - "wifiModal-connect": "Connect", - "wifiModal-disconnect": "Disconnect", - "wifiModal-unknown": "Unknown", - "wifiModal-none": "None", - "common-yes": "Yes", - "common-no": "No", - - "addNode": "Add Node", - "enterNodeAddress": "Enter node address...", - "connectionLost": "Connection Lost", - "serverDisconnected": "Server connection interrupted", - "checkAddressAndRetry": "Please check the address availability and try again", - "cancel": "Cancel", - "close": "Close", - "save": "Save", - "retry": "Retry", - "connect": "Connect", - "submit": "Submit", - "common-back": "Back", - "error": "Error", - "networkConnection": "Network Connection", - "enterPassword": "Enter password...", - "connectingAttempt": "Attempting to connect to the network", - "connectionError": "Network connection error", - "connectionErrorLog": "Connection error: ", - "customizeTable-title": "Subnet Node Table Customization", - - "wifiDisconnect-title": "Wi-Fi Network Disconnection", - "wifiDisconnect-confirm": "Confirm Disconnection", - "wifiDisconnect-message1": "You are about to disconnect from the network - ", - "wifiDisconnect-message2": " All active connections will be interrupted.", - "wifiDisconnect-disconnect": "Disconnect", - "wifiDisconnect-progress": "Disconnecting from the network", - - "ipChange-title": "IP Address Change", - "ipChange-checkingIp": "Checking IP address validity", - "ipChange-generalInfo": "General Information", - "ipChange-interface": "Interface", - "ipChange-ipInfo": "IP Information", - "ipChange-currentIp": "Current IP", - "ipChange-currentGateway": "Current Gateway", - "ipChange-currentDns": "Current DNS", - "ipChange-newIp": "New IP", - "ipChange-newGateway": "New Gateway", - "ipChange-newDns": "New DNS", - "ipChange-checkError": "An error occurred while checking validity", - "ipChange-adminRequired": "To change network settings, you must log in as an administrator", - - "note-edit": "Edit Note", - "note-add": "Add Note", - "note-enter": "Enter note...", - - "auth-successLogin": "Successful Login", - "auth-successLogout": "Successful Logout", - "auth-getAccess": "Obtaining Access Rights", - "auth-enableAdmin": "Enable Administrative Access", - "auth-enterAdminPass": "Enter administrator password...", - "auth-wrongPass": "Incorrect operator password", - "auth-switchToLimited": "Switch to Limited Access", - "auth-limitedModeDesc": "In this mode, administrator privileges are restricted.", - "auth-restrictAccess": "Restrict Access", - "auth-closeHint": "This window can be closed, or it will disappear on its own", - - "operatorConfig-title": "Node Operator Configuration", - "operatorConfig-instruction": "Before starting, you need to create an application operator password", - "operatorConfig-passwordPlaceholder": "Enter password...", - "operatorConfig-repeatPasswordPlaceholder": "Repeat password...", - "operatorConfig-passwordMismatch": "Passwords do not match!", - "operatorConfig-submit": "Submit", - - "about-logoAlt": "Gossys Logo", - "about-title": "About the Application", - "about-description": "GoNets is a minimally viable cross-platform product (MVP) for demonstrating our approach to managing PC settings in a corporate environment.", - "about-featuresTitle": "Features", - "about-feature1": "Visualization of active network resources", - "about-feature2": "Configuration of local and remote network resource parameters", - "about-feature3": "Management of resource interaction with the GoNets Client", - "about-disclaimer": "The software is for demonstration and home use only.", - "about-goToPro": "Go to GoNets-PRO", - "about-homepage": "Homepage", - "about-documentation": "Documentation", - "about-license": "License", - "about-copyright": "Developed and maintained by Hybrid Office Systems LLC, 2024-2025. All rights reserved.", - - "main-logoAlt": "Application Logo", - "main-networkSettings": "Network Settings", - "main-about": "About the Program", - - "nodes-availableNodes": "Available Nodes", - "nodes-rootAddress": "Root Address", - "nodes-name": "Name", - "nodes-loading": "Loading", - "nodes-additionalNodes": "Additional Nodes", - "nodes-node": "Node", - "nodes-address": "Address", - "nodes-connectionError": "Failed to connect to the server at the address ", - - "settings-nodesSection": "Subnet Nodes", - "settings-intervalScanning": "Interval Scanning", - "settings-scanInterval": "Node Scan Interval (min)", - "settings-displayNames": "Display Names When Missing", - "settings-ipAddress": "IP Address", - "settings-unknown": "Unknown", - "settings-rowsPerPage": "Rows Per Table", - "settings-displaySettings": "Nodes Display", - "settings-configure": "Configure", - "settings-clearSessionData": "Clear Session Data", - "settings-clear": "Clear", - "settings-clearFailed": "Data was not deleted: ", - "settings-exportData": "Export Nodes Data", - "settings-export": "Export", - "settings-saveNodesTitle": "Save Nodes Data", - "settings-exportSuccess": "Data exported successfully!", - "settings-exportError": "Export error: ", - "settings-status": "Online", - "settings-name": "Name", - "settings-vendor": "Manufacturer", - "settings-openPorts": "Open Ports", - "settings-lastActivity": "Last Activity", - "settings-note": "Note", - "settings-action": "Action", - - "settings-title": "Settings", - "settings-resetSettings": "Reset Settings", - "settings-resetConfirm": "Are you sure you want to reset all settings to default values?", - "settings-cancel": "Cancel", - "settings-save": "Save", - "settings-fixErrors": "Fix errors before saving", - "settings-fillRequired": "Fill in all required fields", - "settings-dataNotDeleted": "Data was not deleted: ", - "settings-saveNetworksTitle": "Save Networks Data", - "settings-fieldRequired": "Field cannot be empty", - "settings-enterNumber": "Please enter a number", - "settings-valueTooSmall": "Value cannot be less than ", - "settings-valueTooLarge": "Value cannot be greater than ", - - "settings-sections-subnetNodes": "Subnet Nodes", - "settings-sections-accessPoints": "Access Points", - "settings-sections-appearance": "Appearance", - - "settings-exportNetworkData": "Export Access Points Data", - "settings-colorTheme": "Color Theme", - "settings-light": "Light", - "settings-dark": "Dark", - "settings-system": "As in System", - "settings-interfaceLanguage": "Interface Language", - "settings-russian": "Russian", - "settings-english": "English" -} diff --git a/FRONT/DEV/public/locales/ru/common.json b/FRONT/DEV/public/locales/ru/common.json deleted file mode 100644 index 144e1d4..0000000 --- a/FRONT/DEV/public/locales/ru/common.json +++ /dev/null @@ -1,192 +0,0 @@ - { - "userScanner-title": "Сканирование узлов подсети", - "userScanner-visible": "Способ отображения", - "userScanner-loading": "Cканирование узлов", - "userScanner-refresh": "Обновить список", - "userScanner-scan": "Сканировать узлы", - "userScanner-notFound": "Узлы не найдены", - "tableScanner-online": "Онлайн", - "tableScanner-name": "Имя", - "tableScanner-vendor": "Производитель", - "tableScanner-ip": "IP адрес", - "tableScanner-ports": "Открытые порты", - "tableScanner-activity": "Последняя активность", - "tableScanner-note": "Заметка", - "tableScanner-action": "Действие", - "tableScanner-unknown": "Неизвестно", - "tableScanner-noData": "Нет данных для отображения", - "listUsers-activeNodes": "Активные узлы", - "listUsers-inactiveNodes": "Неактивные узлы", - "ipInput-placeholder": "Введите IP", - "ipInput-error": "Введите корректный IP-адрес", - "userScanner-visible_table": "Таблица", - "userScanner-visible_list": "Список", - - "wifiScanner-title": "Сканирование точек доступа Wi-Fi", - "wifiScanner-scanning": "Сканирование точек доступа", - "wifiScanner-scanError": "Ошибка сканирования сети", - "wifiScanner-refresh": "Обновить список", - "wifiScanner-scan": "Сканировать точки доступа", - "wifiModal-bssid": "BSSID", - "wifiModal-vendor": "Производитель", - "wifiModal-signal": "Сигнал", - "wifiModal-channel": "Канал", - "wifiModal-encryption": "Шифрование", - "wifiModal-frequency": "Частота", - "wifiModal-hidden": "Скрытая сеть", - "wifiModal-note": "Заметка", - "wifiModal-connect": "Подключиться", - "wifiModal-disconnect": "Отключиться", - "wifiModal-unknown": "Неизвестно", - "wifiModal-none": "Отсутствует", - "common-yes": "Да", - "common-no": "Нет", - - "addNode": "Добавление узла", - "enterNodeAddress": "Введите адрес узла...", - "connectionLost": "Соединение прервано", - "serverDisconnected": "Произошёл разрыв с сервером", - "checkAddressAndRetry": "Пожалуйста, проверьте доступ к адресу и попробуйте снова", - "cancel": "Отменить", - "close": "Закрыть", - "save": "Сохранить", - "retry": "Повторить", - "connect": "Подключиться", - "common-back": "Назад", - "submit": "Подтвердить", - "error": "Ошибка", - "networkConnection": "Подключение к сети", - "enterPassword": "Введите пароль...", - "connectingAttempt": "Попытка подключения к сети", - "connectionError": "Ошибка подключения к сети", - "connectionErrorLog": "Ошибка подключения: ", - "customizeTable-title": "Кастомизация таблицы узлов подсети", - - "wifiDisconnect-title": "Отключение от Wi-Fi сети", - "wifiDisconnect-confirm": "Подтверждение отключения", - "wifiDisconnect-message1": "Вы собираетесь отключиться от сети - ", - "wifiDisconnect-message2": " Все активные подключения будут прерваны.", - "wifiDisconnect-disconnect": "Отключиться", - "wifiDisconnect-progress": "Отключение от сети", - - "ipChange-title": "Изменение IP-Адреса", - "ipChange-checkingIp": "Идет проверка корректности IP адреса", - "ipChange-generalInfo": "Общие сведения", - "ipChange-interface": "Интерфейс", - "ipChange-ipInfo": "Сведения об IP", - "ipChange-currentIp": "Текущий ip", - "ipChange-currentGateway": "Текущий шлюз", - "ipChange-currentDns": "Текущий DNS", - "ipChange-newIp": "Новый ip", - "ipChange-newGateway": "Новый шлюз", - "ipChange-newDns": "Новый DNS", - "ipChange-checkError": "Произошла ошибка проверки корректности", - "ipChange-adminRequired": "Для изменения сетевых настроек необходимо авторизироваться под администратором", - - "note-edit": "Редактирование заметки", - "note-add": "Добавление заметки", - "note-enter": "Введите заметку...", - - "auth-successLogin": "Успешный вход", - "auth-successLogout": "Успешный выход", - "auth-getAccess": "Получение прав доступа", - "auth-enableAdmin": "Включить административный доступ", - "auth-enterAdminPass": "Введите пароль администратора...", - "auth-wrongPass": "Неверный пароль оператора", - "auth-switchToLimited": "Переключиться на ограниченный доступ", - "auth-limitedModeDesc": "В данном режиме доступа ограничиваются полномочия администратора.", - "auth-restrictAccess": "Ограничить доступ", - "auth-closeHint": "Это окно можно закрыть, либо оно пропадёт само", - - "operatorConfig-title": "Настройка оператора узла", - "operatorConfig-instruction": "Перед началом работы необходимо создать пароль оператора приложения", - "operatorConfig-passwordPlaceholder": "Введите пароль...", - "operatorConfig-repeatPasswordPlaceholder": "Повторите пароль...", - "operatorConfig-passwordMismatch": "Пароли не совпадают!", - "operatorConfig-submit": "Отправить", - - "about-logoAlt": "Логотип Gossys", - "about-title": "О приложении", - "about-description": "ГоNets - минимально работоспособный кроссплатформенный продукт (MVP) для демонстрации нашего подхода к управлению настройками ПК в корпоративной среде.", - "about-featuresTitle": "Возможности", - "about-feature1": "Визуализация активных сетевых ресурсов", - "about-feature2": "Настройка параметров локальных и удалённых сетевых ресурсов", - "about-feature3": "Управление взаимодействием ресурсов с Клиентом ГoNets", - "about-disclaimer": "Программное обеспечение исключительно для ознакомления и домашнего использования.", - "about-goToPro": "Перейти на ГоNets-PRO", - "about-homepage": "Домашняя страница", - "about-documentation": "Документация", - "about-license": "Лицензия", - "about-copyright": "Разработано и поддерживается ООО «Гибридные Офисные Системы» 2024-2025 г. Все права защищены.", - - "main-logoAlt": "Логотип приложения", - "main-networkSettings": "Настройки сети", - "main-about": "О программе", - - "nodes-availableNodes": "Доступные узлы", - "nodes-rootAddress": "Корневой адрес", - "nodes-name": "Имя", - "nodes-loading": "Загрузка", - "nodes-additionalNodes": "Дополнительные узлы", - "nodes-node": "Узел", - "nodes-address": "Адрес", - "nodes-connectionError": "Не удалось подключиться к серверу по адресу ", - - "settings-nodesSection": "Узлы подсети", - "settings-intervalScanning": "Интервальное сканирование", - "settings-scanInterval": "Интервал сканирования узлов (мин)", - "settings-displayNames": "Отображаемые имена при отсутствии", - "settings-ipAddress": "IP адрес", - "settings-unknown": "Неизвестно", - "settings-rowsPerPage": "Количество строк в таблице", - "settings-displaySettings": "Отображение узлов", - "settings-configure": "Настроить", - "settings-clearSessionData": "Очистить данные сессии", - "settings-clear": "Очистить", - "settings-clearFailed": "Данные не были удалены: ", - "settings-exportData": "Экспорт данных узлов", - "settings-export": "Экспортировать", - "settings-saveNodesTitle": "Сохранить данные узлов", - "settings-exportSuccess": "Данные успешно экспортированы!", - "settings-exportError": "Ошибка экспорта: ", - "settings-status": "Онлайн", - "settings-name": "Имя", - "settings-vendor": "Производитель", - "settings-openPorts": "Открытые порты", - "settings-lastActivity": "Последняя активность", - "settings-note": "Заметка", - "settings-action": "Действие", - - "settings-title": "Настройки", - "settings-resetSettings": "Сбросить настройки", - "settings-resetConfirm": "Вы уверены, что хотите сбросить все настройки к значениям по умолчанию?", - "settings-cancel": "Отменить", - "settings-save": "Сохранить", - "settings-fixErrors": "Исправьте ошибки перед сохранением", - "settings-fillRequired": "Заполните все обязательные поля", - "settings-dataNotDeleted": "Данные не были удалены: ", - "settings-saveNetworksTitle": "Сохранить данные сетей", - "settings-fieldRequired": "Поле не может быть пустым", - "settings-enterNumber": "Пожалуйста, введите число", - "settings-valueTooSmall": "Значение не может быть меньше ", - "settings-valueTooLarge": "Значение не может быть больше ", - - "settings-sections-subnetNodes": "Узлы подсети", - "settings-sections-accessPoints": "Точки доступа", - "settings-sections-appearance": "Внешний вид", - - "settings-exportNetworkData": "Экспорт данных точек доступа", - "settings-colorTheme": "Цветовая тема", - "settings-light": "Светлая", - "settings-dark": "Тёмная", - "settings-system": "Как в системе", - "settings-interfaceLanguage": "Язык интерфейса", - "settings-russian": "Русский", - "settings-english": "Английский" - - - - } - - - diff --git a/FRONT/DEV/src/components/UI/Pagination.tsx b/FRONT/DEV/src/components/UI/Pagination.tsx deleted file mode 100644 index 08ed767..0000000 --- a/FRONT/DEV/src/components/UI/Pagination.tsx +++ /dev/null @@ -1,77 +0,0 @@ -import React from 'react'; -import styled from "styled-components"; -import {buttonNames} from "../../const/buttons/names"; -import {IconComponent} from "../../const/buttons/icons"; - -const PaginateWrapper = styled.div` - width: 100%; - margin-top: 24px; - display: flex; - justify-content: center; - align-items: center; - gap: 10px; -` -const Page = styled.button<{ active?: boolean }>` - width: 36px; - height: 36px; - background: ${(props) => props.active ? props.theme.borderColor : props.theme.primary}; - color: ${(props) => props.active ? props.theme.primary : props.theme.textColor}; - border: 1px solid ${(props => props.theme.borderColor)}; - font-size: 16px; - cursor: pointer; - border-radius: 4px; - - transition: .4s ease; - &:hover { - background: ${(props) => props.active ? props.theme.textColor : props.theme.background};; - } -` - -interface PaginationProps { - currentPage: number; - totalPages: number; - onPrevPage: () => void; - onNextPage: () => void; - onPageChange: (page: number) => void; -} - -const Pagination = ({currentPage, totalPages, onPrevPage, onNextPage, onPageChange}: PaginationProps) => { - - const pageNumbers = Array.from({ length: totalPages }, (_, i) => i + 1); - - return ( - - - - - {pageNumbers.map((page, i) => ( - onPageChange(page)} - active={currentPage === page} - > - {page} - - ))} - - - - - ); -}; - -export default Pagination; \ No newline at end of file diff --git a/FRONT/DEV/src/components/modalwindows/modalContainers/customizeNodes.tsx b/FRONT/DEV/src/components/modalwindows/modalContainers/customizeNodes.tsx deleted file mode 100644 index b8ab434..0000000 --- a/FRONT/DEV/src/components/modalwindows/modalContainers/customizeNodes.tsx +++ /dev/null @@ -1,143 +0,0 @@ -import React, {useEffect, useState} from 'react'; -import {ButtonContainer, ModalContainer, ModalContent, ModalTitle} from "../style"; -import {MainButton} from "../../UI/buttons/mainButton"; -import {ModalMap} from "../windowsType"; -import {useModalContext} from "../../../store"; -import styled from "styled-components"; -import { useSettingsStore } from '../../../store/settings/settingsStore'; -import {useTranslation} from "../../../utils/i18n/hooks"; - -const StyledTableList = styled.ul` - display: flex; - justify-content: center; - align-items: center; - width: 100%; - box-sizing: border-box; - padding: 0 40px; - list-style-type: none; -` -const StyledTableItem = styled.li` - width: 160px; - height: 60px; - display: flex; - justify-content: center; - align-items: center; - text-align: center; - background-color: ${props => props.theme.accent}; - color: ${props => props.theme.primary}; - border: 1px solid ${props => props.theme.primary}; - - &:first-child { - border-radius: 16px 0 0 16px; - } - &:last-child { - border-radius: 0 16px 16px 0; - } - &.off{ - background-color: ${props => props.theme.offlineColor}; - } -` -const CustomizeNodes = () => { - const { openModal } = useModalContext(); - const pendingChanges = useSettingsStore(state => state.pendingChanges); - const updateSetting = useSettingsStore(state => state.updateSetting); - const getSetting = useSettingsStore(state => state.getSetting); - const initializeSettings = useSettingsStore(state => state.initializeSettings); - const {t} = useTranslation('common'); - const [dragIndex, setDragIndex] = useState(null); - - // Получаем текущие значения из хранилища - const initialColumns = getSetting('table-columns-order').currentValue as string[]; - const disabledColumns = getSetting('table-columns-disabled').currentValue as number[]; - const items = pendingChanges['table-columns-order'] ?? initialColumns; - const disabledItems = pendingChanges['table-columns-disabled'] ?? disabledColumns; - - // Drag & Drop - const handleDragStart = (index: number) => { - setDragIndex(index); - }; - const handleDragOver = (index: number) => { - if (dragIndex === null || index === dragIndex) return; - - const newItems = [...items]; - const [movedItem] = newItems.splice(dragIndex, 1); - newItems.splice(index, 0, movedItem); - - updateSetting('table-columns-order', newItems); - setDragIndex(index); - }; - const handleDrop = () => { - setDragIndex(null); - }; - - // Переключение состояния - const handleSwitch = (index: number) => { - const newDisabledItems = disabledItems.includes(index) - ? disabledItems.filter((i: number) => i !== index) - : [...disabledItems, index]; - - updateSetting('table-columns-disabled', newDisabledItems); - }; - - // Закрытие с сохранением - const handleSave = () => { - openModal(ModalMap['10']); - }; - - - useEffect(() => { - initializeSettings(); - }, [initializeSettings]); - - const getItemText = (item: string) => { - if (item === 'Онлайн') return t('settings-status'); - if (item === 'Имя') return t('settings-name'); - if (item === 'Производитель') return t('settings-vendor'); - if (item === 'IP адрес') return t('settings-ipAddress'); - if (item === 'Открытые порты') return t('settings-openPorts'); - if (item === 'Последняя активность') return t('settings-lastActivity'); - if (item === 'Заметка') return t('settings-note'); - if (item === 'Действие') return t('settings-action'); - return item; - }; - - return ( - - -

{t('customizeTable-title')}

-
- - - - {items.map((item:string, index:number) => ( - handleDragStart(index)} - onDragOver={(e) => { - e.preventDefault(); - handleDragOver(index); - }} - onDragEnd={handleDrop} - onClick={() => handleSwitch(index)} - > - {getItemText(item)} - - ))} - - - - - - -
- ); -}; - -export default CustomizeNodes; \ No newline at end of file diff --git a/FRONT/DEV/src/components/settings/SettingItem.tsx b/FRONT/DEV/src/components/settings/SettingItem.tsx deleted file mode 100644 index 69ed138..0000000 --- a/FRONT/DEV/src/components/settings/SettingItem.tsx +++ /dev/null @@ -1,226 +0,0 @@ -import {Setting} from "../../store/settings/settingsStore"; -import {useState} from "react"; -import styled, {useTheme} from "styled-components"; -import {IconComponent} from "../../const/buttons/icons"; -import {buttonNames} from "../../const/buttons/names"; -import SettingSelect from "./SettingSelect"; -import {MainButton} from "../UI/buttons/mainButton"; -import React from 'react'; -import {useModalContext} from "../../store"; -import {ModalMap} from "../modalwindows/windowsType"; -import {useTranslation} from "../../utils/i18n/hooks"; - -const SettingBlock = styled.div` - display: flex; - justify-content: space-between; - align-items: center; - gap: 24px; - margin-bottom: 18px; - font-size: 18px; - width: 90%; - input{ - font-size: 16px; - outline: none; - background-color: ${props => props.theme.primary}; - color: ${props => props.theme.textColor}; - border: 1px solid ${props => props.theme.borderColor}; - padding: 6px 8px; - border-radius: 4px; - } - input[type="number"]{ - width: 80px; - } - input[type="number"]::-webkit-inner-spin-button, - input[type="number"]::-webkit-outer-spin-button { - -webkit-appearance: none; - margin: 0; - } -` -const StyledCheckbox = styled.input.attrs({ type: 'checkbox' })` - width: 22px !important; - height: 22px !important; - appearance: none; - -webkit-appearance: none; - position: relative; - cursor: pointer; - overflow: hidden; - - &::after { - content: ""; - position: absolute; - width: 100%; - height: 100%; - background: ${props => props.theme.primary}; - top: 0; - left: 0; - } - &:checked::after { - background: ${props => props.theme.accent}; - } - -`; -const LabelCheckbox = styled.label` - position: relative; - cursor: pointer; - padding: 0; - svg{ - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - } -` -const InputWrapper = styled.div` - display: flex; - flex-direction: column; - align-items: end; - gap: 6px; -` -const ErrorText = styled.div` - color: ${props => props.theme.errorColor}; - font-size: 12px; -`; - -interface SettingItemProps { - setting: Setting; - value: any; - onChange: (value: any) => void; - onValidationError?: (error: string | null) => void; -} - -const SettingItem = React.memo(({ setting, value, onChange, onValidationError }: SettingItemProps) => { - const theme = useTheme(); - const { t } = useTranslation('common'); - const [error, setError] = useState(null); - const { openModal } = useModalContext(); - - const handleButtonAction = () => { - if (setting.id === 'customize-nodes') { - openModal(ModalMap['11']); - } else if (setting.action) { - // Создаем обертку для действия с переводами - const actionWithTranslations = async () => { - try { - // Временно заменяем alert на версию с переводами - const originalAlert = window.alert; - window.alert = (message: string) => { - // Применяем переводы к сообщениям - let translatedMessage = message; - if (message.startsWith('settings-dataNotDeleted')) { - translatedMessage = t('settings-dataNotDeleted') + message.replace('settings-dataNotDeleted', ''); - } else if (message === 'settings-exportSuccess') { - translatedMessage = t('settings-exportSuccess'); - } else if (message.startsWith('settings-exportError')) { - translatedMessage = t('settings-exportError') + message.replace('settings-exportError', ''); - } - originalAlert(translatedMessage); - }; - - if (setting.action) { - await setting.action(); - } - - // Восстанавливаем оригинальный alert - window.alert = originalAlert; - } catch (error) { - console.error('Action error:', error); - } - }; - actionWithTranslations(); - } - }; - - // Изменение числа - const handleNumberChange = (e: React.ChangeEvent) => { - const inputValue = e.target.value; - let newError: string | null = null; - - if (inputValue.trim() === '') { - newError = t('settings-fieldRequired'); - onChange(null); - } - else if (isNaN(Number(inputValue))) { - newError = t('settings-enterNumber'); - } - else { - const numValue = Number(inputValue); - if (setting.min !== undefined && numValue < setting.min) { - newError = t('settings-valueTooSmall') + setting.min; - } - else if (setting.max !== undefined && numValue > setting.max) { - newError = t('settings-valueTooLarge') + setting.max; - } - - if (!newError) { - onChange(numValue); - } - } - - setError(newError); - onValidationError?.(newError); - }; - - return ( - - - - {setting.type === 'boolean' && ( - - onChange(e.target.checked)} - /> - - - )} - - {setting.type === 'select' && setting.options && ( - onChange(value)} - /> - )} - - {setting.type === 'text' && ( - onChange(e.target.value)} - /> - )} - - {setting.type === 'number' && ( - - { - if (!/[0-9]/.test(e.key) && - !['Backspace', 'Delete', 'Tab', 'ArrowLeft', 'ArrowRight'].includes(e.key)) { - e.preventDefault(); - } - }} - className={error ? 'error' : ''} - /> - {error && {error}} - - )} - - {setting.type === 'button' && ( - - )} - {setting.type === 'hidden' && null} - - ); -}); - -export { SettingItem }; \ No newline at end of file diff --git a/FRONT/DEV/src/components/settings/SettingSelect.tsx b/FRONT/DEV/src/components/settings/SettingSelect.tsx deleted file mode 100644 index d6ff465..0000000 --- a/FRONT/DEV/src/components/settings/SettingSelect.tsx +++ /dev/null @@ -1,118 +0,0 @@ -import React, { useState, useRef, useEffect } from 'react'; -import styled from 'styled-components'; -import { IconComponent } from '../../const/buttons/icons'; -import {buttonNames} from "../../const/buttons/names"; - -interface SettingSelectProps { - value: any; - options: { value: any; label: string }[]; - onChange: (value: any) => void; - disabled?: boolean; -} - -const SelectWrapper = styled.div` - position: relative; - width: 100%; - max-width: 180px; -`; - -const SelectHeader = styled.div<{ $isOpen: boolean; $disabled?: boolean }>` - padding: 6px 8px; - border: 1px solid ${props => props.theme.borderColor}; - border-radius: 4px; - background-color: ${props => props.theme.primary}; - cursor: ${props => props.$disabled ? 'not-allowed' : 'pointer'}; - display: flex; - justify-content: space-between; - align-items: center; - opacity: ${props => props.$disabled ? 0.6 : 1}; - font-size: 16px; -`; - -const SelectOptions = styled.div<{ $isOpen: boolean }>` - position: absolute; - top: 100%; - left: 0; - right: 0; - margin-top: 4px; - max-height: 200px; - overflow-y: auto; - background: ${props => props.theme.primary}; - border: 1px solid ${props => props.theme.borderColor || '#ccc'}; - border-radius: 4px; - box-shadow: 0 2px 4px rgba(0,0,0,0.1); - z-index: 10; - display: ${props => props.$isOpen ? 'block' : 'none'}; -`; - -const OptionItem = styled.div<{ $isSelected: boolean }>` - padding: 6px 8px; - cursor: pointer; - background-color: ${props => props.$isSelected ? (props.theme.accent) : 'transparent'}; - color: ${props => props.$isSelected ? (props.theme.primary) : 'inherit'}; -`; - -const ArrowIcon = styled.span<{ $isOpen: boolean }>` - transition: transform 0.2s; - transform: rotate(${props => props.$isOpen ? '90deg' : '0deg'}); - display: flex; - align-items: center; -`; - -const SettingSelect: React.FC = ({value, options, onChange, disabled = false - }) => { - const [isOpen, setIsOpen] = useState(false); - const selectRef = useRef(null); - - const selectedOption = options.find(opt => opt.value === value); - - const toggleDropdown = () => { - if (!disabled) { - setIsOpen(!isOpen); - } - }; - - const handleSelect = (optionValue: any) => { - onChange(optionValue); - setIsOpen(false); - }; - - useEffect(() => { - const handleClickOutside = (event: MouseEvent) => { - if (selectRef.current && !selectRef.current.contains(event.target as Node)) { - setIsOpen(false); - } - }; - - document.addEventListener('mousedown', handleClickOutside); - return () => document.removeEventListener('mousedown', handleClickOutside); - }, []); - - return ( - - - {selectedOption?.label || 'Select...'} - - - - - - {options.map((option) => ( - handleSelect(option.value)} - > - {option.label} - - ))} - - - ); -}; - -export default SettingSelect; \ No newline at end of file diff --git a/FRONT/DEV/src/components/settings/Settings.tsx b/FRONT/DEV/src/components/settings/Settings.tsx deleted file mode 100644 index 57edc9d..0000000 --- a/FRONT/DEV/src/components/settings/Settings.tsx +++ /dev/null @@ -1,264 +0,0 @@ -import { ModalContainer, ModalTitle, ModalContent, ButtonContainer } from "../modalwindows/style"; -import { MainButton } from "../UI/buttons/mainButton"; -import {useCallback, useEffect, useMemo, useState} from "react"; -import styled, {useTheme} from "styled-components"; -import {Setting, useSettingsStore} from "../../store/settings/settingsStore"; -import {SettingItem} from "./SettingItem"; -import {IconComponent} from "../../const/buttons/icons"; -import {buttonNames} from "../../const/buttons/names"; -import {useTranslation} from "../../utils/i18n/hooks"; - - -interface Props { - onClose: () => void; -} - -const SectionsSidebar = styled.ul` - display: flex; - justify-content: start; - align-items: start; - flex-direction: column; - gap: 4px; - width: 20%; - min-width: 180px; - list-style-type: none; - padding: 0; - margin: 0; -` -const SectionsBTN = styled.li` - font-size: 18px; - border: none; - cursor: pointer; - width: 100%; - padding:10px 16px; - box-sizing: border-box; - border-radius: 0 12px 12px 0; - &.active{ - background-color: ${(props) => props.theme.accent}; - color: ${props => props.theme.primary}; - } -` -const SectionActive = styled.div` - width: 80%; -` -const SectionLine = styled.span` - height: 100%; - width: 1px; - background-color: #9D9D9D; -` -const CloseBtn = styled.span` - cursor: pointer; -` -const SettingsButtons = styled.div` - display: flex; - justify-content: space-between; - align-items: center; - width: 100%; - span{ - display: flex; - gap: 12px; - } -` -export const Settings = ({ onClose }: Props) => { - const settingsConfig = useSettingsStore(state => state.settingsConfig); - const settingsValues = useSettingsStore(state => state.settingsValues); - const activeSection = useSettingsStore(state => state.activeSection); - const pendingChanges = useSettingsStore(state => state.pendingChanges); - const setActiveSection = useSettingsStore(state => state.setActiveSection); - const updateSetting = useSettingsStore(state => state.updateSetting); - const applyChanges = useSettingsStore(state => state.applyChanges); - const discardChanges = useSettingsStore(state => state.discardChanges); - const getSetting = useSettingsStore(state => state.getSetting); - const resetToDefaults = useSettingsStore(state => state.resetToDefaults); - const initializeSettings = useSettingsStore(state => state.initializeSettings); - const updateSettingsConfig = useSettingsStore(state => state.updateSettingsConfig); - - const theme = useTheme() - const { t, language } = useTranslation('common'); - const [fieldErrors, setFieldErrors] = useState>({}); - const [currentLanguage, setCurrentLanguage] = useState(language); - - // Проверка действий - const handleValidationError = useCallback((fieldId: string, error: string | null) => { - setFieldErrors(prev => { - const newErrors = { ...prev }; - if (error) { - newErrors[fieldId] = error; - } else { - delete newErrors[fieldId]; - } - return newErrors; - }); - }, []); - - const settingsBySection = useMemo(() => { - return settingsConfig.reduce((acc, setting) => { - // Применяем переводы к настройкам - const translatedSetting = { - ...setting, - sectionId: t(setting.sectionId), - label: t(setting.label), - defaultValue: typeof setting.defaultValue === 'string' && setting.defaultValue.startsWith('settings-') ? t(setting.defaultValue) : setting.defaultValue, - options: setting.options ? setting.options.map((option: any) => ({ - ...option, - label: option.label.startsWith('settings-') ? t(option.label) : option.label - })) : setting.options, - value: settingsValues[setting.id] ?? setting.defaultValue - }; - - if (!acc[translatedSetting.sectionId]) { - acc[translatedSetting.sectionId] = []; - } - acc[translatedSetting.sectionId].push(translatedSetting); - return acc; - }, {} as Record); - }, [settingsConfig, settingsValues, t]); - - const sections = useMemo(() => Object.keys(settingsBySection), [settingsBySection]); - - useEffect(() => { - updateSettingsConfig(); - initializeSettings(); - }, [updateSettingsConfig, initializeSettings]); - - useEffect(() => { - if (sections.length > 0 && !activeSection) { - setActiveSection(sections[0]); - } - }, [sections, activeSection, setActiveSection]); - - // Обновляем текущий язык при изменении - useEffect(() => { - setCurrentLanguage(language); - }, [language]); - - const handleSave = useCallback(() => { - const hasErrors = Object.values(fieldErrors).some(error => error?.trim()); - if (hasErrors) { - alert(t('settings-fixErrors')); - return; - } - - const requiredFields = settingsConfig.filter(s => s.required); - const emptyRequiredFields = requiredFields.filter(f => { - const value = pendingChanges[f.id] ?? settingsValues[f.id] ?? f.defaultValue; - return value == null || value === ''; - }); - - if (emptyRequiredFields.length > 0) { - alert(t('settings-fillRequired')); - return; - } - - // Проверяем, изменился ли язык - const newLanguage = pendingChanges['language'] ?? settingsValues['language']; - const languageChanged = newLanguage && newLanguage !== currentLanguage; - - applyChanges(); - onClose(); - - // Если язык изменился, перезагружаем приложение - if (languageChanged) { - setTimeout(() => { - window.location.reload(); - }, 100); - } - }, [fieldErrors, settingsConfig, pendingChanges, settingsValues, applyChanges, onClose, t, currentLanguage]); - - const handleCancel = useCallback(() => { - discardChanges(); - setFieldErrors({}); - onClose(); - }, [discardChanges, onClose]); - - const handleReset = () => { - if (window.confirm(t('settings-resetConfirm'))) { - resetToDefaults(); - } - }; - - // Обработка нажатий клавиш - useEffect(() => { - const handleKeyPress = (e: KeyboardEvent) => { - if (e.key === 'Enter') - handleSave(); - if (e.key === 'Escape') - handleCancel() - }; - document.addEventListener('keydown', handleKeyPress); - return () => { - document.removeEventListener('keydown', handleKeyPress); - }; - }, [handleSave, handleCancel]); - - - return ( - - -

{t('settings-title')}

- - - -
- - - - {sections.map((sectionId) => ( - setActiveSection(sectionId)} - > - {sectionId} - - ))} - - - - {activeSection && settingsBySection[activeSection] && ( - <> - {settingsBySection[activeSection].map((setting) => ( - handleValidationError(setting.id, error)} - onChange={(value) => updateSetting(setting.id, value)} - /> - ))} - - )} - - - - - - - - - - - - -
- ); -}; \ No newline at end of file diff --git a/FRONT/DEV/src/components/workSpace/modules/appModules/about.tsx b/FRONT/DEV/src/components/workSpace/modules/appModules/about.tsx deleted file mode 100644 index 8309157..0000000 --- a/FRONT/DEV/src/components/workSpace/modules/appModules/about.tsx +++ /dev/null @@ -1,252 +0,0 @@ - -import { MainButton } from "../../../UI/buttons/mainButton" -import { workSpaceNames } from "../../../../const/workspace/names" -import { useWorkSpaceStore } from "../../../../store" -import styled, {useTheme} from "styled-components" -import ThemeButton from "../../../UI/buttons/toggletheme" -import {buttonNames} from "../../../../const/buttons/names"; -import {IconComponent} from "../../../../const/buttons/icons"; -import {useTranslation} from "../../../../utils/i18n/hooks"; - -type Props = { - from: 'reg' | 'helloWindow' | 'workSpace' - onBack?: () => void -} - -const Wrapper = styled.div` - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - height: 100%; - width: 100%; - background: ${(props => props.theme.background)}; - padding: 50px; - box-sizing: border-box; -` - -const Content = styled.div` - max-width: 1200px; - display: flex; - flex-direction: column; - justify-content: space-between; - height: 100%; - box-sizing: border-box; - padding: 40px 50px; - background: ${(props => props.theme.primary)}; - border-radius: 18px; - position: relative; -` - -const Listing = styled.div` - display: flex; - flex-direction: column; - background-color: ${(props => props.theme.secondary)}; - border-radius: 10px; - padding: 24px 20px; - p{ - font-weight: bold; - font-size: 24px; - } -` - -const List = styled.ul` - display: flex; - flex-direction: column; - margin: 10px 0; - padding: 0; - list-style-type: none; - font-size: 18px; - gap: 4px; - & li:before { - color: ${(props => props.theme.accent)}; - content: "•"; - font-size: 28px; - width: .8em; - display: inline-block; - position: relative; - top: 2px; - } -` - -const Title = styled.div` - font-size: 20px; -` - -const SubTitle = styled.div` - display: flex; - flex-direction: column; - gap: 24px; - background-color:rgba(255, 248, 225, 0.6); - border-left: #ff9800 solid 4px; - border-radius: 0 8px 8px 0; - padding: 20px 12px; - - a{ - text-decoration: none; - color: ${(props => props.theme.errorColor)}; - font-weight: 500; - font-size: 18px; - width: max-content; - } - p{ - font-size: 18px; - color: ${(props=>props.theme.textColor)}; - } - .icon{ - width: 32px; - height: 32px; - fill: #ff9800; - } -` - -const Links = styled.div` - display: flex; - justify-content: start; - gap: 20px; -` - -const LinkBlock = styled.a` - text-decoration: none; - color: ${(props => props.theme.accent)};; -` - -const Copyright = styled.div` - width: 100%; - text-align: center; - color: ${(props => props.theme.offlineColor)}; -` - -const ButtonContainer = styled.div` - position: absolute; - top: 12px; - right: 14px; -` -const AboutLine = styled.hr` - border: ${(props => props.theme.hoverBtn)} 1px solid; - width: 100%; -` - -const MainTitle = styled.div` - width: 100%; - display: flex; - gap: 15px; - align-items: center; - justify-content: space-between; - padding-top: 10px; - box-sizing: border-box; - - img{ - width: 50px; - height: 50px; - } - .version{ - text-wrap: nowrap; - background-color: ${(props => props.theme.hoverBtn)}; - color: ${(props => props.theme.borderColor)}; - border-radius: 20px; - font-size: 18px; - padding: 10px 18px; - line-height: 1; - } - .title{ - display: flex; - justify-content: center; - align-items: center; - gap: 24px; - } -` - -export default function About({ from, onBack }: Props) { - const { setWorkModule } = useWorkSpaceStore() - const {t} = useTranslation('common') - const getBackHandler = () => { - switch (from) { - case 'reg': - return onBack - case 'helloWindow': - return () => setWorkModule(workSpaceNames[1]) - case 'workSpace': - return () => setWorkModule(workSpaceNames[3]) - default: - return undefined - } - } - - const backHandler = getBackHandler() - const showBackButton = from !== 'reg' || (from === 'reg' && onBack) - - return ( - - - -
- {t('about-logoAlt')} -
-

{t('about-title')}

-
-
-

v 0.0.3

-
- - - - - <p>{t('about-description')}</p> - - - -

{t('about-featuresTitle')}:

- -
  • {t('about-feature1')}
  • -
  • {t('about-feature2')}
  • -
  • {t('about-feature3')}
  • -
    -
    - - - - - -

    {t('about-disclaimer')}

    - - {t('about-goToPro')} - -
    - - - - {t('about-homepage')} - - - - {t('about-documentation')} - - - - {t('about-license')} - - - - - {t('about-copyright')} - - - - {showBackButton && backHandler && ( - - )} - - {from == 'reg' && - - } - -
    -
    - ) -} \ No newline at end of file diff --git a/FRONT/DEV/src/components/workSpace/modules/appModules/usersScanner/modules/IpScanning.tsx b/FRONT/DEV/src/components/workSpace/modules/appModules/usersScanner/modules/IpScanning.tsx deleted file mode 100644 index 1dc7b4f..0000000 --- a/FRONT/DEV/src/components/workSpace/modules/appModules/usersScanner/modules/IpScanning.tsx +++ /dev/null @@ -1,85 +0,0 @@ -import React, {useState} from 'react'; -import styled, {keyframes} from 'styled-components'; -import {useTranslation} from "../../../../../../utils/i18n/hooks"; - -interface Props { - value: string; - setIpScanning: (value: string) => void; - loading: boolean; - isValid: boolean; - setIsValid: (value: boolean) => void; -} -const Input = styled.input` - height: 40px; - width: 210px; - font-size: 20px; - text-align: center; - background-color: transparent; - border: none; - outline: none; - border-bottom: 2px solid ${props => props.theme.offlineColor}; - color: ${props => props.theme.textColor}; - transition: all 0.3s ease; - &:focus { - border-bottom: 2px solid ${props => props.theme.accent}; - width: 270px; - } - &::placeholder { - color: ${props => props.theme.offlineColor}; - transition: all 0.3s ease; - } - - &:focus::placeholder { - opacity: 0; - } - &:disabled { - opacity: 0; - } -` -const errorVisible = keyframes` - 0%{opacity: 0} - 100%{opacity: 1} -`; -const ErrorMessage = styled.span` - margin-top: 6px; - color: ${props=>props.theme.errorColor}; - animation: ${errorVisible} .4s linear; -` - - -const IpScanning = ({value, setIpScanning, loading, isValid, setIsValid}: Props) => { - const {t} = useTranslation('common') - const validateInput = (e: React.KeyboardEvent) => { - const allowedKeys = [ - '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', - '.', '/', - 'Backspace', 'Delete', - 'ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown' - ]; - - if (!allowedKeys.includes(e.key)) { - e.preventDefault(); - } - }; - - const handleChange = (e: React.ChangeEvent) => { - setIpScanning(e.target.value); - } - - return ( - <> - - {!isValid && !loading && ( - {t('ipInput-error')} - )} - - ); -}; - -export default IpScanning; \ No newline at end of file diff --git a/FRONT/DEV/src/components/workSpace/modules/appModules/usersScanner/modules/ListUsers.tsx b/FRONT/DEV/src/components/workSpace/modules/appModules/usersScanner/modules/ListUsers.tsx deleted file mode 100644 index 513691c..0000000 --- a/FRONT/DEV/src/components/workSpace/modules/appModules/usersScanner/modules/ListUsers.tsx +++ /dev/null @@ -1,115 +0,0 @@ -import React, {useEffect, useState} from 'react'; -import styled from 'styled-components'; -import DeviceCard from "../../../../../UI/Dropdown/DeviceCard"; -import {DeviceUser} from "../../../../../../store/useDeviceStore"; -import {usePaginateSetting} from "../../../../../../hooks/useSettings"; -import Pagination from "../../../../../UI/Pagination"; -import {useTranslation} from "../../../../../../utils/i18n/hooks"; - -const ScanBtn = styled.button` - position: relative; - padding: 14px 22px; - background-color: #4CAF50; - color: white; - border: none; - border-radius: 12px; - font-size: 18px; - transition: .4s ease; - &:hover{ - transform: scale(1.03); - } -` - -interface ListUsersProps { - loading: boolean; - handleScan: ()=>void; - devices: DeviceUser[]; - scanInitiated: boolean; -} - -const ListUsers = ({loading, handleScan, devices, scanInitiated}: ListUsersProps) => { - const {t} = useTranslation('common') - const activeDevices = devices.filter(device => device.status === 'online'); - const inactiveDevices = devices.filter(device => device.status !== 'online'); - - // Пагинация - const paginateSetting = usePaginateSetting(); - const [currentPage, setCurrentPage] = useState(1); - const [devicesPerPage, setDevicesPerPage] = useState(paginateSetting); - - useEffect(() => { - setDevicesPerPage(paginateSetting); - }, [paginateSetting]); - - const indexOfLastDevice = currentPage * devicesPerPage; - const indexOfFirstDevice = indexOfLastDevice - devicesPerPage; - const currentActiveDevices = activeDevices.slice(indexOfFirstDevice, indexOfLastDevice); - const currentInactiveDevices = inactiveDevices.slice(indexOfFirstDevice, indexOfLastDevice); - const totalPages = Math.ceil(devices.length / devicesPerPage); - - const handlePrevPage = () => { - if(currentPage > 1) setCurrentPage(currentPage - 1); - } - const handleNextPage = () => { - if(currentPage < totalPages) setCurrentPage(currentPage + 1); - } - const onPageChange = (page: number) => { - setCurrentPage(page); - } - - return ( - <> - - {loading ? t('userScanner-loading') : devices.length > 0 ? t('userScanner-refresh') : t('userScanner-scan')} - - - {devices.length > 0 ? ( -
    - {/* Колонка активных устройств */} -
    -

    - {t('listUsers-activeNodes')} ({activeDevices.length}) -

    - {currentActiveDevices.map((device, index) => ( - - ))} -
    - {/* Колонка неактивных устройств */} -
    -

    - {t('listUsers-inactiveNodes')} ({inactiveDevices.length}) -

    - {currentInactiveDevices.map((device, index) => ( - - ))} -
    -
    - ) : scanInitiated && !loading ? ( -

    {t('userScanner-notFound')}

    - ) : null} - {totalPages > 1 && ( - - )} - - ); -}; - -export default ListUsers; \ No newline at end of file diff --git a/FRONT/DEV/src/components/workSpace/modules/appModules/usersScanner/modules/TableScanner.tsx b/FRONT/DEV/src/components/workSpace/modules/appModules/usersScanner/modules/TableScanner.tsx deleted file mode 100644 index ccd405d..0000000 --- a/FRONT/DEV/src/components/workSpace/modules/appModules/usersScanner/modules/TableScanner.tsx +++ /dev/null @@ -1,268 +0,0 @@ -import React, {useEffect, useMemo, useState} from 'react'; -import { DeviceUser } from '../../../../../../store/useDeviceStore'; -import styled from 'styled-components'; -import {IconComponent} from "../../../../../../const/buttons/icons"; -import {buttonNames} from "../../../../../../const/buttons/names"; -import {ModalMap} from "../../../../../modalwindows/windowsType"; -import {useModalContext} from "../../../../../../store"; -import {useTranslation} from "../../../../../../utils/i18n/hooks"; -import Pagination from "../../../../../UI/Pagination"; -import { - useDisabledColumns, - useNameSetting, - useOrdersColumns, - usePaginateSetting -} from "../../../../../../hooks/useSettings"; - -interface TableScannerProps { - devices: DeviceUser[]; -} - -const TableContainer = styled.div` - width: 100%; - margin: 24px 0; -`; - -const StyledTable = styled.table` - width: 100%; - border-collapse: separate; - border-spacing: 0; - box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08); - background: ${({ theme }) => theme.primary}; -`; - -const TableHeaderCell = styled.th<{ sortable?: boolean }>` - padding: 16px 24px; - text-align: left; - font-weight: 600; - font-size: 14px; - color: ${({ theme }) => theme.textColor}; - background: ${({ theme }) => theme.primary}; - border-bottom: 1px solid ${({ theme }) => theme.borderColor}; - transition: all 0.2s ease; -`; - -const TableRow = styled.tr<{ clickable?: boolean }>` - transition: all 0.2s ease; - &:hover { - background-color: ${({ theme }) => theme.background}; - } -`; - -const TableCell = styled.td` - padding: 16px 24px; - font-size: 14px; - color: ${({ theme }) => theme.text}; - border-bottom: 1px solid ${({ theme }) => theme.borderColor}; - transition: all 0.2s ease; - button{ - background-color: transparent; - border: none; - cursor: pointer; - } -`; - -const StatusBadge = styled.span<{ status:string }>` - width: 10px; - height: 30px; - background-color: ${({theme, status}) => (status==='online' ? theme.successColor : theme.offlineColor)}; - display: inline-block; - border-radius:4px; -` - -export const TableScanner = ({ devices }: TableScannerProps) => { - const { openModal } = useModalContext(); - const nameSetting = useNameSetting(); - const ordersColumns = useOrdersColumns(); - const disabledColumns = useDisabledColumns(); - const paginateSetting = usePaginateSetting(); - const {t} = useTranslation('common'); - - - const [currentPage, setCurrentPage] = useState(1); - const [devicesPerPage, setDevicesPerPage] = useState(paginateSetting); - - console.log(ordersColumns); - - useEffect(() => { - setDevicesPerPage(paginateSetting); - }, [paginateSetting]); - - const openModalNote = (e: React.MouseEvent, device: DeviceUser) => { - e.stopPropagation(); - openModal(ModalMap['6'], { - address: device.mac, - currentNote: device.note || '' - }); - }; - - const defaultOrder = useMemo(() => ([ - t('settings-status'), - t('settings-name'), - t('settings-vendor'), - t('settings-ipAddress'), - t('settings-openPorts'), - t('settings-lastActivity'), - t('settings-note'), - t('settings-action'), - ]), [t]); - - const normalizedOrders = useMemo( - () => (Array.isArray(ordersColumns) && ordersColumns.length ? ordersColumns : defaultOrder), - [ordersColumns, defaultOrder] - ); - const normalizedDisabled = useMemo( - () => (Array.isArray(disabledColumns) ? disabledColumns : []), - [disabledColumns] - ); - - const visibleColumns = useMemo(() => { - const normalizeColumnName = (column: string) => column?.toLowerCase(); - - const columnToKey = (column: string) => { - const col = normalizeColumnName(column); - switch (col) { - case 'settings-status': - case normalizeColumnName(t('settings-status')): - case 'онлайн': - case 'status': - return 'status'; - case 'settings-name': - case normalizeColumnName(t('settings-name')): - case 'имя': - case 'name': - return 'name'; - case 'settings-vendor': - case normalizeColumnName(t('settings-vendor')): - case 'производитель': - case 'vendor': - return 'vendor'; - case 'settings-ipaddress': - case normalizeColumnName(t('settings-ipAddress')): - case 'ip адрес': - case 'ip address': - case 'ip': - return 'ip'; - case 'settings-openports': - case normalizeColumnName(t('settings-openPorts')): - case 'открытые порты': - case 'open ports': - case 'ports': - return 'ports'; - case 'settings-lastactivity': - case normalizeColumnName(t('settings-lastActivity')): - case 'последняя активность': - case 'last activity': - case 'activity': - return 'activity'; - case 'settings-note': - case normalizeColumnName(t('settings-note')): - case 'заметка': - case 'note': - return 'note'; - case 'settings-action': - case normalizeColumnName(t('settings-action')): - case 'действие': - case 'action': - return 'action'; - default: - return ''; - } - }; - - return normalizedOrders - .map((column, index) => ({ column, index })) - .filter(({ index }) => !normalizedDisabled.includes(index)) - .map(({ column }) => columnToKey(column)) - .filter(Boolean); - }, [normalizedOrders, normalizedDisabled, t]); - - // Пагинация - const indexOfLastDevice = currentPage * devicesPerPage; - const indexOfFirstDevice = indexOfLastDevice - devicesPerPage; - const currentDevices = devices.slice(indexOfFirstDevice, indexOfLastDevice); - const totalPages = Math.ceil(devices.length / devicesPerPage); - - const handlePrevPage = () => { - if (currentPage > 1) setCurrentPage(currentPage - 1); - }; - - const handleNextPage = () => { - if (currentPage < totalPages) setCurrentPage(currentPage + 1); - }; - - const onPageChange = (page: number) => { - setCurrentPage(page); - }; - - // Рендер ячейки таблицы - const renderTableCell = (column: string, item: DeviceUser) => { - switch (column) { - case 'status': - return ; - case 'name': - return {item.hostname || (nameSetting === 'ip' ? item.ip : 'Неизвестно')}; - case 'vendor': - return {item.vendor}; - case 'ip': - return {item.ip}; - case 'ports': - return {item.open_ports.join(', ') || '-'}; - case 'activity': - return {item.last_seen}; - case 'note': - return {item.note || '-'}; - case 'action': - return ( - - - - ); - default: - return null; - } - }; - - return ( - - - - - {visibleColumns.map(column => { - switch (column) { - case 'status': return ; - case 'name': return {t('settings-name')}; - case 'vendor': return {t('settings-vendor')}; - case 'ip': return {t('settings-ipAddress')}; - case 'ports': return {t('settings-openPorts')}; - case 'activity': return {t('settings-lastActivity')}; - case 'note': return {t('settings-note')}; - case 'action': return ; - default: return null; - } - })} - - - - {currentDevices.map((item, index) => ( - - {visibleColumns.map(column => renderTableCell(column, item))} - - ))} - - - - {totalPages > 1 && ( - - )} - - ); -}; diff --git a/FRONT/DEV/src/electron.d.ts b/FRONT/DEV/src/electron.d.ts deleted file mode 100644 index 5fb2869..0000000 --- a/FRONT/DEV/src/electron.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -interface Window { - electron: { - quitApp: () => void; - }; - electronAPI: { - showSaveDialog: (options: Electron.SaveDialogOptions) => Promise; - writeFile: (path: string, data: string) => Promise<{ success: boolean }>; - }; -} \ No newline at end of file diff --git a/FRONT/DEV/src/hooks/useSettings.ts b/FRONT/DEV/src/hooks/useSettings.ts deleted file mode 100644 index aa8aeb8..0000000 --- a/FRONT/DEV/src/hooks/useSettings.ts +++ /dev/null @@ -1,37 +0,0 @@ -import {useSettingsStore} from "../store/settings/settingsStore"; -import {defaultLanguage, Language} from "../utils/i18n/config"; - -export const useNameSetting = () => { - return useSettingsStore(state => state.getSettingValue('netnames-nodes')) as string; -}; - -export const usePaginateSetting = () => { - return useSettingsStore(state => state.getNumberSetting('paginate-nodes', 20)); -}; - -export const useThemeSettings = () => { - return useSettingsStore(state => state.getSettingValue('theme')); -}; - -//Интервальное сканирование под узлов -export const useIntervalBoolean = () => { - return useSettingsStore(state => state.getSettingValue('rescan-nodes')) as boolean; -}; -export const useIntervalTime = () => { - return useSettingsStore(state => state.getNumberSetting('interval-nodes', 60)); -}; - -// Кастомизация таблиц -export const useOrdersColumns = () => { - return useSettingsStore(state => state.getSettingValue('table-columns-order')) as string[]; -}; -export const useDisabledColumns = () => { - return useSettingsStore(state => state.getSettingValue('table-columns-disabled')) as number[]; -}; - - -export const useLanguage = () => { - return useSettingsStore( - state => state.getSettingValue('language') - ) ?? defaultLanguage; -}; diff --git a/FRONT/DEV/src/store/settings/config/appearanceSettings.ts b/FRONT/DEV/src/store/settings/config/appearanceSettings.ts deleted file mode 100644 index e573149..0000000 --- a/FRONT/DEV/src/store/settings/config/appearanceSettings.ts +++ /dev/null @@ -1,30 +0,0 @@ - -const createAppearanceSettings = () => { - return [ - { - id: 'theme', - sectionId: 'settings-sections-appearance', - label: 'settings-colorTheme', - type: 'select', - defaultValue: 'light', - options: [ - { value: 'light', label: 'settings-light' }, - { value: 'dark', label: 'settings-dark' }, - { value: 'system', label: 'settings-system' } - ], - }, - { - id: 'language', - sectionId: 'settings-sections-appearance', - label: 'settings-interfaceLanguage', - type: 'select', - defaultValue: 'ru', - options: [ - { value: 'ru', label: 'settings-russian' }, - { value: 'en', label: 'settings-english' }, - ], - }, - ] as const; -}; - -export { createAppearanceSettings }; \ No newline at end of file diff --git a/FRONT/DEV/src/store/settings/config/networkSettings.ts b/FRONT/DEV/src/store/settings/config/networkSettings.ts deleted file mode 100644 index 9e9ce9f..0000000 --- a/FRONT/DEV/src/store/settings/config/networkSettings.ts +++ /dev/null @@ -1,55 +0,0 @@ -import {useIpStore} from "../../ipStore"; -import {NetworkService} from "../../../api/request"; - -const createNetworkSettings = () => { - const { ipAddress } = useIpStore.getState(); - - return [ - { - id: 'clean-network', - type: 'button', - label: 'settings-clearSessionData', - sectionId: 'settings-sections-accessPoints', - defaultValue: 'settings-clear', - action: async ()=>{ - try { - const res = await NetworkService.clearNetwork(ipAddress); - console.log(res); - }catch (e){ - console.error(e); - alert('settings-dataNotDeleted' + e) - } - }, - }, - { - id: 'export-network', - type: 'button', - label: 'settings-exportNetworkData', - sectionId: 'settings-sections-accessPoints', - defaultValue: 'settings-export', - action: async () => { - try { - const response = await NetworkService.exportNetwork(ipAddress); - const { filePath } = await window.electronAPI.showSaveDialog({ - title: 'settings-saveNetworksTitle', - defaultPath: "network_export.json", - filters: [{ name: "JSON", extensions: ["json"] }], - }); - - if (filePath) { - await window.electronAPI.writeFile( - filePath, - JSON.stringify(response.data, null, 2) - ); - alert('settings-exportSuccess'); - } - } catch (e: any) { - alert('settings-exportError' + e.message); - } - }, - - }, - ] as const; -}; - -export { createNetworkSettings }; \ No newline at end of file diff --git a/FRONT/DEV/src/store/settings/config/nodesSettings.ts b/FRONT/DEV/src/store/settings/config/nodesSettings.ts deleted file mode 100644 index 4673999..0000000 --- a/FRONT/DEV/src/store/settings/config/nodesSettings.ts +++ /dev/null @@ -1,119 +0,0 @@ -import {useIpStore} from "../../ipStore"; -import {NetworkService} from "../../../api/request"; - -const createNodesSettings = () => { - const { ipAddress } = useIpStore.getState(); - - return [ - { - id: 'rescan-nodes', - sectionId: 'settings-sections-subnetNodes', - label: 'settings-intervalScanning', - type: 'boolean', - defaultValue: false, - }, - { - id: 'interval-nodes', - sectionId: 'settings-sections-subnetNodes', - label: 'settings-scanInterval', - type: 'number', - defaultValue: 60, - min: 1, - max: 2880 - }, - { - id: 'netnames-nodes', - sectionId: 'settings-sections-subnetNodes', - label: 'settings-displayNames', - type: 'select', - defaultValue: 'ip', - options: [ - { value: 'ip', label: 'settings-ipAddress' }, - { value: 'unknown', label: 'settings-unknown' }, - ], - }, - { - id: 'paginate-nodes', - type: 'number', - label: 'settings-rowsPerPage', - sectionId: 'settings-sections-subnetNodes', - defaultValue: 20, - min: 1, - }, - { - id: 'customize-nodes', - type: 'button', - label: 'settings-displaySettings', - sectionId: 'settings-sections-subnetNodes', - defaultValue: 'settings-configure', - }, - { - id: 'clean-nodes', - type: 'button', - label: 'settings-clearSessionData', - sectionId: 'settings-sections-subnetNodes', - defaultValue: 'settings-clear', - action: async ()=>{ - try { - const res = await NetworkService.clearSubnet(ipAddress); - console.log(res) - }catch (e){ - console.error(e); - alert('settings-dataNotDeleted' + e) - } - }, - }, - { - id: "export-nodes", - type: "button", - label: "settings-exportData", - sectionId: "settings-sections-subnetNodes", - defaultValue: "settings-export", - action: async () => { - try { - const response = await NetworkService.exportDevices(ipAddress); - const { filePath } = await window.electronAPI.showSaveDialog({ - title: "settings-saveNodesTitle", - defaultPath: "nodes_export.json", - filters: [{ name: "JSON", extensions: ["json"] }], - }); - - if (filePath) { - await window.electronAPI.writeFile( - filePath, - JSON.stringify(response.data, null, 2) - ); - alert("settings-exportSuccess"); - } - } catch (e: any) { - alert("settings-exportError" + e.message); - } - }, - }, - { - id: 'table-columns-order', - type: 'hidden', - label: '', - sectionId: 'settings-sections-subnetNodes', - defaultValue: [ - 'settings-status', - 'settings-name', - 'settings-vendor', - 'settings-ipAddress', - 'settings-openPorts', - 'settings-lastActivity', - 'settings-note', - 'settings-action' - ] - }, - { - id: 'table-columns-disabled', - label: '', - sectionId: 'settings-sections-subnetNodes', - type: 'hidden', - defaultValue: [] - } - ] as const; -}; - -export { createNodesSettings }; \ No newline at end of file diff --git a/FRONT/DEV/src/store/settings/settingsStore.ts b/FRONT/DEV/src/store/settings/settingsStore.ts deleted file mode 100644 index c54ffe0..0000000 --- a/FRONT/DEV/src/store/settings/settingsStore.ts +++ /dev/null @@ -1,139 +0,0 @@ -import { create } from 'zustand'; -import { persist } from 'zustand/middleware'; -import {createNodesSettings} from "./config/nodesSettings"; -import { createNetworkSettings } from './config/networkSettings'; -import {createAppearanceSettings} from "./config/appearanceSettings"; - -type SettingValue = any; -type SettingsDictionary = Record; - -export type Setting = { - readonly id: string; - readonly type: 'boolean' | 'select' | 'text' | 'number' | 'button' | 'hidden'; - readonly label: string; - readonly defaultValue: any; - value?: string; - readonly min?: number; - readonly max?: number; - readonly options?: any; - readonly sectionId: string; - readonly required?: boolean; - readonly action?: () => void; -}; - -type SettingsState = { - settingsConfig: Setting[]; - settingsValues: SettingsDictionary; - activeSection: string | null; - pendingChanges: SettingsDictionary; - setActiveSection: (sectionId: string | null) => void; - updateSetting: (id: string, value: any) => void; - initializeSettings: () => void; - getSetting: (id: string) => Setting & { currentValue: any }; - resetSettings: () => void; - applyChanges: () => void; - discardChanges: () => void; - resetToDefaults: () => void; - getSettingValue: (id: string) => T; - getNumberSetting: (id: string, fallback?: number) => number; - updateSettingsConfig: () => void; -}; - -export const useSettingsStore = create()( - persist( - (set, get) => ({ - settingsConfig: [], - settingsValues: {}, - activeSection: null, - pendingChanges: {}, - - setActiveSection: (sectionId) => set({ activeSection: sectionId }), - - updateSetting: (id, value) => - set((state) => ({ - pendingChanges: { ...state.pendingChanges, [id]: value } - })), - - resetToDefaults: () => set({ - settingsValues: Object.fromEntries( - get().settingsConfig.map(setting => [ - setting.id, - setting.defaultValue - ]) - ), - pendingChanges: {} - }), - - applyChanges: () => - set((state) => ({ - settingsValues: { ...state.settingsValues, ...state.pendingChanges }, - pendingChanges: {} - })), - - discardChanges: () => set({ pendingChanges: {} }), - - initializeSettings: () => { - const { settingsValues, settingsConfig } = get(); - const newValues = { ...settingsValues }; - - settingsConfig.forEach(setting => { - if (newValues[setting.id] === undefined) { - newValues[setting.id] = setting.defaultValue; - } - }); - - set({ settingsValues: newValues }); - }, - - updateSettingsConfig: () => { - const defaultSettings: Setting[] = [ - ...createNodesSettings(), - ...createNetworkSettings(), - ...createAppearanceSettings(), - ]; - set({ settingsConfig: defaultSettings }); - }, - - getSetting: (id) => { - const state = get(); - const setting = state.settingsConfig.find(s => s.id === id); - if (!setting) throw new Error(`Setting ${id} not found`); - - const hasPendingChange = Object.prototype.hasOwnProperty.call(state.pendingChanges, id); - const hasSavedValue = Object.prototype.hasOwnProperty.call(state.settingsValues, id); - - const currentValue = hasPendingChange - ? state.pendingChanges[id] - : hasSavedValue - ? state.settingsValues[id] - : setting.defaultValue; - - return { - ...setting, - currentValue - }; - }, - getSettingValue: (id: string) => { - const state = get(); - return state.settingsValues[id] ?? - state.settingsConfig.find(s => s.id === id)?.defaultValue; - }, - - getNumberSetting: (id: string, fallback = 0) => { - const value = get().getSettingValue(id); - return Number(value) || fallback; - }, - - resetSettings: () => set({ settingsValues: {}, pendingChanges: {} }), - }), - { - name: 'app-settings', - partialize: (state) => ({ - settingsValues: state.settingsValues - }), - onRehydrateStorage: () => (state) => { - state?.initializeSettings(); - } - } - ) -); \ No newline at end of file diff --git a/FRONT/DEV/src/utils/i18n/config.ts b/FRONT/DEV/src/utils/i18n/config.ts deleted file mode 100644 index 97b38b3..0000000 --- a/FRONT/DEV/src/utils/i18n/config.ts +++ /dev/null @@ -1,11 +0,0 @@ -export const supportedLanguages = { - en: 'English', - ru: 'Русский', -} as const; - -export type Language = keyof typeof supportedLanguages; - -export const defaultLanguage = 'ru'; - -export const namespaces = ['common', 'components'] as const; -export type Namespace = (typeof namespaces)[number]; \ No newline at end of file diff --git a/FRONT/DEV/src/utils/i18n/hooks.ts b/FRONT/DEV/src/utils/i18n/hooks.ts deleted file mode 100644 index 6c60749..0000000 --- a/FRONT/DEV/src/utils/i18n/hooks.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Namespace } from './config'; -import { useI18n } from './provider'; - - export const useTranslation = (ns?: Namespace) => { - const { t, language } = useI18n(); - - return { - t: (key: string) => t(key, ns), - language, - }; -}; \ No newline at end of file diff --git a/FRONT/DEV/src/utils/i18n/provider.tsx b/FRONT/DEV/src/utils/i18n/provider.tsx deleted file mode 100644 index d453c1b..0000000 --- a/FRONT/DEV/src/utils/i18n/provider.tsx +++ /dev/null @@ -1,92 +0,0 @@ -'use client' -import React, { createContext, useContext, useEffect, useMemo, useState } from 'react'; -import { defaultLanguage, Language, Namespace, namespaces, supportedLanguages } from './config'; - -type Translation = Record; -type NamespaceTranslations = Record; -type LanguageTranslations = Record; - -const I18nContext = createContext<{ - language: Language; - t: (key: string, namespace?: Namespace) => string; -}>({ - language: defaultLanguage, - t: (key: string) => key, -}); - -interface I18nProviderProps { - children: React.ReactNode; - initialLanguage: Language; -} - -export const I18nProvider = ({ children, initialLanguage }: I18nProviderProps) => { - const [language, setLanguage] = useState(initialLanguage); - const [translations, setTranslations] = useState({} as LanguageTranslations); - - - // Загрузка переводов - useEffect(() => { - const loadTranslations = async () => { - const newTranslations: LanguageTranslations = { ...translations }; - - await Promise.all( - (Object.keys(supportedLanguages) as Language[]).map(async (lang) => { - if (!newTranslations[lang]) { - newTranslations[lang] = {} as NamespaceTranslations; - - await Promise.all( - namespaces.map(async (ns) => { - try { - const res = await fetch(`/locales/${lang}/${ns}.json`); - if (!res.ok) { - throw new Error(`HTTP ${res.status}`); - } - const data = await res.json(); - newTranslations[lang][ns] = data; - } catch (e) { - console.error(`Failed to load ${lang}/${ns} translations`, e); - newTranslations[lang][ns] = {}; - } - }) - ); - } - }) - ); - - setTranslations(newTranslations); - }; - - loadTranslations(); - }, []); - - - useEffect(() => { - setLanguage(initialLanguage); - }, [initialLanguage]); - - const t = useMemo(() => { - return (key: string, namespace: Namespace = 'common') => { - return translations[language]?.[namespace]?.[key] || key; - }; - }, [language, translations]); - - - const contextValue = useMemo(() => ({ - language, - t, - }), [language, t]); - - return ( - - {children} - - ); -}; - -export const useI18n = () => { - const context = useContext(I18nContext); - if (!context) { - throw new Error('useI18n must be used within I18nProvider'); - } - return context; -}; diff --git a/FRONT/DEV/yarn.lock b/FRONT/DEV/yarn.lock deleted file mode 100644 index 46de806..0000000 --- a/FRONT/DEV/yarn.lock +++ /dev/null @@ -1,2305 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@ampproject/remapping@^2.2.0": - version "2.3.0" - resolved "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz" - integrity sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw== - dependencies: - "@jridgewell/gen-mapping" "^0.3.5" - "@jridgewell/trace-mapping" "^0.3.24" - -"@babel/code-frame@^7.26.2": - version "7.26.2" - resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz" - integrity sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ== - dependencies: - "@babel/helper-validator-identifier" "^7.25.9" - js-tokens "^4.0.0" - picocolors "^1.0.0" - -"@babel/compat-data@^7.26.8": - version "7.26.8" - resolved "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.8.tgz" - integrity sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ== - -"@babel/core@^7.0.0", "@babel/core@^7.0.0-0", "@babel/core@^7.26.10": - version "7.26.10" - resolved "https://registry.npmjs.org/@babel/core/-/core-7.26.10.tgz" - integrity sha512-vMqyb7XCDMPvJFFOaT9kxtiRh42GwlZEg1/uIgtZshS5a/8OaduUfCi7kynKgc3Tw/6Uo2D+db9qBttghhmxwQ== - dependencies: - "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.26.2" - "@babel/generator" "^7.26.10" - "@babel/helper-compilation-targets" "^7.26.5" - "@babel/helper-module-transforms" "^7.26.0" - "@babel/helpers" "^7.26.10" - "@babel/parser" "^7.26.10" - "@babel/template" "^7.26.9" - "@babel/traverse" "^7.26.10" - "@babel/types" "^7.26.10" - convert-source-map "^2.0.0" - debug "^4.1.0" - gensync "^1.0.0-beta.2" - json5 "^2.2.3" - semver "^6.3.1" - -"@babel/generator@^7.26.10", "@babel/generator@^7.27.0": - version "7.27.0" - resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.27.0.tgz" - integrity sha512-VybsKvpiN1gU1sdMZIp7FcqphVVKEwcuj02x73uvcHE0PTihx1nlBcowYWhDwjpoAXRv43+gDzyggGnn1XZhVw== - dependencies: - "@babel/parser" "^7.27.0" - "@babel/types" "^7.27.0" - "@jridgewell/gen-mapping" "^0.3.5" - "@jridgewell/trace-mapping" "^0.3.25" - jsesc "^3.0.2" - -"@babel/helper-compilation-targets@^7.26.5": - version "7.27.0" - resolved "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.0.tgz" - integrity sha512-LVk7fbXml0H2xH34dFzKQ7TDZ2G4/rVTOrq9V+icbbadjbVxxeFeDsNHv2SrZeWoA+6ZiTyWYWtScEIW07EAcA== - dependencies: - "@babel/compat-data" "^7.26.8" - "@babel/helper-validator-option" "^7.25.9" - browserslist "^4.24.0" - lru-cache "^5.1.1" - semver "^6.3.1" - -"@babel/helper-module-imports@^7.25.9": - version "7.25.9" - resolved "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz" - integrity sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw== - dependencies: - "@babel/traverse" "^7.25.9" - "@babel/types" "^7.25.9" - -"@babel/helper-module-transforms@^7.26.0": - version "7.26.0" - resolved "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz" - integrity sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw== - dependencies: - "@babel/helper-module-imports" "^7.25.9" - "@babel/helper-validator-identifier" "^7.25.9" - "@babel/traverse" "^7.25.9" - -"@babel/helper-plugin-utils@^7.25.9": - version "7.25.9" - resolved "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.9.tgz" - integrity sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw== - -"@babel/helper-string-parser@^7.25.9": - version "7.25.9" - resolved "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz" - integrity sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA== - -"@babel/helper-validator-identifier@^7.25.9": - version "7.25.9" - resolved "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz" - integrity sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ== - -"@babel/helper-validator-option@^7.25.9": - version "7.25.9" - resolved "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz" - integrity sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw== - -"@babel/helpers@^7.26.10": - version "7.26.10" - resolved "https://registry.npmjs.org/@babel/helpers/-/helpers-7.26.10.tgz" - integrity sha512-UPYc3SauzZ3JGgj87GgZ89JVdC5dj0AoetR5Bw6wj4niittNyFh6+eOGonYvJ1ao6B8lEa3Q3klS7ADZ53bc5g== - dependencies: - "@babel/template" "^7.26.9" - "@babel/types" "^7.26.10" - -"@babel/parser@^7.1.0", "@babel/parser@^7.20.7", "@babel/parser@^7.26.10", "@babel/parser@^7.27.0": - version "7.27.0" - resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.27.0.tgz" - integrity sha512-iaepho73/2Pz7w2eMS0Q5f83+0RKI7i4xmiYeBmDzfRVbQtTOG7Ts0S4HzJVsTMGI9keU8rNfuZr8DKfSt7Yyg== - dependencies: - "@babel/types" "^7.27.0" - -"@babel/plugin-transform-react-jsx-self@^7.25.9": - version "7.25.9" - resolved "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.25.9.tgz" - integrity sha512-y8quW6p0WHkEhmErnfe58r7x0A70uKphQm8Sp8cV7tjNQwK56sNVK0M73LK3WuYmsuyrftut4xAkjjgU0twaMg== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/plugin-transform-react-jsx-source@^7.25.9": - version "7.25.9" - resolved "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.25.9.tgz" - integrity sha512-+iqjT8xmXhhYv4/uiYd8FNQsraMFZIfxVSqxxVSZP0WbbSAWvBXAul0m/zu+7Vv4O/3WtApy9pmaTMiumEZgfg== - dependencies: - "@babel/helper-plugin-utils" "^7.25.9" - -"@babel/runtime@^7.18.9": - version "7.26.10" - resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.26.10.tgz" - integrity sha512-2WJMeRQPHKSPemqk/awGrAiuFfzBmOIPXKizAsVhWH9YJqLZ0H+HS4c8loHGgW6utJ3E/ejXQUsiGaQy2NZ9Fw== - dependencies: - regenerator-runtime "^0.14.0" - -"@babel/template@^7.26.9", "@babel/template@^7.27.0": - version "7.27.0" - resolved "https://registry.npmjs.org/@babel/template/-/template-7.27.0.tgz" - integrity sha512-2ncevenBqXI6qRMukPlXwHKHchC7RyMuu4xv5JBXRfOGVcTy1mXCD12qrp7Jsoxll1EV3+9sE4GugBVRjT2jFA== - dependencies: - "@babel/code-frame" "^7.26.2" - "@babel/parser" "^7.27.0" - "@babel/types" "^7.27.0" - -"@babel/traverse@^7.25.9", "@babel/traverse@^7.26.10": - version "7.27.0" - resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.27.0.tgz" - integrity sha512-19lYZFzYVQkkHkl4Cy4WrAVcqBkgvV2YM2TU3xG6DIwO7O3ecbDPfW3yM3bjAGcqcQHi+CCtjMR3dIEHxsd6bA== - dependencies: - "@babel/code-frame" "^7.26.2" - "@babel/generator" "^7.27.0" - "@babel/parser" "^7.27.0" - "@babel/template" "^7.27.0" - "@babel/types" "^7.27.0" - debug "^4.3.1" - globals "^11.1.0" - -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.25.9", "@babel/types@^7.26.10", "@babel/types@^7.27.0": - version "7.27.0" - resolved "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz" - integrity sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg== - dependencies: - "@babel/helper-string-parser" "^7.25.9" - "@babel/helper-validator-identifier" "^7.25.9" - -"@electron/asar@^3.2.1": - version "3.2.18" - resolved "https://registry.npmjs.org/@electron/asar/-/asar-3.2.18.tgz" - integrity sha512-2XyvMe3N3Nrs8cV39IKELRHTYUWFKrmqqSY1U+GMlc0jvqjIVnoxhNd2H4JolWQncbJi1DCvb5TNxZuI2fEjWg== - dependencies: - commander "^5.0.0" - glob "^7.1.6" - minimatch "^3.0.4" - -"@electron/get@^2.0.0": - version "2.0.3" - resolved "https://registry.npmjs.org/@electron/get/-/get-2.0.3.tgz" - integrity sha512-Qkzpg2s9GnVV2I2BjRksUi43U5e6+zaQMcjoJy0C+C5oxaKl+fmckGDQFtRpZpZV0NQekuZZ+tGz7EA9TVnQtQ== - dependencies: - debug "^4.1.1" - env-paths "^2.2.0" - fs-extra "^8.1.0" - got "^11.8.5" - progress "^2.0.3" - semver "^6.2.0" - sumchecker "^3.0.1" - optionalDependencies: - global-agent "^3.0.0" - -"@electron/notarize@^1.2.3": - version "1.2.4" - resolved "https://registry.npmjs.org/@electron/notarize/-/notarize-1.2.4.tgz" - integrity sha512-W5GQhJEosFNafewnS28d3bpQ37/s91CDWqxVchHfmv2dQSTWpOzNlUVQwYzC1ay5bChRV/A9BTL68yj0Pa+TSg== - dependencies: - debug "^4.1.1" - fs-extra "^9.0.1" - -"@electron/osx-sign@^1.0.5": - version "1.3.2" - resolved "https://registry.npmjs.org/@electron/osx-sign/-/osx-sign-1.3.2.tgz" - integrity sha512-KqVlm9WMWq19lBpCXQoThC/Koaiji2zotUDYwZDaZlZZym+FXY9mQW8wN6sUQ93nkVc42f3TQ1S/XN9S1kjM5Q== - dependencies: - compare-version "^0.1.2" - debug "^4.3.4" - fs-extra "^10.0.0" - isbinaryfile "^4.0.8" - minimist "^1.2.6" - plist "^3.0.5" - -"@electron/universal@^1.3.2": - version "1.5.1" - resolved "https://registry.npmjs.org/@electron/universal/-/universal-1.5.1.tgz" - integrity sha512-kbgXxyEauPJiQQUNG2VgUeyfQNFk6hBF11ISN2PNI6agUgPl55pv4eQmaqHzTAzchBvqZ2tQuRVaPStGf0mxGw== - dependencies: - "@electron/asar" "^3.2.1" - "@malept/cross-spawn-promise" "^1.1.0" - debug "^4.3.1" - dir-compare "^3.0.0" - fs-extra "^9.0.1" - minimatch "^3.0.4" - plist "^3.0.4" - -"@emotion/is-prop-valid@1.2.2": - version "1.2.2" - resolved "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.2.2.tgz" - integrity sha512-uNsoYd37AFmaCdXlg6EYD1KaPOaRWRByMCYzbKUX4+hhMfrxdVSelShywL4JVaAeM/eHUOSprYBQls+/neX3pw== - dependencies: - "@emotion/memoize" "^0.8.1" - -"@emotion/memoize@^0.8.1": - version "0.8.1" - resolved "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.8.1.tgz" - integrity sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA== - -"@emotion/unitless@0.8.1": - version "0.8.1" - resolved "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.8.1.tgz" - integrity sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ== - -"@esbuild/linux-x64@0.25.3": - version "0.25.3" - resolved "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.3.tgz" - integrity sha512-nQHDz4pXjSDC6UfOE1Fw9Q8d6GCAd9KdvMZpfVGWSJztYCarRgSDfOVBY5xwhQXseiyxapkiSJi/5/ja8mRFFA== - -"@iconify-json/ic@^1.2.2": - version "1.2.2" - resolved "https://registry.npmjs.org/@iconify-json/ic/-/ic-1.2.2.tgz" - integrity sha512-QmjwS3lYiOmVWgTCEOTFyGODaR/+689+ajep/VsrCcsUN0Gdle5PmIcibDsdmRyrOsW/E77G41UUijdbjQUofw== - dependencies: - "@iconify/types" "*" - -"@iconify/icons-ic@^1.2.13": - version "1.2.13" - resolved "https://registry.npmjs.org/@iconify/icons-ic/-/icons-ic-1.2.13.tgz" - integrity sha512-TphrhwOvgd7CTmUhz6jgXF+SPnMtvTm03bZsAYbny2kwq4zlkhr9e16YEyPGMvKhjtTqNooA3iZ9Wa+pZ8moXQ== - dependencies: - "@iconify/types" "*" - -"@iconify/icons-ph@^1.2.5": - version "1.2.5" - resolved "https://registry.npmjs.org/@iconify/icons-ph/-/icons-ph-1.2.5.tgz" - integrity sha512-ewrnpL0u3MAP0wLDnXb/39W9W71ObyY8DNig6rYj7NEwcndWWlrGHt1RxEGYE3eqILl/IUcNIQQF1CXZAhwr/w== - dependencies: - "@iconify/types" "*" - -"@iconify/react@^5.2.0": - version "5.2.0" - resolved "https://registry.npmjs.org/@iconify/react/-/react-5.2.0.tgz" - integrity sha512-7Sdjrqq3fkkQNks9SY3adGC37NQTHsBJL2PRKlQd455PoDi9s+Es9AUTY+vGLFOYs5yO9w9yCE42pmxCwG26WA== - dependencies: - "@iconify/types" "^2.0.0" - -"@iconify/types@*", "@iconify/types@^2.0.0": - version "2.0.0" - resolved "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz" - integrity sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg== - -"@jridgewell/gen-mapping@^0.3.5": - version "0.3.5" - resolved "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz" - integrity sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg== - dependencies: - "@jridgewell/set-array" "^1.2.1" - "@jridgewell/sourcemap-codec" "^1.4.10" - "@jridgewell/trace-mapping" "^0.3.24" - -"@jridgewell/resolve-uri@^3.1.0": - version "3.1.2" - resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz" - integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== - -"@jridgewell/set-array@^1.2.1": - version "1.2.1" - resolved "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz" - integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A== - -"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14": - version "1.5.0" - resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz" - integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ== - -"@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": - version "0.3.25" - resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz" - integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ== - dependencies: - "@jridgewell/resolve-uri" "^3.1.0" - "@jridgewell/sourcemap-codec" "^1.4.14" - -"@malept/cross-spawn-promise@^1.1.0": - version "1.1.1" - resolved "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-1.1.1.tgz" - integrity sha512-RTBGWL5FWQcg9orDOCcp4LvItNzUPcyEU9bwaeJX0rJ1IQxzucC48Y0/sQLp/g6t99IQgAlGIaesJS+gTn7tVQ== - dependencies: - cross-spawn "^7.0.1" - -"@reduxjs/toolkit@^2.6.0": - version "2.6.0" - resolved "https://registry.npmjs.org/@reduxjs/toolkit/-/toolkit-2.6.0.tgz" - integrity sha512-mWJCYpewLRyTuuzRSEC/IwIBBkYg2dKtQas8mty5MaV2iXzcmicS3gW554FDeOvLnY3x13NIk8MB1e8wHO7rqQ== - dependencies: - immer "^10.0.3" - redux "^5.0.1" - redux-thunk "^3.1.0" - reselect "^5.1.0" - -"@rollup/rollup-linux-x64-gnu@4.40.1": - version "4.40.1" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.40.1.tgz" - integrity sha512-XiK5z70PEFEFqcNj3/zRSz/qX4bp4QIraTy9QjwJAb/Z8GM7kVUsD0Uk8maIPeTyPCP03ChdI+VVmJriKYbRHQ== - -"@rollup/rollup-linux-x64-musl@4.40.1": - version "4.40.1" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.40.1.tgz" - integrity sha512-2BRORitq5rQ4Da9blVovzNCMaUlyKrzMSvkVR0D4qPuOy/+pMCrh1d7o01RATwVy+6Fa1WBw+da7QPeLWU/1mQ== - -"@sindresorhus/is@^4.0.0": - version "4.6.0" - resolved "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz" - integrity sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw== - -"@szmarczak/http-timer@^4.0.5": - version "4.0.6" - resolved "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz" - integrity sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w== - dependencies: - defer-to-connect "^2.0.0" - -"@types/babel__core@^7.20.5": - version "7.20.5" - resolved "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz" - integrity sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA== - dependencies: - "@babel/parser" "^7.20.7" - "@babel/types" "^7.20.7" - "@types/babel__generator" "*" - "@types/babel__template" "*" - "@types/babel__traverse" "*" - -"@types/babel__generator@*": - version "7.27.0" - resolved "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz" - integrity sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg== - dependencies: - "@babel/types" "^7.0.0" - -"@types/babel__template@*": - version "7.4.4" - resolved "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz" - integrity sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A== - dependencies: - "@babel/parser" "^7.1.0" - "@babel/types" "^7.0.0" - -"@types/babel__traverse@*": - version "7.20.7" - resolved "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.7.tgz" - integrity sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng== - dependencies: - "@babel/types" "^7.20.7" - -"@types/cacheable-request@^6.0.1": - version "6.0.3" - resolved "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz" - integrity sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw== - dependencies: - "@types/http-cache-semantics" "*" - "@types/keyv" "^3.1.4" - "@types/node" "*" - "@types/responselike" "^1.0.0" - -"@types/d3-array@*": - version "3.2.1" - resolved "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.1.tgz" - integrity sha512-Y2Jn2idRrLzUfAKV2LyRImR+y4oa2AntrgID95SHJxuMUrkNXmanDSed71sRNZysveJVt1hLLemQZIady0FpEg== - -"@types/d3-axis@*": - version "3.0.6" - resolved "https://registry.npmjs.org/@types/d3-axis/-/d3-axis-3.0.6.tgz" - integrity sha512-pYeijfZuBd87T0hGn0FO1vQ/cgLk6E1ALJjfkC0oJ8cbwkZl3TpgS8bVBLZN+2jjGgg38epgxb2zmoGtSfvgMw== - dependencies: - "@types/d3-selection" "*" - -"@types/d3-brush@*": - version "3.0.6" - resolved "https://registry.npmjs.org/@types/d3-brush/-/d3-brush-3.0.6.tgz" - integrity sha512-nH60IZNNxEcrh6L1ZSMNA28rj27ut/2ZmI3r96Zd+1jrZD++zD3LsMIjWlvg4AYrHn/Pqz4CF3veCxGjtbqt7A== - dependencies: - "@types/d3-selection" "*" - -"@types/d3-chord@*": - version "3.0.6" - resolved "https://registry.npmjs.org/@types/d3-chord/-/d3-chord-3.0.6.tgz" - integrity sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg== - -"@types/d3-color@*": - version "3.1.3" - resolved "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz" - integrity sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A== - -"@types/d3-contour@*": - version "3.0.6" - resolved "https://registry.npmjs.org/@types/d3-contour/-/d3-contour-3.0.6.tgz" - integrity sha512-BjzLgXGnCWjUSYGfH1cpdo41/hgdWETu4YxpezoztawmqsvCeep+8QGfiY6YbDvfgHz/DkjeIkkZVJavB4a3rg== - dependencies: - "@types/d3-array" "*" - "@types/geojson" "*" - -"@types/d3-delaunay@*": - version "6.0.4" - resolved "https://registry.npmjs.org/@types/d3-delaunay/-/d3-delaunay-6.0.4.tgz" - integrity sha512-ZMaSKu4THYCU6sV64Lhg6qjf1orxBthaC161plr5KuPHo3CNm8DTHiLw/5Eq2b6TsNP0W0iJrUOFscY6Q450Hw== - -"@types/d3-dispatch@*": - version "3.0.6" - resolved "https://registry.npmjs.org/@types/d3-dispatch/-/d3-dispatch-3.0.6.tgz" - integrity sha512-4fvZhzMeeuBJYZXRXrRIQnvUYfyXwYmLsdiN7XXmVNQKKw1cM8a5WdID0g1hVFZDqT9ZqZEY5pD44p24VS7iZQ== - -"@types/d3-drag@*", "@types/d3-drag@^3.0.7": - version "3.0.7" - resolved "https://registry.npmjs.org/@types/d3-drag/-/d3-drag-3.0.7.tgz" - integrity sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ== - dependencies: - "@types/d3-selection" "*" - -"@types/d3-dsv@*": - version "3.0.7" - resolved "https://registry.npmjs.org/@types/d3-dsv/-/d3-dsv-3.0.7.tgz" - integrity sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g== - -"@types/d3-ease@*": - version "3.0.2" - resolved "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz" - integrity sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA== - -"@types/d3-fetch@*": - version "3.0.7" - resolved "https://registry.npmjs.org/@types/d3-fetch/-/d3-fetch-3.0.7.tgz" - integrity sha512-fTAfNmxSb9SOWNB9IoG5c8Hg6R+AzUHDRlsXsDZsNp6sxAEOP0tkP3gKkNSO/qmHPoBFTxNrjDprVHDQDvo5aA== - dependencies: - "@types/d3-dsv" "*" - -"@types/d3-force@*": - version "3.0.10" - resolved "https://registry.npmjs.org/@types/d3-force/-/d3-force-3.0.10.tgz" - integrity sha512-ZYeSaCF3p73RdOKcjj+swRlZfnYpK1EbaDiYICEEp5Q6sUiqFaFQ9qgoshp5CzIyyb/yD09kD9o2zEltCexlgw== - -"@types/d3-format@*": - version "3.0.4" - resolved "https://registry.npmjs.org/@types/d3-format/-/d3-format-3.0.4.tgz" - integrity sha512-fALi2aI6shfg7vM5KiR1wNJnZ7r6UuggVqtDA+xiEdPZQwy/trcQaHnwShLuLdta2rTymCNpxYTiMZX/e09F4g== - -"@types/d3-geo@*": - version "3.1.0" - resolved "https://registry.npmjs.org/@types/d3-geo/-/d3-geo-3.1.0.tgz" - integrity sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ== - dependencies: - "@types/geojson" "*" - -"@types/d3-hierarchy@*": - version "3.1.7" - resolved "https://registry.npmjs.org/@types/d3-hierarchy/-/d3-hierarchy-3.1.7.tgz" - integrity sha512-tJFtNoYBtRtkNysX1Xq4sxtjK8YgoWUNpIiUee0/jHGRwqvzYxkq0hGVbbOGSz+JgFxxRu4K8nb3YpG3CMARtg== - -"@types/d3-interpolate@*": - version "3.0.4" - resolved "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz" - integrity sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA== - dependencies: - "@types/d3-color" "*" - -"@types/d3-path@*": - version "3.1.0" - resolved "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.0.tgz" - integrity sha512-P2dlU/q51fkOc/Gfl3Ul9kicV7l+ra934qBFXCFhrZMOL6du1TM0pm1ThYvENukyOn5h9v+yMJ9Fn5JK4QozrQ== - -"@types/d3-polygon@*": - version "3.0.2" - resolved "https://registry.npmjs.org/@types/d3-polygon/-/d3-polygon-3.0.2.tgz" - integrity sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA== - -"@types/d3-quadtree@*": - version "3.0.6" - resolved "https://registry.npmjs.org/@types/d3-quadtree/-/d3-quadtree-3.0.6.tgz" - integrity sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg== - -"@types/d3-random@*": - version "3.0.3" - resolved "https://registry.npmjs.org/@types/d3-random/-/d3-random-3.0.3.tgz" - integrity sha512-Imagg1vJ3y76Y2ea0871wpabqp613+8/r0mCLEBfdtqC7xMSfj9idOnmBYyMoULfHePJyxMAw3nWhJxzc+LFwQ== - -"@types/d3-scale-chromatic@*": - version "3.1.0" - resolved "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz" - integrity sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ== - -"@types/d3-scale@*": - version "4.0.8" - resolved "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.8.tgz" - integrity sha512-gkK1VVTr5iNiYJ7vWDI+yUFFlszhNMtVeneJ6lUTKPjprsvLLI9/tgEGiXJOnlINJA8FyA88gfnQsHbybVZrYQ== - dependencies: - "@types/d3-time" "*" - -"@types/d3-selection@*", "@types/d3-selection@^3.0.10": - version "3.0.11" - resolved "https://registry.npmjs.org/@types/d3-selection/-/d3-selection-3.0.11.tgz" - integrity sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w== - -"@types/d3-shape@*": - version "3.1.6" - resolved "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.6.tgz" - integrity sha512-5KKk5aKGu2I+O6SONMYSNflgiP0WfZIQvVUMan50wHsLG1G94JlxEVnCpQARfTtzytuY0p/9PXXZb3I7giofIA== - dependencies: - "@types/d3-path" "*" - -"@types/d3-time-format@*": - version "4.0.3" - resolved "https://registry.npmjs.org/@types/d3-time-format/-/d3-time-format-4.0.3.tgz" - integrity sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg== - -"@types/d3-time@*": - version "3.0.4" - resolved "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz" - integrity sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g== - -"@types/d3-timer@*": - version "3.0.2" - resolved "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz" - integrity sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw== - -"@types/d3-transition@*", "@types/d3-transition@^3.0.8": - version "3.0.9" - resolved "https://registry.npmjs.org/@types/d3-transition/-/d3-transition-3.0.9.tgz" - integrity sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg== - dependencies: - "@types/d3-selection" "*" - -"@types/d3-zoom@*", "@types/d3-zoom@^3.0.8": - version "3.0.8" - resolved "https://registry.npmjs.org/@types/d3-zoom/-/d3-zoom-3.0.8.tgz" - integrity sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw== - dependencies: - "@types/d3-interpolate" "*" - "@types/d3-selection" "*" - -"@types/d3@^7.4.0": - version "7.4.3" - resolved "https://registry.npmjs.org/@types/d3/-/d3-7.4.3.tgz" - integrity sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww== - dependencies: - "@types/d3-array" "*" - "@types/d3-axis" "*" - "@types/d3-brush" "*" - "@types/d3-chord" "*" - "@types/d3-color" "*" - "@types/d3-contour" "*" - "@types/d3-delaunay" "*" - "@types/d3-dispatch" "*" - "@types/d3-drag" "*" - "@types/d3-dsv" "*" - "@types/d3-ease" "*" - "@types/d3-fetch" "*" - "@types/d3-force" "*" - "@types/d3-format" "*" - "@types/d3-geo" "*" - "@types/d3-hierarchy" "*" - "@types/d3-interpolate" "*" - "@types/d3-path" "*" - "@types/d3-polygon" "*" - "@types/d3-quadtree" "*" - "@types/d3-random" "*" - "@types/d3-scale" "*" - "@types/d3-scale-chromatic" "*" - "@types/d3-selection" "*" - "@types/d3-shape" "*" - "@types/d3-time" "*" - "@types/d3-time-format" "*" - "@types/d3-timer" "*" - "@types/d3-transition" "*" - "@types/d3-zoom" "*" - -"@types/estree@1.0.7": - version "1.0.7" - resolved "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz" - integrity sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ== - -"@types/geojson@*": - version "7946.0.14" - resolved "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.14.tgz" - integrity sha512-WCfD5Ht3ZesJUsONdhvm84dmzWOiOzOAqOncN0++w0lBw1o8OuDNJF2McvvCef/yBqb/HYRahp1BYtODFQ8bRg== - -"@types/http-cache-semantics@*": - version "4.0.4" - resolved "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.4.tgz" - integrity sha512-1m0bIFVc7eJWyve9S0RnuRgcQqF/Xd5QsUZAZeQFr1Q3/p9JWoQQEqmVy+DPTNpGXwhgIetAoYF8JSc33q29QA== - -"@types/keyv@^3.1.4": - version "3.1.4" - resolved "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz" - integrity sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg== - dependencies: - "@types/node" "*" - -"@types/node@*", "@types/node@^18.0.0 || ^20.0.0 || >=22.0.0", "@types/node@^22.7.7": - version "22.19.1" - resolved "https://registry.npmjs.org/@types/node/-/node-22.19.1.tgz" - integrity sha512-LCCV0HdSZZZb34qifBsyWlUmok6W7ouER+oQIGBScS8EsZsQbrtFTUrDX4hOl+CS6p7cnNC4td+qrSVGSCTUfQ== - dependencies: - undici-types "~6.21.0" - -"@types/prop-types@*": - version "15.7.13" - resolved "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.13.tgz" - integrity sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA== - -"@types/react-dom@^18.0.11": - version "18.3.1" - resolved "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.1.tgz" - integrity sha512-qW1Mfv8taImTthu4KoXgDfLuk4bydU6Q/TkADnDWWHwi4NX4BR+LWfTp2sVmTqRrsHvyDDTelgelxJ+SsejKKQ== - dependencies: - "@types/react" "*" - -"@types/react@*", "@types/react@^18.0.28", "@types/react@^18.2.25 || ^19", "@types/react@>=16.8", "@types/react@>=18.0.0": - version "18.3.12" - resolved "https://registry.npmjs.org/@types/react/-/react-18.3.12.tgz" - integrity sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw== - dependencies: - "@types/prop-types" "*" - csstype "^3.0.2" - -"@types/resize-observer-browser@^0.1.7": - version "0.1.11" - resolved "https://registry.npmjs.org/@types/resize-observer-browser/-/resize-observer-browser-0.1.11.tgz" - integrity sha512-cNw5iH8JkMkb3QkCoe7DaZiawbDQEUX8t7iuQaRTyLOyQCR2h+ibBD4GJt7p5yhUHrlOeL7ZtbxNHeipqNsBzQ== - -"@types/responselike@^1.0.0": - version "1.0.3" - resolved "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz" - integrity sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw== - dependencies: - "@types/node" "*" - -"@types/stylis@4.2.5": - version "4.2.5" - resolved "https://registry.npmjs.org/@types/stylis/-/stylis-4.2.5.tgz" - integrity sha512-1Xve+NMN7FWjY14vLoY5tL3BVEQ/n42YLwaqJIPYhotZ9uBHt87VceMwWQpzmdEt2TNXIorIFG+YeCUUW7RInw== - -"@types/use-sync-external-store@^0.0.6": - version "0.0.6" - resolved "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.6.tgz" - integrity sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg== - -"@types/yauzl@^2.9.1": - version "2.10.3" - resolved "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz" - integrity sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q== - dependencies: - "@types/node" "*" - -"@vitejs/plugin-basic-ssl@^2.0.0": - version "2.0.0" - resolved "https://registry.npmjs.org/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-2.0.0.tgz" - integrity sha512-gc9Tjg8bUxBVSTzeWT3Njc0Cl3PakHFKdNfABnZWiUgbxqmHDEn7uECv3fHVylxoYgNzAcmU7ZrILz+BwSo3sA== - -"@vitejs/plugin-react@^4.4.1": - version "4.4.1" - resolved "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.4.1.tgz" - integrity sha512-IpEm5ZmeXAP/osiBXVVP5KjFMzbWOonMs0NaQQl+xYnUAcq4oHUBsF2+p4MgKWG4YMmFYJU8A6sxRPuowllm6w== - dependencies: - "@babel/core" "^7.26.10" - "@babel/plugin-transform-react-jsx-self" "^7.25.9" - "@babel/plugin-transform-react-jsx-source" "^7.25.9" - "@types/babel__core" "^7.20.5" - react-refresh "^0.17.0" - -"@xmldom/xmldom@^0.8.8": - version "0.8.10" - resolved "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.10.tgz" - integrity sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw== - -"@xyflow/react@^12.3.5": - version "12.3.5" - resolved "https://registry.npmjs.org/@xyflow/react/-/react-12.3.5.tgz" - integrity sha512-wAYqpicdrVo1rxCu0X3M9s3YIF45Agqfabw0IBryTGqjWvr2NyfciI8gIP4MB+NKpWWN5kxZ9tiZ9u8lwC7iAg== - dependencies: - "@xyflow/system" "0.0.46" - classcat "^5.0.3" - zustand "^4.4.0" - -"@xyflow/system@0.0.46": - version "0.0.46" - resolved "https://registry.npmjs.org/@xyflow/system/-/system-0.0.46.tgz" - integrity sha512-bmFXvboVdiydIFZmDCjrbBCYgB0d5pYdkcZPWbAxGmhMRUZ+kW3CksYgYxWabrw51rwpWitLEadvLrivG0mVfA== - dependencies: - "@types/d3-drag" "^3.0.7" - "@types/d3-selection" "^3.0.10" - "@types/d3-transition" "^3.0.8" - "@types/d3-zoom" "^3.0.8" - d3-drag "^3.0.0" - d3-selection "^3.0.0" - d3-zoom "^3.0.0" - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" - integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== - -at-least-node@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz" - integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== - -author-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/author-regex/-/author-regex-1.0.0.tgz" - integrity sha512-KbWgR8wOYRAPekEmMXrYYdc7BRyhn2Ftk7KWfMUnQ43hFdojWEFRxhhRUm3/OFEdPa1r0KAvTTg9YQK57xTe0g== - -axios@^1.7.9: - version "1.13.2" - resolved "https://registry.npmjs.org/axios/-/axios-1.13.2.tgz" - integrity sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA== - dependencies: - follow-redirects "^1.15.6" - form-data "^4.0.4" - proxy-from-env "^1.1.0" - -balanced-match@^1.0.0: - version "1.0.2" - resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz" - integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== - -base64-js@^1.5.1: - version "1.5.1" - resolved "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz" - integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== - -bluebird@^3.1.1: - version "3.7.2" - resolved "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz" - integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== - -boolean@^3.0.1: - version "3.2.0" - resolved "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz" - integrity sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw== - -brace-expansion@^1.1.7: - version "1.1.12" - resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz" - integrity sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -browserslist@^4.24.0, "browserslist@>= 4.21.0": - version "4.24.4" - resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz" - integrity sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A== - dependencies: - caniuse-lite "^1.0.30001688" - electron-to-chromium "^1.5.73" - node-releases "^2.0.19" - update-browserslist-db "^1.1.1" - -buffer-crc32@~0.2.3: - version "0.2.13" - resolved "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz" - integrity sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ== - -buffer-equal@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/buffer-equal/-/buffer-equal-1.0.0.tgz" - integrity sha512-tcBWO2Dl4e7Asr9hTGcpVrCe+F7DubpmqWCTbj4FHLmjqO2hIaC383acQubWtRJhdceqs5uBHs6Es+Sk//RKiQ== - -cacheable-lookup@^5.0.3: - version "5.0.4" - resolved "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz" - integrity sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA== - -cacheable-request@^7.0.2: - version "7.0.4" - resolved "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz" - integrity sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg== - dependencies: - clone-response "^1.0.2" - get-stream "^5.1.0" - http-cache-semantics "^4.0.0" - keyv "^4.0.0" - lowercase-keys "^2.0.0" - normalize-url "^6.0.1" - responselike "^2.0.0" - -call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz" - integrity sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ== - dependencies: - es-errors "^1.3.0" - function-bind "^1.1.2" - -camelize@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/camelize/-/camelize-1.0.1.tgz" - integrity sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ== - -caniuse-lite@^1.0.30001688: - version "1.0.30001716" - resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001716.tgz" - integrity sha512-49/c1+x3Kwz7ZIWt+4DvK3aMJy9oYXXG6/97JKsnjdCk/6n9vVyWL8NAwVt95Lwt9eigI10Hl782kDfZUUlRXw== - -classcat@^5.0.3: - version "5.0.5" - resolved "https://registry.npmjs.org/classcat/-/classcat-5.0.5.tgz" - integrity sha512-JhZUT7JFcQy/EzW605k/ktHtncoo9vnyW/2GspNYwFlN1C/WmjuV/xtS04e9SOkL2sTdw0VAZ2UGCcQ9lR6p6w== - -clone-response@^1.0.2: - version "1.0.3" - resolved "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz" - integrity sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA== - dependencies: - mimic-response "^1.0.0" - -combined-stream@^1.0.8: - version "1.0.8" - resolved "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz" - integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== - dependencies: - delayed-stream "~1.0.0" - -commander@^5.0.0: - version "5.1.0" - resolved "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz" - integrity sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg== - -compare-version@^0.1.2: - version "0.1.2" - resolved "https://registry.npmjs.org/compare-version/-/compare-version-0.1.2.tgz" - integrity sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A== - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" - integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== - -convert-source-map@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz" - integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== - -cookie@^1.0.1: - version "1.0.2" - resolved "https://registry.npmjs.org/cookie/-/cookie-1.0.2.tgz" - integrity sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA== - -cross-spawn-windows-exe@^1.1.0, cross-spawn-windows-exe@^1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/cross-spawn-windows-exe/-/cross-spawn-windows-exe-1.2.0.tgz" - integrity sha512-mkLtJJcYbDCxEG7Js6eUnUNndWjyUZwJ3H7bErmmtOYU/Zb99DyUkpamuIZE0b3bhmJyZ7D90uS6f+CGxRRjOw== - dependencies: - "@malept/cross-spawn-promise" "^1.1.0" - is-wsl "^2.2.0" - which "^2.0.2" - -cross-spawn@^7.0.1: - version "7.0.6" - resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz" - integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - -css-color-keywords@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/css-color-keywords/-/css-color-keywords-1.0.0.tgz" - integrity sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg== - -css-to-react-native@3.2.0: - version "3.2.0" - resolved "https://registry.npmjs.org/css-to-react-native/-/css-to-react-native-3.2.0.tgz" - integrity sha512-e8RKaLXMOFii+02mOlqwjbD00KSEKqblnpO9e++1aXS1fPQOpS1YoqdVHBqPjHNoxeF2mimzVqawm2KCbEdtHQ== - dependencies: - camelize "^1.0.0" - css-color-keywords "^1.0.0" - postcss-value-parser "^4.0.2" - -csstype@^3.0.2, csstype@3.1.3: - version "3.1.3" - resolved "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz" - integrity sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw== - -"d3-color@1 - 3": - version "3.1.0" - resolved "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz" - integrity sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA== - -"d3-dispatch@1 - 3": - version "3.0.1" - resolved "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-3.0.1.tgz" - integrity sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg== - -d3-drag@^3.0.0, "d3-drag@2 - 3": - version "3.0.0" - resolved "https://registry.npmjs.org/d3-drag/-/d3-drag-3.0.0.tgz" - integrity sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg== - dependencies: - d3-dispatch "1 - 3" - d3-selection "3" - -"d3-ease@1 - 3": - version "3.0.1" - resolved "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz" - integrity sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w== - -"d3-interpolate@1 - 3": - version "3.0.1" - resolved "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz" - integrity sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g== - dependencies: - d3-color "1 - 3" - -d3-selection@^3.0.0, "d3-selection@2 - 3", d3-selection@3: - version "3.0.0" - resolved "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz" - integrity sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ== - -"d3-timer@1 - 3": - version "3.0.1" - resolved "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz" - integrity sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA== - -"d3-transition@2 - 3": - version "3.0.1" - resolved "https://registry.npmjs.org/d3-transition/-/d3-transition-3.0.1.tgz" - integrity sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w== - dependencies: - d3-color "1 - 3" - d3-dispatch "1 - 3" - d3-ease "1 - 3" - d3-interpolate "1 - 3" - d3-timer "1 - 3" - -d3-zoom@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/d3-zoom/-/d3-zoom-3.0.0.tgz" - integrity sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw== - dependencies: - d3-dispatch "1 - 3" - d3-drag "2 - 3" - d3-interpolate "1 - 3" - d3-selection "2 - 3" - d3-transition "2 - 3" - -debug@^2.2.0: - version "2.6.9" - resolved "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - -debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.4: - version "4.3.7" - resolved "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz" - integrity sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ== - dependencies: - ms "^2.1.3" - -decompress-response@^6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz" - integrity sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ== - dependencies: - mimic-response "^3.1.0" - -defer-to-connect@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz" - integrity sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg== - -define-data-property@^1.0.1: - version "1.1.4" - resolved "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz" - integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== - dependencies: - es-define-property "^1.0.0" - es-errors "^1.3.0" - gopd "^1.0.1" - -define-properties@^1.2.1: - version "1.2.1" - resolved "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz" - integrity sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg== - dependencies: - define-data-property "^1.0.1" - has-property-descriptors "^1.0.0" - object-keys "^1.1.1" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" - integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== - -detect-node@^2.0.4: - version "2.1.0" - resolved "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz" - integrity sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g== - -dir-compare@^3.0.0: - version "3.3.0" - resolved "https://registry.npmjs.org/dir-compare/-/dir-compare-3.3.0.tgz" - integrity sha512-J7/et3WlGUCxjdnD3HAAzQ6nsnc0WL6DD7WcwJb7c39iH1+AWfg+9OqzJNaI6PkBwBvm1mhZNL9iY/nRiZXlPg== - dependencies: - buffer-equal "^1.0.0" - minimatch "^3.0.4" - -dunder-proto@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz" - integrity sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A== - dependencies: - call-bind-apply-helpers "^1.0.1" - es-errors "^1.3.0" - gopd "^1.2.0" - -electron-packager@^17.1.2: - version "17.1.2" - resolved "https://registry.npmjs.org/electron-packager/-/electron-packager-17.1.2.tgz" - integrity sha512-XofXdikjYI7MVBcnXeoOvRR+yFFFHOLs3J7PF5KYQweigtgLshcH4W660PsvHr4lYZ03JBpLyEcUB8DzHZ+BNw== - dependencies: - "@electron/asar" "^3.2.1" - "@electron/get" "^2.0.0" - "@electron/notarize" "^1.2.3" - "@electron/osx-sign" "^1.0.5" - "@electron/universal" "^1.3.2" - cross-spawn-windows-exe "^1.2.0" - debug "^4.0.1" - extract-zip "^2.0.0" - filenamify "^4.1.0" - fs-extra "^11.1.0" - galactus "^1.0.0" - get-package-info "^1.0.0" - junk "^3.1.0" - parse-author "^2.0.0" - plist "^3.0.0" - rcedit "^3.0.1" - resolve "^1.1.6" - semver "^7.1.3" - yargs-parser "^21.1.1" - -electron-to-chromium@^1.5.73: - version "1.5.145" - resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.145.tgz" - integrity sha512-pZ5EcTWRq/055MvSBgoFEyKf2i4apwfoqJbK/ak2jnFq8oHjZ+vzc3AhRcz37Xn+ZJfL58R666FLJx0YOK9yTw== - -electron@^39.2.3: - version "39.2.3" - resolved "https://registry.npmjs.org/electron/-/electron-39.2.3.tgz" - integrity sha512-j7k7/bj3cNA29ty54FzEMRUoqirE+RBQPhPFP+XDuM93a1l2WcDPiYumxKWz+iKcXxBJLFdMIAlvtLTB/RfCkg== - dependencies: - "@electron/get" "^2.0.0" - "@types/node" "^22.7.7" - extract-zip "^2.0.1" - -end-of-stream@^1.1.0: - version "1.4.4" - resolved "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz" - integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== - dependencies: - once "^1.4.0" - -env-paths@^2.2.0: - version "2.2.1" - resolved "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz" - integrity sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A== - -error-ex@^1.2.0: - version "1.3.2" - resolved "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz" - integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== - dependencies: - is-arrayish "^0.2.1" - -es-define-property@^1.0.0, es-define-property@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz" - integrity sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g== - -es-errors@^1.3.0: - version "1.3.0" - resolved "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz" - integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== - -es-object-atoms@^1.0.0, es-object-atoms@^1.1.1: - 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== - dependencies: - es-errors "^1.3.0" - -es-set-tostringtag@^2.1.0: - 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== - dependencies: - es-errors "^1.3.0" - get-intrinsic "^1.2.6" - has-tostringtag "^1.0.2" - hasown "^2.0.2" - -es6-error@^4.1.1: - version "4.1.1" - resolved "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz" - integrity sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg== - -esbuild-wasm@^0.17.12: - version "0.17.19" - resolved "https://registry.npmjs.org/esbuild-wasm/-/esbuild-wasm-0.17.19.tgz" - integrity sha512-X9UQEMJMZXwlGCfqcBmJ1jEa+KrLfd+gCBypO/TSzo5hZvbVwFqpxj1YCuX54ptTF75wxmrgorR4RL40AKtLVg== - -esbuild@^0.25.0: - version "0.25.3" - resolved "https://registry.npmjs.org/esbuild/-/esbuild-0.25.3.tgz" - integrity sha512-qKA6Pvai73+M2FtftpNKRxJ78GIjmFXFxd/1DVBqGo/qNhLSfv+G12n9pNoWdytJC8U00TrViOwpjT0zgqQS8Q== - optionalDependencies: - "@esbuild/aix-ppc64" "0.25.3" - "@esbuild/android-arm" "0.25.3" - "@esbuild/android-arm64" "0.25.3" - "@esbuild/android-x64" "0.25.3" - "@esbuild/darwin-arm64" "0.25.3" - "@esbuild/darwin-x64" "0.25.3" - "@esbuild/freebsd-arm64" "0.25.3" - "@esbuild/freebsd-x64" "0.25.3" - "@esbuild/linux-arm" "0.25.3" - "@esbuild/linux-arm64" "0.25.3" - "@esbuild/linux-ia32" "0.25.3" - "@esbuild/linux-loong64" "0.25.3" - "@esbuild/linux-mips64el" "0.25.3" - "@esbuild/linux-ppc64" "0.25.3" - "@esbuild/linux-riscv64" "0.25.3" - "@esbuild/linux-s390x" "0.25.3" - "@esbuild/linux-x64" "0.25.3" - "@esbuild/netbsd-arm64" "0.25.3" - "@esbuild/netbsd-x64" "0.25.3" - "@esbuild/openbsd-arm64" "0.25.3" - "@esbuild/openbsd-x64" "0.25.3" - "@esbuild/sunos-x64" "0.25.3" - "@esbuild/win32-arm64" "0.25.3" - "@esbuild/win32-ia32" "0.25.3" - "@esbuild/win32-x64" "0.25.3" - -escalade@^3.2.0: - version "3.2.0" - resolved "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz" - integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== - -escape-string-regexp@^1.0.2: - version "1.0.5" - resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" - integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== - -escape-string-regexp@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - -extract-zip@^2.0.0, extract-zip@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz" - integrity sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg== - dependencies: - debug "^4.1.1" - get-stream "^5.1.0" - yauzl "^2.10.0" - optionalDependencies: - "@types/yauzl" "^2.9.1" - -fd-slicer@~1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz" - integrity sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g== - dependencies: - pend "~1.2.0" - -fdir@^6.4.4: - version "6.4.4" - resolved "https://registry.npmjs.org/fdir/-/fdir-6.4.4.tgz" - integrity sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg== - -filename-reserved-regex@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz" - integrity sha512-lc1bnsSr4L4Bdif8Xb/qrtokGbq5zlsms/CYH8PP+WtCkGNF65DPiQY8vG3SakEdRn8Dlnm+gW/qWKKjS5sZzQ== - -filenamify@^4.1.0: - version "4.3.0" - resolved "https://registry.npmjs.org/filenamify/-/filenamify-4.3.0.tgz" - integrity sha512-hcFKyUG57yWGAzu1CMt/dPzYZuv+jAJUT85bL8mrXvNe6hWj6yEHEc4EdcgiA6Z3oi1/9wXJdZPXF2dZNgwgOg== - dependencies: - filename-reserved-regex "^2.0.0" - strip-outer "^1.0.1" - trim-repeated "^1.0.0" - -find-up@^2.0.0: - version "2.1.0" - resolved "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz" - integrity sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ== - dependencies: - locate-path "^2.0.0" - -flora-colossus@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/flora-colossus/-/flora-colossus-2.0.0.tgz" - integrity sha512-dz4HxH6pOvbUzZpZ/yXhafjbR2I8cenK5xL0KtBFb7U2ADsR+OwXifnxZjij/pZWF775uSCMzWVd+jDik2H2IA== - dependencies: - debug "^4.3.4" - fs-extra "^10.1.0" - -follow-redirects@^1.15.6: - version "1.15.9" - resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz" - integrity sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ== - -form-data@^4.0.4: - version "4.0.5" - resolved "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz" - integrity sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w== - 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" - -fs-extra@^10.0.0: - version "10.1.0" - resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz" - integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== - dependencies: - graceful-fs "^4.2.0" - jsonfile "^6.0.1" - universalify "^2.0.0" - -fs-extra@^10.1.0: - version "10.1.0" - resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz" - integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== - dependencies: - graceful-fs "^4.2.0" - jsonfile "^6.0.1" - universalify "^2.0.0" - -fs-extra@^11.1.0: - version "11.3.0" - resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.0.tgz" - integrity sha512-Z4XaCL6dUDHfP/jT25jJKMmtxvuwbkrD1vNSMFlo9lNLY2c5FHYSQgHPRZUjAB26TpDEoW9HCOgplrdbaPV/ew== - dependencies: - graceful-fs "^4.2.0" - jsonfile "^6.0.1" - universalify "^2.0.0" - -fs-extra@^8.1.0: - version "8.1.0" - resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz" - integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== - dependencies: - graceful-fs "^4.2.0" - jsonfile "^4.0.0" - universalify "^0.1.0" - -fs-extra@^9.0.1: - version "9.1.0" - resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz" - integrity sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ== - dependencies: - at-least-node "^1.0.0" - graceful-fs "^4.2.0" - jsonfile "^6.0.1" - universalify "^2.0.0" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" - integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== - -function-bind@^1.1.2: - version "1.1.2" - resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz" - integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== - -galactus@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/galactus/-/galactus-1.0.0.tgz" - integrity sha512-R1fam6D4CyKQGNlvJne4dkNF+PvUUl7TAJInvTGa9fti9qAv95quQz29GXapA4d8Ec266mJJxFVh82M4GIIGDQ== - dependencies: - debug "^4.3.4" - flora-colossus "^2.0.0" - fs-extra "^10.1.0" - -gensync@^1.0.0-beta.2: - version "1.0.0-beta.2" - resolved "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz" - integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== - -get-intrinsic@^1.2.6: - version "1.3.0" - resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz" - integrity sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ== - dependencies: - call-bind-apply-helpers "^1.0.2" - es-define-property "^1.0.1" - es-errors "^1.3.0" - es-object-atoms "^1.1.1" - function-bind "^1.1.2" - get-proto "^1.0.1" - gopd "^1.2.0" - has-symbols "^1.1.0" - hasown "^2.0.2" - math-intrinsics "^1.1.0" - -get-package-info@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/get-package-info/-/get-package-info-1.0.0.tgz" - integrity sha512-SCbprXGAPdIhKAXiG+Mk6yeoFH61JlYunqdFQFHDtLjJlDjFf6x07dsS8acO+xWt52jpdVo49AlVDnUVK1sDNw== - dependencies: - bluebird "^3.1.1" - debug "^2.2.0" - lodash.get "^4.0.0" - read-pkg-up "^2.0.0" - -get-proto@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz" - integrity sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g== - dependencies: - dunder-proto "^1.0.1" - es-object-atoms "^1.0.0" - -get-stream@^5.1.0: - version "5.2.0" - resolved "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz" - integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== - dependencies: - pump "^3.0.0" - -glob@^7.1.6: - version "7.2.3" - resolved "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz" - integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.1.1" - once "^1.3.0" - path-is-absolute "^1.0.0" - -global-agent@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz" - integrity sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q== - dependencies: - boolean "^3.0.1" - es6-error "^4.1.1" - matcher "^3.0.0" - roarr "^2.15.3" - semver "^7.3.2" - serialize-error "^7.0.1" - -globals@^11.1.0: - version "11.12.0" - resolved "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz" - integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== - -globalthis@^1.0.1: - version "1.0.4" - resolved "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz" - integrity sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ== - dependencies: - define-properties "^1.2.1" - gopd "^1.0.1" - -gopd@^1.0.1, gopd@^1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz" - integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg== - -got@^11.8.5: - version "11.8.6" - resolved "https://registry.npmjs.org/got/-/got-11.8.6.tgz" - integrity sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g== - dependencies: - "@sindresorhus/is" "^4.0.0" - "@szmarczak/http-timer" "^4.0.5" - "@types/cacheable-request" "^6.0.1" - "@types/responselike" "^1.0.0" - cacheable-lookup "^5.0.3" - cacheable-request "^7.0.2" - decompress-response "^6.0.0" - http2-wrapper "^1.0.0-beta.5.2" - lowercase-keys "^2.0.0" - p-cancelable "^2.0.0" - responselike "^2.0.0" - -graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0: - 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== - -has-property-descriptors@^1.0.0: - version "1.0.2" - resolved "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz" - integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== - dependencies: - es-define-property "^1.0.0" - -has-symbols@^1.0.3, has-symbols@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz" - integrity sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ== - -has-tostringtag@^1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz" - integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw== - dependencies: - has-symbols "^1.0.3" - -hasown@^2.0.2: - version "2.0.2" - resolved "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz" - integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== - dependencies: - function-bind "^1.1.2" - -hosted-git-info@^2.1.4: - version "2.8.9" - resolved "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz" - integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== - -http-cache-semantics@^4.0.0: - version "4.1.1" - resolved "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz" - integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ== - -http2-wrapper@^1.0.0-beta.5.2: - version "1.0.3" - resolved "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz" - integrity sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg== - dependencies: - quick-lru "^5.1.1" - resolve-alpn "^1.0.0" - -immer@^10.0.3, immer@>=9.0.6: - version "10.1.1" - resolved "https://registry.npmjs.org/immer/-/immer-10.1.1.tgz" - integrity sha512-s2MPrmjovJcoMaHtx6K11Ra7oD05NT97w1IC5zpMkT6Atjr7H8LjaDd81iIxUYpMKSRRNMJE703M1Fhr/TctHw== - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz" - integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2: - version "2.0.4" - resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -is-arrayish@^0.2.1: - version "0.2.1" - resolved "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz" - integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== - -is-core-module@^2.16.0: - version "2.16.1" - resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz" - integrity sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w== - dependencies: - hasown "^2.0.2" - -is-docker@^2.0.0: - version "2.2.1" - resolved "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz" - integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== - -is-wsl@^2.2.0: - version "2.2.0" - resolved "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz" - integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== - dependencies: - is-docker "^2.0.0" - -isbinaryfile@^4.0.8: - version "4.0.10" - resolved "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.10.tgz" - integrity sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw== - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" - integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== - -"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz" - integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== - -jsesc@^3.0.2: - version "3.0.2" - resolved "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz" - integrity sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g== - -json-buffer@3.0.1: - version "3.0.1" - resolved "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz" - integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== - -json-stringify-safe@^5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz" - integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== - -json5@^2.2.3: - version "2.2.3" - resolved "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz" - integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== - -jsonfile@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz" - integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg== - optionalDependencies: - graceful-fs "^4.1.6" - -jsonfile@^6.0.1: - version "6.1.0" - resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz" - integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== - dependencies: - universalify "^2.0.0" - optionalDependencies: - graceful-fs "^4.1.6" - -junk@^3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/junk/-/junk-3.1.0.tgz" - integrity sha512-pBxcB3LFc8QVgdggvZWyeys+hnrNWg4OcZIU/1X59k5jQdLBlCsYGRQaz234SqoRLTCgMH00fY0xRJH+F9METQ== - -keyv@^4.0.0: - version "4.5.4" - resolved "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz" - integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw== - dependencies: - json-buffer "3.0.1" - -load-json-file@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz" - integrity sha512-3p6ZOGNbiX4CdvEd1VcE6yi78UrGNpjHO33noGwHCnT/o2fyllJDepsm8+mFFv/DvtwFHht5HIHSyOy5a+ChVQ== - dependencies: - graceful-fs "^4.1.2" - parse-json "^2.2.0" - pify "^2.0.0" - strip-bom "^3.0.0" - -locate-path@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz" - integrity sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA== - dependencies: - p-locate "^2.0.0" - path-exists "^3.0.0" - -lodash.get@^4.0.0: - version "4.4.2" - resolved "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz" - integrity sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ== - -loose-envify@^1.1.0: - version "1.4.0" - resolved "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz" - integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== - dependencies: - js-tokens "^3.0.0 || ^4.0.0" - -lowercase-keys@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz" - integrity sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA== - -lru-cache@^5.1.1: - version "5.1.1" - resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz" - integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== - dependencies: - yallist "^3.0.2" - -matcher@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz" - integrity sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng== - dependencies: - escape-string-regexp "^4.0.0" - -math-intrinsics@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz" - integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g== - -mime-db@1.52.0: - version "1.52.0" - resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" - integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== - -mime-types@^2.1.12: - version "2.1.35" - resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" - integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== - dependencies: - mime-db "1.52.0" - -mimic-response@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz" - integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== - -mimic-response@^3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz" - integrity sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ== - -minimatch@^3.0.4, minimatch@^3.1.1: - version "3.1.2" - resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" - integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== - dependencies: - brace-expansion "^1.1.7" - -minimist@^1.2.6: - version "1.2.8" - resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz" - integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== - -ms@^2.1.3: - version "2.1.3" - resolved "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" - integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" - integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== - -nanoid@^3.3.7, nanoid@^3.3.8: - version "3.3.8" - resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.3.8.tgz" - integrity sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w== - -node-releases@^2.0.19: - version "2.0.19" - resolved "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz" - integrity sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw== - -normalize-package-data@^2.3.2: - version "2.5.0" - resolved "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz" - integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== - dependencies: - hosted-git-info "^2.1.4" - resolve "^1.10.0" - semver "2 || 3 || 4 || 5" - validate-npm-package-license "^3.0.1" - -normalize-url@^6.0.1: - version "6.1.0" - resolved "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz" - integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A== - -object-keys@^1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz" - integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== - -once@^1.3.0, once@^1.3.1, once@^1.4.0: - version "1.4.0" - resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz" - integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== - dependencies: - wrappy "1" - -p-cancelable@^2.0.0: - version "2.1.1" - resolved "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz" - integrity sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg== - -p-limit@^1.1.0: - version "1.3.0" - resolved "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz" - integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== - dependencies: - p-try "^1.0.0" - -p-locate@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz" - integrity sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg== - dependencies: - p-limit "^1.1.0" - -p-try@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz" - integrity sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww== - -parse-author@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/parse-author/-/parse-author-2.0.0.tgz" - integrity sha512-yx5DfvkN8JsHL2xk2Os9oTia467qnvRgey4ahSm2X8epehBLx/gWLcy5KI+Y36ful5DzGbCS6RazqZGgy1gHNw== - dependencies: - author-regex "^1.0.0" - -parse-json@^2.2.0: - version "2.2.0" - resolved "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz" - integrity sha512-QR/GGaKCkhwk1ePQNYDRKYZ3mwU9ypsKhB0XyFnLQdomyEqk3e8wpW3V5Jp88zbxK4n5ST1nqo+g9juTpownhQ== - dependencies: - error-ex "^1.2.0" - -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz" - integrity sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ== - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" - integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== - -path-key@^3.1.0: - version "3.1.1" - resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz" - integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== - -path-parse@^1.0.7: - version "1.0.7" - resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz" - integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== - -path-type@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz" - integrity sha512-dUnb5dXUf+kzhC/W/F4e5/SkluXIFf5VUHolW1Eg1irn1hGWjPGdsRcvYJ1nD6lhk8Ir7VM0bHJKsYTx8Jx9OQ== - dependencies: - pify "^2.0.0" - -pend@~1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz" - integrity sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg== - -picocolors@^1.0.0, picocolors@^1.1.1: - version "1.1.1" - resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz" - integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== - -"picomatch@^3 || ^4", picomatch@^4.0.2: - version "4.0.2" - resolved "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz" - integrity sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg== - -pify@^2.0.0: - version "2.3.0" - resolved "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz" - integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog== - -plist@^3.0.0, plist@^3.0.4, plist@^3.0.5: - version "3.1.0" - resolved "https://registry.npmjs.org/plist/-/plist-3.1.0.tgz" - integrity sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ== - dependencies: - "@xmldom/xmldom" "^0.8.8" - base64-js "^1.5.1" - xmlbuilder "^15.1.1" - -postcss-value-parser@^4.0.2: - version "4.2.0" - resolved "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz" - integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== - -postcss@^8.5.3: - version "8.5.3" - resolved "https://registry.npmjs.org/postcss/-/postcss-8.5.3.tgz" - integrity sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A== - dependencies: - nanoid "^3.3.8" - picocolors "^1.1.1" - source-map-js "^1.2.1" - -postcss@8.4.38: - version "8.4.38" - resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz" - integrity sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A== - dependencies: - nanoid "^3.3.7" - picocolors "^1.0.0" - source-map-js "^1.2.0" - -progress@^2.0.3: - version "2.0.3" - resolved "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz" - integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== - -proxy-from-env@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz" - integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== - -pump@^3.0.0: - version "3.0.2" - resolved "https://registry.npmjs.org/pump/-/pump-3.0.2.tgz" - integrity sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw== - dependencies: - end-of-stream "^1.1.0" - once "^1.3.1" - -quick-lru@^5.1.1: - version "5.1.1" - resolved "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz" - integrity sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA== - -rcedit@^3.0.1: - version "3.1.0" - resolved "https://registry.npmjs.org/rcedit/-/rcedit-3.1.0.tgz" - integrity sha512-WRlRdY1qZbu1L11DklT07KuHfRk42l0NFFJdaExELEu4fEQ982bP5Z6OWGPj/wLLIuKRQDCxZJGAwoFsxhZhNA== - dependencies: - cross-spawn-windows-exe "^1.1.0" - -react-dom@^18.3.1, "react-dom@>= 16.8.0", react-dom@>=17, react-dom@>=18, "react-dom@16 || 17 || 18": - version "18.3.1" - resolved "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz" - integrity sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw== - dependencies: - loose-envify "^1.1.0" - scheduler "^0.23.2" - -react-flow-renderer@^10.3.17: - version "10.3.17" - resolved "https://registry.npmjs.org/react-flow-renderer/-/react-flow-renderer-10.3.17.tgz" - integrity sha512-bywiqVErlh5kCDqw3x0an5Ur3mT9j9CwJsDwmhmz4i1IgYM1a0SPqqEhClvjX+s5pU4nHjmVaGXWK96pwsiGcQ== - dependencies: - "@babel/runtime" "^7.18.9" - "@types/d3" "^7.4.0" - "@types/resize-observer-browser" "^0.1.7" - classcat "^5.0.3" - d3-drag "^3.0.0" - d3-selection "^3.0.0" - d3-zoom "^3.0.0" - zustand "^3.7.2" - -"react-redux@^7.2.1 || ^8.1.3 || ^9.0.0", react-redux@^9.2.0: - version "9.2.0" - resolved "https://registry.npmjs.org/react-redux/-/react-redux-9.2.0.tgz" - integrity sha512-ROY9fvHhwOD9ySfrF0wmvu//bKCQ6AeZZq1nJNtbDC+kk5DuSuNX/n6YWYF/SYy7bSba4D4FSz8DJeKY/S/r+g== - dependencies: - "@types/use-sync-external-store" "^0.0.6" - use-sync-external-store "^1.4.0" - -react-refresh@^0.17.0: - version "0.17.0" - resolved "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz" - integrity sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ== - -react-router-dom@^7.0.2: - version "7.5.2" - resolved "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.5.2.tgz" - integrity sha512-yk1XW8Fj7gK7flpYBXF3yzd2NbX6P7Kxjvs2b5nu1M04rb5pg/Zc4fGdBNTeT4eDYL2bvzWNyKaIMJX/RKHTTg== - dependencies: - react-router "7.5.2" - -react-router@7.5.2: - version "7.5.2" - resolved "https://registry.npmjs.org/react-router/-/react-router-7.5.2.tgz" - integrity sha512-9Rw8r199klMnlGZ8VAsV/I8WrIF6IyJ90JQUdboupx1cdkgYqwnrYjH+I/nY/7cA1X5zia4mDJqH36npP7sxGQ== - dependencies: - cookie "^1.0.1" - set-cookie-parser "^2.6.0" - turbo-stream "2.4.0" - -"react@^16.8.0 || ^17.0.0 || ^18.0.0", "react@^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react@^16.9.0 || ^17.0.0 || ^18 || ^19", "react@^18.0 || ^19", react@^18.3.1, "react@>= 16.8.0", react@>=16, react@>=16.8, react@>=17, react@>=18, react@>=18.0.0, "react@16 || 17 || 18": - version "18.3.1" - resolved "https://registry.npmjs.org/react/-/react-18.3.1.tgz" - integrity sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ== - dependencies: - loose-envify "^1.1.0" - -read-pkg-up@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz" - integrity sha512-1orxQfbWGUiTn9XsPlChs6rLie/AV9jwZTGmu2NZw/CUDJQchXJFYE0Fq5j7+n558T1JhDWLdhyd1Zj+wLY//w== - dependencies: - find-up "^2.0.0" - read-pkg "^2.0.0" - -read-pkg@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz" - integrity sha512-eFIBOPW7FGjzBuk3hdXEuNSiTZS/xEMlH49HxMyzb0hyPfu4EhVjT2DH32K1hSSmVq4sebAWnZuuY5auISUTGA== - dependencies: - load-json-file "^2.0.0" - normalize-package-data "^2.3.2" - path-type "^2.0.0" - -redux-thunk@^3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/redux-thunk/-/redux-thunk-3.1.0.tgz" - integrity sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw== - -redux@^5.0.0, redux@^5.0.1: - version "5.0.1" - resolved "https://registry.npmjs.org/redux/-/redux-5.0.1.tgz" - integrity sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w== - -regenerator-runtime@^0.14.0: - version "0.14.1" - resolved "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz" - integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw== - -reselect@^5.1.0: - version "5.1.1" - resolved "https://registry.npmjs.org/reselect/-/reselect-5.1.1.tgz" - integrity sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w== - -resolve-alpn@^1.0.0: - version "1.2.1" - resolved "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz" - integrity sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g== - -resolve@^1.1.6, resolve@^1.10.0: - version "1.22.10" - resolved "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz" - integrity sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w== - dependencies: - is-core-module "^2.16.0" - path-parse "^1.0.7" - supports-preserve-symlinks-flag "^1.0.0" - -responselike@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz" - integrity sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw== - dependencies: - lowercase-keys "^2.0.0" - -roarr@^2.15.3: - version "2.15.4" - resolved "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz" - integrity sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A== - dependencies: - boolean "^3.0.1" - detect-node "^2.0.4" - globalthis "^1.0.1" - json-stringify-safe "^5.0.1" - semver-compare "^1.0.0" - sprintf-js "^1.1.2" - -rollup@^4.34.9: - version "4.40.1" - resolved "https://registry.npmjs.org/rollup/-/rollup-4.40.1.tgz" - integrity sha512-C5VvvgCCyfyotVITIAv+4efVytl5F7wt+/I2i9q9GZcEXW9BP52YYOXC58igUi+LFZVHukErIIqQSWwv/M3WRw== - dependencies: - "@types/estree" "1.0.7" - optionalDependencies: - "@rollup/rollup-android-arm-eabi" "4.40.1" - "@rollup/rollup-android-arm64" "4.40.1" - "@rollup/rollup-darwin-arm64" "4.40.1" - "@rollup/rollup-darwin-x64" "4.40.1" - "@rollup/rollup-freebsd-arm64" "4.40.1" - "@rollup/rollup-freebsd-x64" "4.40.1" - "@rollup/rollup-linux-arm-gnueabihf" "4.40.1" - "@rollup/rollup-linux-arm-musleabihf" "4.40.1" - "@rollup/rollup-linux-arm64-gnu" "4.40.1" - "@rollup/rollup-linux-arm64-musl" "4.40.1" - "@rollup/rollup-linux-loongarch64-gnu" "4.40.1" - "@rollup/rollup-linux-powerpc64le-gnu" "4.40.1" - "@rollup/rollup-linux-riscv64-gnu" "4.40.1" - "@rollup/rollup-linux-riscv64-musl" "4.40.1" - "@rollup/rollup-linux-s390x-gnu" "4.40.1" - "@rollup/rollup-linux-x64-gnu" "4.40.1" - "@rollup/rollup-linux-x64-musl" "4.40.1" - "@rollup/rollup-win32-arm64-msvc" "4.40.1" - "@rollup/rollup-win32-ia32-msvc" "4.40.1" - "@rollup/rollup-win32-x64-msvc" "4.40.1" - fsevents "~2.3.2" - -scheduler@^0.23.2: - version "0.23.2" - resolved "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz" - integrity sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ== - dependencies: - loose-envify "^1.1.0" - -semver-compare@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz" - integrity sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow== - -semver@^6.2.0, semver@^6.3.1: - version "6.3.1" - resolved "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz" - integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== - -semver@^7.1.3: - version "7.6.3" - resolved "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz" - integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== - -semver@^7.3.2: - version "7.6.3" - resolved "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz" - integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== - -"semver@2 || 3 || 4 || 5": - version "5.7.2" - resolved "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz" - integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== - -serialize-error@^7.0.1: - version "7.0.1" - resolved "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz" - integrity sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw== - dependencies: - type-fest "^0.13.1" - -set-cookie-parser@^2.6.0: - version "2.7.1" - resolved "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.1.tgz" - integrity sha512-IOc8uWeOZgnb3ptbCURJWNjWUPcO3ZnTTdzsurqERrP6nPyv+paC55vJM0LpOlT2ne+Ix+9+CRG1MNLlyZ4GjQ== - -shallowequal@1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz" - integrity sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ== - -shebang-command@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz" - integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== - dependencies: - shebang-regex "^3.0.0" - -shebang-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz" - integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== - -source-map-js@^1.2.0, source-map-js@^1.2.1: - 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== - -spdx-correct@^3.0.0: - version "3.2.0" - resolved "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz" - integrity sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA== - dependencies: - spdx-expression-parse "^3.0.0" - spdx-license-ids "^3.0.0" - -spdx-exceptions@^2.1.0: - version "2.5.0" - resolved "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz" - integrity sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w== - -spdx-expression-parse@^3.0.0: - version "3.0.1" - resolved "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz" - integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q== - dependencies: - spdx-exceptions "^2.1.0" - spdx-license-ids "^3.0.0" - -spdx-license-ids@^3.0.0: - version "3.0.21" - resolved "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.21.tgz" - integrity sha512-Bvg/8F5XephndSK3JffaRqdT+gyhfqIPwDHpX80tJrF8QQRYMo8sNMeaZ2Dp5+jhwKnUmIOyFFQfHRkjJm5nXg== - -sprintf-js@^1.1.2: - version "1.1.3" - resolved "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz" - integrity sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA== - -strip-bom@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz" - integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA== - -strip-outer@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.1.tgz" - integrity sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg== - dependencies: - escape-string-regexp "^1.0.2" - -styled-components@^6.1.13: - version "6.1.13" - resolved "https://registry.npmjs.org/styled-components/-/styled-components-6.1.13.tgz" - integrity sha512-M0+N2xSnAtwcVAQeFEsGWFFxXDftHUD7XrKla06QbpUMmbmtFBMMTcKWvFXtWxuD5qQkB8iU5gk6QASlx2ZRMw== - dependencies: - "@emotion/is-prop-valid" "1.2.2" - "@emotion/unitless" "0.8.1" - "@types/stylis" "4.2.5" - css-to-react-native "3.2.0" - csstype "3.1.3" - postcss "8.4.38" - shallowequal "1.1.0" - stylis "4.3.2" - tslib "2.6.2" - -stylis@4.3.2: - version "4.3.2" - resolved "https://registry.npmjs.org/stylis/-/stylis-4.3.2.tgz" - integrity sha512-bhtUjWd/z6ltJiQwg0dUfxEJ+W+jdqQd8TbWLWyeIJHlnsqmGLRFFd8e5mA0AZi/zx90smXRlN66YMTcaSFifg== - -sumchecker@^3.0.1: - version "3.0.1" - resolved "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz" - integrity sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg== - dependencies: - debug "^4.1.0" - -supports-preserve-symlinks-flag@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz" - integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== - -tinyglobby@^0.2.13: - version "0.2.13" - resolved "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.13.tgz" - integrity sha512-mEwzpUgrLySlveBwEVDMKk5B57bhLPYovRfPAXD5gA/98Opn0rCDj3GtLwFvCvH5RK9uPCExUROW5NjDwvqkxw== - dependencies: - fdir "^6.4.4" - picomatch "^4.0.2" - -trim-repeated@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz" - integrity sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg== - dependencies: - escape-string-regexp "^1.0.2" - -tslib@2.6.2: - version "2.6.2" - resolved "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz" - integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== - -turbo-stream@2.4.0: - version "2.4.0" - resolved "https://registry.npmjs.org/turbo-stream/-/turbo-stream-2.4.0.tgz" - integrity sha512-FHncC10WpBd2eOmGwpmQsWLDoK4cqsA/UT/GqNoaKOQnT8uzhtCbg3EoUDMvqpOSAI0S26mr0rkjzbOO6S3v1g== - -type-fest@^0.13.1: - version "0.13.1" - resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz" - integrity sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg== - -typescript@^4.9.5: - version "4.9.5" - resolved "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz" - integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== - -undici-types@~6.21.0: - version "6.21.0" - resolved "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz" - integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ== - -universalify@^0.1.0: - version "0.1.2" - resolved "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz" - integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== - -universalify@^2.0.0: - version "2.0.1" - resolved "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz" - integrity sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw== - -update-browserslist-db@^1.1.1: - version "1.1.3" - resolved "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz" - integrity sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw== - dependencies: - escalade "^3.2.0" - picocolors "^1.1.1" - -use-sync-external-store@^1.2.2, use-sync-external-store@>=1.2.0: - version "1.2.2" - resolved "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.2.tgz" - integrity sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw== - -use-sync-external-store@^1.4.0: - version "1.4.0" - resolved "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.4.0.tgz" - integrity sha512-9WXSPC5fMv61vaupRkCKCxsPxBocVnwakBEkMIHHpkTTg6icbJtg6jzgtLDm4bl3cSHAca52rYWih0k4K3PfHw== - -validate-npm-package-license@^3.0.1: - version "3.0.4" - resolved "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz" - integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== - dependencies: - spdx-correct "^3.0.0" - spdx-expression-parse "^3.0.0" - -"vite@^4.2.0 || ^5.0.0 || ^6.0.0", vite@^6.0.0, vite@^6.3.4: - version "6.4.1" - resolved "https://registry.npmjs.org/vite/-/vite-6.4.1.tgz" - integrity sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g== - dependencies: - esbuild "^0.25.0" - fdir "^6.4.4" - picomatch "^4.0.2" - postcss "^8.5.3" - rollup "^4.34.9" - tinyglobby "^0.2.13" - optionalDependencies: - fsevents "~2.3.3" - -which@^2.0.1, which@^2.0.2: - version "2.0.2" - resolved "https://registry.npmjs.org/which/-/which-2.0.2.tgz" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - -wrappy@1: - version "1.0.2" - resolved "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" - integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== - -xmlbuilder@^15.1.1: - version "15.1.1" - resolved "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz" - integrity sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg== - -yallist@^3.0.2: - version "3.1.1" - resolved "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz" - integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== - -yargs-parser@^21.1.1: - version "21.1.1" - resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz" - integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== - -yauzl@^2.10.0: - version "2.10.0" - resolved "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz" - integrity sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g== - dependencies: - buffer-crc32 "~0.2.3" - fd-slicer "~1.1.0" - -zustand@^3.7.2: - version "3.7.2" - resolved "https://registry.npmjs.org/zustand/-/zustand-3.7.2.tgz" - integrity sha512-PIJDIZKtokhof+9+60cpockVOq05sJzHCriyvaLBmEJixseQ1a5Kdov6fWZfWOu5SK9c+FhH1jU0tntLxRJYMA== - -zustand@^4.4.0: - version "4.5.6" - resolved "https://registry.npmjs.org/zustand/-/zustand-4.5.6.tgz" - integrity sha512-ibr/n1hBzLLj5Y+yUcU7dYw8p6WnIVzdJbnX+1YpaScvZVF2ziugqHs+LAmHw4lWO9c/zRj+K1ncgWDQuthEdQ== - dependencies: - use-sync-external-store "^1.2.2" - -zustand@^5.0.3: - version "5.0.3" - resolved "https://registry.npmjs.org/zustand/-/zustand-5.0.3.tgz" - integrity sha512-14fwWQtU3pH4dE0dOpdMiWjddcH+QzKIgk1cl8epwSE7yag43k/AD/m4L6+K7DytAOr9gGBe3/EXj9g7cdostg== diff --git a/README.md b/README.md index 6889fc3..62c9fa4 100644 --- a/README.md +++ b/README.md @@ -1,72 +1,3 @@ -

    Логотип ГоNets

    - -

    Написание ГоNets

    - -# ОГЛАВЛЕНИЕ - -- [Ссылки](#cссылки:) -- [Что это?](#что-это?) -- [Почему MVP?](#почему-mvp?) -- [Текущий статус Приложения](#текущий-статус-приложения) - - [Стабильные версии:](#стабильные-версии:) -- [Правила наименования](#правила-наименования) - - [Коды компонентов](#коды-компонентов) - - [Нумерация версий](#нумерация-версий) - -## Ссылки: -Здесь Вы найдете неполный список ссылок на официальные ресурсы: - -- [WEB-страница приложения](https://gonets.gossys.dev) -- [Гибридная Офисная Система](https://hybryd.ru) -- [HELPDESK](https://helpdesk.gossys.dev/) -- [Раздел Базы знаний](https://helpdesk.gossys.dev/knowledgebase.php?category=17) -- [О Разработчике](https://gossys.dev/) -- [Документация](https://wiki.gossys.dev/docs/gonets) - -## Что это? -**ГоNets** - это кроссплатформенное **MVP** - приложение для управления сетевыми настройками локального и удаленных Клиентов и проведения востребованных Пользователями и Администраторами сетевых операций. - -Все это происходит с использованием нового, интуитивно понятного интерфейса, с полным интерактивным взаимодействием. - -

    Экран ГоNets

    - -## Почему MVP? -**ГоNets** - приложение, созданное для тестирования данного интерфейса, применительно к управлению настройками операционной системы. На основе Вашей реакции нами будут приняты решения о дальнейшей модернизации проекта, либо его полного перехода на более привычный интерфейс. - -## Текущий статус Приложения -Текущий статус Приложения - В разработке. Чего еще ожидать от приложения, размещенного на Гит? Одновременно с этим - оно находится и в тестировании. Подробную информацию Вы можете получить в в разделах Задачи и Проекты. - -### Стабильные версии: -- Версия для Deb-based: GNB-DEB64-0.0.3 -- Версия для RPM-based: В разработке -- Версия для Windows: В разработке -- Версия для MacOS (Intel): В разработке -- Версия для MacOS (ARM): В разработке - -## Правила наименования -Общий шаблон наименования - **CODE-ARCH-NUM-SPEC**, где: - -- **CODE** - Код компонента (См. таблицу ниже); -- **ARCH** - Архитектура компонента в соответствии с международной классификацией; -- **NUM** - Номер версии, в соответствии с "Правилами нумерации версий"; -- **SPEC** - Дополнительное буквенное обозначение в общепринятом формате. (Например RC, Beta, PreRelease) - -### Коды компонентов -|Наименование|Описание|Код| -|---|---|---| -|**Project GoNets (Проект, Проект GoNets, GoNets, Программный комплекс, ПК)**| Программный комплекс вцелом.| ***GNP*** | -|**Server (Сервер)**| Программный компонент, отвечающий за получение и обработку данных, формирующий данные для последующего отображения|***GNS***| -|**Server Client (Серверный Клиент)**| Программный компонент, отвечающий за сбор данных с ПК или Сервера и передающий их для обработки|***GNK***| -|**Client (Клиент)** |Программный компонент, отвечающий за визуализацию и взаимодействие с Пользователем|***GNC***| -|**Bundle (Объединенное приложение)**| Версия приложения **ГоNets**, собранная из нескольких программных компонентов, объединенная одним инсталлятором для обспечения полного функционала|***GNB***| - -### Нумерация версий -В проекте действует следующая система нумерации версий: -**XX.YY.ZZ** - где XX.YY.ZZ, обозначают: -- **ZZ**: текущий номер стабильного билда; -- **YY**: текущий номер минорной версии (Версии с полной обратной совместимостью с предыдущими, без кардинальных отличий в интерфейсе или функционале.) -- **XX**: Текущий номер мажорной версии (Версии с частичной или отсутствующей обратной совместимостью с предыдущими, либо с кардинальными отличиями в интерфейсе или функционале.) - - - +# GoNets +Общий репозиторий для GoNets начиная с версии 0.0.1 \ No newline at end of file diff --git a/SRV/.gitignore b/SRV/.gitignore index 20dffb4..9cb3d81 100644 --- a/SRV/.gitignore +++ b/SRV/.gitignore @@ -6,5 +6,4 @@ __pycache__ .wheels .vendor .python3-deb -storage/subnets/ -storage/wifi/ \ No newline at end of file +storage/devices/ \ No newline at end of file diff --git a/SRV/api/router.py b/SRV/api/router.py index a168d73..167c19d 100644 --- a/SRV/api/router.py +++ b/SRV/api/router.py @@ -1,29 +1,5 @@ -""" -Маршрутизация API-версии v1 для GONETS. - -Модуль агрегирует и монтирует роутеры отдельных доменных областей под общим -корневым роутером. Каждый подключенный модуль предоставляет набор эндпоинтов -со своим префиксом и тегами для группировки в документации FastAPI. - -Структура маршрутов: - - `/ufw` (UFW): управление правилами и состоянием Uncomplicated Firewall. - - `/ip` (IP): проверки и применение IP-конфигураций для сетевых профилей. - - `/network` (Network): получение и визуализация состояния интерфейсов, - управление позициями UI-контейнеров. - - `/auth` (Auth): регистрация, аутентификация (JWT), сессии. - - `/subnet` (Subnet): сканирование подсетей, заметки к устройствам, - взаимодействие с Wi-Fi (скан/подключение/отключение/статус). - - `WebSocket`: обработчики взаимодействия по WS (без префикса, путь внутри - модуля), периодическая трансляция сетевых данных. - - `/settings` (Settings): сервисные операции над локальными JSON-хранилищами - (очистка данных подсетей/wi-fi и пр.). - -Назначение: - - Централизованная точка подключения доменных роутеров к приложению. - - Единообразие тегов и префиксов для автогенерации схемы и документации. -""" from fastapi import APIRouter -from .v1 import ufw, websocket, ip, network, auth, subnet, settings +from .v1 import ufw, websocket, ip, network, auth, subnet router = APIRouter() @@ -34,5 +10,3 @@ router.include_router(network.router, prefix="/network", tags=["Network"]) router.include_router(auth.router, prefix="/auth", tags=["Auth"]) router.include_router(subnet.router, prefix="/subnet", tags=["Subnet"]) - -router.include_router(settings.router, prefix="/settings", tags=["Settings"]) diff --git a/SRV/api/v1/auth.py b/SRV/api/v1/auth.py index 7238ff3..ffb5d6d 100644 --- a/SRV/api/v1/auth.py +++ b/SRV/api/v1/auth.py @@ -1,10 +1,9 @@ +# api/v1/auth.py from fastapi import APIRouter, Depends, HTTPException, Request from fastapi.security import OAuth2PasswordBearer from services.auth_service import AuthService from models.auth import UserCreate, UserLogin, UserResponse, Token from storage.json_storage import JsonStorage -from utils.i18n import get_translations, _ -from babel.support import Translations import logging import os @@ -15,24 +14,10 @@ router = APIRouter() auth_service = AuthService() oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/auth/login") + @router.post("/register", response_model=UserResponse) -async def register(user: UserCreate, translations: Translations = Depends(get_translations)): - """Регистрирует нового пользователя. - - Создаёт нового пользователя на основе предоставленных данных и возвращает - информацию о зарегистрированном пользователе. - - Args: - user (UserCreate): Объект с данными нового пользователя (username, password, is_admin). - translations: Объект переводов для текущего языка. - - Returns: - UserResponse: Объект с данными зарегистрированного пользователя (id, username, is_admin). - - Raises: - HTTPException: Если пользователь уже существует (status_code=400) или произошла - внутренняя ошибка (status_code=500). - """ +async def register(user: UserCreate): + """Регистрирует нового пользователя""" try: db_user = auth_service.register(user) logger.info(f"Пользователь {user.username} успешно зарегистрирован") @@ -40,116 +25,69 @@ async def register(user: UserCreate, translations: Translations = Depends(get_tr except HTTPException as e: raise e except Exception as e: - logger.error(f"Error in register: {type(e).__name__} - {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось зарегистрировать пользователя")) + logger.error(f"Ошибка в register: {type(e).__name__} - {str(e)}") + raise HTTPException(status_code=500, + detail="Не удалось зарегистрировать пользователя") + @router.post("/login", response_model=Token) -async def login(user: UserLogin, request: Request, translations: Translations = Depends(get_translations)): - """Авторизует пользователя и создаёт сессию. - - Проверяет учетные данные пользователя и возвращает токен и session_id для - последующей авторизации. - - Args: - user (UserLogin): Объект с данными для входа (username, password). - request (Request): Объект запроса для получения client_id (IP-адрес клиента). - translations: Объект переводов для текущего языка. - - Returns: - Token: Объект с access_token и session_id для авторизации. - - Raises: - HTTPException: Если учетные данные неверны (status_code=401) или произошла - внутренняя ошибка (status_code=500). - """ +async def login(user: UserLogin, request: Request): + """Авторизует пользователя и создаёт сессию""" try: client_id = request.client.host - logger.debug(f"Попытка входа в систему клиента {client_id}") + logger.debug(f"Попытка авторизации для client_id {client_id}") result = auth_service.login(user, client_id) - logger.info(f"Успешная авторизация для клиента {client_id}, Идентификатор сессии: {result['session_id']}") + logger.info( + f"Успешная авторизация для client_id {client_id}, session_id: {result['session_id']}" + ) return result except HTTPException as e: raise e except Exception as e: - logger.error(f"Ошибка при авторизации: {type(e).__name__} - {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось авторизовать пользователя")) + logger.error(f"Ошибка в login: {type(e).__name__} - {str(e)}") + raise HTTPException(status_code=500, + detail="Не удалось авторизовать пользователя") + @router.get("/me") -async def get_current_user(request: Request, translations: Translations = Depends(get_translations)): - """Возвращает данные текущего пользователя и токен. - - Проверяет активную сессию по client_id и возвращает информацию о пользователе - и токен для дальнейшего использования. - - Args: - request (Request): Объект запроса для получения client_id (IP-адрес клиента). - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с ключами "user" (UserResponse), "access_token" (str) и - "token_type" (str, всегда "bearer"). - - Raises: - HTTPException: Если сессия не найдена или истекла (status_code=401) или - произошла внутренняя ошибка (status_code=500). - """ +async def get_current_user(request: Request): + """Возвращает данные текущего пользователя и токен""" try: client_id = request.client.host - logger.debug(f"Запрос /me для клиента {client_id}") + logger.debug(f"Запрос /me для client_id {client_id}") result = auth_service.get_user_by_session(client_id) return { "user": result["user"], "access_token": result["access_token"], - "token_type": translations.gettext("bearer"), + "token_type": "bearer", } except HTTPException as e: raise e except Exception as e: - logger.error(f"Ошибка при get_current_user: {type(e).__name__} - {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось получить данные пользователя")) + logger.error( + f"Ошибка в get_current_user: {type(e).__name__} - {str(e)}") + raise HTTPException(status_code=500, + detail="Не удалось получить данные пользователя") + @router.get("/logout") -async def logout(request: Request, translations: Translations = Depends(get_translations)): - """Выход из системы, удаление сессии. - - Удаляет активную сессию пользователя по client_id. - - Args: - request (Request): Объект запроса для получения client_id (IP-адрес клиента). - translations: Объект переводов для текущего языка. - - Returns: - dict: Пустой словарь или сообщение об успешном выходе. - - Raises: - HTTPException: Если сессия не найдена (status_code=401) или произошла - внутренняя ошибка (status_code=500). - """ +async def logout(request: Request): + """Выход из системы, удаление сессии""" try: client_id = request.client.host - logger.debug(f"Запрос на выход из системы для клиента {client_id}") + logger.debug(f"Запрос logout для client_id {client_id}") return auth_service.logout(client_id) except HTTPException as e: raise e except Exception as e: - logger.error(f"Не удалось выйти из системы: {type(e).__name__} - {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось выйти из системы")) + logger.error(f"Ошибка в logout: {type(e).__name__} - {str(e)}") + raise HTTPException(status_code=500, + detail="Не удалось выйти из системы") + @router.get("/check_json") -async def check_users_file(translations: Translations = Depends(get_translations)): - """Проверяет, существует ли файл users.json и содержит ли он пользователей. - - Возвращает информацию о состоянии файла и наличии пользователей. - - Returns: - dict: Словарь с ключами: - - "exists" (bool): Существует ли файл. - - "has_users" (bool): Содержит ли файл пользователей. - - "message" (str): Сообщение с описанием результата. - - Raises: - HTTPException: Если произошла ошибка при проверке файла (status_code=500). - """ +async def check_users_file(): + """Проверяет, существует ли файл users.json и содержит ли он пользователей""" try: file_path = "/etc/gonets/users.json" storage = JsonStorage(file_path=file_path) @@ -159,25 +97,34 @@ async def check_users_file(translations: Translations = Depends(get_translations return { "exists": False, "has_users": False, - "message": translations.gettext("Файл users.json не существует"), + "message": "Файл users.json не существует", } data = storage._read_data() has_users = len(data.get("users", [])) > 0 if has_users: - logger.info(f"Файл {file_path} существует и содержит пользователей") + logger.info( + f"Файл {file_path} существует и содержит пользователей") return { "exists": True, "has_users": True, - "message": translations.gettext("Файл users.json существует и содержит пользователей"), + "message": + "Файл users.json существует и содержит пользователей", } else: - logger.info(f"Файл {file_path} существует, но не содержит пользователей") + logger.info( + f"Файл {file_path} существует, но не содержит пользователей") return { - "exists": True, - "has_users": False, - "message": translations.gettext("Файл users.json существует, но не содержит пользователей"), + "exists": + True, + "has_users": + False, + "message": + "Файл users.json существует, но не содержит пользователей", } except Exception as e: - logger.error(f"Ошибка при проверке файла: {type(e).__name__} - {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка при проверке файла")) + logger.error( + f"Ошибка при проверке файла users.json: {type(e).__name__} - {str(e)}" + ) + raise HTTPException(status_code=500, + detail="Ошибка при проверке файла") diff --git a/SRV/api/v1/ip.py b/SRV/api/v1/ip.py index 4fdefe0..b5702d3 100644 --- a/SRV/api/v1/ip.py +++ b/SRV/api/v1/ip.py @@ -1,111 +1,56 @@ from typing import Dict, Any -from fastapi import APIRouter, Body, HTTPException, Depends +from fastapi import APIRouter, Body, HTTPException from services.ip_service import IPService -from utils.i18n import get_translations -from babel.support import Translations router = APIRouter() ip_service = IPService() + @router.post("/check_ip") -async def check_ip_config(data: Dict[str, Any] = Body(...), translations: Translations = Depends(get_translations)): - """Проверяет доступность IP-адреса перед его применением. - - Выполняет ARP-сканирование для проверки, занят ли указанный IP-адрес, - и возвращает результат проверки. - - Args: - data (Dict[str, Any]): Словарь с данными конфигурации, включая - "ipv4_updates" с полем "ipv4.address-data" для нового IP-адреса. - translations: Объект переводов для текущего языка. - - Returns: - Dict[str, Any]: Словарь с ключами: - - "available" (bool): Доступен ли IP-адрес. - - "message" (str): Сообщение о результате проверки. - - Raises: - HTTPException: Если произошла внутренняя ошибка (status_code=500). - """ +async def check_ip_config(data: Dict[str, Any] = Body(...)): + """Проверяет доступность IP-адреса""" try: - result = await ip_service.check_ip_config(data, translations) + result = await ip_service.check_ip_config(data) return result except Exception as e: raise HTTPException( status_code=500, - detail=translations.gettext("Ошибка проверки IP конфигурации: {error}").format(error=str(e)) - ) + detail=f"Ошибка проверки IP конфигурации: {str(e)}") + @router.post("/apply_ip") -async def apply_ip_config(data: Dict[str, Any] = Body(...), translations: Translations = Depends(get_translations)): - """Применяет проверенные IP-настройки к указанному сетевому профилю. - - Обновляет настройки соединения через NetworkManager, отключает и - переподключает устройство к сети. - - Args: - data (Dict[str, Any]): Словарь с данными конфигурации, включая - "connection_id" и "ipv4_updates" с обновлениями IP-настроек. - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с ключами: - - "success" (bool): Успешность операции. - - "message" (str): Сообщение об успешном применении настроек. - - Raises: - HTTPException: Если подключение не найдено (status_code=404) или - произошла внутренняя ошибка (status_code=500). - """ +async def apply_ip_config(data: Dict[str, Any] = Body(...)): + """Применяет проверенные IP-настройки""" try: - await ip_service.apply_ip_config(data, translations) + await ip_service.apply_ip_config(data) return { - "success": True, - "message": translations.gettext("Настройки сетевого профиля для {connection_id} применены").format( - connection_id=data["connection_id"] - ), + "success": + True, + "message": + f"Настройки сетевого профиля для {data['connection_id']} применены", } except ValueError as e: - raise HTTPException(status_code=404, detail=translations.gettext(str(e))) + raise HTTPException(status_code=404, detail=str(e)) except Exception as e: raise HTTPException( status_code=500, - detail=translations.gettext("Ошибка проверки IP конфигурации: {error}").format(error=str(e)) - ) + detail=f"Ошибка проверки IP конфигурации: {str(e)}") + @router.post("/save_ip") -async def save_ip_config(data: Dict[str, Any] = Body(...), translations: Translations = Depends(get_translations)): - """Применяет проверенные IP-настройки для отката сетевого профиля. - - Используется для сохранения и отката настроек сетевого профиля к предыдущему - состоянию через NetworkManager. - - Args: - data (Dict[str, Any]): Словарь с данными конфигурации, включая - "connection_id" и "ipv4_updates" с обновлениями IP-настроек. - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с ключами: - - "success" (bool): Успешность операции. - - "message" (str): Сообщение об успешном применении настроек. - - Raises: - HTTPException: Если подключение не найдено (status_code=404) или - произошла внутренняя ошибка (status_code=500). - """ +async def save_ip_config(data: Dict[str, Any] = Body(...)): + """Применяет проверенные IP-настройки (Нужен для того, чтобы откатить настройки сетевого профиля обратно)""" try: - await ip_service.apply_ip_config(data, translations) + await ip_service.apply_ip_config(data) return { - "success": True, - "message": translations.gettext("Настройки сетевого профиля для {connection_id} применены").format( - connection_id=data["connection_id"] - ), + "success": + True, + "message": + f"Настройки сетевого профиля для {data['connection_id']} применены", } except ValueError as e: - raise HTTPException(status_code=404, detail=translations.gettext(str(e))) + raise HTTPException(status_code=404, detail=str(e)) except Exception as e: raise HTTPException( status_code=500, - detail=translations.gettext("Ошибка проверки IP конфигурации: {error}").format(error=str(e)) - ) + detail=f"Ошибка проверки IP конфигурации: {str(e)}") diff --git a/SRV/api/v1/network.py b/SRV/api/v1/network.py index 395bc78..78c0cae 100644 --- a/SRV/api/v1/network.py +++ b/SRV/api/v1/network.py @@ -1,6 +1,7 @@ -from fastapi import APIRouter, Body, HTTPException, Depends +from fastapi import APIRouter, Body, HTTPException import logging from typing import Dict, Tuple, List, Union + from services.network_service import NetworkService from models.network import ( NetworkInterfacesContainer, @@ -9,8 +10,6 @@ from models.network import ( NetworkInterface, WiFiDevice, ) -from utils.i18n import get_translations, _, _load_translations -from babel.support import Translations logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) @@ -18,19 +17,13 @@ logger = logging.getLogger(__name__) router = APIRouter() network_service = NetworkService() -class ContainerPositionManager: - """Класс для управления позициями и состоянием контейнеров. - Хранит и обновляет координаты (x, y) и состояние (isOpen) для контейнеров - активации и деактивации. +class ContainerPositionManager: + """ + Класс для управления позициями и состоянием контейнеров """ def __init__(self): - """Инициализирует менеджер позиций контейнеров. - - Создаёт начальные позиции и состояния для контейнеров "activation" и - "deactivation" с координатами (0, 0) и закрытым состоянием (False). - """ self.positions: Dict[str, Dict[str, Union[int, bool]]] = { "activation": { "x": 0, @@ -44,66 +37,37 @@ class ContainerPositionManager: }, } - def get_position_and_state(self, container_name: str, translations: Translations) -> Tuple[int, int, bool]: - """Получает текущие координаты и состояние указанного контейнера. - - Args: - container_name (str): Имя контейнера ("activation" или "deactivation"). - translations: Объект переводов для текущего языка. - - Returns: - Tuple[int, int, bool]: Кортеж с координатами (x, y) и состоянием (isOpen). - - Raises: - ValueError: Если указан неверный идентификатор контейнера. - """ + def get_position_and_state(self, + container_name: str) -> Tuple[int, int, bool]: container = self.positions.get(container_name) if not container: - raise ValueError(translations.gettext("Неверное имя контейнера: {container_name}").format(container_name=container_name)) + raise ValueError(f"Неверное имя контейнера: {container_name}") return container["x"], container["y"], container["isOpen"] - def update_position(self, container_id: int, x: int, y: int, isOpen: bool) -> None: - """Обновляет позицию и состояние контейнера по его идентификатору. - - Args: - container_id (int): Идентификатор контейнера (1 для "activation", 2 для "deactivation"). - x (int): Новая координата X. - y (int): Новая координата Y. - isOpen (bool): Новое состояние контейнера (открыт/закрыт). - - Raises: - ValueError: Если container_id не соответствует ни одному контейнеру. - """ + def update_position(self, container_id: int, x: int, y: int, + isOpen: bool) -> None: container_name = "activation" if container_id == 1 else "deactivation" self.positions[container_name] = {"x": x, "y": y, "isOpen": isOpen} + container_manager = ContainerPositionManager() -async def get_network_data(translations: Translations = Depends(get_translations)) -> Dict[str, Dict]: - """Возвращает текущие сетевые данные в виде словаря. - Получает данные о сетевых интерфейсах, разделяет их на активные и неактивные, - и возвращает их в формате Activation и Deactivation с учётом позиций и состояний - контейнеров. - - Args: - translations: Объект переводов для текущего языка. - - Returns: - Dict[str, Dict]: Словарь с ключами "activation" и "deactivation", содержащими - данные о соответствующих контейнерах. - - Raises: - HTTPException: Если произошла ошибка при получении данных (status_code=500). +async def get_network_data() -> Dict[str, Dict]: """ - logger.debug("Calling get_network_data()") + Возвращает текущие сетевые данные в виде словаря + """ + logger.debug("Вызов get_network_data()") try: network_data = await network_service.get_network_interfaces_container() - activation_interfaces, deactivation_interfaces = _split_interfaces(network_data.interfaces) + activation_interfaces, deactivation_interfaces = _split_interfaces( + network_data.interfaces) - activation_x, activation_y, activation_is_open = container_manager.get_position_and_state("activation", translations) - deactivation_x, deactivation_y, deactivation_is_open = container_manager.get_position_and_state("deactivation", translations) + activation_x, activation_y, activation_is_open = ( + container_manager.get_position_and_state("activation")) + deactivation_x, deactivation_y, deactivation_is_open = ( + container_manager.get_position_and_state("deactivation")) activation = Activation( id=1, @@ -125,20 +89,17 @@ async def get_network_data(translations: Translations = Depends(get_translations "deactivation": deactivation.model_dump(), } except Exception as e: - logger.error(f"Error in get_network_data: {e}") - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось получить сетевые данные")) + logger.error(f"Ошибка в get_network_data: {e}") + raise HTTPException(status_code=500, + detail="Не удалось получить сетевые данные") + def _split_interfaces( interfaces: List[Union[NetworkInterface, WiFiDevice]], -) -> Tuple[List[Union[NetworkInterface, WiFiDevice]], List[Union[NetworkInterface, WiFiDevice]]]: - """Разделяет интерфейсы на активные и неактивные. - - Args: - interfaces (List[Union[NetworkInterface, WiFiDevice]]): Список сетевых интерфейсов. - - Returns: - Tuple[List[Union[NetworkInterface, WiFiDevice]], List[Union[NetworkInterface, WiFiDevice]]]: - Кортеж из списков активных и неактивных интерфейсов. +) -> Tuple[List[Union[NetworkInterface, WiFiDevice]], List[Union[ + NetworkInterface, WiFiDevice]]]: + """ + Разделяет интерфейсы на активные и неактивные """ activation_interfaces = [] deactivation_interfaces = [] @@ -149,37 +110,21 @@ def _split_interfaces( deactivation_interfaces.append(interface) return activation_interfaces, deactivation_interfaces + @router.post("/update_container_position") -async def update_container_position(data: Dict[str, Union[int, bool]] = Body(...), translations: Translations = Depends(get_translations)): - """Обновляет позицию и состояние контейнера. - - Принимает данные о новом положении и состоянии контейнера и обновляет их - в менеджере позиций. - - Args: - data (Dict[str, Union[int, bool]]): Словарь с ключами: - - "container_id" (int): Идентификатор контейнера (1 или 2). - - "container_x" (int): Новая координата X. - - "container_y" (int): Новая координата Y. - - "isOpen" (bool): Новое состояние контейнера (открыт/закрыт). - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с ключами: - - "success" (bool): Успешность операции. - - "message" (str): Сообщение об успешном обновлении. - - Raises: - HTTPException: Если отсутствуют обязательные поля (status_code=400) или - типы данных неверны. +async def update_container_position(data: Dict[str, Union[int, + bool]] = Body(...)): + """ + Обновляет позицию и состояние контейнера """ try: + required_keys = [ "container_id", "container_x", "container_y", "isOpen" ] if not all(key in data for key in required_keys): raise ValueError( - translations.gettext("Отсутствуют обязательные поля: container_id, container_x, container_y, isOpen") + "Отсутствуют обязательные поля: container_id, container_x, container_y, isOpen" ) container_id = data["container_id"] @@ -187,39 +132,33 @@ async def update_container_position(data: Dict[str, Union[int, bool]] = Body(... container_y = data["container_y"] is_open = data["isOpen"] + # Проверка типов if (not isinstance(container_id, int) or not isinstance(container_x, int) or not isinstance(container_y, int) or not isinstance(is_open, bool)): - raise ValueError(translations.gettext("Неверный тип данных в запросе")) + raise ValueError("Неверный тип данных в запросе") - container_manager.update_position(container_id, container_x, container_y, is_open) + container_manager.update_position(container_id, container_x, + container_y, is_open) return { "success": True, - "message": translations.gettext("Позиция и состояние контейнера обновлены") + "message": "Позиция и состояние контейнера обновлены" } except Exception as e: - logger.error(f"Error updating container position: {e}") - raise HTTPException(status_code=400, detail=translations.gettext("Не удалось обновить положение контейнера: {error}").format(error=str(e))) + logger.error(f"Ошибка обновления позиции контейнера: {e}") + raise HTTPException( + status_code=400, + detail=f"Не удалось обновить положение контейнера: {str(e)}", + ) + @router.get("/get_hostname") -async def get_hostname(translations: Translations = Depends(get_translations)): - """Возвращает имя хоста системы. - - Выполняет запрос к сервису для получения имени хоста. - - Args: - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с ключом "hostname" и значением имени хоста. - - Raises: - HTTPException: Если произошла ошибка при получении имени хоста (status_code=500). - """ +async def get_hostname(): try: hostname_info = await network_service.get_hostname() return hostname_info except Exception as e: - logger.error(f"Error in get_hostname: {e}") - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось получить имя хоста")) + logger.error(f"Ошибка в get_hostname: {e}") + raise HTTPException(status_code=500, + detail="Не удалось получить имя хоста") diff --git a/SRV/api/v1/settings.py b/SRV/api/v1/settings.py deleted file mode 100644 index 27773bc..0000000 --- a/SRV/api/v1/settings.py +++ /dev/null @@ -1,209 +0,0 @@ -import os -import logging -import subprocess -from typing import Optional -from fastapi import APIRouter, HTTPException, Depends, Response, Request, Body -from starlette.responses import FileResponse -from services.settings_service import SettingsService -from utils.i18n import get_translations -from babel.support import Translations -from models.subnet import SubnetScanRequest # Предполагается, что модель определена - -logging.basicConfig(level=logging.DEBUG) -logger = logging.getLogger(__name__) - -router = APIRouter() -settings_service = SettingsService() - -@router.post("/clear_subnet") -def clear_subnet(subnet: Optional[str] = None, translations: Translations = Depends(get_translations)): - """Очищает данные узлов подсети, сохранённые в devices.json. - - Удаляет все записи об узлах подсети, оставляя файл пустым. - - Args: - subnet (Optional[str]): Подсеть в формате CIDR (например, "10.1.1.0/24"). - Если None, очищает все подсети. - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешной очистке. - - Raises: - HTTPException: Если произошла ошибка очистки (status_code=500). - """ - try: - success = settings_service.clear_subnet(subnet) - if success: - if subnet: - return {"message": translations.gettext("Данные узлов подсети {subnet} успешно очищены").format(subnet=subnet)} - else: - return {"message": translations.gettext("Данные всех подсетей успешно очищены")} - else: - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось очистить данные узлов подсети")) - except Exception as e: - logger.error(f"Error clearing subnet data: {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка очистки: {error}").format(error=str(e))) - -@router.post("/clear_wifi") -def clear_wifi(translations: Translations = Depends(get_translations)): - """Очищает данные точек доступа Wi-Fi, сохранённые в wifi.json. - - Удаляет все записи о точках доступа, оставляя файл пустым. - - Args: - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешной очистке. - - Raises: - HTTPException: Если произошла ошибка очистки (status_code=500). - """ - try: - success = settings_service.clear_wifi() - if success: - return {"message": translations.gettext("Данные точек доступа Wi-Fi успешно очищены")} - else: - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось очистить данные точек доступа Wi-Fi")) - except Exception as e: - logger.error(f"Error clearing wifi data: {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка очистки: {error}").format(error=str(e))) - -@router.post("/clear_all_data") -def clear_all_data(translations: Translations = Depends(get_translations)): - """Очищает данные узлов подсети и точек доступа Wi-Fi в обоих файлах. - - Удаляет все записи из devices.json и wifi.json. - - Args: - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешной очистке. - - Raises: - HTTPException: Если произошла ошибка очистки (status_code=500). - """ - try: - success = settings_service.clear_all_data() - if success: - return {"message": translations.gettext("Все сетевые данные успешно очищены")} - else: - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось очистить все сетевые данные")) - except Exception as e: - logger.error(f"Error clearing all data: {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка очистки: {error}").format(error=str(e))) - -WIFI_PATH = "storage/wifi/wifi.json" - -@router.post("/export_devices", response_class=FileResponse) -async def export_devices(request: SubnetScanRequest = Body(...), translations: Translations = Depends(get_translations)): - """ - Экспортирует файл с данными устройств в формате JSON для указанной подсети. - - Args: - request (SubnetScanRequest): Объект с полем subnet в формате CIDR. - translations: Объект переводов для текущего языка. - - Returns: - FileResponse: Файл .json для скачивания. - - Raises: - HTTPException: Если файл не найден (status_code=404). - """ - subnet = request.subnet - file_path = f"storage/subnets/{subnet.replace('/', '_')}.json" - if not os.path.exists(file_path): - logger.warning(f"Export file not found: {file_path}") - raise HTTPException(status_code=404, detail=translations.gettext("Файл для подсети {subnet} не найден").format(subnet=subnet)) - logger.info(f"Exporting file: {file_path}") - return FileResponse( - path=file_path, - filename=f"{subnet.replace('/', '_')}.json", - media_type="application/json" - ) - -@router.get("/export_wifi", response_class=FileResponse) -async def export_wifi(translations: Translations = Depends(get_translations)): - """ - Экспортирует файл с данными устройств в формате JSON. - - Args: - translations: Объект переводов для текущего языка. - - Returns: - FileResponse: Файл wifi.json для скачивания. - - Raises: - HTTPException: Если файл не найден (status_code=404). - """ - if not os.path.exists(WIFI_PATH): - logger.warning(f"Export file not found: {WIFI_PATH}") - raise HTTPException(status_code=404, detail=translations.gettext("Файл не найден")) - logger.info(f"Exporting file: {WIFI_PATH}") - return FileResponse( - path=WIFI_PATH, - filename="wifi.json", - media_type="application/json" - ) - -@router.post("/set_language") -def set_language(locale: str, response: Response, translations: Translations = Depends(get_translations)): - """ - Устанавливает куку locale для смены языка пользователя. - - Args: - locale (str): Используемый язык. - response (Response): Запрос. - translations: Объект переводов текущего языка. - - Returns: - dict: Сообщение об успешной установке языка. - """ - lc_messages_path = os.path.join(os.path.dirname(__file__), '..', '..', 'locales', locale, 'LC_MESSAGES') - if not os.path.isdir(lc_messages_path): - raise HTTPException( - status_code=400, - detail=translations.gettext("Язык '{locale}' не поддерживается.").format(locale=locale) - ) - has_mo_or_po = any(f.endswith('.mo') or f.endswith('.po') for f in os.listdir(lc_messages_path)) - if not has_mo_or_po: - raise HTTPException( - status_code=400, - detail=translations.gettext("Язык '{locale}' не поддерживается (нет файлов переводов).").format(locale=locale) - ) - response.set_cookie(key="locale", value=locale, path="/", httponly=True) - return {"message": translations.gettext("Язык успешно установлен: {locale}").format(locale=locale)} - -@router.get("/get_system_language") -async def get_system_language(request: Request, translations: Translations = Depends(get_translations)): - """Выводит текущий язык, установленный в системе на основе locale. - - Выполняет команду 'locale' в системе и извлекает параметры LANG - - Args: - request (Request): Объект запроса для доступа к параметрам. - translations: Объект переводов текущего языка. - - Returns: - dict: Словарь с текущим языком системы. - - Raises: - HTTPException: Если не удалось извлечь системный язык (status_code=500). - """ - try: - result = subprocess.run(['locale'], capture_output=True, text=True, check=True) - output = result.stdout - lang = next((line.split('=')[1].strip() for line in output.splitlines() if line.startswith('LANG=')), None) - if lang: - return {"language": lang} - else: - logger.warning(f"No locale found: {output}") - return {"language": 'unknown'} - except subprocess.CalledProcessError as e: - logger.error(f"Error executing locale command: {e}") - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось определить язык в системе")) - except Exception as e: - logger.error(f"Unexpected error getting system language: {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка при определении языка в системе {error}").format(error=str(e))) diff --git a/SRV/api/v1/subnet.py b/SRV/api/v1/subnet.py index 0116d2a..e500010 100644 --- a/SRV/api/v1/subnet.py +++ b/SRV/api/v1/subnet.py @@ -1,352 +1,159 @@ -from fastapi import APIRouter, HTTPException, Body, Depends -from models.subnet import SubnetScanResult, SubnetScanRequest +from fastapi import APIRouter, HTTPException +from typing import List, Dict +from models.subnet import SubnetScanResult from models.wifi import WifiScanResult from models.request import NoteRequest, WifiConnectRequest, WifiDisconnectRequest -from services.subnet_service import SubnetService, get_subnet_service +from services.subnet_service import SubnetService from services.wifi_service import WifiService from services.connect_service import WifiConnectionService -from utils.i18n import get_translations, _ -from babel.support import Translations -import logging router = APIRouter() -logging.basicConfig(level=logging.INFO) -logger = logging.getLogger(__name__) - -@router.post("/devices", response_model=SubnetScanResult) -def scan_subnet(request: SubnetScanRequest = Body(...), subnet_service: SubnetService = Depends(get_subnet_service), translations: Translations = Depends(get_translations)): - """Сканирует локальную подсеть и возвращает данные об устройствах. - - Выполняет сканирование указанной подсети для обнаружения активных устройств. - - Args: - request (SubnetScanRequest): Объект с полем subnet. - subnet_service: Сервис сканирования подсети. - translations: Объект переводов для текущего языка. - - Returns: - SubnetScanResult: Объект с результатами сканирования (устройства и их данные). - - Raises: - HTTPException: Если произошла ошибка сканирования (status_code=500). - """ +@router.get("/devices", response_model=SubnetScanResult) +def scan_subnet(subnet: str = "192.168.1.0/24", ports: List[int] = None): + """Сканирует локальную подсеть и возвращает данные об устройствах""" try: - # Если subnet пустая строка, определяем автоматически - subnet = request.subnet.strip() if request.subnet else None - logger.info(f"Requested subnet scan for: {subnet or 'auto-detected'}") - result = subnet_service.scan_subnet(subnet) - if not result.devices and result.error: - logger.warning(f"No devices found in subnet {subnet or 'auto-detected'}") + subnet_service = SubnetService() + result = subnet_service.scan_subnet(subnet, ports) return result except Exception as e: - logger.error(f"Error in scan_subnet: {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка сканирования подсети: {error}").format(error=str(e))) + raise HTTPException(status_code=500, detail=f"Ошибка сканирования: {str(e)}") @router.get("/wifi", response_model=WifiScanResult) -def scan_wifi(timeout: int = 30, translations: Translations = Depends(get_translations)): - """Сканирует Wi-Fi точки доступа и возвращает данные о них. - - Выполняет сканирование доступных Wi-Fi сетей с указанным таймаутом. - - Args: - timeout (int, optional): Таймаут сканирования в секундах. По умолчанию 30. - translations: Объект переводов для текущего языка. - - Returns: - WifiScanResult: Объект с результатами сканирования (список Wi-Fi сетей). - - Raises: - HTTPException: Если произошла ошибка сканирования Wi-Fi (status_code=500). - """ +def scan_wifi(timeout: int = 30): + """Сканирует Wi-Fi точки доступа и возвращает данные о них""" try: wifi_service = WifiService() result = wifi_service.scan_wifi(timeout=timeout) return result except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка сканирования Wi-Fi: {error}").format(error=str(e))) + raise HTTPException(status_code=500, detail=f"Ошибка сканирования Wi-Fi: {str(e)}") @router.post("/devices/{mac}/note") -def add_note(mac: str, request: NoteRequest, subnet_service: SubnetService = Depends(get_subnet_service), translations: Translations = Depends(get_translations)): - """Добавляет заметку для устройства по MAC-адресу. - - Привязывает заметку к устройству, идентифицируемому по MAC-адресу. - - Args: - mac (str): MAC-адрес устройства. - request (NoteRequest): Объект с полем "note" для текста заметки. - subnet_service: Сервис сканирования подсети. - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешном добавлении заметки. - - Raises: - HTTPException: Если устройство не найдено (status_code=404), заметка уже - существует (status_code=400), или произошла внутренняя ошибка (status_code=500). - """ +def add_note(mac: str, request: NoteRequest): + """Добавляет заметку для устройства по MAC-адресу""" try: - success, result = subnet_service.add_note(mac, request.note, translations) + subnet_service = SubnetService() + success, error_message = subnet_service.add_note(mac, request.note) if not success: - if result[0] == "not_found": - raise HTTPException(status_code=404, detail=translations.gettext("Устройство с MAC {mac} не найдено").format(mac=mac)) - elif result[0] == "note_exists": - raise HTTPException(status_code=400, detail=translations.gettext("Заметка для устройства с MAC {mac} уже существует").format(mac=mac)) - else: - raise HTTPException(status_code=500, detail=translations.gettext("Внутренняя ошибка сервера: {error}").format(error=result[1]["error"])) - return {"message": translations.gettext("Заметка '{note}' добавлена для устройства {mac}").format(note=request.note, mac=mac)} + if "не найдено" in error_message: + raise HTTPException(status_code=404, detail=error_message) + elif "уже существует" in error_message: + raise HTTPException(status_code=400, detail=error_message) + return {"message": f"Заметка '{request.note}' добавлена для устройства {mac}"} except HTTPException as e: raise e except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка добавления заметки: {error}").format(error=str(e))) + raise HTTPException(status_code=500, detail=f"Ошибка добавления заметки: {str(e)}") @router.put("/devices/{mac}/note") -def update_note(mac: str, request: NoteRequest, subnet_service: SubnetService = Depends(get_subnet_service), translations: Translations = Depends(get_translations)): - """Обновляет заметку для устройства по MAC-адресу. - - Изменяет существующую заметку, привязанную к устройству. - - Args: - mac (str): MAC-адрес устройства. - request (NoteRequest): Объект с полем "note" для нового текста заметки. - subnet_service: Сервис сканирования подсети. - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешном обновлении заметки. - - Raises: - HTTPException: Если устройство не найдено (status_code=404), заметка не - существует (status_code=400), или произошла внутренняя ошибка (status_code=500). - """ +def update_note(mac: str, request: NoteRequest): + """Обновляет заметку для устройства по MAC-адресу""" try: - success, result = subnet_service.update_note(mac, request.note, translations) + subnet_service = SubnetService() + success, error_message = subnet_service.update_note(mac, request.note) if not success: - if result[0] == "not_found": - raise HTTPException(status_code=404, detail=translations.gettext("Устройство с MAC {mac} не найдено").format(mac=mac)) - elif result[0] == "note_not_exists": - raise HTTPException(status_code=400, detail=translations.gettext("Заметка для устройства с MAC {mac} не существует").format(mac=mac)) - else: - raise HTTPException(status_code=500, detail=translations.gettext("Внутренняя ошибка сервера: {error}").format(error=result[1]["error"])) - return {"message": translations.gettext("Заметка '{note}' обновлена для устройства {mac}").format(note=request.note, mac=mac)} + if "не найдено" in error_message: + raise HTTPException(status_code=404, detail=error_message) + elif "не существует" in error_message: + raise HTTPException(status_code=400, detail=error_message) + return {"message": f"Заметка '{request.note}' обновлена для устройства {mac}"} except HTTPException as e: raise e except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка обновления заметки: {error}").format(error=str(e))) + raise HTTPException(status_code=500, detail=f"Ошибка обновления заметки: {str(e)}") @router.delete("/devices/{mac}/note") -def delete_note(mac: str, subnet_service: SubnetService = Depends(get_subnet_service), translations: Translations = Depends(get_translations)): - """Удаляет заметку для устройства по MAC-адресу. - - Удаляет привязанную заметку для указанного устройства. - - Args: - mac (str): MAC-адрес устройства. - subnet_service: Сервис сканирования подсети. - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешном удалении заметки. - - Raises: - HTTPException: Если устройство не найдено (status_code=404), заметка не - существует (status_code=400), или произошла внутренняя ошибка (status_code=500). - """ +def delete_note(mac: str): + """Удаляет заметку для устройства по MAC-адресу""" try: - success, result = subnet_service.delete_note(mac, translations) + subnet_service = SubnetService() + success, error_message = subnet_service.delete_note(mac) if not success: - if result[0] == "not_found": - raise HTTPException(status_code=404, detail=translations.gettext("Устройство с MAC {mac} не найдено").format(mac=mac)) - elif result[0] == "note_not_exists": - raise HTTPException(status_code=400, detail=translations.gettext("Заметка для устройства с MAC {mac} не существует").format(mac=mac)) - else: - raise HTTPException(status_code=500, detail=translations.gettext("Внутренняя ошибка сервера: {error}").format(error=result[1]["error"])) - return {"message": translations.gettext("Заметка удалена для устройства {mac}").format(mac=mac)} + if "не найдено" in error_message: + raise HTTPException(status_code=404, detail=error_message) + elif "не существует" in error_message: + raise HTTPException(status_code=400, detail=error_message) + return {"message": f"Заметка удалена для устройства {mac}"} except HTTPException as e: raise e except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка удаления заметки: {error}").format(error=str(e))) + raise HTTPException(status_code=500, detail=f"Ошибка удаления заметки: {str(e)}") @router.post("/wifi/{ssid}/note") -def add_wifi_note(ssid: str, request: NoteRequest, translations: Translations = Depends(get_translations)): - """Добавляет заметку для сети Wi-Fi по SSID. - - Привязывает заметку к Wi-Fi сети, идентифицируемой по SSID. - - Args: - ssid (str): Идентификатор Wi-Fi сети. - request (NoteRequest): Объект с полем "note" для текста заметки. - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешном добавлении заметки. - - Raises: - HTTPException: Если сеть не найдена (status_code=404), заметка уже - существует (status_code=400), или произошла внутренняя ошибка (status_code=500). - """ +def add_wifi_note(ssid: str, request: NoteRequest): + """Добавляет заметку для сети Wi-Fi по SSID""" try: wifi_service = WifiService() - success, result = wifi_service.add_note(ssid, request.note) + success, error_message = wifi_service.add_note(ssid, request.note) if not success: - if result[0] == "not_found": - raise HTTPException(status_code=404, detail=translations.gettext("Сеть с SSID {ssid} не найдена").format(ssid=ssid)) - elif result[0] == "note_exists": - raise HTTPException(status_code=400, detail=translations.gettext("Заметка для сети с SSID {ssid} уже существует").format(ssid=ssid)) - else: - raise HTTPException(status_code=500, detail=translations.gettext("Внутренняя ошибка сервера: {error}").format(error=result[1]["error"])) - return {"message": translations.gettext("Заметка '{note}' добавлена для сети с SSID {ssid}").format(note=request.note, ssid=ssid)} + if "не найдена" in error_message: + raise HTTPException(status_code=404, detail=error_message) + elif "уже существует" in error_message: + raise HTTPException(status_code=400, detail=error_message) + return {"message": f"Заметка '{request.note}' добавлена для сети с SSID {ssid}"} except HTTPException as e: raise e except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка добавления заметки: {error}").format(error=str(e))) + raise HTTPException(status_code=500, detail=f"Ошибка добавления заметки: {str(e)}") @router.put("/wifi/{ssid}/note") -def update_wifi_note(ssid: str, request: NoteRequest, translations: Translations = Depends(get_translations)): - """Обновляет заметку для сети Wi-Fi по SSID. - - Изменяет существующую заметку, привязанную к Wi-Fi сети. - - Args: - ssid (str): Идентификатор Wi-Fi сети. - request (NoteRequest): Объект с полем "note" для нового текста заметки. - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешном обновлении заметки. - - Raises: - HTTPException: Если сеть не найдена (status_code=404), заметка не - существует (status_code=400), или произошла внутренняя ошибка (status_code=500). - """ +def update_wifi_note(ssid: str, request: NoteRequest): + """Обновляет заметку для сети Wi-Fi по SSID""" try: wifi_service = WifiService() - success, result = wifi_service.update_note(ssid, request.note) + success, error_message = wifi_service.update_note(ssid, request.note) if not success: - if result[0] == "not_found": - raise HTTPException(status_code=404, detail=translations.gettext("Сеть с SSID {ssid} не найдена").format(ssid=ssid)) - elif result[0] == "note_not_exists": - raise HTTPException(status_code=400, detail=translations.gettext("Заметка для сети с SSID {ssid} не существует").format(ssid=ssid)) - else: - raise HTTPException(status_code=500, detail=translations.gettext("Внутренняя ошибка сервера: {error}").format(error=result[1]["error"])) - return {"message": translations.gettext("Заметка '{note}' обновлена для сети с SSID {ssid}").format(note=request.note, ssid=ssid)} + if "не найдена" in error_message: + raise HTTPException(status_code=404, detail=error_message) + elif "не существует" in error_message: + raise HTTPException(status_code=400, detail=error_message) + return {"message": f"Заметка '{request.note}' обновлена для сети с SSID {ssid}"} except HTTPException as e: raise e except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка обновления заметки: {error}").format(error=str(e))) + raise HTTPException(status_code=500, detail=f"Ошибка обновления заметки: {str(e)}") @router.delete("/wifi/{ssid}/note") -def delete_wifi_note(ssid: str, translations: Translations = Depends(get_translations)): - """Удаляет заметку для сети Wi-Fi по SSID. - - Удаляет привязанную заметку для указанной Wi-Fi сети. - - Args: - ssid (str): Идентификатор Wi-Fi сети. - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешном удалении заметки. - - Raises: - HTTPException: Если сеть не найдена (status_code=404), заметка не - существует (status_code=400), или произошла внутренняя ошибка (status_code=500). - """ +def delete_wifi_note(ssid: str): + """Удаляет заметку для сети Wi-Fi по SSID""" try: wifi_service = WifiService() - success, result = wifi_service.delete_note(ssid) + success, error_message = wifi_service.delete_note(ssid) if not success: - if result[0] == "not_found": - raise HTTPException(status_code=404, detail=translations.gettext("Сеть с SSID {ssid} не найдена").format(ssid=ssid)) - elif result[0] == "note_not_exists": - raise HTTPException(status_code=400, detail=translations.gettext("Заметка для сети с SSID {ssid} не существует").format(ssid=ssid)) - else: - raise HTTPException(status_code=500, detail=translations.gettext("Внутренняя ошибка сервера: {error}").format(error=result[1]["error"])) - return {"message": translations.gettext("Заметка удалена для сети с SSID {ssid}").format(ssid=ssid)} + if "не найдена" in error_message: + raise HTTPException(status_code=404, detail=error_message) + elif "не существует" in error_message: + raise HTTPException(status_code=400, detail=error_message) + return {"message": f"Заметка удалена для сети с SSID {ssid}"} except HTTPException as e: raise e except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка удаления заметки: {error}").format(error=str(e))) + raise HTTPException(status_code=500, detail=f"Ошибка удаления заметки: {str(e)}") @router.post("/wifi/connect") -def connect_to_wifi(request: WifiConnectRequest, translations: Translations = Depends(get_translations)): - """Подключается к Wi-Fi сети по SSID и паролю. - - Выполняет подключение к указанной Wi-Fi сети с использованием предоставленных - учетных данных. - - Args: - request (WifiConnectRequest): Объект с полями "ssid" и "password". - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешном подключении. - - Raises: - HTTPException: Если подключение не удалось (status_code=400). - """ - try: - wifi_service = WifiConnectionService(translations) - success, message = wifi_service.connect(request.ssid, request.password) - if not success: - raise HTTPException(status_code=400, detail=translations.gettext(message)) - return {"message": translations.gettext("Успешно подключено к {ssid}").format(ssid=request.ssid)} - except HTTPException as e: - raise e - except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка подключения к Wi-Fi: {error}").format(error=str(e))) +def connect_to_wifi(request: WifiConnectRequest): + """Подключается к Wi-Fi сети по SSID и паролю.""" + wifi_service = WifiConnectionService() + success, message = wifi_service.connect(request.ssid, request.password) + if not success: + raise HTTPException(status_code=400, detail=message) + return {"message": f"Успешно подключено к {request.ssid}"} @router.post("/wifi/disconnect") -def disconnect_from_wifi(request: WifiDisconnectRequest, translations: Translations = Depends(get_translations)): - """Отключается от Wi-Fi сети по указанному SSID. - - Выполняет отключение от указанной Wi-Fi сети. - - Args: - request (WifiDisconnectRequest): Объект с полем "ssid". - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешном отключении. - - Raises: - HTTPException: Если отключение не удалось (status_code=400). - """ - try: - wifi_service = WifiConnectionService(translations) - success, message = wifi_service.disconnect(request.ssid) - if not success: - raise HTTPException(status_code=400, detail=translations.gettext(message)) - return {"message": translations.gettext(message or "Успешно отключено от {ssid}").format(ssid=request.ssid)} - except HTTPException as e: - raise e - except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка отключения от Wi-Fi: {error}").format(error=str(e))) +def disconnect_from_wifi(request: WifiDisconnectRequest): + """Отключается от Wi-Fi сети по указанному SSID.""" + wifi_service = WifiConnectionService() + success, message = wifi_service.disconnect(request.ssid) + if not success: + raise HTTPException(status_code=400, detail=message) + return {"message": message or f"Успешно отключено от {request.ssid}"} @router.get("/wifi/status") -def get_wifi_status(translations: Translations = Depends(get_translations)): - """Проверяет статус текущего подключения к Wi-Fi. - - Возвращает информацию о текущем состоянии подключения и SSID, если подключение активно. - - Args: - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с ключами: - - "status" (str): Состояние ("connected" или другое). - - "ssid" (str, optional): SSID текущей сети, если подключено. - - Raises: - HTTPException: Если проверка статуса не удалась (status_code=400). - """ - try: - wifi_service = WifiConnectionService(translations) - success, message = wifi_service.get_status() - if not success: - raise HTTPException(status_code=400, detail=translations.gettext(message)) - return {"status": translations.gettext("connected"), "ssid": message} - except HTTPException as e: - raise e - except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка проверки статуса Wi-Fi: {error}").format(error=str(e))) +def get_wifi_status(): + """Проверяет статус текущего подключения к Wi-Fi.""" + wifi_service = WifiConnectionService() + success, message = wifi_service.get_status() + if not success: + raise HTTPException(status_code=400, detail=message) + return {"status": "connected", "ssid": message} \ No newline at end of file diff --git a/SRV/api/v1/ufw.py b/SRV/api/v1/ufw.py index 06176af..067ca9e 100644 --- a/SRV/api/v1/ufw.py +++ b/SRV/api/v1/ufw.py @@ -9,29 +9,14 @@ router = APIRouter() class RuleNumbers(BaseModel): - """Модель запроса на удаление UFW правил. - - Атрибуты: - - - ``numbers`` (List[int]): Список номеров правил для удаления. - """ numbers: List[int] = Field( ..., description="Список номеров правил для удаления") @router.get("/rules", response_model=UFWRulesResponse) async def get_ufw_rules(): - """Возвращает все правила UFW. - - Осуществляет обращение к сервису `UFWService` для чтения текущего списка - правил брандмауэра и возвращает результат в сериализованном виде для клиента. - - Returns: - UFWRulesResponse: Структура с коллекцией правил и сопутствующей - информацией о состоянии. - - Raises: - HTTPException: В случае ошибок взаимодействия с UFW (status_code=500). + """ + Получает все правила UFW с помощью сервиса UFWService и возвращает их в формате JSON. """ ufw_service = UFWService() try: @@ -42,13 +27,8 @@ async def get_ufw_rules(): @router.get("/status", response_model=UFWStatus) async def get_ufw_status(): - """Возвращает текущий статус UFW. - - Returns: - UFWStatus: Объект со сведениями о включенности UFW и деталями статуса. - - Raises: - HTTPException: Если не удалось получить статус (status_code=500). + """ + Получает текущий статус UFW. """ ufw_service = UFWService() try: @@ -59,13 +39,8 @@ async def get_ufw_status(): @router.post("/enable") async def enable_ufw(): - """Включает UFW. - - Returns: - dict: Словарь с ключами `status` и `message` при успешном выполнении. - - Raises: - HTTPException: Если включение завершилось неуспешно (status_code=500). + """ + Включает UFW. """ ufw_service = UFWService() try: @@ -81,13 +56,8 @@ async def enable_ufw(): @router.post("/disable") async def disable_ufw(): - """Выключает UFW. - - Returns: - dict: Словарь с ключами `status` и `message` при успешном выполнении. - - Raises: - HTTPException: Если выключение завершилось неуспешно (status_code=500). + """ + Выключает UFW. """ ufw_service = UFWService() try: @@ -103,19 +73,8 @@ async def disable_ufw(): @router.post("/rules/in") async def add_ufw_in_rules(rules: List[UFWRule]): - """Добавляет входящие (in) правила UFW. - - Args: - rules (List[UFWRule]): Список правил, определяющих направления, - порты/диапазоны/протоколы и действия (allow/deny/reject). - - Returns: - dict: Итог выполнения с количеством успешно добавленных правил и деталями - по каждому правилу. - - Raises: - HTTPException: Если UFW отключен (status_code=400) или при внутренних - ошибках (status_code=500). + """ + Добавляет входящие (in) правила UFW. """ ufw_service = UFWService() try: @@ -149,17 +108,8 @@ async def add_ufw_in_rules(rules: List[UFWRule]): @router.post("/rules/out") async def add_ufw_out_rules(rules: List[UFWRule]): - """Добавляет исходящие (out) правила UFW. - - Args: - rules (List[UFWRule]): Список правил исходящего трафика для добавления. - - Returns: - dict: Объект статуса с сообщением об успешном добавлении. - - Raises: - HTTPException: Если UFW отключен (status_code=400) или при внутренних - ошибках (status_code=500). + """ + Добавляет исходящие (out) правила UFW. """ ufw_service = UFWService() try: @@ -187,18 +137,8 @@ async def add_ufw_out_rules(rules: List[UFWRule]): @router.delete("/rules") async def delete_ufw_rules(rule_numbers: RuleNumbers): - """Удаляет правила UFW по их номерам. - - Args: - rule_numbers (RuleNumbers): Номера правил, подлежащих удалению (как в - выводе `ufw status numbered`). - - Returns: - dict: Информация об общем количестве удаляемых правил, числе успешных и - возможной ошибке. - - Raises: - HTTPException: При ошибках удаления (status_code=500). + """ + Удаляет правила UFW по их номерам. """ ufw_service = UFWService() try: diff --git a/SRV/api/v1/websocket.py b/SRV/api/v1/websocket.py index d122645..8001103 100644 --- a/SRV/api/v1/websocket.py +++ b/SRV/api/v1/websocket.py @@ -2,10 +2,8 @@ import asyncio import logging from typing import Set -from fastapi import APIRouter, WebSocket, WebSocketDisconnect, Depends +from fastapi import APIRouter, WebSocket, WebSocketDisconnect from starlette.websockets import WebSocketState -from utils.i18n import get_translations_ws, _, _load_translations -from babel.support import Translations from .network import update_container_position, get_network_data @@ -14,57 +12,27 @@ router = APIRouter() logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) -class WebSocketManager: - """Класс для управления подключениями к WebSocket-серверу. - Обрабатывает подключение, отключение и трансляцию сообщений для клиентов, - подключённых через WebSocket. +class WebSocketManager: + """ + Класс для управления подключениями к WebSocket-серверу """ def __init__(self): - """Инициализирует менеджер подключений к WebSocket-серверу. - - Создаёт пустое множество для хранения активных соединений. - """ + """Инициализация менеджера подключений к WebSocket-серверу""" self.active_connections: Set[WebSocket] = set() async def connect(self, websocket: WebSocket): - """Подключает клиента к WebSocket-серверу. - - Принимает подключение и добавляет WebSocket в список активных соединений. - - Args: - websocket (WebSocket): Объект WebSocket для подключения. - - Raises: - Exception: Если произошла ошибка при принятии подключения. - """ + """Подключение клиента к WebSocket-серверу""" await websocket.accept() self.active_connections.add(websocket) def disconnect(self, websocket: WebSocket): - """Отключает клиента от WebSocket-серверу. - - Удаляет WebSocket из списка активных соединений. - - Args: - websocket (WebSocket): Объект WebSocket для отключения. - """ + """Отключение клиента от WebSocket-серверу""" self.active_connections.remove(websocket) async def broadcast(self, message: dict): - """Транслирует сообщения всем подключённым клиентам. - - Отправляет JSON-данные всем активным соединениям, обрабатывая - отключения клиентов. - - Args: - message (dict): Сообщение для трансляции в формате JSON. - - Raises: - WebSocketDisconnect: Если клиент неожиданно отключился. - Exception: Если произошла другая ошибка при отправке. - """ + """Трансляция сообщений всем подключенным клиентам""" for connection in list(self.active_connections): try: if connection.client_state == WebSocketState.CONNECTED: @@ -72,83 +40,60 @@ class WebSocketManager: except WebSocketDisconnect: self.disconnect(connection) except Exception as e: - logger.error(f"Broadcast error: {e}") + logger.error(f"Сообщение об ошибке трансляции: {e}") self.disconnect(connection) + manager = WebSocketManager() + @router.websocket("/api/v1") -async def websocket_endpoint(websocket: WebSocket, translations: Translations = Depends(get_translations_ws)): - """Обработчик WebSocket-соединения. - - Управляет соединением клиента, принимает данные для обновления позиций - контейнеров и транслирует сетевые данные. - - Args: - websocket (WebSocket): Объект WebSocket для обработки соединения. - translations: Объект переводов для текущего языка. - - Raises: - WebSocketDisconnect: Если клиент отключился. - Exception: Если произошла ошибка при обработке данных. - """ +async def websocket_endpoint(websocket: WebSocket): + """Обработчик WebSocket-соединения""" await manager.connect(websocket) try: while True: data = await websocket.receive_json() - logger.info(f"Received data: {data}") + logger.info(f"Полученные данные: {data}") - if all(key in data for key in ["container_id", "container_x", "container_y"]): - await update_container_position(data, translations=translations) + if all(key in data + for key in ["container_id", "container_x", "container_y"]): + await update_container_position(data) - # Для внутреннего вызова используем переводы из WebSocket зависимостии - network_data = await get_network_data(translations=translations) - logger.info(f"Current network data: {network_data}") + network_data = await get_network_data() + logger.info(f"Текущие сетевые данные: {network_data}") await manager.broadcast(network_data) await asyncio.sleep(2) except WebSocketDisconnect: - logger.info("Client disconnected") + logger.info("Клиент отключен") except Exception as e: - logger.error(f"Error in websocket_endpoint: {e}") + logger.error(f"Ошибка в websocket_endpoint:{e}") finally: manager.disconnect(websocket) if websocket.client_state != WebSocketState.DISCONNECTED: await websocket.close() + @router.on_event("startup") async def startup_event(): - """Запуск таска для трансляции сетевых данных при старте приложения. - - Создаёт асинхронную задачу для периодической трансляции данных. - - Raises: - Exception: Если произошла ошибка при запуске таска. - """ + """Запуск таска для трансляции сетевых данных""" asyncio.create_task(broadcast_data()) -async def broadcast_data(translations: Translations = None): - """Таск для периодической трансляции сетевых данных. - Выполняет сканирование сети и отправляет данные всем подключённым клиентам - с интервалом в 2 секунды. - - Args: - translations: Объект переводов для текущего языка. - - Raises: - Exception: Если произошла ошибка при получении данных или трансляции. - """ - translations = translations or _load_translations("ru") +async def broadcast_data(): + """Таск для трансляции сетевых данных""" while True: try: - network_data = await get_network_data(translations=translations) + network_data = await get_network_data() if "activation" not in network_data: - logger.error(translations.gettext("Ошибка: Ключ 'activation' отсутствует в полученных данных сети")) + logger.error( + "Ошибка: Ключ 'activation' отсутствует в полученных данных сети" + ) await asyncio.sleep(2) continue await manager.broadcast(network_data) except Exception as e: - logger.error(f"Error in broadcast_data: {e}") + logger.error(f"Ошибка в broadcast_data:{e}") await asyncio.sleep(2) diff --git a/SRV/babel.cfg b/SRV/babel.cfg deleted file mode 100644 index 6a7d140..0000000 --- a/SRV/babel.cfg +++ /dev/null @@ -1,3 +0,0 @@ -[python: **.py] -encoding = utf-8 -extract_messages = _ diff --git a/SRV/config/cors.py b/SRV/config/cors.py index cb06f19..46a11a7 100644 --- a/SRV/config/cors.py +++ b/SRV/config/cors.py @@ -1,20 +1,3 @@ -""" -Конфигурация CORS для FastAPI-приложения GONETS. - -Модуль инкапсулирует добавление middleware `CORSMiddleware` со списком -разрешённых источников (origins), характерных для локальной разработки и -типовых портов фронтенда (например, Vite/React на 5173/5174, dev-серверы). - -Использование: - cors_config = CORSMiddlewareConfig(app) - cors_config.add_cors_middleware() - -Поведение: - - Разрешены все методы (`allow_methods=["*"]`) и заголовки (`allow_headers=["*"]`). - - Разрешены креденшлы (`allow_credentials=True`) для работы с куками (локаль и др.). - - При необходимости список `origins` можно расширить или параметризовать - на основе конфигурационного файла окружения. -""" from fastapi import FastAPI from starlette.middleware.cors import CORSMiddleware diff --git a/SRV/config/init_config.py b/SRV/config/init_config.py index 647c7d2..3a54adb 100644 --- a/SRV/config/init_config.py +++ b/SRV/config/init_config.py @@ -1,3 +1,4 @@ +# init_config.py import configparser import os import secrets @@ -8,18 +9,7 @@ logger = logging.getLogger(__name__) def init_config(): - """ - Инициализация конфигурации приложения (JWT SECRET_KEY). - - Назначение: - - Создаёт файл `/etc/gonets/config.ini` с секцией `[JWT]` и случайным - `secret_key`, если он отсутствует. Устанавливает права `0o600`. - - Замечания: - - Функция предназначена для однократного запуска (в инсталляторе/скрипте - подготовки окружения) и безопасно пропускает работу, если файл уже существует. - """ - """Создаёт конфигурационный файл с SECRET_KEY.""" + """Создаёт конфигурационный файл с SECRET_KEY""" config_path = "/etc/gonets/config.ini" config_dir = os.path.dirname(config_path) @@ -44,6 +34,6 @@ def init_config(): ) raise -# Нативный запуск для тестов + if __name__ == "__main__": init_config() diff --git a/SRV/config/ports.py b/SRV/config/ports.py index 7110383..1e41272 100644 --- a/SRV/config/ports.py +++ b/SRV/config/ports.py @@ -2,13 +2,7 @@ from typing import Dict, List class PortConfig: - """Конфигурация известных портов для сетевого анализа. - - Назначение: - Предоставляет сопоставление распространённых портов с человекочитаемыми - названиями сервисов для отображения в UI и логах. Поддерживает расширение - пользовательским словарём. - """ + """Конфигурация портов для сетевого сканирования.""" _DEFAULT_PORTS: Dict[int, str] = { 20: "FTP (Data)", diff --git a/SRV/core/cli_executor.py b/SRV/core/cli_executor.py index 19d10a1..a6f9332 100644 --- a/SRV/core/cli_executor.py +++ b/SRV/core/cli_executor.py @@ -3,11 +3,8 @@ from typing import Tuple class CLIExecutor: - """Утилита для безопасного выполнения CLI-команд. - - Назначение: - Инкапсулирует вызов `subprocess.run` и приводит результат к удобному - кортежу (код возврата, stdout) без генерации исключений при ошибках. + """ + Класс для выполнения CLI-команд """ @staticmethod diff --git a/SRV/docs/_build/.sphinx_tmp/config.ini b/SRV/docs/_build/.sphinx_tmp/config.ini deleted file mode 100644 index 1a159a0..0000000 --- a/SRV/docs/_build/.sphinx_tmp/config.ini +++ /dev/null @@ -1,2 +0,0 @@ -[JWT] -secret_key = sphinx-docs-secret diff --git a/SRV/docs/_build/.sphinx_tmp/sessions.json b/SRV/docs/_build/.sphinx_tmp/sessions.json deleted file mode 100644 index c00ff1a..0000000 --- a/SRV/docs/_build/.sphinx_tmp/sessions.json +++ /dev/null @@ -1 +0,0 @@ -{"sessions": {}} \ No newline at end of file diff --git a/SRV/docs/_build/.sphinx_tmp/users.json b/SRV/docs/_build/.sphinx_tmp/users.json deleted file mode 100644 index a045601..0000000 --- a/SRV/docs/_build/.sphinx_tmp/users.json +++ /dev/null @@ -1 +0,0 @@ -{"users": [], "next_id": 1} \ No newline at end of file diff --git a/SRV/docs/_build/html/.buildinfo b/SRV/docs/_build/html/.buildinfo deleted file mode 100644 index e5b0f18..0000000 --- a/SRV/docs/_build/html/.buildinfo +++ /dev/null @@ -1,4 +0,0 @@ -# Sphinx build info version 1 -# This file records the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 0de2fdeef2a39cc42113efadfd5a855d -tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/SRV/docs/_build/html/.doctrees/api/config.doctree b/SRV/docs/_build/html/.doctrees/api/config.doctree deleted file mode 100644 index f1718f8..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/config.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/config/cors.doctree b/SRV/docs/_build/html/.doctrees/api/config/cors.doctree deleted file mode 100644 index adbc8a8..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/config/cors.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/config/init_config.doctree b/SRV/docs/_build/html/.doctrees/api/config/init_config.doctree deleted file mode 100644 index 5fc3e7b..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/config/init_config.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/config/ports.doctree b/SRV/docs/_build/html/.doctrees/api/config/ports.doctree deleted file mode 100644 index 2c9ca03..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/config/ports.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/core.doctree b/SRV/docs/_build/html/.doctrees/api/core.doctree deleted file mode 100644 index 7d26919..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/core.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/core/cli_executor.doctree b/SRV/docs/_build/html/.doctrees/api/core/cli_executor.doctree deleted file mode 100644 index 63fadc9..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/core/cli_executor.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/endpoints.doctree b/SRV/docs/_build/html/.doctrees/api/endpoints.doctree deleted file mode 100644 index 61c2e61..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/endpoints.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/endpoints/auth.doctree b/SRV/docs/_build/html/.doctrees/api/endpoints/auth.doctree deleted file mode 100644 index 058369f..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/endpoints/auth.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/endpoints/ip.doctree b/SRV/docs/_build/html/.doctrees/api/endpoints/ip.doctree deleted file mode 100644 index eb55312..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/endpoints/ip.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/endpoints/network.doctree b/SRV/docs/_build/html/.doctrees/api/endpoints/network.doctree deleted file mode 100644 index b0b711d..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/endpoints/network.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/endpoints/settings.doctree b/SRV/docs/_build/html/.doctrees/api/endpoints/settings.doctree deleted file mode 100644 index 568530a..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/endpoints/settings.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/endpoints/subnet.doctree b/SRV/docs/_build/html/.doctrees/api/endpoints/subnet.doctree deleted file mode 100644 index 5de4fd5..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/endpoints/subnet.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/endpoints/ufw.doctree b/SRV/docs/_build/html/.doctrees/api/endpoints/ufw.doctree deleted file mode 100644 index 72e0601..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/endpoints/ufw.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/endpoints/websocket.doctree b/SRV/docs/_build/html/.doctrees/api/endpoints/websocket.doctree deleted file mode 100644 index a9e651a..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/endpoints/websocket.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/models.doctree b/SRV/docs/_build/html/.doctrees/api/models.doctree deleted file mode 100644 index 8b7a591..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/models.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/models/auth.doctree b/SRV/docs/_build/html/.doctrees/api/models/auth.doctree deleted file mode 100644 index 95449bf..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/models/auth.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/models/network.doctree b/SRV/docs/_build/html/.doctrees/api/models/network.doctree deleted file mode 100644 index 68d0891..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/models/network.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/models/request.doctree b/SRV/docs/_build/html/.doctrees/api/models/request.doctree deleted file mode 100644 index b554977..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/models/request.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/models/subnet.doctree b/SRV/docs/_build/html/.doctrees/api/models/subnet.doctree deleted file mode 100644 index ef397d2..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/models/subnet.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/models/ufw.doctree b/SRV/docs/_build/html/.doctrees/api/models/ufw.doctree deleted file mode 100644 index ce999f4..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/models/ufw.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/models/wifi.doctree b/SRV/docs/_build/html/.doctrees/api/models/wifi.doctree deleted file mode 100644 index 4fcaf7e..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/models/wifi.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/services.doctree b/SRV/docs/_build/html/.doctrees/api/services.doctree deleted file mode 100644 index 05fe385..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/services.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/services/arp_service.doctree b/SRV/docs/_build/html/.doctrees/api/services/arp_service.doctree deleted file mode 100644 index 423411b..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/services/arp_service.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/services/auth_service.doctree b/SRV/docs/_build/html/.doctrees/api/services/auth_service.doctree deleted file mode 100644 index 3d69920..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/services/auth_service.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/services/connect_service.doctree b/SRV/docs/_build/html/.doctrees/api/services/connect_service.doctree deleted file mode 100644 index e4eb4e2..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/services/connect_service.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/services/firewalld_service.doctree b/SRV/docs/_build/html/.doctrees/api/services/firewalld_service.doctree deleted file mode 100644 index 772c341..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/services/firewalld_service.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/services/ip_service.doctree b/SRV/docs/_build/html/.doctrees/api/services/ip_service.doctree deleted file mode 100644 index 84882fe..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/services/ip_service.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/services/network_service.doctree b/SRV/docs/_build/html/.doctrees/api/services/network_service.doctree deleted file mode 100644 index b3d4bfd..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/services/network_service.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/services/settings_service.doctree b/SRV/docs/_build/html/.doctrees/api/services/settings_service.doctree deleted file mode 100644 index e71df78..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/services/settings_service.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/services/subnet_service.doctree b/SRV/docs/_build/html/.doctrees/api/services/subnet_service.doctree deleted file mode 100644 index 66a0b81..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/services/subnet_service.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/services/ufw_service.doctree b/SRV/docs/_build/html/.doctrees/api/services/ufw_service.doctree deleted file mode 100644 index eff61ba..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/services/ufw_service.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/services/wifi_service.doctree b/SRV/docs/_build/html/.doctrees/api/services/wifi_service.doctree deleted file mode 100644 index f3dacae..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/services/wifi_service.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/storage.doctree b/SRV/docs/_build/html/.doctrees/api/storage.doctree deleted file mode 100644 index 6612d61..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/storage.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/storage/json_storage.doctree b/SRV/docs/_build/html/.doctrees/api/storage/json_storage.doctree deleted file mode 100644 index 9155e6d..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/storage/json_storage.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/storage/session_storage.doctree b/SRV/docs/_build/html/.doctrees/api/storage/session_storage.doctree deleted file mode 100644 index 811b851..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/storage/session_storage.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/utils.doctree b/SRV/docs/_build/html/.doctrees/api/utils.doctree deleted file mode 100644 index 8b267dc..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/utils.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/api/utils/i18n.doctree b/SRV/docs/_build/html/.doctrees/api/utils/i18n.doctree deleted file mode 100644 index 4960a5b..0000000 Binary files a/SRV/docs/_build/html/.doctrees/api/utils/i18n.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/environment.pickle b/SRV/docs/_build/html/.doctrees/environment.pickle deleted file mode 100644 index e069267..0000000 Binary files a/SRV/docs/_build/html/.doctrees/environment.pickle and /dev/null differ diff --git a/SRV/docs/_build/html/.doctrees/index.doctree b/SRV/docs/_build/html/.doctrees/index.doctree deleted file mode 100644 index f79457a..0000000 Binary files a/SRV/docs/_build/html/.doctrees/index.doctree and /dev/null differ diff --git a/SRV/docs/_build/html/_modules/api/v1/auth.html b/SRV/docs/_build/html/_modules/api/v1/auth.html deleted file mode 100644 index e765d5a..0000000 --- a/SRV/docs/_build/html/_modules/api/v1/auth.html +++ /dev/null @@ -1,513 +0,0 @@ - - - - - - - - api.v1.auth - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for api.v1.auth

    -from fastapi import APIRouter, Depends, HTTPException, Request
    -from fastapi.security import OAuth2PasswordBearer
    -from services.auth_service import AuthService
    -from models.auth import UserCreate, UserLogin, UserResponse, Token
    -from storage.json_storage import JsonStorage
    -from utils.i18n import get_translations, _
    -from babel.support import Translations
    -import logging
    -import os
    -
    -logging.basicConfig(level=logging.INFO)
    -logger = logging.getLogger(__name__)
    -
    -router = APIRouter()
    -auth_service = AuthService()
    -oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/auth/login")
    -
    -
    -[docs] -@router.post("/register", response_model=UserResponse) -async def register(user: UserCreate, translations: Translations = Depends(get_translations())): - """Регистрирует нового пользователя. - - Создаёт нового пользователя на основе предоставленных данных и возвращает - информацию о зарегистрированном пользователе. - - Args: - user (UserCreate): Объект с данными нового пользователя (username, password, is_admin). - translations: Объект переводов для текущего языка. - - Returns: - UserResponse: Объект с данными зарегистрированного пользователя (id, username, is_admin). - - Raises: - HTTPException: Если пользователь уже существует (status_code=400) или произошла - внутренняя ошибка (status_code=500). - """ - try: - db_user = auth_service.register(user) - logger.info(f"Пользователь {user.username} успешно зарегистрирован") - return db_user - except HTTPException as e: - raise e - except Exception as e: - logger.error(f"Error in register: {type(e).__name__} - {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось зарегистрировать пользователя"))
    - - -
    -[docs] -@router.post("/login", response_model=Token) -async def login(user: UserLogin, request: Request, translations: Translations = Depends(get_translations())): - """Авторизует пользователя и создаёт сессию. - - Проверяет учетные данные пользователя и возвращает токен и session_id для - последующей авторизации. - - Args: - user (UserLogin): Объект с данными для входа (username, password). - request (Request): Объект запроса для получения client_id (IP-адрес клиента). - translations: Объект переводов для текущего языка. - - Returns: - Token: Объект с access_token и session_id для авторизации. - - Raises: - HTTPException: Если учетные данные неверны (status_code=401) или произошла - внутренняя ошибка (status_code=500). - """ - try: - client_id = request.client.host - logger.debug(f"Попытка входа в систему клиента {client_id}") - result = auth_service.login(user, client_id) - logger.info(f"Успешная авторизация для клиента {client_id}, Идентификатор сессии: {result['session_id']}") - return result - except HTTPException as e: - raise e - except Exception as e: - logger.error(f"Ошибка при авторизации: {type(e).__name__} - {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось авторизовать пользователя"))
    - - -
    -[docs] -@router.get("/me") -async def get_current_user(request: Request, translations: Translations = Depends(get_translations())): - """Возвращает данные текущего пользователя и токен. - - Проверяет активную сессию по client_id и возвращает информацию о пользователе - и токен для дальнейшего использования. - - Args: - request (Request): Объект запроса для получения client_id (IP-адрес клиента). - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с ключами "user" (UserResponse), "access_token" (str) и - "token_type" (str, всегда "bearer"). - - Raises: - HTTPException: Если сессия не найдена или истекла (status_code=401) или - произошла внутренняя ошибка (status_code=500). - """ - try: - client_id = request.client.host - logger.debug(f"Запрос /me для клиента {client_id}") - result = auth_service.get_user_by_session(client_id) - return { - "user": result["user"], - "access_token": result["access_token"], - "token_type": translations.gettext("bearer"), - } - except HTTPException as e: - raise e - except Exception as e: - logger.error(f"Ошибка при get_current_user: {type(e).__name__} - {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось получить данные пользователя"))
    - - -
    -[docs] -@router.get("/logout") -async def logout(request: Request, translations: Translations = Depends(get_translations())): - """Выход из системы, удаление сессии. - - Удаляет активную сессию пользователя по client_id. - - Args: - request (Request): Объект запроса для получения client_id (IP-адрес клиента). - translations: Объект переводов для текущего языка. - - Returns: - dict: Пустой словарь или сообщение об успешном выходе. - - Raises: - HTTPException: Если сессия не найдена (status_code=401) или произошла - внутренняя ошибка (status_code=500). - """ - try: - client_id = request.client.host - logger.debug(f"Запрос на выход из системы для клиента {client_id}") - return auth_service.logout(client_id) - except HTTPException as e: - raise e - except Exception as e: - logger.error(f"Не удалось выйти из системы: {type(e).__name__} - {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось выйти из системы"))
    - - -
    -[docs] -@router.get("/check_json") -async def check_users_file(translations: Translations = Depends(get_translations())): - """Проверяет, существует ли файл users.json и содержит ли он пользователей. - - Возвращает информацию о состоянии файла и наличии пользователей. - - Returns: - dict: Словарь с ключами: - - "exists" (bool): Существует ли файл. - - "has_users" (bool): Содержит ли файл пользователей. - - "message" (str): Сообщение с описанием результата. - - Raises: - HTTPException: Если произошла ошибка при проверке файла (status_code=500). - """ - try: - file_path = "/etc/gonets/users.json" - storage = JsonStorage(file_path=file_path) - - if not os.path.exists(file_path): - logger.info(f"Файл {file_path} не существует") - return { - "exists": False, - "has_users": False, - "message": translations.gettext("Файл users.json не существует"), - } - - data = storage._read_data() - has_users = len(data.get("users", [])) > 0 - if has_users: - logger.info(f"Файл {file_path} существует и содержит пользователей") - return { - "exists": True, - "has_users": True, - "message": translations.gettext("Файл users.json существует и содержит пользователей"), - } - else: - logger.info(f"Файл {file_path} существует, но не содержит пользователей") - return { - "exists": True, - "has_users": False, - "message": translations.gettext("Файл users.json существует, но не содержит пользователей"), - } - except Exception as e: - logger.error(f"Ошибка при проверке файла: {type(e).__name__} - {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка при проверке файла"))
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/api/v1/ip.html b/SRV/docs/_build/html/_modules/api/v1/ip.html deleted file mode 100644 index 4ca4a98..0000000 --- a/SRV/docs/_build/html/_modules/api/v1/ip.html +++ /dev/null @@ -1,435 +0,0 @@ - - - - - - - - api.v1.ip - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for api.v1.ip

    -from typing import Dict, Any
    -from fastapi import APIRouter, Body, HTTPException, Depends
    -from services.ip_service import IPService
    -from utils.i18n import get_translations
    -from babel.support import Translations
    -
    -router = APIRouter()
    -ip_service = IPService()
    -
    -
    -[docs] -@router.post("/check_ip") -async def check_ip_config(data: Dict[str, Any] = Body(...), translations: Translations = Depends(get_translations())): - """Проверяет доступность IP-адреса перед его применением. - - Выполняет ARP-сканирование для проверки, занят ли указанный IP-адрес, - и возвращает результат проверки. - - Args: - data (Dict[str, Any]): Словарь с данными конфигурации, включая - "ipv4_updates" с полем "ipv4.address-data" для нового IP-адреса. - translations: Объект переводов для текущего языка. - - Returns: - Dict[str, Any]: Словарь с ключами: - - "available" (bool): Доступен ли IP-адрес. - - "message" (str): Сообщение о результате проверки. - - Raises: - HTTPException: Если произошла внутренняя ошибка (status_code=500). - """ - try: - result = await ip_service.check_ip_config(data, translations) - return result - except Exception as e: - raise HTTPException( - status_code=500, - detail=translations.gettext("Ошибка проверки IP конфигурации: {error}").format(error=str(e)) - )
    - - -
    -[docs] -@router.post("/apply_ip") -async def apply_ip_config(data: Dict[str, Any] = Body(...), translations: Translations = Depends(get_translations())): - """Применяет проверенные IP-настройки к указанному сетевому профилю. - - Обновляет настройки соединения через NetworkManager, отключает и - переподключает устройство к сети. - - Args: - data (Dict[str, Any]): Словарь с данными конфигурации, включая - "connection_id" и "ipv4_updates" с обновлениями IP-настроек. - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с ключами: - - "success" (bool): Успешность операции. - - "message" (str): Сообщение об успешном применении настроек. - - Raises: - HTTPException: Если подключение не найдено (status_code=404) или - произошла внутренняя ошибка (status_code=500). - """ - try: - await ip_service.apply_ip_config(data, translations) - return { - "success": True, - "message": translations.gettext("Настройки сетевого профиля для {connection_id} применены").format( - connection_id=data["connection_id"] - ), - } - except ValueError as e: - raise HTTPException(status_code=404, detail=translations.gettext(str(e))) - except Exception as e: - raise HTTPException( - status_code=500, - detail=translations.gettext("Ошибка проверки IP конфигурации: {error}").format(error=str(e)) - )
    - - -
    -[docs] -@router.post("/save_ip") -async def save_ip_config(data: Dict[str, Any] = Body(...), translations: Translations = Depends(get_translations())): - """Применяет проверенные IP-настройки для отката сетевого профиля. - - Используется для сохранения и отката настроек сетевого профиля к предыдущему - состоянию через NetworkManager. - - Args: - data (Dict[str, Any]): Словарь с данными конфигурации, включая - "connection_id" и "ipv4_updates" с обновлениями IP-настроек. - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с ключами: - - "success" (bool): Успешность операции. - - "message" (str): Сообщение об успешном применении настроек. - - Raises: - HTTPException: Если подключение не найдено (status_code=404) или - произошла внутренняя ошибка (status_code=500). - """ - try: - await ip_service.apply_ip_config(data, translations) - return { - "success": True, - "message": translations.gettext("Настройки сетевого профиля для {connection_id} применены").format( - connection_id=data["connection_id"] - ), - } - except ValueError as e: - raise HTTPException(status_code=404, detail=translations.gettext(str(e))) - except Exception as e: - raise HTTPException( - status_code=500, - detail=translations.gettext("Ошибка проверки IP конфигурации: {error}").format(error=str(e)) - )
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/api/v1/network.html b/SRV/docs/_build/html/_modules/api/v1/network.html deleted file mode 100644 index a213c29..0000000 --- a/SRV/docs/_build/html/_modules/api/v1/network.html +++ /dev/null @@ -1,558 +0,0 @@ - - - - - - - - api.v1.network - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for api.v1.network

    -from fastapi import APIRouter, Body, HTTPException, Depends
    -import logging
    -from typing import Dict, Tuple, List, Union
    -from services.network_service import NetworkService
    -from models.network import (
    -    NetworkInterfacesContainer,
    -    Activation,
    -    Deactivation,
    -    NetworkInterface,
    -    WiFiDevice,
    -)
    -from utils.i18n import get_translations, _
    -from babel.support import Translations
    -
    -logging.basicConfig(level=logging.INFO)
    -logger = logging.getLogger(__name__)
    -
    -router = APIRouter()
    -network_service = NetworkService()
    -
    -
    -[docs] -class ContainerPositionManager: - """Класс для управления позициями и состоянием контейнеров. - - Хранит и обновляет координаты (x, y) и состояние (isOpen) для контейнеров - активации и деактивации. - """ - - def __init__(self): - """Инициализирует менеджер позиций контейнеров. - - Создаёт начальные позиции и состояния для контейнеров "activation" и - "deactivation" с координатами (0, 0) и закрытым состоянием (False). - """ - self.positions: Dict[str, Dict[str, Union[int, bool]]] = { - "activation": { - "x": 0, - "y": 0, - "isOpen": False - }, - "deactivation": { - "x": 0, - "y": 0, - "isOpen": False - }, - } - -
    -[docs] - def get_position_and_state(self, container_name: str, translations: Translations = Depends(get_translations())) -> Tuple[int, int, bool]: - """Получает текущие координаты и состояние указанного контейнера. - - Args: - container_name (str): Имя контейнера ("activation" или "deactivation"). - translations: Объект переводов для текущего языка. - - Returns: - Tuple[int, int, bool]: Кортеж с координатами (x, y) и состоянием (isOpen). - - Raises: - ValueError: Если указан неверный идентификатор контейнера. - """ - container = self.positions.get(container_name) - if not container: - raise ValueError(translations.gettext("Неверное имя контейнера: {container_name}").format(container_name=container_name)) - return container["x"], container["y"], container["isOpen"]
    - - -
    -[docs] - def update_position(self, container_id: int, x: int, y: int, isOpen: bool) -> None: - """Обновляет позицию и состояние контейнера по его идентификатору. - - Args: - container_id (int): Идентификатор контейнера (1 для "activation", 2 для "deactivation"). - x (int): Новая координата X. - y (int): Новая координата Y. - isOpen (bool): Новое состояние контейнера (открыт/закрыт). - - Raises: - ValueError: Если container_id не соответствует ни одному контейнеру. - """ - container_name = "activation" if container_id == 1 else "deactivation" - self.positions[container_name] = {"x": x, "y": y, "isOpen": isOpen}
    -
    - - -container_manager = ContainerPositionManager() - -
    -[docs] -async def get_network_data(translations: Translations = Depends(get_translations())) -> Dict[str, Dict]: - """Возвращает текущие сетевые данные в виде словаря. - - Получает данные о сетевых интерфейсах, разделяет их на активные и неактивные, - и возвращает их в формате Activation и Deactivation с учётом позиций и состояний - контейнеров. - - Args: - translations: Объект переводов для текущего языка. - - Returns: - Dict[str, Dict]: Словарь с ключами "activation" и "deactivation", содержащими - данные о соответствующих контейнерах. - - Raises: - HTTPException: Если произошла ошибка при получении данных (status_code=500). - """ - logger.debug("Calling get_network_data()") - try: - network_data = await network_service.get_network_interfaces_container() - - activation_interfaces, deactivation_interfaces = _split_interfaces(network_data.interfaces) - - activation_x, activation_y, activation_is_open = (container_manager.get_position_and_state("activation")) - deactivation_x, deactivation_y, deactivation_is_open = (container_manager.get_position_and_state("deactivation")) - - activation = Activation( - id=1, - interfaces=activation_interfaces, - container_x=activation_x, - container_y=activation_y, - isOpen=activation_is_open, - ) - deactivation = Deactivation( - id=2, - interfaces=deactivation_interfaces, - container_x=deactivation_x, - container_y=deactivation_y, - isOpen=deactivation_is_open, - ) - - return { - "activation": activation.model_dump(), - "deactivation": deactivation.model_dump(), - } - except Exception as e: - logger.error(f"Error in get_network_data: {e}") - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось получить сетевые данные"))
    - - -def _split_interfaces( - interfaces: List[Union[NetworkInterface, WiFiDevice]], -) -> Tuple[List[Union[NetworkInterface, WiFiDevice]], List[Union[NetworkInterface, WiFiDevice]]]: - """Разделяет интерфейсы на активные и неактивные. - - Args: - interfaces (List[Union[NetworkInterface, WiFiDevice]]): Список сетевых интерфейсов. - - Returns: - Tuple[List[Union[NetworkInterface, WiFiDevice]], List[Union[NetworkInterface, WiFiDevice]]]: - Кортеж из списков активных и неактивных интерфейсов. - """ - activation_interfaces = [] - deactivation_interfaces = [] - for interface in interfaces: - if interface.device_state == "100": - activation_interfaces.append(interface) - else: - deactivation_interfaces.append(interface) - return activation_interfaces, deactivation_interfaces - -
    -[docs] -@router.post("/update_container_position") -async def update_container_position(data: Dict[str, Union[int, bool]] = Body(...), translations: Translations = Depends(get_translations())): - """Обновляет позицию и состояние контейнера. - - Принимает данные о новом положении и состоянии контейнера и обновляет их - в менеджере позиций. - - Args: - data (Dict[str, Union[int, bool]]): Словарь с ключами: - - "container_id" (int): Идентификатор контейнера (1 или 2). - - "container_x" (int): Новая координата X. - - "container_y" (int): Новая координата Y. - - "isOpen" (bool): Новое состояние контейнера (открыт/закрыт). - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с ключами: - - "success" (bool): Успешность операции. - - "message" (str): Сообщение об успешном обновлении. - - Raises: - HTTPException: Если отсутствуют обязательные поля (status_code=400) или - типы данных неверны. - """ - try: - required_keys = [ - "container_id", "container_x", "container_y", "isOpen" - ] - if not all(key in data for key in required_keys): - raise ValueError( - translations.gettext("Отсутствуют обязательные поля: container_id, container_x, container_y, isOpen") - ) - - container_id = data["container_id"] - container_x = data["container_x"] - container_y = data["container_y"] - is_open = data["isOpen"] - - if (not isinstance(container_id, int) - or not isinstance(container_x, int) - or not isinstance(container_y, int) - or not isinstance(is_open, bool)): - raise ValueError(translations.gettext("Неверный тип данных в запросе")) - - container_manager.update_position(container_id, container_x, container_y, is_open) - return { - "success": True, - "message": translations.gettext("Позиция и состояние контейнера обновлены") - } - except Exception as e: - logger.error(f"Error updating container position: {e}") - raise HTTPException(status_code=400, detail=translations.gettext("Не удалось обновить положение контейнера: {error}").format(error=str(e)))
    - - -
    -[docs] -@router.get("/get_hostname") -async def get_hostname(translations: Translations = Depends(get_translations())): - """Возвращает имя хоста системы. - - Выполняет запрос к сервису для получения имени хоста. - - Args: - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с ключом "hostname" и значением имени хоста. - - Raises: - HTTPException: Если произошла ошибка при получении имени хоста (status_code=500). - """ - try: - hostname_info = await network_service.get_hostname() - return hostname_info - except Exception as e: - logger.error(f"Error in get_hostname: {e}") - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось получить имя хоста"))
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/api/v1/settings.html b/SRV/docs/_build/html/_modules/api/v1/settings.html deleted file mode 100644 index a3a6f4e..0000000 --- a/SRV/docs/_build/html/_modules/api/v1/settings.html +++ /dev/null @@ -1,545 +0,0 @@ - - - - - - - - api.v1.settings - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for api.v1.settings

    -import os
    -import logging
    -import subprocess
    -from typing import Optional
    -from fastapi import APIRouter, HTTPException, Depends, Response, Request, Body
    -from starlette.responses import FileResponse
    -from services.settings_service import SettingsService
    -from utils.i18n import get_translations
    -from babel.support import Translations
    -from models.subnet import SubnetScanRequest  # Предполагается, что модель определена
    -
    -logging.basicConfig(level=logging.DEBUG)
    -logger = logging.getLogger(__name__)
    -
    -router = APIRouter()
    -settings_service = SettingsService()
    -
    -
    -[docs] -@router.post("/clear_subnet") -def clear_subnet(subnet: Optional[str] = None, translations: Translations = Depends(get_translations())): - """Очищает данные узлов подсети, сохранённые в devices.json. - - Удаляет все записи об узлах подсети, оставляя файл пустым. - - Args: - subnet (Optional[str]): Подсеть в формате CIDR (например, "10.1.1.0/24"). - Если None, очищает все подсети. - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешной очистке. - - Raises: - HTTPException: Если произошла ошибка очистки (status_code=500). - """ - try: - success = settings_service.clear_subnet(subnet) - if success: - if subnet: - return {"message": translations.gettext("Данные узлов подсети {subnet} успешно очищены").format(subnet=subnet)} - else: - return {"message": translations.gettext("Данные всех подсетей успешно очищены")} - else: - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось очистить данные узлов подсети")) - except Exception as e: - logger.error(f"Error clearing subnet data: {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка очистки: {error}").format(error=str(e)))
    - - -
    -[docs] -@router.post("/clear_wifi") -def clear_wifi(translations: Translations = Depends(get_translations())): - """Очищает данные точек доступа Wi-Fi, сохранённые в wifi.json. - - Удаляет все записи о точках доступа, оставляя файл пустым. - - Args: - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешной очистке. - - Raises: - HTTPException: Если произошла ошибка очистки (status_code=500). - """ - try: - success = settings_service.clear_wifi() - if success: - return {"message": translations.gettext("Данные точек доступа Wi-Fi успешно очищены")} - else: - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось очистить данные точек доступа Wi-Fi")) - except Exception as e: - logger.error(f"Error clearing wifi data: {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка очистки: {error}").format(error=str(e)))
    - - -
    -[docs] -@router.post("/clear_all_data") -def clear_all_data(translations: Translations = Depends(get_translations())): - """Очищает данные узлов подсети и точек доступа Wi-Fi в обоих файлах. - - Удаляет все записи из devices.json и wifi.json. - - Args: - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешной очистке. - - Raises: - HTTPException: Если произошла ошибка очистки (status_code=500). - """ - try: - success = settings_service.clear_all_data() - if success: - return {"message": translations.gettext("Все сетевые данные успешно очищены")} - else: - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось очистить все сетевые данные")) - except Exception as e: - logger.error(f"Error clearing all data: {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка очистки: {error}").format(error=str(e)))
    - - -WIFI_PATH = "storage/wifi/wifi.json" - -
    -[docs] -@router.post("/export_devices", response_class=FileResponse) -async def export_devices(request: SubnetScanRequest = Body(...), translations: Translations = Depends(get_translations())): - """ - Экспортирует файл с данными устройств в формате JSON для указанной подсети. - - Args: - request (SubnetScanRequest): Объект с полем subnet в формате CIDR. - translations: Объект переводов для текущего языка. - - Returns: - FileResponse: Файл <subnet>.json для скачивания. - - Raises: - HTTPException: Если файл не найден (status_code=404). - """ - subnet = request.subnet - file_path = f"storage/subnets/{subnet.replace('/', '_')}.json" - if not os.path.exists(file_path): - logger.warning(f"Export file not found: {file_path}") - raise HTTPException(status_code=404, detail=translations.gettext("Файл для подсети {subnet} не найден").format(subnet=subnet)) - logger.info(f"Exporting file: {file_path}") - return FileResponse( - path=file_path, - filename=f"{subnet.replace('/', '_')}.json", - media_type="application/json" - )
    - - -
    -[docs] -@router.get("/export_wifi", response_class=FileResponse) -async def export_wifi(translations: Translations = Depends(get_translations())): - """ - Экспортирует файл с данными устройств в формате JSON. - - Args: - translations: Объект переводов для текущего языка. - - Returns: - FileResponse: Файл wifi.json для скачивания. - - Raises: - HTTPException: Если файл не найден (status_code=404). - """ - if not os.path.exists(WIFI_PATH): - logger.warning(f"Export file not found: {WIFI_PATH}") - raise HTTPException(status_code=404, detail=translations.gettext("Файл не найден")) - logger.info(f"Exporting file: {WIFI_PATH}") - return FileResponse( - path=WIFI_PATH, - filename="wifi.json", - media_type="application/json" - )
    - - -
    -[docs] -@router.post("/set_language") -def set_language(locale: str, response: Response, translations: Translations = Depends(get_translations())): - """ - Устанавливает куку locale для смены языка пользователя. - - Args: - locale (str): Используемый язык. - response (Response): Запрос. - translations: Объект переводов текущего языка. - - Returns: - dict: Сообщение об успешной установке языка. - """ - lc_messages_path = os.path.join(os.path.dirname(__file__), '..', '..', 'locales', locale, 'LC_MESSAGES') - if not os.path.isdir(lc_messages_path): - raise HTTPException( - status_code=400, - detail=translations.gettext("Язык '{locale}' не поддерживается.").format(locale=locale) - ) - has_mo_or_po = any(f.endswith('.mo') or f.endswith('.po') for f in os.listdir(lc_messages_path)) - if not has_mo_or_po: - raise HTTPException( - status_code=400, - detail=translations.gettext("Язык '{locale}' не поддерживается (нет файлов переводов).").format(locale=locale) - ) - response.set_cookie(key="locale", value=locale, path="/", httponly=True) - return {"message": translations.gettext("Язык успешно установлен: {locale}").format(locale=locale)}
    - - -
    -[docs] -@router.get("/get_system_language") -async def get_system_language(request: Request, translations: Translations = Depends(get_translations())): - """Выводит текущий язык, установленный в системе на основе locale. - - Выполняет команду 'locale' в системе и извлекает параметры LANG - - Args: - request (Request): Объект запроса для доступа к параметрам. - translations: Объект переводов текущего языка. - - Returns: - dict: Словарь с текущим языком системы. - - Raises: - HTTPException: Если не удалось извлечь системный язык (status_code=500). - """ - try: - result = subprocess.run(['locale'], capture_output=True, text=True, check=True) - output = result.stdout - lang = next((line.split('=')[1].strip() for line in output.splitlines() if line.startswith('LANG=')), None) - if lang: - return {"language": lang} - else: - logger.warning(f"No locale found: {output}") - return {"language": 'unknown'} - except subprocess.CalledProcessError as e: - logger.error(f"Error executing locale command: {e}") - raise HTTPException(status_code=500, detail=translations.gettext("Не удалось определить язык в системе")) - except Exception as e: - logger.error(f"Unexpected error getting system language: {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка при определении языка в системе {error}").format(error=str(e)))
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/api/v1/subnet.html b/SRV/docs/_build/html/_modules/api/v1/subnet.html deleted file mode 100644 index a7ae76d..0000000 --- a/SRV/docs/_build/html/_modules/api/v1/subnet.html +++ /dev/null @@ -1,700 +0,0 @@ - - - - - - - - api.v1.subnet - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for api.v1.subnet

    -from fastapi import APIRouter, HTTPException, Body, Depends
    -from models.subnet import SubnetScanResult, SubnetScanRequest
    -from models.wifi import WifiScanResult
    -from models.request import NoteRequest, WifiConnectRequest, WifiDisconnectRequest
    -from services.subnet_service import SubnetService, get_subnet_service
    -from services.wifi_service import WifiService
    -from services.connect_service import WifiConnectionService
    -from utils.i18n import get_translations, _
    -from babel.support import Translations
    -import logging
    -
    -router = APIRouter()
    -
    -logging.basicConfig(level=logging.INFO)
    -logger = logging.getLogger(__name__)
    -
    -
    -[docs] -@router.post("/devices", response_model=SubnetScanResult) -def scan_subnet(request: SubnetScanRequest = Body(...), subnet_service: SubnetService = Depends(get_subnet_service), translations: Translations = Depends(get_translations())): - """Сканирует локальную подсеть и возвращает данные об устройствах. - - Выполняет сканирование указанной подсети для обнаружения активных устройств. - - Args: - request (SubnetScanRequest): Объект с полем subnet. - subnet_service: Сервис сканирования подсети. - translations: Объект переводов для текущего языка. - - Returns: - SubnetScanResult: Объект с результатами сканирования (устройства и их данные). - - Raises: - HTTPException: Если произошла ошибка сканирования (status_code=500). - """ - try: - # Если subnet пустая строка, определяем автоматически - subnet = request.subnet.strip() if request.subnet else None - logger.info(f"Requested subnet scan for: {subnet or 'auto-detected'}") - result = subnet_service.scan_subnet(subnet) - if not result.devices and result.error: - logger.warning(f"No devices found in subnet {subnet or 'auto-detected'}") - return result - except Exception as e: - logger.error(f"Error in scan_subnet: {str(e)}") - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка сканирования подсети: {error}").format(error=str(e)))
    - - -
    -[docs] -@router.get("/wifi", response_model=WifiScanResult) -def scan_wifi(timeout: int = 30, translations: Translations = Depends(get_translations())): - """Сканирует Wi-Fi точки доступа и возвращает данные о них. - - Выполняет сканирование доступных Wi-Fi сетей с указанным таймаутом. - - Args: - timeout (int, optional): Таймаут сканирования в секундах. По умолчанию 30. - translations: Объект переводов для текущего языка. - - Returns: - WifiScanResult: Объект с результатами сканирования (список Wi-Fi сетей). - - Raises: - HTTPException: Если произошла ошибка сканирования Wi-Fi (status_code=500). - """ - try: - wifi_service = WifiService() - result = wifi_service.scan_wifi(timeout=timeout) - return result - except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка сканирования Wi-Fi: {error}").format(error=str(e)))
    - - -
    -[docs] -@router.post("/devices/{mac}/note") -def add_note(mac: str, request: NoteRequest, subnet_service: SubnetService = Depends(get_subnet_service), translations: Translations = Depends(get_translations())): - """Добавляет заметку для устройства по MAC-адресу. - - Привязывает заметку к устройству, идентифицируемому по MAC-адресу. - - Args: - mac (str): MAC-адрес устройства. - request (NoteRequest): Объект с полем "note" для текста заметки. - subnet_service: Сервис сканирования подсети. - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешном добавлении заметки. - - Raises: - HTTPException: Если устройство не найдено (status_code=404), заметка уже - существует (status_code=400), или произошла внутренняя ошибка (status_code=500). - """ - try: - success, result = subnet_service.add_note(mac, request.note, translations) - if not success: - if result[0] == "not_found": - raise HTTPException(status_code=404, detail=translations.gettext("Устройство с MAC {mac} не найдено").format(mac=mac)) - elif result[0] == "note_exists": - raise HTTPException(status_code=400, detail=translations.gettext("Заметка для устройства с MAC {mac} уже существует").format(mac=mac)) - else: - raise HTTPException(status_code=500, detail=translations.gettext("Внутренняя ошибка сервера: {error}").format(error=result[1]["error"])) - return {"message": translations.gettext("Заметка '{note}' добавлена для устройства {mac}").format(note=request.note, mac=mac)} - except HTTPException as e: - raise e - except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка добавления заметки: {error}").format(error=str(e)))
    - - -
    -[docs] -@router.put("/devices/{mac}/note") -def update_note(mac: str, request: NoteRequest, subnet_service: SubnetService = Depends(get_subnet_service), translations: Translations = Depends(get_translations())): - """Обновляет заметку для устройства по MAC-адресу. - - Изменяет существующую заметку, привязанную к устройству. - - Args: - mac (str): MAC-адрес устройства. - request (NoteRequest): Объект с полем "note" для нового текста заметки. - subnet_service: Сервис сканирования подсети. - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешном обновлении заметки. - - Raises: - HTTPException: Если устройство не найдено (status_code=404), заметка не - существует (status_code=400), или произошла внутренняя ошибка (status_code=500). - """ - try: - success, result = subnet_service.update_note(mac, request.note, translations) - if not success: - if result[0] == "not_found": - raise HTTPException(status_code=404, detail=translations.gettext("Устройство с MAC {mac} не найдено").format(mac=mac)) - elif result[0] == "note_not_exists": - raise HTTPException(status_code=400, detail=translations.gettext("Заметка для устройства с MAC {mac} не существует").format(mac=mac)) - else: - raise HTTPException(status_code=500, detail=translations.gettext("Внутренняя ошибка сервера: {error}").format(error=result[1]["error"])) - return {"message": translations.gettext("Заметка '{note}' обновлена для устройства {mac}").format(note=request.note, mac=mac)} - except HTTPException as e: - raise e - except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка обновления заметки: {error}").format(error=str(e)))
    - - -
    -[docs] -@router.delete("/devices/{mac}/note") -def delete_note(mac: str, subnet_service: SubnetService = Depends(get_subnet_service), translations: Translations = Depends(get_translations())): - """Удаляет заметку для устройства по MAC-адресу. - - Удаляет привязанную заметку для указанного устройства. - - Args: - mac (str): MAC-адрес устройства. - subnet_service: Сервис сканирования подсети. - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешном удалении заметки. - - Raises: - HTTPException: Если устройство не найдено (status_code=404), заметка не - существует (status_code=400), или произошла внутренняя ошибка (status_code=500). - """ - try: - success, result = subnet_service.delete_note(mac, translations) - if not success: - if result[0] == "not_found": - raise HTTPException(status_code=404, detail=translations.gettext("Устройство с MAC {mac} не найдено").format(mac=mac)) - elif result[0] == "note_not_exists": - raise HTTPException(status_code=400, detail=translations.gettext("Заметка для устройства с MAC {mac} не существует").format(mac=mac)) - else: - raise HTTPException(status_code=500, detail=translations.gettext("Внутренняя ошибка сервера: {error}").format(error=result[1]["error"])) - return {"message": translations.gettext("Заметка удалена для устройства {mac}").format(mac=mac)} - except HTTPException as e: - raise e - except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка удаления заметки: {error}").format(error=str(e)))
    - - -
    -[docs] -@router.post("/wifi/{ssid}/note") -def add_wifi_note(ssid: str, request: NoteRequest, translations: Translations = Depends(get_translations())): - """Добавляет заметку для сети Wi-Fi по SSID. - - Привязывает заметку к Wi-Fi сети, идентифицируемой по SSID. - - Args: - ssid (str): Идентификатор Wi-Fi сети. - request (NoteRequest): Объект с полем "note" для текста заметки. - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешном добавлении заметки. - - Raises: - HTTPException: Если сеть не найдена (status_code=404), заметка уже - существует (status_code=400), или произошла внутренняя ошибка (status_code=500). - """ - try: - wifi_service = WifiService() - success, result = wifi_service.add_note(ssid, request.note) - if not success: - if result[0] == "not_found": - raise HTTPException(status_code=404, detail=translations.gettext("Сеть с SSID {ssid} не найдена").format(ssid=ssid)) - elif result[0] == "note_exists": - raise HTTPException(status_code=400, detail=translations.gettext("Заметка для сети с SSID {ssid} уже существует").format(ssid=ssid)) - else: - raise HTTPException(status_code=500, detail=translations.gettext("Внутренняя ошибка сервера: {error}").format(error=result[1]["error"])) - return {"message": translations.gettext("Заметка '{note}' добавлена для сети с SSID {ssid}").format(note=request.note, ssid=ssid)} - except HTTPException as e: - raise e - except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка добавления заметки: {error}").format(error=str(e)))
    - - -
    -[docs] -@router.put("/wifi/{ssid}/note") -def update_wifi_note(ssid: str, request: NoteRequest, translations: Translations = Depends(get_translations())): - """Обновляет заметку для сети Wi-Fi по SSID. - - Изменяет существующую заметку, привязанную к Wi-Fi сети. - - Args: - ssid (str): Идентификатор Wi-Fi сети. - request (NoteRequest): Объект с полем "note" для нового текста заметки. - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешном обновлении заметки. - - Raises: - HTTPException: Если сеть не найдена (status_code=404), заметка не - существует (status_code=400), или произошла внутренняя ошибка (status_code=500). - """ - try: - wifi_service = WifiService() - success, result = wifi_service.update_note(ssid, request.note) - if not success: - if result[0] == "not_found": - raise HTTPException(status_code=404, detail=translations.gettext("Сеть с SSID {ssid} не найдена").format(ssid=ssid)) - elif result[0] == "note_not_exists": - raise HTTPException(status_code=400, detail=translations.gettext("Заметка для сети с SSID {ssid} не существует").format(ssid=ssid)) - else: - raise HTTPException(status_code=500, detail=translations.gettext("Внутренняя ошибка сервера: {error}").format(error=result[1]["error"])) - return {"message": translations.gettext("Заметка '{note}' обновлена для сети с SSID {ssid}").format(note=request.note, ssid=ssid)} - except HTTPException as e: - raise e - except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка обновления заметки: {error}").format(error=str(e)))
    - - -
    -[docs] -@router.delete("/wifi/{ssid}/note") -def delete_wifi_note(ssid: str, translations: Translations = Depends(get_translations())): - """Удаляет заметку для сети Wi-Fi по SSID. - - Удаляет привязанную заметку для указанной Wi-Fi сети. - - Args: - ssid (str): Идентификатор Wi-Fi сети. - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешном удалении заметки. - - Raises: - HTTPException: Если сеть не найдена (status_code=404), заметка не - существует (status_code=400), или произошла внутренняя ошибка (status_code=500). - """ - try: - wifi_service = WifiService() - success, result = wifi_service.delete_note(ssid) - if not success: - if result[0] == "not_found": - raise HTTPException(status_code=404, detail=translations.gettext("Сеть с SSID {ssid} не найдена").format(ssid=ssid)) - elif result[0] == "note_not_exists": - raise HTTPException(status_code=400, detail=translations.gettext("Заметка для сети с SSID {ssid} не существует").format(ssid=ssid)) - else: - raise HTTPException(status_code=500, detail=translations.gettext("Внутренняя ошибка сервера: {error}").format(error=result[1]["error"])) - return {"message": translations.gettext("Заметка удалена для сети с SSID {ssid}").format(ssid=ssid)} - except HTTPException as e: - raise e - except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка удаления заметки: {error}").format(error=str(e)))
    - - -
    -[docs] -@router.post("/wifi/connect") -def connect_to_wifi(request: WifiConnectRequest, translations: Translations = Depends(get_translations())): - """Подключается к Wi-Fi сети по SSID и паролю. - - Выполняет подключение к указанной Wi-Fi сети с использованием предоставленных - учетных данных. - - Args: - request (WifiConnectRequest): Объект с полями "ssid" и "password". - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешном подключении. - - Raises: - HTTPException: Если подключение не удалось (status_code=400). - """ - try: - wifi_service = WifiConnectionService(translations) - success, message = wifi_service.connect(request.ssid, request.password) - if not success: - raise HTTPException(status_code=400, detail=translations.gettext(message)) - return {"message": translations.gettext("Успешно подключено к {ssid}").format(ssid=request.ssid)} - except HTTPException as e: - raise e - except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка подключения к Wi-Fi: {error}").format(error=str(e)))
    - - -
    -[docs] -@router.post("/wifi/disconnect") -def disconnect_from_wifi(request: WifiDisconnectRequest, translations: Translations = Depends(get_translations())): - """Отключается от Wi-Fi сети по указанному SSID. - - Выполняет отключение от указанной Wi-Fi сети. - - Args: - request (WifiDisconnectRequest): Объект с полем "ssid". - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с сообщением об успешном отключении. - - Raises: - HTTPException: Если отключение не удалось (status_code=400). - """ - try: - wifi_service = WifiConnectionService(translations) - success, message = wifi_service.disconnect(request.ssid) - if not success: - raise HTTPException(status_code=400, detail=translations.gettext(message)) - return {"message": translations.gettext(message or "Успешно отключено от {ssid}").format(ssid=request.ssid)} - except HTTPException as e: - raise e - except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка отключения от Wi-Fi: {error}").format(error=str(e)))
    - - -
    -[docs] -@router.get("/wifi/status") -def get_wifi_status(translations: Translations = Depends(get_translations())): - """Проверяет статус текущего подключения к Wi-Fi. - - Возвращает информацию о текущем состоянии подключения и SSID, если подключение активно. - - Args: - translations: Объект переводов для текущего языка. - - Returns: - dict: Словарь с ключами: - - "status" (str): Состояние ("connected" или другое). - - "ssid" (str, optional): SSID текущей сети, если подключено. - - Raises: - HTTPException: Если проверка статуса не удалась (status_code=400). - """ - try: - wifi_service = WifiConnectionService(translations) - success, message = wifi_service.get_status() - if not success: - raise HTTPException(status_code=400, detail=translations.gettext(message)) - return {"status": translations.gettext("connected"), "ssid": message} - except HTTPException as e: - raise e - except Exception as e: - raise HTTPException(status_code=500, detail=translations.gettext("Ошибка проверки статуса Wi-Fi: {error}").format(error=str(e)))
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/api/v1/ufw.html b/SRV/docs/_build/html/_modules/api/v1/ufw.html deleted file mode 100644 index edb6aa6..0000000 --- a/SRV/docs/_build/html/_modules/api/v1/ufw.html +++ /dev/null @@ -1,555 +0,0 @@ - - - - - - - - api.v1.ufw - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for api.v1.ufw

    -from fastapi import APIRouter, HTTPException
    -from typing import List
    -from pydantic import BaseModel, Field
    -
    -from models.ufw import UFWRulesResponse, UFWStatus, UFWRule
    -from services.ufw_service import UFWService
    -
    -router = APIRouter()
    -
    -
    -
    -[docs] -class RuleNumbers(BaseModel): - """Модель запроса на удаление UFW правил. - - Атрибуты: - - - ``numbers`` (List[int]): Список номеров правил для удаления. - """ - numbers: List[int] = Field( - ..., description="Список номеров правил для удаления")
    - - - -
    -[docs] -@router.get("/rules", response_model=UFWRulesResponse) -async def get_ufw_rules(): - """Возвращает все правила UFW. - - Осуществляет обращение к сервису `UFWService` для чтения текущего списка - правил брандмауэра и возвращает результат в сериализованном виде для клиента. - - Returns: - UFWRulesResponse: Структура с коллекцией правил и сопутствующей - информацией о состоянии. - - Raises: - HTTPException: В случае ошибок взаимодействия с UFW (status_code=500). - """ - ufw_service = UFWService() - try: - return ufw_service.get_ufw_rules() - except Exception as e: - raise HTTPException(status_code=500, detail=f"Error: {str(e)}")
    - - - -
    -[docs] -@router.get("/status", response_model=UFWStatus) -async def get_ufw_status(): - """Возвращает текущий статус UFW. - - Returns: - UFWStatus: Объект со сведениями о включенности UFW и деталями статуса. - - Raises: - HTTPException: Если не удалось получить статус (status_code=500). - """ - ufw_service = UFWService() - try: - return ufw_service.get_ufw_status() - except Exception as e: - raise HTTPException(status_code=500, detail=f"Error: {str(e)}")
    - - - -
    -[docs] -@router.post("/enable") -async def enable_ufw(): - """Включает UFW. - - Returns: - dict: Словарь с ключами `status` и `message` при успешном выполнении. - - Raises: - HTTPException: Если включение завершилось неуспешно (status_code=500). - """ - ufw_service = UFWService() - try: - success = ufw_service.enable_ufw() - if success: - return {"status": "success", "message": "UFW успешно включен"} - else: - raise HTTPException(status_code=500, - detail="Не удалось включить UFW") - except Exception as e: - raise HTTPException(status_code=500, detail=f"Error: {str(e)}")
    - - - -
    -[docs] -@router.post("/disable") -async def disable_ufw(): - """Выключает UFW. - - Returns: - dict: Словарь с ключами `status` и `message` при успешном выполнении. - - Raises: - HTTPException: Если выключение завершилось неуспешно (status_code=500). - """ - ufw_service = UFWService() - try: - success = ufw_service.disable_ufw() - if success: - return {"status": "success", "message": "UFW успешно выключен"} - else: - raise HTTPException(status_code=500, - detail="Не удалось выключить UFW") - except Exception as e: - raise HTTPException(status_code=500, detail=f"Error: {str(e)}")
    - - - -
    -[docs] -@router.post("/rules/in") -async def add_ufw_in_rules(rules: List[UFWRule]): - """Добавляет входящие (in) правила UFW. - - Args: - rules (List[UFWRule]): Список правил, определяющих направления, - порты/диапазоны/протоколы и действия (allow/deny/reject). - - Returns: - dict: Итог выполнения с количеством успешно добавленных правил и деталями - по каждому правилу. - - Raises: - HTTPException: Если UFW отключен (status_code=400) или при внутренних - ошибках (status_code=500). - """ - ufw_service = UFWService() - try: - # Проверяем статус UFW - status = ufw_service.get_ufw_status() - if not status.enabled: - raise HTTPException( - status_code=400, - detail="UFW отключен. Включите UFW перед добавлением правил.", - ) - - result = ufw_service.add_rules(rules) - if result["success"]: - successful_rules = len( - [r for r in result["results"] if r["success"]]) - total_rules = len(result["results"]) - return { - "status": "success", - "message": - f"Добавлено {successful_rules} из {total_rules} правил", - "details": result, - } - else: - raise HTTPException( - status_code=500, - detail=result.get("error", "Не удалось добавить правила"), - ) - except Exception as e: - raise HTTPException(status_code=500, detail=f"Error: {str(e)}")
    - - - -
    -[docs] -@router.post("/rules/out") -async def add_ufw_out_rules(rules: List[UFWRule]): - """Добавляет исходящие (out) правила UFW. - - Args: - rules (List[UFWRule]): Список правил исходящего трафика для добавления. - - Returns: - dict: Объект статуса с сообщением об успешном добавлении. - - Raises: - HTTPException: Если UFW отключен (status_code=400) или при внутренних - ошибках (status_code=500). - """ - ufw_service = UFWService() - try: - # Проверяем статус UFW - status = ufw_service.get_ufw_status() - if not status.enabled: - raise HTTPException( - status_code=400, - detail="UFW отключен. Включите UFW перед добавлением правил.", - ) - - success = ufw_service.add_ufw_out_rules(rules) - if success: - return { - "status": "success", - "message": "Исходящие правила UFW успешно добавлены", - } - else: - raise HTTPException( - status_code=500, - detail="Не удалось добавить исходящие правила UFW") - except Exception as e: - raise HTTPException(status_code=500, detail=f"Error: {str(e)}")
    - - - -
    -[docs] -@router.delete("/rules") -async def delete_ufw_rules(rule_numbers: RuleNumbers): - """Удаляет правила UFW по их номерам. - - Args: - rule_numbers (RuleNumbers): Номера правил, подлежащих удалению (как в - выводе `ufw status numbered`). - - Returns: - dict: Информация об общем количестве удаляемых правил, числе успешных и - возможной ошибке. - - Raises: - HTTPException: При ошибках удаления (status_code=500). - """ - ufw_service = UFWService() - try: - result = ufw_service.delete_rules(rule_numbers.numbers) - if result["success"]: - return { - "status": "success", - "message": - f"Удалено {result['successful']} из {result['total']} правил", - "details": result, - } - else: - raise HTTPException(status_code=500, detail=result["error"]) - except Exception as e: - raise HTTPException(status_code=500, detail=f"Error: {str(e)}")
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/api/v1/websocket.html b/SRV/docs/_build/html/_modules/api/v1/websocket.html deleted file mode 100644 index de6a1be..0000000 --- a/SRV/docs/_build/html/_modules/api/v1/websocket.html +++ /dev/null @@ -1,488 +0,0 @@ - - - - - - - - api.v1.websocket - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for api.v1.websocket

    -import asyncio
    -import logging
    -from typing import Set
    -
    -from fastapi import APIRouter, WebSocket, WebSocketDisconnect, Depends
    -from starlette.websockets import WebSocketState
    -from utils.i18n import get_translations, _
    -from babel.support import Translations
    -
    -from .network import update_container_position, get_network_data
    -
    -router = APIRouter()
    -
    -logging.basicConfig(level=logging.INFO)
    -logger = logging.getLogger(__name__)
    -
    -
    -[docs] -class WebSocketManager: - """Класс для управления подключениями к WebSocket-серверу. - - Обрабатывает подключение, отключение и трансляцию сообщений для клиентов, - подключённых через WebSocket. - """ - - def __init__(self): - """Инициализирует менеджер подключений к WebSocket-серверу. - - Создаёт пустое множество для хранения активных соединений. - """ - self.active_connections: Set[WebSocket] = set() - -
    -[docs] - async def connect(self, websocket: WebSocket): - """Подключает клиента к WebSocket-серверу. - - Принимает подключение и добавляет WebSocket в список активных соединений. - - Args: - websocket (WebSocket): Объект WebSocket для подключения. - - Raises: - Exception: Если произошла ошибка при принятии подключения. - """ - await websocket.accept() - self.active_connections.add(websocket)
    - - -
    -[docs] - def disconnect(self, websocket: WebSocket): - """Отключает клиента от WebSocket-серверу. - - Удаляет WebSocket из списка активных соединений. - - Args: - websocket (WebSocket): Объект WebSocket для отключения. - """ - self.active_connections.remove(websocket)
    - - -
    -[docs] - async def broadcast(self, message: dict): - """Транслирует сообщения всем подключённым клиентам. - - Отправляет JSON-данные всем активным соединениям, обрабатывая - отключения клиентов. - - Args: - message (dict): Сообщение для трансляции в формате JSON. - - Raises: - WebSocketDisconnect: Если клиент неожиданно отключился. - Exception: Если произошла другая ошибка при отправке. - """ - for connection in list(self.active_connections): - try: - if connection.client_state == WebSocketState.CONNECTED: - await connection.send_json(message) - except WebSocketDisconnect: - self.disconnect(connection) - except Exception as e: - logger.error(f"Broadcast error: {e}") - self.disconnect(connection)
    -
    - - -manager = WebSocketManager() - -
    -[docs] -@router.websocket("/api/v1") -async def websocket_endpoint(websocket: WebSocket, translations: Translations = Depends(get_translations())): - """Обработчик WebSocket-соединения. - - Управляет соединением клиента, принимает данные для обновления позиций - контейнеров и транслирует сетевые данные. - - Args: - websocket (WebSocket): Объект WebSocket для обработки соединения. - translations: Объект переводов для текущего языка. - - Raises: - WebSocketDisconnect: Если клиент отключился. - Exception: Если произошла ошибка при обработке данных. - """ - await manager.connect(websocket) - try: - while True: - data = await websocket.receive_json() - logger.info(f"Received data: {data}") - - if all(key in data for key in ["container_id", "container_x", "container_y"]): - await update_container_position(data) - - network_data = await get_network_data() - logger.info(f"Current network data: {network_data}") - - await manager.broadcast(network_data) - await asyncio.sleep(2) - except WebSocketDisconnect: - logger.info("Client disconnected") - except Exception as e: - logger.error(f"Error in websocket_endpoint: {e}") - finally: - manager.disconnect(websocket) - if websocket.client_state != WebSocketState.DISCONNECTED: - await websocket.close()
    - - -
    -[docs] -@router.on_event("startup") -async def startup_event(): - """Запуск таска для трансляции сетевых данных при старте приложения. - - Создаёт асинхронную задачу для периодической трансляции данных. - - Raises: - Exception: Если произошла ошибка при запуске таска. - """ - asyncio.create_task(broadcast_data())
    - - -
    -[docs] -async def broadcast_data(translations: Translations = Depends(get_translations())): - """Таск для периодической трансляции сетевых данных. - - Выполняет сканирование сети и отправляет данные всем подключённым клиентам - с интервалом в 2 секунды. - - Args: - translations: Объект переводов для текущего языка. - - Raises: - Exception: Если произошла ошибка при получении данных или трансляции. - """ - while True: - try: - network_data = await get_network_data() - if "activation" not in network_data: - logger.error(translations.gettext("Ошибка: Ключ 'activation' отсутствует в полученных данных сети")) - await asyncio.sleep(2) - continue - - await manager.broadcast(network_data) - except Exception as e: - logger.error(f"Error in broadcast_data: {e}") - await asyncio.sleep(2)
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/config/cors.html b/SRV/docs/_build/html/_modules/config/cors.html deleted file mode 100644 index 5288c7d..0000000 --- a/SRV/docs/_build/html/_modules/config/cors.html +++ /dev/null @@ -1,368 +0,0 @@ - - - - - - - - config.cors - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for config.cors

    -"""
    -Конфигурация CORS для FastAPI-приложения GONETS.
    -
    -Модуль инкапсулирует добавление middleware `CORSMiddleware` со списком
    -разрешённых источников (origins), характерных для локальной разработки и
    -типовых портов фронтенда (например, Vite/React на 5173/5174, dev-серверы).
    -
    -Использование:
    -    cors_config = CORSMiddlewareConfig(app)
    -    cors_config.add_cors_middleware()
    -
    -Поведение:
    - - Разрешены все методы (`allow_methods=["*"]`) и заголовки (`allow_headers=["*"]`).
    - - Разрешены креденшлы (`allow_credentials=True`) для работы с куками (локаль и др.).
    - - При необходимости список `origins` можно расширить или параметризовать
    -   на основе конфигурационного файла окружения.
    -"""
    -from fastapi import FastAPI
    -from starlette.middleware.cors import CORSMiddleware
    -
    -
    -
    -[docs] -class CORSMiddlewareConfig: - """ - Класс для настройки CORS политики в FastAPI - """ - - def __init__(self, app: FastAPI) -> None: - """Инициализируем приложение FastAPI и список допустимых CORS-оригинов""" - self.app = app - self.origins = [ - "http://localhost.tiangolo.com", - "https://localhost.tiangolo.com", - "http://localhost", - "http://localhost:8080", - "http://localhost:5174", - "http://localhost:5173", - ] - -
    -[docs] - def add_cors_middleware(self) -> None: - """Добавляем CORS в приложение FastAPI""" - self.app.add_middleware( - CORSMiddleware, - allow_origins=self.origins, - allow_credentials=True, - allow_methods=["*"], - allow_headers=["*"], - )
    -
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/config/init_config.html b/SRV/docs/_build/html/_modules/config/init_config.html deleted file mode 100644 index 707f1dd..0000000 --- a/SRV/docs/_build/html/_modules/config/init_config.html +++ /dev/null @@ -1,366 +0,0 @@ - - - - - - - - config.init_config - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for config.init_config

    -import configparser
    -import os
    -import secrets
    -import logging
    -
    -logging.basicConfig(level=logging.INFO)
    -logger = logging.getLogger(__name__)
    -
    -
    -
    -[docs] -def init_config(): - """ - Инициализация конфигурации приложения (JWT SECRET_KEY). - - Назначение: - - Создаёт файл `/etc/gonets/config.ini` с секцией `[JWT]` и случайным - `secret_key`, если он отсутствует. Устанавливает права `0o600`. - - Замечания: - - Функция предназначена для однократного запуска (в инсталляторе/скрипте - подготовки окружения) и безопасно пропускает работу, если файл уже существует. - """ - config_path = "/etc/gonets/config.ini" - config_dir = os.path.dirname(config_path) - - if os.path.exists(config_path): - logger.info( - f"Конфигурационный файл {config_path} уже существует, пропускаем инициализацию" - ) - return - - try: - secret_key = secrets.token_urlsafe(32) - os.makedirs(config_dir, exist_ok=True) - config = configparser.ConfigParser() - config["JWT"] = {"secret_key": secret_key} - with open(config_path, "w") as config_file: - config.write(config_file) - os.chmod(config_path, 0o600) - logger.info(f"Создан конфигурационный файл {config_path}") - except Exception as e: - logger.error( - f"Ошибка при создании конфигурационного файла: {type(e).__name__} - {str(e)}" - ) - raise
    - - -# Нативный запуск для тестов -if __name__ == "__main__": - init_config() -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/config/ports.html b/SRV/docs/_build/html/_modules/config/ports.html deleted file mode 100644 index 0bb3985..0000000 --- a/SRV/docs/_build/html/_modules/config/ports.html +++ /dev/null @@ -1,432 +0,0 @@ - - - - - - - - config.ports - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for config.ports

    -from typing import Dict, List
    -
    -
    -
    -[docs] -class PortConfig: - """Конфигурация известных портов для сетевого анализа. - - Назначение: - Предоставляет сопоставление распространённых портов с человекочитаемыми - названиями сервисов для отображения в UI и логах. Поддерживает расширение - пользовательским словарём. - """ - - _DEFAULT_PORTS: Dict[int, str] = { - 20: "FTP (Data)", - 21: "FTP (Control)", - 22: "SSH", - 23: "Telnet", - 25: "SMTP", - 53: "DNS", - 67: "DHCP (Server)", - 68: "DHCP (Client)", - 69: "TFTP", - 80: "HTTP", - 110: "POP3", - 123: "NTP (Network Time Protocol)", - 137: "NetBIOS Name Service", - 138: "NetBIOS Datagram Service", - 139: "NetBIOS Session Service", - 143: "IMAP", - 161: "SNMP", - 162: "SNMP Trap", - 179: "BGP (Border Gateway Protocol)", - 443: "HTTPS", - 445: "SMB (Microsoft-DS)", - 465: "SMTPS", - 514: "Syslog (UDP)", - 515: "LPD (Printer)", - 587: "SMTP Submission", - 631: "IPP (Printing)", - 993: "IMAPS", - 995: "POP3S", - # --- Базы данных --- - 1433: "Microsoft SQL Server", - 1521: "Oracle DB", - 3306: "MySQL/MariaDB", - 5432: "PostgreSQL", - 6379: "Redis", - 27017: "MongoDB", - # --- VPN и удалённый доступ --- - 1723: "PPTP VPN", - 1701: "L2TP", - 500: "IPSec", - 4500: "IPSec NAT-T", - 1194: "OpenVPN", - 3389: "RDP (Remote Desktop Protocol)", - 5900: "VNC", - # --- Прокси / Веб --- - 1080: "SOCKS Proxy", - 8000: "HTTP-Alt", - 8080: "HTTP Proxy", - 8443: "HTTPS-Alt", - # --- DevOps / Monitoring / Tools --- - 9000: "SonarQube / PHP-FPM", - 9100: "Prometheus Node Exporter", - 9200: "Elasticsearch HTTP", - 9300: "Elasticsearch Cluster", - 11211: "Memcached", - # --- Прочее --- - 6667: "IRC", - 4000: "ICQ / Custom apps", - 25565: "Minecraft Server", - 53: "DNS (UDP & TCP)", - } - - def __init__(self, custom_ports: Dict[int, str] = None): - """ - Инициализирует конфигурацию портов. - - Args: - custom_ports: Пользовательский словарь портов для добавления или переопределения. - """ - self._ports = self._DEFAULT_PORTS.copy() - if custom_ports: - self._ports.update(custom_ports) - -
    -[docs] - def get_port_name(self, port: int) -> str: - """ - Возвращает название сервиса для указанного порта. - - Args: - port: Номер порта. - - Returns: - Название сервиса или строка вида 'Port-<port>'. - """ - return self._ports.get(port, f"Port-{port}")
    - - -
    -[docs] - def get_ports(self) -> List[int]: - """ - Возвращает список всех номеров портов. - - Returns: - Список номеров портов. - """ - return list(self._ports.keys())
    -
    - - - -port_config = PortConfig() -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/core/cli_executor.html b/SRV/docs/_build/html/_modules/core/cli_executor.html deleted file mode 100644 index 90456d7..0000000 --- a/SRV/docs/_build/html/_modules/core/cli_executor.html +++ /dev/null @@ -1,351 +0,0 @@ - - - - - - - - core.cli_executor - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for core.cli_executor

    -import subprocess
    -from typing import Tuple
    -
    -
    -
    -[docs] -class CLIExecutor: - """Утилита для безопасного выполнения CLI-команд. - - Назначение: - Инкапсулирует вызов `subprocess.run` и приводит результат к удобному - кортежу (код возврата, stdout) без генерации исключений при ошибках. - """ - -
    -[docs] - @staticmethod - def run(command: list) -> Tuple[int, str]: - """ - Выполняет команду в системе и возвращает код и вывод. - - Args: - command (list): Список аргументов команды для выполнения. - - Returns: - tuple: Код возврата и вывод команды. - """ - result = subprocess.run( - command, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, - check=False, # Не вызываем исключение при ошибке - ) - return result.returncode, result.stdout.decode("utf-8")
    -
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/index.html b/SRV/docs/_build/html/_modules/index.html deleted file mode 100644 index a68c954..0000000 --- a/SRV/docs/_build/html/_modules/index.html +++ /dev/null @@ -1,344 +0,0 @@ - - - - - - - - Overview: module code - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - - -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/models/auth.html b/SRV/docs/_build/html/_modules/models/auth.html deleted file mode 100644 index afe07e1..0000000 --- a/SRV/docs/_build/html/_modules/models/auth.html +++ /dev/null @@ -1,389 +0,0 @@ - - - - - - - - models.auth - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for models.auth

    -from pydantic import BaseModel
    -from typing import Optional
    -
    -
    -
    -[docs] -class UserCreate(BaseModel): - """Модель созданного пользователя. - - Атрибуты: - - - ``username`` (str): Имя пользователя. - - ``password`` (str): Пароль пользователя. - - ``is_admin`` (bool): Флаг административного доступа. - """ - - username: str - password: str - is_admin: bool = False
    - - - -
    -[docs] -class UserLogin(BaseModel): - """Модель авторизации пользователя. - - Атрибуты: - - - ``username`` (str): Имя пользователя. - - ``password`` (str): Пароль пользователя. - """ - - username: str - password: str
    - - - -
    -[docs] -class UserResponse(BaseModel): - """Модель, используемая при возврате сведений о пользователе. - - Атрибуты: - - - ``id`` (int): Идентификатор пользователя. - - ``username`` (str): Имя пользователя. - - ``is_admin`` (bool): Флаг административного доступа. - """ - - id: int - username: str - is_admin: bool
    - - - -
    -[docs] -class Token(BaseModel): - """Модель JWT-токена. - - Атрибуты: - - - ``access_token`` (str): Значение токена (в формате JWT). - - ``token_type`` (str): Тип токена (обычно ``bearer``). - - ``session_id`` (Optional[str]): Идентификатор сессии. - - ``user`` (Optional[UserResponse]): Данные пользователя, если включены в ответ. - """ - - access_token: str - token_type: str - session_id: Optional[str] = None - user: Optional[UserResponse] = None
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/models/network.html b/SRV/docs/_build/html/_modules/models/network.html deleted file mode 100644 index 58d8e9e..0000000 --- a/SRV/docs/_build/html/_modules/models/network.html +++ /dev/null @@ -1,511 +0,0 @@ - - - - - - - - models.network - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for models.network

    -from typing import List, Optional, Union
    -from pydantic import BaseModel
    -
    -
    -
    -[docs] -class IPv4Route(BaseModel): - """Модель маршрута IPv4. - - Атрибуты: - - - ``destination`` (str): IP-адрес назначения. - - ``prefix`` (int): Префикс подсети в формате CIDR. - - ``next_hop`` (str): Адрес следующего узла (маршрутизатор). - - ``metric`` (int): Метрика маршрута. - """ - - destination: str - prefix: int - next_hop: str - metric: int
    - - - -
    -[docs] -class IPv6Route(BaseModel): - """Модель маршрута IPv6. - - Атрибуты: - - - ``destination`` (str): IP-адрес назначения. - - ``prefix`` (int): Префикс подсети в формате CIDR. - - ``next_hop`` (str): Адрес следующего узла. - - ``metric`` (int): Метрика маршрута. - """ - - destination: str - prefix: int - next_hop: str - metric: int
    - - - -
    -[docs] -class IndividualIPConfig(BaseModel): - """Модель индивидуальной конфигурации IP-адреса. - - Атрибуты: - - - ``address`` (str): IP-адрес интерфейса. - - ``routes`` (List[Union[IPv4Route, IPv6Route]]): Список маршрутов. - - ``method`` (Optional[str]): Метод назначения IP. - - ``gateway`` (str): Шлюз по умолчанию. - - ``dns`` (List[str]): Список DNS-серверов. - """ - - address: str - routes: List[Union[IPv4Route, IPv6Route]] - method: Optional[str] - gateway: str - dns: List[str]
    - - - -
    -[docs] -class IPConfig(BaseModel): - """Групповая конфигурация IP-адресов. - - Атрибуты: - - - ``configurations`` (List[IndividualIPConfig]): Индивидуальные IP-конфигурации. - """ - - configurations: List[IndividualIPConfig]
    - - - -
    -[docs] -class NetworkInterface(BaseModel): - """Модель базового сетевого интерфейса. - - Атрибуты: - - - ``name`` (str): Название интерфейса. - - ``type`` (str): Тип устройства. - - ``mac_address`` (str): MAC-адрес. - - ``device_state`` (str): Текущее состояние. - - ``active_connection`` (str): Название активного соединения. - - ``device_mtu`` (str): MTU устройства. - - ``ipv4`` (IPConfig): IPv4-конфигурация. - - ``ipv6`` (IPConfig): IPv6-конфигурация. - - ``container_x`` (int): Положение по оси X на холсте. - - ``container_y`` (int): Положение по оси Y на холсте. - """ - - name: str - type: str - mac_address: str - device_state: str - active_connection: str - device_mtu: str - ipv4: IPConfig - ipv6: IPConfig - container_x: int = 0 - container_y: int = 0
    - - - -
    -[docs] -class WiFiDevice(NetworkInterface): - """Расширенная модель Wi-Fi устройства. - - Атрибуты: - - - ``ssid`` (Optional[str]): Название Wi-Fi сети. - - ``bssid`` (Optional[str]): MAC-адрес точки доступа. - - ``bitrate`` (Optional[int]): Скорость соединения. - - ``strength`` (Optional[int]): Уровень сигнала. - - ``frequency`` (Optional[float]): Рабочая частота. - - ``mode`` (Union[str, int]): Режим работы. - """ - - ssid: Optional[str] = None - bssid: Optional[str] = None - bitrate: Optional[int] = None - strength: Optional[int] = None - frequency: Optional[float] = None - mode: Union[str, int] = None
    - - - -
    -[docs] -class NetworkInterfacesContainer(BaseModel): - """Контейнер для набора сетевых интерфейсов. - - Атрибуты: - - - ``interfaces`` (List[Union[NetworkInterface, WiFiDevice]]): Список интерфейсов. - - ``container_x`` (int): Положение по оси X. - - ``container_y`` (int): Положение по оси Y. - """ - - interfaces: List[Union[NetworkInterface, WiFiDevice]] - container_x: int - container_y: int
    - - - -
    -[docs] -class Activation(BaseModel): - """Модель узла активных интерфейсов. - - Атрибуты: - - - ``id`` (int): Идентификатор ноды. - - ``interfaces`` (List[Union[NetworkInterface, WiFiDevice]]): Активные интерфейсы. - - ``container_x`` (int): Координата X на холсте. - - ``container_y`` (int): Координата Y на холсте. - - ``isOpen`` (bool): Флаг отображения узла на холсте. - """ - - id: int - interfaces: List[Union[NetworkInterface, WiFiDevice]] - container_x: int - container_y: int - isOpen: bool = True
    - - - -
    -[docs] -class Deactivation(BaseModel): - """Модель узла отключённых интерфейсов. - - Атрибуты: - - - ``id`` (int): Идентификатор ноды. - - ``interfaces`` (List[Union[NetworkInterface, WiFiDevice]]): Список отключённых интерфейсов. - - ``container_x`` (int): Координата X на холсте. - - ``container_y`` (int): Координата Y на холсте. - - ``isOpen`` (bool): Флаг отображения узла на холсте. - """ - - id: int - interfaces: List[Union[NetworkInterface, WiFiDevice]] - container_x: int - container_y: int - isOpen: bool = True
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/models/request.html b/SRV/docs/_build/html/_modules/models/request.html deleted file mode 100644 index ea70831..0000000 --- a/SRV/docs/_build/html/_modules/models/request.html +++ /dev/null @@ -1,356 +0,0 @@ - - - - - - - - models.request - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for models.request

    -from pydantic import BaseModel
    -
    -
    -
    -[docs] -class NoteRequest(BaseModel): - """Модель запроса на добавление заметки к устройству. - - Атрибуты: - - - ``note`` (str): Текст заметки. - """ - - note: str
    - - -
    -[docs] -class WifiConnectRequest(BaseModel): - """Модель запроса на подключение к Wi-Fi. - - Атрибуты: - - - ``ssid`` (str): Название точки доступа. - - ``password`` (str): Пароль доступа. - """ - ssid: str - password: str
    - - -
    -[docs] -class WifiDisconnectRequest(BaseModel): - """Модель запроса на отключение от Wi-Fi. - - Атрибуты: - - - ``ssid`` (str): Название точки доступа. - """ - ssid: str
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/models/subnet.html b/SRV/docs/_build/html/_modules/models/subnet.html deleted file mode 100644 index 751d67c..0000000 --- a/SRV/docs/_build/html/_modules/models/subnet.html +++ /dev/null @@ -1,371 +0,0 @@ - - - - - - - - models.subnet - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for models.subnet

    -from pydantic import BaseModel
    -from typing import Optional, List
    -
    -
    -[docs] -class Device(BaseModel): - """Модель устройства, обнаруженного в подсети. - - Атрибуты: - - - ``ip`` (str): IP-адрес устройства. - - ``mac`` (Optional[str]): MAC-адрес устройства. - - ``hostname`` (Optional[str]): Имя хоста. - - ``vendor`` (Optional[str]): Производитель оборудования. - - ``open_ports`` (List[str]): Открытые порты. - - ``status`` (str): Состояние устройства (online/offline). - - ``last_seen`` (Optional[str]): Время последнего обнаружения. - - ``note`` (Optional[str]): Пользовательская заметка. - """ - - ip: str - mac: Optional[str] = None - hostname: Optional[str] = None - vendor: Optional[str] = None - open_ports: List[str] = [] - status: str - last_seen: Optional[str] = None - note: Optional[str] = None
    - - -
    -[docs] -class SubnetScanResult(BaseModel): - """Результат сканирования подсети. - - Атрибуты: - - - ``devices`` (List[Device]): Найденные устройства. - - ``error`` (Optional[str]): Сообщение об ошибке сканирования. - """ - - devices: List[Device] = [] - error: Optional[str] = None
    - - -
    -[docs] -class SubnetScanRequest(BaseModel): - """Параметры запроса на сканирование подсети. - - Атрибуты: - - - ``subnet`` (Optional[str]): CIDR подсети (например, ``192.168.1.0/24``). - """ - subnet: Optional[str] = None
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/models/ufw.html b/SRV/docs/_build/html/_modules/models/ufw.html deleted file mode 100644 index 6028b30..0000000 --- a/SRV/docs/_build/html/_modules/models/ufw.html +++ /dev/null @@ -1,635 +0,0 @@ - - - - - - - - models.ufw - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for models.ufw

    -from typing import List, Optional, Annotated, Union
    -from enum import Enum
    -from pydantic import BaseModel, Field, validator
    -import ipaddress
    -
    -
    -
    -[docs] -class Protocol(str, Enum): - """ - Enum для сетевых протоколов UFW. - """ - - TCP = "tcp" - UDP = "udp" - BOTH = "both" - - @property - def protocols(self) -> List[str]: - """Возвращает список протоколов для использования в команде UFW.""" - return ["tcp", "udp"] if self == Protocol.BOTH else [self.value]
    - - - -
    -[docs] -class Action(str, Enum): - """ - Enum для действий UFW. - - Attributes: - ALLOW: Разрешить трафик - DENY: Запретить трафик без уведомления - REJECT: Запретить трафик с уведомлением отправителю - """ - - ALLOW = "allow" - DENY = "deny" - REJECT = "reject"
    - - - -
    -[docs] -class Direction(str, Enum): - """ - Enum для направления трафика UFW. - - Attributes: - IN: Входящий трафик - OUT: Исходящий трафик - """ - - IN = "in" - OUT = "out"
    - - - -
    -[docs] -class UFWRule(BaseModel): - """Модель правила UFW""" - - action: Action - direction: Direction - from_ip: str - to_ip: str - port: Union[int, str] - protocol: Protocol - comment: Optional[str] = None - -
    -[docs] - @validator("port") - def validate_port(cls, v): - """ - Проверяет корректность порта или диапазона портов. - - Args: - v: Порт (число) или диапазон портов (строка вида "3000:3999") - - Returns: - Union[int, str]: Валидированное значение порта - - Raises: - ValueError: Если порт или диапазон портов некорректен - """ - if isinstance(v, int): - if not (1 <= v <= 65535): - raise ValueError( - f"Порт должен быть в диапазоне 1-65535, получено: {v}") - return v - elif isinstance(v, str): - try: - start, end = map(int, v.split(":")) - if not (1 <= start <= end <= 65535): - raise ValueError - return v - except (ValueError, TypeError): - raise ValueError( - f"Некорректный диапазон портов: {v}. Формат: start:end, где 1 <= start <= end <= 65535" - ) - else: - raise ValueError( - f"Порт должен быть числом или строкой с диапазоном, получено: {type(v)}" - )
    - - -
    -[docs] - @validator("from_ip", "to_ip") - def validate_ip(cls, v): - """Проверяет корректность IP адреса""" - try: - # Пробуем создать объект IP-сети, что автоматически проверит корректность адреса - ipaddress.ip_network(v, strict=False) - return v - except ValueError: - raise ValueError(f"Некорректный IP адрес или подсеть: {v}")
    - - -
    -[docs] - @validator("to_ip") - def validate_ip_version_compatibility(cls, v, values): - """Проверяет совместимость версий IP адресов""" - if "from_ip" not in values: - return v - - # Определяем версии IP - from_ip = ipaddress.ip_network(values["from_ip"], strict=False) - to_ip = ipaddress.ip_network(v, strict=False) - - if isinstance(from_ip, ipaddress.IPv6Network) != isinstance( - to_ip, ipaddress.IPv6Network): - raise ValueError( - "Несовместимые версии IP: нельзя смешивать IPv4 и IPv6 в одном правиле" - ) - - return v
    - - -
    -[docs] - @validator("action", pre=True) - def validate_action(cls, v): - """Приводит значение action к нижнему регистру перед валидацией""" - if isinstance(v, str): - return v.lower() - return v
    - - -
    -[docs] - @validator("protocol", pre=True) - def validate_protocol(cls, v): - """Приводит значение protocol к нижнему регистру перед валидацией""" - if isinstance(v, str): - return v.lower() - return v
    - - -
    -[docs] - def to_ufw_command(self) -> str: - """Преобразует правило в команду UFW.""" - cmd_parts = ["ufw"] - - # Добавляем действие - cmd_parts.append(self.action.value) - - # Добавляем направление - cmd_parts.append(self.direction.value) - - # Добавляем from с IP - cmd_parts.extend(["from", self.from_ip]) - - # Добавляем to с IP - cmd_parts.extend(["to", self.to_ip]) - - # Добавляем порт и протокол - port_str = str( - self.port) # Работает как с числами, так и с диапазонами - cmd_parts.extend(["port", port_str]) - - # Добавляем протокол - proto = self.protocol.value - if proto == "both": - cmd_parts.append("proto tcp/udp") - else: - cmd_parts.extend(["proto", proto]) - - # Добавляем комментарий если есть - if self.comment: - cmd_parts.extend(["comment", f"'{self.comment}'"]) - - return " ".join(cmd_parts)
    - - -
    -[docs] - @classmethod - def from_ufw_output(cls, line: str) -> "UFWRule": - """ - Создает экземпляр UFWRule из строки вывода команды 'ufw status numbered'. - - Args: - line: Строка вывода UFW (например, "[1] 80/tcp ALLOW IN 192.168.1.0/24 # Web Server") - - Returns: - UFWRule: Новый экземпляр правила - """ - import re - - # Регулярное выражение для разбора строки правила UFW - pattern = r"""^\s* - \[\s*(?P<number>\d+)\s*\]\s* - (?P<port>\d+(?::\d+)?)/(?P<protocol>tcp(?:/udp)?|udp)\s+ - (?P<action>ALLOW|DENY|REJECT)\s+(?P<direction>IN|OUT)\s+ - (?P<from_ip>[\w\d\./]+|\bAnywhere\b) - (?:\s+\(v6\))? - (?:\s+\((?:out|in)\))? - \s* - (?:\#\s*(?P<comment>.*?))? - \s*$ - """ - - match = re.match(pattern, line, re.VERBOSE | re.IGNORECASE) - if not match: - raise ValueError( - f"Невозможно разобрать строку правила UFW: {line}") - - groups = match.groupdict() - - # Преобразуем протокол в enum - proto_str = groups["protocol"].lower() - protocol = (Protocol.BOTH if proto_str == "tcp/udp" else - Protocol.UDP if proto_str == "udp" else Protocol.TCP) - - # Преобразуем действие в enum (игнорируем регистр) - action_str = groups["action"].lower() - action = (Action.ALLOW if action_str == "allow" else - Action.DENY if action_str == "deny" else Action.REJECT) - - # Преобразуем направление в enum - direction_str = groups["direction"].lower() - direction = Direction.IN if direction_str == "in" else Direction.OUT - - # Обрабатываем IP адреса - from_ip = groups["from_ip"].strip() - if from_ip.lower() == "anywhere": - from_ip = "0.0.0.0/0" - - # Для исходящих правил меняем местами from и to - to_ip = "0.0.0.0/0" # По умолчанию anywhere - - # Обрабатываем порт - port = groups["port"] - if ":" in port: - # Оставляем как строку для диапазона - port = port.strip() - else: - # Преобразуем в число для одиночного порта - port = int(port) - - # Обрабатываем комментарий - comment = groups.get("comment", - "").strip() if groups.get("comment") else None - - return cls( - action=action, - direction=direction, - from_ip=from_ip, - to_ip=to_ip, - port=port, - protocol=protocol, - comment=comment, - )
    -
    - - - -
    -[docs] -class UFWRulesResponse(BaseModel): - """ - Модель для представления списка правил UFW. - - Attributes: - enabled: Включен ли UFW - rules: Список правил UFW - total_rules: Общее количество правил - """ - - enabled: bool = Field(..., description="Включен ли UFW") - rules: List[UFWRule] = Field(default_factory=list, - description="Список правил UFW") - - @property - def total_rules(self) -> int: - """Возвращает общее количество правил.""" - return len(self.rules)
    - - - -
    -[docs] -class UFWStatus(BaseModel): - """ - Модель для представления статуса UFW. - - Attributes: - enabled: Включен ли UFW - message: Сообщение о статусе - last_checked: Время последней проверки статуса - """ - - enabled: bool = Field(..., description="Включен ли UFW") - message: str = Field(..., description="Сообщение о статусе")
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/models/wifi.html b/SRV/docs/_build/html/_modules/models/wifi.html deleted file mode 100644 index c68745a..0000000 --- a/SRV/docs/_build/html/_modules/models/wifi.html +++ /dev/null @@ -1,361 +0,0 @@ - - - - - - - - models.wifi - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for models.wifi

    -from pydantic import BaseModel
    -from typing import Optional, List
    -
    -
    -
    -[docs] -class WifiAccessPoint(BaseModel): - """Модель Wi-Fi точки доступа. - - Атрибуты: - - - ``ssid`` (Optional[str]): Название сети (может быть скрытым). - - ``bssid`` (str): Уникальный идентификатор точки доступа. - - ``channel`` (Optional[int]): Номер канала. - - ``signal`` (Optional[int]): Уровень сигнала в dBm. - - ``encryption`` (Optional[str]): Тип шифрования (WPA/WPA2/WPA3/открытая). - - ``frequency`` (Optional[str]): Диапазон частот (2.4/5 ГГц). - - ``vendor`` (Optional[str]): Производитель оборудования. - - ``hidden`` (bool): Флаг скрытого SSID. - - ``note`` (Optional[str]): Пользовательская заметка. - """ - - ssid: Optional[str] = None - bssid: str - channel: Optional[int] = None - signal: Optional[int] = None - encryption: Optional[str] = None - frequency: Optional[str] = None - vendor: Optional[str] = None - hidden: bool = False - note: Optional[str] = None
    - - - -
    -[docs] -class WifiScanResult(BaseModel): - """Результат сканирования Wi-Fi. - - Атрибуты: - - - ``access_points`` (List[WifiAccessPoint]): Найденные точки доступа. - """ - - access_points: List[WifiAccessPoint]
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/services/arp_service.html b/SRV/docs/_build/html/_modules/services/arp_service.html deleted file mode 100644 index d311770..0000000 --- a/SRV/docs/_build/html/_modules/services/arp_service.html +++ /dev/null @@ -1,523 +0,0 @@ - - - - - - - - services.arp_service - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for services.arp_service

    -"""
    -Сервис низкоуровневого ARP-сканирования локальной сети.
    -
    -Назначение:
    -
    -- Обнаружение активных узлов в пределах сетей хоста путём широковещательных ARP-запросов от имени выбранного интерфейса.
    -- Помощь сервисам более высокого уровня (например, IPService) при проверке занятости адресов перед применением конфигураций.
    -
    -Особенности реализации:
    -
    -- Определяет подключённые сети интерфейса через `netifaces` и строит CIDR для сканирования.
    -- Формирует ARP-пакеты с помощью `scapy` (Ether/ARP) и отправляет их с таймаутом.
    -- Добавляет локальный адрес интерфейса в результирующий список клиентов.
    -
    -Требования/ограничения:
    -
    -- Для отправки ARP-кадров могут потребоваться повышенные привилегии или capability на сырой сокет.
    -"""
    -import os
    -import logging
    -from fastapi import Depends
    -import netifaces
    -from netaddr import IPNetwork
    -from utils.i18n import get_translations, _
    -from babel.support import Translations
    -
    -logger = logging.getLogger(__name__)
    -
    -try:
    -    from scapy.layers.l2 import ARP, Ether
    -    from scapy.sendrecv import srp
    -except Exception as exc:  # pragma: no cover - fallback for doc builds
    -    if os.getenv("SPHINX_BUILD"):
    -        ARP = Ether = None  # type: ignore
    -
    -        def srp(*args, **kwargs):
    -            raise RuntimeError("scapy is unavailable during documentation build") from exc
    -    else:
    -        raise
    -
    -
    -[docs] -class NetworkScanner: - """Инициализация сетевого сканера. - - Предоставляет методы для сканирования сети с использованием ARP-запросов и - вывода информации о клиентах. - """ - - def __init__(self, interface=None, translations: Translations = Depends(get_translations())): - """Инициализация параметров сетевого сканера. - - Args: - interface (str, optional): Название сетевого интерфейса. По умолчанию - используется интерфейс по умолчанию из netifaces.gateways(). - translations: Объект переводов для текущего языка. - - Инициализирует интерфейс, информацию об IP-адресах и локальный MAC-адрес. - """ - self.translations = translations - self.interface = None - self.ip_info = [] - self.networks = [] - self.local_mac = None - - try: - candidate_interface = interface - if not candidate_interface: - gateways = netifaces.gateways() - default_gateway = gateways.get("default", {}).get(netifaces.AF_INET) - if default_gateway: - candidate_interface = default_gateway[1] - else: - for iface in netifaces.interfaces(): - if iface == "lo": - continue - addrs = netifaces.ifaddresses(iface) - if netifaces.AF_INET in addrs and addrs[netifaces.AF_INET]: - candidate_interface = iface - break - - if candidate_interface: - self.interface = candidate_interface - addresses = netifaces.ifaddresses(self.interface) - self.ip_info = addresses.get(netifaces.AF_INET, []) - self.networks = [ - IPNetwork( - f"{ip['addr']}/{ip['netmask']}" - ) for ip in self.ip_info if ip.get("addr") and ip.get("netmask") - ] - link_info = addresses.get(netifaces.AF_LINK, []) - if link_info: - self.local_mac = link_info[0].get("addr") - else: - logger.warning( - "NetworkScanner: IPv4 интерфейс не найден, сканирование будет недоступно" - ) - except Exception as exc: - if os.getenv("SPHINX_BUILD"): - self.interface = interface or "eth0" - self.ip_info = [] - self.networks = [] - self.local_mac = "00:00:00:00:00:00" - logger.warning( - "NetworkScanner falling back to mocked interface during documentation build: %s", - exc, - ) - else: - logger.error("NetworkScanner инициализация завершилась ошибкой: %s", exc) - raise - - def _create_arp_packet(self, target_ip): - """Создаёт ARP-пакет для отправки на указанный IP-адрес. - - Args: - target_ip (str): Целевой IP-адрес или подсеть для сканирования. - - Returns: - scapy.packet.Packet: Сформированный ARP-пакет с Ethernet-заголовком. - """ - arp = ARP(pdst=target_ip) - ether = Ether(dst="ff:ff:ff:ff:ff:ff") - return ether / arp - -
    -[docs] - def scan_network(self, attempts=3, timeout=2): - """Сканирует сеть для обнаружения активных клиентов. - - Args: - attempts (int, optional): Количество попыток отправки ARP-запросов. - По умолчанию 3. - timeout (int, optional): Таймаут ожидания ответа в секундах. - По умолчанию 2. - - Returns: - List[dict]: Список словарей с ключами "ip" и "mac", представляющих - обнаруженных клиентов, включая локальные IP-адреса. - - Note: - Учитывает локальные IP-адреса интерфейса и удаляет дубликаты. - """ - if not self.interface or not self.networks or ARP is None or Ether is None: - fallback_clients = [] - if self.ip_info: - for ip_info in self.ip_info: - fallback_clients.append({ - "ip": ip_info.get("addr"), - "mac": self.local_mac, - }) - return [client for client in fallback_clients if client["ip"]] - - all_clients = [] - - for network in self.networks: - target_ip = f"{network.network}/{network.prefixlen}" - packet = self._create_arp_packet(target_ip) - clients = [] - - for _ in range(attempts): - result = srp(packet, - timeout=timeout, - iface=self.interface, - verbose=0)[0] - for _, received in result: - client = {"ip": received.psrc, "mac": received.hwsrc} - if client not in clients: - clients.append(client) - - all_clients.extend(clients) - - for ip_info in self.ip_info: - if not ip_info.get("addr"): - continue - local_client = { - "ip": ip_info["addr"], - "mac": self.local_mac, - } - if local_client not in all_clients: - all_clients.append(local_client) - - unique_clients = {tuple(client.items()) for client in all_clients} - return [dict(client) for client in unique_clients]
    - - -
    -[docs] - def print_clients(self, clients): - """Выводит список адресов клиентов в формате таблицы. - - Args: - clients (List[dict]): Список словарей с ключами "ip" и "mac", - представляющих клиентов. - - Выводит IP-адреса и MAC-адреса в отсортированном по IP порядке. - """ - print(self.translations.gettext("Доступные устройства в сети:")) - print(self.translations.gettext("IP") + " " * 18 + self.translations.gettext("MAC")) - for client in sorted(clients, key=lambda x: x["ip"]): - print(f"{client['ip']:<16} {client['mac']}")
    -
    - - -# Оставил нативный запуск сервиса для тестов -if __name__ == "__main__": - scanner = NetworkScanner() - clients = scanner.scan_network() - scanner.print_clients(clients) -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/services/auth_service.html b/SRV/docs/_build/html/_modules/services/auth_service.html deleted file mode 100644 index 34e4d34..0000000 --- a/SRV/docs/_build/html/_modules/services/auth_service.html +++ /dev/null @@ -1,492 +0,0 @@ - - - - - - - - services.auth_service - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for services.auth_service

    -from jose import JWTError, jwt
    -from datetime import datetime, timedelta
    -from fastapi import HTTPException, Depends, Request
    -from fastapi.security import OAuth2PasswordBearer
    -from models.auth import UserCreate, UserLogin, UserResponse, Token
    -from storage.json_storage import JsonStorage
    -from storage.session_storage import SessionStorage
    -from typing import Optional
    -import configparser
    -import os
    -import logging
    -from utils.i18n import get_translations, _
    -from babel.support import Translations
    -
    -logging.basicConfig(level=logging.INFO)
    -logger = logging.getLogger(__name__)
    -
    -CONFIG_PATH = os.getenv("GONETS_CONFIG_PATH", "/etc/gonets/config.ini")
    -config = configparser.ConfigParser()
    -read_files = config.read(CONFIG_PATH)
    -
    -if "JWT" in config:
    -    SECRET_KEY = config["JWT"]["secret_key"]
    -elif os.getenv("SPHINX_BUILD"):
    -    logger.warning("JWT secret not found; using dummy value for documentation build")
    -    SECRET_KEY = "sphinx-placeholder-secret"
    -else:
    -    raise RuntimeError(f"Configuration file {CONFIG_PATH} not found or missing [JWT] section")
    -
    -ALGORITHM = "HS256"
    -ACCESS_TOKEN_EXPIRE_MINUTES = 30
    -
    -oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/auth/login")
    -
    -
    -[docs] -class AuthService: - """Сервис для регистрации, авторизации и управления сессиями""" - - def __init__(self, translations: Translations = Depends(get_translations())): - self.storage = JsonStorage() - self.session_storage = SessionStorage() - self.translations = translations - -
    -[docs] - def create_access_token(self, data: dict) -> str: - """Создаёт токен""" - to_encode = data.copy() - expire = datetime.utcnow() + timedelta( - minutes=ACCESS_TOKEN_EXPIRE_MINUTES) - to_encode.update({"exp": expire}) - encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM) - return encoded_jwt
    - - -
    -[docs] - def verify_token(self, token: str) -> Optional[dict]: - """Проверяет токен""" - try: - payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM]) - username: str = payload.get("sub") - if username is None: - return None - return {"username": username} - except JWTError: - return None
    - - -
    -[docs] - def register(self, user: UserCreate) -> UserResponse: - """Регистрирует нового пользователя""" - try: - db_user = self.storage.create_user(user) - return db_user - except ValueError as e: - logger.error( - f"Error registering user {user.username}: {str(e)}" - ) - raise HTTPException(status_code=400, detail=self.translations.gettext(str(e))) - except Exception as e: - logger.error( - f"Error registering user {user.username}: {type(e).__name__} - {str(e)}" - ) - raise HTTPException(status_code=500, detail=self.translations.gettext("Ошибка регистрации"))
    - - -
    -[docs] - def login(self, user: UserLogin, client_id: str) -> dict: - """Авторизует пользователя, создаёт сессию и возвращает токен""" - try: - db_user = self.storage.get_user_by_username(user.username) - if not db_user: - logger.error(f"User {user.username} not found") - raise HTTPException(status_code=401, detail=self.translations.gettext("Неверный логин или пароль")) - if not self.storage.verify_password(user.password, db_user["password_hash"]): - logger.error( - f"Invalid password for user {user.username}") - raise HTTPException(status_code=401, detail=self.translations.gettext("Неверный логин или пароль")) - access_token = self.create_access_token( - data={"sub": user.username}) - session_id = self.session_storage.create_session( - user.username, access_token, client_id) - logger.info(f"User {user.username} successfully logged in") - return { - "access_token": access_token, - "token_type": "bearer", - "session_id": session_id, - "user": UserResponse(id=db_user["id"], username=db_user["username"], is_admin=db_user["is_admin"]), - } - except Exception as e: - logger.error( - f"Error logging in user {user.username}: {type(e).__name__} - {str(e)}" - ) - raise HTTPException(status_code=500, detail=self.translations.gettext("Ошибка авторизации"))
    - - -
    -[docs] - def get_current_user( - self, token: str = Depends(oauth2_scheme)) -> UserResponse: - """Получает текущего пользователя по токену""" - credentials = self.verify_token(token) - if not credentials: - logger.error("Invalid or expired token") - raise HTTPException(status_code=401, detail=self.translations.gettext("Неверный токен")) - username = credentials["username"] - db_user = self.storage.get_user_by_username(username) - if not db_user: - logger.error(f"User {username} not found") - raise HTTPException(status_code=401, detail=self.translations.gettext("Пользователь не найден")) - return UserResponse(id=db_user["id"], username=db_user["username"], is_admin=db_user["is_admin"])
    - - -
    -[docs] - def get_user_by_session(self, client_id: str) -> dict: - """Получает пользователя и токен по client_id""" - session = self.session_storage.get_latest_session(client_id) - if not session: - logger.error( - f"Session for client_id {client_id} not found or expired") - raise HTTPException(status_code=401, detail=self.translations.gettext("Сессия недействительна")) - username = session["username"] - token = session["token"] - db_user = self.storage.get_user_by_username(username) - if not db_user: - logger.error(f"User {username} not found") - raise HTTPException(status_code=401, detail=self.translations.gettext("Пользователь не найден")) - return { - "user": - UserResponse(id=db_user["id"], username=db_user["username"], is_admin=db_user["is_admin"]), - "access_token": token - }
    - - -
    -[docs] - def logout(self, client_id: str): - """Выполняет выход из системы, удаляя последнюю сессию для client_id""" - try: - session = self.session_storage.get_latest_session(client_id) - if session: - self.session_storage.delete_session(session["session_id"]) - logger.info( - f"User successfully logged out for client_id {client_id}" - ) - return {"message": self.translations.gettext("Успешный выход из системы")} - except Exception as e: - logger.error( - f"Error logging out: {type(e).__name__} - {str(e)}") - raise HTTPException(status_code=500, detail=self.translations.gettext("Ошибка при выходе из системы"))
    -
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/services/connect_service.html b/SRV/docs/_build/html/_modules/services/connect_service.html deleted file mode 100644 index df624b4..0000000 --- a/SRV/docs/_build/html/_modules/services/connect_service.html +++ /dev/null @@ -1,567 +0,0 @@ - - - - - - - - services.connect_service - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for services.connect_service

    -"""
    -Сервис управления подключениями Wi-Fi через `nmcli`.
    -
    -Назначение:
    -
    -- Предоставляет операции подключения/отключения к точкам доступа и проверки текущего статуса, ориентируясь на системный NetworkManager.
    -
    -Поведение:
    -
    -- Автоматически определяет активный Wi-Fi-интерфейс.
    -- Валидирует наличие SSID в листинге перед подключением и интерпретирует частые ошибки `nmcli` (неверный пароль, отсутствующая сеть и т.п.).
    -
    -Ограничения:
    -
    -- Требуются права для управления сетевыми соединениями в системе.
    -- В окружениях без NetworkManager команды `nmcli` будут недоступны.
    -"""
    -import subprocess
    -import logging
    -from typing import Tuple, Optional
    -from utils.i18n import get_translations, _
    -from babel.support import Translations
    -from fastapi import Depends
    -
    -logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s")
    -logger = logging.getLogger(__name__)
    -
    -
    -[docs] -class WifiConnectionService: - """Сервис для управления подключением к Wi-Fi сетям с использованием nmcli. - - Предоставляет методы для подключения, отключения и проверки статуса Wi-Fi соединений. - """ - - def __init__(self, translations: Optional[Translations] = None): - """Инициализирует сервис Wi-Fi. - - Автоматически определяет доступный Wi-Fi-интерфейс и сохраняет его имя. - """ - self.interface = self._get_wifi_interface() - if translations is None: - try: - self.translations = Translations.load("locales", ["ru"], "messages") - except Exception: - self.translations = Translations() - else: - self.translations = translations - - def _get_wifi_interface(self) -> str: - """Автоматически определяет Wi-Fi-интерфейс. - - Returns: - str: Название Wi-Fi-интерфейса (например, "wlan0") или пустая строка, - если интерфейс не найден или Wi-Fi отключён. - - Raises: - Exception: Если произошла ошибка при выполнении команд nmcli. - """ - try: - result = subprocess.run( - ["nmcli", "radio", "wifi"], capture_output=True, text=True - ) - if "enabled" not in result.stdout.lower(): - logger.error("Wi-Fi radio is disabled") - return "" - - interfaces_output = subprocess.run( - ["nmcli", "device", "status"], capture_output=True, text=True - ).stdout - - for line in interfaces_output.splitlines(): - parts = line.split() - if len(parts) < 2: - continue - device_name, device_type = parts[0], parts[1] - if device_type.lower() == "wifi": - logger.info(f"Using Wi-Fi interface: {device_name}") - return device_name - - logger.warning("Wi-Fi interface not found in `nmcli device status` output") - return "" - except Exception as e: - logger.error(f"Error detecting Wi-Fi interface: {str(e)}") - return "" - -
    -[docs] - def connect(self, ssid: str, password: str) -> Tuple[bool, Optional[str]]: - """Подключается к Wi-Fi сети по SSID и паролю. - - Args: - ssid (str): Идентификатор сети Wi-Fi. - password (str): Пароль для подключения. - - Returns: - Tuple[bool, Optional[str]]: Кортеж (успех, сообщение об ошибке). - - Успех: (True, None). - - Ошибка: (False, сообщение об ошибке). - - Raises: - subprocess.CalledProcessError: Если команда nmcli завершилась с ошибкой. - Exception: Если произошла неизвестная ошибка при выполнении. - """ - try: - if not self.interface: - return False, self.translations.gettext("Wi-Fi-интерфейс не доступен") - - result = subprocess.run( - ["nmcli", "-f", "SSID", "device", "wifi", "list"], - capture_output=True, - text=True, - ) - if ssid not in result.stdout: - return False, self.translations.gettext("Сеть с SSID {ssid} не найдена в списке доступных сетей").format(ssid=ssid) - - def run_connect() -> subprocess.CompletedProcess[str]: - cmd = [ - "nmcli", - "device", - "wifi", - "connect", - ssid, - "ifname", - self.interface, - ] - if password: - cmd.extend(["password", password]) - return subprocess.run(cmd, capture_output=True, text=True, check=False) - - process = run_connect() - if process.returncode != 0: - error_msg = process.stderr.lower() - key_mgmt_error = ( - "secrets were required" in error_msg - or "authentication failed" in error_msg - or "802-11-wireless-security.psk" in error_msg - or "key-mgmt" in error_msg - ) - if key_mgmt_error: - subprocess.run( - ["nmcli", "connection", "delete", "id", ssid], - capture_output=True, - text=True, - ) - retry_process = run_connect() - if retry_process.returncode == 0: - logger.info(f"Successfully connected to network {ssid} after profile reset") - return True, None - error_msg = retry_process.stderr.lower() - if ( - "secrets were required" in error_msg - or "authentication failed" in error_msg - or "802-11-wireless-security.psk" in error_msg - or "key-mgmt" in error_msg - ): - return False, self.translations.gettext("Ошибка подключения к {ssid}: Неверный пароль или тип безопасности").format(ssid=ssid) - elif "no network with ssid" in error_msg: - return False, self.translations.gettext("Ошибка подключения к {ssid}: Сеть с SSID {ssid} недоступна или неверно указана").format(ssid=ssid) - else: - return False, self.translations.gettext("Ошибка подключения к {ssid}: {error}").format(ssid=ssid, error=retry_process.stderr) - elif "no network with ssid" in error_msg: - return False, self.translations.gettext("Ошибка подключения к {ssid}: Сеть с SSID {ssid} недоступна или неверно указана").format(ssid=ssid) - else: - return False, self.translations.gettext("Ошибка подключения к {ssid}: {error}").format(ssid=ssid, error=process.stderr) - - logger.info(f"Successfully connected to network {ssid}") - return True, None - except subprocess.CalledProcessError as e: - logger.error(f"Error connecting to {ssid}: {e.stderr}") - error_msg = e.stderr.lower() - if "secrets were required" in error_msg or "authentication failed" in error_msg or "802-11-wireless-security.psk: недействительное свойство" in e.stderr: - return False, self.translations.gettext("Ошибка подключения к {ssid}: Неверный пароль").format(ssid=ssid) - elif "no network with ssid" in error_msg: - return False, self.translations.gettext("Ошибка подключения к {ssid}: Сеть с SSID {ssid} недоступна или неверно указана").format(ssid=ssid) - return False, self.translations.gettext("Ошибка подключения к {ssid}: {error}").format(ssid=ssid, error=e.stderr) - except Exception as e: - logger.error(f"Unknown error connecting to {ssid}: {str(e)}") - return False, self.translations.gettext("Ошибка подключения к {ssid}: Неизвестная ошибка - {error}").format(ssid=ssid, error=str(e))
    - - -
    -[docs] - def disconnect(self, ssid: str) -> Tuple[bool, Optional[str]]: - """Отключается от Wi-Fi сети по указанному SSID. - - Args: - ssid (str): Идентификатор сети Wi-Fi для отключения. - - Returns: - Tuple[bool, Optional[str]]: Кортеж (успех, сообщение об ошибке). - - Успех: (True, None или сообщение, если подключение не найдено). - - Ошибка: (False, сообщение об ошибке). - - Raises: - subprocess.CalledProcessError: Если команда nmcli завершилась с ошибкой. - Exception: Если произошла неизвестная ошибка при выполнении. - """ - try: - if not self.interface: - return False, self.translations.gettext("Wi-Fi-интерфейс не доступен") - result = subprocess.run(["nmcli", "connection", "show", "--active"], capture_output=True, text=True) - active_connections = result.stdout.strip().splitlines() - if not active_connections: - logger.info(f"No active connections for SSID {ssid}") - return True, self.translations.gettext("Нет активного подключения для SSID {ssid}").format(ssid=ssid) - for conn in active_connections: - conn_details = conn.split() - if len(conn_details) > 1: - conn_name = conn_details[0] - conn_info = subprocess.run(["nmcli", "connection", "show", conn_name], capture_output=True, text=True).stdout - if "802-11-wireless.ssid:" in conn_info and ssid in conn_info: - subprocess.run(["nmcli", "connection", "down", conn_name], capture_output=True, text=True, check=True) - logger.info(f"Disconnected from SSID {ssid}") - return True, None - logger.warning(f"Active connection with SSID {ssid} not found") - return True, self.translations.gettext("Активное подключение с SSID {ssid} не найдено").format(ssid=ssid) - except subprocess.CalledProcessError as e: - logger.error(f"Error disconnecting from {ssid}: {e.stderr}") - return False, self.translations.gettext("Ошибка отключения от {ssid}: {error}").format(ssid=ssid, error=e.stderr) - except Exception as e: - logger.error(f"Unknown error disconnecting from {ssid}: {str(e)}") - return False, self.translations.gettext("Ошибка отключения от {ssid}: {error}").format(ssid=ssid, error=str(e))
    - - -
    -[docs] - def get_status(self) -> Tuple[bool, Optional[str]]: - """Проверяет статус текущего подключения к Wi-Fi. - - Returns: - Tuple[bool, Optional[str]]: Кортеж (успех, SSID или сообщение об ошибке). - - Успех: (True, SSID текущей сети). - - Ошибка или отсутствие подключения: (False, сообщение об ошибке). - - Raises: - Exception: Если произошла ошибка при выполнении команды nmcli. - """ - try: - if not self.interface: - return False, self.translations.gettext("Wi-Fi-интерфейс не доступен") - result = subprocess.run(["nmcli", "connection", "show", "--active"], capture_output=True, text=True) - if result.stdout.strip(): - ssid = result.stdout.splitlines()[1].split()[0] - logger.info(f"Current network: {ssid}") - return True, ssid - return False, self.translations.gettext("Не подключено к Wi-Fi") - except Exception as e: - logger.error(f"Error checking status: {str(e)}") - return False, self.translations.gettext("Ошибка проверки статуса: {error}").format(error=str(e))
    -
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/services/firewalld_service.html b/SRV/docs/_build/html/_modules/services/firewalld_service.html deleted file mode 100644 index 498bfa9..0000000 --- a/SRV/docs/_build/html/_modules/services/firewalld_service.html +++ /dev/null @@ -1,522 +0,0 @@ - - - - - - - - services.firewalld_service - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for services.firewalld_service

    -"""
    -Сервис для управления firewalld через D-Bus.
    -
    -Назначение:
    -- Обёртка над интерфейсами `org.fedoraproject.FirewallD1` для выполнения
    -  типовых операций по зонам: просмотр/изменение дефолтной зоны, добавление и
    -  удаление сервисов, портов, источников, перезагрузка конфигурации.
    -
    -Примечания:
    -- Используется `pydbus.SystemBus` для доступа к системной шине.
    -- Методы генерируют дружелюбные исключения при ошибках, содержащие контекст
    -  операции.
    -"""
    -from re import DEBUG
    -from typing import Dict, List, Optional
    -
    -from pydbus import SystemBus
    -
    -DEBUG = True
    -
    -
    -
    -[docs] -class FirewalldService: - - def __init__(self): - self.bus = SystemBus() - self.proxy = self.bus.get("org.fedoraproject.FirewallD1", - "/org/fedoraproject/FirewallD1") - -
    -[docs] - def get_zones(self) -> List[str]: - """Get list of all zones.""" - try: - return self.proxy.getZones() - except Exception as e: - raise Exception(f"Failed to get zones: {str(e)}")
    - - -
    -[docs] - def get_default_zone(self) -> str: - """Get the default zone.""" - try: - return self.proxy.getDefaultZone() - except Exception as e: - raise Exception(f"Failed to get default zone: {str(e)}")
    - - -
    -[docs] - def set_default_zone(self, zone: str) -> None: - """Set the default zone.""" - try: - self.proxy.setDefaultZone(zone) - except Exception as e: - raise Exception(f"Failed to set default zone to {zone}: {str(e)}")
    - - -
    -[docs] - def add_service(self, - zone: str, - service: str, - timeout: Optional[int] = 0) -> None: - """Add a service to a zone.""" - try: - self.proxy.addService(zone, service, timeout) - except Exception as e: - raise Exception( - f"Failed to add service {service} to zone {zone}: {str(e)}")
    - - -
    -[docs] - def remove_service(self, zone: str, service: str) -> None: - """Remove a service from a zone.""" - try: - self.proxy.removeService(zone, service) - except Exception as e: - raise Exception( - f"Failed to remove service {service} from zone {zone}: {str(e)}" - )
    - - -
    -[docs] - def get_services(self, zone: str) -> List[str]: - """Get list of services in a zone.""" - try: - return self.proxy.getServices(zone) - except Exception as e: - raise Exception( - f"Failed to get services for zone {zone}: {str(e)}")
    - - -
    -[docs] - def add_port(self, - zone: str, - port: int, - protocol: str, - timeout: Optional[int] = 0) -> None: - """Add a port to a zone.""" - try: - if DEBUG: - print(f"Adding port {port}/{protocol} to zone {zone}") - print(f"Timeout: {timeout}") - # Get the zone interface - zone_proxy = self.bus.get("org.fedoraproject.FirewallD1", - "/org/fedoraproject/FirewallD1") - zone_iface = zone_proxy["org.fedoraproject.FirewallD1.zone"] - # Convert port to string - port_str = str(port) - # Convert timeout to integer - timeout_int = int(timeout) if timeout is not None else 0 - # Call addPort with the correct signature (sssi) - zone_iface.addPort(zone, port_str, protocol, timeout_int) - except Exception as e: - raise Exception( - f"Failed to add port {port}/{protocol} to zone {zone}: {str(e)}" - )
    - - -
    -[docs] - def remove_port(self, zone: str, port: int, protocol: str) -> None: - """Remove a port from a zone.""" - try: - port_str = f"{port}/{protocol}" - self.proxy.removePort(zone, port_str) - except Exception as e: - raise Exception( - f"Failed to remove port {port}/{protocol} from zone {zone}: {str(e)}" - )
    - - -
    -[docs] - def get_ports(self, zone: str) -> List[str]: - """Get list of ports in a zone.""" - try: - ports = self.proxy.getPorts(zone) - # Convert port list items to strings in format "port/protocol" - return [f"{port[0]}/{port[1]}" for port in ports] - except Exception as e: - raise Exception(f"Failed to get ports for zone {zone}: {str(e)}")
    - - -
    -[docs] - def add_source(self, zone: str, source: str) -> None: - """Add a source to a zone.""" - try: - self.proxy.addSource(zone, source) - except Exception as e: - raise Exception( - f"Failed to add source {source} to zone {zone}: {str(e)}")
    - - -
    -[docs] - def remove_source(self, zone: str, source: str) -> None: - """Remove a source from a zone.""" - try: - self.proxy.removeSource(zone, source) - except Exception as e: - raise Exception( - f"Failed to remove source {source} from zone {zone}: {str(e)}")
    - - -
    -[docs] - def get_sources(self, zone: str) -> List[str]: - """Get list of sources in a zone.""" - try: - return self.proxy.getSources(zone) - except Exception as e: - raise Exception(f"Failed to get sources for zone {zone}: {str(e)}")
    - - -
    -[docs] - def reload(self) -> None: - """Reload firewall rules.""" - try: - self.proxy.reload() - except Exception as e: - raise Exception(f"Failed to reload firewall rules: {str(e)}")
    - - -
    -[docs] - def get_zone_settings(self, zone: str) -> Dict: - """Get all settings for a zone.""" - try: - return { - "services": self.get_services(zone), - "ports": self.get_ports(zone), - "sources": self.get_sources(zone), - } - except Exception as e: - raise Exception( - f"Failed to get zone settings for {zone}: {str(e)}")
    -
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/services/ip_service.html b/SRV/docs/_build/html/_modules/services/ip_service.html deleted file mode 100644 index 991df10..0000000 --- a/SRV/docs/_build/html/_modules/services/ip_service.html +++ /dev/null @@ -1,468 +0,0 @@ - - - - - - - - services.ip_service - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for services.ip_service

    -"""
    -Сервис проверки и применения IP-настроек через NetworkManager (D-Bus).
    -
    -Назначение:
    -- Перед применением конфигурации проверяет занятость IP адреса, сканируя сегмент
    -  сети средствами ARP (через `NetworkScanner`).
    -- Применяет изменения профиля подключения через `sdbus_async.networkmanager` и
    -  выполняет переподключение интерфейса.
    -
    -Требования/ограничения:
    -- Доступ к системной шине D-Bus и права на изменения сетевых профилей.
    -- Структура входных данных должна соответствовать схеме `ipv4_updates` для
    -  корректного обновления вложенных полей у профиля.
    -"""
    -from typing import Dict, Any
    -from sdbus_async.networkmanager import (
    -    NetworkManager,
    -    NetworkManagerSettings,
    -    NetworkConnectionSettings,
    -    NetworkDeviceGeneric,
    -)
    -import sdbus
    -from sdbus_async.networkmanager.settings import ConnectionProfile
    -from services.arp_service import NetworkScanner
    -from utils.i18n import get_translations
    -from babel.support import Translations
    -from fastapi import Depends
    -
    -
    -[docs] -class IPService: - """Сервис проверки доступности IP-адреса и применения настроек сети. - - Предоставляет асинхронные методы для проверки занятости IP-адреса с использованием - ARP-сканирования и применения настроек через NetworkManager. - """ - - def __init__(self): - """Инициализирует сервис IP. - - Создаёт объект ARP-сканера и устанавливает системную шину D-Bus как - по умолчанию. - """ - self.arp_scanner = NetworkScanner() - self.bus = sdbus.sd_bus_open_system() - sdbus.set_default_bus(self.bus) - - def _reset_bus(self): - """Перезапускает соединение с системной шиной D-Bus. - - Закрывает текущее соединение и создаёт новое, устанавливая его как - по умолчанию. - """ - new_bus = sdbus.sd_bus_open_system() - sdbus.set_default_bus(new_bus) - if hasattr(self, "bus") and self.bus is not None: - self.bus = None - self.bus = new_bus - -
    -[docs] - async def check_ip_config(self, args: Dict[str, Any], translations: Translations = Depends(get_translations())) -> Dict[str, Any]: - """Проверяет доступность IP-адреса перед его применением. - - Выполняет ARP-сканирование сети для проверки, занят ли указанный IP-адрес. - Перезапускает шину D-Bus перед выполнением. - - Args: - args (Dict[str, Any]): Словарь с данными, включая "ipv4_updates" - с полем "ipv4.address-data" для нового IP-адреса. - translations (Translations): Объект переводов. - - Returns: - Dict[str, Any]: Словарь с ключами: - - "available" (bool): Доступен ли IP-адрес. - - "message" (str): Сообщение о результате проверки. - - Raises: - Exception: Если произошла ошибка при сканировании ARP. - """ - self._reset_bus() - clients = self.arp_scanner.scan_network() - new_ip = args["ipv4_updates"]["ipv4.address-data"][0]["address"] - if any(client["ip"] == new_ip for client in clients): - return { - "available": False, - "message": translations.gettext("IP-адрес {ip} уже занят.").format(ip=new_ip) - } - return { - "available": True, - "message": translations.gettext("Настройки сетевого профиля доступны для использования.") - }
    - - -
    -[docs] - async def apply_ip_config(self, args: Dict[str, Any], translations: Translations = Depends(get_translations())) -> None: - """Применяет проверенные настройки IP к указанному соединению. - - Перезапускает шину D-Bus, обновляет настройки соединения через NetworkManager, - отключает и переподключает устройство к сети. - - Args: - args (Dict[str, Any]): Словарь с данными, включая: - - "connection_id" (str): Идентификатор соединения. - - "ipv4_updates" (Dict): Обновления настроек IPv4. - translations (Translations): Объект переводов. - - Raises: - ValueError: Если соединение с указанным ID не найдено. - RuntimeError: Если устройство для интерфейса не найдено. - - Note: - Требуются права для изменения настроек через NetworkManager. - """ - self._reset_bus() - nm = NetworkManager() - settings = NetworkManagerSettings() - connection_paths = await settings.get_connections_by_id( - args["connection_id"]) - - if not connection_paths: - raise ValueError(translations.gettext("Подключение {connection_id} не найдено").format(connection_id=args["connection_id"])) - - connection = NetworkConnectionSettings(connection_paths[0]) - profile = await connection.get_profile() - settings_dict = profile.to_settings_dict() - - for key_path, value in args["ipv4_updates"].items(): - section, *props = key_path.split(".") - current = settings_dict[section] - for prop in props[:-1]: - current = current.setdefault(prop, {}) - current[props[-1]] = value - - new_profile = ConnectionProfile.from_settings_dict(settings_dict) - await connection.update(new_profile.to_dbus()) - print(f"Updated settings for {args['connection_id']}") - - interface_name = settings_dict["connection"]["interface-name"] - devices = await nm.get_devices() - for device_path in devices: - device = NetworkDeviceGeneric(device_path) - if await device.interface == interface_name: - await device.disconnect() - print(f"Disconnected from {interface_name}") - await nm.activate_connection(connection=connection_paths[0], device=device_path) - print(f"Reconnected to {args['connection_id']}") - return - - raise RuntimeError(translations.gettext("Устройство для интерфейса {interface} не найдено").format(interface=interface_name))
    -
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/services/network_service.html b/SRV/docs/_build/html/_modules/services/network_service.html deleted file mode 100644 index 0a79a74..0000000 --- a/SRV/docs/_build/html/_modules/services/network_service.html +++ /dev/null @@ -1,744 +0,0 @@ - - - - - - - - services.network_service - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for services.network_service

    -"""
    -Сервис чтения сетевого состояния через NetworkManager (D-Bus).
    -
    -Назначение:
    -- Предоставляет асинхронные методы для сборки унифицированных моделей
    -  сетевых интерфейсов (Ethernet/Wi-Fi), их IP-конфигураций, а также получения
    -  имени хоста. Используется API-слоем для визуализации и управления.
    -
    -Особенности:
    -- Фильтрация loopback и явно неактивных интерфейсов.
    -- Адаптация данных D-Bus в pydantic-модели (`NetworkInterface`, `WiFiDevice`,
    -  `NetworkInterfacesContainer`).
    -"""
    -from typing import List, Dict, Tuple, Union, Optional
    -from sdbus_async.networkmanager import (
    -    NetworkManager,
    -    NetworkDeviceGeneric,
    -    IPv4Config,
    -    IPv6Config,
    -    NetworkManagerSettings,
    -    NetworkDeviceWireless,
    -    AccessPoint,
    -    DeviceType,
    -)
    -from sdbus import sd_bus_open_system
    -from models.network import (
    -    NetworkInterface,
    -    IPv4Route,
    -    IPv6Route,
    -    IPConfig,
    -    IndividualIPConfig,
    -    NetworkInterfacesContainer,
    -    WiFiDevice,
    -)
    -import subprocess
    -from utils.i18n import get_translations, _
    -from babel.support import Translations
    -from fastapi import Depends
    -
    -
    -[docs] -class NetworkService: - """Сервис для взаимодействия с NetworkManager через D-Bus. - - Предоставляет асинхронные методы для получения информации о сетевых интерфейсах, - их конфигурациях IP, Wi-Fi и состояниях. - """ - - def __init__(self, translations: Translations = Depends(get_translations())): - """Инициализирует сервис NetworkManager. - - Устанавливает системный D-Bus и создаёт объекты для взаимодействия с - NetworkManager и его настройками. - """ - self.system_bus = sd_bus_open_system() - self.nm = NetworkManager(self.system_bus) - self.nm_settings = NetworkManagerSettings(self.system_bus) - self.translations = translations - -
    -[docs] - async def get_ip_method(self, device: NetworkDeviceGeneric, ip_type: str) -> str: - """Получает метод IP (например, "auto", "manual") для указанного устройства. - - Args: - device (NetworkDeviceGeneric): Объект устройства NetworkManager. - ip_type (str): Тип IP (например, "ipv4" или "ipv6"). - - Returns: - str: Метод IP или "unknown" в случае ошибки. - - Raises: - Exception: Если произошла ошибка при получении настроек соединения. - """ - try: - config = await device.get_applied_connection() - settings = config[0].get(ip_type, {}) - return str(settings.get("method", ("s", "unknown"))[1]) - except Exception: - return "unknown"
    - - -
    -[docs] - async def get_connection_name(self, device: NetworkDeviceGeneric) -> str: - """Извлекает имя соединения (GENERAL.CONNECTION) для устройства. - - Args: - device (NetworkDeviceGeneric): Объект устройства NetworkManager. - - Returns: - str: Имя соединения или "unknown" в случае ошибки. - - Raises: - Exception: Если произошла ошибка при получении настроек соединения. - """ - try: - applied_connection = await device.get_applied_connection() - connection_settings = applied_connection[0] - connection_info = connection_settings.get("connection", {}) - return str(connection_info.get("id", ("s", "unknown"))[1]) - except Exception as e: - return "unknown"
    - - -
    -[docs] - async def get_ip_config(self, device: NetworkDeviceGeneric, ip_version: str) -> List[IndividualIPConfig]: - """Получает конфигурацию IP для устройства. - - Args: - device (NetworkDeviceGeneric): Объект устройства NetworkManager. - ip_version (str): Версия IP ("4" или "6"). - - Returns: - List[IndividualIPConfig]: Список конфигураций IP, включая адреса и маршруты. - - Raises: - Exception: Если произошла ошибка при получении данных IP. - """ - configs = [] - device_ip = await getattr(device, f"ip{ip_version}_config") - if device_ip != "/": - ip_config = globals()[f"IPv{ip_version}Config"](device_ip, self.system_bus) - address_data = await ip_config.address_data - for address in address_data: - config = IndividualIPConfig( - address=str(address["address"][1]), - routes=[ - globals()[f"IPv{ip_version}Route"]( - destination=route.get("dest", ("s", "0.0.0.0" if ip_version == "4" else "::"))[1], - prefix=route.get("prefix", ("u", 0))[1], - next_hop=route.get("next-hop", ("s", "0.0.0.0" if ip_version == "4" else "::"))[1], - metric=route.get("metric", ("u", 0))[1], - ) for route in await ip_config.route_data - ], - method=await self.get_ip_method(device, f"ipv{ip_version}"), - gateway=str(await ip_config.gateway), - dns=[ - str(ns["address"][1]) if ip_version == "4" else str(ns) - for ns in await getattr( - ip_config, - "nameserver_data" if ip_version == "4" else "nameservers", - ) - ], - ) - configs.append(config) - return configs
    - - -
    -[docs] - async def get_wifi_info(self, wifi_device: NetworkDeviceWireless) -> Dict[str, Optional[Union[str, int]]]: - """Получает информацию о Wi-Fi устройстве. - - Args: - wifi_device (NetworkDeviceWireless): Объект Wi-Fi устройства NetworkManager. - - Returns: - Dict[str, Optional[Union[str, int]]]: Словарь с данными Wi-Fi (SSID, BSSID, - bitrate, strength, frequency, mode), где значения могут быть None. - - Raises: - Exception: Если произошла ошибка при получении данных точки доступа. - """ - active_ap = await wifi_device.active_access_point - wifi_info = { - "ssid": None, - "bssid": None, - "bitrate": await wifi_device.bitrate, - "strength": None, - "frequency": None, - "mode": None, - } - if active_ap != "/": - ap = AccessPoint(active_ap, self.system_bus) - wifi_info.update({ - "ssid": await ap.ssid, - "bssid": await ap.hw_address, - "strength": await ap.strength, - "frequency": await ap.frequency, - "mode": await ap.mode, - }) - return wifi_info
    - - -
    -[docs] - async def get_network_interfaces( - self, - initial_positions: Dict[str, Tuple[int, int]] = None - ) -> List[Union[NetworkInterface, WiFiDevice]]: - """Получает список сетевых интерфейсов. - - Args: - initial_positions (Dict[str, Tuple[int, int]], optional): Словарь начальных - координат (x, y) для интерфейсов. По умолчанию None (используются (100, 100)). - - Returns: - List[Union[NetworkInterface, WiFiDevice]]: Список объектов интерфейсов, - включая Wi-Fi устройства. - - Исключает интерфейсы типа LOOPBACK и неактивные состояния (state == "10"). - """ - devices_paths = await self.nm.get_devices() - network_interfaces = [] - initial_positions = initial_positions or {} - - for device_path in devices_paths: - generic_device = NetworkDeviceGeneric(device_path, self.system_bus) - interface_name = str(await generic_device.interface) - device_type = DeviceType(await generic_device.device_type).name - - if device_type == "LOOPBACK": - continue - - device_state = str(await generic_device.state) - if device_state == "10": - continue - - common_data = { - "name": interface_name, - "type": device_type, - "device_state": device_state, - "active_connection": await self.get_connection_name(generic_device), - "mac_address": str(await generic_device.hw_address), - "device_mtu": str(await generic_device.mtu), - "ipv4": IPConfig(configurations=await self.get_ip_config(generic_device, "4")), - "ipv6": IPConfig(configurations=await self.get_ip_config(generic_device, "6")), - "x": initial_positions.get(interface_name, (100, 100))[0], - "y": initial_positions.get(interface_name, (100, 100))[1], - } - - if device_type == "WIFI": - wifi_device = NetworkDeviceWireless(device_path, self.system_bus) - wifi_info = await self.get_wifi_info(wifi_device) - network_interfaces.append(WiFiDevice(**common_data, **wifi_info)) - else: - network_interfaces.append(NetworkInterface(**common_data)) - - return network_interfaces
    - - -
    -[docs] - async def get_hostname(self) -> Dict[str, str]: - """Возвращает имя хоста из команды hostname в формате JSON. - - Returns: - Dict[str, str]: Словарь с ключом "hostname" и значением имени хоста. - - Raises: - RuntimeError: Если произошла ошибка при выполнении команды hostname - или обработке вывода. - """ - try: - result = subprocess.run(["hostname"], - capture_output=True, - text=True, - check=True) - hostname = result.stdout.strip() - return {"hostname": hostname} - except subprocess.CalledProcessError as e: - raise RuntimeError(self.translations.gettext("Не удалось выполнить команду hostname: {error}").format(error=str(e))) - except Exception as e: - raise RuntimeError(self.translations.gettext("Ошибка обработки вывода hostname: {error}").format(error=str(e)))
    - - -
    -[docs] - async def get_interfaces_by_state( - self, - state: str, - initial_positions: Dict[str, Tuple[int, int]] = None - ) -> List[NetworkInterface]: - """Получает список интерфейсов по указанному состоянию. - - Args: - state (str): Состояние интерфейса (например, "100" для активных). - initial_positions (Dict[str, Tuple[int, int]], optional): Словарь начальных - координат (x, y) для интерфейсов. По умолчанию None. - - Returns: - List[NetworkInterface]: Список интерфейсов с указанным состоянием. - """ - all_interfaces = await self.get_network_interfaces(initial_positions) - return [ - interface for interface in all_interfaces - if interface.device_state == state - ]
    - - -
    -[docs] - async def get_interfaces_container( - self, - state: Optional[str] = None, - initial_positions: Dict[str, Tuple[int, int]] = None, - container_x: int = 0, - container_y: int = 0, - ) -> NetworkInterfacesContainer: - """Получает объект, содержащий список интерфейсов и координаты контейнера. - - Args: - state (Optional[str], optional): Состояние интерфейсов (например, "100"). - По умолчанию None (все интерфейсы). - initial_positions (Dict[str, Tuple[int, int]], optional): Словарь начальных - координат (x, y) для интерфейсов. По умолчанию None. - container_x (int, optional): Координата X контейнера. По умолчанию 0. - container_y (int, optional): Координата Y контейнера. По умолчанию 0. - - Returns: - NetworkInterfacesContainer: Объект с интерфейсами и координатами контейнера. - """ - if state: - interfaces = await self.get_interfaces_by_state(state, initial_positions) - else: - interfaces = await self.get_network_interfaces(initial_positions) - return NetworkInterfacesContainer(interfaces=interfaces, - container_x=container_x, - container_y=container_y)
    - - -
    -[docs] - async def get_network_interfaces_container( - self, - initial_positions: Optional[Dict[str, Tuple[int, int]]] = None, - ) -> NetworkInterfacesContainer: - """Получает контейнер с сетевыми интерфейсами и координатами контейнера. - - Args: - initial_positions (Optional[Dict[str, Tuple[int, int]]], optional): - Словарь начальных координат (x, y) для интерфейсов. По умолчанию None. - - Returns: - NetworkInterfacesContainer: Объект с интерфейсами и координатами (0, 0). - """ - interfaces = await self.get_network_interfaces(initial_positions) - return NetworkInterfacesContainer(interfaces=interfaces, - container_x=0, - container_y=0)
    - - -
    -[docs] - async def get_activated_interfaces( - self, - initial_positions: Dict[str, Tuple[int, int]] = None - ) -> List[NetworkInterface]: - """Получает список активных сетевых интерфейсов. - - Args: - initial_positions (Dict[str, Tuple[int, int]], optional): Словарь начальных - координат (x, y) для интерфейсов. По умолчанию None. - - Returns: - List[NetworkInterface]: Список активных интерфейсов (state == "100"). - """ - return await self.get_interfaces_by_state("100", initial_positions)
    - - -
    -[docs] - async def get_deactivated_interfaces( - self, - initial_positions: Dict[str, Tuple[int, int]] = None - ) -> List[NetworkInterface]: - """Получает список неактивных сетевых интерфейсов. - - Args: - initial_positions (Dict[str, Tuple[int, int]], optional): Словарь начальных - координат (x, y) для интерфейсов. По умолчанию None. - - Returns: - List[NetworkInterface]: Список интерфейсов с state != "100". - """ - all_interfaces = await self.get_network_interfaces(initial_positions) - return [ - interface for interface in all_interfaces - if interface.device_state != "100" - ]
    - - -
    -[docs] - async def get_activated_interfaces_container( - self, - initial_positions: Dict[str, Tuple[int, int]] = None, - container_x: int = 0, - container_y: int = 0, - ) -> NetworkInterfacesContainer: - """Получает объект, содержащий список активных интерфейсов и координаты контейнера. - - Args: - initial_positions (Dict[str, Tuple[int, int]], optional): Словарь начальных - координат (x, y) для интерфейсов. По умолчанию None. - container_x (int, optional): Координата X контейнера. По умолчанию 0. - container_y (int, optional): Координата Y контейнера. По умолчанию 0. - - Returns: - NetworkInterfacesContainer: Объект с активными интерфейсами и координатами. - """ - return await self.get_interfaces_container("100", initial_positions, container_x, container_y)
    - - -
    -[docs] - async def get_deactivated_interfaces_container( - self, - initial_positions: Dict[str, Tuple[int, int]] = None, - container_x: int = 0, - container_y: int = 0, - ) -> NetworkInterfacesContainer: - """Получает объект, содержащий список неактивных интерфейсов и координаты контейнера. - - Args: - initial_positions (Dict[str, Tuple[int, int]], optional): Словарь начальных - координат (x, y) для интерфейсов. По умолчанию None. - container_x (int, optional): Координата X контейнера. По умолчанию 0. - container_y (int, optional): Координата Y контейнера. По умолчанию 0. - - Returns: - NetworkInterfacesContainer: Объект с неактивными интерфейсами и координатами. - """ - interfaces = await self.get_deactivated_interfaces(initial_positions) - return NetworkInterfacesContainer(interfaces=interfaces, container_x=container_x, container_y=container_y)
    -
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/services/settings_service.html b/SRV/docs/_build/html/_modules/services/settings_service.html deleted file mode 100644 index 5caff6b..0000000 --- a/SRV/docs/_build/html/_modules/services/settings_service.html +++ /dev/null @@ -1,431 +0,0 @@ - - - - - - - - services.settings_service - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for services.settings_service

    -import json
    -import logging
    -from typing import Optional
    -
    -from utils.i18n import get_translations
    -from babel.support import Translations
    -from fastapi import Depends
    -from pathlib import Path
    -
    -logging.basicConfig(level=logging.INFO)
    -logger = logging.getLogger(__name__)
    -
    -
    -[docs] -class SettingsService: - """Сервис для управления настройками и очистки данных сети.""" - - def __init__(self, translations: Translations = Depends(get_translations())): - self.subnet_base_path = "storage/subnets" - self.wifi_file = "storage/wifi/wifi.json" - self.translations = translations - -
    -[docs] - def clear_subnet(self, subnet: Optional[str] = None) -> bool: - """Очищает данные узлов подсети в указанном файле или во всех файлах. - - Args: - subnet (Optional[str]): Подсеть в формате CIDR (например, "10.1.1.0/24"). - Если None, очищает все подсети. - - Returns: - bool: True, если очистка успешна. - - Raises: - Exception: Если произошла ошибка при записи в файл. - """ - try: - if subnet: - file_path = Path(self.subnet_base_path) / f"{subnet.replace('/', '_')}.json" - if file_path.exists(): - with open(file_path, "w") as f: - json.dump([], f) - logger.info(f"Subnet nodes data cleared for {subnet}") - else: - logger.info(f"Subnet file not found for {subnet}, clearing considered successful") - return True - else: - for file_path in Path(self.subnet_base_path).glob("*.json"): - with open(file_path, "w") as f: - json.dump([], f) - logger.info(f"Cleared subnet data in {file_path}") - return True - except FileNotFoundError: - logger.info("No subnet files found, clearing considered successful") - return True - except Exception as e: - logger.error(f"Error clearing subnet nodes: {str(e)}") - raise Exception(self.translations.gettext("Ошибка очистки узлов подсети: {error}").format(error=str(e)))
    - - -
    -[docs] - def clear_wifi(self) -> bool: - """Очищает данные точек доступа Wi-Fi в файле wifi.json. - - Returns: - bool: True, если очистка успешна. - - Raises: - Exception: Если произошла ошибка при записи в файл. - """ - try: - with open(self.wifi_file, "w") as f: - json.dump([], f) - logger.info("Wi-Fi access points data successfully cleared") - return True - except FileNotFoundError: - logger.info("Wi-Fi file not found, clearing considered successful") - return True - except Exception as e: - logger.error(f"Error clearing Wi-Fi access points: {str(e)}") - raise Exception(self.translations.gettext("Ошибка очистки точек доступа Wi-Fi: {error}").format(error=str(e)))
    - - -
    -[docs] - def clear_all_data(self) -> bool: - """Очищает данные узлов всех подсетей и точек доступа Wi-Fi. - - Returns: - bool: True, если очистка успешна. - - Raises: - Exception: Если произошла ошибка при записи в один из файлов. - """ - try: - try: - for file_path in Path(self.subnet_base_path).glob("*.json"): - with open(file_path, "w") as f: - json.dump([], f) - logger.info(f"Cleared subnet data in {file_path}") - except FileNotFoundError: - logger.info("No subnet files found, clearing considered successful") - try: - with open(self.wifi_file, "w") as f: - json.dump([], f) - except FileNotFoundError: - logger.info("Wi-Fi file not found, clearing considered successful") - logger.info("All network data successfully cleared") - return True - except Exception as e: - logger.error(f"Error clearing all network data: {str(e)}") - raise Exception(self.translations.gettext("Ошибка очистки всех сетевых данных: {error}").format(error=str(e)))
    -
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/services/subnet_service.html b/SRV/docs/_build/html/_modules/services/subnet_service.html deleted file mode 100644 index 03c03b3..0000000 --- a/SRV/docs/_build/html/_modules/services/subnet_service.html +++ /dev/null @@ -1,1095 +0,0 @@ - - - - - - - - services.subnet_service - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for services.subnet_service

    -from scapy.config import conf
    -from mac_vendor_lookup import MacLookup
    -from typing import List, Optional, Tuple, Dict
    -import socket
    -import logging
    -import netifaces
    -import ipaddress
    -from concurrent.futures import ThreadPoolExecutor
    -import time
    -from functools import lru_cache
    -import json
    -from pathlib import Path
    -from datetime import datetime, timedelta
    -import subprocess
    -
    -from scapy.layers.l2 import ARP, Ether
    -from scapy.sendrecv import srp
    -from utils.i18n import get_translations
    -from babel.support import Translations
    -from fastapi import Depends
    -
    -from models.subnet import SubnetScanResult, Device
    -
    -logging.basicConfig(
    -    level=logging.INFO,
    -    format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
    -)
    -logger = logging.getLogger(__name__)
    -
    -
    -[docs] -def get_subnet_service(translations: Translations = Depends(get_translations())): - """Фабричная функция для создания экземпляра SubnetService. - - Использует зависимости FastAPI для получения объекта переводов и возвращает - экземпляр SubnetService с текущей локализацией. - - Args: - translations (Translations): Объект переводов для текущего языка. - - Returns: - SubnetService: Экземпляр сервиса для работы с подсетями. - """ - return SubnetService(translations)
    - - -
    -[docs] -class NetworkScanner: - """Класс для сканирования подсети с использованием ARP-запросов. - - Назначение: - Обнаруживает активные устройства в локальной сети, отправляя широковещательные - ARP-запросы по указанной подсети и собирая ответы (IP, MAC). - - Детали реализации: - - Использует `scapy` (`Ether` + `ARP`) для генерации пакетов и `srp` для - отправки/получения на канальном уровне от имени заданного интерфейса. - - Таймаут ожидания ответа короткий (2 секунды), ориентирован на интерактивные - сценарии UI. - - Ограничения и замечания: - - Требуются права для отправки низкоуровневых пакетов (capabilities/root). - - В сетях с фильтрацией широковещания количество обнаруженных устройств - может быть ограничено. - """ - def __init__(self, interface: str, translations: Translations): - """Инициализирует сканер сети. - - Устанавливает интерфейс для сканирования и объект переводов. - - Args: - interface (str): Имя сетевого интерфейса (например, "wlp0s20f3"). - translations (Translations): Объект переводов для текущего языка. - """ - self.interface = interface - conf.iface = interface - self.translations = translations - -
    -[docs] - def scan(self, subnet: str) -> List[Tuple[str, str]]: - """Сканирует подсеть с использованием ARP-запросов. - - Отправляет ARP-пакеты для обнаружения активных устройств и возвращает - список кортежей (IP, MAC). - - Args: - subnet (str): Подсеть в формате CIDR (например, "10.1.1.0/24"). - - Returns: - List[Tuple[str, str]]: Список кортежей (IP-адрес, MAC-адрес) обнаруженных устройств. - - Raises: - Exception: Если произошла ошибка сканирования. - """ - try: - arp = ARP(pdst=subnet) - except Exception as e: - logger.error(f"Error checking status: {str(e)}") - try: - arp = ARP(pdst=subnet) - ether = Ether(dst="ff:ff:ff:ff:ff:ff") - packet = ether / arp - result = srp(packet, timeout=2, verbose=False, iface=self.interface)[0] - return [(received.psrc, received.hwsrc) for sent, received in result] - except Exception as e: - logger.error(f"Error scanning subnet {subnet}: {str(e)}") - return []
    -
    - - -
    -[docs] -class PortScanner: - """Класс для сканирования открытых портов на устройствах. - - Назначение: - Плейсхолдер для будущего функционала активного сканирования TCP/UDP-портов - у обнаруженных узлов. В текущей версии возвращает пустой список. - - План развития: - - Добавить неблокирующее сканирование наиболее распространённых портов - (22, 80, 443 и т.д.) с ограничением по времени. - - Настраиваемые профили глубины и скорости сканирования. - """ - def __init__(self, interface: str, translations: Translations): - """Инициализирует сканер портов. - - Устанавливает интерфейс для сканирования и объект переводов. - - Args: - interface (str): Имя сетевого интерфейса. - translations (Translations): Объект переводов для текущего языка. - """ - self.interface = interface - self.translations = translations - -
    -[docs] - def scan(self, ip: str) -> List[str]: - """Сканирует открытые порты на указанном IP-адресе. - - Пока возвращает пустой список, так как функциональность не реализована. - - Args: - ip (str): IP-адрес устройства для сканирования. - - Returns: - List[str]: Список открытых портов (пока пустой). - """ - return []
    -
    - - -
    -[docs] -class DeviceInfoCollector: - """Класс для сбора информации об устройствах, включая вендоров и хостнеймы. - - Источники данных: - - MacLookup: сопоставление префикса MAC (OUI) с названием производителя. - - DNS: `gethostbyaddr` с малым таймаутом для обратного разрешения имени. - - NetBIOS (nbtscan): опрос сегмента сети для извлечения NetBIOS-имён. - - Политика кэширования: - - Результаты `get_vendor` кэшируются с помощью `functools.lru_cache`. - - Результаты `nbtscan` аккумулируются в словарях `nbtscan_cache`/`nbtscan_results` - на время жизни экземпляра. - """ - def __init__(self, translations: Translations): - """Инициализирует коллектор информации об устройствах. - - Настраивает кэширование и объект переводов. - - Args: - translations (Translations): Объект переводов для текущего языка. - """ - self.mac_lookup = MacLookup() - self.nbtscan_cache = {} - self.nbtscan_results = {} - self.translations = translations - -
    -[docs] - @lru_cache(maxsize=1000) - def get_vendor(self, mac: str) -> str: - """Получает вендора устройства по MAC-адресу. - - Использует кэширование для повышения производительности. - - Args: - mac (str): MAC-адрес устройства. - - Returns: - str: Название вендора или "Неизвестный" в случае ошибки. - """ - try: - return self.mac_lookup.lookup(mac) - except Exception as e: - logger.warning(f"Failed to determine vendor for MAC {mac}: {str(e)}") - return self.translations.gettext("Неизвестный")
    - - -
    -[docs] - def scan_nbtscan(self, subnet: str) -> None: - """Сканирует подсеть с помощью nbtscan для получения хостнеймов. - - Сохраняет результаты в кэш и логирует процесс. - - Args: - subnet (str): Подсеть в формате CIDR. - """ - if subnet not in self.nbtscan_results: - try: - logger.debug(f"Starting nbtscan for subnet {subnet}") - result = subprocess.run(["sudo", "nbtscan", "-r", str(subnet)], - capture_output=True, - text=True, - check=False, - timeout=10) - logger.debug(f"Full nbtscan output: {result.stdout}") - if result.returncode == 0: - for line in result.stdout.splitlines(): - logger.debug(f"Processing line: {line}") - if not line.startswith(("IP address", "-", "Doing NBT")): - parts = [p for p in line.split() if p] - if len(parts) >= 2: - ip_addr, hostname = parts[0], parts[1] - if hostname != "<unknown>": - self.nbtscan_cache[ip_addr] = hostname - logger.info(f"NetBIOS: Found hostname {hostname} for IP {ip_addr}") - self.nbtscan_results[subnet] = True - except subprocess.TimeoutExpired: - logger.error(f"NetBIOS: Timeout for subnet {subnet}") - except Exception as e: - logger.error(f"NetBIOS: Error for subnet {subnet}: {str(e)}")
    - - -
    -[docs] - def get_hostname(self, ip: str) -> Optional[str]: - """Получает хостнейм для указанного IP-адреса. - - Пробует сначала DNS, затем NetBIOS. - - Args: - ip (str): IP-адрес устройства. - - Returns: - Optional[str]: Хостнейм или None, если не удалось определить. - """ - try: - socket.setdefaulttimeout(2) - return socket.gethostbyaddr(ip)[0] - except (socket.herror, socket.gaierror, socket.timeout): - logger.debug(f"DNS: Failed to resolve name for IP {ip}") - - subnet = ipaddress.ip_network(f"{ip}/24", strict=False) - if subnet not in self.nbtscan_results: - self.scan_nbtscan(str(subnet)) - - if ip in self.nbtscan_cache: - return self.nbtscan_cache[ip] - - logger.debug(f"Failed to determine hostname for IP {ip} via DNS or NetBIOS") - return None
    -
    - - -
    -[docs] -class DeviceStorage: - """Класс для хранения и управления данными об устройствах. - - Формат файла подсети: - JSON-структура вида - { - "devices": [Device, ...] - } - - Политика очистки: - - Метод `_clean_old_devices` удаляет оффлайн-устройства, не наблюдавшиеся - более 7 дней, чтобы поддерживать актуальность списка. - """ - def __init__(self, base_path: str = "storage/subnets", translations: Translations = None): - """Инициализирует хранилище устройств. - - Создаёт директорию, если её нет, и задаёт параметры очистки. - - Args: - base_path (str): Путь к директории хранения данных. - translations (Translations, optional): Объект переводов. - """ - self.base_path = Path(base_path) - self.base_path.mkdir(parents=True, exist_ok=True) - self.offline_timeout = timedelta(days=7) - self.translations = translations or Translations.load("locales", ["ru"], "messages") # Fallback на русский - -
    -[docs] - def get_subnet_file(self, subnet: str) -> Path: - """Возвращает путь к файлу для конкретной подсети. - - Заменяет символы '/' на '_' для корректного имени файла. - - Args: - subnet (str): Подсеть в формате CIDR. - - Returns: - Path: Путь к файлу. - """ - sanitized_subnet = subnet.replace("/", "_") - return self.base_path / f"{sanitized_subnet}.json"
    - - -
    -[docs] - def load_devices(self, subnet: str) -> Dict[str, Device]: - """Загружает устройства для указанной подсети. - - Читает данные из JSON-файла и фильтрует устаревшие устройства. - - Args: - subnet (str): Подсеть в формате CIDR. - - Returns: - Dict[str, Device]: Словарь устройств с MAC как ключом. - """ - file_path = self.get_subnet_file(subnet) - try: - if file_path.exists(): - with open(file_path, "r", encoding="utf-8") as f: - data = json.load(f) - if not isinstance(data, dict) or "devices" not in data: - logger.warning(f"Invalid JSON structure in {file_path}, expected {'devices': [...]}, got {data}") - return {} - devices = {} - for device_data in data.get("devices", []): - device = Device(**device_data) - if device.mac: - devices[device.mac] = device - return self._clean_old_devices(devices) - return {} - except json.JSONDecodeError as e: - logger.error(f"JSON decode error in {file_path}: {str(e)}") - return {} - except Exception as e: - logger.error(f"Error loading devices for subnet {subnet}: {str(e)}") - return {}
    - - - def _clean_old_devices(self, devices: Dict[str, Device]) -> Dict[str, Device]: - """Очищает список устройств от устаревших оффлайн-устройств. - - Удаляет устройства, которые оффлайн более 7 дней. - - Args: - devices (Dict[str, Device]): Словарь устройств. - - Returns: - Dict[str, Device]: Отфильтрованный словарь устройств. - """ - now = datetime.now() - filtered = {} - for mac, device in devices.items(): - if device.status == "offline" and device.last_seen: - try: - last_seen = datetime.fromisoformat(device.last_seen) - if now - last_seen <= self.offline_timeout: - filtered[mac] = device - else: - logger.info(f"Removed device {mac} (offline > 7 days)") - except ValueError: - logger.warning(f"Invalid last_seen format for device {mac}") - else: - filtered[mac] = device - return filtered - -
    -[docs] - def save_devices(self, subnet: str, devices: List[Device]) -> None: - """Сохраняет устройства для указанной подсети. - - Записывает данные в JSON-файл. - - Args: - subnet (str): Подсеть в формате CIDR. - devices (List[Device]): Список устройств для сохранения. - - Raises: - Exception: Если произошла ошибка при сохранении. - """ - file_path = self.get_subnet_file(subnet) - try: - data = SubnetScanResult(devices=devices).model_dump() - with open(file_path, "w", encoding="utf-8") as f: - json.dump(data, f, indent=2, ensure_ascii=False) - logger.info(f"Saved {len(devices)} devices to {file_path}") - except Exception as e: - logger.error(f"Error saving devices for subnet {subnet}: {str(e)}") - if self.translations: - raise Exception(self.translations.gettext("Ошибка при сохранении устройств: {error}").format(error=str(e))) - else: - raise Exception(f"Ошибка при сохранении устройств: {str(e)}")
    -
    - - -
    -[docs] -class SubnetService: - """Сервис для сканирования подсетей и управления устройствами. - - Роль сервиса: - Объединяет сетевое сканирование (ARP), сбор дополнительной информации - (вендор, хостнейм), слияние с кэшем предыдущих результатов и персистентное - хранение данных по подсетям. Предоставляет вспомогательные операции для - локального узла и работы с заметками устройств. - - Поток выполнения скана (`scan_subnet`): - 1) Определение подсети (вручную или авто по интерфейсу). - 2) Загрузка ранее сохранённых устройств подсети. - 3) Добавление локального устройства (если принадлежит подсети). - 4) ARP-сканирование и параллельная обработка узлов (обогащение данных). - 5) Маркировка оффлайн-узлов из кэша, не встреченных в текущем скане. - 6) Сортировка по IP и сохранение объединённого списка в JSON. - """ - def __init__(self, translations: Translations): - """Инициализирует сервис подсети. - - Настраивает интерфейс, сканеры и хранилище с текущей локализацией. - - Args: - translations (Translations): Объект переводов для текущего языка. - """ - self.interface = self._get_default_interface() - self.network_scanner = NetworkScanner(self.interface, translations) - self.port_scanner = PortScanner(self.interface, translations) - self.device_info = DeviceInfoCollector(translations) - self.storage = DeviceStorage(translations=translations) - self.translations = translations - logger.info(f"Initialized SubnetService with interface: {self.interface}") - - def _get_default_interface(self) -> str: - """Определяет интерфейс по умолчанию. - - Использует информацию о шлюзе или первый доступный интерфейс. - - Returns: - str: Имя интерфейса (например, "wlp0s20f3" или "eth0"). - - Raises: - Exception: Если не удалось определить интерфейс. - """ - try: - gateways = netifaces.gateways() - default_gateway = gateways.get("default", {}).get(netifaces.AF_INET) - if default_gateway: - iface = default_gateway[1] - logger.info(f"Default interface from gateway: {iface}") - return iface - interfaces = netifaces.interfaces() - for iface in interfaces: - if iface != "lo": - addrs = netifaces.ifaddresses(iface) - if netifaces.AF_INET in addrs: - logger.info(f"Selected interface: {iface}") - return iface - logger.warning("No suitable interface found, defaulting to eth0") - return "eth0" - except Exception as e: - logger.warning(f"Failed to determine interface: {str(e)}, defaulting to eth0") - return "eth0" - - def _get_default_subnet(self) -> str: - """Автоматически определяет подсеть локального устройства. - - Использует информацию о текущем интерфейсе для определения подсети. - - Returns: - str: Подсеть в формате CIDR (например, "10.1.1.0/24"). - - Raises: - Exception: Если не удалось определить подсеть. - """ - try: - interfaces = netifaces.interfaces() - for iface in interfaces: - if iface == "lo" or iface != self.interface: - continue - addrs = netifaces.ifaddresses(iface) - if netifaces.AF_INET in addrs: - ip_info = addrs[netifaces.AF_INET][0] - ip = ip_info["addr"] - netmask = ip_info["netmask"] - # Преобразуем маску из строки (например, "255.255.255.0") в CIDR - mask = ipaddress.ip_network(f"0.0.0.0/{netmask}", strict=False).prefixlen - network = ipaddress.ip_network(f"{ip}/{mask}", strict=False) - logger.info(f"Auto-detected subnet: {network} (IP: {ip}, Mask: {netmask} -> /{mask})") - return str(network) - logger.warning("No suitable subnet found, defaulting to 0.0.0.0/0") - return "0.0.0.0/0" - except Exception as e: - logger.error(f"Error determining default subnet: {str(e)}") - return "0.0.0.0/0" - -
    -[docs] - def scan_subnet(self, subnet: Optional[str] = None) -> SubnetScanResult: - """Сканирует указанную подсеть и возвращает результаты. - - Выполняет ARP-сканирование, собирает информацию о устройствах и сохраняет данные. - - Args: - subnet (Optional[str]): Подсеть в формате CIDR (например, "10.1.1.0/24"). - Если None или пустая строка, определяется автоматически. - - Returns: - SubnetScanResult: Объект с результатами сканирования, содержащий список - устройств или сообщение об ошибке. - - Raises: - Exception: Если произошла ошибка сканирования. - """ - start_time = time.time() - devices = [] - now = datetime.now().astimezone() - formatted_now = now.strftime("%d-%m-%Y, %H:%M") - try: - # Определяем подсеть, если не указана или пустая - if not subnet or subnet.strip() == "": - subnet = self._get_default_subnet() - if subnet == "0.0.0.0/0": - logger.warning("Default subnet is invalid, scan aborted") - return SubnetScanResult(devices=devices, error=self.translations.gettext("Недопустимая подсеть по умолчанию")) - - saved_devices = self.storage.load_devices(subnet) - - local_device = self._get_local_device(subnet) - if local_device: - local_device.status = "online" - local_device.last_seen = formatted_now - devices.append(local_device) - if local_device.mac: - saved_devices[local_device.mac] = local_device - logger.info(f"Detected local device: {local_device.ip}, MAC: {local_device.mac}") - - logger.info(f"Scanning subnet: {subnet} with interface: {self.interface}") - discovered_devices = self.network_scanner.scan(subnet) - logger.info(f"Discovered devices: {len(discovered_devices)}") - self.device_info.scan_nbtscan(subnet) - - if not discovered_devices and not local_device: - logger.warning(f"No devices found in subnet {subnet}") - return SubnetScanResult(devices=[], error=self.translations.gettext("В данной подсети не обнаружено устройств")) - - def process_device(ip_mac: Tuple[str, str]) -> Optional[Device]: - ip, mac = ip_mac - if local_device and ip == local_device.ip: - return None - - existing_device = saved_devices.get(mac) - if existing_device: - return Device( - ip=ip, - mac=mac, - hostname=self.device_info.get_hostname(ip) or existing_device.hostname, - vendor=self.device_info.get_vendor(mac), - open_ports=existing_device.open_ports, - status="online", - last_seen=formatted_now, - note=existing_device.note, - ) - vendor = self.device_info.get_vendor(mac) - hostname = self.device_info.get_hostname(ip) - return Device( - ip=ip, - mac=mac, - hostname=hostname, - vendor=vendor, - open_ports=[], - status="online", - last_seen=formatted_now, - note=None, - ) - - with ThreadPoolExecutor(max_workers=10) as executor: - device_results = executor.map(process_device, discovered_devices) - devices.extend([d for d in device_results if d is not None]) - - active_macs = {d.mac for d in devices if d.mac} - for mac, device in saved_devices.items(): - if mac not in active_macs: - device.status = "offline" - devices.append(device) - - devices.sort(key=lambda x: int(ipaddress.IPv4Address(x.ip))) - - for device in devices: - if device.mac: - saved_devices[device.mac] = device - self.storage.save_devices(subnet, list(saved_devices.values())) - - logger.info( - f"Subnet scan {subnet} completed in {time.time() - start_time:.2f} seconds, " - f"found {len(devices)} devices (active: {len(active_macs)})" - ) - return SubnetScanResult(devices=devices) - - except Exception as e: - logger.error(f"Error scanning subnet {subnet}: {str(e)}") - return SubnetScanResult(devices=devices, error=self.translations.gettext("Ошибка сканирования: {error}").format(error=str(e)))
    - - - def _get_local_device(self, subnet: str) -> Optional[Device]: - """Определяет локальное устройство в указанной подсети. - - Использует информацию об интерфейсе для обнаружения. - - Args: - subnet (str): Подсеть в формате CIDR. - - Returns: - Optional[Device]: Объект устройства или None, если не найдено. - """ - now = datetime.now().astimezone() - formatted_now = now.strftime("%d-%m-%Y, %H:%M") - try: - subnet_network = ipaddress.ip_network(subnet, strict=False) - interfaces = netifaces.interfaces() - for iface in interfaces: - if iface == "lo": - continue - addrs = netifaces.ifaddresses(iface) - if netifaces.AF_INET in addrs and netifaces.AF_LINK in addrs: - ip = addrs[netifaces.AF_INET][0]["addr"] - if ipaddress.ip_address(ip) in subnet_network: - mac = addrs[netifaces.AF_LINK][0]["addr"] - vendor = self.device_info.get_vendor(mac) - hostname = self.device_info.get_hostname(ip) - logger.info(f"Local device detected: IP={ip}, MAC={mac}, Interface={iface}") - return Device( - ip=ip, - mac=mac, - hostname=hostname, - vendor=vendor, - open_ports=[], - status="online", - last_seen=formatted_now, - note=None, - ) - logger.warning(f"Local device not found in subnet {subnet}") - return None - except Exception as e: - logger.warning(f"Failed to get local device: {str(e)}") - return None - -
    -[docs] - def add_note(self, mac: str, note: str, translations: Translations) -> Tuple[bool, Optional[Tuple[str, Dict]]]: - """Добавляет заметку для устройства по MAC-адресу. - - Привязывает заметку к устройству, если оно существует. - - Args: - mac (str): MAC-адрес устройства. - note (str): Текст заметки. - translations (Translations): Объект переводов для текущего языка. - - Returns: - Tuple[bool, Optional[Tuple[str, Dict]]]: Кортеж (успех, результат), - где результат содержит код ошибки/успеха и данные. - """ - try: - saved_devices = {} - for subnet in self.storage.base_path.glob("*.json"): - devices = self.storage.load_devices(subnet.stem.replace("_", "/")) - saved_devices.update(devices) - if mac not in saved_devices: - logger.warning(f"Device with MAC {mac} not found") - return False, ("not_found", {"mac": mac}) - if saved_devices[mac].note is not None: - logger.error(f"Note for device with MAC {mac} already exists") - return False, ("note_exists", {"mac": mac}) - for subnet_file in self.storage.base_path.glob("*.json"): - subnet = subnet_file.stem.replace("_", "/") - devices = self.storage.load_devices(subnet) - if mac in devices: - devices[mac].note = note - self.storage.save_devices(subnet, list(devices.values())) - break - logger.info(f"Added note '{note}' for device with MAC {mac}") - return True, ("success", {"mac": mac, "note": note}) - except Exception as e: - logger.error(f"Error adding note for MAC {mac}: {str(e)}") - return False, ("internal_error", {"error": str(e)})
    - - -
    -[docs] - def update_note(self, mac: str, note: str, translations: Translations) -> Tuple[bool, Optional[Tuple[str, Dict]]]: - """Обновляет заметку для устройства по MAC-адресу. - - Изменяет существующую заметку, если она есть. - - Args: - mac (str): MAC-адрес устройства. - note (str): Новый текст заметки. - translations (Translations): Объект переводов для текущего языка. - - Returns: - Tuple[bool, Optional[Tuple[str, Dict]]]: Кортеж (успех, результат), - где результат содержит код ошибки/успеха и данные. - """ - try: - saved_devices = {} - for subnet in self.storage.base_path.glob("*.json"): - devices = self.storage.load_devices(subnet.stem.replace("_", "/")) - saved_devices.update(devices) - if mac not in saved_devices: - logger.warning(f"Device with MAC {mac} not found") - return False, ("not_found", {"mac": mac}) - if saved_devices[mac].note is None: - logger.error(f"Note for device with MAC {mac} does not exist") - return False, ("note_not_exists", {"mac": mac}) - for subnet_file in self.storage.base_path.glob("*.json"): - subnet = subnet_file.stem.replace("_", "/") - devices = self.storage.load_devices(subnet) - if mac in devices: - devices[mac].note = note - self.storage.save_devices(subnet, list(devices.values())) - break - logger.info(f"Updated note '{note}' for device with MAC {mac}") - return True, ("success", {"mac": mac, "note": note}) - except Exception as e: - logger.error(f"Error updating note for MAC {mac}: {str(e)}") - return False, ("internal_error", {"error": str(e)})
    - - -
    -[docs] - def delete_note(self, mac: str, translations: Translations) -> Tuple[bool, Optional[Tuple[str, Dict]]]: - """Удаляет заметку для устройства по MAC-адресу. - - Удаляет привязанную заметку, если она существует. - - Args: - mac (str): MAC-адрес устройства. - translations (Translations): Объект переводов для текущего языка. - - Returns: - Tuple[bool, Optional[Tuple[str, Dict]]]: Кортеж (успех, результат), - где результат содержит код ошибки/успеха и данные. - """ - try: - saved_devices = {} - for subnet in self.storage.base_path.glob("*.json"): - devices = self.storage.load_devices(subnet.stem.replace("_", "/")) - saved_devices.update(devices) - if mac not in saved_devices: - logger.warning(f"Device with MAC {mac} not found") - return False, ("not_found", {"mac": mac}) - if saved_devices[mac].note is None: - logger.error(f"Note for device with MAC {mac} does not exist") - return False, ("note_not_exists", {"mac": mac}) - for subnet_file in self.storage.base_path.glob("*.json"): - subnet = subnet_file.stem.replace("_", "/") - devices = self.storage.load_devices(subnet) - if mac in devices: - devices[mac].note = None - self.storage.save_devices(subnet, list(devices.values())) - break - logger.info(f"Deleted note for device with MAC {mac}") - return True, ("success", {"mac": mac}) - except Exception as e: - logger.error(f"Error deleting note for MAC {mac}: {str(e)}") - return False, ("internal_error", {"error": str(e)})
    -
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/services/ufw_service.html b/SRV/docs/_build/html/_modules/services/ufw_service.html deleted file mode 100644 index 3afe7f0..0000000 --- a/SRV/docs/_build/html/_modules/services/ufw_service.html +++ /dev/null @@ -1,754 +0,0 @@ - - - - - - - - services.ufw_service - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for services.ufw_service

    -import ipaddress
    -import subprocess
    -from typing import List, Union
    -
    -from models.ufw import Direction, Protocol, UFWRule, UFWRulesResponse, UFWStatus
    -
    -DEBUG = True
    -
    -
    -
    -[docs] -class UFWService: - """Сервис взаимодействия с UFW (Uncomplicated Firewall). - - Назначение: - - Чтение статуса и списка правил брандмауэра. - - Добавление, удаление и массовая обработка правил с поддержкой диапазонов портов, - комментариев и выбором протоколов. - - Детали реализации: - - Команды выполняются через `sudo ufw ...`; вывод парсится в модели pydantic. - - Для операций удаления соблюдается порядок с конца, чтобы не нарушать нумерацию. - """ - - def _run_command(self, command: str) -> str: - """ - Выполняет команду в системе и возвращает ее вывод. - - Args: - command (str): Команда для выполнения в системе. - - Returns: - str: Вывод команды. - """ - try: - if DEBUG: - print(f"Running command: {command}") - - # Используем shell=True для корректной обработки аргументов с пробелами - result = subprocess.run( - f"sudo {command}", - shell=True, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, - text=True, - ) - - if DEBUG: - print(f"Command output: {result.stdout}") - print(f"Command error: {result.stderr}") - - if result.returncode != 0: - raise subprocess.CalledProcessError(result.returncode, command, - result.stdout, - result.stderr) - - return result.stdout - - except subprocess.CalledProcessError as e: - if DEBUG: - print(f"Command failed with return code {e.returncode}") - print(f"Error output: {e.stderr}") - raise Exception(f"Command failed: {e.stderr}") - - def _get_port_range_args(self, port: Union[int, str]) -> List[str]: - """ - Преобразует порт или диапазон портов в аргументы команды UFW. - - Args: - port: Порт (число) или диапазон портов (строка вида "3000:3999") - - Returns: - List[str]: Список аргументов для UFW - """ - if isinstance(port, int): - return [str(port)] - elif isinstance(port, str) and ":" in port: - # Диапазон портов уже в нужном формате - return [port] - else: - raise ValueError(f"Некорректный формат порта: {port}") - -
    -[docs] - def get_ufw_rules(self) -> UFWRulesResponse: - """ - Получает список правил UFW. - - Returns: - UFWRulesResponse: Объект, содержащий статус UFW и список правил - """ - # Check UFW status - status_result = self._run_command("ufw status numbered") - lines = status_result.splitlines() - - if not lines: - return UFWRulesResponse(enabled=False, rules=[]) - - first_line = lines[0] - is_enabled = "Status: active" in first_line - - if not is_enabled: - return UFWRulesResponse(enabled=False, rules=[]) - - rules = [] - # Skip header lines - for line in lines[4:]: # Skip Status and header lines - if not line.strip() or not line.startswith("["): - continue - - try: - rule = UFWRule.from_ufw_output(line) - rules.append(rule) - except Exception as e: - if DEBUG: - print(f"Ошибка парсинга правила: {line}, ошибка: {str(e)}") - continue - - return UFWRulesResponse(enabled=is_enabled, rules=rules)
    - - -
    -[docs] - def get_ufw_status(self) -> UFWStatus: - """ - Проверяет статус UFW. - - Returns: - UFWStatus: Объект с информацией о статусе UFW - """ - try: - status_result = self._run_command("ufw status") - first_line = (status_result.splitlines()[0] - if status_result.splitlines() else "") - is_enabled = "Status: active" in first_line - - message = "UFW активен" if is_enabled else "UFW неактивен" - - if DEBUG: - print(f"Результат статуса: {status_result}") - print(f"Включен: {is_enabled}") - - return UFWStatus(enabled=is_enabled, message=message) - except Exception as e: - if DEBUG: - print(f"Ошибка при проверке статуса UFW: {e}") - return UFWStatus( - enabled=False, - message=f"Ошибка при проверке статуса: {str(e)}", - )
    - - -
    -[docs] - def enable_ufw(self) -> bool: - """ - Включает UFW. - - Returns: - bool: True если успешно включен, False в противном случае - """ - try: - self._run_command("ufw enable") - return True - except Exception as e: - if DEBUG: - print(f"Ошибка при включении UFW: {e}") - return False
    - - -
    -[docs] - def disable_ufw(self) -> bool: - """ - Выключает UFW. - - Returns: - bool: True если успешно выключен, False в противном случае - """ - try: - self._run_command("ufw disable") - return True - except Exception as e: - if DEBUG: - print(f"Ошибка при выключении UFW: {e}") - return False
    - - -
    -[docs] - def add_rules_base(self, - rules: List[UFWRule], - direction: str = "") -> bool: - """ - Базовый метод для добавления правил UFW. - - Args: - rules: Список правил для добавления - direction: Направление трафика ("in" или "out") - - Returns: - bool: True если все правила были успешно добавлены, False в противном случае - """ - try: - for rule in rules: - # Устанавливаем направление правила - rule.direction = Direction.IN if direction == "in" else Direction.OUT - - # Формируем базовую команду - command = f"ufw {rule.action.value}" - - # Добавляем направление - command += f" {rule.direction.value}" - - # Добавляем from IP если он указан - if rule.from_ip and rule.from_ip != "any": - command += f" from {rule.from_ip}" - else: - command += " from any" - - # Добавляем to IP если он указан - if rule.to_ip and rule.to_ip != "any": - command += f" to {rule.to_ip}" - else: - command += " to any" - - # Добавляем порт если он указан - if rule.port: - command += f" port {rule.port}" - - # Добавляем протокол - if rule.protocol != Protocol.BOTH: - command += f" proto {rule.protocol.value}" - - # Добавляем комментарий если он есть - if rule.comment: - command += f" comment '{rule.comment}'" - - self._run_command(command) - - return True - except Exception as e: - if DEBUG: - print(f"Error adding UFW rules: {str(e)}") - return False
    - - -
    -[docs] - def add_ufw_in_rules(self, rules: List[UFWRule]) -> bool: - """ - Добавляет входящие (in) правила UFW. - - Args: - rules (List[UFWRule]): Список правил для добавления - - Returns: - bool: True если все правила были успешно добавлены, False в противном случае - """ - return self.add_rules_base(rules, "in")
    - - -
    -[docs] - def add_ufw_out_rules(self, rules: List[UFWRule]) -> bool: - """ - Добавляет исходящие (out) правила UFW. - - Args: - rules (List[UFWRule]): Список правил для добавления - - Returns: - bool: True если все правила были успешно добавлены, False в противном случае - """ - return self.add_rules_base(rules, "out")
    - - -
    -[docs] - def add_rules(self, rules: List[UFWRule]) -> dict: - """ - Добавляет правила UFW. - - Args: - rules: Список правил для добавления - - Returns: - dict: Результат добавления правил - """ - results = [] - - for rule in rules: - try: - # Определяем версию IP - from_ip = ipaddress.ip_network(rule.from_ip, strict=False) - is_ipv6 = isinstance(from_ip, ipaddress.IPv6Network) - - # Получаем список протоколов - protocols = rule.protocol.protocols - print(f"Обработка правила для протоколов: {protocols}") - - for proto in protocols: - # Формируем базовую команду - command = f"ufw {rule.action.value}" - - # Добавляем IP адреса - command += f" from {rule.from_ip}" - if rule.to_ip: - command += f" to {rule.to_ip}" - - # Добавляем порт и протокол - port_args = self._get_port_range_args(rule.port) - command += f" port {' '.join(port_args)} proto {proto}" - - # Добавляем флаг IPv6 если нужно - if is_ipv6: - command += " v6" - - # Добавляем комментарий если есть - if rule.comment: - command += f" comment '{rule.comment}'" - - print(f"Подготовлена команда: {command}") - - # Выполняем команду - try: - output = self._run_command(command) - results.append({"success": True, "message": output}) - except Exception as e: - error_msg = f"Ошибка выполнения команды: {str(e)}" - print(error_msg) - results.append({ - "success": False, - "message": error_msg - }) - - except Exception as e: - error_msg = f"Ошибка при добавлении правила: {str(e)}" - print(error_msg) - results.append({"success": False, "message": error_msg}) - - # Выводим результаты - print("\nРезультаты добавления правил:") - for result in results: - status = "Успешно" if result["success"] else "Ошибка" - print(f" - {status}: {result['message']}") - - return {"success": True, "results": results}
    - - -
    -[docs] - def delete_rules(self, rule_numbers: List[int]) -> dict: - """ - Удаляет правила UFW по их номерам. - - Args: - rule_numbers (List[int]): Список номеров правил для удаления - - Returns: - dict: Результат операции удаления - """ - try: - # Проверяем существование правил - status_result = self._run_command("ufw status numbered") - lines = status_result.splitlines() - - # Пропускаем заголовок (первые 4 строки) - rules = [] - for line in lines[4:]: # Skip header lines - if not line.strip() or not line.startswith("["): - continue - - try: - # Извлекаем номер правила из строки [N] - rule_num = int(line[1:line.index("]")]) - rules.append(rule_num) - except (ValueError, IndexError): - continue - - if DEBUG: - print(f"Найдены правила: {rules}") - - results = [] - # Сортируем номера в обратном порядке, чтобы удаление происходило с конца - # Это предотвратит смещение номеров при удалении - for rule_number in sorted(rule_numbers, reverse=True): - try: - # Проверяем существует ли правило с таким номером - if rule_number not in rules: - results.append({ - "number": - rule_number, - "success": - False, - "error": - f"Правило с номером {rule_number} не найдено", - }) - continue - - # Удаляем правило - self._run_command(f"ufw --force delete {rule_number}") - - results.append({ - "number": - rule_number, - "success": - True, - "message": - f"Правило {rule_number} успешно удалено", - }) - - except Exception as e: - if DEBUG: - print( - f"Ошибка при удалении правила {rule_number}: {e}") - results.append({ - "number": rule_number, - "success": False, - "error": str(e) - }) - - # Подсчитываем статистику - total = len(rule_numbers) - successful = len([r for r in results if r["success"]]) - - return { - "success": True, - "total": total, - "successful": successful, - "results": results, - } - - except Exception as e: - if DEBUG: - print(f"Ошибка при удалении правил: {e}") - return {"success": False, "error": str(e), "results": []}
    -
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/services/wifi_service.html b/SRV/docs/_build/html/_modules/services/wifi_service.html deleted file mode 100644 index 7c26610..0000000 --- a/SRV/docs/_build/html/_modules/services/wifi_service.html +++ /dev/null @@ -1,720 +0,0 @@ - - - - - - - - services.wifi_service - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for services.wifi_service

    -import time
    -import logging
    -import subprocess
    -import re
    -from functools import lru_cache
    -from typing import List, Optional, Dict, Tuple
    -from mac_vendor_lookup import MacLookup
    -import pywifi
    -from models.wifi import WifiAccessPoint, WifiScanResult
    -from pathlib import Path
    -import json
    -from utils.i18n import get_translations
    -from babel.support import Translations
    -from fastapi import Depends
    -
    -# Настройка логирования
    -logging.basicConfig(
    -    level=logging.DEBUG,
    -    format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
    -)
    -logger = logging.getLogger(__name__)
    -
    -
    -[docs] -class WifiStorage: - """Класс для хранения данных о Wi-Fi сетях и их заметках по SSID. - - Формат:: - - { - "networks": [{"ssid": str, "note": Optional[str]}] - } - - Поведение: - - - Создаёт директорию хранения при инициализации, ведёт логирование путей. - - Валидирует структуру при чтении и безопасно записывает JSON с Unicode и отступами. - """ - def __init__(self, storage_path: str = "storage/wifi/wifi.json", translations: Translations = Depends(get_translations())): - self.storage_file = Path(storage_path) - self.storage_file.parent.mkdir(parents=True, exist_ok=True) - self.translations = translations - logger.info(f"Wi-Fi storage initialized at: {self.storage_file.absolute()}") - -
    -[docs] - def load_notes(self) -> Dict[str, Optional[str]]: - """Загружает заметки по SSID из файла хранения.""" - try: - if self.storage_file.exists(): - with open(self.storage_file, "r", encoding="utf-8") as f: - data = json.load(f) - if not isinstance(data, dict) or "networks" not in data: - logger.warning(f"Invalid JSON structure in {self.storage_file}, expected {'networks': [...]}, got {data}") - return {} - return {item["ssid"]: item.get("note") for item in data.get("networks", [])} - return {} - except json.JSONDecodeError as e: - logger.error(f"JSON decode error in {self.storage_file}: {str(e)}") - return {} - except Exception as e: - logger.error(f"Error loading notes from {self.storage_file}: {str(e)}") - return {}
    - - -
    -[docs] - def save_notes(self, notes: Dict[str, Optional[str]]) -> None: - """Сохраняет заметки по SSID в файл.""" - try: - data = {"networks": [{"ssid": ssid, "note": note} for ssid, note in notes.items()]} - with open(self.storage_file, "w", encoding="utf-8") as f: - json.dump(data, f, indent=2, ensure_ascii=False) - logger.info(f"Saved {len(notes)} notes to {self.storage_file.absolute()}") - except PermissionError as e: - logger.error(f"Permission denied writing to {self.storage_file}: {str(e)}") - raise - except Exception as e: - logger.error(f"Error saving notes to {self.storage_file}: {str(e)}") - raise Exception(self.translations.gettext("Ошибка при сохранении заметок: {error}").format(error=str(e)))
    -
    - - -
    -[docs] -class WifiService: - """Сервис для сканирования текущих Wi-Fi точек доступа и заметок. - - Источники данных: - - `pywifi` для базового сканирования и получения списка AP. - - `iw dev <iface> scan` для уточнения частоты, сигнала и безопасности. - - `MacLookup` для определения вендора по BSSID. - - Политики: - - Выбор лучшего AP по SSID по уровню сигнала. - - Кэширование определения вендора. - - Сохранение SSID даже без заметок для будущих операций. - """ - def __init__(self, translations: Translations = Depends(get_translations())): - self.mac_lookup = MacLookup() - self.wifi = pywifi.PyWiFi() - self.interface = self._get_wifi_interface() - if not hasattr(translations, 'gettext'): - logger.warning("Translations object does not support gettext, using fallback") - self.translations = Translations.load("utils/locales/en/LC_MESSAGES/services.mo") - else: - self.translations = translations - self.storage = WifiStorage() - - def _get_wifi_interface(self) -> Optional[object]: - """Автоматически определяет активный Wi-Fi-интерфейс.""" - try: - interfaces = self.wifi.interfaces() - if not interfaces: - logger.error(self.translations.gettext("Не найдено сетевых интерфейсов")) - return None - - logger.debug(f"Available interfaces: {[iface.name() for iface in interfaces]}") - - for iface in interfaces: - iface_name = iface.name() - if "p2p" in iface_name.lower(): - logger.debug(f"Skipped interface {iface_name} (P2P)") - continue - try: - iface.scan() - time.sleep(1) - results = iface.scan_results() - if results: - logger.info(f"Selected Wi-Fi interface: {iface_name}") - return iface - logger.debug(f"Interface {iface_name} returned no scan results") - except Exception as e: - logger.debug(f"Interface {iface_name} inactive: {str(e)}") - - logger.error(self.translations.gettext("Не найден активный Wi-Fi-интерфейс")) - return None - except Exception as e: - logger.error(f"Error determining Wi-Fi interface: {str(e)}") - return None - -
    -[docs] - @lru_cache(maxsize=1000) - def get_vendor(self, mac: str) -> str: - """Определяет вендора по MAC-адресу с использованием кэширования.""" - try: - return self.mac_lookup.lookup(mac) - except Exception as e: - logger.warning(f"Failed to determine vendor for MAC {mac}: {str(e)}") - return self.translations.gettext("Неизвестный")
    - - - def _get_encryption_from_iw(self, ap_info: Dict) -> str: - """Определяет тип шифрования из данных, полученных через iw.""" - security = ap_info.get("security", "") - logger.debug(f"Encryption for BSSID {ap_info.get('bssid')}: {security}") - if "WPA3" in security: - return self.translations.gettext("WPA3") - elif "WPA2" in security or "RSN" in security: - return self.translations.gettext("WPA2") - elif "WPA" in security: - return self.translations.gettext("WPA") - elif "WEP" in security: - return self.translations.gettext("WEP") - return self.translations.gettext("Открытая") - - def _get_channel(self, frequency: Optional[int]) -> Optional[int]: - """Преобразует частоту в номер канала.""" - if frequency is None: - return None - try: - if 2412 <= frequency <= 2472: - return (frequency - 2412) // 5 + 1 - elif 5180 <= frequency <= 5825: - return (frequency - 5180) // 5 + 36 - logger.debug(f"Frequency {frequency} outside 2.4/5 GHz range") - return None - except Exception as e: - logger.debug(f"Error determining channel for frequency {frequency}: {str(e)}") - return None - - def _get_frequency(self, frequency: Optional[int]) -> Optional[str]: - """Определяет частотный диапазон на основе частоты.""" - if frequency is None: - return None - try: - if 2412 <= frequency <= 2472: - return self.translations.gettext("2.4 ГГц") - elif 5180 <= frequency <= 5825: - return self.translations.gettext("5 ГГц") - logger.debug(f"Frequency {frequency} outside 2.4/5 GHz range") - return None - except Exception as e: - logger.debug(f"Error determining band for frequency {frequency}: {str(e)}") - return None - - def _get_iw_scan_data(self) -> List[Dict]: - """Получает данные сканирования Wi-Fi через команду iw.""" - try: - if not self.interface: - logger.error(self.translations.gettext("Интерфейс не определён")) - return [] - cmd = ["sudo", "iw", "dev", self.interface.name(), "scan"] - logger.debug(f"Executing command: {' '.join(cmd)}") - result = subprocess.run(cmd, capture_output=True, text=True, timeout=10) - if result.returncode != 0: - logger.error(f"iw scan error: {result.stderr}") - return [] - output = result.stdout - logger.debug(f"iw scan output (first 500 chars): {output[:500]}...") - - aps = [] - current_ap = None - bssid_pattern = re.compile(r"BSS ([0-9a-f:]{17})") - ssid_pattern = re.compile(r"SSID: ?(.*)") - freq_pattern = re.compile(r"freq: (\d+)") - signal_pattern = re.compile(r"signal: ([-\d.]+) dBm") - rsn_pattern = re.compile(r"RSN:") - wpa_pattern = re.compile(r"WPA:") - security_type_pattern = re.compile(r"\* (WPA3|WPA2|WPA|WEP)") - - for line in output.splitlines(): - line = line.strip() - if bssid_match := bssid_pattern.match(line): - if current_ap: - aps.append(current_ap) - current_ap = {"bssid": bssid_match.group(1).lower(), "security": ""} - elif current_ap: - if ssid_match := ssid_pattern.match(line): - current_ap["ssid"] = ssid_match.group(1).strip() if ssid_match.group(1).strip() else "" - elif freq_match := freq_pattern.match(line): - current_ap["frequency"] = int(freq_match.group(1)) - elif signal_match := signal_pattern.match(line): - current_ap["signal"] = float(signal_match.group(1)) - elif rsn_pattern.match(line): - current_ap["security"] += "RSN;" - elif wpa_pattern.match(line): - current_ap["security"] += "WPA;" - elif security_type_match := security_type_pattern.search(line): - current_ap["security"] += security_type_match.group(1) + ";" - - if current_ap: - aps.append(current_ap) - - logger.debug(f"Found {len(aps)} access points via iw: {[ap['bssid'] for ap in aps]}") - return aps - except subprocess.CalledProcessError as e: - logger.error(f"Error executing iw scan: {e.stderr}") - return [] - except subprocess.TimeoutExpired: - logger.error(self.translations.gettext("Таймаут при выполнении iw scan")) - return [] - except Exception as e: - logger.error(f"Error parsing iw scan: {str(e)}") - return [] - -
    -[docs] - def scan_wifi(self, timeout: int = 30) -> WifiScanResult: - """Сканирует текущие Wi-Fi точки доступа.""" - start_time = time.time() - aps = [] - - if not self.interface: - logger.error(self.translations.gettext("Wi-Fi-интерфейс не доступен")) - return WifiScanResult(access_points=aps) - - try: - logger.info(f"Starting Wi-Fi scan on interface {self.interface.name()}") - max_attempts = 3 - for attempt in range(max_attempts): - self.interface.scan() - time.sleep(min(timeout, 5)) - py_results = self.interface.scan_results() - if py_results: - logger.info(f"Found {len(py_results)} access points via pywifi after attempt {attempt + 1}") - break - else: - logger.warning(f"Scan attempt {attempt + 1} failed, trying again (FAIL-BUSY?)") - else: - logger.error("All scan attempts failed") - return WifiScanResult(access_points=aps) - - iw_results = self._get_iw_scan_data() - iw_by_bssid = {ap["bssid"]: ap for ap in iw_results if ap.get("bssid")} - - best_aps_by_ssid: Dict[str, WifiAccessPoint] = {} - saved_notes = self.storage.load_notes() - - for ap in py_results: - bssid = ap.bssid.lower() if ap.bssid else None - if not bssid: - logger.debug("Skipped access point without BSSID") - continue - ssid = ap.ssid if ap.ssid else f"Hidden_{bssid}" - hidden = not ap.ssid - signal = ap.signal if ap.signal else None - iw_data = iw_by_bssid.get(bssid, {}) - - frequency = iw_data.get("frequency") - channel = self._get_channel(frequency) - freq_band = self._get_frequency(frequency) - encryption = self._get_encryption_from_iw(iw_data) - vendor = self.get_vendor(bssid) - - current_ap = WifiAccessPoint( - ssid=ssid, - bssid=bssid, - channel=channel, - signal=signal if signal else iw_data.get("signal"), - encryption=encryption, - frequency=freq_band, - vendor=vendor, - hidden=hidden, - note=saved_notes.get(ssid) if ap.ssid else None, - ) - logger.debug(f"Processed AP: {current_ap.model_dump()}") - - if ssid not in best_aps_by_ssid or ( - current_ap.signal and best_aps_by_ssid[ssid].signal - and current_ap.signal > best_aps_by_ssid[ssid].signal): - current_ap.note = saved_notes.get(ssid) if ap.ssid else None - best_aps_by_ssid[ssid] = current_ap - - aps = list(best_aps_by_ssid.values()) - # Сохраняем хотя бы SSID, если заметок нет - notes_to_save = {ap.ssid: ap.note for ap in aps if ap.ssid} - if not notes_to_save and aps: - notes_to_save = {ap.ssid: None for ap in aps if ap.ssid} # Сохраняем SSID без заметок - if notes_to_save: - self.storage.save_notes(notes_to_save) - else: - logger.warning("No notes or SSIDs to save, skipping file write") - - logger.info(f"Wi-Fi scan completed, found {len(aps)} unique networks") - return WifiScanResult(access_points=aps) - - except Exception as e: - logger.error(f"Error scanning Wi-Fi: {str(e)}") - return WifiScanResult(access_points=aps)
    - - -
    -[docs] - def add_note(self, ssid: str, note: str) -> Tuple[bool, Optional[str]]: - """Добавляет заметку к сети Wi-Fi по SSID.""" - try: - saved_notes = self.storage.load_notes() - if ssid not in saved_notes or saved_notes[ssid] is None: - logger.info(f"Added new note for network with SSID {ssid}") - elif saved_notes[ssid] is not None: - logger.error(f"Note for network with SSID {ssid} already exists") - return False, self.translations.gettext("Заметка для сети с SSID {ssid} уже существует").format(ssid=ssid) - saved_notes[ssid] = note - self.storage.save_notes(saved_notes) - logger.info(f"Added note '{note}' for network with SSID {ssid}") - return True, None - except Exception as e: - logger.error(f"Error adding note for SSID {ssid}: {str(e)}") - return False, self.translations.gettext("Внутренняя ошибка сервера: {error}").format(error=str(e))
    - - -
    -[docs] - def update_note(self, ssid: str, note: str) -> Tuple[bool, Optional[str]]: - """Обновляет заметку сети Wi-Fi по SSID.""" - try: - saved_notes = self.storage.load_notes() - if ssid not in saved_notes: - logger.warning(f"Network with SSID {ssid} not found") - return False, self.translations.gettext("Сеть с SSID {ssid} не найдена").format(ssid=ssid) - if saved_notes[ssid] is None: - logger.error(f"Note for network with SSID {ssid} does not exist") - return False, self.translations.gettext("Заметка для сети с SSID {ssid} не существует").format(ssid=ssid) - saved_notes[ssid] = note - self.storage.save_notes(saved_notes) - logger.info(f"Updated note '{note}' for network with SSID {ssid}") - return True, None - except Exception as e: - logger.error(f"Error updating note for SSID {ssid}: {str(e)}") - return False, self.translations.gettext("Внутренняя ошибка сервера: {error}").format(error=str(e))
    - - -
    -[docs] - def delete_note(self, ssid: str) -> Tuple[bool, Optional[str]]: - """Удаляет заметку сети Wi-Fi по SSID.""" - try: - saved_notes = self.storage.load_notes() - if ssid not in saved_notes: - logger.warning(f"Network with SSID {ssid} not found") - return False, self.translations.gettext("Сеть с SSID {ssid} не найдена").format(ssid=ssid) - if saved_notes[ssid] is None: - logger.error(f"Note for network with SSID {ssid} does not exist") - return False, self.translations.gettext("Заметка для сети с SSID {ssid} не существует").format(ssid=ssid) - saved_notes[ssid] = None - self.storage.save_notes(saved_notes) - logger.info(f"Deleted note for network with SSID {ssid}") - return True, None - except Exception as e: - logger.error(f"Error deleting note for SSID {ssid}: {str(e)}") - return False, self.translations.gettext("Внутренняя ошибка сервера: {error}").format(error=str(e))
    -
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/storage/json_storage.html b/SRV/docs/_build/html/_modules/storage/json_storage.html deleted file mode 100644 index c47b992..0000000 --- a/SRV/docs/_build/html/_modules/storage/json_storage.html +++ /dev/null @@ -1,537 +0,0 @@ - - - - - - - - storage.json_storage - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for storage.json_storage

    -import json
    -import os
    -import logging
    -from passlib.context import CryptContext
    -from typing import Optional
    -from models.auth import UserCreate, UserResponse
    -
    -logging.basicConfig(level=logging.INFO)
    -logger = logging.getLogger(__name__)
    -
    -DATA_DIR = os.getenv("GONETS_DATA_DIR", "/etc/gonets")
    -DEFAULT_USERS_PATH = os.getenv("GONETS_USERS_PATH",
    -                               os.path.join(DATA_DIR, "users.json"))
    -
    -
    -
    -[docs] -class JsonStorage: - """Хранилище пользователей в JSON-файле. - - Назначение: - - - Обеспечивает простое файловое хранилище учетных записей без полноценной СУБД. - - Подходит для встраиваемых окружений, где критична минимальная зависимость от внешних сервисов. - - Формат данных:: - - { - "users": [ - {"id": int, "username": str, "password_hash": str, "is_admin": bool}, - ... - ], - "next_id": int - } - - Безопасность: - - - Пароли никогда не сохраняются в открытом виде: используется `passlib.context.CryptContext` со схемой `bcrypt`. - - Файл создаётся с правами доступа ``0o600`` (чтение/запись только владельцу). - - Ограничения: - - - Нет блокировок для конкурентного доступа — в многопроцессной среде требуется внешняя синхронизация. - - Значение пути по умолчанию ``/etc/gonets/users.json`` предполагает наличие прав на запись и предварительную настройку окружения. - """ - - def __init__(self, file_path: Optional[str] = None): - """Инициализирует хранилище пользователей. - - Args: - file_path (str, optional): Путь к JSON-файлу для хранения данных. - По умолчанию "/etc/gonets/users.json". - - Создаёт объект CryptContext для хеширования паролей и проверяет/создаёт - файл, если он отсутствует. - """ - self.file_path = file_path or DEFAULT_USERS_PATH - self.pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") - self._ensure_file_exists() - - def _ensure_file_exists(self): - """Создаёт JSON-файл, если он не существует. - - Создаёт родительские директории и файл с начальной структурой данных, - устанавливая права доступа 600. - - Raises: - Exception: Если произошла ошибка при создании файла или директории. - """ - try: - logger.info(f"Проверка существования файла {self.file_path}") - if not os.path.exists(self.file_path): - logger.info(f"Создание директории {os.path.dirname(self.file_path)}") - os.makedirs(os.path.dirname(self.file_path), exist_ok=True) - logger.info(f"Создание файла {self.file_path}") - with open(self.file_path, "w") as f: - json.dump({"users": [], "next_id": 1}, f) - os.chmod(self.file_path, 0o600) - logger.info(f"Создан файл {self.file_path}") - else: - logger.info(f"Файл {self.file_path} уже существует") - except Exception as e: - logger.error( - f"Ошибка при создании файла {self.file_path}: {type(e).__name__} - {str(e)}" - ) - raise - - def _read_data(self) -> dict: - """Читает данные из JSON-файла. - - Returns: - dict: Словарь с данными пользователей и следующим ID. - - Raises: - FileNotFoundError: Если файл отсутствует (возвращает пустую структуру). - Exception: Если произошла ошибка при чтении файла. - """ - try: - with open(self.file_path, "r") as f: - return json.load(f) - except FileNotFoundError: - logger.info( - f"Файл {self.file_path} не существует, возвращаем пустую структуру" - ) - return {"users": [], "next_id": 1} - except Exception as e: - logger.error( - f"Ошибка при чтении файла {self.file_path}: {type(e).__name__} - {str(e)}" - ) - raise - - def _write_data(self, data: dict): - """Записывает данные в JSON-файл. - - Args: - data (dict): Словарь с данными для записи (пользователи и next_id). - - Raises: - Exception: Если произошла ошибка при записи в файл. - """ - try: - with open(self.file_path, "w") as f: - json.dump(data, f, indent=2) - except Exception as e: - logger.error( - f"Ошибка при записи файла {self.file_path}: {type(e).__name__} - {str(e)}" - ) - raise - -
    -[docs] - def create_user(self, user: UserCreate) -> UserResponse: - """Создаёт нового пользователя с хешированием пароля. - - Args: - user (UserCreate): Объект с данными нового пользователя (username, password, is_admin). - - Returns: - UserResponse: Объект с данными созданного пользователя (id, username, is_admin). - - Raises: - ValueError: Если пользователь с таким именем уже существует. - Exception: Если произошла ошибка при записи данных. - """ - try: - data = self._read_data() - users = data["users"] - next_id = data["next_id"] - if any(u["username"] == user.username for u in users): - logger.error(f"Пользователь {user.username} уже существует") - raise ValueError("Пользователь уже существует") - password_hash = self.pwd_context.hash(user.password) - new_user = { - "id": next_id, - "username": user.username, - "password_hash": password_hash, - "is_admin": user.is_admin, - } - users.append(new_user) - data["next_id"] = next_id + 1 - self._write_data(data) - logger.info( - f"Пользователь {user.username} успешно зарегистрирован") - return UserResponse( - id=new_user["id"], - username=new_user["username"], - is_admin=new_user["is_admin"], - ) - except Exception as e: - logger.error( - f"Ошибка при создании пользователя {user.username}: {type(e).__name__} - {str(e)}" - ) - raise
    - - -
    -[docs] - def get_user_by_username(self, username: str) -> Optional[dict]: - """Получает данные пользователя по имени. - - Args: - username (str): Имя пользователя для поиска. - - Returns: - Optional[dict]: Словарь с данными пользователя или None, если пользователь не найден. - - Raises: - Exception: Если произошла ошибка при чтении файла. - """ - try: - if not os.path.exists(self.file_path): - logger.info( - f"Файл {self.file_path} не существует, пользователь {username} не найден" - ) - return None - data = self._read_data() - for user in data["users"]: - if user["username"] == username: - return user - return None - except Exception as e: - logger.error( - f"Ошибка при получении пользователя {username}: {type(e).__name__} - {str(e)}" - ) - raise
    - - -
    -[docs] - def verify_password(self, plain_password: str, hashed_password: str) -> bool: - """Проверяет соответствие введённого пароля хэшированному. - - Args: - plain_password (str): Введённый пользователем пароль. - hashed_password (str): Хэшированный пароль из хранилища. - - Returns: - bool: True, если пароль верен, False в противном случае. - """ - return self.pwd_context.verify(plain_password, hashed_password)
    -
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/storage/session_storage.html b/SRV/docs/_build/html/_modules/storage/session_storage.html deleted file mode 100644 index c007ef2..0000000 --- a/SRV/docs/_build/html/_modules/storage/session_storage.html +++ /dev/null @@ -1,602 +0,0 @@ - - - - - - - - storage.session_storage - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for storage.session_storage

    -import json
    -import os
    -import uuid
    -import logging
    -from typing import Optional, Dict
    -from datetime import datetime, timedelta
    -
    -logging.basicConfig(level=logging.INFO)
    -logger = logging.getLogger(__name__)
    -
    -DATA_DIR = os.getenv("GONETS_DATA_DIR", "/etc/gonets")
    -DEFAULT_SESSIONS_PATH = os.getenv("GONETS_SESSIONS_PATH",
    -                                  os.path.join(DATA_DIR, "sessions.json"))
    -
    -
    -
    -[docs] -class SessionStorage: - """Хранилище сессий пользователей в JSON-файле. - - Назначение: - - - Лёгкое файловое хранилище сессионных токенов, сопоставленных с ``client_id`` (например, IP клиента). - - Предназначено для сред без БД и persistent-кэшей; обеспечивает простые операции и автоочистку истёкших сессий. - - Формат данных:: - - { - "sessions": { - "<session_id>": { - "username": str, - "token": str, - "client_id": str, - "created_at": ISO8601 str, - "expiry": ISO8601 str - }, - ... - } - } - - Политика TTL: - - - Каждая сессия действует 30 минут; метод ``clean_expired_sessions`` удаляет записи с истёкшим сроком. - - Ограничения: - - - Отсутствуют файловые блокировки — в многопроцессной среде возможны гонки. - - Путь по умолчанию ``/etc/gonets/sessions.json`` требует прав на запись. - """ - - def __init__(self, file_path: Optional[str] = None): - """Инициализирует хранилище сессий. - - Args: - file_path (str, optional): Путь к JSON-файлу для хранения сессий. - По умолчанию "/etc/gonets/sessions.json". - - Создаёт файл и директории, если они отсутствуют, с правами доступа 600. - """ - self.file_path = file_path or DEFAULT_SESSIONS_PATH - self._ensure_file_exists() - - def _ensure_file_exists(self): - """Создаёт JSON-файл, если он не существует. - - Создаёт родительские директории и файл с начальной структурой данных, - устанавливая права доступа 600. - - Raises: - Exception: Если произошла ошибка при создании файла или директории. - """ - try: - logger.info(f"Проверка существования файла {self.file_path}") - if not os.path.exists(self.file_path): - logger.info(f"Создание директории {os.path.dirname(self.file_path)}") - os.makedirs(os.path.dirname(self.file_path), exist_ok=True) - logger.info(f"Создание файла {self.file_path}") - with open(self.file_path, "w") as f: - json.dump({"sessions": {}}, f) - os.chmod(self.file_path, 0o600) - logger.info(f"Создан файл {self.file_path}") - else: - logger.info(f"Файл {self.file_path} уже существует") - except Exception as e: - logger.error( - f"Ошибка при создании файла {self.file_path}: {type(e).__name__} - {str(e)}" - ) - raise - - def _read_data(self) -> Dict: - """Читает данные из JSON-файла. - - Returns: - Dict: Словарь с данными сессий. - - Raises: - Exception: Если произошла ошибка при чтении файла. - """ - try: - with open(self.file_path, "r") as f: - return json.load(f) - except Exception as e: - logger.error( - f"Ошибка при чтении файла {self.file_path}: {type(e).__name__} - {str(e)}" - ) - raise - - def _write_data(self, data: Dict): - """Записывает данные в JSON-файл. - - Args: - data (Dict): Словарь с данными сессий для записи. - - Raises: - Exception: Если произошла ошибка при записи в файл. - """ - try: - with open(self.file_path, "w") as f: - json.dump(data, f, indent=2) - except Exception as e: - logger.error( - f"Ошибка при записи файла {self.file_path}: {type(e).__name__} - {str(e)}" - ) - raise - -
    -[docs] - def create_session(self, username: str, token: str, client_id: str) -> str: - """Создаёт новую сессию и возвращает уникальный session_id. - - Args: - username (str): Имя пользователя, для которого создаётся сессия. - token (str): Токен аутентификации. - client_id (str): Идентификатор клиента. - - Returns: - str: Уникальный идентификатор сессии (session_id). - - Raises: - Exception: Если произошла ошибка при создании или записи сессии. - - Note: - Удаляет истекшие сессии перед созданием новой и устанавливает срок - действия 30 минут. - """ - try: - self.clean_expired_sessions() - data = self._read_data() - session_id = str(uuid.uuid4()) - created_at = datetime.utcnow().isoformat() - expiry = (datetime.utcnow() + timedelta(minutes=30)).isoformat() - data["sessions"][session_id] = { - "username": username, - "token": token, - "client_id": client_id, - "created_at": created_at, - "expiry": expiry, - } - self._write_data(data) - logger.info( - f"Сессия создана для пользователя {username} с session_id {session_id}" - ) - return session_id - except Exception as e: - logger.error( - f"Ошибка при создании сессии для {username}: {type(e).__name__} - {str(e)}" - ) - raise
    - - -
    -[docs] - def get_latest_session(self, client_id: str) -> Optional[Dict]: - """Получает последнюю активную сессию для указанного client_id. - - Args: - client_id (str): Идентификатор клиента. - - Returns: - Optional[Dict]: Словарь с данными последней активной сессии, включая - "session_id", или None, если сессия не найдена. - - Raises: - Exception: Если произошла ошибка при чтении или обработке данных. - - Note: - Очищает истекшие сессии перед поиском и возвращает сессию с самым - поздним временем создания. - """ - try: - self.clean_expired_sessions() - data = self._read_data() - latest_session = None - latest_time = None - for session_id, session in data["sessions"].items(): - if session["client_id"] == client_id: - expiry = datetime.fromisoformat(session["expiry"]) - if datetime.utcnow() > expiry: - logger.info(f"Сессия {session_id} истекла") - del data["sessions"][session_id] - continue - created_at = datetime.fromisoformat(session["created_at"]) - if latest_time is None or created_at > latest_time: - latest_time = created_at - latest_session = session - latest_session["session_id"] = session_id - if latest_session: - logger.info(f"Найдена сессия для client_id {client_id}") - return latest_session - logger.info(f"Сессия для client_id {client_id} не найдена") - self._write_data(data) - return None - except Exception as e: - logger.error( - f"Ошибка при получении сессии для client_id {client_id}: {type(e).__name__} - {str(e)}" - ) - raise
    - - -
    -[docs] - def delete_session(self, session_id: str): - """Удаляет сессию по указанному session_id. - - Args: - session_id (str): Уникальный идентификатор сессии. - - Raises: - Exception: Если произошла ошибка при чтении или записи данных. - - Note: - Очищает истекшие сессии перед удалением. - """ - try: - self.clean_expired_sessions() - data = self._read_data() - if session_id in data["sessions"]: - del data["sessions"][session_id] - self._write_data(data) - logger.info(f"Сессия с session_id {session_id} удалена") - except Exception as e: - logger.error( - f"Ошибка при удалении сессии {session_id}: {type(e).__name__} - {str(e)}" - ) - raise
    - - -
    -[docs] - def clean_expired_sessions(self): - """Удаляет все истекшие сессии из хранилища. - - Raises: - Exception: Если произошла ошибка при чтении или записи данных. - - Note: - Проверяет срок действия каждой сессии и удаляет те, что истекли, - записывая обновлённые данные. - """ - try: - data = self._read_data() - expired_sessions = [] - current_time = datetime.utcnow() - - for session_id, session in list(data["sessions"].items()): - expiry = datetime.fromisoformat(session["expiry"]) - if current_time > expiry: - expired_sessions.append(session_id) - - for session_id in expired_sessions: - del data["sessions"][session_id] - logger.info( - f"Удалена истекшая сессия с session_id {session_id}") - - if expired_sessions: - self._write_data(data) - logger.info(f"Удалено {len(expired_sessions)} истекших сессий") - else: - logger.debug("Истекшие сессии не найдены") - - except Exception as e: - logger.error( - f"Ошибка при очистке истекших сессий: {type(e).__name__} - {str(e)}" - ) - raise
    -
    - -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_modules/utils/i18n.html b/SRV/docs/_build/html/_modules/utils/i18n.html deleted file mode 100644 index c2cd81c..0000000 --- a/SRV/docs/_build/html/_modules/utils/i18n.html +++ /dev/null @@ -1,392 +0,0 @@ - - - - - - - - utils.i18n - GONETS SRV 0.0.3 documentation - - - - - - - - - - - - - - - - Contents - - - - - - Menu - - - - - - - - Expand - - - - - - Light mode - - - - - - - - - - - - - - Dark mode - - - - - - - Auto light/dark, in light mode - - - - - - - - - - - - - - - Auto light/dark, in dark mode - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Skip to content - - - -
    -
    -
    - -
    - -
    -
    - -
    - -
    -
    - -
    -
    -
    - - - - - Back to top - -
    -
    - -
    - -
    -
    -

    Source code for utils.i18n

    -"""
    -Утилиты локализации и зависимости переводов для FastAPI.
    -
    -Содержимое модуля:
    - - `get_translations()`: фабрика зависимости FastAPI, считывающая локаль из
    -   query-параметра `locale`, cookie `locale` или заголовка `Accept-Language`
    -   (по приоритету), с дефолтом `ru`. Возвращает функцию-зависимость, которая
    -   подгружает `babel.support.Translations` из каталога `SRV/locales`.
    - - `_()`: удобная обёртка для получения перевода строки с использованием
    -   текущей локали (или дефолтного `ru`, если контекст запроса не передан).
    -
    -Особенности:
    - - При отсутствии словаря перевода для выбранной локали выполняется fallback на
    -   русскую локаль, что гарантирует наличие строк интерфейса.
    - - Локаль определяется только по первому языку из `Accept-Language` (без
    -   региональных суффиксов) для упрощения.
    - - Модуль ведёт отладочное логирование выбора и загрузки локали.
    -"""
    -from fastapi import Request, Depends
    -from babel.support import Translations
    -import logging
    -
    -logger = logging.getLogger(__name__)
    -
    -
    -[docs] -def get_translations() -> callable: - """ - Создаёт зависимость для загрузки переводов на основе заголовка Accept-Language - или параметра запроса 'locale'. По умолчанию используется русский язык. - """ - def translations_dependency(request: Request) -> Translations: - # Проверяем параметр запроса 'locale', если он есть - locale = request.query_params.get("locale") - if not locale: - # Если параметр отсутствует, проверяем куку 'locale' - locale = request.cookies.get("locale") - if not locale: - # Если куки нет, используем заголовок Accept-Language - locale = request.headers.get("Accept-Language", "ru").split(",")[0].split("-")[0] - - logger.debug(f"Determined locale: {locale}") - try: - translations = Translations.load("locales", [locale], "messages") - if not translations._catalog: - logger.warning(f"Translations for locale {locale} not found, falling back to ru") - translations = Translations.load("locales", ["ru"], "messages") - logger.debug(f"Loaded translations for locale {locale}, catalog size: {len(translations._catalog)}") - return translations - except Exception as e: - logger.error(f"Failed to load translations for locale {locale}: {str(e)}") - # Fallback на русский - logger.debug("Falling back to ru translations") - return Translations.load("locales", ["ru"], "messages") - - return translations_dependency
    - - -def _(msgid: str, request: Request = None) -> str: - """ - Переводит строку msgid для текущей локали. - - Args: - msgid (str): Строка для перевода. - request (Request, optional): Объект запроса FastAPI для получения локали. - - Returns: - str: Переведенная строка. - """ - if request is None: - # Язык, который будет отображаться по умолчанию - translations = Translations.load("locales", ["ru"], "messages") - logger.debug(f"Using default ru translations for msgid: {msgid}") - else: - translations = get_translations()(request) - logger.debug(f"Using translations for locale {request.cookies.get('locale', 'ru')} for msgid: {msgid}") - return translations.gettext(msgid) -
    -
    -
    -
    - - -
    -
    - - Made with Sphinx and @pradyunsg's - - Furo - -
    -
    - -
    -
    - -
    -
    - -
    -
    - - - - - \ No newline at end of file diff --git a/SRV/docs/_build/html/_sources/api/config.rst.txt b/SRV/docs/_build/html/_sources/api/config.rst.txt deleted file mode 100644 index 3dfa707..0000000 --- a/SRV/docs/_build/html/_sources/api/config.rst.txt +++ /dev/null @@ -1,9 +0,0 @@ -Конфигурация -============ - -.. toctree:: - :maxdepth: 1 - - config/cors - config/init_config - config/ports diff --git a/SRV/docs/_build/html/_sources/api/config/cors.rst.txt b/SRV/docs/_build/html/_sources/api/config/cors.rst.txt deleted file mode 100644 index 6dfd244..0000000 --- a/SRV/docs/_build/html/_sources/api/config/cors.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -config.cors -=========== - -.. automodule:: config.cors - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/config/init_config.rst.txt b/SRV/docs/_build/html/_sources/api/config/init_config.rst.txt deleted file mode 100644 index 3386987..0000000 --- a/SRV/docs/_build/html/_sources/api/config/init_config.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -config.init_config -=================== - -.. automodule:: config.init_config - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/config/ports.rst.txt b/SRV/docs/_build/html/_sources/api/config/ports.rst.txt deleted file mode 100644 index b893ee3..0000000 --- a/SRV/docs/_build/html/_sources/api/config/ports.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -config.ports -============ - -.. automodule:: config.ports - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/core.rst.txt b/SRV/docs/_build/html/_sources/api/core.rst.txt deleted file mode 100644 index f859c03..0000000 --- a/SRV/docs/_build/html/_sources/api/core.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -Core -==== - -.. toctree:: - :maxdepth: 1 - - core/cli_executor diff --git a/SRV/docs/_build/html/_sources/api/core/cli_executor.rst.txt b/SRV/docs/_build/html/_sources/api/core/cli_executor.rst.txt deleted file mode 100644 index a305ccb..0000000 --- a/SRV/docs/_build/html/_sources/api/core/cli_executor.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -core.cli_executor -================== - -.. automodule:: core.cli_executor - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/endpoints.rst.txt b/SRV/docs/_build/html/_sources/api/endpoints.rst.txt deleted file mode 100644 index ca6734e..0000000 --- a/SRV/docs/_build/html/_sources/api/endpoints.rst.txt +++ /dev/null @@ -1,13 +0,0 @@ -API эндпоинты -============= - -.. toctree:: - :maxdepth: 1 - - endpoints/auth - endpoints/ip - endpoints/network - endpoints/settings - endpoints/subnet - endpoints/ufw - endpoints/websocket diff --git a/SRV/docs/_build/html/_sources/api/endpoints/auth.rst.txt b/SRV/docs/_build/html/_sources/api/endpoints/auth.rst.txt deleted file mode 100644 index df442bf..0000000 --- a/SRV/docs/_build/html/_sources/api/endpoints/auth.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -api.v1.auth -=========== - -.. automodule:: api.v1.auth - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/endpoints/ip.rst.txt b/SRV/docs/_build/html/_sources/api/endpoints/ip.rst.txt deleted file mode 100644 index a3199b5..0000000 --- a/SRV/docs/_build/html/_sources/api/endpoints/ip.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -api.v1.ip -========= - -.. automodule:: api.v1.ip - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/endpoints/network.rst.txt b/SRV/docs/_build/html/_sources/api/endpoints/network.rst.txt deleted file mode 100644 index 86ff9c4..0000000 --- a/SRV/docs/_build/html/_sources/api/endpoints/network.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -api.v1.network -============== - -.. automodule:: api.v1.network - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/endpoints/settings.rst.txt b/SRV/docs/_build/html/_sources/api/endpoints/settings.rst.txt deleted file mode 100644 index 7958dd6..0000000 --- a/SRV/docs/_build/html/_sources/api/endpoints/settings.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -api.v1.settings -================ - -.. automodule:: api.v1.settings - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/endpoints/subnet.rst.txt b/SRV/docs/_build/html/_sources/api/endpoints/subnet.rst.txt deleted file mode 100644 index 05ddfac..0000000 --- a/SRV/docs/_build/html/_sources/api/endpoints/subnet.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -api.v1.subnet -============= - -.. automodule:: api.v1.subnet - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/endpoints/ufw.rst.txt b/SRV/docs/_build/html/_sources/api/endpoints/ufw.rst.txt deleted file mode 100644 index cd5fc6e..0000000 --- a/SRV/docs/_build/html/_sources/api/endpoints/ufw.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -api.v1.ufw -========== - -.. automodule:: api.v1.ufw - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/endpoints/websocket.rst.txt b/SRV/docs/_build/html/_sources/api/endpoints/websocket.rst.txt deleted file mode 100644 index 0b8116c..0000000 --- a/SRV/docs/_build/html/_sources/api/endpoints/websocket.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -api.v1.websocket -================ - -.. automodule:: api.v1.websocket - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/models.rst.txt b/SRV/docs/_build/html/_sources/api/models.rst.txt deleted file mode 100644 index 49197ba..0000000 --- a/SRV/docs/_build/html/_sources/api/models.rst.txt +++ /dev/null @@ -1,12 +0,0 @@ -Модели -====== - -.. toctree:: - :maxdepth: 1 - - models/auth - models/network - models/request - models/subnet - models/ufw - models/wifi diff --git a/SRV/docs/_build/html/_sources/api/models/auth.rst.txt b/SRV/docs/_build/html/_sources/api/models/auth.rst.txt deleted file mode 100644 index 2c266d2..0000000 --- a/SRV/docs/_build/html/_sources/api/models/auth.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -models.auth -=========== - -.. automodule:: models.auth - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/models/network.rst.txt b/SRV/docs/_build/html/_sources/api/models/network.rst.txt deleted file mode 100644 index 2e88043..0000000 --- a/SRV/docs/_build/html/_sources/api/models/network.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -models.network -============== - -.. automodule:: models.network - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/models/request.rst.txt b/SRV/docs/_build/html/_sources/api/models/request.rst.txt deleted file mode 100644 index 33c43ba..0000000 --- a/SRV/docs/_build/html/_sources/api/models/request.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -models.request -============== - -.. automodule:: models.request - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/models/subnet.rst.txt b/SRV/docs/_build/html/_sources/api/models/subnet.rst.txt deleted file mode 100644 index de0c59c..0000000 --- a/SRV/docs/_build/html/_sources/api/models/subnet.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -models.subnet -============= - -.. automodule:: models.subnet - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/models/ufw.rst.txt b/SRV/docs/_build/html/_sources/api/models/ufw.rst.txt deleted file mode 100644 index 881593a..0000000 --- a/SRV/docs/_build/html/_sources/api/models/ufw.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -models.ufw -========== - -.. automodule:: models.ufw - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/models/wifi.rst.txt b/SRV/docs/_build/html/_sources/api/models/wifi.rst.txt deleted file mode 100644 index 399ba8a..0000000 --- a/SRV/docs/_build/html/_sources/api/models/wifi.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -models.wifi -=========== - -.. automodule:: models.wifi - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/services.rst.txt b/SRV/docs/_build/html/_sources/api/services.rst.txt deleted file mode 100644 index ebca7d0..0000000 --- a/SRV/docs/_build/html/_sources/api/services.rst.txt +++ /dev/null @@ -1,21 +0,0 @@ -Сервисы -======= - -.. automodule:: services - :members: - :undoc-members: - :show-inheritance: - -.. toctree:: - :maxdepth: 1 - - services/arp_service - services/auth_service - services/connect_service - services/firewalld_service - services/ip_service - services/network_service - services/settings_service - services/subnet_service - services/ufw_service - services/wifi_service diff --git a/SRV/docs/_build/html/_sources/api/services/arp_service.rst.txt b/SRV/docs/_build/html/_sources/api/services/arp_service.rst.txt deleted file mode 100644 index c99d729..0000000 --- a/SRV/docs/_build/html/_sources/api/services/arp_service.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -ARP Service -=========== - -.. automodule:: services.arp_service - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/services/auth_service.rst.txt b/SRV/docs/_build/html/_sources/api/services/auth_service.rst.txt deleted file mode 100644 index 0cbe8ee..0000000 --- a/SRV/docs/_build/html/_sources/api/services/auth_service.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -Auth Service -============ - -.. automodule:: services.auth_service - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/services/connect_service.rst.txt b/SRV/docs/_build/html/_sources/api/services/connect_service.rst.txt deleted file mode 100644 index 237c613..0000000 --- a/SRV/docs/_build/html/_sources/api/services/connect_service.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -Connect Service -=============== - -.. automodule:: services.connect_service - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/services/firewalld_service.rst.txt b/SRV/docs/_build/html/_sources/api/services/firewalld_service.rst.txt deleted file mode 100644 index 9b6332f..0000000 --- a/SRV/docs/_build/html/_sources/api/services/firewalld_service.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -Firewalld Service -================= - -.. automodule:: services.firewalld_service - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/services/ip_service.rst.txt b/SRV/docs/_build/html/_sources/api/services/ip_service.rst.txt deleted file mode 100644 index b976a29..0000000 --- a/SRV/docs/_build/html/_sources/api/services/ip_service.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -IP Service -========== - -.. automodule:: services.ip_service - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/services/network_service.rst.txt b/SRV/docs/_build/html/_sources/api/services/network_service.rst.txt deleted file mode 100644 index 2794801..0000000 --- a/SRV/docs/_build/html/_sources/api/services/network_service.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -Network Service -=============== - -.. automodule:: services.network_service - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/services/settings_service.rst.txt b/SRV/docs/_build/html/_sources/api/services/settings_service.rst.txt deleted file mode 100644 index c459fca..0000000 --- a/SRV/docs/_build/html/_sources/api/services/settings_service.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -Settings Service -================ - -.. automodule:: services.settings_service - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/services/subnet_service.rst.txt b/SRV/docs/_build/html/_sources/api/services/subnet_service.rst.txt deleted file mode 100644 index d059f8f..0000000 --- a/SRV/docs/_build/html/_sources/api/services/subnet_service.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -Subnet Service -============== - -.. automodule:: services.subnet_service - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/services/ufw_service.rst.txt b/SRV/docs/_build/html/_sources/api/services/ufw_service.rst.txt deleted file mode 100644 index 14ddc77..0000000 --- a/SRV/docs/_build/html/_sources/api/services/ufw_service.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -UFW Service -=========== - -.. automodule:: services.ufw_service - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/services/wifi_service.rst.txt b/SRV/docs/_build/html/_sources/api/services/wifi_service.rst.txt deleted file mode 100644 index 787b7c5..0000000 --- a/SRV/docs/_build/html/_sources/api/services/wifi_service.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -Wifi Service -============ - -.. automodule:: services.wifi_service - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/storage.rst.txt b/SRV/docs/_build/html/_sources/api/storage.rst.txt deleted file mode 100644 index 0a04d57..0000000 --- a/SRV/docs/_build/html/_sources/api/storage.rst.txt +++ /dev/null @@ -1,8 +0,0 @@ -Хранилища -========= - -.. toctree:: - :maxdepth: 1 - - storage/json_storage - storage/session_storage diff --git a/SRV/docs/_build/html/_sources/api/storage/json_storage.rst.txt b/SRV/docs/_build/html/_sources/api/storage/json_storage.rst.txt deleted file mode 100644 index 0bb5039..0000000 --- a/SRV/docs/_build/html/_sources/api/storage/json_storage.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -storage.json_storage -===================== - -.. automodule:: storage.json_storage - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/storage/session_storage.rst.txt b/SRV/docs/_build/html/_sources/api/storage/session_storage.rst.txt deleted file mode 100644 index 9ae2a9a..0000000 --- a/SRV/docs/_build/html/_sources/api/storage/session_storage.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -storage.session_storage -======================= - -.. automodule:: storage.session_storage - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/api/utils.rst.txt b/SRV/docs/_build/html/_sources/api/utils.rst.txt deleted file mode 100644 index c50b082..0000000 --- a/SRV/docs/_build/html/_sources/api/utils.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -Утилиты -======= - -.. toctree:: - :maxdepth: 1 - - utils/i18n diff --git a/SRV/docs/_build/html/_sources/api/utils/i18n.rst.txt b/SRV/docs/_build/html/_sources/api/utils/i18n.rst.txt deleted file mode 100644 index 74cd021..0000000 --- a/SRV/docs/_build/html/_sources/api/utils/i18n.rst.txt +++ /dev/null @@ -1,7 +0,0 @@ -utils.i18n -========== - -.. automodule:: utils.i18n - :members: - :undoc-members: - :show-inheritance: diff --git a/SRV/docs/_build/html/_sources/index.rst.txt b/SRV/docs/_build/html/_sources/index.rst.txt deleted file mode 100644 index 4887d9d..0000000 --- a/SRV/docs/_build/html/_sources/index.rst.txt +++ /dev/null @@ -1,19 +0,0 @@ -GONETS SRV Documentation -========================= - -Добро пожаловать в документацию серверной части GONETS (SRV). - -Содержание ----------- - -.. toctree:: - :maxdepth: 2 - :caption: Разделы - - api/services - api/models - api/endpoints - api/config - api/core - api/storage - api/utils diff --git a/SRV/docs/_build/html/_static/basic.css b/SRV/docs/_build/html/_static/basic.css deleted file mode 100644 index 4738b2e..0000000 --- a/SRV/docs/_build/html/_static/basic.css +++ /dev/null @@ -1,906 +0,0 @@ -/* - * Sphinx stylesheet -- basic theme. - */ - -/* -- main layout ----------------------------------------------------------- */ - -div.clearer { - clear: both; -} - -div.section::after { - display: block; - content: ''; - clear: left; -} - -/* -- relbar ---------------------------------------------------------------- */ - -div.related { - width: 100%; - font-size: 90%; -} - -div.related h3 { - display: none; -} - -div.related ul { - margin: 0; - padding: 0 0 0 10px; - list-style: none; -} - -div.related li { - display: inline; -} - -div.related li.right { - float: right; - margin-right: 5px; -} - -/* -- sidebar --------------------------------------------------------------- */ - -div.sphinxsidebarwrapper { - padding: 10px 5px 0 10px; -} - -div.sphinxsidebar { - float: left; - width: 230px; - margin-left: -100%; - font-size: 90%; - word-wrap: break-word; - overflow-wrap : break-word; -} - -div.sphinxsidebar ul { - list-style: none; -} - -div.sphinxsidebar ul ul, -div.sphinxsidebar ul.want-points { - margin-left: 20px; - list-style: square; -} - -div.sphinxsidebar ul ul { - margin-top: 0; - margin-bottom: 0; -} - -div.sphinxsidebar form { - margin-top: 10px; -} - -div.sphinxsidebar input { - border: 1px solid #98dbcc; - font-family: sans-serif; - font-size: 1em; -} - -div.sphinxsidebar #searchbox form.search { - overflow: hidden; -} - -div.sphinxsidebar #searchbox input[type="text"] { - float: left; - width: 80%; - padding: 0.25em; - box-sizing: border-box; -} - -div.sphinxsidebar #searchbox input[type="submit"] { - float: left; - width: 20%; - border-left: none; - padding: 0.25em; - box-sizing: border-box; -} - - -img { - border: 0; - max-width: 100%; -} - -/* -- search page ----------------------------------------------------------- */ - -ul.search { - margin-top: 10px; -} - -ul.search li { - padding: 5px 0; -} - -ul.search li a { - font-weight: bold; -} - -ul.search li p.context { - color: #888; - margin: 2px 0 0 30px; - text-align: left; -} - -ul.keywordmatches li.goodmatch a { - font-weight: bold; -} - -/* -- index page ------------------------------------------------------------ */ - -table.contentstable { - width: 90%; - margin-left: auto; - margin-right: auto; -} - -table.contentstable p.biglink { - line-height: 150%; -} - -a.biglink { - font-size: 1.3em; -} - -span.linkdescr { - font-style: italic; - padding-top: 5px; - font-size: 90%; -} - -/* -- general index --------------------------------------------------------- */ - -table.indextable { - width: 100%; -} - -table.indextable td { - text-align: left; - vertical-align: top; -} - -table.indextable ul { - margin-top: 0; - margin-bottom: 0; - list-style-type: none; -} - -table.indextable > tbody > tr > td > ul { - padding-left: 0em; -} - -table.indextable tr.pcap { - height: 10px; -} - -table.indextable tr.cap { - margin-top: 10px; - background-color: #f2f2f2; -} - -img.toggler { - margin-right: 3px; - margin-top: 3px; - cursor: pointer; -} - -div.modindex-jumpbox { - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; - margin: 1em 0 1em 0; - padding: 0.4em; -} - -div.genindex-jumpbox { - border-top: 1px solid #ddd; - border-bottom: 1px solid #ddd; - margin: 1em 0 1em 0; - padding: 0.4em; -} - -/* -- domain module index --------------------------------------------------- */ - -table.modindextable td { - padding: 2px; - border-collapse: collapse; -} - -/* -- general body styles --------------------------------------------------- */ - -div.body { - min-width: 360px; - max-width: 800px; -} - -div.body p, div.body dd, div.body li, div.body blockquote { - -moz-hyphens: auto; - -ms-hyphens: auto; - -webkit-hyphens: auto; - hyphens: auto; -} - -a.headerlink { - visibility: hidden; -} - -a:visited { - color: #551A8B; -} - -h1:hover > a.headerlink, -h2:hover > a.headerlink, -h3:hover > a.headerlink, -h4:hover > a.headerlink, -h5:hover > a.headerlink, -h6:hover > a.headerlink, -dt:hover > a.headerlink, -caption:hover > a.headerlink, -p.caption:hover > a.headerlink, -div.code-block-caption:hover > a.headerlink { - visibility: visible; -} - -div.body p.caption { - text-align: inherit; -} - -div.body td { - text-align: left; -} - -.first { - margin-top: 0 !important; -} - -p.rubric { - margin-top: 30px; - font-weight: bold; -} - -img.align-left, figure.align-left, .figure.align-left, object.align-left { - clear: left; - float: left; - margin-right: 1em; -} - -img.align-right, figure.align-right, .figure.align-right, object.align-right { - clear: right; - float: right; - margin-left: 1em; -} - -img.align-center, figure.align-center, .figure.align-center, object.align-center { - display: block; - margin-left: auto; - margin-right: auto; -} - -img.align-default, figure.align-default, .figure.align-default { - display: block; - margin-left: auto; - margin-right: auto; -} - -.align-left { - text-align: left; -} - -.align-center { - text-align: center; -} - -.align-default { - text-align: center; -} - -.align-right { - text-align: right; -} - -/* -- sidebars -------------------------------------------------------------- */ - -div.sidebar, -aside.sidebar { - margin: 0 0 0.5em 1em; - border: 1px solid #ddb; - padding: 7px; - background-color: #ffe; - width: 40%; - float: right; - clear: right; - overflow-x: auto; -} - -p.sidebar-title { - font-weight: bold; -} - -nav.contents, -aside.topic, -div.admonition, div.topic, blockquote { - clear: left; -} - -/* -- topics ---------------------------------------------------------------- */ - -nav.contents, -aside.topic, -div.topic { - border: 1px solid #ccc; - padding: 7px; - margin: 10px 0 10px 0; -} - -p.topic-title { - font-size: 1.1em; - font-weight: bold; - margin-top: 10px; -} - -/* -- admonitions ----------------------------------------------------------- */ - -div.admonition { - margin-top: 10px; - margin-bottom: 10px; - padding: 7px; -} - -div.admonition dt { - font-weight: bold; -} - -p.admonition-title { - margin: 0px 10px 5px 0px; - font-weight: bold; -} - -div.body p.centered { - text-align: center; - margin-top: 25px; -} - -/* -- content of sidebars/topics/admonitions -------------------------------- */ - -div.sidebar > :last-child, -aside.sidebar > :last-child, -nav.contents > :last-child, -aside.topic > :last-child, -div.topic > :last-child, -div.admonition > :last-child { - margin-bottom: 0; -} - -div.sidebar::after, -aside.sidebar::after, -nav.contents::after, -aside.topic::after, -div.topic::after, -div.admonition::after, -blockquote::after { - display: block; - content: ''; - clear: both; -} - -/* -- tables ---------------------------------------------------------------- */ - -table.docutils { - margin-top: 10px; - margin-bottom: 10px; - border: 0; - border-collapse: collapse; -} - -table.align-center { - margin-left: auto; - margin-right: auto; -} - -table.align-default { - margin-left: auto; - margin-right: auto; -} - -table caption span.caption-number { - font-style: italic; -} - -table caption span.caption-text { -} - -table.docutils td, table.docutils th { - padding: 1px 8px 1px 5px; - border-top: 0; - border-left: 0; - border-right: 0; - border-bottom: 1px solid #aaa; -} - -th { - text-align: left; - padding-right: 5px; -} - -table.citation { - border-left: solid 1px gray; - margin-left: 1px; -} - -table.citation td { - border-bottom: none; -} - -th > :first-child, -td > :first-child { - margin-top: 0px; -} - -th > :last-child, -td > :last-child { - margin-bottom: 0px; -} - -/* -- figures --------------------------------------------------------------- */ - -div.figure, figure { - margin: 0.5em; - padding: 0.5em; -} - -div.figure p.caption, figcaption { - padding: 0.3em; -} - -div.figure p.caption span.caption-number, -figcaption span.caption-number { - font-style: italic; -} - -div.figure p.caption span.caption-text, -figcaption span.caption-text { -} - -/* -- field list styles ----------------------------------------------------- */ - -table.field-list td, table.field-list th { - border: 0 !important; -} - -.field-list ul { - margin: 0; - padding-left: 1em; -} - -.field-list p { - margin: 0; -} - -.field-name { - -moz-hyphens: manual; - -ms-hyphens: manual; - -webkit-hyphens: manual; - hyphens: manual; -} - -/* -- hlist styles ---------------------------------------------------------- */ - -table.hlist { - margin: 1em 0; -} - -table.hlist td { - vertical-align: top; -} - -/* -- object description styles --------------------------------------------- */ - -.sig { - font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; -} - -.sig-name, code.descname { - background-color: transparent; - font-weight: bold; -} - -.sig-name { - font-size: 1.1em; -} - -code.descname { - font-size: 1.2em; -} - -.sig-prename, code.descclassname { - background-color: transparent; -} - -.optional { - font-size: 1.3em; -} - -.sig-paren { - font-size: larger; -} - -.sig-param.n { - font-style: italic; -} - -/* C++ specific styling */ - -.sig-inline.c-texpr, -.sig-inline.cpp-texpr { - font-family: unset; -} - -.sig.c .k, .sig.c .kt, -.sig.cpp .k, .sig.cpp .kt { - color: #0033B3; -} - -.sig.c .m, -.sig.cpp .m { - color: #1750EB; -} - -.sig.c .s, .sig.c .sc, -.sig.cpp .s, .sig.cpp .sc { - color: #067D17; -} - - -/* -- other body styles ----------------------------------------------------- */ - -ol.arabic { - list-style: decimal; -} - -ol.loweralpha { - list-style: lower-alpha; -} - -ol.upperalpha { - list-style: upper-alpha; -} - -ol.lowerroman { - list-style: lower-roman; -} - -ol.upperroman { - list-style: upper-roman; -} - -:not(li) > ol > li:first-child > :first-child, -:not(li) > ul > li:first-child > :first-child { - margin-top: 0px; -} - -:not(li) > ol > li:last-child > :last-child, -:not(li) > ul > li:last-child > :last-child { - margin-bottom: 0px; -} - -ol.simple ol p, -ol.simple ul p, -ul.simple ol p, -ul.simple ul p { - margin-top: 0; -} - -ol.simple > li:not(:first-child) > p, -ul.simple > li:not(:first-child) > p { - margin-top: 0; -} - -ol.simple p, -ul.simple p { - margin-bottom: 0; -} - -aside.footnote > span, -div.citation > span { - float: left; -} -aside.footnote > span:last-of-type, -div.citation > span:last-of-type { - padding-right: 0.5em; -} -aside.footnote > p { - margin-left: 2em; -} -div.citation > p { - margin-left: 4em; -} -aside.footnote > p:last-of-type, -div.citation > p:last-of-type { - margin-bottom: 0em; -} -aside.footnote > p:last-of-type:after, -div.citation > p:last-of-type:after { - content: ""; - clear: both; -} - -dl.field-list { - display: grid; - grid-template-columns: fit-content(30%) auto; -} - -dl.field-list > dt { - font-weight: bold; - word-break: break-word; - padding-left: 0.5em; - padding-right: 5px; -} - -dl.field-list > dd { - padding-left: 0.5em; - margin-top: 0em; - margin-left: 0em; - margin-bottom: 0em; -} - -dl { - margin-bottom: 15px; -} - -dd > :first-child { - margin-top: 0px; -} - -dd ul, dd table { - margin-bottom: 10px; -} - -dd { - margin-top: 3px; - margin-bottom: 10px; - margin-left: 30px; -} - -.sig dd { - margin-top: 0px; - margin-bottom: 0px; -} - -.sig dl { - margin-top: 0px; - margin-bottom: 0px; -} - -dl > dd:last-child, -dl > dd:last-child > :last-child { - margin-bottom: 0; -} - -dt:target, span.highlighted { - background-color: #fbe54e; -} - -rect.highlighted { - fill: #fbe54e; -} - -dl.glossary dt { - font-weight: bold; - font-size: 1.1em; -} - -.versionmodified { - font-style: italic; -} - -.system-message { - background-color: #fda; - padding: 5px; - border: 3px solid red; -} - -.footnote:target { - background-color: #ffa; -} - -.line-block { - display: block; - margin-top: 1em; - margin-bottom: 1em; -} - -.line-block .line-block { - margin-top: 0; - margin-bottom: 0; - margin-left: 1.5em; -} - -.guilabel, .menuselection { - font-family: sans-serif; -} - -.accelerator { - text-decoration: underline; -} - -.classifier { - font-style: oblique; -} - -.classifier:before { - font-style: normal; - margin: 0 0.5em; - content: ":"; - display: inline-block; -} - -abbr, acronym { - border-bottom: dotted 1px; - cursor: help; -} - -/* -- code displays --------------------------------------------------------- */ - -pre { - overflow: auto; - overflow-y: hidden; /* fixes display issues on Chrome browsers */ -} - -pre, div[class*="highlight-"] { - clear: both; -} - -span.pre { - -moz-hyphens: none; - -ms-hyphens: none; - -webkit-hyphens: none; - hyphens: none; - white-space: nowrap; -} - -div[class*="highlight-"] { - margin: 1em 0; -} - -td.linenos pre { - border: 0; - background-color: transparent; - color: #aaa; -} - -table.highlighttable { - display: block; -} - -table.highlighttable tbody { - display: block; -} - -table.highlighttable tr { - display: flex; -} - -table.highlighttable td { - margin: 0; - padding: 0; -} - -table.highlighttable td.linenos { - padding-right: 0.5em; -} - -table.highlighttable td.code { - flex: 1; - overflow: hidden; -} - -.highlight .hll { - display: block; -} - -div.highlight pre, -table.highlighttable pre { - margin: 0; -} - -div.code-block-caption + div { - margin-top: 0; -} - -div.code-block-caption { - margin-top: 1em; - padding: 2px 5px; - font-size: small; -} - -div.code-block-caption code { - background-color: transparent; -} - -table.highlighttable td.linenos, -span.linenos, -div.highlight span.gp { /* gp: Generic.Prompt */ - user-select: none; - -webkit-user-select: text; /* Safari fallback only */ - -webkit-user-select: none; /* Chrome/Safari */ - -moz-user-select: none; /* Firefox */ - -ms-user-select: none; /* IE10+ */ -} - -div.code-block-caption span.caption-number { - padding: 0.1em 0.3em; - font-style: italic; -} - -div.code-block-caption span.caption-text { -} - -div.literal-block-wrapper { - margin: 1em 0; -} - -code.xref, a code { - background-color: transparent; - font-weight: bold; -} - -h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { - background-color: transparent; -} - -.viewcode-link { - float: right; -} - -.viewcode-back { - float: right; - font-family: sans-serif; -} - -div.viewcode-block:target { - margin: -1px -10px; - padding: 0 10px; -} - -/* -- math display ---------------------------------------------------------- */ - -img.math { - vertical-align: middle; -} - -div.body div.math p { - text-align: center; -} - -span.eqno { - float: right; -} - -span.eqno a.headerlink { - position: absolute; - z-index: 1; -} - -div.math:hover a.headerlink { - visibility: visible; -} - -/* -- printout stylesheet --------------------------------------------------- */ - -@media print { - div.document, - div.documentwrapper, - div.bodywrapper { - margin: 0 !important; - width: 100%; - } - - div.sphinxsidebar, - div.related, - div.footer, - #top-link { - display: none; - } -} \ No newline at end of file diff --git a/SRV/docs/_build/html/_static/debug.css b/SRV/docs/_build/html/_static/debug.css deleted file mode 100644 index 74d4aec..0000000 --- a/SRV/docs/_build/html/_static/debug.css +++ /dev/null @@ -1,69 +0,0 @@ -/* - This CSS file should be overridden by the theme authors. It's - meant for debugging and developing the skeleton that this theme provides. -*/ -body { - font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, - "Apple Color Emoji", "Segoe UI Emoji"; - background: lavender; -} -.sb-announcement { - background: rgb(131, 131, 131); -} -.sb-announcement__inner { - background: black; - color: white; -} -.sb-header { - background: lightskyblue; -} -.sb-header__inner { - background: royalblue; - color: white; -} -.sb-header-secondary { - background: lightcyan; -} -.sb-header-secondary__inner { - background: cornflowerblue; - color: white; -} -.sb-sidebar-primary { - background: lightgreen; -} -.sb-main { - background: blanchedalmond; -} -.sb-main__inner { - background: antiquewhite; -} -.sb-header-article { - background: lightsteelblue; -} -.sb-article-container { - background: snow; -} -.sb-article-main { - background: white; -} -.sb-footer-article { - background: lightpink; -} -.sb-sidebar-secondary { - background: lightgoldenrodyellow; -} -.sb-footer-content { - background: plum; -} -.sb-footer-content__inner { - background: palevioletred; -} -.sb-footer { - background: pink; -} -.sb-footer__inner { - background: salmon; -} -.sb-article { - background: white; -} diff --git a/SRV/docs/_build/html/_static/doctools.js b/SRV/docs/_build/html/_static/doctools.js deleted file mode 100644 index 0398ebb..0000000 --- a/SRV/docs/_build/html/_static/doctools.js +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Base JavaScript utilities for all Sphinx HTML documentation. - */ -"use strict"; - -const BLACKLISTED_KEY_CONTROL_ELEMENTS = new Set([ - "TEXTAREA", - "INPUT", - "SELECT", - "BUTTON", -]); - -const _ready = (callback) => { - if (document.readyState !== "loading") { - callback(); - } else { - document.addEventListener("DOMContentLoaded", callback); - } -}; - -/** - * Small JavaScript module for the documentation. - */ -const Documentation = { - init: () => { - Documentation.initDomainIndexTable(); - Documentation.initOnKeyListeners(); - }, - - /** - * i18n support - */ - TRANSLATIONS: {}, - PLURAL_EXPR: (n) => (n === 1 ? 0 : 1), - LOCALE: "unknown", - - // gettext and ngettext don't access this so that the functions - // can safely bound to a different name (_ = Documentation.gettext) - gettext: (string) => { - const translated = Documentation.TRANSLATIONS[string]; - switch (typeof translated) { - case "undefined": - return string; // no translation - case "string": - return translated; // translation exists - default: - return translated[0]; // (singular, plural) translation tuple exists - } - }, - - ngettext: (singular, plural, n) => { - const translated = Documentation.TRANSLATIONS[singular]; - if (typeof translated !== "undefined") - return translated[Documentation.PLURAL_EXPR(n)]; - return n === 1 ? singular : plural; - }, - - addTranslations: (catalog) => { - Object.assign(Documentation.TRANSLATIONS, catalog.messages); - Documentation.PLURAL_EXPR = new Function( - "n", - `return (${catalog.plural_expr})` - ); - Documentation.LOCALE = catalog.locale; - }, - - /** - * helper function to focus on search bar - */ - focusSearchBar: () => { - document.querySelectorAll("input[name=q]")[0]?.focus(); - }, - - /** - * Initialise the domain index toggle buttons - */ - initDomainIndexTable: () => { - const toggler = (el) => { - const idNumber = el.id.substr(7); - const toggledRows = document.querySelectorAll(`tr.cg-${idNumber}`); - if (el.src.substr(-9) === "minus.png") { - el.src = `${el.src.substr(0, el.src.length - 9)}plus.png`; - toggledRows.forEach((el) => (el.style.display = "none")); - } else { - el.src = `${el.src.substr(0, el.src.length - 8)}minus.png`; - toggledRows.forEach((el) => (el.style.display = "")); - } - }; - - const togglerElements = document.querySelectorAll("img.toggler"); - togglerElements.forEach((el) => - el.addEventListener("click", (event) => toggler(event.currentTarget)) - ); - togglerElements.forEach((el) => (el.style.display = "")); - if (DOCUMENTATION_OPTIONS.COLLAPSE_INDEX) togglerElements.forEach(toggler); - }, - - initOnKeyListeners: () => { - // only install a listener if it is really needed - if ( - !DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS && - !DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS - ) - return; - - document.addEventListener("keydown", (event) => { - // bail for input elements - if (BLACKLISTED_KEY_CONTROL_ELEMENTS.has(document.activeElement.tagName)) return; - // bail with special keys - if (event.altKey || event.ctrlKey || event.metaKey) return; - - if (!event.shiftKey) { - switch (event.key) { - case "ArrowLeft": - if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break; - - const prevLink = document.querySelector('link[rel="prev"]'); - if (prevLink && prevLink.href) { - window.location.href = prevLink.href; - event.preventDefault(); - } - break; - case "ArrowRight": - if (!DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) break; - - const nextLink = document.querySelector('link[rel="next"]'); - if (nextLink && nextLink.href) { - window.location.href = nextLink.href; - event.preventDefault(); - } - break; - } - } - - // some keyboard layouts may need Shift to get / - switch (event.key) { - case "/": - if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) break; - Documentation.focusSearchBar(); - event.preventDefault(); - } - }); - }, -}; - -// quick alias for translations -const _ = Documentation.gettext; - -_ready(Documentation.init); diff --git a/SRV/docs/_build/html/_static/documentation_options.js b/SRV/docs/_build/html/_static/documentation_options.js deleted file mode 100644 index 74029b8..0000000 --- a/SRV/docs/_build/html/_static/documentation_options.js +++ /dev/null @@ -1,13 +0,0 @@ -const DOCUMENTATION_OPTIONS = { - VERSION: '0.0.3', - LANGUAGE: 'en', - COLLAPSE_INDEX: false, - BUILDER: 'html', - FILE_SUFFIX: '.html', - LINK_SUFFIX: '.html', - HAS_SOURCE: true, - SOURCELINK_SUFFIX: '.txt', - NAVIGATION_WITH_KEYS: false, - SHOW_SEARCH_SUMMARY: true, - ENABLE_SEARCH_SHORTCUTS: true, -}; \ No newline at end of file diff --git a/SRV/docs/_build/html/_static/file.png b/SRV/docs/_build/html/_static/file.png deleted file mode 100644 index a858a41..0000000 Binary files a/SRV/docs/_build/html/_static/file.png and /dev/null differ diff --git a/SRV/docs/_build/html/_static/language_data.js b/SRV/docs/_build/html/_static/language_data.js deleted file mode 100644 index c7fe6c6..0000000 --- a/SRV/docs/_build/html/_static/language_data.js +++ /dev/null @@ -1,192 +0,0 @@ -/* - * This script contains the language-specific data used by searchtools.js, - * namely the list of stopwords, stemmer, scorer and splitter. - */ - -var stopwords = ["a", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "near", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"]; - - -/* Non-minified version is copied as a separate JS file, if available */ - -/** - * Porter Stemmer - */ -var Stemmer = function() { - - var step2list = { - ational: 'ate', - tional: 'tion', - enci: 'ence', - anci: 'ance', - izer: 'ize', - bli: 'ble', - alli: 'al', - entli: 'ent', - eli: 'e', - ousli: 'ous', - ization: 'ize', - ation: 'ate', - ator: 'ate', - alism: 'al', - iveness: 'ive', - fulness: 'ful', - ousness: 'ous', - aliti: 'al', - iviti: 'ive', - biliti: 'ble', - logi: 'log' - }; - - var step3list = { - icate: 'ic', - ative: '', - alize: 'al', - iciti: 'ic', - ical: 'ic', - ful: '', - ness: '' - }; - - var c = "[^aeiou]"; // consonant - var v = "[aeiouy]"; // vowel - var C = c + "[^aeiouy]*"; // consonant sequence - var V = v + "[aeiou]*"; // vowel sequence - - var mgr0 = "^(" + C + ")?" + V + C; // [C]VC... is m>0 - var meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$"; // [C]VC[V] is m=1 - var mgr1 = "^(" + C + ")?" + V + C + V + C; // [C]VCVC... is m>1 - var s_v = "^(" + C + ")?" + v; // vowel in stem - - this.stemWord = function (w) { - var stem; - var suffix; - var firstch; - var origword = w; - - if (w.length < 3) - return w; - - var re; - var re2; - var re3; - var re4; - - firstch = w.substr(0,1); - if (firstch == "y") - w = firstch.toUpperCase() + w.substr(1); - - // Step 1a - re = /^(.+?)(ss|i)es$/; - re2 = /^(.+?)([^s])s$/; - - if (re.test(w)) - w = w.replace(re,"$1$2"); - else if (re2.test(w)) - w = w.replace(re2,"$1$2"); - - // Step 1b - re = /^(.+?)eed$/; - re2 = /^(.+?)(ed|ing)$/; - if (re.test(w)) { - var fp = re.exec(w); - re = new RegExp(mgr0); - if (re.test(fp[1])) { - re = /.$/; - w = w.replace(re,""); - } - } - else if (re2.test(w)) { - var fp = re2.exec(w); - stem = fp[1]; - re2 = new RegExp(s_v); - if (re2.test(stem)) { - w = stem; - re2 = /(at|bl|iz)$/; - re3 = new RegExp("([^aeiouylsz])\\1$"); - re4 = new RegExp("^" + C + v + "[^aeiouwxy]$"); - if (re2.test(w)) - w = w + "e"; - else if (re3.test(w)) { - re = /.$/; - w = w.replace(re,""); - } - else if (re4.test(w)) - w = w + "e"; - } - } - - // Step 1c - re = /^(.+?)y$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - re = new RegExp(s_v); - if (re.test(stem)) - w = stem + "i"; - } - - // Step 2 - re = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - suffix = fp[2]; - re = new RegExp(mgr0); - if (re.test(stem)) - w = stem + step2list[suffix]; - } - - // Step 3 - re = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - suffix = fp[2]; - re = new RegExp(mgr0); - if (re.test(stem)) - w = stem + step3list[suffix]; - } - - // Step 4 - re = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/; - re2 = /^(.+?)(s|t)(ion)$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - re = new RegExp(mgr1); - if (re.test(stem)) - w = stem; - } - else if (re2.test(w)) { - var fp = re2.exec(w); - stem = fp[1] + fp[2]; - re2 = new RegExp(mgr1); - if (re2.test(stem)) - w = stem; - } - - // Step 5 - re = /^(.+?)e$/; - if (re.test(w)) { - var fp = re.exec(w); - stem = fp[1]; - re = new RegExp(mgr1); - re2 = new RegExp(meq1); - re3 = new RegExp("^" + C + v + "[^aeiouwxy]$"); - if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) - w = stem; - } - re = /ll$/; - re2 = new RegExp(mgr1); - if (re.test(w) && re2.test(w)) { - re = /.$/; - w = w.replace(re,""); - } - - // and turn initial Y back to y - if (firstch == "y") - w = firstch.toLowerCase() + w.substr(1); - return w; - } -} - diff --git a/SRV/docs/_build/html/_static/minus.png b/SRV/docs/_build/html/_static/minus.png deleted file mode 100644 index d96755f..0000000 Binary files a/SRV/docs/_build/html/_static/minus.png and /dev/null differ diff --git a/SRV/docs/_build/html/_static/plus.png b/SRV/docs/_build/html/_static/plus.png deleted file mode 100644 index 7107cec..0000000 Binary files a/SRV/docs/_build/html/_static/plus.png and /dev/null differ diff --git a/SRV/docs/_build/html/_static/pygments.css b/SRV/docs/_build/html/_static/pygments.css deleted file mode 100644 index 9d1083b..0000000 --- a/SRV/docs/_build/html/_static/pygments.css +++ /dev/null @@ -1,250 +0,0 @@ -.highlight pre { line-height: 125%; } -.highlight td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } -.highlight span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } -.highlight td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } -.highlight span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } -.highlight .hll { background-color: #fdf2e2 } -.highlight { background: #f2f2f2; color: #1E1E1E } -.highlight .c { color: #515151 } /* Comment */ -.highlight .err { color: #D71835 } /* Error */ -.highlight .k { color: #8045E5 } /* Keyword */ -.highlight .l { color: #7F4707 } /* Literal */ -.highlight .n { color: #1E1E1E } /* Name */ -.highlight .o { color: #163 } /* Operator */ -.highlight .p { color: #1E1E1E } /* Punctuation */ -.highlight .ch { color: #515151 } /* Comment.Hashbang */ -.highlight .cm { color: #515151 } /* Comment.Multiline */ -.highlight .cp { color: #515151 } /* Comment.Preproc */ -.highlight .cpf { color: #515151 } /* Comment.PreprocFile */ -.highlight .c1 { color: #515151 } /* Comment.Single */ -.highlight .cs { color: #515151 } /* Comment.Special */ -.highlight .gd { color: #00749C } /* Generic.Deleted */ -.highlight .ge { font-style: italic } /* Generic.Emph */ -.highlight .gh { color: #00749C } /* Generic.Heading */ -.highlight .gs { font-weight: bold } /* Generic.Strong */ -.highlight .gu { color: #00749C } /* Generic.Subheading */ -.highlight .kc { color: #8045E5 } /* Keyword.Constant */ -.highlight .kd { color: #8045E5 } /* Keyword.Declaration */ -.highlight .kn { color: #8045E5 } /* Keyword.Namespace */ -.highlight .kp { color: #8045E5 } /* Keyword.Pseudo */ -.highlight .kr { color: #8045E5 } /* Keyword.Reserved */ -.highlight .kt { color: #7F4707 } /* Keyword.Type */ -.highlight .ld { color: #7F4707 } /* Literal.Date */ -.highlight .m { color: #7F4707 } /* Literal.Number */ -.highlight .s { color: #163 } /* Literal.String */ -.highlight .na { color: #7F4707 } /* Name.Attribute */ -.highlight .nb { color: #7F4707 } /* Name.Builtin */ -.highlight .nc { color: #00749C } /* Name.Class */ -.highlight .no { color: #00749C } /* Name.Constant */ -.highlight .nd { color: #7F4707 } /* Name.Decorator */ -.highlight .ni { color: #163 } /* Name.Entity */ -.highlight .ne { color: #8045E5 } /* Name.Exception */ -.highlight .nf { color: #00749C } /* Name.Function */ -.highlight .nl { color: #7F4707 } /* Name.Label */ -.highlight .nn { color: #1E1E1E } /* Name.Namespace */ -.highlight .nx { color: #1E1E1E } /* Name.Other */ -.highlight .py { color: #00749C } /* Name.Property */ -.highlight .nt { color: #00749C } /* Name.Tag */ -.highlight .nv { color: #D71835 } /* Name.Variable */ -.highlight .ow { color: #8045E5 } /* Operator.Word */ -.highlight .pm { color: #1E1E1E } /* Punctuation.Marker */ -.highlight .w { color: #1E1E1E } /* Text.Whitespace */ -.highlight .mb { color: #7F4707 } /* Literal.Number.Bin */ -.highlight .mf { color: #7F4707 } /* Literal.Number.Float */ -.highlight .mh { color: #7F4707 } /* Literal.Number.Hex */ -.highlight .mi { color: #7F4707 } /* Literal.Number.Integer */ -.highlight .mo { color: #7F4707 } /* Literal.Number.Oct */ -.highlight .sa { color: #163 } /* Literal.String.Affix */ -.highlight .sb { color: #163 } /* Literal.String.Backtick */ -.highlight .sc { color: #163 } /* Literal.String.Char */ -.highlight .dl { color: #163 } /* Literal.String.Delimiter */ -.highlight .sd { color: #163 } /* Literal.String.Doc */ -.highlight .s2 { color: #163 } /* Literal.String.Double */ -.highlight .se { color: #163 } /* Literal.String.Escape */ -.highlight .sh { color: #163 } /* Literal.String.Heredoc */ -.highlight .si { color: #163 } /* Literal.String.Interpol */ -.highlight .sx { color: #163 } /* Literal.String.Other */ -.highlight .sr { color: #D71835 } /* Literal.String.Regex */ -.highlight .s1 { color: #163 } /* Literal.String.Single */ -.highlight .ss { color: #00749C } /* Literal.String.Symbol */ -.highlight .bp { color: #7F4707 } /* Name.Builtin.Pseudo */ -.highlight .fm { color: #00749C } /* Name.Function.Magic */ -.highlight .vc { color: #D71835 } /* Name.Variable.Class */ -.highlight .vg { color: #D71835 } /* Name.Variable.Global */ -.highlight .vi { color: #D71835 } /* Name.Variable.Instance */ -.highlight .vm { color: #7F4707 } /* Name.Variable.Magic */ -.highlight .il { color: #7F4707 } /* Literal.Number.Integer.Long */ -@media not print { -body[data-theme="dark"] .highlight pre { line-height: 125%; } -body[data-theme="dark"] .highlight td.linenos .normal { color: #aaaaaa; background-color: transparent; padding-left: 5px; padding-right: 5px; } -body[data-theme="dark"] .highlight span.linenos { color: #aaaaaa; background-color: transparent; padding-left: 5px; padding-right: 5px; } -body[data-theme="dark"] .highlight td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } -body[data-theme="dark"] .highlight span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } -body[data-theme="dark"] .highlight .hll { background-color: #404040 } -body[data-theme="dark"] .highlight { background: #202020; color: #D0D0D0 } -body[data-theme="dark"] .highlight .c { color: #ABABAB; font-style: italic } /* Comment */ -body[data-theme="dark"] .highlight .err { color: #A61717; background-color: #E3D2D2 } /* Error */ -body[data-theme="dark"] .highlight .esc { color: #D0D0D0 } /* Escape */ -body[data-theme="dark"] .highlight .g { color: #D0D0D0 } /* Generic */ -body[data-theme="dark"] .highlight .k { color: #6EBF26; font-weight: bold } /* Keyword */ -body[data-theme="dark"] .highlight .l { color: #D0D0D0 } /* Literal */ -body[data-theme="dark"] .highlight .n { color: #D0D0D0 } /* Name */ -body[data-theme="dark"] .highlight .o { color: #D0D0D0 } /* Operator */ -body[data-theme="dark"] .highlight .x { color: #D0D0D0 } /* Other */ -body[data-theme="dark"] .highlight .p { color: #D0D0D0 } /* Punctuation */ -body[data-theme="dark"] .highlight .ch { color: #ABABAB; font-style: italic } /* Comment.Hashbang */ -body[data-theme="dark"] .highlight .cm { color: #ABABAB; font-style: italic } /* Comment.Multiline */ -body[data-theme="dark"] .highlight .cp { color: #FF3A3A; font-weight: bold } /* Comment.Preproc */ -body[data-theme="dark"] .highlight .cpf { color: #ABABAB; font-style: italic } /* Comment.PreprocFile */ -body[data-theme="dark"] .highlight .c1 { color: #ABABAB; font-style: italic } /* Comment.Single */ -body[data-theme="dark"] .highlight .cs { color: #E50808; font-weight: bold; background-color: #520000 } /* Comment.Special */ -body[data-theme="dark"] .highlight .gd { color: #FF3A3A } /* Generic.Deleted */ -body[data-theme="dark"] .highlight .ge { color: #D0D0D0; font-style: italic } /* Generic.Emph */ -body[data-theme="dark"] .highlight .ges { color: #D0D0D0; font-weight: bold; font-style: italic } /* Generic.EmphStrong */ -body[data-theme="dark"] .highlight .gr { color: #FF3A3A } /* Generic.Error */ -body[data-theme="dark"] .highlight .gh { color: #FFF; font-weight: bold } /* Generic.Heading */ -body[data-theme="dark"] .highlight .gi { color: #589819 } /* Generic.Inserted */ -body[data-theme="dark"] .highlight .go { color: #CCC } /* Generic.Output */ -body[data-theme="dark"] .highlight .gp { color: #AAA } /* Generic.Prompt */ -body[data-theme="dark"] .highlight .gs { color: #D0D0D0; font-weight: bold } /* Generic.Strong */ -body[data-theme="dark"] .highlight .gu { color: #FFF; text-decoration: underline } /* Generic.Subheading */ -body[data-theme="dark"] .highlight .gt { color: #FF3A3A } /* Generic.Traceback */ -body[data-theme="dark"] .highlight .kc { color: #6EBF26; font-weight: bold } /* Keyword.Constant */ -body[data-theme="dark"] .highlight .kd { color: #6EBF26; font-weight: bold } /* Keyword.Declaration */ -body[data-theme="dark"] .highlight .kn { color: #6EBF26; font-weight: bold } /* Keyword.Namespace */ -body[data-theme="dark"] .highlight .kp { color: #6EBF26 } /* Keyword.Pseudo */ -body[data-theme="dark"] .highlight .kr { color: #6EBF26; font-weight: bold } /* Keyword.Reserved */ -body[data-theme="dark"] .highlight .kt { color: #6EBF26; font-weight: bold } /* Keyword.Type */ -body[data-theme="dark"] .highlight .ld { color: #D0D0D0 } /* Literal.Date */ -body[data-theme="dark"] .highlight .m { color: #51B2FD } /* Literal.Number */ -body[data-theme="dark"] .highlight .s { color: #ED9D13 } /* Literal.String */ -body[data-theme="dark"] .highlight .na { color: #BBB } /* Name.Attribute */ -body[data-theme="dark"] .highlight .nb { color: #2FBCCD } /* Name.Builtin */ -body[data-theme="dark"] .highlight .nc { color: #71ADFF; text-decoration: underline } /* Name.Class */ -body[data-theme="dark"] .highlight .no { color: #40FFFF } /* Name.Constant */ -body[data-theme="dark"] .highlight .nd { color: #FFA500 } /* Name.Decorator */ -body[data-theme="dark"] .highlight .ni { color: #D0D0D0 } /* Name.Entity */ -body[data-theme="dark"] .highlight .ne { color: #BBB } /* Name.Exception */ -body[data-theme="dark"] .highlight .nf { color: #71ADFF } /* Name.Function */ -body[data-theme="dark"] .highlight .nl { color: #D0D0D0 } /* Name.Label */ -body[data-theme="dark"] .highlight .nn { color: #71ADFF; text-decoration: underline } /* Name.Namespace */ -body[data-theme="dark"] .highlight .nx { color: #D0D0D0 } /* Name.Other */ -body[data-theme="dark"] .highlight .py { color: #D0D0D0 } /* Name.Property */ -body[data-theme="dark"] .highlight .nt { color: #6EBF26; font-weight: bold } /* Name.Tag */ -body[data-theme="dark"] .highlight .nv { color: #40FFFF } /* Name.Variable */ -body[data-theme="dark"] .highlight .ow { color: #6EBF26; font-weight: bold } /* Operator.Word */ -body[data-theme="dark"] .highlight .pm { color: #D0D0D0 } /* Punctuation.Marker */ -body[data-theme="dark"] .highlight .w { color: #666 } /* Text.Whitespace */ -body[data-theme="dark"] .highlight .mb { color: #51B2FD } /* Literal.Number.Bin */ -body[data-theme="dark"] .highlight .mf { color: #51B2FD } /* Literal.Number.Float */ -body[data-theme="dark"] .highlight .mh { color: #51B2FD } /* Literal.Number.Hex */ -body[data-theme="dark"] .highlight .mi { color: #51B2FD } /* Literal.Number.Integer */ -body[data-theme="dark"] .highlight .mo { color: #51B2FD } /* Literal.Number.Oct */ -body[data-theme="dark"] .highlight .sa { color: #ED9D13 } /* Literal.String.Affix */ -body[data-theme="dark"] .highlight .sb { color: #ED9D13 } /* Literal.String.Backtick */ -body[data-theme="dark"] .highlight .sc { color: #ED9D13 } /* Literal.String.Char */ -body[data-theme="dark"] .highlight .dl { color: #ED9D13 } /* Literal.String.Delimiter */ -body[data-theme="dark"] .highlight .sd { color: #ED9D13 } /* Literal.String.Doc */ -body[data-theme="dark"] .highlight .s2 { color: #ED9D13 } /* Literal.String.Double */ -body[data-theme="dark"] .highlight .se { color: #ED9D13 } /* Literal.String.Escape */ -body[data-theme="dark"] .highlight .sh { color: #ED9D13 } /* Literal.String.Heredoc */ -body[data-theme="dark"] .highlight .si { color: #ED9D13 } /* Literal.String.Interpol */ -body[data-theme="dark"] .highlight .sx { color: #FFA500 } /* Literal.String.Other */ -body[data-theme="dark"] .highlight .sr { color: #ED9D13 } /* Literal.String.Regex */ -body[data-theme="dark"] .highlight .s1 { color: #ED9D13 } /* Literal.String.Single */ -body[data-theme="dark"] .highlight .ss { color: #ED9D13 } /* Literal.String.Symbol */ -body[data-theme="dark"] .highlight .bp { color: #2FBCCD } /* Name.Builtin.Pseudo */ -body[data-theme="dark"] .highlight .fm { color: #71ADFF } /* Name.Function.Magic */ -body[data-theme="dark"] .highlight .vc { color: #40FFFF } /* Name.Variable.Class */ -body[data-theme="dark"] .highlight .vg { color: #40FFFF } /* Name.Variable.Global */ -body[data-theme="dark"] .highlight .vi { color: #40FFFF } /* Name.Variable.Instance */ -body[data-theme="dark"] .highlight .vm { color: #40FFFF } /* Name.Variable.Magic */ -body[data-theme="dark"] .highlight .il { color: #51B2FD } /* Literal.Number.Integer.Long */ -@media (prefers-color-scheme: dark) { -body:not([data-theme="light"]) .highlight pre { line-height: 125%; } -body:not([data-theme="light"]) .highlight td.linenos .normal { color: #aaaaaa; background-color: transparent; padding-left: 5px; padding-right: 5px; } -body:not([data-theme="light"]) .highlight span.linenos { color: #aaaaaa; background-color: transparent; padding-left: 5px; padding-right: 5px; } -body:not([data-theme="light"]) .highlight td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } -body:not([data-theme="light"]) .highlight span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } -body:not([data-theme="light"]) .highlight .hll { background-color: #404040 } -body:not([data-theme="light"]) .highlight { background: #202020; color: #D0D0D0 } -body:not([data-theme="light"]) .highlight .c { color: #ABABAB; font-style: italic } /* Comment */ -body:not([data-theme="light"]) .highlight .err { color: #A61717; background-color: #E3D2D2 } /* Error */ -body:not([data-theme="light"]) .highlight .esc { color: #D0D0D0 } /* Escape */ -body:not([data-theme="light"]) .highlight .g { color: #D0D0D0 } /* Generic */ -body:not([data-theme="light"]) .highlight .k { color: #6EBF26; font-weight: bold } /* Keyword */ -body:not([data-theme="light"]) .highlight .l { color: #D0D0D0 } /* Literal */ -body:not([data-theme="light"]) .highlight .n { color: #D0D0D0 } /* Name */ -body:not([data-theme="light"]) .highlight .o { color: #D0D0D0 } /* Operator */ -body:not([data-theme="light"]) .highlight .x { color: #D0D0D0 } /* Other */ -body:not([data-theme="light"]) .highlight .p { color: #D0D0D0 } /* Punctuation */ -body:not([data-theme="light"]) .highlight .ch { color: #ABABAB; font-style: italic } /* Comment.Hashbang */ -body:not([data-theme="light"]) .highlight .cm { color: #ABABAB; font-style: italic } /* Comment.Multiline */ -body:not([data-theme="light"]) .highlight .cp { color: #FF3A3A; font-weight: bold } /* Comment.Preproc */ -body:not([data-theme="light"]) .highlight .cpf { color: #ABABAB; font-style: italic } /* Comment.PreprocFile */ -body:not([data-theme="light"]) .highlight .c1 { color: #ABABAB; font-style: italic } /* Comment.Single */ -body:not([data-theme="light"]) .highlight .cs { color: #E50808; font-weight: bold; background-color: #520000 } /* Comment.Special */ -body:not([data-theme="light"]) .highlight .gd { color: #FF3A3A } /* Generic.Deleted */ -body:not([data-theme="light"]) .highlight .ge { color: #D0D0D0; font-style: italic } /* Generic.Emph */ -body:not([data-theme="light"]) .highlight .ges { color: #D0D0D0; font-weight: bold; font-style: italic } /* Generic.EmphStrong */ -body:not([data-theme="light"]) .highlight .gr { color: #FF3A3A } /* Generic.Error */ -body:not([data-theme="light"]) .highlight .gh { color: #FFF; font-weight: bold } /* Generic.Heading */ -body:not([data-theme="light"]) .highlight .gi { color: #589819 } /* Generic.Inserted */ -body:not([data-theme="light"]) .highlight .go { color: #CCC } /* Generic.Output */ -body:not([data-theme="light"]) .highlight .gp { color: #AAA } /* Generic.Prompt */ -body:not([data-theme="light"]) .highlight .gs { color: #D0D0D0; font-weight: bold } /* Generic.Strong */ -body:not([data-theme="light"]) .highlight .gu { color: #FFF; text-decoration: underline } /* Generic.Subheading */ -body:not([data-theme="light"]) .highlight .gt { color: #FF3A3A } /* Generic.Traceback */ -body:not([data-theme="light"]) .highlight .kc { color: #6EBF26; font-weight: bold } /* Keyword.Constant */ -body:not([data-theme="light"]) .highlight .kd { color: #6EBF26; font-weight: bold } /* Keyword.Declaration */ -body:not([data-theme="light"]) .highlight .kn { color: #6EBF26; font-weight: bold } /* Keyword.Namespace */ -body:not([data-theme="light"]) .highlight .kp { color: #6EBF26 } /* Keyword.Pseudo */ -body:not([data-theme="light"]) .highlight .kr { color: #6EBF26; font-weight: bold } /* Keyword.Reserved */ -body:not([data-theme="light"]) .highlight .kt { color: #6EBF26; font-weight: bold } /* Keyword.Type */ -body:not([data-theme="light"]) .highlight .ld { color: #D0D0D0 } /* Literal.Date */ -body:not([data-theme="light"]) .highlight .m { color: #51B2FD } /* Literal.Number */ -body:not([data-theme="light"]) .highlight .s { color: #ED9D13 } /* Literal.String */ -body:not([data-theme="light"]) .highlight .na { color: #BBB } /* Name.Attribute */ -body:not([data-theme="light"]) .highlight .nb { color: #2FBCCD } /* Name.Builtin */ -body:not([data-theme="light"]) .highlight .nc { color: #71ADFF; text-decoration: underline } /* Name.Class */ -body:not([data-theme="light"]) .highlight .no { color: #40FFFF } /* Name.Constant */ -body:not([data-theme="light"]) .highlight .nd { color: #FFA500 } /* Name.Decorator */ -body:not([data-theme="light"]) .highlight .ni { color: #D0D0D0 } /* Name.Entity */ -body:not([data-theme="light"]) .highlight .ne { color: #BBB } /* Name.Exception */ -body:not([data-theme="light"]) .highlight .nf { color: #71ADFF } /* Name.Function */ -body:not([data-theme="light"]) .highlight .nl { color: #D0D0D0 } /* Name.Label */ -body:not([data-theme="light"]) .highlight .nn { color: #71ADFF; text-decoration: underline } /* Name.Namespace */ -body:not([data-theme="light"]) .highlight .nx { color: #D0D0D0 } /* Name.Other */ -body:not([data-theme="light"]) .highlight .py { color: #D0D0D0 } /* Name.Property */ -body:not([data-theme="light"]) .highlight .nt { color: #6EBF26; font-weight: bold } /* Name.Tag */ -body:not([data-theme="light"]) .highlight .nv { color: #40FFFF } /* Name.Variable */ -body:not([data-theme="light"]) .highlight .ow { color: #6EBF26; font-weight: bold } /* Operator.Word */ -body:not([data-theme="light"]) .highlight .pm { color: #D0D0D0 } /* Punctuation.Marker */ -body:not([data-theme="light"]) .highlight .w { color: #666 } /* Text.Whitespace */ -body:not([data-theme="light"]) .highlight .mb { color: #51B2FD } /* Literal.Number.Bin */ -body:not([data-theme="light"]) .highlight .mf { color: #51B2FD } /* Literal.Number.Float */ -body:not([data-theme="light"]) .highlight .mh { color: #51B2FD } /* Literal.Number.Hex */ -body:not([data-theme="light"]) .highlight .mi { color: #51B2FD } /* Literal.Number.Integer */ -body:not([data-theme="light"]) .highlight .mo { color: #51B2FD } /* Literal.Number.Oct */ -body:not([data-theme="light"]) .highlight .sa { color: #ED9D13 } /* Literal.String.Affix */ -body:not([data-theme="light"]) .highlight .sb { color: #ED9D13 } /* Literal.String.Backtick */ -body:not([data-theme="light"]) .highlight .sc { color: #ED9D13 } /* Literal.String.Char */ -body:not([data-theme="light"]) .highlight .dl { color: #ED9D13 } /* Literal.String.Delimiter */ -body:not([data-theme="light"]) .highlight .sd { color: #ED9D13 } /* Literal.String.Doc */ -body:not([data-theme="light"]) .highlight .s2 { color: #ED9D13 } /* Literal.String.Double */ -body:not([data-theme="light"]) .highlight .se { color: #ED9D13 } /* Literal.String.Escape */ -body:not([data-theme="light"]) .highlight .sh { color: #ED9D13 } /* Literal.String.Heredoc */ -body:not([data-theme="light"]) .highlight .si { color: #ED9D13 } /* Literal.String.Interpol */ -body:not([data-theme="light"]) .highlight .sx { color: #FFA500 } /* Literal.String.Other */ -body:not([data-theme="light"]) .highlight .sr { color: #ED9D13 } /* Literal.String.Regex */ -body:not([data-theme="light"]) .highlight .s1 { color: #ED9D13 } /* Literal.String.Single */ -body:not([data-theme="light"]) .highlight .ss { color: #ED9D13 } /* Literal.String.Symbol */ -body:not([data-theme="light"]) .highlight .bp { color: #2FBCCD } /* Name.Builtin.Pseudo */ -body:not([data-theme="light"]) .highlight .fm { color: #71ADFF } /* Name.Function.Magic */ -body:not([data-theme="light"]) .highlight .vc { color: #40FFFF } /* Name.Variable.Class */ -body:not([data-theme="light"]) .highlight .vg { color: #40FFFF } /* Name.Variable.Global */ -body:not([data-theme="light"]) .highlight .vi { color: #40FFFF } /* Name.Variable.Instance */ -body:not([data-theme="light"]) .highlight .vm { color: #40FFFF } /* Name.Variable.Magic */ -body:not([data-theme="light"]) .highlight .il { color: #51B2FD } /* Literal.Number.Integer.Long */ -} -} \ No newline at end of file diff --git a/SRV/docs/_build/html/_static/scripts/furo.js b/SRV/docs/_build/html/_static/scripts/furo.js deleted file mode 100644 index 87e1767..0000000 --- a/SRV/docs/_build/html/_static/scripts/furo.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see furo.js.LICENSE.txt */ -(()=>{var t={856:function(t,e,n){var o,r;r=void 0!==n.g?n.g:"undefined"!=typeof window?window:this,o=function(){return function(t){"use strict";var e={navClass:"active",contentClass:"active",nested:!1,nestedClass:"active",offset:0,reflow:!1,events:!0},n=function(t,e,n){if(n.settings.events){var o=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n});e.dispatchEvent(o)}},o=function(t){var e=0;if(t.offsetParent)for(;t;)e+=t.offsetTop,t=t.offsetParent;return e>=0?e:0},r=function(t){t&&t.sort(function(t,e){return o(t.content)=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},l=function(t,e){var n=t[t.length-1];if(function(t,e){return!(!s()||!c(t.content,e,!0))}(n,e))return n;for(var o=t.length-1;o>=0;o--)if(c(t[o].content,e))return t[o]},a=function(t,e){if(e.nested&&t.parentNode){var n=t.parentNode.closest("li");n&&(n.classList.remove(e.nestedClass),a(n,e))}},i=function(t,e){if(t){var o=t.nav.closest("li");o&&(o.classList.remove(e.navClass),t.content.classList.remove(e.contentClass),a(o,e),n("gumshoeDeactivate",o,{link:t.nav,content:t.content,settings:e}))}},u=function(t,e){if(e.nested){var n=t.parentNode.closest("li");n&&(n.classList.add(e.nestedClass),u(n,e))}};return function(o,c){var s,a,d,f,m,v={setup:function(){s=document.querySelectorAll(o),a=[],Array.prototype.forEach.call(s,function(t){var e=document.getElementById(decodeURIComponent(t.hash.substr(1)));e&&a.push({nav:t,content:e})}),r(a)},detect:function(){var t=l(a,m);t?d&&t.content===d.content||(i(d,m),function(t,e){if(t){var o=t.nav.closest("li");o&&(o.classList.add(e.navClass),t.content.classList.add(e.contentClass),u(o,e),n("gumshoeActivate",o,{link:t.nav,content:t.content,settings:e}))}}(t,m),d=t):d&&(i(d,m),d=null)}},h=function(e){f&&t.cancelAnimationFrame(f),f=t.requestAnimationFrame(v.detect)},g=function(e){f&&t.cancelAnimationFrame(f),f=t.requestAnimationFrame(function(){r(a),v.detect()})};return v.destroy=function(){d&&i(d,m),t.removeEventListener("scroll",h,!1),m.reflow&&t.removeEventListener("resize",g,!1),a=null,s=null,d=null,f=null,m=null},m=function(){var t={};return Array.prototype.forEach.call(arguments,function(e){for(var n in e){if(!e.hasOwnProperty(n))return;t[n]=e[n]}}),t}(e,c||{}),v.setup(),v.detect(),t.addEventListener("scroll",h,!1),m.reflow&&t.addEventListener("resize",g,!1),v}}(r)}.apply(e,[]),void 0===o||(t.exports=o)}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var c=e[o]={exports:{}};return t[o].call(c.exports,c,c.exports,n),c.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=n(856),e=n.n(t),o=null,r=null,c=document.documentElement.scrollTop;function s(){const t=localStorage.getItem("theme")||"auto";var e;"light"!==(e=window.matchMedia("(prefers-color-scheme: dark)").matches?"auto"===t?"light":"light"==t?"dark":"auto":"auto"===t?"dark":"dark"==t?"light":"auto")&&"dark"!==e&&"auto"!==e&&(console.error(`Got invalid theme mode: ${e}. Resetting to auto.`),e="auto"),document.body.dataset.theme=e,localStorage.setItem("theme",e),console.log(`Changed to ${e} mode.`)}function l(){!function(){const t=document.getElementsByClassName("theme-toggle");Array.from(t).forEach(t=>{t.addEventListener("click",s)})}(),function(){let t=0,e=!1;window.addEventListener("scroll",function(n){t=window.scrollY,e||(window.requestAnimationFrame(function(){var n;(function(t){t>0?r.classList.add("scrolled"):r.classList.remove("scrolled")})(n=t),function(t){t<64?document.documentElement.classList.remove("show-back-to-top"):tc&&document.documentElement.classList.remove("show-back-to-top"),c=t}(n),function(t){null!==o&&(0==t?o.scrollTo(0,0):Math.ceil(t)>=Math.floor(document.documentElement.scrollHeight-window.innerHeight)?o.scrollTo(0,o.scrollHeight):document.querySelector(".scroll-current"))}(n),e=!1}),e=!0)}),window.scroll()}(),null!==o&&new(e())(".toc-tree a",{reflow:!0,recursive:!0,navClass:"scroll-current",offset:()=>{let t=parseFloat(getComputedStyle(document.documentElement).fontSize);const e=r.getBoundingClientRect();return e.top+e.height+2.5*t+1}})}document.addEventListener("DOMContentLoaded",function(){document.body.parentNode.classList.remove("no-js"),r=document.querySelector("header"),o=document.querySelector(".toc-scroll"),l()})})()})(); -//# sourceMappingURL=furo.js.map \ No newline at end of file diff --git a/SRV/docs/_build/html/_static/scripts/furo.js.LICENSE.txt b/SRV/docs/_build/html/_static/scripts/furo.js.LICENSE.txt deleted file mode 100644 index 1632189..0000000 --- a/SRV/docs/_build/html/_static/scripts/furo.js.LICENSE.txt +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * gumshoejs v5.1.2 (patched by @pradyunsg) - * A simple, framework-agnostic scrollspy script. - * (c) 2019 Chris Ferdinandi - * MIT License - * http://github.com/cferdinandi/gumshoe - */ diff --git a/SRV/docs/_build/html/_static/scripts/furo.js.map b/SRV/docs/_build/html/_static/scripts/furo.js.map deleted file mode 100644 index 3b316f3..0000000 --- a/SRV/docs/_build/html/_static/scripts/furo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scripts/furo.js","mappings":";iCAAA,MAQWA,SAWS,IAAX,EAAAC,EACH,EAAAA,EACkB,oBAAXC,OACLA,OACAC,KAbO,EAAF,WACP,OAaJ,SAAUD,GACR,aAMA,IAAIE,EAAW,CAEbC,SAAU,SACVC,aAAc,SAGdC,QAAQ,EACRC,YAAa,SAGbC,OAAQ,EACRC,QAAQ,EAGRC,QAAQ,GA6BNC,EAAY,SAAUC,EAAMC,EAAMC,GAEpC,GAAKA,EAAOC,SAASL,OAArB,CAGA,IAAIM,EAAQ,IAAIC,YAAYL,EAAM,CAChCM,SAAS,EACTC,YAAY,EACZL,OAAQA,IAIVD,EAAKO,cAAcJ,EAVgB,CAWrC,EAOIK,EAAe,SAAUR,GAC3B,IAAIS,EAAW,EACf,GAAIT,EAAKU,aACP,KAAOV,GACLS,GAAYT,EAAKW,UACjBX,EAAOA,EAAKU,aAGhB,OAAOD,GAAY,EAAIA,EAAW,CACpC,EAMIG,EAAe,SAAUC,GACvBA,GACFA,EAASC,KAAK,SAAUC,EAAOC,GAG7B,OAFcR,EAAaO,EAAME,SACnBT,EAAaQ,EAAMC,UACF,EACxB,CACT,EAEJ,EAwCIC,EAAW,SAAUlB,EAAME,EAAUiB,GACvC,IAAIC,EAASpB,EAAKqB,wBACd1B,EAnCU,SAAUO,GAExB,MAA+B,mBAApBA,EAASP,OACX2B,WAAWpB,EAASP,UAItB2B,WAAWpB,EAASP,OAC7B,CA2Be4B,CAAUrB,GACvB,OAAIiB,EAEAK,SAASJ,EAAOD,OAAQ,KACvB/B,EAAOqC,aAAeC,SAASC,gBAAgBC,cAG7CJ,SAASJ,EAAOS,IAAK,KAAOlC,CACrC,EAMImC,EAAa,WACf,OACEC,KAAKC,KAAK5C,EAAOqC,YAAcrC,EAAO6C,cAnCjCF,KAAKG,IACVR,SAASS,KAAKC,aACdV,SAASC,gBAAgBS,aACzBV,SAASS,KAAKE,aACdX,SAASC,gBAAgBU,aACzBX,SAASS,KAAKP,aACdF,SAASC,gBAAgBC,aAkC7B,EAmBIU,EAAY,SAAUzB,EAAUX,GAClC,IAAIqC,EAAO1B,EAASA,EAAS2B,OAAS,GACtC,GAbgB,SAAUC,EAAMvC,GAChC,SAAI4B,MAAgBZ,EAASuB,EAAKxB,QAASf,GAAU,GAEvD,CAUMwC,CAAYH,EAAMrC,GAAW,OAAOqC,EACxC,IAAK,IAAII,EAAI9B,EAAS2B,OAAS,EAAGG,GAAK,EAAGA,IACxC,GAAIzB,EAASL,EAAS8B,GAAG1B,QAASf,GAAW,OAAOW,EAAS8B,EAEjE,EAOIC,EAAmB,SAAUC,EAAK3C,GAEpC,GAAKA,EAAST,QAAWoD,EAAIC,WAA7B,CAGA,IAAIC,EAAKF,EAAIC,WAAWE,QAAQ,MAC3BD,IAGLA,EAAGE,UAAUC,OAAOhD,EAASR,aAG7BkD,EAAiBG,EAAI7C,GAV0B,CAWjD,EAOIiD,EAAa,SAAUC,EAAOlD,GAEhC,GAAKkD,EAAL,CAGA,IAAIL,EAAKK,EAAMP,IAAIG,QAAQ,MACtBD,IAGLA,EAAGE,UAAUC,OAAOhD,EAASX,UAC7B6D,EAAMnC,QAAQgC,UAAUC,OAAOhD,EAASV,cAGxCoD,EAAiBG,EAAI7C,GAGrBJ,EAAU,oBAAqBiD,EAAI,CACjCM,KAAMD,EAAMP,IACZ5B,QAASmC,EAAMnC,QACff,SAAUA,IAjBM,CAmBpB,EAOIoD,EAAiB,SAAUT,EAAK3C,GAElC,GAAKA,EAAST,OAAd,CAGA,IAAIsD,EAAKF,EAAIC,WAAWE,QAAQ,MAC3BD,IAGLA,EAAGE,UAAUM,IAAIrD,EAASR,aAG1B4D,EAAeP,EAAI7C,GAVS,CAW9B,EA6LA,OA1JkB,SAAUsD,EAAUC,GAKpC,IACIC,EAAU7C,EAAU8C,EAASC,EAAS1D,EADtC2D,EAAa,CAUjBA,MAAmB,WAEjBH,EAAWhC,SAASoC,iBAAiBN,GAGrC3C,EAAW,GAGXkD,MAAMC,UAAUC,QAAQC,KAAKR,EAAU,SAAUjB,GAE/C,IAAIxB,EAAUS,SAASyC,eACrBC,mBAAmB3B,EAAK4B,KAAKC,OAAO,KAEjCrD,GAGLJ,EAAS0D,KAAK,CACZ1B,IAAKJ,EACLxB,QAASA,GAEb,GAGAL,EAAaC,EACf,EAKAgD,OAAoB,WAElB,IAAIW,EAASlC,EAAUzB,EAAUX,GAG5BsE,EASDb,GAAWa,EAAOvD,UAAY0C,EAAQ1C,UAG1CkC,EAAWQ,EAASzD,GAzFT,SAAUkD,EAAOlD,GAE9B,GAAKkD,EAAL,CAGA,IAAIL,EAAKK,EAAMP,IAAIG,QAAQ,MACtBD,IAGLA,EAAGE,UAAUM,IAAIrD,EAASX,UAC1B6D,EAAMnC,QAAQgC,UAAUM,IAAIrD,EAASV,cAGrC8D,EAAeP,EAAI7C,GAGnBJ,EAAU,kBAAmBiD,EAAI,CAC/BM,KAAMD,EAAMP,IACZ5B,QAASmC,EAAMnC,QACff,SAAUA,IAjBM,CAmBpB,CAqEIuE,CAASD,EAAQtE,GAGjByD,EAAUa,GAfJb,IACFR,EAAWQ,EAASzD,GACpByD,EAAU,KAchB,GAMIe,EAAgB,SAAUvE,GAExByD,GACFxE,EAAOuF,qBAAqBf,GAI9BA,EAAUxE,EAAOwF,sBAAsBf,EAAWgB,OACpD,EAMIC,EAAgB,SAAU3E,GAExByD,GACFxE,EAAOuF,qBAAqBf,GAI9BA,EAAUxE,EAAOwF,sBAAsB,WACrChE,EAAaC,GACbgD,EAAWgB,QACb,EACF,EAkDA,OA7CAhB,EAAWkB,QAAU,WAEfpB,GACFR,EAAWQ,EAASzD,GAItBd,EAAO4F,oBAAoB,SAAUN,GAAe,GAChDxE,EAASN,QACXR,EAAO4F,oBAAoB,SAAUF,GAAe,GAItDjE,EAAW,KACX6C,EAAW,KACXC,EAAU,KACVC,EAAU,KACV1D,EAAW,IACb,EAOEA,EA3XS,WACX,IAAI+E,EAAS,CAAC,EAOd,OANAlB,MAAMC,UAAUC,QAAQC,KAAKgB,UAAW,SAAUC,GAChD,IAAK,IAAIC,KAAOD,EAAK,CACnB,IAAKA,EAAIE,eAAeD,GAAM,OAC9BH,EAAOG,GAAOD,EAAIC,EACpB,CACF,GACOH,CACT,CAkXeK,CAAOhG,EAAUmE,GAAW,CAAC,GAGxCI,EAAW0B,QAGX1B,EAAWgB,SAGXzF,EAAOoG,iBAAiB,SAAUd,GAAe,GAC7CxE,EAASN,QACXR,EAAOoG,iBAAiB,SAAUV,GAAe,GAS9CjB,CACT,CAOF,CArcW4B,CAAQvG,EAChB,UAFM,SAEN,oB,GCXDwG,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaE,QAGrB,IAAIC,EAASN,EAAyBE,GAAY,CAGjDG,QAAS,CAAC,GAOX,OAHAE,EAAoBL,GAAU1B,KAAK8B,EAAOD,QAASC,EAAQA,EAAOD,QAASJ,GAGpEK,EAAOD,OACf,CCrBAJ,EAAoBO,EAAKF,IACxB,IAAIG,EAASH,GAAUA,EAAOI,WAC7B,IAAOJ,EAAiB,QACxB,IAAM,EAEP,OADAL,EAAoBU,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,GCLRR,EAAoBU,EAAI,CAACN,EAASQ,KACjC,IAAI,IAAInB,KAAOmB,EACXZ,EAAoBa,EAAED,EAAYnB,KAASO,EAAoBa,EAAET,EAASX,IAC5EqB,OAAOC,eAAeX,EAASX,EAAK,CAAEuB,YAAY,EAAMC,IAAKL,EAAWnB,MCJ3EO,EAAoBxG,EAAI,WACvB,GAA0B,iBAAf0H,WAAyB,OAAOA,WAC3C,IACC,OAAOxH,MAAQ,IAAIyH,SAAS,cAAb,EAChB,CAAE,MAAOC,GACR,GAAsB,iBAAX3H,OAAqB,OAAOA,MACxC,CACA,CAPuB,GCAxBuG,EAAoBa,EAAI,CAACrB,EAAK6B,IAAUP,OAAOzC,UAAUqB,eAAenB,KAAKiB,EAAK6B,G,yCCK9EC,EAAY,KACZC,EAAS,KACTC,EAAgBzF,SAASC,gBAAgByF,UA4E7C,SAASC,IACP,MAAMC,EAAeC,aAAaC,QAAQ,UAAY,OAZxD,IAAkBC,EACH,WADGA,EAaIrI,OAAOsI,WAAW,gCAAgCC,QAI/C,SAAjBL,EACO,QACgB,SAAhBA,EACA,OAEA,OAIU,SAAjBA,EACO,OACgB,QAAhBA,EACA,QAEA,SA9BoB,SAATG,GAA4B,SAATA,IACzCG,QAAQC,MAAM,2BAA2BJ,yBACzCA,EAAO,QAGT/F,SAASS,KAAK2F,QAAQC,MAAQN,EAC9BF,aAAaS,QAAQ,QAASP,GAC9BG,QAAQK,IAAI,cAAcR,UA0B5B,CAmDA,SAASlC,KART,WAEE,MAAM2C,EAAUxG,SAASyG,uBAAuB,gBAChDpE,MAAMqE,KAAKF,GAASjE,QAASoE,IAC3BA,EAAI7C,iBAAiB,QAAS6B,IAElC,CAGEiB,GA/CF,WAEE,IAAIC,EAA6B,EAC7BC,GAAU,EAEdpJ,OAAOoG,iBAAiB,SAAU,SAAUuB,GAC1CwB,EAA6BnJ,OAAOqJ,QAE/BD,IACHpJ,OAAOwF,sBAAsB,WAzDnC,IAAuB8D,GArDvB,SAAgCA,GAC1BA,EAAY,EACdxB,EAAOjE,UAAUM,IAAI,YAErB2D,EAAOjE,UAAUC,OAAO,WAE5B,EAgDEyF,CADqBD,EA0DDH,GAvGtB,SAAmCG,GAC7BA,EAXmB,GAYrBhH,SAASC,gBAAgBsB,UAAUC,OAAO,oBAEtCwF,EAAYvB,EACdzF,SAASC,gBAAgBsB,UAAUM,IAAI,oBAC9BmF,EAAYvB,GACrBzF,SAASC,gBAAgBsB,UAAUC,OAAO,oBAG9CiE,EAAgBuB,CAClB,CAoCEE,CAA0BF,GAlC5B,SAA6BA,GACT,OAAdzB,IAKa,GAAbyB,EACFzB,EAAU4B,SAAS,EAAG,GAGtB9G,KAAKC,KAAK0G,IACV3G,KAAK+G,MAAMpH,SAASC,gBAAgBS,aAAehD,OAAOqC,aAE1DwF,EAAU4B,SAAS,EAAG5B,EAAU7E,cAGhBV,SAASqH,cAAc,mBAc3C,CAKEC,CAAoBN,GAwDdF,GAAU,CACZ,GAEAA,GAAU,EAEd,GACApJ,OAAO6J,QACT,CA8BEC,GA3BkB,OAAdjC,GAKJ,IAAI,IAAJ,CAAY,cAAe,CACzBrH,QAAQ,EACRuJ,WAAW,EACX5J,SAAU,iBACVI,OAAQ,KACN,IAAIyJ,EAAM9H,WAAW+H,iBAAiB3H,SAASC,iBAAiB2H,UAChE,MAAMC,EAAarC,EAAO7F,wBAC1B,OAAOkI,EAAW1H,IAAM0H,EAAWC,OAAS,IAAMJ,EAAM,IAiB9D,CAcA1H,SAAS8D,iBAAiB,mBAT1B,WACE9D,SAASS,KAAKW,WAAWG,UAAUC,OAAO,SAE1CgE,EAASxF,SAASqH,cAAc,UAChC9B,EAAYvF,SAASqH,cAAc,eAEnCxD,GACF,E","sources":["webpack:///./src/furo/assets/scripts/gumshoe-patched.js","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/global","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///./src/furo/assets/scripts/furo.js"],"sourcesContent":["/*!\n * gumshoejs v5.1.2 (patched by @pradyunsg)\n * A simple, framework-agnostic scrollspy script.\n * (c) 2019 Chris Ferdinandi\n * MIT License\n * http://github.com/cferdinandi/gumshoe\n */\n\n(function (root, factory) {\n if (typeof define === \"function\" && define.amd) {\n define([], function () {\n return factory(root);\n });\n } else if (typeof exports === \"object\") {\n module.exports = factory(root);\n } else {\n root.Gumshoe = factory(root);\n }\n})(\n typeof global !== \"undefined\"\n ? global\n : typeof window !== \"undefined\"\n ? window\n : this,\n function (window) {\n \"use strict\";\n\n //\n // Defaults\n //\n\n var defaults = {\n // Active classes\n navClass: \"active\",\n contentClass: \"active\",\n\n // Nested navigation\n nested: false,\n nestedClass: \"active\",\n\n // Offset & reflow\n offset: 0,\n reflow: false,\n\n // Event support\n events: true,\n };\n\n //\n // Methods\n //\n\n /**\n * Merge two or more objects together.\n * @param {Object} objects The objects to merge together\n * @returns {Object} Merged values of defaults and options\n */\n var extend = function () {\n var merged = {};\n Array.prototype.forEach.call(arguments, function (obj) {\n for (var key in obj) {\n if (!obj.hasOwnProperty(key)) return;\n merged[key] = obj[key];\n }\n });\n return merged;\n };\n\n /**\n * Emit a custom event\n * @param {String} type The event type\n * @param {Node} elem The element to attach the event to\n * @param {Object} detail Any details to pass along with the event\n */\n var emitEvent = function (type, elem, detail) {\n // Make sure events are enabled\n if (!detail.settings.events) return;\n\n // Create a new event\n var event = new CustomEvent(type, {\n bubbles: true,\n cancelable: true,\n detail: detail,\n });\n\n // Dispatch the event\n elem.dispatchEvent(event);\n };\n\n /**\n * Get an element's distance from the top of the Document.\n * @param {Node} elem The element\n * @return {Number} Distance from the top in pixels\n */\n var getOffsetTop = function (elem) {\n var location = 0;\n if (elem.offsetParent) {\n while (elem) {\n location += elem.offsetTop;\n elem = elem.offsetParent;\n }\n }\n return location >= 0 ? location : 0;\n };\n\n /**\n * Sort content from first to last in the DOM\n * @param {Array} contents The content areas\n */\n var sortContents = function (contents) {\n if (contents) {\n contents.sort(function (item1, item2) {\n var offset1 = getOffsetTop(item1.content);\n var offset2 = getOffsetTop(item2.content);\n if (offset1 < offset2) return -1;\n return 1;\n });\n }\n };\n\n /**\n * Get the offset to use for calculating position\n * @param {Object} settings The settings for this instantiation\n * @return {Float} The number of pixels to offset the calculations\n */\n var getOffset = function (settings) {\n // if the offset is a function run it\n if (typeof settings.offset === \"function\") {\n return parseFloat(settings.offset());\n }\n\n // Otherwise, return it as-is\n return parseFloat(settings.offset);\n };\n\n /**\n * Get the document element's height\n * @private\n * @returns {Number}\n */\n var getDocumentHeight = function () {\n return Math.max(\n document.body.scrollHeight,\n document.documentElement.scrollHeight,\n document.body.offsetHeight,\n document.documentElement.offsetHeight,\n document.body.clientHeight,\n document.documentElement.clientHeight,\n );\n };\n\n /**\n * Determine if an element is in view\n * @param {Node} elem The element\n * @param {Object} settings The settings for this instantiation\n * @param {Boolean} bottom If true, check if element is above bottom of viewport instead\n * @return {Boolean} Returns true if element is in the viewport\n */\n var isInView = function (elem, settings, bottom) {\n var bounds = elem.getBoundingClientRect();\n var offset = getOffset(settings);\n if (bottom) {\n return (\n parseInt(bounds.bottom, 10) <\n (window.innerHeight || document.documentElement.clientHeight)\n );\n }\n return parseInt(bounds.top, 10) <= offset;\n };\n\n /**\n * Check if at the bottom of the viewport\n * @return {Boolean} If true, page is at the bottom of the viewport\n */\n var isAtBottom = function () {\n if (\n Math.ceil(window.innerHeight + window.pageYOffset) >=\n getDocumentHeight()\n )\n return true;\n return false;\n };\n\n /**\n * Check if the last item should be used (even if not at the top of the page)\n * @param {Object} item The last item\n * @param {Object} settings The settings for this instantiation\n * @return {Boolean} If true, use the last item\n */\n var useLastItem = function (item, settings) {\n if (isAtBottom() && isInView(item.content, settings, true)) return true;\n return false;\n };\n\n /**\n * Get the active content\n * @param {Array} contents The content areas\n * @param {Object} settings The settings for this instantiation\n * @return {Object} The content area and matching navigation link\n */\n var getActive = function (contents, settings) {\n var last = contents[contents.length - 1];\n if (useLastItem(last, settings)) return last;\n for (var i = contents.length - 1; i >= 0; i--) {\n if (isInView(contents[i].content, settings)) return contents[i];\n }\n };\n\n /**\n * Deactivate parent navs in a nested navigation\n * @param {Node} nav The starting navigation element\n * @param {Object} settings The settings for this instantiation\n */\n var deactivateNested = function (nav, settings) {\n // If nesting isn't activated, bail\n if (!settings.nested || !nav.parentNode) return;\n\n // Get the parent navigation\n var li = nav.parentNode.closest(\"li\");\n if (!li) return;\n\n // Remove the active class\n li.classList.remove(settings.nestedClass);\n\n // Apply recursively to any parent navigation elements\n deactivateNested(li, settings);\n };\n\n /**\n * Deactivate a nav and content area\n * @param {Object} items The nav item and content to deactivate\n * @param {Object} settings The settings for this instantiation\n */\n var deactivate = function (items, settings) {\n // Make sure there are items to deactivate\n if (!items) return;\n\n // Get the parent list item\n var li = items.nav.closest(\"li\");\n if (!li) return;\n\n // Remove the active class from the nav and content\n li.classList.remove(settings.navClass);\n items.content.classList.remove(settings.contentClass);\n\n // Deactivate any parent navs in a nested navigation\n deactivateNested(li, settings);\n\n // Emit a custom event\n emitEvent(\"gumshoeDeactivate\", li, {\n link: items.nav,\n content: items.content,\n settings: settings,\n });\n };\n\n /**\n * Activate parent navs in a nested navigation\n * @param {Node} nav The starting navigation element\n * @param {Object} settings The settings for this instantiation\n */\n var activateNested = function (nav, settings) {\n // If nesting isn't activated, bail\n if (!settings.nested) return;\n\n // Get the parent navigation\n var li = nav.parentNode.closest(\"li\");\n if (!li) return;\n\n // Add the active class\n li.classList.add(settings.nestedClass);\n\n // Apply recursively to any parent navigation elements\n activateNested(li, settings);\n };\n\n /**\n * Activate a nav and content area\n * @param {Object} items The nav item and content to activate\n * @param {Object} settings The settings for this instantiation\n */\n var activate = function (items, settings) {\n // Make sure there are items to activate\n if (!items) return;\n\n // Get the parent list item\n var li = items.nav.closest(\"li\");\n if (!li) return;\n\n // Add the active class to the nav and content\n li.classList.add(settings.navClass);\n items.content.classList.add(settings.contentClass);\n\n // Activate any parent navs in a nested navigation\n activateNested(li, settings);\n\n // Emit a custom event\n emitEvent(\"gumshoeActivate\", li, {\n link: items.nav,\n content: items.content,\n settings: settings,\n });\n };\n\n /**\n * Create the Constructor object\n * @param {String} selector The selector to use for navigation items\n * @param {Object} options User options and settings\n */\n var Constructor = function (selector, options) {\n //\n // Variables\n //\n\n var publicAPIs = {};\n var navItems, contents, current, timeout, settings;\n\n //\n // Methods\n //\n\n /**\n * Set variables from DOM elements\n */\n publicAPIs.setup = function () {\n // Get all nav items\n navItems = document.querySelectorAll(selector);\n\n // Create contents array\n contents = [];\n\n // Loop through each item, get it's matching content, and push to the array\n Array.prototype.forEach.call(navItems, function (item) {\n // Get the content for the nav item\n var content = document.getElementById(\n decodeURIComponent(item.hash.substr(1)),\n );\n if (!content) return;\n\n // Push to the contents array\n contents.push({\n nav: item,\n content: content,\n });\n });\n\n // Sort contents by the order they appear in the DOM\n sortContents(contents);\n };\n\n /**\n * Detect which content is currently active\n */\n publicAPIs.detect = function () {\n // Get the active content\n var active = getActive(contents, settings);\n\n // if there's no active content, deactivate and bail\n if (!active) {\n if (current) {\n deactivate(current, settings);\n current = null;\n }\n return;\n }\n\n // If the active content is the one currently active, do nothing\n if (current && active.content === current.content) return;\n\n // Deactivate the current content and activate the new content\n deactivate(current, settings);\n activate(active, settings);\n\n // Update the currently active content\n current = active;\n };\n\n /**\n * Detect the active content on scroll\n * Debounced for performance\n */\n var scrollHandler = function (event) {\n // If there's a timer, cancel it\n if (timeout) {\n window.cancelAnimationFrame(timeout);\n }\n\n // Setup debounce callback\n timeout = window.requestAnimationFrame(publicAPIs.detect);\n };\n\n /**\n * Update content sorting on resize\n * Debounced for performance\n */\n var resizeHandler = function (event) {\n // If there's a timer, cancel it\n if (timeout) {\n window.cancelAnimationFrame(timeout);\n }\n\n // Setup debounce callback\n timeout = window.requestAnimationFrame(function () {\n sortContents(contents);\n publicAPIs.detect();\n });\n };\n\n /**\n * Destroy the current instantiation\n */\n publicAPIs.destroy = function () {\n // Undo DOM changes\n if (current) {\n deactivate(current, settings);\n }\n\n // Remove event listeners\n window.removeEventListener(\"scroll\", scrollHandler, false);\n if (settings.reflow) {\n window.removeEventListener(\"resize\", resizeHandler, false);\n }\n\n // Reset variables\n contents = null;\n navItems = null;\n current = null;\n timeout = null;\n settings = null;\n };\n\n /**\n * Initialize the current instantiation\n */\n var init = function () {\n // Merge user options into defaults\n settings = extend(defaults, options || {});\n\n // Setup variables based on the current DOM\n publicAPIs.setup();\n\n // Find the currently active content\n publicAPIs.detect();\n\n // Setup event listeners\n window.addEventListener(\"scroll\", scrollHandler, false);\n if (settings.reflow) {\n window.addEventListener(\"resize\", resizeHandler, false);\n }\n };\n\n //\n // Initialize and return the public APIs\n //\n\n init();\n return publicAPIs;\n };\n\n //\n // Return the Constructor\n //\n\n return Constructor;\n },\n);\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","import Gumshoe from \"./gumshoe-patched.js\";\n\n////////////////////////////////////////////////////////////////////////////////\n// Scroll Handling\n////////////////////////////////////////////////////////////////////////////////\nvar tocScroll = null;\nvar header = null;\nvar lastScrollTop = document.documentElement.scrollTop;\nconst GO_TO_TOP_OFFSET = 64;\n\nfunction scrollHandlerForHeader(positionY) {\n if (positionY > 0) {\n header.classList.add(\"scrolled\");\n } else {\n header.classList.remove(\"scrolled\");\n }\n}\n\nfunction scrollHandlerForBackToTop(positionY) {\n if (positionY < GO_TO_TOP_OFFSET) {\n document.documentElement.classList.remove(\"show-back-to-top\");\n } else {\n if (positionY < lastScrollTop) {\n document.documentElement.classList.add(\"show-back-to-top\");\n } else if (positionY > lastScrollTop) {\n document.documentElement.classList.remove(\"show-back-to-top\");\n }\n }\n lastScrollTop = positionY;\n}\n\nfunction scrollHandlerForTOC(positionY) {\n if (tocScroll === null) {\n return;\n }\n\n // top of page.\n if (positionY == 0) {\n tocScroll.scrollTo(0, 0);\n } else if (\n // bottom of page.\n Math.ceil(positionY) >=\n Math.floor(document.documentElement.scrollHeight - window.innerHeight)\n ) {\n tocScroll.scrollTo(0, tocScroll.scrollHeight);\n } else {\n // somewhere in the middle.\n const current = document.querySelector(\".scroll-current\");\n if (current == null) {\n return;\n }\n\n // https://github.com/pypa/pip/issues/9159 This breaks scroll behaviours.\n // // scroll the currently \"active\" heading in toc, into view.\n // const rect = current.getBoundingClientRect();\n // if (0 > rect.top) {\n // current.scrollIntoView(true); // the argument is \"alignTop\"\n // } else if (rect.bottom > window.innerHeight) {\n // current.scrollIntoView(false);\n // }\n }\n}\n\nfunction scrollHandler(positionY) {\n scrollHandlerForHeader(positionY);\n scrollHandlerForBackToTop(positionY);\n scrollHandlerForTOC(positionY);\n}\n\n////////////////////////////////////////////////////////////////////////////////\n// Theme Toggle\n////////////////////////////////////////////////////////////////////////////////\nfunction setTheme(mode) {\n if (mode !== \"light\" && mode !== \"dark\" && mode !== \"auto\") {\n console.error(`Got invalid theme mode: ${mode}. Resetting to auto.`);\n mode = \"auto\";\n }\n\n document.body.dataset.theme = mode;\n localStorage.setItem(\"theme\", mode);\n console.log(`Changed to ${mode} mode.`);\n}\n\nfunction cycleThemeOnce() {\n const currentTheme = localStorage.getItem(\"theme\") || \"auto\";\n const prefersDark = window.matchMedia(\"(prefers-color-scheme: dark)\").matches;\n\n if (prefersDark) {\n // Auto (dark) -> Light -> Dark\n if (currentTheme === \"auto\") {\n setTheme(\"light\");\n } else if (currentTheme == \"light\") {\n setTheme(\"dark\");\n } else {\n setTheme(\"auto\");\n }\n } else {\n // Auto (light) -> Dark -> Light\n if (currentTheme === \"auto\") {\n setTheme(\"dark\");\n } else if (currentTheme == \"dark\") {\n setTheme(\"light\");\n } else {\n setTheme(\"auto\");\n }\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////\n// Setup\n////////////////////////////////////////////////////////////////////////////////\nfunction setupScrollHandler() {\n // Taken from https://developer.mozilla.org/en-US/docs/Web/API/Document/scroll_event\n let last_known_scroll_position = 0;\n let ticking = false;\n\n window.addEventListener(\"scroll\", function (e) {\n last_known_scroll_position = window.scrollY;\n\n if (!ticking) {\n window.requestAnimationFrame(function () {\n scrollHandler(last_known_scroll_position);\n ticking = false;\n });\n\n ticking = true;\n }\n });\n window.scroll();\n}\n\nfunction setupScrollSpy() {\n if (tocScroll === null) {\n return;\n }\n\n // Scrollspy -- highlight table on contents, based on scroll\n new Gumshoe(\".toc-tree a\", {\n reflow: true,\n recursive: true,\n navClass: \"scroll-current\",\n offset: () => {\n let rem = parseFloat(getComputedStyle(document.documentElement).fontSize);\n const headerRect = header.getBoundingClientRect();\n return headerRect.top + headerRect.height + 2.5 * rem + 1;\n },\n });\n}\n\nfunction setupTheme() {\n // Attach event handlers for toggling themes\n const buttons = document.getElementsByClassName(\"theme-toggle\");\n Array.from(buttons).forEach((btn) => {\n btn.addEventListener(\"click\", cycleThemeOnce);\n });\n}\n\nfunction setup() {\n setupTheme();\n setupScrollHandler();\n setupScrollSpy();\n}\n\n////////////////////////////////////////////////////////////////////////////////\n// Main entrypoint\n////////////////////////////////////////////////////////////////////////////////\nfunction main() {\n document.body.parentNode.classList.remove(\"no-js\");\n\n header = document.querySelector(\"header\");\n tocScroll = document.querySelector(\".toc-scroll\");\n\n setup();\n}\n\ndocument.addEventListener(\"DOMContentLoaded\", main);\n"],"names":["root","g","window","this","defaults","navClass","contentClass","nested","nestedClass","offset","reflow","events","emitEvent","type","elem","detail","settings","event","CustomEvent","bubbles","cancelable","dispatchEvent","getOffsetTop","location","offsetParent","offsetTop","sortContents","contents","sort","item1","item2","content","isInView","bottom","bounds","getBoundingClientRect","parseFloat","getOffset","parseInt","innerHeight","document","documentElement","clientHeight","top","isAtBottom","Math","ceil","pageYOffset","max","body","scrollHeight","offsetHeight","getActive","last","length","item","useLastItem","i","deactivateNested","nav","parentNode","li","closest","classList","remove","deactivate","items","link","activateNested","add","selector","options","navItems","current","timeout","publicAPIs","querySelectorAll","Array","prototype","forEach","call","getElementById","decodeURIComponent","hash","substr","push","active","activate","scrollHandler","cancelAnimationFrame","requestAnimationFrame","detect","resizeHandler","destroy","removeEventListener","merged","arguments","obj","key","hasOwnProperty","extend","setup","addEventListener","factory","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","n","getter","__esModule","d","a","definition","o","Object","defineProperty","enumerable","get","globalThis","Function","e","prop","tocScroll","header","lastScrollTop","scrollTop","cycleThemeOnce","currentTheme","localStorage","getItem","mode","matchMedia","matches","console","error","dataset","theme","setItem","log","buttons","getElementsByClassName","from","btn","setupTheme","last_known_scroll_position","ticking","scrollY","positionY","scrollHandlerForHeader","scrollHandlerForBackToTop","scrollTo","floor","querySelector","scrollHandlerForTOC","scroll","setupScrollHandler","recursive","rem","getComputedStyle","fontSize","headerRect","height"],"sourceRoot":""} \ No newline at end of file diff --git a/SRV/docs/_build/html/_static/searchtools.js b/SRV/docs/_build/html/_static/searchtools.js deleted file mode 100644 index 91f4be5..0000000 --- a/SRV/docs/_build/html/_static/searchtools.js +++ /dev/null @@ -1,635 +0,0 @@ -/* - * Sphinx JavaScript utilities for the full-text search. - */ -"use strict"; - -/** - * Simple result scoring code. - */ -if (typeof Scorer === "undefined") { - var Scorer = { - // Implement the following function to further tweak the score for each result - // The function takes a result array [docname, title, anchor, descr, score, filename] - // and returns the new score. - /* - score: result => { - const [docname, title, anchor, descr, score, filename, kind] = result - return score - }, - */ - - // query matches the full name of an object - objNameMatch: 11, - // or matches in the last dotted part of the object name - objPartialMatch: 6, - // Additive scores depending on the priority of the object - objPrio: { - 0: 15, // used to be importantResults - 1: 5, // used to be objectResults - 2: -5, // used to be unimportantResults - }, - // Used when the priority is not in the mapping. - objPrioDefault: 0, - - // query found in title - title: 15, - partialTitle: 7, - // query found in terms - term: 5, - partialTerm: 2, - }; -} - -// Global search result kind enum, used by themes to style search results. -class SearchResultKind { - static get index() { return "index"; } - static get object() { return "object"; } - static get text() { return "text"; } - static get title() { return "title"; } -} - -const _removeChildren = (element) => { - while (element && element.lastChild) element.removeChild(element.lastChild); -}; - -/** - * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#escaping - */ -const _escapeRegExp = (string) => - string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string - -const _displayItem = (item, searchTerms, highlightTerms) => { - const docBuilder = DOCUMENTATION_OPTIONS.BUILDER; - const docFileSuffix = DOCUMENTATION_OPTIONS.FILE_SUFFIX; - const docLinkSuffix = DOCUMENTATION_OPTIONS.LINK_SUFFIX; - const showSearchSummary = DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY; - const contentRoot = document.documentElement.dataset.content_root; - - const [docName, title, anchor, descr, score, _filename, kind] = item; - - let listItem = document.createElement("li"); - // Add a class representing the item's type: - // can be used by a theme's CSS selector for styling - // See SearchResultKind for the class names. - listItem.classList.add(`kind-${kind}`); - let requestUrl; - let linkUrl; - if (docBuilder === "dirhtml") { - // dirhtml builder - let dirname = docName + "/"; - if (dirname.match(/\/index\/$/)) - dirname = dirname.substring(0, dirname.length - 6); - else if (dirname === "index/") dirname = ""; - requestUrl = contentRoot + dirname; - linkUrl = requestUrl; - } else { - // normal html builders - requestUrl = contentRoot + docName + docFileSuffix; - linkUrl = docName + docLinkSuffix; - } - let linkEl = listItem.appendChild(document.createElement("a")); - linkEl.href = linkUrl + anchor; - linkEl.dataset.score = score; - linkEl.innerHTML = title; - if (descr) { - listItem.appendChild(document.createElement("span")).innerHTML = - " (" + descr + ")"; - // highlight search terms in the description - if (SPHINX_HIGHLIGHT_ENABLED) // set in sphinx_highlight.js - highlightTerms.forEach((term) => _highlightText(listItem, term, "highlighted")); - } - else if (showSearchSummary) - fetch(requestUrl) - .then((responseData) => responseData.text()) - .then((data) => { - if (data) - listItem.appendChild( - Search.makeSearchSummary(data, searchTerms, anchor) - ); - // highlight search terms in the summary - if (SPHINX_HIGHLIGHT_ENABLED) // set in sphinx_highlight.js - highlightTerms.forEach((term) => _highlightText(listItem, term, "highlighted")); - }); - Search.output.appendChild(listItem); -}; -const _finishSearch = (resultCount) => { - Search.stopPulse(); - Search.title.innerText = _("Search Results"); - if (!resultCount) - Search.status.innerText = Documentation.gettext( - "Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories." - ); - else - Search.status.innerText = Documentation.ngettext( - "Search finished, found one page matching the search query.", - "Search finished, found ${resultCount} pages matching the search query.", - resultCount, - ).replace('${resultCount}', resultCount); -}; -const _displayNextItem = ( - results, - resultCount, - searchTerms, - highlightTerms, -) => { - // results left, load the summary and display it - // this is intended to be dynamic (don't sub resultsCount) - if (results.length) { - _displayItem(results.pop(), searchTerms, highlightTerms); - setTimeout( - () => _displayNextItem(results, resultCount, searchTerms, highlightTerms), - 5 - ); - } - // search finished, update title and status message - else _finishSearch(resultCount); -}; -// Helper function used by query() to order search results. -// Each input is an array of [docname, title, anchor, descr, score, filename, kind]. -// Order the results by score (in opposite order of appearance, since the -// `_displayNextItem` function uses pop() to retrieve items) and then alphabetically. -const _orderResultsByScoreThenName = (a, b) => { - const leftScore = a[4]; - const rightScore = b[4]; - if (leftScore === rightScore) { - // same score: sort alphabetically - const leftTitle = a[1].toLowerCase(); - const rightTitle = b[1].toLowerCase(); - if (leftTitle === rightTitle) return 0; - return leftTitle > rightTitle ? -1 : 1; // inverted is intentional - } - return leftScore > rightScore ? 1 : -1; -}; - -/** - * Default splitQuery function. Can be overridden in ``sphinx.search`` with a - * custom function per language. - * - * The regular expression works by splitting the string on consecutive characters - * that are not Unicode letters, numbers, underscores, or emoji characters. - * This is the same as ``\W+`` in Python, preserving the surrogate pair area. - */ -if (typeof splitQuery === "undefined") { - var splitQuery = (query) => query - .split(/[^\p{Letter}\p{Number}_\p{Emoji_Presentation}]+/gu) - .filter(term => term) // remove remaining empty strings -} - -/** - * Search Module - */ -const Search = { - _index: null, - _queued_query: null, - _pulse_status: -1, - - htmlToText: (htmlString, anchor) => { - const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html'); - for (const removalQuery of [".headerlink", "script", "style"]) { - htmlElement.querySelectorAll(removalQuery).forEach((el) => { el.remove() }); - } - if (anchor) { - const anchorContent = htmlElement.querySelector(`[role="main"] ${anchor}`); - if (anchorContent) return anchorContent.textContent; - - console.warn( - `Anchored content block not found. Sphinx search tries to obtain it via DOM query '[role=main] ${anchor}'. Check your theme or template.` - ); - } - - // if anchor not specified or not found, fall back to main content - const docContent = htmlElement.querySelector('[role="main"]'); - if (docContent) return docContent.textContent; - - console.warn( - "Content block not found. Sphinx search tries to obtain it via DOM query '[role=main]'. Check your theme or template." - ); - return ""; - }, - - init: () => { - const query = new URLSearchParams(window.location.search).get("q"); - document - .querySelectorAll('input[name="q"]') - .forEach((el) => (el.value = query)); - if (query) Search.performSearch(query); - }, - - loadIndex: (url) => - (document.body.appendChild(document.createElement("script")).src = url), - - setIndex: (index) => { - Search._index = index; - if (Search._queued_query !== null) { - const query = Search._queued_query; - Search._queued_query = null; - Search.query(query); - } - }, - - hasIndex: () => Search._index !== null, - - deferQuery: (query) => (Search._queued_query = query), - - stopPulse: () => (Search._pulse_status = -1), - - startPulse: () => { - if (Search._pulse_status >= 0) return; - - const pulse = () => { - Search._pulse_status = (Search._pulse_status + 1) % 4; - Search.dots.innerText = ".".repeat(Search._pulse_status); - if (Search._pulse_status >= 0) window.setTimeout(pulse, 500); - }; - pulse(); - }, - - /** - * perform a search for something (or wait until index is loaded) - */ - performSearch: (query) => { - // create the required interface elements - const searchText = document.createElement("h2"); - searchText.textContent = _("Searching"); - const searchSummary = document.createElement("p"); - searchSummary.classList.add("search-summary"); - searchSummary.innerText = ""; - const searchList = document.createElement("ul"); - searchList.setAttribute("role", "list"); - searchList.classList.add("search"); - - const out = document.getElementById("search-results"); - Search.title = out.appendChild(searchText); - Search.dots = Search.title.appendChild(document.createElement("span")); - Search.status = out.appendChild(searchSummary); - Search.output = out.appendChild(searchList); - - const searchProgress = document.getElementById("search-progress"); - // Some themes don't use the search progress node - if (searchProgress) { - searchProgress.innerText = _("Preparing search..."); - } - Search.startPulse(); - - // index already loaded, the browser was quick! - if (Search.hasIndex()) Search.query(query); - else Search.deferQuery(query); - }, - - _parseQuery: (query) => { - // stem the search terms and add them to the correct list - const stemmer = new Stemmer(); - const searchTerms = new Set(); - const excludedTerms = new Set(); - const highlightTerms = new Set(); - const objectTerms = new Set(splitQuery(query.toLowerCase().trim())); - splitQuery(query.trim()).forEach((queryTerm) => { - const queryTermLower = queryTerm.toLowerCase(); - - // maybe skip this "word" - // stopwords array is from language_data.js - if ( - stopwords.indexOf(queryTermLower) !== -1 || - queryTerm.match(/^\d+$/) - ) - return; - - // stem the word - let word = stemmer.stemWord(queryTermLower); - // select the correct list - if (word[0] === "-") excludedTerms.add(word.substr(1)); - else { - searchTerms.add(word); - highlightTerms.add(queryTermLower); - } - }); - - if (SPHINX_HIGHLIGHT_ENABLED) { // set in sphinx_highlight.js - localStorage.setItem("sphinx_highlight_terms", [...highlightTerms].join(" ")) - } - - // console.debug("SEARCH: searching for:"); - // console.info("required: ", [...searchTerms]); - // console.info("excluded: ", [...excludedTerms]); - - return [query, searchTerms, excludedTerms, highlightTerms, objectTerms]; - }, - - /** - * execute search (requires search index to be loaded) - */ - _performSearch: (query, searchTerms, excludedTerms, highlightTerms, objectTerms) => { - const filenames = Search._index.filenames; - const docNames = Search._index.docnames; - const titles = Search._index.titles; - const allTitles = Search._index.alltitles; - const indexEntries = Search._index.indexentries; - - // Collect multiple result groups to be sorted separately and then ordered. - // Each is an array of [docname, title, anchor, descr, score, filename, kind]. - const normalResults = []; - const nonMainIndexResults = []; - - _removeChildren(document.getElementById("search-progress")); - - const queryLower = query.toLowerCase().trim(); - for (const [title, foundTitles] of Object.entries(allTitles)) { - if (title.toLowerCase().trim().includes(queryLower) && (queryLower.length >= title.length/2)) { - for (const [file, id] of foundTitles) { - const score = Math.round(Scorer.title * queryLower.length / title.length); - const boost = titles[file] === title ? 1 : 0; // add a boost for document titles - normalResults.push([ - docNames[file], - titles[file] !== title ? `${titles[file]} > ${title}` : title, - id !== null ? "#" + id : "", - null, - score + boost, - filenames[file], - SearchResultKind.title, - ]); - } - } - } - - // search for explicit entries in index directives - for (const [entry, foundEntries] of Object.entries(indexEntries)) { - if (entry.includes(queryLower) && (queryLower.length >= entry.length/2)) { - for (const [file, id, isMain] of foundEntries) { - const score = Math.round(100 * queryLower.length / entry.length); - const result = [ - docNames[file], - titles[file], - id ? "#" + id : "", - null, - score, - filenames[file], - SearchResultKind.index, - ]; - if (isMain) { - normalResults.push(result); - } else { - nonMainIndexResults.push(result); - } - } - } - } - - // lookup as object - objectTerms.forEach((term) => - normalResults.push(...Search.performObjectSearch(term, objectTerms)) - ); - - // lookup as search terms in fulltext - normalResults.push(...Search.performTermsSearch(searchTerms, excludedTerms)); - - // let the scorer override scores with a custom scoring function - if (Scorer.score) { - normalResults.forEach((item) => (item[4] = Scorer.score(item))); - nonMainIndexResults.forEach((item) => (item[4] = Scorer.score(item))); - } - - // Sort each group of results by score and then alphabetically by name. - normalResults.sort(_orderResultsByScoreThenName); - nonMainIndexResults.sort(_orderResultsByScoreThenName); - - // Combine the result groups in (reverse) order. - // Non-main index entries are typically arbitrary cross-references, - // so display them after other results. - let results = [...nonMainIndexResults, ...normalResults]; - - // remove duplicate search results - // note the reversing of results, so that in the case of duplicates, the highest-scoring entry is kept - let seen = new Set(); - results = results.reverse().reduce((acc, result) => { - let resultStr = result.slice(0, 4).concat([result[5]]).map(v => String(v)).join(','); - if (!seen.has(resultStr)) { - acc.push(result); - seen.add(resultStr); - } - return acc; - }, []); - - return results.reverse(); - }, - - query: (query) => { - const [searchQuery, searchTerms, excludedTerms, highlightTerms, objectTerms] = Search._parseQuery(query); - const results = Search._performSearch(searchQuery, searchTerms, excludedTerms, highlightTerms, objectTerms); - - // for debugging - //Search.lastresults = results.slice(); // a copy - // console.info("search results:", Search.lastresults); - - // print the results - _displayNextItem(results, results.length, searchTerms, highlightTerms); - }, - - /** - * search for object names - */ - performObjectSearch: (object, objectTerms) => { - const filenames = Search._index.filenames; - const docNames = Search._index.docnames; - const objects = Search._index.objects; - const objNames = Search._index.objnames; - const titles = Search._index.titles; - - const results = []; - - const objectSearchCallback = (prefix, match) => { - const name = match[4] - const fullname = (prefix ? prefix + "." : "") + name; - const fullnameLower = fullname.toLowerCase(); - if (fullnameLower.indexOf(object) < 0) return; - - let score = 0; - const parts = fullnameLower.split("."); - - // check for different match types: exact matches of full name or - // "last name" (i.e. last dotted part) - if (fullnameLower === object || parts.slice(-1)[0] === object) - score += Scorer.objNameMatch; - else if (parts.slice(-1)[0].indexOf(object) > -1) - score += Scorer.objPartialMatch; // matches in last name - - const objName = objNames[match[1]][2]; - const title = titles[match[0]]; - - // If more than one term searched for, we require other words to be - // found in the name/title/description - const otherTerms = new Set(objectTerms); - otherTerms.delete(object); - if (otherTerms.size > 0) { - const haystack = `${prefix} ${name} ${objName} ${title}`.toLowerCase(); - if ( - [...otherTerms].some((otherTerm) => haystack.indexOf(otherTerm) < 0) - ) - return; - } - - let anchor = match[3]; - if (anchor === "") anchor = fullname; - else if (anchor === "-") anchor = objNames[match[1]][1] + "-" + fullname; - - const descr = objName + _(", in ") + title; - - // add custom score for some objects according to scorer - if (Scorer.objPrio.hasOwnProperty(match[2])) - score += Scorer.objPrio[match[2]]; - else score += Scorer.objPrioDefault; - - results.push([ - docNames[match[0]], - fullname, - "#" + anchor, - descr, - score, - filenames[match[0]], - SearchResultKind.object, - ]); - }; - Object.keys(objects).forEach((prefix) => - objects[prefix].forEach((array) => - objectSearchCallback(prefix, array) - ) - ); - return results; - }, - - /** - * search for full-text terms in the index - */ - performTermsSearch: (searchTerms, excludedTerms) => { - // prepare search - const terms = Search._index.terms; - const titleTerms = Search._index.titleterms; - const filenames = Search._index.filenames; - const docNames = Search._index.docnames; - const titles = Search._index.titles; - - const scoreMap = new Map(); - const fileMap = new Map(); - - // perform the search on the required terms - searchTerms.forEach((word) => { - const files = []; - // find documents, if any, containing the query word in their text/title term indices - // use Object.hasOwnProperty to avoid mismatching against prototype properties - const arr = [ - { files: terms.hasOwnProperty(word) ? terms[word] : undefined, score: Scorer.term }, - { files: titleTerms.hasOwnProperty(word) ? titleTerms[word] : undefined, score: Scorer.title }, - ]; - // add support for partial matches - if (word.length > 2) { - const escapedWord = _escapeRegExp(word); - if (!terms.hasOwnProperty(word)) { - Object.keys(terms).forEach((term) => { - if (term.match(escapedWord)) - arr.push({ files: terms[term], score: Scorer.partialTerm }); - }); - } - if (!titleTerms.hasOwnProperty(word)) { - Object.keys(titleTerms).forEach((term) => { - if (term.match(escapedWord)) - arr.push({ files: titleTerms[term], score: Scorer.partialTitle }); - }); - } - } - - // no match but word was a required one - if (arr.every((record) => record.files === undefined)) return; - - // found search word in contents - arr.forEach((record) => { - if (record.files === undefined) return; - - let recordFiles = record.files; - if (recordFiles.length === undefined) recordFiles = [recordFiles]; - files.push(...recordFiles); - - // set score for the word in each file - recordFiles.forEach((file) => { - if (!scoreMap.has(file)) scoreMap.set(file, new Map()); - const fileScores = scoreMap.get(file); - fileScores.set(word, record.score); - }); - }); - - // create the mapping - files.forEach((file) => { - if (!fileMap.has(file)) fileMap.set(file, [word]); - else if (fileMap.get(file).indexOf(word) === -1) fileMap.get(file).push(word); - }); - }); - - // now check if the files don't contain excluded terms - const results = []; - for (const [file, wordList] of fileMap) { - // check if all requirements are matched - - // as search terms with length < 3 are discarded - const filteredTermCount = [...searchTerms].filter( - (term) => term.length > 2 - ).length; - if ( - wordList.length !== searchTerms.size && - wordList.length !== filteredTermCount - ) - continue; - - // ensure that none of the excluded terms is in the search result - if ( - [...excludedTerms].some( - (term) => - terms[term] === file || - titleTerms[term] === file || - (terms[term] || []).includes(file) || - (titleTerms[term] || []).includes(file) - ) - ) - break; - - // select one (max) score for the file. - const score = Math.max(...wordList.map((w) => scoreMap.get(file).get(w))); - // add result to the result list - results.push([ - docNames[file], - titles[file], - "", - null, - score, - filenames[file], - SearchResultKind.text, - ]); - } - return results; - }, - - /** - * helper function to return a node containing the - * search summary for a given text. keywords is a list - * of stemmed words. - */ - makeSearchSummary: (htmlText, keywords, anchor) => { - const text = Search.htmlToText(htmlText, anchor); - if (text === "") return null; - - const textLower = text.toLowerCase(); - const actualStartPosition = [...keywords] - .map((k) => textLower.indexOf(k.toLowerCase())) - .filter((i) => i > -1) - .slice(-1)[0]; - const startWithContext = Math.max(actualStartPosition - 120, 0); - - const top = startWithContext === 0 ? "" : "..."; - const tail = startWithContext + 240 < text.length ? "..." : ""; - - let summary = document.createElement("p"); - summary.classList.add("context"); - summary.textContent = top + text.substr(startWithContext, 240).trim() + tail; - - return summary; - }, -}; - -_ready(Search.init); diff --git a/SRV/docs/_build/html/_static/skeleton.css b/SRV/docs/_build/html/_static/skeleton.css deleted file mode 100644 index 467c878..0000000 --- a/SRV/docs/_build/html/_static/skeleton.css +++ /dev/null @@ -1,296 +0,0 @@ -/* Some sane resets. */ -html { - height: 100%; -} - -body { - margin: 0; - min-height: 100%; -} - -/* All the flexbox magic! */ -body, -.sb-announcement, -.sb-content, -.sb-main, -.sb-container, -.sb-container__inner, -.sb-article-container, -.sb-footer-content, -.sb-header, -.sb-header-secondary, -.sb-footer { - display: flex; -} - -/* These order things vertically */ -body, -.sb-main, -.sb-article-container { - flex-direction: column; -} - -/* Put elements in the center */ -.sb-header, -.sb-header-secondary, -.sb-container, -.sb-content, -.sb-footer, -.sb-footer-content { - justify-content: center; -} -/* Put elements at the ends */ -.sb-article-container { - justify-content: space-between; -} - -/* These elements grow. */ -.sb-main, -.sb-content, -.sb-container, -article { - flex-grow: 1; -} - -/* Because padding making this wider is not fun */ -article { - box-sizing: border-box; -} - -/* The announcements element should never be wider than the page. */ -.sb-announcement { - max-width: 100%; -} - -.sb-sidebar-primary, -.sb-sidebar-secondary { - flex-shrink: 0; - width: 17rem; -} - -.sb-announcement__inner { - justify-content: center; - - box-sizing: border-box; - height: 3rem; - - overflow-x: auto; - white-space: nowrap; -} - -/* Sidebars, with checkbox-based toggle */ -.sb-sidebar-primary, -.sb-sidebar-secondary { - position: fixed; - height: 100%; - top: 0; -} - -.sb-sidebar-primary { - left: -17rem; - transition: left 250ms ease-in-out; -} -.sb-sidebar-secondary { - right: -17rem; - transition: right 250ms ease-in-out; -} - -.sb-sidebar-toggle { - display: none; -} -.sb-sidebar-overlay { - position: fixed; - top: 0; - width: 0; - height: 0; - - transition: width 0ms ease 250ms, height 0ms ease 250ms, opacity 250ms ease; - - opacity: 0; - background-color: rgba(0, 0, 0, 0.54); -} - -#sb-sidebar-toggle--primary:checked - ~ .sb-sidebar-overlay[for="sb-sidebar-toggle--primary"], -#sb-sidebar-toggle--secondary:checked - ~ .sb-sidebar-overlay[for="sb-sidebar-toggle--secondary"] { - width: 100%; - height: 100%; - opacity: 1; - transition: width 0ms ease, height 0ms ease, opacity 250ms ease; -} - -#sb-sidebar-toggle--primary:checked ~ .sb-container .sb-sidebar-primary { - left: 0; -} -#sb-sidebar-toggle--secondary:checked ~ .sb-container .sb-sidebar-secondary { - right: 0; -} - -/* Full-width mode */ -.drop-secondary-sidebar-for-full-width-content - .hide-when-secondary-sidebar-shown { - display: none !important; -} -.drop-secondary-sidebar-for-full-width-content .sb-sidebar-secondary { - display: none !important; -} - -/* Mobile views */ -.sb-page-width { - width: 100%; -} - -.sb-article-container, -.sb-footer-content__inner, -.drop-secondary-sidebar-for-full-width-content .sb-article, -.drop-secondary-sidebar-for-full-width-content .match-content-width { - width: 100vw; -} - -.sb-article, -.match-content-width { - padding: 0 1rem; - box-sizing: border-box; -} - -@media (min-width: 32rem) { - .sb-article, - .match-content-width { - padding: 0 2rem; - } -} - -/* Tablet views */ -@media (min-width: 42rem) { - .sb-article-container { - width: auto; - } - .sb-footer-content__inner, - .drop-secondary-sidebar-for-full-width-content .sb-article, - .drop-secondary-sidebar-for-full-width-content .match-content-width { - width: 42rem; - } - .sb-article, - .match-content-width { - width: 42rem; - } -} -@media (min-width: 46rem) { - .sb-footer-content__inner, - .drop-secondary-sidebar-for-full-width-content .sb-article, - .drop-secondary-sidebar-for-full-width-content .match-content-width { - width: 46rem; - } - .sb-article, - .match-content-width { - width: 46rem; - } -} -@media (min-width: 50rem) { - .sb-footer-content__inner, - .drop-secondary-sidebar-for-full-width-content .sb-article, - .drop-secondary-sidebar-for-full-width-content .match-content-width { - width: 50rem; - } - .sb-article, - .match-content-width { - width: 50rem; - } -} - -/* Tablet views */ -@media (min-width: 59rem) { - .sb-sidebar-secondary { - position: static; - } - .hide-when-secondary-sidebar-shown { - display: none !important; - } - .sb-footer-content__inner, - .drop-secondary-sidebar-for-full-width-content .sb-article, - .drop-secondary-sidebar-for-full-width-content .match-content-width { - width: 59rem; - } - .sb-article, - .match-content-width { - width: 42rem; - } -} -@media (min-width: 63rem) { - .sb-footer-content__inner, - .drop-secondary-sidebar-for-full-width-content .sb-article, - .drop-secondary-sidebar-for-full-width-content .match-content-width { - width: 63rem; - } - .sb-article, - .match-content-width { - width: 46rem; - } -} -@media (min-width: 67rem) { - .sb-footer-content__inner, - .drop-secondary-sidebar-for-full-width-content .sb-article, - .drop-secondary-sidebar-for-full-width-content .match-content-width { - width: 67rem; - } - .sb-article, - .match-content-width { - width: 50rem; - } -} - -/* Desktop views */ -@media (min-width: 76rem) { - .sb-sidebar-primary { - position: static; - } - .hide-when-primary-sidebar-shown { - display: none !important; - } - .sb-footer-content__inner, - .drop-secondary-sidebar-for-full-width-content .sb-article, - .drop-secondary-sidebar-for-full-width-content .match-content-width { - width: 59rem; - } - .sb-article, - .match-content-width { - width: 42rem; - } -} - -/* Full desktop views */ -@media (min-width: 80rem) { - .sb-article, - .match-content-width { - width: 46rem; - } - .sb-footer-content__inner, - .drop-secondary-sidebar-for-full-width-content .sb-article, - .drop-secondary-sidebar-for-full-width-content .match-content-width { - width: 63rem; - } -} - -@media (min-width: 84rem) { - .sb-article, - .match-content-width { - width: 50rem; - } - .sb-footer-content__inner, - .drop-secondary-sidebar-for-full-width-content .sb-article, - .drop-secondary-sidebar-for-full-width-content .match-content-width { - width: 67rem; - } -} - -@media (min-width: 88rem) { - .sb-footer-content__inner, - .drop-secondary-sidebar-for-full-width-content .sb-article, - .drop-secondary-sidebar-for-full-width-content .match-content-width { - width: 67rem; - } - .sb-page-width { - width: 88rem; - } -} diff --git a/SRV/docs/_build/html/_static/sphinx_highlight.js b/SRV/docs/_build/html/_static/sphinx_highlight.js deleted file mode 100644 index 8a96c69..0000000 --- a/SRV/docs/_build/html/_static/sphinx_highlight.js +++ /dev/null @@ -1,154 +0,0 @@ -/* Highlighting utilities for Sphinx HTML documentation. */ -"use strict"; - -const SPHINX_HIGHLIGHT_ENABLED = true - -/** - * highlight a given string on a node by wrapping it in - * span elements with the given class name. - */ -const _highlight = (node, addItems, text, className) => { - if (node.nodeType === Node.TEXT_NODE) { - const val = node.nodeValue; - const parent = node.parentNode; - const pos = val.toLowerCase().indexOf(text); - if ( - pos >= 0 && - !parent.classList.contains(className) && - !parent.classList.contains("nohighlight") - ) { - let span; - - const closestNode = parent.closest("body, svg, foreignObject"); - const isInSVG = closestNode && closestNode.matches("svg"); - if (isInSVG) { - span = document.createElementNS("http://www.w3.org/2000/svg", "tspan"); - } else { - span = document.createElement("span"); - span.classList.add(className); - } - - span.appendChild(document.createTextNode(val.substr(pos, text.length))); - const rest = document.createTextNode(val.substr(pos + text.length)); - parent.insertBefore( - span, - parent.insertBefore( - rest, - node.nextSibling - ) - ); - node.nodeValue = val.substr(0, pos); - /* There may be more occurrences of search term in this node. So call this - * function recursively on the remaining fragment. - */ - _highlight(rest, addItems, text, className); - - if (isInSVG) { - const rect = document.createElementNS( - "http://www.w3.org/2000/svg", - "rect" - ); - const bbox = parent.getBBox(); - rect.x.baseVal.value = bbox.x; - rect.y.baseVal.value = bbox.y; - rect.width.baseVal.value = bbox.width; - rect.height.baseVal.value = bbox.height; - rect.setAttribute("class", className); - addItems.push({ parent: parent, target: rect }); - } - } - } else if (node.matches && !node.matches("button, select, textarea")) { - node.childNodes.forEach((el) => _highlight(el, addItems, text, className)); - } -}; -const _highlightText = (thisNode, text, className) => { - let addItems = []; - _highlight(thisNode, addItems, text, className); - addItems.forEach((obj) => - obj.parent.insertAdjacentElement("beforebegin", obj.target) - ); -}; - -/** - * Small JavaScript module for the documentation. - */ -const SphinxHighlight = { - - /** - * highlight the search words provided in localstorage in the text - */ - highlightSearchWords: () => { - if (!SPHINX_HIGHLIGHT_ENABLED) return; // bail if no highlight - - // get and clear terms from localstorage - const url = new URL(window.location); - const highlight = - localStorage.getItem("sphinx_highlight_terms") - || url.searchParams.get("highlight") - || ""; - localStorage.removeItem("sphinx_highlight_terms") - url.searchParams.delete("highlight"); - window.history.replaceState({}, "", url); - - // get individual terms from highlight string - const terms = highlight.toLowerCase().split(/\s+/).filter(x => x); - if (terms.length === 0) return; // nothing to do - - // There should never be more than one element matching "div.body" - const divBody = document.querySelectorAll("div.body"); - const body = divBody.length ? divBody[0] : document.querySelector("body"); - window.setTimeout(() => { - terms.forEach((term) => _highlightText(body, term, "highlighted")); - }, 10); - - const searchBox = document.getElementById("searchbox"); - if (searchBox === null) return; - searchBox.appendChild( - document - .createRange() - .createContextualFragment( - '" - ) - ); - }, - - /** - * helper function to hide the search marks again - */ - hideSearchWords: () => { - document - .querySelectorAll("#searchbox .highlight-link") - .forEach((el) => el.remove()); - document - .querySelectorAll("span.highlighted") - .forEach((el) => el.classList.remove("highlighted")); - localStorage.removeItem("sphinx_highlight_terms") - }, - - initEscapeListener: () => { - // only install a listener if it is really needed - if (!DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS) return; - - document.addEventListener("keydown", (event) => { - // bail for input elements - if (BLACKLISTED_KEY_CONTROL_ELEMENTS.has(document.activeElement.tagName)) return; - // bail with special keys - if (event.shiftKey || event.altKey || event.ctrlKey || event.metaKey) return; - if (DOCUMENTATION_OPTIONS.ENABLE_SEARCH_SHORTCUTS && (event.key === "Escape")) { - SphinxHighlight.hideSearchWords(); - event.preventDefault(); - } - }); - }, -}; - -_ready(() => { - /* Do not call highlightSearchWords() when we are on the search page. - * It will highlight words from the *previous* search query. - */ - if (typeof Search === "undefined") SphinxHighlight.highlightSearchWords(); - SphinxHighlight.initEscapeListener(); -}); diff --git a/SRV/docs/_build/html/_static/styles/furo-extensions.css b/SRV/docs/_build/html/_static/styles/furo-extensions.css deleted file mode 100644 index 2d74267..0000000 --- a/SRV/docs/_build/html/_static/styles/furo-extensions.css +++ /dev/null @@ -1,2 +0,0 @@ -#furo-sidebar-ad-placement{padding:var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal)}#furo-sidebar-ad-placement .ethical-sidebar{background:var(--color-background-secondary);border:none;box-shadow:none}#furo-sidebar-ad-placement .ethical-sidebar:hover{background:var(--color-background-hover)}#furo-sidebar-ad-placement .ethical-sidebar a{color:var(--color-foreground-primary)}#furo-sidebar-ad-placement .ethical-callout a{color:var(--color-foreground-secondary)!important}#furo-readthedocs-versions{background:transparent;display:block;position:static;width:100%}#furo-readthedocs-versions .rst-versions{background:#1a1c1e}#furo-readthedocs-versions .rst-current-version{background:var(--color-sidebar-item-background);cursor:unset}#furo-readthedocs-versions .rst-current-version:hover{background:var(--color-sidebar-item-background)}#furo-readthedocs-versions .rst-current-version .fa-book{color:var(--color-foreground-primary)}#furo-readthedocs-versions>.rst-other-versions{padding:0}#furo-readthedocs-versions>.rst-other-versions small{opacity:1}#furo-readthedocs-versions .injected .rst-versions{position:unset}#furo-readthedocs-versions:focus-within,#furo-readthedocs-versions:hover{box-shadow:0 0 0 1px var(--color-sidebar-background-border)}#furo-readthedocs-versions:focus-within .rst-current-version,#furo-readthedocs-versions:hover .rst-current-version{background:#1a1c1e;font-size:inherit;height:auto;line-height:inherit;padding:12px;text-align:right}#furo-readthedocs-versions:focus-within .rst-current-version .fa-book,#furo-readthedocs-versions:hover .rst-current-version .fa-book{color:#fff;float:left}#furo-readthedocs-versions:focus-within .fa-caret-down,#furo-readthedocs-versions:hover .fa-caret-down{display:none}#furo-readthedocs-versions:focus-within .injected,#furo-readthedocs-versions:focus-within .rst-current-version,#furo-readthedocs-versions:focus-within .rst-other-versions,#furo-readthedocs-versions:hover .injected,#furo-readthedocs-versions:hover .rst-current-version,#furo-readthedocs-versions:hover .rst-other-versions{display:block}#furo-readthedocs-versions:focus-within>.rst-current-version,#furo-readthedocs-versions:hover>.rst-current-version{display:none}.highlight:hover button.copybtn{color:var(--color-code-foreground)}.highlight button.copybtn{align-items:center;background-color:var(--color-code-background);border:none;color:var(--color-background-item);cursor:pointer;height:1.25em;right:.5rem;top:.625rem;transition:color .3s,opacity .3s;width:1.25em}.highlight button.copybtn:hover{background-color:var(--color-code-background);color:var(--color-brand-content)}.highlight button.copybtn:after{background-color:transparent;color:var(--color-code-foreground);display:none}.highlight button.copybtn.success{color:#22863a;transition:color 0s}.highlight button.copybtn.success:after{display:block}.highlight button.copybtn svg{padding:0}body{--sd-color-primary:var(--color-brand-primary);--sd-color-primary-highlight:var(--color-brand-content);--sd-color-primary-text:var(--color-background-primary);--sd-color-shadow:rgba(0,0,0,.05);--sd-color-card-border:var(--color-card-border);--sd-color-card-border-hover:var(--color-brand-content);--sd-color-card-background:var(--color-card-background);--sd-color-card-text:var(--color-foreground-primary);--sd-color-card-header:var(--color-card-marginals-background);--sd-color-card-footer:var(--color-card-marginals-background);--sd-color-tabs-label-active:var(--color-brand-content);--sd-color-tabs-label-hover:var(--color-foreground-muted);--sd-color-tabs-label-inactive:var(--color-foreground-muted);--sd-color-tabs-underline-active:var(--color-brand-content);--sd-color-tabs-underline-hover:var(--color-foreground-border);--sd-color-tabs-underline-inactive:var(--color-background-border);--sd-color-tabs-overline:var(--color-background-border);--sd-color-tabs-underline:var(--color-background-border)}.sd-tab-content{box-shadow:0 -2px var(--sd-color-tabs-overline),0 1px var(--sd-color-tabs-underline)}.sd-card{box-shadow:0 .1rem .25rem var(--sd-color-shadow),0 0 .0625rem rgba(0,0,0,.1)}.sd-shadow-sm{box-shadow:0 .1rem .25rem var(--sd-color-shadow),0 0 .0625rem rgba(0,0,0,.1)!important}.sd-shadow-md{box-shadow:0 .3rem .75rem var(--sd-color-shadow),0 0 .0625rem rgba(0,0,0,.1)!important}.sd-shadow-lg{box-shadow:0 .6rem 1.5rem var(--sd-color-shadow),0 0 .0625rem rgba(0,0,0,.1)!important}.sd-card-hover:hover{transform:none}.sd-cards-carousel{gap:.25rem;padding:.25rem}body{--tabs--label-text:var(--color-foreground-muted);--tabs--label-text--hover:var(--color-foreground-muted);--tabs--label-text--active:var(--color-brand-content);--tabs--label-text--active--hover:var(--color-brand-content);--tabs--label-background:transparent;--tabs--label-background--hover:transparent;--tabs--label-background--active:transparent;--tabs--label-background--active--hover:transparent;--tabs--padding-x:0.25em;--tabs--margin-x:1em;--tabs--border:var(--color-background-border);--tabs--label-border:transparent;--tabs--label-border--hover:var(--color-foreground-muted);--tabs--label-border--active:var(--color-brand-content);--tabs--label-border--active--hover:var(--color-brand-content)}[role=main] .container{max-width:none;padding-left:0;padding-right:0}.shadow.docutils{border:none;box-shadow:0 .2rem .5rem rgba(0,0,0,.05),0 0 .0625rem rgba(0,0,0,.1)!important}.sphinx-bs .card{background-color:var(--color-background-secondary);color:var(--color-foreground)} -/*# sourceMappingURL=furo-extensions.css.map*/ \ No newline at end of file diff --git a/SRV/docs/_build/html/_static/styles/furo-extensions.css.map b/SRV/docs/_build/html/_static/styles/furo-extensions.css.map deleted file mode 100644 index 68fb7fd..0000000 --- a/SRV/docs/_build/html/_static/styles/furo-extensions.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"styles/furo-extensions.css","mappings":"AAGA,2BACE,oFACA,4CAKE,6CAHA,YACA,eAEA,CACA,kDACE,yCAEF,8CACE,sCAEJ,8CACE,kDAEJ,2BAGE,uBACA,cAHA,gBACA,UAEA,CAGA,yCACE,mBAEF,gDAEE,gDADA,YACA,CACA,sDACE,gDACF,yDACE,sCAEJ,+CACE,UACA,qDACE,UAGF,mDACE,eAEJ,yEAEE,4DAEA,mHASE,mBAPA,kBAEA,YADA,oBAGA,aADA,gBAIA,CAEA,qIAEE,WADA,UACA,CAEJ,uGACE,aAEF,iUAGE,cAEF,mHACE,aC1EJ,gCACE,mCAEF,0BAEE,mBAUA,8CACA,YAFA,mCAKA,eAZA,cAIA,YADA,YAYA,iCAdA,YAcA,CAEA,gCAEE,8CADA,gCACA,CAEF,gCAGE,6BADA,mCADA,YAEA,CAEF,kCAEE,cADA,mBACA,CACA,wCACE,cAEJ,8BACE,UCzCN,KAEE,6CAA8C,CAC9C,uDAAwD,CACxD,uDAAwD,CAGxD,iCAAsC,CAGtC,+CAAgD,CAChD,uDAAwD,CACxD,uDAAwD,CACxD,oDAAqD,CACrD,6DAA8D,CAC9D,6DAA8D,CAG9D,uDAAwD,CACxD,yDAA0D,CAC1D,4DAA6D,CAC7D,2DAA4D,CAC5D,8DAA+D,CAC/D,iEAAkE,CAClE,uDAAwD,CACxD,wDAAyD,CAG3D,gBACE,qFAGF,SACE,6EAEF,cACE,uFAEF,cACE,uFAEF,cACE,uFAGF,qBACE,eAEF,mBACE,WACA,eChDF,KACE,gDAAiD,CACjD,uDAAwD,CACxD,qDAAsD,CACtD,4DAA6D,CAC7D,oCAAqC,CACrC,2CAA4C,CAC5C,4CAA6C,CAC7C,mDAAoD,CACpD,wBAAyB,CACzB,oBAAqB,CACrB,6CAA8C,CAC9C,gCAAiC,CACjC,yDAA0D,CAC1D,uDAAwD,CACxD,8DAA+D,CCbjE,uBACE,eACA,eACA,gBAGF,iBACE,YACA,+EAGF,iBACE,mDACA","sources":["webpack:///./src/furo/assets/styles/extensions/_readthedocs.sass","webpack:///./src/furo/assets/styles/extensions/_copybutton.sass","webpack:///./src/furo/assets/styles/extensions/_sphinx-design.sass","webpack:///./src/furo/assets/styles/extensions/_sphinx-inline-tabs.sass","webpack:///./src/furo/assets/styles/extensions/_sphinx-panels.sass"],"sourcesContent":["// This file contains the styles used for tweaking how ReadTheDoc's embedded\n// contents would show up inside the theme.\n\n#furo-sidebar-ad-placement\n padding: var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal)\n .ethical-sidebar\n // Remove the border and box-shadow.\n border: none\n box-shadow: none\n // Manage the background colors.\n background: var(--color-background-secondary)\n &:hover\n background: var(--color-background-hover)\n // Ensure the text is legible.\n a\n color: var(--color-foreground-primary)\n\n .ethical-callout a\n color: var(--color-foreground-secondary) !important\n\n#furo-readthedocs-versions\n position: static\n width: 100%\n background: transparent\n display: block\n\n // Make the background color fit with the theme's aesthetic.\n .rst-versions\n background: rgb(26, 28, 30)\n\n .rst-current-version\n cursor: unset\n background: var(--color-sidebar-item-background)\n &:hover\n background: var(--color-sidebar-item-background)\n .fa-book\n color: var(--color-foreground-primary)\n\n > .rst-other-versions\n padding: 0\n small\n opacity: 1\n\n .injected\n .rst-versions\n position: unset\n\n &:hover,\n &:focus-within\n box-shadow: 0 0 0 1px var(--color-sidebar-background-border)\n\n .rst-current-version\n // Undo the tweaks done in RTD's CSS\n font-size: inherit\n line-height: inherit\n height: auto\n text-align: right\n padding: 12px\n\n // Match the rest of the body\n background: #1a1c1e\n\n .fa-book\n float: left\n color: white\n\n .fa-caret-down\n display: none\n\n .rst-current-version,\n .rst-other-versions,\n .injected\n display: block\n\n > .rst-current-version\n display: none\n",".highlight\n &:hover button.copybtn\n color: var(--color-code-foreground)\n\n button.copybtn\n // Align things correctly\n align-items: center\n\n height: 1.25em\n width: 1.25em\n\n top: 0.625rem // $code-spacing-vertical\n right: 0.5rem\n\n // Make it look better\n color: var(--color-background-item)\n background-color: var(--color-code-background)\n border: none\n\n // Change to cursor to make it obvious that you can click on it\n cursor: pointer\n\n // Transition smoothly, for aesthetics\n transition: color 300ms, opacity 300ms\n\n &:hover\n color: var(--color-brand-content)\n background-color: var(--color-code-background)\n\n &::after\n display: none\n color: var(--color-code-foreground)\n background-color: transparent\n\n &.success\n transition: color 0ms\n color: #22863a\n &::after\n display: block\n\n svg\n padding: 0\n","body\n // Colors\n --sd-color-primary: var(--color-brand-primary)\n --sd-color-primary-highlight: var(--color-brand-content)\n --sd-color-primary-text: var(--color-background-primary)\n\n // Shadows\n --sd-color-shadow: rgba(0, 0, 0, 0.05)\n\n // Cards\n --sd-color-card-border: var(--color-card-border)\n --sd-color-card-border-hover: var(--color-brand-content)\n --sd-color-card-background: var(--color-card-background)\n --sd-color-card-text: var(--color-foreground-primary)\n --sd-color-card-header: var(--color-card-marginals-background)\n --sd-color-card-footer: var(--color-card-marginals-background)\n\n // Tabs\n --sd-color-tabs-label-active: var(--color-brand-content)\n --sd-color-tabs-label-hover: var(--color-foreground-muted)\n --sd-color-tabs-label-inactive: var(--color-foreground-muted)\n --sd-color-tabs-underline-active: var(--color-brand-content)\n --sd-color-tabs-underline-hover: var(--color-foreground-border)\n --sd-color-tabs-underline-inactive: var(--color-background-border)\n --sd-color-tabs-overline: var(--color-background-border)\n --sd-color-tabs-underline: var(--color-background-border)\n\n// Tabs\n.sd-tab-content\n box-shadow: 0 -2px var(--sd-color-tabs-overline), 0 1px var(--sd-color-tabs-underline)\n\n// Shadows\n.sd-card // Have a shadow by default\n box-shadow: 0 0.1rem 0.25rem var(--sd-color-shadow), 0 0 0.0625rem rgba(0, 0, 0, 0.1)\n\n.sd-shadow-sm\n box-shadow: 0 0.1rem 0.25rem var(--sd-color-shadow), 0 0 0.0625rem rgba(0, 0, 0, 0.1) !important\n\n.sd-shadow-md\n box-shadow: 0 0.3rem 0.75rem var(--sd-color-shadow), 0 0 0.0625rem rgba(0, 0, 0, 0.1) !important\n\n.sd-shadow-lg\n box-shadow: 0 0.6rem 1.5rem var(--sd-color-shadow), 0 0 0.0625rem rgba(0, 0, 0, 0.1) !important\n\n// Cards\n.sd-card-hover:hover // Don't change scale on hover\n transform: none\n\n.sd-cards-carousel // Have a bit of gap in the carousel by default\n gap: 0.25rem\n padding: 0.25rem\n","// This file contains styles to tweak sphinx-inline-tabs to work well with Furo.\n\nbody\n --tabs--label-text: var(--color-foreground-muted)\n --tabs--label-text--hover: var(--color-foreground-muted)\n --tabs--label-text--active: var(--color-brand-content)\n --tabs--label-text--active--hover: var(--color-brand-content)\n --tabs--label-background: transparent\n --tabs--label-background--hover: transparent\n --tabs--label-background--active: transparent\n --tabs--label-background--active--hover: transparent\n --tabs--padding-x: 0.25em\n --tabs--margin-x: 1em\n --tabs--border: var(--color-background-border)\n --tabs--label-border: transparent\n --tabs--label-border--hover: var(--color-foreground-muted)\n --tabs--label-border--active: var(--color-brand-content)\n --tabs--label-border--active--hover: var(--color-brand-content)\n","// This file contains styles to tweak sphinx-panels to work well with Furo.\n\n// sphinx-panels includes Bootstrap 4, which uses .container which can conflict\n// with docutils' `.. container::` directive.\n[role=\"main\"] .container\n max-width: initial\n padding-left: initial\n padding-right: initial\n\n// Make the panels look nicer!\n.shadow.docutils\n border: none\n box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.05), 0 0 0.0625rem rgba(0, 0, 0, 0.1) !important\n\n// Make panel colors respond to dark mode\n.sphinx-bs .card\n background-color: var(--color-background-secondary)\n color: var(--color-foreground)\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/SRV/docs/_build/html/_static/styles/furo.css b/SRV/docs/_build/html/_static/styles/furo.css deleted file mode 100644 index 592d5bf..0000000 --- a/SRV/docs/_build/html/_static/styles/furo.css +++ /dev/null @@ -1,2 +0,0 @@ -/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}@media print{.content-icon-container,.headerlink,.mobile-header,.related-pages{display:none!important}.highlight{border:.1pt solid var(--color-foreground-border)}a,blockquote,dl,ol,p,pre,table,ul{page-break-inside:avoid}caption,figure,h1,h2,h3,h4,h5,h6,img{page-break-after:avoid;page-break-inside:avoid}dl,ol,ul{page-break-before:avoid}}.visually-hidden{height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important;clip:rect(0,0,0,0)!important;background:var(--color-background-primary);border:0!important;color:var(--color-foreground-primary);white-space:nowrap!important}:-moz-focusring{outline:auto}body{--font-stack:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;--font-stack--monospace:"SFMono-Regular",Menlo,Consolas,Monaco,Liberation Mono,Lucida Console,monospace;--font-stack--headings:var(--font-stack);--font-size--normal:100%;--font-size--small:87.5%;--font-size--small--2:81.25%;--font-size--small--3:75%;--font-size--small--4:62.5%;--sidebar-caption-font-size:var(--font-size--small--2);--sidebar-item-font-size:var(--font-size--small);--sidebar-search-input-font-size:var(--font-size--small);--toc-font-size:var(--font-size--small--3);--toc-font-size--mobile:var(--font-size--normal);--toc-title-font-size:var(--font-size--small--4);--admonition-font-size:0.8125rem;--admonition-title-font-size:0.8125rem;--code-font-size:var(--font-size--small--2);--api-font-size:var(--font-size--small);--header-height:calc(var(--sidebar-item-line-height) + var(--sidebar-item-spacing-vertical)*4);--header-padding:0.5rem;--sidebar-tree-space-above:1.5rem;--sidebar-caption-space-above:1rem;--sidebar-item-line-height:1rem;--sidebar-item-spacing-vertical:0.5rem;--sidebar-item-spacing-horizontal:1rem;--sidebar-item-height:calc(var(--sidebar-item-line-height) + var(--sidebar-item-spacing-vertical)*2);--sidebar-expander-width:var(--sidebar-item-height);--sidebar-search-space-above:0.5rem;--sidebar-search-input-spacing-vertical:0.5rem;--sidebar-search-input-spacing-horizontal:0.5rem;--sidebar-search-input-height:1rem;--sidebar-search-icon-size:var(--sidebar-search-input-height);--toc-title-padding:0.25rem 0;--toc-spacing-vertical:1.5rem;--toc-spacing-horizontal:1.5rem;--toc-item-spacing-vertical:0.4rem;--toc-item-spacing-horizontal:1rem;--icon-search:url('data:image/svg+xml;charset=utf-8,');--icon-pencil:url('data:image/svg+xml;charset=utf-8,');--icon-abstract:url('data:image/svg+xml;charset=utf-8,');--icon-info:url('data:image/svg+xml;charset=utf-8,');--icon-flame:url('data:image/svg+xml;charset=utf-8,');--icon-question:url('data:image/svg+xml;charset=utf-8,');--icon-warning:url('data:image/svg+xml;charset=utf-8,');--icon-failure:url('data:image/svg+xml;charset=utf-8,');--icon-spark:url('data:image/svg+xml;charset=utf-8,');--color-admonition-title--caution:#ff9100;--color-admonition-title-background--caution:rgba(255,145,0,.2);--color-admonition-title--warning:#ff9100;--color-admonition-title-background--warning:rgba(255,145,0,.2);--color-admonition-title--danger:#ff5252;--color-admonition-title-background--danger:rgba(255,82,82,.2);--color-admonition-title--attention:#ff5252;--color-admonition-title-background--attention:rgba(255,82,82,.2);--color-admonition-title--error:#ff5252;--color-admonition-title-background--error:rgba(255,82,82,.2);--color-admonition-title--hint:#00c852;--color-admonition-title-background--hint:rgba(0,200,82,.2);--color-admonition-title--tip:#00c852;--color-admonition-title-background--tip:rgba(0,200,82,.2);--color-admonition-title--important:#00bfa5;--color-admonition-title-background--important:rgba(0,191,165,.2);--color-admonition-title--note:#00b0ff;--color-admonition-title-background--note:rgba(0,176,255,.2);--color-admonition-title--seealso:#448aff;--color-admonition-title-background--seealso:rgba(68,138,255,.2);--color-admonition-title--admonition-todo:grey;--color-admonition-title-background--admonition-todo:hsla(0,0%,50%,.2);--color-admonition-title:#651fff;--color-admonition-title-background:rgba(101,31,255,.2);--icon-admonition-default:var(--icon-abstract);--color-topic-title:#14b8a6;--color-topic-title-background:rgba(20,184,166,.2);--icon-topic-default:var(--icon-pencil);--color-problematic:#b30000;--color-foreground-primary:#000;--color-foreground-secondary:#5a5c63;--color-foreground-muted:#6b6f76;--color-foreground-border:#878787;--color-background-primary:#fff;--color-background-secondary:#f8f9fb;--color-background-hover:#efeff4;--color-background-hover--transparent:#efeff400;--color-background-border:#eeebee;--color-background-item:#ccc;--color-announcement-background:#000000dd;--color-announcement-text:#eeebee;--color-brand-primary:#0a4bff;--color-brand-content:#2757dd;--color-brand-visited:#872ee0;--color-api-background:var(--color-background-hover--transparent);--color-api-background-hover:var(--color-background-hover);--color-api-overall:var(--color-foreground-secondary);--color-api-name:var(--color-problematic);--color-api-pre-name:var(--color-problematic);--color-api-paren:var(--color-foreground-secondary);--color-api-keyword:var(--color-foreground-primary);--color-api-added:#21632c;--color-api-added-border:#38a84d;--color-api-changed:#046172;--color-api-changed-border:#06a1bc;--color-api-deprecated:#605706;--color-api-deprecated-border:#f0d90f;--color-api-removed:#b30000;--color-api-removed-border:#ff5c5c;--color-highlight-on-target:#ffc;--color-inline-code-background:var(--color-background-secondary);--color-highlighted-background:#def;--color-highlighted-text:var(--color-foreground-primary);--color-guilabel-background:#ddeeff80;--color-guilabel-border:#bedaf580;--color-guilabel-text:var(--color-foreground-primary);--color-admonition-background:transparent;--color-table-header-background:var(--color-background-secondary);--color-table-border:var(--color-background-border);--color-card-border:var(--color-background-secondary);--color-card-background:transparent;--color-card-marginals-background:var(--color-background-secondary);--color-header-background:var(--color-background-primary);--color-header-border:var(--color-background-border);--color-header-text:var(--color-foreground-primary);--color-sidebar-background:var(--color-background-secondary);--color-sidebar-background-border:var(--color-background-border);--color-sidebar-brand-text:var(--color-foreground-primary);--color-sidebar-caption-text:var(--color-foreground-muted);--color-sidebar-link-text:var(--color-foreground-secondary);--color-sidebar-link-text--top-level:var(--color-brand-primary);--color-sidebar-item-background:var(--color-sidebar-background);--color-sidebar-item-background--current:var( --color-sidebar-item-background );--color-sidebar-item-background--hover:linear-gradient(90deg,var(--color-background-hover--transparent) 0%,var(--color-background-hover) var(--sidebar-item-spacing-horizontal),var(--color-background-hover) 100%);--color-sidebar-item-expander-background:transparent;--color-sidebar-item-expander-background--hover:var( --color-background-hover );--color-sidebar-search-text:var(--color-foreground-primary);--color-sidebar-search-background:var(--color-background-secondary);--color-sidebar-search-background--focus:var(--color-background-primary);--color-sidebar-search-border:var(--color-background-border);--color-sidebar-search-icon:var(--color-foreground-muted);--color-toc-background:var(--color-background-primary);--color-toc-title-text:var(--color-foreground-muted);--color-toc-item-text:var(--color-foreground-secondary);--color-toc-item-text--hover:var(--color-foreground-primary);--color-toc-item-text--active:var(--color-brand-primary);--color-content-foreground:var(--color-foreground-primary);--color-content-background:transparent;--color-link:var(--color-brand-content);--color-link-underline:var(--color-background-border);--color-link--hover:var(--color-brand-content);--color-link-underline--hover:var(--color-foreground-border);--color-link--visited:var(--color-brand-visited);--color-link-underline--visited:var(--color-background-border);--color-link--visited--hover:var(--color-brand-visited);--color-link-underline--visited--hover:var(--color-foreground-border)}.only-light{display:block!important}html body .only-dark{display:none!important}@media not print{body[data-theme=dark]{--color-problematic:#ee5151;--color-foreground-primary:#cfd0d0;--color-foreground-secondary:#9ca0a5;--color-foreground-muted:#81868d;--color-foreground-border:#666;--color-background-primary:#131416;--color-background-secondary:#1a1c1e;--color-background-hover:#1e2124;--color-background-hover--transparent:#1e212400;--color-background-border:#303335;--color-background-item:#444;--color-announcement-background:#000000dd;--color-announcement-text:#eeebee;--color-brand-primary:#3d94ff;--color-brand-content:#5ca5ff;--color-brand-visited:#b27aeb;--color-highlighted-background:#083563;--color-guilabel-background:#08356380;--color-guilabel-border:#13395f80;--color-api-keyword:var(--color-foreground-secondary);--color-highlight-on-target:#330;--color-api-added:#3db854;--color-api-added-border:#267334;--color-api-changed:#09b0ce;--color-api-changed-border:#056d80;--color-api-deprecated:#b1a10b;--color-api-deprecated-border:#6e6407;--color-api-removed:#ff7575;--color-api-removed-border:#b03b3b;--color-admonition-background:#18181a;--color-card-border:var(--color-background-secondary);--color-card-background:#18181a;--color-card-marginals-background:var(--color-background-hover)}html body[data-theme=dark] .only-light{display:none!important}body[data-theme=dark] .only-dark{display:block!important}@media(prefers-color-scheme:dark){body:not([data-theme=light]){--color-problematic:#ee5151;--color-foreground-primary:#cfd0d0;--color-foreground-secondary:#9ca0a5;--color-foreground-muted:#81868d;--color-foreground-border:#666;--color-background-primary:#131416;--color-background-secondary:#1a1c1e;--color-background-hover:#1e2124;--color-background-hover--transparent:#1e212400;--color-background-border:#303335;--color-background-item:#444;--color-announcement-background:#000000dd;--color-announcement-text:#eeebee;--color-brand-primary:#3d94ff;--color-brand-content:#5ca5ff;--color-brand-visited:#b27aeb;--color-highlighted-background:#083563;--color-guilabel-background:#08356380;--color-guilabel-border:#13395f80;--color-api-keyword:var(--color-foreground-secondary);--color-highlight-on-target:#330;--color-api-added:#3db854;--color-api-added-border:#267334;--color-api-changed:#09b0ce;--color-api-changed-border:#056d80;--color-api-deprecated:#b1a10b;--color-api-deprecated-border:#6e6407;--color-api-removed:#ff7575;--color-api-removed-border:#b03b3b;--color-admonition-background:#18181a;--color-card-border:var(--color-background-secondary);--color-card-background:#18181a;--color-card-marginals-background:var(--color-background-hover)}html body:not([data-theme=light]) .only-light{display:none!important}body:not([data-theme=light]) .only-dark{display:block!important}}}body[data-theme=auto] .theme-toggle svg.theme-icon-when-auto-light{display:block}@media(prefers-color-scheme:dark){body[data-theme=auto] .theme-toggle svg.theme-icon-when-auto-dark{display:block}body[data-theme=auto] .theme-toggle svg.theme-icon-when-auto-light{display:none}}body[data-theme=dark] .theme-toggle svg.theme-icon-when-dark,body[data-theme=light] .theme-toggle svg.theme-icon-when-light{display:block}body{font-family:var(--font-stack)}code,kbd,pre,samp{font-family:var(--font-stack--monospace)}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}article{line-height:1.5}h1,h2,h3,h4,h5,h6{border-radius:.5rem;font-family:var(--font-stack--headings);font-weight:700;line-height:1.25;margin:.5rem -.5rem;padding-left:.5rem;padding-right:.5rem}h1+p,h2+p,h3+p,h4+p,h5+p,h6+p{margin-top:0}h1{font-size:2.5em;margin-bottom:1rem}h1,h2{margin-top:1.75rem}h2{font-size:2em}h3{font-size:1.5em}h4{font-size:1.25em}h5{font-size:1.125em}h6{font-size:1em}small{font-size:80%;opacity:75%}p{margin-bottom:.75rem;margin-top:.5rem}hr.docutils{background-color:var(--color-background-border);border:0;height:1px;margin:2rem 0;padding:0}.centered{text-align:center}a{color:var(--color-link);text-decoration:underline;text-decoration-color:var(--color-link-underline)}a:visited{color:var(--color-link--visited);text-decoration-color:var(--color-link-underline--visited)}a:visited:hover{color:var(--color-link--visited--hover);text-decoration-color:var(--color-link-underline--visited--hover)}a:hover{color:var(--color-link--hover);text-decoration-color:var(--color-link-underline--hover)}a.muted-link{color:inherit}a.muted-link:hover{color:var(--color-link--hover);text-decoration-color:var(--color-link-underline--hover)}a.muted-link:hover:visited{color:var(--color-link--visited--hover);text-decoration-color:var(--color-link-underline--visited--hover)}html{overflow-x:hidden;overflow-y:scroll;scroll-behavior:smooth}.sidebar-scroll,.toc-scroll,article[role=main] *{scrollbar-color:var(--color-foreground-border) transparent;scrollbar-width:thin}body,html{height:100%}.skip-to-content,body,html{background:var(--color-background-primary);color:var(--color-foreground-primary)}.skip-to-content{border-radius:1rem;left:.25rem;padding:1rem;position:fixed;top:.25rem;transform:translateY(-200%);transition:transform .3s ease-in-out;z-index:40}.skip-to-content:focus-within{transform:translateY(0)}article{background:var(--color-content-background);color:var(--color-content-foreground);overflow-wrap:break-word}.page{display:flex;min-height:100%}.mobile-header{background-color:var(--color-header-background);border-bottom:1px solid var(--color-header-border);color:var(--color-header-text);display:none;height:var(--header-height);width:100%;z-index:10}.mobile-header.scrolled{border-bottom:none;box-shadow:0 0 .2rem rgba(0,0,0,.1),0 .2rem .4rem rgba(0,0,0,.2)}.mobile-header .header-center a{color:var(--color-header-text);text-decoration:none}.main{display:flex;flex:1}.sidebar-drawer{background:var(--color-sidebar-background);border-right:1px solid var(--color-sidebar-background-border);box-sizing:border-box;display:flex;justify-content:flex-end;min-width:15em;width:calc(50% - 26em)}.sidebar-container,.toc-drawer{box-sizing:border-box;width:15em}.toc-drawer{background:var(--color-toc-background);padding-right:1rem}.sidebar-sticky,.toc-sticky{display:flex;flex-direction:column;height:min(100%,100vh);height:100vh;position:sticky;top:0}.sidebar-scroll,.toc-scroll{flex-grow:1;flex-shrink:1;overflow:auto;scroll-behavior:smooth}.content{display:flex;flex-direction:column;justify-content:space-between;padding:0 3em;width:46em}.icon{display:inline-block;height:1rem;width:1rem}.icon svg{height:100%;width:100%}.announcement{align-items:center;background-color:var(--color-announcement-background);color:var(--color-announcement-text);display:flex;height:var(--header-height);overflow-x:auto}.announcement+.page{min-height:calc(100% - var(--header-height))}.announcement-content{box-sizing:border-box;min-width:100%;padding:.5rem;text-align:center;white-space:nowrap}.announcement-content a{color:var(--color-announcement-text);text-decoration-color:var(--color-announcement-text)}.announcement-content a:hover{color:var(--color-announcement-text);text-decoration-color:var(--color-link--hover)}.no-js .theme-toggle-container{display:none}.theme-toggle-container{display:flex}.theme-toggle{background:transparent;border:none;cursor:pointer;display:flex;padding:0}.theme-toggle svg{color:var(--color-foreground-primary);display:none;height:1.25rem;width:1.25rem}.theme-toggle-header{align-items:center;display:flex;justify-content:center}.nav-overlay-icon,.toc-overlay-icon{cursor:pointer;display:none}.nav-overlay-icon .icon,.toc-overlay-icon .icon{color:var(--color-foreground-secondary);height:1.5rem;width:1.5rem}.nav-overlay-icon,.toc-header-icon{align-items:center;justify-content:center}.toc-content-icon{height:1.5rem;width:1.5rem}.content-icon-container{display:flex;float:right;gap:.5rem;margin-bottom:1rem;margin-left:1rem;margin-top:1.5rem}.content-icon-container .edit-this-page svg,.content-icon-container .view-this-page svg{color:inherit;height:1.25rem;width:1.25rem}.sidebar-toggle{display:none;position:absolute}.sidebar-toggle[name=__toc]{left:20px}.sidebar-toggle:checked{left:40px}.overlay{background-color:rgba(0,0,0,.54);height:0;opacity:0;position:fixed;top:0;transition:width 0s,height 0s,opacity .25s ease-out;width:0}.sidebar-overlay{z-index:20}.toc-overlay{z-index:40}.sidebar-drawer{transition:left .25s ease-in-out;z-index:30}.toc-drawer{transition:right .25s ease-in-out;z-index:50}#__navigation:checked~.sidebar-overlay{height:100%;opacity:1;width:100%}#__navigation:checked~.page .sidebar-drawer{left:0;top:0}#__toc:checked~.toc-overlay{height:100%;opacity:1;width:100%}#__toc:checked~.page .toc-drawer{right:0;top:0}.back-to-top{background:var(--color-background-primary);border-radius:1rem;box-shadow:0 .2rem .5rem rgba(0,0,0,.05),0 0 1px 0 hsla(220,9%,46%,.502);display:none;font-size:.8125rem;left:0;margin-left:50%;padding:.5rem .75rem .5rem .5rem;position:fixed;text-decoration:none;top:1rem;transform:translateX(-50%);z-index:10}.back-to-top svg{height:1rem;width:1rem;fill:currentColor;display:inline-block}.back-to-top span{margin-left:.25rem}.show-back-to-top .back-to-top{align-items:center;display:flex}@media(min-width:97em){html{font-size:110%}}@media(max-width:82em){.toc-content-icon{display:flex}.toc-drawer{border-left:1px solid var(--color-background-muted);height:100vh;position:fixed;right:-15em;top:0}.toc-tree{border-left:none;font-size:var(--toc-font-size--mobile)}.sidebar-drawer{width:calc(50% - 18.5em)}}@media(max-width:67em){.content{margin-left:auto;margin-right:auto;padding:0 1em}}@media(max-width:63em){.nav-overlay-icon{display:flex}.sidebar-drawer{height:100vh;left:-15em;position:fixed;top:0;width:15em}.theme-toggle-header,.toc-header-icon{display:flex}.theme-toggle-content,.toc-content-icon{display:none}.mobile-header{align-items:center;display:flex;justify-content:space-between;position:sticky;top:0}.mobile-header .header-left,.mobile-header .header-right{display:flex;height:var(--header-height);padding:0 var(--header-padding)}.mobile-header .header-left label,.mobile-header .header-right label{height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.nav-overlay-icon .icon,.theme-toggle svg{height:1.5rem;width:1.5rem}:target{scroll-margin-top:calc(var(--header-height) + 2.5rem)}.back-to-top{top:calc(var(--header-height) + .5rem)}.page{flex-direction:column;justify-content:center}}@media(max-width:48em){.content{overflow-x:auto;width:100%}}@media(max-width:46em){article[role=main] aside.sidebar{float:none;margin:1rem 0;width:100%}}.admonition,.topic{background:var(--color-admonition-background);border-radius:.2rem;box-shadow:0 .2rem .5rem rgba(0,0,0,.05),0 0 .0625rem rgba(0,0,0,.1);font-size:var(--admonition-font-size);margin:1rem auto;overflow:hidden;padding:0 .5rem .5rem;page-break-inside:avoid}.admonition>:nth-child(2),.topic>:nth-child(2){margin-top:0}.admonition>:last-child,.topic>:last-child{margin-bottom:0}.admonition p.admonition-title,p.topic-title{font-size:var(--admonition-title-font-size);font-weight:500;line-height:1.3;margin:0 -.5rem .5rem;padding:.4rem .5rem .4rem 2rem;position:relative}.admonition p.admonition-title:before,p.topic-title:before{content:"";height:1rem;left:.5rem;position:absolute;width:1rem}p.admonition-title{background-color:var(--color-admonition-title-background)}p.admonition-title:before{background-color:var(--color-admonition-title);-webkit-mask-image:var(--icon-admonition-default);mask-image:var(--icon-admonition-default);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}p.topic-title{background-color:var(--color-topic-title-background)}p.topic-title:before{background-color:var(--color-topic-title);-webkit-mask-image:var(--icon-topic-default);mask-image:var(--icon-topic-default);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.admonition{border-left:.2rem solid var(--color-admonition-title)}.admonition.caution{border-left-color:var(--color-admonition-title--caution)}.admonition.caution>.admonition-title{background-color:var(--color-admonition-title-background--caution)}.admonition.caution>.admonition-title:before{background-color:var(--color-admonition-title--caution);-webkit-mask-image:var(--icon-spark);mask-image:var(--icon-spark)}.admonition.warning{border-left-color:var(--color-admonition-title--warning)}.admonition.warning>.admonition-title{background-color:var(--color-admonition-title-background--warning)}.admonition.warning>.admonition-title:before{background-color:var(--color-admonition-title--warning);-webkit-mask-image:var(--icon-warning);mask-image:var(--icon-warning)}.admonition.danger{border-left-color:var(--color-admonition-title--danger)}.admonition.danger>.admonition-title{background-color:var(--color-admonition-title-background--danger)}.admonition.danger>.admonition-title:before{background-color:var(--color-admonition-title--danger);-webkit-mask-image:var(--icon-spark);mask-image:var(--icon-spark)}.admonition.attention{border-left-color:var(--color-admonition-title--attention)}.admonition.attention>.admonition-title{background-color:var(--color-admonition-title-background--attention)}.admonition.attention>.admonition-title:before{background-color:var(--color-admonition-title--attention);-webkit-mask-image:var(--icon-warning);mask-image:var(--icon-warning)}.admonition.error{border-left-color:var(--color-admonition-title--error)}.admonition.error>.admonition-title{background-color:var(--color-admonition-title-background--error)}.admonition.error>.admonition-title:before{background-color:var(--color-admonition-title--error);-webkit-mask-image:var(--icon-failure);mask-image:var(--icon-failure)}.admonition.hint{border-left-color:var(--color-admonition-title--hint)}.admonition.hint>.admonition-title{background-color:var(--color-admonition-title-background--hint)}.admonition.hint>.admonition-title:before{background-color:var(--color-admonition-title--hint);-webkit-mask-image:var(--icon-question);mask-image:var(--icon-question)}.admonition.tip{border-left-color:var(--color-admonition-title--tip)}.admonition.tip>.admonition-title{background-color:var(--color-admonition-title-background--tip)}.admonition.tip>.admonition-title:before{background-color:var(--color-admonition-title--tip);-webkit-mask-image:var(--icon-info);mask-image:var(--icon-info)}.admonition.important{border-left-color:var(--color-admonition-title--important)}.admonition.important>.admonition-title{background-color:var(--color-admonition-title-background--important)}.admonition.important>.admonition-title:before{background-color:var(--color-admonition-title--important);-webkit-mask-image:var(--icon-flame);mask-image:var(--icon-flame)}.admonition.note{border-left-color:var(--color-admonition-title--note)}.admonition.note>.admonition-title{background-color:var(--color-admonition-title-background--note)}.admonition.note>.admonition-title:before{background-color:var(--color-admonition-title--note);-webkit-mask-image:var(--icon-pencil);mask-image:var(--icon-pencil)}.admonition.seealso{border-left-color:var(--color-admonition-title--seealso)}.admonition.seealso>.admonition-title{background-color:var(--color-admonition-title-background--seealso)}.admonition.seealso>.admonition-title:before{background-color:var(--color-admonition-title--seealso);-webkit-mask-image:var(--icon-info);mask-image:var(--icon-info)}.admonition.admonition-todo{border-left-color:var(--color-admonition-title--admonition-todo)}.admonition.admonition-todo>.admonition-title{background-color:var(--color-admonition-title-background--admonition-todo)}.admonition.admonition-todo>.admonition-title:before{background-color:var(--color-admonition-title--admonition-todo);-webkit-mask-image:var(--icon-pencil);mask-image:var(--icon-pencil)}.admonition-todo>.admonition-title{text-transform:uppercase}dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) dd{margin-left:2rem}dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) dd>:first-child{margin-top:.125rem}dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .field-list,dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) dd>:last-child{margin-bottom:.75rem}dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .field-list>dt{font-size:var(--font-size--small);text-transform:uppercase}dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .field-list dd:empty{margin-bottom:.5rem}dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .field-list dd>ul{margin-left:-1.2rem}dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .field-list dd>ul>li>p:nth-child(2){margin-top:0}dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) .field-list dd>ul>li>p+p:last-child:empty{margin-bottom:0;margin-top:0}dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple)>dt{color:var(--color-api-overall)}.sig:not(.sig-inline){background:var(--color-api-background);border-radius:.25rem;font-family:var(--font-stack--monospace);font-size:var(--api-font-size);font-weight:700;margin-left:-.25rem;margin-right:-.25rem;padding:.25rem .5rem .25rem 3em;text-indent:-2.5em;transition:background .1s ease-out}.sig:not(.sig-inline):hover{background:var(--color-api-background-hover)}.sig:not(.sig-inline) a.reference .viewcode-link{font-weight:400;width:4.25rem}em.property{font-style:normal}em.property:first-child{color:var(--color-api-keyword)}.sig-name{color:var(--color-api-name)}.sig-prename{color:var(--color-api-pre-name);font-weight:400}.sig-paren{color:var(--color-api-paren)}.sig-param{font-style:normal}div.deprecated,div.versionadded,div.versionchanged,div.versionremoved{border-left:.1875rem solid;border-radius:.125rem;padding-left:.75rem}div.deprecated p,div.versionadded p,div.versionchanged p,div.versionremoved p{margin-bottom:.125rem;margin-top:.125rem}div.versionadded{border-color:var(--color-api-added-border)}div.versionadded .versionmodified{color:var(--color-api-added)}div.versionchanged{border-color:var(--color-api-changed-border)}div.versionchanged .versionmodified{color:var(--color-api-changed)}div.deprecated{border-color:var(--color-api-deprecated-border)}div.deprecated .versionmodified{color:var(--color-api-deprecated)}div.versionremoved{border-color:var(--color-api-removed-border)}div.versionremoved .versionmodified{color:var(--color-api-removed)}.viewcode-back,.viewcode-link{float:right;text-align:right}.line-block{margin-bottom:.75rem;margin-top:.5rem}.line-block .line-block{margin-bottom:0;margin-top:0;padding-left:1rem}.code-block-caption,article p.caption,table>caption{font-size:var(--font-size--small);text-align:center}.toctree-wrapper.compound .caption,.toctree-wrapper.compound :not(.caption)>.caption-text{font-size:var(--font-size--small);margin-bottom:0;text-align:initial;text-transform:uppercase}.toctree-wrapper.compound>ul{margin-bottom:0;margin-top:0}.sig-inline,code.literal{background:var(--color-inline-code-background);border-radius:.2em;font-size:var(--font-size--small--2);padding:.1em .2em}pre.literal-block .sig-inline,pre.literal-block code.literal{font-size:inherit;padding:0}p .sig-inline,p code.literal{border:1px solid var(--color-background-border)}.sig-inline{font-family:var(--font-stack--monospace)}div[class*=" highlight-"],div[class^=highlight-]{display:flex;margin:1em 0}div[class*=" highlight-"] .table-wrapper,div[class^=highlight-] .table-wrapper,pre{margin:0;padding:0}pre{overflow:auto}article[role=main] .highlight pre{line-height:1.5}.highlight pre,pre.literal-block{font-size:var(--code-font-size);padding:.625rem .875rem}pre.literal-block{background-color:var(--color-code-background);border-radius:.2rem;color:var(--color-code-foreground);margin-bottom:1rem;margin-top:1rem}.highlight{border-radius:.2rem;width:100%}.highlight .gp,.highlight span.linenos{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.highlight .hll{display:block;margin-left:-.875rem;margin-right:-.875rem;padding-left:.875rem;padding-right:.875rem}.code-block-caption{background-color:var(--color-code-background);border-bottom:1px solid;border-radius:.25rem;border-bottom-left-radius:0;border-bottom-right-radius:0;border-color:var(--color-background-border);color:var(--color-code-foreground);display:flex;font-weight:300;padding:.625rem .875rem}.code-block-caption+div[class]{margin-top:0}.code-block-caption+div[class]>.highlight{border-top-left-radius:0;border-top-right-radius:0}.highlighttable{display:block;width:100%}.highlighttable tbody{display:block}.highlighttable tr{display:flex}.highlighttable td.linenos{background-color:var(--color-code-background);border-bottom-left-radius:.2rem;border-top-left-radius:.2rem;color:var(--color-code-foreground);padding:.625rem 0 .625rem .875rem}.highlighttable .linenodiv{box-shadow:-.0625rem 0 var(--color-foreground-border) inset;font-size:var(--code-font-size);padding-right:.875rem}.highlighttable td.code{display:block;flex:1;overflow:hidden;padding:0}.highlighttable td.code .highlight{border-bottom-left-radius:0;border-top-left-radius:0}.highlight span.linenos{box-shadow:-.0625rem 0 var(--color-foreground-border) inset;display:inline-block;margin-right:.875rem;padding-left:0;padding-right:.875rem}.footnote-reference{font-size:var(--font-size--small--4);vertical-align:super}dl.footnote.brackets{color:var(--color-foreground-secondary);display:grid;font-size:var(--font-size--small);grid-template-columns:max-content auto}dl.footnote.brackets dt{margin:0}dl.footnote.brackets dt>.fn-backref{margin-left:.25rem}dl.footnote.brackets dt:after{content:":"}dl.footnote.brackets dt .brackets:before{content:"["}dl.footnote.brackets dt .brackets:after{content:"]"}dl.footnote.brackets dd{margin:0;padding:0 1rem}aside.footnote{color:var(--color-foreground-secondary);font-size:var(--font-size--small)}aside.footnote>span,div.citation>span{float:left;font-weight:500;padding-right:.25rem}aside.footnote>:not(span),div.citation>p{margin-left:2rem}img{box-sizing:border-box;height:auto;max-width:100%}article .figure,article figure{border-radius:.2rem;margin:0}article .figure :last-child,article figure :last-child{margin-bottom:0}article .align-left{clear:left;float:left;margin:0 1rem 1rem}article .align-right{clear:right;float:right;margin:0 1rem 1rem}article .align-center,article .align-default{display:block;margin-left:auto;margin-right:auto;text-align:center}article table.align-default{display:table;text-align:initial}.domainindex-jumpbox,.genindex-jumpbox{border-bottom:1px solid var(--color-background-border);border-top:1px solid var(--color-background-border);padding:.25rem}.domainindex-section h2,.genindex-section h2{margin-bottom:.5rem;margin-top:.75rem}.domainindex-section ul,.genindex-section ul{margin-bottom:0;margin-top:0}ol,ul{margin-bottom:1rem;margin-top:1rem;padding-left:1.2rem}ol li>p:first-child,ul li>p:first-child{margin-bottom:.25rem;margin-top:.25rem}ol li>p:last-child,ul li>p:last-child{margin-top:.25rem}ol li>ol,ol li>ul,ul li>ol,ul li>ul{margin-bottom:.5rem;margin-top:.5rem}ol.arabic{list-style:decimal}ol.loweralpha{list-style:lower-alpha}ol.upperalpha{list-style:upper-alpha}ol.lowerroman{list-style:lower-roman}ol.upperroman{list-style:upper-roman}.simple li>ol,.simple li>ul,.toctree-wrapper li>ol,.toctree-wrapper li>ul{margin-bottom:0;margin-top:0}.field-list dt,.option-list dt,dl.footnote dt,dl.glossary dt,dl.simple dt,dl:not([class]) dt{font-weight:500;margin-top:.25rem}.field-list dt+dt,.option-list dt+dt,dl.footnote dt+dt,dl.glossary dt+dt,dl.simple dt+dt,dl:not([class]) dt+dt{margin-top:0}.field-list dt .classifier:before,.option-list dt .classifier:before,dl.footnote dt .classifier:before,dl.glossary dt .classifier:before,dl.simple dt .classifier:before,dl:not([class]) dt .classifier:before{content:":";margin-left:.2rem;margin-right:.2rem}.field-list dd ul,.field-list dd>p:first-child,.option-list dd ul,.option-list dd>p:first-child,dl.footnote dd ul,dl.footnote dd>p:first-child,dl.glossary dd ul,dl.glossary dd>p:first-child,dl.simple dd ul,dl.simple dd>p:first-child,dl:not([class]) dd ul,dl:not([class]) dd>p:first-child{margin-top:.125rem}.field-list dd ul,.option-list dd ul,dl.footnote dd ul,dl.glossary dd ul,dl.simple dd ul,dl:not([class]) dd ul{margin-bottom:.125rem}.math-wrapper{overflow-x:auto;width:100%}div.math{position:relative;text-align:center}div.math .headerlink,div.math:focus .headerlink{display:none}div.math:hover .headerlink{display:inline-block}div.math span.eqno{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);z-index:1}abbr[title]{cursor:help}.problematic{color:var(--color-problematic)}kbd:not(.compound){background-color:var(--color-background-secondary);border:1px solid var(--color-foreground-border);border-radius:.2rem;box-shadow:0 .0625rem 0 rgba(0,0,0,.2),inset 0 0 0 .125rem var(--color-background-primary);color:var(--color-foreground-primary);display:inline-block;font-size:var(--font-size--small--3);margin:0 .2rem;padding:0 .2rem;vertical-align:text-bottom}blockquote{background:var(--color-background-secondary);border-left:4px solid var(--color-background-border);margin-left:0;margin-right:0;padding:.5rem 1rem}blockquote .attribution{font-weight:600;text-align:right}blockquote.highlights,blockquote.pull-quote{font-size:1.25em}blockquote.epigraph,blockquote.pull-quote{border-left-width:0;border-radius:.5rem}blockquote.highlights{background:transparent;border-left-width:0}p .reference img{vertical-align:middle}p.rubric{font-size:1.125em;font-weight:700;line-height:1.25}dd p.rubric{font-size:var(--font-size--small);font-weight:inherit;line-height:inherit;text-transform:uppercase}article .sidebar{background-color:var(--color-background-secondary);border:1px solid var(--color-background-border);border-radius:.2rem;clear:right;float:right;margin-left:1rem;margin-right:0;width:30%}article .sidebar>*{padding-left:1rem;padding-right:1rem}article .sidebar>ol,article .sidebar>ul{padding-left:2.2rem}article .sidebar .sidebar-title{border-bottom:1px solid var(--color-background-border);font-weight:500;margin:0;padding:.5rem 1rem}[role=main] .table-wrapper.container{margin-bottom:.5rem;margin-top:1rem;overflow-x:auto;padding:.2rem .2rem .75rem;width:100%}table.docutils{border-collapse:collapse;border-radius:.2rem;border-spacing:0;box-shadow:0 .2rem .5rem rgba(0,0,0,.05),0 0 .0625rem rgba(0,0,0,.1)}table.docutils th{background:var(--color-table-header-background)}table.docutils td,table.docutils th{border-bottom:1px solid var(--color-table-border);border-left:1px solid var(--color-table-border);border-right:1px solid var(--color-table-border);padding:0 .25rem}table.docutils td p,table.docutils th p{margin:.25rem}table.docutils td:first-child,table.docutils th:first-child{border-left:none}table.docutils td:last-child,table.docutils th:last-child{border-right:none}table.docutils td.text-left,table.docutils th.text-left{text-align:left}table.docutils td.text-right,table.docutils th.text-right{text-align:right}table.docutils td.text-center,table.docutils th.text-center{text-align:center}:target{scroll-margin-top:2.5rem}@media(max-width:67em){:target{scroll-margin-top:calc(2.5rem + var(--header-height))}section>span:target{scroll-margin-top:calc(2.8rem + var(--header-height))}}.headerlink{font-weight:100;-webkit-user-select:none;-moz-user-select:none;user-select:none}.code-block-caption>.headerlink,dl dt>.headerlink,figcaption p>.headerlink,h1>.headerlink,h2>.headerlink,h3>.headerlink,h4>.headerlink,h5>.headerlink,h6>.headerlink,p.caption>.headerlink,table>caption>.headerlink{margin-left:.5rem;visibility:hidden}.code-block-caption:hover>.headerlink,dl dt:hover>.headerlink,figcaption p:hover>.headerlink,h1:hover>.headerlink,h2:hover>.headerlink,h3:hover>.headerlink,h4:hover>.headerlink,h5:hover>.headerlink,h6:hover>.headerlink,p.caption:hover>.headerlink,table>caption:hover>.headerlink{visibility:visible}.code-block-caption>.toc-backref,dl dt>.toc-backref,figcaption p>.toc-backref,h1>.toc-backref,h2>.toc-backref,h3>.toc-backref,h4>.toc-backref,h5>.toc-backref,h6>.toc-backref,p.caption>.toc-backref,table>caption>.toc-backref{color:inherit;text-decoration-line:none}figure:hover>figcaption>p>.headerlink,table:hover>caption>.headerlink{visibility:visible}:target>h1:first-of-type,:target>h2:first-of-type,:target>h3:first-of-type,:target>h4:first-of-type,:target>h5:first-of-type,:target>h6:first-of-type,span:target~h1:first-of-type,span:target~h2:first-of-type,span:target~h3:first-of-type,span:target~h4:first-of-type,span:target~h5:first-of-type,span:target~h6:first-of-type{background-color:var(--color-highlight-on-target)}:target>h1:first-of-type code.literal,:target>h2:first-of-type code.literal,:target>h3:first-of-type code.literal,:target>h4:first-of-type code.literal,:target>h5:first-of-type code.literal,:target>h6:first-of-type code.literal,span:target~h1:first-of-type code.literal,span:target~h2:first-of-type code.literal,span:target~h3:first-of-type code.literal,span:target~h4:first-of-type code.literal,span:target~h5:first-of-type code.literal,span:target~h6:first-of-type code.literal{background-color:transparent}.literal-block-wrapper:target .code-block-caption,.this-will-duplicate-information-and-it-is-still-useful-here li :target,figure:target,table:target>caption{background-color:var(--color-highlight-on-target)}dt:target{background-color:var(--color-highlight-on-target)!important}.footnote-reference:target,.footnote>dt:target+dd{background-color:var(--color-highlight-on-target)}.guilabel{background-color:var(--color-guilabel-background);border:1px solid var(--color-guilabel-border);border-radius:.5em;color:var(--color-guilabel-text);font-size:.9em;padding:0 .3em}footer{display:flex;flex-direction:column;font-size:var(--font-size--small);margin-top:2rem}.bottom-of-page{align-items:center;border-top:1px solid var(--color-background-border);color:var(--color-foreground-secondary);display:flex;justify-content:space-between;line-height:1.5;margin-top:1rem;padding-bottom:1rem;padding-top:1rem}@media(max-width:46em){.bottom-of-page{flex-direction:column-reverse;gap:.25rem;text-align:center}}.bottom-of-page .left-details{font-size:var(--font-size--small)}.bottom-of-page .right-details{display:flex;flex-direction:column;gap:.25rem;text-align:right}.bottom-of-page .icons{display:flex;font-size:1rem;gap:.25rem;justify-content:flex-end}.bottom-of-page .icons a{text-decoration:none}.bottom-of-page .icons img,.bottom-of-page .icons svg{font-size:1.125rem;height:1em;width:1em}.related-pages a{align-items:center;display:flex;text-decoration:none}.related-pages a:hover .page-info .title{color:var(--color-link);text-decoration:underline;text-decoration-color:var(--color-link-underline)}.related-pages a svg.furo-related-icon,.related-pages a svg.furo-related-icon>use{color:var(--color-foreground-border);flex-shrink:0;height:.75rem;margin:0 .5rem;width:.75rem}.related-pages a.next-page{clear:right;float:right;max-width:50%;text-align:right}.related-pages a.prev-page{clear:left;float:left;max-width:50%}.related-pages a.prev-page svg{transform:rotate(180deg)}.page-info{display:flex;flex-direction:column;overflow-wrap:anywhere}.next-page .page-info{align-items:flex-end}.page-info .context{align-items:center;color:var(--color-foreground-muted);display:flex;font-size:var(--font-size--small);padding-bottom:.1rem;text-decoration:none}ul.search{list-style:none;padding-left:0}ul.search li{border-bottom:1px solid var(--color-background-border);padding:1rem 0}[role=main] .highlighted{background-color:var(--color-highlighted-background);color:var(--color-highlighted-text)}.sidebar-brand{display:flex;flex-direction:column;flex-shrink:0;padding:var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal);text-decoration:none}.sidebar-brand-text{color:var(--color-sidebar-brand-text);font-size:1.5rem;overflow-wrap:break-word}.sidebar-brand-text,.sidebar-logo-container{margin:var(--sidebar-item-spacing-vertical) 0}.sidebar-logo{display:block;margin:0 auto;max-width:100%}.sidebar-search-container{align-items:center;background:var(--color-sidebar-search-background);display:flex;margin-top:var(--sidebar-search-space-above);position:relative}.sidebar-search-container:focus-within,.sidebar-search-container:hover{background:var(--color-sidebar-search-background--focus)}.sidebar-search-container:before{background-color:var(--color-sidebar-search-icon);content:"";height:var(--sidebar-search-icon-size);left:var(--sidebar-item-spacing-horizontal);-webkit-mask-image:var(--icon-search);mask-image:var(--icon-search);position:absolute;width:var(--sidebar-search-icon-size)}.sidebar-search{background:transparent;border:none;border-bottom:1px solid var(--color-sidebar-search-border);border-top:1px solid var(--color-sidebar-search-border);box-sizing:border-box;color:var(--color-sidebar-search-foreground);padding:var(--sidebar-search-input-spacing-vertical) var(--sidebar-search-input-spacing-horizontal) var(--sidebar-search-input-spacing-vertical) calc(var(--sidebar-item-spacing-horizontal) + var(--sidebar-search-input-spacing-horizontal) + var(--sidebar-search-icon-size));width:100%;z-index:10}.sidebar-search:focus{outline:none}.sidebar-search::-moz-placeholder{font-size:var(--sidebar-search-input-font-size)}.sidebar-search::placeholder{font-size:var(--sidebar-search-input-font-size)}#searchbox .highlight-link{margin:0;padding:var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal) 0;text-align:center}#searchbox .highlight-link a{color:var(--color-sidebar-search-icon);font-size:var(--font-size--small--2)}.sidebar-tree{font-size:var(--sidebar-item-font-size);margin-bottom:var(--sidebar-item-spacing-vertical);margin-top:var(--sidebar-tree-space-above)}.sidebar-tree ul{display:flex;flex-direction:column;list-style:none;margin-bottom:0;margin-top:0;padding:0}.sidebar-tree li{margin:0;position:relative}.sidebar-tree li>ul{margin-left:var(--sidebar-item-spacing-horizontal)}.sidebar-tree .icon,.sidebar-tree .reference{color:var(--color-sidebar-link-text)}.sidebar-tree .reference{box-sizing:border-box;display:inline-block;height:100%;line-height:var(--sidebar-item-line-height);overflow-wrap:anywhere;padding:var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal);text-decoration:none;width:100%}.sidebar-tree .reference:hover{background:var(--color-sidebar-item-background--hover);color:var(--color-sidebar-link-text)}.sidebar-tree .reference.external:after{color:var(--color-sidebar-link-text);content:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23607d8b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath stroke='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M11 7H6a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2v-5M10 14 20 4M15 4h5v5'/%3E%3C/svg%3E");margin:0 .25rem;vertical-align:middle}.sidebar-tree .current-page>.reference{font-weight:700}.sidebar-tree label{align-items:center;cursor:pointer;display:flex;height:var(--sidebar-item-height);justify-content:center;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--sidebar-expander-width)}.sidebar-tree .caption,.sidebar-tree :not(.caption)>.caption-text{color:var(--color-sidebar-caption-text);font-size:var(--sidebar-caption-font-size);font-weight:700;margin:var(--sidebar-caption-space-above) 0 0 0;padding:var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal);text-transform:uppercase}.sidebar-tree li.has-children>.reference{padding-right:var(--sidebar-expander-width)}.sidebar-tree .toctree-l1>.reference,.sidebar-tree .toctree-l1>label .icon{color:var(--color-sidebar-link-text--top-level)}.sidebar-tree label{background:var(--color-sidebar-item-expander-background)}.sidebar-tree label:hover{background:var(--color-sidebar-item-expander-background--hover)}.sidebar-tree .current>.reference{background:var(--color-sidebar-item-background--current)}.sidebar-tree .current>.reference:hover{background:var(--color-sidebar-item-background--hover)}.toctree-checkbox{display:none;position:absolute}.toctree-checkbox~ul{display:none}.toctree-checkbox~label .icon svg{transform:rotate(90deg)}.toctree-checkbox:checked~ul{display:block}.toctree-checkbox:checked~label .icon svg{transform:rotate(-90deg)}.toc-title-container{padding:var(--toc-title-padding);padding-top:var(--toc-spacing-vertical)}.toc-title{color:var(--color-toc-title-text);font-size:var(--toc-title-font-size);padding-left:var(--toc-spacing-horizontal);text-transform:uppercase}.no-toc{display:none}.toc-tree-container{padding-bottom:var(--toc-spacing-vertical)}.toc-tree{border-left:1px solid var(--color-background-border);font-size:var(--toc-font-size);line-height:1.3;padding-left:calc(var(--toc-spacing-horizontal) - var(--toc-item-spacing-horizontal))}.toc-tree>ul>li:first-child{padding-top:0}.toc-tree>ul>li:first-child>ul{padding-left:0}.toc-tree>ul>li:first-child>a{display:none}.toc-tree ul{list-style-type:none;margin-bottom:0;margin-top:0;padding-left:var(--toc-item-spacing-horizontal)}.toc-tree li{padding-top:var(--toc-item-spacing-vertical)}.toc-tree li.scroll-current>.reference{color:var(--color-toc-item-text--active);font-weight:700}.toc-tree a.reference{color:var(--color-toc-item-text);overflow-wrap:anywhere;text-decoration:none}.toc-scroll{max-height:100vh;overflow-y:scroll}.contents:not(.this-will-duplicate-information-and-it-is-still-useful-here){background:rgba(255,0,0,.25);color:var(--color-problematic)}.contents:not(.this-will-duplicate-information-and-it-is-still-useful-here):before{content:"ERROR: Adding a table of contents in Furo-based documentation is unnecessary, and does not work well with existing styling. Add a 'this-will-duplicate-information-and-it-is-still-useful-here' class, if you want an escape hatch."}.text-align\:left>p{text-align:left}.text-align\:center>p{text-align:center}.text-align\:right>p{text-align:right} -/*# sourceMappingURL=furo.css.map*/ \ No newline at end of file diff --git a/SRV/docs/_build/html/_static/styles/furo.css.map b/SRV/docs/_build/html/_static/styles/furo.css.map deleted file mode 100644 index 280b3fe..0000000 --- a/SRV/docs/_build/html/_static/styles/furo.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"styles/furo.css","mappings":"AAAA,2EAA2E,CAU3E,KACE,gBAAiB,CACjB,6BACF,CASA,KACE,QACF,CAMA,KACE,aACF,CAOA,GACE,aAAc,CACd,cACF,CAUA,GACE,sBAAuB,CACvB,QAAS,CACT,gBACF,CAOA,IACE,+BAAiC,CACjC,aACF,CASA,EACE,4BACF,CAOA,YACE,kBAAmB,CACnB,yBAA0B,CAC1B,gCACF,CAMA,SAEE,kBACF,CAOA,cAGE,+BAAiC,CACjC,aACF,CAeA,QAEE,aAAc,CACd,aAAc,CACd,iBAAkB,CAClB,uBACF,CAEA,IACE,aACF,CAEA,IACE,SACF,CASA,IACE,iBACF,CAUA,sCAKE,mBAAoB,CACpB,cAAe,CACf,gBAAiB,CACjB,QACF,CAOA,aAEE,gBACF,CAOA,cAEE,mBACF,CAMA,gDAIE,yBACF,CAMA,wHAIE,iBAAkB,CAClB,SACF,CAMA,4GAIE,6BACF,CAMA,SACE,0BACF,CASA,OACE,qBAAsB,CACtB,aAAc,CACd,aAAc,CACd,cAAe,CACf,SAAU,CACV,kBACF,CAMA,SACE,uBACF,CAMA,SACE,aACF,CAOA,6BAEE,qBAAsB,CACtB,SACF,CAMA,kFAEE,WACF,CAOA,cACE,4BAA6B,CAC7B,mBACF,CAMA,yCACE,uBACF,CAOA,6BACE,yBAA0B,CAC1B,YACF,CASA,QACE,aACF,CAMA,QACE,iBACF,CAiBA,kBACE,YACF,CCvVA,aAcE,kEACE,uBAOF,WACE,iDAMF,kCACE,wBAEF,qCAEE,uBADA,uBACA,CAEF,SACE,wBAtBA,CCpBJ,iBAGE,qBAEA,sBACA,0BAFA,oBAHA,4BACA,oBAKA,6BAIA,2CAFA,mBACA,sCAFA,4BAGA,CAEF,gBACE,aCPF,KCCE,mHAGA,wGAGA,wCAAyC,CAEzC,wBAAyB,CACzB,wBAAyB,CACzB,4BAA6B,CAC7B,yBAA0B,CAC1B,2BAA4B,CAG5B,sDAAuD,CACvD,gDAAiD,CACjD,wDAAyD,CAGzD,0CAA2C,CAC3C,gDAAiD,CACjD,gDAAiD,CAKjD,gCAAiC,CACjC,sCAAuC,CAGvC,2CAA4C,CAG5C,uCAAwC,CCnCxC,+FAIA,uBAAwB,CAGxB,iCAAkC,CAClC,kCAAmC,CAEnC,+BAAgC,CAChC,sCAAuC,CACvC,sCAAuC,CACvC,qGAIA,mDAAoD,CAEpD,mCAAoC,CACpC,8CAA+C,CAC/C,gDAAiD,CACjD,kCAAmC,CACnC,6DAA8D,CAG9D,6BAA8B,CAC9B,6BAA8B,CAC9B,+BAAgC,CAChC,kCAAmC,CACnC,kCAAmC,CCRjC,+jBCaA,iqCAZF,iaCXA,8KAOA,4SAWA,4SAUA,0CACA,gEAGA,0CAGA,gEAGA,yCACA,+DAIA,4CACA,kEAGA,wCAUA,8DACA,uCAGA,4DACA,sCACA,2DAGA,4CACA,kEACA,uCAGA,6DACA,2GAGA,sHAEA,yFAEA,+CACA,+EAGA,4MAOA,gCACA,sHAIA,kCACA,uEACA,gEACA,4DACA,kEAGA,2DACA,sDACA,0CACA,8CACA,wGAGA,0BACA,iCAGA,+DACA,+BACA,sCACA,+DAEA,kGACA,oCACA,yDACA,sCL3HF,kCAEA,sDAIA,0CKyHE,kEAIA,oDACA,sDAGA,oCACA,oEAEA,0DACA,qDAIA,oDACA,6DAIA,iEAIA,2DAIA,2DAGA,4DACA,gEAIA,gEAEA,gFAEA,oNASA,qDLtKE,gFAGE,4DAIF,oEKgHF,yEAEA,6DAGA,0DAEA,uDACA,qDACA,wDAIA,6DAIA,yDACA,2DAIA,uCAGA,wCACA,sDAGA,+CAGA,6DAEA,iDACA,+DAEA,wDAEA,sEAMA,0DACA,sBACA,mEL5JI,wEAEA,iCACE,+BAMN,wEAGA,iCACE,kFAEA,uEAIF,gEACE,8BAGF,qEMzDA,sCAKA,wFAKA,iCAIA,0BAWA,iCACA,4BACA,mCAGA,+BAEA,sCACA,4BAEA,mCAEA,sCAKA,sDAIA,gCAEA,gEAQF,wCAME,sBACA,kCAKA,uBAEA,gEAIA,2BAIA,mCAEA,qCACA,iCAGE,+BACA,wEAEE,iCACA,kFAGF,6BACA,0CACF,kCAEE,8BACE,8BACA,qEAEE,sCACA,wFClFN,iCAGF,2DACE,4BACA,oCAKF,8BAGE,sCACA,+DAIA,sCAEA,sDAGA,gCACA,gEAGA,+CAEA,sBACE,yCAGF,uBACA,sEAIA,aAEA,mCAIA,kEACA,aACA,oEACA,YAIA,EAQE,4HAGA,gDACE,mBACA,wCAON,wCAGE,0DACA,mBAKA,mBACA,CANA,uCAKA,iBALA,iBAWA,mBAGF,mBACE,mDAIF,+BAEE,CAEA,yBAFA,kBAMA,CAJA,GACA,aAGA,mBAEF,wBAEE,iBACA,iBAEA,OACA,aAGF,CAHE,WAGF,GAEE,oBAEA,CAJF,gBAIE,aAEA,+CAKA,UANA,WACA,cADA,SAMA,WACA,iBAEE,GAMF,wBANE,yBAMF,kDACA,WAEA,gCACA,2DAGA,iBACE,uCAEJ,kEAIE,uCAGA,yDACE,cACA,+DAEA,yDAEE,mEAMJ,kEAMA,uBACA,kBAEA,uBACA,kDAKA,0DAIA,CALA,oBAKA,WACA,WAQA,4BAFF,0CAEE,CARA,qCAsBA,CAdA,iBAEA,kBACE,aADF,4BACE,WAMF,2BAGF,qCAEE,CAXE,UAWF,+BAGA,uBAEA,SAEA,0CAIE,CANF,qCAEA,CAIE,2DACE,gBAIN,+CAIA,CAEA,kDAKE,CAPF,8BAEA,CAOE,YACA,CAjBI,2BAGN,CAHM,WAcJ,UAGA,CAEA,2GAIF,iCAGE,8BAIA,qBACA,oBACF,uBAOI,0CAIA,CATF,6DAKE,CALF,sBASE,qCAKF,CACE,cACA,CAFF,sBAEE,CACA,+BAEA,qBAEE,WAKN,aACE,sCAGA,mBAEA,6BAMA,kCACA,CAJA,sBACA,aAEA,CAJA,eACA,MAIA,2FAEA,UAGA,YACA,sBACE,8BAEA,CALF,aACA,WAIE,OACA,oBAEF,uBACE,WAEF,YAFE,UAEF,eAgBA,kBACE,CAhBA,qDAQF,qCAGF,CAGI,YACF,CAJF,2BAGI,CAEA,eACA,qBAGA,mEAEA,qBACA,8BAIA,kBADF,kBACE,yBAEJ,oCAGI,qDAIJ,+BAGI,oCAEA,+CAQF,4CACE,yBACF,2BAOE,sBACA,CAHA,WACA,CAFF,cACE,CAJA,YAGF,CAEE,SAEA,mBAGA,kDAEE,CAJF,cAEA,cAEE,sBAEA,mBADA,YACA,uBACA,mDACE,CADF,YACE,iDAEA,uCAEN,+DAOE,mBADF,sBACE,mBAGF,aACE,sCAIA,aADF,WACE,CAKF,SACE,CAHJ,kBAEE,CAJE,gBAEJ,CAHI,iBAMA,yFAKA,aACA,eACA,cCxaJ,iBAEE,aADA,iBACA,6BAEA,kCAEA,SACA,UAIA,gCACA,CALA,SAEA,SAEA,CAJA,wEAEA,CAFA,OAKA,CAGA,mDACE,iBAGF,gCACE,CADF,UACE,aAEJ,iCAEE,CAFF,UAEE,wCAEA,WACA,WADA,UACA,CACA,4CAGA,MACA,CADA,KACA,wCACA,UAGA,CAJA,UAIA,6DAUA,0CACE,CAFF,mBAEE,wEACA,CAVA,YACA,CAMF,mBAJE,OAOA,gBAJJ,gCACE,CANE,cACA,CAHA,oBACA,CAGA,QAGJ,CAII,0BACA,CADA,UACA,wCAEJ,kBACE,0DACA,gCACE,kBACA,CADA,YACA,oEACA,2CAMF,mDAII,CALN,YACE,CANE,cAKJ,CACE,iBAII,kEACA,yCACE,kDACA,yDACE,+CACA,uBANN,CAMM,+BANN,uCACE,qDACA,4BAEE,mBADA,0CACA,CADA,qBACA,0DACE,wCACA,sGALJ,oCACA,sBACE,kBAFF,UAEE,2CACA,wFACE,cACA,kEANN,uBACE,iDACA,CADA,UACA,0DACE,wDAEE,iEACA,qEANN,sCACE,CAGE,iBAHF,gBAGE,qBACE,CAJJ,uBACA,gDACE,wDACA,6DAHF,2CACA,CADA,gBACA,eACE,CAGE,sBANN,8BACE,CAII,iBAFF,4DACA,WACE,YADF,uCACE,6EACA,2BANN,8CACE,kDACA,0CACE,8BACA,yFACE,sBACA,sFALJ,mEACA,sBACE,kEACA,6EACE,uCACA,kEALJ,qGAEE,kEACA,6EACE,uCACA,kEALJ,8CACA,uDACE,sEACA,2EACE,sCACA,iEALJ,mGACA,qCACE,oDACA,0DACE,6GACA,gDAGR,yDCvEA,sEACE,CACA,6GACE,gEACF,iGAIF,wFACE,qDAGA,mGAEE,2CAEF,4FACE,gCACF,wGACE,8DAEE,6FAIA,iJAKN,6GACE,gDAKF,yDACA,qCAGA,6BACA,kBACA,qDAKA,oCAEA,+DAGA,2CAGE,oDAIA,oEAEE,qBAGJ,wDAEE,uCAEF,kEAGA,8CAEA,uDAIF,gEAIE,6BACA,gEAIA,+CACE,0EAIF,sDAEE,+DAGF,sCACA,8BACE,oCAEJ,wBACE,4FAEE,gBAEJ,yGAGI,kBAGJ,CCnHE,2MCFF,oBAGE,wGAKA,iCACE,CADF,wBACE,8GAQA,mBCjBJ,2GAIE,mBACA,6HAMA,YACE,mIAYF,eACA,CAHF,YAGE,4FAGE,8BAKF,uBAkBE,sCACA,CADA,qBAbA,wCAIA,CALF,8BACE,CADF,gBAKE,wCACA,CAOA,kDACA,CACA,kCAKF,6BAGA,4CACE,kDACA,eAGF,cACE,aACA,iBACA,yBACA,8BACA,WAGJ,2BACE,cAGA,+BACA,CAHA,eAGA,wCACA,YACA,iBACA,uEAGA,0BACA,2CAEA,8EAGI,qBACA,CAFF,kBAEE,4DAMJ,mCACE,4BAGA,oBAGF,4CACE,qCACA,8BACA,gBACA,+CAEA,iCAEF,iCACE,oBACA,4CACA,qCAGF,8BAEE,+BAEA,WAEA,8BACE,oBACA,CADA,gBACA,yBAKF,gBADF,YACE,CACA,iBACA,qDAEA,mDCvIJ,2FAMA,iCACE,CACA,eAEA,CAFA,mBADA,wBAIA,8BACA,gBADA,YACA,0BAEE,8CAGA,wDAIE,gFAGE,iBAEN,wCAKF,+CACE,CACA,oDAEF,kDAIE,YAEF,CAHE,YAGF,CCpCE,mFAFA,QACA,UAIA,CAHA,IAGA,gDAGE,eACA,iEAGF,wBAEE,mBAMA,6CAEF,CAJE,mBACA,CAGF,kCAGE,CARF,kBACE,CAHA,eAUA,YACA,mBACA,CAFA,UAEA,wCC/BJ,mBACE,CDkCE,wBACA,sBCpCJ,iBACE,mDACA,2CACA,sBAGA,qBCDA,6CAIE,CATJ,uBAKE,CDGE,oBACF,yDAEE,CCDE,2CAGF,CAJA,kCACE,CDJJ,aAKE,eCXJ,CDME,uBCOE,gCACE,YAEF,2CAEE,wBACA,0BAIF,iBAEA,cADF,UACE,uBAEA,iCAEA,wCAEA,6CAMA,CAYF,gCATI,4BASJ,CAZE,mCAEE,iCAUJ,4BAGE,4DADA,+BACA,CAHF,qBAGE,sCACE,OAEF,iBAHA,SAGA,iHACE,2DAKF,CANA,8EAMA,uSAEE,kBAEF,+FACE,yCCjEJ,WACA,yBAGA,uBACA,gBAEA,uCAIA,CAJA,iCAIA,uCAGA,UACE,gBACA,qBAEA,0CClBJ,gBACE,KAGF,qBACE,YAGF,CAHE,cAGF,gCAEE,mBACA,iEAEA,oCACA,wCAEA,sBACA,WAEA,CAFA,YAEA,8EAEA,mCAFA,iBAEA,6BAIA,wEAKA,sDAIE,CARF,mDAIA,CAIE,cAEF,8CAIA,oBAFE,iBAEF,8CAGE,eAEF,CAFE,YAEF,OAEE,kBAGJ,CAJI,eACA,CAFF,mBAKF,yCCjDE,oBACA,CAFA,iBAEA,uCAKE,iBACA,qCAGA,mBCZJ,CDWI,gBCXJ,6BAEE,eACA,sBAGA,eAEA,sBACA,oDACA,iGAMA,gBAFE,YAEF,8FAME,iJCnBF,YACA,gNAWE,gDAEF,iSAaE,kBACE,gHAKF,oCACE,eACF,CADE,UACF,8CACE,gDACF,wCACE,oBCtCJ,oBAEF,6BACE,QACE,kDAGF,yBACE,kDAmBA,kDAEF,CAhBA,+CAaA,CAbA,oBAaA,0FACE,CADF,gGAfF,cACE,gBACA,CAaA,0BAGA,mQACE,gBAGF,oMACE,iBACA,CAFF,eACE,CADF,gBAEE,aAGJ,iCAEE,CAFF,wCAEE,wBAUE,+VAIE,uEAHA,2BAGA,wXAKJ,iDAGF,CARM,+CACE,iDAIN,CALI,gBAQN,mHACE,gBAGF,2DACE,0EAOA,0EAGF,gBAEE,6DCjFA,kDACA,gCACA,qDAGA,qBACA,qDCDA,cACA,eAEA,yBAGF,sBAEE,iBACA,sNAWA,iBACE,kBACA,wRAgBA,kBAEA,iOAgBA,uCACE,uEAEA,kBAEF,qUAuBE,iDAIJ,CACA,geCzFF,4BAEE,CAQA,6JACA,iDAIA,sEAGA,mDAOF,iDAGE,4DAIA,8CACA,qDAEE,eAFF,cAEE,oBAEF,uBAFE,kCAGA,eACA,iBACA,mBAIA,mDACA,CAHA,uCAEA,CAJA,0CACA,CAIA,gBAJA,gBACA,oBADA,gBAIA,wBAEJ,gBAGE,6BACA,YAHA,iBAGA,gCACA,iEAEA,6CACA,sDACA,0BADA,wBACA,0BACA,oIAIA,mBAFA,YAEA,qBACA,0CAIE,uBAEF,CAHA,yBACE,CAEF,iDACE,mFAKJ,oCACE,CANE,aAKJ,CACE,qEAIA,YAFA,WAEA,CAHA,aACA,CAEA,gBACE,4BACA,sBADA,aACA,gCAMF,oCACA,yDACA,2CAEA,qBAGE,kBAEA,CACA,mCAIF,CARE,YACA,CAOF,iCAEE,CAPA,oBACA,CAQA,oBACE,uDAEJ,sDAGA,CAHA,cAGA,0BACE,oDAIA,oCACA,4BACA,sBAGA,cAEA,oFAGA,sBAEA,yDACE,CAIF,iBAJE,wBAIF,6CAHE,6CAKA,eACA,aACA,CADA,cACA,yCAGJ,kBACE,CAKA,iDAEA,CARF,aACE,4CAGA,kBAIA,wEAGA,wDAGA,kCAOA,iDAGA,CAPF,WAEE,sCAEA,CAJF,2CACE,CAMA,qCACA,+BARF,kBACE,qCAOA,iBAsBA,sBACE,CAvBF,WAKA,CACE,0DAIF,CALA,uDACE,CANF,sBAqBA,4CACA,CALA,gRAIA,YAEE,6CAEN,mCAEE,+CASA,6EAIA,4BChNA,SDmNA,qFCnNA,gDACA,sCAGA,qCACA,sDACA,CAKA,kDAGA,CARA,0CAQA,kBAGA,YACA,sBACA,iBAFA,gBADF,YACE,CAHA,SAKA,kBAEA,SAFA,iBAEA,uEAGA,CAEE,6CAFF,oCAgBI,CAdF,yBACE,qBACF,CAGF,oBACE,CAIF,WACE,CALA,2CAGA,uBACF,CACE,mFAGE,CALF,qBAEA,UAGE,gCAIF,sDAEA,CALE,oCAKF,yCC7CJ,oCACE,CD+CA,yXAQE,sCCrDJ,wCAGA,oCACE","sources":["webpack:///./node_modules/normalize.css/normalize.css","webpack:///./src/furo/assets/styles/base/_print.sass","webpack:///./src/furo/assets/styles/base/_screen-readers.sass","webpack:///./src/furo/assets/styles/base/_theme.sass","webpack:///./src/furo/assets/styles/variables/_fonts.scss","webpack:///./src/furo/assets/styles/variables/_spacing.scss","webpack:///./src/furo/assets/styles/variables/_icons.scss","webpack:///./src/furo/assets/styles/variables/_admonitions.scss","webpack:///./src/furo/assets/styles/variables/_colors.scss","webpack:///./src/furo/assets/styles/base/_typography.sass","webpack:///./src/furo/assets/styles/_scaffold.sass","webpack:///./src/furo/assets/styles/content/_admonitions.sass","webpack:///./src/furo/assets/styles/content/_api.sass","webpack:///./src/furo/assets/styles/content/_blocks.sass","webpack:///./src/furo/assets/styles/content/_captions.sass","webpack:///./src/furo/assets/styles/content/_code.sass","webpack:///./src/furo/assets/styles/content/_footnotes.sass","webpack:///./src/furo/assets/styles/content/_images.sass","webpack:///./src/furo/assets/styles/content/_indexes.sass","webpack:///./src/furo/assets/styles/content/_lists.sass","webpack:///./src/furo/assets/styles/content/_math.sass","webpack:///./src/furo/assets/styles/content/_misc.sass","webpack:///./src/furo/assets/styles/content/_rubrics.sass","webpack:///./src/furo/assets/styles/content/_sidebar.sass","webpack:///./src/furo/assets/styles/content/_tables.sass","webpack:///./src/furo/assets/styles/content/_target.sass","webpack:///./src/furo/assets/styles/content/_gui-labels.sass","webpack:///./src/furo/assets/styles/components/_footer.sass","webpack:///./src/furo/assets/styles/components/_sidebar.sass","webpack:///./src/furo/assets/styles/components/_table_of_contents.sass","webpack:///./src/furo/assets/styles/_shame.sass"],"sourcesContent":["/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n\n/* Document\n ========================================================================== */\n\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\n\nhtml {\n line-height: 1.15; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n\n/**\n * Remove the margin in all browsers.\n */\n\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\n\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\n\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\n\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n\n/**\n * Remove the gray background on active links in IE 10.\n */\n\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\n\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n\n/**\n * Remove the border on images inside links in IE 10.\n */\n\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\n\nbutton,\ninput { /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\n\nbutton,\nselect { /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\n\nbutton,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\n\nbutton::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\n\nbutton:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\n\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\n\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\n\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\n\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n\n[type=\"checkbox\"],\n[type=\"radio\"] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n\n[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n[type=\"search\"] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n\n[type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\n\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\n\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n\n/**\n * Add the correct display in IE 10+.\n */\n\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n\n[hidden] {\n display: none;\n}\n","// This file contains styles for managing print media.\n\n////////////////////////////////////////////////////////////////////////////////\n// Hide elements not relevant to print media.\n////////////////////////////////////////////////////////////////////////////////\n@media print\n // Hide icon container.\n .content-icon-container\n display: none !important\n\n // Hide showing header links if hovering over when printing.\n .headerlink\n display: none !important\n\n // Hide mobile header.\n .mobile-header\n display: none !important\n\n // Hide navigation links.\n .related-pages\n display: none !important\n\n////////////////////////////////////////////////////////////////////////////////\n// Tweaks related to decolorization.\n////////////////////////////////////////////////////////////////////////////////\n@media print\n // Apply a border around code which no longer have a color background.\n .highlight\n border: 0.1pt solid var(--color-foreground-border)\n\n////////////////////////////////////////////////////////////////////////////////\n// Avoid page break in some relevant cases.\n////////////////////////////////////////////////////////////////////////////////\n@media print\n ul, ol, dl, a, table, pre, blockquote, p\n page-break-inside: avoid\n\n h1, h2, h3, h4, h5, h6, img, figure, caption\n page-break-inside: avoid\n page-break-after: avoid\n\n ul, ol, dl\n page-break-before: avoid\n",".visually-hidden\n position: absolute !important\n width: 1px !important\n height: 1px !important\n padding: 0 !important\n margin: -1px !important\n overflow: hidden !important\n clip: rect(0,0,0,0) !important\n white-space: nowrap !important\n border: 0 !important\n color: var(--color-foreground-primary)\n background: var(--color-background-primary)\n\n:-moz-focusring\n outline: auto\n","// This file serves as the \"skeleton\" of the theming logic.\n//\n// This contains the bulk of the logic for handling dark mode, color scheme\n// toggling and the handling of color-scheme-specific hiding of elements.\n\n@use \"../variables\" as *\n\nbody\n @include fonts\n @include spacing\n @include icons\n @include admonitions\n @include default-admonition(#651fff, \"abstract\")\n @include default-topic(#14B8A6, \"pencil\")\n\n @include colors\n\n.only-light\n display: block !important\nhtml body .only-dark\n display: none !important\n\n// Ignore dark-mode hints if print media.\n@media not print\n // Enable dark-mode, if requested.\n body[data-theme=\"dark\"]\n @include colors-dark\n\n html & .only-light\n display: none !important\n .only-dark\n display: block !important\n\n // Enable dark mode, unless explicitly told to avoid.\n @media (prefers-color-scheme: dark)\n body:not([data-theme=\"light\"])\n @include colors-dark\n\n html & .only-light\n display: none !important\n .only-dark\n display: block !important\n\n//\n// Theme toggle presentation\n//\nbody[data-theme=\"auto\"]\n .theme-toggle svg.theme-icon-when-auto-light\n display: block\n\n @media (prefers-color-scheme: dark)\n .theme-toggle svg.theme-icon-when-auto-dark\n display: block\n .theme-toggle svg.theme-icon-when-auto-light\n display: none\n\nbody[data-theme=\"dark\"]\n .theme-toggle svg.theme-icon-when-dark\n display: block\n\nbody[data-theme=\"light\"]\n .theme-toggle svg.theme-icon-when-light\n display: block\n","// Fonts used by this theme.\n//\n// There are basically two things here -- using the system font stack and\n// defining sizes for various elements in %ages. We could have also used `em`\n// but %age is easier to reason about for me.\n\n@mixin fonts {\n // These are adapted from https://systemfontstack.com/\n --font-stack:\n -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif,\n Apple Color Emoji, Segoe UI Emoji;\n --font-stack--monospace:\n \"SFMono-Regular\", Menlo, Consolas, Monaco, Liberation Mono, Lucida Console,\n monospace;\n --font-stack--headings: var(--font-stack);\n\n --font-size--normal: 100%;\n --font-size--small: 87.5%;\n --font-size--small--2: 81.25%;\n --font-size--small--3: 75%;\n --font-size--small--4: 62.5%;\n\n // Sidebar\n --sidebar-caption-font-size: var(--font-size--small--2);\n --sidebar-item-font-size: var(--font-size--small);\n --sidebar-search-input-font-size: var(--font-size--small);\n\n // Table of Contents\n --toc-font-size: var(--font-size--small--3);\n --toc-font-size--mobile: var(--font-size--normal);\n --toc-title-font-size: var(--font-size--small--4);\n\n // Admonitions\n //\n // These aren't defined in terms of %ages, since nesting these is permitted.\n --admonition-font-size: 0.8125rem;\n --admonition-title-font-size: 0.8125rem;\n\n // Code\n --code-font-size: var(--font-size--small--2);\n\n // API\n --api-font-size: var(--font-size--small);\n}\n","// Spacing for various elements on the page\n//\n// If the user wants to tweak things in a certain way, they are permitted to.\n// They also have to deal with the consequences though!\n\n@mixin spacing {\n // Header!\n --header-height: calc(\n var(--sidebar-item-line-height) + 4 *\n #{var(--sidebar-item-spacing-vertical)}\n );\n --header-padding: 0.5rem;\n\n // Sidebar\n --sidebar-tree-space-above: 1.5rem;\n --sidebar-caption-space-above: 1rem;\n\n --sidebar-item-line-height: 1rem;\n --sidebar-item-spacing-vertical: 0.5rem;\n --sidebar-item-spacing-horizontal: 1rem;\n --sidebar-item-height: calc(\n var(--sidebar-item-line-height) + 2 *#{var(--sidebar-item-spacing-vertical)}\n );\n\n --sidebar-expander-width: var(--sidebar-item-height); // be square\n\n --sidebar-search-space-above: 0.5rem;\n --sidebar-search-input-spacing-vertical: 0.5rem;\n --sidebar-search-input-spacing-horizontal: 0.5rem;\n --sidebar-search-input-height: 1rem;\n --sidebar-search-icon-size: var(--sidebar-search-input-height);\n\n // Table of Contents\n --toc-title-padding: 0.25rem 0;\n --toc-spacing-vertical: 1.5rem;\n --toc-spacing-horizontal: 1.5rem;\n --toc-item-spacing-vertical: 0.4rem;\n --toc-item-spacing-horizontal: 1rem;\n}\n","// Expose theme icons as CSS variables.\n\n$icons: (\n // Adapted from tabler-icons\n // url: https://tablericons.com/\n \"search\":\n url('data:image/svg+xml;charset=utf-8,'),\n // Factored out from mkdocs-material on 24-Aug-2020.\n // url: https://squidfunk.github.io/mkdocs-material/reference/admonitions/\n \"pencil\":\n url('data:image/svg+xml;charset=utf-8,'),\n \"abstract\":\n url('data:image/svg+xml;charset=utf-8,'),\n \"info\":\n url('data:image/svg+xml;charset=utf-8,'),\n \"flame\":\n url('data:image/svg+xml;charset=utf-8,'),\n \"question\":\n url('data:image/svg+xml;charset=utf-8,'),\n \"warning\":\n url('data:image/svg+xml;charset=utf-8,'),\n \"failure\":\n url('data:image/svg+xml;charset=utf-8,'),\n \"spark\":\n url('data:image/svg+xml;charset=utf-8,')\n);\n\n@mixin icons {\n @each $name, $glyph in $icons {\n --icon-#{$name}: #{$glyph};\n }\n}\n","@use \"sass:list\";\n// Admonitions\n\n// Structure of these is:\n// admonition-class: color \"icon-name\";\n//\n// The colors are translated into CSS variables below. The icons are\n// used directly in the main declarations to set the `mask-image` in\n// the title.\n\n// prettier-ignore\n$admonitions: (\n // Each of these has an reST directives for it.\n \"caution\": #ff9100 \"spark\",\n \"warning\": #ff9100 \"warning\",\n \"danger\": #ff5252 \"spark\",\n \"attention\": #ff5252 \"warning\",\n \"error\": #ff5252 \"failure\",\n \"hint\": #00c852 \"question\",\n \"tip\": #00c852 \"info\",\n \"important\": #00bfa5 \"flame\",\n \"note\": #00b0ff \"pencil\",\n \"seealso\": #448aff \"info\",\n \"admonition-todo\": #808080 \"pencil\"\n);\n\n@mixin default-admonition($color, $icon-name) {\n --color-admonition-title: #{$color};\n --color-admonition-title-background: #{rgba($color, 0.2)};\n\n --icon-admonition-default: var(--icon-#{$icon-name});\n}\n\n@mixin default-topic($color, $icon-name) {\n --color-topic-title: #{$color};\n --color-topic-title-background: #{rgba($color, 0.2)};\n\n --icon-topic-default: var(--icon-#{$icon-name});\n}\n\n@mixin admonitions {\n @each $name, $values in $admonitions {\n --color-admonition-title--#{$name}: #{list.nth($values, 1)};\n --color-admonition-title-background--#{$name}: #{rgba(\n list.nth($values, 1),\n 0.2\n )};\n }\n}\n","// Colors used throughout this theme.\n//\n// The aim is to give the user more control. Thus, instead of hard-coding colors\n// in various parts of the stylesheet, the approach taken is to define all\n// colors as CSS variables and reusing them in all the places.\n//\n// `colors-dark` depends on `colors` being included at a lower specificity.\n\n@mixin colors {\n --color-problematic: #b30000;\n\n // Base Colors\n --color-foreground-primary: black; // for main text and headings\n --color-foreground-secondary: #5a5c63; // for secondary text\n --color-foreground-muted: #6b6f76; // for muted text\n --color-foreground-border: #878787; // for content borders\n\n --color-background-primary: white; // for content\n --color-background-secondary: #f8f9fb; // for navigation + ToC\n --color-background-hover: #efeff4ff; // for navigation-item hover\n --color-background-hover--transparent: #efeff400;\n --color-background-border: #eeebee; // for UI borders\n --color-background-item: #ccc; // for \"background\" items (eg: copybutton)\n\n // Announcements\n --color-announcement-background: #000000dd;\n --color-announcement-text: #eeebee;\n\n // Brand colors\n --color-brand-primary: #0a4bff;\n --color-brand-content: #2757dd;\n --color-brand-visited: #872ee0;\n\n // API documentation\n --color-api-background: var(--color-background-hover--transparent);\n --color-api-background-hover: var(--color-background-hover);\n --color-api-overall: var(--color-foreground-secondary);\n --color-api-name: var(--color-problematic);\n --color-api-pre-name: var(--color-problematic);\n --color-api-paren: var(--color-foreground-secondary);\n --color-api-keyword: var(--color-foreground-primary);\n\n --color-api-added: #21632c;\n --color-api-added-border: #38a84d;\n --color-api-changed: #046172;\n --color-api-changed-border: #06a1bc;\n --color-api-deprecated: #605706;\n --color-api-deprecated-border: #f0d90f;\n --color-api-removed: #b30000;\n --color-api-removed-border: #ff5c5c;\n\n --color-highlight-on-target: #ffffcc;\n\n // Inline code background\n --color-inline-code-background: var(--color-background-secondary);\n\n // Highlighted text (search)\n --color-highlighted-background: #ddeeff;\n --color-highlighted-text: var(--color-foreground-primary);\n\n // GUI Labels\n --color-guilabel-background: #ddeeff80;\n --color-guilabel-border: #bedaf580;\n --color-guilabel-text: var(--color-foreground-primary);\n\n // Admonitions!\n --color-admonition-background: transparent;\n\n //////////////////////////////////////////////////////////////////////////////\n // Everything below this should be one of:\n // - var(...)\n // - *-gradient(...)\n // - special literal values (eg: transparent, none)\n //////////////////////////////////////////////////////////////////////////////\n\n // Tables\n --color-table-header-background: var(--color-background-secondary);\n --color-table-border: var(--color-background-border);\n\n // Cards\n --color-card-border: var(--color-background-secondary);\n --color-card-background: transparent;\n --color-card-marginals-background: var(--color-background-secondary);\n\n // Header\n --color-header-background: var(--color-background-primary);\n --color-header-border: var(--color-background-border);\n --color-header-text: var(--color-foreground-primary);\n\n // Sidebar (left)\n --color-sidebar-background: var(--color-background-secondary);\n --color-sidebar-background-border: var(--color-background-border);\n\n --color-sidebar-brand-text: var(--color-foreground-primary);\n --color-sidebar-caption-text: var(--color-foreground-muted);\n --color-sidebar-link-text: var(--color-foreground-secondary);\n --color-sidebar-link-text--top-level: var(--color-brand-primary);\n\n --color-sidebar-item-background: var(--color-sidebar-background);\n --color-sidebar-item-background--current: var(\n --color-sidebar-item-background\n );\n --color-sidebar-item-background--hover: linear-gradient(\n 90deg,\n var(--color-background-hover--transparent) 0%,\n var(--color-background-hover) var(--sidebar-item-spacing-horizontal),\n var(--color-background-hover) 100%\n );\n\n --color-sidebar-item-expander-background: transparent;\n --color-sidebar-item-expander-background--hover: var(\n --color-background-hover\n );\n\n --color-sidebar-search-text: var(--color-foreground-primary);\n --color-sidebar-search-background: var(--color-background-secondary);\n --color-sidebar-search-background--focus: var(--color-background-primary);\n --color-sidebar-search-border: var(--color-background-border);\n --color-sidebar-search-icon: var(--color-foreground-muted);\n\n // Table of Contents (right)\n --color-toc-background: var(--color-background-primary);\n --color-toc-title-text: var(--color-foreground-muted);\n --color-toc-item-text: var(--color-foreground-secondary);\n --color-toc-item-text--hover: var(--color-foreground-primary);\n --color-toc-item-text--active: var(--color-brand-primary);\n\n // Actual page contents\n --color-content-foreground: var(--color-foreground-primary);\n --color-content-background: transparent;\n\n // Links\n --color-link: var(--color-brand-content);\n --color-link-underline: var(--color-background-border);\n --color-link--hover: var(--color-brand-content);\n --color-link-underline--hover: var(--color-foreground-border);\n\n --color-link--visited: var(--color-brand-visited);\n --color-link-underline--visited: var(--color-background-border);\n --color-link--visited--hover: var(--color-brand-visited);\n --color-link-underline--visited--hover: var(--color-foreground-border);\n}\n\n@mixin colors-dark {\n --color-problematic: #ee5151;\n\n // Base Colors\n --color-foreground-primary: #cfd0d0; // for main text and headings\n --color-foreground-secondary: #9ca0a5; // for secondary text\n --color-foreground-muted: #81868d; // for muted text\n --color-foreground-border: #666666; // for content borders\n\n --color-background-primary: #131416; // for content\n --color-background-secondary: #1a1c1e; // for navigation + ToC\n --color-background-hover: #1e2124ff; // for navigation-item hover\n --color-background-hover--transparent: #1e212400;\n --color-background-border: #303335; // for UI borders\n --color-background-item: #444; // for \"background\" items (eg: copybutton)\n\n // Announcements\n --color-announcement-background: #000000dd;\n --color-announcement-text: #eeebee;\n\n // Brand colors\n --color-brand-primary: #3d94ff;\n --color-brand-content: #5ca5ff;\n --color-brand-visited: #b27aeb;\n\n // Highlighted text (search)\n --color-highlighted-background: #083563;\n\n // GUI Labels\n --color-guilabel-background: #08356380;\n --color-guilabel-border: #13395f80;\n\n // API documentation\n --color-api-keyword: var(--color-foreground-secondary);\n --color-highlight-on-target: #333300;\n\n --color-api-added: #3db854;\n --color-api-added-border: #267334;\n --color-api-changed: #09b0ce;\n --color-api-changed-border: #056d80;\n --color-api-deprecated: #b1a10b;\n --color-api-deprecated-border: #6e6407;\n --color-api-removed: #ff7575;\n --color-api-removed-border: #b03b3b;\n\n // Admonitions\n --color-admonition-background: #18181a;\n\n // Cards\n --color-card-border: var(--color-background-secondary);\n --color-card-background: #18181a;\n --color-card-marginals-background: var(--color-background-hover);\n}\n","// This file contains the styling for making the content throughout the page,\n// including fonts, paragraphs, headings and spacing among these elements.\n\nbody\n font-family: var(--font-stack)\npre,\ncode,\nkbd,\nsamp\n font-family: var(--font-stack--monospace)\n\n// Make fonts look slightly nicer.\nbody\n -webkit-font-smoothing: antialiased\n -moz-osx-font-smoothing: grayscale\n\n// Line height from Bootstrap 4.1\narticle\n line-height: 1.5\n\n//\n// Headings\n//\nh1,\nh2,\nh3,\nh4,\nh5,\nh6\n line-height: 1.25\n font-family: var(--font-stack--headings)\n font-weight: bold\n\n border-radius: 0.5rem\n margin-top: 0.5rem\n margin-bottom: 0.5rem\n margin-left: -0.5rem\n margin-right: -0.5rem\n padding-left: 0.5rem\n padding-right: 0.5rem\n\n + p\n margin-top: 0\n\nh1\n font-size: 2.5em\n margin-top: 1.75rem\n margin-bottom: 1rem\nh2\n font-size: 2em\n margin-top: 1.75rem\nh3\n font-size: 1.5em\nh4\n font-size: 1.25em\nh5\n font-size: 1.125em\nh6\n font-size: 1em\n\nsmall\n opacity: 75%\n font-size: 80%\n\n// Paragraph\np\n margin-top: 0.5rem\n margin-bottom: 0.75rem\n\n// Horizontal rules\nhr.docutils\n height: 1px\n padding: 0\n margin: 2rem 0\n background-color: var(--color-background-border)\n border: 0\n\n.centered\n text-align: center\n\n// Links\na\n text-decoration: underline\n\n color: var(--color-link)\n text-decoration-color: var(--color-link-underline)\n\n &:visited\n color: var(--color-link--visited)\n text-decoration-color: var(--color-link-underline--visited)\n &:hover\n color: var(--color-link--visited--hover)\n text-decoration-color: var(--color-link-underline--visited--hover)\n\n &:hover\n color: var(--color-link--hover)\n text-decoration-color: var(--color-link-underline--hover)\n &.muted-link\n color: inherit\n &:hover\n color: var(--color-link--hover)\n text-decoration-color: var(--color-link-underline--hover)\n &:visited\n color: var(--color-link--visited--hover)\n text-decoration-color: var(--color-link-underline--visited--hover)\n","// This file contains the styles for the overall layouting of the documentation\n// skeleton, including the responsive changes as well as sidebar toggles.\n//\n// This is implemented as a mobile-last design, which isn't ideal, but it is\n// reasonably good-enough and I got pretty tired by the time I'd finished this\n// to move the rules around to fix this. Shouldn't take more than 3-4 hours,\n// if you know what you're doing tho.\n\n// HACK: Not all browsers account for the scrollbar width in media queries.\n// This results in horizontal scrollbars in the breakpoint where we go\n// from displaying everything to hiding the ToC. We accomodate for this by\n// adding a bit of padding to the TOC drawer, disabling the horizontal\n// scrollbar and allowing the scrollbars to cover the padding.\n// https://www.456bereastreet.com/archive/201301/media_query_width_and_vertical_scrollbars/\n\n// HACK: Always having the scrollbar visible, prevents certain browsers from\n// causing the content to stutter horizontally between taller-than-viewport and\n// not-taller-than-viewport pages.\n@use \"variables\" as *\n\nhtml\n overflow-x: hidden\n overflow-y: scroll\n scroll-behavior: smooth\n\n.sidebar-scroll, .toc-scroll, article[role=main] *\n scrollbar-width: thin\n scrollbar-color: var(--color-foreground-border) transparent\n\n//\n// Overalls\n//\nhtml,\nbody\n height: 100%\n color: var(--color-foreground-primary)\n background: var(--color-background-primary)\n\n.skip-to-content\n position: fixed\n padding: 1rem\n border-radius: 1rem\n left: 0.25rem\n top: 0.25rem\n z-index: 40\n background: var(--color-background-primary)\n color: var(--color-foreground-primary)\n\n transform: translateY(-200%)\n transition: transform 300ms ease-in-out\n\n &:focus-within\n transform: translateY(0%)\n\narticle\n color: var(--color-content-foreground)\n background: var(--color-content-background)\n overflow-wrap: break-word\n\n.page\n display: flex\n // fill the viewport for pages with little content.\n min-height: 100%\n\n.mobile-header\n width: 100%\n height: var(--header-height)\n background-color: var(--color-header-background)\n color: var(--color-header-text)\n border-bottom: 1px solid var(--color-header-border)\n\n // Looks like sub-script/super-script have this, and we need this to\n // be \"on top\" of those.\n z-index: 10\n\n // We don't show the header on large screens.\n display: none\n\n // Add shadow when scrolled\n &.scrolled\n border-bottom: none\n box-shadow: 0 0 0.2rem rgba(0, 0, 0, 0.1), 0 0.2rem 0.4rem rgba(0, 0, 0, 0.2)\n\n .header-center\n a\n color: var(--color-header-text)\n text-decoration: none\n\n.main\n display: flex\n flex: 1\n\n// Sidebar (left) also covers the entire left portion of screen.\n.sidebar-drawer\n box-sizing: border-box\n\n border-right: 1px solid var(--color-sidebar-background-border)\n background: var(--color-sidebar-background)\n\n display: flex\n justify-content: flex-end\n // These next two lines took me two days to figure out.\n width: calc((100% - #{$full-width}) / 2 + #{$sidebar-width})\n min-width: $sidebar-width\n\n// Scroll-along sidebars\n.sidebar-container,\n.toc-drawer\n box-sizing: border-box\n width: $sidebar-width\n\n.toc-drawer\n background: var(--color-toc-background)\n // See HACK described on top of this document\n padding-right: 1rem\n\n.sidebar-sticky,\n.toc-sticky\n position: sticky\n top: 0\n height: min(100%, 100vh)\n height: 100vh\n\n display: flex\n flex-direction: column\n\n.sidebar-scroll,\n.toc-scroll\n flex-grow: 1\n flex-shrink: 1\n\n overflow: auto\n scroll-behavior: smooth\n\n// Central items.\n.content\n padding: 0 $content-padding\n width: $content-width\n\n display: flex\n flex-direction: column\n justify-content: space-between\n\n.icon\n display: inline-block\n height: 1rem\n width: 1rem\n svg\n width: 100%\n height: 100%\n\n//\n// Accommodate announcement banner\n//\n.announcement\n background-color: var(--color-announcement-background)\n color: var(--color-announcement-text)\n\n height: var(--header-height)\n display: flex\n align-items: center\n overflow-x: auto\n & + .page\n min-height: calc(100% - var(--header-height))\n\n.announcement-content\n box-sizing: border-box\n padding: 0.5rem\n min-width: 100%\n white-space: nowrap\n text-align: center\n\n a\n color: var(--color-announcement-text)\n text-decoration-color: var(--color-announcement-text)\n\n &:hover\n color: var(--color-announcement-text)\n text-decoration-color: var(--color-link--hover)\n\n////////////////////////////////////////////////////////////////////////////////\n// Toggles for theme\n////////////////////////////////////////////////////////////////////////////////\n.no-js .theme-toggle-container // don't show theme toggle if there's no JS\n display: none\n\n.theme-toggle-container\n display: flex\n\n.theme-toggle\n display: flex\n cursor: pointer\n border: none\n padding: 0\n background: transparent\n\n.theme-toggle svg\n height: 1.25rem\n width: 1.25rem\n color: var(--color-foreground-primary)\n display: none\n\n.theme-toggle-header\n display: flex\n align-items: center\n justify-content: center\n\n////////////////////////////////////////////////////////////////////////////////\n// Toggles for elements\n////////////////////////////////////////////////////////////////////////////////\n.toc-overlay-icon, .nav-overlay-icon\n display: none\n cursor: pointer\n\n .icon\n color: var(--color-foreground-secondary)\n height: 1.5rem\n width: 1.5rem\n\n.toc-header-icon, .nav-overlay-icon\n // for when we set display: flex\n justify-content: center\n align-items: center\n\n.toc-content-icon\n height: 1.5rem\n width: 1.5rem\n\n.content-icon-container\n float: right\n display: flex\n margin-top: 1.5rem\n margin-left: 1rem\n margin-bottom: 1rem\n gap: 0.5rem\n\n .edit-this-page, .view-this-page\n svg\n color: inherit\n height: 1.25rem\n width: 1.25rem\n\n.sidebar-toggle\n position: absolute\n display: none\n// \n.sidebar-toggle[name=\"__toc\"]\n left: 20px\n.sidebar-toggle:checked\n left: 40px\n// \n\n.overlay\n position: fixed\n top: 0\n width: 0\n height: 0\n\n transition: width 0ms, height 0ms, opacity 250ms ease-out\n\n opacity: 0\n background-color: rgba(0, 0, 0, 0.54)\n.sidebar-overlay\n z-index: 20\n.toc-overlay\n z-index: 40\n\n// Keep things on top and smooth.\n.sidebar-drawer\n z-index: 30\n transition: left 250ms ease-in-out\n.toc-drawer\n z-index: 50\n transition: right 250ms ease-in-out\n\n// Show the Sidebar\n#__navigation:checked\n & ~ .sidebar-overlay\n width: 100%\n height: 100%\n opacity: 1\n & ~ .page\n .sidebar-drawer\n top: 0\n left: 0\n // Show the toc sidebar\n#__toc:checked\n & ~ .toc-overlay\n width: 100%\n height: 100%\n opacity: 1\n & ~ .page\n .toc-drawer\n top: 0\n right: 0\n\n////////////////////////////////////////////////////////////////////////////////\n// Back to top\n////////////////////////////////////////////////////////////////////////////////\n.back-to-top\n text-decoration: none\n\n display: none\n position: fixed\n left: 0\n top: 1rem\n padding: 0.5rem\n padding-right: 0.75rem\n border-radius: 1rem\n font-size: 0.8125rem\n\n background: var(--color-background-primary)\n box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.05), #6b728080 0px 0px 1px 0px\n\n z-index: 10\n\n margin-left: 50%\n transform: translateX(-50%)\n svg\n height: 1rem\n width: 1rem\n fill: currentColor\n display: inline-block\n\n span\n margin-left: 0.25rem\n\n .show-back-to-top &\n display: flex\n align-items: center\n\n////////////////////////////////////////////////////////////////////////////////\n// Responsive layouting\n////////////////////////////////////////////////////////////////////////////////\n// Make things a bit bigger on bigger screens.\n@media (min-width: $full-width + $sidebar-width)\n html\n font-size: 110%\n\n@media (max-width: $full-width)\n // Collapse \"toc\" into the icon.\n .toc-content-icon\n display: flex\n .toc-drawer\n position: fixed\n height: 100vh\n top: 0\n right: -$sidebar-width\n border-left: 1px solid var(--color-background-muted)\n .toc-tree\n border-left: none\n font-size: var(--toc-font-size--mobile)\n\n // Accomodate for a changed content width.\n .sidebar-drawer\n width: calc((100% - #{$full-width - $sidebar-width}) / 2 + #{$sidebar-width})\n\n@media (max-width: $content-padded-width + $sidebar-width)\n // Center the page\n .content\n margin-left: auto\n margin-right: auto\n padding: 0 $content-padding--small\n\n@media (max-width: $content-padded-width--small + $sidebar-width)\n // Collapse \"navigation\".\n .nav-overlay-icon\n display: flex\n .sidebar-drawer\n position: fixed\n height: 100vh\n width: $sidebar-width\n\n top: 0\n left: -$sidebar-width\n\n // Swap which icon is visible.\n .toc-header-icon, .theme-toggle-header\n display: flex\n .toc-content-icon, .theme-toggle-content\n display: none\n\n // Show the header.\n .mobile-header\n position: sticky\n top: 0\n display: flex\n justify-content: space-between\n align-items: center\n\n .header-left,\n .header-right\n display: flex\n height: var(--header-height)\n padding: 0 var(--header-padding)\n label\n height: 100%\n width: 100%\n user-select: none\n\n .nav-overlay-icon .icon,\n .theme-toggle svg\n height: 1.5rem\n width: 1.5rem\n\n // Add a scroll margin for the content\n :target\n scroll-margin-top: calc(var(--header-height) + 2.5rem)\n\n // Show back-to-top below the header\n .back-to-top\n top: calc(var(--header-height) + 0.5rem)\n\n // Accommodate for the header.\n .page\n flex-direction: column\n justify-content: center\n\n@media (max-width: $content-width + 2* $content-padding--small)\n // Content should respect window limits.\n .content\n width: 100%\n overflow-x: auto\n\n@media (max-width: $content-width)\n article[role=main] aside.sidebar\n float: none\n width: 100%\n margin: 1rem 0\n","@use \"sass:list\"\n@use \"../variables\" as *\n\n// The design here is strongly inspired by mkdocs-material.\n.admonition, .topic\n margin: 1rem auto\n padding: 0 0.5rem 0.5rem 0.5rem\n\n background: var(--color-admonition-background)\n\n border-radius: 0.2rem\n box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.05), 0 0 0.0625rem rgba(0, 0, 0, 0.1)\n\n font-size: var(--admonition-font-size)\n\n overflow: hidden\n page-break-inside: avoid\n\n // First element should have no margin, since the title has it.\n > :nth-child(2)\n margin-top: 0\n\n // Last item should have no margin, since we'll control that w/ padding\n > :last-child\n margin-bottom: 0\n\n.admonition p.admonition-title,\np.topic-title\n position: relative\n margin: 0 -0.5rem 0.5rem\n padding-left: 2rem\n padding-right: .5rem\n padding-top: .4rem\n padding-bottom: .4rem\n\n font-weight: 500\n font-size: var(--admonition-title-font-size)\n line-height: 1.3\n\n // Our fancy icon\n &::before\n content: \"\"\n position: absolute\n left: 0.5rem\n width: 1rem\n height: 1rem\n\n// Default styles\np.admonition-title\n background-color: var(--color-admonition-title-background)\n &::before\n background-color: var(--color-admonition-title)\n mask-image: var(--icon-admonition-default)\n mask-repeat: no-repeat\n\np.topic-title\n background-color: var(--color-topic-title-background)\n &::before\n background-color: var(--color-topic-title)\n mask-image: var(--icon-topic-default)\n mask-repeat: no-repeat\n\n//\n// Variants\n//\n.admonition\n border-left: 0.2rem solid var(--color-admonition-title)\n\n @each $type, $value in $admonitions\n &.#{$type}\n border-left-color: var(--color-admonition-title--#{$type})\n > .admonition-title\n background-color: var(--color-admonition-title-background--#{$type})\n &::before\n background-color: var(--color-admonition-title--#{$type})\n mask-image: var(--icon-#{list.nth($value, 2)})\n\n.admonition-todo > .admonition-title\n text-transform: uppercase\n","// This file stylizes the API documentation (stuff generated by autodoc). It's\n// deeply nested due to how autodoc structures the HTML without enough classes\n// to select the relevant items.\n\n// API docs!\ndl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple)\n // Tweak the spacing of all the things!\n dd\n margin-left: 2rem\n > :first-child\n margin-top: 0.125rem\n > :last-child\n margin-bottom: 0.75rem\n\n // This is used for the arguments\n .field-list\n margin-bottom: 0.75rem\n\n // \"Headings\" (like \"Parameters\" and \"Return\")\n > dt\n text-transform: uppercase\n font-size: var(--font-size--small)\n\n dd:empty\n margin-bottom: 0.5rem\n dd > ul\n margin-left: -1.2rem\n > li\n > p:nth-child(2)\n margin-top: 0\n // When the last-empty-paragraph follows a paragraph, it doesn't need\n // to augument the existing spacing.\n > p + p:last-child:empty\n margin-top: 0\n margin-bottom: 0\n\n // Colorize the elements\n > dt\n color: var(--color-api-overall)\n\n.sig:not(.sig-inline)\n font-weight: bold\n\n font-size: var(--api-font-size)\n font-family: var(--font-stack--monospace)\n\n margin-left: -0.25rem\n margin-right: -0.25rem\n padding-top: 0.25rem\n padding-bottom: 0.25rem\n padding-right: 0.5rem\n\n // These are intentionally em, to properly match the font size.\n padding-left: 3em\n text-indent: -2.5em\n\n border-radius: 0.25rem\n\n background: var(--color-api-background)\n transition: background 100ms ease-out\n\n &:hover\n background: var(--color-api-background-hover)\n\n // adjust the size of the [source] link on the right.\n a.reference\n .viewcode-link\n font-weight: normal\n width: 4.25rem\n\nem.property\n font-style: normal\n &:first-child\n color: var(--color-api-keyword)\n.sig-name\n color: var(--color-api-name)\n.sig-prename\n font-weight: normal\n color: var(--color-api-pre-name)\n.sig-paren\n color: var(--color-api-paren)\n.sig-param\n font-style: normal\n\ndiv.versionadded,\ndiv.versionchanged,\ndiv.deprecated,\ndiv.versionremoved\n border-left: 0.1875rem solid\n border-radius: 0.125rem\n\n padding-left: 0.75rem\n\n p\n margin-top: 0.125rem\n margin-bottom: 0.125rem\n\ndiv.versionadded\n border-color: var(--color-api-added-border)\n .versionmodified\n color: var(--color-api-added)\n\ndiv.versionchanged\n border-color: var(--color-api-changed-border)\n .versionmodified\n color: var(--color-api-changed)\n\ndiv.deprecated\n border-color: var(--color-api-deprecated-border)\n .versionmodified\n color: var(--color-api-deprecated)\n\ndiv.versionremoved\n border-color: var(--color-api-removed-border)\n .versionmodified\n color: var(--color-api-removed)\n\n// Align the [docs] and [source] to the right.\n.viewcode-link, .viewcode-back\n float: right\n text-align: right\n",".line-block\n margin-top: 0.5rem\n margin-bottom: 0.75rem\n .line-block\n margin-top: 0rem\n margin-bottom: 0rem\n padding-left: 1rem\n","// Captions\narticle p.caption,\ntable > caption,\n.code-block-caption\n font-size: var(--font-size--small)\n text-align: center\n\n// Caption above a TOCTree\n.toctree-wrapper.compound\n .caption, :not(.caption) > .caption-text\n font-size: var(--font-size--small)\n text-transform: uppercase\n\n text-align: initial\n margin-bottom: 0\n\n > ul\n margin-top: 0\n margin-bottom: 0\n","// Inline code\ncode.literal, .sig-inline\n background: var(--color-inline-code-background)\n border-radius: 0.2em\n // Make the font smaller, and use padding to recover.\n font-size: var(--font-size--small--2)\n padding: 0.1em 0.2em\n\n pre.literal-block &\n font-size: inherit\n padding: 0\n\n p &\n border: 1px solid var(--color-background-border)\n\n.sig-inline\n font-family: var(--font-stack--monospace)\n\n// Code and Literal Blocks\n$code-spacing-vertical: 0.625rem\n$code-spacing-horizontal: 0.875rem\n\n// Wraps every literal block + line numbers.\ndiv[class*=\" highlight-\"],\ndiv[class^=\"highlight-\"]\n margin: 1em 0\n display: flex\n\n .table-wrapper\n margin: 0\n padding: 0\n\npre\n margin: 0\n padding: 0\n overflow: auto\n\n // Needed to have more specificity than pygments' \"pre\" selector. :(\n article[role=\"main\"] .highlight &\n line-height: 1.5\n\n &.literal-block,\n .highlight &\n font-size: var(--code-font-size)\n padding: $code-spacing-vertical $code-spacing-horizontal\n\n // Make it look like all the other blocks.\n &.literal-block\n margin-top: 1rem\n margin-bottom: 1rem\n\n border-radius: 0.2rem\n background-color: var(--color-code-background)\n color: var(--color-code-foreground)\n\n// All code is always contained in this.\n.highlight\n width: 100%\n border-radius: 0.2rem\n\n // Make line numbers and prompts un-selectable.\n .gp, span.linenos\n user-select: none\n pointer-events: none\n\n // Expand the line-highlighting.\n .hll\n display: block\n margin-left: -$code-spacing-horizontal\n margin-right: -$code-spacing-horizontal\n padding-left: $code-spacing-horizontal\n padding-right: $code-spacing-horizontal\n\n/* Make code block captions be nicely integrated */\n.code-block-caption\n display: flex\n padding: $code-spacing-vertical $code-spacing-horizontal\n\n border-radius: 0.25rem\n border-bottom-left-radius: 0\n border-bottom-right-radius: 0\n font-weight: 300\n border-bottom: 1px solid\n\n background-color: var(--color-code-background)\n color: var(--color-code-foreground)\n border-color: var(--color-background-border)\n\n + div[class]\n margin-top: 0\n > .highlight\n border-top-left-radius: 0\n border-top-right-radius: 0\n\n// When `html_codeblock_linenos_style` is table.\n.highlighttable\n width: 100%\n display: block\n tbody\n display: block\n\n tr\n display: flex\n\n // Line numbers\n td.linenos\n background-color: var(--color-code-background)\n color: var(--color-code-foreground)\n padding: $code-spacing-vertical $code-spacing-horizontal\n padding-right: 0\n border-top-left-radius: 0.2rem\n border-bottom-left-radius: 0.2rem\n\n .linenodiv\n padding-right: $code-spacing-horizontal\n font-size: var(--code-font-size)\n box-shadow: -0.0625rem 0 var(--color-foreground-border) inset\n\n // Actual code\n td.code\n padding: 0\n display: block\n flex: 1\n overflow: hidden\n\n .highlight\n border-top-left-radius: 0\n border-bottom-left-radius: 0\n\n// When `html_codeblock_linenos_style` is inline.\n.highlight\n span.linenos\n display: inline-block\n padding-left: 0\n padding-right: $code-spacing-horizontal\n margin-right: $code-spacing-horizontal\n box-shadow: -0.0625rem 0 var(--color-foreground-border) inset\n","// Inline Footnote Reference\n.footnote-reference\n font-size: var(--font-size--small--4)\n vertical-align: super\n\n// Definition list, listing the content of each note.\n// docutils <= 0.17\ndl.footnote.brackets\n font-size: var(--font-size--small)\n color: var(--color-foreground-secondary)\n\n display: grid\n grid-template-columns: max-content auto\n dt\n margin: 0\n > .fn-backref\n margin-left: 0.25rem\n\n &:after\n content: \":\"\n\n .brackets\n &:before\n content: \"[\"\n &:after\n content: \"]\"\n\n dd\n margin: 0\n padding: 0 1rem\n\n// docutils >= 0.18\naside.footnote\n font-size: var(--font-size--small)\n color: var(--color-foreground-secondary)\n\naside.footnote > span,\ndiv.citation > span\n float: left\n font-weight: 500\n padding-right: 0.25rem\n\naside.footnote > *:not(span),\ndiv.citation > p\n margin-left: 2rem\n","//\n// Figures\n//\nimg\n box-sizing: border-box\n max-width: 100%\n height: auto\n\narticle\n figure, .figure\n border-radius: 0.2rem\n\n margin: 0\n :last-child\n margin-bottom: 0\n\n .align-left\n float: left\n clear: left\n margin: 0 1rem 1rem\n\n .align-right\n float: right\n clear: right\n margin: 0 1rem 1rem\n\n .align-default,\n .align-center\n display: block\n text-align: center\n margin-left: auto\n margin-right: auto\n\n // WELL, table needs to be stylised like a table.\n table.align-default\n display: table\n text-align: initial\n",".genindex-jumpbox, .domainindex-jumpbox\n border-top: 1px solid var(--color-background-border)\n border-bottom: 1px solid var(--color-background-border)\n padding: 0.25rem\n\n.genindex-section, .domainindex-section\n h2\n margin-top: 0.75rem\n margin-bottom: 0.5rem\n ul\n margin-top: 0\n margin-bottom: 0\n","ul,\nol\n padding-left: 1.2rem\n\n // Space lists out like paragraphs\n margin-top: 1rem\n margin-bottom: 1rem\n // reduce margins within li.\n li\n > p:first-child\n margin-top: 0.25rem\n margin-bottom: 0.25rem\n\n > p:last-child\n margin-top: 0.25rem\n\n > ul,\n > ol\n margin-top: 0.5rem\n margin-bottom: 0.5rem\n\nol\n &.arabic\n list-style: decimal\n &.loweralpha\n list-style: lower-alpha\n &.upperalpha\n list-style: upper-alpha\n &.lowerroman\n list-style: lower-roman\n &.upperroman\n list-style: upper-roman\n\n// Don't space lists out when they're \"simple\" or in a `.. toctree::`\n.simple,\n.toctree-wrapper\n li\n > ul,\n > ol\n margin-top: 0\n margin-bottom: 0\n\n// Definition Lists\n.field-list,\n.option-list,\ndl:not([class]),\ndl.simple,\ndl.footnote,\ndl.glossary\n dt\n font-weight: 500\n margin-top: 0.25rem\n + dt\n margin-top: 0\n\n .classifier::before\n content: \":\"\n margin-left: 0.2rem\n margin-right: 0.2rem\n\n dd\n > p:first-child,\n ul\n margin-top: 0.125rem\n\n ul\n margin-bottom: 0.125rem\n",".math-wrapper\n width: 100%\n overflow-x: auto\n\ndiv.math\n position: relative\n text-align: center\n\n .headerlink,\n &:focus .headerlink\n display: none\n\n &:hover .headerlink\n display: inline-block\n\n span.eqno\n position: absolute\n right: 0.5rem\n top: 50%\n transform: translate(0, -50%)\n z-index: 1\n","// Abbreviations\nabbr[title]\n cursor: help\n\n// \"Problematic\" content, as identified by Sphinx\n.problematic\n color: var(--color-problematic)\n\n// Keyboard / Mouse \"instructions\"\nkbd:not(.compound)\n margin: 0 0.2rem\n padding: 0 0.2rem\n border-radius: 0.2rem\n border: 1px solid var(--color-foreground-border)\n color: var(--color-foreground-primary)\n vertical-align: text-bottom\n\n font-size: var(--font-size--small--3)\n display: inline-block\n\n box-shadow: 0 0.0625rem 0 rgba(0, 0, 0, 0.2), inset 0 0 0 0.125rem var(--color-background-primary)\n\n background-color: var(--color-background-secondary)\n\n// Blockquote\nblockquote\n border-left: 4px solid var(--color-background-border)\n background: var(--color-background-secondary)\n\n margin-left: 0\n margin-right: 0\n padding: 0.5rem 1rem\n\n .attribution\n font-weight: 600\n text-align: right\n\n &.pull-quote,\n &.highlights\n font-size: 1.25em\n\n &.epigraph,\n &.pull-quote\n border-left-width: 0\n border-radius: 0.5rem\n\n &.highlights\n border-left-width: 0\n background: transparent\n\n// Center align embedded-in-text images\np .reference img\n vertical-align: middle\n","p.rubric\n line-height: 1.25\n font-weight: bold\n font-size: 1.125em\n\n // For Numpy-style documentation that's got rubrics within it.\n // https://github.com/pradyunsg/furo/discussions/505\n dd &\n line-height: inherit\n font-weight: inherit\n\n font-size: var(--font-size--small)\n text-transform: uppercase\n","article .sidebar\n float: right\n clear: right\n width: 30%\n\n margin-left: 1rem\n margin-right: 0\n\n border-radius: 0.2rem\n background-color: var(--color-background-secondary)\n border: var(--color-background-border) 1px solid\n\n > *\n padding-left: 1rem\n padding-right: 1rem\n\n > ul, > ol // lists need additional padding, because bullets.\n padding-left: 2.2rem\n\n .sidebar-title\n margin: 0\n padding: 0.5rem 1rem\n border-bottom: var(--color-background-border) 1px solid\n\n font-weight: 500\n\n// TODO: subtitle\n// TODO: dedicated variables?\n","[role=main] .table-wrapper.container\n width: 100%\n overflow-x: auto\n margin-top: 1rem\n margin-bottom: 0.5rem\n padding: 0.2rem 0.2rem 0.75rem\n\ntable.docutils\n border-radius: 0.2rem\n border-spacing: 0\n border-collapse: collapse\n\n box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.05), 0 0 0.0625rem rgba(0, 0, 0, 0.1)\n\n th\n background: var(--color-table-header-background)\n\n td,\n th\n // Space things out properly\n padding: 0 0.25rem\n\n // Get the borders looking just-right.\n border-left: 1px solid var(--color-table-border)\n border-right: 1px solid var(--color-table-border)\n border-bottom: 1px solid var(--color-table-border)\n\n p\n margin: 0.25rem\n\n &:first-child\n border-left: none\n &:last-child\n border-right: none\n\n // MyST-parser tables set these classes for control of column alignment\n &.text-left\n text-align: left\n &.text-right\n text-align: right\n &.text-center\n text-align: center\n","@use \"../variables\" as *\n\n:target\n scroll-margin-top: 2.5rem\n\n@media (max-width: $full-width - $sidebar-width)\n :target\n scroll-margin-top: calc(2.5rem + var(--header-height))\n\n // When a heading is selected\n section > span:target\n scroll-margin-top: calc(2.8rem + var(--header-height))\n\n// Permalinks\n.headerlink\n font-weight: 100\n user-select: none\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\ndl dt,\np.caption,\nfigcaption p,\ntable > caption,\n.code-block-caption\n > .headerlink\n margin-left: 0.5rem\n visibility: hidden\n &:hover > .headerlink\n visibility: visible\n\n // Don't change to link-like, if someone adds the contents directive.\n > .toc-backref\n color: inherit\n text-decoration-line: none\n\n// Figure and table captions are special.\nfigure:hover > figcaption > p > .headerlink,\ntable:hover > caption > .headerlink\n visibility: visible\n\n:target >, // Regular section[id] style anchors\nspan:target ~ // Non-regular span[id] style \"extra\" anchors\n h1,\n h2,\n h3,\n h4,\n h5,\n h6\n &:nth-of-type(1)\n background-color: var(--color-highlight-on-target)\n // .headerlink\n // visibility: visible\n code.literal\n background-color: transparent\n\ntable:target > caption,\nfigure:target\n background-color: var(--color-highlight-on-target)\n\n// Inline page contents\n.this-will-duplicate-information-and-it-is-still-useful-here li :target\n background-color: var(--color-highlight-on-target)\n\n// Code block permalinks\n.literal-block-wrapper:target .code-block-caption\n background-color: var(--color-highlight-on-target)\n\n// When a definition list item is selected\n//\n// There isn't really an alternative to !important here, due to the\n// high-specificity of API documentation's selector.\ndt:target\n background-color: var(--color-highlight-on-target) !important\n\n// When a footnote reference is selected\n.footnote > dt:target + dd,\n.footnote-reference:target\n background-color: var(--color-highlight-on-target)\n",".guilabel\n background-color: var(--color-guilabel-background)\n border: 1px solid var(--color-guilabel-border)\n color: var(--color-guilabel-text)\n\n padding: 0 0.3em\n border-radius: 0.5em\n font-size: 0.9em\n","// This file contains the styles used for stylizing the footer that's shown\n// below the content.\n@use \"../variables\" as *\n\nfooter\n font-size: var(--font-size--small)\n display: flex\n flex-direction: column\n\n margin-top: 2rem\n\n// Bottom of page information\n.bottom-of-page\n display: flex\n align-items: center\n justify-content: space-between\n\n margin-top: 1rem\n padding-top: 1rem\n padding-bottom: 1rem\n\n color: var(--color-foreground-secondary)\n border-top: 1px solid var(--color-background-border)\n\n line-height: 1.5\n\n @media (max-width: $content-width)\n text-align: center\n flex-direction: column-reverse\n gap: 0.25rem\n\n .left-details\n font-size: var(--font-size--small)\n\n .right-details\n display: flex\n flex-direction: column\n gap: 0.25rem\n text-align: right\n\n .icons\n display: flex\n justify-content: flex-end\n gap: 0.25rem\n font-size: 1rem\n\n a\n text-decoration: none\n\n svg,\n img\n font-size: 1.125rem\n height: 1em\n width: 1em\n\n// Next/Prev page information\n.related-pages\n a\n display: flex\n align-items: center\n\n text-decoration: none\n &:hover .page-info .title\n text-decoration: underline\n color: var(--color-link)\n text-decoration-color: var(--color-link-underline)\n\n svg.furo-related-icon,\n svg.furo-related-icon > use\n flex-shrink: 0\n\n color: var(--color-foreground-border)\n\n width: 0.75rem\n height: 0.75rem\n margin: 0 0.5rem\n\n &.next-page\n max-width: 50%\n\n float: right\n clear: right\n text-align: right\n\n &.prev-page\n max-width: 50%\n\n float: left\n clear: left\n\n svg\n transform: rotate(180deg)\n\n.page-info\n display: flex\n flex-direction: column\n overflow-wrap: anywhere\n\n .next-page &\n align-items: flex-end\n\n .context\n display: flex\n align-items: center\n\n padding-bottom: 0.1rem\n\n color: var(--color-foreground-muted)\n font-size: var(--font-size--small)\n text-decoration: none\n","// This file contains the styles for the contents of the left sidebar, which\n// contains the navigation tree, logo, search etc.\n\n////////////////////////////////////////////////////////////////////////////////\n// Brand on top of the scrollable tree.\n////////////////////////////////////////////////////////////////////////////////\n.sidebar-brand\n display: flex\n flex-direction: column\n flex-shrink: 0\n\n padding: var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal)\n text-decoration: none\n\n.sidebar-brand-text\n color: var(--color-sidebar-brand-text)\n overflow-wrap: break-word\n margin: var(--sidebar-item-spacing-vertical) 0\n font-size: 1.5rem\n\n.sidebar-logo-container\n margin: var(--sidebar-item-spacing-vertical) 0\n\n.sidebar-logo\n margin: 0 auto\n display: block\n max-width: 100%\n\n////////////////////////////////////////////////////////////////////////////////\n// Search\n////////////////////////////////////////////////////////////////////////////////\n.sidebar-search-container\n display: flex\n align-items: center\n margin-top: var(--sidebar-search-space-above)\n\n position: relative\n\n background: var(--color-sidebar-search-background)\n &:hover,\n &:focus-within\n background: var(--color-sidebar-search-background--focus)\n\n &::before\n content: \"\"\n position: absolute\n left: var(--sidebar-item-spacing-horizontal)\n width: var(--sidebar-search-icon-size)\n height: var(--sidebar-search-icon-size)\n\n background-color: var(--color-sidebar-search-icon)\n mask-image: var(--icon-search)\n\n.sidebar-search\n box-sizing: border-box\n\n border: none\n border-top: 1px solid var(--color-sidebar-search-border)\n border-bottom: 1px solid var(--color-sidebar-search-border)\n\n padding-top: var(--sidebar-search-input-spacing-vertical)\n padding-bottom: var(--sidebar-search-input-spacing-vertical)\n padding-right: var(--sidebar-search-input-spacing-horizontal)\n padding-left: calc(var(--sidebar-item-spacing-horizontal) + var(--sidebar-search-input-spacing-horizontal) + var(--sidebar-search-icon-size))\n\n width: 100%\n\n color: var(--color-sidebar-search-foreground)\n background: transparent\n z-index: 10\n\n &:focus\n outline: none\n\n &::placeholder\n font-size: var(--sidebar-search-input-font-size)\n\n//\n// Hide Search Matches link\n//\n#searchbox .highlight-link\n padding: var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal) 0\n margin: 0\n text-align: center\n\n a\n color: var(--color-sidebar-search-icon)\n font-size: var(--font-size--small--2)\n\n////////////////////////////////////////////////////////////////////////////////\n// Structure/Skeleton of the navigation tree (left)\n////////////////////////////////////////////////////////////////////////////////\n.sidebar-tree\n font-size: var(--sidebar-item-font-size)\n margin-top: var(--sidebar-tree-space-above)\n margin-bottom: var(--sidebar-item-spacing-vertical)\n\n ul\n padding: 0\n margin-top: 0\n margin-bottom: 0\n\n display: flex\n flex-direction: column\n\n list-style: none\n\n li\n position: relative\n margin: 0\n\n > ul\n margin-left: var(--sidebar-item-spacing-horizontal)\n\n .icon\n color: var(--color-sidebar-link-text)\n\n .reference\n box-sizing: border-box\n color: var(--color-sidebar-link-text)\n\n // Fill the parent.\n display: inline-block\n line-height: var(--sidebar-item-line-height)\n text-decoration: none\n\n // Don't allow long words to cause wrapping.\n overflow-wrap: anywhere\n\n height: 100%\n width: 100%\n\n padding: var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal)\n\n &:hover\n color: var(--color-sidebar-link-text)\n background: var(--color-sidebar-item-background--hover)\n\n // Add a nice little \"external-link\" arrow here.\n &.external::after\n content: url('data:image/svg+xml,')\n margin: 0 0.25rem\n vertical-align: middle\n color: var(--color-sidebar-link-text)\n\n // Make the current page reference bold.\n .current-page > .reference\n font-weight: bold\n\n label\n position: absolute\n top: 0\n right: 0\n height: var(--sidebar-item-height)\n width: var(--sidebar-expander-width)\n\n cursor: pointer\n user-select: none\n\n display: flex\n justify-content: center\n align-items: center\n\n .caption, :not(.caption) > .caption-text\n font-size: var(--sidebar-caption-font-size)\n color: var(--color-sidebar-caption-text)\n\n font-weight: bold\n text-transform: uppercase\n\n margin: var(--sidebar-caption-space-above) 0 0 0\n padding: var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal)\n\n // If it has children, add a bit more padding to wrap the content to avoid\n // overlapping with the