182 Commits
Author SHA1 Message Date
Nukeap b9d398249b chore [P-01]: 1.0.2 дебаггер 2025-05-14 15:58:17 +03:00
Nukeap bd6b4f9c00 chore [P-01]: 1.0.1 докер разраба 2025-05-14 12:40:16 +03:00
Nukeap b6ebc7eab5 Merge branch 'dkr' into develop 2025-05-14 12:26:09 +03:00
Nukeap 11ec120fff chore [P-01]: 1.0.0 докер разраба 2025-05-14 12:24:36 +03:00
Nukeap 221b759967 chore [P-01]: Докер2 2025-05-14 11:35:36 +03:00
Nukeap 3b71e3c25e Merge remote-tracking branch 'origin/dkr-denzel' into dkr 2025-05-14 11:01:43 +03:00
Nukeap 9c4f9a2e7a chore [P-11] : docker 2025-05-14 10:26:42 +03:00
Nukeap 36dc4e91db chore [P-01]: влк 2025-03-07 09:30:31 +03:00
Denzel a63481fb36 refactor [P-36]: декомпозиция конструктора + адаптация под создания тестов 2025-03-04 07:56:21 +03:00
Denzel 6b38f3b4d2 refactor [P-36]: декомпозиция конструктора + адаптация под создания тестов 2025-03-03 12:55:04 +03:00
Denzel 6b69addc8b refactor [P-36]: декомпозиция конструктора + адаптация под создания тестов 2025-03-03 10:35:48 +03:00
Nukeap 54b4b16e49 chore [P-01]: minify image1 2025-03-02 11:46:56 +03:00
Nukeap 7518b429e5 chore [P-01]: без линта 2025-03-02 11:29:56 +03:00
Nukeap e186c0412b chore [P-01]: предлинт 2025-03-01 18:32:23 +03:00
Nukeap 9f1423870d chore [P-01]: уменьшение фронта 2025-03-01 11:16:42 +03:00
Denzel da5bd45b0b refactor [P-36]: декомпозиция конструктора + адаптация под создания тестов 2025-02-28 13:31:17 +03:00
Denzel 06439dc5d6 refactor [P-36]: декомпозиция конструктора + адаптация под создания тестов 2025-02-28 12:14:49 +03:00
Denzel 9b32cf5e71 refactor [P-36]: декомпозиция конструктора + адаптация под создания тестов 2025-02-28 12:03:45 +03:00
Denzel e0eee3f9ca refactor [P-36]: декомпозиция конструктора + адаптация под создания тестов 2025-02-28 09:59:17 +03:00
Denzel 869264bd66 refactor [P-36]: декомпозиция конструктора + адаптация под создания тестов 2025-02-28 09:54:47 +03:00
Nukeap d3edc62c0b refactor [P-36]: декомпозиция конструктора + адаптация под создания тестов 2025-02-27 15:12:16 +03:00
Nukeap df35e38707 refactor [P-36]: декомпозиция конструктора + адаптация под создания тестов 2025-02-27 15:11:44 +03:00
Nukeap 10923a6600 chore [P-01]: docfix 2025-02-26 11:00:18 +03:00
Nukeap f868a3f989 chore [P-01]: localsample 2025-02-26 08:55:13 +03:00
Nukeap adc36bb86d chore [P-01]: dump+rest 2025-02-26 08:52:18 +03:00
Nukeap c718a76490 chore [P-01]: vite hmr 2025-02-26 08:04:18 +03:00
Nukeap b10199a46e refactor [P-01]: описания admin.py 2025-02-25 16:04:25 +03:00
Nukeap 87ba8eec28 chore [P-01]: gignore 2025-02-25 15:27:52 +03:00
Nukeap 99ed3cf799 chore [P-01]: доки работают 2025-02-25 15:24:58 +03:00
Nukeap 7eb4305d03 chore [P-01]: доки1 2025-02-25 13:34:48 +03:00
Nukeap 11a5bffddc chore [P-01]: проблема линтера 2025-02-25 11:36:03 +03:00
Nukeap 829c794ceb chore [P-01]: проблема линтера 2025-02-24 15:37:11 +03:00
Nukeap 38a289b4d0 Update views.py 2025-02-24 14:47:53 +03:00
Nukeap 4c3b21e93e Update views.py 2025-02-24 14:46:24 +03:00
Nukeap 7510e689d0 chore [P-01]: Докер 2025-02-24 14:45:29 +03:00
Nukeap bc6668c54c chore [P-01]: Докер 2025-02-24 13:57:27 +03:00
Nukeap 29cf9b2a14 Merge branch 'test' into dkr 2025-02-24 13:17:29 +03:00
Nukeap 6fceeeb804 Merge branch 'denz' into dkr 2025-02-24 10:49:00 +03:00
Nukeap 92e942a117 q 2025-02-24 10:47:19 +03:00
Denzel e4300cde94 refactor [P-36]: добавление обработки ответов 2025-02-24 08:05:38 +03:00
Denzel 21edbdb77e refactor [P-36]: добавление картинок к ответам 2025-02-19 15:16:18 +03:00
Nukeap 714f76a2b2 Merge branch 'main' into test 2025-02-19 15:14:28 +03:00
Denzel 72a4834e77 refactor [P-36]: добавление картинок к ответам 2025-02-19 14:44:01 +03:00
Denzel a33f64835f refactor [P-36]: страница конкретного теста 2025-02-19 12:10:30 +03:00
Denzel aed9a39a2f refactor [P-36 УМТ]: страница конкретного теста 2025-02-18 13:55:59 +03:00
Denzel e6327bfcb0 refactor [P-36 УМТ]: страница конкретного теста 2025-02-18 09:50:59 +03:00
Denzel 4e13d9f547 refactor [P-36 УМТ]: страница конкретного теста 2025-02-17 16:46:38 +03:00
Denzel 52625d4992 refactor [P-36 УМТ]: страница конкретного теста 2025-02-17 16:32:30 +03:00
Nukeap 624b26ab53 fd 2025-02-17 12:09:11 +03:00
Denzel 18bff58f66 refactor [P-36 УМТ]: карточки тестов 2025-02-17 12:05:45 +03:00
Nukeap d21c39e502 23 2025-02-15 11:49:05 +03:00
Nukeap ce0027e411 awd 2025-02-15 11:48:59 +03:00
Nukeap 0944e238a0 lhj 2025-02-14 15:45:03 +03:00
Nukeap 3debd592b0 ssa 2025-02-14 15:01:17 +03:00
Nukeap dc8203ad9d s 2025-02-14 14:22:48 +03:00
Nukeap fcadbacf64 wef 2025-02-14 13:16:30 +03:00
Nukeap 089919210b q 2025-02-14 13:15:59 +03:00
Denzel 8322398c10 refactor [P-143 VoteConstructor]: объединение вотчеров 2025-02-14 10:01:11 +03:00
Denzel 372a5387b8 refactor [P-137]: изолирование документации 2025-02-14 08:44:57 +03:00
Denzel 895ba23872 refactor [P-137]: изолирование документации 2025-02-14 08:43:52 +03:00
Denzel 15e7f45919 refactor [P-137]: изолирование документации 2025-02-14 08:40:22 +03:00
Denzel 6b849c344c refactor [P-137]: изолирование документации 2025-02-14 08:38:40 +03:00
Denzel 1a553dfa5e refactor [P-137]: убраны варнинги 2025-02-12 14:48:45 +03:00
Denzel bdce08fb73 refactor [P-137]: поправки с учётом изменения библиотеки 2025-02-12 13:37:15 +03:00
Denzel 65e6cf91c7 feat [X-01]: я тут накоммитил 2025-02-12 12:28:54 +03:00
Nukeap 85b0d7f365 sef 2025-02-12 08:05:40 +03:00
Nukeap e1f47848d0 fix [P-01]: загрузка тех кто на работе 2025-02-11 15:18:44 +03:00
Nukeap f75a905122 sad 2025-02-11 14:57:56 +03:00
Nukeap ff8f90ddcc adq 2025-02-11 14:56:21 +03:00
Nukeap 12b86a9201 Merge branch 'develop' 2025-02-11 14:54:55 +03:00
Nukeap 75850bf2a4 Update .gitignore 2025-02-11 14:52:10 +03:00
Nukeap 9dd90589a0 fix [P-01]: линтер 2025-02-11 14:42:40 +03:00
Nukeap 281b64cffe refactor [P-01]: бэк 2025-02-11 14:16:58 +03:00
Nukeap 405212618d Merge branch 'сja' into develop 2025-02-11 10:47:38 +03:00
Nukeap 69892b550d chore [P-01]: Мердж 2025-02-11 10:47:27 +03:00
Nukeap 7502cf513c asd 2025-02-11 10:22:12 +03:00
Nukeap ff9cce42da ds 2025-02-11 08:18:12 +03:00
Nukeap d4bb3f300e dd 2025-02-10 19:52:19 +03:00
Nukeap ff529104a7 r 2025-02-10 18:51:46 +03:00
Nukeap 68bd259eac asasddsds 2025-02-10 18:32:30 +03:00
Nukeap 78e5a60efa we 2025-02-10 17:02:53 +03:00
Denzel c58104ea2a feat [X-01]: я тут накоммитил 2025-02-10 14:51:14 +03:00
Nukeap d60298bf49 94 2025-02-10 14:28:27 +03:00
Nukeap 3a97f409f5 d 2025-02-10 13:39:38 +03:00
Denzel f9d4f19e6e feat [X-01]: я тут накоммитил 2025-02-10 13:38:47 +03:00
Nukeap dbf82bf8c5 chore [P-12]: kdkdk 2025-02-10 13:07:06 +03:00
Nukeap bcdcabb4a1 chore [P-12]: kdkdk 2025-02-10 13:06:51 +03:00
Nukeap b7bb58efa1 chore [P-01]: xmk 2025-02-10 10:44:06 +03:00
Nukeap 46792565c8 Merge pull request 'Update README.md' (#120) from vs-patch-1 into main
Reviewed-on: https://sulaco.nodered.ru:5333/COD2/PORTAL_COD2/pulls/120
2025-02-10 02:48:33 +00:00
Nukeap c156614ee3 Update docker-compose.yml 2025-02-09 17:36:30 +03:00
Nukeap 2d971c4af4 watchnodocks 2025-02-09 17:28:35 +03:00
Nukeap 2c6e15e480 t1 2025-02-09 09:15:15 +03:00
Denzel aa7d224b79 feat [X-01]: я тут накоммитил 2025-02-07 08:49:11 +03:00
Nukeap 28f6d1ae2d docs [P-137]: новая версия 2025-02-07 08:43:52 +03:00
Nukeap bdc2f08d38 docs [P-137]: новая версия 2025-02-06 11:03:23 +03:00
Nukeap 005d1e6d27 chore [P-137]: Коммитлинт 2025-02-06 10:54:15 +03:00
Nukeap def2146aa8 chore [P-137]: test 2025-02-06 10:31:24 +03:00
Nukeap 78c43e7c71 awad 2025-02-06 10:16:37 +03:00
Nukeap 3f23f4305b ds 2025-02-06 09:40:26 +03:00
Nukeap 24b4a76cf6 chore [P-137]: test 2025-02-06 09:07:31 +03:00
Nukeap 476a4679b0 chore [P-137]: test 2025-02-06 09:03:23 +03:00
Nukeap adbce6c5a7 chore [P-137]: test 2025-02-06 09:02:48 +03:00
Nukeap 5a2d4d12fe chore [P-137]: test 2025-02-06 09:02:24 +03:00
Nukeap 416a07d1b9 chore [P-137]: test 2025-02-06 09:00:24 +03:00
Nukeap 79a5f0117a chore [P-137]: тест 2025-02-06 08:59:35 +03:00
Nukeap 40e8a238e3 chore [P-137]: проверка 2025-02-06 08:58:05 +03:00
Nukeap 009161643e chore [P-137]: test 2025-02-06 08:55:22 +03:00
Nukeap 27facc4283 Update commit-v.js 2025-02-06 08:53:03 +03:00
Nukeap b36816cd74 chore [P-137]: коммит ноды 2025-02-06 08:51:38 +03:00
Nukeap c56f924da9 chore [P-137]: оптимизация dev 2025-02-06 08:35:15 +03:00
Nukeap 6f968bf5f5 chore [P-137]: установка commitlint
попытка привести все в соответствие
2025-02-06 08:29:41 +03:00
Nukeap 62855a2d06 Update package.json 2025-02-05 14:32:01 +03:00
Nukeap a0d1ab7a10 q 2025-02-05 14:24:50 +03:00
Nukeap ac8d2833fd Merge branch 'develop' into Vit 2025-02-05 14:20:18 +03:00
Nukeap 9ef4825b4d z 2025-02-05 14:19:32 +03:00
Nukeap be64f519b5 w 2025-02-05 14:07:14 +03:00
Nukeap ba42b10ea5 Update App.vue 2025-02-05 10:36:44 +03:00
Nukeap 395fb30089 py 2025-02-05 09:46:47 +03:00
Nukeap 408ef73bab Merge branch 'Vit' into develop 2025-02-05 09:28:07 +03:00
Nukeap 59a41b5a12 Create pre-commit 2025-02-05 09:27:45 +03:00
Nukeap 5e3350cc80 Merge branch 'Vit' into develop 2025-02-05 09:21:43 +03:00
Nukeap 4d7e0bd373 q 2025-02-05 09:20:37 +03:00
Nukeap 20b8f4f262 e 2025-02-05 09:01:23 +03:00
Nukeap 5fe912e8c4 q 2025-02-05 09:00:16 +03:00
Nukeap 8afb476ba9 nohusky 2025-02-05 08:48:02 +03:00
Nukeap c8c465f5cc Update TestHomePage.vue 2025-02-05 08:46:08 +03:00
Nukeap 1e34447b1e Update TestHomePage.vue 2025-02-05 08:45:49 +03:00
Nukeap d43553f902 a 2025-02-05 08:45:25 +03:00
Nukeap 55af139dda a 2025-02-05 08:44:57 +03:00
Nukeap 057eca1590 sef 2025-02-05 08:38:49 +03:00
Nukeap 45c7a9d067 5 2025-02-05 08:31:18 +03:00
Nukeap 4f18f7a311 Update FAQPage.vue 2025-02-05 08:30:50 +03:00
Nukeap 8b9532dfa7 docs 2025-02-05 07:56:25 +03:00
Nukeap 6a826f14bb a
for /r ../src/back %f in (*.py) do (env\scripts\pylint "%f")
2025-02-04 13:54:51 +03:00
Nukeap b34ce38324 s 2025-02-04 13:16:50 +03:00
Nukeap 50eefccda2 Update calendar-create-select.vue 2025-02-04 13:07:45 +03:00
Nukeap d886934fa1 Update calendar-create-select.vue 2025-02-04 13:07:34 +03:00
Nukeap 56417bf405 w 2025-02-04 13:06:21 +03:00
Nukeap 1ffbeb369c Update BigCalendar.vue 2025-02-04 13:03:09 +03:00
Nukeap 22f0146e4b Update BigCalendar.vue 2025-02-04 13:02:35 +03:00
Nukeap ef4028b1a3 1 2025-02-04 13:01:08 +03:00
Nukeap b4e6ad7238 docs 2025-02-04 12:18:15 +03:00
Cja 2a5f021d1f swagger в tests 2025-02-03 17:12:41 +03:00
Cja dfa9c7a112 swagger в tests 2025-02-03 16:45:19 +03:00
Nukeap 4bc1abce37 Delete dialog-addround.vue 2025-02-03 13:10:23 +03:00
Cja ced951eebd P-144 2025-02-03 11:22:58 +03:00
Cja 5de4c33d1b возврат/сохранение результатов 2025-02-03 11:12:18 +03:00
Cja 187f741e08 Merge branch 'develop' into сja 2025-02-03 10:38:06 +03:00
Cja 10c40cae65 P-142 2025-02-03 10:36:49 +03:00
Cja 8510a2a725 P-142 2025-02-03 10:10:08 +03:00
Nukeap 310bd060fe P-141
form.createnews - добавлено для настройки публикации новости
2025-02-03 09:38:11 +03:00
Nukeap 9977bff3ac Merge branch 'Alex' into develop 2025-02-03 08:06:34 +03:00
Cja 9427077d37 изменения в tests/views 2025-01-31 16:05:52 +03:00
Cja d11cf3ed52 изменения в tests/views 2025-01-31 15:48:41 +03:00
Cja 66531e5ac9 изменена структура бд 2025-01-31 15:22:09 +03:00
Alex 579e54374a Merge remote-tracking branch 'origin/сja' into Alex 2025-01-31 14:44:46 +03:00
Alex 0c62a014b4 123 2025-01-31 14:44:34 +03:00
Cja 0fd243614c возврат результатов 2025-01-31 14:18:23 +03:00
Cja 8ceed16775 возврат результатов 2025-01-31 14:08:48 +03:00
Nukeap d524f5883b Merge branch 'сja' into develop 2025-01-31 13:40:06 +03:00
Nukeap f99d7463a9 Merge branch 'Alex' into develop 2025-01-31 13:40:00 +03:00
Nukeap 3c339c8ae1 Update carousel-list.vue 2025-01-31 13:09:10 +03:00
Alex 6fa26ed687 пагинация на странице 2025-01-31 12:46:06 +03:00
Cja 73e827669e изменение в TestResultCreate 2025-01-31 12:25:44 +03:00
Cja 416af53d90 Merge branch 'develop' into сja 2025-01-31 11:56:31 +03:00
Nukeap 7e68f131f8 b 2025-01-31 11:37:55 +03:00
Nukeap 0036b0e85b Merge branch 'develop' into test 2025-01-31 11:37:01 +03:00
Cja 7a2862a825 рефакторинг vote/views 2025-01-31 10:51:40 +03:00
Alex 34361e3a78 Merge remote-tracking branch 'origin/Vit' into Alex 2025-01-31 09:23:04 +03:00
Alex 07fc30217f SPA-36 2025-01-30 17:43:16 +03:00
Cja 33582a04e7 Merge branch 'develop' into сja 2025-01-30 17:15:12 +03:00
Alex f85e65c89a P-126 2025-01-30 14:47:01 +03:00
Alex 271d9c4f47 Merge remote-tracking branch 'origin/Vit' into Alex 2025-01-30 14:46:27 +03:00
Alex 740225e875 Подготовка к слиянию веток 2025-01-30 14:46:14 +03:00
Cja b355c9777f Merge branch 'develop' into сja 2025-01-30 12:00:15 +03:00
Cja df0c02f257 изменение в GetTests 2025-01-30 11:46:16 +03:00
Nukeap b55d3d52dc ф 2025-01-23 16:20:29 +03:00
Nukeap 6bc09bf675 Merge branch 'develop' into test 2025-01-23 16:19:55 +03:00
Nukeap 3898f8153d build 2025-01-23 14:03:46 +03:00
Nukeap cd5029fee8 Merge branch 'develop-testing' into test 2025-01-23 14:03:10 +03:00
Nukeap 85ef48aae0 v 2025-01-15 10:16:05 +03:00
Nukeap 618d55fcd5 Update CountDown.vue 2025-01-15 10:15:05 +03:00
290 changed files with 8006 additions and 7905 deletions

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
src/back/portal/.env
src/back/portal/media/
src/back/static/
src/back/media/
docs/.vitepress/cache
/node_modules
media/
docker-compose.yml
**/dockerfiles
**/composes
**/media
*.md
easydump
easynpm
easypip
easyrestore
**/node_modules
*/**/node_modules
documentation/node_modules
+58
View File
@@ -0,0 +1,58 @@
COMPOSE_PROJECT_NAME=portal
HOST_NAME=localhost
#для LINUX
PROJECT_DIR=$(cd $(dirname $(readlink -e $0)) && pwd)
# Windows
# PROJECT_DIR=$(cygpath -w "$(cd "$(dirname "$(readlink -f "$0")")" && pwd)")
# Директория с кодом приложения
SOURCE_DIR=${PROJECT_DIR}/src
# Директория docker
DOCKER_DIR=${PROJECT_DIR}/docker
CONFS_DIR=${PROJECT_DIR}/sys
# Директория с docker-compose файлами
DOCKER_COMPOSES_DIR=${DOCKER_DIR}/composes
# Директория с конфигурациями для различных серфисов
DOCKER_CONFS_DIR=${DOCKER_DIR}/confs
# Директория с Dockerfile
DOCKER_DOCKERFILES_DIR=${DOCKER_DIR}/dockerfiles
# Директория со скриптами инициализации
DOCKER_INITS_DIR=${DOCKER_DIR}/inits
# Директория с локальными файлами
LOCAL_FILES_DIR=${PROJECT_DIR}/.local_files
COMPOSE_FILE="${PROJECT_DIR}/docker-compose.yml"
DB_ENGINE="django.db.backends.mysql"
DB_NAME=""
DB_USER=""
DB_PASSWORD=""
DB_HOST=""
DB_EXTERNAL_PORT=3306
DB_INTERNAL_PORT=3306
REDIS="redis://redis"
REDISBROKER="redis://redis"
REDIS_PORT=6379
REDIS_BASE=0
AUTO_BACKEND=True
FRONTEND_EXTERNAL_PORT=3000
FRONTEND_INTERNAL_PORT=3000
BACKEND_EXTERNAL_PORT=8000
BACKEND_INTERNAL_PORT=8000
DOCS_EXTERNAL_PORT=5173
DOCS_INTERNAL_PORT=5173
NGINX_EXTERNAL_PORT=80
NGINX_INTERNAL_PORT=80
RUN_WITH_DOCS=False
PRODUCTION=False
+10
View File
@@ -0,0 +1,10 @@
RUN_WITH_DOCS=False
AUTO_BACKEND=False
DB_NAME="accounting"
DB_USER="root"
DB_PASSWORD="P@ssw0rd"
DB_HOST="db"
DB_EXTERNAL_PORT=3306
DB_INTERNAL_PORT=3306
+37
View File
@@ -0,0 +1,37 @@
#!/usr/bin/env sh
commit_msg_file="$1"
# Читаем сообщение коммита
commit_msg=$(cat "$commit_msg_file")
# Проверяем, был ли передан аргумент
if [ -z "$commit_msg" ]; then
echo "Ошибка: Необходимо передать сообщение коммита."
exit 1
fi
# Определяем шаблон для проверки
PATTERN="^(feat|fix|docs|style|refactor|perf|test|chore) \[[A-Z]+\-[0-9]+]: .+$"
# Проверяем соответствие шаблону
if echo "$commit_msg" | grep -qE "$PATTERN"; then
exit 0
else
echo "Ошибка: Сообщение коммита не соответствует шаблону."
echo "Ожидается: feat|fix|docs|style|refactor|perf|test|chore [X-01]: ваше сообщение"
echo "Заголовок должен содержать тип, номер задачи и название коммита. Формат: <тип> [<номер задачи>]: <название>"
echo " 'feat' - Новый функционал"
echo " 'fix' - Исправление ошибки"
echo " 'docs' - Изменения в документации"
echo " 'style' - Изменения, не влияющие на функциональность"
echo " 'refactor' - Изменения кода, не исправляющие ошибки и не добавляющие функционал"
echo " 'perf' - Изменения, улучшающие производительность"
echo " 'test' - Добавление тестов"
echo " 'chore' - Изменения в процессе сборки или вспомогательных инструментах."
echo " Например: feat [X-01]: я тут накоммитил"
exit 1
fi
+48
View File
@@ -0,0 +1,48 @@
#!/usr/bin/env sh
# # Получение списка всех Vue/js/ts-файлов, подготовленных для коммита
filesjs=$(git diff --cached --name-only --diff-filter=ACM | grep -E '\.vue$|\.js$|\.ts$'| grep -v 'test\.js$')
if [ -n "$filesjs" ]; then
filesjs_modified=$(echo "$filesjs" | sed 's|^src/front/src/|src/|'| tr '\n' ' ')
# Запускаем команду formatter в контейнере
echo $filesjs_modified
if [ "$(docker-compose -f docker-compose.yml ps -q frontend)" ]; then
docker-compose -f docker-compose.yml exec frontend sh -c "npm run formatter $filesjs_modified && npm run linter $filesjs_modified"
else
docker-compose -f docker-compose.yml run --rm frontend sh -c "npm run formatter $filesjs_modified && npm run linter $filesjs_modified"
fi
fi
if [ $? -ne 0 ]; then
echo "Ошибка: eslint обнаружил проблемы в коде."
exit 1 # Выход с кодом ошибки
fi
# # Получение списка всех Python-файлов, подготовленных для коммита
pyfiles=$(git diff --cached --name-only --diff-filter=ACM | grep '\.py$')
# # | sed 's|/|.|g; s|\.py$||'
if [ -n "$pyfiles" ]; then
pyfiles_mod=$(echo "$pyfiles" | sed 's|^src/back/||'| tr '\n' ' ')
if [ "$(docker-compose -f docker-compose.yml ps -q backend)" ]; then
echo $pyfiles_mod
docker-compose -f docker-compose.yml exec backend sh -c "poetry run isort $pyfiles_mod && poetry run black $pyfiles_mod && poetry run pylint $pyfiles_mod"
else
docker-compose -f docker-compose.yml run --rm --entrypoint sh backend -c "poetry run isort $pyfiles_mod && poetry run black $pyfiles_mod && poetry run pylint $pyfiles_mod"
fi
# # Запуск pylint для всех подготовленных Python-файлов
# # echo 1
fi
if [ $? -ne 0 ]; then
echo "Ошибка: pylint обнаружил проблемы в коде."
exit 1 # Выход с кодом ошибки
fi
+17 -8
View File
@@ -1,8 +1,17 @@
env/
/src/__pycache__/
/src/*/__pycache__/
/src/*/migrations/
/src/front/public/Tiles/
/src/front/node_modules/
.vscode/
/env/
/documentation/docs/.vitepress/cache
/node_modules/
/**/node_modules/
/docs/
/.local_files/
/documentation/docs/.vitepress/theme/*
documentation/docs/.vitepress/cache/*
.env.localfiles/
.env
.env.local
easypip
easynpm
easydump
easyrestore
easymanage
#
-8
View File
@@ -1,8 +0,0 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
-27
View File
@@ -1,27 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="FacetManager">
<facet type="django" name="Django">
<configuration>
<option name="rootFolder" value="$MODULE_DIR$/src/back" />
<option name="settingsModule" value="settings.py" />
<option name="manageScript" value="$MODULE_DIR$/src/back/manage.py" />
<option name="environment" value="&lt;map/&gt;" />
<option name="doNotUseTestRunner" value="false" />
<option name="trackFilePattern" value="migrations" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/back" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/env" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="PyDocumentationSettings">
<option name="format" value="PLAIN" />
<option name="myDocStringFormat" value="Plain" />
</component>
</module>
-6
View File
@@ -1,6 +0,0 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>
-7
View File
@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Black">
<option name="sdkName" value="Python 3.10 (PORTAL_COD2)" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (PORTAL_COD2)" project-jdk-type="Python SDK" />
</project>
-8
View File
@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/PORTAL_COD2.iml" filepath="$PROJECT_DIR$/.idea/PORTAL_COD2.iml" />
</modules>
</component>
</project>
Generated
-6
View File
@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
+149
View File
@@ -0,0 +1,149 @@
#!/bin/bash
# Функция для вывода переменных, определенных во время исполнения скрипта
print_script_variables() {
set | sort | comm -13 .env.tmp -
}
git config core.hooksPath .git-hooks
# Записываем переменные окружения и функции оболочки во временный файл
set | sort > .env.tmp
# Импортируем базовые переменные окружения
source ".env.base"
# Создаем локальные файлы из их шаблонов, если они еще не созданы
cp -n ${PROJECT_DIR}/.env.local.sample ${PROJECT_DIR}/.env.local
# cp -n ${SOURCE_DIR}/settings/local_settings.sample.py ${SOURCE_DIR}/settings/local_settings.py
# Импортируем локальные переменные окружения
if [[ -f .env.local ]]; then
source ".env.local"
fi
# Создаем директорию с локальными фойлами
mkdir -p "${LOCAL_FILES_DIR}"
# # Создаем символические ссылки на скрипты (сюда можно добавить создание и загрузку дампа бд)
ln -sf "${CONFS_DIR}/scripts/easypip.sh" "${PROJECT_DIR}/easypip"
ln -sf "${CONFS_DIR}/scripts/easynpm.sh" "${PROJECT_DIR}/easynpm"
ln -sf "${CONFS_DIR}/scripts/easydump.sh" "${PROJECT_DIR}/easydump"
ln -sf "${CONFS_DIR}/scripts/easyrestore.sh" "${PROJECT_DIR}/easyrestore"
ln -sf "${CONFS_DIR}/scripts/easymanage.sh" "${PROJECT_DIR}/easymanage"
# ln -sf "${PROJECT_DIR}/scripts/bash.sh" "${PROJECT_DIR}/bash"
# ln -sf "${PROJECT_DIR}/scripts/dbshell.sh" "${PROJECT_DIR}/dbshell"
# ln -sf "${PROJECT_DIR}/scripts/manage.sh" "${PROJECT_DIR}/manage"
# ln -sf "${PROJECT_DIR}/scripts/shell.sh" "${PROJECT_DIR}/shell"
# ln -sf "${PROJECT_DIR}/scripts/init.sh" "${PROJECT_DIR}/init"
# # Создание локальных файлов для postgres:
mkdir -p "${LOCAL_FILES_DIR}/mysql"
mkdir -p "${LOCAL_FILES_DIR}/mysql/log"
mkdir -p "${LOCAL_FILES_DIR}/mysql/data"
mkdir -p "${LOCAL_FILES_DIR}/mysql/backup"
FILE="${LOCAL_FILES_DIR}/mysql/data/mysql.sock"
# Проверяем, существует ли файл
if [ -L "$FILE" ]; then
# Удаляем файл
rm "$FILE"
echo "Ссылка '$FILE' была удалена."
else
echo "Ссылка '$FILE' не существует."
fi
# # Создание локальных файлов для redis:
mkdir -p "${LOCAL_FILES_DIR}/redis"
mkdir -p "${LOCAL_FILES_DIR}/redis/log"
mkdir -p "${LOCAL_FILES_DIR}/redis/data"
# # Создание локальных файлов для asgi:
# mkdir -p "${LOCAL_FILES_DIR}/asgi"
# mkdir -p "${LOCAL_FILES_DIR}/asgi/log"
# mkdir -p "${LOCAL_FILES_DIR}/asgi/tmp"
# mkdir -p "${LOCAL_FILES_DIR}/asgi/media"
# # Создание локальных файлов для centry:
# mkdir -p "${LOCAL_FILES_DIR}/celery"
# mkdir -p "${LOCAL_FILES_DIR}/celery/log"
# # Создание локальных файлов для nginx:
mkdir -p "${LOCAL_FILES_DIR}/nginx"
mkdir -p "${LOCAL_FILES_DIR}/nginx/conf"
# mkdir -p "${LOCAL_FILES_DIR}/nginx/log"
# mkdir -p "${LOCAL_FILES_DIR}/nginx/certs"
# Создания docker-compose.override.yml (под gitignore)
# touch "${DOCKER_COMPOSES_DIR}/docker-compose.override.yml"
# Создание конфигов nginx из их шаблонов
export NGINX_EXTERNAL_PORT=${NGINX_EXTERNAL_PORT}
export BACKEND_EXTERNAL_PORT=${BACKEND_EXTERNAL_PORT}
export FRONTEND_EXTERNAL_PORT=${FRONTEND_EXTERNAL_PORT}
export DOCS_EXTERNAL_PORT=${DOCS_EXTERNAL_PORT}
export HOST_NAME=${HOST_NAME}
# # Следующие команды заполняют шаблон значениями переменных окружения
envsubst '${NGINX_EXTERNAL_PORT},${BACKEND_EXTERNAL_PORT},${DOCS_EXTERNAL_PORT},${FRONTEND_EXTERNAL_PORT},${HOST_NAME}' \
< "${CONFS_DIR}/nginx/nginx.dev.conf" > \
"${LOCAL_FILES_DIR}/nginx/conf/nginx.dev.conf"
# envsubst '${NGINX_PORT_INTERNAL},${ASGI_PORT_INTERNAL},${DOCS_PORT_INTERNAL},${HOST_NAME}' \
# < "${CONFS_DIR}/nginx.prod.conf" > \
# "${LOCAL_FILES_DIR}/nginx/conf/nginx.prod.conf"
# Дополнение docker-compose.yaml в зависимости от значений переменных окружения
# if [[ "${RUN_WITH_REDIS}" = "True" ]]; then
# COMPOSE_FILE="${COMPOSE_FILE}:${DOCKER_COMPOSES_DIR}/docker-compose.redis.yml"
# fi
# if [[ "${RUN_WITH_POSTGRES}" = "True" ]]; then
# COMPOSE_FILE="${COMPOSE_FILE}:${DOCKER_COMPOSES_DIR}/docker-compose.postgres.yml"
# fi
# if [[ "${RUN_WITH_OVERRIDE_DOCKER_COMPOSE}" = "True" ]]; then
# COMPOSE_FILE="${COMPOSE_FILE}:${DOCKER_COMPOSES_DIR}/docker-compose.override.yml"
# fi
if [[ "${RUN_WITH_DOCS}" = "True" ]]; then
echo $DOCKER_COMPOSES_DIR
COMPOSE_FILE="${COMPOSE_FILE} -f ${DOCKER_COMPOSES_DIR}/docker-compose.docs.yml"
fi
# if [[ "${RUN_WITH_BUILD_LOCALLY}" = "True" ]]; then
# COMPOSE_FILE="${COMPOSE_FILE}:${DOCKER_COMPOSES_DIR}/docker-compose.build-asgi-locally.yml"
# if [[ "${RUN_WITH_DOCS}" = "True" ]]; then
# COMPOSE_FILE="${COMPOSE_FILE}:${DOCKER_COMPOSES_DIR}/docker-compose.build-docs-locally.yml"
# fi
# fi
# ARG_FOUND=false
# TARGET_ARG="--lint"
# for arg in "$@"; do
# if [ "$arg" == "$TARGET_ARG" ]; then
# ARG_FOUND=true
# break
# fi
# done
# if [ "$ARG_FOUND" = true ]; then
# COMPOSE_FILE="${COMPOSE_FILE}:${DOCKER_COMPOSES_DIR}/docker-compose.frontlint.yml"
# else
# if [[ "${PRODUCTION}" = "False" ]]; then
# COMPOSE_FILE="${COMPOSE_FILE}:${DOCKER_COMPOSES_DIR}/docker-compose.dev.yml"
# else
# COMPOSE_FILE="${COMPOSE_FILE}:${DOCKER_COMPOSES_DIR}/docker-compose.prod.yml"
# fi
# fi
# Записываем в файл переменные окружения, объявленные в процессе выполнения текущего скрипта
EXCLUDE_RULES="^\(SHLVL=\|LINES=\|COLUMNS=\|BASH_SOURCE=\|BASH_LINENO=\|BASH_ARGV=\|BASH_ARGC=\|EXCLUDE_RULES=\|_=\|FUNCNAME=\|PIPESTATUS=\)"
print_script_variables | grep -v $EXCLUDE_RULES > ${PROJECT_DIR}/.env
# Удаляем временный файл
rm -f .env.tmp
+7
View File
@@ -0,0 +1,7 @@
{
"singleQuote": true,
"semi": true,
"printWidth": 100,
"trailingComma": "all",
"endOfLine": "auto"
}
+4
View File
@@ -0,0 +1,4 @@
module.exports = {
presets: ['@babel/preset-env', '@babel/preset-modules'],
plugins: ['@babel/plugin-transform-runtime'],
};
+36
View File
@@ -0,0 +1,36 @@
export default {
rules: {
'header-max-length': [2, 'always', 72], // Максимальная длина заголовка
'jira-issue': [2, 'always'], // Правило для проверки номера задачи
},
plugins: [
{
rules: {
'jira-issue': ({ header }) => {
const jiraIssuePattern =
/^(feat|fix|docs|style|refactor|perf|test|chore)\s+\[([A-Z]+-\d+)\]:\s+(.+)/;
const match = header.match(jiraIssuePattern);
if (!match) {
return [
false,
`Заголовок должен содержать тип, номер задачи и название коммита. Формат: <тип> [<номер задачи>]: <название>
'feat' - Новый функционал
'fix' - Исправление ошибки
'docs' - Изменения в документации
'style' - Изменения, не влияющие на функциональность
'refactor' - Изменения кода, не исправляющие ошибки и не добавляющие функционал
'perf' - Изменения, улучшающие производительность
'test' - Добавление тестов
'chore' - Изменения в процессе сборки или вспомогательных инструментах.
Например: feat [X-01]: я тут накоммитил`,
];
}
return [true];
},
},
},
],
};
Executable
+28
View File
@@ -0,0 +1,28 @@
#!/bin/bash
# ARG_FOUND=false
# TARGET_ARG="--lint"
# for arg in "$@"; do
# if [ "$arg" == "$TARGET_ARG" ]; then
# ARG_FOUND=true
# break
# fi
# done
# if [ "$ARG_FOUND" = true ]; then
# bash .prepare.sh --lint
# else
bash .prepare.sh
# fi
source ".env"
ARGS_STRING=""
while [ $1 ]
do
ARGS_STRING+="$1 "
shift
done
echo $COMPOSE_FILE
docker compose -f ${COMPOSE_FILE} ${ARGS_STRING}
+97
View File
@@ -0,0 +1,97 @@
networks:
dev:
driver: bridge
services:
frontend:
restart:
always
env_file:
- .env
build:
context: .
dockerfile: docker/dockerfiles/dev
args:
SOURCE_DIR: ./src/front
volumes:
- ./src/front/:/app
- /app/node_modules
ports:
- "${FRONTEND_EXTERNAL_PORT}:${FRONTEND_INTERNAL_PORT}"
environment:
- CHOKIDAR_USEPOLLING=true
networks:
- dev
redis:
env_file:
- .env
image: redis:alpine # Используем легковесный образ Redis
ports:
- "${REDIS_PORT}:${REDIS_PORT}" # Открываем порт Redis для внешнего доступа (по желанию)
networks:
- dev
db:
env_file:
- .env
image: mysql:latest
ports:
- "${DB_EXTERNAL_PORT}:${DB_INTERNAL_PORT}" # Открываем порт MySQL для внешнего доступа
environment:
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
volumes:
- ${CONFS_DIR}/database/init.sql:/docker-entrypoint-initdb.d/init.sql
- ${LOCAL_FILES_DIR}/mysql/data/:/var/lib/mysql
- ${LOCAL_FILES_DIR}/mysql/backup/:/backup/
networks:
- dev
backend:
entrypoint: /script/backend-entrypoint.sh
restart:
always
build:
context: .
dockerfile: docker/dockerfiles/back
args:
SOURCE_DIR: ./src/back
PROJECT_DIR: .
ports:
- "${BACKEND_EXTERNAL_PORT}:${BACKEND_INTERNAL_PORT}"
env_file:
- .env
networks:
- dev
depends_on:
- db
- redis
volumes:
- /back/.venv/
- ./src/back:/back
# command: ["tail", "-f", "/dev/null"]
nginx:
image: nginx:latest
ports:
- "${NGINX_EXTERNAL_PORT}:${NGINX_INTERNAL_PORT}" # Открываем порт 80 для внешнего доступа
volumes:
- ${LOCAL_FILES_DIR}/nginx/log/:/var/log/nginx/
- ${LOCAL_FILES_DIR}/nginx/conf/nginx.dev.conf:/etc/nginx/nginx.conf # Подключаем конфигурацию Nginx
depends_on:
- backend
networks:
- dev
volumes:
mysql_data:
+30
View File
@@ -0,0 +1,30 @@
services:
documentation:
restart:
always
env_file:
- .env
build:
context: .
dockerfile: ${DOCKER_DOCKERFILES_DIR}/docfront
volumes:
- ./documentation:/app/documentation
- ./src/front/src:/app/src/front/src
- /app/src/front/src/node_modules/
- /app/documentation/node_modules/
- /app/node_modules/
- /app/documentation/docs/public/
ports:
- 5173:5173
command: ["sh", "-c", "npx vue-md-parser && npx jest && npx vitepress dev docs --host 0.0.0.0"]
networks:
- dev
networks:
dev:
driver: bridge
+38
View File
@@ -0,0 +1,38 @@
FROM python:3.10.13-slim AS builderstage
WORKDIR /back
ARG SOURCE_DIR
ENV SOURCE_DIR=${SOURCE_DIR}
# Устанавливаем рабочую директорию
RUN apt-get update && apt-get install -y --no-install-recommends \
libmariadb-dev-compat \
build-essential \
dos2unix \
pkg-config && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Копируем файлы зависимостей в контейнер
COPY ${SOURCE_DIR}/pyproject.toml ${SOURCE_DIR}/README.md ./
COPY docker/entries/backend-entrypoint.sh /script/backend-entrypoint.sh
RUN dos2unix /script/backend-entrypoint.sh && chmod 777 /script/backend-entrypoint.sh && \
python -m pip install --no-cache-dir poetry \
&& poetry config virtualenvs.in-project true \
&& poetry install --no-interaction --no-ansi
# --without dev,test
# Устанавливаем зависимости
# RUN python -m venv env
# RUN pip install --no-cache-dir -r r.txt
# Копируем все файлы проекта в контейнер
# COPY ${SOURCE_DIR} .
# FROM python:3.10.13-slim
# RUN python -m pip install --no-cache-dir poetry
# COPY --from=builderstage /script /script
# WORKDIR /back
EXPOSE 8000
+24
View File
@@ -0,0 +1,24 @@
# Используем официальный образ Node.js на базе Alpine
FROM node:lts-alpine as buildstage
ARG SOURCE_DIR
ENV SOURCE_DIR=${SOURCE_DIR}
# Устанавливаем рабочую директорию
WORKDIR /app
COPY ${SOURCE_DIR}/* ./
RUN npm cache clean --force && npm install
# Копируем остальные файлы приложения
# COPY ${SOURCE_DIR} ./
EXPOSE 3000
# COPY . .
# RUN chmod -R 777 ${SOURCE_DIR}
# Указываем команду для запуска lint-staged
CMD ["npm","run", "dev"]
# CMD ["tail", "-f", "/dev/null"]
+37
View File
@@ -0,0 +1,37 @@
FROM node:lts-alpine as buildstage
# Установить рабочую директорию
WORKDIR /app
RUN npm cache clean --force && npm install @babel/plugin-proposal-unicode-property-regex \
@babel/preset-env @babel/preset-modules \
babel-jest @babel/runtime @babel/plugin-transform-runtime
WORKDIR /app/documentation
# Очистить кэш npm и установить необходимые пакеты
RUN npm cache clean --force && npm install --prefix ./ vitepress vue-md-parser @vue/vue3-jest \
@babel/plugin-proposal-unicode-property-regex \
@babel/preset-env @babel/preset-modules babel-jest @babel/runtime \
axios @babel/plugin-transform-runtime \
babel-jest jest jest-environment-jsdom @jest/globals \
@vue/cli-plugin-babel @vue/compiler-dom @vue/server-renderer @vue/test-utils \
jest-transform-stub && \
mkdir -p /app/documentation/docs/public/test-coverage/src/ &&\
chmod 777 /app/documentation/docs/public/test-coverage/src/
COPY ./documentation/babel.config.cjs /app
WORKDIR /app/src/front/
COPY ./src/front/package.json .
RUN npm cache clean --force && npm install
# Открыть порт для VitePress
FROM node:lts-alpine
WORKDIR /app
COPY --from=buildstage /app .
EXPOSE 5173
WORKDIR /app/documentation/
# Держать контейнер запущенным
# CMD ["tail", "-f", "/dev/null"]
# Раскомментируйте следующую строку, чтобы запустить приложение
# CMD ["sh", "-c", "npx vue-md-parser && npx jest && npx vitepress dev docs --host 0.0.0.0"]
+38
View File
@@ -0,0 +1,38 @@
#!/bin/bash
until cd /back/
do
echo "Жду запуска сервера..."
done
until poetry run python manage.py makemigrations
do
echo "Создаю миграции..."
done
until poetry run python manage.py migrate
do
echo "Применяю при необходимости..."
sleep 2
done
poetry run python manage.py collectstatic --noinput
if [ "$PRODUCTION" == "False" ]; then
if [ "$AUTO_BACKEND" == "True" ]; then
poetry run python manage.py runserver 0.0.0.0:$BACKEND_INTERNAL_PORT
else
exec tail -f /dev/null
# &
fi
else
# Фронт и бэк в одном
mkdir -p /app/front/ && rsync -av --delete /app/dist/ /app/front/
poetry run daphne -p 8000 -b 0.0.0.0 portal.asgi:application
# python -m uvicorn config.asgi:application --bind 0.0.0.0:8000 --worker-class uvicorn.workers.UvicornWorker --timeout 180 --workers $WORKERS_COUNT --log-level debug --access-logfile - --error-logfile - --pid /tmp/gunicorn.pid'
# celery --app speaker worker --loglevel=$CELERY_LOGLEVEL --concurrency 1 -E &
fi
wait -n
exit $?
-27
View File
@@ -1,27 +0,0 @@
# Резервное копирование
# Резервное копирование исходных текстов
Копирование как таковое не осуществляется. Резервирование основано на вытягивании (PULL) репозитория по протоколу Git в место резервного хранения.
Дата последней проверки работы: 2023-12-18
## Схема размещения репозиториев
```mermaid
graph TD;
Developers==Коммиты==>Sulaco;
Sulaco--Таймер--oBigBox;
Sulaco-.->|Запрос|Gitea/COD2;
Gitea/COD2-.->|Запрос|APP28-Prod;
Gitea/COD2-.->|Запрос|APP040-Test;
```
* Коммит - по мере выкатки в репозиторий очередных правок
* Таймер - по заданному расписанию (как правило - раз в сутки)
* Запрос - ручной запрос на проведение синхронизации
Учетки для резервного копирования
* R2D2 - для вытягивания в ЦОД2
* BigBoy - для вытягивания в BigBox
-91
View File
@@ -1,91 +0,0 @@
<h1 align="center">Соглашение для разработчиков по GIT</h1>
<h3 align="center">Основные принципы работы в репозитории</h3>
```mermaid
---
title: Пример схемы GIT репозитория
---
%%{init: {'theme':'forest'}}%%
gitGraph:
commit id:"initial"
branch test
checkout test
commit id:"Ветки поделились"
branch develop
checkout develop
commit type:HIGHLIGHT id:"taskid1" tag:"Назначение задачи"
branch git_id_shortName
checkout git_id_shortName
commit
checkout develop
merge git_id_shortName
commit type:HIGHLIGHT tag:"Назначение задачи"
branch featureA
commit type:HIGHLIGHT tag:"Назначение подзадачи"
branch featureA1
commit
checkout test
merge develop
checkout featureA
commit
branch featureA2
commit
commit
checkout featureA
merge featureA2
merge featureA1
checkout develop
merge featureA
checkout develop
checkout test
merge develop
checkout main
merge test
```
### Ветки, на которых делается сборка
Основная ветка main используется только для размещения на сервере прод
test - ветка для тестового сервера
### Ветки разработки
develop - основная ветка разработчиков
Все ветки выше защищены от merdge в соответствиями с ролями участников проекта
#### Ветки задач
Формируются по принципу id_Задачи_краткое описание
Id задачи находится во внутреннем GIT
После того, как задача выполнена, разработчик создает PULL Request в ветку DEVELOP. НЕ ЗАБЫВАЕМ кратко описывать что сделано и есть-ли какие-то проблемы. НУ или крепить ссылку на задачу, по которой велись работы
Остальные участники проекта проверяют предложенные исправления и пишут на них рецензии.
Если разработчик не согласен с предлагаемыми изменениями, он должен написать причину своего несогласия.
В случае принятия или по своему усмотрению (крайний случай) ответственный производит merdge.
На ветке разработки производится апдейт версии, после чего команде следует приступать к другим задачам, производя ветвление от ветки разработки.
Сборку проекта следует производить на ветках серверов.
#### Хотфиксы
Правила аналогичны веткам задач.
## Gitignore
В репозиторий не должны попадать файлы виртуального окружения, файлы модулей и прочего.
По возможности, следует исключать попадание и иных статических файлов, если их наличие не влияет на работу проекта.
-96
View File
@@ -1,96 +0,0 @@
# Спецификация организации проекта Vue
Инструменты разработки
* Vscode
Инструмент проверки кода
* ESLint
## Спецификации разработки
### 1 Соглашения об именах для папок, файлов и компонентов
1. Для компонентов используем соглашение об именах (PascalCase), начинающееся с заглавных букв.
2. В дочерние компоненты, жестко привязанным к родителю, добавляем вперед название родительского компонента (РодительДочерний)
3. Для не являющихся компонентами, используем kebab-case, начинающиеся с строчных букв (если не получается обойтись одним словом).
### 2 Формат файла UTF-8
### 3 Требования к названиям:
1. Стараемся избегать использования непонятного в названиях и используем английские слова, передающие смысл. Пишем правильно (если что, онлайн-переводчик не сложно запустить)
2. Внутри методов допустимо использовать переменные, не несущие в своем названии смысла (arr, ob) для перебора какого-то массива или объекта, но на коротких дистанциях. НЕ совсем правильно, но удобно.
3. Названия для переменных
* Верблюжий регистр, начиная с типа данных в нижнем регистре
* Тип числа начинается с n,
- [x] строка - **s**,
- [x] логический - **b**,
- [x] объект - **o**,
- [x] массив - **a**.
Например: nAge = 29, sName = "Jone".
### 4. Название функции
* Верблюжий регистр, соглашение об именах первой буквы в нижнем регистре
* По типу операции + объекту операции
Типы операций следующие:
- [x] add (добавить),
- [x] change/edit/set (изменить),
- [x] del (удалить),
- [x] get (получить),
- [x] search/find/filter (поиск),
- [x] load (загрузка)
- [x] check (проверка),
- [x] reset (сброс)
### 4. Спецификация структуры файла VUE:
1. Порядок оформления:
* template
* script
* style
2. PROPS должны быть подробно определены:
```
props: {
sStatus: {
type: String,
required: true,
defaut:""
}
}
```
3. Характеристики функциональных элементов:
* Элементы с несколькими атрибутами записываем в несколько строк, по одной строке для каждого атрибута. (чтобы облегчить чтение)
```
<my-component
:data="data"
:class="name"
@click="..."
....
...
...
.........
>
```
! Если атрибутов немного и это не мешает чтению, допускается писать и в строку -
### 5. Спецификация комментариев.
Заполняем комментарий в следующих случаях:
* Инструкции по использованию компонентов и функций
* Описание важных/сложных функций функций
* Больше комментариев - лучше для понимания.
### 6. Дополнительно
* Стараемся держать код в чистоте
- неиспользуемого быть не должно
- не забываем проверять свой код на console.log перед отправкой на слияние веток
- Экономим теги, будто их мало и редко выдают на отдел небольшими порциями.
-35
View File
@@ -1,35 +0,0 @@
### Шаблон страницы
Пример использования верстки
```
<v-row no-gutters class="gap flex-column">
<v-col lg=2 class='bg-red w100'>
1
</v-col>
<v-col class="d-flex flex-column">
<v-row no-gutters class="gap">
<v-col lg=9 class="d-flex flex-column">
<v-row no-gutters class="gap flex-column">
<v-col class=" d-flex flex-column">
<v-row no-gutters class="gap">
<v-col class="bg-green">1</v-col>
<v-col class="bg-orange">2</v-col>
</v-row>
</v-col>
<v-col class=" d-flex flex-column">
<v-row no-gutters class="gap">
<v-col class="bg-purple">1</v-col>
<v-col class="bg-green">2</v-col>
</v-row>
</v-col>
</v-row>
</v-col>
<v-col class="bg-yellow">2</v-col>
</v-row>
</v-col>
<v-col lg=2 class="bg-grey w100">
3
</v-col>
</v-row>
```
+746
View File
@@ -0,0 +1,746 @@
import { withMermaid } from 'vitepress-plugin-mermaid';
export default withMermaid({
themeConfig: {
search: {
provider: 'local'
},
sidebar: [
{
text: 'Структура',
collapsed: false,
items: [
{
"text": "App",
"link": "/src/App"
},
{
"text": "components",
"collapsed": true,
"items": [
{
"text": "CountDown",
"link": "/src/components/CountDown"
},
{
"text": "UI",
"collapsed": true,
"items": [
{
"text": "Auth-form",
"link": "/src/components/UI/Auth-form"
},
{
"text": "NewsCard",
"link": "/src/components/UI/NewsCard"
},
{
"text": "PatternTabs",
"link": "/src/components/UI/PatternTabs"
},
{
"text": "SearcEmployess",
"link": "/src/components/UI/SearcEmployess"
},
{
"text": "Timer",
"link": "/src/components/UI/Timer"
},
{
"text": "aboutportal",
"collapsed": true,
"items": [
{
"text": "card-feedback",
"link": "/src/components/UI/aboutportal/card-feedback"
},
{
"text": "card-top-comment",
"link": "/src/components/UI/aboutportal/card-top-comment"
},
{
"text": "card-total",
"link": "/src/components/UI/aboutportal/card-total"
},
{
"text": "card_top_comment",
"collapsed": true,
"items": [
{
"text": "card-comment",
"link": "/src/components/UI/aboutportal/card_top_comment/card-comment"
}
]
},
{
"text": "feedmodul",
"link": "/src/components/UI/aboutportal/feedmodul"
},
{
"text": "line-chart",
"link": "/src/components/UI/aboutportal/line-chart"
},
{
"text": "pattern-card-feed",
"link": "/src/components/UI/aboutportal/pattern-card-feed"
},
{
"text": "pattern-card",
"link": "/src/components/UI/aboutportal/pattern-card"
},
{
"text": "portal-traffic",
"link": "/src/components/UI/aboutportal/portal-traffic"
},
{
"text": "rating-page",
"link": "/src/components/UI/aboutportal/rating-page"
},
{
"text": "toolbar-filter",
"link": "/src/components/UI/aboutportal/toolbar-filter"
},
{
"text": "tooltip-ico",
"link": "/src/components/UI/aboutportal/tooltip-ico"
},
{
"text": "tooltip-user",
"link": "/src/components/UI/aboutportal/tooltip-user"
},
{
"text": "top-user",
"link": "/src/components/UI/aboutportal/top-user"
}
]
},
{
"text": "date-select",
"link": "/src/components/UI/date-select"
},
{
"text": "defaultportal",
"collapsed": true,
"items": [
{
"text": "page-counter",
"link": "/src/components/UI/defaultportal/page-counter"
},
{
"text": "uploading-file",
"link": "/src/components/UI/defaultportal/uploading-file"
}
]
},
{
"text": "feedback",
"collapsed": true,
"items": [
{
"text": "feedstar-like",
"link": "/src/components/UI/feedback/feedstar-like"
},
{
"text": "statistik-like",
"link": "/src/components/UI/feedback/statistik-like"
}
]
},
{
"text": "fiousercard",
"collapsed": true,
"items": [
{
"text": "icoUser",
"link": "/src/components/UI/fiousercard/icoUser"
},
{
"text": "infoUserCard",
"link": "/src/components/UI/fiousercard/infoUserCard"
},
{
"text": "listUser",
"link": "/src/components/UI/fiousercard/listUser"
},
{
"text": "onlineUsers",
"link": "/src/components/UI/fiousercard/onlineUsers"
},
{
"text": "vcardUser",
"link": "/src/components/UI/fiousercard/vcardUser"
}
]
},
{
"text": "index",
"link": "/src/components/UI/index"
},
{
"text": "my-helper",
"link": "/src/components/UI/my-helper"
},
{
"text": "tooltip-number",
"link": "/src/components/UI/tooltip-number"
},
{
"text": "tooltip-text",
"link": "/src/components/UI/tooltip-text"
}
]
},
{
"text": "about_inspection",
"collapsed": true,
"items": [
{
"text": "contacts",
"collapsed": true,
"items": [
{
"text": "ContactInfo",
"link": "/src/components/about_inspection/contacts/ContactInfo"
}
]
},
{
"text": "general_information",
"collapsed": true,
"items": [
{
"text": "GeneralInformation",
"link": "/src/components/about_inspection/general_information/GeneralInformation"
},
{
"text": "GeneralInformationSize",
"link": "/src/components/about_inspection/general_information/GeneralInformationSize"
}
]
},
{
"text": "open_vacancies",
"collapsed": true,
"items": [
{
"text": "OpenVacancies",
"link": "/src/components/about_inspection/open_vacancies/OpenVacancies"
},
{
"text": "ResponseVacancies",
"link": "/src/components/about_inspection/open_vacancies/ResponseVacancies"
}
]
},
{
"text": "structure",
"collapsed": true,
"items": [
{
"text": "StructureInspection",
"link": "/src/components/about_inspection/structure/StructureInspection"
},
{
"text": "StructureInspectionRow",
"link": "/src/components/about_inspection/structure/StructureInspectionRow"
}
]
}
]
},
{
"text": "calendar_of_events",
"collapsed": true,
"items": [
{
"text": "BigCalendar",
"link": "/src/components/calendar_of_events/BigCalendar"
},
{
"text": "UI_calendar",
"collapsed": true,
"items": [
{
"text": "calendarFull",
"link": "/src/components/calendar_of_events/UI_calendar/calendarFull"
},
{
"text": "dialogCreate",
"link": "/src/components/calendar_of_events/UI_calendar/dialogCreate"
},
{
"text": "periodEvents",
"link": "/src/components/calendar_of_events/UI_calendar/periodEvents"
},
{
"text": "reminderEvent",
"link": "/src/components/calendar_of_events/UI_calendar/reminderEvent"
},
{
"text": "timeSelect",
"link": "/src/components/calendar_of_events/UI_calendar/timeSelect"
}
]
},
{
"text": "calendar-create-select",
"link": "/src/components/calendar_of_events/calendar-create-select"
},
{
"text": "calendar-create",
"link": "/src/components/calendar_of_events/calendar-create"
},
{
"text": "calendar-my",
"link": "/src/components/calendar_of_events/calendar-my"
},
{
"text": "event-calendar",
"link": "/src/components/calendar_of_events/event-calendar"
},
{
"text": "event-create",
"link": "/src/components/calendar_of_events/event-create"
},
{
"text": "event-dialog-edit-participant",
"link": "/src/components/calendar_of_events/event-dialog-edit-participant"
},
{
"text": "event-dialog-edit",
"link": "/src/components/calendar_of_events/event-dialog-edit"
},
{
"text": "event-dialog-info",
"link": "/src/components/calendar_of_events/event-dialog-info"
},
{
"text": "event-dialog",
"link": "/src/components/calendar_of_events/event-dialog"
},
{
"text": "load-ical",
"link": "/src/components/calendar_of_events/load-ical"
},
{
"text": "load-ical1",
"link": "/src/components/calendar_of_events/load-ical1"
}
]
},
{
"text": "cardLike",
"link": "/src/components/cardLike"
},
{
"text": "carousel-list",
"link": "/src/components/carousel-list"
},
{
"text": "carousel-numbers",
"link": "/src/components/carousel-numbers"
},
{
"text": "dialog-search",
"link": "/src/components/dialog-search"
},
{
"text": "digital-letna",
"link": "/src/components/digital-letna"
},
{
"text": "graph",
"collapsed": true,
"items": [
{
"text": "chartConfig",
"link": "/src/components/graph/chartConfig"
},
{
"text": "line-graph",
"link": "/src/components/graph/line-graph"
}
]
},
{
"text": "load-round",
"link": "/src/components/load-round"
},
{
"text": "news-crossroad",
"link": "/src/components/news-crossroad"
},
{
"text": "news-full",
"link": "/src/components/news-full"
},
{
"text": "news-home",
"link": "/src/components/news-home"
},
{
"text": "secret",
"collapsed": true,
"items": [
{
"text": "SmallTimer",
"link": "/src/components/secret/SmallTimer"
}
]
},
{
"text": "testing",
"collapsed": true,
"items": [
{
"text": "BodyDetailTesting",
"link": "/src/components/testing/BodyDetailTesting"
},
{
"text": "CatalogTest",
"link": "/src/components/testing/CatalogTest"
},
{
"text": "DetailCardTest",
"link": "/src/components/testing/DetailCardTest"
},
{
"text": "HeaderDetailTesting",
"link": "/src/components/testing/HeaderDetailTesting"
},
{
"text": "QuestionBlock",
"link": "/src/components/testing/QuestionBlock"
},
{
"text": "TestResults",
"link": "/src/components/testing/TestResults"
}
]
},
{
"text": "vote",
"collapsed": true,
"items": [
{
"text": "ConstructorVote",
"collapsed": true,
"items": [
{
"text": "AnswerList",
"link": "/src/components/vote/ConstructorVote/AnswerList"
},
{
"text": "CreatedVote",
"link": "/src/components/vote/ConstructorVote/CreatedVote"
},
{
"text": "MainInfo",
"link": "/src/components/vote/ConstructorVote/MainInfo"
},
{
"text": "NewQuestion",
"link": "/src/components/vote/ConstructorVote/NewQuestion"
},
{
"text": "QuestionHeader",
"link": "/src/components/vote/ConstructorVote/QuestionHeader"
},
{
"text": "QuestionItem",
"link": "/src/components/vote/ConstructorVote/QuestionItem"
},
{
"text": "QuestionSettings",
"link": "/src/components/vote/ConstructorVote/QuestionSettings"
}
]
},
{
"text": "CurrentVote",
"link": "/src/components/vote/CurrentVote"
},
{
"text": "NonVoteHappy",
"link": "/src/components/vote/NonVoteHappy"
},
{
"text": "NonVoteSad",
"link": "/src/components/vote/NonVoteSad"
},
{
"text": "NoneVote",
"link": "/src/components/vote/NoneVote"
},
{
"text": "VoteAdmin",
"link": "/src/components/vote/VoteAdmin"
},
{
"text": "VoteAnimation",
"link": "/src/components/vote/VoteAnimation"
},
{
"text": "VoteCard",
"link": "/src/components/vote/VoteCard"
},
{
"text": "VoteConstructor",
"link": "/src/components/vote/VoteConstructor"
},
{
"text": "VoteForm",
"link": "/src/components/vote/VoteForm"
},
{
"text": "VoteResult",
"link": "/src/components/vote/VoteResult"
}
]
}
]
},
{
"text": "layouts",
"collapsed": true,
"items": [
{
"text": "default",
"collapsed": true,
"items": [
{
"text": "AdminMenu",
"link": "/src/layouts/default/AdminMenu"
},
{
"text": "DefaultPortal",
"link": "/src/layouts/default/DefaultPortal"
},
{
"text": "alertDefault",
"link": "/src/layouts/default/alertDefault"
}
]
}
]
},
{
"text": "main",
"link": "/src/main"
},
{
"text": "plugins",
"collapsed": true,
"items": [
{
"text": "index",
"link": "/src/plugins/index"
},
{
"text": "vuetify",
"link": "/src/plugins/vuetify"
},
{
"text": "webfontloader",
"link": "/src/plugins/webfontloader"
}
]
},
{
"text": "router",
"collapsed": true,
"items": [
{
"text": "index",
"link": "/src/router/index"
}
]
},
{
"text": "store",
"collapsed": true,
"items": [
{
"text": "AboutPortalFilter",
"link": "/src/store/AboutPortalFilter"
},
{
"text": "AccountStore",
"link": "/src/store/AccountStore"
},
{
"text": "MainmenuStore",
"link": "/src/store/MainmenuStore"
},
{
"text": "WeekendsStore",
"link": "/src/store/WeekendsStore"
},
{
"text": "app",
"link": "/src/store/app"
},
{
"text": "index",
"link": "/src/store/index"
},
{
"text": "seAlertStore",
"link": "/src/store/UseAlertStore"
}
]
},
{
"text": "tests",
"collapsed": true,
"items": [
{
"text": "App.test",
"link": "/src/tests/App.test"
},
{
"text": "CarouselList.test",
"link": "/src/tests/CarouselList.test"
}
]
},
{
"text": "utils",
"collapsed": true,
"items": [
{
"text": "axios-api",
"link": "/src/utils/axios-api"
},
{
"text": "universal_functions",
"link": "/src/utils/universal_functions"
}
]
},
{
"text": "views",
"collapsed": true,
"items": [
{
"text": "AboutInspectionPage",
"link": "/src/views/AboutInspectionPage"
},
{
"text": "AboutPortalPage",
"link": "/src/views/AboutPortalPage"
},
{
"text": "FAQPage",
"link": "/src/views/FAQPage"
},
{
"text": "FeedbackPage",
"link": "/src/views/FeedbackPage"
},
{
"text": "FnsHol",
"link": "/src/views/FnsHol"
},
{
"text": "HomePage",
"link": "/src/views/HomePage"
},
{
"text": "LaborProtection",
"link": "/src/views/LaborProtection"
},
{
"text": "NewsPage",
"link": "/src/views/NewsPage"
},
{
"text": "ProvidingActivitiesPage",
"link": "/src/views/ProvidingActivitiesPage"
},
{
"text": "SecurityPage",
"link": "/src/views/SecurityPage"
},
{
"text": "StructurePage",
"link": "/src/views/StructurePage"
},
{
"text": "TestHomePage",
"link": "/src/views/TestHomePage"
},
{
"text": "Vote",
"link": "/src/views/Vote"
},
{
"text": "VoteHomePage",
"link": "/src/views/VoteHomePage"
},
{
"text": "nested_view",
"collapsed": true,
"items": [
{
"text": "o_OKiB",
"link": "/src/views/nested_view/o_OKiB"
}
]
},
{
"text": "safety",
"collapsed": true,
"items": [
{
"text": "ChaptersSafety",
"link": "/src/views/safety/ChaptersSafety"
},
{
"text": "DocumentationSafety",
"link": "/src/views/safety/DocumentationSafety"
},
{
"text": "MainInfoSafety",
"link": "/src/views/safety/MainInfoSafety"
},
{
"text": "TestSafety",
"link": "/src/views/safety/TestSafety"
}
]
},
{
"text": "secret",
"collapsed": true,
"items": [
{
"text": "SecretPage",
"link": "/src/views/secret/SecretPage"
}
]
}
]
}
]
},
{
text: 'Гайды',
collapsed: true,
items: [
{ text: 'Как установить', link: '/guides/install' },
{ text: 'Как использовать', link: '/guides/usage' },
{ text: 'Правила комитов', link: '/guides/commits' }
,
{ text: 'Тесты', link: '/tests' },
]
}
]
},
mermaid: {
// refer https://mermaid.js.org/config/setup/modules/mermaidAPI.html#mermaidapi-configuration-defaults for options
},
// optionally set additional config for plugin itself with MermaidPluginConfig
mermaidPlugin: {
class: 'mermaid my-class', // set additional css classes for parent container
},});
@@ -0,0 +1,25 @@
# CatalogTest
### Карточка где буду отрисовываться тесты в цикле
## Описание пропсов
| Пропс | Тип | Значение по умолчанию | Комментарий |
|-------|-----|-----------------------|-------------|
| `title` | `String` | `'Не забыть передать тайтл сюда!'` | нет комментария |
| `activeTab` | `Number` | `0` | нет комментария |
| `testingCard` | `Array` | `() => []` | нет комментария |
## Пример использования
```vue
import CatalogTest from '@/components/components/testing/CatalogTest';
```
```vue
<CatalogTest />
```
---
> Документация сгенерирована автоматически.
@@ -0,0 +1,18 @@
# VoteConstructor
### Основная информация
## Пример использования
```vue
import VoteConstructor from '@/components/components/vote/VoteConstructor';
```
```vue
<VoteConstructor />
```
---
> Документация сгенерирована автоматически.
+22
View File
@@ -0,0 +1,22 @@
module.exports = {
// rootDir: '../',
testEnvironment: 'jest-environment-jsdom',
roots: ['/app/src/front/src'],
setupFilesAfterEnv: ['/app/documentation/jest.setup.js'],
transform: {
'^.+\\.vue$': '@vue/vue3-jest',
'^.+\\.mjs$': 'babel-jest',
'^.+\\.js$': 'babel-jest',
'\\.(png|jpe?g|gif|svg)$': 'jest-transform-stub',
},
moduleFileExtensions: ['js', 'json', 'vue', 'mjs'],
moduleNameMapper: {
'^@/(.*)$': '/app/src/front/src/$1',
},
transformIgnorePatterns: ['/node_modules/(?!(vuetify|quasar)/)'],
collectCoverage: true,
collectCoverageFrom: ['/app/src/front/src/**/*.{js,vue}'],
coveragePathIgnorePatterns: ['/documentation/'],
coverageReporters: ['json', 'html'],
coverageDirectory: '/app/documentation/docs/public/test-coverage',
};
View File
Whitespace-only changes.
+12
View File
@@ -0,0 +1,12 @@
[MASTER]
load-plugins=pylint_django
ignore-paths=.*/migrations/*
init-hook='import sys; sys.path.append("/back/"); import os; os.environ["DJANGO_SETTINGS_MODULE"] = "portal.settings"; import django; django.setup()'
[FORMAT]
# Настройки форматирования
max-line-length=100
[MESSAGES CONTROL]
# Отключение определенных сообщений
disable=C0114 # Missing module docstring
+22
View File
@@ -0,0 +1,22 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Django (Docker)",
"type": "python",
"request": "launch",
"module": "manage",
"args": [
"runserver",
"0.0.0.0:8000"
],
"django": true,
"justMyCode": true,
"env": {
"PYTHONPATH": "${workspaceFolder}"
},
"console": "integratedTerminal",
}
]
}
File renamed without changes.
+3
View File
@@ -14,6 +14,9 @@ class InspectionDirectionsAdmin(admin.ModelAdmin):
def get_queryset(self, request):
qs = super().get_queryset(request)
qs = qs.filter(department__isnull=True)
return qs
class VacanciesAdmin(admin.ModelAdmin):
+7
View File
@@ -13,15 +13,22 @@ class GetStateSize(ListAPIView):
def get(self, request):
state_size ={}
try:
state_size = StateSizeSerializer(StateSize.objects.latest('date_created')).data
except Exception as e:
pass
return Response(state_size)
class GetFactSize(ListAPIView):
def get(self, request):
fact_size = {}
try:
fact_size = FactSizeSerializer(FactSize.objects.latest('date_created')).data
+1
View File
@@ -4,4 +4,5 @@ from django.apps import AppConfig
class AccountsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'accounts'
verbose_name='Аккаунты Портала'
+4
View File
@@ -19,6 +19,10 @@ class getuserAPIView(APIView):
Результат: Выдает все данные о пользователе
Если дать дополнительный параметр fullinfo = True, то будет выдаваться информация с комиссиями и ответсвенностью
"""
resp = None
fullinfo = request.query_params.get('fullinfo')
queryset = DictEmployee.objects.get(login=request.query_params.get('userlogin'))
+5 -2
View File
@@ -5,6 +5,7 @@ from django.conf import settings
# from enum import Enum
from ckeditor_uploader.fields import RichTextUploadingField
# class CalendarEventsName(models.Model):
# """ Глобавльное название календаря"""
# name=models.CharField(max_length=300, verbose_name='Название Календаря')
@@ -12,8 +13,9 @@ from ckeditor_uploader.fields import RichTextUploadingField
# class CalendarEvents(models.Model):
# """ Основные данные по событиям"""
# """ Основные данные по событиям"""
# name=models.CharField(max_length=300, verbose_name='Название события')
# description = RichTextUploadingField(null=True, blank= True, verbose_name='Описание события')
# content = RichTextUploadingField(null=True, blank= True, verbose_name='Полное описание события')
@@ -47,7 +49,7 @@ from ckeditor_uploader.fields import RichTextUploadingField
# Модели(Таблицы) для хранения календаря
class Calendar(models.Model):
author = models.ForeignKey(DictEmployee, on_delete=models.PROTECT, verbose_name='Автор календаря')
author = models.ForeignKey(DictEmployee, on_delete=models.PROTECT, null=True, verbose_name='Автор календаря')
cl_name = models.CharField(max_length=300, verbose_name='Название')
cl_color = models.CharField(max_length=300, verbose_name='Цвет', null=True)
cl_descr = models.CharField(max_length=300, verbose_name='Описание')
@@ -82,6 +84,7 @@ class Event(models.Model):
period = models.JSONField(verbose_name='Периодичность события', null=True, blank= True)
description = RichTextUploadingField(null=True, blank= True, verbose_name='Описание события')
allday = models.BooleanField(default=False, verbose_name='Событие на целый день')
class Meta:
verbose_name = "Событие календаря"
@@ -63,11 +63,13 @@ class CalendarParticipantsSerializerFullInfo(serializers.ModelSerializer):
class Meta:
model = CalendarParticipants
exclude = ['calendar']
class CalendarsSerializerForEventEdit(serializers.ModelSerializer):
""" Сериализатор календарей для окна редактирования событий"""
participant = CalendarParticipantsSerializerFullInfo(source="get_participants", many= True, read_only=True)
+1
View File
@@ -10,6 +10,7 @@ from rest_framework_simplejwt.views import (
urlpatterns = [
path('links/', CaorusAPIView.as_view(), name='CaorusAPIView'),
+3 -2
View File
@@ -5,7 +5,6 @@ from django.conf import settings
from ckeditor.fields import RichTextField
from ckeditor_uploader.fields import RichTextUploadingField
from datetime import date
from vote.models import Vote
from django.utils.timezone import now
class BaseSender(models.Model):
@@ -37,11 +36,13 @@ class Links(models.Model):
class News(models.Model):
title=models.CharField(max_length=255, verbose_name='Заголовок')
text= RichTextUploadingField(null=True, blank= True, verbose_name='Текст новости')
cdate =models.DateTimeField(default=datetime.now, verbose_name='Дата создания')
author = models.ForeignKey(settings.AUTH_USER_MODEL, editable=False, on_delete=models.PROTECT, verbose_name='Автор')
link = models.ImageField(upload_to='newsimage/%Y/%m/%d', null=True, default="newsimage/default.jpg", verbose_name='Изображение')
vote = models.ForeignKey(Vote, on_delete=models.CASCADE, null=True, blank=True)
class Meta:
+3 -1
View File
@@ -25,6 +25,8 @@ class LinkAPIView(ListAPIView):
]
"""
permission_classes = (AllowAny,)
serializer_class = LinkSerializer
@@ -165,7 +167,7 @@ class CarouselsAPIView(ListAPIView):
result = CarouselsSerializer(queryset, many= True).data
manbrd = DictEmployee.objects.filter(birthdate__month=date.today().month, birthdate__day__gte=date.today().day).order_by('birthdate__day')
manbrd = DictEmployee.objects.filter(birthdate__month=date.today().month, birthdate__day__gte=date.today().day, deleted=0).order_by('birthdate__day')
dr_img = BaseSender.objects.update_or_create(name="День рождения", defaults={'name':"День рождения"})
mess = ''
if len(manbrd) > 0 :
+2804
View File
File diff suppressed because it is too large. Load diff
+36 -19
View File
@@ -1,25 +1,42 @@
from datetime import timedelta
from dotenv import load_dotenv
import os
dotenv_path = os.path.join(os.path.dirname(__file__), '.env')
load_dotenv(dotenv_path)
class Settings():
class Settings:
"""
Настройки подключений - потом перенести
"""
def __init__(self) -> None:
self.secret_key='V7bvDZMztr3EU8S9g1Dipw'
self.redis_hosts = [("127.0.0.1", 6379)]
"""
Настройки подключений - потом перенести
"""
self.secret_key = "V7bvDZMztr3EU8S9g1Dipw"
self.redis_hosts = [f"{str(os.getenv('REDIS'))}:{str(os.getenv('REDIS_PORT'))}"]
self.access_token_lifetime = timedelta(minutes=480)
self.refresh_token_lifetime = timedelta(days=1)
self.db = {
'default':{
'ENGINE': str(os.getenv('ENGINE')),
'NAME': str(os.getenv('DBNAME')),
'USER': str(os.getenv('USER')),
'PASSWORD': str(os.getenv('PASSWORD')),
'HOST': str(os.getenv('HOST')),
'PORT': str(os.getenv('PORT')),
}
}
pass
"default": {
"ENGINE": "django.db.backends.mysql",
"NAME": os.getenv("DB_NAME"), # Имя базы данных
"USER": os.getenv("DB_USER"), # Имя пользователя
"PASSWORD": os.getenv("DB_PASSWORD"), # Пароль
"HOST": os.getenv("DB_HOST"), # Хост
"PORT": os.getenv("DB_INTERNAL_PORT"), # Порт
}
}
def foo1(self) -> None:
"""
Настройки - потом перенести
"""
return None
def foo2(self) -> None:
"""
Настройки подключений - потом перенести
"""
return None
+6 -1
View File
@@ -38,7 +38,12 @@ SWAGGER_SETTINGS = {
}
}
}
ALLOWED_HOSTS = ["*","portal-t",'portal9966']
CSRF_TRUSTED_ORIGINS = [
'http://localhost',
'http://127.0.0.1',
'http://yourdomain.com', # Add your production domain here
]
ALLOWED_HOSTS = ["*","portal-t",'portal9966','localhost','0.0.0.0']
CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer",
+136
View File
@@ -0,0 +1,136 @@
[project]
name = "portal"
version = "0.1.0"
description = ""
authors = [
{name = "Your Name",email = "you@example.com"}
]
readme = "README.md"
requires-python = ">=3.10,<4.0"
dependencies = [
"anyio (>=4.8.0,<5.0.0)",
"asgiref (>=3.8.1,<4.0.0)",
"async-timeout (>=5.0.1,<6.0.0)",
"attrs (>=25.1.0,<26.0.0)",
"autobahn (>=24.4.2,<25.0.0)",
"automat (>=24.8.1,<25.0.0)",
"backports-tarfile (>=1.2.0,<2.0.0)",
"build (==1.2.2.post1)",
"cachecontrol (>=0.14.2,<0.15.0)",
"certifi (>=2025.1.31,<2026.0.0)",
"cffi (>=1.17.1,<2.0.0)",
"channels (>=4.2.0,<5.0.0)",
"channels-redis (>=4.2.1,<5.0.0)",
"charset-normalizer (>=3.4.1,<4.0.0)",
"cleo (>=2.1.0,<3.0.0)",
"constantly (>=23.10.4,<24.0.0)",
"crashtest (>=0.4.1,<0.5.0)",
"cryptography (>=44.0.1,<45.0.0)",
"daphne (>=4.1.2,<5.0.0)",
"defusedxml (>=0.7.1,<0.8.0)",
"distlib (>=0.3.9,<0.4.0)",
"django (>=5.1.6,<6.0.0)",
"django-ckeditor (>=6.7.2,<7.0.0)",
"django-ckeditor-5 (>=0.2.17,<0.3.0)",
"django-cors-headers (>=4.7.0,<5.0.0)",
"django-filter (>=25.1,<26.0)",
"django-grappelli (>=4.0.1,<5.0.0)",
"django-js-asset (>=3.1.0,<4.0.0)",
"django-templated-mail (>=1.1.1,<2.0.0)",
"djangorestframework (>=3.15.2,<4.0.0)",
"djangorestframework-simplejwt (>=5.5.0,<6.0.0)",
"djoser (>=2.3.1,<3.0.0)",
"drf-yasg (>=1.21.9,<2.0.0)",
"dulwich (>=0.22.7,<0.23.0)",
"et-xmlfile (>=2.0.0,<3.0.0)",
"exceptiongroup (>=1.2.2,<2.0.0)",
"fastjsonschema (>=2.21.1,<3.0.0)",
"filelock (>=3.17.0,<4.0.0)",
"findpython (>=0.6.2,<0.7.0)",
"h11 (>=0.14.0,<0.15.0)",
"httpcore (>=1.0.7,<2.0.0)",
"httpx (>=0.28.1,<0.29.0)",
"hyperlink (>=21.0.0,<22.0.0)",
"idna (>=3.10,<4.0)",
"importlib-metadata (>=8.6.1,<9.0.0)",
"incremental (>=24.7.2,<25.0.0)",
"inflection (>=0.5.1,<0.6.0)",
"installer (>=0.7.0,<0.8.0)",
"jaraco-classes (>=3.4.0,<4.0.0)",
"jaraco-context (>=6.0.1,<7.0.0)",
"jaraco-functools (>=4.1.0,<5.0.0)",
"jeepney (>=0.9.0,<0.10.0)",
"keyring (>=25.6.0,<26.0.0)",
"markdown (>=3.7,<4.0)",
"more-itertools (>=10.6.0,<11.0.0)",
"msgpack (>=1.1.0,<2.0.0)",
"mysqlclient (>=2.2.7,<3.0.0)",
"numpy (>=2.2.3,<3.0.0)",
"oauthlib (>=3.2.2,<4.0.0)",
"openpyxl (>=3.1.5,<4.0.0)",
"packaging (>=24.2,<25.0)",
"pandas (>=2.2.3,<3.0.0)",
"pbs-installer (>=2025.2.12,<2026.0.0)",
"pillow (>=11.1.0,<12.0.0)",
"pkginfo (>=1.12.1.2,<2.0.0.0)",
"platformdirs (>=4.3.6,<5.0.0)",
"pyasn1 (>=0.6.1,<0.7.0)",
"pyasn1-modules (>=0.4.1,<0.5.0)",
"pycparser (>=2.22,<3.0)",
"pyopenssl (>=25.0.0,<26.0.0)",
"pyproject-hooks (>=1.2.0,<2.0.0)",
"python-dateutil (>=2.9.0.post0,<3.0.0)",
"python3-openid (>=3.2.0,<4.0.0)",
"pytz (>=2025.1,<2026.0)",
"pyyaml (>=6.0.2,<7.0.0)",
"rapidfuzz (>=3.12.1,<4.0.0)",
"redis (>=5.2.1,<6.0.0)",
"requests (>=2.32.3,<3.0.0)",
"requests-oauthlib (>=2.0.0,<3.0.0)",
"requests-toolbelt (>=1.0.0,<2.0.0)",
"secretstorage (>=3.3.3,<4.0.0)",
"service-identity (>=24.2.0,<25.0.0)",
"shellingham (>=1.5.4,<2.0.0)",
"six (>=1.17.0,<2.0.0)",
"sniffio (>=1.3.1,<2.0.0)",
"social-auth-app-django (>=5.4.3,<6.0.0)",
"social-auth-core (>=4.5.6,<5.0.0)",
"sqlparse (>=0.5.3,<0.6.0)",
"tomli (>=2.2.1,<3.0.0)",
"tomlkit (>=0.13.2,<0.14.0)",
"trove-classifiers (>=2025.2.18.16,<2026.0.0.0)",
"twisted (>=24.11.0,<25.0.0)",
"txaio (>=23.1.1,<24.0.0)",
"typing-extensions (>=4.12.2,<5.0.0)",
"tzdata (>=2025.1,<2026.0)",
"uritemplate (>=4.1.1,<5.0.0)",
"urllib3 (>=2.3.0,<3.0.0)",
"virtualenv (>=20.29.2,<21.0.0)",
"xlsxwriter (>=3.2.2,<4.0.0)",
"zipp (>=3.21.0,<4.0.0)",
"zope-interface (>=7.2,<8.0)",
"zstandard (>=0.23.0,<0.24.0)"
]
[tool.poetry]
package-mode = false
[tool.poetry.group.dev.dependencies]
black = "^25.1.0"
pylint = "^3.3.4"
pylint-django = "^2.6.1"
isort = "^6.0.1"
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 100
target-version = ['py310']
extend-exclude = '''
(
migrations # Django DB migrations
)
'''
BIN
View File
Binary file not shown.
+1
View File
@@ -20,6 +20,7 @@ class Safety_CommiteeInline(admin.StackedInline):
fields = ('comm',)
ordering = ("comm",)
extra = 0
# class SafetyFileAdmin(admin.ModelAdmin):
+20 -2
View File
@@ -1,21 +1,39 @@
from django.contrib import admin
from .models import *
from .models import Test, TestAnswer, TestQuestion
class TestAnswerInline(admin.StackedInline):
"""
Инлайн ответов
"""
model = TestAnswer
extra = 0
class TestQuestionAdmin(admin.ModelAdmin):
"""
Админка вопросов к тесту
"""
inlines = [TestAnswerInline]
class TestQuestionInline(admin.StackedInline):
"""
Инлайн вопросов
"""
model = TestQuestion
extra = 0
class TestAdmin(admin.ModelAdmin):
"Админка тестов"
inlines = [TestQuestionInline]
admin.site.register(Test, TestAdmin)
admin.site.register(TestQuestion, TestQuestionAdmin)
admin.site.register(TestAnswer)
admin.site.register(TestAnswer)
+14 -16
View File
@@ -50,9 +50,20 @@ class TestAnswer(models.Model):
def __str__(self):
return self.name
class Testing(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
test = models.ForeignKey(Test, on_delete=models.PROTECT, blank=False, verbose_name="Тест")
completion_date = models.DateTimeField(blank=True, null=True, verbose_name="Дата завершения тестирования")
test_passed = models.BooleanField(blank=False, verbose_name="Тест пройден")
class Meta:
verbose_name = "Тестирование"
verbose_name_plural = "Тестирования"
def __str__(self):
return self.test.name
class TestAttempt(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='test_attempts')
test = models.ForeignKey(Test, on_delete=models.CASCADE)
testing = models.ForeignKey(Testing, on_delete=models.CASCADE)
score = models.FloatField(verbose_name='Результат', default=0.0)
attempt_number = models.IntegerField(verbose_name='Номер попытки', default=1)
completion_date = models.DateTimeField(default=datetime.datetime.now, verbose_name="Дата прохождения теста")
@@ -71,17 +82,4 @@ class TestResult(models.Model):
class Meta:
verbose_name = "Результат"
verbose_name_plural = "Результаты"
class Testing(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
test = models.ForeignKey(Test, on_delete=models.PROTECT, blank=False, verbose_name="Тест")
completion_date = models.DateTimeField(blank=True, null=True, verbose_name="Дата завершения тестирования")
test_passed = models.BooleanField(blank=False, verbose_name="Тест пройден")
class Meta:
verbose_name = "Тестирование"
verbose_name_plural = "Тестирования"
def __str__(self):
return self.test.name
verbose_name_plural = "Результаты"
+35 -15
View File
@@ -1,12 +1,16 @@
from rest_framework import serializers
from .models import *
from userauth.models import *
# pylint: skip-file
import base64
import hashlib
from cryptography.fernet import Fernet
from rest_framework import serializers
from userauth.models import *
from .models import *
class TestAnswerSerializer(serializers.ModelSerializer):
class Meta:
class Meta:
model = TestAnswer
fields = '__all__'
@@ -24,27 +28,32 @@ class TestAnswerSerializer(serializers.ModelSerializer):
user_login = self.context['request'].user.username
validated_data['right_wrong'] = self.decrypt_data(str(validated_data['right_wrong']), user_login)
return validated_data
def update(self, instance, validated_data):
user_login = self.context['request'].user.username
validated_data['right_wrong'] = self.decrypt_data(str(validated_data['right_wrong']), user_login)
return validated_data
def to_representation(self, instance):
user_login = self.context['request'].user.username
# user_login = self.context['request'].user.username
user_login = '9966-00-125'
representation = super().to_representation(instance)
representation['right_wrong'] = self.encrypt_data(str(representation['right_wrong']), user_login)
# representation['right_wrong'] = self.encrypt_data(str(representation['right_wrong']), user_login)
return representation
class TestQuestionSerializer(serializers.ModelSerializer):
answers = TestAnswerSerializer(many=True, read_only=True)
class Meta:
model = TestQuestion
fields = '__all__'
class TestSerializer(serializers.ModelSerializer):
questions = TestQuestionSerializer(many=True, read_only=True)
class Meta:
model = Test
fields = '__all__'
@@ -56,26 +65,29 @@ class TestSerializer(serializers.ModelSerializer):
return super().create(validated_data)
class TestingSeriaizer(serializers.ModelSerializer):
class TestingSeriaizer(serializers.ModelSerializer):
class Meta:
model = Testing
fields = '__all__'
class TestAttemptSerializer(serializers.ModelSerializer):
class TestAttemptSerializer(serializers.ModelSerializer):
class Meta:
model = TestAttempt
fields = '__all__'
fields = '__all__'
class TestResultSerializer(serializers.ModelSerializer):
attempt = TestAttemptSerializer(read_only=True)
answer=serializers.PrimaryKeyRelatedField( queryset=TestAnswer.objects.all(),many=False)
answer = serializers.PrimaryKeyRelatedField(queryset=TestAnswer.objects.all(), many=False)
comment = serializers.CharField(allow_null=True)
class Meta:
model = TestResult
fields = '__all__'
class TestsSerializer(serializers.ModelSerializer):
class Meta:
model = Test
@@ -86,4 +98,12 @@ class TestsSerializer(serializers.ModelSerializer):
if user.is_authenticated:
validated_data['author'] = user
return super().create(validated_data)
return super().create(validated_data)
class TestInfoSerializer(serializers.Serializer):
test = TestsSerializer(read_only=True)
# test_answers = TestAnswerSerializer(many=True, read_only=True)
score = serializers.IntegerField(read_only=True)
is_passed = serializers.BooleanField(read_only=True)
test_answers = TestAnswerSerializer(many=True, read_only=True)
+2 -2
View File
@@ -5,7 +5,7 @@ from .views import *
urlpatterns = [
path('testdetail/<int:id>/', TestDetail.as_view(),name='TestDetail'),
path('gettests/', GetTests.as_view(), name="GetTests"),
path('gettesting/', GetTesting.as_view(), name="GetTesting"),
path('testresultcreate/', TestResultCreate.as_view(), name="TestResultCreate"),
# path('gettesting/', GetTesting.as_view(), name="GetTesting"),
path('testresultview/', TestResultView.as_view(), name="TestResultView"),
]
+108 -66
View File
@@ -19,17 +19,37 @@ import base64
import hashlib
from cryptography.fernet import Fernet
from django.db.models import F
from drf_yasg import openapi
from drf_yasg.utils import swagger_auto_schema
class GetTests(generics.ListAPIView):
queryset = Test.objects.all()
serializer_class = TestsSerializer
pagination_class = None
@swagger_auto_schema(
operation_description="""Получить список тестов по статусу
*Нужно авторизоваться!""",
manual_parameters=[
openapi.Parameter(
'status',
openapi.IN_QUERY,
description="Статус тестов (например, 'active', 'completed'). Пустое значение вернет все тесты",
type=openapi.TYPE_STRING,
required=False,
),
],
responses={
200: "success",
400: 'error',
}
)
def get (self, request, *args, **kwargs):
user = request.user
# user = User.objects.get(username='9966-00-125')
status = request.query_params.get('status')
tests = self.get_tests_by_status(status, datetime.now(), user)
if status != None:
if status is not None:
self.set_attemps_number(user, tests)
serialized_tests = self.get_serializer(tests, many=True).data
@@ -55,8 +75,11 @@ class GetTests(generics.ListAPIView):
return status_filters.get(status, Test.objects.none()).order_by('dateend')
def set_attemps_number(self, user, tests):
attempt_counts = TestAttempt.objects.filter(testing__user=user, testing__test__in=tests).values('testing__test').annotate(count=Count('testing__test'))
attempt_counts = {item['testing__test']: item['count'] for item in attempt_counts}
for test in tests:
test.attemps_number = get_attempt_count(user=user, test=test)
test.attemps_number = test.attemps_number - attempt_counts.get(test.id, 0)
class TestDetail(generics.RetrieveUpdateDestroyAPIView):
queryset = Test.objects.all()
@@ -73,92 +96,110 @@ class TestDetail(generics.RetrieveUpdateDestroyAPIView):
return Response(test_serialized)
# class TestListCreate(generics.ListCreateAPIView):
# queryset = Test.objects.all()
# serializer_class = TestSerializer
# class GetTesting(APIView):
# def get(self, request):
# user = request.user
# now = datetime.now()
# status = request.query_params.get('status')
# tests = self.get_tests_by_status(status, now)
# serialized_tests = TestSerializer(tests, many=True).data
# questions = TestQuestion.objects.filter(test__in=tests)
# questions_by_test_id = defaultdict(list)
# for question in questions:
# questions_by_test_id[question.test.id].append(question)
# for test in serialized_tests:
# test['is_passed'] = self.has_participated(user, test['id'])
# related_questions = questions_by_test_id[test['id']]
# test['files'] = [question.file.url for question in related_questions if question.file]
# return Response(serialized_tests)
# tests = Testing.objects.filter(user=user)
# test_names = {test.id: test.test.name for test in tests}
# serializer = TestingSeriaizer(tests, many=True).data
# for test in serializer:
# if test['id'] in test_names:
# test['test_name'] = test_names[test['id']]
# return Response(serializer)
# def get_tests_by_status(self, status, now):
# print(status)
# if status is None:
# return Test.objects.all().order_by('dateend')
# status_filters = {
# 'active': Test.objects.filter(dateend__gt=now),
# 'completed': Test.objects.filter(dateend__lt=now),
# }
# return status_filters.get(status, Test.objects.none()).order_by('dateend')
# def has_participated(self, employee, test):
# return TestResult.objects.filter(user=employee, answer__question__test=test).exists()
class GetTesting(APIView):
def get(self, request):
user = request.user
tests = Testing.objects.filter(user=user)
test_names = {test.id: test.test.name for test in tests}
serializer = TestingSeriaizer(tests, many=True).data
for test in serializer:
if test['id'] in test_names:
test['test_name'] = test_names[test['id']]
return Response(serializer)
class TestResultCreate(generics.ListCreateAPIView):
class TestResultView(generics.ListCreateAPIView):
queryset = TestResult.objects.all()
serializer_class = TestResultSerializer
pagination_class = None
@swagger_auto_schema(
operation_description="""Получить результаты тестов
*Нужно авторизоваться!""",
manual_parameters=[
openapi.Parameter(
'id',
openapi.IN_QUERY,
description="ID теста",
type=openapi.TYPE_INTEGER,
required=True,
),
],
responses={
200: "success",
400: 'error',
}
)
def get(self, request, *args, **kwargs):
user = request.user
# user = User.objects.get(username = "9966-00-125")
test_id = request.GET.get('id')
last_attempt = TestAttempt.objects.filter(testing__user=user, testing__test__id=test_id).order_by('-completion_date').first()
answer_ids = TestResult.objects.filter(attempt=last_attempt).values_list('answer__id', flat=True)
test_info = self.get_test_info(answer_ids)
return Response(data={'score': test_info['score'], 'answered_questions_total': test_info['answered_questions_total']})
@swagger_auto_schema(
operation_description=""" Сохранить результаты тестов
*Нужно авторизоваться!""",
manual_parameters=[
openapi.Parameter(
'status',
openapi.IN_QUERY,
description="Статус тестов (например, 'testing'). Пустое значение - режим тренировки",
type=openapi.TYPE_STRING,
required=False,
),
],
request_body=openapi.Schema(
type=openapi.TYPE_ARRAY,
items=openapi.Schema(
type=openapi.TYPE_OBJECT,
properties={
'answer': openapi.Schema(type=openapi.TYPE_INTEGER, description='ID ответа')
},
),
),
responses={
200: "success",
400: 'error',
}
)
def post(self, request, *args, **kwargs):
user = request.user
# user = User.objects.get(username = "9966-00-125")
test_info = self.get_test_info(request)
test_attempt = self.create_test_attempt(user, test_info)
status = request.query_params.get('status')
answer_ids = [item['answer'] for item in request.data]
test_info = self.get_test_info(answer_ids)
if status == 'testing':
test_attempt = self.create_test_attempt(user, test_info)
serializer = self.get_serializer(data=request.data, many=True)
if serializer.is_valid():
serializer.save(attempt=test_attempt)
self.update_testing(user, test_info)
serializer = self.get_serializer(data=request.data, many=True)
if serializer.is_valid():
serializer.save(attempt=test_attempt)
self.update_testing(user, test_info)
return Response(test_info['is_passed'])
return Response(data={'score': test_info['score'], 'answered_questions_total': test_info['answered_questions_total']})
def create_test_attempt(self, user, test_info):
test = test_info['test']
score = test_info['score']
attempt_count = get_attempt_count(user=user, test=test)+ 1
test_attempt = TestAttempt.objects.create(user=user, test=test , score=score , attempt_number=attempt_count , completion_date= datetime.now())
testing = Testing.objects.get(user=user, test=test)
attempt_count = get_attempt_count(testing)+ 1
test_attempt = TestAttempt.objects.create(testing=testing , score=score , attempt_number=attempt_count , completion_date= datetime.now())
return test_attempt
def update_testing(self, user, test_info):
test = test_info['test']
test_passed = test_info['is_passed']
Testing.objects.update_or_create(user=user, test=test, defaults = {"completion_date": test.dateend,"test_passed":test_passed})
Testing.objects.update_or_create(user=user, test=test, defaults = {"test_passed":test_passed})
def get_test_info(self, request):
def get_test_info(self, answer_ids):
answer_ids = [item['answer'] for item in request.data]
test_answers = TestAnswer.objects.filter(id__in=answer_ids)
test = test_answers[0].question.test
answered_questions_total = test_answers.values('question').distinct().count()
correct_questions = sum(
TestAnswer.objects.filter(
@@ -175,9 +216,10 @@ class TestResultCreate(generics.ListCreateAPIView):
result = {
"is_passed": correct_questions >= pass_perc,
"score": correct_questions,
"test": test
"test": test,
"answered_questions_total": answered_questions_total,
}
return result
def get_attempt_count(user, test):
return TestAttempt.objects.filter(user=user, test=test).count()
def get_attempt_count(testing):
return TestAttempt.objects.filter(testing=testing).count()
+7
View File
@@ -2,6 +2,7 @@ from django.db import models
from userauth.models import *
from accounts.models import User
import datetime
from navigation.models import News
# Create your models here.
class Vote(models.Model):
@@ -10,10 +11,16 @@ class Vote(models.Model):
datestart = models.DateTimeField(default=datetime.datetime.now, verbose_name='Дата и время начала периода')
dateend = models.DateTimeField(default=datetime.datetime.now, verbose_name='Дата и время окончания периода')
author = models.ForeignKey(User, on_delete=models.CASCADE, verbose_name='Создатель голосования')
news = models.ForeignKey(News, on_delete=models.CASCADE, null=True, blank=True, verbose_name='Новость')
def __str__(self):
return self.name
def delete(self, *args, **kwargs):
if self.news:
self.news.delete()
super().delete(*args, **kwargs)
class Meta:
verbose_name = "Голосование"
verbose_name_plural = "Голосования"
+353 -126
View File
@@ -1,232 +1,459 @@
from rest_framework.views import APIView
from rest_framework.response import Response
from django.db.models import Count
from django.db.models import Q
from .models import *
from userauth.models import *
from .serializers import *
from datetime import datetime
from rest_framework import generics
from navigation.models import News
import json
from collections import defaultdict
import os
from django.conf import settings
from django.urls import reverse
import html
from datetime import datetime, timezone
from collections import defaultdict
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import generics
from django.db import DatabaseError
from django.db.models import Count
from accounts.models import User
from navigation.models import News
from userauth.models import DictDepartment, DictEmployee, EmployeeDepartment
from .models import Vote, Answer, Question, Result
from .serializers import (
VoteSerializer,
VotesSerializer,
DictEmployeeSerializer,
ResultSerializer,
)
class GetVotes(APIView):
"""
Комментарий
"""
def get(self, request):
"""
Комментарий
"""
user = request.user
# user = User.objects.get(username='9966-00-125')
now = datetime.now()
status = request.query_params.get('status')
#
status = request.query_params.get("status")
votes = self.get_votes_by_status(status, now)
serialized_votes = VotesSerializer(votes, many=True).data
questions_by_vote_id = self.get_questions_by_vote_id(votes)
self.enrich_votes(serialized_votes, questions_by_vote_id, user)
return Response(serialized_votes)
def get_votes_by_status(self, status, now):
"""
Комментарий
"""
print(status)
if status is None:
return Vote.objects.all().order_by("dateend")
status_filters = {
"active": Vote.objects.filter(dateend__gt=now),
"completed": Vote.objects.filter(dateend__lt=now),
}
return status_filters.get(status, Vote.objects.none()).order_by("dateend")
def get_questions_by_vote_id(self, votes):
"""
Комментарий
"""
questions = Question.objects.filter(vote__in=votes)
questions_by_vote_id = defaultdict(list)
for question in questions:
questions_by_vote_id[question.vote.id].append(question)
return questions_by_vote_id
def enrich_votes(self, serialized_votes, questions_by_vote_id, user):
"""
Комментарий
"""
for vote in serialized_votes:
vote['is_passed'] = self.has_participated(user, vote['id'])
related_questions = questions_by_vote_id[vote['id']]
vote['files'] = [question.file.url for question in related_questions if question.file]
return Response(serialized_votes)
def get_votes_by_status(self, status, now):
print(status)
if status is None:
return Vote.objects.all().order_by('dateend')
status_filters = {
'active': Vote.objects.filter(dateend__gt=now),
'completed': Vote.objects.filter(dateend__lt=now),
}
return status_filters.get(status, Vote.objects.none()).order_by('dateend')
vote["is_passed"] = self.has_participated(user, vote["id"])
related_questions = questions_by_vote_id[vote["id"]]
vote["files"] = [
question.file.url for question in related_questions if question.file
]
def has_participated(self, employee, vote):
return Result.objects.filter(user=employee, answer__question__vote=vote).exists()
"""
Комментарий
"""
return Result.objects.filter(
user=employee, answer__question__vote=vote
).exists()
class VoteDetail(generics.RetrieveUpdateDestroyAPIView):
"""
Комментарий
"""
queryset = Vote.objects.all()
serializer_class = VoteSerializer
lookup_url_kwarg = 'id'
lookup_field = 'id'
lookup_url_kwarg = "id"
lookup_field = "id"
def get(self, request, *args, **kwargs):
results = Result.objects.filter(answer__question__vote=kwargs['id'], user=request.user)
if results:
return Response({'status': 'error', 'message': 'voted'}, status=400)
try:
vote = Vote.objects.get(id=kwargs['id'])
if vote.dateend < datetime.now(timezone.utc):
return Response({'status': 'error', 'message': 'Voting is over'}, status=400)
except Exception as e:
return Response({'status': 'error', 'message': str(e)}, status=400)
answers_employee = Answer.objects.filter(question__vote=vote).filter(question__settings__choice="employee").values('name', 'question')
"""
Комментарий
"""
answers_names = [item['name'] for item in answers_employee]
question_ids = [item['question'] for item in answers_employee]
if answers_employee:
employees_serializer = get_employees_serializer(answers_names)
employee_dict = {employee['id']: employee for employee in employees_serializer}
# if self.check_user_vote(kwargs['id'], User.objects.get(username='9966-00-125')):
if self.check_user_vote(kwargs["id"], request.user):
return Response({"status": "error", "message": "voted"}, status=400)
vote = self.get_vote(kwargs["id"])
if isinstance(vote, Response):
return vote
answers_employee = self.get_employee_answers(vote)
answers_names = [item["name"] for item in answers_employee]
employee_dict = self.serialize_employees(answers_names)
serialized_data = self.retrieve(request, *args, **kwargs).data
for question in serialized_data['questions']:
for answer in question['answers']:
if question['id'] in question_ids:
if answer['name'] in answers_names:
answer['employee'] = employee_dict.get(int(answer['name']))
self.add_employee_info(
serialized_data, answers_employee, answers_names, employee_dict
)
return Response(serialized_data)
def check_user_vote(self, vote_id, user):
"""
Комментарий
"""
results = Result.objects.filter(answer__question__vote=vote_id, user=user)
return results.exists()
def get_vote(self, vote_id):
"""
Получить незавершенное голосование
"""
try:
vote = Vote.objects.get(id=vote_id)
if vote.dateend < datetime.now(timezone.utc):
return Response(
{"status": "error", "message": "Voting is over"}, status=400
)
return vote
except Vote.DoesNotExist as e:
return Response({"status": "error", "message": str(e)}, status=400)
def get_employee_answers(self, vote):
"""
Комментарий
"""
return (
Answer.objects.filter(question__vote=vote)
.filter(question__settings__choice="employee")
.values("name", "question")
)
def serialize_employees(self, answers_names):
"""
Комментарий
"""
employees_serializer = get_employees_serializer(answers_names)
return {employee["id"]: employee for employee in employees_serializer}
def add_employee_info(
self, serialized_data, answers_employee, answers_names, employee_dict
):
"""
Комментарий
"""
question_ids = [item["question"] for item in answers_employee]
for question in serialized_data["questions"]:
for answer in question["answers"]:
if question["id"] in question_ids:
if answer["name"] in answers_names:
answer["employee"] = employee_dict.get(int(answer["name"]))
class VoteCreate(APIView):
"""
Комментарий
"""
def post(self, request):
"""
Комментарий
"""
try:
vote = self.create_vote(request)
self.create_news(request, vote)
return Response({'status': 'success', 'message': 'Vote and news created successfully.'}, status=200)
except Exception as e:
if request.data.get("news") == "true":
self.create_news(request, vote)
return Response(
{"status": "success", "message": "Vote and news created successfully."},
status=200,
)
except ValueError as e:
return Response({"status": "error", "message": str(e)}, status=400)
except DatabaseError as e:
print(e)
return Response({'status': 'error', 'message': str(e)}, status=400)
return Response({"status": "error", "message": str(e)}, status=400)
def create_vote(self, request):
"""
Комментарий
"""
user = request.user
vote = Vote.objects.create(
name=request.data['title'],
description=request.data['description'],
datestart=request.data['startDate'],
dateend=request.data['endDate'],
name=request.data["title"],
description=request.data["description"],
datestart=request.data["startDate"],
dateend=request.data["endDate"],
author=user,
)
questions_files = {file.name: file for file in request.FILES.getlist('questionsfiles')}
answers_files = {file.name: file for file in request.FILES.getlist('answersfiles')}
questions_files = {
file.name: file for file in request.FILES.getlist("questionsfiles")
}
answers_files = {
file.name: file for file in request.FILES.getlist("answersfiles")
}
questions = json.loads(request.data['questions'])
questions = json.loads(request.data["questions"])
for count, question_data in enumerate(questions, start=1):
question_image = questions_files.get(question_data['image']['name']) if 'image' in question_data and question_data['image'] is not None else None
question_image = (
questions_files.get(question_data["image"]["name"])
if "image" in question_data and question_data["image"] is not None
else None
)
question = Question.objects.create(
name=question_data['text'],
name=question_data["text"],
vote=vote,
file=question_image,
numb=count,
settings=question_data.get('settings', {}),
settings=question_data.get("settings", {}),
)
for answer in question_data['answers']:
answer_image = answers_files.get(answer['image']['name']) if 'image' in answer and answer['image'] is not None else None
for answer in question_data["answers"]:
answer_image = (
answers_files.get(answer["image"]["name"])
if "image" in answer and answer["image"] is not None
else None
)
Answer.objects.create(
name=answer['text'],
file=answer_image,
question=question
name=answer["text"], file=answer_image, question=question
)
return vote
def create_news(self, request, vote):
"""
Комментарий
"""
formatted_date = datetime.strptime(request.data["endDate"][:-1], "%Y-%m-%dT%H:%M:%S.%f").strftime("%d.%m.%Y %H:%M")
vote_url = make_clickable(request.data['title'], f"/vote/voting/{vote.id}")
formatted_date = datetime.strptime(
request.data["endDate"][:-1], "%Y-%m-%dT%H:%M:%S.%f"
).strftime("%d.%m.%Y %H:%M")
vote_url = make_clickable(request.data["title"], f"/vote/voting/{vote.id}")
news = News(
title = 'Пройдите голосование!',
text = f'Пройдите голосование "{vote_url}" до {formatted_date}',
cdate = request.data['startDate'],
author = request.user,
link = os.path.join('defaultimg','vote.png'),
vote = vote
title="Пройдите голосование!",
text=f'Пройдите голосование "{vote_url}" до {formatted_date}',
cdate=request.data["startDate"],
author=request.user,
link=os.path.join("defaultimg", "vote.png"),
)
news.save()
news.save()
vote.news = news
vote.save()
def make_clickable(text, url):
"""
Комментарий
"""
text = html.escape(text)
anchor = f'<a href="{html.escape(url)}">{text}</a>'
return anchor
class GetDictEmployee(APIView):
"""
Комментарий
"""
def get(self, request):
"""
Комментарий
"""
employees = DictEmployee.objects.filter(deleted=0)
set_real_departments(employees)
employees_serializer = DictEmployeeSerializer(employees, many=True).data
return Response(employees_serializer)
class GetResults(APIView):
"""
Комментарий
"""
def get(self, request):
vote_id = request.GET.get('id')
try:
vote = Vote.objects.get(id=vote_id)
except Vote.DoesNotExist:
return Response({'status': 'error', 'message': 'Vote not found'}, status=404)
"""
Комментарий
"""
vote_id = request.GET.get("id")
vote = self.get_vote(vote_id)
if isinstance(vote, Response):
return vote
serialized_data = VoteSerializer(vote).data
answers_employee = Answer.objects.filter(
question__vote=vote,
question__settings__choice="employee"
).values('name', 'question')
answers_names = [item['name'] for item in answers_employee]
question_ids = [item['question'] for item in answers_employee]
answers_employee = self.get_employee_answers(vote)
answers_names = [item["name"] for item in answers_employee]
employee_dict = self.create_employee_dict(answers_names)
result_dict = self.get_answer_counts(vote)
info = {
"serialized_data": serialized_data,
"answers_employee": answers_employee,
"answers_names": answers_names,
"employee_dict": employee_dict,
"result_dict": result_dict,
}
self.add_employee_info(info)
employee_dict = {}
if answers_employee:
employees_serializer = get_employees_serializer(answers_names)
employee_dict = {employee['id']: employee for employee in employees_serializer}
results = Result.objects.filter(
answer__question__vote=vote
).values('answer_id').annotate(count=Count('id'))
result_dict = {int(result['answer_id']): result['count'] for result in results}
for question in serialized_data['questions']:
for answer in question['answers']:
answer['count'] = result_dict.get(int(answer['id']), 0)
if question['id'] in question_ids:
if answer['name'] in answers_names:
answer['employee'] = employee_dict.get(int(answer['name']))
users = Result.objects.filter(answer__question__vote=vote).values('user_id')
users = User.objects.filter(created_at__lt=vote.dateend).exclude(id__in=users)
employee_ids = users.values_list('user_id', flat=True)
serialized_data['nonvoting'] = get_employees_serializer(employee_ids)
serialized_data["nonvoting"] = self.get_non_voting_employees(vote)
return Response(serialized_data)
def get_vote(self, vote_id):
"""
Комментарий
"""
try:
vote = Vote.objects.get(id=vote_id)
return vote
except Vote.DoesNotExist:
return Response(
{"status": "error", "message": "Vote not found"}, status=404
)
def get_employee_answers(self, vote):
"""
Комментарий
"""
answers_employee = Answer.objects.filter(
question__vote=vote, question__settings__choice="employee"
).values("name", "question")
return answers_employee
def create_employee_dict(self, answers_names):
"""
Комментарий
"""
if not answers_names:
return {}
employees_serializer = get_employees_serializer(answers_names)
return {employee["id"]: employee for employee in employees_serializer}
def get_answer_counts(self, vote):
"""
Комментарий
"""
results = (
Result.objects.filter(answer__question__vote=vote)
.values("answer_id")
.annotate(count=Count("id"))
)
return {int(result["answer_id"]): result["count"] for result in results}
def add_employee_info(self, info):
"""
info ={serialized_data, answers_employee, answers_names, employee_dict, result_dict}
Комментарий
"""
serialized_data = info.get("serialized_data")
answers_employee = info.get("answers_employee")
answers_names = info.get("answers_names")
employee_dict = info.get("employee_dict")
result_dict = info.get("result_dict")
question_ids = [item["question"] for item in answers_employee]
for question in serialized_data["questions"]:
for answer in question["answers"]:
answer["count"] = result_dict.get(int(answer["id"]), 0)
if question["id"] in question_ids:
if answer["name"] in answers_names:
answer["employee"] = employee_dict.get(int(answer["name"]))
def get_non_voting_employees(self, vote):
"""
Комментарий
"""
users = Result.objects.filter(answer__question__vote=vote).values("user_id")
non_voting_users = User.objects.filter(created_at__lt=vote.dateend).exclude(
id__in=users
)
employee_ids = non_voting_users.values_list("user_id", flat=True)
return get_employees_serializer(employee_ids)
class VoteResultCreate(generics.ListCreateAPIView):
"""
Комментарий
"""
queryset = Result.objects.all()
serializer_class = ResultSerializer
def create(self, request, *args, **kwargs):
"""
Комментарий
"""
serializer = self.get_serializer(data=request.data, many=True)
if serializer.is_valid():
serializer.save()
return Response(serializer.data)
def get_employees_serializer(ids):
"""
Комментарий
"""
employees = DictEmployee.objects.filter(id__in=ids)
set_real_departments(employees)
set_real_departments(employees)
employees_serializer = DictEmployeeSerializer(employees, many=True).data
return employees_serializer
def set_real_departments(employees):
"""
Комментарий
"""
employee_departments = EmployeeDepartment.objects.filter(employee__in=employees)
departments = DictDepartment.objects.in_bulk([ed.department.id for ed in employee_departments])
department_map = {ed.employee.id: {'name': ed.department.name, 'id': departments[ed.department.id]} for ed in employee_departments}
departments = DictDepartment.objects.in_bulk(
[ed.department.id for ed in employee_departments]
)
department_map = {
ed.employee.id: {
"name": ed.department.name,
"id": departments[ed.department.id],
}
for ed in employee_departments
}
for employee in employees:
if employee.id in department_map:
employee.department = department_map[employee.id]['name']
employee.id_dict_department = department_map[employee.id]['id']
employee.department = department_map[employee.id]["name"]
employee.id_dict_department = department_map[employee.id]["id"]
+1
View File
@@ -3,4 +3,5 @@ from django.apps import AppConfig
class WatcherConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'watcher'
+9 -2
View File
@@ -7,15 +7,22 @@ import jwt
import redis
class WatcherConsumer(AsyncWebsocketConsumer):
async def connect(self):
self.client = redis.Redis(host='127.0.0.1')
async def connect(self):
print("Sdsdsdds")
self.client = redis.Redis(host='redis')
user = parse_qs(self.scope["query_string"].decode("utf8"))["token"][0]
user = jwt.decode(user, options={"verify_signature": False})
# self.client.sadd('online',json.dumps(user['user'],indent=4))
self.room_group_name = "online"
self.client.hset('online',str(self.channel_name), user['user']['login'] )
# Join room group
await self.channel_layer.group_add(
self.room_group_name, self.channel_name
)
+1 -1
View File
@@ -4,4 +4,4 @@ module.exports = {
node: true,
},
extends: ['plugin:vue/vue3-essential', 'eslint:recommended', 'plugin:storybook/recommended'],
}
};
@@ -1 +0,0 @@
.vertext{writing-mode:vertical-rl;transform:rotate(180deg)}.deps-title{height:90px}.rotate-text{transform:rotate(-90deg)}.minh{min-height:43px}.heightfoto{max-height:140px;min-height:140px}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{backgLine truncated
-4
View File
@@ -1,4 +0,0 @@
import{_ as Xt,O as on,P as sn,s as V,t as ot,v as f,x as d,F as T,C as j,$ as tt,E as R,aV as vr,r as q,aC as Mo,aN as Xi,Q as Ct,S as Yt,R as Ht,T as Ne,U as vt,L as st,D as yt,y as F,a3 as yr,z as xr,V as Fe,b9 as oe,q as se,aY as Mt,be as xe,n as Jt,bf as re,w as bo,k as ae,bg as rn,bh as wr,b as br,p as Ft,f as di,e as an,g as Lr,a5 as mi,B as dt,a2 as Qi,b0 as tn,Z as en,X as Pr,W as Tr,Y as Sr,a$ as Cr,A as zo,c as ko,bi as Mr,b3 as zr}from"./index-C95RwDyc.js";import{V as nn}from"./VList-CyfHwXPn.js";import{P as kr}from"./PatternTabs-DP6kb3_a.js";import{V as Or}from"./VForm-CNtdyF6c.js";import{V as Ji}from"./VTextField-CHiGXnf9.js";import{V as Ar}from"./VTextarea-vBlWUtyD.js";import{V as Er}from"./VFileInput-oVS2J4wh.js";import{a as fi}from"./VWindowItem-CwjWCzE9.js";import"./ssrBoot-CCLXtj7a.js";import"./VTabs-B5dBzlqM.js";import"./VInput-B82efaBR.js";/* empty css */import"./VField-DAxmwXK8.js";function Ir(c,l){for(var a=0;a<l.length;a++){const u=l[a];if(typeof u!="string"&&!Array.isArray(u)){for(const m in u)if(m!=="default"&&!(m in c)){const y=Object.getOwnPropertyDescriptor(u,m);y&&Object.defineProperty(c,m,y.get?y:{enumerable:!0,get:()=>u[m]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}const Br={props:{sText:{type:String,default:""}},setup(){return{checkremote:on,spravURL:sn}}},Zr={class:"vertext text-button my-1 pb-13"};function Rr(c,l,a,u,m,y){return V(),ot(R,{"no-gutters":"",class:"h-100"},{default:f(()=>[d(T,{class:"align-self-center flex-grow-0"},{default:f(()=>[j("span",Zr,tt(a.sText),1)]),_:1}),d(T,{class:"w100"},{default:f(()=>[a.sText=="Руководство"?(V(),ot(R,{key:0,"no-gutters":"",class:"text-center text-button py-2"})):(V(),ot(R,{key:1,"no-gutters":"",class:"text-center text-button py-2"})),d(R,{"no-gutters":"",class:"h-100"},{default:f(()=>[vr(c.$slots,"cardboss")]),_:3})]),_:3})]),_:3})}const Dr=Xt(Br,[["render",Rr]]),Nr={components:{StructureInspectionRow:Dr},setup(){const c=q([]),{smAndDown:l,mdAndDown:a,lgAndDown:u}=Mo();return(()=>{Ne.get("api/about_inspection/getstructure/").then(y=>{c.value=y.data})})(),{structures:c,checkremote:on,spravURL:sn,mdAndDown:a,lgAndDown:u,smAndDown:l}}};function Vr(c,l,a,u,m,y){const g=vt("list-user");return V(),ot(R,{"no-gutters":"",class:"h-100 gap"},{default:f(()=>[d(T,{class:"flex-grow-0 d-flex d-sm-none d-lg-none d-xl-flex"},{default:f(()=>[d(R,{"no-gutters":"",class:"flex-column"},{default:f(()=>[d(T,{lg:"4"},{default:f(()=>l[0]||(l[0]=[j("span",{class:"vertext text-button my-1 pb-8"},"Руководство",-1)])),_:1}),d(T,null,{default:f(()=>l[1]||(l[1]=[j("span",{class:"vertext text-button my-1 pb-13"},"Структурные подразделения",-1)])),_:1})]),_:1})]),_:1}),d(T,{class:"d-flex"},{default:f(()=>[d(R,{"no-gutters":"",class:Xi(u.smAndDown?" flex-column":"")},{default:f(()=>[(V(!0),Ct(Ht,null,Yt(u.structures,x=>(V(),ot(T,{md:u.mdAndDown?"12":"",lg:u.lgAndDown?6:"",class:"w100 flex-column d-flex",key:x.id},{default:f(()=>[d(R,{"no-gutters":"",class:"flex-grow-0"},{default:f(()=>[d(T,{class:"flex-column d-flex"},{default:f(()=>[d(R,{"no-gutters":"",class:"mb-2 mt-1 justify-center d-flex mx-1"},{default:f(()=>[d(st,{class:"flex-column d-flex flex-grow-1",elevation:10},{default:f(()=>[d(yt,{class:"pa-0"},{default:f(()=>[d(T,{lg:"12",class:"pa-0"},{default:f(()=>[d(R,{"no-gutters":""},{default:f(()=>[d(T,{class:"d-flex py-3 justify-center align-center font-weight-medium text-uppercase"},{default:f(()=>[F(tt(x.post),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),d(R,{"no-gutters":""},{default:f(()=>[d(T,{lg:"4",class:"pa-1 heightfoto"},{default:f(()=>[d(g,{author:x,from_which:"top_comment"},null,8,["author"])]),_:2},1024),d(T,{class:"text-center align-self-center font-weight-medium"},{default:f(()=>[F(tt(x.fio),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024),d(R,{"no-gutters":"",class:Xi(u.lgAndDown?"":"gap h-0 overflow-auto")},{default:f(()=>[d(T,{lg:"12"},{default:f(()=>[(V(!0),Ct(Ht,null,Yt(x.deps,v=>(V(),ot(R,{"no-gutters":"",class:"gap mb-1",key:v.id},{default:f(()=>[d(T,{class:"d-flex flex-column"},{default:f(()=>[d(st,{class:"flex-column d-flex flex-grow-1 mx-1",elevation:5},{default:f(()=>[d(yt,{class:"pa-1 pt-3 px-3 flex-column"},{default:f(()=>[d(T,{lg:"12",class:"minh pa-0"},{default:f(()=>[d(R,{"no-gutters":""},{default:f(()=>[d(T,{class:"text-wrap text-center text-body-2 font-weight-medium text-uppercase"},{default:f(()=>[F(tt(v.name),1)]),_:2},1024),d(T,{class:"flex-grow-0"},{default:f(()=>[d(yr,{location:"top"},{activator:f(({props:M})=>[j("span",xr({ref_for:!0},M),[d(Fe,{size:"large",color:"green",icon:"mdi-arrow-top-right"})],16)]),default:f(()=>[d(R,null,{default:f(()=>[d(T,null,{default:f(()=>l[2]||(l[2]=[F(" Перейти на страницу отдела ")])),_:1})]),_:1})]),_:1})]),_:1})]),_:2},1024)]),_:2},1024),d(R,{"no-gutters":""},{default:f(()=>[d(g,{author:v.chief_deps},null,8,["Line truncated
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/var _a=Ve.exports,Co;function pa(){return Co||(Co=1,function(c,l){(function(a,u){u(l)})(_a,function(a){var u="1.9.4";function m(t){var e,i,n,o;for(i=1,n=arguments.length;i<n;i++){o=arguments[i];for(e in o)t[e]=o[e]}return t}var y=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function g(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var x=0;function v(t){return"_leaflet_id"in t||(t._leaflet_id=++x),t._leaflet_id}function M(t,e,i){var n,o,s,r;return r=function(){n=!1,o&&(s.apply(i,o),o=!1)},s=function(){n?o=arguments:(t.apply(i,arguments),setTimeout(r,e),n=!0)},s}function P(t,e,i){var n=e[1],o=e[0],s=n-o;return t===n&&i?t:((t-o)%s+s)%s+o}function S(){return!1}function G(t,e){if(e===!1)return t;var i=Math.pow(10,e===void 0?6:e);return Math.round(t*i)/i}function H(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function lt(t){return H(t).split(/\s+/)}function N(t,e){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?y(t.options):{});for(var i in e)t.options[i]=e[i];return t.options}function xt(t,e,i){var n=[];for(var o in t)n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(!e||e.indexOf("?")===-1?"?":"&")+n.join("&")}var X=/\{ *([\w_ -]+) *\}/g;function rt(t,e){return t.replace(X,function(i,n){var o=e[n];if(o===void 0)throw new Error("No value provided for variable "+i);return typeof o=="function"&&(o=o(e)),o})}var K=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function kt(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var jt="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function mt(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var qe=0;function Ut(t){var e=+new Date,i=Math.max(0,16-(e-qe));return qe=e+i,window.setTimeout(t,i)}var I=window.requestAnimationFrame||mt("RequestAnimationFrame")||Ut,$=window.cancelAnimationFrame||mt("CancelAnimationFrame")||mt("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function ut(t,e,i){if(i&&I===Ut)t.call(e);else return I.call(window,g(t,e))}function wt(t){t&&$.call(window,t)}var qo={__proto__:null,extend:m,create:y,bind:g,get lastId(){return x},stamp:v,throttle:M,wrapNum:P,falseFn:S,formatNum:G,trim:H,splitWords:lt,setOptions:N,getParamString:xt,template:rt,isArray:K,indexOf:kt,emptyImageUrl:jt,requestFn:I,cancelFn:$,requestAnimFrame:ut,cancelAnimFrame:wt};function Bt(){}Bt.extend=function(t){var e=function(){N(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},i=e.__super__=this.prototype,n=y(i);n.constructor=e,e.prototype=n;for(var o in this)Object.prototype.hasOwnProperty.call(this,o)&&o!=="prototype"&&o!=="__super__"&&(e[o]=this[o]);return t.statics&&m(e,t.statics),t.includes&&(Go(t.includes),m.apply(null,[n].concat(t.includes))),m(n,t),delete n.statics,delete n.includes,n.options&&(n.options=i.options?y(i.options):{},m(n.options,t.options)),n._initHooks=[],n.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var s=0,r=n._initHooks.length;s<r;s++)n._initHooks[s].call(this)}},e},Bt.include=function(t){var e=this.prototype.options;return m(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},Bt.mergeOptions=function(t){return m(this.prototype.options,t),this},Bt.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i=typeof t=="function"?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};function Go(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=K(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var gt={on:function(t,e,i){if(typeof t=="object")for(var n in t)this._on(n,t[n],e);else{t=lt(t);for(var o=0,s=t.length;o<s;o++)this._on(t[o],e,i)}return this},off:function(t,e,i){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var n in t)this._off(n,t[n],e);else{t=lt(t);for(var o=arguments.length===1,s=0,r=t.length;s<r;s++)o?this._off(t[s]):this._off(t[s],e,i)}return this},_on:function(t,e,i,n){if(typeof e!="function"){console.warn("wrong listener type: "+typeof e);return}if(this._listens(t,e,i)===!1){i===this&&(i=void 0);var o={fn:e,ctx:i};n&&(o.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(o)}},_off:function(t,e,i){var n,o,s;if(this._events&&(n=this._events[t],!!n)){if(arguments.length===1){if(this._firingCount)for(o=0,s=n.length;o<s;o++)n[o].fn=S;delete this._events[t];return}if(typeof e!="function"){console.warn("wrong listener type: "+typeof Line truncated
-29
View File
@@ -1,29 +0,0 @@
var sr=Object.defineProperty;var or=(i,t,e)=>t in i?sr(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var D=(i,t,e)=>or(i,typeof t!="symbol"?t+"":t,e);import{d as rr,r as ct,_ as at,s as T,t as z,v as x,x as _,F as I,y as q,$ as W,a3 as Lt,V as kt,z as Yt,C as P,E as j,Q as ot,L as le,U as Y,bj as ar,D as qi,aV as Gs,a6 as lr,aa as cr,bk as hr,al as Zt,f as It,af as _i,aH as dr,ae as ur,ar as Ei,O as fr,P as gr,S as Xt,R as Kt,Z as pr,aN as Wt,A as Ln,a0 as Ve,bl as Js,b0 as mr,bm as Zs,aW as xi,bn as yi,bo as Vt,b9 as Qs,bf as Gi,bp as br,q as _r,bg as xr,w as dn,bq as Ji,n as yr,br as to,bs as tt,a1 as vr,bt as At,bu as Fn,b3 as wr,T as kr,bv as Sr}from"./index-C95RwDyc.js";import{m as Mr,a as Cr,c as Pr,b as Dr,d as Or,u as Tr,p as Ar,e as Rr,f as Ir,g as Lr,h as Fr,i as Er,j as zr,V as En,k as zn,l as je,n as Br,o as Hr}from"./VDataTable-DYhe0Cof.js";import{m as Wr,u as Vr,V as jr}from"./VSelect-exBxBFF_.js";import{m as Nr,u as $r}from"./filter-BoX0E7iY.js";import{a as Yr,F as Ur,V as Xr}from"./VToolbar-DOTGUEEC.js";import{D as eo}from"./date-select-B80S3Jhq.js";import{V as Kr}from"./VSwitch-Cna9Tqlh.js";import"./VPagination-Ckkl08Vh.js";import"./VCheckboxBtn-RWiQsUNN.js";import"./VSelectionControl-CabHpyF4.js";import"./VInput-B82efaBR.js";import"./VTextField-CHiGXnf9.js";/* empty css */import"./VField-DAxmwXK8.js";import"./VList-CyfHwXPn.js";import"./ssrBoot-CCLXtj7a.js";import"./VTextarea-vBlWUtyD.js";import"./VLocaleProvider-BNvftIh0.js";import"./VSpacer-s9BvDJET.js";const Ti=rr("filter",()=>({date_period:ct({startdate:new Date(new Date().getFullYear(),0,1),enddate:new Date})})),qr={props:{indicator:{type:Object,default:{}}}},Gr={class:"text-caption"},Jr={key:1};function Zr(i,t,e,n,s,o){const r=Y("vue3-autocounter");return T(),z(le,{class:"text-center text-blue-grey-darken-4 d-flex h-100 flex-column cursor-default justify-center"},{default:x(()=>[_(j,{"no-gutters":"",class:"flex-grow-0"},{default:x(()=>[_(I,{class:"text-h5 font-weight-bold pl-5"},{default:x(()=>[q(W(e.indicator.title)+" ",1),_(Lt,{width:"250"},{activator:x(({props:a})=>[_(kt,Yt({icon:"mdi-information",color:"cyan-darken-3",size:"12"},a,{class:"align-self-end pr-2 pb-5 cursor-help"}),null,16)]),default:x(()=>[P("span",Gr,W(e.indicator.tooltip),1)]),_:1})]),_:1})]),_:1}),_(j,{"no-gutters":"",class:"flex-grow-0"},{default:x(()=>[_(I,{class:"text-h6 font-weight-medium"},{default:x(()=>[q(W(e.indicator.abb),1)]),_:1})]),_:1}),_(j,{"no-gutters":"",class:"flex-grow-0 pt-3"},{default:x(()=>[_(I,{class:"text-h3 text-grey-darken-3 text-center font-weight-regular align-self-center"},{default:x(()=>[Number.isNaN(e.indicator.data)?(T(),ot("div",Jr,[_(j,null,{default:x(()=>[_(I,{class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},{default:x(()=>t[0]||(t[0]=[q(" Данных нет ")])),_:1})]),_:1})])):(T(),z(r,{key:0,ref:"counter",startAmount:0,endAmount:e.indicator.data,duration:1,decimals:Number.isInteger(e.indicator.data)?0:2,suffix:e.indicator.abb=="(PPV)"?"":"%"},null,8,["endAmount","decimals","suffix"]))]),_:1})]),_:1})]),_:1})}const io=at(qr,[["render",Zr]]),Qr={props:{title:{type:String,default:""},ico:{type:String,default:""}}};function ta(i,t,e,n,s,o){return T(),z(le,{class:"text-center h-100 d-flex flex-column"},{default:x(()=>[_(j,{"no-gutters":"",class:"flex-grow-0"},{default:x(()=>[_(I,{class:"d-flex flex-column pa-1"},{default:x(()=>[_(ar,{color:"light-blue-darken-4",label:"",class:"text-center text-cyan-darken-4 rounded-0 text-subtitle-1 font-weight-medium"},{default:x(()=>[_(kt,{start:"",color:"cyan-darken-4",icon:e.ico},null,8,["icon"]),q(" "+W(e.title),1)]),_:1})]),_:1})]),_:1}),_(j,{"no-gutters":""},{default:x(()=>[_(I,{class:"flex-column d-flex"},{default:x(()=>[_(qi,{class:"px-3 py-1 flex-column d-flex h-0 overflow-x-auto overflow-x-hidden"},{default:x(()=>[Gs(i.$slots,"filling")]),_:3})]),_:3})]),_:3})]),_:3})}const Ai=at(Qr,[["render",ta]]),ea=lr({...Mr(),...Cr(),...Wr(),...Nr()},"VDataTableVirtual"),no=cr()({name:"VDataTableVirtual",props:ea(),emits:{"update:modelValue":i=>!0,"update:sortBy":i=>!0,"update:options":i=>!0,"update:groupBy":i=>!0,"update:expanded":i=>!0},setup(i,t){let{attrs:e,slots:n}=t;const{groupBy:s}=Pr(i),{sortBy:o,multiSort:r,mustSort:a}=Dr(i),{disableSort:l}=hr(i),{columns:c,headers:h,filterFunctions:d,sortFunctions:u,sortRawFunctions:f}=Or(i,{groupBy:s,showSelect:Zt(i,"showSelect"),showExpand:Zt(i,"showExpand")}),{items:g}=Tr(i,c),p=Zt(i,"search"),{filteredItems:m}=$r(i,g,p,{transform:xt=>xt.columns,customKeyFilter:d}),{toggleSort:b}=Ar({sortBy:o,multiSort:r,mustSort:a}),{sortByWithGroups:y,opened:w,extractRows:k,isGroupOpen:v,toggleGroup:M}=Rr({groupBy:s,sortBy:o,disableSort:l}),{sortedItems:C}=Ir(i,m,y,{transform:xt=>({...xt.raw,...xt.columns}),sortFunctions:u,sortRawFunctions:f}),{flatItems:S}=Lr(C,s,w),O=It(()=>k(S.value)),{isSelected:R,select:A,selectAll:L,toggleSelect:J,someSelected:lt,allSelected:B}=Fr(i,{allItems:O,curLine truncated
* @kurkle/color v0.3.4
* https://github.com/kurkle/color#readme
* (c) 2024 Jukka Kurkela
* Released under the MIT License
*/function qe(i){return i+.5|0}const jt=(i,t,e)=>Math.max(Math.min(i,e),t);function De(i){return jt(qe(i*2.55),0,255)}function Ut(i){return jt(qe(i*255),0,255)}function Tt(i){return jt(qe(i/2.55)/100,0,1)}function Bn(i){return jt(qe(i*100),0,100)}const pt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Zi=[..."0123456789ABCDEF"],Ra=i=>Zi[i&15],Ia=i=>Zi[(i&240)>>4]+Zi[i&15],Je=i=>(i&240)>>4===(i&15),La=i=>Je(i.r)&&Je(i.g)&&Je(i.b)&&Je(i.a);function Fa(i){var t=i.length,e;return i[0]==="#"&&(t===4||t===5?e={r:255&pt[i[1]]*17,g:255&pt[i[2]]*17,b:255&pt[i[3]]*17,a:t===5?pt[i[4]]*17:255}:(t===7||t===9)&&(e={r:pt[i[1]]<<4|pt[i[2]],g:pt[i[3]]<<4|pt[i[4]],b:pt[i[5]]<<4|pt[i[6]],a:t===9?pt[i[7]]<<4|pt[i[8]]:255})),e}const Ea=(i,t)=>i<255?t(i):"";function za(i){var t=La(i)?Ra:Ia;return i?"#"+t(i.r)+t(i.g)+t(i.b)+Ea(i.a,t):void 0}const Ba=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function oo(i,t,e){const n=t*Math.min(e,1-e),s=(o,r=(o+i/30)%12)=>e-n*Math.max(Math.min(r-3,9-r,1),-1);return[s(0),s(8),s(4)]}function Ha(i,t,e){const n=(s,o=(s+i/60)%6)=>e-e*t*Math.max(Math.min(o,4-o,1),0);return[n(5),n(3),n(1)]}function Wa(i,t,e){const n=oo(i,1,.5);let s;for(t+e>1&&(s=1/(t+e),t*=s,e*=s),s=0;s<3;s++)n[s]*=1-t-e,n[s]+=t;return n}function Va(i,t,e,n,s){return i===s?(t-e)/n+(t<e?6:0):t===s?(e-i)/n+2:(i-t)/n+4}function fn(i){const e=i.r/255,n=i.g/255,s=i.b/255,o=Math.max(e,n,s),r=Math.min(e,n,s),a=(o+r)/2;let l,c,h;return o!==r&&(h=o-r,c=a>.5?h/(2-o-r):h/(o+r),l=Va(e,n,s,h,o),l=l*60+.5),[l|0,c||0,a]}function gn(i,t,e,n){return(Array.isArray(t)?i(t[0],t[1],t[2]):i(t,e,n)).map(Ut)}function pn(i,t,e){return gn(oo,i,t,e)}function ja(i,t,e){return gn(Wa,i,t,e)}function Na(i,t,e){return gn(Ha,i,t,e)}function ro(i){return(i%360+360)%360}function $a(i){const t=Ba.exec(i);let e=255,n;if(!t)return;t[5]!==n&&(e=t[6]?De(+t[5]):Ut(+t[5]));const s=ro(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?n=ja(s,o,r):t[1]==="hsv"?n=Na(s,o,r):n=pn(s,o,r),{r:n[0],g:n[1],b:n[2],a:e}}function Ya(i,t){var e=fn(i);e[0]=ro(e[0]+t),e=pn(e),i.r=e[0],i.g=e[1],i.b=e[2]}function Ua(i){if(!i)return;const t=fn(i),e=t[0],n=Bn(t[1]),s=Bn(t[2]);return i.a<255?`hsla(${e}, ${n}%, ${s}%, ${Tt(i.a)})`:`hsl(${e}, ${n}%, ${s}%)`}const Hn={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Wn={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Xa(){const i={},t=Object.keys(Wn),e=Object.keys(Hn);let n,s,o,r,a;for(n=0;n<t.length;n++){for(r=a=t[n],s=0;s<e.length;s++)o=e[s]Line truncated
* Chart.js v4.4.7
* https://www.chartjs.org
* (c) 2024 Chart.js Contributors
* Released under the MIT License
*/function Pt(){}const tl=(()=>{let i=0;return()=>i++})();function N(i){return i==null}function Z(i){if(Array.isArray&&Array.isArray(i))return!0;const t=Object.prototype.toString.call(i);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function E(i){return i!==null&&Object.prototype.toString.call(i)==="[object Object]"}function bt(i){return(typeof i=="number"||i instanceof Number)&&isFinite(+i)}function yt(i,t){return bt(i)?i:t}function F(i,t){return typeof i>"u"?t:i}const el=(i,t)=>typeof i=="string"&&i.endsWith("%")?parseFloat(i)/100*t:+i;function V(i,t,e){if(i&&typeof i.call=="function")return i.apply(e,t)}function H(i,t,e,n){let s,o,r;if(Z(i))for(o=i.length,s=0;s<o;s++)t.call(e,i[s],s);else if(E(i))for(r=Object.keys(i),o=r.length,s=0;s<o;s++)t.call(e,i[r[s]],r[s])}function vi(i,t){let e,n,s,o;if(!i||!t||i.length!==t.length)return!1;for(e=0,n=i.length;e<n;++e)if(s=i[e],o=t[e],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function wi(i){if(Z(i))return i.map(wi);if(E(i)){const t=Object.create(null),e=Object.keys(i),n=e.length;let s=0;for(;s<n;++s)t[e[s]]=wi(i[e[s]]);return t}return i}function lo(i){return["__proto__","prototype","constructor"].indexOf(i)===-1}function il(i,t,e,n){if(!lo(i))return;const s=t[i],o=e[i];E(s)&&E(o)?St(s,o,n):t[i]=wi(o)}function St(i,t,e){const n=Z(t)?t:[t],s=n.length;if(!E(i))return i;e=e||{};const o=e.merger||il;let r;for(let a=0;a<s;++a){if(r=n[a],!E(r))continue;const l=Object.keys(r);for(let c=0,h=l.length;c<h;++c)o(l[c],i,r,e)}return i}function Ie(i,t){return St(i,t,{merger:nl})}function nl(i,t,e){if(!lo(i))return;const n=t[i],s=e[i];E(n)&&E(s)?Ie(n,s):Object.prototype.hasOwnProperty.call(t,i)||(t[i]=wi(s))}const jn={"":i=>i,x:i=>i.x,y:i=>i.y};function sl(i){const t=i.split("."),e=[];let n="";for(const s of t)n+=s,n.endsWith("\\")?n=n.slice(0,-1)+".":(e.push(n),n="");return e}function ol(i){const t=sl(i);return e=>{for(const n of t){if(n==="")break;e=e&&e[n]}return e}}function ki(i,t){return(jn[t]||(jn[t]=ol(t)))(i)}function mn(i){return i.charAt(0).toUpperCase()+i.slice(1)}const Si=i=>typeof i<"u",qt=i=>typeof i=="function",Nn=(i,t)=>{if(i.size!==t.size)return!1;for(const e of i)if(!t.has(e))return!1;return!0};function rl(i){return i.type==="mouseup"||i.type==="click"||i.type==="contextmenu"}const G=Math.PI,nt=2*G,al=nt+G,Mi=Number.POSITIVE_INFINITY,ll=G/180,et=G/2,Qt=G/4,$n=G*2/3,Qi=Math.log10,be=Math.sign;function Le(i,t,e){return Math.abs(i-t)<e}function Yn(i){const t=Math.round(i);i=Le(i,t,i/1e3)?t:i;const e=Math.pow(10,Math.floor(Qi(i))),n=i/e;return(n<=1?1:n<=2?2:n<=5?5:10)*e}function cl(i){const t=[],e=Math.sqrt(i);let n;for(n=1;n<e;n++)i%n===0&&(t.push(n),t.push(i/n));return e===(e|0)&&t.push(e),t.sort((s,o)=>s-o).pop(),t}function $e(i){return!isNaN(parseFloat(i))&&isFinite(i)}function hl(i,t){const e=Math.round(i);return e-t<=i&&e+t>=i}function dl(i,t,e){let n,s,o;for(n=0,s=i.length;n<s;n++)o=i[n][e],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function se(i){return i*(G/180)}function ul(i){return i*(180/G)}function Un(i){if(!bt(i))return;let t=1,e=0;for(;Math.round(i*t)/t!==i;)t*=10,e++;return e}function co(i,t){const e=t.x-i.x,n=t.y-i.y,s=Math.sqrt(e*e+n*n);let o=Math.atan2(n,e);return o<-.5*G&&(o+=nt),{angle:o,distance:s}}function tn(i,t){return Math.sqrt(Math.pow(t.x-i.x,2)+Math.pow(t.y-i.y,2))}function fl(i,t){return(i-t+al)%nt-G}function Ht(i){return(i%nt+nt)%nt}function bn(i,t,e,n){const s=Ht(i),o=Ht(t),r=Ht(e),a=Ht(o-s),l=Ht(r-s),c=Ht(s-o),h=Ht(s-r);return s===o||s===r||n&&o===r||a>l&&c<h}function rt(i,t,e){return Math.max(t,Math.min(e,i))}function gl(i){return rt(i,-32768,32767)}function Nt(i,t,e,n=1e-6){return i>=Math.min(t,e)-n&&i<=Math.max(t,e)+n}function _n(i,t,e){e=e||(r=>i[r]<t);let n=i.length-1,s=0,o;for(;n-s>1;)o=s+n>>1,e(o)?s=o:n=o;return{lo:s,hi:n}}const oe=(i,t,e,n)=>_n(i,e,n?s=>{const o=i[s][t];return o<e||o===e&&i[s+1][t]===e}:s=>i[s][t]<e),pl=(i,t,e)=>_n(i,e,n=>i[n][t]>=e);function ml(i,t,e){let n=0,s=i.length;for(;n<s&&i[n]<t;)n++;for(;s>n&&i[s-1]>e;)s--;return n>0||s<i.length?i.slice(n,s):i}const ho=["push","pop","shift","splice","unshift"];function bl(i,t){if(i._chartjs){i._chartjs.listeners.push(t);return}Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),ho.forEach(e=>{const n="_onData"+mn(e),s=i[e];Object.defineProperty(i,e,{configurable:!0,enumerable:!1,value(...o){const r=s.apply(this,o);return i._chartjs.listeners.forEach(a=>{typeof a[n]=="function"&&a[n](...o)}),r}})})}function Xn(i,t){const e=i._chartjs;if(!e)return;const n=e.listeners,s=n.indexOf(t);s!==-1&&n.splice(s,1),!(n.length>0)&&(ho.forEach(o=>{delete i[o]}),delete i._chartjs)}function _l(i){const t=new Set(i);return t.size===i.length?i:Array.from(t)}const uo=function(){return typeof window>"u"?function(i){return i()}:window.requestAnimationFrame}();function fo(i,t){let e=[],n=!1;return function(...s){e=s,n||(n=!0,uo.call(window,()=>{n=!1,i.apply(t,e)}))}}function xl(i,t){let e;return funLine truncated
* Chart.js v4.4.7
* https://www.chartjs.org
* (c) 2024 Chart.js Contributors
* Released under the MIT License
*/class kc{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,s){const o=e.listeners[s],r=e.duration;o.forEach(a=>a({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(n-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=uo.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((n,s)=>{if(!n.running||!n.items.length)return;const o=n.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(s.draw(),this._notify(s,n,t,"progress")),o.length||(n.running=!1,this._notify(s,n,t,"complete"),n.initial=!1),e+=o.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((n,s)=>Math.max(n,s._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let s=n.length-1;for(;s>=0;--s)n[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Dt=new kc;const as="transparent",Sc={boolean(i,t,e){return e>.5?t:i},color(i,t,e){const n=Gn(i||as),s=n.valid&&Gn(t||as);return s&&s.valid?s.mix(n,e).hexString():t},number(i,t,e){return i+(t-i)*e}};class Mc{constructor(t,e,n,s){const o=e[n];s=U([t.to,s,o,t.from]);const r=U([t.from,o,s]);this._active=!0,this._fn=t.fn||Sc[t.type||typeof r],this._easing=Fe[t.easing]||Fe.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const s=this._target[this._prop],o=n-this._start,r=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=U([t.to,e,s,t.from]),this._from=U([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,s=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||e<n),!this._active){this._target[s]=a,this._notify(!0);return}if(e<0){this._target[s]=o;return}l=e/n%2,l=r&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,n)=>{t.push({res:e,rej:n})})}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let s=0;s<n.length;s++)n[s][e]()}}class Po{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!E(t))return;const e=Object.keys(K.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const o=t[s];if(!E(o))return;const r={};for(const a of e)r[a]=o[a];(Z(o.properties)&&o.properties||[s]).forEach(a=>{(a===s||!n.has(a))&&n.set(a,r)})})}_animateOptions(t,e){const n=e.options,s=Pc(t,n);if(!s)return[];const o=this._createAnimations(s,n);return n.$shared&&Cc(t.options.$animations,n).then(()=>{t.options=n},()=>{}),o}_createAnimations(t,e){const n=this._properties,s=[],o=t.$animations||(t.$animations={}),r=Object.keys(e),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(t,e));continue}const h=e[c];let d=o[c];const u=n.get(c);if(d)if(u&&d.active()){d.update(u,h,a);continue}else d.cancel();if(!u||!u.duration){t[c]=h;continue}o[c]=d=new Mc(u,t,c,h),s.push(d)}return s}update(t,e){if(this._properties.size===0){Object.assign(t,e);return}const n=this._createAnimations(t,e);if(n.length)return Dt.add(this._chart,n),!0}}function Cc(i,t){const e=[],n=Object.keys(t);for(let s=0;s<n.length;s++){const o=i[n[s]];o&&o.active()&&e.push(o.wait())}return Promise.all(e)}function Pc(i,t){if(!t)return;let e=i.options;if(!e){i.options=t;return}return e.$shared&&(i.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e}function ls(i,t){const e=i&&i.options||{},n=e.reverse,s=e.min===void 0?t:0,o=e.max===void 0?t:0;return{start:n?o:s,end:n?s:o}}function Dc(i,t,e){if(e===!1)return!1;const n=ls(i,e),s=ls(t,e);return{top:s.end,right:n.end,bottom:s.start,left:n.start}}function Oc(i){let t,e,n,s;return E(i)?(t=i.top,e=i.right,n=i.bottom,s=i.left):t=e=n=s=i,{top:t,right:e,bottom:n,left:s,disabled:i===!1}}function Do(i,t){const e=[],n=i._getSortedDatasetMetas(t);let s,o;for(s=0,o=n.length;s<o;++s)e.push(n[s].index);returLine truncated
`)>-1?i.split(`
`):i}function xd(i,t){const{element:e,datasetIndex:n,index:s}=t,o=i.getDatasetMeta(n).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:i,label:r,parsed:o.getParsed(s),raw:i.data.datasets[n].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:n,element:e}}function Fs(i,t){const e=i.chart.ctx,{body:n,footer:s,title:o}=i,{boxWidth:r,boxHeight:a}=t,l=it(t.bodyFont),c=it(t.titleFont),h=it(t.footerFont),d=o.length,u=s.length,f=n.length,g=gt(t.padding);let p=g.height,m=0,b=n.reduce((k,v)=>k+v.before.length+v.lines.length+v.after.length,0);if(b+=i.beforeBody.length+i.afterBody.length,d&&(p+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),b){const k=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;p+=f*k+(b-f)*l.lineHeight+(b-1)*t.bodySpacing}u&&(p+=t.footerMarginTop+u*h.lineHeight+(u-1)*t.footerSpacing);let y=0;const w=function(k){m=Math.max(m,e.measureText(k).width+y)};return e.save(),e.font=c.string,H(i.title,w),e.font=l.string,H(i.beforeBody.concat(i.afterBody),w),y=t.displayColors?r+2+t.boxPadding:0,H(n,k=>{H(k.before,w),H(k.lines,w),H(k.after,w)}),y=0,e.font=h.string,H(i.footer,w),e.restore(),m+=g.width,{width:m,height:p}}function yd(i,t){const{y:e,height:n}=t;return e<n/2?"top":e>i.height-n/2?"bottom":"center"}function vd(i,t,e,n){const{x:s,width:o}=n,r=e.caretSize+e.caretPadding;if(i==="left"&&s+o+r>t.width||i==="right"&&s-o-r<0)return!0}function wd(i,t,e,n){const{x:s,width:o}=e,{width:r,chartArea:{left:a,right:l}}=i;let c="center";return n==="center"?c=s<=(a+l)/2?"left":"right":s<=o/2?c="left":s>=r-o/2&&(c="right"),vd(c,i,t,e)&&(c="center"),c}function Es(i,t,e){const n=e.yAlign||t.yAlign||yd(i,e);return{xAlign:e.xAlign||t.xAlign||wd(i,t,e,n),yAlign:n}}function kd(i,t){let{x:e,width:n}=i;return t==="right"?e-=n:t==="center"&&(e-=n/2),e}function Sd(i,t,e){let{y:n,height:s}=i;return t==="top"?n+=e:t==="bottom"?n-=s+e:n-=s/2,n}function zs(i,t,e,n){const{caretSize:s,caretPadding:o,cornerRadius:r}=i,{xAlign:a,yAlign:l}=e,c=s+o,{topLeft:h,topRight:d,bottomLeft:u,bottomRight:f}=pe(r);let g=kd(t,a);const p=Sd(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(h,u)+s:a==="right"&&(g+=Math.max(d,f)+s),{x:rt(g,0,n.width-t.width),y:rt(p,0,n.height-t.height)}}function li(i,t,e){const n=gt(e.padding);return t==="center"?i.x+i.width/2:t==="right"?i.x+i.width-n.right:i.x+n.left}function Bs(i){return vt([],Ot(i))}function Md(i,t,e){return ce(i,{tooltip:t,tooltipItems:e,type:"tooltip"})}function Hs(i,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?i.override(e):i}const $o={beforeTitle:Pt,title(i){if(i.length>0){const t=i[0],e=t.chart.data.labels,n=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(n>0&&t.dataIndex<n)return e[t.dataIndex]}return""},afterTitle:Pt,beforeBody:Pt,beforeLabel:Pt,label(i){if(this&&this.options&&this.options.mode==="dataset")return i.label+": "+i.formattedValue||i.formattedValue;let t=i.dataset.label||"";t&&(t+=": ");const e=i.formattedValue;return N(e)||(t+=e),t},labelColor(i){const e=i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(i){const e=i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:Pt,afterBody:Pt,beforeFooter:Pt,footer:Pt,afterFooter:Pt};function ht(i,t,e,n){const s=i[t].call(e,n);return typeof s>"u"?$o[t].call(e,n):s}class an extends _t{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),s=n.enabled&&e.options.animation&&n.animations,o=new Po(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=Md(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:n}=e,s=ht(n,"beforeTitle",this,t),o=ht(n,"title",this,t),r=ht(n,"afterTitle",this,t);let a=[];return a=vt(a,Ot(s)),a=vt(a,Ot(o)),a=vt(a,Ot(r)),a}getBeforeBody(t,e){return Bs(ht(e.callbacks,"b Line truncated
* chartjs-plugin-datalabels v2.2.0
* https://chartjs-plugin-datalabels.netlify.app
* (c) 2017-2022 chartjs-plugin-datalabels contributors
* Released under the MIT license
*/var Ks=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var i=window.screen;if(i)return(i.deviceXDPI||1)/(i.logicalXDPI||1)}return 1}(),He={toTextLines:function(i){var t=[],e;for(i=[].concat(i);i.length;)e=i.pop(),typeof e=="string"?t.unshift.apply(t,e.split(`
`)):Array.isArray(e)?i.push.apply(i,e):N(i)||t.unshift(""+e);return t},textSize:function(i,t,e){var n=[].concat(t),s=n.length,o=i.font,r=0,a;for(i.font=e.string,a=0;a<s;++a)r=Math.max(i.measureText(n[a]).width,r);return i.font=o,{height:s*e.lineHeight,width:r}},bound:function(i,t,e){return Math.max(i,Math.min(t,e))},arrayDiff:function(i,t){var e=i.slice(),n=[],s,o,r,a;for(s=0,r=t.length;s<r;++s)a=t[s],o=e.indexOf(a),o===-1?n.push([a,1]):e.splice(o,1);for(s=0,r=e.length;s<r;++s)n.push([e[s],-1]);return n},rasterize:function(i){return Math.round(i*Ks)/Ks}};function Ki(i,t){var e=t.x,n=t.y;if(e===null)return{x:0,y:-1};if(n===null)return{x:1,y:0};var s=i.x-e,o=i.y-n,r=Math.sqrt(s*s+o*o);return{x:r?s/r:0,y:r?o/r:-1}}function $d(i,t,e,n,s){switch(s){case"center":e=n=0;break;case"bottom":e=0,n=1;break;case"right":e=1,n=0;break;case"left":e=-1,n=0;break;case"top":e=0,n=-1;break;case"start":e=-e,n=-n;break;case"end":break;default:s*=Math.PI/180,e=Math.cos(s),n=Math.sin(s);break}return{x:i,y:t,vx:e,vy:n}}var Yd=0,Ko=1,qo=2,Go=4,Jo=8;function hi(i,t,e){var n=Yd;return i<e.left?n|=Ko:i>e.right&&(n|=qo),t<e.top?n|=Jo:t>e.bottom&&(n|=Go),n}function Ud(i,t){for(var e=i.x0,n=i.y0,s=i.x1,o=i.y1,r=hi(e,n,t),a=hi(s,o,t),l,c,h;!(!(r|a)||r&a);)l=r||a,l&Jo?(c=e+(s-e)*(t.top-n)/(o-n),h=t.top):l&Go?(c=e+(s-e)*(t.bottom-n)/(o-n),h=t.bottom):l&qo?(h=n+(o-n)*(t.right-e)/(s-e),c=t.right):l&Ko&&(h=n+(o-n)*(t.left-e)/(s-e),c=t.left),l===r?(e=c,n=h,r=hi(e,n,t)):(s=c,o=h,a=hi(s,o,t));return{x0:e,x1:s,y0:n,y1:o}}function di(i,t){var e=t.anchor,n=i,s,o;return t.clamp&&(n=Ud(n,t.area)),e==="start"?(s=n.x0,o=n.y0):e==="end"?(s=n.x1,o=n.y1):(s=(n.x0+n.x1)/2,o=(n.y0+n.y1)/2),$d(s,o,i.vx,i.vy,t.align)}var ui={arc:function(i,t){var e=(i.startAngle+i.endAngle)/2,n=Math.cos(e),s=Math.sin(e),o=i.innerRadius,r=i.outerRadius;return di({x0:i.x+n*o,y0:i.y+s*o,x1:i.x+n*r,y1:i.y+s*r,vx:n,vy:s},t)},point:function(i,t){var e=Ki(i,t.origin),n=e.x*i.options.radius,s=e.y*i.options.radius;return di({x0:i.x-n,y0:i.y-s,x1:i.x+n,y1:i.y+s,vx:e.x,vy:e.y},t)},bar:function(i,t){var e=Ki(i,t.origin),n=i.x,s=i.y,o=0,r=0;return i.horizontal?(n=Math.min(i.x,i.base),o=Math.abs(i.base-i.x)):(s=Math.min(i.y,i.base),r=Math.abs(i.base-i.y)),di({x0:n,y0:s+r,x1:n+o,y1:s,vx:e.x,vy:e.y},t)},fallback:function(i,t){var e=Ki(i,t.origin);return di({x0:i.x,y0:i.y,x1:i.x+(i.width||0),y1:i.y+(i.height||0),vx:e.x,vy:e.y},t)}},Rt=He.rasterize;function Xd(i){var t=i.borderWidth||0,e=i.padding,n=i.size.height,s=i.size.width,o=-s/2,r=-n/2;return{frame:{x:o-e.left-t,y:r-e.top-t,w:s+e.width+t*2,h:n+e.height+t*2},text:{x:o,y:r,w:s,h:n}}}function Kd(i,t){var e=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!e)return null;if(e.xCenter!==void 0&&e.yCenter!==void 0)return{x:e.xCenter,y:e.yCenter};var n=e.getBasePixel();return i.horizontal?{x:n,y:null}:{x:null,y:n}}function qd(i){return i instanceof Te?ui.arc:i instanceof Be?ui.point:i instanceof bi?ui.bar:ui.fallback}function Gd(i,t,e,n,s,o){var r=Math.PI/2;if(o){var a=Math.min(o,s/2,n/2),l=t+a,c=e+a,h=t+n-a,d=e+s-a;i.moveTo(t,c),l<h&&c<d?(i.arc(l,c,a,-Math.PI,-r),i.arc(h,c,a,-r,0),i.arc(h,d,a,0,r),i.arc(l,d,a,r,Math.PI)):l<h?(i.moveTo(l,e),i.arc(h,c,a,-r,r),i.arc(l,c,a,r,Math.PI+r)):c<d?(i.arc(l,c,a,-Math.PI,0),i.arc(l,d,a,0,Math.PI)):i.arc(l,c,a,-Math.PI,Math.PI),i.closePath(),i.moveTo(t,e)}else i.rect(t,e,n,s)}function Jd(i,t,e){var n=e.backgroundColor,s=e.borderColor,o=e.borderWidth;!n&&(!s||!o)||(i.beginPath(),Gd(i,Rt(t.x)+o/2,Rt(t.y)+o/2,Rt(t.w)-o,Rt(t.h)-o,e.borderRadius),i.closePath(),n&&(i.fillStyle=n,i.fill()),s&&o&&(i.strokeStyle=s,i.lineWidth=o,i.lineJoin="miter",i.stroke()))}function Zd(i,t,e){var n=e.lineHeight,s=i.w,o=i.x,r=i.y+n/2;return t==="center"?o+=s/2:(t==="end"||t==="right")&&(o+=s),{h:n,w:s,x:o,y:r}}function Qd(i,t,e){var n=i.shadowBlur,s=e.stroked,o=Rt(e.x),r=Rt(e.y),a=Rt(e.w);s&&i.strokeText(t,o,r,a),e.filled&&(n&&s&&(i.shadowBlur=0),i.fillText(t,o,r,a),n&&s&&(i.shadowBlur=n))}function tu(i,t,e,n){var s=n.textAlign,o=n.color,r=!!o,a=n.font,l=t.length,c=n.textStrokeColor,h=n.textStrokeWidth,d=c&&h,u;if(!(!l||!r&&!d))for(e=Zd(e,s,a),i.font=a.string,i.textAlign=s,i.textBaseline="middle",i.shadowBlur=n.textShadowBlur,i.shadowColor=n.textShadowColor,r&&(i.fillStyle=o),d&&(i.lineJoin="round",i.lineWidth=h,i.strokeStyle=c),u=0,l=t.length;u<l;++u)Qd(i,t[u],{stroked:d,filled:r,w:e.w,x:e.x,y:e.y+e.h*u})}var Zo=function(i,t,e,n){var s=this;s._config=i,s._index=n,s._model=null,s._rects=null,s._ctx=t,s._el=e};St(Zo.prototype,{_modelize:function(i,t,e,n){var s=this,o=s._index,r=it(U([e.font,{}],n,o)),a=U([e.color,K.color],n,o);return{align:U([e.align,"center"],n,o),anchor:U([e.anchor,"center"],n,o),area:n.chart.chartArea,backgroundColor:U([e.backgroundColor,null],n,o),borderColor:U([e.borderColor,null],n,o),borderRadius:U([e.borderRadius,0],n,o),borderWidth:U([e.borderWidth,0],n,o),clamp:U([e.clamp,!1],n,o),clip:U([e.clip,!1],n,o),color:a,display:i,font:r,lines:t,offset:U([e.offset,4],n,o),opacity:U([e.opacity,1],n,o),origin:Kd(s._el, Line truncated
* chartjs-adapter-moment v1.0.1
* https://www.chartjs.org
* (c) 2022 chartjs-adapter-moment Contributors
* Released under the MIT license
*/const uu={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Oo._date.override(typeof tt=="function"?{_id:"moment",formats:function(){return uu},parse:function(i,t){return typeof i=="string"&&typeof t=="string"?i=tt(i,t):i instanceof tt||(i=tt(i)),i.isValid()?i.valueOf():null},format:function(i,t){return tt(i).format(t)},add:function(i,t,e){return tt(i).add(t,e).valueOf()},diff:function(i,t,e){return tt(i).diff(tt(t),e)},startOf:function(i,t,e){return i=tt(i),t==="isoWeek"?(e=Math.trunc(Math.min(Math.max(0,e),6)),i.isoWeekday(e).startOf("day").valueOf()):i.startOf(t).valueOf()},endOf:function(i,t){return tt(i).endOf(t).valueOf()}}:{});Ii.register(du,ln,cn,Be,Ae,_d,Cd,md,Ke);const fu={components:{Line:Nd},props:{dataLineChart:{type:Object,default:()=>{}},period:{type:Object,default:()=>{}},filter:{type:String,default:"d"}},setup(i,{emit:t}){const e=Ti(),n=ct(0),s={datasets:[{label:"Открыто страниц",backgroundColor:"#C62828",borderColor:"#C62828",borderWidth:3,cubicInterpolationMode:"monotone",data:[],func:g=>g.count,datakey:"count",tooltips:!1,hidden:!0,yAxisID:"y"},{label:"Активные пользователи",backgroundColor:"teal",borderColor:"teal",borderWidth:3,cubicInterpolationMode:"monotone",data:[],func:g=>g.unic.length,datakey:"unic",customlabel:[],tooltips:!0,yAxisID:"y"},{label:"CRR",backgroundColor:"#673AB7",borderColor:"#673AB7",borderWidth:3,cubicInterpolationMode:"monotone",data:[],func:(g,p)=>parseFloat(l(p).toFixed(2)),hidden:!0,datakey:"crr",customlabel:[],tooltips:!0,yAxisID:"y1"},{label:"BR",backgroundColor:"#283593",borderColor:"#283593",borderWidth:3,cubicInterpolationMode:"monotone",data:[],func:g=>parseFloat((g.br/g.unic.length*100).toFixed(2)),datakey:"br",hidden:!0,customlabel:[],tooltips:!0,yAxisID:"y1"},{label:"PPV",backgroundColor:"#EF9A9A",borderColor:"#EF9A9A",borderWidth:3,cubicInterpolationMode:"monotone",data:[],func:g=>parseFloat((g.pages/g.unic.length).toFixed(2)),datakey:"ppv",hidden:!0,customlabel:[],tooltips:!0,yAxisID:"y"}]},o=It({get(){a();let g=tt(e.date_period.enddate),p=tt(e.date_period.startdate);n.value=g.diff(p,"days")+1;let m=null;if(Object.keys(i.dataLineChart).length>0){m=s,m.labels=[],m.datasets.forEach(b=>{b.data=[]});for(let[b,y]of Object.entries(i.dataLineChart))m.datasets.forEach(w=>{w.data.push(w.func(y,b))}),m.labels.push(vr(b))}return m}}),r=ct([]),a=()=>{let g=[];i.period.period.forEach(p=>{let m=g.findIndex(b=>b.visitdate==p.visitdate);m==-1?g.push({visitdate:p.visitdate,user:Array.from(new Set([p.user.id]))}):g[m].user=Array.from(new Set(g[m].user).add(p.user.id))}),r.value=[...i.period.before,...g]},l=g=>{let p=h(r.value.filter(y=>new Date(y.visitdate)>tt(new Date(g)).subtract(n.value*2,"d")&&new Date(y.visitdate)<=tt(new Date(g)).subtract(n.value,"d"))),m=h(r.value.filter(y=>new Date(y.visitdate)>tt(new Date(g)).subtract(n.value,"d")&&new Date(y.visitdate)<=new Date(g))),b=new Set([...p].filter(y=>m.has(y)));return g==At(e.date_period.enddate)&&c(b.size*100/p.size),p.size==0?0:b.size*100/p.size},c=g=>{t("getCRR",g)},h=g=>{let p=[];return g.forEach(m=>p.push(...m.user)),new Set(p)},d=It({get(){return JSON.parse(JSON.stringify(o.value))}}),u=ct(null);return{data:d,options:{plugins:{datalabels:{color:"grey",align:"top",display:"auto"},legend:{onHover:(g,p)=>{g.native.target.style.cursor="pointer"},onLeave:(g,p)=>{g.native.target.style.cursor="default"},position:"bottom",labels:{color:"grey",align:"right"}}},layout:{padding:{top:35,bottom:5,left:20,right:15}},scales:{x:{grid:{color:"white"}},y:{ticks:{stepSize:10},offset:!0,grid:{color:"white"}},y1:{type:"linear",display:!0,position:"right"}},responsive:!0,maintainAspectRatio:!1},linear:u}}};function gu(i,t,e,n,s,o){const r=Y("Line");return T(),z(le,{class:"h-100"},{default:x(()=>[n.data!==null?(T(),z(r,{key:0,data:n.data,ref:"linear",options:n.options},null,8,["data","options"])):Ve("",!0)]),_:1})}const pu=at(fu,[["render",gu]]),mu={props:{info:{type:Object,default:()=>({tooltip:"",ico:"",color:""})}},setup(i){return{}}};function bu(i,t,e,n,s,o){return T(),z(Lt,{location:"top"},{activator:x(({props:r})=>[P("span",xi(yi(r)),[_(kt,{class:"cursor-help",size:"large",color:e.info.color,icon:e.info.ico},null,8,["color","icon"])],16)]),default:x(()=>[_(j,null,{default:x(()=>[_(I,null,{default:x(()=>[q(W(e.info.tooltip),1)]),_:1})]),_:1})]),_:1})}const _u=at(mu,[["render",bu]]),xu={props:{info:{type:Array,default:()=>[]}}};function yu(i,t,e,n,s,o){return T(),z(Lt,{location:"top"},{activator:x(({props:r})=>[P("span",xi(yi(r)),W(e.info.length),17)]),default:x(()=>[(T(!0),ot(Kt,null,Xt(e.info,r=>(T(),z(j,{"no-gutters":"",key:r},{default:x(()=>[_(I,null,{default:x(()=>[q(W(r),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})}const vu=at(xu,[["render",yu]]),wu={components:{PatternCard:Ai,TooltipIco:_u,TooltipUser:vu},props:{alldata:{type:Object,default:()=>({periodLine truncated
-1
View File
@@ -1 +0,0 @@
.subtable .v-data-table-footer{display:none}.subtable tbody{text-align:start!important}canvas{flex:1!important}.chartjs-legend{cursor:pointer}.v-table>.v-table__wrapper>table>tbody>tr>td{padding:0}.v-table{flex:1!important}.mytable tr{font-size:13px}.mytable i{font-size:10px}.myleft{float:left}
-7
View File
@@ -1,7 +0,0 @@
import{d as qt,r as O,T as ue,_ as ae,s as L,t as z,v as f,x as u,B as Kt,y as W,$ as Z,V as Se,a$ as te,D as Bt,aV as Gt,G as Zt,A as ne,a0 as _e,L as xt,l as Ie,f as H,bo as Jt,bj as et,C as ce,a2 as De,Z as Xt,z as Ee,Q as fe,R as be,S as Re,bt as Fe,a1 as Tt,U as G,b1 as lt,aN as Le,F as D,bb as Qt,E as P,Y as St,W as Be,a3 as $t,M as Ct,aJ as en,H as tn,I as nn,q as an,w as rn}from"./index-C95RwDyc.js";import{V as on}from"./VForm-CNtdyF6c.js";import{V as Me}from"./VCheckboxBtn-RWiQsUNN.js";import{a as ln}from"./VList-CyfHwXPn.js";import{V as Ne}from"./VAutocomplete-DB2GWGYx.js";import{V as xe}from"./VTextarea-vBlWUtyD.js";import{V as tt,a as Ot}from"./VLocaleProvider-BNvftIh0.js";import{V as sn}from"./VFileInput-oVS2J4wh.js";import{V as Ut}from"./VTextField-CHiGXnf9.js";import{b as dn,c as un,a as cn,V as fn}from"./VExpansionPanels-DFuDjsnE.js";import"./VInput-B82efaBR.js";import"./VSelectionControl-CabHpyF4.js";import"./ssrBoot-CCLXtj7a.js";import"./VSelect-exBxBFF_.js";import"./filter-BoX0E7iY.js";/* empty css */import"./VField-DAxmwXK8.js";import"./VSpacer-s9BvDJET.js";const yn=qt("weekends",()=>{const n=O({});function e(a){ue.get(`api/calendar_of_events/exclusion_dates/?year=${a}`,{}).then(t=>{n.value=t.data})}return{week:n,getWeekend:e}}),hn={props:{title:{type:String,default:""},newOrOld:{type:Boolean,default:!1}},setup(n,{emit:e}){const a=O(null);return{form_valid:a,transformation:()=>{e("postData",a.value.isValid)},clearFormValidation:()=>{a.value&&a.value.resetValidation()}}}};function mn(n,e,a,t,r,l){return L(),z(xt,{"min-height":"436",class:"pa-3"},{default:f(()=>[u(Kt,{class:"pr-0 pl-2 d-flex justify-space-between"},{default:f(()=>[W(Z(a.title)+" ",1),u(Se,{icon:"mdi-close cursor-pointer",size:"small",color:"grey",onClick:e[0]||(e[0]=s=>n.$emit("closeDialog"))})]),_:1}),u(on,{ref:"form_valid",onSubmit:te(t.transformation,["prevent"])},{default:f(()=>[u(Bt,{class:"d-flex px-3"},{default:f(()=>[Gt(n.$slots,"card_text")]),_:3}),u(Zt,{class:"justify-end"},{default:f(()=>[a.newOrOld?_e("",!0):(L(),z(ne,{key:0,icon:"mdi-delete",variant:"tonal",rounded:"",size:"36px",onClick:e[1]||(e[1]=s=>n.$emit("delObject"))})),u(ne,{class:"text-subtitle-1",elevation:"0",width:"150",onClick:e[2]||(e[2]=s=>n.$emit("closeDialog")),color:"btn_gray",variant:"flat"},{default:f(()=>e[3]||(e[3]=[W("Отменить")])),_:1}),u(ne,{class:"text-subtitle-1 font-weight-regular",color:"btn_text",variant:"flat",elevation:"0",width:"150",type:"transformation"},{default:f(()=>[W(Z(a.newOrOld?"Создать":"Редактировать"),1)]),_:1})]),_:1})]),_:3},8,["onSubmit"])]),_:3})}const Mt=ae(hn,[["render",mn]]),vn={props:{staff:{type:Array,default:()=>[]},okey:{type:String,default:"selected"}},setup(n,{emit:e}){const a=O(""),t=Ie(),r=O([]),l=H({get(){if(n.okey=="editor"){let d=[];return n.staff.forEach(y=>{let p={...y};p.employees=y.employees.filter(T=>T.selected==!0),p.employees.length>0&&d.push(p)}),d.forEach(y=>{y.employees.every(p=>p.editor==!0)&&(y.editor=!0)}),d}return n.staff}}),s=H({get(){let d=[];return n.staff.forEach(y=>{y.employees.length!=1&&y.employees.every(p=>p[n.okey]==!0)?(y[n.okey]=!0,d.push(y)):y.employees.length==1?(y[n.okey]=!0,d.push(...y.employees.filter(p=>p[n.okey]==!0))):(y[n.okey]=!1,d.push(...y.employees.filter(p=>p[n.okey]==!0)))}),d},set(d){Array.isArray(d)||o(d)}}),o=d=>{if("employees"in d)d.employees.forEach(y=>{y.id!=t.user.is_idEmployee&&(y[n.okey]=!d[n.okey])}),e("returnIdParticant",{okey:n.okey,staff:d.employees,select:[]});else if(d.length){if(d[0].id!=t.user.is_idEmployee){let y=!d.every(p=>p[n.okey]==!0);i(d,y),e("returnIdParticant",{okey:n.okey,staff:r.value,select:[]}),r.value=[]}}else d[n.okey]=!d[n.okey],e("returnIdParticant",{okey:n.okey,staff:[d],select:[]})},i=(d,y)=>{d.forEach(p=>{p.id!=t.user.is_idEmployee&&(p[n.okey]=y),"employees"in p||r.value.push(p),"employees"in p&&i(p.employees,y)})};function c(d,y){return d.includes(a.value)||y.raw.employees.some(p=>p.title.toLowerCase().includes(a.value.toLowerCase()))}return{staffed:l,filtered:a,accountStore:t,selectedStaff:s,splitname:Jt,onFilter:c,disable:d=>d.id==t.user.id_dict_department&&d.employees.length==1,allUser:()=>{o(l.value)}}}},pn={class:"text-body-2"};function bn(n,e,a,t,r,l){return L(),z(Ne,{modelValue:t.selectedStaff,"onUpdate:modelValue":e[2]||(e[2]=s=>t.selectedStaff=s),items:t.staffed,label:"Выберите из списка или найдите по ФИО","item-title":"title","item-value":"id","custom-filter":t.onFilter,"onUpdate:search":e[3]||(e[3]=s=>t.filtered=s),multiple:"","hide-details":"",variant:"outlined",density:"compact",class:"max-height-select py-3","return-object":""},{selection:f(({item:s})=>[u(et,{class:"me-2",color:"teal-darken-3",size:"small",label:""},{default:f(()=>[ce("span",null,Z(s.title),1),s.value!=t.accountStore.user.is_idEmployee?(L(),z(Se,{key:0,icon:"mdi-close-circle",size:"x-small",class:"ml-3",onClick:te(o=>t.selectedStaff=s.raw,["stop"])},null,8,["onCliLine truncated
`).map(Gn).filter(function(a){return a!==null});return Q(Q({},e[0]),e[1])}function ze(n){var e={},a=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(n);if(!a)return e;var t=a[1],r=a[2];return t&&(e.tzid=t),e.dtstart=at(r),e}function Gn(n){if(n=n.replace(/^\s+|\s+$/,""),!n.length)return null;var e=/^([A-Z]+?)[:;]/.exec(n.toUpperCase());if(!e)return ht(n);var a=e[1];switch(a.toUpperCase()){case"RRULE":case"EXRULE":return ht(n);case"DTSTART":return ze(n);default:throw new Error("Unsupported RFC prop ".concat(a," in ").concat(n))}}function ht(n){var e=n.replace(/^RRULE:/i,""),a=ze(e),t=n.replace(/^(?:RRULE|EXRULE):/i,"").split(";");return t.forEach(function(r){var l=r.split("="),s=l[0],o=l[1];switch(s.toUpperCase()){case"FREQ":a.freq=Y[o.toUpperCase()];break;case"WKST":a.wkst=ee[o.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var i=Zn(o),c=s.toLowerCase();a[c]=i;break;case"BYWEEKDAY":case"BYDAY":a.byweekday=Jn(o);break;case"DTSTART":case"TZID":var m=ze(n);a.tzid=m.tzid,a.dtstart=m.dtstart;break;case"UNTIL":a.until=at(o);break;case"BYEASTER":a.byeaster=Number(o);break;default:throw new Error("Unknown RRULE property '"+s+"'")}}),a}function Zn(n){if(n.indexOf(",")!==-1){var e=n.split(",");return e.map(mt)}return mt(n)}function mt(n){return/^[+-]?\d+$/.test(n)?Number(n):n}function Jn(n){var e=n.split(",");return e.map(function(a){if(a.length===2)return ee[a];var t=a.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!t||t.length<3)throw new SyntaxError("Invalid weekday string: ".concat(a));var r=Number(t[1]),l=t[2],s=ee[l].weekday;return new B(s,r)})}var He=function(){function n(e,a){if(isNaN(e.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=e,this.tzid=a}return Object.defineProperty(n.prototype,"isUTC",{get:function(){return!this.tzid||this.tzid.toUpperCase()==="UTC"},enumerable:!1,configurable:!0}),n.prototype.toString=function(){var e=nt(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(e):";TZID=".concat(this.tzid,":").concat(e)},n.prototype.getTime=function(){return this.date.getTime()},n.prototype.rezonedDate=function(){return this.isUTC?this.date:Vn(this.date,this.tzid)},n}();function $e(n){for(var e=[],a="",t=Object.keys(n),r=Object.keys(ot),l=0;l<t.length;l++)if(t[l]!=="tzid"&&A(r,t[l])){var s=t[l].toUpperCase(),o=n[t[l]],i="";if(!(!j(o)||X(o)&&!o.length)){switch(s){case"FREQ":i=g.FREQUENCIES[n.freq];break;case"WKST":oe(o)?i=new B(o).toString():i=o.toString();break;case"BYWEEKDAY":s="BYDAY",i=Yn(o).map(function(y){return y instanceof B?y:X(y)?new B(y[0],y[1]):new B(y)}).toString();break;case"DTSTART":a=Xn(o,n.tzid);break;case"UNTIL":i=nt(o,!n.tzid);break;default:if(X(o)){for(var c=[],m=0;m<o.length;m++)c[m]=String(o[m]);i=c.toString()}else i=String(o)}i&&e.push([s,i])}}var h=e.map(function(y){var p=y[0],T=y[1];return"".concat(p,"=").concat(T.toString())}).join(";"),d="";return h!==""&&(d="RRULE:".concat(h)),[a,d].filter(function(y){return!!y}).join(`
`)}function Xn(n,e){return n?"DTSTART"+new He(new Date(n),e).toString():""}function Qn(n,e){return Array.isArray(n)?!Array.isArray(e)||n.length!==e.length?!1:n.every(function(a,t){return a.getTime()===e[t].getTime()}):n instanceof Date?e instanceof Date&&n.getTime()===e.getTime():n===e}var $n=function(){function n(){this.all=!1,this.before=[],this.after=[],this.between=[]}return n.prototype._cacheAdd=function(e,a,t){a&&(a=a instanceof Date?Je(a):ut(a)),e==="all"?this.all=a:(t._value=a,this[e].push(t))},n.prototype._cacheGet=function(e,a){var t=!1,r=a?Object.keys(a):[],l=function(m){for(var h=0;h<r.length;h++){var d=r[h];if(!Qn(a[d],m[d]))return!0}return!1},s=this[e];if(e==="all")t=this.all;else if(X(s))for(var o=0;o<s.length;o++){var i=s[o];if(!(r.length&&l(i))){t=i._value;break}}if(!t&&this.all){for(var c=new ke(e,a),o=0;o<this.all.length&&c.accept(this.all[o]);o++);t=c.getValue(),this._cacheAdd(e,t,a)}return X(t)?ut(t):t instanceof Date?Je(t):t},n}(),ea=v(v(v(v(v(v(v(v(v(v(v(v(v([],M(1,31),!0),M(2,28),!0),M(3,31),!0),M(4,30),!0),M(5,31),!0),M(6,30),!0),M(7,31),!0),M(8,31),!0),M(9,30),!0),M(10,31),!0),M(11,30),!0),M(12,31),!0),M(1,7),!0),ta=v(v(v(v(v(v(v(v(v(v(v(v(v([],M(1,31),!0),M(2,29),!0),M(3,31),!0),M(4,30),!0),M(5,31),!0),M(6,30),!0),M(7,31),!0),M(8,31),!0),M(9,30),!0),M(10,31),!0),M(11,30),!0),M(12,31),!0),M(1,7),!0),na=se(1,29),aa=se(1,30),he=se(1,31),q=se(1,32),ra=v(v(v(v(v(v(v(v(v(v(v(v(v([],q,!0),aa,!0),q,!0),he,!0),q,!0),he,!0),q,!0),q,!0),he,!0),q,!0),he,!0),q,!0),q.slice(0,7),!0),ia=v(v(v(v(v(v(v(v(v(v(v(v(v([],q,!0),na,!0),q,!0),he,!0),q,!0),he,!0),q,!0),q,!0),he,!0),q,!0),he,!0),q,!0),q.slice(0,7),!0),oa=se(-28,0),la=se(-29,0),me=se(-30,0),K=se(-31,0),sa=v(v(v(v(v(v(v(v(v(v(v(v(v([],K,!0),la,!0),K,!0),me,!0),K,!0),me,!0),K,!0),K,!0),me,!0),K,!0),me,!0),K,!0),K.slice(0,7),!0),da=v(v(v(v(v(v(v(v(v(v(v(v(v([],K,!0),oa,!0),K,!0),me,!0),K,!0),me,!0),K,!0),K,!0),me,!0),K,!0),me,!0),K,!0),K.slice(0,7),!0),ua=[0,31,60,91,121,152,182,213,244,274,305,335,366],ca=[0,31,59,90,120,151,181,212,243,273,304,334,365],vt=function(){for(var n=[],e=0;e<55;e++)n=n.concat(se(7));return n}();function fa(n,e){var a=we(n,1,1),t=Ye(n)?366:365,r=Ye(n+1)?366:365,l=Ze(a),s=Te(a),o=Q(Q({yearlen:t,nextyearlen:r,yearordinal:l,yearweekday:s},ya(n)),{wnomask:null});if(le(e.byweekno))return o;o.wnomask=M(0,t+7);var i,c,m=i=$(7-s+e.wkst,7);m>=4?(m=0,c=o.yearlen+$(s-e.wkst,7)):c=t-m;for(var h=Math.floor(c/7),d=$(c,7),y=Math.floor(h+d/4),p=0;p<e.byweekno.length;p++){var T=e.byweekno[p];if(T<0&&(T+=y+1),T>0&&T<=y){var S=void 0;T>1?(S=m+(T-1)*7,m!==i&&(S-=7-i)):S=m;for(var b=0;b<7&&(o.wnomask[S]=1,S++,o.wdaymask[S]!==e.wkst);b++);}}if(A(e.byweekno,1)){var S=m+y*7;if(m!==i&&(S-=7-i),S<t)for(var p=0;p<7&&(o.wnomask[S]=1,S+=1,o.wdaymask[S]!==e.wkst);p++);}if(m){var C=void 0;if(A(e.byweekno,-1))C=-1;else{var I=Te(we(n-1,1,1)),E=$(7-I.valueOf()+e.wkst,7),k=Ye(n-1)?366:365,x=void 0;E>=4?(E=0,x=k+$(I-e.wkst,7)):x=t-m,C=Math.floor(52+$(x,7)/4)}if(A(e.byweekno,C))for(var S=0;S<m;S++)o.wnomask[S]=1}return o}function ya(n){var e=Ye(n)?366:365,a=we(n,1,1),t=Te(a);return e===365?{mmask:ea,mdaymask:ia,nmdaymask:da,wdaymask:vt.slice(t),mrange:ca}:{mmask:ta,mdaymask:ra,nmdaymask:sa,wdaymask:vt.slice(t),mrange:ua}}function ha(n,e,a,t,r,l){var s={lastyear:n,lastmonth:e,nwdaymask:[]},o=[];if(l.freq===g.YEARLY)if(le(l.bymonth))o=[[0,a]];else for(var i=0;i<l.bymonth.length;i++)e=l.bymonth[i],o.push(t.slice(e-1,e+1));else l.freq===g.MONTHLY&&(o=[t.slice(e-1,e+1)]);if(le(o))return s;s.nwdaymask=M(0,a);for(var i=0;i<o.length;i++)for(var c=o[i],m=c[0],h=c[1]-1,d=0;d<l.bynweekday.length;d++){var y=void 0,p=l.bynweekday[d],T=p[0],S=p[1];S<0?(y=h+(S+1)*7,y-=$(r[y]-T,7)):(y=m+(S-1)*7,y+=$(7-r[y]+T,7)),m<=y&&y<=h&&(s.nwdaymask[y]=1)}return s}function ma(n,e){e===void 0&&(e=0);var a=n%19,t=Math.floor(n/100),r=n%100,l=Math.floor(t/4),s=t%4,o=Math.floor((t+8)/25),i=Math.floor((t-o+1)/3),c=Math.floor(19*a+t-l-i+15)%30,m=Math.floor(r/4),h=r%4,d=Math.floor(32+2*s+2*m-c-h)%7,y=Math.floor((a+11*c+22*d)/451),p=Math.floor((c+d-7*y+114)/31),T=(c+d-7*y+114)%31+1,S=Date.UTC(n,p-1,T+e),b=Date.UTC(n,0,1);return[Math.ceil((S-b)/(1e3*60*60*24))]}var va=function(){function n(e){this.options=e}return n.prototype.rebuild=function(e,a){var t=this.options;if(e!==this.lastyear&&(this.yearinfo=fa(e,t)),F(t.bynweekday)&&(a!==this.lastmonth||e!==this.lastyear)){var r=this.yearinfo,l=r.yearlen,s=r.mrange,o=r.wdaymask;this.monthinfo=ha(e,a,l,s,o,t)}j(t.byeaster)&&(this.eastermask=ma(e,t.byeaster))},Object.defineProperty(n.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"yearordinal",{get:function(){return this.yearin Line truncated
`),t=0;t<a.length;){var r=a[t]=a[t].replace(/\s+$/g,"");r?t>0&&r[0]===" "?(a[t-1]+=r.slice(1),a.splice(t,1)):t+=1:a.splice(t,1)}return a}function Oa(n){n.forEach(function(e){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))throw new Error("unsupported RDATE/EXDATE parm: "+e)})}function gt(n,e){return Oa(e),n.split(",").map(function(a){return at(a)})}function kt(n){var e=this;return function(a){if(a!==void 0&&(e["_".concat(n)]=a),e["_".concat(n)]!==void 0)return e["_".concat(n)];for(var t=0;t<e._rrule.length;t++){var r=e._rrule[t].origOptions[n];if(r)return r}}}var Ua=function(n){rt(e,n);function e(a){a===void 0&&(a=!1);var t=n.call(this,{},a)||this;return t.dtstart=kt.apply(t,["dtstart"]),t.tzid=kt.apply(t,["tzid"]),t._rrule=[],t._rdate=[],t._exrule=[],t._exdate=[],t}return e.prototype._iter=function(a){return Da(a,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},e.prototype.rrule=function(a){Dt(a,this._rrule)},e.prototype.exrule=function(a){Dt(a,this._exrule)},e.prototype.rdate=function(a){_t(a,this._rdate)},e.prototype.exdate=function(a){_t(a,this._exdate)},e.prototype.rrules=function(){return this._rrule.map(function(a){return wt(a.toString())})},e.prototype.exrules=function(){return this._exrule.map(function(a){return wt(a.toString())})},e.prototype.rdates=function(){return this._rdate.map(function(a){return new Date(a.getTime())})},e.prototype.exdates=function(){return this._exdate.map(function(a){return new Date(a.getTime())})},e.prototype.valueOf=function(){var a=[];return!this._rrule.length&&this._dtstart&&(a=a.concat($e({dtstart:this._dtstart}))),this._rrule.forEach(function(t){a=a.concat(t.toString().split(`
`))}),this._exrule.forEach(function(t){a=a.concat(t.toString().split(`
`).map(function(r){return r.replace(/^RRULE:/,"EXRULE:")}).filter(function(r){return!/^DTSTART/.test(r)}))}),this._rdate.length&&a.push(Et("RDATE",this._rdate,this.tzid())),this._exdate.length&&a.push(Et("EXDATE",this._exdate,this.tzid())),a},e.prototype.toString=function(){return this.valueOf().join(`
`)},e.prototype.clone=function(){var a=new e(!!this._cache);return this._rrule.forEach(function(t){return a.rrule(t.clone())}),this._exrule.forEach(function(t){return a.exrule(t.clone())}),this._rdate.forEach(function(t){return a.rdate(new Date(t.getTime()))}),this._exdate.forEach(function(t){return a.exdate(new Date(t.getTime()))}),a},e}(g);function Dt(n,e){if(!(n instanceof g))throw new TypeError(String(n)+" is not RRule instance");A(e.map(String),String(n))||e.push(n)}function _t(n,e){if(!(n instanceof Date))throw new TypeError(String(n)+" is not Date instance");A(e.map(Number),Number(n))||(e.push(n),Ae(e))}function Et(n,e,a){var t=!a||a.toUpperCase()==="UTC",r=t?"".concat(n,":"):"".concat(n,";TZID=").concat(a,":"),l=e.map(function(s){return nt(s.valueOf(),t)}).join(",");return"".concat(r).concat(l)}const Ma={components:{calendarCreateSelect:Yt,DialogCreate:Mt,TimeSelect:kn,UploadingFile:xn,ReminderEvent:Cn,PeriodEvents:Mn},props:{eventCalendar:{type:Object,default:()=>{}}},setup(n,{emit:e}){const a=O(null),t=H({get:()=>n.eventCalendar,set:w=>e("update:eventCalendar",w)}),r=[{type:"Не повторять",rule:{},id:1},{type:"Каждый день",rule:{freq:3},id:2},{type:"Каждую неделю",rule:{freq:2},id:3},{type:"Каждый месяц",rule:{freq:1},id:4},{type:"Каждый год",rule:{freq:0},id:5}],l=H({get(){let w="";if(t.value.event.period!=null){let _=JSON.parse(t.value.event.period);_!=null&&(s(_.origOptions),r.findIndex(U=>U.rule.freq==_.origOptions.freq),w=r[r.findIndex(U=>U.rule.freq==_.origOptions.freq)])}else w=r[0].type;return E(),w},set(w){s(w.rule)}}),s=w=>{let _;w.freq==3&&(_=new g({...w,dtstart:new Date(t.value.event.date_start),until:new Date(t.value.event.date_end)})),w.freq==2&&(_=new g({...w,dtstart:new Date(t.value.event.date_start),byweekday:Oe()})),w.freq==1&&(_=new g({...w,bymonthday:ve(),dtstart:new Date(t.value.event.date_start)})),w.freq==0&&(_=new g({...w,bymonthday:Ve(),dtstart:new Date(t.value.event.date_start),bymonth:pe()})),Object.keys(w).length==0?t.value.event.period=null:t.value.event.period=JSON.stringify(_)},o=[g.SU,g.MO,g.TU,g.WE,g.TH,g.FR,g.SA],i=St().alert,c=w=>!!w||"Поле обязательно",m={name:[w=>c(w)]},h=O([]);ue.get("api/calendar_of_events/get_employees/").then(w=>{h.value=w.data.filter(_=>_.employees.length>0)});const d=Ie(),y=H({get(){let w=[],_=t.value.mycalendars.findIndex(U=>U.id==b.value[0].id);return h.value.forEach(U=>{let R={...U};R.employees=U.employees.filter(V=>((V.id==d.user.is_idEmployee||t.value.event.participant.some(ie=>V.id==ie))&&(V.selected=!0),t.value.mycalendars[_].participant.some(ie=>ie.id===V.id))),R.employees.length>0&&w.push(R)}),w}}),p=w=>{ue.delete(`api/calendar_of_events/my_events/?delid=${w}`).then(_=>{i.alert=!0,i.text=_.data.mess,i.ico="mdi-check",i.color="orange-accent-1",e("getCalendar")}),e("closeDialog")},T=O([]),S=w=>{T.value=w},b=H({get(){let w=[];if(t.value.event.calendar){let _=t.value.mycalendars.findIndex(U=>U.id==t.value.event.calendar);w.push({cl_name:t.value.mycalendars[_].cl_name,cl_color:t.value.mycalendars[_].cl_color,id:t.value.mycalendars[_].id})}else w.push({cl_name:t.value.mycalendars[0].cl_name,cl_color:t.value.mycalendars[0].cl_color,id:t.value.mycalendars[0].id});return t.value.event.calendar==null&&(t.value.event.calendar=t.value.mycalendars[0].id),w},set(w){t.value.event.calendar=w.value}}),C=O(""),I=O(!1),E=()=>{t.value.event.hasOwnProperty("id")?(C.value="Редактирование события",I.value=!1):(C.value="Новое событие",I.value=!0)},k=w=>{w.staff.forEach(_=>{if(_.selected==!0&&!t.value.event.participant.includes(_.id))t.value.event.participant.push(_.id);else{let U=t.value.event.participant.findIndex(R=>R==_.id);U!=-1&&t.value.event.participant.splice(U,1)}})},x=H({get(){return Tt(new Date(t.value.event.date_start))},set(w){w.split(".")}}),N=O(!1),re=w=>{if(w){let _=new FormData;_.append("event",JSON.stringify({...t.value.event})),t.value.event.files!==null&&T.value.forEach(U=>_.append("files",U)),ue.post("api/calendar_of_events/my_events/",_).then(U=>{i.alert=!0,i.text=U.data.mess,i.ico="mdi-check",i.color="green-darken-4",e("getCalendar"),e("closeDialog")})}},Oe=()=>{const w=new Date(t.value.event.date_start),_=new Date(t.value.event.date_end);let U=w.getDay(),R=_.getDay();const V=[];if(w.getDay()>_.getDay()){R=6;for(let J=U;J<=R;J++)V.push(J)}if(w.getDay()!=_.getDay()&&w.getDay()>_.getDay()){U=0;for(let J=U;J<=_.getDay();J++)V.push(J)}if(w.getDay()<_.getDay())for(let J=U;J<=_.getDay();J++)V.push(J);w.getDay()==_.getDay()&&V.push(w.getDay());let ie=[];return V.forEach(J=>{ie.push(o[J])}),ie},ve=()=>{const w=new Date(t.value.event.date_start),_=new Date(t.value.event.date_end);let U=w.getDate(),R=_.getDate();const V=[];for(let ie=U;ie<=R;ie++)V.push(ie);return console.log(V.length,"дни в месяце"),V},Ve=()=>{const w=new Date(t.value.event.date_start),_=new Date(t.value.event.date_end);let U=je(w,_),R=[];return U.forEach(V=>R.push Line truncated
-1
View File
@@ -1 +0,0 @@
.max-height-select .v-field__input{max-height:300px;overflow-y:auto;overflow-x:hidden;margin:5px}.custom-tooltip{max-width:350px}.fade-enter-active,.fade-leave-active{transition:opacity .1s}.fade-enter,.fade-leave-to{transition:opacity .2s;opacity:0}.calendar .v-expansion-panel-text__wrapper{padding:0 10px 0 0!important}.trasitlist:hover .transitbtn{animation-fill-mode:forwards;animation-duration:.5s;animation-name:filli}@keyframes filli{0%{margin-left:100%;opacity:0}to{margin-left:0%;opacity:1}}.transitbtn{opacity:0}.v-calendar__container{overflow:auto;height:87vh}.minCal .v-date-picker-month__day{height:31px;width:31px}.minCal .v-btn--icon.v-btn--density-default{width:calc(var(--v-btn-height) + 12px);height:calc(var(--v-btn-height) + 6px)}.minCal .v-btn__content{font-weight:410}
-1
View File
@@ -1 +0,0 @@
.meheight{max-height:44vh}.active-tab{background-color:#e0f2f1;color:#004d40}a{color:inherit}
-372
View File
@@ -1,372 +0,0 @@
import{r as yd,s as q,Q as Yl,x as j,v as x,F as fl,L as JZ,R as od,S as dU,G as LR,t as Bl,y as Zc,A as oa,a0 as pF,E as lU,C as jd,$ as sZ,af as mV,am as Em,w as Vi,e as $h,b8 as AR,b9 as wm,al as Cm,f as le,aV as _R,aX as rm,ba as ra,u as xa,X as qR,M as xm,T as IR,U as Pn,b0 as Qi,a5 as de,_ as Ue,bb as Mc,B as $R,aN as jm,J as Om,H as aQ,I as WQ,D as gm,Z as Km,bc as sQ,a2 as lN,V as dN,b3 as Hm,bd as vm,aT as Pm}from"./index-C95RwDyc.js";import{P as fm}from"./PatternTabs-DP6kb3_a.js";import{V as Am,a as ii}from"./VWindowItem-CwjWCzE9.js";import{V as _m}from"./VSpacer-s9BvDJET.js";import{V as te}from"./VContainer-CjvDnvH-.js";import{V as qm,a as $m,b as l2}from"./VRadioGroup-CGZo6Lwe.js";import{V as UN,a as tN,b as ZN,c as FN}from"./VExpansionPanels-DFuDjsnE.js";import{V as cN}from"./VList-CyfHwXPn.js";import"./VTabs-B5dBzlqM.js";import"./ssrBoot-CCLXtj7a.js";import"./VCheckboxBtn-RWiQsUNN.js";import"./VSelectionControl-CabHpyF4.js";import"./VInput-B82efaBR.js";const d2={__name:"TestSafety",props:{data:Array},setup(U){const l=yd([{question:"Вопрос 1",answers:["1","2","3","4"]},{question:"Вопрос 2",answers:["Rer","LoL","Fort","FullG"]},{checkQuestion:"Вопрос с чексбоксом",answers:["Кукумбер","Сикельд"]}]),d=yd(""),t=yd([]),Z=yd([]),F=yd(0);return(c,a)=>(q(),Yl(od,null,[j(lU,null,{default:x(()=>[j(fl,{cols:"12"},{default:x(()=>[j(JZ,null,{default:x(()=>[j(Am,{modelValue:F.value,"onUpdate:modelValue":a[2]||(a[2]=W=>F.value=W)},{default:x(()=>[(q(!0),Yl(od,null,dU(l.value,(W,s)=>(q(),Bl(ii,{key:s},{default:x(()=>[W.question?(q(),Bl(JZ,{key:0,title:W.question},{default:x(()=>[j(qm,{modelValue:d.value,"onUpdate:modelValue":a[0]||(a[0]=V=>d.value=V),label:"Выберите вариант ответа"},{default:x(()=>[(q(!0),Yl(od,null,dU(W.answers,V=>(q(),Bl($m,{label:V,value:V},null,8,["label","value"]))),256))]),_:2},1032,["modelValue"])]),_:2},1032,["title"])):pF("",!0),W.checkQuestion?(q(),Bl(JZ,{key:1,title:W.checkQuestion},{default:x(()=>[(q(!0),Yl(od,null,dU(W.answers,V=>(q(),Bl(l2,{modelValue:t.value,"onUpdate:modelValue":a[1]||(a[1]=Q=>t.value=Q),label:V,value:V},null,8,["modelValue","label","value"]))),256))]),_:2},1032,["title"])):pF("",!0)]),_:2},1024))),128))]),_:1},8,["modelValue"]),j(LR,null,{default:x(()=>[F.value>0?(q(),Bl(oa,{key:0,variant:"text",onClick:a[3]||(a[3]=W=>F.value--)},{default:x(()=>a[5]||(a[5]=[Zc(" Back ")])),_:1})):pF("",!0),j(_m),F.value<l.value.length?(q(),Bl(oa,{key:1,variant:"text",onClick:a[4]||(a[4]=W=>F.value++)},{default:x(()=>a[6]||(a[6]=[Zc(" Next ")])),_:1})):pF("",!0)]),_:1})]),_:1})]),_:1})]),_:1}),j(lU,null,{default:x(()=>[j(fl,null,{default:x(()=>[j(JZ,{title:"Результат"},{default:x(()=>[j(te,null,{default:x(()=>[jd("p",null,"Количество баллов: "+sZ(Z.value),1)]),_:1})]),_:1})]),_:1})]),_:1})],64))}};var U2=Object.defineProperty,Ze=U=>{throw TypeError(U)},t2=(U,l,d)=>l in U?U2(U,l,{enumerable:!0,configurable:!0,writable:!0,value:d}):U[l]=d,f=(U,l,d)=>t2(U,typeof l!="symbol"?l+"":l,d),DR=(U,l,d)=>l.has(U)||Ze("Cannot "+d),n=(U,l,d)=>(DR(U,l,"read from private field"),d?d.call(U):l.get(U)),b=(U,l,d)=>l.has(U)?Ze("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(U):l.set(U,d),R=(U,l,d,t)=>(DR(U,l,"write to private field"),l.set(U,d),d),h=(U,l,d)=>(DR(U,l,"access private method"),d),kd=(U,l,d,t)=>({set _(Z){R(U,l,Z)},get _(){return n(U,l,t)}}),Z2={9306:(U,l,d)=>{var t=d(4901),Z=d(6823),F=TypeError;U.exports=function(c){if(t(c))return c;throw new F(Z(c)+" is not a function")}},3506:(U,l,d)=>{var t=d(3925),Z=String,F=TypeError;U.exports=function(c){if(t(c))return c;throw new F("Can't set "+Z(c)+" as a prototype")}},7080:(U,l,d)=>{var t=d(4402).has;U.exports=function(Z){return t(Z),Z}},679:(U,l,d)=>{var t=d(1625),Z=TypeError;U.exports=function(F,c){if(t(c,F))return F;throw new Z("Incorrect invocation")}},8551:(U,l,d)=>{var t=d(34),Z=String,F=TypeError;U.exports=function(c){if(t(c))return c;throw new F(Z(c)+" is not an object")}},7811:U=>{U.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},7394:(U,l,d)=>{var t=d(4576),Z=d(6706),F=d(2195),c=t.ArrayBuffer,a=t.TypeError;U.exports=c&&Z(c.prototype,"byteLength","get")||function(W){if(F(W)!=="ArrayBuffer")throw new a("ArrayBuffer expected");return W.byteLength}},3238:(U,l,d)=>{var t=d(4576),Z=d(7476),F=d(7394),c=t.ArrayBuffer,a=c&&c.prototype,W=a&&Z(a.slice);U.exports=function(s){if(F(s)!==0||!W)return!1;try{return W(s,0,0),!1}catch{return!0}}},5169:(U,l,d)=>{var t=d(3238),Z=TypeError;U.exports=function(F){if(t(F))throw new Z("ArrayBuffer is detached");return F}},5636:(U,l,d)=>{var t=d(4576),Z=d(9504),F=d(6706),c=d(7696),a=d(5169),W=d(7394),s=d(4483),V=d(1548),Q=t.structuredClone,i=t.ArrayBuffer,N=t.DataView,e=Math.min,m=i.prototype,M=N.prototype,J=Z(m.slice),S=F(m,"resizable","get"),G=F(m,"maxByteLength","get"),X=Z(M.getInt8),u=Z(M.setInt8);U.exports=(V||s)&&function(p,Y,o){var T=W(p),B=Y===void 0?T:c(Y),y=!S||!S(p),w;if(Line truncated
`,"\\r":"\r","\\t":" "},i=/^[\da-f]{4}$/i,N=/^[\u0000-\u001F]$/;U.exports=function(e,m){for(var M=!0,J="";m<e.length;){var S=W(e,m);if(S==="\\"){var G=s(e,m,m+2);if(Z(Q,G))J+=Q[G],m+=2;else if(G==="\\u"){m+=2;var X=s(e,m,m+4);if(!V(i,X))throw new F("Bad Unicode escape at: "+m);J+=a(c(X,16)),m+=4}else throw new F('Unknown escape sequence: "'+G+'"')}else if(S==='"'){M=!1,m++;break}else{if(V(N,S))throw new F("Bad control character in string literal at: "+m);J+=S,m++}}if(M)throw new F("Unterminated string at: "+m);return{value:J,end:m}}},1103:U=>{U.exports=function(l){try{return{error:!1,value:l()}}catch(d){return{error:!0,value:d}}}},7750:(U,l,d)=>{var t=d(4117),Z=TypeError;U.exports=function(F){if(t(F))throw new Z("Can't call method on "+F);return F}},9286:(U,l,d)=>{var t=d(4402),Z=d(8469),F=t.Set,c=t.add;U.exports=function(a){var W=new F;return Z(a,function(s){c(W,s)}),W}},3440:(U,l,d)=>{var t=d(7080),Z=d(4402),F=d(9286),c=d(5170),a=d(3789),W=d(8469),s=d(507),V=Z.has,Q=Z.remove;U.exports=function(i){var N=t(this),e=a(i),m=F(N);return c(N)<=e.size?W(N,function(M){e.includes(M)&&Q(m,M)}):s(e.getIterator(),function(M){V(N,M)&&Q(m,M)}),m}},4402:(U,l,d)=>{var t=d(9504),Z=Set.prototype;U.exports={Set,add:t(Z.add),has:t(Z.has),remove:t(Z.delete),proto:Z}},8750:(U,l,d)=>{var t=d(7080),Z=d(4402),F=d(5170),c=d(3789),a=d(8469),W=d(507),s=Z.Set,V=Z.add,Q=Z.has;U.exports=function(i){var N=t(this),e=c(i),m=new s;return F(N)>e.size?W(e.getIterator(),function(M){Q(N,M)&&V(m,M)}):a(N,function(M){e.includes(M)&&V(m,M)}),m}},4449:(U,l,d)=>{var t=d(7080),Z=d(4402).has,F=d(5170),c=d(3789),a=d(8469),W=d(507),s=d(9539);U.exports=function(V){var Q=t(this),i=c(V);if(F(Q)<=i.size)return a(Q,function(e){if(i.includes(e))return!1},!0)!==!1;var N=i.getIterator();return W(N,function(e){if(Z(Q,e))return s(N,"normal",!1)})!==!1}},3838:(U,l,d)=>{var t=d(7080),Z=d(5170),F=d(8469),c=d(3789);U.exports=function(a){var W=t(this),s=c(a);return Z(W)>s.size?!1:F(W,function(V){if(!s.includes(V))return!1},!0)!==!1}},8527:(U,l,d)=>{var t=d(7080),Z=d(4402).has,F=d(5170),c=d(3789),a=d(507),W=d(9539);U.exports=function(s){var V=t(this),Q=c(s);if(F(V)<Q.size)return!1;var i=Q.getIterator();return a(i,function(N){if(!Z(V,N))return W(i,"normal",!1)})!==!1}},8469:(U,l,d)=>{var t=d(9504),Z=d(507),F=d(4402),c=F.Set,a=F.proto,W=t(a.forEach),s=t(a.keys),V=s(new c).next;U.exports=function(Q,i,N){return N?Z({iterator:s(Q),next:V},i):W(Q,i)}},4916:(U,l,d)=>{var t=d(7751),Z=function(F){return{size:F,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};U.exports=function(F){var c=t("Set");try{new c()[F](Z(0));try{return new c()[F](Z(-1)),!1}catch{return!0}}catch{return!1}}},5170:(U,l,d)=>{var t=d(6706),Z=d(4402);U.exports=t(Z.proto,"size","get")||function(F){return F.size}},3650:(U,l,d)=>{var t=d(7080),Z=d(4402),F=d(9286),c=d(3789),a=d(507),W=Z.add,s=Z.has,V=Z.remove;U.exports=function(Q){var i=t(this),N=c(Q).getIterator(),e=F(i);return a(N,function(m){s(i,m)?V(e,m):W(e,m)}),e}},4204:(U,l,d)=>{var t=d(7080),Z=d(4402).add,F=d(9286),c=d(3789),a=d(507);U.exports=function(W){var s=t(this),V=c(W).getIterator(),Q=F(s);return a(V,function(i){Z(Q,i)}),Q}},6119:(U,l,d)=>{var t=d(5745),Z=d(3392),F=t("keys");U.exports=function(c){return F[c]||(F[c]=Z(c))}},7629:(U,l,d)=>{var t=d(6395),Z=d(4576),F=d(9433),c="__core-js_shared__",a=U.exports=Z[c]||F(c,{});(a.versions||(a.versions=[])).push({version:"3.39.0",mode:t?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:(U,l,d)=>{var t=d(7629);U.exports=function(Z,F){return t[Z]||(t[Z]=F||{})}},1548:(U,l,d)=>{var t=d(4576),Z=d(9039),F=d(9519),c=d(4215),a=t.structuredClone;U.exports=!!a&&!Z(function(){if(c==="DENO"&&F>92||c==="NODE"&&F>94||c==="BROWSER"&&F>97)return!1;var W=new ArrayBuffer(8),s=a(W,{transfer:[W]});return W.byteLength!==0||s.byteLength!==8})},4495:(U,l,d)=>{var t=d(9519),Z=d(9039),F=d(4576),c=F.String;U.exports=!!Object.getOwnPropertySymbols&&!Z(function(){var a=Symbol("symbol detection");return!c(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&t&&t<41})},5610:(U,l,d)=>{var t=d(1291),Z=Math.max,F=Math.min;U.exports=function(c,a){var W=t(c);return W<0?Z(W+a,0):F(W,a)}},5854:(U,l,d)=>{var t=d(2777),Z=TypeError;U.exports=function(F){var c=t(F,"number");if(typeof c=="number")throw new Z("Can't convert number to bigint");return BigInt(c)}},7696:(U,l,d)=>{var t=d(1291),Z=d(8014),F=RangeError;U.exports=function(c){if(c===void 0)return 0;var a=t(c),W=Z(a);if(a!==W)throw new F("Wrong length or index");return W}},5397:(U,l,d)=>{var t=d(7055),Z=d(7750);U.exports=function(F){return t(Z(F))}},1291:(U,l,d)=>{var t=d(741);U.exports=function(Z){var F=+Z;return F!==F||F===0?0:t(F)}},8014:(U,l,d)=>{var t=d(1291),Z=Math.min;U.exports=function(F){var c=t(F);return c>0?Z(c,9007199254740991):0}},8981:(U,l,d)=>{var t=d(7750),Z=Object;U.exports=function(F){return Z(t(F))}},95 Line truncated
`);return l.join("")}}function dn(U,l){try{const{protocol:d}=l?new URL(U,l):new URL(U);return d==="http:"||d==="https:"}catch{return!1}}function oU(U){U.preventDefault()}function UU(U){U.preventDefault(),U.stopPropagation()}var eQ,Gc;let ne=(eQ=class{static toDateObject(U){if(!U||typeof U!="string")return null;n(this,Gc)||R(this,Gc,new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const l=n(this,Gc).exec(U);if(!l)return null;const d=parseInt(l[1],10);let t=parseInt(l[2],10);t=t>=1&&t<=12?t-1:0;let Z=parseInt(l[3],10);Z=Z>=1&&Z<=31?Z:1;let F=parseInt(l[4],10);F=F>=0&&F<=23?F:0;let c=parseInt(l[5],10);c=c>=0&&c<=59?c:0;let a=parseInt(l[6],10);a=a>=0&&a<=59?a:0;const W=l[7]||"Z";let s=parseInt(l[8],10);s=s>=0&&s<=23?s:0;let V=parseInt(l[9],10)||0;return V=V>=0&&V<=59?V:0,W==="-"?(F+=s,c+=V):W==="+"&&(F-=s,c-=V),new Date(Date.UTC(d,t,Z,F,c,a))}},Gc=new WeakMap,b(eQ,Gc),eQ);function S2(U,{scale:l=1,rotation:d=0}){const{width:t,height:Z}=U.attributes.style,F=[0,0,parseInt(t),parseInt(Z)];return new Da({viewBox:F,userUnit:1,scale:l,rotation:d})}function xR(U){if(U.startsWith("#")){const l=parseInt(U.slice(1),16);return[(l&16711680)>>16,(l&65280)>>8,l&255]}return U.startsWith("rgb(")?U.slice(4,-1).split(",").map(l=>parseInt(l)):U.startsWith("rgba(")?U.slice(5,-1).split(",").map(l=>parseInt(l)).slice(0,3):(ll(`Not a valid color format: "${U}"`),[0,0,0])}function T2(U){const l=document.createElement("span");l.style.visibility="hidden",document.body.append(l);for(const d of U.keys()){l.style.color=d;const t=window.getComputedStyle(l).color;U.set(d,xR(t))}l.remove()}function Xl(U){const{a:l,b:d,c:t,d:Z,e:F,f:c}=U.getTransform();return[l,d,t,Z,F,c]}function LU(U){const{a:l,b:d,c:t,d:Z,e:F,f:c}=U.getTransform().invertSelf();return[l,d,t,Z,F,c]}function DF(U,l,d=!1,t=!0){if(l instanceof Da){const{pageWidth:Z,pageHeight:F}=l.rawDims,{style:c}=U,a=zd.isCSSRoundSupported,W=`var(--scale-factor) * ${Z}px`,s=`var(--scale-factor) * ${F}px`,V=a?`round(down, ${W}, var(--scale-round-x, 1px))`:`calc(${W})`,Q=a?`round(down, ${s}, var(--scale-round-y, 1px))`:`calc(${s})`;!d||l.rotation%180===0?(c.width=V,c.height=Q):(c.width=Q,c.height=V)}t&&U.setAttribute("data-main-rotation",l.rotation)}let jR=class{constructor(){const U=window.devicePixelRatio||1;this.sx=U,this.sy=U}get scaled(){return this.sx!==1||this.sy!==1}get symmetric(){return this.sx===this.sy}};var _Z,a0,lt,C0,jW,fn,hi,ae,qU,VN,QN,JV,We,ei;const OW=class gW{constructor(l){b(this,qU),b(this,_Z,null),b(this,a0,null),b(this,lt),b(this,C0,null),b(this,jW,null),R(this,lt,l),n(gW,fn)||R(gW,fn,Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button"}))}render(){const l=R(this,_Z,document.createElement("div"));l.classList.add("editToolbar","hidden"),l.setAttribute("role","toolbar");const d=n(this,lt)._uiManager._signal;l.addEventListener("contextmenu",oU,{signal:d}),l.addEventListener("pointerdown",h(gW,hi,ae),{signal:d});const t=R(this,C0,document.createElement("div"));t.className="buttons",l.append(t);const Z=n(this,lt).toolbarPosition;if(Z){const{style:F}=l,c=n(this,lt)._uiManager.direction==="ltr"?1-Z[0]:Z[0];F.insetInlineEnd=`${100*c}%`,F.top=`calc(${100*Z[1]}% + var(--editor-toolbar-vert-offset))`}return h(this,qU,We).call(this),l}get div(){return n(this,_Z)}hide(){var l;n(this,_Z).classList.add("hidden"),(l=n(this,a0))==null||l.hideDropdown()}show(){var l;n(this,_Z).classList.remove("hidden"),(l=n(this,jW))==null||l.shown()}async addAltText(l){const d=await l.render();h(this,qU,JV).call(this,d),n(this,C0).prepend(d,n(this,qU,ei)),R(this,jW,l)}addColorPicker(l){R(this,a0,l);const d=l.renderButton();h(this,qU,JV).call(this,d),n(this,C0).prepend(d,n(this,qU,ei))}remove(){var l;n(this,_Z).remove(),(l=n(this,a0))==null||l.destroy(),R(this,a0,null)}};_Z=new WeakMap,a0=new WeakMap,lt=new WeakMap,C0=new WeakMap,jW=new WeakMap,fn=new WeakMap,hi=new WeakSet,ae=function(U){U.stopPropagation()},qU=new WeakSet,VN=function(U){n(this,lt)._focusEventsAllowed=!1,UU(U)},QN=function(U){n(this,lt)._focusEventsAllowed=!0,UU(U)},JV=function(U){const l=n(this,lt)._uiManager._signal;U.addEventListener("focusin",h(this,qU,VN).bind(this),{capture:!0,signal:l}),U.addEventListener("focusout",h(this,qU,QN).bind(this),{capture:!0,signal:l}),U.addEventListener("contextmenu",oU,{signal:l})},We=function(){const{editorType:U,_uiManager:l}=n(this,lt),d=document.createElement("button");d.className="delete",d.tabIndex=0,d.setAttribute("data-l10n-id",n(OW,fn)[U]),h(this,qU,JV).call(this,d),d.addEventListener("click",t=>{l.delete()},{signal:l._signal}),n(this,C0).append(d)},ei=function(){const U=document.createElement("div");return U.className="divider",U},b(OW,hi),b(OW,fn,null);let X2=OW;var KW,GF,r0,An,se,Ve,iN;class u2{constructor(l){b(this,An),b(this,KW,null),b(this,GF,null),b(this,r0),R(this,r0,l)}show(l,d,t){const[Z,F]=h(th Line truncated
`))||null;s&&this.data.comb&&(s=s.replaceAll(/\s+/g,""));const V={userValue:a,formattedValue:s,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(F=document.createElement("textarea"),F.textContent=s??a,this.data.doNotScroll&&(F.style.overflowY="hidden")):(F=document.createElement("input"),F.type="text",F.setAttribute("value",s??a),this.data.doNotScroll&&(F.style.overflowX="hidden")),this.data.hasOwnCanvas&&(F.hidden=!0),EF.add(F),F.setAttribute("data-element-id",Z),F.disabled=this.data.readOnly,F.name=this.data.fieldName,F.tabIndex=wa,this._setRequired(F,this.data.required),W&&(F.maxLength=W),F.addEventListener("input",i=>{t.setValue(Z,{value:i.target.value}),this.setPropertyOnSiblings(F,"value",i.target.value,"value"),V.formattedValue=null}),F.addEventListener("resetform",i=>{const N=this.data.defaultFieldValue??"";F.value=V.userValue=N,V.formattedValue=null});let Q=i=>{const{formattedValue:N}=V;N!=null&&(i.target.value=N),i.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){F.addEventListener("focus",N=>{var e;if(V.focused)return;const{target:m}=N;V.userValue&&(m.value=V.userValue),V.lastCommittedValue=m.value,V.commitKey=1,(e=this.data.actions)!=null&&e.Focus||(V.focused=!0)}),F.addEventListener("updatefromsandbox",N=>{this.showElementAndHideCanvas(N.target);const e={value(m){V.userValue=m.detail.value??"",t.setValue(Z,{value:V.userValue.toString()}),m.target.value=V.userValue},formattedValue(m){const{formattedValue:M}=m.detail;V.formattedValue=M,M!=null&&m.target!==document.activeElement&&(m.target.value=M),t.setValue(Z,{formattedValue:M})},selRange(m){m.target.setSelectionRange(...m.detail.selRange)},charLimit:m=>{var M;const{charLimit:J}=m.detail,{target:S}=m;if(J===0){S.removeAttribute("maxLength");return}S.setAttribute("maxLength",J);let G=V.userValue;!G||G.length<=J||(G=G.slice(0,J),S.value=V.userValue=G,t.setValue(Z,{value:G}),(M=this.linkService.eventBus)==null||M.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Z,name:"Keystroke",value:G,willCommit:!0,commitKey:1,selStart:S.selectionStart,selEnd:S.selectionEnd}}))}};this._dispatchEventFromSandbox(e,N)}),F.addEventListener("keydown",N=>{var e;V.commitKey=1;let m=-1;if(N.key==="Escape"?m=0:N.key==="Enter"&&!this.data.multiLine?m=2:N.key==="Tab"&&(V.commitKey=3),m===-1)return;const{value:M}=N.target;V.lastCommittedValue!==M&&(V.lastCommittedValue=M,V.userValue=M,(e=this.linkService.eventBus)==null||e.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Z,name:"Keystroke",value:M,willCommit:!0,commitKey:m,selStart:N.target.selectionStart,selEnd:N.target.selectionEnd}}))});const i=Q;Q=null,F.addEventListener("blur",N=>{var e,m;if(!V.focused||!N.relatedTarget)return;(e=this.data.actions)!=null&&e.Blur||(V.focused=!1);const{value:M}=N.target;V.userValue=M,V.lastCommittedValue!==M&&((m=this.linkService.eventBus)==null||m.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Z,name:"Keystroke",value:M,willCommit:!0,commitKey:V.commitKey,selStart:N.target.selectionStart,selEnd:N.target.selectionEnd}})),i(N)}),(d=this.data.actions)!=null&&d.Keystroke&&F.addEventListener("beforeinput",N=>{var e;V.lastCommittedValue=null;const{data:m,target:M}=N,{value:J,selectionStart:S,selectionEnd:G}=M;let X=S,u=G;switch(N.inputType){case"deleteWordBackward":{const p=J.substring(0,S).match(/\w*[^\w]*$/);p&&(X-=p[0].length);break}case"deleteWordForward":{const p=J.substring(S).match(/^[^\w]*\w*/);p&&(u+=p[0].length);break}case"deleteContentBackward":S===G&&(X-=1);break;case"deleteContentForward":S===G&&(u+=1);break}N.preventDefault(),(e=this.linkService.eventBus)==null||e.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Z,name:"Keystroke",value:J,change:m||"",willCommit:!1,selStart:X,selEnd:u}})}),this._setEventListeners(F,V,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],N=>N.target.value)}if(Q&&F.addEventListener("blur",Q),this.data.comb){const i=(this.data.rect[2]-this.data.rect[0])/W;F.classList.add("comb"),F.style.letterSpacing=`calc(${i}px * var(--scale-factor) - 1ch)`}}else F=document.createElement("div"),F.textContent=this.data.fieldValue,F.style.verticalAlign="middle",F.style.display="table-cell",this.data.hasOwnCanvas&&(F.hidden=!0);return this._setTextStyle(F),this._setBackgroundColor(F),this._setDefaultPropertiesFromJS(F),this.container.append(F),this.container}}class vM extends wF{constructor(l){super(l,{isRenderable:!!l.data.hasOwnCanvas})}}class PM extends wF{constructor(l){super(l,{isRenderable:l.renderForms})}render(){const l=this.annotationStorage,d=this.data,t=d.id;let Z=l.getValue(t,{value:d.exportValue===d.fieldValue}).value;typeof Z=="string"&&(Z=Z!=="Off",l.setValue(t,{value:Z})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const F=document.createElement("input");return EF.add(F),F.setAttribute("data-element-id",t),F.disabled=d.readOnly,this._setRequired(F,this.data.required),F Line truncated
`))l.push({name:"span",value:Z,attributes:t});return d},Zb=function(U){U.altKey||U.shiftKey||U.ctrlKey||U.metaKey||(U.key==="Enter"||U.key==="Escape"&&n(this,At))&&h(this,Al,yV).call(this)},qN=function(){if(n(this,NZ)!==null)return;const{page:{view:U},viewport:{rawDims:{pageWidth:l,pageHeight:d,pageX:t,pageY:Z}}}=n(this,BV);let F=!!n(this,ta),c=F?n(this,ta):n(this,oV);for(const i of n(this,YV))if(!c||K.intersect(i.data.rect,c)!==null){c=i.data.rect,F=!0;break}const a=K.normalizeRect([c[0],U[3]-c[1]+U[1],c[2],U[3]-c[3]+U[1]]),W=F?c[2]-c[0]+5:0,s=a[0]+W,V=a[1];R(this,NZ,[100*(s-t)/l,100*(V-Z)/d]);const{style:Q}=n(this,wl);Q.left=`${n(this,NZ)[0]}%`,Q.top=`${n(this,NZ)[1]}%`},yV=function(){R(this,At,!n(this,At)),n(this,At)?(h(this,Al,kV).call(this),n(this,wl).addEventListener("click",n(this,Ua)),n(this,wl).addEventListener("keydown",n(this,da))):(h(this,Al,gi).call(this),n(this,wl).removeEventListener("click",n(this,Ua)),n(this,wl).removeEventListener("keydown",n(this,da)))},kV=function(){n(this,HU)||this.render(),this.isVisible?n(this,At)&&n(this,wl).classList.add("focused"):(h(this,Al,qN).call(this),n(this,wl).hidden=!1,n(this,wl).style.zIndex=parseInt(n(this,wl).style.zIndex)+1e3)},gi=function(){n(this,wl).classList.remove("focused"),!(n(this,At)||!this.isVisible)&&(n(this,wl).hidden=!0,n(this,wl).style.zIndex=parseInt(n(this,wl).style.zIndex)-1e3)};class Fb extends _l{constructor(l){super(l,{isRenderable:!0,ignoreBorder:!0}),this.textContent=l.data.textContent,this.textPosition=l.data.textPosition,this.annotationEditorType=Zl.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const l=document.createElement("div");l.classList.add("annotationTextContent"),l.setAttribute("role","comment");for(const d of this.textContent){const t=document.createElement("span");t.textContent=d,l.append(t)}this.container.append(l)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}var Vs;class qM extends _l{constructor(l){super(l,{isRenderable:!0,ignoreBorder:!0}),b(this,Vs,null)}render(){this.container.classList.add("lineAnnotation");const l=this.data,{width:d,height:t}=YZ(l.rect),Z=this.svgFactory.create(d,t,!0),F=R(this,Vs,this.svgFactory.createElement("svg:line"));return F.setAttribute("x1",l.rect[2]-l.lineCoordinates[0]),F.setAttribute("y1",l.rect[3]-l.lineCoordinates[1]),F.setAttribute("x2",l.rect[2]-l.lineCoordinates[2]),F.setAttribute("y2",l.rect[3]-l.lineCoordinates[3]),F.setAttribute("stroke-width",l.borderStyle.width||1),F.setAttribute("stroke","transparent"),F.setAttribute("fill","transparent"),Z.append(F),this.container.append(Z),!l.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return n(this,Vs)}addHighlightArea(){this.container.classList.add("highlightArea")}}Vs=new WeakMap;var Qs;class $M extends _l{constructor(l){super(l,{isRenderable:!0,ignoreBorder:!0}),b(this,Qs,null)}render(){this.container.classList.add("squareAnnotation");const l=this.data,{width:d,height:t}=YZ(l.rect),Z=this.svgFactory.create(d,t,!0),F=l.borderStyle.width,c=R(this,Qs,this.svgFactory.createElement("svg:rect"));return c.setAttribute("x",F/2),c.setAttribute("y",F/2),c.setAttribute("width",d-F),c.setAttribute("height",t-F),c.setAttribute("stroke-width",F||1),c.setAttribute("stroke","transparent"),c.setAttribute("fill","transparent"),Z.append(c),this.container.append(Z),!l.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return n(this,Qs)}addHighlightArea(){this.container.classList.add("highlightArea")}}Qs=new WeakMap;var is;class lJ extends _l{constructor(l){super(l,{isRenderable:!0,ignoreBorder:!0}),b(this,is,null)}render(){this.container.classList.add("circleAnnotation");const l=this.data,{width:d,height:t}=YZ(l.rect),Z=this.svgFactory.create(d,t,!0),F=l.borderStyle.width,c=R(this,is,this.svgFactory.createElement("svg:ellipse"));return c.setAttribute("cx",d/2),c.setAttribute("cy",t/2),c.setAttribute("rx",d/2-F/2),c.setAttribute("ry",t/2-F/2),c.setAttribute("stroke-width",F||1),c.setAttribute("stroke","transparent"),c.setAttribute("fill","transparent"),Z.append(c),this.container.append(Z),!l.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return n(this,is)}addHighlightArea(){this.container.classList.add("highlightArea")}}is=new WeakMap;var Rs;class cb extends _l{constructor(l){super(l,{isRenderable:!0,ignoreBorder:!0}),b(this,Rs,null),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const{data:{rect:l,vertices:d,borderStyle:t,popupRef:Z}}=this;if(!d)return this.container;const{width:F,height:c}=YZ(l),a=this.svgFactory.create(F,c,!0);let W=[];for(let V=0,Q=d.length;V<Q;V+=2){const i=d[V]-l[0],N=l[3]-d[V+1];W.push(`${i},${N}`)}W=W.join(" ");const s=R(this,Rs,this.svgFactory.createElement(this.svgElementName));return s.setAttri Line truncated
`);if(!a)return;const W=window.getSelection();if(!W.rangeCount)return;this.editorDiv.normalize(),W.deleteFromDocument();const s=W.getRangeAt(0);if(!a.includes(`
`)){s.insertNode(document.createTextNode(a)),this.editorDiv.normalize(),W.collapseToStart();return}const{startContainer:V,startOffset:Q}=s,i=[],N=[];if(V.nodeType===Node.TEXT_NODE){const M=V.parentElement;if(N.push(V.nodeValue.slice(Q).replaceAll(ms,"")),M!==this.editorDiv){let J=i;for(const S of this.editorDiv.childNodes){if(S===M){J=N;continue}J.push(h(t=Fd,yF,LV).call(t,S))}}i.push(V.nodeValue.slice(0,Q).replaceAll(ms,""))}else if(V===this.editorDiv){let M=i,J=0;for(const S of this.editorDiv.childNodes)J++===Q&&(M=N),M.push(h(Z=Fd,yF,LV).call(Z,S))}R(this,RU,`${i.join(`
`)}${a}${N.join(`
`)}`),h(this,Pd,Js).call(this);const e=new Range;let m=i.reduce((M,J)=>M+J.length,0);for(const{firstChild:M}of this.editorDiv.childNodes)if(M.nodeType===Node.TEXT_NODE){const J=M.nodeValue.length;if(m<=J){e.setStart(M,m),e.setEnd(M,m);break}m-=J}W.removeAllRanges(),W.addRange(e)}get contentDiv(){return this.editorDiv}static async deserialize(l,d,t){var Z;let F=null;if(l instanceof Fb){const{data:{defaultAppearanceData:{fontSize:a,fontColor:W},rect:s,rotation:V,id:Q,popupRef:i},textContent:N,textPosition:e,parent:{page:{pageNumber:m}}}=l;if(!N||N.length===0)return null;F=l={annotationType:Zl.FREETEXT,color:Array.from(W),fontSize:a,value:N.join(`
`),position:e,pageIndex:m-1,rect:s.slice(0),rotation:V,id:Q,deleted:!1,popupRef:i}}const c=await super.deserialize(l,d,t);return R(c,NU,l.fontSize),R(c,AU,K.makeHexColor(...l.color)),R(c,RU,h(Z=Fd,yF,vi).call(Z,l.value)),c.annotationElementId=l.id||null,c._initialData=F,c}serialize(l=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const d=Fd._internalPadding*this.parentScale,t=this.getRect(d,d),Z=Cl._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:n(this,AU)),F={annotationType:Zl.FREETEXT,color:Z,fontSize:n(this,NU),value:h(this,Pd,Qb).call(this),pageIndex:this.pageIndex,rect:t,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return l?F:this.annotationElementId&&!h(this,Pd,ib).call(this,F)?null:(F.id=this.annotationElementId,F)}renderAnnotationElement(l){const d=super.renderAnnotationElement(l);if(this.deleted)return d;const{style:t}=d;t.fontSize=`calc(${n(this,NU)}px * var(--scale-factor))`,t.color=n(this,AU),d.replaceChildren();for(const F of n(this,RU).split(`
`)){const c=document.createElement("div");c.append(F?document.createTextNode(F):document.createElement("br")),d.append(c)}const Z=Fd._internalPadding*this.parentScale;return l.updateEdited({rect:this.getRect(Z,Z),popupContent:n(this,RU)}),d}resetAnnotationElement(l){super.resetAnnotationElement(l),l.resetEdited()}};AU=new WeakMap,RU=new WeakMap,Ms=new WeakMap,X0=new WeakMap,NU=new WeakMap,Pd=new WeakSet,Wb=function(U){const l=t=>{this.editorDiv.style.fontSize=`calc(${t}px * var(--scale-factor))`,this.translate(0,-(t-n(this,NU))*this.parentScale),R(this,NU,t),h(this,Pd,zV).call(this)},d=n(this,NU);this.addCommands({cmd:l.bind(this,U),undo:l.bind(this,d),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:nl.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},sb=function(U){const l=t=>{R(this,AU,this.editorDiv.style.color=t)},d=n(this,AU);this.addCommands({cmd:l.bind(this,U),undo:l.bind(this,d),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:nl.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},Vb=function(){var U;const l=[];this.editorDiv.normalize();let d=null;for(const t of this.editorDiv.childNodes)(d==null?void 0:d.nodeType)===Node.TEXT_NODE&&t.nodeName==="BR"||(l.push(h(U=it,yF,LV).call(U,t)),d=t);return l.join(`
`)},zV=function(){const[U,l]=this.parentDimensions;let d;if(this.isAttachedToDOM)d=this.div.getBoundingClientRect();else{const{currentLayer:t,div:Z}=this,F=Z.style.display,c=Z.classList.contains("hidden");Z.classList.remove("hidden"),Z.style.display="hidden",t.div.append(this.div),d=Z.getBoundingClientRect(),Z.remove(),Z.style.display=F,Z.classList.toggle("hidden",c)}this.rotation%180===this.parentRotation%180?(this.width=d.width/U,this.height=d.height/l):(this.width=d.height/U,this.height=d.width/l),this.fixAndSetPosition()},yF=new WeakSet,LV=function(U){return(U.nodeType===Node.TEXT_NODE?U.nodeValue:U.innerText).replaceAll(ms,"")},Js=function(){if(this.editorDiv.replaceChildren(),!!n(this,RU))for(const U of n(this,RU).split(`
`)){const l=document.createElement("div");l.append(U?document.createTextNode(U):document.createElement("br")),this.editorDiv.append(l)}},Qb=function(){return n(this,RU).replaceAll(" "," ")},vi=function(U){return U.replaceAll(" "," ")},ib=function(U){const{value:l,fontSize:d,color:t,pageIndex:Z}=this._initialData;return this._hasBeenMoved||U.value!==l||U.fontSize!==d||U.color.some((F,c)=>F!==t[c])||U.pageIndex!==Z},b(it,yF),f(it,"_freeTextDefaultContent",""),f(it,"_internalPadding",0),f(it,"_defaultColor",null),f(it,"_defaultFontSize",10),f(it,"_type","freetext"),f(it,"_editorType",Zl.FREETEXT);let aJ=it;class O{toSVGPath(){Jl("Abstract method `toSVGPath` must be implemented.")}get box(){Jl("Abstract getter `box` must be implemented.")}serialize(l,d){Jl("Abstract method `serialize` must be implemented.")}static _rescale(l,d,t,Z,F,c){c||(c=new Float32Array(l.length));for(let a=0,W=l.length;a<W;a+=2)c[a]=d+l[a]*Z,c[a+1]=t+l[a+1]*F;return c}static _rescaleAndSwap(l,d,t,Z,F,c){c||(c=new Float32Array(l.length));for(let a=0,W=l.length;a<W;a+=2)c[a]=d+l[a+1]*Z,c[a+1]=t+l[a]*F;return c}static _translate(l,d,t,Z){Z||(Z=new Float32Array(l.length));for(let F=0,c=l.length;F<c;F+=2)Z[F]=d+l[F],Z[F+1]=t+l[F+1];return Z}static svgRound(l){return Math.round(l*1e4)}static _normalizePoint(l,d,t,Z,F){switch(F){case 90:return[1-d/t,l/Z];case 180:return[1-l/t,1-d/Z];case 270:return[d/t,1-l/Z];default:return[l/t,d/Z]}}static _normalizePagePoint(l,d,t){switch(t){case 90:return[1-d,l];case 180:return[1-l,1-d];case 270:return[d,1-l];default:return[l,d]}}static createBezierPoints(l,d,t,Z,F,c){return[(l+5*t)/6,(d+5*Z)/6,(5*t+F)/6,(5*Z+c)/6,(t+F)/2,(Z+c)/2]}}f(O,"PRECISION",1e-4);var hU,_U,Za,Fa,Rt,cl,nc,ac,Gs,Ss,ca,un,cF,Ts,DQ,Pi,eU,jc,Rb,Nb,hb,eb,bb,mb;const u0=class fi{constructor({x:l,y:d},t,Z,F,c,a=0){b(this,eU),b(this,hU),b(this,_U,[]),b(this,Za),b(this,Fa),b(this,Rt,[]),b(this,cl,new Float32Array(18)),b(this,nc),b(this,ac),b(this,Gs),b(this,Ss),b(this,ca),b(this,un),b(this,cF,[]),R(this,hU,t),R(this,un,F*Z),R(this,Fa,c),n(this,cl).set([NaN,NaN,NaN,NaN,l,d],6),R(this,Za,a),R(this,Ss,n(fi,Ts)*Z),R(this,Gs,n(fi,Pi)*Z),R(this,ca,Z),n(this,cF).push(l,d)}isEmpty(){return isNaN(n(this,cl)[8])}add({x:l,y:d}){var t;R(this,nc,l),R(this,ac,d);const[Z,F,c,a]=n(this,hU);let[W,s,V,Q]=n(this,cl).subarray(8,12);const i=l-V,N=d-Q,e=Math.hypot(i,N);if(e<n(this,Gs))return!1;const m=e-n(this,Ss),M=m/e,J=M*i,S=M*N;let G=W,X=s;W=V,s=Q,V+=J,Q+=S,(t=n(this,cF))==null||t.push(l,d);const u=-S/m,p=J/m,Y=u*n(this,un),o=p*n(this,un);return n(this,cl).set(n(this,cl).subarray(2,8),0),n(this,cl).set([V+Y,Q+o],4),n(this,cl).set(n(this,cl).subarray(14,18),12),n(this,cl).set([V-Y,Q-o],16),isNaN(n(this,cl)[6])?(n(this,Rt).length===0&&(n(this,cl).set([W+Y,s+o],2),n(this,Rt).push(NaN,NaN,NaN,NaN,(W+Y-Z)/c,(s+o-F)/a),n(this,cl).set([W-Y,s-o],14),n(this,_U).push(NaN,NaN,NaN,NaN,(W-Y-Z)/c,(s-o-F)/a)),n(this,cl).set([G,X,W,s,V,Q],6),!this.isEmpty()):(n(this,cl).set([G,X,W,s,V,Q],6),Math.abs(Math.atan2(X-s,G-W)-Math.atan2(S,J))<Math.PI/2?([W,s,V,Q]=n(this,cl).subarray(2,6),n(this,Rt).push(NaN,NaN,NaN,NaN,((W+V)/2-Z)/c,((s+Q)/2-F)/a),[W,s,G,X]=n(this,cl).subarray(14,18),n(this,_U).push(NaN,NaN,NaN,NaN,((G+W)/2-Z)/c,((X+s)/2-F)/a),!0):([G,X,W,s,V,Q]=n(this,cl).subarray(0,6),n(this,Rt).push(((G+5*W)/6-Z)/c,((X+5*s)/6-F)/a,((5*W+V)/6-Z)/c,((5*s+Q)/6-F)/a,((W+V)/2-Z)/c,((s+Q)/2-F)/a),[V,Q,W,s,G,X]=n(this,cl).subarray(12,18),n(this,_U).push(((G+5*W)/6-Z)/c,((X+5*s)/6-F)/a,((5*W+V)/6-Z)/c,((5*s+Q)/6-F)/a,((W+V)/2-Z)/c,((s+Q)/2-F)/a),!0))}toSVGPath(){if(this.isEmpty())return"";const l=n(this,Rt),d=n(this,_U);if(isNaN(n(this,cl)[6])&&!this.isEmpty())return h(this,eU,Rb).call(this);const t=[];t.push(`M${l[4]} ${l[5]}`);for(let Z=6;Z<l.length;Z+=6)isNaN(l[Z])?t.push(`L${l[Z+4]} ${l[Z+5]}`):t.push(`C${l[Z]} ${l[Z+1]} ${l[Z+2]} ${l[Z+3]} ${l[Z+4]} ${l[Z+5]}`);h(this,eU,hb).call(this,t);for(let Z=d.length-6;Z>=6;Z-=6)isNaN(d[Z])?t.push(`L${d[Z+4]} ${d[Z+5]}`):t.push(`C${d[Z]} ${d[Z+1]} ${d[Z+2]} ${d[Z+3]} ${d[Z+4]} ${d[Z+5]}`);return h(this,eU,Nb).call(this,t),t.join(" ")}newFreeDrawOutline(l,d,t,Z,F,c){return new Gb(l,d,t,Z,F,c)}getOutlines(){var l;const d=n(this,Rt),t=n(this,_U),Z=n(this,cl),[F,c,a,W]=n(this,hU),s=new Float32Array((((l=n(this,cF))==null?void 0:l.length)??0)+2);for(let i=0,N=s.length-2;i<N;i+=2)s[i]=(n(this,cF)[i]-F)/a,s[i+1]=(n(this,cF)[i+1]-c)/W;if(s[s.length-2]=(n(this,nc)-F)/a,s[s.length-1]=(n(this,ac)-c)/W,isNaN(Z[6])&&!this.isEmpty())return h(this,eU,eb).call(this,s);const V=new Float32Array(n(this,Rt).length+24+n(this,_U).length);let Q=d.length;for(let i=0;i<Q;i+=2){if(isNaN(d[i])){V[i]=V[i+1]=NaN;continue}V[i]=d[i],V[i+1]=d[i+1]}Q=h(this,eU,mb).call(this,V,Q);for(let i=t.length-6;i>=6;i-=6)for(let N=0;N<6;N+=2){if(isNaN(t[i+N])){V[Q]=V[Q+1]=NaN,Q+=2;continue}V[Q]=t[i+N],V[Q+1]=t[i+N+1],Q+=2}return h(this,eU,bb).call(this,V,Q),this.newFreeDrawOutline(V,s,n(this,hU),n(this,ca),n(this,Za),n(this,Fa))}};hU=new WeakMap,_U=new WeakMap,Za=new WeakMap,Fa=new WeakM Line truncated
@page {
margin: 3mm;
size: ${l}pt ${d}pt;
}
body {
margin: 0;
}
canvas {
width: 100%;
page-break-after: always;
page-break-before: avoid;
page-break-inside: avoid;
}
`,U.contentWindow.document.head.appendChild(t),U.contentWindow.document.body.style.width="100%"}function pJ(U){return new Promise(l=>{const d=document.createElement("iframe");d.width="0",d.height="0",d.style.position="absolute",d.style.top="0",d.style.left="0",d.style.border="none",d.style.overflow="hidden",d.onload=()=>l(d),U.appendChild(d)})}function YJ(U,l){const d=URL.createObjectURL(new Blob([U],{type:"application/pdf"})),t=document.createElement("a");t.href=d,t.download=l,t.style.display="none",document.body.append(t),t.click(),setTimeout(()=>{URL.revokeObjectURL(d),document.body.removeChild(t)},1e3)}function ah(U){for(;U!=null&&U.firstChild;)U.removeChild(U.firstChild)}function vQ(U){U==null||U.querySelectorAll("canvas").forEach(l=>{var d;l.width=1,l.height=1,(d=l.getContext("2d"))==null||d.clearRect(0,0,1,1)})}function Wh(U){return Object.prototype.hasOwnProperty.call(U,"_pdfInfo")}function gb({onError:U,onPasswordRequest:l,onProgress:d,source:t}){const Z=mV(null),F=mV(null);return Em(async()=>{const c=AR(t);if(c){if(Wh(c)){Z.value=c;return}try{F.value=TJ(c),l&&(F.value.onPassword=(a,W)=>{l({callback:a,isWrongPassword:W===GJ.INCORRECT_PASSWORD})}),d&&(F.value.onProgress=d),Z.value=await F.value.promise}catch(a){if(Z.value=null,U)U(a);else throw a}}}),Vi(Z,(c,a)=>{a==null||a.destroy()}),$h(()=>{var c,a,W,s;(c=F.value)!=null&&c.onPassword&&(F.value.onPassword=null),(a=F.value)!=null&&a.onProgress&&(F.value.onProgress=null),(W=F.value)==null||W.destroy(),Wh(AR(t))||(s=Z.value)==null||s.destroy()}),{doc:Z}}var ha={};ha.d=(U,l)=>{for(var d in l)ha.o(l,d)&&!ha.o(U,d)&&Object.defineProperty(U,d,{enumerable:!0,get:l[d]})};ha.o=(U,l)=>Object.prototype.hasOwnProperty.call(U,l);var kl=globalThis.pdfjsViewer={};ha.d(kl,{AnnotationLayerBuilder:()=>Zm,DownloadManager:()=>SG,EventBus:()=>cm,FindState:()=>_t,GenericL10n:()=>nQ,LinkTarget:()=>VF,PDFFindController:()=>WG,PDFHistory:()=>JS,PDFLinkService:()=>tm,PDFPageView:()=>Xm,PDFScriptingManager:()=>IS,PDFSinglePageViewer:()=>CS,PDFViewer:()=>Im,ProgressBar:()=>rJ,RenderingStates:()=>Dl,ScrollMode:()=>Wl,SimpleLinkService:()=>vR,SpreadMode:()=>Sd,StructTreeLayerBuilder:()=>bm,TextLayerBuilder:()=>Sm,XfaLayerBuilder:()=>Tm,parseQueryString:()=>FQ});const BJ="auto",Kb=1,sh=1.1,oJ=.1,yJ=10,PQ=0,kJ=1.25,Hb=40,vb=5,Dl={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3},Vc={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3},dt={DISABLE:0,ENABLE:1,ENABLE_PERMISSIONS:2},Wl={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3},Sd={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};function Pb(U,l,d=!1){let t=U.offsetParent;if(!t){console.error("offsetParent is not set -- cannot scroll");return}let Z=U.offsetTop+U.clientTop,F=U.offsetLeft+U.clientLeft;for(;t.clientHeight===t.scrollHeight&&t.clientWidth===t.scrollWidth||d&&(t.classList.contains("markedContent")||getComputedStyle(t).overflow==="hidden");)if(Z+=t.offsetTop,F+=t.offsetLeft,t=t.offsetParent,!t)return;l&&(l.top!==void 0&&(Z+=l.top),l.left!==void 0&&(F+=l.left,t.scrollLeft=F)),t.scrollTop=Z}function zJ(U,l,d=void 0){const t=function(c){F||(F=window.requestAnimationFrame(function(){F=null;const a=U.scrollLeft,W=Z.lastX;a!==W&&(Z.right=a>W),Z.lastX=a;const s=U.scrollTop,V=Z.lastY;s!==V&&(Z.down=s>V),Z.lastY=s,l(Z)}))},Z={right:!0,down:!0,lastX:U.scrollLeft,lastY:U.scrollTop,_eventHandler:t};let F=null;return U.addEventListener("scroll",t,{useCapture:!0,signal:d}),d==null||d.addEventListener("abort",()=>window.cancelAnimationFrame(F),{once:!0}),Z}function FQ(U){const l=new Map;for(const[d,t]of new URLSearchParams(U))l.set(d.toLowerCase(),t);return l}const Vh=/[\x00-\x1F]/g;function ea(U,l=!1){return Vh.test(U)?l?U.replaceAll(Vh,d=>d==="\0"?"":" "):U.replaceAll("\0",""):U}function La(U,l,d=0){let t=d,Z=U.length-1;if(Z<0||!l(U[Z]))return U.length;if(l(U[t]))return t;for(;t<Z;){const F=t+Z>>1,c=U[F];l(c)?Z=F:t=F+1}return t}function Qh(U){if(Math.floor(U)===U)return[U,1];const l=1/U,d=8;if(l>d)return[1,d];if(Math.floor(l)===l)return[1,l];const t=U>1?l:U;let Z=0,F=1,c=1,a=1;for(;;){const s=Z+c,V=F+a;if(V>d)break;t<=s/V?(c=s,a=V):(Z=s,F=V)}let W;return t-Z/F<c/a-t?W=t===U?[Z,F]:[F,Z]:W=t===U?[c,a]:[a,c],W}function zW(U,l){return U-U%l}function LJ(U,l,d){if(U<2)return U;let t=l[U].div,Z=t.offsetTop+t.clientTop;Z>=d&&(t=l[U-1].div,Z=t.offsetTop+t.clientTop);for(let F=U-2;F>=0&&(t=l[F].div,!(t.offsetTop+t.clientTop+t.clientHeight<=Z));--F)U=F;return U}function IJ({scrollEl:U,views:l,sortByVisibility:d=!1,horizontal:t=!1,rtl:Z=!1}){const F=U.scrollTop,c=F+U.clientHeight,a=U.scrollLeft,W=a+U.clientWidth;function s(S){const G=S.div;return G.offsetTop+G.clientTop+G.clientHeight>F}function V(S){const G=S.div,X=G.offsetLeft+G.clientLeft,u=X+G.clientWidth;return Z?X<W:u>a}const Q=[],i=new Set,N=l.length;let e=La(l,t?V:s);e>0&&e<N&&!t&&(e=LJ(e,l,F));let m=t?W:-1;for(let S=e;S<N;S++){const G=l[S],X=G.div,u=X.offsetLeft+X.clientLeft,p=X.offsetTop+X.clientTop,Y=X.clientWidth,o=X.clientHeight,T=u+Y,B=p+o;if(m===-1)B>=c&&(m=B);else if((t?u:p)>m)break;if(B<=F||p>=c||T<=a| Line truncated
`),E=D?G.length-2:G.length;i=!0;let I=E;T+Q===((y=Z[a])==null?void 0:y[1])&&(I-=Z[a][0],++a);for(let L=1;L<=I;L++)c.push(T-1-s+L,s-L);return s-=I,V+=I,D?(T+=E-1,c.push(T-s+1,1+s),s+=1,V+=1,Q+=1,G.slice(0,E)):G}if(X)return V+=1,Q+=1,X.replace(`
`,"");if(u){const D=u.length-2;return c.push(T-s+D,1+s),s+=1,V+=1,Q+=1,u.slice(0,-2)}if(p){const D=p.length-1;return c.push(T-s+D,s),V+=1,Q+=1,p.slice(0,-1)}if(Y)return c.push(T-s+1,s-1),s-=1,V+=1,Q+=1," ";if(T+Q===((w=l[W])==null?void 0:w[1])){const D=l[W][0]-1;++W;for(let E=1;E<=D;E++)c.push(T-(s-E),s-E);s-=D,V+=D}return o}),c.push(F.length,s);const N=new Uint32Array(c.length>>1),e=new Int32Array(c.length>>1);for(let m=0,M=c.length;m<M;m+=2)N[m>>1]=c[m],e[m>>1]=c[m+1];return[F,[N,e],i]}function aG(U,l,d){if(!U)return[l,d];const[t,Z]=U,F=l,c=l+d-1;let a=La(t,Q=>Q>=F);t[a]>F&&--a;let W=La(t,Q=>Q>=c,a);t[W]>c&&--W;const s=F+Z[a],V=c+Z[W]+1-s;return[s,V]}var sd,ba,k0,Ul,_b,nR,li,eh,qb,aR,bh,mh,DW,_c,n0,Mh,di,Ui,EW,$b,ti,Zi,qc;class WG{constructor({linkService:l,eventBus:d,updateMatchesCountOnProgress:t=!0}){b(this,Ul),b(this,sd,null),b(this,ba,!0),b(this,k0,0),this._linkService=l,this._eventBus=d,R(this,ba,t),this.onIsPageVisible=null,h(this,Ul,nR).call(this),d._on("find",h(this,Ul,_b).bind(this)),d._on("findbarclose",h(this,Ul,$b).bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return n(this,sd)}setDocument(l){this._pdfDocument&&h(this,Ul,nR).call(this),l&&(this._pdfDocument=l,this._firstPageCapability.resolve())}scrollMatchIntoView({element:l=null,selectedLeft:d=0,pageIndex:t=-1,matchIndex:Z=-1}){if(!this._scrollMatches||!l||Z===-1||Z!==this._selected.matchIdx||t===-1||t!==this._selected.pageIdx)return;this._scrollMatches=!1;const F={top:lG,left:d+dG};Pb(l,F,!0)}match(l,d,t){const Z=this._hasDiacritics[t];let F=!1;if(typeof l=="string"?[F,l]=h(this,Ul,aR).call(this,l,Z):l=l.sort().reverse().map(Q=>{const[i,N]=h(this,Ul,aR).call(this,Q,Z);return F||(F=i),`(${N})`}).join("|"),!l)return;const{caseSensitive:c,entireWord:a}=n(this,sd),W=`g${F?"u":""}${c?"":"i"}`;l=new RegExp(l,W);const s=[];let V;for(;(V=l.exec(d))!==null;)a&&!h(this,Ul,qb).call(this,d,V.index,V[0].length)||s.push({index:V.index,length:V[0].length});return s}}sd=new WeakMap,ba=new WeakMap,k0=new WeakMap,Ul=new WeakSet,_b=function(U){if(!U)return;const l=this._pdfDocument,{type:d}=U;(n(this,sd)===null||h(this,Ul,eh).call(this,U))&&(this._dirtyMatch=!0),R(this,sd,U),d!=="highlightallchange"&&h(this,Ul,qc).call(this,_t.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||l&&this._pdfDocument!==l)return;h(this,Ul,mh).call(this);const t=!this._highlightMatches,Z=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),d?this._dirtyMatch?h(this,Ul,n0).call(this):d==="again"?(h(this,Ul,n0).call(this),t&&n(this,sd).highlightAll&&h(this,Ul,_c).call(this)):d==="highlightallchange"?(Z?h(this,Ul,n0).call(this):this._highlightMatches=!0,h(this,Ul,_c).call(this)):h(this,Ul,n0).call(this):this._findTimeout=setTimeout(()=>{h(this,Ul,n0).call(this),this._findTimeout=null},$J)})},nR=function(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],R(this,k0,0),R(this,sd,null),this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=Promise.withResolvers()},li=function(){const{query:U}=n(this,sd);return typeof U=="string"?(U!==this._rawQuery&&(this._rawQuery=U,[this._normalizedQuery]=$Q(U)),this._normalizedQuery):(U||[]).filter(l=>!!l).map(l=>$Q(l)[0])},eh=function(U){var l;const d=U.query,t=n(this,sd).query,Z=typeof d;if(Z!==typeof t)return!0;if(Z==="string"){if(d!==t)return!0}else if(JSON.stringify(d)!==JSON.stringify(t))return!0;switch(U.type){case"again":const F=this._selected.pageIdx+1,c=this._linkService;return F>=1&&F<=c.pagesCount&&F!==c.page&&!(((l=this.onIsPageVisible)==null?void 0:l.call(this,F))??!0);case"highlightallchange":return!1}return!0},qb=function(U,l,d){let t=U.slice(0,l).match(ZG);if(t){const Z=U.charCodeAt(l),F=t[1].charCodeAt(0);if(IW(Z)===IW(F))return!1}if(t=U.slice(l+d).match(FG),t){const Z=U.charCodeAt(l+d-1),F=t[1].charCodeAt(0);if(IW(Z)===IW(F))return!1}return!0},aR=function(U,l){const{matchDiacritics:d}=n(this,sd);let t=!1;U=U.replaceAll(tG,(F,c,a,W,s,V)=>c?`[ ]*\\${c}[ ]*`:a?`[ ]*${a}[ ]*`:W?"[ ]+":d?s||V:s?Rh.has(s.charCodeAt(0))?s:"":l?(t=!0,`${V}\\p{M}*`):V);const Z="[ ]*";return U.endsWith(Z)&&(U=U.slice(0,U.length-Z.length)),d&&l&&(AQ||(AQ=String.fromCharCode(...Rh)),t=!0,U=`${U}(?=[${AQ}]|[^\\p{M}]|$)`),[t,U]},bh=function(U){const l=n(this,Ul,li);if(l.length===0)return;const d=this._pageContents[U],t=this.match(l,d,U),Z=this._pageMatches[U]=[],F=this._pageMatchesLength[U]=[],c=this._pageDiffs[U];t==null||t.fo Line truncated
`);[this._pageContents[d],this._pageDiffs[d],this._hasDiacritics[d]]=$Q(a.join("")),F()},c=>{console.error(`Unable to get text content for page ${d+1}`,c),this._pageContents[d]="",this._pageDiffs[d]=null,this._hasDiacritics[d]=!1,F()}))}},DW=function(U){this._scrollMatches&&this._selected.pageIdx===U&&(this._linkService.page=U+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:U})},_c=function(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})},n0=function(){const U=n(this,sd).findPrevious,l=this._linkService.page-1,d=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=l,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,R(this,k0,0),this._matchesCountTotal=0,h(this,Ul,_c).call(this);for(let Z=0;Z<d;Z++)this._pendingFindMatches.has(Z)||(this._pendingFindMatches.add(Z),this._extractTextPromises[Z].then(()=>{this._pendingFindMatches.delete(Z),h(this,Ul,bh).call(this,Z)}))}if(n(this,Ul,li).length===0){h(this,Ul,qc).call(this,_t.FOUND);return}if(this._resumePageIdx)return;const t=this._offset;if(this._pagesToSearch=d,t.matchIdx!==null){const Z=this._pageMatches[t.pageIdx].length;if(!U&&t.matchIdx+1<Z||U&&t.matchIdx>0){t.matchIdx=U?t.matchIdx-1:t.matchIdx+1,h(this,Ul,EW).call(this,!0);return}h(this,Ul,Ui).call(this,U)}h(this,Ul,di).call(this)},Mh=function(U){const l=this._offset,d=U.length,t=n(this,sd).findPrevious;return d?(l.matchIdx=t?d-1:0,h(this,Ul,EW).call(this,!0),!0):(h(this,Ul,Ui).call(this,t),l.wrapped&&(l.matchIdx=null,this._pagesToSearch<0)?(h(this,Ul,EW).call(this,!1),!0):!1)},di=function(){this._resumePageIdx!==null&&console.error("There can only be one pending page.");let U=null;do{const l=this._offset.pageIdx;if(U=this._pageMatches[l],!U){this._resumePageIdx=l;break}}while(!h(this,Ul,Mh).call(this,U))},Ui=function(U){const l=this._offset,d=this._linkService.pagesCount;l.pageIdx=U?l.pageIdx-1:l.pageIdx+1,l.matchIdx=null,this._pagesToSearch--,(l.pageIdx>=d||l.pageIdx<0)&&(l.pageIdx=U?d-1:0,l.wrapped=!0)},EW=function(U=!1){let l=_t.NOT_FOUND;const d=this._offset.wrapped;if(this._offset.wrapped=!1,U){const t=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,l=d?_t.WRAPPED:_t.FOUND,t!==-1&&t!==this._selected.pageIdx&&h(this,Ul,DW).call(this,t)}h(this,Ul,qc).call(this,l,n(this,sd).findPrevious),this._selected.pageIdx!==-1&&(this._scrollMatches=!0,h(this,Ul,DW).call(this,this._selected.pageIdx))},$b=function(U){const l=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||l&&this._pdfDocument!==l||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),h(this,Ul,qc).call(this,_t.FOUND),this._highlightMatches=!1,h(this,Ul,_c).call(this))})},ti=function(){var U;const{pageIdx:l,matchIdx:d}=this._selected;let t=0,Z=this._matchesCountTotal;if(d!==-1){for(let F=0;F<l;F++)t+=((U=this._pageMatches[F])==null?void 0:U.length)||0;t+=d+1}return(t<1||t>Z)&&(t=Z=0),{current:t,total:Z}},Zi=function(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:h(this,Ul,ti).call(this)})},qc=function(U,l=!1){var d,t;!n(this,ba)&&(n(this,k0)!==this._linkService.pagesCount||U===_t.PENDING)||this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:U,previous:l,entireWord:((d=n(this,sd))==null?void 0:d.entireWord)??null,matchesCount:h(this,Ul,ti).call(this),rawQuery:((t=n(this,sd))==null?void 0:t.query)??null})};const sG="noopener noreferrer nofollow",VF={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};var WR,lm;const dm=class Um{constructor({eventBus:l,externalLinkTarget:d=null,externalLinkRel:t=null,ignoreDestinationZoom:Z=!1}={}){f(this,"externalLinkEnabled",!0),this.eventBus=l,this.externalLinkTarget=d,this.externalLinkRel=t,this._ignoreDestinationZoom=Z,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(l,d=null){this.baseUrl=d,this.pdfDocument=l}setViewer(l){this.pdfViewer=l}setHistory(l){this.pdfHistory=l}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfDocument?this.pdfViewer.currentPageNumber:1}set page(l){this.pdfDocument&&(this.pdfViewer.currentPageNumber=l)}get rotation(){return this.pdfDocument?this.pdfViewer.pagesRotation:0}set rotation(l){this.pdfDocument&&(this.pdfViewer.pagesRotation=l)}get isInPresentationMode(){return this.pdfDocument?this.pdfViewer.isInPresentationMode:!1}async goToDestination(l){if(!this.pdfDocument)return;let d,t,Z;if(typeof l=="string"?(d=l,t=await this.pdfDocument.getDestination(l)):(d=null,t=await l),!Array.isArray(t)){console.error(`goToDestination: "${t}" is not a valid destination array, for dest="${l}".`);return}const[F]=t;if(F&&typeof F=="object"){if( Line truncated
`),y=gG.exec(T)[1].length;return new Dh(B,y)}}}class Dh{constructor(l,d){this.value=l,this.length=d}}const lS=/<|&#?\w+;/,dS={"http://www.w3.org/1999/xhtml":["em","strong","small","s","cite","q","dfn","abbr","data","time","code","var","samp","kbd","sub","sup","i","b","u","mark","bdi","bdo","span","br","wbr"]},US={"http://www.w3.org/1999/xhtml":{global:["title","aria-label","aria-valuetext"],a:["download"],area:["download","alt"],input:["alt","placeholder"],menuitem:["label"],menu:["label"],optgroup:["label"],option:["label"],track:["label"],img:["alt"],textarea:["placeholder"],th:["abbr"]},"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul":{global:["accesskey","aria-label","aria-valuetext","label","title","tooltiptext"],description:["value"],key:["key","keycode"],label:["value"],textbox:["placeholder","value"]}};function tS(U,l){const{value:d}=l;if(typeof d=="string")if(U.localName==="title"&&U.namespaceURI==="http://www.w3.org/1999/xhtml")U.textContent=d;else if(!lS.test(d))U.textContent=d;else{const t=U.ownerDocument.createElementNS("http://www.w3.org/1999/xhtml","template");t.innerHTML=d,ZS(t.content,U)}am(l,U)}function ZS(U,l){for(const d of U.childNodes)if(d.nodeType!==d.TEXT_NODE){if(d.hasAttribute("data-l10n-name")){const t=cS(l,d);U.replaceChild(t,d);continue}if(aS(d)){const t=nS(d);U.replaceChild(t,d);continue}console.warn(`An element of forbidden type "${d.localName}" was found in the translation. Only safe text-level elements and elements with data-l10n-name are allowed.`),U.replaceChild(iR(d),d)}l.textContent="",l.appendChild(U)}function FS(U,l){if(!U)return!1;for(let d of U)if(d.name===l)return!0;return!1}function am(U,l){const d=l.hasAttribute("data-l10n-attrs")?l.getAttribute("data-l10n-attrs").split(",").map(t=>t.trim()):null;for(const t of Array.from(l.attributes))Eh(t.name,l,d)&&!FS(U.attributes,t.name)&&l.removeAttribute(t.name);if(U.attributes)for(const t of Array.from(U.attributes))Eh(t.name,l,d)&&l.getAttribute(t.name)!==t.value&&l.setAttribute(t.name,t.value)}function cS(U,l){const d=l.getAttribute("data-l10n-name"),t=U.querySelector(`[data-l10n-name="${d}"]`);if(!t)return console.warn(`An element named "${d}" wasn't found in the source.`),iR(l);if(t.localName!==l.localName)return console.warn(`An element named "${d}" was found in the translation but its type ${l.localName} didn't match the element found in the source (${t.localName}).`),iR(l);U.removeChild(t);const Z=t.cloneNode(!1);return Wm(l,Z)}function nS(U){const l=U.ownerDocument.createElement(U.localName);return Wm(U,l)}function iR(U){return U.ownerDocument.createTextNode(U.textContent)}function aS(U){const l=dS[U.namespaceURI];return l&&l.includes(U.localName)}function Eh(U,l,d=null){if(d&&d.includes(U))return!0;const t=US[l.namespaceURI];if(!t)return!1;const Z=U.toLowerCase(),F=l.localName;if(t.global.includes(Z))return!0;if(!t[F])return!1;if(t[F].includes(Z))return!0;if(l.namespaceURI==="http://www.w3.org/1999/xhtml"&&F==="input"&&Z==="value"){const c=l.type.toLowerCase();if(c==="submit"||c==="button"||c==="reset")return!0}return!1}function Wm(U,l){return l.textContent=U.textContent,am(U,l),l}class WS extends Array{static from(l){return l instanceof this?l:new this(l)}}class sS extends WS{constructor(l){if(super(),Symbol.asyncIterator in Object(l))this.iterator=l[Symbol.asyncIterator]();else if(Symbol.iterator in Object(l))this.iterator=l[Symbol.iterator]();else throw new TypeError("Argument must implement the iteration protocol.")}[Symbol.asyncIterator](){const l=this;let d=0;return{async next(){return l.length<=d&&l.push(l.iterator.next()),l[d++]}}}async touchNext(l=1){let d=0;for(;d++<l;){const t=this[this.length-1];if(t&&(await t).done)break;this.push(this.iterator.next())}return this[this.length-1]}}class VS{constructor(l=[],d){this.resourceIds=l,this.generateBundles=d,this.onChange(!0)}addResourceIds(l,d=!1){return this.resourceIds.push(...l),this.onChange(d),this.resourceIds.length}removeResourceIds(l){return this.resourceIds=this.resourceIds.filter(d=>!l.includes(d)),this.onChange(),this.resourceIds.length}async formatWithFallback(l,d){const t=[];let Z=!1;for await(const F of this.bundles){Z=!0;const c=RS(d,F,l,t);if(c.size===0)break;if(typeof console<"u"){const a=F.locales[0],W=Array.from(c).join(", ");console.warn(`[fluent] Missing translations in ${a}: ${W}`)}}return!Z&&typeof console<"u"&&console.warn(`[fluent] Request for keys failed because no resource bundles got generated.
keys: ${JSON.stringify(l)}.
resourceIds: ${JSON.stringify(this.resourceIds)}.`),t}formatMessages(l){return this.formatWithFallback(l,iS)}formatValues(l){return this.formatWithFallback(l,QS)}async formatValue(l,d){const[t]=await this.formatValues([{id:l,args:d}]);return t}handleEvent(){this.onChange()}onChange(l=!1){this.bundles=sS.from(this.generateBundles(this.resourceIds)),l&&this.bundles.touchNext(2)}}function QS(U,l,d,t){return d.value?U.formatPattern(d.value,t,l):null}function iS(U,l,d,t){const Z={value:null,attributes:null};d.value&&(Z.value=U.formatPattern(d.value,t,l));let F=Object.keys(d.attributes);if(F.length>0){Z.attributes=new Array(F.length);for(let[c,a]of F.entries()){let W=U.formatPattern(d.attributes[a],t,l);Z.attributes[c]={name:a,value:W}}}return Z}function RS(U,l,d,t){const Z=[],F=new Set;return d.forEach(({id:c,args:a},W)=>{if(t[W]!==void 0)return;let s=l.getMessage(c);if(s){if(Z.length=0,t[W]=U(l,Z,s,a),Z.length>0&&typeof console<"u"){const V=l.locales[0],Q=Z.join(", ");console.warn(`[fluent][resolver] errors in ${V}/${c}: ${Q}.`)}}else F.add(c)}),F}const iF="data-l10n-id",$c="data-l10n-args",NS=`[${iF}]`;class hS extends VS{constructor(l,d){super(l,d),this.roots=new Set,this.pendingrAF=null,this.pendingElements=new Set,this.windowElement=null,this.mutationObserver=null,this.observerConfig={attributes:!0,characterData:!1,childList:!0,subtree:!0,attributeFilter:[iF,$c]}}onChange(l=!1){super.onChange(l),this.roots&&this.translateRoots()}setAttributes(l,d,t){return l.setAttribute(iF,d),t?l.setAttribute($c,JSON.stringify(t)):l.removeAttribute($c),l}getAttributes(l){return{id:l.getAttribute(iF),args:JSON.parse(l.getAttribute($c)||null)}}connectRoot(l){for(const d of this.roots)if(d===l||d.contains(l)||l.contains(d))throw new Error("Cannot add a root that overlaps with existing root.");if(this.windowElement){if(this.windowElement!==l.ownerDocument.defaultView)throw new Error(`Cannot connect a root:
DOMLocalization already has a root from a different window.`)}else this.windowElement=l.ownerDocument.defaultView,this.mutationObserver=new this.windowElement.MutationObserver(d=>this.translateMutations(d));this.roots.add(l),this.mutationObserver.observe(l,this.observerConfig)}disconnectRoot(l){return this.roots.delete(l),this.pauseObserving(),this.roots.size===0?(this.mutationObserver=null,this.windowElement&&this.pendingrAF&&this.windowElement.cancelAnimationFrame(this.pendingrAF),this.windowElement=null,this.pendingrAF=null,this.pendingElements.clear(),!0):(this.resumeObserving(),!1)}translateRoots(){const l=Array.from(this.roots);return Promise.all(l.map(d=>this.translateFragment(d)))}pauseObserving(){this.mutationObserver&&(this.translateMutations(this.mutationObserver.takeRecords()),this.mutationObserver.disconnect())}resumeObserving(){if(this.mutationObserver)for(const l of this.roots)this.mutationObserver.observe(l,this.observerConfig)}translateMutations(l){for(const d of l)switch(d.type){case"attributes":d.target.hasAttribute("data-l10n-id")&&this.pendingElements.add(d.target);break;case"childList":for(const t of d.addedNodes)if(t.nodeType===t.ELEMENT_NODE)if(t.childElementCount)for(const Z of this.getTranslatables(t))this.pendingElements.add(Z);else t.hasAttribute(iF)&&this.pendingElements.add(t);break}this.pendingElements.size>0&&this.pendingrAF===null&&(this.pendingrAF=this.windowElement.requestAnimationFrame(()=>{this.translateElements(Array.from(this.pendingElements)),this.pendingElements.clear(),this.pendingrAF=null}))}translateFragment(l){return this.translateElements(this.getTranslatables(l))}async translateElements(l){if(!l.length)return;const d=l.map(this.getKeysForElement),t=await this.formatMessages(d);return this.applyTranslations(l,t)}applyTranslations(l,d){this.pauseObserving();for(let t=0;t<l.length;t++)d[t]!==void 0&&tS(l[t],d[t]);this.resumeObserving()}getTranslatables(l){const d=Array.from(l.querySelectorAll(NS));return typeof l.hasAttribute=="function"&&l.hasAttribute(iF)&&d.push(l),d}getKeysForElement(l){return{id:l.getAttribute(iF),args:JSON.parse(l.getAttribute($c)||null)}}}var Cs,qt,wn,Hd,KV,sm,Vm;const Qm=class RR{constructor({lang:l,isRTL:d},t=null){b(this,Cs),b(this,qt),b(this,wn),b(this,Hd);var Z,F;R(this,wn,h(Z=RR,KV,sm).call(Z,l)),R(this,Hd,t),R(this,Cs,d??h(F=RR,KV,Vm).call(F,n(this,wn))?"rtl":"ltr")}_setL10n(l){R(this,Hd,l)}getLanguage(){return n(this,wn)}getDirection(){return n(this,Cs)}async get(l,d=null,t){var Z;return Array.isArray(l)?(l=l.map(F=>({id:F})),(await n(this,Hd).formatMessages(l)).map(F=>F.value)):((Z=(await n(this,Hd).formatMessages([{id:l,args:d}]))[0])==null?void 0:Z.value)||t}async translate(l){(n(this,qt)||R(this,qt,new Set)).add(l);try{n(this,Hd).connectRoot(l),await n(this,Hd).translateRoots()}catch{}}async translateOnce(l){try{await n(this,Hd).translateElements([l])}catch(d){console.error("translateOnce:",d)}}async destroy(){if(n(this,qt)){for(const l of n(this,qt))n(this,Hd).disconnectRoot(l);n(this,qt).clear(),R(this,qt,null)}n(this,Hd).pauseObserving()}pause(){n(this,Hd).pauseObserving()}resume(){n(this,Hd).resumeObserving()}};Cs=new WeakMap,qt=new WeakMap,wn=new WeakMap,Hd=new WeakMap,KV=new WeakSet,sm=function(U){return U=(U==null?void 0:U.toLowerCase())||"en-us",{en:"en-us",es:"es-es",fy:"fy-nl",ga:"ga-ie",gu:"gu-in",hi:"hi-in",hy:"hy-am",nb:"nb-no",ne:"ne-np",nn:"nn-no",pa:"pa-in",pt:"pt-pt",sv:"sv-se",zh:"zh-cn"}[U]||U},Vm=function(U){const l=U.split("-",1)[0];return["ar","he","fa","ps","ur"].includes(l)},b(Qm,KV);let eS=Qm;function wh(U,l){const d=new $G(l),t=new EG(U),Z=t.addResource(d);return Z.length&&console.error("L10n errors",Z),t}var nZ,im,Ch,rh,Rm,ai;const Nm=class Cn extends eS{constructor(l){super({lang:l});const d=l?h(Cn,nZ,im).bind(Cn,"en-us",this.getLanguage()):h(Cn,nZ,Rm).bind(Cn,this.getLanguage());this._setL10n(new hS([],d))}};nZ=new WeakSet,im=async function*(U,l){const{baseURL:d,paths:t}=await h(this,nZ,rh).call(this),Z=[l];if(U!==l){const F=l.split("-",1)[0];F!==l&&Z.push(F),Z.push(U)}for(const F of Z){const c=await h(this,nZ,Ch).call(this,F,d,t);c?yield c:F==="en-us"&&(yield h(this,nZ,ai).call(this,F))}},Ch=async function(U,l,d){const t=d[U];if(!t)return null;const Z=new URL(t,l),F=await Jh(Z,"text");return wh(U,F)},rh=async function(){try{const{href:U}=document.querySelector('link[type="application/l10n"]'),l=await Jh(U,"json");return{baseURL:U.replace(/[^/]*$/,"")||"./",paths:l}}catch{}return{baseURL:"./",paths:Object.create(null)}},Rm=async function*(U){yield h(this,nZ,ai).call(this,U)},ai=async function(U){return wh(U,`pdfjs-previous-button =
.title = Previous Page
pdfjs-previous-button-label = Previous
pdfjs-next-button =
.title = Next Page
pdfjs-next-button-label = Next
pdfjs-page-input =
.title = Page
pdfjs-of-pages = of { $pagesCount }
pdfjs-page-of-pages = ({ $pageNumber } of { $pagesCount })
pdfjs-zoom-out-button =
.title = Zoom Out
pdfjs-zoom-out-button-label = Zoom Out
pdfjs-zoom-in-button =
.title = Zoom In
pdfjs-zoom-in-button-label = Zoom In
pdfjs-zoom-select =
.title = Zoom
pdfjs-presentation-mode-button =
.title = Switch to Presentation Mode
pdfjs-presentation-mode-button-label = Presentation Mode
pdfjs-open-file-button =
.title = Open File
pdfjs-open-file-button-label = Open
pdfjs-print-button =
.title = Print
pdfjs-print-button-label = Print
pdfjs-save-button =
.title = Save
pdfjs-save-button-label = Save
pdfjs-download-button =
.title = Download
pdfjs-download-button-label = Download
pdfjs-bookmark-button =
.title = Current Page (View URL from Current Page)
pdfjs-bookmark-button-label = Current Page
pdfjs-tools-button =
.title = Tools
pdfjs-tools-button-label = Tools
pdfjs-first-page-button =
.title = Go to First Page
pdfjs-first-page-button-label = Go to First Page
pdfjs-last-page-button =
.title = Go to Last Page
pdfjs-last-page-button-label = Go to Last Page
pdfjs-page-rotate-cw-button =
.title = Rotate Clockwise
pdfjs-page-rotate-cw-button-label = Rotate Clockwise
pdfjs-page-rotate-ccw-button =
.title = Rotate Counterclockwise
pdfjs-page-rotate-ccw-button-label = Rotate Counterclockwise
pdfjs-cursor-text-select-tool-button =
.title = Enable Text Selection Tool
pdfjs-cursor-text-select-tool-button-label = Text Selection Tool
pdfjs-cursor-hand-tool-button =
.title = Enable Hand Tool
pdfjs-cursor-hand-tool-button-label = Hand Tool
pdfjs-scroll-page-button =
.title = Use Page Scrolling
pdfjs-scroll-page-button-label = Page Scrolling
pdfjs-scroll-vertical-button =
.title = Use Vertical Scrolling
pdfjs-scroll-vertical-button-label = Vertical Scrolling
pdfjs-scroll-horizontal-button =
.title = Use Horizontal Scrolling
pdfjs-scroll-horizontal-button-label = Horizontal Scrolling
pdfjs-scroll-wrapped-button =
.title = Use Wrapped Scrolling
pdfjs-scroll-wrapped-button-label = Wrapped Scrolling
pdfjs-spread-none-button =
.title = Do not join page spreads
pdfjs-spread-none-button-label = No Spreads
pdfjs-spread-odd-button =
.title = Join page spreads starting with odd-numbered pages
pdfjs-spread-odd-button-label = Odd Spreads
pdfjs-spread-even-button =
.title = Join page spreads starting with even-numbered pages
pdfjs-spread-even-button-label = Even Spreads
pdfjs-document-properties-button =
.title = Document Properties…
pdfjs-document-properties-button-label = Document Properties…
pdfjs-document-properties-file-name = File name:
pdfjs-document-properties-file-size = File size:
pdfjs-document-properties-size-kb = { NUMBER($kb, maximumSignificantDigits: 3) } KB ({ $b } bytes)
pdfjs-document-properties-size-mb = { NUMBER($mb, maximumSignificantDigits: 3) } MB ({ $b } bytes)
pdfjs-document-properties-title = Title:
pdfjs-document-properties-author = Author:
pdfjs-document-properties-subject = Subject:
pdfjs-document-properties-keywords = Keywords:
pdfjs-document-properties-creation-date = Creation Date:
pdfjs-document-properties-modification-date = Modification Date:
pdfjs-document-properties-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") }
pdfjs-document-properties-creator = Creator:
pdfjs-document-properties-producer = PDF Producer:
pdfjs-document-properties-version = PDF Version:
pdfjs-document-properties-page-count = Page Count:
pdfjs-document-properties-page-size = Page Size:
pdfjs-document-properties-page-size-unit-inches = in
pdfjs-document-properties-page-size-unit-millimeters = mm
pdfjs-document-properties-page-size-orientation-portrait = portrait
pdfjs-document-properties-page-size-orientation-landscape = landscape
pdfjs-document-properties-page-size-name-a-three = A3
pdfjs-document-properties-page-size-name-a-four = A4
pdfjs-document-properties-page-size-name-letter = Letter
pdfjs-document-properties-page-size-name-legal = Legal
pdfjs-document-properties-page-size-dimension-string = { $width } × { $height } { $unit } ({ $orientation })
pdfjs-document-properties-page-size-dimension-name-string = { $width } × { $height } { $unit } ({ $name }, { $orientation })
pdfjs-document-properties-linearized = Fast Web View:
pdfjs-document-properties-linearized-yes = Yes
pdfjs-document-properties-linearized-no = No
pdfjs-document-properties-close-button = Close
pdfjs-print-progress-message = Preparing document for printing…
pdfjs-print-progress-percent = { $progress }%
pdfjs-print-progress-close-button = Cancel
pdfjs-printing-not-supported = Warning: Printing is not fully supported by this browser.
pdfjs-printing-not-ready = Warning: The PDF is not fully loaded for printing.
pdfjs-toggle-sidebar-button =
.title = Toggle Sidebar
pdfjs-toggle-sidebar-notification-button =
.title = Toggle Sidebar (document contains outline/attachments/layers)
pdfjs-toggle-sidebar-button-label = Toggle Sidebar
pdfjs-document-outline-button =
.title = Show Document Outline (double-click to expand/collapse all items)
pdfjs-document-outline-button-label = Document Outline
pdfjs-attachments-button =
.title = Show Attachments
pdfjs-attachments-button-label = Attachments
pdfjs-layers-button =
.title = Show Layers (double-click to reset all layers to the default state)
pdfjs-layers-button-label = Layers
pdfjs-thumbs-button =
.title = Show Thumbnails
pdfjs-thumbs-button-label = Thumbnails
pdfjs-current-outline-item-button =
.title = Find Current Outline Item
pdfjs-current-outline-item-button-label = Current Outline Item
pdfjs-findbar-button =
.title = Find in Document
pdfjs-findbar-button-label = Find
pdfjs-additional-layers = Additional Layers
pdfjs-thumb-page-title =
.title = Page { $page }
pdfjs-thumb-page-canvas =
.aria-label = Thumbnail of Page { $page }
pdfjs-find-input =
.title = Find
.placeholder = Find in document…
pdfjs-find-previous-button =
.title = Find the previous occurrence of the phrase
pdfjs-find-previous-button-label = Previous
pdfjs-find-next-button =
.title = Find the next occurrence of the phrase
pdfjs-find-next-button-label = Next
pdfjs-find-highlight-checkbox = Highlight All
pdfjs-find-match-case-checkbox-label = Match Case
pdfjs-find-match-diacritics-checkbox-label = Match Diacritics
pdfjs-find-entire-word-checkbox-label = Whole Words
pdfjs-find-reached-top = Reached top of document, continued from bottom
pdfjs-find-reached-bottom = Reached end of document, continued from top
pdfjs-find-match-count =
{ $total ->
[one] { $current } of { $total } match
*[other] { $current } of { $total } matches
}
pdfjs-find-match-count-limit =
{ $limit ->
[one] More than { $limit } match
*[other] More than { $limit } matches
}
pdfjs-find-not-found = Phrase not found
pdfjs-page-scale-width = Page Width
pdfjs-page-scale-fit = Page Fit
pdfjs-page-scale-auto = Automatic Zoom
pdfjs-page-scale-actual = Actual Size
pdfjs-page-scale-percent = { $scale }%
pdfjs-page-landmark =
.aria-label = Page { $page }
pdfjs-loading-error = An error occurred while loading the PDF.
pdfjs-invalid-file-error = Invalid or corrupted PDF file.
pdfjs-missing-file-error = Missing PDF file.
pdfjs-unexpected-response-error = Unexpected server response.
pdfjs-rendering-error = An error occurred while rendering the page.
pdfjs-annotation-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") }
pdfjs-text-annotation-type =
.alt = [{ $type } Annotation]
pdfjs-password-label = Enter the password to open this PDF file.
pdfjs-password-invalid = Invalid password. Please try again.
pdfjs-password-ok-button = OK
pdfjs-password-cancel-button = Cancel
pdfjs-web-fonts-disabled = Web fonts are disabled: unable to use embedded PDF fonts.
pdfjs-editor-free-text-button =
.title = Text
pdfjs-editor-free-text-button-label = Text
pdfjs-editor-ink-button =
.title = Draw
pdfjs-editor-ink-button-label = Draw
pdfjs-editor-stamp-button =
.title = Add or edit images
pdfjs-editor-stamp-button-label = Add or edit images
pdfjs-editor-highlight-button =
.title = Highlight
pdfjs-editor-highlight-button-label = Highlight
pdfjs-highlight-floating-button1 =
.title = Highlight
.aria-label = Highlight
pdfjs-highlight-floating-button-label = Highlight
pdfjs-editor-remove-ink-button =
.title = Remove drawing
pdfjs-editor-remove-freetext-button =
.title = Remove text
pdfjs-editor-remove-stamp-button =
.title = Remove image
pdfjs-editor-remove-highlight-button =
.title = Remove highlight
pdfjs-editor-free-text-color-input = Color
pdfjs-editor-free-text-size-input = Size
pdfjs-editor-ink-color-input = Color
pdfjs-editor-ink-thickness-input = Thickness
pdfjs-editor-ink-opacity-input = Opacity
pdfjs-editor-stamp-add-image-button =
.title = Add image
pdfjs-editor-stamp-add-image-button-label = Add image
pdfjs-editor-free-highlight-thickness-input = Thickness
pdfjs-editor-free-highlight-thickness-title =
.title = Change thickness when highlighting items other than text
pdfjs-free-text2 =
.aria-label = Text Editor
.default-content = Start typing…
pdfjs-ink =
.aria-label = Draw Editor
pdfjs-ink-canvas =
.aria-label = User-created image
pdfjs-editor-alt-text-button =
.aria-label = Alt text
pdfjs-editor-alt-text-button-label = Alt text
pdfjs-editor-alt-text-edit-button =
.aria-label = Edit alt text
pdfjs-editor-alt-text-dialog-label = Choose an option
pdfjs-editor-alt-text-dialog-description = Alt text (alternative text) helps when people can’t see the image or when it doesn’t load.
pdfjs-editor-alt-text-add-description-label = Add a description
pdfjs-editor-alt-text-add-description-description = Aim for 1-2 sentences that describe the subject, setting, or actions.
pdfjs-editor-alt-text-mark-decorative-label = Mark as decorative
pdfjs-editor-alt-text-mark-decorative-description = This is used for ornamental images, like borders or watermarks.
pdfjs-editor-alt-text-cancel-button = Cancel
pdfjs-editor-alt-text-save-button = Save
pdfjs-editor-alt-text-decorative-tooltip = Marked as decorative
pdfjs-editor-alt-text-textarea =
.placeholder = For example, “A young man sits down at a table to eat a meal”
pdfjs-editor-resizer-top-left =
.aria-label = Top left corner — resize
pdfjs-editor-resizer-top-middle =
.aria-label = Top middle — resize
pdfjs-editor-resizer-top-right =
.aria-label = Top right corner — resize
pdfjs-editor-resizer-middle-right =
.aria-label = Middle right — resize
pdfjs-editor-resizer-bottom-right =
.aria-label = Bottom right corner — resize
pdfjs-editor-resizer-bottom-middle =
.aria-label = Bottom middle — resize
pdfjs-editor-resizer-bottom-left =
.aria-label = Bottom left corner — resize
pdfjs-editor-resizer-middle-left =
.aria-label = Middle left — resize
pdfjs-editor-highlight-colorpicker-label = Highlight color
pdfjs-editor-colorpicker-button =
.title = Change color
pdfjs-editor-colorpicker-dropdown =
.aria-label = Color choices
pdfjs-editor-colorpicker-yellow =
.title = Yellow
pdfjs-editor-colorpicker-green =
.title = Green
pdfjs-editor-colorpicker-blue =
.title = Blue
pdfjs-editor-colorpicker-pink =
.title = Pink
pdfjs-editor-colorpicker-red =
.title = Red
pdfjs-editor-highlight-show-all-button-label = Show all
pdfjs-editor-highlight-show-all-button =
.title = Show all
pdfjs-editor-new-alt-text-dialog-edit-label = Edit alt text (image description)
pdfjs-editor-new-alt-text-dialog-add-label = Add alt text (image description)
pdfjs-editor-new-alt-text-textarea =
.placeholder = Write your description here…
pdfjs-editor-new-alt-text-description = Short description for people who can’t see the image or when the image doesn’t load.
pdfjs-editor-new-alt-text-disclaimer1 = This alt text was created automatically and may be inaccurate.
pdfjs-editor-new-alt-text-disclaimer-learn-more-url = Learn more
pdfjs-editor-new-alt-text-create-automatically-button-label = Create alt text automatically
pdfjs-editor-new-alt-text-not-now-button = Not now
pdfjs-editor-new-alt-text-error-title = Couldn’t create alt text automatically
pdfjs-editor-new-alt-text-error-description = Please write your own alt text or try again later.
pdfjs-editor-new-alt-text-error-close-button = Close
pdfjs-editor-new-alt-text-ai-model-downloading-progress = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB)
.aria-valuetext = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB)
pdfjs-editor-new-alt-text-added-button =
.aria-label = Alt text added
pdfjs-editor-new-alt-text-added-button-label = Alt text added
pdfjs-editor-new-alt-text-missing-button =
.aria-label = Missing alt text
pdfjs-editor-new-alt-text-missing-button-label = Missing alt text
pdfjs-editor-new-alt-text-to-review-button =
.aria-label = Review alt text
pdfjs-editor-new-alt-text-to-review-button-label = Review alt text
pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer = Created automatically: { $generatedAltText }
pdfjs-image-alt-text-settings-button =
.title = Image alt text settings
pdfjs-image-alt-text-settings-button-label = Image alt text settings
pdfjs-editor-alt-text-settings-dialog-label = Image alt text settings
pdfjs-editor-alt-text-settings-automatic-title = Automatic alt text
pdfjs-editor-alt-text-settings-create-model-button-label = Create alt text automatically
pdfjs-editor-alt-text-settings-create-model-description = Suggests descriptions to help people who can’t see the image or when the image doesn’t load.
pdfjs-editor-alt-text-settings-download-model-label = Alt text AI model ({ $totalSize } MB)
pdfjs-editor-alt-text-settings-ai-model-description = Runs locally on your device so your data stays private. Required for automatic alt text.
pdfjs-editor-alt-text-settings-delete-model-button = Delete
pdfjs-editor-alt-text-settings-download-model-button = Download
pdfjs-editor-alt-text-settings-downloading-model-button = Downloading…
pdfjs-editor-alt-text-settings-editor-title = Alt text editor
pdfjs-editor-alt-text-settings-show-dialog-button-label = Show alt text editor right away when adding an image
pdfjs-editor-alt-text-settings-show-dialog-description = Helps you make sure all your images have alt text.
pdfjs-editor-alt-text-settings-close-button = Close
pdfjs-editor-undo-bar-message-highlight = Highlight removed
pdfjs-editor-undo-bar-message-freetext = Text removed
pdfjs-editor-undo-bar-message-ink = Drawing removed
pdfjs-editor-undo-bar-message-stamp = Image removed
pdfjs-editor-undo-bar-message-multiple =
{ $count ->
[one] { $count } annotation removed
*[other] { $count } annotations removed
}
pdfjs-editor-undo-bar-undo-button =
.title = Undo
pdfjs-editor-undo-bar-undo-button-label = Undo
pdfjs-editor-undo-bar-close-button =
.title = Close
pdfjs-editor-undo-bar-close-button-label = Close`)},b(Nm,nZ);let nQ=Nm;const bS=1e3,mS=50,MS=1e3;function NR(){return document.location.hash}var RF,Ql,kt,rs,HV,Ma,xs,hR,xh,jh,eR,hm,em;class JS{constructor({linkService:l,eventBus:d}){b(this,Ql),b(this,RF,null),this.linkService=l,this.eventBus=d,this._initialized=!1,this._fingerprint="",this.reset(),this.eventBus._on("pagesinit",()=>{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",t=>{this._isPagesLoaded=!!t.pagesCount},{once:!0})})}initialize({fingerprint:l,resetHistory:d=!1,updateUrl:t=!1}){if(!l||typeof l!="string"){console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');return}this._initialized&&this.reset();const Z=this._fingerprint!==""&&this._fingerprint!==l;this._fingerprint=l,this._updateUrl=t===!0,this._initialized=!0,h(this,Ql,hm).call(this);const F=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=NR(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!h(this,Ql,Ma).call(this,F,!0)||d){const{hash:a,page:W,rotation:s}=h(this,Ql,hR).call(this,!0);if(!a||Z||d){h(this,Ql,kt).call(this,null,!0);return}h(this,Ql,kt).call(this,{hash:a,page:W,rotation:s},!0);return}const c=F.destination;h(this,Ql,xs).call(this,c,F.uid,!0),c.rotation!==void 0&&(this._initialRotation=c.rotation),c.dest?(this._initialBookmark=JSON.stringify(c.dest),this._destination.page=null):c.hash?this._initialBookmark=c.hash:c.page&&(this._initialBookmark=`page=${c.page}`)}reset(){this._initialized&&(h(this,Ql,eR).call(this),this._initialized=!1,h(this,Ql,em).call(this)),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:l=null,explicitDest:d,pageNumber:t}){if(!this._initialized)return;if(l&&typeof l!="string"){console.error(`PDFHistory.push: "${l}" is not a valid namedDest parameter.`);return}else if(Array.isArray(d)){if(!h(this,Ql,HV).call(this,t)&&(t!==null||this._destination)){console.error(`PDFHistory.push: "${t}" is not a valid pageNumber parameter.`);return}}else{console.error(`PDFHistory.push: "${d}" is not a valid explicitDest parameter.`);return}const Z=l||JSON.stringify(d);if(!Z)return;let F=!1;if(this._destination&&(GS(this._destination.hash,Z)||SS(this._destination.dest,d))){if(this._destination.page)return;F=!0}this._popStateInProgress&&!F||(h(this,Ql,kt).call(this,{dest:d,hash:Z,page:t,rotation:this.linkService.rotation},F),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushPage(l){var d;if(this._initialized){if(!h(this,Ql,HV).call(this,l)){console.error(`PDFHistory.pushPage: "${l}" is not a valid page number.`);return}((d=this._destination)==null?void 0:d.page)!==l&&(this._popStateInProgress||(h(this,Ql,kt).call(this,{dest:null,hash:`page=${l}`,page:l,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1}))))}}pushCurrentPosition(){!this._initialized||this._popStateInProgress||h(this,Ql,rs).call(this)}back(){if(!this._initialized||this._popStateInProgress)return;const l=window.history.state;h(this,Ql,Ma).call(this,l)&&l.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const l=window.history.state;h(this,Ql,Ma).call(this,l)&&l.uid<this._maxUid&&window.history.forward()}get popStateInProgress(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}}RF=new WeakMap,Ql=new WeakSet,kt=function(U,l=!1){const d=l||!this._destination,t={fingerprint:this._fingerprint,uid:d?this._uid:this._uid+1,destination:U};h(this,Ql,xs).call(this,U,t.uid);let Z;if(this._updateUrl&&U!=null&&U.hash){const F=document.location.href.split("#",1)[0];F.startsWith("file://")||(Z=`${F}#${U.hash}`)}d?window.history.replaceState(t,"",Z):window.history.pushState(t,"",Z)},rs=function(U=!1){if(!this._position)return;let l=this._position;if(U&&(l=Object.assign(Object.create(null),this._position),l.temporary=!0),!this._destination){h(this,Ql,kt).call(this,l);return}if(this._destination.temporary){h(this,Ql,kt).call(this,l,!0);return}if(this._destination.hash===l.hash||!this._destination.page&&this._numPositionUpdates<=mS)return;let d=!1;if(this._destination.page>=l.first&&this._destination.page<=l.page){if(this._destination.dest!==void 0||!this._destination.first)return;d=!0}h(this,Ql,kt).call(this,l,d)},HV=function(U){return Number.isInteger(U)&&U>0&&U<=this.linkService.pagesCount},Ma=function(U,l=!1){if(!U)return!1;if(U.fingerprint!==this._fingerprint)if(l){if(typeof U.fingerprint!="string"||U.fingerprint.length!==this._fingerprint.length)return!1;const[d]=performance.getEntriesByType("navi Line truncated
`);l.push(ea(d.join("")))}return l.join(`
`)}setDocument(l){var d,t,Z;if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),(d=this.findController)==null||d.setDocument(null),(t=this._scriptingManager)==null||t.setDocument(null),(Z=n(this,aU))==null||Z.destroy(),R(this,aU,null)),this.pdfDocument=l,!l)return;const F=l.numPages,c=l.getPage(1),a=l.getOptionalContentConfig({intent:"display"}),W=n(this,QV)?l.getPermissions():Promise.resolve(),{eventBus:s,pageColors:V,viewer:Q}=this;R(this,JF,new AbortController);const{signal:i}=n(this,JF);if(F>rW.FORCE_SCROLL_MODE_PAGE){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");const m=this._scrollMode=Wl.PAGE;s.dispatch("scrollmodechanged",{source:this,mode:m})}this._pagesCapability.promise.then(()=>{s.dispatch("pagesloaded",{source:this,pagesCount:F})},()=>{});const N=m=>{const M=this._pages[m.pageNumber-1];M&&n(this,MF).push(M)};s._on("pagerender",N,{signal:i});const e=m=>{m.cssTransform||(this._onePageRenderedCapability.resolve({timestamp:m.timestamp}),s._off("pagerendered",e))};s._on("pagerendered",e,{signal:i}),Promise.all([c,W]).then(([m,M])=>{var J,S;if(l!==this.pdfDocument)return;this._firstPageCapability.resolve(m),this._optionalContentConfigPromise=a;const{annotationEditorMode:G,annotationMode:X,textLayerMode:u}=h(this,al,Ym).call(this,M);if(u!==dt.DISABLE){const T=R(this,uF,document.createElement("div"));T.id="hiddenCopyElement",Q.before(T)}if(typeof AbortSignal.any=="function"&&G!==Ad.DISABLE){const T=G;l.isPureXfa?console.warn("Warning: XFA-editing is not implemented."):fh(T)?(R(this,aU,new iG(this.container,Q,n(this,nV),s,l,V,n(this,aV),n(this,VV),n(this,iV),n(this,RV),n(this,w0),n(this,WV),n(this,hV))),s.dispatch("annotationeditoruimanager",{source:this,uiManager:n(this,aU)}),T!==Ad.NONE&&(T===Ad.STAMP&&((J=n(this,w0))==null||J.loadModel("altText")),n(this,aU).updateMode(T))):console.error(`Invalid AnnotationEditor mode: ${T}`)}const p=this._scrollMode===Wl.PAGE?null:Q,Y=this.currentScale,o=m.getViewport({scale:Y*yt.PDF_TO_CSS_UNITS});Q.style.setProperty("--scale-factor",o.scale),V!=null&&V.background&&Q.style.setProperty("--page-bg-color",V.background),((V==null?void 0:V.foreground)==="CanvasText"||(V==null?void 0:V.background)==="Canvas")&&(Q.style.setProperty("--hcm-highlight-filter",l.filterFactory.addHighlightHCMFilter("highlight","CanvasText","Canvas","HighlightText","Highlight")),Q.style.setProperty("--hcm-highlight-selected-filter",l.filterFactory.addHighlightHCMFilter("highlight_selected","CanvasText","Canvas","HighlightText","ButtonText")));for(let T=1;T<=F;++T){const B=new Xm({container:p,eventBus:s,id:T,scale:Y,defaultViewport:o.clone(),optionalContentConfigPromise:a,renderingQueue:this.renderingQueue,textLayerMode:u,annotationMode:X,imageResourcesPath:this.imageResourcesPath,maxCanvasPixels:this.maxCanvasPixels,pageColors:V,l10n:this.l10n,layerProperties:this._layerProperties,enableHWA:n(this,sV)});this._pages.push(B)}(S=this._pages[0])==null||S.setPdfPage(m),this._scrollMode===Wl.PAGE?h(this,al,Ba).call(this):this._spreadMode!==Sd.NONE&&this._updateSpreadMode(),h(this,al,Bm).call(this,i).then(async()=>{var T,B;if(l!==this.pdfDocument)return;if((T=this.findController)==null||T.setDocument(l),(B=this._scriptingManager)==null||B.setDocument(l),n(this,uF)&&document.addEventListener("copy",h(this,al,om).bind(this,u),{signal:i}),n(this,aU)&&s.dispatch("annotationeditormodechanged",{source:this,mode:n(this,St)}),l.loadingParams.disableAutoFetch||F>rW.FORCE_LAZY_PAGE_INIT){this._pagesCapability.resolve();return}let y=F-1;if(y<=0){this._pagesCapability.resolve();return}for(let w=2;w<=F;++w){const D=l.getPage(w).then(E=>{const I=this._pages[w-1];I.pdfPage||I.setPdfPage(E),--y===0&&this._pagesCapability.resolve()},E=>{console.error(`Unable to get page ${w} to initialize viewer`,E),--y===0&&this._pagesCapability.resolve()});w%rW.PAUSE_EAGER_PAGE_INIT===0&&await D}}),s.dispatch("pagesinit",{source:this}),l.getMetadata().then(({info:T})=>{l===this.pdfDocument&&T.Language&&(Q.lang=T.Language)}),this.defaultRenderingQueue&&this.update()}).catch(m=>{console.error("Unable to initialize viewer",m),this._pagesCapability.reject(m)})}setPageLabels(l){var d;if(this.pdfDocument){l?Array.isArray(l)&&this.pdfDocument.numPages===l.length?this._pageLabels=l:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let t=0,Z=this._pages.length;t<Z;t++)this._pages[t].setPageLabel(((d=this._pageLabels)==null?void 0:d[t])??null)}}_resetView(){var l,d;this._pages=[],this._currentPageNumber=1,this._currentScale=PQ,this._currentScaleValue=null,this._pageLabels=null,R(this,MF,new wS(Ph)),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._firstPageCapability=Promise.withResolvers(),this._onePageRenderedCapability=Promise.withResolvers(),this._pagesCapability=Promise.withResolvers(),this._scrollMode=Wl.VERTICAL,this._previousScro Line truncated
-1
View File
@@ -1 +0,0 @@
.bottom-alertauth{top:57vh}.bottom-alertauth .v-alert-title{font-size:1rem}.bgerroralert{background:linear-gradient(to top right,#080406cc,#5a1932cc,#850505cc,#c04646cc)}.custom_subtitle{opacity:1}.v-selection-control__input{width:46%!important;height:46%!important;border-radius:0!important}.mystat{position:fixed;right:10px;bottom:10px;z-index:1005}.btnNav .v-navigation-drawer__content{display:flex;align-items:center}.railmenu .v-list-group__items .v-list-item{padding-inline-start:11px!important}.textcolor{color:#2f535e}#tr-popup{display:none}.v-application{display:flex;background:rgb(var(--v-theme-background));color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))}.v-application__wrap{backface-visibility:hidden;display:flex;flex-direction:column;flex:1 1 auto;max-width:100%;min-height:100vh;min-height:100dvh;position:relative}.v-app-bar{display:flex}.v-app-bar.v-toolbar{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-app-bar.v-toolbar:not(.v-toolbar--flat){box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-app-bar:not(.v-toolbar--absolute){padding-inline-end:var(--v-scrollbar-offset)}.v-main{flex:1 0 auto;max-width:100%;transition:.2s cubic-bezier(.4,0,.2,1);padding-left:var(--v-layout-left);padding-right:var(--v-layout-right);padding-top:var(--v-layout-top);padding-bottom:var(--v-layout-bottom)}.v-main__scroller{max-width:100%;position:relative}.v-main--scrollable{display:flex}.v-main--scrollable{position:absolute;top:0;left:0;width:100%;height:100%}.v-main--scrollable>.v-main__scroller{flex:1 1 auto;overflow-y:auto;--v-layout-left: 0px;--v-layout-right: 0px;--v-layout-top: 0px;--v-layout-bottom: 0px}.v-navigation-drawer{-webkit-overflow-scrolling:touch;background:rgb(var(--v-theme-surface));display:flex;flex-direction:column;height:100%;max-width:100%;pointer-events:auto;transition-duration:.2s;transition-property:box-shadow,transform,visibility,width,height,left,right,top,bottom;transition-timing-function:cubic-bezier(.4,0,.2,1);position:absolute}.v-navigation-drawer{border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-navigation-drawer--border{border-width:thin;box-shadow:none}.v-navigation-drawer{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-navigation-drawer{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-navigation-drawer--rounded{border-radius:4px}.v-navigation-drawer--top,.v-navigation-drawer--bottom{max-height:-webkit-fill-available;overflow-y:auto}.v-navigation-drawer--top{top:0;border-bottom-width:thin}.v-navigation-drawer--bottom{left:0;border-top-width:thin}.v-navigation-drawer--left{top:0;left:0;right:auto;border-right-width:thin}.v-navigation-drawer--right{top:0;left:auto;right:0;border-left-width:thin}.v-navigation-drawer--floating{border:none}.v-navigation-drawer--temporary.v-navigation-drawer--active{box-shadow:0 8px 10px -5px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 16px 24px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 6px 30px 5px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-navigation-drawer--sticky{height:auto;transition:box-shadow,transform,visibility,width,height,left,right}.v-navigation-drawer .v-list{overflow:hidden}.v-navigation-drawer__content{flex:0 1 auto;height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}.v-navigation-drawer__img{height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.v-navigation-drawer__img img:not(.v-img__img){height:inherit;object-fit:cover;width:inherit}.v-navigation-drawer__scrim{position:absolute;top:0;left:0;width:100%;height:100%;background:#000;opacity:.2;transition:opacity .2s cubic-bezier(.4,0,.2,1);z-index:1}.v-navigation-drawer__prepend,.v-navigation-drawer__append{flex:none;overflow:hidden}
-1
View File
@@ -1 +0,0 @@
import{d as Tt,r as x,c as st,a as At,o as jt,w as z,i as Ee,b as $e,e as _e,f as w,u as V,h as Lt,j as Dt,k as Ue,p as qe,n as Pe,_ as le,l as De,m as it,q as ve,s as _,t as O,v as c,x as i,V as U,y as D,z as F,A as Y,B as ut,C as I,D as Me,E as K,F as Z,G as ct,H as dt,I as vt,J as Mt,K as It,L as ie,M as ft,N as Bt,O as zt,P as Nt,Q as J,R as ee,S as ue,T as Te,U as G,W as Ht,X as Ie,Y as Ft,Z as oe,$ as B,a0 as N,a1 as Ut,a2 as ae,a3 as H,a4 as qt,a5 as Ae,a6 as fe,a7 as Be,a8 as Wt,a9 as mt,aa as ke,ab as gt,ac as Yt,ad as pt,ae as Ve,af as q,ag as Xt,ah as ht,ai as yt,aj as ce,ak as wt,al as he,am as bt,an as Gt,ao as $t,ap as Kt,aq as Zt,ar as Jt,as as Qt,at as ea,au as ta,av as aa,aw as na,ax as ra,ay as oa,az as la,aA as We,aB as sa,aC as _t,aD as ia,aE as ua,aF as ca,aG as da,aH as va,aI as fa,aJ as ma,aK as ga,aL as pa,aM as ha,aN as ya}from"./index-C95RwDyc.js";import{V as kt}from"./VContainer-CjvDnvH-.js";import{V as Ye}from"./VTextField-CHiGXnf9.js";import{V as Vt}from"./VSpacer-s9BvDJET.js";import{V as wa}from"./VAlert-DCKCutjK.js";import{F as ba,m as $a,V as Xe}from"./VToolbar-DOTGUEEC.js";import{V as _a}from"./VTextarea-vBlWUtyD.js";import{V as ka}from"./vcardUser-ci4o6GYt.js";import{V as ye,a as Va}from"./VList-CyfHwXPn.js";import{u as ze}from"./ssrBoot-CCLXtj7a.js";/* empty css */import"./VField-DAxmwXK8.js";import"./VInput-B82efaBR.js";const Sa=Tt("MainmenuStore",()=>{const e=x([]);return{portallinks:e,loadlinks:async()=>{const n=await st.get("api/navigation/links/");e.value=n.data}}});function Ge(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);a&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,t)}return n}function Q(e){for(var a=1;a<arguments.length;a++){var n=arguments[a]!=null?arguments[a]:{};a%2?Ge(Object(n),!0).forEach(function(t){xa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xa(e,a,n){return a in e?Object.defineProperty(e,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[a]=n,e}function Ke(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((n,t)=>(a.includes(t)||(n[t]=V(e[t])),n),{})}function we(e){return typeof e=="function"}function Ca(e){return Lt(e)||Dt(e)}function St(e,a,n){let t=e;const o=a.split(".");for(let l=0;l<o.length;l++){if(!t[o[l]])return n;t=t[o[l]]}return t}function Oe(e,a,n){return w(()=>e.some(t=>St(a,t,{[n]:!1})[n]))}function Ze(e,a,n){return w(()=>e.reduce((t,o)=>{const l=St(a,o,{[n]:!1})[n]||[];return t.concat(l)},[]))}function xt(e,a,n,t){return e.call(t,V(a),V(n),t)}function Ct(e){return e.$valid!==void 0?!e.$valid:!e}function Ra(e,a,n,t,o,l,s){let{$lazy:u,$rewardEarly:v}=o,d=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],f=arguments.length>8?arguments[8]:void 0,m=arguments.length>9?arguments[9]:void 0,y=arguments.length>10?arguments[10]:void 0;const p=x(!!t.value),r=x(0);n.value=!1;const g=z([a,t].concat(d,y),()=>{if(u&&!t.value||v&&!m.value&&!n.value)return;let h;try{h=xt(e,a,f,s)}catch($){h=Promise.reject($)}r.value++,n.value=!!r.value,p.value=!1,Promise.resolve(h).then($=>{r.value--,n.value=!!r.value,l.value=$,p.value=Ct($)}).catch($=>{r.value--,n.value=!!r.value,l.value=$,p.value=!0})},{immediate:!0,deep:typeof a=="object"});return{$invalid:p,$unwatch:g}}function Oa(e,a,n,t,o,l,s,u){let{$lazy:v,$rewardEarly:d}=t;const f=()=>({}),m=w(()=>{if(v&&!n.value||d&&!u.value)return!1;let y=!0;try{const p=xt(e,a,s,l);o.value=p,y=Ct(p)}catch(p){o.value=p}return y});return{$unwatch:f,$invalid:m}}function Ea(e,a,n,t,o,l,s,u,v,d,f){const m=x(!1),y=e.$params||{},p=x(null);let r,g;e.$async?{$invalid:r,$unwatch:g}=Ra(e.$validator,a,m,n,t,p,o,e.$watchTargets,v,d,f):{$invalid:r,$unwatch:g}=Oa(e.$validator,a,n,t,p,o,v,d);const h=e.$message;return{$message:we(h)?w(()=>h(Ke({$pending:m,$invalid:r,$params:Ke(y),$model:a,$response:p,$validator:l,$propertyPath:u,$property:s}))):h||"",$params:y,$pending:m,$invalid:r,$response:p,$unwatch:g}}function Pa(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const a=V(e),n=Object.keys(a),t={},o={},l={};let s=null;return n.forEach(u=>{const v=a[u];switch(!0){case we(v.$validator):t[u]=v;break;case we(v):t[u]={$validator:v};break;case u==="$validationGroups":s=v;break;case u.startsWith("$"):l[u]=v;break;default:o[u]=v}}),{rules:t,nestedValidators:o,config:l,validationGroups:s}}const Ta="__root";function Aa(e,a,n,t,o,l,s,u,v){const d=Object.keys(e),f=t.get(o,e),m=x(!1),y=x(!1),p=x(0);if(f){if(!f.$partial)return f;f.$unwatch(),m.value=f.$dirty.value}const r={$dirty:m,$path:o,$touch:()=>{m.value||(m.value=!0)},$reset:()=>{m.value&&(m.value=!1)},$commit:()=>{}};return d.length?(d.forEach(g=>{r[g]=Ea(e[g],a,r.$dirty,l,s,g,n,o,v,y,p)}),r.$externalResults=w(()=>u.value?[].coLine truncated
-1
View File
@@ -1 +0,0 @@
import{_ as s,b3 as a,t as o,v as e,E as r,s as n,x as c,y as l,F as f}from"./index-C95RwDyc.js";const p={setup(){a()}};function x(i,t,u,_,d,g){return n(),o(r,null,{default:e(()=>[c(f,{class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},{default:e(()=>t[0]||(t[0]=[l(" F.A.Q. ")])),_:1})]),_:1})}const V=s(p,[["render",x]]);export{V as default};
Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

-1
View File
@@ -1 +0,0 @@
import{_ as s,t as a,v as t,E as o,s as r,x as n,y as c,F as l}from"./index-C95RwDyc.js";const f={setup(){}};function x(d,e,i,p,_,u){return r(),a(o,null,{default:t(()=>[n(l,{class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},{default:t(()=>e[0]||(e[0]=[c(" Обратная связь ")])),_:1})]),_:1})}const h=s(f,[["render",x]]);export{h as default};
-1
View File
@@ -1 +0,0 @@
.bgCard{background:#ffffff38}.bgText{background:#ffffffb0;line-height:3.1rem!important}.titles{background:#ffffff8c}.textareas .v-field__input{font-size:2.5em!important}
-1
View File
@@ -1 +0,0 @@
import{_ as f,r as p,T as h,f as _,t as c,v as e,a5 as x,s as l,Q as g,S as V,R as b,x as a,L as w,B as k,E as u,F as s,y as C,$ as v,X as d,D as y,a0 as T}from"./index-C95RwDyc.js";import{V as $,a as B}from"./VCarouselItem-7nGpkJ8Y.js";import{V as F}from"./VContainer-CjvDnvH-.js";import{V as I}from"./VTextarea-vBlWUtyD.js";import"./VWindowItem-CwjWCzE9.js";import"./ssrBoot-CCLXtj7a.js";/* empty css */import"./VField-DAxmwXK8.js";import"./VInput-B82efaBR.js";const L={setup(){const i=x.slice(0,-1),o=p([{link:""}]);h.get("api/fns/links/").then(t=>{o.value=t.data});const n=_(()=>window.innerHeight-50);return{burl:i,carous:o,carushi:n}}};function N(i,o,n,t,R,D){return l(),c($,{cover:"",height:t.carushi,"hide-delimiters":"","hide-delimiter-background":"","show-arrows":"hover",color:"white"},{default:e(()=>[(l(!0),g(b,null,V(t.carous,(r,m)=>(l(),c(B,{key:m,src:`${t.burl}${r.link}`,cover:"",eager:""},{default:e(()=>[a(F,{"fill-height":"",fluid:"","pa-0":"","ma-0":"","pb-3":"",class:"flex-column h-100 d-flex"},{default:e(()=>[a(w,{class:"bgCard h-100 d-flex flex-column"},{default:e(()=>[a(k,{class:"ma-2 text-h3 text-uppercase titles py-5 flex-column"},{default:e(()=>[a(u,null,{default:e(()=>[a(s,{class:"pa-0 pl-1 align-self-center"},{default:e(()=>[C(v(r.title),1)]),_:2},1024),a(s,{class:"flex-grow-0 pa-0 pr-1"},{default:e(()=>[a(d,{width:"50","aspect-ratio":1,src:`${t.burl}${r.sender}`,cover:""},null,8,["src"])]),_:2},1024)]),_:2},1024)]),_:2},1024),"text"in r&&r.text.length>0?(l(),c(y,{key:0,class:"ml-2 mb-0 mb-2 flex-grow-0 pb-3 text-h6 h-100 pl-3 py-3 mr-1"},{default:e(()=>[a(u,null,{default:e(()=>[a(s,{cols:"6",class:"bgText"},{default:e(()=>[a(I,{class:"mt-n3 text-black textareas pt-2 font-weight-medium","model-value":r.text,variant:"plain",readonly:"","auto-grow":"",rows:"1","hide-details":""},null,8,["model-value"])]),_:2},1024),a(s,{cols:"6",class:"bgText"},{default:e(()=>[a(d,{"aspect-ratio":1,src:`${t.burl}${r.link2}`},null,8,["src"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):T("",!0)]),_:2},1024)]),_:2},1024)]),_:2},1032,["src"]))),128))]),_:1},8,["height"])}const z=f(L,[["render",N]]);export{z as default};
-2
View File
@@ -1,2 +0,0 @@
import{_ as B,r as w,Y as Pe,s as v,t as p,v as u,Q as m,S as x,R as M,a5 as Q,T as z,x as c,L as A,B as G,E as O,F as C,y as T,$ as D,X as ve,a0 as g,D as K,C as b,aa as Re,aO as Ne,aP as Be,aQ as Ue,aR as ke,aS as Ee,U as H,Z as ne,A as ae,aT as ze,M as me,q as fe,f as ye,O as Te,P as Ce,G as Me,l as Se,H as Ge,I as qe,aU as ue,aV as k,aW as ge,z as $,aN as W,aX as R,aJ as re,aY as y,aZ as Ve,K as Oe,a_ as Ke,a$ as Z,a1 as Xe,b0 as xe,b1 as Ze,V as X,a3 as Ae,b2 as Je,a2 as Qe,m as $e,b3 as et,b4 as tt}from"./index-C95RwDyc.js";import{V as st,a as _e}from"./VCarouselItem-7nGpkJ8Y.js";import{V as We}from"./VContainer-CjvDnvH-.js";import{V as ce}from"./VTextarea-vBlWUtyD.js";import{N as it}from"./NewsCard-BPi-1V_H.js";import{L as at}from"./load-round-CmXUx5xq.js";import{V as lt}from"./vcardUser-ci4o6GYt.js";import{V as he}from"./VTextField-CHiGXnf9.js";import{V as He,b as nt}from"./VList-CyfHwXPn.js";import{V as rt}from"./VSwitch-Cna9Tqlh.js";import{V as Le}from"./VFileInput-oVS2J4wh.js";import{V as ot,a as dt}from"./VLocaleProvider-BNvftIh0.js";import"./VWindowItem-CwjWCzE9.js";import"./ssrBoot-CCLXtj7a.js";/* empty css */import"./VField-DAxmwXK8.js";import"./VInput-B82efaBR.js";import"./icoUser-BuanEDF_.js";import"./VSelectionControl-CabHpyF4.js";import"./VSpacer-s9BvDJET.js";const ut={setup(){const s=w(0),e=Q.slice(0,-1),t=w(null),a=w([{link:"/media/newsimage/scales.jpg",title:null,text:""}]),n=Pe().alert;(()=>{z.get("api/navigation/carousels/").then(o=>{o.data.mess!=""&&(n.alert=!0,n.text=o.data.mess,n.color="red-darken-2",n.ico="mdi-alert-outline"),console.log(o.data),o.data.result.length>0&&(a.value=o.data.result)})})();const r=w(1e4);return{slidechanged:()=>{console.log(t.value),a.value[s.value].link.endsWith("mp4")&&t.value.forEach(o=>{o.currentSrc!=e+a.value[s.value].link&&o.pause()}),a.value[s.value].link.endsWith("mp4")?r.value=1e10:r.value=1e4},videoElement:t,currentslide:s,interval:r,burl:e,carous:a,ended:o=>{o.target.currentTime=0,o.target.pause(),document.exitFullscreen(),s.value=s.value<a.value.length-1?s.value+1:0}}}},ct={class:"d-flex justify-center"},ht=["src"];function vt(s,e,t,a,n,i){return v(),p(st,{modelValue:a.currentslide,"onUpdate:modelValue":[e[2]||(e[2]=r=>a.currentslide=r),a.slidechanged],interval:a.interval,cover:"",cycle:"",height:"450","hide-delimiters":"","hide-delimiter-background":"","show-arrows":a.carous.length<2?!1:"hover",color:"white"},{default:u(()=>[(v(!0),m(M,null,x(a.carous,(r,l)=>(v(),m(M,{key:l},[r.link.endsWith("mp4")?(v(),p(_e,{key:1},{default:u(()=>[b("div",ct,[b("video",{ref_for:!0,ref:"videoElement",style:{height:"450px"},controls:"",preload:"metadata",onEnded:e[0]||(e[0]=(...d)=>a.ended&&a.ended(...d)),onLoadedmetadata:e[1]||(e[1]=d=>a.interval=1e10)},[b("source",{src:`${a.burl}${r.link}`,type:"video/mp4"},null,8,ht),e[3]||(e[3]=T(" Текущий браузер не поддерживает воспроизведение этого видео. "))],544)])]),_:2},1024)):(v(),p(_e,{key:0,src:`${a.burl}${r.link}`,cover:"",eager:""},{default:u(()=>[c(We,{"fill-height":"",fluid:"","pa-0":"","ma-0":"","pb-3":"",class:"flex-column h-100 d-flex"},{default:u(()=>[r.text!=""||r.title!=null?(v(),p(A,{key:0,class:"bgCard h-100 d-flex flex-column"},{default:u(()=>[r.title!=null?(v(),p(G,{key:0,class:"text-h3 text-uppercase titles text-text_carous ma-1 mb-0"},{default:u(()=>[c(O,{"no-gutters":""},{default:u(()=>[c(C,{class:"align-self-center"},{default:u(()=>[T(D(r.title),1)]),_:2},1024),c(C,{class:"flex-grow-0"},{default:u(()=>[c(ve,{width:"50","aspect-ratio":1,src:`${a.burl}${r.sender}`,cover:""},null,8,["src"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):g("",!0),r.text!=""?(v(),p(K,{key:1,class:"w-50 flex-grow-0 text-h6 bgText overflow-auto ma-1 pa-0"},{default:u(()=>[c(ce,{class:"text-text_caroustext-black textareas font-weight-medium nocursor","model-value":r.text,variant:"solo",readonly:"","auto-grow":"",rows:"1","hide-details":"",flat:"","bg-color":"transparent"},null,8,["model-value"])]),_:2},1024)):g("",!0)]),_:2},1024)):g("",!0)]),_:2},1024)]),_:2},1032,["src"]))],64))),128))]),_:1},8,["modelValue","interval","show-arrows","onUpdate:modelValue"])}const mt=B(ut,[["render",vt]]),Ie=Re()({name:"VSlideGroupItem",props:Ne(),emits:{"group:selected":s=>!0},setup(s,e){let{slots:t}=e;const a=Be(s,Ue);return()=>{var n;return(n=t.default)==null?void 0:n.call(t,{isSelected:a.isSelected.value,select:a.select,toggle:a.toggle,selectedClass:a.selectedClass.value})}}}),ft={props:{digitalData:{type:Object,default:{}}},setup(){const s=Q.slice(0,-1);return{model:w(!1),burl:s}}};function yt(s,e,t,a,n,i){const r=H("vue3-autocounter");return v(),p(A,{class:"d-flex ml-3"},{default:u(()=>[c(Ee,{class:"mx-auto",elevation:"0","max-width":"813"},{default:u(()=>[c(ke,{modelValue:a.model,"onUpdate:modelValue":e[0]||(e[0]=l=>a.model=l),class:"pa-0","selected-class":"bg-primary",mandatory:"","show-arrows":""},{default:u(()=>[(v(!0),m(M,null,x(t.digitalData,l=>(v(),p(Ie,{key:Line truncated
A valid view must be one of: ${pe.join(", ")}.`),s="week"),this.enabledViews.includes(s)||(console.warn(`Vue Cal: the provided active-view "${s}" is disabled. Using the "${this.enabledViews[0]}" view instead.`),s=this.enabledViews[0]),s},switchToNarrowerView(s=null){this.transitionDirection="right";const e=this.enabledViews[this.enabledViews.indexOf(this.view.id)+1];e&&this.switchView(e,s)},switchView(s,e=null,t=!1){s=this.validateView(s);const a=this.utils.date,n=this.view.startDate&&this.view.startDate.getTime();if(this.transitions&&t){if(this.view.id===s)return;const l=this.enabledViews;this.transitionDirection=l.indexOf(this.view.id)>l.indexOf(s)?"left":"right"}const i=this.view.id;switch(this.view.events=[],this.view.id=s,this.view.firstCellDate=null,this.view.lastCellDate=null,e||(e=this.view.selectedDate||this.view.startDate),s){case"years":{this.view.startDate=new Date(Math.floor(e.getFullYear()/25)*25||2e3,0,1),this.view.endDate=new Date(this.view.startDate.getFullYear()+25,0,1),this.view.endDate.setSeconds(-1);break}case"year":{this.view.startDate=new Date(e.getFullYear(),0,1),this.view.endDate=new Date(e.getFullYear()+1,0,1),this.view.endDate.setSeconds(-1);break}case"month":{this.view.startDate=new Date(e.getFullYear(),e.getMonth(),1),this.view.endDate=new Date(e.getFullYear(),e.getMonth()+1,1),this.view.endDate.setSeconds(-1);let l=new Date(this.view.startDate);if(l.getDay()!==(this.startWeekOnSunday?0:1)&&(l=a.getPreviousFirstDayOfWeek(l,this.startWeekOnSunday)),this.view.firstCellDate=l,this.view.lastCellDate=a.addDays(l,41),this.view.lastCellDate.setHours(23,59,59,0),this.hideWeekends){if([0,6].includes(this.view.firstCellDate.getDay())){const d=this.view.firstCellDate.getDay()===6&&!this.startWeekOnSunday?2:1;this.view.firstCellDate=a.addDays(this.view.firstCellDate,d)}if([0,6].includes(this.view.startDate.getDay())){const d=this.view.startDate.getDay()===6?2:1;this.view.startDate=a.addDays(this.view.startDate,d)}if([0,6].includes(this.view.lastCellDate.getDay())){const d=this.view.lastCellDate.getDay()===0&&!this.startWeekOnSunday?2:1;this.view.lastCellDate=a.subtractDays(this.view.lastCellDate,d)}if([0,6].includes(this.view.endDate.getDay())){const d=this.view.endDate.getDay()===0?2:1;this.view.endDate=a.subtractDays(this.view.endDate,d)}}break}case"week":{e=a.getPreviousFirstDayOfWeek(e,this.startWeekOnSunday);const l=this.hideWeekends?5:7;this.view.startDate=this.hideWeekends&&this.startWeekOnSunday?a.addDays(e,1):e,this.view.startDate.setHours(0,0,0,0),this.view.endDate=a.addDays(e,l),this.view.endDate.setSeconds(-1);break}case"day":{this.view.startDate=e,this.view.startDate.setHours(0,0,0,0),this.view.endDate=new Date(e),this.view.endDate.setHours(23,59,59,0);break}}this.addEventsToView();const r=this.view.startDate&&this.view.startDate.getTime();if(!(i===s&&r===n)&&(this.$emit("update:activeView",s),this.ready)){const l=this.view.startDate,d={view:s,startDate:l,endDate:this.view.endDate,...this.isMonthView?{firstCellDate:this.view.firstCellDate,lastCellDate:this.view.lastCellDate,outOfScopeEvents:this.view.outOfScopeEvents.map(this.cleanupEvent)}:{},events:this.view.events.map(this.cleanupEvent),...this.isWeekView?{week:a.getWeek(this.startWeekOnSunday?a.addDays(l,1):l)}:{}};this.$emit("view-change",d)}},previous(){this.previousNext(!1)},next(){this.previousNext()},previousNext(s=!0){const e=this.utils.date;this.transitionDirection=s?"right":"left";const t=s?1:-1;let a=null;const{startDate:n,id:i}=this.view;switch(i){case"years":a=new Date(n.getFullYear()+25*t,0,1);break;case"year":a=new Date(n.getFullYear()+1*t,1,1);break;case"month":a=new Date(n.getFullYear(),n.getMonth()+1*t,1);break;case"week":a=e[s?"addDays":"subtractDays"](e.getPreviousFirstDayOfWeek(n,this.startWeekOnSunday),7);break;case"day":a=e[s?"addDays":"subtractDays"](n,1);const r=a.getDay(),l=this.startWeekOnSunday?r:(r||7)-1;if(this.weekDays[l].hide){const o=this.weekDays.map((f,_)=>({...f,i:_}));let h=0;s?([...o.slice(l),...o].find(f=>(h++,!f.hide)).i,h--):[...o,...o.slice(0,l)].reverse().find(f=>(h++,!f.hide)).i,a=e[s?"addDays":"subtractDays"](a,h)}break}a&&this.switchView(i,a)},addEventsToView(s=[]){const e=this.utils.event,{startDate:t,endDate:a,firstCellDate:n,lastCellDate:i}=this.view;if(s.length||(this.view.events=[]),s=s.length?s:[...this.mutableEvents],!s||this.isYearsOrYearView&&!this.eventsCountOnYearView)return;let r=s.filter(l=>e.eventInRange(l,t,a));!this.isYearsOrYearView&&!(this.isMonthView&&!this.eventsOnMonthView)&&(r=r.map(l=>l.daysCount>1?e.createEventSegments(l,n||t,i||a):l)),this.view.events.push(...r),this.isMonthView&&(this.view.outOfScopeEvents=[],s.forEach(l=>{(e.eventInRange(l,n,t)||e.eventInRange(l,a,i))&&(this.view.events.some(d=>d._eid===l._eid)||this.view.outOfScopeEvents.push(l))}))},findAncestor(s,e){for(;(s=s.parentElement)&&!s.classList.contains(e););return s},isDOMElementAnEvent(s){return s.classList.contains("vuecal__event")||this.findAncestor(s,"vuecal__event")},onMouseMove(s){co Line truncated
-1
View File
@@ -1 +0,0 @@
.titles{font-family:cursive!important;background:#ffffff8c}.textareas .v-field__input{font-size:1.3em!important}.nocursor textarea{cursor:default!important}.numstyle{font-size:2.875rem!important;line-height:2.5rem!important;font-family:cursive!important;background:#ffffffb0}.statstyle{background:#ffffffb0;font-size:1rem!important}.g{background-color:#fff}.fiction .v-input__control{display:none}.vuecal__weekdays-headings{border-bottom:1px solid #ddd;margin-bottom:-1px}.vuecal--week-numbers .vuecal__weekdays-headings,.vuecal--view-with-time .vuecal__weekdays-headings{padding-left:3em}.vuecal--view-with-time.vuecal--twelve-hour .vuecal__weekdays-headings{font-size:.9em;padding-left:4em}.vuecal--overflow-x.vuecal--view-with-time .vuecal__weekdays-headings{padding-left:0}.vuecal__heading{width:100%;height:2.8em;font-weight:400;justify-content:center;text-align:center;align-items:center;position:relative;overflow:hidden}.vuecal__heading>.vuecal__flex{width:100%;height:100%;align-items:initial!important}.vuecal--sticky-split-labels .vuecal__heading{height:3.4em}.vuecal--month-view .vuecal__heading,.vuecal--week-view .vuecal__heading,.vuecal--day-view .vuecal__heading{width:14.2857%}.vuecal--hide-weekends.vuecal--month-view .vuecal__heading,.vuecal--hide-weekends.vuecal--week-view .vuecal__heading,.vuecal--hide-weekends.vuecal--day-view .vuecal__heading,.vuecal--years-view .vuecal__heading{width:20%}.vuecal--year-view .vuecal__heading{width:33.33%}.vuecal__heading .weekday-label{flex-shrink:0;display:flex;justify-content:center;align-items:center}.vuecal--small .vuecal__heading .small,.vuecal--xsmall .vuecal__heading .xsmall{display:block}.vuecal__heading .small,.vuecal__heading .xsmall,.vuecal--small .vuecal__heading .full,.vuecal--small .vuecal__heading .xsmall,.vuecal--xsmall .vuecal__heading .full,.vuecal--xsmall .vuecal__heading .small{display:none}.vuecal .vuecal__split-days-headers{align-items:center}@media screen and (max-width: 550px){.vuecal__heading{line-height:1.2}.vuecal__heading .small,.vuecal--small .vuecal__heading .small,.vuecal--xsmall .vuecal__heading .xsmall{display:block}.vuecal__heading .full,.vuecal__heading .xsmall,.vuecal--small .vuecal__heading .full,.vuecal--small .vuecal__heading .xsmall,.vuecal--xsmall .vuecal__heading .full,.vuecal--xsmall .vuecal__heading .small{display:none}.vuecal--overflow-x .vuecal__heading .full,.vuecal--small.vuecal--overflow-x .vuecal__heading .small,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .xsmall{display:block}.vuecal--overflow-x .vuecal__heading .small,.vuecal--overflow-x .vuecal__heading .xsmall,.vuecal--small.vuecal--overflow-x .vuecal__heading .full,.vuecal--small.vuecal--overflow-x .vuecal__heading .xsmall,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .full,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .small{display:none}}@media screen and (max-width: 450px){.vuecal__heading .xsmall,.vuecal--small .vuecal__heading .xsmall,.vuecal--xsmall .vuecal__heading .xsmall{display:block}.vuecal__heading .full,.vuecal__heading .small,.vuecal--small .vuecal__heading .full,.vuecal--small .vuecal__heading .small,.vuecal--xsmall .vuecal__heading .full,.vuecal--xsmall .vuecal__heading .small{display:none}.vuecal--small.vuecal--overflow-x .vuecal__heading .small,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .xsmall{display:block}.vuecal--small.vuecal--overflow-x .vuecal__heading .full,.vuecal--small.vuecal--overflow-x .vuecal__heading .xsmall,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .full,.vuecal--xsmall.vuecal--overflow-x .vuecal__heading .small{display:none}}.vuecal__header button{outline:none;font-family:inherit}.vuecal__menu{padding:0;margin:0;list-style-type:none;justify-content:center;background-color:#00000005}.vuecal__view-btn{background:none;border:none;padding:.3em 1em;height:2.2em;font-size:1.3em;border-bottom:0 solid currentColor;cursor:pointer;color:inherit;box-sizing:border-box;transition:.2s}.vuecal__view-btn--active{border-bottom-width:2px;background:#ffffff26}.vuecal__title-bar{background-color:#0000001a;display:flex;align-items:center;text-align:center;justify-content:space-between;font-size:1.4em;line-height:1.3;min-height:2em}.vuecal--xsmall .vuecal__title-bar{font-size:1.3em}.vuecal__title{position:relative;justify-content:center}.vuecal__title button{cursor:pointer;background:none;border:none}.vuecal__title button.slide-fade--left-leave-active,.vuecal__title button.slide-fade--right-leave-active{width:100%}.vuecal__today-btn{position:relative;align-items:center;display:flex;font-size:.8em;background:none;border:none}.vuecal__today-btn span.default{font-size:.8em;padding:3px 6px;text-transform:uppercase;cursor:pointer}.vuecal__arrow{cursor:pointer;position:relative;z-index:1;background:none;border:none;white-space:nowrap}.vuecal__arrow--prev{margin-left:.6em}.vuecal__arrow--next{margin-right:.6em}.vuecal__arrow i.angle{display:inline-block;border:solid currentColor;border-width:0 2px 2px 0;padding:.25em;transfLine truncated
-1
View File
@@ -1 +0,0 @@
import{_ as s,b3 as a,t as o,v as e,E as r,s as n,x as c,y as l,F as f}from"./index-C95RwDyc.js";const i={setup(){a()}};function p(x,t,u,_,d,g){return n(),o(r,null,{default:e(()=>[c(f,{class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},{default:e(()=>t[0]||(t[0]=[l(" Охрана труда ")])),_:1})]),_:1})}const V=s(i,[["render",p]]);export{V as default};
-1
View File
@@ -1 +0,0 @@
import{l as p,_ as V,bo as v,U as I,s as f,t as D,v as l,x as e,B as T,y as _,$ as c,E as d,F as r,X as L,C as o,V as m,Z as b,aN as N,D as z,Q as y,A as B,L as S,a5 as k,T as M,bs as O}from"./index-C95RwDyc.js";import{i as j}from"./icoUser-BuanEDF_.js";const A=p(),Y={components:{icoUser:j},name:"NewsCard",props:{news:{type:Object,default:{}}},setup(g,{emit:n}){const s=k.slice(0,-1),a=t=>{let i=new DOMParser().parseFromString(t,"text/html").body.textContent||"";i=i.replaceAll('src="/media/uploads',`src="${k}media/uploads`);const C=i.split(" ").slice(0,50);return`${i.split(" ").slice(0,50).join(" ")} ${C.length<50?"":"..."}`},x=(t,h)=>{M.post("api/navigation/newscrossroad/",{news:t,scores:h}).then(i=>{g.news.scores=i.data})},w=()=>{n("openOneImg")};function u(t){return O(t).format("DD.MM.YYYY")}return{accountStore:A,burl:s,limitText:a,splitname:v,toggleIncrementLike:x,openOneImg:w,formatDate:u}}},U={class:"justify-self-end"},E={class:"subheading me-2"},F={class:"subheading me-2"},H={class:"subheading"},R={class:"subheading"},P=["innerHTML"],Q={key:1,class:"text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"},X={class:"text-caption align-self-center"};function Z(g,n,s,a,x,w){const u=I("ico-user");return f(),D(S,{class:"rounded-0 h-100 flex-column d-flex","min-height":"400","max-height":"400"},{default:l(()=>[e(T,{class:""},{default:l(()=>[_(c(s.news.title),1)]),_:1}),e(d,{class:"flex-grow-0"},{default:l(()=>[e(r,{class:"d-flex flex-column"},{default:l(()=>[e(L,{src:`${a.burl}${s.news.link}`,height:"170px",width:"92%",class:"mx-auto",cover:"",onClick:n[0]||(n[0]=t=>a.openOneImg(s.news.link))},null,8,["src"])]),_:1})]),_:1}),e(d,{class:"ma-0 flex-grow-0"},{default:l(()=>[e(r,{class:"py-1 pl-4",lg:"5",md:"12",sm:"12"},{default:l(()=>[e(u,{author:s.news.author},null,8,["author"])]),_:1}),e(r,{lg:"7",md:"12",sm:"12",class:"py-1 text-end pr-4"},{default:l(()=>[o("div",U,[e(m,{size:"x-small",class:"me-1",icon:s.news.scores.filter(t=>t.user==a.accountStore.user.login&&t.score==!0).length>0?"mdi-thumb-up":"mdi-thumb-up-outline",onClick:n[1]||(n[1]=t=>a.toggleIncrementLike(s.news.id,!0))},null,8,["icon"]),o("span",E,c(s.news.scores.filter(t=>t.score==!0).length),1),n[3]||(n[3]=o("span",{class:"me-1"}," · ",-1)),e(m,{size:"x-small",class:"me-1",icon:s.news.scores.filter(t=>t.user==a.accountStore.user.login&&t.score==!1).length>0?"mdi-thumb-down":"mdi-thumb-down-outline",onClick:n[2]||(n[2]=t=>a.toggleIncrementLike(s.news.id,!1))},null,8,["icon"]),o("span",F,c(s.news.scores.filter(t=>t.score==!1).length),1),n[4]||(n[4]=o("span",{class:"me-1"}," · ",-1)),e(m,{size:"x-small",class:"me-1",icon:"mdi-message-text-outline"}),o("span",H,c(s.news.comment.length),1),n[5]||(n[5]=o("span",{class:"me-1"}," · ",-1)),e(m,{size:"x-small",class:"me-1 mb-1",icon:"mdi-image"}),o("span",R,c(s.news.gallery.length),1)])]),_:1})]),_:1}),e(b,{class:"mx-4"}),e(d,{class:"ma-0 overflow-auto"},{default:l(()=>[e(r,{class:N(["py-0",s.news.text.length==0?"align-self-center":"my-3"])},{default:l(()=>[e(z,{class:"py-0 px-2"},{default:l(()=>[s.news.text.length>0?(f(),y("div",{key:0,innerHTML:a.limitText(s.news.text)},null,8,P)):(f(),y("div",Q,"Без описания"))]),_:1})]),_:1},8,["class"])]),_:1}),e(b,{class:"mx-4"}),e(d,{class:"flex-grow-0 ma-0"},{default:l(()=>[e(r,{class:"d-flex justify-space-between"},{default:l(()=>[e(B,{color:"more_details_btn",to:`/newsfull?id=${s.news.id}`,size:"small",rounded:"xl","append-icon":"mdi-step-forward-2"},{default:l(()=>n[6]||(n[6]=[_(" Подробнее ")])),_:1},8,["to"]),o("span",X,c(a.formatDate(s.news.cdate)),1)]),_:1})]),_:1})]),_:1})}const J=V(Y,[["render",Z]]);export{J as N};
-1
View File
@@ -1 +0,0 @@
import{_,r as c,s as u,t as g,v as a,x as o,E as m,Q as v,S as x,R as V,F as d,A as y,y as N,$ as C,aT as h,T as A,U as w,b3 as b}from"./index-C95RwDyc.js";import{N as k}from"./NewsCard-BPi-1V_H.js";import{V as $}from"./VPagination-Ckkl08Vh.js";import{a as U}from"./VSelect-exBxBFF_.js";import"./icoUser-BuanEDF_.js";import"./VTextField-CHiGXnf9.js";/* empty css */import"./VField-DAxmwXK8.js";import"./VInput-B82efaBR.js";import"./VList-CyfHwXPn.js";import"./ssrBoot-CCLXtj7a.js";import"./VCheckboxBtn-RWiQsUNN.js";import"./VSelectionControl-CabHpyF4.js";const B={components:{NewsCard:k},setup(){const i=c([]),s=c(0),r=c(1),e=c(8),f=h(),p=c(0),l=()=>{A.get(`api/navigation/newscrossroad/?name=${f.path.slice(1)}&page=${r.value-1}&countpage=${e.value}`).then(n=>{i.value=n.data.result,s.value=n.data.countpage/e.value,p.value=s.value<=1?1:Math.ceil(s.value)})};return l(),{newsAll:i,pager:n=>{r.value=Number(n),l()},page:r,countpage:e,visiblePage:p,loadNewsAll:l}}};function P(i,s,r,e,f,p){const l=w("NewsCard");return u(),g(m,{class:"py-2"},{default:a(()=>[o(d,{class:"d-flex flex-column"},{default:a(()=>[o(m,{class:"h-0 overflow-auto"},{default:a(()=>[(u(!0),v(V,null,x(e.newsAll,(t,n)=>(u(),g(d,{key:n,xl:"3",lg:"4",md:"12",sm:"12",xs:"12",cols:"12",class:"d-flex pa-0 flex-column"},{default:a(()=>[o(l,{news:t,class:"ma-1"},null,8,["news"])]),_:2},1024))),128))]),_:1}),o(m,{class:"flex-grow-0"},{default:a(()=>[o(d,{class:"pa-0"},{default:a(()=>[o($,{density:"compact",modelValue:e.page,"onUpdate:modelValue":[s[0]||(s[0]=t=>e.page=t),e.loadNewsAll],length:e.visiblePage,"total-visible":7},{item:a(t=>[o(y,{icon:"",density:"compact",color:t.isActive?"more_details_btn":"grey-ligten-3",onClick:n=>e.pager(t.page)},{default:a(()=>[N(C(t.page),1)]),_:2},1032,["color","onClick"])]),_:1},8,["modelValue","length","onUpdate:modelValue"])]),_:1}),o(d,{class:"flex-grow-0 py-0"},{default:a(()=>[o(U,{style:{width:"53px"},"hide-details":"",density:"compact","hide-selected":"",modelValue:e.countpage,"onUpdate:modelValue":[s[1]||(s[1]=t=>e.countpage=t),e.loadNewsAll],rounded:"",variant:"underlined",items:[8,16,24,32,40]},null,8,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1})]),_:1})]),_:1})}const R=_(B,[["render",P]]),S={components:{newsCrossroad:R},setup(){b()}};function T(i,s,r,e,f,p){const l=w("news-crossroad");return u(),g(m,{class:"justify-center ma-0"},{default:a(()=>[o(d,{class:"flex-column d-flex"},{default:a(()=>[o(l)]),_:1})]),_:1})}const K=_(S,[["render",T]]);export{K as default};
View File
Whitespace-only changes.
-1
View File
@@ -1 +0,0 @@
import{_ as f,r as V,s as o,t as r,v as a,x as t,L as m,Q as i,S as p,R as b,F as d,aV as _,E as g,y as v,$ as x}from"./index-C95RwDyc.js";import{V as k,a as w}from"./VTabs-B5dBzlqM.js";import{V as y}from"./VWindowItem-CwjWCzE9.js";const T={props:{tabs:{type:Object,default:()=>{}}},setup(){return{tab:V(null)}}};function B(n,l,u,s,C,S){return o(),r(g,{"no-gutters":"",class:"flex-column gap pa-1"},{default:a(()=>[t(d,{class:"v-col-auto"},{default:a(()=>[t(m,null,{default:a(()=>[t(k,{modelValue:s.tab,"onUpdate:modelValue":l[0]||(l[0]=e=>s.tab=e),"bg-color":"teal-darken-1","slider-color":"teal-lighten-3","selected-class":"active-tab",grow:!0},{default:a(()=>[(o(!0),i(b,null,p(u.tabs,(e,c)=>(o(),r(w,{value:e.value,key:c},{default:a(()=>[v(x(e.title),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(d,{class:""},{default:a(()=>[t(y,{modelValue:s.tab,"onUpdate:modelValue":l[1]||(l[1]=e=>s.tab=e),class:"h-100"},{default:a(()=>[_(n.$slots,"item")]),_:3},8,["modelValue"])]),_:3})]),_:3})}const N=f(T,[["render",B]]);export{N as P};
@@ -1 +0,0 @@
.v-item-group{flex:0 1 auto;max-width:100%;position:relative;transition:.2s cubic-bezier(.4,0,.2,1)}
@@ -1 +0,0 @@
import{a6 as h,a7 as k,b5 as V,ao as I,a9 as b,aa as v,ab as x,b6 as y,x as l,aO as C,aP as S,_ as G,b3 as P,t as p,v as t,E as f,s as d,Q as T,S as B,R as w,F as g,A as N,b7 as R,C as $,$ as D}from"./index-C95RwDyc.js";import{V as F}from"./VContainer-CjvDnvH-.js";const _=Symbol.for("vuetify:v-item-group"),O=h({...k(),...V({selectedClass:"v-item--selected"}),...I(),...b()},"VItemGroup"),Y=v()({name:"VItemGroup",props:O(),emits:{"update:modelValue":e=>!0},setup(e,c){let{slots:a}=c;const{themeClasses:r}=x(e),{isSelected:u,select:i,next:s,prev:o,selected:m}=y(e,_);return()=>l(e.tag,{class:["v-item-group",r.value,e.class],style:e.style},{default:()=>{var n;return[(n=a.default)==null?void 0:n.call(a,{isSelected:u,select:i,next:s,prev:o,selected:m.value})]}})}}),A=v()({name:"VItem",props:C(),emits:{"group:selected":e=>!0},setup(e,c){let{slots:a}=c;const{isSelected:r,select:u,toggle:i,selectedClass:s,value:o,disabled:m}=S(e,_);return()=>{var n;return(n=a.default)==null?void 0:n.call(a,{isSelected:r.value,selectedClass:s.value,select:u,toggle:i,value:o.value,disabled:m.value})}}}),E={setup(){return P(),{activates:[{name:"Комиссии",link:"http://10.252.44.33/accounting6/SOTRYDNIKI.php#tab_committees"},{name:"Ответственность",link:"http://10.252.44.33/accounting6/SOTRYDNIKI.php#tab_departments"}]}}},K={class:"text-h5 text-grey flex-grow-1 text-center"};function j(e,c,a,r,u,i){return d(),p(f,{class:"align-center"},{default:t(()=>[l(g,{class:"mt-4 text--lighten-1 font-weight-light"},{default:t(()=>[l(Y,{mandatory:""},{default:t(()=>[l(F,null,{default:t(()=>[l(f,{class:"justify-center"},{default:t(()=>[(d(!0),T(w,null,B(r.activates,s=>(d(),p(g,{key:s,cols:"4",md:"2"},{default:t(()=>[l(A,null,{default:t(({isSelected:o,toggle:m})=>[l(N,{color:o?"primary":"",class:"d-flex align-center pa-6",dark:"",href:s.link,target:s.link?"_blank":""},{default:t(()=>[l(R,null,{default:t(()=>[$("div",K,D(s.name),1)]),_:2},1024)]),_:2},1032,["color","href","target"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}const q=G(E,[["render",j]]);export{q as default};
-1
View File
@@ -1 +0,0 @@
import{_ as I,r as v,f as C,a5 as A,s as i,Q as f,C as c,$ as m,x as l,v as a,E as p,R as _,S as y,t as T,V as k,B as F,y as u,a0 as q,bs as N,bZ as w,F as V,X as D,aV as B,L,w as S,T as U,A as g,U as Y}from"./index-C95RwDyc.js";import{V as j}from"./VTextField-CHiGXnf9.js";import{V as h}from"./VContainer-CjvDnvH-.js";import{V as z,c as x,b as R,a as E}from"./VTabs-B5dBzlqM.js";/* empty css */import"./VField-DAxmwXK8.js";import"./VInput-B82efaBR.js";import"./VWindowItem-CwjWCzE9.js";import"./ssrBoot-CCLXtj7a.js";const H={props:{title:{type:String,default:"Не забыть передать тайтл сюда!"},activeTab:{type:Number,default:0},testingCard:{type:Array,default:()=>[{id:1,name:"Комплекс тестовых вопросов на знание в области информационно-коммуникационных технологий",type:"test",description:"Краткое описание тестирования",file:"https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg",dateend:new Date,question_count:20,time:20,attemps_number:3},{id:2,name:"Удобство раздела тестирования",type:"test",description:"Опрос среди сотрудников ЦОД МФ",file:"https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg",dateend:new Date,question_count:28,time:15,attemps_number:1}]}},setup(o){const e=v(""),d=C(()=>e.value?o.testingCard.filter(n=>n.name.toLowerCase().includes(e.value.toLowerCase())):o.testingCard),t=C(()=>{let n=[{icon:"mdi-calendar-clock",field:"dateend",color:"teal-darken-1"},{icon:"mdi-clipboard-list-outline",field:"question_count",color:"teal-darken-1"},{icon:"mdi-timer-outline",field:"time",color:"teal-darken-1"},{icon:"mdi-fire",field:"attemps_number",color:"#FF9800"}];return o.activeTab==0?n:n.splice(1,2)});return{search:e,searchTest:d,momenter:(n,s)=>s=="dateend"?"до "+N(n).format("DD.MM.YYYY, HH:mm"):s=="question_count"?n+w(n,[" вопрос"," вопроса"," вопросов"]):s=="time"?n+w(n,[" минута"," минуты"," минут"]):n,activeTabIcon:t,baseURL:A}}},M={class:"my-4 text-h5"},W={class:"d-flex flex-column justify-center flex-grow-1"},O={class:"text-body-1 font-weight-medium mb-2"},P={class:"text-body-1 text-disabled mb-2"},Q={class:"d-flex ga-4"},X={class:"ml-1"};function Z(o,e,d,t,b,n){return i(),f(_,null,[c("div",M,m(d.title),1),l(h,{fluid:!0},{default:a(()=>[l(p,null,{default:a(()=>[l(j,{modelValue:t.search,"onUpdate:modelValue":e[0]||(e[0]=s=>t.search=s),"append-inner-icon":"mdi-magnify",label:"Найти тестирование по названию",variant:"solo","onClick:appendInner":t.searchTest,clearable:""},null,8,["modelValue","onClick:appendInner"])]),_:1})]),_:1}),(i(!0),f(_,null,y(t.searchTest,s=>(i(),T(L,{key:s.id,class:"my-2 border-sm"},{default:a(()=>[l(p,{class:"pa-2"},{default:a(()=>[l(V,{cols:"1"},{default:a(()=>[l(D,{height:"125",src:s.file},null,8,["src"])]),_:2},1024),l(V,{cols:"auto",class:"d-flex flex-grow-1"},{default:a(()=>[c("div",W,[c("div",O,m(s.name),1),c("div",P,m(s.description),1),c("div",Q,[B(o.$slots,"results"),(i(!0),f(_,null,y(t.activeTabIcon,r=>(i(),f("div",null,[l(k,{color:r.color,icon:r.icon,size:"large"},null,8,["color","icon"]),c("span",X,m(t.momenter(s[r.field],r.field)),1)]))),256))])])]),_:2},1024),l(V,{cols:"auto",class:"align-self-center"},{default:a(()=>[B(o.$slots,"buttons")]),_:3})]),_:2},1024)]),_:2},1024))),128)),t.searchTest.length?q("",!0):(i(),T(h,{key:0,fluid:!0},{default:a(()=>[l(p,{class:"align-center flex-column"},{default:a(()=>[l(k,{icon:"mdi-note-off-outline",color:"grey-lighten-1",size:"x-large"}),l(F,{class:"text-h4 text-grey-lighten-1"},{default:a(()=>e[1]||(e[1]=[u("Данные не найдены")])),_:1})]),_:1})]),_:1}))],64)}const G=I(H,[["render",Z]]),J={components:{CatalogTest:G},setup(){const o=v(0),e=v(""),d=v([]),t=()=>{let n=o.value==0?"?status=active":o.value==1?"?status=completed":"";U.get(`/api/tests/gettests/${n}`).then(s=>d.value=s.data).finally(()=>{o.value==0&&(e.value=d.value.length)})};t(),S(()=>o.value,()=>{t()});const b=C(()=>[{value:0,title:`Назначенные (${e.value})`},{value:1,title:"Завершенные"},{value:2,title:"Каталог"}]);return{activeTab:o,tabs:b,getAllTests:d}}};function K(o,e,d,t,b,n){const s=Y("CatalogTest");return i(),T(h,{fluid:!0},{default:a(()=>[l(z,{modelValue:t.activeTab,"onUpdate:modelValue":e[0]||(e[0]=r=>t.activeTab=r),class:"mb-2 text-teal-darken-4"},{default:a(()=>[(i(!0),f(_,null,y(t.tabs,r=>(i(),T(E,{key:r.value,value:r.value},{default:a(()=>[u(m(r.title),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"]),l(R,{modelValue:t.activeTab,"onUpdate:modelValue":e[1]||(e[1]=r=>t.activeTab=r),class:"border-t-thin"},{default:a(()=>[l(x,{class:"my-2"},{default:a(()=>[l(s,{title:"Назначенные",activeTab:t.activeTab,testingCard:t.getAllTLine truncated
-1
View File
@@ -1 +0,0 @@
const r={__name:"SecurityPage",setup(e){return(t,_)=>null}};export{r as default};
-1
View File
@@ -1 +0,0 @@
import{_ as B,s as f,Q as C,x as l,v as t,y as d,$ as n,B as p,C as u,b0 as S,V as c,a0 as T,G as U,R as j,r as w,f as g,t as k,L as x,X as _,A as V,U as N}from"./index-C95RwDyc.js";import{V as A}from"./VContainer-CjvDnvH-.js";import{a as y,V as F,c as D,b as W}from"./VTabs-B5dBzlqM.js";import{V as L}from"./VTextField-CHiGXnf9.js";import{o as q}from"./VDataTable-DYhe0Cof.js";import"./VWindowItem-CwjWCzE9.js";import"./ssrBoot-CCLXtj7a.js";/* empty css */import"./VField-DAxmwXK8.js";import"./VInput-B82efaBR.js";import"./VPagination-Ckkl08Vh.js";import"./VSelect-exBxBFF_.js";import"./VList-CyfHwXPn.js";import"./VCheckboxBtn-RWiQsUNN.js";import"./VSelectionControl-CabHpyF4.js";import"./filter-BoX0E7iY.js";const E={props:{item:{type:Object,required:!0}}},G={key:0},H={key:1};function O(b,e,s,i,m,v){return f(),C(j,null,[l(p,null,{default:t(()=>[d(n(s.item.title),1)]),_:1}),l(S,null,{default:t(()=>[u("div",null,n(s.item.description),1)]),_:1}),l(U,{class:"ga-4"},{default:t(()=>[u("div",null,[l(c,{color:"teal-darken-4"},{default:t(()=>e[0]||(e[0]=[d("mdi-calendar")])),_:1}),e[1]||(e[1]=u("strong",null," До:",-1)),d(" "+n(new Date(s.item.date).toLocaleDateString()),1)]),u("div",null,[l(c,{color:"teal-darken-4"},{default:t(()=>e[2]||(e[2]=[d("mdi-calendar-text")])),_:1}),e[3]||(e[3]=u("strong",null," Вопросов:",-1)),d(" "+n(s.item.questions),1)]),s.item.time?(f(),C("div",G,[l(c,{color:"teal-darken-4"},{default:t(()=>e[4]||(e[4]=[d("mdi-clock")])),_:1}),e[5]||(e[5]=u("strong",null," Время:",-1)),d(" "+n(s.item.time),1)])):T("",!0),s.item.attempts?(f(),C("div",H,[l(c,{color:"deep-orange-accent-4"},{default:t(()=>e[6]||(e[6]=[d("mdi-alert-outline")])),_:1}),e[7]||(e[7]=u("strong",null," Попытки:",-1)),d(" "+n(s.item.attempts),1)])):T("",!0)]),_:1})],64)}const P=B(E,[["render",O]]),Q={components:{TestCard:P},setup(){const b=w(0),e=w(""),s=[{text:"Картинка",value:"image",sortable:!1},{text:"Название",value:"title",align:"start"},{text:"Действия",value:"actions",sortable:!1}],i=w([{id:1,title:"Комплекс тестовых вопросов на знание в области информационно-коммуникационных технологий",type:"test",description:"Краткое описание тестирования",date:"2025-02-28",questions:20,time:"15 минут",attempts:1,image:"https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg"},{id:2,title:"Удобство раздела тестирования",type:"survey",description:"Опрос среди сотрудников ЦОД МФ",date:"2025-06-22",questions:28,time:null,attempts:null,image:"https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg"},{id:3,title:"Законченная карточка законченного тестирования",type:"survey",description:"законченное описание законченного тестирования",date:"2024-06-22",questions:1,time:null,attempts:null,image:"https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg"}]),m=new Date,v=g(()=>i.value.filter(r=>new Date(r.date)>m)),o=g(()=>i.value.filter(r=>new Date(r.date)<=m)),a=g(()=>e.value?v.value.filter(r=>r.title.toLowerCase().includes(e.value.toLowerCase())):v.value),I=g(()=>e.value?o.value.filter(r=>r.title.toLowerCase().includes(e.value.toLowerCase())):o.value),h=g(()=>e.value?i.value.filter(r=>new Date(r.date)>m).filter(r=>r.title.toLowerCase().includes(e.value.toLowerCase())):i.value.filter(r=>new Date(r.date)>m));return{activeTab:b,search:e,headers:s,tests:i,filteredTests:h,filteredScheduledTests:a,filteredCompletedTests:I,scheduledTests:v,completedTests:o}}};function R(b,e,s,i,m,v){const o=N("TestCard");return f(),k(A,null,{default:t(()=>[l(F,{modelValue:i.activeTab,"onUpdate:modelValue":e[0]||(e[0]=a=>i.activeTab=a),class:"mb-4 text-teal-darken-4"},{default:t(()=>[l(y,null,{default:t(()=>[d("Назначенные ("+n(i.scheduledTests.length)+")",1)]),_:1}),l(y,null,{default:t(()=>[d("Завершенные ("+n(i.completedTests.length)+")",1)]),_:1}),l(y,null,{default:t(()=>e[4]||(e[4]=[d("Каталог")])),_:1})]),_:1},8,["modelValue"]),l(W,{modelValue:i.activeTab,"onUpdate:modelValue":e[3]||(e[3]=a=>i.activeTab=a)},{default:t(()=>[l(D,null,{default:t(()=>[l(x,{outlined:""},{default:t(()=>[l(p,null,{default:t(()=>e[5]||(e[5]=[d(" Назначенные ")])),_:1}),l(L,{modelValue:i.search,"onUpdate:modelValue":e[1]||(e[1]=a=>i.search=a),class:"mx-4",clearable:"",label:"Найти тестирование по названию",variant:"outlined"},null,8,["modelValue"]),l(q,{headers:i.headers,items:i.filteredScheduledTests,"hide-default-footer":"","hide-default-header":"","item-value":"id"},{"item.image":t(({item:a})=>[l(_,{src:a.image,alt:"Test Image",height:"100",width:"100"},null,8Line truncated
-1
View File
@@ -1 +0,0 @@
.v-data-table__wrapper{overflow-x:auto}
-1
View File
@@ -1 +0,0 @@
import{bO as z,a6 as D,bw as L,a7 as $,bx as w,an as F,ax as O,c5 as R,c6 as E,ay as j,ao as M,a9 as N,c7 as p,aa as q,ai as G,f as o,ab as H,c8 as J,c9 as K,ap as Q,aB as U,ca as W,cb as X,aD as Y,cc as Z,al as ee,bz as ae,x as t,bP as te,V as le,aI as d,A as ne,z as se}from"./index-C95RwDyc.js";const oe=z("v-alert-title"),ie=["success","info","warning","error"],re=D({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:L,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>ie.includes(e)},...$(),...w(),...F(),...O(),...R(),...E(),...j(),...M(),...N(),...p({variant:"flat"})},"VAlert"),ue=q()({name:"VAlert",props:re(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,v){let{emit:y,slots:a}=v;const i=G(e,"modelValue"),n=o(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),m=o(()=>({color:e.color??e.type,variant:e.variant})),{themeClasses:b}=H(e),{colorClasses:f,colorStyles:k,variantClasses:P}=J(m),{densityClasses:V}=K(e),{dimensionStyles:C}=Q(e),{elevationClasses:x}=U(e),{locationStyles:g}=W(e),{positionClasses:S}=X(e),{roundedClasses:_}=Y(e),{textColorClasses:B,textColorStyles:A}=Z(ee(e,"borderColor")),{t:I}=ae(),r=o(()=>({"aria-label":I(e.closeLabel),onClick(s){i.value=!1,y("click:close",s)}}));return()=>{const s=!!(a.prepend||n.value),T=!!(a.title||e.title),h=!!(a.close||e.closable);return i.value&&t(e.tag,{class:["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},b.value,f.value,V.value,x.value,S.value,_.value,P.value,e.class],style:[k.value,C.value,g.value,e.style],role:"alert"},{default:()=>{var c,u;return[te(!1,"v-alert"),e.border&&t("div",{key:"border",class:["v-alert__border",B.value],style:A.value},null),s&&t("div",{key:"prepend",class:"v-alert__prepend"},[a.prepend?t(d,{key:"prepend-defaults",disabled:!n.value,defaults:{VIcon:{density:e.density,icon:n.value,size:e.prominent?44:28}}},a.prepend):t(le,{key:"prepend-icon",density:e.density,icon:n.value,size:e.prominent?44:28},null)]),t("div",{class:"v-alert__content"},[T&&t(oe,{key:"title"},{default:()=>{var l;return[((l=a.title)==null?void 0:l.call(a))??e.title]}}),((c=a.text)==null?void 0:c.call(a))??e.text,(u=a.default)==null?void 0:u.call(a)]),a.append&&t("div",{key:"append",class:"v-alert__append"},[a.append()]),h&&t("div",{key:"close",class:"v-alert__close"},[a.close?t(d,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var l;return[(l=a.close)==null?void 0:l.call(a,{props:r.value})]}}):t(ne,se({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},r.value),null)])]}})}}});export{ue as V};
-1
View File
@@ -1 +0,0 @@
.v-alert{display:grid;flex:1 1;grid-template-areas:"prepend content append close" ". content . .";grid-template-columns:max-content auto max-content max-content;position:relative;padding:16px;overflow:hidden;--v-border-color: currentColor}.v-alert--absolute{position:absolute}.v-alert--fixed{position:fixed}.v-alert--sticky{position:sticky}.v-alert{border-radius:4px}.v-alert--variant-plain,.v-alert--variant-outlined,.v-alert--variant-text,.v-alert--variant-tonal{background:transparent;color:inherit}.v-alert--variant-plain{opacity:.62}.v-alert--variant-plain:focus,.v-alert--variant-plain:hover{opacity:1}.v-alert--variant-plain .v-alert__overlay{display:none}.v-alert--variant-elevated,.v-alert--variant-flat{background:rgb(var(--v-theme-surface-light));color:rgba(var(--v-theme-on-surface-light),var(--v-high-emphasis-opacity))}.v-alert--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-alert--variant-outlined{border:thin solid currentColor}.v-alert--variant-text .v-alert__overlay{background:currentColor}.v-alert--variant-tonal .v-alert__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-alert .v-alert__underlay{position:absolute}.v-alert--prominent{grid-template-areas:"prepend content append close" "prepend content . ."}.v-alert.v-alert--border{--v-border-opacity: .38}.v-alert.v-alert--border.v-alert--border-start{padding-inline-start:24px}.v-alert.v-alert--border.v-alert--border-end{padding-inline-end:24px}.v-alert--variant-plain{transition:.2s opacity cubic-bezier(.4,0,.2,1)}.v-alert--density-default{padding-bottom:16px;padding-top:16px}.v-alert--density-default.v-alert--border-top{padding-top:24px}.v-alert--density-default.v-alert--border-bottom{padding-bottom:24px}.v-alert--density-comfortable{padding-bottom:12px;padding-top:12px}.v-alert--density-comfortable.v-alert--border-top{padding-top:20px}.v-alert--density-comfortable.v-alert--border-bottom{padding-bottom:20px}.v-alert--density-compact{padding-bottom:8px;padding-top:8px}.v-alert--density-compact.v-alert--border-top{padding-top:16px}.v-alert--density-compact.v-alert--border-bottom{padding-bottom:16px}.v-alert__border{border-radius:inherit;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;pointer-events:none;right:0;top:0;width:100%}.v-alert__border{border-color:currentColor;border-style:solid;border-width:0}.v-alert__border--border{border-width:8px;box-shadow:none}.v-alert--border-start .v-alert__border{border-inline-start-width:8px}.v-alert--border-end .v-alert__border{border-inline-end-width:8px}.v-alert--border-top .v-alert__border{border-top-width:8px}.v-alert--border-bottom .v-alert__border{border-bottom-width:8px}.v-alert__close{flex:0 1 auto;grid-area:close}.v-alert__content{align-self:center;grid-area:content;overflow:hidden}.v-alert__append,.v-alert__close{align-self:flex-start;margin-inline-start:16px}.v-alert__append{align-self:flex-start;grid-area:append}.v-alert__append+.v-alert__close{margin-inline-start:16px}.v-alert__prepend{align-self:flex-start;display:flex;align-items:center;grid-area:prepend;margin-inline-end:16px}.v-alert--prominent .v-alert__prepend{align-self:center}.v-alert__underlay{grid-area:none;position:absolute}.v-alert--border-start .v-alert__underlay{border-top-left-radius:0;border-bottom-left-radius:0}.v-alert--border-end .v-alert__underlay{border-top-right-radius:0;border-bottom-right-radius:0}.v-alert--border-top .v-alert__underlay{border-top-left-radius:0;border-top-right-radius:0}.v-alert--border-bottom .v-alert__underlay{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-alert-title{align-items:center;align-self:center;display:flex;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;line-height:1.75rem;overflow-wrap:normal;text-transform:none;word-break:normal;word-wrap:break-word}
-1
View File
@@ -1 +0,0 @@
.v-autocomplete .v-field .v-text-field__prefix,.v-autocomplete .v-field .v-text-field__suffix,.v-autocomplete .v-field .v-field__input,.v-autocomplete .v-field.v-field{cursor:text}.v-autocomplete .v-field .v-field__input>input{flex:1 1}.v-autocomplete .v-field input{min-width:64px}.v-autocomplete .v-field:not(.v-field--focused) input{min-width:0}.v-autocomplete .v-field--dirty .v-autocomplete__selection{margin-inline-end:2px}.v-autocomplete .v-autocomplete__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-autocomplete__content{overflow:hidden}.v-autocomplete__content{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-autocomplete__content{border-radius:4px}.v-autocomplete__mask{background:rgb(var(--v-theme-surface-light))}.v-autocomplete__selection{display:inline-flex;align-items:center;height:1.5rem;letter-spacing:inherit;line-height:inherit;max-width:calc(100% - 4px)}.v-autocomplete__selection:first-child{margin-inline-start:0}.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-autocomplete--chips.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:0}.v-autocomplete--selecting-index .v-autocomplete__selection{opacity:var(--v-medium-emphasis-opacity)}.v-autocomplete--selecting-index .v-autocomplete__selection--selected{opacity:1}.v-autocomplete--selecting-index .v-field__input>input{caret-color:transparent}.v-autocomplete--single:not(.v-autocomplete--selection-slot).v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline:inherit}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--active input{transition:none}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-autocomplete--single:not(.v-autocomplete--selection-slot) .v-field--focused .v-autocomplete__selection{opacity:0}.v-autocomplete__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-autocomplete--active-menu .v-autocomplete__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}
-1
View File
@@ -1 +0,0 @@
import{b as be,c as we,d as Ce}from"./VSelect-exBxBFF_.js";import{m as xe,V as G}from"./VTextField-CHiGXnf9.js";import{a6 as Se,bQ as Ae,ce as Fe,aa as Ie,bz as Pe,r as R,af as A,ai as j,f as g,cc as De,w as _,n as J,bE as Re,ae as _e,x as o,R as M,b1 as Me,z as x,a2 as X,W as Te,V as Y,cf as Ee,bj as Le,aI as Ne,y as Oe,cg as Be,bN as Ke,ch as Ue,ci as Z,cj as ee}from"./index-C95RwDyc.js";import{m as ze,u as je}from"./filter-BoX0E7iY.js";import{d as He}from"./VInput-B82efaBR.js";import{u as We,V as qe}from"./VList-CyfHwXPn.js";import{V as Qe}from"./VCheckboxBtn-RWiQsUNN.js";function $e(l,V,u){if(V==null)return l;if(Array.isArray(V))throw new Error("Multiple matches is not implemented");return typeof V=="number"&&~V?o(M,null,[o("span",{class:"v-autocomplete__unmask"},[l.substr(0,V)]),o("span",{class:"v-autocomplete__mask"},[l.substr(V,u)]),o("span",{class:"v-autocomplete__unmask"},[l.substr(V+u)])]):l}const Ge=Se({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...ze({filterKeys:["title"]}),...be(),...Ae(xe({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...Fe({transition:!1})},"VAutocomplete"),al=Ie()({name:"VAutocomplete",props:Ge(),emits:{"update:focused":l=>!0,"update:search":l=>!0,"update:modelValue":l=>!0,"update:menu":l=>!0},setup(l,V){let{slots:u}=V;const{t:T}=Pe(),h=R(),y=A(!1),b=A(!0),E=A(!1),H=R(),L=R(),N=j(l,"menu"),c=g({get:()=>N.value,set:e=>{var t;N.value&&!e&&((t=H.value)!=null&&t.ΨopenChildren.size)||(N.value=e)}}),s=A(-1),le=g(()=>{var e;return(e=h.value)==null?void 0:e.color}),W=g(()=>c.value?l.closeText:l.openText),{items:q,transformIn:te,transformOut:ae}=We(l),{textColorClasses:ue,textColorStyles:ne}=De(le),v=j(l,"search",""),n=j(l,"modelValue",[],e=>te(e===null?[null]:Ue(e)),e=>{const t=ae(e);return l.multiple?t:t[0]??null}),oe=g(()=>typeof l.counterValue=="function"?l.counterValue(n.value):typeof l.counterValue=="number"?l.counterValue:n.value.length),F=He(l),{filteredItems:O,getMatches:ie}=je(l,q,()=>b.value?"":v.value),k=g(()=>l.hideSelected?O.value.filter(e=>!n.value.some(t=>t.value===e.value)):O.value),I=g(()=>!!(l.chips||u.chip)),S=g(()=>I.value||!!u.selection),se=g(()=>n.value.map(e=>e.props.value)),B=g(()=>{var t;return(l.autoSelectFirst===!0||l.autoSelectFirst==="exact"&&v.value===((t=k.value[0])==null?void 0:t.title))&&k.value.length>0&&!b.value&&!E.value}),K=g(()=>l.hideNoData&&!k.value.length||F.isReadonly.value||F.isDisabled.value),U=R(),re=we(U,h);function ce(e){l.openOnClear&&(c.value=!0),v.value=""}function ve(){K.value||(c.value=!0)}function de(e){K.value||(y.value&&(e.preventDefault(),e.stopPropagation()),c.value=!c.value)}function fe(e){var t;e.key!==" "&&Z(e)&&((t=h.value)==null||t.focus())}function me(e){var a,i,m;if(F.isReadonly.value)return;const t=h.value.selectionStart,r=n.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(e.key)&&e.preventDefault(),["Enter","ArrowDown"].includes(e.key)&&(c.value=!0),["Escape"].includes(e.key)&&(c.value=!1),B.value&&["Enter","Tab"].includes(e.key)&&!n.value.some(d=>{let{value:f}=d;return f===k.value[0].value})&&w(k.value[0]),e.key==="ArrowDown"&&B.value&&((a=U.value)==null||a.focus("next")),["Backspace","Delete"].includes(e.key)){if(!l.multiple&&S.value&&n.value.length>0&&!v.value)return w(n.value[0],!1);if(~s.value){e.preventDefault();const d=s.value;w(n.value[s.value],!1),s.value=d>=r-1?r-2:d}else e.key==="Backspace"&&!v.value&&(s.value=r-1);return}if(l.multiple)if(e.key==="ArrowLeft"){if(s.value<0&&t>0)return;const d=s.value>-1?s.value-1:r-1;n.value[d]?s.value=d:(s.value=-1,h.value.setSelectionRange((i=v.value)==null?void 0:i.length,(m=v.value)==null?void 0:m.length))}else if(e.key==="ArrowRight"){if(s.value<0)return;const d=s.value+1;n.value[d]?s.value=d:(s.value=-1,h.value.setSelectionRange(0,0))}else~s.value&&Z(e)&&(s.value=-1)}function pe(e){if(ee(h.value,":autofill")||ee(h.value,":-webkit-autofill")){const t=q.value.find(r=>r.title===e.target.value);t&&w(t)}}function he(){var e;l.eager&&((e=L.value)==null||e.calculateVisibleItems())}function ge(){var e;y.value&&(b.value=!0,(e=h.value)==null||e.focus())}function Ve(e){y.value=!0,setTimeout(()=>{E.value=!0})}function ye(e){E.value=!1}function ke(e){(e==null||e===""&&!l.multiple&&!S.value)&&(n.value=[])}const z=A(!1);function w(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!e||e.props.disabled))if(l.multiple){const r=n.value.findIndex(i=>l.valueComparator(i.value,e.value)),a=t??!~r;if(~r){const i=a?[...n.value,e]:[...n.value];i.splice(r,1),n.value=i}else a&&(n.value=[...n.value,e]);l.clearOnSelect&&(v.value="")}else{const r=t!==!1;n.value=r?[e]:[],v.value=r&&!S.value?e.title:"",J(()=>{c.value=!1,b.value=!0})}}return _(y,(e,t)=>{var r;e!==t&&(e?(z.value=!0,v.value=l.multiple||S.value?"":String(((r=n.value.at(-1))==null?void 0:r.props.title)??""),b.value=!0,J(()=>z.value=!1)):(!l.multiple&&v.value==null&&(n.value=[]),c.value=!1,n.value.some(a=>{let{title:i}=a;return i===v.value})|Line truncated
-1
View File
@@ -1 +0,0 @@
import{m as D,V as w,b as k,a as h}from"./VWindowItem-CwjWCzE9.js";import{a6 as P,bw as x,aa as y,ai as B,bz as _,r as T,w as g,q as S,ae as b,x as t,R as A,aI as N,A as W,z as o,J as z,ar as F,cd as L,X as I}from"./index-C95RwDyc.js";const R=P({color:String,cycle:Boolean,delimiterIcon:{type:x,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:e=>Number(e)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...D({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),U=y()({name:"VCarousel",props:R(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:a}=n;const r=B(e,"modelValue"),{t:u}=_(),i=T();let c=-1;g(r,m),g(()=>e.interval,m),g(()=>e.cycle,d=>{d?m():window.clearTimeout(c)}),S(f);function f(){!e.cycle||!i.value||(c=window.setTimeout(i.value.group.next,+e.interval>0?+e.interval:6e3))}function m(){window.clearTimeout(c),window.requestAnimationFrame(f)}return b(()=>{const d=w.filterProps(e);return t(w,o({ref:i},d,{modelValue:r.value,"onUpdate:modelValue":v=>r.value=v,class:["v-carousel",{"v-carousel--hide-delimiter-background":e.hideDelimiterBackground,"v-carousel--vertical-delimiters":e.verticalDelimiters},e.class],style:[{height:F(e.height)},e.style]}),{default:a.default,additional:v=>{let{group:l}=v;return t(A,null,[!e.hideDelimiters&&t("div",{class:"v-carousel__controls",style:{left:e.verticalDelimiters==="left"&&e.verticalDelimiters?0:"auto",right:e.verticalDelimiters==="right"?0:"auto"}},[l.items.value.length>0&&t(N,{defaults:{VBtn:{color:e.color,icon:e.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[l.items.value.map((s,C)=>{const V={id:`carousel-item-${s.id}`,"aria-label":u("$vuetify.carousel.ariaLabel.delimiter",C+1,l.items.value.length),class:["v-carousel__controls__item",l.isSelected(s.id)&&"v-btn--active"],onClick:()=>l.select(s.id,!0)};return a.item?a.item({props:V,item:s}):t(W,o(s,V),null)})]})]),e.progress&&t(z,{class:"v-carousel__progress",color:typeof e.progress=="string"?e.progress:void 0,modelValue:(l.getItemIndex(r.value)+1)/l.items.value.length*100},null)])},prev:a.prev,next:a.next})}),{}}}),$=P({...L(),...k()},"VCarouselItem"),J=y()({name:"VCarouselItem",inheritAttrs:!1,props:$(),setup(e,n){let{slots:a,attrs:r}=n;b(()=>{const u=I.filterProps(e),i=h.filterProps(e);return t(h,o({class:["v-carousel-item",e.class]},i),{default:()=>[t(I,o(r,u),a)]})})}});export{U as V,J as a};
-1
View File
@@ -1 +0,0 @@
.v-carousel{overflow:hidden;position:relative;width:100%}.v-carousel__controls{align-items:center;bottom:0;display:flex;height:50px;justify-content:center;list-style-type:none;position:absolute;width:100%;z-index:1}.v-carousel__controls{background:rgba(var(--v-theme-surface-variant),.3);color:rgb(var(--v-theme-on-surface-variant))}.v-carousel__controls>.v-item-group{flex:0 1 auto}.v-carousel__controls__item{margin:0 8px}.v-carousel__controls__item .v-icon{opacity:.5}.v-carousel__controls__item--active .v-icon{opacity:1;vertical-align:middle}.v-carousel__controls__item:hover{background:none}.v-carousel__controls__item:hover .v-icon{opacity:.8}.v-carousel__progress{margin:0;position:absolute;bottom:0;left:0;right:0}.v-carousel-item{display:block;height:inherit;text-decoration:none}.v-carousel-item>.v-img{height:inherit}.v-carousel--hide-delimiter-background .v-carousel__controls{background:transparent}.v-carousel--vertical-delimiters .v-carousel__controls{flex-direction:column;height:100%!important;width:50px}
-1
View File
@@ -1 +0,0 @@
import{m as f,V as o}from"./VSelectionControl-CabHpyF4.js";import{a6 as V,bw as v,aa as x,ai as c,f as l,ae as I,bQ as b,x as k,z as h}from"./index-C95RwDyc.js";const C=V({indeterminate:Boolean,indeterminateIcon:{type:v,default:"$checkboxIndeterminate"},...f({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),B=x()({name:"VCheckboxBtn",props:C(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,r){let{slots:s}=r;const t=c(e,"indeterminate"),a=c(e,"modelValue");function u(n){t.value&&(t.value=!1)}const i=l(()=>t.value?e.indeterminateIcon:e.falseIcon),m=l(()=>t.value?e.indeterminateIcon:e.trueIcon);return I(()=>{const n=b(o.filterProps(e),["modelValue"]);return k(o,h(n,{modelValue:a.value,"onUpdate:modelValue":[d=>a.value=d,u],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:i.value,trueIcon:m.value,"aria-checked":t.value?"mixed":void 0}),s)}),{}}});export{B as V,C as m};
-1
View File
@@ -1 +0,0 @@
import{a6 as t,a7 as l,an as r,ao as i,aa as m,ad as c,ap as u,ae as d,x as p}from"./index-C95RwDyc.js";const C=t({fluid:{type:Boolean,default:!1},...l(),...r(),...i()},"VContainer"),V=m()({name:"VContainer",props:C(),setup(a,e){let{slots:s}=e;const{rtlClasses:n}=c(),{dimensionStyles:o}=u(a);return d(()=>p(a.tag,{class:["v-container",{"v-container--fluid":a.fluid},n.value,a.class],style:[o.value,a.style]},s)),{}}});export{V};
-1
View File
@@ -1 +0,0 @@
.v-data-table{width:100%}.v-data-table__table{width:100%;border-collapse:separate;border-spacing:0}.v-data-table__tr--focus{border:1px dotted black}.v-data-table__tr--clickable{cursor:pointer}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end{text-align:end}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end .v-data-table-header__content{flex-direction:row-reverse}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center{text-align:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center .v-data-table-header__content{justify-content:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--no-padding{padding:0 8px}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap{text-overflow:ellipsis;text-wrap:nowrap;overflow:hidden}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--nowrap .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--nowrap .v-data-table-header__content{display:contents}.v-data-table .v-table__wrapper>table>thead>tr>th,.v-data-table .v-table__wrapper>table tbody>tr>th{align-items:center}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--fixed,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--fixed{position:sticky}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:hover{cursor:pointer;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon{opacity:0}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon{opacity:.5}.v-data-table .v-table__wrapper>table>thead>tr.v-data-table__tr--mobile>td,.v-data-table .v-table__wrapper>table tbody>tr.v-data-table__tr--mobile>td{height:fit-content}.v-data-table-column--fixed,.v-data-table__th--sticky{background:rgb(var(--v-theme-surface));position:sticky!important;left:0;z-index:1}.v-data-table-column--last-fixed{border-right:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th.v-data-table-column--fixed{z-index:2}.v-data-table-group-header-row td{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface))}.v-data-table-group-header-row td>span{padding-left:5px}.v-data-table--loading .v-data-table__td{opacity:var(--v-disabled-opacity)}.v-data-table-group-header-row__column{padding-left:calc(var(--v-data-table-group-header-row-depth) * 16px)!important}.v-data-table-header__content{display:flex;align-items:center}.v-data-table-header__sort-badge{display:iLine truncated
-1
View File
@@ -1 +0,0 @@
import{cy as ut,a6 as T,ai as j,f as S,w as ue,p as M,cz as Ie,k as W,ag as ne,bw as G,aa as R,bz as te,ae as z,x as u,z as _,cA as it,ar as A,r as N,am as dt,cB as ct,cC as ft,cD as Ve,ch as re,al as B,cE as Y,cF as J,aw as ie,cG as vt,bD as mt,aA as gt,aC as de,bH as ht,R as L,V as ye,bj as bt,A as Fe,y as pe,cn as oe,a$ as xe,$ as yt,a7 as pt,bx as xt,ao as St,a9 as Pt,ab as wt,c9 as kt,bT as X,bk as Dt,aH as Tt,Z as It}from"./index-C95RwDyc.js";import{V as Se}from"./VPagination-Ckkl08Vh.js";import{a as Ce}from"./VSelect-exBxBFF_.js";import{V as ce}from"./VCheckboxBtn-RWiQsUNN.js";import{m as Vt,u as Ft}from"./filter-BoX0E7iY.js";function Pe(e,l,a){return Object.keys(e).filter(t=>ut(t)&&t.endsWith(l)).reduce((t,n)=>(t[n.slice(0,-l.length)]=r=>e[n](r,a(r)),t),{})}const Ct=T({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),Be=Symbol.for("vuetify:data-table-pagination");function Bt(e){const l=j(e,"page",void 0,t=>+(t??1)),a=j(e,"itemsPerPage",void 0,t=>+(t??10));return{page:l,itemsPerPage:a}}function _t(e){const{page:l,itemsPerPage:a,itemsLength:t}=e,n=S(()=>a.value===-1?0:a.value*(l.value-1)),r=S(()=>a.value===-1?t.value:Math.min(t.value,n.value+a.value)),o=S(()=>a.value===-1||t.value===0?1:Math.ceil(t.value/a.value));ue([l,o],()=>{l.value>o.value&&(l.value=o.value)});function s(g){a.value=g,l.value=1}function i(){l.value=ne(l.value+1,1,o.value)}function c(){l.value=ne(l.value-1,1,o.value)}function v(g){l.value=ne(g,1,o.value)}const m={page:l,itemsPerPage:a,startIndex:n,stopIndex:r,pageCount:o,itemsLength:t,nextPage:i,prevPage:c,setPage:v,setItemsPerPage:s};return M(Be,m),m}function Ot(){const e=W(Be);if(!e)throw new Error("Missing pagination!");return e}function At(e){const l=Ie("usePaginatedItems"),{items:a,startIndex:t,stopIndex:n,itemsPerPage:r}=e,o=S(()=>r.value<=0?a.value:a.value.slice(t.value,n.value));return ue(o,s=>{l.emit("update:currentItems",s)},{immediate:!0}),{paginatedItems:o}}const _e=T({prevIcon:{type:G,default:"$prev"},nextIcon:{type:G,default:"$next"},firstIcon:{type:G,default:"$first"},lastIcon:{type:G,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),we=R()({name:"VDataTableFooter",props:_e(),setup(e,l){let{slots:a}=l;const{t}=te(),{page:n,pageCount:r,startIndex:o,stopIndex:s,itemsLength:i,itemsPerPage:c,setItemsPerPage:v}=Ot(),m=S(()=>e.itemsPerPageOptions.map(g=>typeof g=="number"?{value:g,title:g===-1?t("$vuetify.dataFooter.itemsPerPageAll"):String(g)}:{...g,title:isNaN(Number(g.title))?t(g.title):g.title}));return z(()=>{var x;const g=Se.filterProps(e);return u("div",{class:"v-data-table-footer"},[(x=a.prepend)==null?void 0:x.call(a),u("div",{class:"v-data-table-footer__items-per-page"},[u("span",null,[t(e.itemsPerPageText)]),u(Ce,{items:m.value,modelValue:c.value,"onUpdate:modelValue":h=>v(Number(h)),density:"compact",variant:"outlined","hide-details":!0},null)]),u("div",{class:"v-data-table-footer__info"},[u("div",null,[t(e.pageText,i.value?o.value+1:0,s.value,i.value)])]),u("div",{class:"v-data-table-footer__pagination"},[u(Se,_({modelValue:n.value,"onUpdate:modelValue":h=>n.value=h,density:"comfortable","first-aria-label":e.firstPageLabel,"last-aria-label":e.lastPageLabel,length:r.value,"next-aria-label":e.nextPageLabel,"previous-aria-label":e.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":e.showCurrentPage?1:0,variant:"plain"},g),null)])])}),{}}}),ee=it({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(e,l)=>{let{slots:a}=l;const t=e.tag??"td";return u(t,{class:["v-data-table__td",{"v-data-table-column--fixed":e.fixed,"v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap},`v-data-table-column--align-${e.align}`],style:{height:A(e.height),width:A(e.width),maxWidth:A(e.maxWidth),left:A(e.fixedOffset||null)}},{default:()=>{var n;return[(n=a.default)==null?void 0:n.call(a)]}})}),$t=T({headers:Array},"DataTable-header"),Oe=Symbol.for("vuetify:data-table-headers"),Ae={title:"",sortable:!1},Ht={...Ae,width:48};function Rt(){const l=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(a=>({element:a,priority:0}));return{enqueue:(a,t)=>{let n=!1;for(let r=0;Line truncated
-1
View File
@@ -1 +0,0 @@
import{a6 as b,a7 as g,bI as G,aa as P,k as C,bJ as $,ae as m,x as l,H as T,I as j,bC as z,bw as I,an as H,bK as O,aA as h,ap as F,f as v,bL as J,aI as w,V as K,ax as M,aO as N,ay as q,ao as A,aP as Q,aB as U,aD as W,p as X,b5 as Y,bM as Z,a9 as ee,b6 as ae,ab as ne,aH as le,al as t}from"./index-C95RwDyc.js";const p=Symbol.for("vuetify:v-expansion-panel"),B=b({...g(),...G()},"VExpansionPanelText"),k=P()({name:"VExpansionPanelText",props:B(),setup(e,d){let{slots:n}=d;const a=C(p);if(!a)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:o,onAfterLeave:u}=$(e,a.isSelected);return m(()=>l(z,{onAfterLeave:u},{default:()=>{var i;return[T(l("div",{class:["v-expansion-panel-text",e.class],style:e.style},[n.default&&o.value&&l("div",{class:"v-expansion-panel-text__wrapper"},[(i=n.default)==null?void 0:i.call(n)])]),[[j,a.isSelected.value]])]}})),{}}}),D=b({color:String,expandIcon:{type:I,default:"$expand"},collapseIcon:{type:I,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...g(),...H()},"VExpansionPanelTitle"),S=P()({name:"VExpansionPanelTitle",directives:{Ripple:O},props:D(),setup(e,d){let{slots:n}=d;const a=C(p);if(!a)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:o,backgroundColorStyles:u}=h(e,"color"),{dimensionStyles:i}=F(e),r=v(()=>({collapseIcon:e.collapseIcon,disabled:a.disabled.value,expanded:a.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly})),y=v(()=>a.isSelected.value?e.collapseIcon:e.expandIcon);return m(()=>{var x;return T(l("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":a.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},o.value,e.class],style:[u.value,i.value,e.style],type:"button",tabindex:a.disabled.value?-1:void 0,disabled:a.disabled.value,"aria-expanded":a.isSelected.value,onClick:e.readonly?void 0:a.toggle},[l("span",{class:"v-expansion-panel-title__overlay"},null),(x=n.default)==null?void 0:x.call(n,r.value),!e.hideActions&&l(w,{defaults:{VIcon:{icon:y.value}}},{default:()=>{var f;return[l("span",{class:"v-expansion-panel-title__icon"},[((f=n.actions)==null?void 0:f.call(n,r.value))??l(K,null,null)])]}})]),[[J("ripple"),e.ripple]])}),{}}}),_=b({title:String,text:String,bgColor:String,...M(),...N(),...q(),...A(),...D(),...B()},"VExpansionPanel"),ie=P()({name:"VExpansionPanel",props:_(),emits:{"group:selected":e=>!0},setup(e,d){let{slots:n}=d;const a=Q(e,p),{backgroundColorClasses:o,backgroundColorStyles:u}=h(e,"bgColor"),{elevationClasses:i}=U(e),{roundedClasses:r}=W(e),y=v(()=>(a==null?void 0:a.disabled.value)||e.disabled),x=v(()=>a.group.items.value.reduce((c,s,V)=>(a.group.selected.value.includes(s.id)&&c.push(V),c),[])),f=v(()=>{const c=a.group.items.value.findIndex(s=>s.id===a.id);return!a.isSelected.value&&x.value.some(s=>s-c===1)}),L=v(()=>{const c=a.group.items.value.findIndex(s=>s.id===a.id);return!a.isSelected.value&&x.value.some(s=>s-c===-1)});return X(p,a),m(()=>{const c=!!(n.text||e.text),s=!!(n.title||e.title),V=S.filterProps(e),R=k.filterProps(e);return l(e.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":a.isSelected.value,"v-expansion-panel--before-active":f.value,"v-expansion-panel--after-active":L.value,"v-expansion-panel--disabled":y.value},r.value,o.value,e.class],style:[u.value,e.style]},{default:()=>[l("div",{class:["v-expansion-panel__shadow",...i.value]},null),l(w,{defaults:{VExpansionPanelTitle:{...V},VExpansionPanelText:{...R}}},{default:()=>{var E;return[s&&l(S,{key:"title"},{default:()=>[n.title?n.title():e.title]}),c&&l(k,{key:"text"},{default:()=>[n.text?n.text():e.text]}),(E=n.default)==null?void 0:E.call(n)]}})]})}),{groupItem:a}}}),te=["default","accordion","inset","popout"],se=b({flat:Boolean,...Y(),...Z(_(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...ee(),...g(),...A(),variant:{type:String,default:"default",validator:e=>te.includes(e)}},"VExpansionPanels"),ce=P()({name:"VExpansionPanels",props:se(),emits:{"update:modelValue":e=>!0},setup(e,d){let{slots:n}=d;const{next:a,prev:o}=ae(e,p),{themeClasses:u}=ne(e),i=v(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return le({VExpansionPanel:{bgColor:t(e,"bgColor"),collapseIcon:t(e,"collapseIcon"),color:t(e,"color"),eager:t(e,"eager"),elevation:t(e,"elevation"),expandIcon:t(e,"expandIcon"),focusable:t(e,"focusable"),hideActions:t(e,"hideActions"),readonly:t(e,"readonly"),ripple:t(e,"ripple"),rounded:t(e,"rounded"),static:t(e,"static")}}),m(()=>l(e.tag,{class:["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},u.value,i.value,e.class],style:e.style},{default:()=>{var r;return[(r=n.default)==null?void 0:r.call(n,{prev:o,next:a})]}}Line truncated
-1
View File
@@ -1 +0,0 @@
.v-expansion-panel{background-color:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-expansion-panel:not(:first-child):after{border-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-expansion-panel--disabled .v-expansion-panel-title{color:rgba(var(--v-theme-on-surface),.26)}.v-expansion-panel--disabled .v-expansion-panel-title .v-expansion-panel-title__overlay{opacity:.4615384615}.v-expansion-panels{display:flex;flex-wrap:wrap;justify-content:center;list-style-type:none;padding:0;width:100%;position:relative;z-index:1}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:first-child:not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:last-child:not(:first-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:first-child:not(:last-child){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child:not(:first-child){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child:not(:first-child) .v-expansion-panel-title--active{border-bottom-left-radius:initial;border-bottom-right-radius:initial}.v-expansion-panels--variant-accordion>:not(:first-child):not(:last-child){border-radius:0!important}.v-expansion-panels--variant-accordion .v-expansion-panel-title__overlay{transition:.3s border-radius cubic-bezier(.4,0,.2,1)}.v-expansion-panel{flex:1 0 100%;max-width:100%;position:relative;transition:.3s all cubic-bezier(.4,0,.2,1);transition-property:margin-top,border-radius,border,max-width;border-radius:4px}.v-expansion-panel:not(:first-child):after{border-top-style:solid;border-top-width:thin;content:"";left:0;position:absolute;right:0;top:0;transition:.3s opacity cubic-bezier(.4,0,.2,1)}.v-expansion-panel--disabled .v-expansion-panel-title{pointer-events:none}.v-expansion-panel--active:not(:first-child),.v-expansion-panel--active+.v-expansion-panel{margin-top:16px}.v-expansion-panel--active:not(:first-child):after,.v-expansion-panel--active+.v-expansion-panel:after{opacity:0}.v-expansion-panel--active>.v-expansion-panel-title{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-expansion-panel--active>.v-expansion-panel-title:not(.v-expansion-panel-title--static){min-height:64px}.v-expansion-panel__shadow{border-radius:inherit;z-index:-1}.v-expansion-panel__shadow{position:absolute;top:0;left:0;width:100%;height:100%}.v-expansion-panel__shadow{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}.v-expansion-panel-title{align-items:center;text-align:start;border-radius:inherit;display:flex;font-size:.9375rem;line-height:1;min-height:48px;outline:none;padding:16px 24px;position:relative;transition:.3s min-height cubic-bezier(.4,0,.2,1);width:100%;justify-content:space-between}.v-expansion-panel-title:hover>.v-expansion-panel-title__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title:focus-visible>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title:focus>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title--focusable.v-expansion-panel-title--active .v-expansion-panel-title__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--focusable.v-expansion-panel-title--active:hover .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--focusable.v-expansion-panel-title--active:focus-visible .v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title--focusable.v-expansion-panel-title--active:focus .v-expansion-panel-title_Line truncated
Loaded 100 of 290 files, more files were not shown because too many files have changed in this diff. Show more