From 87937eb9185539f4cd2f6a3427b06cc6b2d20062 Mon Sep 17 00:00:00 2001 From: iamtsm <1905333456@qq.com> Date: Fri, 7 Feb 2025 12:39:15 +0800 Subject: [PATCH] feat: first init project --- .gitignore | 113 +- README.md | 29 +- conf/env_config.js | 66 + conf/keys/server.crt | 15 + conf/keys/server.key | 15 + gulpfile.js | 347 + package-lock.json | 12313 ++++++++++++++++ package.json | 69 + src/biz/channel/channel_biz.js | 1153 ++ src/biz/channel/channel_chat_biz.js | 691 + src/biz/channel/channel_user_biz.js | 738 + src/biz/company/company_biz.js | 97 + src/biz/config/config_biz.js | 138 + src/biz/user/user_apply_biz.js | 495 + src/biz/user/user_biz.js | 235 + src/biz/user/user_config_biz.js | 389 + src/biz/user/user_friend_biz.js | 559 + src/biz/user/user_login_biz.js | 562 + src/biz/user/user_login_state_biz.js | 31 + src/biz/user/user_logout_biz.js | 38 + src/biz/user/user_read_biz.js | 361 + src/biz/user/user_register_biz.js | 430 + src/biz/user/user_tag_biz.js | 202 + src/controller/app/app.js | 1 + src/controller/desktop/desktop.js | 1 + src/controller/router.js | 31 + .../web/channel/channel_chat_controller.js | 156 + .../web/channel/channel_controller.js | 254 + .../web/channel/channel_user_controller.js | 354 + .../web/company/company_controller.js | 57 + src/controller/web/config/init_controller.js | 49 + .../web/user/user_apply_controller.js | 137 + .../web/user/user_config_controller.js | 144 + src/controller/web/user/user_controller.js | 103 + .../web/user/user_friend_controller.js | 141 + .../web/user/user_login_controller.js | 435 + .../web/user/user_logout_controller.js | 65 + .../web/user/user_read_controller.js | 209 + .../web/user/user_register_controller.js | 192 + .../web/user/user_tag_controller.js | 180 + src/controller/web/web.js | 44 + src/dao/tl_channel_chat_dao.js | 232 + src/dao/tl_channel_dao.js | 205 + src/dao/tl_channel_user_dao.js | 234 + src/dao/tl_company_dao.js | 205 + src/dao/tl_role_dao.js | 206 + src/dao/tl_user_apply_dao.js | 206 + src/dao/tl_user_auth_dao.js | 206 + src/dao/tl_user_config_dao.js | 206 + src/dao/tl_user_dao.js | 207 + src/dao/tl_user_finger_print_dao.js | 206 + src/dao/tl_user_friend_dao.js | 206 + src/dao/tl_user_read_dao.js | 205 + src/dao/tl_user_tag_dao.js | 206 + src/middleware/loginAuth.js | 112 + src/middleware/loginRole.js | 288 + src/role/accountRole.js | 86 + src/role/channelRole.js | 99 + src/role/permission.js | 256 + src/role/role.js | 58 + .../channel/tl_channel_chat_service.js | 1293 ++ src/service/channel/tl_channel_service.js | 254 + .../channel/tl_channel_user_service.js | 1035 ++ src/service/company/tl_company_service.js | 267 + src/service/role/tl_role_service.js | 344 + src/service/user/tl_user_apply_service.js | 695 + src/service/user/tl_user_auth_service.js | 332 + src/service/user/tl_user_config_service.js | 373 + .../user/tl_user_finger_print_service.js | 381 + src/service/user/tl_user_friend_service.js | 1018 ++ src/service/user/tl_user_read_service.js | 677 + src/service/user/tl_user_service.js | 466 + src/service/user/tl_user_session_service.js | 223 + src/service/user/tl_user_tag_service.js | 365 + src/socket/connect.js | 65 + src/socket/event.js | 6 + src/socket/event/client_event.js | 27 + src/socket/event/server_event.js | 30 + src/socket/handler/auth.js | 45 + src/socket/handler/channel_chat.js | 72 + src/socket/handler/channel_chat_rollback.js | 75 + src/socket/handler/contact_apply.js | 56 + src/socket/handler/contact_apply_pass.js | 56 + src/socket/handler/contact_apply_reject.js | 56 + src/socket/handler/count.js | 21 + src/socket/handler/disconnect.js | 21 + src/socket/handler/exit.js | 30 + src/socket/handler/heartbeat.js | 19 + src/socket/index.js | 33 + src/tables/db.js | 102 + src/tables/tl_channel.js | 79 + src/tables/tl_channel_chat.js | 129 + src/tables/tl_channel_user.js | 96 + src/tables/tl_company.js | 100 + src/tables/tl_role.js | 157 + src/tables/tl_user.js | 115 + src/tables/tl_user_apply.js | 107 + src/tables/tl_user_auth.js | 65 + src/tables/tl_user_config.js | 116 + src/tables/tl_user_finger_print.js | 55 + src/tables/tl_user_friend.js | 114 + src/tables/tl_user_notify.js | 74 + src/tables/tl_user_read.js | 86 + src/tables/tl_user_tag.js | 70 + src/utils/cache/cache.js | 331 + src/utils/cache/cache_key.js | 19 + src/utils/cache/key/channel_key.js | 10 + src/utils/cache/key/socket_key.js | 9 + src/utils/cache/key/user_key.js | 32 + src/utils/cache/redis.js | 57 + src/utils/constant.js | 11 + src/utils/mail/mail.js | 136 + src/utils/oss/ali_oss.js | 55 + src/utils/oss/oss.js | 113 + src/utils/oss/tx_oss.js | 58 + src/utils/utils.js | 597 + tlapi.js | 94 + tlrtcapp.env | 102 + tlsocket.js | 61 + web-v2-res/css/comm.css | 642 + web-v2-res/css/ipad.css | 75 + web-v2-res/css/max-mobile.css | 10 + web-v2-res/css/max.css | 9 + web-v2-res/css/mobile.css | 319 + web-v2-res/css/pc.css | 3311 +++++ web-v2-res/image/404.png | Bin 0 -> 31793 bytes web-v2-res/image/default-avatar.png | Bin 0 -> 22440 bytes web-v2-res/image/friend-default-avatar.png | Bin 0 -> 1775 bytes web-v2-res/image/group-default-avatar.png | Bin 0 -> 1509 bytes web-v2-res/image/qq-group-qrcode.png | Bin 0 -> 115018 bytes web-v2-res/image/qrcode.jpeg | Bin 0 -> 30320 bytes web-v2-res/image/tl-open-source-icon.png | Bin 0 -> 216 bytes web-v2-res/image/tl-open-source-logo.png | Bin 0 -> 5569 bytes web-v2-res/image/tlrtcapp-logo.svg | 146 + web-v2-res/index.html | 187 + web-v2-res/js/basic/comm.js | 1087 ++ web-v2-res/js/basic/lang.js | 20 + web-v2-res/js/component/api.js | 150 + web-v2-res/js/component/bfp.js | 320 + web-v2-res/js/component/cache.js | 150 + web-v2-res/js/component/menu.js | 887 ++ web-v2-res/js/component/popup.js | 855 ++ web-v2-res/js/component/shade.js | 89 + web-v2-res/js/component/socket.js | 132 + web-v2-res/js/module/blank/content.js | 57 + web-v2-res/js/module/channel/channel.js | 124 + web-v2-res/js/module/channel/content.js | 1251 ++ web-v2-res/js/module/channel/content/body.js | 482 + .../js/module/channel/content/invite.js | 613 + web-v2-res/js/module/channel/content/more.js | 529 + .../js/module/channel/content/textarea.js | 554 + web-v2-res/js/module/channel/content/tool.js | 260 + web-v2-res/js/module/channel/list.js | 1351 ++ web-v2-res/js/module/channel/top.js | 313 + web-v2-res/js/module/contact/contact.js | 95 + web-v2-res/js/module/contact/content.js | 551 + web-v2-res/js/module/contact/content/apply.js | 164 + .../js/module/contact/content/friend.js | 182 + web-v2-res/js/module/contact/content/group.js | 158 + .../js/module/contact/content/search.js | 158 + web-v2-res/js/module/contact/list.js | 603 + web-v2-res/js/module/contact/top.js | 173 + web-v2-res/js/module/login/content.js | 139 + web-v2-res/js/module/login/content/account.js | 228 + web-v2-res/js/module/login/content/email.js | 314 + web-v2-res/js/module/login/content/mobile.js | 85 + web-v2-res/js/module/login/list.js | 125 + web-v2-res/js/module/login/login.js | 243 + web-v2-res/js/module/login/mobile.js | 347 + web-v2-res/js/module/setting/content.js | 238 + .../js/module/setting/content/account.js | 364 + web-v2-res/js/module/setting/content/other.js | 157 + web-v2-res/js/module/setting/list.js | 173 + web-v2-res/js/module/setting/setting.js | 154 + web-v2-res/js/module/sidebar/bottom.js | 92 + web-v2-res/js/module/sidebar/logo.js | 119 + web-v2-res/js/module/sidebar/sidebar.js | 330 + web-v2-res/js/module/sidebar/tool.js | 237 + web-v2-res/js/tl_rtc_app.js | 382 + web-v2-res/js/tl_rtc_entry.js | 49 + web-v2-res/js/website/website.js | 1369 ++ web-v2-res/static/css/default.min.css | 9 + web-v2-res/static/css/editor.main.min.css | 6 + web-v2-res/static/css/layui.css | 1 + web-v2-res/static/css/pdf_viewer.min.css | 1 + web-v2-res/static/css/swiper-bundle.min.css | 13 + web-v2-res/static/js/adapter.js | 3364 +++++ web-v2-res/static/js/axios.js | 637 + web-v2-res/static/js/base64.min.js | 8 + web-v2-res/static/js/clipboard.min.js | 7 + web-v2-res/static/js/docx-preview.min.js | 3 + web-v2-res/static/js/hammer.min.js | 7 + web-v2-res/static/js/highlight.min.js | 1358 ++ web-v2-res/static/js/jszip.min.js | 13 + web-v2-res/static/js/loader.min.js | 4 + web-v2-res/static/js/localforage.min.js | 7 + web-v2-res/static/js/office.js | 84 + web-v2-res/static/js/pdf.min.js | 22 + web-v2-res/static/js/pdf.worker.min.js | 22 + web-v2-res/static/js/pdf_viewer.min.js | 1 + web-v2-res/static/js/pptxgen.min.js | 3 + web-v2-res/static/js/qrcode.min.js | 1 + web-v2-res/static/js/socket.io.js | 3 + web-v2-res/static/js/socket.io.msgpack.min.js | 7 + web-v2-res/static/js/swiper-bundle.min.js | 14 + web-v2-res/static/js/vconsole.js | 1 + web-v2-res/static/js/vconsole.min.js | 10 + .../static/js/vue-content-loader.min.js | 2 + web-v2-res/static/js/vue.min.js | 6 + web-v2-res/static/js/xlsx.full.min.js | 24 + web-v2-res/static/layui/css/layui.css | 1 + web-v2-res/static/layui/css/modules/code.css | 1 + .../css/modules/laydate/default/laydate.css | 1 + .../css/modules/layer/default/icon-ext.png | Bin 0 -> 5911 bytes .../layui/css/modules/layer/default/icon.png | Bin 0 -> 11493 bytes .../layui/css/modules/layer/default/layer.css | 1 + .../css/modules/layer/default/loading-0.gif | Bin 0 -> 5793 bytes .../css/modules/layer/default/loading-1.gif | Bin 0 -> 701 bytes .../css/modules/layer/default/loading-2.gif | Bin 0 -> 1787 bytes web-v2-res/static/layui/font-ext/demo.css | 539 + .../static/layui/font-ext/demo_index.html | 5593 +++++++ web-v2-res/static/layui/font-ext/iconfont.css | 955 ++ web-v2-res/static/layui/font-ext/iconfont.js | 1 + .../static/layui/font-ext/iconfont.json | 1654 +++ web-v2-res/static/layui/font-ext/iconfont.ttf | Bin 0 -> 64720 bytes .../static/layui/font-ext/iconfont.woff | Bin 0 -> 39448 bytes .../static/layui/font-ext/iconfont.woff2 | Bin 0 -> 33528 bytes web-v2-res/static/layui/font/iconfont.eot | Bin 0 -> 46684 bytes web-v2-res/static/layui/font/iconfont.svg | 554 + web-v2-res/static/layui/font/iconfont.ttf | Bin 0 -> 46508 bytes web-v2-res/static/layui/font/iconfont.woff | Bin 0 -> 30628 bytes web-v2-res/static/layui/font/iconfont.woff2 | Bin 0 -> 25964 bytes web-v2-res/static/layui/images/face/0.gif | Bin 0 -> 614555 bytes web-v2-res/static/layui/images/face/1.gif | Bin 0 -> 1401708 bytes web-v2-res/static/layui/images/face/2.gif | Bin 0 -> 690903 bytes web-v2-res/static/layui/images/face/3.gif | Bin 0 -> 886703 bytes web-v2-res/static/layui/images/face/4.gif | Bin 0 -> 796375 bytes web-v2-res/static/layui/images/face/5.gif | Bin 0 -> 843481 bytes web-v2-res/static/layui/images/face/6.gif | Bin 0 -> 587979 bytes web-v2-res/static/layui/layui.js | 23 + 240 files changed, 72762 insertions(+), 104 deletions(-) create mode 100644 conf/env_config.js create mode 100644 conf/keys/server.crt create mode 100644 conf/keys/server.key create mode 100644 gulpfile.js create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 src/biz/channel/channel_biz.js create mode 100644 src/biz/channel/channel_chat_biz.js create mode 100644 src/biz/channel/channel_user_biz.js create mode 100644 src/biz/company/company_biz.js create mode 100644 src/biz/config/config_biz.js create mode 100644 src/biz/user/user_apply_biz.js create mode 100644 src/biz/user/user_biz.js create mode 100644 src/biz/user/user_config_biz.js create mode 100644 src/biz/user/user_friend_biz.js create mode 100644 src/biz/user/user_login_biz.js create mode 100644 src/biz/user/user_login_state_biz.js create mode 100644 src/biz/user/user_logout_biz.js create mode 100644 src/biz/user/user_read_biz.js create mode 100644 src/biz/user/user_register_biz.js create mode 100644 src/biz/user/user_tag_biz.js create mode 100644 src/controller/app/app.js create mode 100644 src/controller/desktop/desktop.js create mode 100644 src/controller/router.js create mode 100644 src/controller/web/channel/channel_chat_controller.js create mode 100644 src/controller/web/channel/channel_controller.js create mode 100644 src/controller/web/channel/channel_user_controller.js create mode 100644 src/controller/web/company/company_controller.js create mode 100644 src/controller/web/config/init_controller.js create mode 100644 src/controller/web/user/user_apply_controller.js create mode 100644 src/controller/web/user/user_config_controller.js create mode 100644 src/controller/web/user/user_controller.js create mode 100644 src/controller/web/user/user_friend_controller.js create mode 100644 src/controller/web/user/user_login_controller.js create mode 100644 src/controller/web/user/user_logout_controller.js create mode 100644 src/controller/web/user/user_read_controller.js create mode 100644 src/controller/web/user/user_register_controller.js create mode 100644 src/controller/web/user/user_tag_controller.js create mode 100644 src/controller/web/web.js create mode 100644 src/dao/tl_channel_chat_dao.js create mode 100644 src/dao/tl_channel_dao.js create mode 100644 src/dao/tl_channel_user_dao.js create mode 100644 src/dao/tl_company_dao.js create mode 100644 src/dao/tl_role_dao.js create mode 100644 src/dao/tl_user_apply_dao.js create mode 100644 src/dao/tl_user_auth_dao.js create mode 100644 src/dao/tl_user_config_dao.js create mode 100644 src/dao/tl_user_dao.js create mode 100644 src/dao/tl_user_finger_print_dao.js create mode 100644 src/dao/tl_user_friend_dao.js create mode 100644 src/dao/tl_user_read_dao.js create mode 100644 src/dao/tl_user_tag_dao.js create mode 100644 src/middleware/loginAuth.js create mode 100644 src/middleware/loginRole.js create mode 100644 src/role/accountRole.js create mode 100644 src/role/channelRole.js create mode 100644 src/role/permission.js create mode 100644 src/role/role.js create mode 100644 src/service/channel/tl_channel_chat_service.js create mode 100644 src/service/channel/tl_channel_service.js create mode 100644 src/service/channel/tl_channel_user_service.js create mode 100644 src/service/company/tl_company_service.js create mode 100644 src/service/role/tl_role_service.js create mode 100644 src/service/user/tl_user_apply_service.js create mode 100644 src/service/user/tl_user_auth_service.js create mode 100644 src/service/user/tl_user_config_service.js create mode 100644 src/service/user/tl_user_finger_print_service.js create mode 100644 src/service/user/tl_user_friend_service.js create mode 100644 src/service/user/tl_user_read_service.js create mode 100644 src/service/user/tl_user_service.js create mode 100644 src/service/user/tl_user_session_service.js create mode 100644 src/service/user/tl_user_tag_service.js create mode 100644 src/socket/connect.js create mode 100644 src/socket/event.js create mode 100644 src/socket/event/client_event.js create mode 100644 src/socket/event/server_event.js create mode 100644 src/socket/handler/auth.js create mode 100644 src/socket/handler/channel_chat.js create mode 100644 src/socket/handler/channel_chat_rollback.js create mode 100644 src/socket/handler/contact_apply.js create mode 100644 src/socket/handler/contact_apply_pass.js create mode 100644 src/socket/handler/contact_apply_reject.js create mode 100644 src/socket/handler/count.js create mode 100644 src/socket/handler/disconnect.js create mode 100644 src/socket/handler/exit.js create mode 100644 src/socket/handler/heartbeat.js create mode 100644 src/socket/index.js create mode 100644 src/tables/db.js create mode 100644 src/tables/tl_channel.js create mode 100644 src/tables/tl_channel_chat.js create mode 100644 src/tables/tl_channel_user.js create mode 100644 src/tables/tl_company.js create mode 100644 src/tables/tl_role.js create mode 100644 src/tables/tl_user.js create mode 100644 src/tables/tl_user_apply.js create mode 100644 src/tables/tl_user_auth.js create mode 100644 src/tables/tl_user_config.js create mode 100644 src/tables/tl_user_finger_print.js create mode 100644 src/tables/tl_user_friend.js create mode 100644 src/tables/tl_user_notify.js create mode 100644 src/tables/tl_user_read.js create mode 100644 src/tables/tl_user_tag.js create mode 100644 src/utils/cache/cache.js create mode 100644 src/utils/cache/cache_key.js create mode 100644 src/utils/cache/key/channel_key.js create mode 100644 src/utils/cache/key/socket_key.js create mode 100644 src/utils/cache/key/user_key.js create mode 100644 src/utils/cache/redis.js create mode 100644 src/utils/constant.js create mode 100644 src/utils/mail/mail.js create mode 100644 src/utils/oss/ali_oss.js create mode 100644 src/utils/oss/oss.js create mode 100644 src/utils/oss/tx_oss.js create mode 100644 src/utils/utils.js create mode 100644 tlapi.js create mode 100644 tlrtcapp.env create mode 100644 tlsocket.js create mode 100644 web-v2-res/css/comm.css create mode 100644 web-v2-res/css/ipad.css create mode 100644 web-v2-res/css/max-mobile.css create mode 100644 web-v2-res/css/max.css create mode 100644 web-v2-res/css/mobile.css create mode 100644 web-v2-res/css/pc.css create mode 100644 web-v2-res/image/404.png create mode 100644 web-v2-res/image/default-avatar.png create mode 100644 web-v2-res/image/friend-default-avatar.png create mode 100644 web-v2-res/image/group-default-avatar.png create mode 100644 web-v2-res/image/qq-group-qrcode.png create mode 100644 web-v2-res/image/qrcode.jpeg create mode 100644 web-v2-res/image/tl-open-source-icon.png create mode 100644 web-v2-res/image/tl-open-source-logo.png create mode 100644 web-v2-res/image/tlrtcapp-logo.svg create mode 100644 web-v2-res/index.html create mode 100644 web-v2-res/js/basic/comm.js create mode 100644 web-v2-res/js/basic/lang.js create mode 100644 web-v2-res/js/component/api.js create mode 100644 web-v2-res/js/component/bfp.js create mode 100644 web-v2-res/js/component/cache.js create mode 100644 web-v2-res/js/component/menu.js create mode 100644 web-v2-res/js/component/popup.js create mode 100644 web-v2-res/js/component/shade.js create mode 100644 web-v2-res/js/component/socket.js create mode 100644 web-v2-res/js/module/blank/content.js create mode 100644 web-v2-res/js/module/channel/channel.js create mode 100644 web-v2-res/js/module/channel/content.js create mode 100644 web-v2-res/js/module/channel/content/body.js create mode 100644 web-v2-res/js/module/channel/content/invite.js create mode 100644 web-v2-res/js/module/channel/content/more.js create mode 100644 web-v2-res/js/module/channel/content/textarea.js create mode 100644 web-v2-res/js/module/channel/content/tool.js create mode 100644 web-v2-res/js/module/channel/list.js create mode 100644 web-v2-res/js/module/channel/top.js create mode 100644 web-v2-res/js/module/contact/contact.js create mode 100644 web-v2-res/js/module/contact/content.js create mode 100644 web-v2-res/js/module/contact/content/apply.js create mode 100644 web-v2-res/js/module/contact/content/friend.js create mode 100644 web-v2-res/js/module/contact/content/group.js create mode 100644 web-v2-res/js/module/contact/content/search.js create mode 100644 web-v2-res/js/module/contact/list.js create mode 100644 web-v2-res/js/module/contact/top.js create mode 100644 web-v2-res/js/module/login/content.js create mode 100644 web-v2-res/js/module/login/content/account.js create mode 100644 web-v2-res/js/module/login/content/email.js create mode 100644 web-v2-res/js/module/login/content/mobile.js create mode 100644 web-v2-res/js/module/login/list.js create mode 100644 web-v2-res/js/module/login/login.js create mode 100644 web-v2-res/js/module/login/mobile.js create mode 100644 web-v2-res/js/module/setting/content.js create mode 100644 web-v2-res/js/module/setting/content/account.js create mode 100644 web-v2-res/js/module/setting/content/other.js create mode 100644 web-v2-res/js/module/setting/list.js create mode 100644 web-v2-res/js/module/setting/setting.js create mode 100644 web-v2-res/js/module/sidebar/bottom.js create mode 100644 web-v2-res/js/module/sidebar/logo.js create mode 100644 web-v2-res/js/module/sidebar/sidebar.js create mode 100644 web-v2-res/js/module/sidebar/tool.js create mode 100644 web-v2-res/js/tl_rtc_app.js create mode 100644 web-v2-res/js/tl_rtc_entry.js create mode 100644 web-v2-res/js/website/website.js create mode 100644 web-v2-res/static/css/default.min.css create mode 100644 web-v2-res/static/css/editor.main.min.css create mode 100644 web-v2-res/static/css/layui.css create mode 100644 web-v2-res/static/css/pdf_viewer.min.css create mode 100644 web-v2-res/static/css/swiper-bundle.min.css create mode 100644 web-v2-res/static/js/adapter.js create mode 100644 web-v2-res/static/js/axios.js create mode 100644 web-v2-res/static/js/base64.min.js create mode 100644 web-v2-res/static/js/clipboard.min.js create mode 100644 web-v2-res/static/js/docx-preview.min.js create mode 100644 web-v2-res/static/js/hammer.min.js create mode 100644 web-v2-res/static/js/highlight.min.js create mode 100644 web-v2-res/static/js/jszip.min.js create mode 100644 web-v2-res/static/js/loader.min.js create mode 100644 web-v2-res/static/js/localforage.min.js create mode 100644 web-v2-res/static/js/office.js create mode 100644 web-v2-res/static/js/pdf.min.js create mode 100644 web-v2-res/static/js/pdf.worker.min.js create mode 100644 web-v2-res/static/js/pdf_viewer.min.js create mode 100644 web-v2-res/static/js/pptxgen.min.js create mode 100644 web-v2-res/static/js/qrcode.min.js create mode 100644 web-v2-res/static/js/socket.io.js create mode 100644 web-v2-res/static/js/socket.io.msgpack.min.js create mode 100644 web-v2-res/static/js/swiper-bundle.min.js create mode 100644 web-v2-res/static/js/vconsole.js create mode 100644 web-v2-res/static/js/vconsole.min.js create mode 100644 web-v2-res/static/js/vue-content-loader.min.js create mode 100644 web-v2-res/static/js/vue.min.js create mode 100644 web-v2-res/static/js/xlsx.full.min.js create mode 100644 web-v2-res/static/layui/css/layui.css create mode 100644 web-v2-res/static/layui/css/modules/code.css create mode 100644 web-v2-res/static/layui/css/modules/laydate/default/laydate.css create mode 100644 web-v2-res/static/layui/css/modules/layer/default/icon-ext.png create mode 100644 web-v2-res/static/layui/css/modules/layer/default/icon.png create mode 100644 web-v2-res/static/layui/css/modules/layer/default/layer.css create mode 100644 web-v2-res/static/layui/css/modules/layer/default/loading-0.gif create mode 100644 web-v2-res/static/layui/css/modules/layer/default/loading-1.gif create mode 100644 web-v2-res/static/layui/css/modules/layer/default/loading-2.gif create mode 100644 web-v2-res/static/layui/font-ext/demo.css create mode 100644 web-v2-res/static/layui/font-ext/demo_index.html create mode 100644 web-v2-res/static/layui/font-ext/iconfont.css create mode 100644 web-v2-res/static/layui/font-ext/iconfont.js create mode 100644 web-v2-res/static/layui/font-ext/iconfont.json create mode 100644 web-v2-res/static/layui/font-ext/iconfont.ttf create mode 100644 web-v2-res/static/layui/font-ext/iconfont.woff create mode 100644 web-v2-res/static/layui/font-ext/iconfont.woff2 create mode 100644 web-v2-res/static/layui/font/iconfont.eot create mode 100644 web-v2-res/static/layui/font/iconfont.svg create mode 100644 web-v2-res/static/layui/font/iconfont.ttf create mode 100644 web-v2-res/static/layui/font/iconfont.woff create mode 100644 web-v2-res/static/layui/font/iconfont.woff2 create mode 100644 web-v2-res/static/layui/images/face/0.gif create mode 100644 web-v2-res/static/layui/images/face/1.gif create mode 100644 web-v2-res/static/layui/images/face/2.gif create mode 100644 web-v2-res/static/layui/images/face/3.gif create mode 100644 web-v2-res/static/layui/images/face/4.gif create mode 100644 web-v2-res/static/layui/images/face/5.gif create mode 100644 web-v2-res/static/layui/images/face/6.gif create mode 100644 web-v2-res/static/layui/layui.js diff --git a/.gitignore b/.gitignore index c6bba59..e0b9729 100644 --- a/.gitignore +++ b/.gitignore @@ -1,130 +1,39 @@ +# ---> Node # Logs logs *.log npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* -.pnpm-debug.log* - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json # Runtime data pids *.pid *.seed -*.pid.lock # Directory for instrumented libs generated by jscoverage/JSCover lib-cov # Coverage directory used by tools like istanbul coverage -*.lcov -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) .grunt -# Bower dependency directory (https://bower.io/) -bower_components - # node-waf configuration .lock-wscript -# Compiled binary addons (https://nodejs.org/api/addons.html) +# Compiled binary addons (http://nodejs.org/api/addons.html) build/Release -# Dependency directories -node_modules/ -jspm_packages/ +# Dependency directory +# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git +node_modules -# Snowpack dependency directory (https://snowpack.dev/) -web_modules/ +.DS_Store -# TypeScript cache -*.tsbuildinfo +dist/ -# Optional npm cache directory -.npm +tmp/ -# Optional eslint cache -.eslintcache +.VSCodeCounter/ -# Optional stylelint cache -.stylelintcache - -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variable files -.env -.env.development.local -.env.test.local -.env.production.local -.env.local - -# parcel-bundler cache (https://parceljs.org/) -.cache -.parcel-cache - -# Next.js build output -.next -out - -# Nuxt.js build / generate output -.nuxt -dist - -# Gatsby files -.cache/ -# Comment in the public line in if your project uses Gatsby and not Next.js -# https://nextjs.org/blog/next-9-1#public-directory-support -# public - -# vuepress build output -.vuepress/dist - -# vuepress v2.x temp and cache directory -.temp -.cache - -# Docusaurus cache and generated files -.docusaurus - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# TernJS port file -.tern-port - -# Stores VSCode versions used for testing VSCode extensions -.vscode-test - -# yarn v2 -.yarn/cache -.yarn/unplugged -.yarn/build-state.yml -.yarn/install-state.gz -.pnp.* +electron-dist/ \ No newline at end of file diff --git a/README.md b/README.md index f796528..7fbd697 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,27 @@ -# tl-rtc-app -tl rtc apps + + +### 安装步骤 + +1. 克隆仓库: + ```bash + git clone https://github.com/tl-open-source/tl-rtc-app.git + ``` +2. 进入项目目录: + ```bash + cd tl-rtc-app + ``` +3. 安装依赖: + ```bash + npm install + ``` + +### 使用说明 +1. 启动应用: + ```bash + npm start + ``` +2. 打开浏览器并访问 `http://localhost:9096`。 + + +### 许可证 +该项目根据 MIT 许可证授权。有关详细信息,请参阅 [LICENSE](LICENSE) 文件。 diff --git a/conf/env_config.js b/conf/env_config.js new file mode 100644 index 0000000..7979ef0 --- /dev/null +++ b/conf/env_config.js @@ -0,0 +1,66 @@ +const path = require("path"); +const dotEnv = require("dotenv"); + +/** + * 从.env文件中加载环境变量 + * docker环境下,使用docker-compose.yml中指定的env逻辑,不使用主动加载的.env文件中的环境变量 + * docker环境下,使用docker run 中指定的 -e 逻辑,不使用主动加载的.env文件中的环境变量 + * 非docker环境下,使用.env文件中的环境变量 + */ +const load_env_config = function(){ + if(process.env.tl_rtc_app_node_load_env === 'false'){ + return + } + const pathsEnv = path.resolve(__dirname, "../") + dotEnv.config({ path: `${pathsEnv}/tlrtcapp.env` }) + console.log(`load env config from .env file ${pathsEnv}/tlrtcapp.env`) +} + +/** + * 从环境变量中注入配置 + * 1. 适配容器环境 + * 2. 数据格式转换 + * 3. 统一管理 + */ +const get_env_config = function () { + let defaultConfJson = {} + + Object.keys(process.env).filter( key => key.startsWith("tl_rtc_app_") ).map(key => { + let value = process.env[key] + key = key.replace("tl_rtc_app_","") + + //端口相关的配置转换为数字 + if (key.endsWith('_port')) { + value = parseInt(value) + } + + //过期时间相关的配置转换为数字 + if(key.endsWith("_expire")){ + value = parseInt(value) + } + + //开关相关的配置转换为boolean + if (key.endsWith('_open')) { + value = value === 'true' + } + + //openai keys转换为数组 + if(key === 'openai_keys'){ + value = value.split(',') + } + + //企业微信通知 keys转换为数组 + if(key === 'notify_qiwei_normal' || key === 'notify_qiwei_error'){ + value = value.split(',') + } + + defaultConfJson[key] = value + }) + + return defaultConfJson +} + +module.exports = { + get_env_config, + load_env_config +} diff --git a/conf/keys/server.crt b/conf/keys/server.crt new file mode 100644 index 0000000..a20e9ad --- /dev/null +++ b/conf/keys/server.crt @@ -0,0 +1,15 @@ +-----BEGIN CERTIFICATE----- +MIICVTCCAb4CCQCCDZ6FebPIqjANBgkqhkiG9w0BAQsFADBvMQswCQYDVQQGEwJV +UzENMAsGA1UECAwETWFyczETMBEGA1UEBwwKaVRyYW5zd2FycDETMBEGA1UECgwK +aVRyYW5zd2FycDETMBEGA1UECwwKaVRyYW5zd2FycDESMBAGA1UEAwwJMTI3LjAu +MC4xMB4XDTE4MDcxMDAzMTYzN1oXDTI4MDcwNzAzMTYzN1owbzELMAkGA1UEBhMC +VVMxDTALBgNVBAgMBE1hcnMxEzARBgNVBAcMCmlUcmFuc3dhcnAxEzARBgNVBAoM +CmlUcmFuc3dhcnAxEzARBgNVBAsMCmlUcmFuc3dhcnAxEjAQBgNVBAMMCTEyNy4w +LjAuMTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA1I6AQ6eNez85kcKjwy3g +/vcnXtw+EbP4Ab37fLhIIWG+XzmEBAqnCYjM3nmlDIGEfNylGReo9mD2OHg46a1D +wjd3pxTMit41pCTCiu8S9A2UJfbhSzQrfs+IZcNye4KR9/FzNEW6KoKQ0uc6X33E +0xe41hbRMQoKB3WmxvyN8PcCAwEAATANBgkqhkiG9w0BAQsFAAOBgQAd7GNDtKWA +0OpSCzMu0pbmss9Erh4/RC8D+wK4+TXgPDKyZ6hX4FYPvk+ryMvwxJf0o4jjx5cx +Yew7UjaKHlGXq+CNVRFYlltsbvO3oQTNkajuyYGWzMSuNxNsT3apOxH7SIu3qao8 +COSwj5FxZ2JU7O+SBVFZoJrFXEa+KJMQzQ== +-----END CERTIFICATE----- diff --git a/conf/keys/server.key b/conf/keys/server.key new file mode 100644 index 0000000..beb5a71 --- /dev/null +++ b/conf/keys/server.key @@ -0,0 +1,15 @@ +-----BEGIN RSA PRIVATE KEY----- +MIICXAIBAAKBgQDUjoBDp417PzmRwqPDLeD+9yde3D4Rs/gBvft8uEghYb5fOYQE +CqcJiMzeeaUMgYR83KUZF6j2YPY4eDjprUPCN3enFMyK3jWkJMKK7xL0DZQl9uFL +NCt+z4hlw3J7gpH38XM0RboqgpDS5zpffcTTF7jWFtExCgoHdabG/I3w9wIDAQAB +AoGAWsy1BjGhQrDzisy24D3NC53Q97jl2vIiU7wwnkqqpXf3tv3+4ysZx/zkZ3VX +iEwbqKso69srlnQ9OkpBJbGaa6lZe+z7BGzv2eJr+hKjjVjR122eDjAtXw+Tmt6c +iBUG9+ITC1GdhXLEgTXtYuPq8hbDhoAVI007E+5JuQoO8kECQQD3aR6zGfR7EOmn +byGkNMMPY/FoH894BpB4l7gIlNXH3pxBqukrEwnmVXSfak2PAkeLFO+bgCc6baIZ ++R4iOLn/AkEA2++dIndbY7nmGs7Q//sM7MkFMiFQ4h1nN38V9AEHaUonxlwo+Nks +PTAaVd78YIh6yBlfexm0Fxi1mEVQApqZCQJAFUPqyJglhGJqwuJxcMy8K1l6yWla +isV9q2/W+J3aViiTI63OBs7HHg4gTQd1DSK0BYdSJPp55LLBqRvZdDWN/wJBAMQa +M46exAL4p55xl9MWwyCB4LshD6B9vSGzlBx7qmMMNsjcNcAkzBhGwsScTYW5S1kN +nqABfB037/s0mjGoLRkCQF18j4MovyFaj8VAqY8YUmf86Ez9JmL9kHNA8yEoSjuI +xsRa6y5Nza5y83Mojt4W+PfS386riJ7txqrPdezyag4= +-----END RSA PRIVATE KEY----- diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..ef23051 --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,347 @@ +'use strict'; + +const pkg = require('./package.json'); +const gulp = require('gulp'); + +const uglifyEs = require('gulp-uglify-es').default; +const cleanCSS = require('gulp-clean-css'); +const concat = require('gulp-concat'); +const rename = require('gulp-rename'); +const replace = require('gulp-replace'); +const header = require('gulp-header'); +const babel = require('gulp-babel'); +const del = require('del'); +const minimist = require('minimist'); +const gulpHtmlmin = require('gulp-htmlmin'); +const gzip = require('gulp-gzip'); + +// 文件版本 +const fileVersion = new Date().getTime(); + + +// 基础配置 +const config = { + //注释 + comment: [ +`/** + File: TL-RTC-APP-SDK-V<%= pkg.version %> + Licensed: <%= pkg.license %> + Repository: <%= pkg.repository.url %> + Author: <%= pkg.author %> + Build: <%= new Date().toLocaleString() %> +*/ +` + , { pkg: pkg, js: '' } + ] +}; + +// 获取参数 +const argv = minimist(process.argv.slice(2), { + default: { + version: pkg.version + } +}); + +// 输出目录 +const dest = ({ + dist: './dist' +}[argv.dest || 'dist'] || argv.dest) + (argv.vs ? '/' + pkg.version : ''); + + +// lib-entry-sdk.min.js +const entry_js = () => { + return gulp.src([ + './web-v2-res/js/tl_rtc_entry.js', + ]) + .pipe(babel()) + .pipe(uglifyEs({ + mangle: true, + compress: true, + output: { + ascii_only: true + }, + })) + .pipe(replace(' ', '')) + .pipe(replace('\n', '')) + .pipe(replace( + 'lib-basic-sdk.min.js', 'lib-basic-sdk.min.' + fileVersion + '.js' + )) + .pipe(replace( + 'lib-component-sdk.min.js', 'lib-component-sdk.min.' + fileVersion + '.js' + )) + .pipe(replace( + 'lib-module-sdk.min.js', 'lib-module-sdk.min.' + fileVersion + '.js' + )) + .pipe(concat('lib-entry-sdk.min.' + fileVersion + '.js', { newLine: ' ' })) + .pipe(header.apply(null, config.comment)) + .pipe(gulp.dest(dest)) + .pipe(gzip({ + append: true, + gzipOptions: { + level: 9, + memLevel: 9 + } + })) + .pipe(gulp.dest(dest)); +}; + + +// lib-basic-sdk.min.js +const basic_js = () => { + return gulp.src([ + './web-v2-res/js/basic/*.js', + ]) + .pipe(babel()) + .pipe(uglifyEs({ + mangle: true, + compress: true, + output: { + ascii_only: true + }, + })) + .pipe(replace(' ', '')) + .pipe(replace('\n', '')) + .pipe(concat('lib-basic-sdk.min.' + fileVersion + '.js', { newLine: ';' })) + .pipe(header.apply(null, config.comment)) + .pipe(gulp.dest(dest)) + .pipe(gzip({ + append: true, + gzipOptions: { + level: 9, + memLevel: 9 + } + })) + .pipe(gulp.dest(dest)); +}; + + +// lib-component-sdk.min.js +const component_js = () => { + return gulp.src([ + './web-v2-res/js/component/*.js', + ]) + .pipe(babel()) + .pipe(uglifyEs({ + mangle: true, + compress: true, + output: { + ascii_only: true + }, + })) + .pipe(replace(' ', '')) + .pipe(replace('\n', '')) + .pipe(concat('lib-component-sdk.min.' + fileVersion + '.js', { newLine: ' ' })) + .pipe(header.apply(null, config.comment)) + .pipe(gulp.dest(dest)) + .pipe(gzip({ + append: true, + gzipOptions: { + level: 9, + memLevel: 9 + } + })) + .pipe(gulp.dest(dest)); +}; + +// lib-module-sdk.min.js +const module_js = () => { + return gulp.src([ + // sidebar模块 + './web-v2-res/js/module/sidebar/logo.js', + './web-v2-res/js/module/sidebar/tool.js', + './web-v2-res/js/module/sidebar/bottom.js', + './web-v2-res/js/module/sidebar/sidebar.js', + + // channel模块 + './web-v2-res/js/module/channel/top.js', + './web-v2-res/js/module/channel/list.js', + './web-v2-res/js/module/channel/channel.js', + // channel-content模块 + './web-v2-res/js/module/channel/content/body.js', + './web-v2-res/js/module/channel/content/more.js', + './web-v2-res/js/module/channel/content/invite.js', + './web-v2-res/js/module/channel/content/tool.js', + './web-v2-res/js/module/channel/content/textarea.js', + './web-v2-res/js/module/channel/content.js', + + // login模块 + './web-v2-res/js/module/login/mobile.js', + './web-v2-res/js/module/login/list.js', + './web-v2-res/js/module/login/login.js', + // login-content模块 + './web-v2-res/js/module/login/content/mobile.js', + './web-v2-res/js/module/login/content/account.js', + './web-v2-res/js/module/login/content/email.js', + './web-v2-res/js/module/login/content.js', + + // contact模块 + './web-v2-res/js/module/contact/list.js', + './web-v2-res/js/module/contact/top.js', + './web-v2-res/js/module/contact/contact.js', + // contact-content模块 + './web-v2-res/js/module/contact/content/group.js', + './web-v2-res/js/module/contact/content/apply.js', + './web-v2-res/js/module/contact/content/friend.js', + './web-v2-res/js/module/contact/content/search.js', + './web-v2-res/js/module/contact/content.js', + + //setting模块 + './web-v2-res/js/module/setting/list.js', + './web-v2-res/js/module/setting/setting.js', + //setting-content模块 + './web-v2-res/js/module/setting/content/account.js', + './web-v2-res/js/module/setting/content/other.js', + './web-v2-res/js/module/setting/content.js', + + //blank模块 + './web-v2-res/js/module/blank/content.js', + + //主模块 + './web-v2-res/js/tl_rtc_app.js', + ]) + .pipe(babel()) + .pipe(uglifyEs({ + mangle: true, + compress: true, + output: { + ascii_only: true + }, + })) + .pipe(replace(' ', '')) + .pipe(replace('\n', '')) + .pipe(concat('lib-module-sdk.min.' + fileVersion + '.js', { newLine: ' ' })) + .pipe(header.apply(null, config.comment)) + .pipe(gulp.dest(dest)) + .pipe(gzip({ + append: true, + gzipOptions: { + level: 9, + memLevel: 9 + } + })) + .pipe(gulp.dest(dest)); +}; + + +// js +const js = gulp.parallel( + basic_js, entry_js, component_js, module_js +); + +// css +const css = () => { + return gulp.src([ + './web-v2-res/css/comm.css', + './web-v2-res/css/pc.css', + './web-v2-res/css/ipad.css', + './web-v2-res/css/mobile.css', + './web-v2-res/css/max.css', + './web-v2-res/css/max-mobile.css', + ]) + .pipe(cleanCSS()) + .pipe(concat('lib-css-sdk.min.' + fileVersion + '.css', { newLine: '\n' })) + .pipe(header.apply(null, config.comment)) + .pipe(gulp.dest(dest)) + .pipe(gzip({ + append: true, + gzipOptions: { + level: 9, + memLevel: 9 + } + })) + .pipe(gulp.dest(dest)); +}; + + +// html +const html = () => { + return gulp.src([ + './web-v2-res/*.{html,json}', + ]) + .pipe(replace( + 'lib-entry-sdk.min.js', 'lib-entry-sdk.min.' + fileVersion + '.js' + )) + .pipe(replace( + 'lib-basic-sdk.min.js', 'lib-basic-sdk.min.' + fileVersion + '.js' + )) + .pipe(replace( + 'lib-component-sdk.min.js', 'lib-component-sdk.min.' + fileVersion + '.js' + )) + .pipe(replace( + 'lib-module-sdk.min.js', 'lib-module-sdk.min.' + fileVersion + '.js' + )) + .pipe(replace( + 'lib-css-sdk.min.css', 'lib-css-sdk.min.' + fileVersion + '.css' + )) + .pipe(gulpHtmlmin({ + collapseWhitespace: true, + removeComments: true, + })) + .pipe(gulp.dest(dest)) + .pipe(gzip({ + append: true, + gzipOptions: { + level: 9, + memLevel: 9 + } + })) + .pipe(gulp.dest(dest)); +}; + +// image +const image = () => { + return gulp.src([ + './web-v2-res/image/*.{eot,svg,ttf,woff,woff2,png,jpg,gif,jpeg,mp3}', + './web-v2-res/image/example/*.{eot,svg,ttf,woff,woff2,png,jpg,gif,jpeg,mp3}', + ]) + .pipe(gulp.dest(dest + '/image')) + .pipe(gzip({ + append: true, + gzipOptions: { + level: 9, + memLevel: 9 + } + })) + .pipe(gulp.dest(dest + '/image')); +}; + +// statics +const statics = () => { + return gulp.src([ + './web-v2-res/static/**/*.*', + ]) + .pipe(gulp.dest(dest + '/static')) + .pipe(gzip({ + append: true, + gzipOptions: { + level: 9, + memLevel: 9 + } + })) + .pipe(gulp.dest(dest + '/static')); +}; + +// clean +const clean = cb => { + return del([dest], { + force: true + }); +}; + +const defaultTask = gulp.series(clean, gulp.parallel( + basic_js, entry_js, component_js, module_js, css, html, image, statics +)); + + +// task +exports.default = gulp.series(clean, gulp.parallel( + js, css, html, image, statics +)); + +exports.watch = () => { + gulp.watch('./web-v2-res/js/**', defaultTask); + gulp.watch('./web-v2-res/css/**', defaultTask); + gulp.watch('./web-v2-res/image/**', defaultTask); + gulp.watch('./web-v2-res/static/**', defaultTask); + gulp.watch('./web-v2-res/*.{eot,svg,ttf,woff,woff2,html,json,png,jpg,gif,jpeg,mp3}', defaultTask); +}; \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..9bbd45a --- /dev/null +++ b/package-lock.json @@ -0,0 +1,12313 @@ +{ + "name": "tl-rtc-app", + "version": "0.0.1", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "tl-rtc-app", + "version": "0.0.1", + "license": "MIT", + "dependencies": { + "@babel/preset-env": "^7.26.0", + "@grpc/grpc-js": "^1.8.0", + "@grpc/proto-loader": "^0.6.0", + "ali-oss": "^6.21.0", + "body-parser": "^1.20.2", + "bull": "^4.16.5", + "concurrently": "^8.2.0", + "cookie-parser": "^1.4.6", + "cos-nodejs-sdk-v5": "^2.14.0", + "cross-env": "^5.2.0", + "del": "^2.2.2", + "dotenv": "^16.3.1", + "express": "^4.17.1", + "glob": "^10.3.1", + "gulp": "^4.0.2", + "gulp-babel": "^8.0.0", + "gulp-clean-css": "^4.3.0", + "gulp-concat": "^2.6.1", + "gulp-footer": "^2.1.0", + "gulp-gzip": "^1.4.2", + "gulp-header": "^2.0.9", + "gulp-htmlmin": "^5.0.1", + "gulp-javascript-obfuscator": "^1.1.6", + "gulp-jshint": "^2.1.0", + "gulp-minify-css": "^1.2.4", + "gulp-rename": "^2.0.0", + "gulp-replace": "^1.1.3", + "gulp-rev": "^11.0.0", + "gulp-rev-all": "^4.0.0", + "gulp-uglify": "^3.0.2", + "gulp-uglify-es": "^3.0.0", + "lru-cache": "^10.0.1", + "minimist": "^1.2.5", + "multer": "^1.4.5-lts.1", + "mysql2": "^2.1.0", + "nodemailer": "^6.9.14", + "nodemailer-smtp-transport": "^2.7.4", + "redis": "^4.6.13", + "request": "^2.88.2", + "rollup-plugin-copy": "^3.4.0", + "sequelize": "^6.1.0", + "sequelize-pool": "^6.0.0", + "socket.io": "^2.3.0", + "socket.io-msgpack-parser": "^3.0.2", + "terser": "^5.18.2", + "uuid": "^9.0.1" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "peer": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.26.2", + "resolved": "https://registry.npmmirror.com/@babel/code-frame/-/code-frame-7.26.2.tgz", + "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", + "dependencies": { + "@babel/helper-validator-identifier": "^7.25.9", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.26.3", + "resolved": "https://registry.npmmirror.com/@babel/compat-data/-/compat-data-7.26.3.tgz", + "integrity": "sha512-nHIxvKPniQXpmQLb0vhY3VaFb3S0YrTAwpOWJZh1wn3oJPjJk9Asva204PsBdmAE8vpzfHudT8DB0scYvy9q0g==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.24.4", + "resolved": "https://registry.npmmirror.com/@babel/core/-/core-7.24.4.tgz", + "integrity": "sha512-MBVlMXP+kkl5394RBLSxxk/iLTeVGuXTV3cIDXavPpMMqnSnt6apKgan/U8O3USWZCWZT/TbgfEpKa4uMgN4Dg==", + "peer": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.24.2", + "@babel/generator": "^7.24.4", + "@babel/helper-compilation-targets": "^7.23.6", + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helpers": "^7.24.4", + "@babel/parser": "^7.24.4", + "@babel/template": "^7.24.0", + "@babel/traverse": "^7.24.1", + "@babel/types": "^7.24.0", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core/node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "peer": true + }, + "node_modules/@babel/core/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "peer": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@babel/core/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "peer": true + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "peer": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.26.3", + "resolved": "https://registry.npmmirror.com/@babel/generator/-/generator-7.26.3.tgz", + "integrity": "sha512-6FF/urZvD0sTeO7k6/B15pMLC4CHUv1426lzr3N01aHJTl046uCAh9LXW/fzeXXjPNCJ6iABW5XaWOsIZB93aQ==", + "dependencies": { + "@babel/parser": "^7.26.3", + "@babel/types": "^7.26.3", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.25.9.tgz", + "integrity": "sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==", + "dependencies": { + "@babel/types": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.9.tgz", + "integrity": "sha512-j9Db8Suy6yV/VHa4qzrj9yZfZxhLWQdVnRlXxmKLYlhWUVB1sB2G5sxuWYXk/whHD9iW76PmNzxZ4UCnTQTVEQ==", + "dependencies": { + "@babel/compat-data": "^7.25.9", + "@babel/helper-validator-option": "^7.25.9", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmmirror.com/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.25.9.tgz", + "integrity": "sha512-UTZQMvt0d/rSz6KI+qdu7GQze5TIajwTS++GUozlw8VBJDEOAqSXwm1WvmYEZwqdqSGQshRocPDqrt4HBZB3fQ==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.25.9", + "@babel/helper-member-expression-to-functions": "^7.25.9", + "@babel/helper-optimise-call-expression": "^7.25.9", + "@babel/helper-replace-supers": "^7.25.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9", + "@babel/traverse": "^7.25.9", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.26.3", + "resolved": "https://registry.npmmirror.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.26.3.tgz", + "integrity": "sha512-G7ZRb40uUgdKOQqPLjfD12ZmGA54PzqDFUv2BKImnC9QIfGhIHKvVML0oN8IUiDq4iRqpq74ABpvOaerfWdong==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.25.9", + "regexpu-core": "^6.2.0", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.6.3", + "resolved": "https://registry.npmmirror.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.3.tgz", + "integrity": "sha512-HK7Bi+Hj6H+VTHA3ZvBis7V/6hu9QuTrnMXNybfUf2iiuU/N97I8VjB+KbhFF8Rld/Lx5MzoCwPCpPjfK+n8Cg==", + "dependencies": { + "@babel/helper-compilation-targets": "^7.22.6", + "@babel/helper-plugin-utils": "^7.22.5", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/helper-define-polyfill-provider/node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmmirror.com/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@babel/helper-define-polyfill-provider/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.25.9.tgz", + "integrity": "sha512-wbfdZ9w5vk0C0oyHqAJbc62+vet5prjj01jjJ8sKn3j9h3MQQlflEdXYvuqRWjHnM12coDEqiC1IRCi0U/EKwQ==", + "dependencies": { + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz", + "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==", + "dependencies": { + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.26.0", + "resolved": "https://registry.npmmirror.com/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz", + "integrity": "sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==", + "dependencies": { + "@babel/helper-module-imports": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9", + "@babel/traverse": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.25.9.tgz", + "integrity": "sha512-FIpuNaz5ow8VyrYcnXQTDRGvV6tTjkNtCK/RYNDXGSLlUD6cBuQTSw43CShGxjvfBTfcUA/r6UhUCbtYqkhcuQ==", + "dependencies": { + "@babel/types": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.9.tgz", + "integrity": "sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.25.9.tgz", + "integrity": "sha512-IZtukuUeBbhgOcaW2s06OXTzVNJR0ybm4W5xC1opWFFJMZbwRj5LCk+ByYH7WdZPZTt8KnFwA8pvjN2yqcPlgw==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.25.9", + "@babel/helper-wrap-function": "^7.25.9", + "@babel/traverse": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/helper-replace-supers/-/helper-replace-supers-7.25.9.tgz", + "integrity": "sha512-IiDqTOTBQy0sWyeXyGSC5TBJpGFXBkRynjBeXsvbhQFKj2viwJC76Epz35YLU1fpe/Am6Vppb7W7zM4fPQzLsQ==", + "dependencies": { + "@babel/helper-member-expression-to-functions": "^7.25.9", + "@babel/helper-optimise-call-expression": "^7.25.9", + "@babel/traverse": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.25.9.tgz", + "integrity": "sha512-K4Du3BFa3gvyhzgPcntrkDgZzQaq6uozzcpGbOO1OEJaI+EJdqWIMTLgFgQf6lrfiDFo5FU+BxKepI9RmZqahA==", + "dependencies": { + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", + "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", + "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz", + "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/helper-wrap-function/-/helper-wrap-function-7.25.9.tgz", + "integrity": "sha512-ETzz9UTjQSTmw39GboatdymDq4XIQbR8ySgVrylRhPOFpsd+JrKHIuF0de7GCWmem+T4uC5z7EZguod7Wj4A4g==", + "dependencies": { + "@babel/template": "^7.25.9", + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.24.4", + "resolved": "https://registry.npmmirror.com/@babel/helpers/-/helpers-7.24.4.tgz", + "integrity": "sha512-FewdlZbSiwaVGlgT1DPANDuCHaDMiOo+D/IDYRFYjHOuv66xMSJ7fQwwODwRNAPkADIO/z1EoF/l2BCWlWABDw==", + "peer": true, + "dependencies": { + "@babel/template": "^7.24.0", + "@babel/traverse": "^7.24.1", + "@babel/types": "^7.24.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.26.3", + "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.26.3.tgz", + "integrity": "sha512-WJ/CvmY8Mea8iDXo6a7RK2wbmJITT5fN3BEkRuFlxVyNx8jOKIIhmC4fSkTcPcf8JyavbBwIe6OpiCOBXt/IcA==", + "dependencies": { + "@babel/types": "^7.26.3" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.25.9.tgz", + "integrity": "sha512-ZkRyVkThtxQ/J6nv3JFYv1RYY+JT5BvU0y3k5bWrmuG4woXypRa4PXmm9RhOwodRkYFWqC0C0cqcJ4OqR7kW+g==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/traverse": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.25.9.tgz", + "integrity": "sha512-MrGRLZxLD/Zjj0gdU15dfs+HH/OXvnw/U4jJD8vpcP2CJQapPEv1IWwjc/qMg7ItBlPwSv1hRBbb7LeuANdcnw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.25.9.tgz", + "integrity": "sha512-2qUwwfAFpJLZqxd02YW9btUCZHl+RFvdDkNfZwaIJrvB8Tesjsk8pEQkTvGwZXLqXUx/2oyY3ySRhm6HOXuCug==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.25.9.tgz", + "integrity": "sha512-6xWgLZTJXwilVjlnV7ospI3xi+sl8lN8rXXbBD6vYn3UYDlGsag8wrZkKcSI8G6KgqKP7vNFaDgeDnfAABq61g==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9", + "@babel/plugin-transform-optional-chaining": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.25.9.tgz", + "integrity": "sha512-aLnMXYPnzwwqhYSCyXfKkIkYgJ8zv9RK+roo9DkTXz38ynIhd9XCbN08s3MGvqL2MYGVUGdRQLL/JqBIeJhJBg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/traverse": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0-placeholder-for-preset-env.2", + "resolved": "https://registry.npmmirror.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", + "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-assertions": { + "version": "7.26.0", + "resolved": "https://registry.npmmirror.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.26.0.tgz", + "integrity": "sha512-QCWT5Hh830hK5EQa7XzuqIkQU9tT/whqbDz7kuaZMHFl1inRRg7JnuAEOQ0Ur0QUl0NufCk1msK2BeY79Aj/eg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.26.0", + "resolved": "https://registry.npmmirror.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.26.0.tgz", + "integrity": "sha512-e2dttdsJ1ZTpi3B9UYGLw41hifAubg19AtCu/2I/F1QNVclOBr1dYpTdmdyZ84Xiz43BS/tCUkMAZNLv12Pi+A==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-unicode-sets-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmmirror.com/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", + "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.25.9.tgz", + "integrity": "sha512-6jmooXYIwn9ca5/RylZADJ+EnSxVUS5sjeJ9UPk6RWRzXCmOJCy6dqItPJFpw2cuCangPK4OYr5uhGKcmrm5Qg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-generator-functions": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.25.9.tgz", + "integrity": "sha512-RXV6QAzTBbhDMO9fWwOmwwTuYaiPbggWQ9INdZqAYeSHyG7FzQ+nOZaUUjNwKv9pV3aE4WFqFm1Hnbci5tBCAw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-remap-async-to-generator": "^7.25.9", + "@babel/traverse": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.25.9.tgz", + "integrity": "sha512-NT7Ejn7Z/LjUH0Gv5KsBCxh7BH3fbLTV0ptHvpeMvrt3cPThHfJfst9Wrb7S8EvJ7vRTFI7z+VAvFVEQn/m5zQ==", + "dependencies": { + "@babel/helper-module-imports": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-remap-async-to-generator": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.25.9.tgz", + "integrity": "sha512-toHc9fzab0ZfenFpsyYinOX0J/5dgJVA2fm64xPewu7CoYHWEivIWKxkK2rMi4r3yQqLnVmheMXRdG+k239CgA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.25.9.tgz", + "integrity": "sha512-1F05O7AYjymAtqbsFETboN1NvBdcnzMerO+zlMyJBEz6WkMdejvGWw9p05iTSjC85RLlBseHHQpYaM4gzJkBGg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-properties": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.25.9.tgz", + "integrity": "sha512-bbMAII8GRSkcd0h0b4X+36GksxuheLFjP65ul9w6C3KgAamI3JqErNgSrosX6ZPj+Mpim5VvEbawXxJCyEUV3Q==", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-static-block": { + "version": "7.26.0", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.26.0.tgz", + "integrity": "sha512-6J2APTs7BDDm+UMqP1useWqhcRAXo0WIoVj26N7kPFB6S73Lgvyka4KTZYIxtgYXiN5HTyRObA72N2iu628iTQ==", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" + } + }, + "node_modules/@babel/plugin-transform-classes": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.9.tgz", + "integrity": "sha512-mD8APIXmseE7oZvZgGABDyM34GUmK45Um2TXiBUt7PnuAxrgoSVf123qUzPxEr/+/BHrRn5NMZCdE2m/1F8DGg==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.25.9", + "@babel/helper-compilation-targets": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-replace-supers": "^7.25.9", + "@babel/traverse": "^7.25.9", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.25.9.tgz", + "integrity": "sha512-HnBegGqXZR12xbcTHlJ9HGxw1OniltT26J5YpfruGqtUHlz/xKf/G2ak9e+t0rVqrjXa9WOhvYPz1ERfMj23AA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/template": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.25.9.tgz", + "integrity": "sha512-WkCGb/3ZxXepmMiX101nnGiU+1CAdut8oHyEOHxkKuS1qKpU2SMXE2uSvfz8PBuLd49V6LEsbtyPhWC7fnkgvQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.25.9.tgz", + "integrity": "sha512-t7ZQ7g5trIgSRYhI9pIJtRl64KHotutUJsh4Eze5l7olJv+mRSg4/MmbZ0tv1eeqRbdvo/+trvJD/Oc5DmW2cA==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.25.9.tgz", + "integrity": "sha512-LZxhJ6dvBb/f3x8xwWIuyiAHy56nrRG3PeYTpBkkzkYRRQ6tJLu68lEF5VIqMUZiAV7a8+Tb78nEoMCMcqjXBw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.25.9.tgz", + "integrity": "sha512-0UfuJS0EsXbRvKnwcLjFtJy/Sxc5J5jhLHnFhy7u4zih97Hz6tJkLU+O+FMMrNZrosUPxDi6sYxJ/EA8jDiAog==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-dynamic-import": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.25.9.tgz", + "integrity": "sha512-GCggjexbmSLaFhqsojeugBpeaRIgWNTcgKVq/0qIteFEqY2A+b9QidYadrWlnbWQUrW5fn+mCvf3tr7OeBFTyg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.26.3", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.26.3.tgz", + "integrity": "sha512-7CAHcQ58z2chuXPWblnn1K6rLDnDWieghSOEmqQsrBenH0P9InCUtOJYD89pvngljmZlJcz3fcmgYsXFNGa1ZQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-export-namespace-from": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.25.9.tgz", + "integrity": "sha512-2NsEz+CxzJIVOPx2o9UsW1rXLqtChtLoVnwYHHiB04wS5sgn7mrV45fWMBX0Kk+ub9uXytVYfNP2HjbVbCB3Ww==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.25.9.tgz", + "integrity": "sha512-LqHxduHoaGELJl2uhImHwRQudhCM50pT46rIBNvtT/Oql3nqiS3wOwP+5ten7NpYSXrrVLgtZU3DZmPtWZo16A==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.9.tgz", + "integrity": "sha512-8lP+Yxjv14Vc5MuWBpJsoUCd3hD6V9DgBon2FVYL4jJgbnVQ9fTgYmonchzZJOVNgzEgbxp4OwAf6xz6M/14XA==", + "dependencies": { + "@babel/helper-compilation-targets": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/traverse": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-json-strings": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.25.9.tgz", + "integrity": "sha512-xoTMk0WXceiiIvsaquQQUaLLXSW1KJ159KP87VilruQm0LNNGxWzahxSS6T6i4Zg3ezp4vA4zuwiNUR53qmQAw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-literals": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.9.tgz", + "integrity": "sha512-9N7+2lFziW8W9pBl2TzaNht3+pgMIRP74zizeCSrtnSKVdUl8mAjjOP2OOVQAfZ881P2cNjDj1uAMEdeD50nuQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-logical-assignment-operators": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.25.9.tgz", + "integrity": "sha512-wI4wRAzGko551Y8eVf6iOY9EouIDTtPb0ByZx+ktDGHwv6bHFimrgJM/2T021txPZ2s4c7bqvHbd+vXG6K948Q==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.25.9.tgz", + "integrity": "sha512-PYazBVfofCQkkMzh2P6IdIUaCEWni3iYEerAsRWuVd8+jlM1S9S9cz1dF9hIzyoZ8IA3+OwVYIp9v9e+GbgZhA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.25.9.tgz", + "integrity": "sha512-g5T11tnI36jVClQlMlt4qKDLlWnG5pP9CSM4GhdRciTNMRgkfpo5cR6b4rGIOYPgRRuFAvwjPQ/Yk+ql4dyhbw==", + "dependencies": { + "@babel/helper-module-transforms": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.26.3", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.26.3.tgz", + "integrity": "sha512-MgR55l4q9KddUDITEzEFYn5ZsGDXMSsU9E+kh7fjRXTIC3RHqfCo8RPRbyReYJh44HQ/yomFkqbOFohXvDCiIQ==", + "dependencies": { + "@babel/helper-module-transforms": "^7.26.0", + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.25.9.tgz", + "integrity": "sha512-hyss7iIlH/zLHaehT+xwiymtPOpsiwIIRlCAOwBB04ta5Tt+lNItADdlXw3jAWZ96VJ2jlhl/c+PNIQPKNfvcA==", + "dependencies": { + "@babel/helper-module-transforms": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9", + "@babel/traverse": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.25.9.tgz", + "integrity": "sha512-bS9MVObUgE7ww36HEfwe6g9WakQ0KF07mQF74uuXdkoziUPfKyu/nIm663kz//e5O1nPInPFx36z7WJmJ4yNEw==", + "dependencies": { + "@babel/helper-module-transforms": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.25.9.tgz", + "integrity": "sha512-oqB6WHdKTGl3q/ItQhpLSnWWOpjUJLsOCLVyeFgeTktkBSCiurvPOsyt93gibI9CmuKvTUEtWmG5VhZD+5T/KA==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.25.9.tgz", + "integrity": "sha512-U/3p8X1yCSoKyUj2eOBIx3FOn6pElFOKvAAGf8HTtItuPyB+ZeOqfn+mvTtg9ZlOAjsPdK3ayQEjqHjU/yLeVQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.25.9.tgz", + "integrity": "sha512-ENfftpLZw5EItALAD4WsY/KUWvhUlZndm5GC7G3evUsVeSJB6p0pBeLQUnRnBCBx7zV0RKQjR9kCuwrsIrjWog==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-numeric-separator": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.25.9.tgz", + "integrity": "sha512-TlprrJ1GBZ3r6s96Yq8gEQv82s8/5HnCVHtEJScUj90thHQbwe+E5MLhi2bbNHBEJuzrvltXSru+BUxHDoog7Q==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-rest-spread": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.25.9.tgz", + "integrity": "sha512-fSaXafEE9CVHPweLYw4J0emp1t8zYTXyzN3UuG+lylqkvYd7RMrsOQ8TYx5RF231be0vqtFC6jnx3UmpJmKBYg==", + "dependencies": { + "@babel/helper-compilation-targets": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/plugin-transform-parameters": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.25.9.tgz", + "integrity": "sha512-Kj/Gh+Rw2RNLbCK1VAWj2U48yxxqL2x0k10nPtSdRa0O2xnHXalD0s+o1A6a0W43gJ00ANo38jxkQreckOzv5A==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-replace-supers": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-catch-binding": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.25.9.tgz", + "integrity": "sha512-qM/6m6hQZzDcZF3onzIhZeDHDO43bkNNlOX0i8n3lR6zLbu0GN2d8qfM/IERJZYauhAHSLHy39NF0Ctdvcid7g==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.25.9.tgz", + "integrity": "sha512-6AvV0FsLULbpnXeBjrY4dmWF8F7gf8QnvTEoO/wX/5xm/xE1Xo8oPuD3MPS+KS9f9XBEAWN7X1aWr4z9HdOr7A==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.25.9.tgz", + "integrity": "sha512-wzz6MKwpnshBAiRmn4jR8LYz/g8Ksg0o80XmwZDlordjwEk9SxBzTWC7F5ef1jhbrbOW2DJ5J6ayRukrJmnr0g==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-methods": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.25.9.tgz", + "integrity": "sha512-D/JUozNpQLAPUVusvqMxyvjzllRaF8/nSrP1s2YGQT/W4LHK4xxsMcHjhOGTS01mp9Hda8nswb+FblLdJornQw==", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-property-in-object": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.25.9.tgz", + "integrity": "sha512-Evf3kcMqzXA3xfYJmZ9Pg1OvKdtqsDMSWBDzZOPLvHiTt36E75jLDQo5w1gtRU95Q4E5PDttrTf25Fw8d/uWLw==", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.25.9", + "@babel/helper-create-class-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.25.9.tgz", + "integrity": "sha512-IvIUeV5KrS/VPavfSM/Iu+RE6llrHrYIKY1yfCzyO/lMXHQ+p7uGhonmGVisv6tSBSVgWzMBohTcvkC9vQcQFA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.25.9.tgz", + "integrity": "sha512-vwDcDNsgMPDGP0nMqzahDWE5/MLcX8sv96+wfX7as7LoF/kr97Bo/7fI00lXY4wUXYfVmwIIyG80fGZ1uvt2qg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9", + "regenerator-transform": "^0.15.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regexp-modifiers": { + "version": "7.26.0", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-regexp-modifiers/-/plugin-transform-regexp-modifiers-7.26.0.tgz", + "integrity": "sha512-vN6saax7lrA2yA/Pak3sCxuD6F5InBjn9IcrIKQPjpsLvuHYLVroTxjdlVRHjjBWxKOqIwpTXDkOssYT4BFdRw==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.25.9.tgz", + "integrity": "sha512-7DL7DKYjn5Su++4RXu8puKZm2XBPHyjWLUidaPEkCUBbE7IPcsrkRHggAOOKydH1dASWdcUBxrkOGNxUv5P3Jg==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.25.9.tgz", + "integrity": "sha512-MUv6t0FhO5qHnS/W8XCbHmiRWOphNufpE1IVxhK5kuN3Td9FT1x4rx4K42s3RYdMXCXpfWkGSbCSd0Z64xA7Ng==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.25.9.tgz", + "integrity": "sha512-oNknIB0TbURU5pqJFVbOOFspVlrpVwo2H1+HUIsVDvp5VauGGDP1ZEvO8Nn5xyMEs3dakajOxlmkNW7kNgSm6A==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.25.9.tgz", + "integrity": "sha512-WqBUSgeVwucYDP9U/xNRQam7xV8W5Zf+6Eo7T2SRVUFlhRiMNFdFz58u0KZmCVVqs2i7SHgpRnAhzRNmKfi2uA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.25.9.tgz", + "integrity": "sha512-o97AE4syN71M/lxrCtQByzphAdlYluKPDBzDVzMmfCobUjjhAryZV0AIpRPrxN0eAkxXO6ZLEScmt+PNhj2OTw==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.25.9.tgz", + "integrity": "sha512-v61XqUMiueJROUv66BVIOi0Fv/CUuZuZMl5NkRoCVxLAnMexZ0A3kMe7vvZ0nulxMuMp0Mk6S5hNh48yki08ZA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.25.9.tgz", + "integrity": "sha512-s5EDrE6bW97LtxOcGj1Khcx5AaXwiMmi4toFWRDP9/y0Woo6pXC+iyPu/KuhKtfSrNFd7jJB+/fkOtZy6aIC6Q==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-property-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.25.9.tgz", + "integrity": "sha512-Jt2d8Ga+QwRluxRQ307Vlxa6dMrYEMZCgGxoPR8V52rxPyldHu3hdlHspxaqYmE7oID5+kB+UKUB/eWS+DkkWg==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.25.9.tgz", + "integrity": "sha512-yoxstj7Rg9dlNn9UQxzk4fcNivwv4nUYz7fYXBaKxvw/lnmPuOm/ikoELygbYq68Bls3D/D+NBPHiLwZdZZ4HA==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-sets-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.25.9.tgz", + "integrity": "sha512-8BYqO3GeVNHtx69fdPshN3fnzUNLrWdHhk/icSwigksJGczKSizZ+Z6SBCxTs723Fr5VSNorTIK7a+R2tISvwQ==", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/preset-env": { + "version": "7.26.0", + "resolved": "https://registry.npmmirror.com/@babel/preset-env/-/preset-env-7.26.0.tgz", + "integrity": "sha512-H84Fxq0CQJNdPFT2DrfnylZ3cf5K43rGfWK4LJGPpjKHiZlk0/RzwEus3PDDZZg+/Er7lCA03MVacueUuXdzfw==", + "dependencies": { + "@babel/compat-data": "^7.26.0", + "@babel/helper-compilation-targets": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-validator-option": "^7.25.9", + "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.25.9", + "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.25.9", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.25.9", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.25.9", + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.25.9", + "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", + "@babel/plugin-syntax-import-assertions": "^7.26.0", + "@babel/plugin-syntax-import-attributes": "^7.26.0", + "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", + "@babel/plugin-transform-arrow-functions": "^7.25.9", + "@babel/plugin-transform-async-generator-functions": "^7.25.9", + "@babel/plugin-transform-async-to-generator": "^7.25.9", + "@babel/plugin-transform-block-scoped-functions": "^7.25.9", + "@babel/plugin-transform-block-scoping": "^7.25.9", + "@babel/plugin-transform-class-properties": "^7.25.9", + "@babel/plugin-transform-class-static-block": "^7.26.0", + "@babel/plugin-transform-classes": "^7.25.9", + "@babel/plugin-transform-computed-properties": "^7.25.9", + "@babel/plugin-transform-destructuring": "^7.25.9", + "@babel/plugin-transform-dotall-regex": "^7.25.9", + "@babel/plugin-transform-duplicate-keys": "^7.25.9", + "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.25.9", + "@babel/plugin-transform-dynamic-import": "^7.25.9", + "@babel/plugin-transform-exponentiation-operator": "^7.25.9", + "@babel/plugin-transform-export-namespace-from": "^7.25.9", + "@babel/plugin-transform-for-of": "^7.25.9", + "@babel/plugin-transform-function-name": "^7.25.9", + "@babel/plugin-transform-json-strings": "^7.25.9", + "@babel/plugin-transform-literals": "^7.25.9", + "@babel/plugin-transform-logical-assignment-operators": "^7.25.9", + "@babel/plugin-transform-member-expression-literals": "^7.25.9", + "@babel/plugin-transform-modules-amd": "^7.25.9", + "@babel/plugin-transform-modules-commonjs": "^7.25.9", + "@babel/plugin-transform-modules-systemjs": "^7.25.9", + "@babel/plugin-transform-modules-umd": "^7.25.9", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.25.9", + "@babel/plugin-transform-new-target": "^7.25.9", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.25.9", + "@babel/plugin-transform-numeric-separator": "^7.25.9", + "@babel/plugin-transform-object-rest-spread": "^7.25.9", + "@babel/plugin-transform-object-super": "^7.25.9", + "@babel/plugin-transform-optional-catch-binding": "^7.25.9", + "@babel/plugin-transform-optional-chaining": "^7.25.9", + "@babel/plugin-transform-parameters": "^7.25.9", + "@babel/plugin-transform-private-methods": "^7.25.9", + "@babel/plugin-transform-private-property-in-object": "^7.25.9", + "@babel/plugin-transform-property-literals": "^7.25.9", + "@babel/plugin-transform-regenerator": "^7.25.9", + "@babel/plugin-transform-regexp-modifiers": "^7.26.0", + "@babel/plugin-transform-reserved-words": "^7.25.9", + "@babel/plugin-transform-shorthand-properties": "^7.25.9", + "@babel/plugin-transform-spread": "^7.25.9", + "@babel/plugin-transform-sticky-regex": "^7.25.9", + "@babel/plugin-transform-template-literals": "^7.25.9", + "@babel/plugin-transform-typeof-symbol": "^7.25.9", + "@babel/plugin-transform-unicode-escapes": "^7.25.9", + "@babel/plugin-transform-unicode-property-regex": "^7.25.9", + "@babel/plugin-transform-unicode-regex": "^7.25.9", + "@babel/plugin-transform-unicode-sets-regex": "^7.25.9", + "@babel/preset-modules": "0.1.6-no-external-plugins", + "babel-plugin-polyfill-corejs2": "^0.4.10", + "babel-plugin-polyfill-corejs3": "^0.10.6", + "babel-plugin-polyfill-regenerator": "^0.6.1", + "core-js-compat": "^3.38.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-env/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/preset-modules": { + "version": "0.1.6-no-external-plugins", + "resolved": "https://registry.npmmirror.com/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", + "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.23.8", + "resolved": "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.23.8.tgz", + "integrity": "sha512-Y7KbAP984rn1VGMbGqKmBLio9V7y5Je9GvU4rQPCPinCyNfUcToxIXl06d59URp/F3LwinvODxab5N/G6qggkw==", + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.25.9", + "resolved": "https://registry.npmmirror.com/@babel/template/-/template-7.25.9.tgz", + "integrity": "sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==", + "dependencies": { + "@babel/code-frame": "^7.25.9", + "@babel/parser": "^7.25.9", + "@babel/types": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.26.4", + "resolved": "https://registry.npmmirror.com/@babel/traverse/-/traverse-7.26.4.tgz", + "integrity": "sha512-fH+b7Y4p3yqvApJALCPJcwb0/XaOSgtK4pzV6WVjPR5GLFQBRI7pfoX2V2iM48NXvX07NUxxm1Vw98YjqTcU5w==", + "dependencies": { + "@babel/code-frame": "^7.26.2", + "@babel/generator": "^7.26.3", + "@babel/parser": "^7.26.3", + "@babel/template": "^7.25.9", + "@babel/types": "^7.26.3", + "debug": "^4.3.1", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@babel/traverse/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/@babel/types": { + "version": "7.26.3", + "resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.26.3.tgz", + "integrity": "sha512-vN5p+1kl59GVKMvTHt55NzzmYVxprfJD+ql7U9NFIfKCBkYE55LYtS+WtPlaYOyzydrKI8Nezd+aZextrd+FMA==", + "dependencies": { + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@grpc/grpc-js": { + "version": "1.9.13", + "resolved": "https://registry.npmmirror.com/@grpc/grpc-js/-/grpc-js-1.9.13.tgz", + "integrity": "sha512-OEZZu9v9AA+7/tghMDE8o5DAMD5THVnwSqDWuh7PPYO5287rTyqy0xEHT6/e4pbqSrhyLPdQFsam4TwFQVVIIw==", + "dependencies": { + "@grpc/proto-loader": "^0.7.8", + "@types/node": ">=12.12.47" + }, + "engines": { + "node": "^8.13.0 || >=10.10.0" + } + }, + "node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader": { + "version": "0.7.10", + "resolved": "https://registry.npmmirror.com/@grpc/proto-loader/-/proto-loader-0.7.10.tgz", + "integrity": "sha512-CAqDfoaQ8ykFd9zqBDn4k6iWT9loLAlc2ETmDFS9JCD70gDcnA4L3AFEo2iV7KyAtAAHFW9ftq1Fz+Vsgq80RQ==", + "dependencies": { + "lodash.camelcase": "^4.3.0", + "long": "^5.0.0", + "protobufjs": "^7.2.4", + "yargs": "^17.7.2" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@grpc/grpc-js/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@grpc/grpc-js/node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmmirror.com/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@grpc/grpc-js/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/@grpc/grpc-js/node_modules/long": { + "version": "5.2.3", + "resolved": "https://registry.npmmirror.com/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" + }, + "node_modules/@grpc/grpc-js/node_modules/protobufjs": { + "version": "7.2.5", + "resolved": "https://registry.npmmirror.com/protobufjs/-/protobufjs-7.2.5.tgz", + "integrity": "sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==", + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@grpc/grpc-js/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@grpc/grpc-js/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@grpc/grpc-js/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@grpc/grpc-js/node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmmirror.com/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@grpc/grpc-js/node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "engines": { + "node": ">=12" + } + }, + "node_modules/@grpc/proto-loader": { + "version": "0.6.13", + "resolved": "https://registry.npmmirror.com/@grpc/proto-loader/-/proto-loader-0.6.13.tgz", + "integrity": "sha512-FjxPYDRTn6Ec3V0arm1FtSpmP6V50wuph2yILpyvTKzjc76oDdoihXqM1DzOW5ubvCC8GivfCnNtfaRE8myJ7g==", + "dependencies": { + "@types/long": "^4.0.1", + "lodash.camelcase": "^4.3.0", + "long": "^4.0.0", + "protobufjs": "^6.11.3", + "yargs": "^16.2.0" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@ioredis/commands": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/@ioredis/commands/-/commands-1.2.0.tgz", + "integrity": "sha512-Sx1pU8EM64o2BrqNpEO1CNLtKQwyhuXuqyfH7oGKCk+1a33d2r5saW8zNwm3j6BTExtjrv2BxTgzzkMwts6vGg==" + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmmirror.com/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@javascript-obfuscator/escodegen": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/@javascript-obfuscator/escodegen/-/escodegen-2.3.0.tgz", + "integrity": "sha512-QVXwMIKqYMl3KwtTirYIA6gOCiJ0ZDtptXqAv/8KWLG9uQU2fZqTVy7a/A5RvcoZhbDoFfveTxuGxJ5ibzQtkw==", + "dependencies": { + "@javascript-obfuscator/estraverse": "^5.3.0", + "esprima": "^4.0.1", + "esutils": "^2.0.2", + "optionator": "^0.8.1" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/@javascript-obfuscator/estraverse": { + "version": "5.4.0", + "resolved": "https://registry.npmmirror.com/@javascript-obfuscator/estraverse/-/estraverse-5.4.0.tgz", + "integrity": "sha512-CZFX7UZVN9VopGbjTx4UXaXsi9ewoM1buL0kY7j1ftYdSs7p2spv9opxFjHlQ/QGTgh4UqufYqJJ0WKLml7b6w==", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.5", + "resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.1", + "resolved": "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", + "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.5", + "resolved": "https://registry.npmmirror.com/@jridgewell/source-map/-/source-map-0.3.5.tgz", + "integrity": "sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@msgpackr-extract/msgpackr-extract-darwin-arm64": { + "version": "3.0.3", + "resolved": "https://registry.npmmirror.com/@msgpackr-extract/msgpackr-extract-darwin-arm64/-/msgpackr-extract-darwin-arm64-3.0.3.tgz", + "integrity": "sha512-QZHtlVgbAdy2zAqNA9Gu1UpIuI8Xvsd1v8ic6B2pZmeFnFcMWiPLfWXh7TVw4eGEZ/C9TH281KwhVoeQUKbyjw==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-darwin-x64": { + "version": "3.0.3", + "resolved": "https://registry.npmmirror.com/@msgpackr-extract/msgpackr-extract-darwin-x64/-/msgpackr-extract-darwin-x64-3.0.3.tgz", + "integrity": "sha512-mdzd3AVzYKuUmiWOQ8GNhl64/IoFGol569zNRdkLReh6LRLHOXxU4U8eq0JwaD8iFHdVGqSy4IjFL4reoWCDFw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-linux-arm": { + "version": "3.0.3", + "resolved": "https://registry.npmmirror.com/@msgpackr-extract/msgpackr-extract-linux-arm/-/msgpackr-extract-linux-arm-3.0.3.tgz", + "integrity": "sha512-fg0uy/dG/nZEXfYilKoRe7yALaNmHoYeIoJuJ7KJ+YyU2bvY8vPv27f7UKhGRpY6euFYqEVhxCFZgAUNQBM3nw==", + "cpu": [ + "arm" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-linux-arm64": { + "version": "3.0.3", + "resolved": "https://registry.npmmirror.com/@msgpackr-extract/msgpackr-extract-linux-arm64/-/msgpackr-extract-linux-arm64-3.0.3.tgz", + "integrity": "sha512-YxQL+ax0XqBJDZiKimS2XQaf+2wDGVa1enVRGzEvLLVFeqa5kx2bWbtcSXgsxjQB7nRqqIGFIcLteF/sHeVtQg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-linux-x64": { + "version": "3.0.3", + "resolved": "https://registry.npmmirror.com/@msgpackr-extract/msgpackr-extract-linux-x64/-/msgpackr-extract-linux-x64-3.0.3.tgz", + "integrity": "sha512-cvwNfbP07pKUfq1uH+S6KJ7dT9K8WOE4ZiAcsrSes+UY55E/0jLYc+vq+DO7jlmqRb5zAggExKm0H7O/CBaesg==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@msgpackr-extract/msgpackr-extract-win32-x64": { + "version": "3.0.3", + "resolved": "https://registry.npmmirror.com/@msgpackr-extract/msgpackr-extract-win32-x64/-/msgpackr-extract-win32-x64-3.0.3.tgz", + "integrity": "sha512-x0fWaQtYp4E6sktbsdAqnehxDgEc/VwM7uLsRCYWaiGu0ykYdZPiS8zCWdnjHwyiumousxfBm4SO31eXqwEZhQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmmirror.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmmirror.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmmirror.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmmirror.com/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" + }, + "node_modules/@redis/bloom": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/@redis/bloom/-/bloom-1.2.0.tgz", + "integrity": "sha512-HG2DFjYKbpNmVXsa0keLHp/3leGJz1mjh09f2RLGGLQZzSHpkmZWuwJbAvo3QcRY8p80m5+ZdXZdYOSBLlp7Cg==", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, + "node_modules/@redis/client": { + "version": "1.5.14", + "resolved": "https://registry.npmmirror.com/@redis/client/-/client-1.5.14.tgz", + "integrity": "sha512-YGn0GqsRBFUQxklhY7v562VMOP0DcmlrHHs3IV1mFE3cbxe31IITUkqhBcIhVSI/2JqtWAJXg5mjV4aU+zD0HA==", + "dependencies": { + "cluster-key-slot": "1.1.2", + "generic-pool": "3.9.0", + "yallist": "4.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@redis/graph": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/@redis/graph/-/graph-1.1.1.tgz", + "integrity": "sha512-FEMTcTHZozZciLRl6GiiIB4zGm5z5F3F6a6FZCyrfxdKOhFlGkiAqlexWMBzCi4DcRoyiOsuLfW+cjlGWyExOw==", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, + "node_modules/@redis/json": { + "version": "1.0.6", + "resolved": "https://registry.npmmirror.com/@redis/json/-/json-1.0.6.tgz", + "integrity": "sha512-rcZO3bfQbm2zPRpqo82XbW8zg4G/w4W3tI7X8Mqleq9goQjAGLL7q/1n1ZX4dXEAmORVZ4s1+uKLaUOg7LrUhw==", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, + "node_modules/@redis/search": { + "version": "1.1.6", + "resolved": "https://registry.npmmirror.com/@redis/search/-/search-1.1.6.tgz", + "integrity": "sha512-mZXCxbTYKBQ3M2lZnEddwEAks0Kc7nauire8q20oA0oA/LoA+E/b5Y5KZn232ztPb1FkIGqo12vh3Lf+Vw5iTw==", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, + "node_modules/@redis/time-series": { + "version": "1.0.5", + "resolved": "https://registry.npmmirror.com/@redis/time-series/-/time-series-1.0.5.tgz", + "integrity": "sha512-IFjIgTusQym2B5IZJG3XKr5llka7ey84fw/NOYqESP5WUfQs9zz1ww/9+qoz4ka/S6KcGBodzlCeZ5UImKbscg==", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, + "node_modules/@types/debug": { + "version": "4.1.12", + "resolved": "https://registry.npmmirror.com/@types/debug/-/debug-4.1.12.tgz", + "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==", + "dependencies": { + "@types/ms": "*" + } + }, + "node_modules/@types/expect": { + "version": "1.20.4", + "resolved": "https://registry.npmmirror.com/@types/expect/-/expect-1.20.4.tgz", + "integrity": "sha512-Q5Vn3yjTDyCMV50TB6VRIbQNxSE4OmZR86VSbGaNpfUolm0iePBB4KdEEHmxoY5sT2+2DIvXW0rvMDP2nHZ4Mg==" + }, + "node_modules/@types/fs-extra": { + "version": "8.1.5", + "resolved": "https://registry.npmmirror.com/@types/fs-extra/-/fs-extra-8.1.5.tgz", + "integrity": "sha512-0dzKcwO+S8s2kuF5Z9oUWatQJj5Uq/iqphEtE3GQJVRRYm/tD1LglU2UnXi2A8jLq5umkGouOXOR9y0n613ZwQ==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/glob": { + "version": "7.2.0", + "resolved": "https://registry.npmmirror.com/@types/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==", + "dependencies": { + "@types/minimatch": "*", + "@types/node": "*" + } + }, + "node_modules/@types/long": { + "version": "4.0.2", + "resolved": "https://registry.npmmirror.com/@types/long/-/long-4.0.2.tgz", + "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" + }, + "node_modules/@types/minimatch": { + "version": "5.1.2", + "resolved": "https://registry.npmmirror.com/@types/minimatch/-/minimatch-5.1.2.tgz", + "integrity": "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==" + }, + "node_modules/@types/ms": { + "version": "0.7.34", + "resolved": "https://registry.npmmirror.com/@types/ms/-/ms-0.7.34.tgz", + "integrity": "sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==" + }, + "node_modules/@types/node": { + "version": "20.11.0", + "resolved": "https://registry.npmmirror.com/@types/node/-/node-20.11.0.tgz", + "integrity": "sha512-o9bjXmDNcF7GbM4CNQpmi+TutCgap/K3w1JyKgxAjqx41zp9qlIAVFi0IhCNsJcXolEqLWhbFbEeL0PvYm4pcQ==", + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/@types/validator": { + "version": "13.11.8", + "resolved": "https://registry.npmmirror.com/@types/validator/-/validator-13.11.8.tgz", + "integrity": "sha512-c/hzNDBh7eRF+KbCf+OoZxKbnkpaK/cKp9iLQWqB7muXtM+MtL9SUUH8vCFcLn6dH1Qm05jiexK0ofWY7TfOhQ==" + }, + "node_modules/@types/vinyl": { + "version": "2.0.11", + "resolved": "https://registry.npmmirror.com/@types/vinyl/-/vinyl-2.0.11.tgz", + "integrity": "sha512-vPXzCLmRp74e9LsP8oltnWKTH+jBwt86WgRUb4Pc9Lf3pkMVGyvIo2gm9bODeGfCay2DBB/hAWDuvf07JcK4rw==", + "dependencies": { + "@types/expect": "^1.20.4", + "@types/node": "*" + } + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmmirror.com/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.11.3", + "resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/address": { + "version": "1.2.2", + "resolved": "https://registry.npmmirror.com/address/-/address-1.2.2.tgz", + "integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/after": { + "version": "0.8.2", + "resolved": "https://registry.npmmirror.com/after/-/after-0.8.2.tgz", + "integrity": "sha512-QbJ0NTQ/I9DI3uSJA4cbexiwQeRAfjPScqIbSjUDd9TOrcg6pTkdgziesOqxBMBzit8vFCTwrP27t13vFOORRA==" + }, + "node_modules/agentkeepalive": { + "version": "3.5.3", + "resolved": "https://registry.npmmirror.com/agentkeepalive/-/agentkeepalive-3.5.3.tgz", + "integrity": "sha512-yqXL+k5rr8+ZRpOAntkaaRgWgE5o8ESAj5DyRmVTCSoZxXmqemb9Dd7T4i5UzwuERdLAJUy6XzR9zFVuf0kzkw==", + "dependencies": { + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "node_modules/ajv-formats": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-1.6.1.tgz", + "integrity": "sha512-4CjkH20If1lhR5CGtqkrVg3bbOtFEG80X9v6jDOIUhbzzbB+UzPBGy8GQhUNVZ0yvMHdMpawCOcy5ydGMsagGQ==", + "dependencies": { + "ajv": "^7.0.0" + }, + "peerDependencies": { + "ajv": "^7.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-formats/node_modules/ajv": { + "version": "7.2.4", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-7.2.4.tgz", + "integrity": "sha512-nBeQgg/ZZA3u3SYxyaDvpvDtgZ/EZPF547ARgZBrG9Bhu1vKDwAIjtIf+sDtJUKa2zOcEbmRLBRSyMraS/Oy1A==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/ali-oss": { + "version": "6.21.0", + "resolved": "https://registry.npmmirror.com/ali-oss/-/ali-oss-6.21.0.tgz", + "integrity": "sha512-dRvKWO/GJEa6dlsCnvmgHIbU5+yE/SmZsE4kZRGNU7Uotr9uIkQWGqv4szLTxRSxWv3YgL+BZgt+swIgitYGjA==", + "dependencies": { + "address": "^1.2.2", + "agentkeepalive": "^3.4.1", + "bowser": "^1.6.0", + "copy-to": "^2.0.1", + "dateformat": "^2.0.0", + "debug": "^4.3.4", + "destroy": "^1.0.4", + "end-or-error": "^1.0.1", + "get-ready": "^1.0.0", + "humanize-ms": "^1.2.0", + "is-type-of": "^1.4.0", + "js-base64": "^2.5.2", + "jstoxml": "^2.0.0", + "lodash": "^4.17.21", + "merge-descriptors": "^1.0.1", + "mime": "^2.4.5", + "platform": "^1.3.1", + "pump": "^3.0.0", + "qs": "^6.4.0", + "sdk-base": "^2.0.1", + "stream-http": "2.8.2", + "stream-wormhole": "^1.0.4", + "urllib": "^2.44.0", + "utility": "^1.18.0", + "xml2js": "^0.6.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ali-oss/node_modules/debug": { + "version": "4.3.7", + "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.7.tgz", + "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/ali-oss/node_modules/mime": { + "version": "2.6.0", + "resolved": "https://registry.npmmirror.com/mime/-/mime-2.6.0.tgz", + "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/ali-oss/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/ali-oss/node_modules/pump": { + "version": "3.0.2", + "resolved": "https://registry.npmmirror.com/pump/-/pump-3.0.2.tgz", + "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/amdefine": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", + "integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==", + "engines": { + "node": ">=0.4.2" + } + }, + "node_modules/ansi-cyan": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/ansi-cyan/-/ansi-cyan-0.1.1.tgz", + "integrity": "sha512-eCjan3AVo/SxZ0/MyIYRtkpxIu/H3xZN7URr1vXVrISxeyz8fUFz0FJziamK4sS8I+t35y4rHg1b2PklyBe/7A==", + "dependencies": { + "ansi-wrap": "0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ansi-gray": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/ansi-gray/-/ansi-gray-0.1.1.tgz", + "integrity": "sha512-HrgGIZUl8h2EHuZaU9hTR/cU5nhKxpVE1V6kdGsQ8e4zirElJ5fvtfc8N7Q1oq1aatO275i8pUFUCpNWCAnVWw==", + "dependencies": { + "ansi-wrap": "0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ansi-red": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/ansi-red/-/ansi-red-0.1.1.tgz", + "integrity": "sha512-ewaIr5y+9CUTGFwZfpECUbFlGcC0GCw1oqR9RI6h1gQCd9Aj2GxSckCnPsVJnmfMZbwFYE+leZGASgkWl06Jow==", + "dependencies": { + "ansi-wrap": "0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "engines": { + "node": ">=12" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-wrap": { + "version": "0.1.0", + "resolved": "https://registry.npmmirror.com/ansi-wrap/-/ansi-wrap-0.1.0.tgz", + "integrity": "sha512-ZyznvL8k/FZeQHr2T6LzcJ/+vBApDnMNZvfVFy3At0knswWd6rJ3/0Hhmpu8oqa6C92npmozs890sX9Dl6q+Qw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==" + }, + "node_modules/append-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/append-buffer/-/append-buffer-1.0.2.tgz", + "integrity": "sha512-WLbYiXzD3y/ATLZFufV/rZvWdZOs+Z/+5v1rBZ463Jn398pa6kcde27cvozYnBoxXblGZTFfoPpsaEw0orU5BA==", + "dependencies": { + "buffer-equal": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/append-field": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz", + "integrity": "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==" + }, + "node_modules/archy": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/archy/-/archy-1.0.0.tgz", + "integrity": "sha512-Xg+9RwCg/0p32teKdGMPTPnVXKD0w3DfHnFTficozsAgsvq2XenPJq/MYpzzQ/v8zrOyJn6Ds39VA4JIDwFfqw==" + }, + "node_modules/arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-filter": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/arr-filter/-/arr-filter-1.1.2.tgz", + "integrity": "sha512-A2BETWCqhsecSvCkWAeVBFLH6sXEUGASuzkpjL3GR1SlL/PWL6M3J8EAAld2Uubmh39tvkJTqC9LeLHCUKmFXA==", + "dependencies": { + "make-iterator": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-map": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/arr-map/-/arr-map-2.0.2.tgz", + "integrity": "sha512-tVqVTHt+Q5Xb09qRkbu+DidW1yYzz5izWS2Xm2yFm7qJnmUfz4HPzNxbHkdRJbz2lrqI7S+z17xNYdFcBBO8Hw==", + "dependencies": { + "make-iterator": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-differ": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/array-differ/-/array-differ-3.0.0.tgz", + "integrity": "sha512-THtfYS6KtME/yIAhKjZ2ul7XI96lQGHRputJQHO80LAWQnuGP4iCIN8vdMRboGbIEYBwU33q8Tch1os2+X0kMg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/array-each": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/array-each/-/array-each-1.0.1.tgz", + "integrity": "sha512-zHjL5SZa68hkKHBFBK6DJCTtr9sfTCPCaph/L7tMSLcTFgy+zX7E+6q5UArbtOtMBCtxdICpfTCspRse+ywyXA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" + }, + "node_modules/array-initial": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/array-initial/-/array-initial-1.1.0.tgz", + "integrity": "sha512-BC4Yl89vneCYfpLrs5JU2aAu9/a+xWbeKhvISg9PT7eWFB9UlRvI+rKEtk6mgxWr3dSkk9gQ8hCrdqt06NXPdw==", + "dependencies": { + "array-slice": "^1.0.0", + "is-number": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-initial/node_modules/is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-last": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/array-last/-/array-last-1.3.0.tgz", + "integrity": "sha512-eOCut5rXlI6aCOS7Z7kCplKRKyiFQ6dHFBem4PwlwKeNFk2/XxTrhRh5T9PyaEWGy/NHTZWbY+nsZlNFJu9rYg==", + "dependencies": { + "is-number": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-last/node_modules/is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-slice": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/array-slice/-/array-slice-1.1.0.tgz", + "integrity": "sha512-B1qMD3RBP7O8o0H2KbrXDyB0IccejMF15+87Lvlor12ONPRHP6gTjXMNkt/d3ZuOGbAe66hFmaCfECI24Ufp6w==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-sort": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/array-sort/-/array-sort-1.0.0.tgz", + "integrity": "sha512-ihLeJkonmdiAsD7vpgN3CRcx2J2S0TiYW+IS/5zHBI7mKUq3ySvBdzzBfD236ubDBQFiiyG3SWCPc+msQ9KoYg==", + "dependencies": { + "default-compare": "^1.0.0", + "get-value": "^2.0.6", + "kind-of": "^5.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/array-uniq": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/array-uniq/-/array-uniq-1.0.3.tgz", + "integrity": "sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmmirror.com/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/arraybuffer.slice": { + "version": "0.0.7", + "resolved": "https://registry.npmmirror.com/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz", + "integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog==" + }, + "node_modules/arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/asn1": { + "version": "0.2.6", + "resolved": "https://registry.npmmirror.com/asn1/-/asn1-0.2.6.tgz", + "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", + "dependencies": { + "safer-buffer": "~2.1.0" + } + }, + "node_modules/assert": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/assert/-/assert-2.0.0.tgz", + "integrity": "sha512-se5Cd+js9dXJnu6Ag2JFc00t+HmHOen+8Q+L7O9zI0PqQXr20uk2J0XQqMxZEeo5U50o8Nvmmx7dZrl+Ufr35A==", + "dependencies": { + "es6-object-assign": "^1.1.0", + "is-nan": "^1.2.1", + "object-is": "^1.0.1", + "util": "^0.12.0" + } + }, + "node_modules/assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/async-done": { + "version": "1.3.2", + "resolved": "https://registry.npmmirror.com/async-done/-/async-done-1.3.2.tgz", + "integrity": "sha512-uYkTP8dw2og1tu1nmza1n1CMW0qb8gWWlwqMmLb7MhBVs4BXrFziT6HXUd+/RlRA/i4H9AkofYloUbs1fwMqlw==", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.2", + "process-nextick-args": "^2.0.0", + "stream-exhaust": "^1.0.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/async-each": { + "version": "1.0.6", + "resolved": "https://registry.npmmirror.com/async-each/-/async-each-1.0.6.tgz", + "integrity": "sha512-c646jH1avxr+aVpndVMeAfYw7wAa6idufrlN3LPA4PmKS0QEGp6PIC9nwz0WQkkvBGAMEki3pFdtxaF39J9vvg==" + }, + "node_modules/async-settle": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/async-settle/-/async-settle-1.0.0.tgz", + "integrity": "sha512-VPXfB4Vk49z1LHHodrEQ6Xf7W4gg1w0dAPROHngx7qgDjqmIQ+fXmwgGXTW/ITLai0YLSvWepJOP9EVpMnEAcw==", + "dependencies": { + "async-done": "^1.2.2" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/atob": { + "version": "2.1.2", + "resolved": "https://registry.npmmirror.com/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "bin": { + "atob": "bin/atob.js" + }, + "engines": { + "node": ">= 4.5.0" + } + }, + "node_modules/atomically": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/atomically/-/atomically-1.7.0.tgz", + "integrity": "sha512-Xcz9l0z7y9yQ9rdDaxlmaI4uJHf/T8g9hOEzJcsEqX2SjCj4J20uK7+ldkDHMbpJDK76wF7xEIgxc/vSlsfw5w==", + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.7", + "resolved": "https://registry.npmmirror.com/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", + "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", + "dependencies": { + "possible-typed-array-names": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmmirror.com/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", + "engines": { + "node": "*" + } + }, + "node_modules/aws4": { + "version": "1.12.0", + "resolved": "https://registry.npmmirror.com/aws4/-/aws4-1.12.0.tgz", + "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==" + }, + "node_modules/b4a": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.7.tgz", + "integrity": "sha512-OnAYlL5b7LEkALw87fUVafQw5rVR9RjwGd4KUwNQ6DrrNmaVaUCgLipfVlzrPQ4tWOR9P0IXGNOx50jYCCdSJg==" + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.4.12", + "resolved": "https://registry.npmmirror.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.12.tgz", + "integrity": "sha512-CPWT6BwvhrTO2d8QVorhTCQw9Y43zOu7G9HigcfxvepOU6b8o3tcWad6oVgZIsZCTt42FFv97aA7ZJsbM4+8og==", + "dependencies": { + "@babel/compat-data": "^7.22.6", + "@babel/helper-define-polyfill-provider": "^0.6.3", + "semver": "^6.3.1" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.10.6", + "resolved": "https://registry.npmmirror.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.6.tgz", + "integrity": "sha512-b37+KR2i/khY5sKmWNVQAnitvquQbNdWy6lJdsr0kmquCKEEUgMKK4SboVM3HtfnZilfjr4MMQ7vY58FVWDtIA==", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.6.2", + "core-js-compat": "^3.38.0" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.6.3", + "resolved": "https://registry.npmmirror.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.3.tgz", + "integrity": "sha512-LiWSbl4CRSIa5x/JAU6jZiG9eit9w6mz+yVMFwDE83LAWvt0AfGBoZ7HS/mkhrKuh2ZlzfVZYKoLjXdqw6Yt7Q==", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.6.3" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/bach": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/bach/-/bach-1.2.0.tgz", + "integrity": "sha512-bZOOfCb3gXBXbTFXq3OZtGR88LwGeJvzu6szttaIzymOTS4ZttBNOWSv7aLZja2EMycKtRYV0Oa8SNKH/zkxvg==", + "dependencies": { + "arr-filter": "^1.1.1", + "arr-flatten": "^1.0.1", + "arr-map": "^2.0.0", + "array-each": "^1.0.0", + "array-initial": "^1.0.0", + "array-last": "^1.1.1", + "async-done": "^1.2.2", + "async-settle": "^1.0.0", + "now-and-later": "^2.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/backo2": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/backo2/-/backo2-1.0.2.tgz", + "integrity": "sha512-zj6Z6M7Eq+PBZ7PQxl5NT665MvJdAkzp0f60nAJ+sLaSCBPMwVak5ZegFbgVCzFcCJTKFoMizvM5Ld7+JrRJHA==" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/bare-events": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.5.0.tgz", + "integrity": "sha512-/E8dDe9dsbLyh2qrZ64PEPadOQ0F4gbl1sUJOrmph7xOiIxfY8vwab/4bFLh4Y88/Hk/ujKcrQKc+ps0mv873A==", + "optional": true + }, + "node_modules/base": { + "version": "0.11.2", + "resolved": "https://registry.npmmirror.com/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "dependencies": { + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/base/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dependencies": { + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/base64-arraybuffer": { + "version": "0.1.4", + "resolved": "https://registry.npmmirror.com/base64-arraybuffer/-/base64-arraybuffer-0.1.4.tgz", + "integrity": "sha512-a1eIFi4R9ySrbiMuyTGx5e92uRH5tQY6kArNcFaKBUleIoLjdjBg7Zxm3Mqm3Kmkf27HLR/1fnxX9q8GQ7Iavg==", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/base64id": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/base64id/-/base64id-2.0.0.tgz", + "integrity": "sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog==", + "engines": { + "node": "^4.5.0 || >= 5.9" + } + }, + "node_modules/bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", + "dependencies": { + "tweetnacl": "^0.14.3" + } + }, + "node_modules/beeper": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/beeper/-/beeper-1.1.1.tgz", + "integrity": "sha512-3vqtKL1N45I5dV0RdssXZG7X6pCqQrWPNOlBPZPrd+QkE2HEhR57Z04m0KtpbsZH73j+a3F8UD1TQnn+ExTvIA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/binaryextensions": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/binaryextensions/-/binaryextensions-2.3.0.tgz", + "integrity": "sha512-nAihlQsYGyc5Bwq6+EsubvANYGExeJKHDO3RjnvwU042fawQTQfM3Kxn7IHUXQOz4bzfwsGYYHGSvXyW4zOGLg==", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmmirror.com/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "optional": true, + "dependencies": { + "file-uri-to-path": "1.0.0" + } + }, + "node_modules/blob": { + "version": "0.0.5", + "resolved": "https://registry.npmmirror.com/blob/-/blob-0.0.5.tgz", + "integrity": "sha512-gaqbzQPqOoamawKg0LGVd7SzLgXS+JH61oWprSLH+P+abTczqJbhTR8CmJ2u9/bUYNmHTGJx/UEmn6doAvvuig==" + }, + "node_modules/body-parser": { + "version": "1.20.2", + "resolved": "https://registry.npmmirror.com/body-parser/-/body-parser-1.20.2.tgz", + "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.2", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/bowser": { + "version": "1.9.4", + "resolved": "https://registry.npmmirror.com/bowser/-/bowser-1.9.4.tgz", + "integrity": "sha512-9IdMmj2KjigRq6oWhmwv1W36pDuA4STQZ8q6YO9um+x07xgYNCD3Oou+WP/3L1HNz7iqythGet3/p4wvc8AAwQ==" + }, + "node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmmirror.com/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.24.3", + "resolved": "https://registry.npmmirror.com/browserslist/-/browserslist-4.24.3.tgz", + "integrity": "sha512-1CPmv8iobE2fyRMV97dAcMVegvvWKxmq94hkLiAkUGwKVTyDLw33K+ZxiFrREKmmps4rIw6grcCFCnTMSZ/YiA==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001688", + "electron-to-chromium": "^1.5.73", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.1" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer-equal": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/buffer-equal/-/buffer-equal-1.0.1.tgz", + "integrity": "sha512-QoV3ptgEaQpvVwbXdSO39iqPQTCxSF7A5U99AxbHYqUdCizL/lH2Z0A2y6nbZucxMEOtNyZfG2s6gsVugGpKkg==", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + }, + "node_modules/bufferstreams": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/bufferstreams/-/bufferstreams-1.0.1.tgz", + "integrity": "sha512-LZmiIfQprMLS6/k42w/PTc7awhU8AdNNcUerxTgr01WlP9agR2SgMv0wjlYYFD6eDOi8WvofrTX8RayjR/AeUQ==", + "dependencies": { + "readable-stream": "^1.0.33" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/bufferstreams/node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" + }, + "node_modules/bufferstreams/node_modules/readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "node_modules/bufferstreams/node_modules/string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==" + }, + "node_modules/builtin-status-codes": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", + "integrity": "sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ==" + }, + "node_modules/bull": { + "version": "4.16.5", + "resolved": "https://registry.npmmirror.com/bull/-/bull-4.16.5.tgz", + "integrity": "sha512-lDsx2BzkKe7gkCYiT5Acj02DpTwDznl/VNN7Psn7M3USPG7Vs/BaClZJJTAG+ufAR9++N1/NiUTdaFBWDIl5TQ==", + "dependencies": { + "cron-parser": "^4.9.0", + "get-port": "^5.1.1", + "ioredis": "^5.3.2", + "lodash": "^4.17.21", + "msgpackr": "^1.11.2", + "semver": "^7.5.2", + "uuid": "^8.3.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/bull/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmmirror.com/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/bull/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmmirror.com/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "dependencies": { + "streamsearch": "^1.1.0" + }, + "engines": { + "node": ">=10.16.0" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmmirror.com/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "dependencies": { + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/call-bind": { + "version": "1.0.7", + "resolved": "https://registry.npmmirror.com/call-bind/-/call-bind-1.0.7.tgz", + "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/camel-case": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/camel-case/-/camel-case-3.0.0.tgz", + "integrity": "sha512-+MbKztAYHXPr1jNTSKQF52VpcFjwY5RkR7fxksV8Doo4KAYc5Fl4UJRgthBbTmEx8C54DqahhbLJkDwjI3PI/w==", + "dependencies": { + "no-case": "^2.2.0", + "upper-case": "^1.1.1" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001690", + "resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001690.tgz", + "integrity": "sha512-5ExiE3qQN6oF8Clf8ifIDcMRCRE/dMGcETG/XGMD8/XiXm6HXQgQTh1yZYLXXpSOsEUlJm1Xr7kGULZTuGtP/w==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmmirror.com/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==" + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/chance": { + "version": "1.1.9", + "resolved": "https://registry.npmmirror.com/chance/-/chance-1.1.9.tgz", + "integrity": "sha512-TfxnA/DcZXRTA4OekA2zL9GH8qscbbl6X0ZqU4tXhGveVY/mXWvEQLt5GwZcYXTEyEFflVtj+pG8nc8EwSm1RQ==" + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "engines": { + "node": ">=10" + } + }, + "node_modules/charenc": { + "version": "0.0.2", + "resolved": "https://registry.npmmirror.com/charenc/-/charenc-0.0.2.tgz", + "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==", + "engines": { + "node": "*" + } + }, + "node_modules/class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmmirror.com/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "dependencies": { + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/class-utils/node_modules/is-descriptor": { + "version": "0.1.7", + "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-0.1.7.tgz", + "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", + "dependencies": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/class-validator": { + "version": "0.14.0", + "resolved": "https://registry.npmmirror.com/class-validator/-/class-validator-0.14.0.tgz", + "integrity": "sha512-ct3ltplN8I9fOwUd8GrP8UQixwff129BkEtuWDKL5W45cQuLd19xqmTLu5ge78YDm/fdje6FMt0hGOhl0lii3A==", + "dependencies": { + "@types/validator": "^13.7.10", + "libphonenumber-js": "^1.10.14", + "validator": "^13.7.0" + } + }, + "node_modules/clean-css": { + "version": "4.2.3", + "resolved": "https://registry.npmmirror.com/clean-css/-/clean-css-4.2.3.tgz", + "integrity": "sha512-VcMWDN54ZN/DS+g58HYL5/n4Zrqe8vHJpGA8KdgUXFU4fuP/aHNw8eld9SyEIyabIMJX/0RaY/fplOo5hYLSFA==", + "dependencies": { + "source-map": "~0.6.0" + }, + "engines": { + "node": ">= 4.0" + } + }, + "node_modules/cli": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/cli/-/cli-1.0.1.tgz", + "integrity": "sha512-41U72MB56TfUMGndAKK8vJ78eooOD4Z5NOL4xEfjc0c23s+6EYKXlXsmACBVclLP1yOfWCgEganVzddVrSNoTg==", + "peer": true, + "dependencies": { + "exit": "0.1.2", + "glob": "^7.1.1" + }, + "engines": { + "node": ">=0.2.5" + } + }, + "node_modules/cli/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "peer": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/cli/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "peer": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + } + }, + "node_modules/cli/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "peer": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmmirror.com/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/cliui/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/cliui/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/clone": { + "version": "2.1.2", + "resolved": "https://registry.npmmirror.com/clone/-/clone-2.1.2.tgz", + "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/clone-buffer": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/clone-buffer/-/clone-buffer-1.0.0.tgz", + "integrity": "sha512-KLLTJWrvwIP+OPfMn0x2PheDEP20RPUcGXj/ERegTgdmPEZylALQldygiqrPPu8P45uNuPs7ckmReLY6v/iA5g==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/clone-stats": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/clone-stats/-/clone-stats-1.0.0.tgz", + "integrity": "sha512-au6ydSpg6nsrigcZ4m8Bc9hxjeW+GJ8xh5G3BJCMt4WXe1H10UNaVOamqQTmrx1kjVuxAHIQSNU6hY4Nsn9/ag==" + }, + "node_modules/cloneable-readable": { + "version": "1.1.3", + "resolved": "https://registry.npmmirror.com/cloneable-readable/-/cloneable-readable-1.1.3.tgz", + "integrity": "sha512-2EF8zTQOxYq70Y4XKtorQupqF0m49MBz2/yf5Bj+MHjvpG3Hy7sImifnqD6UA+TKYxeSV+u6qqQPawN5UvnpKQ==", + "dependencies": { + "inherits": "^2.0.1", + "process-nextick-args": "^2.0.0", + "readable-stream": "^2.3.5" + } + }, + "node_modules/cluster-key-slot": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz", + "integrity": "sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/collection-map": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/collection-map/-/collection-map-1.0.0.tgz", + "integrity": "sha512-5D2XXSpkOnleOI21TG7p3T0bGAsZ/XknZpKBmGYyluO8pw4zA3K8ZlrBIbC4FXg3m6z/RNFiUFfT2sQK01+UHA==", + "dependencies": { + "arr-map": "^2.0.2", + "for-own": "^1.0.0", + "make-iterator": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw==", + "dependencies": { + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmmirror.com/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "bin": { + "color-support": "bin.js" + } + }, + "node_modules/colorette": { + "version": "1.4.0", + "resolved": "https://registry.npmmirror.com/colorette/-/colorette-1.4.0.tgz", + "integrity": "sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmmirror.com/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + }, + "node_modules/component-bind": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/component-bind/-/component-bind-1.0.0.tgz", + "integrity": "sha512-WZveuKPeKAG9qY+FkYDeADzdHyTYdIboXS59ixDeRJL5ZhxpqUnxSOwop4FQjMsiYm3/Or8cegVbpAHNA7pHxw==" + }, + "node_modules/component-emitter": { + "version": "1.3.1", + "resolved": "https://registry.npmmirror.com/component-emitter/-/component-emitter-1.3.1.tgz", + "integrity": "sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ==" + }, + "node_modules/component-inherit": { + "version": "0.0.3", + "resolved": "https://registry.npmmirror.com/component-inherit/-/component-inherit-0.0.3.tgz", + "integrity": "sha512-w+LhYREhatpVqTESyGFg3NlP6Iu0kEKUHETY9GoZP/pQyW4mHFZuFWRUCIqVPZ36ueVLtoOEZaAqbCF2RDndaA==" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmmirror.com/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "node_modules/concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmmirror.com/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "engines": [ + "node >= 0.8" + ], + "dependencies": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "node_modules/concat-with-sourcemaps": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz", + "integrity": "sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==", + "dependencies": { + "source-map": "^0.6.1" + } + }, + "node_modules/concurrently": { + "version": "8.2.2", + "resolved": "https://registry.npmmirror.com/concurrently/-/concurrently-8.2.2.tgz", + "integrity": "sha512-1dP4gpXFhei8IOtlXRE/T/4H88ElHgTiUzh71YUmtjTEHMSRS2Z/fgOxHSxxusGHogsRfxNq1vyAwxSC+EVyDg==", + "dependencies": { + "chalk": "^4.1.2", + "date-fns": "^2.30.0", + "lodash": "^4.17.21", + "rxjs": "^7.8.1", + "shell-quote": "^1.8.1", + "spawn-command": "0.0.2", + "supports-color": "^8.1.1", + "tree-kill": "^1.2.2", + "yargs": "^17.7.2" + }, + "bin": { + "conc": "dist/bin/concurrently.js", + "concurrently": "dist/bin/concurrently.js" + }, + "engines": { + "node": "^14.13.0 || >=16.0.0" + } + }, + "node_modules/concurrently/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/concurrently/node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmmirror.com/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/concurrently/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/concurrently/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/concurrently/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/concurrently/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/concurrently/node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmmirror.com/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/concurrently/node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "engines": { + "node": ">=12" + } + }, + "node_modules/conf": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/conf/-/conf-9.0.2.tgz", + "integrity": "sha512-rLSiilO85qHgaTBIIHQpsv8z+NnVfZq3cKuYNCXN1AOqPzced0GWZEe/A517VldRLyQYXUMyV+vszavE2jSAqw==", + "dependencies": { + "ajv": "^7.0.3", + "ajv-formats": "^1.5.1", + "atomically": "^1.7.0", + "debounce-fn": "^4.0.0", + "dot-prop": "^6.0.1", + "env-paths": "^2.2.0", + "json-schema-typed": "^7.0.3", + "make-dir": "^3.1.0", + "onetime": "^5.1.2", + "pkg-up": "^3.1.0", + "semver": "^7.3.4" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/conf/node_modules/ajv": { + "version": "7.2.4", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-7.2.4.tgz", + "integrity": "sha512-nBeQgg/ZZA3u3SYxyaDvpvDtgZ/EZPF547ARgZBrG9Bhu1vKDwAIjtIf+sDtJUKa2zOcEbmRLBRSyMraS/Oy1A==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/conf/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "node_modules/conf/node_modules/semver": { + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/console-browserify": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/console-browserify/-/console-browserify-1.1.0.tgz", + "integrity": "sha512-duS7VP5pvfsNLDvL1O4VOEbw37AI3A4ZUQYemvDlnpGrNu9tprR7BYWpDYwC0Xia0Zxz5ZupdiIrUp0GH1aXfg==", + "peer": true, + "dependencies": { + "date-now": "^0.1.4" + } + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmmirror.com/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmmirror.com/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" + }, + "node_modules/cookie": { + "version": "0.4.1", + "resolved": "https://registry.npmmirror.com/cookie/-/cookie-0.4.1.tgz", + "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-parser": { + "version": "1.4.6", + "resolved": "https://registry.npmmirror.com/cookie-parser/-/cookie-parser-1.4.6.tgz", + "integrity": "sha512-z3IzaNjdwUC2olLIB5/ITd0/setiaFMLYiZJle7xg5Fe9KWAceil7xszYfHHBtDFYLSgJduS2Ty0P1uJdPDJeA==", + "dependencies": { + "cookie": "0.4.1", + "cookie-signature": "1.0.6" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmmirror.com/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" + }, + "node_modules/copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/copy-props": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/copy-props/-/copy-props-2.0.5.tgz", + "integrity": "sha512-XBlx8HSqrT0ObQwmSzM7WE5k8FxTV75h1DX1Z3n6NhQ/UYYAvInWYmG06vFt7hQZArE2fuO62aihiWIVQwh1sw==", + "dependencies": { + "each-props": "^1.3.2", + "is-plain-object": "^5.0.0" + } + }, + "node_modules/copy-props/node_modules/is-plain-object": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-5.0.0.tgz", + "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/copy-to": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/copy-to/-/copy-to-2.0.1.tgz", + "integrity": "sha512-3DdaFaU/Zf1AnpLiFDeNCD4TOWe3Zl2RZaTzUvWiIk5ERzcCodOE20Vqq4fzCbNoHURFHT4/us/Lfq+S2zyY4w==" + }, + "node_modules/core-js-compat": { + "version": "3.39.0", + "resolved": "https://registry.npmmirror.com/core-js-compat/-/core-js-compat-3.39.0.tgz", + "integrity": "sha512-VgEUx3VwlExr5no0tXlBt+silBvhTryPwCXRI2Id1PN8WTKu7MreethvddqOubrYxkFdv/RnYrqlv1sFNAUelw==", + "dependencies": { + "browserslist": "^4.24.2" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==" + }, + "node_modules/cos-nodejs-sdk-v5": { + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/cos-nodejs-sdk-v5/-/cos-nodejs-sdk-v5-2.14.0.tgz", + "integrity": "sha512-1FQyhTB/LaG1CNqxcJRkSrNI/9tzzdVVy8diLotGbp/gdmOKM79Cif+qhp8pYjvnqgJf23i+uSVkAWEGm3sf6g==", + "dependencies": { + "conf": "^9.0.0", + "fast-xml-parser": "4.2.5", + "mime-types": "^2.1.24", + "request": "^2.88.2" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/cron-parser": { + "version": "4.9.0", + "resolved": "https://registry.npmmirror.com/cron-parser/-/cron-parser-4.9.0.tgz", + "integrity": "sha512-p0SaNjrHOnQeR8/VnfGbmg9te2kfyYSQ7Sc/j/6DtPL3JQvKxmjO9TSjNFpujqV3vEYYBvNNvXSxzyksBWAx1Q==", + "dependencies": { + "luxon": "^3.2.1" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/cross-env": { + "version": "5.2.1", + "resolved": "https://registry.npmmirror.com/cross-env/-/cross-env-5.2.1.tgz", + "integrity": "sha512-1yHhtcfAd1r4nwQgknowuUNfIT9E8dOMMspC36g45dN+iD1blloi7xp8X/xAIDnjHWyt1uQ8PHk2fkNaym7soQ==", + "dependencies": { + "cross-spawn": "^6.0.5" + }, + "bin": { + "cross-env": "dist/bin/cross-env.js", + "cross-env-shell": "dist/bin/cross-env-shell.js" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dependencies": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + }, + "engines": { + "node": ">=4.8" + } + }, + "node_modules/crypt": { + "version": "0.0.2", + "resolved": "https://registry.npmmirror.com/crypt/-/crypt-0.0.2.tgz", + "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==", + "engines": { + "node": "*" + } + }, + "node_modules/d": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/d/-/d-1.0.2.tgz", + "integrity": "sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw==", + "dependencies": { + "es5-ext": "^0.10.64", + "type": "^2.7.2" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmmirror.com/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", + "dependencies": { + "assert-plus": "^1.0.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/date-fns": { + "version": "2.30.0", + "resolved": "https://registry.npmmirror.com/date-fns/-/date-fns-2.30.0.tgz", + "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==", + "dependencies": { + "@babel/runtime": "^7.21.0" + }, + "engines": { + "node": ">=0.11" + } + }, + "node_modules/date-now": { + "version": "0.1.4", + "resolved": "https://registry.npmmirror.com/date-now/-/date-now-0.1.4.tgz", + "integrity": "sha512-AsElvov3LoNB7tf5k37H2jYSB+ZZPMT5sG2QjJCcdlV5chIv6htBUBUui2IKRjgtKAKtCBN7Zbwa+MtwLjSeNw==", + "peer": true + }, + "node_modules/dateformat": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-2.2.0.tgz", + "integrity": "sha512-GODcnWq3YGoTnygPfi02ygEiRxqUxpJwuRHjdhJYuxpcZmDq4rjBiXYmbCCzStxo176ixfLT6i4NPwQooRySnw==", + "engines": { + "node": "*" + } + }, + "node_modules/debounce-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/debounce-fn/-/debounce-fn-4.0.0.tgz", + "integrity": "sha512-8pYCQiL9Xdcg0UPSD3d+0KMlOjp+KGU5EPwYddgzQ7DATsg4fuUDjQtsYLmWjnk2obnNHgV3vE2Y4jejSOJVBQ==", + "dependencies": { + "mimic-fn": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmmirror.com/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmmirror.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmmirror.com/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" + }, + "node_modules/default-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/default-compare/-/default-compare-1.0.0.tgz", + "integrity": "sha512-QWfXlM0EkAbqOCbD/6HjdwT19j7WCkMyiRhWilc4H9/5h/RzTF9gv5LYh1+CmDV5d1rki6KAWLtQale0xt20eQ==", + "dependencies": { + "kind-of": "^5.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/default-resolution": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/default-resolution/-/default-resolution-2.0.0.tgz", + "integrity": "sha512-2xaP6GiwVwOEbXCGoJ4ufgC76m8cj805jrghScewJC2ZDsb9U0b4BIrba+xt/Uytyd0HvQ6+WymSRTfnYj59GQ==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/default-user-agent": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/default-user-agent/-/default-user-agent-1.0.0.tgz", + "integrity": "sha512-bDF7bg6OSNcSwFWPu4zYKpVkJZQYVrAANMYB8bc9Szem1D0yKdm4sa/rOCs2aC9+2GMqQ7KnwtZRvDhmLF0dXw==", + "dependencies": { + "os-name": "~1.0.3" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmmirror.com/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dependencies": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/del": { + "version": "2.2.2", + "resolved": "https://registry.npmmirror.com/del/-/del-2.2.2.tgz", + "integrity": "sha512-Z4fzpbIRjOu7lO5jCETSWoqUDVe0IPOlfugBsF6suen2LKDlVb4QZpKEM9P+buNJ4KI1eN7I083w/pbKUpsrWQ==", + "dependencies": { + "globby": "^5.0.0", + "is-path-cwd": "^1.0.0", + "is-path-in-cwd": "^1.0.0", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "rimraf": "^2.2.8" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/del/node_modules/array-union": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/array-union/-/array-union-1.0.2.tgz", + "integrity": "sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng==", + "dependencies": { + "array-uniq": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/del/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/del/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + } + }, + "node_modules/del/node_modules/globby": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/globby/-/globby-5.0.0.tgz", + "integrity": "sha512-HJRTIH2EeH44ka+LWig+EqT2ONSYpVlNfx6pyd592/VF1TbfljJ7elwie7oSwcViLGqOdWocSdu2txwBF9bjmQ==", + "dependencies": { + "array-union": "^1.0.1", + "arrify": "^1.0.0", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/del/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/denque": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/denque/-/denque-2.1.0.tgz", + "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/detect-file": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/detect-file/-/detect-file-1.0.0.tgz", + "integrity": "sha512-DtCOLG98P007x7wiiOmfI0fi3eIKyWiLTGJ2MDnVi/E04lWGbf+JzrRHMm0rgIIZJGtHpKpbVgLWHrv8xXpc3Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/detect-libc": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/detect-libc/-/detect-libc-2.0.3.tgz", + "integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/digest-header": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/digest-header/-/digest-header-1.1.0.tgz", + "integrity": "sha512-glXVh42vz40yZb9Cq2oMOt70FIoWiv+vxNvdKdU8CwjLad25qHM3trLxhl9bVjdr6WaslIXhWpn0NO8T/67Qjg==", + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/dom-serializer": { + "version": "0.2.2", + "resolved": "https://registry.npmmirror.com/dom-serializer/-/dom-serializer-0.2.2.tgz", + "integrity": "sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==", + "peer": true, + "dependencies": { + "domelementtype": "^2.0.1", + "entities": "^2.0.0" + } + }, + "node_modules/dom-serializer/node_modules/domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "peer": true + }, + "node_modules/dom-serializer/node_modules/entities": { + "version": "2.2.0", + "resolved": "https://registry.npmmirror.com/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "peer": true + }, + "node_modules/domelementtype": { + "version": "1.3.1", + "resolved": "https://registry.npmmirror.com/domelementtype/-/domelementtype-1.3.1.tgz", + "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==", + "peer": true + }, + "node_modules/domhandler": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/domhandler/-/domhandler-2.3.0.tgz", + "integrity": "sha512-q9bUwjfp7Eif8jWxxxPSykdRZAb6GkguBGSgvvCrhI9wB71W2K/Kvv4E61CF/mcCfnVJDeDWx/Vb/uAqbDj6UQ==", + "peer": true, + "dependencies": { + "domelementtype": "1" + } + }, + "node_modules/domutils": { + "version": "1.5.1", + "resolved": "https://registry.npmmirror.com/domutils/-/domutils-1.5.1.tgz", + "integrity": "sha512-gSu5Oi/I+3wDENBsOWBiRK1eoGxcywYSqg3rR960/+EfY0CF4EX1VPkgHOZ3WiS/Jg2DtliF6BhWcHlfpYUcGw==", + "peer": true, + "dependencies": { + "dom-serializer": "0", + "domelementtype": "1" + } + }, + "node_modules/dot-prop": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-6.0.1.tgz", + "integrity": "sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==", + "dependencies": { + "is-obj": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/dotenv": { + "version": "16.3.1", + "resolved": "https://registry.npmmirror.com/dotenv/-/dotenv-16.3.1.tgz", + "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", + "engines": { + "node": ">=12" + } + }, + "node_modules/dottie": { + "version": "2.0.6", + "resolved": "https://registry.npmmirror.com/dottie/-/dottie-2.0.6.tgz", + "integrity": "sha512-iGCHkfUc5kFekGiqhe8B/mdaurD+lakO9txNnTvKtA6PISrw86LgqHvRzWYPyoE2Ph5aMIrCw9/uko6XHTKCwA==" + }, + "node_modules/duplexer2": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz", + "integrity": "sha512-+AWBwjGadtksxjOQSFDhPNQbed7icNXApT4+2BNpsXzcCBiInq2H9XW0O8sfHFaPmnQRs7cg/P0fAr2IWQSW0g==", + "dependencies": { + "readable-stream": "~1.1.9" + } + }, + "node_modules/duplexer2/node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" + }, + "node_modules/duplexer2/node_modules/readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "node_modules/duplexer2/node_modules/string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==" + }, + "node_modules/duplexify": { + "version": "3.7.1", + "resolved": "https://registry.npmmirror.com/duplexify/-/duplexify-3.7.1.tgz", + "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", + "dependencies": { + "end-of-stream": "^1.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.0.0", + "stream-shift": "^1.0.0" + } + }, + "node_modules/each-props": { + "version": "1.3.2", + "resolved": "https://registry.npmmirror.com/each-props/-/each-props-1.3.2.tgz", + "integrity": "sha512-vV0Hem3zAGkJAyU7JSjixeU66rwdynTAa1vofCrSA5fEln+m67Az9CcnkVD776/fsN/UjIWmBDoNRS6t6G9RfA==", + "dependencies": { + "is-plain-object": "^2.0.1", + "object.defaults": "^1.1.0" + } + }, + "node_modules/each-props/node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmmirror.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" + }, + "node_modules/easy-transform-stream": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/easy-transform-stream/-/easy-transform-stream-1.0.1.tgz", + "integrity": "sha512-ktkaa6XR7COAR3oj02CF3IOgz2m1hCaY3SfzvKT4Svt2MhHw9XCt+ncJNWfe2TGz31iqzNGZ8spdKQflj+Rlog==", + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmmirror.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", + "dependencies": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + }, + "node_modules/electron-to-chromium": { + "version": "1.5.76", + "resolved": "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.5.76.tgz", + "integrity": "sha512-CjVQyG7n7Sr+eBXE86HIulnL5N8xZY1sgmOPGuq/F0Rr0FJq63lg0kEtOIDfZBk44FnDLf6FUJ+dsJcuiUDdDQ==" + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmmirror.com/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/end-or-error": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/end-or-error/-/end-or-error-1.0.1.tgz", + "integrity": "sha512-OclLMSug+k2A0JKuf494im25ANRBVW8qsjmwbgX7lQ8P82H21PQ1PWkoYwb9y5yMBS69BPlwtzdIFClo3+7kOQ==", + "engines": { + "node": ">= 0.11.14" + } + }, + "node_modules/engine.io": { + "version": "3.6.1", + "resolved": "https://registry.npmmirror.com/engine.io/-/engine.io-3.6.1.tgz", + "integrity": "sha512-dfs8EVg/i7QjFsXxn7cCRQ+Wai1G1TlEvHhdYEi80fxn5R1vZ2K661O6v/rezj1FP234SZ14r9CmJke99iYDGg==", + "dependencies": { + "accepts": "~1.3.4", + "base64id": "2.0.0", + "cookie": "~0.4.1", + "debug": "~4.1.0", + "engine.io-parser": "~2.2.0", + "ws": "~7.4.2" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/engine.io-client": { + "version": "3.5.3", + "resolved": "https://registry.npmmirror.com/engine.io-client/-/engine.io-client-3.5.3.tgz", + "integrity": "sha512-qsgyc/CEhJ6cgMUwxRRtOndGVhIu5hpL5tR4umSpmX/MvkFoIxUTM7oFMDQumHNzlNLwSVy6qhstFPoWTf7dOw==", + "dependencies": { + "component-emitter": "~1.3.0", + "component-inherit": "0.0.3", + "debug": "~3.1.0", + "engine.io-parser": "~2.2.0", + "has-cors": "1.1.0", + "indexof": "0.0.1", + "parseqs": "0.0.6", + "parseuri": "0.0.6", + "ws": "~7.4.2", + "xmlhttprequest-ssl": "~1.6.2", + "yeast": "0.1.2" + } + }, + "node_modules/engine.io-client/node_modules/debug": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/engine.io-parser": { + "version": "2.2.1", + "resolved": "https://registry.npmmirror.com/engine.io-parser/-/engine.io-parser-2.2.1.tgz", + "integrity": "sha512-x+dN/fBH8Ro8TFwJ+rkB2AmuVw9Yu2mockR/p3W8f8YtExwFgDvBDi0GWyb4ZLkpahtDGZgtr3zLovanJghPqg==", + "dependencies": { + "after": "0.8.2", + "arraybuffer.slice": "~0.0.7", + "base64-arraybuffer": "0.1.4", + "blob": "0.0.5", + "has-binary2": "~1.0.2" + } + }, + "node_modules/engine.io/node_modules/debug": { + "version": "4.1.1", + "resolved": "https://registry.npmmirror.com/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "deprecated": "Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/engine.io/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/entities": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/entities/-/entities-1.0.0.tgz", + "integrity": "sha512-LbLqfXgJMmy81t+7c14mnulFHJ170cM6E+0vMXR9k/ZiZwgX8i5pNgjTCX3SO4VeUsFLV+8InixoretwU+MjBQ==", + "peer": true + }, + "node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "engines": { + "node": ">=6" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmmirror.com/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/es-define-property/-/es-define-property-1.0.0.tgz", + "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "dependencies": { + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es5-ext": { + "version": "0.10.64", + "resolved": "https://registry.npmmirror.com/es5-ext/-/es5-ext-0.10.64.tgz", + "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==", + "hasInstallScript": true, + "dependencies": { + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.3", + "esniff": "^2.0.1", + "next-tick": "^1.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/es6-iterator": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", + "dependencies": { + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" + } + }, + "node_modules/es6-object-assign": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/es6-object-assign/-/es6-object-assign-1.1.0.tgz", + "integrity": "sha512-MEl9uirslVwqQU369iHNWZXsI8yaZYGg/D65aOgZkeyFJwHYSxilf7rQzXKI7DdDuBPrBXbfk3sl9hJhmd5AUw==" + }, + "node_modules/es6-symbol": { + "version": "3.1.4", + "resolved": "https://registry.npmmirror.com/es6-symbol/-/es6-symbol-3.1.4.tgz", + "integrity": "sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg==", + "dependencies": { + "d": "^1.0.2", + "ext": "^1.7.0" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/es6-weak-map": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/es6-weak-map/-/es6-weak-map-2.0.3.tgz", + "integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==", + "dependencies": { + "d": "1", + "es5-ext": "^0.10.46", + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.1" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmmirror.com/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, + "node_modules/eslint-scope": { + "version": "7.1.1", + "resolved": "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-7.1.1.tgz", + "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.3.0", + "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", + "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/esniff": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/esniff/-/esniff-2.0.1.tgz", + "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", + "dependencies": { + "d": "^1.0.1", + "es5-ext": "^0.10.62", + "event-emitter": "^0.3.5", + "type": "^2.7.2" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmmirror.com/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmmirror.com/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmmirror.com/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmmirror.com/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmmirror.com/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==", + "dependencies": { + "d": "1", + "es5-ext": "~0.10.14" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmmirror.com/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "peer": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmmirror.com/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA==", + "dependencies": { + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-brackets/node_modules/is-descriptor": { + "version": "0.1.7", + "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-0.1.7.tgz", + "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", + "dependencies": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/expand-brackets/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/expand-tilde": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/expand-tilde/-/expand-tilde-2.0.2.tgz", + "integrity": "sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==", + "dependencies": { + "homedir-polyfill": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/express": { + "version": "4.18.2", + "resolved": "https://registry.npmmirror.com/express/-/express-4.18.2.tgz", + "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/express/node_modules/body-parser": { + "version": "1.20.1", + "resolved": "https://registry.npmmirror.com/body-parser/-/body-parser-1.20.1.tgz", + "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/express/node_modules/cookie": { + "version": "0.5.0", + "resolved": "https://registry.npmmirror.com/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express/node_modules/raw-body": { + "version": "2.5.1", + "resolved": "https://registry.npmmirror.com/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/ext": { + "version": "1.7.0", + "resolved": "https://registry.npmmirror.com/ext/-/ext-1.7.0.tgz", + "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", + "dependencies": { + "type": "^2.7.2" + } + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmmirror.com/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + }, + "node_modules/extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dependencies": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmmirror.com/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "dependencies": { + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dependencies": { + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extglob/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", + "engines": [ + "node >=0.6.0" + ] + }, + "node_modules/fancy-log": { + "version": "1.3.3", + "resolved": "https://registry.npmmirror.com/fancy-log/-/fancy-log-1.3.3.tgz", + "integrity": "sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw==", + "dependencies": { + "ansi-gray": "^0.1.1", + "color-support": "^1.1.3", + "parse-node-version": "^1.0.0", + "time-stamp": "^1.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "node_modules/fast-fifo": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", + "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==" + }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmmirror.com/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + }, + "node_modules/fast-levenshtein": { + "version": "1.1.4", + "resolved": "https://registry.npmmirror.com/fast-levenshtein/-/fast-levenshtein-1.1.4.tgz", + "integrity": "sha512-Ia0sQNrMPXXkqVFt6w6M1n1oKo3NfKs+mvaV811Jwir7vAk9a6PVV9VPYf6X3BU97QiLEmuW3uXH9u87zDFfdw==" + }, + "node_modules/fast-xml-parser": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz", + "integrity": "sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==", + "funding": [ + { + "type": "paypal", + "url": "https://paypal.me/naturalintelligence" + }, + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ], + "dependencies": { + "strnum": "^1.0.5" + }, + "bin": { + "fxparser": "src/cli/cli.js" + } + }, + "node_modules/fastq": { + "version": "1.16.0", + "resolved": "https://registry.npmmirror.com/fastq/-/fastq-1.16.0.tgz", + "integrity": "sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA==", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "optional": true + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/finalhandler/-/finalhandler-1.2.0.tgz", + "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/findup-sync": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/findup-sync/-/findup-sync-3.0.0.tgz", + "integrity": "sha512-YbffarhcicEhOrm4CtrwdKBdCuz576RLdhJDsIfvNtxUuhdRet1qZcsMjqbePtAseKdAnDyM/IyXbu7PRPRLYg==", + "dependencies": { + "detect-file": "^1.0.0", + "is-glob": "^4.0.0", + "micromatch": "^3.0.4", + "resolve-dir": "^1.0.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/findup-sync/node_modules/braces": { + "version": "2.3.2", + "resolved": "https://registry.npmmirror.com/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dependencies": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/braces/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==", + "dependencies": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/fill-range/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/is-number/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/findup-sync/node_modules/to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==", + "dependencies": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fined": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/fined/-/fined-1.2.0.tgz", + "integrity": "sha512-ZYDqPLGxDkDhDZBjZBb+oD1+j0rA4E0pXY50eplAAOPg2N/gUBSSk5IM1/QhPfyVo19lJ+CvXpqfvk+b2p/8Ng==", + "dependencies": { + "expand-tilde": "^2.0.2", + "is-plain-object": "^2.0.3", + "object.defaults": "^1.1.0", + "object.pick": "^1.2.0", + "parse-filepath": "^1.0.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/fined/node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/first-chunk-stream": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/first-chunk-stream/-/first-chunk-stream-5.0.0.tgz", + "integrity": "sha512-WdHo4ejd2cG2Dl+sLkW79SctU7mUQDfr4s1i26ffOZRs5mgv+BRttIM9gwcq0rDbemo0KlpVPaa3LBVLqPXzcQ==", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flagged-respawn": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/flagged-respawn/-/flagged-respawn-1.0.1.tgz", + "integrity": "sha512-lNaHNVymajmk0OJMBn8fVUAU1BtDeKIqKoVhk4xAALB57aALg6b4W0MfJ/cUE0g9YBXy5XhSlPIpYIJ7HaY/3Q==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/flush-write-stream": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/flush-write-stream/-/flush-write-stream-1.1.1.tgz", + "integrity": "sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w==", + "dependencies": { + "inherits": "^2.0.3", + "readable-stream": "^2.3.6" + } + }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmmirror.com/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/for-own": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/for-own/-/for-own-1.0.0.tgz", + "integrity": "sha512-0OABksIGrxKK8K4kynWkQ7y1zounQxP+CWnyclVwj81KW3vlLlGUx57DKGcP/LH216GzqnstnPocF16Nxs0Ycg==", + "dependencies": { + "for-in": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/foreground-child": { + "version": "3.1.1", + "resolved": "https://registry.npmmirror.com/foreground-child/-/foreground-child-3.1.1.tgz", + "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/foreground-child/node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/foreground-child/node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/foreground-child/node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/foreground-child/node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "engines": { + "node": ">=8" + } + }, + "node_modules/foreground-child/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmmirror.com/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", + "engines": { + "node": "*" + } + }, + "node_modules/formstream": { + "version": "1.5.1", + "resolved": "https://registry.npmmirror.com/formstream/-/formstream-1.5.1.tgz", + "integrity": "sha512-q7ORzFqotpwn3Y/GBK2lK7PjtZZwJHz9QE9Phv8zb5IrL9ftGLyi2zjGURON3voK8TaZ+mqJKERYN4lrHYTkUQ==", + "dependencies": { + "destroy": "^1.0.4", + "mime": "^2.5.2", + "node-hex": "^1.0.1", + "pause-stream": "~0.0.11" + } + }, + "node_modules/formstream/node_modules/mime": { + "version": "2.6.0", + "resolved": "https://registry.npmmirror.com/mime/-/mime-2.6.0.tgz", + "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmmirror.com/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmmirror.com/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA==", + "dependencies": { + "map-cache": "^0.2.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmmirror.com/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/fs-mkdirp-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/fs-mkdirp-stream/-/fs-mkdirp-stream-1.0.0.tgz", + "integrity": "sha512-+vSd9frUnapVC2RZYfL3FCB2p3g4TBhaUmrsWlSudsGdnxIuUvBB2QM1VZeBtc49QFwrp+wQLrDs3+xxDgI5gQ==", + "dependencies": { + "graceful-fs": "^4.1.11", + "through2": "^2.0.3" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/fs-mkdirp-stream/node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==" + }, + "node_modules/generate-function": { + "version": "2.3.1", + "resolved": "https://registry.npmmirror.com/generate-function/-/generate-function-2.3.1.tgz", + "integrity": "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==", + "dependencies": { + "is-property": "^1.0.2" + } + }, + "node_modules/generic-pool": { + "version": "3.9.0", + "resolved": "https://registry.npmmirror.com/generic-pool/-/generic-pool-3.9.0.tgz", + "integrity": "sha512-hymDOu5B53XvN4QT9dBmZxPX4CWhBPPLguTZ9MMFeFa/Kg0xWVfylOVNlJji/E7yTZWFd/q9GO5TxDLq156D7g==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmmirror.com/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "peer": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.4", + "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz", + "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-port": { + "version": "5.1.1", + "resolved": "https://registry.npmmirror.com/get-port/-/get-port-5.1.1.tgz", + "integrity": "sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-ready": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/get-ready/-/get-ready-1.0.0.tgz", + "integrity": "sha512-mFXCZPJIlcYcth+N8267+mghfYN9h3EhsDa6JSnbA3Wrhh/XFpuowviFcsDeYZtKspQyWyJqfs4O6P8CHeTwzw==" + }, + "node_modules/get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmmirror.com/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmmirror.com/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", + "dependencies": { + "assert-plus": "^1.0.0" + } + }, + "node_modules/glob": { + "version": "10.3.10", + "resolved": "https://registry.npmmirror.com/glob/-/glob-10.3.10.tgz", + "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.3.5", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/glob-stream": { + "version": "6.1.0", + "resolved": "https://registry.npmmirror.com/glob-stream/-/glob-stream-6.1.0.tgz", + "integrity": "sha512-uMbLGAP3S2aDOHUDfdoYcdIePUCfysbAd0IAoWVZbeGU/oNQ8asHVSshLDJUPWxfzj8zsCG7/XeHPHTtow0nsw==", + "dependencies": { + "extend": "^3.0.0", + "glob": "^7.1.1", + "glob-parent": "^3.1.0", + "is-negated-glob": "^1.0.0", + "ordered-read-streams": "^1.0.0", + "pumpify": "^1.3.5", + "readable-stream": "^2.1.5", + "remove-trailing-separator": "^1.0.1", + "to-absolute-glob": "^2.0.0", + "unique-stream": "^2.0.2" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/glob-stream/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/glob-stream/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + } + }, + "node_modules/glob-stream/node_modules/glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA==", + "dependencies": { + "is-glob": "^3.1.0", + "path-dirname": "^1.0.0" + } + }, + "node_modules/glob-stream/node_modules/is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw==", + "dependencies": { + "is-extglob": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-stream/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/glob-watcher": { + "version": "5.0.5", + "resolved": "https://registry.npmmirror.com/glob-watcher/-/glob-watcher-5.0.5.tgz", + "integrity": "sha512-zOZgGGEHPklZNjZQaZ9f41i7F2YwE+tS5ZHrDhbBCk3stwahn5vQxnFmBJZHoYdusR6R1bLSXeGUy/BhctwKzw==", + "dependencies": { + "anymatch": "^2.0.0", + "async-done": "^1.2.0", + "chokidar": "^2.0.0", + "is-negated-glob": "^1.0.0", + "just-debounce": "^1.0.0", + "normalize-path": "^3.0.0", + "object.defaults": "^1.1.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/glob-watcher/node_modules/anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dependencies": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + } + }, + "node_modules/glob-watcher/node_modules/anymatch/node_modules/normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", + "dependencies": { + "remove-trailing-separator": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/binary-extensions": { + "version": "1.13.1", + "resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-1.13.1.tgz", + "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/braces": { + "version": "2.3.2", + "resolved": "https://registry.npmmirror.com/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dependencies": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/braces/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/chokidar": { + "version": "2.1.8", + "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-2.1.8.tgz", + "integrity": "sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg==", + "deprecated": "Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies", + "dependencies": { + "anymatch": "^2.0.0", + "async-each": "^1.0.1", + "braces": "^2.3.2", + "glob-parent": "^3.1.0", + "inherits": "^2.0.3", + "is-binary-path": "^1.0.0", + "is-glob": "^4.0.0", + "normalize-path": "^3.0.0", + "path-is-absolute": "^1.0.0", + "readdirp": "^2.2.1", + "upath": "^1.1.1" + }, + "optionalDependencies": { + "fsevents": "^1.2.7" + } + }, + "node_modules/glob-watcher/node_modules/fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==", + "dependencies": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/fill-range/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/fsevents": { + "version": "1.2.13", + "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-1.2.13.tgz", + "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", + "deprecated": "The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2", + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "dependencies": { + "bindings": "^1.5.0", + "nan": "^2.12.1" + }, + "engines": { + "node": ">= 4.0" + } + }, + "node_modules/glob-watcher/node_modules/glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA==", + "dependencies": { + "is-glob": "^3.1.0", + "path-dirname": "^1.0.0" + } + }, + "node_modules/glob-watcher/node_modules/glob-parent/node_modules/is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw==", + "dependencies": { + "is-extglob": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/is-binary-path": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/is-binary-path/-/is-binary-path-1.0.1.tgz", + "integrity": "sha512-9fRVlXc0uCxEDj1nQzaWONSpbTfx0FmJfzHF7pwlI8DkWGoHBBea4Pg5Ky0ojwwxQmnSifgbKkI06Qv0Ljgj+Q==", + "dependencies": { + "binary-extensions": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/micromatch/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/glob-watcher/node_modules/readdirp": { + "version": "2.2.1", + "resolved": "https://registry.npmmirror.com/readdirp/-/readdirp-2.2.1.tgz", + "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", + "dependencies": { + "graceful-fs": "^4.1.11", + "micromatch": "^3.1.10", + "readable-stream": "^2.0.2" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/glob-watcher/node_modules/to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==", + "dependencies": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/global-modules": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/global-modules/-/global-modules-1.0.0.tgz", + "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==", + "dependencies": { + "global-prefix": "^1.0.1", + "is-windows": "^1.0.1", + "resolve-dir": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/global-prefix": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/global-prefix/-/global-prefix-1.0.2.tgz", + "integrity": "sha512-5lsx1NUDHtSjfg0eHlmYvZKv8/nVqX4ckFbM+FrGcQ+04KWcWFo9P5MxPZYSzUvyzmdTbI7Eix8Q4IbELDqzKg==", + "dependencies": { + "expand-tilde": "^2.0.2", + "homedir-polyfill": "^1.0.1", + "ini": "^1.3.4", + "is-windows": "^1.0.1", + "which": "^1.2.14" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmmirror.com/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "engines": { + "node": ">=4" + } + }, + "node_modules/globby": { + "version": "10.0.1", + "resolved": "https://registry.npmmirror.com/globby/-/globby-10.0.1.tgz", + "integrity": "sha512-sSs4inE1FB2YQiymcmTv6NWENryABjUNPeWhOvmn4SjtKybglsyPZxFB3U1/+L1bYi0rNZDqCLlHyLYDl1Pq5A==", + "dependencies": { + "@types/glob": "^7.1.1", + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.0.3", + "glob": "^7.1.3", + "ignore": "^5.1.1", + "merge2": "^1.2.3", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/globby/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/globby/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + } + }, + "node_modules/globby/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/glogg": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/glogg/-/glogg-1.0.2.tgz", + "integrity": "sha512-5mwUoSuBk44Y4EshyiqcH95ZntbDdTQqA3QYSrxmzj28Ai0vXBGMH1ApSANH14j2sIRtqCEyg6PfsuP7ElOEDA==", + "dependencies": { + "sparkles": "^1.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dependencies": { + "get-intrinsic": "^1.1.3" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmmirror.com/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + }, + "node_modules/graceful-readlink": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", + "integrity": "sha512-8tLu60LgxF6XpdbK8OW3FA+IfTNBn1ZHGHKF4KQbEeSkajYw5PlYJcKluntgegDPTg8UkHjpet1T82vk6TQ68w==" + }, + "node_modules/gulp": { + "version": "4.0.2", + "resolved": "https://registry.npmmirror.com/gulp/-/gulp-4.0.2.tgz", + "integrity": "sha512-dvEs27SCZt2ibF29xYgmnwwCYZxdxhQ/+LFWlbAW8y7jt68L/65402Lz3+CKy0Ov4rOs+NERmDq7YlZaDqUIfA==", + "dependencies": { + "glob-watcher": "^5.0.3", + "gulp-cli": "^2.2.0", + "undertaker": "^1.2.1", + "vinyl-fs": "^3.0.0" + }, + "bin": { + "gulp": "bin/gulp.js" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/gulp-babel": { + "version": "8.0.0", + "resolved": "https://registry.npmmirror.com/gulp-babel/-/gulp-babel-8.0.0.tgz", + "integrity": "sha512-oomaIqDXxFkg7lbpBou/gnUkX51/Y/M2ZfSjL2hdqXTAlSWZcgZtd2o0cOH0r/eE8LWD0+Q/PsLsr2DKOoqToQ==", + "dependencies": { + "plugin-error": "^1.0.1", + "replace-ext": "^1.0.0", + "through2": "^2.0.0", + "vinyl-sourcemaps-apply": "^0.2.0" + }, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/gulp-babel/node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/gulp-clean-css": { + "version": "4.3.0", + "resolved": "https://registry.npmmirror.com/gulp-clean-css/-/gulp-clean-css-4.3.0.tgz", + "integrity": "sha512-mGyeT3qqFXTy61j0zOIciS4MkYziF2U594t2Vs9rUnpkEHqfu6aDITMp8xOvZcvdX61Uz3y1mVERRYmjzQF5fg==", + "dependencies": { + "clean-css": "4.2.3", + "plugin-error": "1.0.1", + "through2": "3.0.1", + "vinyl-sourcemaps-apply": "0.2.1" + } + }, + "node_modules/gulp-cli": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/gulp-cli/-/gulp-cli-2.3.0.tgz", + "integrity": "sha512-zzGBl5fHo0EKSXsHzjspp3y5CONegCm8ErO5Qh0UzFzk2y4tMvzLWhoDokADbarfZRL2pGpRp7yt6gfJX4ph7A==", + "dependencies": { + "ansi-colors": "^1.0.1", + "archy": "^1.0.0", + "array-sort": "^1.0.0", + "color-support": "^1.1.3", + "concat-stream": "^1.6.0", + "copy-props": "^2.0.1", + "fancy-log": "^1.3.2", + "gulplog": "^1.0.0", + "interpret": "^1.4.0", + "isobject": "^3.0.1", + "liftoff": "^3.1.0", + "matchdep": "^2.0.0", + "mute-stdout": "^1.0.0", + "pretty-hrtime": "^1.0.0", + "replace-homedir": "^1.0.0", + "semver-greatest-satisfied-range": "^1.1.0", + "v8flags": "^3.2.0", + "yargs": "^7.1.0" + }, + "bin": { + "gulp": "bin/gulp.js" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/gulp-cli/node_modules/ansi-colors": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/ansi-colors/-/ansi-colors-1.1.0.tgz", + "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", + "dependencies": { + "ansi-wrap": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-cli/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-cli/node_modules/camelcase": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/camelcase/-/camelcase-3.0.0.tgz", + "integrity": "sha512-4nhGqUkc4BqbBBB4Q6zLuD7lzzrHYrjKGeYaEji/3tFR5VdJu9v+LilhGIVe8wxEJPPOeWo7eg8dwY13TZ1BNg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-cli/node_modules/cliui": { + "version": "3.2.0", + "resolved": "https://registry.npmmirror.com/cliui/-/cliui-3.2.0.tgz", + "integrity": "sha512-0yayqDxWQbqk3ojkYqUKqaAQ6AfNKeKWRNA8kR0WXzAsdHpP4BIaOmMAG87JGuO6qcobyW4GjxHd9PmhEd+T9w==", + "dependencies": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wrap-ansi": "^2.0.0" + } + }, + "node_modules/gulp-cli/node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-cli/node_modules/get-caller-file": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/get-caller-file/-/get-caller-file-1.0.3.tgz", + "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==" + }, + "node_modules/gulp-cli/node_modules/is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==", + "dependencies": { + "number-is-nan": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-cli/node_modules/string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==", + "dependencies": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-cli/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-cli/node_modules/wrap-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "integrity": "sha512-vAaEaDM946gbNpH5pLVNR+vX2ht6n0Bt3GXwVB1AuAqZosOvHNF3P7wDnh8KLkSqgUh0uh77le7Owgoz+Z9XBw==", + "dependencies": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-cli/node_modules/y18n": { + "version": "3.2.2", + "resolved": "https://registry.npmmirror.com/y18n/-/y18n-3.2.2.tgz", + "integrity": "sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ==" + }, + "node_modules/gulp-cli/node_modules/yargs": { + "version": "7.1.2", + "resolved": "https://registry.npmmirror.com/yargs/-/yargs-7.1.2.tgz", + "integrity": "sha512-ZEjj/dQYQy0Zx0lgLMLR8QuaqTihnxirir7EwUHp1Axq4e3+k8jXU5K0VLbNvedv1f4EWtBonDIZm0NUr+jCcA==", + "dependencies": { + "camelcase": "^3.0.0", + "cliui": "^3.2.0", + "decamelize": "^1.1.1", + "get-caller-file": "^1.0.1", + "os-locale": "^1.4.0", + "read-pkg-up": "^1.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^1.0.2", + "which-module": "^1.0.0", + "y18n": "^3.2.1", + "yargs-parser": "^5.0.1" + } + }, + "node_modules/gulp-cli/node_modules/yargs-parser": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-5.0.1.tgz", + "integrity": "sha512-wpav5XYiddjXxirPoCTUPbqM0PXvJ9hiBMvuJgInvo4/lAOTZzUprArw17q2O1P2+GHhbBr18/iQwjL5Z9BqfA==", + "dependencies": { + "camelcase": "^3.0.0", + "object.assign": "^4.1.0" + } + }, + "node_modules/gulp-concat": { + "version": "2.6.1", + "resolved": "https://registry.npmmirror.com/gulp-concat/-/gulp-concat-2.6.1.tgz", + "integrity": "sha512-a2scActrQrDBpBbR3WUZGyGS1JEPLg5PZJdIa7/Bi3GuKAmPYDK6SFhy/NZq5R8KsKKFvtfR0fakbUCcKGCCjg==", + "dependencies": { + "concat-with-sourcemaps": "^1.0.0", + "through2": "^2.0.0", + "vinyl": "^2.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/gulp-concat/node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/gulp-footer": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/gulp-footer/-/gulp-footer-2.1.0.tgz", + "integrity": "sha512-CK3nRBP3PG59XN2L1rDLkBHA7goYsW+tJuVQccLP9jq3mpBT2kuRq0ImgNjrUkDbF948aCVQH4J7uIEqiZ2MHA==", + "dependencies": { + "lodash": "^4.17.21", + "map-stream": "^0.0.7" + } + }, + "node_modules/gulp-gzip": { + "version": "1.4.2", + "resolved": "https://registry.npmmirror.com/gulp-gzip/-/gulp-gzip-1.4.2.tgz", + "integrity": "sha512-ZIxfkUwk2XmZPTT9pPHrHUQlZMyp9nPhg2sfoeN27mBGpi7OaHnOD+WCN41NXjfJQ69lV1nQ9LLm1hYxx4h3UQ==", + "dependencies": { + "ansi-colors": "^1.0.1", + "bytes": "^3.0.0", + "fancy-log": "^1.3.2", + "plugin-error": "^1.0.0", + "stream-to-array": "^2.3.0", + "through2": "^2.0.3" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/gulp-gzip/node_modules/ansi-colors": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/ansi-colors/-/ansi-colors-1.1.0.tgz", + "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", + "dependencies": { + "ansi-wrap": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-gzip/node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/gulp-header": { + "version": "2.0.9", + "resolved": "https://registry.npmmirror.com/gulp-header/-/gulp-header-2.0.9.tgz", + "integrity": "sha512-LMGiBx+qH8giwrOuuZXSGvswcIUh0OiioNkUpLhNyvaC6/Ga8X6cfAeme2L5PqsbXMhL8o8b/OmVqIQdxprhcQ==", + "dependencies": { + "concat-with-sourcemaps": "^1.1.0", + "lodash.template": "^4.5.0", + "map-stream": "0.0.7", + "through2": "^2.0.0" + } + }, + "node_modules/gulp-header/node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/gulp-htmlmin": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/gulp-htmlmin/-/gulp-htmlmin-5.0.1.tgz", + "integrity": "sha512-ASlyDPZOSKjHYUifYV0rf9JPDflN9IRIb8lw2vRqtYMC4ljU3zAmnnaVXwFQ3H+CfXxZSUesZ2x7jrnPJu93jA==", + "dependencies": { + "html-minifier": "^3.5.20", + "plugin-error": "^1.0.1", + "through2": "^2.0.3" + }, + "engines": { + "node": ">= 6.0" + } + }, + "node_modules/gulp-htmlmin/node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/gulp-javascript-obfuscator": { + "version": "1.1.6", + "resolved": "https://registry.npmmirror.com/gulp-javascript-obfuscator/-/gulp-javascript-obfuscator-1.1.6.tgz", + "integrity": "sha512-oiROhi7Zlu/0fM2h20jBFPaDOZicilT6kN+97Si82yieeFqr6l70o2R3gZ2Ah0u8v5IqGa+Pt8c2q3UnkMuk2A==", + "dependencies": { + "javascript-obfuscator": "latest", + "plugin-error": "^1.0.1", + "through2": "^2.0.0", + "vinyl": "^2.2.0" + } + }, + "node_modules/gulp-javascript-obfuscator/node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/gulp-jshint": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/gulp-jshint/-/gulp-jshint-2.1.0.tgz", + "integrity": "sha512-sP3NK8Y/1e58O0PH9t6s7DAr/lKDSUbIY207oWSeufM6/VclB7jJrIBcPCsyhrFTCDUl9DauePbt6VqP2vPM5w==", + "dependencies": { + "lodash": "^4.12.0", + "minimatch": "^3.0.3", + "plugin-error": "^0.1.2", + "rcloader": "^0.2.2", + "through2": "^2.0.0" + }, + "engines": { + "node": ">= 0.4.0" + }, + "peerDependencies": { + "jshint": "2.x" + } + }, + "node_modules/gulp-jshint/node_modules/arr-diff": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/arr-diff/-/arr-diff-1.1.0.tgz", + "integrity": "sha512-OQwDZUqYaQwyyhDJHThmzId8daf4/RFNLaeh3AevmSeZ5Y7ug4Ga/yKc6l6kTZOBW781rCj103ZuTh8GAsB3+Q==", + "dependencies": { + "arr-flatten": "^1.0.1", + "array-slice": "^0.2.3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-jshint/node_modules/arr-union": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/arr-union/-/arr-union-2.1.0.tgz", + "integrity": "sha512-t5db90jq+qdgk8aFnxEkjqta0B/GHrM1pxzuuZz2zWsOXc5nKu3t+76s/PQBA8FTcM/ipspIH9jWG4OxCBc2eA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-jshint/node_modules/array-slice": { + "version": "0.2.3", + "resolved": "https://registry.npmmirror.com/array-slice/-/array-slice-0.2.3.tgz", + "integrity": "sha512-rlVfZW/1Ph2SNySXwR9QYkChp8EkOEiTMO5Vwx60usw04i4nWemkm9RXmQqgkQFaLHsqLuADvjp6IfgL9l2M8Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-jshint/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/gulp-jshint/node_modules/extend-shallow": { + "version": "1.1.4", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-1.1.4.tgz", + "integrity": "sha512-L7AGmkO6jhDkEBBGWlLtftA80Xq8DipnrRPr0pyi7GQLXkaq9JYA4xF4z6qnadIC6euiTDKco0cGSU9muw+WTw==", + "dependencies": { + "kind-of": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-jshint/node_modules/kind-of": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-1.1.0.tgz", + "integrity": "sha512-aUH6ElPnMGon2/YkxRIigV32MOpTVcoXQ1Oo8aYn40s+sJ3j+0gFZsT8HKDcxNy7Fi9zuquWtGaGAahOdv5p/g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-jshint/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/gulp-jshint/node_modules/plugin-error": { + "version": "0.1.2", + "resolved": "https://registry.npmmirror.com/plugin-error/-/plugin-error-0.1.2.tgz", + "integrity": "sha512-WzZHcm4+GO34sjFMxQMqZbsz3xiNEgonCskQ9v+IroMmYgk/tas8dG+Hr2D6IbRPybZ12oWpzE/w3cGJ6FJzOw==", + "dependencies": { + "ansi-cyan": "^0.1.1", + "ansi-red": "^0.1.1", + "arr-diff": "^1.0.1", + "arr-union": "^2.0.1", + "extend-shallow": "^1.1.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-jshint/node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/gulp-minify-css": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/gulp-minify-css/-/gulp-minify-css-1.2.4.tgz", + "integrity": "sha512-byBqFQM/HrZoUVYihu/03iYH4m7U5TjSGhr6/7JvpMHh9+woewsCtEp6Noif2VXB+idDoM4ECd9sw+St+KFqsg==", + "deprecated": "Please use gulp-clean-css", + "dependencies": { + "clean-css": "^3.3.3", + "gulp-util": "^3.0.5", + "object-assign": "^4.0.1", + "readable-stream": "^2.0.0", + "vinyl-bufferstream": "^1.0.1", + "vinyl-sourcemaps-apply": "^0.2.0" + } + }, + "node_modules/gulp-minify-css/node_modules/clean-css": { + "version": "3.4.28", + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-3.4.28.tgz", + "integrity": "sha512-aTWyttSdI2mYi07kWqHi24NUU9YlELFKGOAgFzZjDN1064DMAOy2FBuoyGmkKRlXkbpXd0EVHmiVkbKhKoirTw==", + "dependencies": { + "commander": "2.8.x", + "source-map": "0.4.x" + }, + "bin": { + "cleancss": "bin/cleancss" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-minify-css/node_modules/commander": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.8.1.tgz", + "integrity": "sha512-+pJLBFVk+9ZZdlAOB5WuIElVPPth47hILFkmGym57aq8kwxsowvByvB0DHs1vQAhyMZzdcpTtF0VDKGkSDR4ZQ==", + "dependencies": { + "graceful-readlink": ">= 1.0.0" + }, + "engines": { + "node": ">= 0.6.x" + } + }, + "node_modules/gulp-minify-css/node_modules/source-map": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", + "integrity": "sha512-Y8nIfcb1s/7DcobUz1yOO1GSp7gyL+D9zLHDehT7iRESqGSxjJ448Sg7rvfgsRJCnKLdSl11uGf0s9X80cH0/A==", + "dependencies": { + "amdefine": ">=0.0.4" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/gulp-plugin-extras": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/gulp-plugin-extras/-/gulp-plugin-extras-0.3.0.tgz", + "integrity": "sha512-I/kOBSpo61QsGQZcqozZYEnDseKvpudUafVVWDLYgBFAUJ37kW5R8Sjw9cMYzpGyPUfEYOeoY4p+dkfLqgyJUQ==", + "dependencies": { + "@types/vinyl": "^2.0.9", + "chalk": "^5.3.0", + "easy-transform-stream": "^1.0.1" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/gulp-plugin-extras/node_modules/chalk": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/gulp-rename": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/gulp-rename/-/gulp-rename-2.0.0.tgz", + "integrity": "sha512-97Vba4KBzbYmR5VBs9mWmK+HwIf5mj+/zioxfZhOKeXtx5ZjBk57KFlePf5nxq9QsTtFl0ejnHE3zTC9MHXqyQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/gulp-replace": { + "version": "1.1.4", + "resolved": "https://registry.npmmirror.com/gulp-replace/-/gulp-replace-1.1.4.tgz", + "integrity": "sha512-SVSF7ikuWKhpAW4l4wapAqPPSToJoiNKsbDoUnRrSgwZHH7lH8pbPeQj1aOVYQrbZKhfSVBxVW+Py7vtulRktw==", + "dependencies": { + "@types/node": "*", + "@types/vinyl": "^2.0.4", + "istextorbinary": "^3.0.0", + "replacestream": "^4.0.3", + "yargs-parser": ">=5.0.0-security.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/gulp-rev": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/gulp-rev/-/gulp-rev-11.0.0.tgz", + "integrity": "sha512-KJSyw0qMQBL0xB3YhYrdinelbnWnYHDxj3jqVL2Xvn8bUA1lh7py5/2Z6fUgIWiX+F1XyKYVxI8yy9asIAvZJA==", + "dependencies": { + "gulp-plugin-extras": "^0.3.0", + "modify-filename": "^2.0.0", + "rev-hash": "^4.1.0", + "rev-path": "^3.0.0", + "sort-keys": "^5.0.0", + "vinyl": "^3.0.0", + "vinyl-file": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + }, + "peerDependencies": { + "gulp": ">=4" + }, + "peerDependenciesMeta": { + "gulp": { + "optional": true + } + } + }, + "node_modules/gulp-rev-all": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/gulp-rev-all/-/gulp-rev-all-4.0.0.tgz", + "integrity": "sha512-qQYY56y6z9jJiZC+KpRtSCzFb/uS7bIGUB3tRiCyyQYr/Si3QkXX+t+UAceZ650d7y6yaqoO8xFKPRGHClXrJA==", + "dependencies": { + "chalk": "^5.2.0", + "easy-transform-stream": "^1.0.0", + "fancy-log": "^2.0.0", + "isbinaryfile": "^5.0.0", + "plugin-error": "^2.0.1", + "vinyl": "^3.0.0" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/gulp-rev-all/node_modules/ansi-colors": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-1.1.0.tgz", + "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", + "dependencies": { + "ansi-wrap": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-rev-all/node_modules/chalk": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", + "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/gulp-rev-all/node_modules/fancy-log": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-2.0.0.tgz", + "integrity": "sha512-9CzxZbACXMUXW13tS0tI8XsGGmxWzO2DmYrGuBJOJ8k8q2K7hwfJA5qHjuPPe8wtsco33YR9wc+Rlr5wYFvhSA==", + "dependencies": { + "color-support": "^1.1.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/gulp-rev-all/node_modules/plugin-error": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-2.0.1.tgz", + "integrity": "sha512-zMakqvIDyY40xHOvzXka0kUvf40nYIuwRE8dWhti2WtjQZ31xAgBZBhxsK7vK3QbRXS1Xms/LO7B5cuAsfB2Gg==", + "dependencies": { + "ansi-colors": "^1.0.1" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/gulp-rev-all/node_modules/replace-ext": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-2.0.0.tgz", + "integrity": "sha512-UszKE5KVK6JvyD92nzMn9cDapSk6w/CaFZ96CnmDMUqH9oowfxF/ZjRITD25H4DnOQClLA4/j7jLGXXLVKxAug==", + "engines": { + "node": ">= 10" + } + }, + "node_modules/gulp-rev-all/node_modules/vinyl": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz", + "integrity": "sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g==", + "dependencies": { + "clone": "^2.1.2", + "clone-stats": "^1.0.0", + "remove-trailing-separator": "^1.1.0", + "replace-ext": "^2.0.0", + "teex": "^1.0.1" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/gulp-rev/node_modules/replace-ext": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-2.0.0.tgz", + "integrity": "sha512-UszKE5KVK6JvyD92nzMn9cDapSk6w/CaFZ96CnmDMUqH9oowfxF/ZjRITD25H4DnOQClLA4/j7jLGXXLVKxAug==", + "engines": { + "node": ">= 10" + } + }, + "node_modules/gulp-rev/node_modules/vinyl": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz", + "integrity": "sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g==", + "dependencies": { + "clone": "^2.1.2", + "clone-stats": "^1.0.0", + "remove-trailing-separator": "^1.1.0", + "replace-ext": "^2.0.0", + "teex": "^1.0.1" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/gulp-uglify": { + "version": "3.0.2", + "resolved": "https://registry.npmmirror.com/gulp-uglify/-/gulp-uglify-3.0.2.tgz", + "integrity": "sha512-gk1dhB74AkV2kzqPMQBLA3jPoIAPd/nlNzP2XMDSG8XZrqnlCiDGAqC+rZOumzFvB5zOphlFh6yr3lgcAb/OOg==", + "dependencies": { + "array-each": "^1.0.1", + "extend-shallow": "^3.0.2", + "gulplog": "^1.0.0", + "has-gulplog": "^0.1.0", + "isobject": "^3.0.1", + "make-error-cause": "^1.1.1", + "safe-buffer": "^5.1.2", + "through2": "^2.0.0", + "uglify-js": "^3.0.5", + "vinyl-sourcemaps-apply": "^0.2.0" + } + }, + "node_modules/gulp-uglify-es": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/gulp-uglify-es/-/gulp-uglify-es-3.0.0.tgz", + "integrity": "sha512-dQ3czMFFojNgCajcrYl0oa98+YayaQ8kXRdaacpZRZ3iw2sdVURfdt8y8Ki1ogZGQqw8BUawnB7V6NkanxqnDg==", + "dependencies": { + "o-stream": "^0.3.0", + "plugin-error": "^1.0.1", + "terser": "^5.7.1", + "vinyl": "^2.2.1", + "vinyl-sourcemaps-apply": "^0.2.1" + } + }, + "node_modules/gulp-uglify/node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/gulp-util": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/gulp-util/-/gulp-util-3.0.8.tgz", + "integrity": "sha512-q5oWPc12lwSFS9h/4VIjG+1NuNDlJ48ywV2JKItY4Ycc/n1fXJeYPVQsfu5ZrhQi7FGSDBalwUCLar/GyHXKGw==", + "deprecated": "gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5", + "dependencies": { + "array-differ": "^1.0.0", + "array-uniq": "^1.0.2", + "beeper": "^1.0.0", + "chalk": "^1.0.0", + "dateformat": "^2.0.0", + "fancy-log": "^1.1.0", + "gulplog": "^1.0.0", + "has-gulplog": "^0.1.0", + "lodash._reescape": "^3.0.0", + "lodash._reevaluate": "^3.0.0", + "lodash._reinterpolate": "^3.0.0", + "lodash.template": "^3.0.0", + "minimist": "^1.1.0", + "multipipe": "^0.1.2", + "object-assign": "^3.0.0", + "replace-ext": "0.0.1", + "through2": "^2.0.0", + "vinyl": "^0.5.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/gulp-util/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-util/node_modules/ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-util/node_modules/array-differ": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz", + "integrity": "sha512-LeZY+DZDRnvP7eMuQ6LHfCzUGxAAIViUBliK24P3hWXL6y4SortgR6Nim6xrkfSLlmH0+k+9NYNwVC2s53ZrYQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-util/node_modules/chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", + "dependencies": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-util/node_modules/clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/gulp-util/node_modules/clone-stats": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/clone-stats/-/clone-stats-0.0.1.tgz", + "integrity": "sha512-dhUqc57gSMCo6TX85FLfe51eC/s+Im2MLkAgJwfaRRexR2tA4dd3eLEW4L6efzHc2iNorrRRXITifnDLlRrhaA==" + }, + "node_modules/gulp-util/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/gulp-util/node_modules/lodash.template": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-3.6.2.tgz", + "integrity": "sha512-0B4Y53I0OgHUJkt+7RmlDFWKjVAI/YUpWNiL9GQz5ORDr4ttgfQGo+phBWKFLJbBdtOwgMuUkdOHOnPg45jKmQ==", + "dependencies": { + "lodash._basecopy": "^3.0.0", + "lodash._basetostring": "^3.0.0", + "lodash._basevalues": "^3.0.0", + "lodash._isiterateecall": "^3.0.0", + "lodash._reinterpolate": "^3.0.0", + "lodash.escape": "^3.0.0", + "lodash.keys": "^3.0.0", + "lodash.restparam": "^3.0.0", + "lodash.templatesettings": "^3.0.0" + } + }, + "node_modules/gulp-util/node_modules/lodash.templatesettings": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-3.1.1.tgz", + "integrity": "sha512-TcrlEr31tDYnWkHFWDCV3dHYroKEXpJZ2YJYvJdhN+y4AkWMDZ5I4I8XDtUKqSAyG81N7w+I1mFEJtcED+tGqQ==", + "dependencies": { + "lodash._reinterpolate": "^3.0.0", + "lodash.escape": "^3.0.0" + } + }, + "node_modules/gulp-util/node_modules/object-assign": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-3.0.0.tgz", + "integrity": "sha512-jHP15vXVGeVh1HuaA2wY6lxk+whK/x4KBG88VXeRma7CCun7iGD5qPc4eYykQ9sdQvg8jkwFKsSxHln2ybW3xQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-util/node_modules/replace-ext": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-0.0.1.tgz", + "integrity": "sha512-AFBWBy9EVRTa/LhEcG8QDP3FvpwZqmvN2QFDuJswFeaVhWnZMp8q3E6Zd90SR04PlIwfGdyVjNyLPyen/ek5CQ==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/gulp-util/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/gulp-util/node_modules/supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/gulp-util/node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/gulp-util/node_modules/vinyl": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-0.5.3.tgz", + "integrity": "sha512-P5zdf3WB9uzr7IFoVQ2wZTmUwHL8cMZWJGzLBNCHNZ3NB6HTMsYABtt7z8tAGIINLXyAob9B9a1yzVGMFOYKEA==", + "dependencies": { + "clone": "^1.0.0", + "clone-stats": "^0.0.1", + "replace-ext": "0.0.1" + }, + "engines": { + "node": ">= 0.9" + } + }, + "node_modules/gulplog": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/gulplog/-/gulplog-1.0.0.tgz", + "integrity": "sha512-hm6N8nrm3Y08jXie48jsC55eCZz9mnb4OirAStEk2deqeyhXU3C1otDVh+ccttMuc1sBi6RX6ZJ720hs9RCvgw==", + "dependencies": { + "glogg": "^1.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==", + "engines": { + "node": ">=4" + } + }, + "node_modules/har-validator": { + "version": "5.1.5", + "resolved": "https://registry.npmmirror.com/har-validator/-/har-validator-5.1.5.tgz", + "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", + "deprecated": "this library is no longer supported", + "dependencies": { + "ajv": "^6.12.3", + "har-schema": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==", + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-ansi/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-binary2": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/has-binary2/-/has-binary2-1.0.3.tgz", + "integrity": "sha512-G1LWKhDSvhGeAQ8mPVQlqNcOB2sJdwATtZKl2pDKKHfpf/rYj24lkinxf69blJbnsvtqqNU+L3SL50vzZhXOnw==", + "dependencies": { + "isarray": "2.0.1" + } + }, + "node_modules/has-cors": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/has-cors/-/has-cors-1.1.0.tgz", + "integrity": "sha512-g5VNKdkFuUuVCP9gYfDJHjK2nqdQJ7aDLTnycnc2+RvsOQbuLdF5pm7vuE5J76SEBIQjs4kQY/BWq74JUmjbXA==" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-gulplog": { + "version": "0.1.0", + "resolved": "https://registry.npmmirror.com/has-gulplog/-/has-gulplog-0.1.0.tgz", + "integrity": "sha512-+F4GzLjwHNNDEAJW2DC1xXfEoPkRDmUdJ7CBYw4MpqtDwOnqdImJl7GWlpqx+Wko6//J8uKTnIe4wZSv7yCqmw==", + "dependencies": { + "sparkles": "^1.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dependencies": { + "es-define-property": "^1.0.0" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw==", + "dependencies": { + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ==", + "dependencies": { + "is-number": "^3.0.0", + "kind-of": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/is-number/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/has-values/node_modules/kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw==", + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/hasown": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/hasown/-/hasown-2.0.0.tgz", + "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/he": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "bin": { + "he": "bin/he" + } + }, + "node_modules/homedir-polyfill": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", + "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==", + "dependencies": { + "parse-passwd": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmmirror.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==" + }, + "node_modules/html-minifier": { + "version": "3.5.21", + "resolved": "https://registry.npmmirror.com/html-minifier/-/html-minifier-3.5.21.tgz", + "integrity": "sha512-LKUKwuJDhxNa3uf/LPR/KVjm/l3rBqtYeCOAekvG8F1vItxMUpueGd94i/asDDr8/1u7InxzFA5EeGjhhG5mMA==", + "dependencies": { + "camel-case": "3.0.x", + "clean-css": "4.2.x", + "commander": "2.17.x", + "he": "1.2.x", + "param-case": "2.1.x", + "relateurl": "0.2.x", + "uglify-js": "3.4.x" + }, + "bin": { + "html-minifier": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/html-minifier/node_modules/commander": { + "version": "2.17.1", + "resolved": "https://registry.npmmirror.com/commander/-/commander-2.17.1.tgz", + "integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==" + }, + "node_modules/html-minifier/node_modules/uglify-js": { + "version": "3.4.10", + "resolved": "https://registry.npmmirror.com/uglify-js/-/uglify-js-3.4.10.tgz", + "integrity": "sha512-Y2VsbPVs0FIshJztycsO2SfPk7/KAF/T72qzv9u5EpQ4kB2hQoHlhNQTsNyy6ul7lQtqJN/AoWeS23OzEiEFxw==", + "dependencies": { + "commander": "~2.19.0", + "source-map": "~0.6.1" + }, + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/html-minifier/node_modules/uglify-js/node_modules/commander": { + "version": "2.19.0", + "resolved": "https://registry.npmmirror.com/commander/-/commander-2.19.0.tgz", + "integrity": "sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==" + }, + "node_modules/htmlparser2": { + "version": "3.8.3", + "resolved": "https://registry.npmmirror.com/htmlparser2/-/htmlparser2-3.8.3.tgz", + "integrity": "sha512-hBxEg3CYXe+rPIua8ETe7tmG3XDn9B0edOE/e9wH2nLczxzgdu0m0aNHY+5wFZiviLWLdANPJTssa92dMcXQ5Q==", + "peer": true, + "dependencies": { + "domelementtype": "1", + "domhandler": "2.3", + "domutils": "1.5", + "entities": "1.0", + "readable-stream": "1.1" + } + }, + "node_modules/htmlparser2/node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmmirror.com/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", + "peer": true + }, + "node_modules/htmlparser2/node_modules/readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ==", + "peer": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "node_modules/htmlparser2/node_modules/string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmmirror.com/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", + "peer": true + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==", + "dependencies": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + }, + "engines": { + "node": ">=0.8", + "npm": ">=1.3.7" + } + }, + "node_modules/httpntlm": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/httpntlm/-/httpntlm-1.6.1.tgz", + "integrity": "sha512-Tcz3Ct9efvNqw3QdTl3h6IgRRlIQxwKkJELN/aAIGnzi2xvb3pDHdnMs8BrxWLV6OoT4DlVyhzSVhFt/tk0lIw==", + "dependencies": { + "httpreq": ">=0.4.22", + "underscore": "~1.7.0" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/httpreq": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/httpreq/-/httpreq-1.1.1.tgz", + "integrity": "sha512-uhSZLPPD2VXXOSN8Cni3kIsoFHaU2pT/nySEU/fHr/ePbqHYr0jeiQRmUKLEirC09SFPsdMoA7LU7UXMd/w0Kw==", + "engines": { + "node": ">= 6.15.1" + } + }, + "node_modules/humanize-ms": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/humanize-ms/-/humanize-ms-1.2.1.tgz", + "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", + "dependencies": { + "ms": "^2.0.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ignore": { + "version": "5.3.0", + "resolved": "https://registry.npmmirror.com/ignore/-/ignore-5.3.0.tgz", + "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/indexof": { + "version": "0.0.1", + "resolved": "https://registry.npmmirror.com/indexof/-/indexof-0.0.1.tgz", + "integrity": "sha512-i0G7hLJ1z0DE8dsqJa2rycj9dBmNKgXBvotXtZYXakU9oivfB9Uj2ZBC27qqef2U58/ZLwalxa1X/RDCdkHtVg==" + }, + "node_modules/inflection": { + "version": "1.13.4", + "resolved": "https://registry.npmmirror.com/inflection/-/inflection-1.13.4.tgz", + "integrity": "sha512-6I/HUDeYFfuNCVS3td055BaXBwKYuzw7K3ExVMStBowKo9oOAMJIXIHvdyR3iboTCp1b+1i5DSkIZTcwIktuDw==", + "engines": [ + "node >= 0.4.0" + ] + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmmirror.com/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmmirror.com/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" + }, + "node_modules/interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmmirror.com/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/inversify": { + "version": "6.0.1", + "resolved": "https://registry.npmmirror.com/inversify/-/inversify-6.0.1.tgz", + "integrity": "sha512-B3ex30927698TJENHR++8FfEaJGqoWOgI6ZY5Ht/nLUsFCwHn6akbwtnUAPCgUepAnTpe2qHxhDNjoKLyz6rgQ==" + }, + "node_modules/invert-kv": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/invert-kv/-/invert-kv-1.0.0.tgz", + "integrity": "sha512-xgs2NH9AE66ucSq4cNG1nhSFghr5l6tdL15Pk+jl46bmmBapgoaY/AacXyaDznAqmGL99TiLSQgO/XazFSKYeQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ioredis": { + "version": "5.4.2", + "resolved": "https://registry.npmmirror.com/ioredis/-/ioredis-5.4.2.tgz", + "integrity": "sha512-0SZXGNGZ+WzISQ67QDyZ2x0+wVxjjUndtD8oSeik/4ajifeiRufed8fCb8QW8VMyi4MXcS+UO1k/0NGhvq1PAg==", + "dependencies": { + "@ioredis/commands": "^1.1.1", + "cluster-key-slot": "^1.1.0", + "debug": "^4.3.4", + "denque": "^2.1.0", + "lodash.defaults": "^4.2.0", + "lodash.isarguments": "^3.1.0", + "redis-errors": "^1.2.0", + "redis-parser": "^3.0.0", + "standard-as-callback": "^2.1.0" + }, + "engines": { + "node": ">=12.22.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/ioredis" + } + }, + "node_modules/ioredis/node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmmirror.com/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/ioredis/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmmirror.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-absolute": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/is-absolute/-/is-absolute-1.0.0.tgz", + "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==", + "dependencies": { + "is-relative": "^1.0.0", + "is-windows": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-accessor-descriptor": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.1.tgz", + "integrity": "sha512-YBUanLI8Yoihw923YeFUS5fs0fF2f5TSFTNiYAAzhhDscDa3lEqYuz1pDOEP5KvX94I9ey3vsqjJcLVFVU+3QA==", + "dependencies": { + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-arguments": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/is-arguments/-/is-arguments-1.1.1.tgz", + "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmmirror.com/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" + }, + "node_modules/is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmmirror.com/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmmirror.com/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-class-hotfix": { + "version": "0.0.6", + "resolved": "https://registry.npmmirror.com/is-class-hotfix/-/is-class-hotfix-0.0.6.tgz", + "integrity": "sha512-0n+pzCC6ICtVr/WXnN2f03TK/3BfXY7me4cjCAqT8TYXEl0+JBRoqBo94JJHXcyDSLUeWbNX8Fvy5g5RJdAstQ==" + }, + "node_modules/is-core-module": { + "version": "2.13.1", + "resolved": "https://registry.npmmirror.com/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "dependencies": { + "hasown": "^2.0.0" + } + }, + "node_modules/is-data-descriptor": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/is-data-descriptor/-/is-data-descriptor-1.0.1.tgz", + "integrity": "sha512-bc4NlCDiCr28U4aEsQ3Qs2491gVq4V8G7MQyws968ImqjKuYtTJXrl7Vq7jsN7Ly/C3xj5KWFrY7sHNeDkAzXw==", + "dependencies": { + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-descriptor": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-1.0.3.tgz", + "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", + "dependencies": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dependencies": { + "is-plain-object": "^2.0.4" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-extendable/node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-function": { + "version": "1.0.10", + "resolved": "https://registry.npmmirror.com/is-generator-function/-/is-generator-function-1.0.10.tgz", + "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-nan": { + "version": "1.3.2", + "resolved": "https://registry.npmmirror.com/is-nan/-/is-nan-1.3.2.tgz", + "integrity": "sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==", + "dependencies": { + "call-bind": "^1.0.0", + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-negated-glob": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/is-negated-glob/-/is-negated-glob-1.0.0.tgz", + "integrity": "sha512-czXVVn/QEmgvej1f50BZ648vUI+em0xqMq2Sn+QncCLN4zj1UAxlT+kw/6ggQTOaZPd1HqKQGEqbpQVtJucWug==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", + "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-path-cwd": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz", + "integrity": "sha512-cnS56eR9SPAscL77ik76ATVqoPARTqPIVkMDVxRaWH06zT+6+CzIroYRJ0VVvm0Z1zfAvxvz9i/D3Ppjaqt5Nw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-path-in-cwd": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz", + "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", + "dependencies": { + "is-path-inside": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-path-inside": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/is-path-inside/-/is-path-inside-1.0.1.tgz", + "integrity": "sha512-qhsCR/Esx4U4hg/9I19OVUAJkGWtjRYHMRgUMZE2TDdj+Ag+kttZanLupfddNyglzz50cUlmWzUaI37GDfNx/g==", + "dependencies": { + "path-is-inside": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-plain-object": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-3.0.1.tgz", + "integrity": "sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-property": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/is-property/-/is-property-1.0.2.tgz", + "integrity": "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==" + }, + "node_modules/is-relative": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/is-relative/-/is-relative-1.0.0.tgz", + "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==", + "dependencies": { + "is-unc-path": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-type-of": { + "version": "1.4.0", + "resolved": "https://registry.npmmirror.com/is-type-of/-/is-type-of-1.4.0.tgz", + "integrity": "sha512-EddYllaovi5ysMLMEN7yzHEKh8A850cZ7pykrY1aNRQGn/CDjRDE9qEWbIdt7xGEVJmjBXzU/fNnC4ABTm8tEQ==", + "dependencies": { + "core-util-is": "^1.0.2", + "is-class-hotfix": "~0.0.6", + "isstream": "~0.1.2" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.13", + "resolved": "https://registry.npmmirror.com/is-typed-array/-/is-typed-array-1.1.13.tgz", + "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", + "dependencies": { + "which-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" + }, + "node_modules/is-unc-path": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/is-unc-path/-/is-unc-path-1.0.0.tgz", + "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==", + "dependencies": { + "unc-path-regex": "^0.1.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-utf8": { + "version": "0.2.1", + "resolved": "https://registry.npmmirror.com/is-utf8/-/is-utf8-0.2.1.tgz", + "integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==" + }, + "node_modules/is-valid-glob": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/is-valid-glob/-/is-valid-glob-1.0.0.tgz", + "integrity": "sha512-AhiROmoEFDSsjx8hW+5sGwgKVIORcXnrlAx/R0ZSeaPw70Vw0CqkGBBhHGL58Uox2eXnU1AnvXJl1XlyedO5bA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/isarray": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/isarray/-/isarray-2.0.1.tgz", + "integrity": "sha512-c2cu3UxbI+b6kR3fy0nRnAhodsvR9dx7U5+znCOzdj6IfP3upFURTr0Xl5BlQZNKZjEtxrmVyfSdeE3O57smoQ==" + }, + "node_modules/isbinaryfile": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-5.0.2.tgz", + "integrity": "sha512-GvcjojwonMjWbTkfMpnVHVqXW/wKMYDfEpY94/8zy8HFMOqb/VL6oeONq9v87q4ttVlaTLnGXnJD4B5B1OTGIg==", + "engines": { + "node": ">= 18.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/gjtorikian/" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmmirror.com/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==" + }, + "node_modules/istextorbinary": { + "version": "3.3.0", + "resolved": "https://registry.npmmirror.com/istextorbinary/-/istextorbinary-3.3.0.tgz", + "integrity": "sha512-Tvq1W6NAcZeJ8op+Hq7tdZ434rqnMx4CCZ7H0ff83uEloDvVbqAwaMTZcafKGJT0VHkYzuXUiCY4hlXQg6WfoQ==", + "dependencies": { + "binaryextensions": "^2.2.0", + "textextensions": "^3.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jackspeak": { + "version": "2.3.6", + "resolved": "https://registry.npmmirror.com/jackspeak/-/jackspeak-2.3.6.tgz", + "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": ">=14" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/javascript-obfuscator": { + "version": "4.1.0", + "resolved": "https://registry.npmmirror.com/javascript-obfuscator/-/javascript-obfuscator-4.1.0.tgz", + "integrity": "sha512-ckC0VFKQ0/sFtLH9apW/ZLfsP8LuZqZhVEM4VTJ5KLzyLaodW6C1lTU8808eboDmddKyvd2uyRx5bzc0Me0GYg==", + "hasInstallScript": true, + "dependencies": { + "@javascript-obfuscator/escodegen": "2.3.0", + "@javascript-obfuscator/estraverse": "5.4.0", + "acorn": "8.8.2", + "assert": "2.0.0", + "chalk": "4.1.2", + "chance": "1.1.9", + "class-validator": "0.14.0", + "commander": "10.0.0", + "eslint-scope": "7.1.1", + "eslint-visitor-keys": "3.3.0", + "fast-deep-equal": "3.1.3", + "inversify": "6.0.1", + "js-string-escape": "1.0.1", + "md5": "2.3.0", + "mkdirp": "2.1.3", + "multimatch": "5.0.0", + "opencollective-postinstall": "2.0.3", + "process": "0.11.10", + "reflect-metadata": "0.1.13", + "source-map-support": "0.5.21", + "string-template": "1.0.0", + "stringz": "2.1.0", + "tslib": "2.5.0" + }, + "bin": { + "javascript-obfuscator": "bin/javascript-obfuscator" + }, + "engines": { + "node": "^12.22.0 || ^14.0.0 || ^16.0.0 || ^17.0.0 || >=18.0.0" + } + }, + "node_modules/javascript-obfuscator/node_modules/acorn": { + "version": "8.8.2", + "resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.8.2.tgz", + "integrity": "sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/javascript-obfuscator/node_modules/commander": { + "version": "10.0.0", + "resolved": "https://registry.npmmirror.com/commander/-/commander-10.0.0.tgz", + "integrity": "sha512-zS5PnTI22FIRM6ylNW8G4Ap0IEOyk62fhLSD0+uHRT9McRCLGpkVNvao4bjimpK/GShynyQkFFxHhwMcETmduA==", + "engines": { + "node": ">=14" + } + }, + "node_modules/javascript-obfuscator/node_modules/mkdirp": { + "version": "2.1.3", + "resolved": "https://registry.npmmirror.com/mkdirp/-/mkdirp-2.1.3.tgz", + "integrity": "sha512-sjAkg21peAG9HS+Dkx7hlG9Ztx7HLeKnvB3NQRcu/mltCVmvkF0pisbiTSfDVYTT86XEfZrTUosLdZLStquZUw==", + "bin": { + "mkdirp": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/javascript-obfuscator/node_modules/tslib": { + "version": "2.5.0", + "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.5.0.tgz", + "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==" + }, + "node_modules/js-base64": { + "version": "2.6.4", + "resolved": "https://registry.npmmirror.com/js-base64/-/js-base64-2.6.4.tgz", + "integrity": "sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==" + }, + "node_modules/js-string-escape": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/js-string-escape/-/js-string-escape-1.0.1.tgz", + "integrity": "sha512-Smw4xcfIQ5LVjAOuJCvN/zIodzA/BBSsluuoSykP+lUvScIi4U6RJLfwHet5cxFnCswUjISV8oAXaqaJDY3chg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "node_modules/jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==" + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jshint": { + "version": "2.13.6", + "resolved": "https://registry.npmmirror.com/jshint/-/jshint-2.13.6.tgz", + "integrity": "sha512-IVdB4G0NTTeQZrBoM8C5JFVLjV2KtZ9APgybDA1MK73xb09qFs0jCXyQLnCOp1cSZZZbvhq/6mfXHUTaDkffuQ==", + "peer": true, + "dependencies": { + "cli": "~1.0.0", + "console-browserify": "1.1.x", + "exit": "0.1.x", + "htmlparser2": "3.8.x", + "lodash": "~4.17.21", + "minimatch": "~3.0.2", + "strip-json-comments": "1.0.x" + }, + "bin": { + "jshint": "bin/jshint" + } + }, + "node_modules/jshint/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "peer": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/jshint/node_modules/minimatch": { + "version": "3.0.8", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.0.8.tgz", + "integrity": "sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==", + "peer": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/jshint/node_modules/strip-json-comments": { + "version": "1.0.4", + "resolved": "https://registry.npmmirror.com/strip-json-comments/-/strip-json-comments-1.0.4.tgz", + "integrity": "sha512-AOPG8EBc5wAikaG1/7uFCNFJwnKOuQwFTpYBdTW6OvWHeZBQBrAA/amefHGrEiOnCPcLFZK6FUPtWVKpQVIRgg==", + "peer": true, + "bin": { + "strip-json-comments": "cli.js" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/json-schema": { + "version": "0.4.0", + "resolved": "https://registry.npmmirror.com/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, + "node_modules/json-schema-typed": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-7.0.3.tgz", + "integrity": "sha512-7DE8mpG+/fVw+dTpjbxnx47TaMnDfOI1jwft9g1VybltZCduyRQPJPvc+zzKY9WPHxhPWczyFuYa6I8Mw4iU5A==" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==" + }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmmirror.com/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "peer": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsprim": { + "version": "1.4.2", + "resolved": "https://registry.npmmirror.com/jsprim/-/jsprim-1.4.2.tgz", + "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", + "dependencies": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.4.0", + "verror": "1.10.0" + }, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/jstoxml": { + "version": "2.2.9", + "resolved": "https://registry.npmmirror.com/jstoxml/-/jstoxml-2.2.9.tgz", + "integrity": "sha512-OYWlK0j+roh+eyaMROlNbS5cd5R25Y+IUpdl7cNdB8HNrkgwQzIS7L9MegxOiWNBj9dQhA/yAxiMwCC5mwNoBw==" + }, + "node_modules/just-debounce": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/just-debounce/-/just-debounce-1.1.0.tgz", + "integrity": "sha512-qpcRocdkUmf+UTNBYx5w6dexX5J31AKK1OmPwH630a83DdVVUIngk55RSAiIGpQyoH0dlr872VHfPjnQnK1qDQ==" + }, + "node_modules/kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/last-run": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/last-run/-/last-run-1.1.1.tgz", + "integrity": "sha512-U/VxvpX4N/rFvPzr3qG5EtLKEnNI0emvIQB3/ecEwv+8GHaUKbIB8vxv1Oai5FAF0d0r7LXHhLLe5K/yChm5GQ==", + "dependencies": { + "default-resolution": "^2.0.0", + "es6-weak-map": "^2.0.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/lazystream": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/lazystream/-/lazystream-1.0.1.tgz", + "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==", + "dependencies": { + "readable-stream": "^2.0.5" + }, + "engines": { + "node": ">= 0.6.3" + } + }, + "node_modules/lcid": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/lcid/-/lcid-1.0.0.tgz", + "integrity": "sha512-YiGkH6EnGrDGqLMITnGjXtGmNtjoXw9SVUzcaos8RBi7Ps0VBylkq+vOcY9QE5poLasPCR849ucFUkl0UzUyOw==", + "dependencies": { + "invert-kv": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/lead": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/lead/-/lead-1.0.0.tgz", + "integrity": "sha512-IpSVCk9AYvLHo5ctcIXxOBpMWUe+4TKN3VPWAKUbJikkmsGp0VrSM8IttVc32D6J4WUsiPE6aEFRNmIoF/gdow==", + "dependencies": { + "flush-write-stream": "^1.0.2" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/levn": { + "version": "0.3.0", + "resolved": "https://registry.npmmirror.com/levn/-/levn-0.3.0.tgz", + "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "dependencies": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/libphonenumber-js": { + "version": "1.11.1", + "resolved": "https://registry.npmmirror.com/libphonenumber-js/-/libphonenumber-js-1.11.1.tgz", + "integrity": "sha512-Wze1LPwcnzvcKGcRHFGFECTaLzxOtujwpf924difr5zniyYv1C2PiW0419qDR7m8lKDxsImu5mwxFuXhXpjmvw==" + }, + "node_modules/liftoff": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/liftoff/-/liftoff-3.1.0.tgz", + "integrity": "sha512-DlIPlJUkCV0Ips2zf2pJP0unEoT1kwYhiiPUGF3s/jtxTCjziNLoiVVh+jqWOWeFi6mmwQ5fNxvAUyPad4Dfog==", + "dependencies": { + "extend": "^3.0.0", + "findup-sync": "^3.0.0", + "fined": "^1.0.1", + "flagged-respawn": "^1.0.0", + "is-plain-object": "^2.0.4", + "object.map": "^1.0.0", + "rechoir": "^0.6.2", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/liftoff/node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/load-json-file": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/load-json-file/-/load-json-file-1.1.0.tgz", + "integrity": "sha512-cy7ZdNRXdablkXYNI049pthVeXFurRyb9+hA/dZzerZ0pGTx42z+y+ssxBaVV2l70t1muq5IdKhn4UtcoGUY9A==", + "dependencies": { + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "strip-bom": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash._basecopy": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", + "integrity": "sha512-rFR6Vpm4HeCK1WPGvjZSJ+7yik8d8PVUdCJx5rT2pogG4Ve/2ZS7kfmO5l5T2o5V2mqlNIfSF5MZlr1+xOoYQQ==" + }, + "node_modules/lodash._basetostring": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash._basetostring/-/lodash._basetostring-3.0.1.tgz", + "integrity": "sha512-mTzAr1aNAv/i7W43vOR/uD/aJ4ngbtsRaCubp2BfZhlGU/eORUjg/7F6X0orNMdv33JOrdgGybtvMN/po3EWrA==" + }, + "node_modules/lodash._basevalues": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._basevalues/-/lodash._basevalues-3.0.0.tgz", + "integrity": "sha512-H94wl5P13uEqlCg7OcNNhMQ8KvWSIyqXzOPusRgHC9DK3o54P6P3xtbXlVbRABG4q5gSmp7EDdJ0MSuW9HX6Mg==" + }, + "node_modules/lodash._getnative": { + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", + "integrity": "sha512-RrL9VxMEPyDMHOd9uFbvMe8X55X16/cGM5IgOKgRElQZutpX89iS6vwl64duTV1/16w5JY7tuFNXqoekmh1EmA==" + }, + "node_modules/lodash._isiterateecall": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", + "integrity": "sha512-De+ZbrMu6eThFti/CSzhRvTKMgQToLxbij58LMfM8JnYDNSOjkjTCIaa8ixglOeGh2nyPlakbt5bJWJ7gvpYlQ==" + }, + "node_modules/lodash._reescape": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._reescape/-/lodash._reescape-3.0.0.tgz", + "integrity": "sha512-Sjlavm5y+FUVIF3vF3B75GyXrzsfYV8Dlv3L4mEpuB9leg8N6yf/7rU06iLPx9fY0Mv3khVp9p7Dx0mGV6V5OQ==" + }, + "node_modules/lodash._reevaluate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._reevaluate/-/lodash._reevaluate-3.0.0.tgz", + "integrity": "sha512-OrPwdDc65iJiBeUe5n/LIjd7Viy99bKwDdk7Z5ljfZg0uFRFlfQaCy9tZ4YMAag9WAZmlVpe1iZrkIMMSMHD3w==" + }, + "node_modules/lodash._reinterpolate": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", + "integrity": "sha512-xYHt68QRoYGjeeM/XOE1uJtvXQAgvszfBhjV4yvsQH0u2i9I6cI6c6/eG4Hh3UAOVn0y/xAXwmTzEay49Q//HA==" + }, + "node_modules/lodash._root": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash._root/-/lodash._root-3.0.1.tgz", + "integrity": "sha512-O0pWuFSK6x4EXhM1dhZ8gchNtG7JMqBtrHdoUFUWXD7dJnNSUze1GuyQr5sOs0aCvgGeI3o/OJW8f4ca7FDxmQ==" + }, + "node_modules/lodash.assign": { + "version": "4.2.0", + "resolved": "https://registry.npmmirror.com/lodash.assign/-/lodash.assign-4.2.0.tgz", + "integrity": "sha512-hFuH8TY+Yji7Eja3mGiuAxBqLagejScbG8GbG0j6o9vzn0YL14My+ktnqtZgFTosKymC9/44wP6s7xyuLfnClw==" + }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmmirror.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" + }, + "node_modules/lodash.clonedeep": { + "version": "4.5.0", + "resolved": "https://registry.npmmirror.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", + "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==" + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmmirror.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" + }, + "node_modules/lodash.defaults": { + "version": "4.2.0", + "resolved": "https://registry.npmmirror.com/lodash.defaults/-/lodash.defaults-4.2.0.tgz", + "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==" + }, + "node_modules/lodash.escape": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lodash.escape/-/lodash.escape-3.2.0.tgz", + "integrity": "sha512-n1PZMXgaaDWZDSvuNZ/8XOcYO2hOKDqZel5adtR30VKQAtoWs/5AOeFA0vPV8moiPzlqe7F4cP2tzpFewQyelQ==", + "dependencies": { + "lodash._root": "^3.0.0" + } + }, + "node_modules/lodash.isarguments": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", + "integrity": "sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==" + }, + "node_modules/lodash.isarray": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", + "integrity": "sha512-JwObCrNJuT0Nnbuecmqr5DgtuBppuCvGD9lxjFpAzwnVtdGoDQ1zig+5W8k5/6Gcn0gZ3936HDAlGd28i7sOGQ==" + }, + "node_modules/lodash.isobject": { + "version": "3.0.2", + "resolved": "https://registry.npmmirror.com/lodash.isobject/-/lodash.isobject-3.0.2.tgz", + "integrity": "sha512-3/Qptq2vr7WeJbB4KHUSKlq8Pl7ASXi3UG6CMbBm8WRtXi8+GHm7mKaU3urfpSEzWe2wCIChs6/sdocUsTKJiA==" + }, + "node_modules/lodash.keys": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", + "integrity": "sha512-CuBsapFjcubOGMn3VD+24HOAPxM79tH+V6ivJL3CHYjtrawauDJHUk//Yew9Hvc6e9rbCrURGk8z6PC+8WJBfQ==", + "dependencies": { + "lodash._getnative": "^3.0.0", + "lodash.isarguments": "^3.0.0", + "lodash.isarray": "^3.0.0" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" + }, + "node_modules/lodash.restparam": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/lodash.restparam/-/lodash.restparam-3.6.1.tgz", + "integrity": "sha512-L4/arjjuq4noiUJpt3yS6KIKDtJwNe2fIYgMqyYYKoeIfV1iEqvPwhCx23o+R9dzouGihDAPN1dTIRWa7zk8tw==" + }, + "node_modules/lodash.template": { + "version": "4.5.0", + "resolved": "https://registry.npmmirror.com/lodash.template/-/lodash.template-4.5.0.tgz", + "integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==", + "dependencies": { + "lodash._reinterpolate": "^3.0.0", + "lodash.templatesettings": "^4.0.0" + } + }, + "node_modules/lodash.templatesettings": { + "version": "4.2.0", + "resolved": "https://registry.npmmirror.com/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz", + "integrity": "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==", + "dependencies": { + "lodash._reinterpolate": "^3.0.0" + } + }, + "node_modules/long": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/long/-/long-4.0.0.tgz", + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + }, + "node_modules/lower-case": { + "version": "1.1.4", + "resolved": "https://registry.npmmirror.com/lower-case/-/lower-case-1.1.4.tgz", + "integrity": "sha512-2Fgx1Ycm599x+WGpIYwJOvsjmXFzTSc34IwDWALRA/8AopUKAVPwfJ+h5+f85BCp0PWmmJcWzEpxOpoXycMpdA==" + }, + "node_modules/lru-cache": { + "version": "10.1.0", + "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-10.1.0.tgz", + "integrity": "sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag==", + "engines": { + "node": "14 || >=16.14" + } + }, + "node_modules/luxon": { + "version": "3.5.0", + "resolved": "https://registry.npmmirror.com/luxon/-/luxon-3.5.0.tgz", + "integrity": "sha512-rh+Zjr6DNfUYR3bPwJEnuwDdqMbxZW7LOQfUN4B54+Cl+0o5zaU9RJ6bcidfDtC1cWCZXQ+nvX8bf6bAji37QQ==", + "engines": { + "node": ">=12" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmmirror.com/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" + }, + "node_modules/make-error-cause": { + "version": "1.2.2", + "resolved": "https://registry.npmmirror.com/make-error-cause/-/make-error-cause-1.2.2.tgz", + "integrity": "sha512-4TO2Y3HkBnis4c0dxhAgD/jprySYLACf7nwN6V0HAHDx59g12WlRpUmFy1bRHamjGUEEBrEvCq6SUpsEE2lhUg==", + "dependencies": { + "make-error": "^1.2.0" + } + }, + "node_modules/make-iterator": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/make-iterator/-/make-iterator-1.0.1.tgz", + "integrity": "sha512-pxiuXh0iVEq7VM7KMIhs5gxsfxCux2URptUQaXo4iZZJxBAzTPOLE2BumO5dbfVYq/hBJFBR/a1mFDmOx5AGmw==", + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/make-iterator/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmmirror.com/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/map-stream": { + "version": "0.0.7", + "resolved": "https://registry.npmmirror.com/map-stream/-/map-stream-0.0.7.tgz", + "integrity": "sha512-C0X0KQmGm3N2ftbTGBhSyuydQ+vV1LC3f3zPvT3RXHXNZrvfPZcoXp/N5DOa8vedX/rTMm2CjTtivFg2STJMRQ==" + }, + "node_modules/map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w==", + "dependencies": { + "object-visit": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/matchdep/-/matchdep-2.0.0.tgz", + "integrity": "sha512-LFgVbaHIHMqCRuCZyfCtUOq9/Lnzhi7Z0KFUE2fhD54+JN2jLh3hC02RLkqauJ3U4soU6H1J3tfj/Byk7GoEjA==", + "dependencies": { + "findup-sync": "^2.0.0", + "micromatch": "^3.0.4", + "resolve": "^1.4.0", + "stack-trace": "0.0.10" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/matchdep/node_modules/braces": { + "version": "2.3.2", + "resolved": "https://registry.npmmirror.com/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dependencies": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/braces/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==", + "dependencies": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/fill-range/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/findup-sync": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/findup-sync/-/findup-sync-2.0.0.tgz", + "integrity": "sha512-vs+3unmJT45eczmcAZ6zMJtxN3l/QXeccaXQx5cu/MeJMhewVfoWZqibRkOxPnmoR59+Zy5hjabfQc6JLSah4g==", + "dependencies": { + "detect-file": "^1.0.0", + "is-glob": "^3.1.0", + "micromatch": "^3.0.4", + "resolve-dir": "^1.0.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/matchdep/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw==", + "dependencies": { + "is-extglob": "^2.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/is-number/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/matchdep/node_modules/to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==", + "dependencies": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/md5": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/md5/-/md5-2.3.0.tgz", + "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==", + "dependencies": { + "charenc": "0.0.2", + "crypt": "0.0.2", + "is-buffer": "~1.1.6" + } + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmmirror.com/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmmirror.com/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmmirror.com/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-3.1.0.tgz", + "integrity": "sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmmirror.com/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==" + }, + "node_modules/minipass": { + "version": "7.0.4", + "resolved": "https://registry.npmmirror.com/minipass/-/minipass-7.0.4.tgz", + "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/mixin-deep": { + "version": "1.3.2", + "resolved": "https://registry.npmmirror.com/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "dependencies": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/modify-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/modify-filename/-/modify-filename-2.0.0.tgz", + "integrity": "sha512-VX9/MdgUN9StpSLImJ0+AyV2dxJJtyojIwRHF/Ja942tW7FTzxXI186jDSTk4k5wj2+59a4bRzFnJUgMSi+ygg==", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/moment": { + "version": "2.30.1", + "resolved": "https://registry.npmmirror.com/moment/-/moment-2.30.1.tgz", + "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==", + "engines": { + "node": "*" + } + }, + "node_modules/moment-timezone": { + "version": "0.5.44", + "resolved": "https://registry.npmmirror.com/moment-timezone/-/moment-timezone-0.5.44.tgz", + "integrity": "sha512-nv3YpzI/8lkQn0U6RkLd+f0W/zy/JnoR5/EyPz/dNkPTBjA2jNLCVxaiQ8QpeLymhSZvX0wCL5s27NQWdOPwAw==", + "dependencies": { + "moment": "^2.29.4" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "node_modules/msgpackr": { + "version": "1.11.2", + "resolved": "https://registry.npmmirror.com/msgpackr/-/msgpackr-1.11.2.tgz", + "integrity": "sha512-F9UngXRlPyWCDEASDpTf6c9uNhGPTqnTeLVt7bN+bU1eajoR/8V9ys2BRaV5C/e5ihE6sJ9uPIKaYt6bFuO32g==", + "optionalDependencies": { + "msgpackr-extract": "^3.0.2" + } + }, + "node_modules/msgpackr-extract": { + "version": "3.0.3", + "resolved": "https://registry.npmmirror.com/msgpackr-extract/-/msgpackr-extract-3.0.3.tgz", + "integrity": "sha512-P0efT1C9jIdVRefqjzOQ9Xml57zpOXnIuS+csaB4MdZbTdmGDLo8XhzBG1N7aO11gKDDkJvBLULeFTo46wwreA==", + "hasInstallScript": true, + "optional": true, + "dependencies": { + "node-gyp-build-optional-packages": "5.2.2" + }, + "bin": { + "download-msgpackr-prebuilds": "bin/download-prebuilds.js" + }, + "optionalDependencies": { + "@msgpackr-extract/msgpackr-extract-darwin-arm64": "3.0.3", + "@msgpackr-extract/msgpackr-extract-darwin-x64": "3.0.3", + "@msgpackr-extract/msgpackr-extract-linux-arm": "3.0.3", + "@msgpackr-extract/msgpackr-extract-linux-arm64": "3.0.3", + "@msgpackr-extract/msgpackr-extract-linux-x64": "3.0.3", + "@msgpackr-extract/msgpackr-extract-win32-x64": "3.0.3" + } + }, + "node_modules/multer": { + "version": "1.4.5-lts.1", + "resolved": "https://registry.npmjs.org/multer/-/multer-1.4.5-lts.1.tgz", + "integrity": "sha512-ywPWvcDMeH+z9gQq5qYHCCy+ethsk4goepZ45GLD63fOu0YcNecQxi64nDs3qluZB+murG3/D4dJ7+dGctcCQQ==", + "dependencies": { + "append-field": "^1.0.0", + "busboy": "^1.0.0", + "concat-stream": "^1.5.2", + "mkdirp": "^0.5.4", + "object-assign": "^4.1.1", + "type-is": "^1.6.4", + "xtend": "^4.0.0" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/multer/node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/multimatch": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/multimatch/-/multimatch-5.0.0.tgz", + "integrity": "sha512-ypMKuglUrZUD99Tk2bUQ+xNQj43lPEfAeX2o9cTteAmShXy2VHDJpuwu1o0xqoKCt9jLVAvwyFKdLTPXKAfJyA==", + "dependencies": { + "@types/minimatch": "^3.0.3", + "array-differ": "^3.0.0", + "array-union": "^2.1.0", + "arrify": "^2.0.1", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/multimatch/node_modules/@types/minimatch": { + "version": "3.0.5", + "resolved": "https://registry.npmmirror.com/@types/minimatch/-/minimatch-3.0.5.tgz", + "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==" + }, + "node_modules/multimatch/node_modules/arrify": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/arrify/-/arrify-2.0.1.tgz", + "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", + "engines": { + "node": ">=8" + } + }, + "node_modules/multimatch/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/multimatch/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/multipipe": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/multipipe/-/multipipe-0.1.2.tgz", + "integrity": "sha512-7ZxrUybYv9NonoXgwoOqtStIu18D1c3eFZj27hqgf5kBrBF8Q+tE8V0MW8dKM5QLkQPh1JhhbKgHLY9kifov4Q==", + "dependencies": { + "duplexer2": "0.0.2" + } + }, + "node_modules/mute-stdout": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/mute-stdout/-/mute-stdout-1.0.1.tgz", + "integrity": "sha512-kDcwXR4PS7caBpuRYYBUz9iVixUk3anO3f5OYFiIPwK/20vCzKCHyKoulbiDY1S53zD2bxUpxN/IJ+TnXjfvxg==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/mysql2": { + "version": "2.3.3", + "resolved": "https://registry.npmmirror.com/mysql2/-/mysql2-2.3.3.tgz", + "integrity": "sha512-wxJUev6LgMSgACDkb/InIFxDprRa6T95+VEoR+xPvtngtccNH2dGjEB/fVZ8yg1gWv1510c9CvXuJHi5zUm0ZA==", + "dependencies": { + "denque": "^2.0.1", + "generate-function": "^2.3.1", + "iconv-lite": "^0.6.3", + "long": "^4.0.0", + "lru-cache": "^6.0.0", + "named-placeholders": "^1.1.2", + "seq-queue": "^0.0.5", + "sqlstring": "^2.3.2" + }, + "engines": { + "node": ">= 8.0" + } + }, + "node_modules/mysql2/node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/mysql2/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mz": { + "version": "2.7.0", + "resolved": "https://registry.npmmirror.com/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "node_modules/named-placeholders": { + "version": "1.1.3", + "resolved": "https://registry.npmmirror.com/named-placeholders/-/named-placeholders-1.1.3.tgz", + "integrity": "sha512-eLoBxg6wE/rZkJPhU/xRX1WTpkFEwDJEN96oxFrTsqBdbT5ec295Q+CoHrL9IT0DipqKhmGcaZmwOt8OON5x1w==", + "dependencies": { + "lru-cache": "^7.14.1" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/named-placeholders/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "engines": { + "node": ">=12" + } + }, + "node_modules/nan": { + "version": "2.19.0", + "resolved": "https://registry.npmmirror.com/nan/-/nan-2.19.0.tgz", + "integrity": "sha512-nO1xXxfh/RWNxfd/XPfbIfFk5vgLsAxUR9y5O0cHMJu/AW9U95JLXqthYHjEp+8gQ5p96K9jUp8nbVOxCdRbtw==", + "optional": true + }, + "node_modules/nanomatch": { + "version": "1.2.13", + "resolved": "https://registry.npmmirror.com/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "dependencies": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/nanomatch/node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmmirror.com/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/next-tick": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/next-tick/-/next-tick-1.1.0.tgz", + "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==" + }, + "node_modules/nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmmirror.com/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" + }, + "node_modules/no-case": { + "version": "2.3.2", + "resolved": "https://registry.npmmirror.com/no-case/-/no-case-2.3.2.tgz", + "integrity": "sha512-rmTZ9kz+f3rCvK2TD1Ue/oZlns7OGoIWP4fc3llxxRXlOkHKoWPPWJOfFYpITabSow43QJbRIoHQXtt10VldyQ==", + "dependencies": { + "lower-case": "^1.1.1" + } + }, + "node_modules/node-gyp-build-optional-packages": { + "version": "5.2.2", + "resolved": "https://registry.npmmirror.com/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.2.2.tgz", + "integrity": "sha512-s+w+rBWnpTMwSFbaE0UXsRlg7hU4FjekKU4eyAih5T8nJuNZT1nNsskXpxmeqSK9UzkBl6UgRlnKc8hz8IEqOw==", + "optional": true, + "dependencies": { + "detect-libc": "^2.0.1" + }, + "bin": { + "node-gyp-build-optional-packages": "bin.js", + "node-gyp-build-optional-packages-optional": "optional.js", + "node-gyp-build-optional-packages-test": "build-test.js" + } + }, + "node_modules/node-hex": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/node-hex/-/node-hex-1.0.1.tgz", + "integrity": "sha512-iwpZdvW6Umz12ICmu9IYPRxg0tOLGmU3Tq2tKetejCj3oZd7b2nUXwP3a7QA5M9glWy8wlPS1G3RwM/CdsUbdQ==", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/node-releases": { + "version": "2.0.19", + "resolved": "https://registry.npmmirror.com/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==" + }, + "node_modules/nodemailer": { + "version": "6.9.14", + "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.14.tgz", + "integrity": "sha512-Dobp/ebDKBvz91sbtRKhcznLThrKxKt97GI2FAlAyy+fk19j73Uz3sBXolVtmcXjaorivqsbbbjDY+Jkt4/bQA==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/nodemailer-fetch": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/nodemailer-fetch/-/nodemailer-fetch-1.6.0.tgz", + "integrity": "sha512-P7S5CEVGAmDrrpn351aXOLYs1R/7fD5NamfMCHyi6WIkbjS2eeZUB/TkuvpOQr0bvRZicVqo59+8wbhR3yrJbQ==" + }, + "node_modules/nodemailer-shared": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/nodemailer-shared/-/nodemailer-shared-1.1.0.tgz", + "integrity": "sha512-68xW5LSyPWv8R0GLm6veAvm7E+XFXkVgvE3FW0FGxNMMZqMkPFeGDVALfR1DPdSfcoO36PnW7q5AAOgFImEZGg==", + "dependencies": { + "nodemailer-fetch": "1.6.0" + } + }, + "node_modules/nodemailer-smtp-transport": { + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/nodemailer-smtp-transport/-/nodemailer-smtp-transport-2.7.4.tgz", + "integrity": "sha512-1e86YhJ633OZWk3OHWS5TpuoYXG/LtY2/RzNiB5+EkFifDdqHCNHBnExd5cobx0ZSHJLNGM8EKnDuHRFIjFi6Q==", + "dependencies": { + "nodemailer-shared": "1.1.0", + "nodemailer-wellknown": "0.1.10", + "smtp-connection": "2.12.0" + } + }, + "node_modules/nodemailer-wellknown": { + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/nodemailer-wellknown/-/nodemailer-wellknown-0.1.10.tgz", + "integrity": "sha512-/VV4mjAEjfm2fn0loUvrpjvugw5rgurNjPO4WU24CuVSoeumsyLOTgaEWG8WoGdPxh1biOAp5JxDoy1hlA2zsw==" + }, + "node_modules/normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmmirror.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dependencies": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/notepack.io": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/notepack.io/-/notepack.io-2.2.0.tgz", + "integrity": "sha512-9b5w3t5VSH6ZPosoYnyDONnUTF8o0UkBw7JLA6eBlYJWyGT1Q3vQa8Hmuj1/X6RYvHjjygBDgw6fJhe0JEojfw==" + }, + "node_modules/now-and-later": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/now-and-later/-/now-and-later-2.0.1.tgz", + "integrity": "sha512-KGvQ0cB70AQfg107Xvs/Fbu+dGmZoTRJp2TaPwcwQm3/7PteUyN2BCgk8KBMPGBUXZdVwyWS8fDCGFygBm19UQ==", + "dependencies": { + "once": "^1.3.2" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/o-stream": { + "version": "0.3.0", + "resolved": "https://registry.npmmirror.com/o-stream/-/o-stream-0.3.0.tgz", + "integrity": "sha512-gbzl6qCJZ609x/M2t25HqCYQagFzWYCtQ84jcuObGr+V8D1Am4EVubkF4J+XFs6ukfiv96vNeiBb8FrbbMZYiQ==" + }, + "node_modules/oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmmirror.com/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", + "engines": { + "node": "*" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmmirror.com/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmmirror.com/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ==", + "dependencies": { + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-copy/node_modules/is-descriptor": { + "version": "0.1.7", + "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-0.1.7.tgz", + "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", + "dependencies": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object-copy/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.1", + "resolved": "https://registry.npmmirror.com/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==" + }, + "node_modules/object-is": { + "version": "1.1.6", + "resolved": "https://registry.npmmirror.com/object-is/-/object-is-1.1.6.tgz", + "integrity": "sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA==", + "dependencies": { + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object.assign": { + "version": "4.1.5", + "resolved": "https://registry.npmmirror.com/object.assign/-/object.assign-4.1.5.tgz", + "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", + "dependencies": { + "call-bind": "^1.0.5", + "define-properties": "^1.2.1", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.defaults": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/object.defaults/-/object.defaults-1.1.0.tgz", + "integrity": "sha512-c/K0mw/F11k4dEUBMW8naXUuBuhxRCfG7W+yFy8EcijU/rSmazOUd1XAEEe6bC0OuXY4HUKjTJv7xbxIMqdxrA==", + "dependencies": { + "array-each": "^1.0.1", + "array-slice": "^1.0.0", + "for-own": "^1.0.0", + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object.map": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/object.map/-/object.map-1.0.1.tgz", + "integrity": "sha512-3+mAJu2PLfnSVGHwIWubpOFLscJANBKuB/6A4CxBstc4aqwQY0FWcsppuy4jU5GSB95yES5JHSI+33AWuS4k6w==", + "dependencies": { + "for-own": "^1.0.0", + "make-iterator": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==", + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object.reduce": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/object.reduce/-/object.reduce-1.0.1.tgz", + "integrity": "sha512-naLhxxpUESbNkRqc35oQ2scZSJueHGQNUfMW/0U37IgN6tE2dgDWg3whf+NEliy3F/QysrO48XKUz/nGPe+AQw==", + "dependencies": { + "for-own": "^1.0.0", + "make-iterator": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmmirror.com/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmmirror.com/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/onetime/node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/opencollective-postinstall": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz", + "integrity": "sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==", + "bin": { + "opencollective-postinstall": "index.js" + } + }, + "node_modules/optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmmirror.com/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dependencies": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/optionator/node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmmirror.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" + }, + "node_modules/ordered-read-streams": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/ordered-read-streams/-/ordered-read-streams-1.0.1.tgz", + "integrity": "sha512-Z87aSjx3r5c0ZB7bcJqIgIRX5bxR7A4aSzvIbaxd0oTkWBCOoKfuGHiKj60CHVUgg1Phm5yMZzBdt8XqRs73Mw==", + "dependencies": { + "readable-stream": "^2.0.1" + } + }, + "node_modules/os-locale": { + "version": "1.4.0", + "resolved": "https://registry.npmmirror.com/os-locale/-/os-locale-1.4.0.tgz", + "integrity": "sha512-PRT7ZORmwu2MEFt4/fv3Q+mEfN4zetKxufQrkShY2oGvUms9r8otu5HfdyIFHkYXjO7laNsoVGmM2MANfuTA8g==", + "dependencies": { + "lcid": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/os-name": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/os-name/-/os-name-1.0.3.tgz", + "integrity": "sha512-f5estLO2KN8vgtTRaILIgEGBoBrMnZ3JQ7W9TMZCnOIGwHe8TRGSpcagnWDo+Dfhd/z08k9Xe75hvciJJ8Qaew==", + "dependencies": { + "osx-release": "^1.0.0", + "win-release": "^1.0.0" + }, + "bin": { + "os-name": "cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/osx-release": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/osx-release/-/osx-release-1.1.0.tgz", + "integrity": "sha512-ixCMMwnVxyHFQLQnINhmIpWqXIfS2YOXchwQrk+OFzmo6nDjQ0E4KXAyyUh0T0MZgV4bUhkRrAbVqlE4yLVq4A==", + "dependencies": { + "minimist": "^1.1.0" + }, + "bin": { + "osx-release": "cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/param-case": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/param-case/-/param-case-2.1.1.tgz", + "integrity": "sha512-eQE845L6ot89sk2N8liD8HAuH4ca6Vvr7VWAWwt7+kvvG5aBcPmmphQ68JsEG2qa9n1TykS2DLeMt363AAH8/w==", + "dependencies": { + "no-case": "^2.2.0" + } + }, + "node_modules/parse-filepath": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/parse-filepath/-/parse-filepath-1.0.2.tgz", + "integrity": "sha512-FwdRXKCohSVeXqwtYonZTXtbGJKrn+HNyWDYVcp5yuJlesTwNH4rsmRZ+GrKAPJ5bLpRxESMeS+Rl0VCHRvB2Q==", + "dependencies": { + "is-absolute": "^1.0.0", + "map-cache": "^0.2.0", + "path-root": "^0.1.1" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/parse-json": { + "version": "2.2.0", + "resolved": "https://registry.npmmirror.com/parse-json/-/parse-json-2.2.0.tgz", + "integrity": "sha512-QR/GGaKCkhwk1ePQNYDRKYZ3mwU9ypsKhB0XyFnLQdomyEqk3e8wpW3V5Jp88zbxK4n5ST1nqo+g9juTpownhQ==", + "dependencies": { + "error-ex": "^1.2.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/parse-node-version": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/parse-node-version/-/parse-node-version-1.0.1.tgz", + "integrity": "sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/parse-passwd": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/parse-passwd/-/parse-passwd-1.0.0.tgz", + "integrity": "sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/parseqs": { + "version": "0.0.6", + "resolved": "https://registry.npmmirror.com/parseqs/-/parseqs-0.0.6.tgz", + "integrity": "sha512-jeAGzMDbfSHHA091hr0r31eYfTig+29g3GKKE/PPbEQ65X0lmMwlEoqmhzu0iztID5uJpZsFlUPDP8ThPL7M8w==" + }, + "node_modules/parseuri": { + "version": "0.0.6", + "resolved": "https://registry.npmmirror.com/parseuri/-/parseuri-0.0.6.tgz", + "integrity": "sha512-AUjen8sAkGgao7UyCX6Ahv0gIK2fABKmYjvP4xmy5JaKvcbTRueIqIPHLAfq30xJddqSE033IOMUSOMCcK3Sow==" + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmmirror.com/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-dirname": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/path-dirname/-/path-dirname-1.0.2.tgz", + "integrity": "sha512-ALzNPpyNq9AqXMBjeymIjFDAkAFH06mHJH/cSBHAgU0s4vfpBn6b2nf8tiRLvagKD8RbTpq2FKTBg7cl9l3c7Q==" + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w==" + }, + "node_modules/path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmmirror.com/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" + }, + "node_modules/path-root": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/path-root/-/path-root-0.1.1.tgz", + "integrity": "sha512-QLcPegTHF11axjfojBIoDygmS2E3Lf+8+jI6wOVmNVenrKSo3mFdSGiIgdSHenczw3wPtlVMQaFVwGmM7BJdtg==", + "dependencies": { + "path-root-regex": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-root-regex": { + "version": "0.1.2", + "resolved": "https://registry.npmmirror.com/path-root-regex/-/path-root-regex-0.1.2.tgz", + "integrity": "sha512-4GlJ6rZDhQZFE0DPVKh0e9jmZ5egZfxTkp7bcRDuPlJXbAwhxcl2dINPUAsjLdejqaLsCeg8axcLjIbvBjN4pQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-scurry": { + "version": "1.10.1", + "resolved": "https://registry.npmmirror.com/path-scurry/-/path-scurry-1.10.1.tgz", + "integrity": "sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==", + "dependencies": { + "lru-cache": "^9.1.1 || ^10.0.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmmirror.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/pause-stream": { + "version": "0.0.11", + "resolved": "https://registry.npmmirror.com/pause-stream/-/pause-stream-0.0.11.tgz", + "integrity": "sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==", + "dependencies": { + "through": "~2.3" + } + }, + "node_modules/performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" + }, + "node_modules/pg-connection-string": { + "version": "2.6.2", + "resolved": "https://registry.npmmirror.com/pg-connection-string/-/pg-connection-string-2.6.2.tgz", + "integrity": "sha512-ch6OwaeaPYcova4kKZ15sbJ2hKb/VP48ZD2gE7i1J+L4MspCtBMAx8nMgz7bksc7IojCIIWuEhHibSMFH8m8oA==" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "engines": { + "node": ">=8.6" + } + }, + "node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmmirror.com/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==", + "dependencies": { + "pinkie": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pkg-up": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz", + "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==", + "dependencies": { + "find-up": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-up/node_modules/find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dependencies": { + "locate-path": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-up/node_modules/locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dependencies": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-up/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-up/node_modules/p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dependencies": { + "p-limit": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-up/node_modules/path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/platform": { + "version": "1.3.6", + "resolved": "https://registry.npmmirror.com/platform/-/platform-1.3.6.tgz", + "integrity": "sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg==" + }, + "node_modules/plugin-error": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/plugin-error/-/plugin-error-1.0.1.tgz", + "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", + "dependencies": { + "ansi-colors": "^1.0.1", + "arr-diff": "^4.0.0", + "arr-union": "^3.1.0", + "extend-shallow": "^3.0.2" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/plugin-error/node_modules/ansi-colors": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/ansi-colors/-/ansi-colors-1.1.0.tgz", + "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", + "dependencies": { + "ansi-wrap": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/possible-typed-array-names": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", + "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/pretty-hrtime": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", + "integrity": "sha512-66hKPCr+72mlfiSjlEB1+45IjXSqvVAIy6mocupoww4tBFE9R9IhwwUGoI4G++Tc9Aq+2rxOt0RFU6gPcrte0A==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/process": { + "version": "0.11.10", + "resolved": "https://registry.npmmirror.com/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "node_modules/protobufjs": { + "version": "6.11.4", + "resolved": "https://registry.npmmirror.com/protobufjs/-/protobufjs-6.11.4.tgz", + "integrity": "sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw==", + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": ">=13.7.0", + "long": "^4.0.0" + }, + "bin": { + "pbjs": "bin/pbjs", + "pbts": "bin/pbts" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmmirror.com/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/psl": { + "version": "1.9.0", + "resolved": "https://registry.npmmirror.com/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" + }, + "node_modules/pump": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/pump/-/pump-2.0.1.tgz", + "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/pumpify": { + "version": "1.5.1", + "resolved": "https://registry.npmmirror.com/pumpify/-/pumpify-1.5.1.tgz", + "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", + "dependencies": { + "duplexify": "^3.6.0", + "inherits": "^2.0.3", + "pump": "^2.0.0" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmmirror.com/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/qs": { + "version": "6.11.0", + "resolved": "https://registry.npmmirror.com/qs/-/qs-6.11.0.tgz", + "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmmirror.com/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" + }, + "node_modules/queue-tick": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz", + "integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==" + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.2", + "resolved": "https://registry.npmmirror.com/raw-body/-/raw-body-2.5.2.tgz", + "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/rcfinder": { + "version": "0.1.9", + "resolved": "https://registry.npmmirror.com/rcfinder/-/rcfinder-0.1.9.tgz", + "integrity": "sha512-rhSo812VIVaX7cxl33KkllHRwfLvjZL3lQedWEpQ27YlMFKZbFZsiVdCcQn/Z0FauLWxIpKrNREGuHbJFSi0Lw==", + "dependencies": { + "lodash.clonedeep": "^4.3.2" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/rcloader": { + "version": "0.2.2", + "resolved": "https://registry.npmmirror.com/rcloader/-/rcloader-0.2.2.tgz", + "integrity": "sha512-hSkFcFiLb5buT0X1fNI023M6tn0ywblKzF0hGzVCkTjEggT5tQUZI+fCG71utA7NiEyiBEc3trl/LDFFHzGIrw==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", + "dependencies": { + "lodash.assign": "^4.2.0", + "lodash.isobject": "^3.0.2", + "lodash.merge": "^4.6.0", + "rcfinder": "^0.1.6" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/read-pkg": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/read-pkg/-/read-pkg-1.1.0.tgz", + "integrity": "sha512-7BGwRHqt4s/uVbuyoeejRn4YmFnYZiFl4AuaeXHlgZf3sONF0SOGlxs2Pw8g6hCKupo08RafIO5YXFNOKTfwsQ==", + "dependencies": { + "load-json-file": "^1.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/read-pkg-up": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz", + "integrity": "sha512-WD9MTlNtI55IwYUS27iHh9tK3YoIVhxis8yKhLpTqWtml739uXc9NWTpxoHkfZf3+DkCCsXox94/VWZniuZm6A==", + "dependencies": { + "find-up": "^1.0.0", + "read-pkg": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/read-pkg-up/node_modules/find-up": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/find-up/-/find-up-1.1.2.tgz", + "integrity": "sha512-jvElSjyuo4EMQGoTwo1uJU5pQMwTW5lS1x05zzfJuTIyLR3zwO27LYrxNg+dlvKpGOuGy/MzBdXh80g0ve5+HA==", + "dependencies": { + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/read-pkg-up/node_modules/path-exists": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/path-exists/-/path-exists-2.1.0.tgz", + "integrity": "sha512-yTltuKuhtNeFJKa1PiRzfLAU5182q1y4Eb4XCJ3PBqyzEDkAZRzBrKKBct682ls9reBVHf9udYLN5Nd+K1B9BQ==", + "dependencies": { + "pinkie-promise": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/read-pkg/node_modules/path-type": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/path-type/-/path-type-1.1.0.tgz", + "integrity": "sha512-S4eENJz1pkiQn9Znv33Q+deTOKmbl+jj1Fl+qiP/vYezj+S8x+J3Uo0ISrx/QoEvIlOaDWJhPaRd1flJ9HXZqg==", + "dependencies": { + "graceful-fs": "^4.1.2", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmmirror.com/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/readable-stream/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, + "node_modules/readable-stream/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmmirror.com/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", + "dependencies": { + "resolve": "^1.1.6" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/redis": { + "version": "4.6.13", + "resolved": "https://registry.npmmirror.com/redis/-/redis-4.6.13.tgz", + "integrity": "sha512-MHgkS4B+sPjCXpf+HfdetBwbRz6vCtsceTmw1pHNYJAsYxrfpOP6dz+piJWGos8wqG7qb3vj/Rrc5qOlmInUuA==", + "workspaces": [ + "./packages/*" + ], + "dependencies": { + "@redis/bloom": "1.2.0", + "@redis/client": "1.5.14", + "@redis/graph": "1.1.1", + "@redis/json": "1.0.6", + "@redis/search": "1.1.6", + "@redis/time-series": "1.0.5" + } + }, + "node_modules/redis-errors": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/redis-errors/-/redis-errors-1.2.0.tgz", + "integrity": "sha512-1qny3OExCf0UvUV/5wpYKf2YwPcOqXzkwKKSmKHiE6ZMQs5heeE/c8eXK+PNllPvmjgAbfnsbpkGZWy8cBpn9w==", + "engines": { + "node": ">=4" + } + }, + "node_modules/redis-parser": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/redis-parser/-/redis-parser-3.0.0.tgz", + "integrity": "sha512-DJnGAeenTdpMEH6uAJRK/uiyEIH9WVsUmoLwzudwGJUwZPp80PDBWPHXSAGNPwNvIXAbe7MSUB1zQFugFml66A==", + "dependencies": { + "redis-errors": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/reflect-metadata": { + "version": "0.1.13", + "resolved": "https://registry.npmmirror.com/reflect-metadata/-/reflect-metadata-0.1.13.tgz", + "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==" + }, + "node_modules/regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmmirror.com/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==" + }, + "node_modules/regenerate-unicode-properties": { + "version": "10.2.0", + "resolved": "https://registry.npmmirror.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.0.tgz", + "integrity": "sha512-DqHn3DwbmmPVzeKj9woBadqmXxLvQoQIwu7nopMc72ztvxVmVk2SBhSnx67zuye5TP+lJsb/TBQsjLKhnDf3MA==", + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmmirror.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" + }, + "node_modules/regenerator-transform": { + "version": "0.15.2", + "resolved": "https://registry.npmmirror.com/regenerator-transform/-/regenerator-transform-0.15.2.tgz", + "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==", + "dependencies": { + "@babel/runtime": "^7.8.4" + } + }, + "node_modules/regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "dependencies": { + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/regexpu-core": { + "version": "6.2.0", + "resolved": "https://registry.npmmirror.com/regexpu-core/-/regexpu-core-6.2.0.tgz", + "integrity": "sha512-H66BPQMrv+V16t8xtmq+UC0CBpiTBA60V8ibS1QVReIp8T1z8hwFxqcGzm9K6lgsN7sB5edVH8a+ze6Fqm4weA==", + "dependencies": { + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.2.0", + "regjsgen": "^0.8.0", + "regjsparser": "^0.12.0", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regjsgen": { + "version": "0.8.0", + "resolved": "https://registry.npmmirror.com/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q==" + }, + "node_modules/regjsparser": { + "version": "0.12.0", + "resolved": "https://registry.npmmirror.com/regjsparser/-/regjsparser-0.12.0.tgz", + "integrity": "sha512-cnE+y8bz4NhMjISKbgeVJtqNbtf5QpjZP+Bslo+UqkIt9QPnX9q095eiRRASJG1/tz6dlNr6Z5NsBiWYokp6EQ==", + "dependencies": { + "jsesc": "~3.0.2" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/regjsparser/node_modules/jsesc": { + "version": "3.0.2", + "resolved": "https://registry.npmmirror.com/jsesc/-/jsesc-3.0.2.tgz", + "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/relateurl": { + "version": "0.2.7", + "resolved": "https://registry.npmmirror.com/relateurl/-/relateurl-0.2.7.tgz", + "integrity": "sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/remove-bom-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/remove-bom-buffer/-/remove-bom-buffer-3.0.0.tgz", + "integrity": "sha512-8v2rWhaakv18qcvNeli2mZ/TMTL2nEyAKRvzo1WtnZBl15SHyEhrCu2/xKlJyUFKHiHgfXIyuY6g2dObJJycXQ==", + "dependencies": { + "is-buffer": "^1.1.5", + "is-utf8": "^0.2.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/remove-bom-stream": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/remove-bom-stream/-/remove-bom-stream-1.2.0.tgz", + "integrity": "sha512-wigO8/O08XHb8YPzpDDT+QmRANfW6vLqxfaXm1YXhnFf3AkSLyjfG3GEFg4McZkmgL7KvCj5u2KczkvSP6NfHA==", + "dependencies": { + "remove-bom-buffer": "^3.0.0", + "safe-buffer": "^5.1.0", + "through2": "^2.0.3" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/remove-bom-stream/node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==" + }, + "node_modules/repeat-element": { + "version": "1.1.4", + "resolved": "https://registry.npmmirror.com/repeat-element/-/repeat-element-1.1.4.tgz", + "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmmirror.com/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/replace-ext": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/replace-ext/-/replace-ext-1.0.1.tgz", + "integrity": "sha512-yD5BHCe7quCgBph4rMQ+0KkIRKwWCrHDOX1p1Gp6HwjPM5kVoCdKGNhN7ydqqsX6lJEnQDKZ/tFMiEdQ1dvPEw==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/replace-homedir": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/replace-homedir/-/replace-homedir-1.0.0.tgz", + "integrity": "sha512-CHPV/GAglbIB1tnQgaiysb8H2yCy8WQ7lcEwQ/eT+kLj0QHV8LnJW0zpqpE7RSkrMSRoa+EBoag86clf7WAgSg==", + "dependencies": { + "homedir-polyfill": "^1.0.1", + "is-absolute": "^1.0.0", + "remove-trailing-separator": "^1.1.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/replacestream": { + "version": "4.0.3", + "resolved": "https://registry.npmmirror.com/replacestream/-/replacestream-4.0.3.tgz", + "integrity": "sha512-AC0FiLS352pBBiZhd4VXB1Ab/lh0lEgpP+GGvZqbQh8a5cmXVoTe5EX/YeTFArnp4SRGTHh1qCHu9lGs1qG8sA==", + "dependencies": { + "escape-string-regexp": "^1.0.3", + "object-assign": "^4.0.1", + "readable-stream": "^2.0.2" + } + }, + "node_modules/replacestream/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/request": { + "version": "2.88.2", + "resolved": "https://registry.npmmirror.com/request/-/request-2.88.2.tgz", + "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", + "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", + "dependencies": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/request/node_modules/form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmmirror.com/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 0.12" + } + }, + "node_modules/request/node_modules/qs": { + "version": "6.5.3", + "resolved": "https://registry.npmmirror.com/qs/-/qs-6.5.3.tgz", + "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/request/node_modules/uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmmirror.com/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "bin": { + "uuid": "bin/uuid" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/require-main-filename/-/require-main-filename-1.0.1.tgz", + "integrity": "sha512-IqSUtOVP4ksd1C/ej5zeEh/BIP2ajqpn8c5x+q99gvcIG/Qf0cud5raVnE/Dwd0ua9TXYDoDc0RE5hBSdz22Ug==" + }, + "node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmmirror.com/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + } + }, + "node_modules/resolve-dir": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/resolve-dir/-/resolve-dir-1.0.1.tgz", + "integrity": "sha512-R7uiTjECzvOsWSfdM0QKFNBVFcK27aHOUwdvK53BcW8zqnGdYp0Fbj82cy54+2A4P2tFM22J5kRfe1R+lM/1yg==", + "dependencies": { + "expand-tilde": "^2.0.0", + "global-modules": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve-options": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/resolve-options/-/resolve-options-1.1.0.tgz", + "integrity": "sha512-NYDgziiroVeDC29xq7bp/CacZERYsA9bXYd1ZmcJlF3BcrZv5pTb4NG7SjdyKDnXZ84aC4vo2u6sNKIA1LCu/A==", + "dependencies": { + "value-or-function": "^3.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmmirror.com/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg==", + "deprecated": "https://github.com/lydell/resolve-url#deprecated" + }, + "node_modules/ret": { + "version": "0.1.15", + "resolved": "https://registry.npmmirror.com/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "engines": { + "node": ">=0.12" + } + }, + "node_modules/retry-as-promised": { + "version": "7.0.4", + "resolved": "https://registry.npmmirror.com/retry-as-promised/-/retry-as-promised-7.0.4.tgz", + "integrity": "sha512-XgmCoxKWkDofwH8WddD0w85ZfqYz+ZHlr5yo+3YUCfycWawU56T5ckWXsScsj5B8tqUcIG67DxXByo3VUgiAdA==" + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmmirror.com/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rev-hash": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/rev-hash/-/rev-hash-4.1.0.tgz", + "integrity": "sha512-e0EGnaveLY2IYpYwHNdh43WZ2M84KgW3Z/T4F6+Z/BlZI/T1ZbxTWj36xgYgUPOieGXYo2q225jTeUXn+LWYjw==", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/rev-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/rev-path/-/rev-path-3.0.0.tgz", + "integrity": "sha512-2fUuv6IC7Z+Vj+DXEunJYJDZuwSsaJJHeLar3n2PGvHSH7j5+Xpd/Xh7PenekH4WQhxFuHtsGwd1dCh/HvT6Gw==", + "dependencies": { + "modify-filename": "^2.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmmirror.com/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/rimraf/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/rimraf/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + } + }, + "node_modules/rimraf/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/rollup-plugin-copy": { + "version": "3.5.0", + "resolved": "https://registry.npmmirror.com/rollup-plugin-copy/-/rollup-plugin-copy-3.5.0.tgz", + "integrity": "sha512-wI8D5dvYovRMx/YYKtUNt3Yxaw4ORC9xo6Gt9t22kveWz1enG9QrhVlagzwrxSC455xD1dHMKhIJkbsQ7d48BA==", + "dependencies": { + "@types/fs-extra": "^8.0.1", + "colorette": "^1.1.0", + "fs-extra": "^8.1.0", + "globby": "10.0.1", + "is-plain-object": "^3.0.0" + }, + "engines": { + "node": ">=8.3" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/rxjs": { + "version": "7.8.1", + "resolved": "https://registry.npmmirror.com/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + }, + "node_modules/safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==", + "dependencies": { + "ret": "~0.1.10" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmmirror.com/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/sax": { + "version": "1.4.1", + "resolved": "https://registry.npmmirror.com/sax/-/sax-1.4.1.tgz", + "integrity": "sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==" + }, + "node_modules/sdk-base": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/sdk-base/-/sdk-base-2.0.1.tgz", + "integrity": "sha512-eeG26wRwhtwYuKGCDM3LixCaxY27Pa/5lK4rLKhQa7HBjJ3U3Y+f81MMZQRsDw/8SC2Dao/83yJTXJ8aULuN8Q==", + "dependencies": { + "get-ready": "~1.0.0" + } + }, + "node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmmirror.com/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/semver-greatest-satisfied-range": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/semver-greatest-satisfied-range/-/semver-greatest-satisfied-range-1.1.0.tgz", + "integrity": "sha512-Ny/iyOzSSa8M5ML46IAx3iXc6tfOsYU2R4AXi2UpHk60Zrgyq6eqPj/xiOfS0rRl/iiQ/rdJkVjw/5cdUyCntQ==", + "dependencies": { + "sver-compat": "^1.5.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/send": { + "version": "0.18.0", + "resolved": "https://registry.npmmirror.com/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/seq-queue": { + "version": "0.0.5", + "resolved": "https://registry.npmmirror.com/seq-queue/-/seq-queue-0.0.5.tgz", + "integrity": "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q==" + }, + "node_modules/sequelize": { + "version": "6.35.2", + "resolved": "https://registry.npmmirror.com/sequelize/-/sequelize-6.35.2.tgz", + "integrity": "sha512-EdzLaw2kK4/aOnWQ7ed/qh3B6/g+1DvmeXr66RwbcqSm/+QRS9X0LDI5INBibsy4eNJHWIRPo3+QK0zL+IPBHg==", + "dependencies": { + "@types/debug": "^4.1.8", + "@types/validator": "^13.7.17", + "debug": "^4.3.4", + "dottie": "^2.0.6", + "inflection": "^1.13.4", + "lodash": "^4.17.21", + "moment": "^2.29.4", + "moment-timezone": "^0.5.43", + "pg-connection-string": "^2.6.1", + "retry-as-promised": "^7.0.4", + "semver": "^7.5.4", + "sequelize-pool": "^7.1.0", + "toposort-class": "^1.0.1", + "uuid": "^8.3.2", + "validator": "^13.9.0", + "wkx": "^0.5.0" + }, + "engines": { + "node": ">=10.0.0" + }, + "peerDependenciesMeta": { + "ibm_db": { + "optional": true + }, + "mariadb": { + "optional": true + }, + "mysql2": { + "optional": true + }, + "oracledb": { + "optional": true + }, + "pg": { + "optional": true + }, + "pg-hstore": { + "optional": true + }, + "snowflake-sdk": { + "optional": true + }, + "sqlite3": { + "optional": true + }, + "tedious": { + "optional": true + } + } + }, + "node_modules/sequelize-pool": { + "version": "6.1.0", + "resolved": "https://registry.npmmirror.com/sequelize-pool/-/sequelize-pool-6.1.0.tgz", + "integrity": "sha512-4YwEw3ZgK/tY/so+GfnSgXkdwIJJ1I32uZJztIEgZeAO6HMgj64OzySbWLgxj+tXhZCJnzRfkY9gINw8Ft8ZMg==", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/sequelize/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/sequelize/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/sequelize/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/sequelize/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmmirror.com/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/sequelize/node_modules/sequelize-pool": { + "version": "7.1.0", + "resolved": "https://registry.npmmirror.com/sequelize-pool/-/sequelize-pool-7.1.0.tgz", + "integrity": "sha512-G9c0qlIWQSK29pR/5U2JF5dDQeqqHRragoyahj/Nx4KOOQ3CPPfzxnfqFPCSB7x5UgjOgnZ61nSxz+fjDpRlJg==", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/sequelize/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmmirror.com/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/serve-static": { + "version": "1.15.0", + "resolved": "https://registry.npmmirror.com/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", + "dependencies": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmmirror.com/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-value": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/set-value/-/set-value-2.0.1.tgz", + "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", + "dependencies": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/set-value/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/set-value/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/set-value/node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "node_modules/shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "dependencies": { + "shebang-regex": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/shell-quote": { + "version": "1.8.1", + "resolved": "https://registry.npmmirror.com/shell-quote/-/shell-quote-1.8.1.tgz", + "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==" + }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmmirror.com/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + } + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmmirror.com/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "engines": { + "node": ">=14" + } + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/smtp-connection": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/smtp-connection/-/smtp-connection-2.12.0.tgz", + "integrity": "sha512-UP5jK4s5SGcUcqPN4U9ingqKt9mXYSKa52YhqxPuMecAnUOsVJpOmtgGaOm1urUBJZlzDt1M9WhZZkgbhxQlvg==", + "dependencies": { + "httpntlm": "1.6.1", + "nodemailer-shared": "1.1.0" + } + }, + "node_modules/snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmmirror.com/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "dependencies": { + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "dependencies": { + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-node/node_modules/define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "dependencies": { + "is-descriptor": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "dependencies": { + "kind-of": "^3.2.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon-util/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/is-descriptor": { + "version": "0.1.7", + "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-0.1.7.tgz", + "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", + "dependencies": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/snapdragon/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/snapdragon/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/socket.io": { + "version": "2.5.0", + "resolved": "https://registry.npmmirror.com/socket.io/-/socket.io-2.5.0.tgz", + "integrity": "sha512-gGunfS0od3VpwDBpGwVkzSZx6Aqo9uOcf1afJj2cKnKFAoyl16fvhpsUhmUFd4Ldbvl5JvRQed6eQw6oQp6n8w==", + "dependencies": { + "debug": "~4.1.0", + "engine.io": "~3.6.0", + "has-binary2": "~1.0.2", + "socket.io-adapter": "~1.1.0", + "socket.io-client": "2.5.0", + "socket.io-parser": "~3.4.0" + } + }, + "node_modules/socket.io-adapter": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/socket.io-adapter/-/socket.io-adapter-1.1.2.tgz", + "integrity": "sha512-WzZRUj1kUjrTIrUKpZLEzFZ1OLj5FwLlAFQs9kuZJzJi5DKdU7FsWc36SNmA8iDOtwBQyT8FkrriRM8vXLYz8g==" + }, + "node_modules/socket.io-client": { + "version": "2.5.0", + "resolved": "https://registry.npmmirror.com/socket.io-client/-/socket.io-client-2.5.0.tgz", + "integrity": "sha512-lOO9clmdgssDykiOmVQQitwBAF3I6mYcQAo7hQ7AM6Ny5X7fp8hIJ3HcQs3Rjz4SoggoxA1OgrQyY8EgTbcPYw==", + "dependencies": { + "backo2": "1.0.2", + "component-bind": "1.0.0", + "component-emitter": "~1.3.0", + "debug": "~3.1.0", + "engine.io-client": "~3.5.0", + "has-binary2": "~1.0.2", + "indexof": "0.0.1", + "parseqs": "0.0.6", + "parseuri": "0.0.6", + "socket.io-parser": "~3.3.0", + "to-array": "0.1.4" + } + }, + "node_modules/socket.io-client/node_modules/debug": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/socket.io-client/node_modules/socket.io-parser": { + "version": "3.3.3", + "resolved": "https://registry.npmmirror.com/socket.io-parser/-/socket.io-parser-3.3.3.tgz", + "integrity": "sha512-qOg87q1PMWWTeO01768Yh9ogn7chB9zkKtQnya41Y355S0UmpXgpcrFwAgjYJxu9BdKug5r5e9YtVSeWhKBUZg==", + "dependencies": { + "component-emitter": "~1.3.0", + "debug": "~3.1.0", + "isarray": "2.0.1" + } + }, + "node_modules/socket.io-msgpack-parser": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/socket.io-msgpack-parser/-/socket.io-msgpack-parser-3.0.2.tgz", + "integrity": "sha512-1e76bJ1PCKi9H+JiYk+S29PBJvknHjQWM7Mtj0hjF2KxDA6b6rQxv3rTsnwBoz/haZOhlCDIMQvPATbqYeuMxg==", + "dependencies": { + "component-emitter": "~1.3.0", + "notepack.io": "~2.2.0" + } + }, + "node_modules/socket.io-parser": { + "version": "3.4.3", + "resolved": "https://registry.npmmirror.com/socket.io-parser/-/socket.io-parser-3.4.3.tgz", + "integrity": "sha512-1rE4dZN3kCI/E5wixd393hmbqa78vVpkKmnEJhLeWoS/C5hbFYAbcSfnWoaVH43u9ToUVtzKjguxEZq+1XZfCQ==", + "dependencies": { + "component-emitter": "1.2.1", + "debug": "~4.1.0", + "isarray": "2.0.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/socket.io-parser/node_modules/component-emitter": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/component-emitter/-/component-emitter-1.2.1.tgz", + "integrity": "sha512-jPatnhd33viNplKjqXKRkGU345p263OIWzDL2wH3LGIGp5Kojo+uXizHmOADRvhGFFTnJqX3jBAKP6vvmSDKcA==" + }, + "node_modules/socket.io-parser/node_modules/debug": { + "version": "4.1.1", + "resolved": "https://registry.npmmirror.com/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "deprecated": "Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/socket.io-parser/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/socket.io/node_modules/debug": { + "version": "4.1.1", + "resolved": "https://registry.npmmirror.com/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "deprecated": "Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/socket.io/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/sort-keys": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-5.1.0.tgz", + "integrity": "sha512-aSbHV0DaBcr7u0PVHXzM6NbZNAtrr9sF6+Qfs9UUVG7Ll3jQ6hHi8F/xqIIcn2rvIVbr0v/2zyjSdwSV47AgLQ==", + "dependencies": { + "is-plain-obj": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/sort-keys/node_modules/is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmmirror.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated", + "dependencies": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmmirror.com/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/source-map-url": { + "version": "0.4.1", + "resolved": "https://registry.npmmirror.com/source-map-url/-/source-map-url-0.4.1.tgz", + "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==", + "deprecated": "See https://github.com/lydell/source-map-url#deprecated" + }, + "node_modules/sparkles": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/sparkles/-/sparkles-1.0.1.tgz", + "integrity": "sha512-dSO0DDYUahUt/0/pD/Is3VIm5TGJjludZ0HVymmhYF6eNA53PVLhnUk0znSYbH8IYBuJdCE+1luR22jNLMaQdw==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/spawn-command": { + "version": "0.0.2", + "resolved": "https://registry.npmmirror.com/spawn-command/-/spawn-command-0.0.2.tgz", + "integrity": "sha512-zC8zGoGkmc8J9ndvml8Xksr1Amk9qBujgbF0JAIWO7kXr43w0h/0GJNM/Vustixu+YE8N/MTrQ7N31FvHUACxQ==" + }, + "node_modules/spdx-correct": { + "version": "3.2.0", + "resolved": "https://registry.npmmirror.com/spdx-correct/-/spdx-correct-3.2.0.tgz", + "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-exceptions": { + "version": "2.5.0", + "resolved": "https://registry.npmmirror.com/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz", + "integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==" + }, + "node_modules/spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-license-ids": { + "version": "3.0.17", + "resolved": "https://registry.npmmirror.com/spdx-license-ids/-/spdx-license-ids-3.0.17.tgz", + "integrity": "sha512-sh8PWc/ftMqAAdFiBu6Fy6JUOYjqDJBJvIhpfDMyHrr0Rbp5liZqd4TjtQ/RgfLjKFZb+LMx5hpml5qOWy0qvg==" + }, + "node_modules/split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "dependencies": { + "extend-shallow": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sqlstring": { + "version": "2.3.3", + "resolved": "https://registry.npmmirror.com/sqlstring/-/sqlstring-2.3.3.tgz", + "integrity": "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/sshpk": { + "version": "1.18.0", + "resolved": "https://registry.npmmirror.com/sshpk/-/sshpk-1.18.0.tgz", + "integrity": "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==", + "dependencies": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + }, + "bin": { + "sshpk-conv": "bin/sshpk-conv", + "sshpk-sign": "bin/sshpk-sign", + "sshpk-verify": "bin/sshpk-verify" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stack-trace": { + "version": "0.0.10", + "resolved": "https://registry.npmmirror.com/stack-trace/-/stack-trace-0.0.10.tgz", + "integrity": "sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg==", + "engines": { + "node": "*" + } + }, + "node_modules/standard-as-callback": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/standard-as-callback/-/standard-as-callback-2.1.0.tgz", + "integrity": "sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==" + }, + "node_modules/static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmmirror.com/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g==", + "dependencies": { + "define-property": "^0.2.5", + "object-copy": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmmirror.com/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "dependencies": { + "is-descriptor": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/static-extend/node_modules/is-descriptor": { + "version": "0.1.7", + "resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-0.1.7.tgz", + "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", + "dependencies": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/stream-exhaust": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/stream-exhaust/-/stream-exhaust-1.0.2.tgz", + "integrity": "sha512-b/qaq/GlBK5xaq1yrK9/zFcyRSTNxmcZwFLGSTG0mXgZl/4Z6GgiyYOXOvY7N3eEvFRAG1bkDRz5EPGSvPYQlw==" + }, + "node_modules/stream-http": { + "version": "2.8.2", + "resolved": "https://registry.npmmirror.com/stream-http/-/stream-http-2.8.2.tgz", + "integrity": "sha512-QllfrBhqF1DPcz46WxKTs6Mz1Bpc+8Qm6vbqOpVav5odAXwbyzwnEczoWqtxrsmlO+cJqtPrp/8gWKWjaKLLlA==", + "dependencies": { + "builtin-status-codes": "^3.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.3.6", + "to-arraybuffer": "^1.0.0", + "xtend": "^4.0.0" + } + }, + "node_modules/stream-shift": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/stream-shift/-/stream-shift-1.0.3.tgz", + "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==" + }, + "node_modules/stream-to-array": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/stream-to-array/-/stream-to-array-2.3.0.tgz", + "integrity": "sha512-UsZtOYEn4tWU2RGLOXr/o/xjRBftZRlG3dEWoaHr8j4GuypJ3isitGbVyjQKAuMu+xbiop8q224TjiZWc4XTZA==", + "dependencies": { + "any-promise": "^1.1.0" + } + }, + "node_modules/stream-wormhole": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/stream-wormhole/-/stream-wormhole-1.1.0.tgz", + "integrity": "sha512-gHFfL3px0Kctd6Po0M8TzEvt3De/xu6cnRrjlfYNhwbhLPLwigI2t1nc6jrzNuaYg5C4YF78PPFuQPzRiqn9ew==", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/streamx": { + "version": "2.20.1", + "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.20.1.tgz", + "integrity": "sha512-uTa0mU6WUC65iUvzKH4X9hEdvSW7rbPxPtwfWiLMSj3qTdQbAiUboZTxauKfpFuGIGa1C2BYijZ7wgdUXICJhA==", + "dependencies": { + "fast-fifo": "^1.3.2", + "queue-tick": "^1.0.1", + "text-decoder": "^1.1.0" + }, + "optionalDependencies": { + "bare-events": "^2.2.0" + } + }, + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/string_decoder/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/string-template": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/string-template/-/string-template-1.0.0.tgz", + "integrity": "sha512-SLqR3GBUXuoPP5MmYtD7ompvXiG87QjT6lzOszyXjTM86Uu7At7vNnt2xgyTLq5o9T4IxTYFyGxcULqpsmsfdg==" + }, + "node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmmirror.com/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/string-width-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/stringz": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/stringz/-/stringz-2.1.0.tgz", + "integrity": "sha512-KlywLT+MZ+v0IRepfMxRtnSvDCMc3nR1qqCs3m/qIbSOWkNZYT8XHQA31rS3TnKp0c5xjZu3M4GY/2aRKSi/6A==", + "dependencies": { + "char-regex": "^1.0.2" + } + }, + "node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g==", + "dependencies": { + "is-utf8": "^0.2.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-bom-buf": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-bom-buf/-/strip-bom-buf-3.0.1.tgz", + "integrity": "sha512-iJaWw2WroigLHzQysdc5WWeUc99p7ea7AEgB6JkY8CMyiO1yTVAA1gIlJJgORElUIR+lcZJkNl1OGChMhvc2Cw==", + "dependencies": { + "is-utf8": "^0.2.1" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strip-bom-stream": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/strip-bom-stream/-/strip-bom-stream-5.0.0.tgz", + "integrity": "sha512-Yo472mU+3smhzqeKlIxClre4s4pwtYZEvDNQvY/sJpnChdaxmKuwU28UVx/v1ORKNMxkmj1GBuvxJQyBk6wYMQ==", + "dependencies": { + "first-chunk-stream": "^5.0.0", + "strip-bom-buf": "^3.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strnum": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", + "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==" + }, + "node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/sver-compat": { + "version": "1.5.0", + "resolved": "https://registry.npmmirror.com/sver-compat/-/sver-compat-1.5.0.tgz", + "integrity": "sha512-aFTHfmjwizMNlNE6dsGmoAM4lHjL0CyiobWaFiXWSlD7cIxshW422Nb8KbXCmR6z+0ZEPY+daXJrDyh/vuwTyg==", + "dependencies": { + "es6-iterator": "^2.0.1", + "es6-symbol": "^3.1.1" + } + }, + "node_modules/teex": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/teex/-/teex-1.0.1.tgz", + "integrity": "sha512-eYE6iEI62Ni1H8oIa7KlDU6uQBtqr4Eajni3wX7rpfXD8ysFx8z0+dri+KWEPWpBsxXfxu58x/0jvTVT1ekOSg==", + "dependencies": { + "streamx": "^2.12.5" + } + }, + "node_modules/terser": { + "version": "5.26.0", + "resolved": "https://registry.npmmirror.com/terser/-/terser-5.26.0.tgz", + "integrity": "sha512-dytTGoE2oHgbNV9nTzgBEPaqAWvcJNl66VZ0BkJqlvp71IjO8CxdBx/ykCNb47cLnCmCvRZ6ZR0tLkqvZCdVBQ==", + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.8.2", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/text-decoder": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.0.tgz", + "integrity": "sha512-n1yg1mOj9DNpk3NeZOx7T6jchTbyJS3i3cucbNN6FcdPriMZx7NsgrGpWWdWZZGxD7ES1XB+3uoqHMgOKaN+fg==", + "dependencies": { + "b4a": "^1.6.4" + } + }, + "node_modules/textextensions": { + "version": "3.3.0", + "resolved": "https://registry.npmmirror.com/textextensions/-/textextensions-3.3.0.tgz", + "integrity": "sha512-mk82dS8eRABNbeVJrEiN5/UMSCliINAuz8mkUwH4SwslkNP//gbEzlWNS5au0z5Dpx40SQxzqZevZkn+WYJ9Dw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmmirror.com/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "resolved": "https://registry.npmmirror.com/thenify-all/-/thenify-all-1.6.0.tgz", + "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/through": { + "version": "2.3.8", + "resolved": "https://registry.npmmirror.com/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==" + }, + "node_modules/through2": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/through2/-/through2-3.0.1.tgz", + "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", + "dependencies": { + "readable-stream": "2 || 3" + } + }, + "node_modules/through2-filter": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/through2-filter/-/through2-filter-3.0.0.tgz", + "integrity": "sha512-jaRjI2WxN3W1V8/FMZ9HKIBXixtiqs3SQSX4/YGIiP3gL6djW48VoZq9tDqeCWs3MT8YY5wb/zli8VW8snY1CA==", + "dependencies": { + "through2": "~2.0.0", + "xtend": "~4.0.0" + } + }, + "node_modules/through2-filter/node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/time-stamp": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/time-stamp/-/time-stamp-1.1.0.tgz", + "integrity": "sha512-gLCeArryy2yNTRzTGKbZbloctj64jkZ57hj5zdraXue6aFgd6PmvVtEyiUU+hvU0v7q08oVv8r8ev0tRo6bvgw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-absolute-glob": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/to-absolute-glob/-/to-absolute-glob-2.0.2.tgz", + "integrity": "sha512-rtwLUQEwT8ZeKQbyFJyomBRYXyE16U5VKuy0ftxLMK/PZb2fkOsg5r9kHdauuVDbsNdIBoC/HCthpidamQFXYA==", + "dependencies": { + "is-absolute": "^1.0.0", + "is-negated-glob": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-array": { + "version": "0.1.4", + "resolved": "https://registry.npmmirror.com/to-array/-/to-array-0.1.4.tgz", + "integrity": "sha512-LhVdShQD/4Mk4zXNroIQZJC+Ap3zgLcDuwEdcmLv9CCO73NWockQDwyUnW/m8VX/EElfL6FcYx7EeutN4HJA6A==" + }, + "node_modules/to-arraybuffer": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", + "integrity": "sha512-okFlQcoGTi4LQBG/PgSYblw9VOyptsz2KJZqc6qtgGdes8VktzUQkj4BI2blit072iS8VODNcMA+tvnS9dnuMA==" + }, + "node_modules/to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmmirror.com/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", + "dependencies": { + "kind-of": "^3.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-object-path/node_modules/kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmmirror.com/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dependencies": { + "is-buffer": "^1.1.5" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmmirror.com/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "dependencies": { + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/to-through": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/to-through/-/to-through-2.0.0.tgz", + "integrity": "sha512-+QIz37Ly7acM4EMdw2PRN389OneM5+d844tirkGp4dPKzI5OE72V9OsbFp+CIYJDahZ41ZV05hNtcPAQUAm9/Q==", + "dependencies": { + "through2": "^2.0.3" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/to-through/node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/toposort-class": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/toposort-class/-/toposort-class-1.0.1.tgz", + "integrity": "sha512-OsLcGGbYF3rMjPUf8oKktyvCiUxSbqMMS39m33MAjLTC1DVIH6x3WSt63/M77ihI09+Sdfk1AXvfhCEeUmC7mg==" + }, + "node_modules/tough-cookie": { + "version": "2.5.0", + "resolved": "https://registry.npmmirror.com/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "dependencies": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/tree-kill": { + "version": "1.2.2", + "resolved": "https://registry.npmmirror.com/tree-kill/-/tree-kill-1.2.2.tgz", + "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", + "bin": { + "tree-kill": "cli.js" + } + }, + "node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + }, + "node_modules/tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmmirror.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", + "dependencies": { + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" + } + }, + "node_modules/tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmmirror.com/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==" + }, + "node_modules/type": { + "version": "2.7.2", + "resolved": "https://registry.npmmirror.com/type/-/type-2.7.2.tgz", + "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==" + }, + "node_modules/type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmmirror.com/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", + "dependencies": { + "prelude-ls": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmmirror.com/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmmirror.com/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==" + }, + "node_modules/uglify-js": { + "version": "3.17.4", + "resolved": "https://registry.npmmirror.com/uglify-js/-/uglify-js-3.17.4.tgz", + "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/unc-path-regex": { + "version": "0.1.2", + "resolved": "https://registry.npmmirror.com/unc-path-regex/-/unc-path-regex-0.1.2.tgz", + "integrity": "sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/underscore": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz", + "integrity": "sha512-cp0oQQyZhUM1kpJDLdGO1jPZHgS/MpzoWYfe9+CM2h/QGDZlqwT2T3YGukuBdaNJ/CAPoeyAZRRHz8JFo176vA==" + }, + "node_modules/undertaker": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/undertaker/-/undertaker-1.3.0.tgz", + "integrity": "sha512-/RXwi5m/Mu3H6IHQGww3GNt1PNXlbeCuclF2QYR14L/2CHPz3DFZkvB5hZ0N/QUkiXWCACML2jXViIQEQc2MLg==", + "dependencies": { + "arr-flatten": "^1.0.1", + "arr-map": "^2.0.0", + "bach": "^1.0.0", + "collection-map": "^1.0.0", + "es6-weak-map": "^2.0.1", + "fast-levenshtein": "^1.0.0", + "last-run": "^1.1.0", + "object.defaults": "^1.0.0", + "object.reduce": "^1.0.0", + "undertaker-registry": "^1.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/undertaker-registry": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/undertaker-registry/-/undertaker-registry-1.0.1.tgz", + "integrity": "sha512-UR1khWeAjugW3548EfQmL9Z7pGMlBgXteQpr1IZeZBtnkCJQJIJ1Scj0mb9wQaPvUZ9Q17XqW6TIaPchJkyfqw==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmmirror.com/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, + "node_modules/unescape": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/unescape/-/unescape-1.0.1.tgz", + "integrity": "sha512-O0+af1Gs50lyH1nUu3ZyYS1cRh01Q/kUKatTOkSs7jukXE6/NebucDVxyiDsA9AQ4JC1V1jUH9EO8JX2nMDgGQ==", + "dependencies": { + "extend-shallow": "^2.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unescape/node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unescape/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz", + "integrity": "sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.2.0", + "resolved": "https://registry.npmmirror.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.0.tgz", + "integrity": "sha512-4IehN3V/+kkr5YeSSDDQG8QLqO26XpL2XP3GQtqwlT/QYSECAwFztxVHjlbh0+gjJ3XmNLS0zDsbgs9jWKExLg==", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", + "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", + "engines": { + "node": ">=4" + } + }, + "node_modules/union-value": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/union-value/-/union-value-1.0.1.tgz", + "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", + "dependencies": { + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^2.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/union-value/node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmmirror.com/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unique-stream": { + "version": "2.3.1", + "resolved": "https://registry.npmmirror.com/unique-stream/-/unique-stream-2.3.1.tgz", + "integrity": "sha512-2nY4TnBE70yoxHkDli7DMazpWiP7xMdCYqU2nBRO0UB+ZpEkGsSija7MvmvnZFUeC+mrgiUfcHSr3LmRFIg4+A==", + "dependencies": { + "json-stable-stringify-without-jsonify": "^1.0.1", + "through2-filter": "^3.0.0" + } + }, + "node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmmirror.com/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ==", + "dependencies": { + "has-value": "^0.3.1", + "isobject": "^3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmmirror.com/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q==", + "dependencies": { + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-value/node_modules/isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", + "dependencies": { + "isarray": "1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmmirror.com/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/unset-value/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, + "node_modules/upath": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/upath/-/upath-1.2.0.tgz", + "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", + "engines": { + "node": ">=4", + "yarn": "*" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz", + "integrity": "sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/upper-case": { + "version": "1.1.3", + "resolved": "https://registry.npmmirror.com/upper-case/-/upper-case-1.1.3.tgz", + "integrity": "sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA==" + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmmirror.com/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/urix": { + "version": "0.1.0", + "resolved": "https://registry.npmmirror.com/urix/-/urix-0.1.0.tgz", + "integrity": "sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg==", + "deprecated": "Please see https://github.com/lydell/urix#deprecated" + }, + "node_modules/urllib": { + "version": "2.44.0", + "resolved": "https://registry.npmmirror.com/urllib/-/urllib-2.44.0.tgz", + "integrity": "sha512-zRCJqdfYllRDA9bXUtx+vccyRqtJPKsw85f44zH7zPD28PIvjMqIgw9VwoTLV7xTBWZsbebUFVHU5ghQcWku2A==", + "dependencies": { + "any-promise": "^1.3.0", + "content-type": "^1.0.2", + "default-user-agent": "^1.0.0", + "digest-header": "^1.0.0", + "ee-first": "~1.1.1", + "formstream": "^1.1.0", + "humanize-ms": "^1.2.0", + "iconv-lite": "^0.6.3", + "pump": "^3.0.0", + "qs": "^6.4.0", + "statuses": "^1.3.1", + "utility": "^1.16.1" + }, + "engines": { + "node": ">= 0.10.0" + }, + "peerDependencies": { + "proxy-agent": "^5.0.0" + }, + "peerDependenciesMeta": { + "proxy-agent": { + "optional": true + } + } + }, + "node_modules/urllib/node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmmirror.com/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/urllib/node_modules/pump": { + "version": "3.0.2", + "resolved": "https://registry.npmmirror.com/pump/-/pump-3.0.2.tgz", + "integrity": "sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/urllib/node_modules/statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmmirror.com/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/use": { + "version": "3.1.1", + "resolved": "https://registry.npmmirror.com/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/util": { + "version": "0.12.5", + "resolved": "https://registry.npmmirror.com/util/-/util-0.12.5.tgz", + "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", + "dependencies": { + "inherits": "^2.0.3", + "is-arguments": "^1.0.4", + "is-generator-function": "^1.0.7", + "is-typed-array": "^1.1.3", + "which-typed-array": "^1.1.2" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "node_modules/utility": { + "version": "1.18.0", + "resolved": "https://registry.npmmirror.com/utility/-/utility-1.18.0.tgz", + "integrity": "sha512-PYxZDA+6QtvRvm//++aGdmKG/cI07jNwbROz0Ql+VzFV1+Z0Dy55NI4zZ7RHc9KKpBePNFwoErqIuqQv/cjiTA==", + "dependencies": { + "copy-to": "^2.0.1", + "escape-html": "^1.0.3", + "mkdirp": "^0.5.1", + "mz": "^2.7.0", + "unescape": "^1.0.1" + }, + "engines": { + "node": ">= 0.12.0" + } + }, + "node_modules/utility/node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmmirror.com/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmmirror.com/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/v8flags": { + "version": "3.2.0", + "resolved": "https://registry.npmmirror.com/v8flags/-/v8flags-3.2.0.tgz", + "integrity": "sha512-mH8etigqMfiGWdeXpaaqGfs6BndypxusHHcv2qSHyZkGEznCd/qAXCWWRzeowtL54147cktFOC4P5y+kl8d8Jg==", + "dependencies": { + "homedir-polyfill": "^1.0.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmmirror.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/validator": { + "version": "13.11.0", + "resolved": "https://registry.npmmirror.com/validator/-/validator-13.11.0.tgz", + "integrity": "sha512-Ii+sehpSfZy+At5nPdnyMhx78fEoPDkR2XW/zimHEL3MyGJQOCQ7WeP20jPYRz7ZCpcKLB21NxuXHF3bxjStBQ==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/value-or-function": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/value-or-function/-/value-or-function-3.0.0.tgz", + "integrity": "sha512-jdBB2FrWvQC/pnPtIqcLsMaQgjhdb6B7tk1MMyTKapox+tQZbdRP4uLxu/JY0t7fbfDCUMnuelzEYv5GsxHhdg==", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/verror": { + "version": "1.10.0", + "resolved": "https://registry.npmmirror.com/verror/-/verror-1.10.0.tgz", + "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", + "engines": [ + "node >=0.6.0" + ], + "dependencies": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "node_modules/vinyl": { + "version": "2.2.1", + "resolved": "https://registry.npmmirror.com/vinyl/-/vinyl-2.2.1.tgz", + "integrity": "sha512-LII3bXRFBZLlezoG5FfZVcXflZgWP/4dCwKtxd5ky9+LOtM4CS3bIRQsmR1KMnMW07jpE8fqR2lcxPZ+8sJIcw==", + "dependencies": { + "clone": "^2.1.1", + "clone-buffer": "^1.0.0", + "clone-stats": "^1.0.0", + "cloneable-readable": "^1.0.0", + "remove-trailing-separator": "^1.0.1", + "replace-ext": "^1.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/vinyl-bufferstream": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/vinyl-bufferstream/-/vinyl-bufferstream-1.0.1.tgz", + "integrity": "sha512-yCCIoTf26Q9SQ0L9cDSavSL7Nt6wgQw8TU1B/bb9b9Z4A3XTypXCGdc5BvXl4ObQvVY8JrDkFnWa/UqBqwM2IA==", + "dependencies": { + "bufferstreams": "1.0.1" + } + }, + "node_modules/vinyl-file": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/vinyl-file/-/vinyl-file-5.0.0.tgz", + "integrity": "sha512-MvkPF/yA1EX7c6p+juVIvp9+Lxp70YUfNKzEWeHMKpUNVSnTZh2coaOqLxI0pmOe2V9nB+OkgFaMDkodaJUyGw==", + "dependencies": { + "@types/vinyl": "^2.0.7", + "strip-bom-buf": "^3.0.1", + "strip-bom-stream": "^5.0.0", + "vinyl": "^3.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/vinyl-file/node_modules/replace-ext": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-2.0.0.tgz", + "integrity": "sha512-UszKE5KVK6JvyD92nzMn9cDapSk6w/CaFZ96CnmDMUqH9oowfxF/ZjRITD25H4DnOQClLA4/j7jLGXXLVKxAug==", + "engines": { + "node": ">= 10" + } + }, + "node_modules/vinyl-file/node_modules/vinyl": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-3.0.0.tgz", + "integrity": "sha512-rC2VRfAVVCGEgjnxHUnpIVh3AGuk62rP3tqVrn+yab0YH7UULisC085+NYH+mnqf3Wx4SpSi1RQMwudL89N03g==", + "dependencies": { + "clone": "^2.1.2", + "clone-stats": "^1.0.0", + "remove-trailing-separator": "^1.1.0", + "replace-ext": "^2.0.0", + "teex": "^1.0.1" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/vinyl-fs": { + "version": "3.0.3", + "resolved": "https://registry.npmmirror.com/vinyl-fs/-/vinyl-fs-3.0.3.tgz", + "integrity": "sha512-vIu34EkyNyJxmP0jscNzWBSygh7VWhqun6RmqVfXePrOwi9lhvRs//dOaGOTRUQr4tx7/zd26Tk5WeSVZitgng==", + "dependencies": { + "fs-mkdirp-stream": "^1.0.0", + "glob-stream": "^6.1.0", + "graceful-fs": "^4.0.0", + "is-valid-glob": "^1.0.0", + "lazystream": "^1.0.0", + "lead": "^1.0.0", + "object.assign": "^4.0.4", + "pumpify": "^1.3.5", + "readable-stream": "^2.3.3", + "remove-bom-buffer": "^3.0.0", + "remove-bom-stream": "^1.2.0", + "resolve-options": "^1.1.0", + "through2": "^2.0.0", + "to-through": "^2.0.0", + "value-or-function": "^3.0.0", + "vinyl": "^2.0.0", + "vinyl-sourcemap": "^1.1.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/vinyl-fs/node_modules/through2": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/vinyl-sourcemap": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/vinyl-sourcemap/-/vinyl-sourcemap-1.1.0.tgz", + "integrity": "sha512-NiibMgt6VJGJmyw7vtzhctDcfKch4e4n9TBeoWlirb7FMg9/1Ov9k+A5ZRAtywBpRPiyECvQRQllYM8dECegVA==", + "dependencies": { + "append-buffer": "^1.0.2", + "convert-source-map": "^1.5.0", + "graceful-fs": "^4.1.6", + "normalize-path": "^2.1.1", + "now-and-later": "^2.0.0", + "remove-bom-buffer": "^3.0.0", + "vinyl": "^2.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/vinyl-sourcemap/node_modules/normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", + "dependencies": { + "remove-trailing-separator": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/vinyl-sourcemaps-apply": { + "version": "0.2.1", + "resolved": "https://registry.npmmirror.com/vinyl-sourcemaps-apply/-/vinyl-sourcemaps-apply-0.2.1.tgz", + "integrity": "sha512-+oDh3KYZBoZC8hfocrbrxbLUeaYtQK7J5WU5Br9VqWqmCll3tFJqKp97GC9GmMsVIL0qnx2DgEDVxdo5EZ5sSw==", + "dependencies": { + "source-map": "^0.5.1" + } + }, + "node_modules/vinyl-sourcemaps-apply/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmmirror.com/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/which-module": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/which-module/-/which-module-1.0.0.tgz", + "integrity": "sha512-F6+WgncZi/mJDrammbTuHe1q0R5hOXv/mBaiNA2TCNT/LTHusX0V+CJnj9XT8ki5ln2UZyyddDgHfCzyrOH7MQ==" + }, + "node_modules/which-typed-array": { + "version": "1.1.15", + "resolved": "https://registry.npmmirror.com/which-typed-array/-/which-typed-array-1.1.15.tgz", + "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/win-release": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/win-release/-/win-release-1.1.1.tgz", + "integrity": "sha512-iCRnKVvGxOQdsKhcQId2PXV1vV3J/sDPXKA4Oe9+Eti2nb2ESEsYHRYls/UjoUW3bIc5ZDO8dTH50A/5iVN+bw==", + "dependencies": { + "semver": "^5.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wkx": { + "version": "0.5.0", + "resolved": "https://registry.npmmirror.com/wkx/-/wkx-0.5.0.tgz", + "integrity": "sha512-Xng/d4Ichh8uN4l0FToV/258EjMGU9MGcA0HV2d9B/ZpZB3lqQm7nkOdZdm5GhKtLLhAE7PiVQwN4eN+2YJJUg==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmmirror.com/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "engines": { + "node": ">=12" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "node_modules/ws": { + "version": "7.4.6", + "resolved": "https://registry.npmmirror.com/ws/-/ws-7.4.6.tgz", + "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xml2js": { + "version": "0.6.2", + "resolved": "https://registry.npmmirror.com/xml2js/-/xml2js-0.6.2.tgz", + "integrity": "sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA==", + "dependencies": { + "sax": ">=0.6.0", + "xmlbuilder": "~11.0.0" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/xmlbuilder": { + "version": "11.0.1", + "resolved": "https://registry.npmmirror.com/xmlbuilder/-/xmlbuilder-11.0.1.tgz", + "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/xmlhttprequest-ssl": { + "version": "1.6.3", + "resolved": "https://registry.npmmirror.com/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.6.3.tgz", + "integrity": "sha512-3XfeQE/wNkvrIktn2Kf0869fC0BN6UpydVasGIeSm2B1Llihf7/0UfZM+eCkOw3P7bP4+qPgqhm7ZoxuJtFU0Q==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmmirror.com/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmmirror.com/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmmirror.com/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs-parser": { + "version": "20.2.4", + "resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-20.2.4.tgz", + "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "node_modules/yargs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yeast": { + "version": "0.1.2", + "resolved": "https://registry.npmmirror.com/yeast/-/yeast-0.1.2.tgz", + "integrity": "sha512-8HFIh676uyGYP6wP13R/j6OJ/1HwJ46snpvzE7aHAN3Ryqh2yX6Xox2B4CUmTwwOIzlG3Bs7ocsP5dZH/R1Qbg==" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..754111a --- /dev/null +++ b/package.json @@ -0,0 +1,69 @@ +{ + "name": "tl-rtc-app", + "version": "0.0.1", + "description": "im chat", + "main": "main.js", + "scripts": { + "http-api": "cross-env tl_rtc_app_env_mode=http node tlapi", + "http-socket": "cross-env tl_rtc_app_env_mode=http node tlsocket", + "https-api": "cross-env tl_rtc_app_env_mode=https node tlapi", + "https-socket": "cross-env tl_rtc_app_env_mode=https node tlsocket" + }, + "repository": { + "type": "git", + "url": "https://github.com/tl-open-source/tl-rtc-app" + }, + "keywords": [ + "none" + ], + "author": "iamtsm", + "license": "MIT", + "dependencies": { + "@babel/preset-env": "^7.26.0", + "@grpc/grpc-js": "^1.8.0", + "@grpc/proto-loader": "^0.6.0", + "ali-oss": "^6.21.0", + "body-parser": "^1.20.2", + "bull": "^4.16.5", + "concurrently": "^8.2.0", + "cookie-parser": "^1.4.6", + "cos-nodejs-sdk-v5": "^2.14.0", + "cross-env": "^5.2.0", + "del": "^2.2.2", + "dotenv": "^16.3.1", + "express": "^4.17.1", + "glob": "^10.3.1", + "gulp": "^4.0.2", + "gulp-babel": "^8.0.0", + "gulp-clean-css": "^4.3.0", + "gulp-concat": "^2.6.1", + "gulp-footer": "^2.1.0", + "gulp-gzip": "^1.4.2", + "gulp-header": "^2.0.9", + "gulp-htmlmin": "^5.0.1", + "gulp-javascript-obfuscator": "^1.1.6", + "gulp-jshint": "^2.1.0", + "gulp-minify-css": "^1.2.4", + "gulp-rename": "^2.0.0", + "gulp-replace": "^1.1.3", + "gulp-rev": "^11.0.0", + "gulp-rev-all": "^4.0.0", + "gulp-uglify": "^3.0.2", + "gulp-uglify-es": "^3.0.0", + "lru-cache": "^10.0.1", + "minimist": "^1.2.5", + "multer": "^1.4.5-lts.1", + "mysql2": "^2.1.0", + "nodemailer": "^6.9.14", + "nodemailer-smtp-transport": "^2.7.4", + "redis": "^4.6.13", + "request": "^2.88.2", + "rollup-plugin-copy": "^3.4.0", + "sequelize": "^6.1.0", + "sequelize-pool": "^6.0.0", + "socket.io": "^2.3.0", + "socket.io-msgpack-parser": "^3.0.2", + "terser": "^5.18.2", + "uuid": "^9.0.1" + } +} diff --git a/src/biz/channel/channel_biz.js b/src/biz/channel/channel_biz.js new file mode 100644 index 0000000..8d94fa7 --- /dev/null +++ b/src/biz/channel/channel_biz.js @@ -0,0 +1,1153 @@ +const { + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, + tlConsoleError, setBit, + checkBit, + tlConsole +} = require('../../utils/utils') +const { getOssUrl, getAvatarOssUrl } = require('../../utils/oss/oss') +const channelService = require('../../service/channel/tl_channel_service') +const channelChatService = require('../../service/channel/tl_channel_chat_service') +const channelUserService = require('../../service/channel/tl_channel_user_service') +const userSessionService = require('../../service/user/tl_user_session_service') +const userReadService = require('../../service/user/tl_user_read_service') +const userService = require('../../service/user/tl_user_service') +const userFriendService = require('../../service/user/tl_user_friend_service') + +const { fields: channelChatFields } = require('../../tables/tl_channel_chat') +const { fields: channelUserFields} = require('../../tables/tl_channel_user') +const { fields: userReadFields } = require('../../tables/tl_user_read') +const { fields: channelFields } = require('../../tables/tl_channel') +const { fields: userFields } = require('../../tables/tl_user') +const { fields: userFriendFields } = require('../../tables/tl_user_friend') +const { inner: TlRoleInner } = require('../../tables/tl_role') + +const { + Def: TlChannelDef, Type: TlChannelType, + Status: TlChannelStatus +} = channelFields +const { + Def: TlChannelUserDef, Type: TlChannelUserType, + Flag: TlChannelUserFlag +} = channelUserFields +const { + Def: TlUserDef +} = userFields +const { + Def: TlRoleInnerDef +} = TlRoleInner +const { + Def: TlChannelChatDef, Type: TlChannelChatType, + Other: TlChannelChatOther, Flag: TlChannelChatFlag +} = channelChatFields +const { + Def: TlUserReadDef, Type: TlUserReadType +} = userReadFields +const { + Def: TlUserFriendDef +} = userFriendFields + + +/** + * 根据频道id搜索频道 + * @param {*} channelId + * @param {*} loginInfo + * @returns + */ +const searchChannelById = async function({channelId, loginInfo}){ + if(!channelId){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId, loginUserCompanyName + } = loginInfo + + const channelInfo = await channelService.getInfoById({ + companyId: loginUserCompanyId, + id: channelId + }) + + if(Object.keys(channelInfo).length == 0){ + return tlResponseNotFound("频道不存在") + } + + const channelType = channelInfo[TlChannelDef.type] + if(channelType === TlChannelType.FRIEND){ + return tlResponseSuccess("获取失败,频道不存在") + } + + const channelAvatar = "/image/group-default-avatar.png" + + // 获取频道用户数量 + const channelUserCount = await channelUserService.getCountByChannelId({ + companyId: loginUserCompanyId, channelId: channelId + }) + + // 获取频道用户信息 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, channelId, userId: loginUserId + }, [ + TlChannelUserDef.id + ]) + + let isChannelUser = false + if(Object.keys(channelUserInfo).length > 0){ + isChannelUser = true + } + + return tlResponseSuccess("获取频道信息成功", { + channelId: channelId, + channelName: channelInfo[TlChannelDef.name], + channelAvatar: channelAvatar, + channelUserCount: channelUserCount, + channelType: 'group', + isChannelUser: isChannelUser, + companyName: loginUserCompanyName + }) +} + + +/** + * 添加群聊频道 + * @param {*} channelName + * @param {*} loginInfo + */ +const addChannel = async function({channelName, loginInfo}){ + if(!channelName){ + return tlResponseArgsError("请求参数为空") + } + + channelName = channelName.trim() + if(!channelName){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = loginInfo + + const channelInfo = await channelService.addInfo({ + companyId: loginUserCompanyId, + name: channelName, + type: TlChannelType.GROUP, + }) + + if(Object.keys(channelInfo).length === 0){ + return tlResponseSvrError("添加频道失败") + } + + // 添加频道用户信息 + const channelUserInfo = await channelUserService.addInfo({ + companyId: loginUserCompanyId, + channelId: channelInfo[TlChannelDef.id], + type: TlChannelUserType.GROUP, + userId: loginUserId, + roleId : TlRoleInner.channel.creator.id, + }) + + if(!channelUserInfo){ + return tlResponseSvrError("添加频道失败") + } + + // 更新用户频道角色 + await userSessionService.updateUserChannelRoleMap({ + userId: loginUserId, + channelRoleMap: { + [channelInfo[TlChannelDef.id]]: TlRoleInner.channel.creator.id, + } + }) + + // 生成一条系统消息 + const channelChatSystemInfo = await channelChatService.addSystemChatnfo({ + companyId: loginUserCompanyId, + channelId: channelInfo[TlChannelDef.id], + message: '
' + `${loginUsername}创建了群聊${channelName}` + '
', + other: JSON.stringify({ + [TlChannelChatOther.ip]: '', + }), + messageTimeStamp: Date.now(), + messageVersion: 'v1', + flag: 0 + }) + + if(Object.keys(channelChatSystemInfo).length == 0){ + return tlConsoleError("添加新频道, 生成系统消息失败") + } + + return tlResponseSuccess("添加频道成功", { + channelId: channelInfo[TlChannelDef.id] + }) +} + + +/** + * 修改频道名称 + * @param {*} channelId + * @param {*} channelName + * @param {*} loginInfo + */ +const updateChannel = async function({channelId, channelName, loginInfo}){ + if(!channelId){ + return tlResponseArgsError("请求参数为空") + } + + if(!channelName){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const channelInfo = await channelService.updateInfoById({ + companyId: loginUserCompanyId, channelId + }, { + name: channelName, + }) + + if(Object.keys(channelInfo).length == 0){ + return tlResponseSvrError("修改频道失败") + } + + return tlResponseSuccess("修改频道成功") +} + + +/** + * 获取频道列表 + * @param {*} loginInfo + */ +const getChannelList = async function({loginInfo}){ + const { + loginUserCompanyId, loginUserId + } = loginInfo + + // 获取自己相关的频道列表 + const channelUserList = await channelUserService.getListByUserId({ + companyId: loginUserCompanyId, + userId: loginUserId + }, [ + TlChannelUserDef.channelId + ]) + + const channelIdList = channelUserList.map(channelUser => channelUser[TlChannelUserDef.channelId]) + + resultList = await initChannelListInfo({ + channelIdList, loginUserCompanyId, loginUserId + }) + + return tlResponseSuccess("获取频道列表成功", resultList) +} + + +/** + * 获取频道简单列表 + * @param {*} loginInfo + */ +const getChannelSimpleList = async function({loginInfo}){ + const { + loginUserCompanyId, loginUserId + } = loginInfo + + // 获取自己相关的频道列表 + const channelUserList = await channelUserService.getListByUserId({ + companyId: loginUserCompanyId, + userId: loginUserId + }, [ + TlChannelUserDef.channelId + ]) + + const channelIdList = channelUserList.map(channelUser => channelUser[TlChannelUserDef.channelId]) + // 获取频道列表 + const channelList = await channelService.getListByIdList({ + companyId: loginUserCompanyId, + idList: channelIdList + }, [ + TlChannelDef.id, + TlChannelDef.name, + TlChannelDef.type, + ]) + + // 获取好友频道用户列表,用于替换好友频道的频道名称为好友名称 + const friendChannelList = channelList.filter(channel => channel[TlChannelDef.type] === TlChannelType.FRIEND) + const friendChannelIdList = friendChannelList.map(channel => channel[TlChannelDef.id]) + // 构建好友频道用户映射 + const channelUserFriendMap = await initFriendChannelListName({ + channelIdList: friendChannelIdList, loginUserCompanyId, loginUserId + }) + + let resultList = [] + + for (let i = 0; i < channelList.length; i++) { + const channel = channelList[i] + + const channelId = channel[TlChannelDef.id] + + const channelType = channel[TlChannelDef.type] + let channelTypeStr = '' + if(channelType === TlChannelType.GROUP){ + channelTypeStr = "group" + }else if(channelType === TlChannelType.FRIEND){ + channelTypeStr = "friend" + } + + // 如果是好友频道,替换频道名称,头像为好友名称 + const friendInfo = channelUserFriendMap[channelId] || {} + let channelName = channel[TlChannelDef.name] + if(channelType === TlChannelType.FRIEND){ + channelName = friendInfo[TlUserDef.name] + } + + // 如果有备注,显示备注 + const channelReName = friendInfo[TlUserFriendDef.rename] + + let channelAvatar = '/image/friend-default-avatar.png' + if(channelType === TlChannelType.GROUP){ + channelAvatar = "/image/group-default-avatar.png" + }else if(channelType === TlChannelType.FRIEND){ + channelAvatar = await getOssUrl(friendInfo[TlUserDef.avatarUrl]) + } + + resultList.push({ + channelId: channelId, + channelName: channelName, + channelReName: channelReName, + channelType: channelType === TlChannelType.GROUP ? "group" : "friend", + channelAvatar: channelAvatar, + }) + } + + return tlResponseSuccess("获取频道列表成功", resultList) +} + + +/** + * 获取单个频道信息 + * @param {*} loginInfo + * @param {*} channelId + */ +const getChannelInfo = async function({loginInfo, channelId}){ + if(!channelId){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const channelIdList = [channelId] + + resultList = await initChannelListInfo({ + channelIdList, loginUserCompanyId, loginUserId + }) + + if(resultList.length == 0){ + return tlResponseNotFound("频道不存在") + } + + return tlResponseSuccess("获取频道数据成功", resultList[0]) +} + + +/** + * 获取频道列表信息,获取单个频道信息的公共初始化流程 + * @param {*} channelIdList + * @param {*} loginUserCompanyId + * @param {*} loginUserId + * @returns + */ +const initChannelListInfo = async function({ + channelIdList, loginUserCompanyId, loginUserId +}){ + if(!channelIdList){ + return [] + } + + if(!loginUserId){ + return [] + } + + if(channelIdList.length == 0){ + return [] + } + + // 获取频道列表 + const channelList = await channelService.getListByIdList({ + companyId: loginUserCompanyId, + idList: channelIdList + }) + + // 获取频道用户数量 + const channelUserCounts = await channelUserService.getCountByChannelIdList({ + companyId: loginUserCompanyId, channelIdList + }) + const channelUserCountsMap = {} + channelUserCounts.forEach(item => { + channelUserCountsMap[item[TlChannelUserDef.channelId]] = item.count + }) + + // 获取当前用户在频道的数据 + const channelUserInfoList = await channelUserService.getListByUserId({ + companyId: loginUserCompanyId, + userId: loginUserId + }, [ + TlChannelUserDef.channelId, + TlChannelUserDef.flag + ]) + + const channelUserInfoMap = {} + channelUserInfoList.forEach(item => { + channelUserInfoMap[item[TlChannelUserDef.channelId]] = item + }) + + //获取频道消息数量 + const channelChatCounts = await channelChatService.getCountByChannelIdList({ + companyId: loginUserCompanyId, channelIdList + }) + const channelChatCountsMap = {} + channelChatCounts.forEach(item => { + channelChatCountsMap[item[TlChannelChatDef.channelId]] = item.count + }) + + // 获取好友频道用户列表,用于替换好友频道的频道名称为好友名称 + const friendChannelList = channelList.filter(channel => channel[TlChannelDef.type] === TlChannelType.FRIEND) + const friendChannelIdList = friendChannelList.map(channel => channel[TlChannelDef.id]) + // 构建好友频道用户映射 + const channelUserFriendMap = await initFriendChannelListName({ + channelIdList: friendChannelIdList, loginUserCompanyId, loginUserId + }) + + let resultList = [] + for (let i = 0; i < channelList.length; i++) { + const channel = channelList[i] + + const channelId = channel[TlChannelDef.id] + const flag = channel[TlChannelDef.flag] + const channelUserInfo = channelUserInfoMap[channelId] || {} + const channelUserFlag = channelUserInfo[TlChannelUserDef.flag] || 0 + const channelUserRole = channelUserInfo[TlChannelUserDef.roleId] || 0 + + const channelType = channel[TlChannelDef.type] + let channelTypeStr = '' + if(channelType === TlChannelType.GROUP){ + channelTypeStr = "group" + }else if(channelType === TlChannelType.FRIEND){ + channelTypeStr = "friend" + } + + // 如果是好友频道,替换频道名称,头像为好友名称 + const friendInfo = channelUserFriendMap[channelId] || {} + + let channelName = channel[TlChannelDef.name] + if(channelType === TlChannelType.FRIEND){ + channelName = friendInfo[TlUserDef.name] + } + + // 如果有备注,显示备注 + const channelReName = friendInfo[TlUserFriendDef.rename] + + let channelAvatar = '/image/friend-default-avatar.png' + if(channelType === TlChannelType.GROUP){ + channelAvatar = "/image/group-default-avatar.png" + }else if(channelType === TlChannelType.FRIEND){ + channelAvatar = await getOssUrl(friendInfo[TlUserDef.avatarUrl]) + } + + resultList.push({ + channelId: channelId, + channelName: channelName, + channelReName: channelReName, + channelType: channelTypeStr, + channelAvatar: channelAvatar, + channelUserCount: channelUserCountsMap[channelId] || 0, + channelChatCount: channelChatCountsMap[channelId] || 0, + channelChatUnReadCount: 0, + channelTop: checkBit(channelUserFlag, TlChannelUserFlag.IS_SET_TOP), + channelBlack: checkBit(channelUserFlag, TlChannelUserFlag.IS_SET_BLACK), + channelMessageAllLoad: false, + channelRole: channelUserRole, + createTime: channel[TlChannelDef.createdAt], + extra: {} + }) + } + + resultList = resultList.reverse() + + return resultList +} + + +/** + * 初始化好友频道列表名称 + * @param {*} channelIdList + * @param {*} loginUserCompanyId + * @param {*} loginUserId + */ +const initFriendChannelListName = async function({ + channelIdList, loginUserCompanyId, loginUserId +}){ + if(!channelIdList){ + return {} + } + + if(!loginUserId){ + return {} + } + + if(channelIdList.length == 0){ + return {} + } + + // 获取好友频道用户列表,用于替换好友频道的频道名称为好友名称 + let channelUserFriendList = await channelUserService.getListByChannelIdList({ + companyId: loginUserCompanyId, + channelIdList: channelIdList + }, [ + TlChannelUserDef.channelId, + TlChannelUserDef.userId + ]) + channelUserFriendList = channelUserFriendList.filter(item => item[TlChannelUserDef.userId] != loginUserId) + + // 查询用户信息 + const userFriendMap = {} + const userFriendIdList = channelUserFriendList.map(item => { + if(item[TlChannelUserDef.userId] == loginUserId){ + return + } + return item[TlChannelUserDef.userId] + }) + const userFriendList = await userService.getListByIdList({ + companyId: loginUserCompanyId, + idList: userFriendIdList + }, [ + TlUserDef.id, + TlUserDef.name, + TlUserDef.avatarUrl + ]) + userFriendList.forEach(user => { + userFriendMap[user[TlUserDef.id]] = user + }) + + // 查询好友备注 + const userFriendRenameMap = {} + const userFriendRenameList = await userFriendService.getListByUserIdAndFriendIdList({ + companyId: loginUserCompanyId, + userId: loginUserId, + friendIdList: userFriendIdList + }, [ + TlUserFriendDef.friendId, + TlUserFriendDef.rename + ]) + userFriendRenameList.forEach(item => { + const friendId = item[TlUserFriendDef.friendId] + userFriendRenameMap[friendId] = item[TlUserFriendDef.rename] + }) + + // 构建好友频道用户映射 + let channelUserFriendMap = {} + channelUserFriendList.forEach(channelUser => { + const channelUserId = channelUser[TlChannelUserDef.userId] + const channelId = channelUser[TlChannelUserDef.channelId] + // 用户信息 + let userFriendInfo = userFriendMap[channelUserId] || {} + // 好友备注 + const rename = userFriendRenameMap[channelUserId] || "" + channelUserFriendMap[channelId] = { + [TlUserDef.id]: userFriendInfo[TlUserDef.id], + [TlUserDef.name]: userFriendInfo[TlUserDef.name], + [TlUserDef.avatarUrl]: userFriendInfo[TlUserDef.avatarUrl], + [TlUserFriendDef.rename]: rename + } + }) + + return channelUserFriendMap +} + + +/** + * 修改频道名称 + * @param {*} channelId + * @param {*} channelName + * @param {*} loginInfo + * @returns + */ +const updateChannelName = async function({channelId, channelName, loginInfo}){ + if(!channelId){ + return tlResponseArgsError("请求参数为空") + } + + if(!channelName){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const channelInfo = await channelService.getInfoById({ + companyId: loginUserCompanyId, + id: channelId + }) + + if(Object.keys(channelInfo).length == 0){ + return tlResponseNotFound("频道不存在") + } + + const updateChannelInfo = await channelService.updateInfoById({ + companyId: loginUserCompanyId, + id: channelId + }, { + name: channelName, + }) + + if(Object.keys(updateChannelInfo).length == 0){ + return tlResponseSvrError("修改频道名称失败") + } + + return tlResponseSuccess("修改频道名称成功") +} + + +/** + * 获取频道名称 + * @param {*} channelId + * @param {*} loginInfo + * @returns + */ +const getChannelNameById = async function({ loginInfo, channelId}){ + if(!channelId){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const channelInfo = await channelService.getInfoById({ + companyId: loginUserCompanyId, + id: channelId + }, [ + TlChannelDef.name + ]) + + if(Object.keys(channelInfo).length == 0){ + return tlResponseSuccess("获取成功", { + channelName: '' + }) + } + + const channelName = channelInfo[TlChannelDef.name] || "" + + return tlResponseSuccess("获取成功", { + channelName + }) +} + + +/** + * 获取频道聊天列表 + * @param {*} loginInfo + * @param {*} channelId + * @param {*} chatMinId + */ +const getChannelChatList = async function ({ + loginInfo, channelId, chatMinId, +}) { + if (!channelId) { + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + // 按时间范围获取聊天记录,拿第一页的数据即可 + // 调整pageSize需要同步调整前端 更新channelMessageAllLoad逻辑 + const page = 1 + const pageSize = 20 + + chatMinId = parseInt(chatMinId) + + // 已读消息列表 + const userReadList = await userReadService.getListByChannelUserId({ + companyId: loginUserCompanyId, + userId: loginUserId, + channelId + }, [ + TlUserReadDef.type, + TlUserReadDef.latestReadId + ]) + + let userReadMap = {} + userReadList.forEach(item => { + userReadMap[item[TlUserReadDef.type]] = item[TlUserReadDef.latestReadId] + }) + + let chatPromise = null + + // 聊天消息 + if(chatMinId !== -1){ + chatPromise = channelChatService.getListByChannelIdAndMinIdForPage({ + companyId: loginUserCompanyId, channelId, + minId: chatMinId, + }, [ + TlChannelChatDef.id, + TlChannelChatDef.channelId, + TlChannelChatDef.type, + TlChannelChatDef.flag, + TlChannelChatDef.other, + TlChannelChatDef.fromUserId, + TlChannelChatDef.fromUserName, + TlChannelChatDef.toUserId, + TlChannelChatDef.toUserName, + TlChannelChatDef.createdAt, + TlChannelChatDef.message, + TlChannelChatDef.messageTimeStamp, + TlChannelChatDef.messageVersion, + ], page, pageSize) + } + + let [ + chatList + ] = await Promise.all([ + chatPromise + ]) + + if(!chatList){ + chatList = [] + } + + let userIdList = chatList.map(item => item[TlChannelChatDef.fromUserId]) + + // 用户头像 + let userAvatarMap = {} + if(userIdList.length > 0){ + const userList = await userService.getListByIdList({ + companyId: loginUserCompanyId, + idList: userIdList + }, [ + TlUserDef.id, + TlUserDef.avatarUrl + ]) + + userList.forEach(item => { + userAvatarMap[item[TlUserDef.id]] = item[TlUserDef.avatarUrl] + }) + } + + // 获取回复消息id列表 + let replyChatMessageIdList = [] + chatList.forEach(item => { + let other = {} + let otherStr = item[TlChannelChatDef.other] + if(otherStr){ + try{ + other = JSON.parse(otherStr) + }catch(e){ + tlConsoleError('解析other失败', otherStr, item[TlChannelChatDef.id]) + other = {} + } + } + + let replyToMessageId = other[TlChannelChatOther.replyToMessageId] + let replyToMessageType = other[TlChannelChatOther.replyToMessageType] + if(replyToMessageId){ + replyToMessageId = parseInt(replyToMessageId) + + if([ + TlChannelChatType.FRIEND, + TlChannelChatType.GROUP, + ].includes(replyToMessageType)){ + replyChatMessageIdList.push(replyToMessageId) + } + } + }) + + // 回复文本消息, 目前回复只支持回复文本消息 + let replyChatMessageMap = {} + if(replyChatMessageIdList.length > 0){ + const replyMessageList = await channelChatService.getListByChannelIdAndIdList({ + companyId: loginUserCompanyId, + channelId, + idList: replyChatMessageIdList + }, [ + TlChannelChatDef.id, + TlChannelChatDef.message, + ]) + + replyMessageList.forEach(item => { + replyChatMessageMap[item[TlChannelChatDef.id]] = item + }) + } + + // 初始化返回数据 + let resultMap = await initChannelChatList({ + chatList, userChannelReadMap: { + [channelId]: userReadMap + }, userAvatarMap, replyChatMessageMap, + }) + + let resultList = resultMap[channelId] || [] + + return tlResponseSuccess("获取频道聊天列表成功", resultList) +} + + +/** + * 获取频道列表聊天记录 + * @param {*} loginInfo + * @param {*} channelIdList + */ +const getChannelChatListByChannelIdList = async function ({loginInfo, channelIdList}) { + if (!channelIdList) { + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + let userIdList = [] + + // 已读消息列表 + const userReadList = await userReadService.getListByUserIdTypeListAndChannelIdList({ + companyId: loginUserCompanyId, + userId: loginUserId, + typeList: [ + TlUserReadType.CHAT, + TlUserReadType.FILE, + TlUserReadType.MEDIA + ], + channelIdList + }, [ + TlUserReadDef.type, + TlUserReadDef.channelId, + TlUserReadDef.latestReadId + ]) + + let userChannelReadMap = {} + for (let i = 0; i < channelIdList.length; i++) { + const channelId = channelIdList[i] + userChannelReadMap[channelId] = { + [TlUserReadType.CHAT]: 0, + [TlUserReadType.FILE]: 0, + [TlUserReadType.MEDIA]: 0 + } + } + + userReadList.forEach(item => { + const channelId = item[TlUserReadDef.channelId] + const type = item[TlUserReadDef.type] + userChannelReadMap[channelId][type] = item[TlUserReadDef.latestReadId] + }) + + // 聊天消息 + let chatList = [] + let chatPromiseList = [] + for (let i = 0; i < channelIdList.length; i++) { + const channelId = channelIdList[i] + + chatPromiseList.push( + channelChatService.getListByChannelIdAndMaxIdForPage({ + companyId: loginUserCompanyId, channelId, + maxId: userChannelReadMap[channelId][TlUserReadType.CHAT] || 1, + }, [ + TlChannelChatDef.id, + TlChannelChatDef.channelId, + TlChannelChatDef.type, + TlChannelChatDef.flag, + TlChannelChatDef.other, + TlChannelChatDef.fromUserId, + TlChannelChatDef.fromUserName, + TlChannelChatDef.toUserId, + TlChannelChatDef.toUserName, + TlChannelChatDef.createdAt, + TlChannelChatDef.message, + TlChannelChatDef.messageTimeStamp, + TlChannelChatDef.messageVersion, + ], 1, 99) + ) + } + + const chatPromiseResult = await Promise.all(chatPromiseList) + for (let i = 0; i < chatPromiseResult.length; i++) { + if(!chatPromiseResult[i]){ + chatPromiseResult[i] = [] + } + chatList = chatList.concat(chatPromiseResult[i]) + userIdList = userIdList.concat(chatPromiseResult[i].map(item => item[TlChannelChatDef.fromUserId])) + } + + // 用户头像 + let userAvatarMap = {} + if(userIdList.length > 0){ + const userList = await userService.getListByIdList({ + companyId: loginUserCompanyId, + idList: userIdList + }, [ + TlUserDef.id, + TlUserDef.avatarUrl + ]) + + userList.forEach(item => { + userAvatarMap[item[TlUserDef.id]] = item[TlUserDef.avatarUrl] + }) + } + + // 获取回复消息id列表 + let replyChatMessageIdList = [] + chatList.forEach(item => { + let other = {} + let otherStr = item[TlChannelChatDef.other] + if(otherStr){ + try{ + other = JSON.parse(otherStr) + }catch(e){ + tlConsoleError('解析other失败', otherStr, item[TlChannelChatDef.id]) + other = {} + } + } + + let replyToMessageId = other[TlChannelChatOther.replyToMessageId] + let replyToMessageType = other[TlChannelChatOther.replyToMessageType] + if(replyToMessageId){ + replyToMessageId = parseInt(replyToMessageId) + + if([ + TlChannelChatType.FRIEND, + TlChannelChatType.GROUP, + ].includes(replyToMessageType)){ + replyChatMessageIdList.push(replyToMessageId) + } + } + }) + + // 回复文本消息 + let replyChatMessageMap = {} + if(replyChatMessageIdList.length > 0){ + const replyMessageList = await channelChatService.getListByIdList({ + companyId: loginUserCompanyId, + idList: replyChatMessageIdList + }, [ + TlChannelChatDef.id, + TlChannelChatDef.message, + ]) + + replyMessageList.forEach(item => { + replyChatMessageMap[item[TlChannelChatDef.id]] = item + }) + } + + // 初始化返回数据 + let resultMap = await initChannelChatList({ + chatList, userChannelReadMap, userAvatarMap, + replyChatMessageMap, + }) + + return tlResponseSuccess("获取频道列表聊天记录成功", resultMap) +} + + +/** + * 初始化频道聊天列表结构 + * @param {*} chatList + * @param {*} userAvatarMap + * @param {*} userChannelReadMap + * @param {*} replyMessageMap + */ +const initChannelChatList = async function({ + chatList, userAvatarMap, userChannelReadMap, + replyChatMessageMap +}){ + // 处理返回数据 + let resultMap = {} + + for(let i = 0; i < chatList.length; i++){ + const item = chatList[i] + const channelId = item[TlChannelChatDef.channelId] + if (!resultMap[channelId]) { + resultMap[channelId] = [] + } + + let chatLatestReadId = 0 + if(userChannelReadMap[channelId]){ + chatLatestReadId = userChannelReadMap[channelId][TlUserReadType.CHAT] + } + + let userAvatar = userAvatarMap[item[TlChannelChatDef.fromUserId]] + let type = item[TlChannelChatDef.type] + if (type == TlChannelChatType.SYSTEM) { + item[TlChannelChatDef.fromUserId] = 'system' + } + + let messageTimeStamp = item[TlChannelChatDef.messageTimeStamp] + let messageVersion = item[TlChannelChatDef.messageVersion] + + let flag = item[TlChannelChatDef.flag] + let isAtUser = checkBit(flag, TlChannelChatFlag.IS_AT_USER) + let isAtAll = checkBit(flag, TlChannelChatFlag.IS_AT_ALL) + let isReplay = checkBit(flag, TlChannelChatFlag.IS_REPLAY) + + let other = {} + let otherStr = item[TlChannelChatDef.other] + if(otherStr){ + try{ + other = JSON.parse(otherStr) + }catch(e){ + tlConsoleError('解析other失败', otherStr, item[TlChannelChatDef.id]) + other = {} + } + } + + let replyToMessageId = other[TlChannelChatOther.replyToMessageId] + if(replyToMessageId){ + replyToMessageId = parseInt(replyToMessageId) + } + + let replyToMessageType = other[TlChannelChatOther.replyToMessageType] + + let replyToMessageContent = '' + if([ + TlChannelChatType.FRIEND, + TlChannelChatType.GROUP, + ].includes(replyToMessageType)){ + let replyToMessage = replyChatMessageMap[replyToMessageId] || {} + replyToMessageContent = replyToMessage[TlChannelChatDef.message] || '消息已失效' + }else{ + replyToMessageContent = "未知消息" + } + + let atUserId = other[TlChannelChatOther.atUserId] + if(atUserId){ + atUserId = parseInt(atUserId) + } + let atUserName = other[TlChannelChatOther.atUserName] + + resultMap[channelId].push({ + id: item[TlChannelChatDef.id], + message: item[TlChannelChatDef.message], + type: item[TlChannelChatDef.type], + fromUserId: item[TlChannelChatDef.fromUserId], + fromUserName: item[TlChannelChatDef.fromUserName], + fromUserAvatar: await getAvatarOssUrl(userAvatar), + createTime: item[TlChannelChatDef.createdAt], + hasRead: item[TlChannelChatDef.id] <= chatLatestReadId, + isAtAll, + replyToMessageId, + replyToMessageType, + replyToMessageContent, + atUserId, + atUserName, + messageTimeStamp, + messageVersion + }) + } + + // 按时间戳排序 + Object.keys(resultMap).forEach(key => { + resultMap[key].sort((a, b) => { + return a.messageTimeStamp - b.messageTimeStamp + }) + }) + + return resultMap +} + + +/** + * 获取群组频道列表 + * @param {*} loginInfo + */ +const getChannelGroupList = async function({ + loginInfo +}){ + const { + loginUserCompanyId, loginUserId, loginUserCompanyName + } = loginInfo + + // 获取自己相关的频道列表 + const channelUserList = await channelUserService.getListByTypeUserId({ + companyId: loginUserCompanyId, + userId: loginUserId, + type: TlChannelUserType.GROUP + }, [ + TlChannelUserDef.channelId, + TlChannelUserDef.createdAt + ]) + + const channelUserMap = {} + channelUserList.forEach(item => { + channelUserMap[item[TlChannelUserDef.channelId]] = item + }) + + const channelIdList = channelUserList.map(channelUser => channelUser[TlChannelUserDef.channelId]) + // 获取频道列表 + const channelList = await channelService.getListByIdList({ + companyId: loginUserCompanyId, + idList: channelIdList + }, [ + TlChannelDef.id, + TlChannelDef.name, + TlChannelDef.status, + TlChannelDef.createdAt + ]) + + // 获取频道用户数量 + const channelUserCounts = await channelUserService.getCountByChannelIdList({ + companyId: loginUserCompanyId, channelIdList + }) + const channelUserCountsMap = {} + channelUserCounts.forEach(item => { + channelUserCountsMap[item[TlChannelUserDef.channelId]] = item.count + }) + + // 处理结果 + let resultList = [] + for (let i = 0; i < channelList.length; i++) { + const channel = channelList[i] + const channelId = channel[TlChannelDef.id] + const channelName = channel[TlChannelDef.name] + + let statusStr = '' + let status = channel[TlChannelDef.status] + if(status == TlChannelStatus.NORMAL){ + statusStr = '正常' + } + + const channelUser = channelUserMap[channelId] || {} + const joinTime = channelUser[TlChannelUserDef.createdAt] + + const userCount = channelUserCountsMap[channelId] || 0 + + resultList.push({ + channelId: channelId, + channelName: channelName, + channelAvatar: '/image/group-default-avatar.png', + channelCompanyName: loginUserCompanyName, + status: statusStr, + createTime: channel[TlChannelDef.createdAt], + joinTime: joinTime, + channelUserCount: userCount + }) + } + + return tlResponseSuccess("获取频道列表成功", resultList) +} + + + +module.exports = { + addChannel, + updateChannel, + getChannelList, + updateChannelName, + getChannelInfo, + getChannelNameById, + getChannelSimpleList, + searchChannelById, + + getChannelChatList, + getChannelChatListByChannelIdList, + getChannelGroupList +} \ No newline at end of file diff --git a/src/biz/channel/channel_chat_biz.js b/src/biz/channel/channel_chat_biz.js new file mode 100644 index 0000000..ec279b0 --- /dev/null +++ b/src/biz/channel/channel_chat_biz.js @@ -0,0 +1,691 @@ +const { + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, + setBit +} = require('../../utils/utils') +const { getAvatarOssUrl } = require('../../utils/oss/oss') +const channelService = require('../../service/channel/tl_channel_service') +const channelChatService = require('../../service/channel/tl_channel_chat_service') +const channelUserService = require('../../service/channel/tl_channel_user_service') +const userSessionService = require('../../service/user/tl_user_session_service') +const userService = require('../../service/user/tl_user_service') + +const userReadBiz = require('../user/user_read_biz') + +const { fields: channelChatFields } = require('../../tables/tl_channel_chat') +const { fields: channelUserFields} = require('../../tables/tl_channel_user') +const { fields: userFields } = require('../../tables/tl_user') +const { fields: channelFields } = require('../../tables/tl_channel') + +const { + Def: TlChannelChatDef, + Type: TlChannelChatType, + Other: TlChannelChatOther, + Flag: TlChannelChatFlag +} = channelChatFields +const { + Def: TlChannelUserDef +} = channelUserFields +const { + Def: TlUserDef +} = userFields +const { + Def: TlChannelDef, Type: TlChannelType +} = channelFields + + + +/** + * 发送好友频道聊天消息 + * @param {*} loginInfo + * @param {*} message + * @param {*} toUserId + * @param {*} toUserName + * @param {*} channelId + * @param {*} atUserId + * @param {*} atUserName + */ +const addFriendChannelChat = async function ({ + loginInfo, message, toUserId, toUserName, channelId, atUserId, atUserName +}) { + if (!message) { + return tlResponseArgsError("请求参数为空") + } + + if (!channelId) { + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId, loginUsername, loginUserAvatar + } = loginInfo + + // 频道是否存在 + const channelInfo = await channelService.getInfoById({ + companyId: loginUserCompanyId, + id: channelId + }) + + if(Object.keys(channelInfo).length == 0){ + return tlResponseNotFound("发送失败,频道不存在") + } + + // 设置@标志 + let flag = 0 + if (atUserId && atUserName) { + flag = setBit(flag, TlChannelChatFlag.IS_AT_USER, true) + } + + let other = { + [TlChannelChatOther.ip]: '', + } + + if (atUserId && atUserName) { + other = { + ...other, + [TlChannelChatOther.atUserId]: atUserId, + [TlChannelChatOther.atUserName]: atUserName, + } + } + + // 发送好友消息,如果没有toUserName或toUserId,说明可能已被对方删除 + // 如果没有找到好友,返回错误,如果找到好友,返回参数错误 + if(!toUserName || !toUserId){ + const channelUserList = await channelUserService.getListByChannelId({ + companyId: loginUserCompanyId, + channelId + }, [ + TlChannelUserDef.userId, + TlChannelUserDef.status + ]) + const friendUser = channelUserList.find(item => item[TlChannelUserDef.userId] !== loginUserId) + if(!friendUser){ + return tlResponseNotFound("发送失败,好友不存在") + } + + return tlResponseArgsError("请求参数为空") + } + + const info = await channelChatService.addFriendChatInfo({ + companyId: loginUserCompanyId, + channelId, + message, + fromUserId: loginUserId, + fromUserName: loginUsername, + toUserId, + toUserName, + other: JSON.stringify(other), + messageTimeStamp: Date.now(), + messageVersion: 'v1', + flag + }) + + if (Object.keys(info).length == 0) { + return tlResponseSvrError("添加好友频道聊天失败") + } + + // 更新用户已读消息 + const updateUserReadRes = await userReadBiz.updateChannelChatRead({ + loginInfo, channelId, + latestReadId: info[TlChannelChatDef.id], + }) + + if(!updateUserReadRes.success){ + return tlResponseSvrError("发送失败") + } + + return tlResponseSuccess("发送成功", { + id: info[TlChannelChatDef.id], + message: info[TlChannelChatDef.message], + type: info[TlChannelChatDef.type], + createTime: info[TlChannelChatDef.createdAt], + fromUserId: info[TlChannelChatDef.fromUserId], + fromUserName: info[TlChannelChatDef.fromUserName], + fromUserAvatar: loginUserAvatar, + hasRead: true, + atUserId, + atUserName, + messageTimeStamp: info[TlChannelChatDef.messageTimeStamp], + messageVersion: info[TlChannelChatDef.messageVersion], + }) +} + +/** + * 发送多人频道聊天消息 + * @param {*} loginInfo + * @param {*} message + * @param {*} channelId + * @param {*} atUserId + * @param {*} atUserName + * @param {*} atAll + */ +const addGroupChannelChat = async function ({ + loginInfo, message, channelId, atUserId, atUserName, atAll +}) { + if (!message) { + return tlResponseArgsError("请求参数为空") + } + + if (!channelId) { + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId, loginUsername, + loginUserAvatar + } = loginInfo + + // 频道是否存在 + const channelInfo = await channelService.getInfoById({ + companyId: loginUserCompanyId, + id: channelId + }) + if(Object.keys(channelInfo).length == 0){ + return tlResponseNotFound("发送失败,频道不存在") + } + + // 设置@标志 + let flag = 0 + if (atUserId && atUserName) { + flag = setBit(flag, TlChannelChatFlag.IS_AT_USER, true) + }else if (atAll) { + flag = setBit(flag, TlChannelChatFlag.IS_AT_ALL, true) + } + + let other = { + [TlChannelChatOther.ip]: '', + } + + if (atUserId && atUserName) { + other = { + ...other, + [TlChannelChatOther.atUserId]: atUserId, + [TlChannelChatOther.atUserName]: atUserName, + } + } + + const info = await channelChatService.addGroupChatInfo({ + companyId: loginUserCompanyId, + channelId, + message, + fromUserId: loginUserId, + fromUserName: loginUsername, + other: JSON.stringify(other), + messageTimeStamp: Date.now(), + messageVersion: 'v1', + flag + }) + + if (Object.keys(info).length == 0) { + return tlResponseSvrError("添加群组聊天失败") + } + + // 更新用户已读消息 + const updateUserReadRes = await userReadBiz.updateChannelChatRead({ + loginInfo, channelId, + latestReadId: info[TlChannelChatDef.id], + }) + + if(!updateUserReadRes.success){ + return tlResponseSvrError("发送失败") + } + + return tlResponseSuccess("发送成功", { + id: info[TlChannelChatDef.id], + message: info[TlChannelChatDef.message], + type: info[TlChannelChatDef.type], + createTime: info[TlChannelChatDef.createdAt], + fromUserId: info[TlChannelChatDef.fromUserId], + fromUserName: info[TlChannelChatDef.fromUserName], + fromUserAvatar: loginUserAvatar, + hasRead: true, + atUserId, + atUserName, + isAtAll: atAll, + messageTimeStamp: info[TlChannelChatDef.messageTimeStamp], + messageVersion: info[TlChannelChatDef.messageVersion], + }) +} + +/** + * 撤回群组/好友消息 + * @param {*} loginInfo + * @param {*} channelId + * @param {*} messageId + * @param {*} messageType + */ +const rollbackChannelChat = async function ({ + loginInfo, channelId, messageId, messageType +}) { + const { + loginUserCompanyId, loginUserId, loginUsername, + } = loginInfo + + if (!channelId) { + return tlResponseArgsError("请求参数为空") + } + + if (!messageId) { + return tlResponseArgsError("请求参数为空") + } + + if (!messageType) { + return tlResponseArgsError("请求参数为空") + } + + // 频道是否存在 + const channelInfo = await channelService.getInfoById({ + companyId: loginUserCompanyId, + id: channelId + }) + + if(Object.keys(channelInfo).length == 0){ + return tlResponseNotFound("撤回失败,频道不存在") + } + + // 消息是否存在 + let messageInfo = {} + if([ + TlChannelChatType.FRIEND, + TlChannelChatType.GROUP, + + // 不支持撤回系统消息 + // TlChannelChatType.SYSTEM, + ].includes(messageType)){ + messageInfo = await channelChatService.getInfoById({ + companyId: loginUserCompanyId, + id: messageId + }) + + } + + if(Object.keys(messageInfo).length == 0){ + return tlResponseNotFound("撤回失败,消息不存在") + } + + // 不能撤回他人消息 + if(messageInfo[TlChannelChatDef.fromUserId] !== loginUserId){ + return tlResponseForbidden("撤回失败") + } + + // 时间是否超过2分钟 + const now = Date.now() + const messageTimeStamp = messageInfo[TlChannelChatDef.messageTimeStamp] + if(now - messageTimeStamp > 2 * 60 * 1000){ + return tlResponseForbidden("撤回失败,消息已超过2分钟") + } + + // 删除原有消息 + let deleteRes = 0 + if([ + TlChannelChatType.FRIEND, + TlChannelChatType.GROUP, + ].includes(messageType)){ + deleteRes = await channelChatService.deleteInfoById({ + companyId: loginUserCompanyId, + id: messageId + }) + }else{ + return tlResponseSvrError("撤回失败") + } + + if(deleteRes == 0){ + return tlResponseSvrError("撤回失败") + } + + let rollbackMessage = '' + if([ + TlChannelChatType.FRIEND, + TlChannelChatType.GROUP, + ].includes(messageType)){ + rollbackMessage = `${loginUsername}撤回了一条消息` + } + + // 生成撤回系统消息 + const rollbackInfo = await channelChatService.addSystemChatnfo({ + companyId: loginUserCompanyId, + channelId, + message: '' + rollbackMessage + '
', + other: JSON.stringify({ + [TlChannelChatOther.ip]: '', + }), + messageTimeStamp: Date.now(), + messageVersion: 'v1', + flag: 0 + }) + + if(Object.keys(rollbackInfo).length == 0){ + return tlResponseSvrError("撤回失败") + } + + // 更新用户已读消息 + const updateUserReadRes = await userReadBiz.updateChannelChatRead({ + loginInfo, channelId, + latestReadId: rollbackInfo[TlChannelChatDef.id], + }) + + if(!updateUserReadRes.success){ + return tlResponseSvrError("撤回失败") + } + + return tlResponseSuccess("撤回成功", { + id: rollbackInfo[TlChannelChatDef.id], + message: rollbackInfo[TlChannelChatDef.message], + type: rollbackInfo[TlChannelChatDef.type], + createTime: rollbackInfo[TlChannelChatDef.createdAt], + fromUserId: rollbackInfo[TlChannelChatDef.fromUserId], + fromUserName: rollbackInfo[TlChannelChatDef.fromUserName], + hasRead: true, + messageTimeStamp: rollbackInfo[TlChannelChatDef.messageTimeStamp], + messageVersion: rollbackInfo[TlChannelChatDef.messageVersion], + }) +} + +/** + * 回复好友聊天 + * @param {*} loginInfo + * @param {*} message + * @param {*} channelId + * @param {*} messageId + * @param {*} atUserId + * @param {*} atUserName + * @param {*} messageType + */ +const addReplyFriendChannelChat = async function ({ + loginInfo, message, channelId, messageId, messageType, atUserId, atUserName +}) { + const { + loginUserCompanyId, loginUserId, loginUsername, loginUserAvatar + } = loginInfo + + if (!message) { + return tlResponseArgsError("请求参数为空") + } + + if (!channelId) { + return tlResponseArgsError("请求参数为空") + } + + if (!messageId) { + return tlResponseArgsError("请求参数为空") + } + + if (!messageType) { + return tlResponseArgsError("请求参数为空") + } + + // 频道是否存在 + const channelInfo = await channelService.getInfoById({ + companyId: loginUserCompanyId, + id: channelId + }) + if(Object.keys(channelInfo).length == 0){ + return tlResponseNotFound("发送失败,频道不存在") + } + + const channelType = channelInfo[TlChannelDef.type] + if(channelType !== TlChannelType.FRIEND){ + return tlResponseArgsError("发送失败,频道类型错误") + } + + // 消息是否存在 + let messageInfo = {} + if([ + TlChannelChatType.FRIEND, + TlChannelChatType.GROUP, + + // 不支持回复系统消息 + // TlChannelChatType.SYSTEM, + ].includes(messageType)){ + messageInfo = await channelChatService.getInfoById({ + companyId: loginUserCompanyId, + id: messageId + }) + + } + if(Object.keys(messageInfo).length == 0){ + return tlResponseNotFound("发送失败,回复消息不存在") + } + + // 设置回复标志 + let flag = setBit(0, TlChannelChatFlag.IS_REPLAY, true) + + if (atUserId && atUserName) { + flag = setBit(flag, TlChannelChatFlag.IS_AT_USER, true) + } + + let other = { + [TlChannelChatOther.ip]: '', + [TlChannelChatOther.replyToMessageId]: messageId, + [TlChannelChatOther.replyToMessageType]: messageType, + } + + if (atUserId && atUserName) { + other = { + ...other, + [TlChannelChatOther.atUserId]: atUserId, + [TlChannelChatOther.atUserName]: atUserName, + } + } + + const info = await channelChatService.addFriendChatInfo({ + companyId: loginUserCompanyId, + channelId, + message, + fromUserId: loginUserId, + fromUserName: loginUsername, + toUserId: messageInfo[TlChannelChatDef.fromUserId], + toUserName: messageInfo[TlChannelChatDef.fromUserName], + other: JSON.stringify(other), + messageTimeStamp: Date.now(), + messageVersion: 'v1', + flag + }) + + if(Object.keys(info).length == 0){ + return tlResponseSvrError("回复失败") + } + + // 更新用户已读消息 + const updateUserReadRes = await userReadBiz.updateChannelChatRead({ + loginInfo, channelId, + latestReadId: info[TlChannelChatDef.id], + }) + + if(!updateUserReadRes.success){ + return tlResponseSvrError("回复失败") + } + + let replyToMessageContent = '' + if([ + TlChannelChatType.FRIEND, + TlChannelChatType.GROUP, + ].includes(messageType)){ + replyToMessageContent = messageInfo[TlChannelChatDef.message] + }else{ + replyToMessageContent = '未知消息' + } + + return tlResponseSuccess("回复成功", { + id: info[TlChannelChatDef.id], + message: info[TlChannelChatDef.message], + type: info[TlChannelChatDef.type], + createTime: info[TlChannelChatDef.createdAt], + fromUserId: info[TlChannelChatDef.fromUserId], + fromUserName: info[TlChannelChatDef.fromUserName], + fromUserAvatar: loginUserAvatar, + toUserId: messageInfo[TlChannelChatDef.fromUserId], + toUserName: messageInfo[TlChannelChatDef.fromUserName], + hasRead: true, + replyToMessageId: messageId, + replyToMessageType: messageType, + replyToMessageContent, + atUserId, + atUserName, + messageTimeStamp: info[TlChannelChatDef.messageTimeStamp], + messageVersion: info[TlChannelChatDef.messageVersion], + }) +} + +/** + * 回复群组聊天 + * @param {*} loginInfo + * @param {*} message + * @param {*} channelId + * @param {*} messageId + * @param {*} atUserId + * @param {*} atUserName + * @param {*} atAll + * @param {*} messageType + */ +const addReplyGroupChannelChat = async function ({ + loginInfo, message, channelId, messageId, messageType, atUserId, atUserName, atAll +}) { + const { + loginUserCompanyId, loginUserId, loginUsername, loginUserAvatar + } = loginInfo + + if (!message) { + return tlResponseArgsError("请求参数为空") + } + + if (!channelId) { + return tlResponseArgsError("请求参数为空") + } + + if (!messageId) { + return tlResponseArgsError("请求参数为空") + } + + if (!messageType) { + return tlResponseArgsError("请求参数为空") + } + + // 频道是否存在 + const channelInfo = await channelService.getInfoById({ + companyId: loginUserCompanyId, + id: channelId + }) + + if(Object.keys(channelInfo).length == 0){ + return tlResponseNotFound("发送失败,频道不存在") + } + + const channelType = channelInfo[TlChannelDef.type] + if(channelType !== TlChannelType.GROUP){ + return tlResponseArgsError("发送失败,频道类型错误") + } + + // 消息是否存在 + let messageInfo = {} + if([ + TlChannelChatType.FRIEND, + TlChannelChatType.GROUP, + + // 不支持回复系统消息 + // TlChannelChatType.SYSTEM, + ].includes(messageType)){ + messageInfo = await channelChatService.getInfoById({ + companyId: loginUserCompanyId, + id: messageId + }) + } + + if(Object.keys(messageInfo).length == 0){ + return tlResponseNotFound("发送失败,回复消息不存在") + } + + // 设置回复标志 + let flag = setBit(0, TlChannelChatFlag.IS_REPLAY, true) + + if (atUserId && atUserName) { + flag = setBit(flag, TlChannelChatFlag.IS_AT_USER, true) + }else if (atAll) { + flag = setBit(flag, TlChannelChatFlag.IS_AT_ALL, true) + } + + let other = { + [TlChannelChatOther.ip]: '', + [TlChannelChatOther.replyToMessageId]: messageId, + [TlChannelChatOther.replyToMessageType]: messageType, + } + + if (atUserId && atUserName) { + other = { + ...other, + [TlChannelChatOther.atUserId]: atUserId, + [TlChannelChatOther.atUserName]: atUserName, + } + } + + const info = await channelChatService.addGroupChatInfo({ + companyId: loginUserCompanyId, + channelId, + message, + fromUserId: loginUserId, + fromUserName: loginUsername, + toUserId: messageInfo[TlChannelChatDef.fromUserId], + toUserName: messageInfo[TlChannelChatDef.fromUserName], + other: JSON.stringify(other), + messageTimeStamp: Date.now(), + messageVersion: 'v1', + flag + }) + + if(Object.keys(info).length == 0){ + return tlResponseSvrError("回复失败") + } + + // 更新用户已读消息 + const updateUserReadRes = await userReadBiz.updateChannelChatRead({ + loginInfo, channelId, + latestReadId: info[TlChannelChatDef.id], + }) + + if(!updateUserReadRes.success){ + return tlResponseSvrError("回复失败") + } + + let replyToMessageContent = '' + if([ + TlChannelChatType.FRIEND, + TlChannelChatType.GROUP, + ].includes(messageType)){ + replyToMessageContent = messageInfo[TlChannelChatDef.message] + }else{ + replyToMessageContent = '未知消息' + } + + return tlResponseSuccess("回复成功", { + id: info[TlChannelChatDef.id], + message: info[TlChannelChatDef.message], + type: info[TlChannelChatDef.type], + createTime: info[TlChannelChatDef.createdAt], + fromUserId: info[TlChannelChatDef.fromUserId], + fromUserName: info[TlChannelChatDef.fromUserName], + fromUserAvatar: loginUserAvatar, + toUserId: messageInfo[TlChannelChatDef.fromUserId], + toUserName: messageInfo[TlChannelChatDef.fromUserName], + hasRead: true, + replyToMessageId: messageId, + replyToMessageType: messageType, + replyToMessageContent, + atUserId, + atUserName, + isAtAll: atAll, + messageTimeStamp: info[TlChannelChatDef.messageTimeStamp], + messageVersion: info[TlChannelChatDef.messageVersion], + }) +} + + + +module.exports = { + addFriendChannelChat, + addGroupChannelChat, + + addReplyFriendChannelChat, + addReplyGroupChannelChat, + + rollbackChannelChat, +} \ No newline at end of file diff --git a/src/biz/channel/channel_user_biz.js b/src/biz/channel/channel_user_biz.js new file mode 100644 index 0000000..50f42a3 --- /dev/null +++ b/src/biz/channel/channel_user_biz.js @@ -0,0 +1,738 @@ +const { + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, setBit, checkBit +} = require('../../utils/utils') +const channelService = require('../../service/channel/tl_channel_service') +const channelUserService = require('../../service/channel/tl_channel_user_service') +const channelChatService = require('../../service/channel/tl_channel_chat_service') +const userService = require('../../service/user/tl_user_service') +const userFriendService = require('../../service/user/tl_user_friend_service') +const userSessionService = require('../../service/user/tl_user_session_service') +const { inner: TlRoleInner } = require('../../tables/tl_role') +const { fields: channelUserFields } = require('../../tables/tl_channel_user') +const { fields: channelChatFields } = require('../../tables/tl_channel_chat') +const { fields: userFields } = require('../../tables/tl_user') +const { fields: userFriendFields } = require('../../tables/tl_user_friend') +const { fields: channelFields } = require('../../tables/tl_channel') +const { getOssUrl, getAvatarOssUrl } = require('../../utils/oss/oss') + +const { Def: TlChannelUserDef, Type: TlChannelUserType, Flag: TlChannelUserFlag } = channelUserFields +const { Def : TlUserDef } = userFields +const { Def: TlUserFriendDef } = userFriendFields +const { Def: TlChannelDef, Type: TlChannelType } = channelFields +const { Def: TlChannelChatDef, Other: TlChannelChatOther } = channelChatFields + +/** + * 添加频道用户 + * @param {*} loginInfo + * @param {*} channelId + * @param {*} userId + * @param {*} roleId + */ +const addChannelUser = async function({ loginInfo, channelId, userId, roleId }){ + if(!channelId){ + return tlResponseArgsError("请求参数为空") + } + + if(!userId){ + return tlResponseArgsError("请求参数为空") + } + + if(!roleId){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = loginInfo + + const channelInfo = await channelService.getInfoById({ + companyId: loginUserCompanyId, + id: channelId + }, [ + TlChannelDef.id, + TlChannelDef.type + ]) + + if(Object.keys(channelInfo).length == 0){ + return tlResponseArgsError("频道不存在") + } + + const channelType = channelInfo[TlChannelDef.type] + if (channelType != TlChannelType.GROUP){ + return tlResponseArgsError("频道非法操作") + } + + const channelUser = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId, + userId, + }, [ + TlChannelUserDef.userId + ]) + + if(Object.keys(channelUser).length > 0){ + return tlResponseArgsError("频道用户已存在") + } + + const userInfo = await userService.getInfoById({ + companyId: loginUserCompanyId, + id: userId, + },[ + TlUserDef.name + ]) + + // 生成邀请消息 + const channelMessage = await channelChatService.addSystemChatnfo({ + companyId: loginUserCompanyId, + channelId, + message: '' + loginUsername + "邀请 " + userInfo[TlUserDef.name] + "加入频道" + '
', + other: JSON.stringify({ + [TlChannelChatOther.ip]: '', + }), + messageTimeStamp: Date.now(), + messageVersion: 'v1', + flag: 0 + }) + + if(Object.keys(channelMessage).length == 0){ + return tlResponseSvrError("添加频道用户失败") + } + + // 添加频道用户 + const info = await channelUserService.addInfo({ + companyId: loginUserCompanyId, + channelId, + userId, + type: TlChannelUserType.GROUP, + roleId, + }) + + if(Object.keys(info).length == 0){ + return tlResponseSvrError("添加频道用户失败") + } + + // 更新用户频道角色 + await userSessionService.updateUserChannelRoleMap({ + userId: loginUserId, + channelRoleMap: { + [channelId]: roleId + } + }) + + return tlResponseSuccess("添加频道用户成功") +} + +/** + * 批量添加频道用户 + * @param {*} loginInfo + * @param {*} channelId + * @param {*} userIdList + * @param {*} roleId + */ +const addChannelUserList = async function({ loginInfo, channelId, userIdList, roleId }){ + if(!channelId){ + return tlResponseArgsError("请求参数为空") + } + + if(!userIdList){ + return tlResponseArgsError("请求参数为空") + } + + if(userIdList.length == 0){ + return tlResponseArgsError("请求参数为空") + } + + if(userIdList.length > 100){ + return tlResponseArgsError("邀请用户数量超过限制") + } + + if(!roleId){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = loginInfo + + const channelInfo = await channelService.getInfoById({ + companyId: loginUserCompanyId, + id: channelId + }, [ + TlChannelDef.id, + TlChannelDef.type + ]) + + if(Object.keys(channelInfo).length == 0){ + return tlResponseArgsError("频道不存在") + } + + const channelType = channelInfo[TlChannelDef.type] + if (channelType != TlChannelType.GROUP){ + return tlResponseArgsError("频道非法操作") + } + + // userIdList去重 + userIdList = Array.from(new Set(userIdList)) + + const existChannelUserList = await channelUserService.getListByChannelUserIdList({ + companyId: loginUserCompanyId, + channelId, + userIdList: userIdList, + }, [ + TlChannelUserDef.userId + ]) + + if(existChannelUserList.length > 0){ + return tlResponseArgsError("部分频道用户已存在", { + existUserIdList: existChannelUserList.map(item => item[TlChannelUserDef.userId]) + }) + } + + // 获取用户信息 + const userInfoList = await userService.getListByIdList({ + companyId: loginUserCompanyId, + idList: userIdList, + }, [ + TlUserDef.name + ]) + + // 生成邀请消息 + const channelMessage = await channelChatService.addSystemChatnfo({ + companyId: loginUserCompanyId, + channelId, + message: '' + loginUsername + "邀请 " + userInfoList.map( + item => item[TlUserDef.name] + ).join(",") + " 共" + userInfoList.length + "人加入频道" + '
', + other: JSON.stringify({ + [TlChannelChatOther.ip]: '', + }), + messageTimeStamp: Date.now(), + messageVersion: 'v1', + flag: 0 + }) + + if(Object.keys(channelMessage).length == 0){ + return tlResponseSvrError("添加频道用户失败") + } + + let infoList = [] + userIdList.forEach(userId => { + infoList.push({ + companyId: loginUserCompanyId, + channelId, + userId, + type: TlChannelUserType.GROUP, + roleId, + }) + }) + + const list = await channelUserService.addInfoList({ + companyId: loginUserCompanyId, + channelId, + userInfoList: infoList, + }) + + if(list == null){ + return tlResponseSvrError("添加频道用户失败") + } + + // 更新用户频道角色 + await userSessionService.batchUpdateUserChannelRoleMap({ + userIdList: userIdList, + channelRoleMap: { + [channelId]: roleId + } + }) + + return tlResponseSuccess("添加频道用户成功", { + id: channelMessage[TlChannelChatDef.id], + message: channelMessage[TlChannelChatDef.message], + type: channelMessage[TlChannelChatDef.type], + createTime: channelMessage[TlChannelChatDef.createdAt], + fromUserId: channelMessage[TlChannelChatDef.fromUserId], + fromUserName: channelMessage[TlChannelChatDef.fromUserName], + fromUserAvatar: await getAvatarOssUrl(), + hasRead: false, + }) +} + +/** + * 分享加入群聊 + * @param {*} loginInfo + * @param {*} channelId + */ +const shareJoinGroupChannel = async function({ loginInfo, channelId }){ + if(!channelId){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = loginInfo + + const channelInfo = await channelService.getInfoById({ + companyId: loginUserCompanyId, + id: channelId + }, [ + TlChannelDef.id, + TlChannelDef.type + ]) + + if(Object.keys(channelInfo).length == 0){ + return tlResponseArgsError("频道不存在") + } + + return addChannelUser({ + loginInfo, channelId, + userId: loginUserId, + roleId: TlRoleInner.channel.member.id + }) +} + + +/** + * 添加频道普通身份用户 + * @param {*} loginInfo + * @param {*} channelId + * @param {*} userId + */ +const addChannelUserNormal = async function({ loginInfo, channelId, userId }){ + return addChannelUser({ + loginInfo, channelId, userId, roleId: TlRoleInner.channel.member.id + }) +} + +/** + * 批量添加频道普通身份用户 + * @param {*} loginInfo + * @param {*} channelId + * @param {*} userIdList + */ +const addChannelUserListNormal = async function({ loginInfo, channelId, userIdList }){ + return addChannelUserList({ + loginInfo, channelId, userIdList, roleId: TlRoleInner.channel.member.id + }) +} + +/** + * 添加频道管理员身份用户 + * @param {*} loginInfo + * @param {*} channelId + * @param {*} userId + */ +const addChannelUserAdmin = async function({ loginInfo, channelId, userId }){ + return addChannelUser({ + loginInfo, channelId, userId, roleId: TlRoleInner.channel.admin.id + }) +} + + +/** + * 删除频道用户 + * @param {*} loginInfo + * @param {*} channelUserId + */ +const deleteChannelUser = async function({ loginInfo, channelUserId }){ + if(!channelUserId){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserId, loginUserCompanyId + } = loginInfo + + const info = await channelUserService.deleteInfoById({ + companyId: loginUserCompanyId, + id: channelUserId, + }) + + if(info == 0){ + return tlResponseSvrError("删除频道用户失败") + } + + return tlResponseSuccess("删除频道用户成功") +} + +/** + * 修改频道用户身份权限为普通用户 + * @param {*} loginInfo + * @param {*} channelUserId + */ +const updateChannelUserRoleNormal = async function({ loginInfo, channelUserId }){ + if(!channelUserId){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const info = await channelUserService.updateInfoById({ + companyId: loginUserCompanyId, + id: channelUserId, + },{ + roleId: TlRoleInner.channel.member.id, + }) + + return tlResponseSuccess("修改频道用户成功") +} + +/** + * 修改频道用户身份权限为管理员 + * @param {*} loginInfo + * @param {*} channelUserId + */ +const updateChannelUserRoleAdmin = async function({ loginInfo, channelUserId }){ + if(!channelUserId){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const info = await channelUserService.updateInfoById({ + companyId: loginUserCompanyId, + id: channelUserId, + }, { + roleId: TlRoleInner.channel.admin.id, + }) + + if(Object.keys(info).length == 0){ + return tlResponseSvrError("修改频道用户失败") + } + + return tlResponseSuccess("修改频道用户成功") +} + +/** + * 获取频道用户列表 + * @param {*} loginInfo + * @param {*} channelId + */ +const getChannelUserList = async function({ loginInfo, channelId }){ + if(!channelId){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const channelUserList = await channelUserService.getListByChannelId({ + companyId: loginUserCompanyId, + channelId, + }, [ + TlChannelUserDef.userId, + TlChannelUserDef.roleId, + TlChannelUserDef.channelId + ]) + + const userIdList = channelUserList.map(channelUser => channelUser[TlChannelUserDef.userId]) + + // 获取用户信息 + const userList = await userService.getListByIdList({ + companyId: loginUserCompanyId, + idList: userIdList + }, [ + TlUserDef.id, + TlUserDef.name, + TlUserDef.avatarUrl, + ]) + + const userMap = {} + userList.forEach(user => userMap[user[TlUserDef.id]] = user) + + // 获取好友关系 + const friendList = await userFriendService.getListByUserIdAndFriendIdList({ + companyId: loginUserCompanyId, + userId: loginUserId, + friendIdList: userIdList + }, [ + TlUserFriendDef.id, + TlUserFriendDef.friendId, + TlUserFriendDef.rename + ]) + + const firendMap = {} + friendList.forEach(friend => firendMap[friend[TlUserFriendDef.friendId]] = friend) + + // 组装结果 + let resultList = [] + + for(let i = 0; i < channelUserList.length; i++){ + const channelUser = channelUserList[i] + + const userId = channelUser[TlChannelUserDef.userId] + const user = userMap[userId] + if(!user){ + return + } + + // 获取好友关系名称 + const friend = firendMap[userId] || {} + let friendName = friend[TlUserFriendDef.rename] || "" + let userFriendId = friend[TlUserFriendDef.id] + + resultList.push({ + userId: user[TlUserDef.id], + username: user[TlUserDef.name], + userAvatar: await getOssUrl(user[TlUserDef.avatarUrl]), + friendName: friendName, + userFriendId: userFriendId + }) + } + + return tlResponseSuccess("获取单个频道用户列表成功", resultList) +} + + +/** + * 获取频道列表的用户列表 + * @param {*} loginInfo + */ +const getChannelListUserList = async function({loginInfo}){ + const { + loginUserCompanyId, loginUserId + } = loginInfo + + // 获取自己所在的频道列表 + const selfShannelUserList = await channelUserService.getListByUserId({ + companyId: loginUserCompanyId, + userId: loginUserId + }, [ + TlChannelUserDef.channelId + ]) + + const channelIdList = selfShannelUserList.map(channelUser => channelUser[TlChannelUserDef.channelId]) + + // 获取自己所在频道的所有用户列表 + const allChannelUserList = await channelUserService.getListByChannelIdList({ + companyId: loginUserCompanyId, + channelIdList + }, [ + TlChannelUserDef.userId, + TlChannelUserDef.channelId, + ]) + + const userIdList = allChannelUserList.map(channelUser => channelUser[TlChannelUserDef.userId]) + + // 获取用户信息 + const userList = await userService.getListByIdList({ + companyId: loginUserCompanyId, + idList: userIdList + }, [ + TlUserDef.id, + TlUserDef.name, + TlUserDef.avatarUrl, + ]) + + const userMap = {} + userList.forEach(user => userMap[user[TlUserDef.id]] = user) + + // 获取好友关系 + const friendList = await userFriendService.getListByUserIdAndFriendIdList({ + companyId: loginUserCompanyId, + userId: loginUserId, + friendIdList: userIdList + }, [ + TlUserFriendDef.id, + TlUserFriendDef.friendId, + TlUserFriendDef.rename + ]) + + const firendMap = {} + friendList.forEach(friend => firendMap[friend[TlUserFriendDef.friendId]] = friend) + + // 组装结果 + let result = {} + for(let i = 0; i < allChannelUserList.length; i++){ + const channelUser = allChannelUserList[i] + + const channelId = channelUser[TlChannelUserDef.channelId] + const userId = channelUser[TlChannelUserDef.userId] + const user = userMap[userId] + if(!user){ + return + } + + // 获取好友关系名称 + const friend = firendMap[userId] || {} + let friendName = friend[TlUserFriendDef.rename] + let userFriendId = friend[TlUserFriendDef.id] + + const channelUserList = result[channelId] || [] + channelUserList.push({ + userId: user[TlUserDef.id], + username: user[TlUserDef.name], + userAvatar: await getOssUrl(user[TlUserDef.avatarUrl]), + friendName: friendName, + userFriendId: userFriendId + }) + + result[channelId] = channelUserList + } + + return tlResponseSuccess("获取全部频道用户列表成功", result) +} + + +/** + * 设置频道置顶 + * @param {*} channelId + * @param {*} loginInfo + * @param {*} top + * @returns + */ +const updateChannelToTop = async function({channelId, top = false, loginInfo}){ + if(!channelId){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId, + userId: loginUserId + }, [ + TlChannelUserDef.id, + TlChannelUserDef.flag + ]) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("频道不存在") + } + + const channelUserInfoId = channelUserInfo[TlChannelUserDef.id] + + let flag = channelUserInfo[TlChannelUserDef.flag] + if(top){ + flag = setBit(flag, TlChannelUserFlag.IS_SET_TOP, true) + }else{ + flag = setBit(flag, TlChannelUserFlag.IS_SET_TOP, false) + } + + const updateChannelUserInfo = await channelUserService.updateInfoById({ + companyId: loginUserCompanyId, + id: channelUserInfoId + }, { + flag: flag + }) + + if(Object.keys(updateChannelUserInfo).length == 0){ + return tlResponseSvrError(top ? "置顶失败" : "取消置顶失败") + } + + return tlResponseSuccess(top ? "置顶成功" : "取消置顶成功") +} + + +/** + * 设置拉黑频道 + * @param {*} channelId + * @param {*} loginInfo + * @param {*} black + * @returns + */ +const updateChannelToBlack = async function({channelId, black = false, loginInfo}){ + if(!channelId){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId, + userId: loginUserId + }, [ + TlChannelUserDef.id, + TlChannelUserDef.flag + ]) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("频道不存在") + } + + const channelUserInfoId = channelUserInfo[TlChannelUserDef.id] + + let flag = channelUserInfo[TlChannelUserDef.flag] + if(black){ + flag = setBit(flag, TlChannelUserFlag.IS_SET_BLACK, true) + }else{ + flag = setBit(flag, TlChannelUserFlag.IS_SET_BLACK, false) + } + + const updateChannelUserInfo = await channelUserService.updateInfoById({ + companyId: loginUserCompanyId, + id: channelUserInfoId + }, { + flag: flag + }) + + if(Object.keys(updateChannelUserInfo).length == 0){ + return tlResponseSvrError(black ? "拉黑失败" : "取消拉黑失败") + } + + return tlResponseSuccess(black ? "拉黑成功" : "取消拉黑成功") +} + + +/** + * 退出群聊 + * @param {*} channelId + */ +const exitChannel = async function({channelId, loginInfo}){ + if(!channelId){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + // 获取频道用户 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId, + userId: loginUserId + }, [ + TlChannelUserDef.id, + ]) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("退出频道成功") + } + + // 删除自己在频道的数据 + await channelUserService.deleteInfoById({ + companyId: loginUserCompanyId, + id: channelUserInfo[TlChannelUserDef.id] + }) + + return tlResponseSuccess("退出频道成功") +} + + + +module.exports = { + addChannelUser, + addChannelUserNormal, + addChannelUserAdmin, + deleteChannelUser, + updateChannelUserRoleNormal, + updateChannelUserRoleAdmin, + getChannelUserList, + addChannelUserListNormal, + getChannelListUserList, + shareJoinGroupChannel, + updateChannelToTop, + updateChannelToBlack, + exitChannel +} \ No newline at end of file diff --git a/src/biz/company/company_biz.js b/src/biz/company/company_biz.js new file mode 100644 index 0000000..488af56 --- /dev/null +++ b/src/biz/company/company_biz.js @@ -0,0 +1,97 @@ +const uuid = require('uuid') +const { + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess +} = require('../../utils/utils') +const companyService = require('../../service/company/tl_company_service') +const userSessionService = require('../../service/user/tl_user_session_service') + + +/** + * 添加企业 + * @param {*} loginInfo + * @param {*} name + * @param {*} address + * @param {*} phone + * @param {*} email + * @param {*} website + * @param {*} logo + * @param {*} description + */ +const addCompany = async function ({ + loginInfo, name, address, phone, email, website, logo, description +}) { + if(!name){ + return tlResponseArgsError("请求参数为空") + } + + if(!address){ + return tlResponseArgsError("请求参数为空") + } + + if(!phone){ + return tlResponseArgsError("请求参数为空") + } + + if(!email){ + return tlResponseArgsError("请求参数为空") + } + + if(!website){ + return tlResponseArgsError("请求参数为空") + } + + if(!logo){ + return tlResponseArgsError("请求参数为空") + } + + if(!description){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const code = uuid.v4().replace(/-/g, '') + + const info = await companyService.addInfo({ + name, + address, + phone, + email, + website, + logo, + description, + code + }) + + if(Object.keys(info).length == 0){ + return tlResponseSvrError("添加企业失败") + } + + return tlResponseSuccess("添加企业成功", info) +} + + +/** + * 获取企业信息 + * @param {*} loginInfo + */ +const getCompanyInfo = async function ({loginInfo}) { + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const info = await companyService.getInfoById({ + id: loginUserCompanyId + }) + + return tlResponseSuccess("获取企业信息成功", info) +} + + +module.exports = { + addCompany, + getCompanyInfo +} \ No newline at end of file diff --git a/src/biz/config/config_biz.js b/src/biz/config/config_biz.js new file mode 100644 index 0000000..21f299c --- /dev/null +++ b/src/biz/config/config_biz.js @@ -0,0 +1,138 @@ + +const { + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess +} = require("../../utils/utils"); +const {get_env_config} = require("../../../conf/env_config"); +const conf = get_env_config() +const crypto = require("crypto") +const userSessionService = require('../../service/user/tl_user_session_service') + + +/** + * 获取ip地址,初始化等相关配置 + * @param {*} openTurn 是否开启turn + * @param {*} useSecret 使用的账号模式 + * @param {*} ip ip地址 + * @param {*} loginInfo 登录信息 + */ +const initData = async function({openTurn, useSecret, ip, token}){ + if(!token){ + return tlResponseSuccess("获取成功",{ + version : conf.version, + wsHost: "ws://127.0.0.1", + rtcConfig: { iceServers: [] }, + options: {}, + logo : genClientLogo(), + }) + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = await userSessionService.getUserInfoByToken({token}) + + if (!loginUserCompanyId || !loginUserId) { + return tlResponseSuccess("获取成功",{ + version : conf.version, + wsHost: "ws://127.0.0.1", + rtcConfig: { iceServers: [] }, + options: {}, + logo : genClientLogo(), + }) + } + + //ice服务器配置 + let iceServers = genTurnServerIceServersConfig(openTurn, useSecret, "tlrtcfile"); + + if(process.env.tl_rtc_app_env_mode === 'http'){ + let wsHost = conf.socket_host || ip + conf.socket_port; + return tlResponseSuccess("获取成功",{ + version : conf.version, + wsHost: "ws://" + wsHost, + rtcConfig: { iceServers }, + options: { + "offerToReceiveAudio": 1, + "offerToReceiveVideo": 1 + }, + logo : genClientLogo(), + }) + } + + let wsHost = conf.socket_host || ip; + return tlResponseSuccess("获取成功",{ + version : conf.version, + wsHost: "wss://" + wsHost, + rtcConfig: { iceServers }, + options: { + "offerToReceiveAudio": 1, + "offerToReceiveVideo": 1 + }, + logo : genClientLogo(), + }) +} + + + +/** + * 生成客户端控制台打印logo + */ +const genClientLogo = function(){ + let style = "font-size:20px;color: black; font-style: italic;"; + style += "font-weight: bold; font-family: system-ui;"; + style += "padding: 8px;cursor: pointer;" + return style; +} + + +/** + * 生成turn服务的iceServers配置 + * @param {*} withTurn + * @param {*} useSecret + * @param {*} username + * @returns + */ +const genTurnServerIceServersConfig = function(withTurn, useSecret, username){ + let iceServers = [{ + urls : conf.webrtc_stun_host + }]; + + //无需turn中继 + if(!withTurn){ + return iceServers; + } + + //turn固定账号模式 + if(!useSecret){ + iceServers.push({ + urls : conf.webrtc_turn_host, + username: conf.webrtc_turn_username, + credential: conf.webrtc_turn_credential + }) + return iceServers; + } + + // 有效账号模式 + const secret = conf.webrtc_turn_secret; + //生成账号的有效期 + const expirseTime = conf.webrtc_turn_expire; + //当前时间 + const time = new Date().getTime(); + //turn服务的用户名规则 + const turnUsername = `${time + expirseTime}:${username}`; + + //turn服务的密码规则 + const dig = crypto.createHmac('sha1', secret).update(turnUsername).digest(); + const turnPassword = Buffer.from(dig, 'utf-8').toString('base64'); + + iceServers.push({ + urls : conf.webrtc_turn_host, + username: turnUsername, + credential: turnPassword, + }) + + return iceServers; +} + +module.exports = { + initData +} \ No newline at end of file diff --git a/src/biz/user/user_apply_biz.js b/src/biz/user/user_apply_biz.js new file mode 100644 index 0000000..a59217b --- /dev/null +++ b/src/biz/user/user_apply_biz.js @@ -0,0 +1,495 @@ +const { + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, + setBit, checkBit, + tlConsole +} = require('../../utils/utils') +const userService = require('../../service/user/tl_user_service') +const userFriendService = require('../../service/user/tl_user_friend_service') +const userSessionService = require('../../service/user/tl_user_session_service') +const userApplyService = require('../../service/user/tl_user_apply_service') +const userReadService = require('../../service/user/tl_user_read_service') +const userFriendBiz = require('./user_friend_biz') + +const { fields: userFields } = require('../../tables/tl_user') +const { fields: userFriendFields } = require('../../tables/tl_user_friend') +const { fields: userApplyFields } = require('../../tables/tl_user_apply') +const { fields: userReadFields } = require('../../tables/tl_user_read') + +const { getOssUrl } = require('../../utils/oss/oss') + +const TlUserDef = userFields.Def +const TlUserFriendDef = userFriendFields.Def +const TlUserFriendType = userFriendFields.FriendType +const TlUserFriendStatus = userFriendFields.Status +const TlUserApplyDef = userApplyFields.Def +const TlUserApplyStatus = userApplyFields.Status +const TlUserApplyType = userApplyFields.Type +const TlUserApplyOrigin = userApplyFields.Origin +const TlUserReadDef = userReadFields.Def +const TlUserReadType = userReadFields.Type + + + +/** + * 申请添加好友 + * @param {*} friendId + * @param {*} origin + * @param {*} remark + * @param {*} loginInfo + */ +const applyAddFriend = async function({ friendId, origin, remark, loginInfo }){ + if(!friendId){ + return tlResponseArgsError("请求参数为空") + } + + if(!origin){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + if (loginUserId == friendId) { + return tlResponseForbidden("不能添加自己为好友") + } + + const friendInfo = await userService.getInfoById({ + companyId: loginUserCompanyId, + id: friendId + }) + + if(Object.keys(friendInfo).length == 0){ + return tlResponseNotFound("用户不存在") + } + + const userFriendInfo = await userFriendService.getInfoByUserIdAndFriendId({ + companyId: loginUserCompanyId, + userId: loginUserId, + friendId + }) + + const status = userFriendInfo[TlUserFriendDef.status] + if(status == TlUserFriendStatus.NORMAL){ + return tlResponseForbidden("已经是好友") + } + + // 查看自己是否存在待验证的申请记录 + let applyHistroryList = await userApplyService.getListByUserIdAndTargetIdAndStatuAndType({ + companyId: loginUserCompanyId, + userId: loginUserId, + targetId: friendId, + status: TlUserApplyStatus.WAIT, + type: TlUserApplyType.FRIEND + }, [ + TlUserApplyDef.id + ]) + + if(applyHistroryList.length > 0){ + return tlResponseForbidden("你已经向该用户发送过申请,请查看申请记录") + } + + // 查看对方是否存在待验证的申请记录 + applyHistroryList = await userApplyService.getListByUserIdAndTargetIdAndStatuAndType({ + companyId: loginUserCompanyId, + userId: friendId, + targetId: loginUserId, + status: TlUserApplyStatus.WAIT, + type: TlUserApplyType.FRIEND + }, [ + TlUserApplyDef.id + ]) + + if(applyHistroryList.length > 0){ + return tlResponseForbidden("对方已经向你发送过申请,请查看申请记录") + } + + // 生成申请记录 + const applyInfo = await userApplyService.addInfo({ + companyId: loginUserCompanyId, + userId: loginUserId, + targetId: friendId, + origin, + remark, + type: TlUserApplyType.FRIEND, + status: TlUserApplyStatus.WAIT + }) + + if(Object.keys(applyInfo).length == 0){ + return tlResponseSvrError("发送申请失败") + } + + return tlResponseSuccess("发送申请成功", { + applyId: applyInfo[TlUserApplyDef.id] + }) +} + +/** + * 通过用户好友申请 + * @param {*} id + * @param {*} loginInfo + * @returns + */ +const passUserFriendApply = async function({ id, loginInfo }){ + if(!id){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = loginInfo + + // 查询申请记录 + const applyInfo = await userApplyService.getInfoById({ + companyId: loginUserCompanyId, + id + }) + + if(Object.keys(applyInfo).length == 0){ + return tlResponseNotFound("申请记录不存在") + } + + const status = applyInfo[TlUserApplyDef.status] + if(status != TlUserApplyStatus.WAIT){ + return tlResponseForbidden("申请记录状态不正确") + } + + const type = applyInfo[TlUserApplyDef.type] + if(type != TlUserApplyType.FRIEND){ + return tlResponseForbidden("申请记录类型不正确") + } + + // 查询申请人信息 + const applyUserId = applyInfo[TlUserApplyDef.userId] + const applyUserInfo = await userService.getInfoById({ + companyId: loginUserCompanyId, + id: applyUserId + }, [ + TlUserDef.id, + TlUserDef.name + ]) + + if(Object.keys(applyUserInfo).length == 0){ + return tlResponseNotFound("用户不存在") + } + + // 生成频道,生成一条系统消息,生成对应的频道用户 + let initChannelRes = await userFriendBiz.initChannelForPassFriend({ + applyUserId, loginUserCompanyId, loginUserId + }) + + if (!initChannelRes.success) { + return initChannelRes + } + + // 生成双向好友记录 + let initUserFriendRes = await userFriendBiz.initUserFriendForPassFriend({ + loginUserCompanyId, + loginUserId, + loginUsername, + applyUserId, + applyUserName: applyUserInfo[TlUserDef.name], + origin: applyInfo[TlUserApplyDef.origin], + remark: applyInfo[TlUserApplyDef.remark], + channelId: initChannelRes.data.channelId + }) + + if (!initUserFriendRes.success) { + return initUserFriendRes + } + + // 更新申请记录状态 + const updateInfo = await userApplyService.updateInfoById({ + companyId: loginUserCompanyId, + id + }, { + [TlUserApplyDef.status]: TlUserApplyStatus.PASS + }) + + if(Object.keys(updateInfo).length == 0){ + return tlResponseSvrError("更新申请记录状态失败") + } + + return tlResponseSuccess("通过申请成功", { + applyId : id, + applyUserId: applyUserId + }) +} + +/** + * 拒绝用户好友申请 + * @param {*} id + * @param {*} loginInfo + * @returns + */ +const rejectUserFriendApply = async function({ id, loginInfo }){ + if(!id){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const applyInfo = await userApplyService.getInfoById({ + companyId: loginUserCompanyId, + id + }, [ + TlUserApplyDef.id, + TlUserApplyDef.status, + TlUserApplyDef.type, + TlUserApplyDef.userId + ]) + + if(Object.keys(applyInfo).length == 0){ + return tlResponseNotFound("申请记录不存在") + } + + const status = applyInfo[TlUserApplyDef.status] + if(status != TlUserApplyStatus.WAIT){ + return tlResponseForbidden("申请记录状态不正确") + } + + const type = applyInfo[TlUserApplyDef.type] + if(type != TlUserApplyType.FRIEND){ + return tlResponseForbidden("申请记录类型不正确") + } + + const applyUserId = applyInfo[TlUserApplyDef.userId] + const applyUserInfo = await userService.getInfoById({ + companyId: loginUserCompanyId, + id: applyUserId + }, [ + TlUserDef.id + ]) + + if(Object.keys(applyUserInfo).length == 0){ + return tlResponseNotFound("用户不存在") + } + + // 更新申请记录状态 + const updateInfo = await userApplyService.updateInfoById({ + companyId: loginUserCompanyId, + id + }, { + [TlUserApplyDef.status]: TlUserApplyStatus.REJECT + }) + + if(Object.keys(updateInfo).length == 0){ + return tlResponseSvrError("更新申请记录状态失败") + } + + return tlResponseSuccess("拒绝申请成功", { + applyId : id, + applyUserId: applyUserId + }) +} + + +/** + * 获取我发出的好友申请记录 + * @param {*} loginInfo + * @returns + */ +const getUserFriendApplyListFromSelf = async function({ loginInfo }){ + const { + loginUserCompanyId, loginUserId, loginUserCompanyName + } = loginInfo + + const applyList = await userApplyService.getListByUserIdAndType({ + companyId: loginUserCompanyId, + userId: loginUserId, + type: TlUserApplyType.FRIEND + }, [ + TlUserApplyDef.id, + TlUserApplyDef.targetId, + TlUserApplyDef.origin, + TlUserApplyDef.status, + TlUserApplyDef.remark, + TlUserApplyDef.createdAt + ]) + + // 用户信息 + let userIdList = new Set( + applyList.map(item => item[TlUserApplyDef.targetId]) + ) + let userInfoList = await userService.getListByIdList({ + companyId: loginUserCompanyId, + idList: [...userIdList] + }, [ + TlUserDef.id, + TlUserDef.name, + TlUserDef.avatarUrl + ]) + let userInfoMap = new Map() + userInfoList.forEach(item => { + userInfoMap.set(item[TlUserDef.id], item) + }) + + // 已读记录 + let readList = await userReadService.getListByUserIdTypeList({ + companyId: loginUserCompanyId, + userId: loginUserId, + typeList: [ + TlUserReadType.FRIEND_APPLY, + TlUserReadType.FRIEND_APPLY_PASS, + TlUserReadType.FRIEND_APPLY_REJECT + ] + }, [ + TlUserReadDef.recordId + ]) + let userReadMap = new Map() + readList.forEach(item => { + userReadMap.set(item[TlUserReadDef.recordId], true) + }) + + let resultList = [] + + for(let i = 0; i < applyList.length; i++){ + const item = applyList[i] + + let originStr = '' + const origin = item[TlUserApplyDef.origin] + if(origin == TlUserApplyOrigin.SEARCH_NAME){ + originStr = "搜索用户名添加" + } + + const status = item[TlUserApplyDef.status] + let statusStr = '' + if(status == TlUserApplyStatus.PASS){ + statusStr = "对方通过申请" + }else if(status == TlUserApplyStatus.REJECT){ + statusStr = "对方拒绝申请" + }else if(status == TlUserApplyStatus.WAIT){ + statusStr = "等待对方验证" + } + + let userInfo = userInfoMap.get(item[TlUserApplyDef.targetId]) + if(!userInfo){ + userInfo = {} + } + + resultList.push({ + id : item[TlUserApplyDef.id], + username: userInfo[TlUserDef.name], + userAvatar: await getOssUrl(userInfo[TlUserDef.avatarUrl]), + userApplyRemark: item[TlUserApplyDef.remark], + origin : originStr, + createTime: item[TlUserApplyDef.createdAt], + status : statusStr, + userCompanyName: loginUserCompanyName, + hasRead: userReadMap.has(item[TlUserApplyDef.id]) + }) + } + + return tlResponseSuccess("获取我发出的申请记录成功", resultList) +} + +/** + * 获取我收到的好友申请记录 + * @param {*} loginInfo + * @returns + */ +const getUserFriendListFromOther = async function({ loginInfo }){ + const { + loginUserCompanyId, loginUserId, loginUserCompanyName + } = loginInfo + + const applyList = await userApplyService.getListByTargetIdAndType({ + companyId: loginUserCompanyId, + targetId: loginUserId, + type: TlUserApplyType.FRIEND + }, [ + TlUserApplyDef.id, + TlUserApplyDef.userId, + TlUserApplyDef.origin, + TlUserApplyDef.status, + TlUserApplyDef.remark, + TlUserApplyDef.createdAt + ]) + + // 用户信息 + let userIdList = new Set( + applyList.map(item => item[TlUserApplyDef.userId]) + ) + let userInfoList = await userService.getListByIdList({ + companyId: loginUserCompanyId, + idList: [...userIdList] + }, [ + TlUserDef.id, + TlUserDef.name, + TlUserDef.avatarUrl + ]) + let userInfoMap = new Map() + userInfoList.forEach(item => { + userInfoMap.set(item[TlUserDef.id], item) + }) + + // 已读记录 + let readList = await userReadService.getListByUserIdTypeList({ + companyId: loginUserCompanyId, + userId: loginUserId, + typeList: [ + TlUserReadType.FRIEND_APPLY, + TlUserReadType.FRIEND_APPLY_PASS, + TlUserReadType.FRIEND_APPLY_REJECT + ] + }, [ + TlUserReadDef.recordId + ]) + let userReadMap = new Map() + readList.forEach(item => { + userReadMap.set(item[TlUserReadDef.recordId], true) + }) + + let resultList = [] + + for(let i = 0; i < applyList.length; i++){ + const item = applyList[i] + + let originStr = '' + const origin = item[TlUserApplyDef.origin] + if(origin == TlUserApplyOrigin.SEARCH_NAME){ + originStr = "搜索用户名添加" + } + + const status = item[TlUserApplyDef.status] + let statusStr = '' + if(status == TlUserApplyStatus.PASS){ + statusStr = "已通过申请" + }else if(status == TlUserApplyStatus.REJECT){ + statusStr = "已拒绝申请" + }else if(status == TlUserApplyStatus.WAIT){ + statusStr = "等待我验证" + } + + let userInfo = userInfoMap.get(item[TlUserApplyDef.userId]) + if(!userInfo){ + userInfo = {} + } + + resultList.push({ + id : item[TlUserApplyDef.id], + username: userInfo[TlUserDef.name], + userAvatar: await getOssUrl(userInfo[TlUserDef.avatarUrl]), + userApplyRemark: item[TlUserApplyDef.remark], + origin : originStr, + createTime: item[TlUserApplyDef.createdAt], + status : statusStr, + userCompanyName: loginUserCompanyName, + hasRead: userReadMap.has(item[TlUserApplyDef.id]) + }) + } + return tlResponseSuccess("获取我收到的申请记录成功", resultList) +} + + + +module.exports = { + applyAddFriend, + passUserFriendApply, + rejectUserFriendApply, + getUserFriendApplyListFromSelf, + getUserFriendListFromOther +} \ No newline at end of file diff --git a/src/biz/user/user_biz.js b/src/biz/user/user_biz.js new file mode 100644 index 0000000..c4bd1bb --- /dev/null +++ b/src/biz/user/user_biz.js @@ -0,0 +1,235 @@ +const { + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, + setBit, checkBit, checkIsEmail +} = require('../../utils/utils') +const userService = require('../../service/user/tl_user_service') +const userFriendService = require('../../service/user/tl_user_friend_service') +const userSessionService = require('../../service/user/tl_user_session_service') +const { getAvatarOssUrl } = require('../../utils/oss/oss') + +const { fields: userFields } = require('../../tables/tl_user') +const { fields: userFriendFields } = require('../../tables/tl_user_friend') + +const TlUserDef = userFields.Def +const TlUserFriendDef = userFriendFields.Def +const TlUserFriendStatus = userFriendFields.Status +const TlUserFriendType = userFriendFields.FriendType + + + +/** + * 搜索用户 + * @param {*} name + * @param {*} loginInfo + */ +const searchUserByName = async function({ name, loginInfo }){ + if(!name){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId, loginUserCompanyName + } = loginInfo + + const info = await userService.getInfoByName({ + companyId: loginUserCompanyId, + name + }, [ + TlUserDef.id, + TlUserDef.name, + TlUserDef.avatarUrl, + TlUserDef.wchatName, + ]) + + if(Object.keys(info).length == 0){ + return tlResponseNotFound("用户不存在") + } + + const userFriendInfo = await userFriendService.getInfoByUserIdAndFriendId({ + companyId: loginUserCompanyId, + userId: loginUserId, + friendId: info[TlUserDef.id] + }, [ + TlUserFriendDef.channelId, + TlUserFriendDef.remark, + TlUserFriendDef.friendType + ]) + + let isFriend = true + if(Object.keys(userFriendInfo).length == 0){ + isFriend = false + } + + if(info[TlUserDef.id] == loginUserId){ + isFriend = true + } + + let friendTypeStr = '' + if(isFriend){ + let friendType = userFriendInfo[TlUserFriendDef.friendType] + if(friendType === TlUserFriendType.NORMAL){ + friendTypeStr = '普通好友' + }else if(friendType === TlUserFriendType.SPECIAL){ + friendTypeStr = '特别关注' + } + } + + const result = { + userId: info[TlUserDef.id], + username: info[TlUserDef.name], + userAvatar: await getAvatarOssUrl(info[TlUserDef.avatarUrl]), + userCompanyName: loginUserCompanyName, + wechatName: info[TlUserDef.wchatName], + channelId: userFriendInfo[TlUserFriendDef.channelId], + isFriend: isFriend, + remark: userFriendInfo[TlUserFriendDef.remark], + friendType: friendTypeStr + } + + return tlResponseSuccess("搜索用户成功", result) +} + +/** + * 搜索用户通过id + * @param {*} id + * @param {*} loginInfo + */ +const searchUserById = async function({ id, loginInfo }){ + if(!id){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId, loginUserCompanyName + } = loginInfo + + const info = await userService.getInfoById({ + companyId: loginUserCompanyId, + id + }, [ + TlUserDef.id, + TlUserDef.name, + TlUserDef.avatarUrl, + TlUserDef.wchatName + ]) + + if(Object.keys(info).length == 0){ + return tlResponseNotFound("用户不存在") + } + + const userFriendInfo = await userFriendService.getInfoByUserIdAndFriendId({ + companyId: loginUserCompanyId, + userId: loginUserId, + friendId: info[TlUserDef.id] + }, [ + TlUserFriendDef.channelId, + ]) + + let isFriend = true + if(Object.keys(userFriendInfo).length == 0){ + isFriend = false + } + + if(id == loginUserId){ + isFriend = true + } + + const result = { + userId: info[TlUserDef.id], + username: info[TlUserDef.name], + userAvatar: await getAvatarOssUrl(info[TlUserDef.avatarUrl]), + userCompanyName: loginUserCompanyName, + wechatName: info[TlUserDef.wchatName], + channelId: userFriendInfo[TlUserFriendDef.channelId], + isFriend: isFriend + } + + return tlResponseSuccess("搜索用户成功", result) +} + + +/** + * 用户绑定邮箱 + * @param {*} token + * @param {*} loginInfo + * @param {*} email + * @param {*} code + */ +const bindEmail = async function({ token, loginInfo, email, code }) { + const { + loginUserCompanyId, loginUserId, loginUserEmail + } = loginInfo + + if(!email){ + return tlResponseArgsError("邮箱不能为空") + } + + if(!code){ + return tlResponseArgsError("验证码不能为空") + } + + // base64解码 + email = Buffer.from(email, 'base64').toString() + + if(!checkIsEmail(email)){ + return tlResponseArgsError("邮箱格式不正确") + } + + if(email == loginUserEmail){ + return tlResponseForbidden("邮箱未更换") + } + + // 检查code + const checkCode = await userSessionService.getEmailCode({ + email + }) + + if (checkCode !== code) { + return tlResponseArgsError("邮箱验证码错误") + } + + const emailExist = await userService.getInfoByEmail({ + companyId: loginUserCompanyId, + email + }, [ + TlUserDef.id + ]) + + if(emailExist[id] == loginUserId){ + return tlResponseForbidden("邮箱未更换") + } + + if(Object.keys(emailExist).length > 0){ + return tlResponseForbidden("该邮箱已被其他帐号绑定") + } + + const result = await userService.updateInfoById({ + companyId: loginUserCompanyId, + id: loginUserId, + }, { + [TlUserDef.email]: email + }) + + if(Object.keys(result).length == 0){ + return tlResponseSvrError("绑定邮箱失败") + } + + // 更新登录态信息 + await userSessionService.setUserInfoByToken({ + token, info: Object.assign(loginInfo, { + loginUserEmail: email + }) + }) + + return tlResponseSuccess("绑定邮箱成功") +} + + + + +module.exports = { + searchUserByName, + searchUserById, + bindEmail +} \ No newline at end of file diff --git a/src/biz/user/user_config_biz.js b/src/biz/user/user_config_biz.js new file mode 100644 index 0000000..fd569c3 --- /dev/null +++ b/src/biz/user/user_config_biz.js @@ -0,0 +1,389 @@ +const { + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, + setBit, checkBit +} = require('../../utils/utils') +const userConfigService = require('../../service/user/tl_user_config_service') +const userSessionService = require('../../service/user/tl_user_session_service') + +const { fields: userConfigFields } = require('../../tables/tl_user_config') + +const TlUserConfigDef = userConfigFields.Def +const TlUserConfigAccountDef = userConfigFields.Account +const TlUserConfigSkinDef = userConfigFields.Skin +const TlUserConfigAuthorityDef = userConfigFields.Authority +const TlUserConfigMessageDef = userConfigFields.Message +const TlUserConfigOtherDef = userConfigFields.Other + + +/** + * 获取用户自定义配置 + * @param {*} loginInfo + * @returns + */ +const getUserConfigSetting = async function({ loginInfo }){ + const { + loginUserCompanyId, loginUserId + } = loginInfo + + let userConfig = await userConfigService.getInfoByUserId({ + companyId: loginUserCompanyId, + userId: loginUserId + },[ + TlUserConfigDef.account, + TlUserConfigDef.message, + TlUserConfigDef.authority, + TlUserConfigDef.skin, + TlUserConfigDef.other, + TlUserConfigDef.normal + ]) + + // 不存在则创建 + if(Object.keys(userConfig).length == 0){ + const result = await userConfigService.addDefaultInfo({ + companyId: loginUserCompanyId, + userId: loginUserId + }) + + if(Object.keys(result).length == 0){ + return tlResponseSvrError("获取设置失败") + } + + userConfig = result + } + + let userConfigAccount = userConfig[TlUserConfigDef.account] + let userConfigMessage = userConfig[TlUserConfigDef.message] + let userConfigAuthority = userConfig[TlUserConfigDef.authority] + let userConfigSkin = userConfig[TlUserConfigDef.skin] + let userConfigOther = userConfig[TlUserConfigDef.other] + let userConfigNormal = userConfig[TlUserConfigDef.normal] + + let result = { + account: JSON.parse(userConfigAccount), + message: JSON.parse(userConfigMessage), + authority: JSON.parse(userConfigAuthority), + skin: JSON.parse(userConfigSkin), + other: JSON.parse(userConfigOther), + normal: JSON.parse(userConfigNormal) + } + + return tlResponseSuccess("获取设置成功", result) +} + + +/** + * 更新用户配置 + * @param {*} loginInfo + * @param {*} normal + * @returns + */ +const updateUserConfigNormal = async function({ loginInfo, normal }){ + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const userConfig = await userConfigService.getInfoByUserId({ + companyId: loginUserCompanyId, + userId: loginUserId + },[ + TlUserConfigDef.id, + TlUserConfigDef.normal + ]) + + if(Object.keys(userConfig).length == 0){ + return tlResponseNotFound("用户配置不存在") + } + + let preNormal = userConfig[TlUserConfigDef.normal] + preNormal = JSON.parse(preNormal) + + let newNormal = Object.assign(preNormal, normal) + + // 更新用户配置 + let updateNormal = {} + for (let key in TlUserConfigNormalDef) { + updateNormal[key] = newNormal[key] + } + + // 更新用户配置 + let userConfigId = userConfig[TlUserConfigDef.id] + const result = await userConfigService.updateInfoById({ + companyId: loginUserCompanyId, + id: userConfigId + }, { + [TlUserConfigDef.normal]: JSON.stringify(updateNormal) + }) + + if(Object.keys(result).length == 0){ + return tlResponseSvrError("更新设置失败") + } + + return tlResponseSuccess("更新设置成功") +} + + +/** + * 更新用户帐号配置 + * @param {*} loginInfo + * @param {*} account + * @returns + */ +const updateUserConfigAccount = async function({ loginInfo, account }){ + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const userConfig = await userConfigService.getInfoByUserId({ + companyId: loginUserCompanyId, + userId: loginUserId + },[ + TlUserConfigDef.id, + TlUserConfigDef.account + ]) + + if(Object.keys(userConfig).length == 0){ + return tlResponseNotFound("用户配置不存在") + } + + let preAccount = userConfig[TlUserConfigDef.account] + preAccount = JSON.parse(preAccount) + + let newAccount = Object.assign(preAccount, account) + + // 更新用户配置 + let updateAccount = {} + for (let key in TlUserConfigAccountDef) { + updateAccount[key] = newAccount[key] + } + + // 更新用户配置 + let userConfigId = userConfig[TlUserConfigDef.id] + const result = await userConfigService.updateInfoById({ + companyId: loginUserCompanyId, + id: userConfigId + }, { + [TlUserConfigDef.account]: JSON.stringify(updateAccount) + }) + + if(Object.keys(result).length == 0){ + return tlResponseSvrError("更新设置失败") + } + + return tlResponseSuccess("更新设置成功") +} + + +/** + * 更新用户消息配置 + * @param {*} loginInfo + * @param {*} message + * @returns + */ +const updateUserConfigMessage = async function({ loginInfo, message }){ + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const userConfig = await userConfigService.getInfoByUserId({ + companyId: loginUserCompanyId, + userId: loginUserId + },[ + TlUserConfigDef.id, + TlUserConfigDef.message + ]) + + if(Object.keys(userConfig).length == 0){ + return tlResponseNotFound("用户配置不存在") + } + + let preMessage = userConfig[TlUserConfigDef.message] + preMessage = JSON.parse(preMessage) + + let newMessage = Object.assign(preMessage, message) + + // 更新用户配置 + let updateMessage = {} + for (let key in TlUserConfigMessageDef) { + updateMessage[key] = newMessage[key] + } + + // 更新用户配置 + let userConfigId = userConfig[TlUserConfigDef.id] + const result = await userConfigService.updateInfoById({ + companyId: loginUserCompanyId, + id: userConfigId + }, { + [TlUserConfigDef.message]: JSON.stringify(updateMessage) + }) + + if(Object.keys(result).length == 0){ + return tlResponseSvrError("更新设置失败") + } + + return tlResponseSuccess("更新设置成功") +} + +/** + * 更新用户权限配置 + * @param {*} loginInfo + * @param {*} authority + * @returns + */ +const updateUserConfigAuthority = async function({ loginInfo, authority }){ + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const userConfig = await userConfigService.getInfoByUserId({ + companyId: loginUserCompanyId, + userId: loginUserId + },[ + TlUserConfigDef.id, + TlUserConfigDef.authority + ]) + + if(Object.keys(userConfig).length == 0){ + return tlResponseNotFound("用户配置不存在") + } + + let preAuthority = userConfig[TlUserConfigDef.authority] + preAuthority = JSON.parse(preAuthority) + + let newAuthority = Object.assign(preAuthority, authority) + + // 更新用户配置 + let updateAuthority = {} + for (let key in TlUserConfigAuthorityDef) { + updateAuthority[key] = newAuthority[key] + } + + // 更新用户配置 + let userConfigId = userConfig[TlUserConfigDef.id] + const result = await userConfigService.updateInfoById({ + companyId: loginUserCompanyId, + id: userConfigId + }, { + [TlUserConfigDef.authority]: JSON.stringify(updateAuthority) + }) + + if(Object.keys(result).length == 0){ + return tlResponseSvrError("更新设置失败") + } + + return tlResponseSuccess("更新设置成功") +} + +/** + * 更新用户皮肤配置 + * @param {*} loginInfo + * @param {*} skin + * @returns + */ +const updateUserConfigSkin = async function({ loginInfo, skin }){ + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const userConfig = await userConfigService.getInfoByUserId({ + companyId: loginUserCompanyId, + userId: loginUserId + },[ + TlUserConfigDef.id, + TlUserConfigDef.skin + ]) + + if(Object.keys(userConfig).length == 0){ + return tlResponseNotFound("用户配置不存在") + } + + let preSkin = userConfig[TlUserConfigDef.skin] + preSkin = JSON.parse(preSkin) + + let newSkin = Object.assign(preSkin, skin) + + // 更新用户配置 + let updateSkin = {} + for (let key in TlUserConfigSkinDef) { + updateSkin[key] = newSkin[key] + } + + // 更新用户配置 + let userConfigId = userConfig[TlUserConfigDef.id] + const result = await userConfigService.updateInfoById({ + companyId: loginUserCompanyId, + id: userConfigId + }, { + [TlUserConfigDef.skin]: JSON.stringify(updateSkin) + }) + + if(Object.keys(result).length == 0){ + return tlResponseSvrError("更新设置失败") + } + + return tlResponseSuccess("更新设置成功") +} + + +/** + * 更新用户其他配置 + * @param {*} loginInfo + * @param {*} other + * @returns + */ +const updateUserConfigOther = async function({ loginInfo, other }){ + const { + loginUserCompanyId, loginUserId + } = loginInfo + + const userConfig = await userConfigService.getInfoByUserId({ + companyId: loginUserCompanyId, + userId: loginUserId + },[ + TlUserConfigDef.id, + TlUserConfigDef.other + ]) + + if(Object.keys(userConfig).length == 0){ + return tlResponseNotFound("用户配置不存在") + } + + let preOther = userConfig[TlUserConfigDef.other] + preOther = JSON.parse(preOther) + + let newOther = Object.assign(preOther, other) + + // 更新用户配置 + let updateOther = {} + for (let key in TlUserConfigOtherDef) { + updateOther[key] = newOther[key] + } + + // 更新用户配置 + let userConfigId = userConfig[TlUserConfigDef.id] + const result = await userConfigService.updateInfoById({ + companyId: loginUserCompanyId, + id: userConfigId + }, { + [TlUserConfigDef.other]: JSON.stringify(updateOther) + }) + + if(Object.keys(result).length == 0){ + return tlResponseSvrError("更新设置失败") + } + + return tlResponseSuccess("更新设置成功") +} + + + + +module.exports = { + getUserConfigSetting, + updateUserConfigNormal, + updateUserConfigAccount, + updateUserConfigMessage, + updateUserConfigAuthority, + updateUserConfigSkin, + updateUserConfigOther +} \ No newline at end of file diff --git a/src/biz/user/user_friend_biz.js b/src/biz/user/user_friend_biz.js new file mode 100644 index 0000000..d1a93ee --- /dev/null +++ b/src/biz/user/user_friend_biz.js @@ -0,0 +1,559 @@ +const { + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, + setBit, checkBit, + tlConsole +} = require('../../utils/utils') +const userFriendService = require('../../service/user/tl_user_friend_service') +const userService = require('../../service/user/tl_user_service') +const userSessionService = require('../../service/user/tl_user_session_service') +const channelService = require('../../service/channel/tl_channel_service') +const channelUserService = require('../../service/channel/tl_channel_user_service') +const channelChatService = require('../../service/channel/tl_channel_chat_service') +const { getOssUrl } = require('../../utils/oss/oss') + +const { fields: userFriendFields } = require('../../tables/tl_user_friend') +const { fields: userFields } = require('../../tables/tl_user') +const { fields: channelFields } = require('../../tables/tl_channel') +const { fields: channelUserFields } = require('../../tables/tl_channel_user') +const { inner: TlRoleInner } = require('../../tables/tl_role') +const { fields: channelChatFields } = require('../../tables/tl_channel_chat') + +const { Def: TlUserFriendDef, Status: TlUserFriendStatus, FriendType: TlUserFriendType, Origin: TlUserFriendOrigin } = userFriendFields + +const { Def: TlUserDef } = userFields +const { Def: TlChannelDef, Type: TlChannelType } = channelFields +const { Def: TlChannelChatDef, Other: TlChannelChatOther } = channelChatFields +const { Def: TlchannelUserDef, Type: TlChannelUserType } = channelUserFields + + + + +/** + * 获取好友列表 + * @param {*} loginInfo + */ +const getFriendList = async function({ loginInfo }){ + const { + loginUserCompanyId, loginUserId, loginUserCompanyName + } = loginInfo + + // 查询所有好友记录 + let userFriendList = await userFriendService.getListByUserId({ + companyId: loginUserCompanyId, + userId: loginUserId, + }, [ + TlUserFriendDef.id, + TlUserFriendDef.friendId, + TlUserFriendDef.origin, + TlUserFriendDef.createdAt, + TlUserFriendDef.friendType, + TlUserFriendDef.remark, + TlUserFriendDef.channelId, + ]) + + const friendIdList = new Set( + [...userFriendList.map(item => item[TlUserFriendDef.friendId])] + ) + + let userInfoList = await userService.getListByIdList({ + companyId: loginUserCompanyId, + idList: [...friendIdList] + }, [ + TlUserDef.id, + TlUserDef.name, + TlUserDef.email, + TlUserDef.mobile, + TlUserDef.avatarUrl, + ]) + + let userInfoMap = new Map() + userInfoList.forEach(item => { + userInfoMap.set(item[TlUserFriendDef.id], item) + }) + + // 查询好友在线状态 + const statusMap = await userSessionService.getUserLoginStatusByIdList({ + userIdList: [...friendIdList] + }) + + let resultList = [] + for(let i = 0; i < userFriendList.length; i++){ + const item = userFriendList[i] + let originStr = '' + const origin = item[TlUserFriendDef.origin] + if(origin == TlUserFriendOrigin.SEARCH_NAME){ + originStr = "搜索用户名添加" + } + + const friendId = item[TlUserFriendDef.friendId] + let friendInfo = userInfoMap.get(friendId) + if(!friendInfo){ + friendInfo = {} + } + + const loginStatus = statusMap[friendId+''] || 0 + + let friendTypeStr = '' + let friendType = item[TlUserFriendDef.friendType] + if(friendType == TlUserFriendType.NORMAL){ + friendTypeStr = '普通好友' + }else if(friendType == TlUserFriendType.SPECIAL){ + friendTypeStr = '特别关注' + } + + resultList.push({ + id : item[TlUserFriendDef.id], + origin : originStr, + friendType: friendTypeStr, + remark: item[TlUserFriendDef.remark], + createTime: item[TlUserFriendDef.createdAt], + channelId: item[TlUserFriendDef.channelId], + loginStatus: loginStatus, + userId: friendInfo[TlUserDef.id], + userCompanyName: loginUserCompanyName, + username: friendInfo[TlUserDef.name], + userEmail: friendInfo[TlUserDef.email], + userMobile: friendInfo[TlUserDef.mobile], + userAvatar: await getOssUrl(friendInfo[TlUserDef.avatarUrl]), + }) + } + + return tlResponseSuccess("获取好友列表成功", resultList) +} + + +/** + * 删除好友 + * @param {*} loginInfo + * @param {*} channelId + */ +const deleteFriend = async function({ loginInfo, channelId }){ + if(!channelId){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + // 获取频道用户 + const channelUserInfo = await channelUserService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + channelId, + userId: loginUserId + }, [ + TlchannelUserDef.id, + TlchannelUserDef.type + ]) + + if(Object.keys(channelUserInfo).length == 0){ + return tlResponseNotFound("删除好友成功") + } + + const channelType = channelUserInfo[TlchannelUserDef.type] + if(channelType !== TlChannelUserType.FRIEND){ + return tlResponseNotFound("删除失败,操作非法") + } + + // 删除自己在频道的数据 + await channelUserService.deleteInfoById({ + companyId: loginUserCompanyId, + id: channelUserInfo[TlchannelUserDef.id] + }) + + // 获取好友关系 + const userFriendInfo = await userFriendService.getInfoByChannelIdAndUserId({ + companyId: loginUserCompanyId, + userId: loginUserId, + channelId: channelId + }, [ + TlUserFriendDef.id, + ]) + + if(Object.keys(userFriendInfo).length == 0){ + return tlResponseNotFound("删除好友成功") + } + + const userFriendId = userFriendInfo[TlUserFriendDef.id] + if(!userFriendId){ + return tlResponseNotFound("删除好友成功") + } + + // 删除好友关系 + await userFriendService.deleteInfoById({ + companyId: loginUserCompanyId, + id: userFriendId + }) + + return tlResponseSuccess("删除好友成功") +} + + +/** + * 更新好友信息备注 + * @param loginInfo + * @param channelId + * @param remark + */ +const updateRemark = async function({ loginInfo, channelId, remark }){ + if(!channelId){ + return tlResponseArgsError("请求参数为空") + } + + if(!remark){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + // 获取频道用户列表 + const userFriendList = await userFriendService.getListByChannelId({ + companyId: loginUserCompanyId, + channelId, + }, [ + TlUserFriendDef.id, + TlUserFriendDef.userId, + ]) + + const friendInfo = userFriendList.find(item => item[TlUserFriendDef.userId] == loginUserId) + if(!friendInfo){ + return tlResponseNotFound("好友不存在") + } + + const userFriendId = friendInfo[TlUserFriendDef.id] + + const info = await userFriendService.updateInfoById({ + companyId: loginUserCompanyId, + id: userFriendId, + }, { + [TlUserFriendDef.remark]: remark + }) + + if(Object.keys(info).length == 0){ + return tlResponseSvrError("修改好友备注失败") + } + + return tlResponseSuccess("修改好友备注成功") +} + +/** + * 更新好友名称备注 + * @param loginInfo + * @param channelId + * @param rename + */ +const updateRename = async function({ loginInfo, channelId, rename }){ + if(!channelId){ + return tlResponseArgsError("请求参数为空") + } + + if(!rename){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + // 获取频道用户列表 + const userFriendList = await userFriendService.getListByChannelId({ + companyId: loginUserCompanyId, + channelId, + }, [ + TlUserFriendDef.id, + TlUserFriendDef.userId, + ]) + + const friendInfo = userFriendList.find(item => item[TlUserFriendDef.userId] == loginUserId) + if(!friendInfo){ + return tlResponseNotFound("好友不存在") + } + + const userFriendId = friendInfo[TlUserFriendDef.id] + const info = await userFriendService.updateInfoById({ + companyId: loginUserCompanyId, + id: userFriendId, + }, { + [TlUserFriendDef.rename]: rename + }) + + if(Object.keys(info).length == 0){ + return tlResponseSvrError("修改好友备注失败") + } + + return tlResponseSuccess("修改好友备注成功") +} + + +/** + * 通过好友后-初始化好友频道 + * @param {*} loginUserCompanyId + * @param {*} loginUserId + * @param {*} applyUserId + * @returns + */ +const initChannelForPassFriend = async function({ + loginUserCompanyId, loginUserId, applyUserId +}){ + if(!applyUserId){ + return tlResponseArgsError("初始化好友频道失败,请求参数为空") + } + + // 获取这两个人的用户频道信息 + const channelUserList = await channelUserService.getListByTypeUserIdList({ + companyId: loginUserCompanyId, + type: TlChannelUserType.FRIEND, + userIdList: [loginUserId, applyUserId] + }, [ + TlchannelUserDef.id, + TlchannelUserDef.userId, + TlchannelUserDef.channelId, + ]) + + const channelMap = {} + channelUserList.forEach(item => { + const userId = item[TlchannelUserDef.userId] + const channelId = item[TlchannelUserDef.channelId] + if(!channelMap[userId]){ + channelMap[userId] = [] + } + channelMap[userId].push(channelId) + }) + + // 如果两个用户存在相同的channelId,说明已经存在相应的好友频道 + const loginUserIdChannelIdList = channelMap[loginUserId] || [] + const applyUserIdChannelIdList = channelMap[applyUserId] || [] + + const existChannelId = loginUserIdChannelIdList.find(item => applyUserIdChannelIdList.includes(item)) + // 如果已经存在频道用户数据,直接返回 + if(existChannelId){ + return tlResponseSuccess("初始化好友频道成功1", { channelId: existChannelId }) + } + + // 创建新频道 + const channelInfo = await channelService.addInfo({ + companyId: loginUserCompanyId, + name: '好友频道', + type: TlChannelType.FRIEND, + }) + + if(Object.keys(channelInfo).length == 0){ + return tlResponseSvrError("初始化好友频道失败") + } + + const channelId = channelInfo[TlChannelDef.id] + + // 生成一条系统消息 + const channelChatSystemInfo = await channelChatService.addSystemChatnfo({ + companyId: loginUserCompanyId, + channelId: channelId, + message: '' + `已经是好友啦,快来聊天吧` + '
', + other: JSON.stringify({ + [TlChannelChatOther.ip]: '', + }), + messageTimeStamp: Date.now(), + messageVersion: 'v1', + flag: 0 + }) + + if(Object.keys(channelChatSystemInfo).length == 0){ + return tlResponseSvrError("初始化好友频道失败") + } + + // 将自己加入单聊频道 + const addSelfRes = await channelUserService.addInfo({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: loginUserId, + type: TlChannelUserType.FRIEND, + roleId: TlRoleInner.channel.creator.id + }) + + if(Object.keys(addSelfRes).length == 0) { + return tlResponseSvrError("初始化好友频道失败") + } + + // 更新用户频道角色 + await userSessionService.updateUserChannelRoleMap({ + userId: loginUserId, + channelRoleMap: { + [channelId]: TlRoleInner.channel.creator.id + } + }) + + // 将好友加入单聊频道 + const addFriendRes = await channelUserService.addInfo({ + companyId: loginUserCompanyId, + channelId: channelId, + userId: applyUserId, + type: TlChannelUserType.FRIEND, + roleId: TlRoleInner.channel.creator.id + }) + + if(Object.keys(addFriendRes).length == 0) { + return tlResponseSvrError("初始化好友频道失败") + } + + // 更新用户频道角色 + await userSessionService.updateUserChannelRoleMap({ + userId: applyUserId, + channelRoleMap: { + [channelId]: TlRoleInner.channel.creator.id + } + }) + + return tlResponseSuccess("初始化好友频道成功2", { channelId }) +} + + +/** + * 通过好友后 - 生成双向好友记录 + * @param {*} loginUserCompanyId + * @param {*} loginUserId + * @param {*} applyUserId + * @param {*} applyUserName + * @param {*} origin + * @param {*} remark + * @param {*} channelId + */ +const initUserFriendForPassFriend = async function({ + loginUserCompanyId, loginUserId, loginUsername, applyUserId, applyUserName, origin, remark, channelId +}){ + if(!applyUserId){ + return tlResponseForbidden("生成好友记录失败,参数错误") + } + + // 好友记录是否存在 + const userFriendInfo = await userFriendService.getInfoByUserIdAndFriendId({ + companyId: loginUserCompanyId, + userId: loginUserId, + friendId: applyUserId + }, [ + TlUserFriendDef.id, + ]) + + // 存在,更新好友记录状态 + if(Object.keys(userFriendInfo).length > 0){ + const updateUserFriendInfo = await userFriendService.updateInfoById({ + companyId: loginUserCompanyId, + id: userFriendInfo[TlUserFriendDef.id], + }, { + [TlUserFriendDef.status]: TlUserFriendStatus.NORMAL + }) + + if(Object.keys(updateUserFriendInfo).length == 0){ + return tlResponseSvrError("生成好友记录失败") + } + + return tlResponseSuccess("生成好友记录成功") + } + + // 不存在,生成双向好友记录 + const addUserFriendInfo = await userFriendService.addInfo({ + companyId: loginUserCompanyId, + userId: loginUserId, + friendId: applyUserId, + origin: origin, + remark: remark, + friendType: TlUserFriendType.NORMAL, + status: TlUserFriendStatus.NORMAL, + channelId: channelId, + rename: applyUserName + }) + + if(Object.keys(addUserFriendInfo).length == 0){ + return tlResponseSvrError("生成好友记录失败") + } + + const addFriendUserInfo = await userFriendService.addInfo({ + companyId: loginUserCompanyId, + userId: applyUserId, + friendId: loginUserId, + origin: origin, + remark: remark, + friendType: TlUserFriendType.NORMAL, + status: TlUserFriendStatus.NORMAL, + channelId: channelId, + rename: loginUsername + }) + + if(Object.keys(addFriendUserInfo).length == 0){ + return tlResponseSvrError("生成好友记录失败") + } + + return tlResponseSuccess("生成好友记录成功") +} + +/** + * 更新好友类型 + * @param {*} loginInfo + * @param {*} channelId + * @param {*} special + */ +const updateFriendSpecical = async function({ loginInfo, channelId, special }){ + if(!channelId){ + return tlResponseArgsError("请求参数为空") + } + + if(special === undefined || special === null){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId + } = loginInfo + + // 获取频道用户列表 + const userFriendList = await userFriendService.getListByChannelId({ + companyId: loginUserCompanyId, + channelId, + }, [ + TlUserFriendDef.id, + TlUserFriendDef.userId, + ]) + + const friendInfo = userFriendList.find(item => item[TlUserFriendDef.userId] == loginUserId) + if(!friendInfo){ + return tlResponseNotFound("好友不存在") + } + + const newFriendType = special ? TlUserFriendType.SPECIAL : TlUserFriendType.NORMAL + + const userFriendId = friendInfo[TlUserFriendDef.id] + const info = await userFriendService.updateInfoById({ + companyId: loginUserCompanyId, + id: userFriendId, + }, { + [TlUserFriendDef.friendType]: special ? TlUserFriendType.SPECIAL : TlUserFriendType.NORMAL + }) + + if(Object.keys(info).length == 0){ + return tlResponseSvrError("关注失败") + } + + let friendTypeStr = '' + if(newFriendType == TlUserFriendType.NORMAL){ + friendTypeStr = '普通好友' + }else if(newFriendType == TlUserFriendType.SPECIAL){ + friendTypeStr = '特别关注' + } + + return tlResponseSuccess(special ? '关注成功' : '取消关注成功', { + friendType: friendTypeStr + }) +} + + + +module.exports = { + getFriendList, + deleteFriend, + updateRemark, + updateRename, + initChannelForPassFriend, + initUserFriendForPassFriend, + updateFriendSpecical +} \ No newline at end of file diff --git a/src/biz/user/user_login_biz.js b/src/biz/user/user_login_biz.js new file mode 100644 index 0000000..00fcdd8 --- /dev/null +++ b/src/biz/user/user_login_biz.js @@ -0,0 +1,562 @@ +const { + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, + tlConsole, verifyEncryptStr +} = require('../../utils/utils') +const { + getAvatarOssUrl +} = require('../../utils/oss/oss') +const userService = require('../../service/user/tl_user_service') +const userSessionService = require('../../service/user/tl_user_session_service') +const companyService = require('../../service/company/tl_company_service') +const channelUserService = require('../../service/channel/tl_channel_user_service') +const userFingerPrintService = require('../../service/user/tl_user_finger_print_service') + +const { fields: companyFields } = require('../../tables/tl_company') +const { Def: TlCompanyDef } = companyFields +const { fields: userFields } = require('../../tables/tl_user') +const { Def: TlUserDef } = userFields +const { fields: userFingerPrintFields } = require('../../tables/tl_user_finger_print') +const { Def: TlUserFingerPrintDef } = userFingerPrintFields +const { fields: channelUserFields } = require('../../tables/tl_channel_user') +const { Def: TlChannelUserDef, Type: TlChannelUserType } = channelUserFields +const { inner: TlInnerRole } = require('../../tables/tl_role') + + +/** + * 通过帐号登录接口 + * @param {*} account + * @param {*} password + * @param {*} fps + */ +const userLoginByAccount = async function({account, password, fps}){ + if(!account){ + return tlResponseArgsError("用户名或密码错误") + } + + if(!password){ + return tlResponseArgsError("用户名或密码错误") + } + + // base64解码 + account = Buffer.from(account, 'base64').toString() + password = Buffer.from(password, 'base64').toString() + + const user = await userService.getInfoByNameForLogin({ + name: account + }, [ + TlUserDef.id, + TlUserDef.companyId, + TlUserDef.name, + TlUserDef.password, + TlUserDef.avatarUrl, + TlUserDef.salt, + TlUserDef.roleId, + TlUserDef.email, + TlUserDef.mobile + ]) + + if(!user[TlUserDef.id]){ + return tlResponseArgsError("用户名或密码错误") + } + + if(!verifyEncryptStr({ + inputStr: password, + hashedStr: user[TlUserDef.password], + salt: user[TlUserDef.salt] + })){ + return tlResponseArgsError("用户名或密码错误") + } + + const company = await companyService.getInfoById({ + id: user[TlUserDef.companyId] + }, [ + TlCompanyDef.id, + TlCompanyDef.name, + ]) + + const companyId = company[TlCompanyDef.id] + const companyName = company[TlCompanyDef.name] + + if(!companyId){ + return tlResponseForbidden("非法用户") + } + + const token = userSessionService.generateLoginToken(); + const info = { + loginUserId: user[TlUserDef.id], + loginUsername: user[TlUserDef.name], + loginUserEmail: user[TlUserDef.email], + loginUserMobile: user[TlUserDef.mobile], + loginUserRoleId: user[TlUserDef.roleId], + loginUserCompanyName : companyName, + loginUserCompanyId: companyId, + loginUserAvatar: await getAvatarOssUrl(user[TlUserDef.avatarUrl]), + loginTime: new Date().getTime(), + token + } + // 设置登录信息 + await userSessionService.setUserInfoByToken({token, info}) + + // 设置指纹 + await setFps({ userId: user[TlUserDef.id], fps }) + + // 设置用户频道角色 + await setUserChannelRole({ userId: user[TlUserDef.id], companyId }) + + return tlResponseSuccess("登录成功", token) +} + +/** + * 通过手机号登录接口 + * @param {*} mobile + * @param {*} code + * @param {*} fps + */ +const userLoginByMobile = async function({mobile, code, fps}){ + if(!mobile){ + return tlResponseArgsError("手机号或验证码错误") + } + if(!code){ + return tlResponseArgsError("手机号或验证码错误") + } + + // base64解码 + mobile = Buffer.from(mobile, 'base64').toString() + password = Buffer.from(password, 'base64').toString() + + const user = await userService.getInfoByMobileForLogin({ + mobile + }, [ + TlUserDef.id, + TlUserDef.companyId, + TlUserDef.mobile, + TlUserDef.avatarUrl, + TlUserDef.roleId, + TlUserDef.email, + TlUserDef.name + ]) + + if(!user[TlUserDef.id]){ + return tlResponseArgsError("手机号或验证码错误") + } + + const company = await companyService.getInfoById({ + id: user[TlUserDef.companyId] + }, [ + TlCompanyDef.id, + TlCompanyDef.name + ]) + + const companyId = company[TlCompanyDef.id] + const companyName = company[TlCompanyDef.name] + + if(!companyId){ + return tlResponseForbidden("非法用户") + } + + const token = userSessionService.generateLoginToken(); + const info = { + loginUserId: user[TlUserDef.id], + loginUserMobile: user[TlUserDef.mobile], + loginUsername: user[TlUserDef.name], + loginUserEmail: user[TlUserDef.email], + loginUserRoleId: user[TlUserDef.roleId], + loginUserCompanyName : companyName, + loginUserCompanyId: companyId, + loginUserAvatar: await getAvatarOssUrl(user[TlUserDef.avatarUrl]), + loginTime: new Date().getTime(), + token + } + // 设置登录信息 + await userSessionService.setUserInfoByToken({token, info}) + + // 设置指纹 + await setFps({ userId: user[TlUserDef.id], fps }) + + // 设置用户频道角色 + await setUserChannelRole({ userId: user[TlUserDef.id], companyId }) + + return tlResponseSuccess("登录成功", token) +} + +/** + * 通过邮箱登录接口 + * @param {*} email + * @param {*} password + * @param {*} fps + */ +const userLoginByEmail = async function({email, password, fps}){ + if(!email){ + return tlResponseArgsError("邮箱或密码错误") + } + if(!password){ + return tlResponseArgsError("邮箱或密码错误") + } + + // base64解码 + email = Buffer.from(email, 'base64').toString() + password = Buffer.from(password, 'base64').toString() + + const user = await userService.getInfoByEmailForLogin({ + email + }, [ + TlUserDef.id, + TlUserDef.companyId, + TlUserDef.email, + TlUserDef.avatarUrl, + TlUserDef.password, + TlUserDef.roleId, + TlUserDef.mobile, + TlUserDef.salt, + TlUserDef.name + ]) + + if(!user[TlUserDef.id]){ + return tlResponseArgsError("邮箱或密码错误") + } + + const company = await companyService.getInfoById({ + id: user[TlUserDef.companyId] + }, [ + TlCompanyDef.id, + TlCompanyDef.name + ]) + + const companyId = company[TlCompanyDef.id] + const companyName = company[TlCompanyDef.name] + + if(!companyId){ + return tlResponseForbidden("非法用户") + } + + if(!verifyEncryptStr({ + inputStr: password, + hashedStr: user[TlUserDef.password], + salt: user[TlUserDef.salt] + })){ + return tlResponseArgsError("邮箱或密码错误") + } + + const token = userSessionService.generateLoginToken(); + const info = { + loginUserId: user[TlUserDef.id], + loginUserEmail: user[TlUserDef.email], + loginUsername: user[TlUserDef.name], + loginUserRoleId: user[TlUserDef.roleId], + loginUserMobile: user[TlUserDef.mobile], + loginUserCompanyName : companyName, + loginUserCompanyId: companyId, + loginUserAvatar: await getAvatarOssUrl(user[TlUserDef.avatarUrl]), + loginTime: new Date().getTime(), + token + } + // 设置登录信息 + await userSessionService.setUserInfoByToken({token, info}) + + // 设置指纹 + await setFps({ userId: user[TlUserDef.id], fps }) + + // 设置用户频道角色 + await setUserChannelRole({ userId: user[TlUserDef.id], companyId }) + + return tlResponseSuccess("登录成功", token) +} + +/** + * 通过微信登录接口 + * @param {*} code + * @param {*} openId + */ +const userLoginByWechat = async function({openId, code}){ + + + return tlResponseSuccess("登录成功") +} + +/** + * 通过qq登录接口 + * @param {*} code + * @param {*} openId + */ +const userLoginByQQ = async function({openId, code}){ + + + return tlResponseSuccess("登录成功") +} + +/** + * 通过企业微信登录接口 + * @param {*} code + * @param {*} openId + */ +const userLoginByQyWechat = async function({openId, code}){ + + + return tlResponseSuccess("登录成功") +} + + +/** + * 游客登录接口 + * @param {*} code + */ +const userLoginByGuest = async function({code}){ + + + return tlResponseSuccess("登录成功") +} + + +/** + * 通过指纹登录接口 - 一键登录 + * @param {*} fps + * @param {*} username + */ +const userLoginByFingerPrint = async function({fps, username}){ + if(!fps){ + return tlResponseArgsError("一键登录失败, 请使用其他登录方式登录") + } + + const user = await userService.getInfoByNameForLogin({ + name: username + }, [ + TlUserDef.id, + TlUserDef.companyId, + TlUserDef.name, + TlUserDef.avatarUrl, + TlUserDef.roleId, + TlUserDef.email, + TlUserDef.salt, + TlUserDef.mobile + ]) + + if(!user[TlUserDef.id]){ + return tlResponseArgsError("一键登录失败, 请使用其他登录方式登录") + } + + const company = await companyService.getInfoById({ + id: user[TlUserDef.companyId] + }, [ + TlCompanyDef.id, + TlCompanyDef.name + ]) + + const companyId = company[TlCompanyDef.id] + const companyName = company[TlCompanyDef.name] + + if(!companyId){ + return tlResponseForbidden("一键登录失败, 请使用其他登录方式登录") + } + + // 检查指纹 + const fingerPrintList = await userFingerPrintService.getListByUserId({ + userId: user[TlUserDef.id] + }, [ + TlUserFingerPrintDef.finger_print, + ]) + + let isExist = false + fps.forEach(fp => { + fingerPrintList.forEach(element => { + if(element[TlUserFingerPrintDef.finger_print] === fp){ + isExist = true + return + } + }) + }) + + if(!isExist){ + return tlResponseForbidden("一键登录失败, 请使用其他登录方式登录") + } + + const token = userSessionService.generateLoginToken(); + const info = { + loginUserId: user[TlUserDef.id], + loginUsername: user[TlUserDef.name], + loginUserRoleId: user[TlUserDef.roleId], + loginUserCompanyName : companyName, + loginUserEmail: user[TlUserDef.email], + loginUserMobile: user[TlUserDef.mobile], + loginUserCompanyId: companyId, + loginUserAvatar: await getAvatarOssUrl(user[TlUserDef.avatarUrl]), + loginTime: new Date().getTime(), + token + } + // 设置登录信息 + await userSessionService.setUserInfoByToken({token, info}) + + // 设置用户频道角色 + await setUserChannelRole({ userId: user[TlUserDef.id], companyId }) + + return tlResponseSuccess("一键登录成功", token) +} + + +/** + * 设置指纹 + * @param {*} userId + * @param {*} + * @returns + */ +const setFps = async function({userId, fps}){ + let addFingerPrintList = [] + + // 设置指纹 + if(fps){ + const fingerPrintList = await userFingerPrintService.getListByUserId({ + userId: userId + }, [ + TlUserFingerPrintDef.finger_print, + ]) + + fps.forEach(fp => { + let isExist = false + fingerPrintList.forEach(element => { + if(element[TlUserFingerPrintDef.finger_print] === fp){ + isExist = true + return + } + }); + if(!isExist){ + addFingerPrintList.push(fp) + } + }) + + // 每个用户最多只能有10个指纹 + if(addFingerPrintList.length > 0 && fingerPrintList.length < 10){ + await userFingerPrintService.addInfoList({ + userId: userId, + dataList: addFingerPrintList + }) + } + } + + return addFingerPrintList +} + + +/** + * 设置频道用户角色 + * @param {*} userId + * @param {*} companyId + */ +const setUserChannelRole = async function({userId, companyId}){ + const channelUserList = await channelUserService.getListByUserId({ + companyId: companyId, + userId: userId + }, [ + TlChannelUserDef.channelId, + TlChannelUserDef.roleId + ]) + + if(channelUserList.length === 0){ + return + } + + const channelRoleMap = {} + channelUserList.forEach(channelUser => { + channelRoleMap[channelUser[TlChannelUserDef.channelId]] = channelUser[TlChannelUserDef.roleId] + }) + + await userSessionService.setUserChannelRoleMap({ + userId, channelRoleMap + }) +} + + +/** + * 官网登录 - 支持邮箱登录 + * @param {*} email + * @param {*} password + */ +const userLoginByWebsite = async function({ email, password }){ + if(!email){ + return tlResponseArgsError("邮箱或密码错误") + } + if(!password){ + return tlResponseArgsError("邮箱或密码错误") + } + + // base64解码 + email = Buffer.from(email, 'base64').toString() + password = Buffer.from(password, 'base64').toString() + + const user = await userService.getInfoByEmailForLogin({ + email + }, [ + TlUserDef.id, + TlUserDef.companyId, + TlUserDef.email, + TlUserDef.avatarUrl, + TlUserDef.password, + TlUserDef.roleId, + TlUserDef.mobile, + TlUserDef.salt, + TlUserDef.name + ]) + + if(!user[TlUserDef.id]){ + return tlResponseArgsError("邮箱或密码错误") + } + + const company = await companyService.getInfoById({ + id: user[TlUserDef.companyId] + }, [ + TlCompanyDef.id, + TlCompanyDef.name + ]) + + const companyId = company[TlCompanyDef.id] + const companyName = company[TlCompanyDef.name] + + if(!companyId){ + return tlResponseForbidden("非法用户") + } + + if(!verifyEncryptStr({ + inputStr: password, + hashedStr: user[TlUserDef.password], + salt: user[TlUserDef.salt] + })){ + return tlResponseArgsError("邮箱或密码错误") + } + + const roleId = user[TlUserDef.roleId] + if([ + TlInnerRole.website.user.id, + TlInnerRole.user.admin.id + ].indexOf(roleId) === -1){ + return tlResponseArgsError("非官网用户") + } + + const token = userSessionService.generateLoginToken(); + const info = { + loginUserId: user[TlUserDef.id], + loginUserEmail: user[TlUserDef.email], + loginUsername: user[TlUserDef.name], + loginUserRoleId: user[TlUserDef.roleId], + loginUserMobile: user[TlUserDef.mobile], + loginUserCompanyName : companyName, + loginUserCompanyId: companyId, + loginUserAvatar: await getAvatarOssUrl(user[TlUserDef.avatarUrl]), + loginTime: new Date().getTime(), + token + } + // 设置登录信息 + await userSessionService.setUserInfoByToken({token, info, isWebsite: true}) + + return tlResponseSuccess("登录成功", token) +} + +module.exports = { + userLoginByAccount, + userLoginByMobile, + userLoginByEmail, + userLoginByWechat, + userLoginByQQ, + userLoginByQyWechat, + userLoginByGuest, + userLoginByFingerPrint, + userLoginByWebsite +} \ No newline at end of file diff --git a/src/biz/user/user_login_state_biz.js b/src/biz/user/user_login_state_biz.js new file mode 100644 index 0000000..266817f --- /dev/null +++ b/src/biz/user/user_login_state_biz.js @@ -0,0 +1,31 @@ +const { + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess +} = require('../../utils/utils') +const userSessionService = require('../../service/user/tl_user_session_service') + + +/** + * 是否登陆中 + * @param {*} token + */ +const userIsLogin = async function({token}){ + if(!token){ + return tlResponseArgsError("不在线") + } + + const userInfo = await userSessionService.getUserInfoByToken({token}) + // 登录用户ID + const loginUserId = userInfo.loginUserId + if(!loginUserId){ + return tlResponseArgsError("不在线") + } + + return tlResponseSuccess("在线", userInfo) +} + + + +module.exports = { + userIsLogin +} \ No newline at end of file diff --git a/src/biz/user/user_logout_biz.js b/src/biz/user/user_logout_biz.js new file mode 100644 index 0000000..70a5878 --- /dev/null +++ b/src/biz/user/user_logout_biz.js @@ -0,0 +1,38 @@ +const { + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess +} = require('../../utils/utils') +const userService = require('../../service/user/tl_user_service') +const userSessionService = require('../../service/user/tl_user_session_service') + + +/** + * 退出登录接口 + * @param {*} token + */ +const userLogout = async function({token}){ + if(!token){ + return tlResponseArgsError("退出成功") + } + + const { + loginUserId + } = await userSessionService.getUserInfoByToken({token}) + if(!loginUserId){ + return tlResponseSuccess("退出成功") + } + + await userSessionService.setUserInfoByToken({ + token, + info: { + loginUserId + }, + isLogin: false + }) + + return tlResponseSuccess("退出成功") +} + +module.exports = { + userLogout +} \ No newline at end of file diff --git a/src/biz/user/user_read_biz.js b/src/biz/user/user_read_biz.js new file mode 100644 index 0000000..b665c91 --- /dev/null +++ b/src/biz/user/user_read_biz.js @@ -0,0 +1,361 @@ +const { + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess +} = require('../../utils/utils') +const userReadService = require('../../service/user/tl_user_read_service') +const userSessionService = require('../../service/user/tl_user_session_service') +const { fields: userReadDef } = require('../../tables/tl_user_read') +const { fields: channelDef } = require('../../tables/tl_channel') + +const { Def: TlUserReadDef, Type: TlUserReadType } = userReadDef + + +/** + * 更新频道已读记录 + * @param {*} loginInfo + * @param {*} channelId + * @param {*} latestReadId + * @param {*} type + */ +const updateChannelUserRead = async function({ + loginInfo, channelId, latestReadId, type +}){ + if (!latestReadId) { + return tlResponseArgsError("请求参数为空") + } + + if (!channelId) { + return tlResponseArgsError("请求参数为空") + } + + if(!type){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = loginInfo + + const userReadList = await userReadService.getListByChannelUserId({ + companyId: loginUserCompanyId, + userId: loginUserId, + channelId + }) + + let chatReadRecord = null + let mediaReadRecord = null + let fileReadRecord = null + + userReadList.forEach((userRead) => { + if (userRead[TlUserReadDef.type] === TlUserReadType.CHAT) { + chatReadRecord = userRead + } + if (userRead[TlUserReadDef.type] === TlUserReadType.MEDIA) { + mediaReadRecord = userRead + } + if (userRead[TlUserReadDef.type] === TlUserReadType.FILE) { + fileReadRecord = userRead + } + }) + + // 聊天消息已读记录不存在,新增, 否则更新已读消息最新ID + if(type === TlUserReadType.CHAT){ + if(!chatReadRecord){ + chatReadRecord = await userReadService.addInfo({ + companyId: loginUserCompanyId, + userId: loginUserId, + channelId, + latestReadId, + type: TlUserReadType.CHAT + }) + + if(Object.keys(chatReadRecord).length === 0){ + return tlResponseSvrError("更新失败") + } + } + + const readId = chatReadRecord[TlUserReadDef.id] + if(!readId){ + return tlResponseSvrError("更新失败") + } + + // 更新聊天消息已读记录 + const updateInfo = await userReadService.updateInfoById({ + companyId: loginUserCompanyId, + id: readId + }, { + [TlUserReadDef.latestReadId]: latestReadId + }) + + if(Object.keys(updateInfo).length === 0){ + return tlResponseSvrError("更新失败") + } + } + + // 媒体消息已读记录不存在,新增, 否则更新已读消息最新ID + if(type === TlUserReadType.MEDIA){ + if(!mediaReadRecord){ + mediaReadRecord = await userReadService.addInfo({ + companyId: loginUserCompanyId, + userId: loginUserId, + channelId, + latestReadId, + type: TlUserReadType.MEDIA + }) + + if(Object.keys(mediaReadRecord).length === 0){ + return tlResponseSvrError("更新失败") + } + } + + const readId = mediaReadRecord[TlUserReadDef.id] + if(!readId){ + return tlResponseSvrError("更新失败") + } + + // 更新媒体消息已读记录 + const updateInfo = await userReadService.updateInfoById({ + companyId: loginUserCompanyId, + id: readId + }, { + [TlUserReadDef.latestReadId]: latestReadId + }) + + if(Object.keys(updateInfo).length === 0){ + return tlResponseSvrError("更新失败") + } + } + + // 文件消息已读记录不存在,新增, 否则更新已读消息最新ID + if(type === TlUserReadType.FILE){ + if(!fileReadRecord){ + fileReadRecord = await userReadService.addInfo({ + companyId: loginUserCompanyId, + userId: loginUserId, + channelId, + latestReadId, + type: TlUserReadType.FILE + }) + + if(Object.keys(fileReadRecord).length === 0){ + return tlResponseSvrError("更新失败") + } + } + + const readId = fileReadRecord[TlUserReadDef.id] + if(!readId){ + return tlResponseSvrError("更新失败") + } + + // 更新文件消息已读记录 + const updateInfo = await userReadService.updateInfoById({ + companyId: loginUserCompanyId, + id: readId + }, { + [TlUserReadDef.latestReadId]: latestReadId + }) + + if(Object.keys(updateInfo).length === 0){ + return tlResponseSvrError("更新失败") + } + } + + return tlResponseSuccess("更新成功") +} + +/** + * 更新频道聊天已读记录 (文件/媒体/聊天) + * @param {*} loginInfo + * @param {*} channelId + * @param {*} latestReadId + * @param {*} latestMediaReadId + * @param {*} latestFileReadId + * @returns + */ +const updateChannelMuiltRead = async function({ + loginInfo, channelId, latestChatReadId, latestMediaReadId, latestFileReadId +}){ + if(latestChatReadId){ + const chatResult = await updateChannelChatRead({ + loginInfo, channelId, latestReadId: latestChatReadId + }); + + if (!chatResult.success) { + return chatResult + } + } + + if(latestMediaReadId){ + const mediaResult = await updateChannelMediaRead({ + loginInfo, channelId, latestReadId: latestMediaReadId + }); + + if (!mediaResult.success) { + return mediaResult + } + } + + if(latestFileReadId){ + const fileResult = await updateChannelFileRead({ + loginInfo, channelId, latestReadId: latestFileReadId + }); + + if (!fileResult.success) { + return fileResult + } + } + + return tlResponseSuccess("更新成功") +} + +/** + * 更新频道聊天消息已读记录 + * @param {*} loginInfo + * @param {*} channelId + * @param {*} latestReadId + * @returns + */ +const updateChannelChatRead = async function({ + loginInfo, channelId, latestReadId +}){ + return await updateChannelUserRead({ + loginInfo, channelId, latestReadId, type: TlUserReadType.CHAT + }) +} + +/** + * 更新频道媒体消息已读记录 + * @param {*} loginInfo + * @param {*} channelId + * @param {*} latestReadId + * @returns + */ +const updateChannelMediaRead = async function({ + loginInfo, channelId, latestReadId +}){ + return await updateChannelUserRead({ + loginInfo, channelId, latestReadId, type: TlUserReadType.MEDIA + }) +} + +/** + * 更新频道文件消息已读记录 + * @param {*} loginInfo + * @param {*} channelId + * @param {*} latestReadId + * @returns + */ +const updateChannelFileRead = async function({ + loginInfo, channelId, latestReadId +}){ + return await updateChannelUserRead({ + loginInfo, channelId, latestReadId, type: TlUserReadType.FILE + }) +} + +/** + * 新增好友申请消息已读记录 + * @param {*} loginInfo + * @param {*} recordId + * @param {*} type + * @returns + */ +const addUserFriendApplyRead = async function({ + loginInfo, recordId +}){ + if (!recordId) { + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = loginInfo + + const addInfo = await userReadService.addInfo({ + companyId: loginUserCompanyId, + userId: loginUserId, + recordId, + type: TlUserReadType.FRIEND_APPLY + }) + + if(Object.keys(addInfo).length === 0){ + return tlResponseSvrError("更新失败") + } + + return tlResponseSuccess("更新成功") +} + +/** + * 新增好友同意消息已读记录 + * @param {*} loginInfo + * @param {*} recordId + * @param {*} type + * @returns + */ +const addUserFriendApplyPassRead = async function({ + loginInfo, recordId +}){ + if (!recordId) { + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = loginInfo + + const addInfo = await userReadService.addInfo({ + companyId: loginUserCompanyId, + userId: loginUserId, + recordId, + type: TlUserReadType.FRIEND_APPLY_PASS + }) + + if(Object.keys(addInfo).length === 0){ + return tlResponseSvrError("更新失败") + } + + return tlResponseSuccess("更新成功") +} + +/** + * 新增好友拒绝消息已读记录 + * @param {*} loginInfo + * @param {*} recordId + * @param {*} type + * @returns + */ +const addUserFriendApplyRejectRead = async function({ + loginInfo, recordId +}){ + if (!recordId) { + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = loginInfo + + const addInfo = await userReadService.addInfo({ + companyId: loginUserCompanyId, + userId: loginUserId, + recordId, + type: TlUserReadType.FRIEND_APPLY_REJECT + }) + + if(Object.keys(addInfo).length === 0){ + return tlResponseSvrError("更新失败") + } + + return tlResponseSuccess("更新成功") +} + +module.exports = { + updateChannelChatRead, + updateChannelMediaRead, + updateChannelFileRead, + updateChannelMuiltRead, + + addUserFriendApplyRead, + addUserFriendApplyPassRead, + addUserFriendApplyRejectRead +} \ No newline at end of file diff --git a/src/biz/user/user_register_biz.js b/src/biz/user/user_register_biz.js new file mode 100644 index 0000000..47d9f42 --- /dev/null +++ b/src/biz/user/user_register_biz.js @@ -0,0 +1,430 @@ +const crypto = require('crypto') +const { + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, + tlConsole, + checkIsEmail, checkIsMobile, + tlConsoleError, + encryptStr +} = require('../../utils/utils'); +const { + sendVerificationCodeEmail +} = require('../../utils/mail/mail'); + +const companyService = require('../../service/company/tl_company_service') +const userService = require('../../service/user/tl_user_service') +const userSessionService = require('../../service/user/tl_user_session_service') +const userAuthService = require('../../service/user/tl_user_auth_service') + +const { fields: companyFields } = require('../../tables/tl_company') +const { inner: TlRoleInner } = require('../../tables/tl_role') +const { fields: userFields } = require('../../tables/tl_user') +const { fields: userAuthFields } = require('../../tables/tl_user_auth'); +const { Def: TlUserDef } = userFields +const { Def: TlUserAuthDef, Type: TlUserAuthType } = userAuthFields +const { Def: TlCompanyFields } = companyFields + + +/** + * 通过帐号注册接口 + * @param {*} account + * @param {*} password + * @param {*} invite_code + */ +const userRegisterByAccount = async function({account, password, invite_code}){ + if(!account){ + return tlResponseArgsError("帐号不能为空") + } + + if(!password){ + return tlResponseArgsError("密码不能为空") + } + + // base64解码 + account = Buffer.from(account, 'base64').toString() + password = Buffer.from(password, 'base64').toString() + + if(!invite_code){ + return tlResponseArgsError("邀请码不能为空") + } + + const company = await companyService.getInfoByCode({ + code: invite_code + }, [ + TlCompanyFields.id + ]) + + if(Object.keys(company).length === 0){ + return tlResponseArgsError("邀请码无效") + } + + const companyId = company.id + + const user = await userService.getInfoByName({ + companyId: companyId, + name: account + }, [ + TlUserDef.id + ]) + + if(user[TlUserDef.id]){ + return tlResponseArgsError("帐号已存在") + } + + const salt = crypto.randomBytes(16).toString('hex') + const saltPassword = encryptStr({ + str: password, + salt: salt + }) + + tlConsole(account, password, salt, saltPassword) + + const result = await userService.addInfo({ + companyId : companyId, + name : account, + password: saltPassword, + roleId : TlRoleInner.user.normal.id, + salt, + avatarUrl: "/image/default-avatar.png" + }) + + if (Object.keys(result).length === 0) { + return tlResponseSvrError("注册失败") + } + + return tlResponseSuccess("注册成功") +} + +/** + * 通过手机号注册接口 + * @param {*} mobile + * @param {*} code + * @param {*} invite_code + */ +const userRegisterByMobile = async function({mobile, code, invite_code}){ + if(!mobile){ + return tlResponseArgsError("手机号不能为空") + } + if(!code){ + return tlResponseArgsError("验证码不能为空") + } + if(!invite_code){ + return tlResponseArgsError("邀请码不能为空") + } + if(!checkIsMobile(mobile)){ + return tlResponseArgsError("手机号格式不正确") + } + + const company = await companyService.getInfoByCode({ + code: invite_code + }, [ + TlCompanyFields.id + ]) + + if(Object.keys(company).length === 0){ + return tlResponseArgsError("邀请码无效") + } + + // 检查code + const checkCode = await userSessionService.getMobileCode({ + mobile + }) + if (checkCode !== code) { + return tlResponseArgsError("手机验证码错误") + } + + const companyId = company.id + + const user = await userService.getInfoByMobile({ + companyId: companyId, + mobile + }, [ + TlUserDef.id + ]) + if(user[TlUserDef.id]){ + return tlResponseArgsError("手机号已存在") + } + + const salt = crypto.randomBytes(16).toString('hex') + + const result = await userService.addInfo({ + companyId : companyId, + name : '手机用户-' + Math.floor(Math.random() * 1000000), + mobile, + roleId : TlRoleInner.user.normal.id, + salt, + }) + + if (Object.keys(result).length === 0) { + return tlResponseSvrError("注册失败") + } + + return tlResponseSuccess("注册成功") +} + +/** + * 通过邮箱注册接口 + * @param {*} email + * @param {*} code + * @param {*} invite_code + * @param {*} password + */ +const userRegisterByEmail = async function({email, code, invite_code, password}){ + if(!email){ + return tlResponseArgsError("邮箱不能为空") + } + if(!code){ + return tlResponseArgsError("验证码不能为空") + } + if(!invite_code){ + return tlResponseArgsError("邀请码不能为空") + } + if (!password) { + return tlResponseArgsError("密码不能为空") + } + // base64解码 + email = Buffer.from(email, 'base64').toString() + password = Buffer.from(password, 'base64').toString() + + if(!checkIsEmail(email)){ + return tlResponseArgsError("邮箱格式不正确") + } + + const company = await companyService.getInfoByCode({ + code: invite_code + }, [ + TlCompanyFields.id + ]) + + if(Object.keys(company).length === 0){ + return tlResponseArgsError("邀请码无效") + } + + // 检查code + const checkCode = await userSessionService.getEmailCode({ + email + }) + if (checkCode !== code) { + return tlResponseArgsError("邮箱验证码错误") + } + + const companyId = company.id + + const user = await userService.getInfoByEmail({ + companyId: companyId, + email + }, [ + TlUserDef.id + ]) + + if(user.id){ + return tlResponseArgsError("邮箱已存在") + } + + const salt = crypto.randomBytes(16).toString('hex') + const saltPassword = encryptStr({ + str: password, + salt: salt + }) + + const result = await userService.addInfo({ + companyId : companyId, + name : '邮箱用户-' + Math.floor(Math.random() * 1000000), + email, + password: saltPassword, + roleId : TlRoleInner.user.normal.id, + salt, + avatarUrl: "/image/default-avatar.png" + }) + + if (Object.keys(result).length === 0) { + return tlResponseSvrError("注册失败") + } + + return tlResponseSuccess("注册成功") +} + +/** + * 通过微信注册接口 + * @param {*} code + * @param {*} openId + */ +const userRegisterByWechat = async function({openId, code}){ + const params = { + code, openId + } + + return tlResponseSuccess("注册成功", params) +} + +/** + * 通过qq注册接口 + * @param {*} code + * @param {*} openId + */ +const userRegisterByQQ = async function({openId, code}){ + const params = { + code, openId + } + + return tlResponseSuccess("注册成功", params) +} + +/** + * 通过企业微信注册接口 + * @param {*} code + * @param {*} openId + */ +const userRegisterByWechatWork = async function({openId, code}){ + const params = { + code, openId + } + + return tlResponseSuccess("注册成功", params) +} + +/** + * 获取邮箱验证码 + * @param {*} email + * @returns + */ +const getEmailCode = async function({email}){ + if(!email){ + return tlResponseArgsError("邮箱不能为空") + } + + if(!checkIsEmail(email)){ + return tlResponseArgsError("邮箱格式不正确") + } + + // 检查总次数 + const totalCount = await userAuthService.getDayCountByType({ + type: TlUserAuthType.EMAIL_REGISTER_CODE, + }) + + if(totalCount >= 1000){ + return tlResponseForbidden("当天系统发送验证码次数已达上限") + } + + // 检查次数 + const count = await userAuthService.getDayCountByTypeAndKey({ + type: TlUserAuthType.EMAIL_REGISTER_CODE, + key: email + }) + + if(count >= 5){ + return tlResponseForbidden("当天获取验证码次数已达上限") + } + + const code = Math.floor(Math.random() * 1000000) + + await userSessionService.setEmailCode({ + email, code + }) + + await sendVerificationCodeEmail({ + to: email, + code: code, + expire: 5, + companyName: "tl-open-source开源团队", + companyUrl: "https://tl-open-source.github.com/" + }).then((res) => { + tlConsole("邮件验证码发送成功", res) + }) + + const result = await userAuthService.addInfo({ + key: email, + type: TlUserAuthType.EMAIL_REGISTER_CODE, + code: String(code) + }) + + if (Object.keys(result).length === 0) { + tlConsoleError("验证码发送添加记录失败") + } + + return tlResponseSuccess("验证码发送成功", { + code + }) +} + +/** + * 注册官网用户 + * @param {*} email + * @param {*} code + * @param {*} password + * @returns + */ +const registerWebsiteUser = async function({ email, code, password }){ + // 默认挂在首个企业下 + const companyId = 1 + + if(!email){ + return tlResponseArgsError("邮箱不能为空") + } + if(!code){ + return tlResponseArgsError("验证码不能为空") + } + if(!password) { + return tlResponseArgsError("密码不能为空") + } + // base64解码 + email = Buffer.from(email, 'base64').toString() + password = Buffer.from(password, 'base64').toString() + + if(!checkIsEmail(email)){ + return tlResponseArgsError("邮箱格式不正确") + } + + // 检查code + const checkCode = await userSessionService.getEmailCode({ + email + }) + if (checkCode !== code) { + return tlResponseArgsError("邮箱验证码错误") + } + + const user = await userService.getInfoByEmail({ + companyId: companyId, + email + }, [ + TlUserDef.id + ]) + + if(user.id){ + return tlResponseArgsError("邮箱已注册") + } + + const salt = crypto.randomBytes(16).toString('hex') + const saltPassword = encryptStr({ + str: password, + salt: salt + }) + + const result = await userService.addInfo({ + companyId : companyId, + name : "官网用户-" + String(Math.floor(Math.random() * 1000000)), + email, + password: saltPassword, + roleId : TlRoleInner.website.user.id, + salt, + avatarUrl: "/image/default-avatar.png" + }) + + if (Object.keys(result).length === 0) { + return tlResponseSvrError("注册失败") + } + + return tlResponseSuccess("注册成功") +} + + +module.exports = { + userRegisterByAccount, + userRegisterByMobile, + userRegisterByEmail, + userRegisterByWechat, + userRegisterByQQ, + userRegisterByWechatWork, + getEmailCode, + registerWebsiteUser +} \ No newline at end of file diff --git a/src/biz/user/user_tag_biz.js b/src/biz/user/user_tag_biz.js new file mode 100644 index 0000000..2ad3d61 --- /dev/null +++ b/src/biz/user/user_tag_biz.js @@ -0,0 +1,202 @@ +const { + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess +} = require('../../utils/utils') +const userTagService = require('../../service/user/tl_user_tag_service') +const { fields: userTagDef } = require('../../tables/tl_user_tag') + +const { Def: TlUserTagDef, Type: TlUserTagType } = userTagDef + + +/** + * 添加用户标签 + * @param {*} loginInfo + * @param {*} name + * @param {*} type + * @returns + */ +const addUserTag = async function({ + loginInfo, name, type +}){ + if(!name) { + return tlResponseArgsError("请求参数为空") + } + + if(!type){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = loginInfo + + const result = await userTagService.addInfo({ + name, type, + userId: loginUserId, + companyId: loginUserCompanyId + }) + + if(Object.keys(result).length == 0){ + return tlResponseSvrError("添加标签失败") + } + + return tlResponseSuccess(result) +} + +/** + * 获取用户标签列表 + * @param {*} loginInfo + * @param {*} type + * @returns + */ +const getUserTagList = async function({ + loginInfo, type +}){ + if(!type){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = loginInfo + + const result = await userTagService.getListByUserIdAndType({ + companyId: loginUserCompanyId, + userId: loginUserId, + type + }) + + let resultList = [] + result.forEach((item) => { + resultList.push({ + id: item[TlUserTagDef.id], + name: item[TlUserTagDef.name] + }) + }) + + return tlResponseSuccess("获取成功", resultList) +} + +/** + * 删除用户标签 + * @param {*} loginInfo + * @param {*} id + * @returns + */ +const delUserTag = async function({ + loginInfo, id +}){ + if(!id){ + return tlResponseArgsError("请求参数为空") + } + + const { + loginUserCompanyId, loginUserId, loginUsername + } = loginInfo + + const result = await userTagService.deleteInfoById({ + companyId: loginUserCompanyId, + id + }) + + if(result == 0){ + return tlResponseSvrError("删除失败") + } + + return tlResponseSuccess("删除成功") +} + + +/** + * 添加频道标签 + * @param {*} loginInfo + * @param {*} name + * @returns + */ +const addChannelTag = async function({ + loginInfo, name +}){ + return await addUserTag({ + loginInfo, name, type: TlUserTagType.CHANNEL + }) +} + +/** + * 添加好友标签 + * @param {*} loginInfo + * @param {*} name + * @returns + */ +const addFriendTag = async function({ + loginInfo, name +}){ + return await addUserTag({ + loginInfo, name, type: TlUserTagType.FRIEND + }) +} + +/** + * 添加资源库标签 + * @param {*} loginInfo + * @param {*} name + * @returns + */ +const addCloudTag = async function({ + loginInfo, name +}){ + return await addUserTag({ + loginInfo, name, type: TlUserTagType.CLOUD + }) +} + +/** + * 获取频道标签列表 + * @param {*} loginInfo + * @returns + */ +const getChannelTagList = async function({ + loginInfo +}){ + return await getUserTagList({ + loginInfo, type: TlUserTagType.CHANNEL + }) +} + +/** + * 获取好友标签列表 + * @param {*} loginInfo + * @returns + */ +const getFriendTagList = async function({ + loginInfo +}){ + return await getUserTagList({ + loginInfo, type: TlUserTagType.FRIEND + }) +} + +/** + * 获取资源库标签列表 + * @param {*} loginInfo + * @returns + */ +const getCloudTagList = async function({ + loginInfo +}){ + return await getUserTagList({ + loginInfo, type: TlUserTagType.CLOUD + }) +} + + +module.exports = { + addUserTag, + getUserTagList, + delUserTag, + addChannelTag, + addFriendTag, + addCloudTag, + getChannelTagList, + getFriendTagList, + getCloudTagList +} \ No newline at end of file diff --git a/src/controller/app/app.js b/src/controller/app/app.js new file mode 100644 index 0000000..7c6d6c7 --- /dev/null +++ b/src/controller/app/app.js @@ -0,0 +1 @@ +module.exports = {} \ No newline at end of file diff --git a/src/controller/desktop/desktop.js b/src/controller/desktop/desktop.js new file mode 100644 index 0000000..7c6d6c7 --- /dev/null +++ b/src/controller/desktop/desktop.js @@ -0,0 +1 @@ +module.exports = {} \ No newline at end of file diff --git a/src/controller/router.js b/src/controller/router.js new file mode 100644 index 0000000..505bea2 --- /dev/null +++ b/src/controller/router.js @@ -0,0 +1,31 @@ +const fs = require('fs'); +const path = require('path'); +const { + tlConsoleError +} = require("../../src/utils/utils"); + +module.exports = () => { + let allRouterMap = {}; + + whiteDir = [] + whiteFile = ['router.js'] + let allApps = fs.readdirSync(__dirname); + for (let client of allApps) { + //过滤文件夹和文件 + if (whiteDir.includes(client) || whiteFile.includes(client)) continue; + try { + //添加router + let stat = fs.statSync(path.join(__dirname, client, client + '.js')); + if (stat && stat.isFile()) { + const subModuleRouterMap = require("./" + client + '/' + client); + for(let subModule in subModuleRouterMap){ + const subModuleRouter = subModuleRouterMap[subModule]; + allRouterMap["/api/" + client + "/" + subModule] = subModuleRouter + } + } + } catch (e) { + tlConsoleError(e) + } + } + return allRouterMap; +} \ No newline at end of file diff --git a/src/controller/web/channel/channel_chat_controller.js b/src/controller/web/channel/channel_chat_controller.js new file mode 100644 index 0000000..9db6cb6 --- /dev/null +++ b/src/controller/web/channel/channel_chat_controller.js @@ -0,0 +1,156 @@ +const { + tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, + checkRequestParams +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const channelChatBiz = require('../../../biz/channel/channel_chat_biz'); + + +/** + * #controller post /api/web/channel-chat/add-friend-channel-chat + * #desc 发送好友频道聊天 + * @param {*} request + * @param {*} response + */ +router.post('/add-friend-channel-chat', async function(request, response) { + try { + const { message, toUserId, toUserName, channelId, atUserId, atUserName } = request.body; + + // 消息内容不过滤 + if (!checkRequestParams({ + toUserId, toUserName, channelId, atUserId, atUserName + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelChatBiz.addFriendChannelChat({ + loginInfo, message, toUserId, toUserName, channelId, atUserId, atUserName + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + +/** + * #controller post /api/web/channel-chat/add-group-channel-chat + * #desc 发送多人频道聊天 + * @param {*} request + * @param {*} response + */ +router.post('/add-group-channel-chat', async function(request, response) { + try { + const { message, channelId, atUserId, atUserName, isAtAll } = request.body; + + // 消息内容不过滤 + if (!checkRequestParams({ + channelId, atUserId, atUserName, isAtAll + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelChatBiz.addGroupChannelChat({ + loginInfo, message, channelId, atUserId, atUserName, isAtAll + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + +/** + * #controller post /api/web/channel-chat/add-reply-friend-channel-chat + * #desc 回复好友聊天 + * @param {*} request + * @param {*} response + */ +router.post('/add-reply-friend-channel-chat', async function(request, response) { + try { + const { message, channelId, messageId, messageType, atUserId, atUserName } = request.body; + + // 消息内容不过滤 + if (!checkRequestParams({ + channelId, messageId, messageType, atUserId, atUserName + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelChatBiz.addReplyFriendChannelChat({ + loginInfo, message, channelId, messageId, messageType, atUserId, atUserName + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + +/** + * #controller post /api/web/channel-chat/add-reply-group-channel-chat + * #desc 回复群组聊天 + * @param {*} request + * @param {*} response + */ +router.post('/add-reply-group-channel-chat', async function(request, response) { + try { + const { message, channelId, messageId, messageType, atUserId, atUserName, atAll } = request.body; + + // 消息内容不过滤 + if (!checkRequestParams({ + channelId, messageId, messageType, atUserId, atUserName, atAll + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelChatBiz.addReplyGroupChannelChat({ + loginInfo, message, channelId, messageId, messageType, atUserId, atUserName, atAll + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + +/** + * #controller post /api/web/channel-chat/rollback-channel-chat + * #desc 撤回消息 + * @param {*} request + * @param {*} response + */ +router.post('/rollback-channel-chat', async function(request, response) { + try { + const { channelId, messageId, messageType } = request.body; + + if (!checkRequestParams({ + channelId, messageId, messageType + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelChatBiz.rollbackChannelChat({ + loginInfo, channelId, messageId, messageType + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + + + +module.exports = router; diff --git a/src/controller/web/channel/channel_controller.js b/src/controller/web/channel/channel_controller.js new file mode 100644 index 0000000..2577be1 --- /dev/null +++ b/src/controller/web/channel/channel_controller.js @@ -0,0 +1,254 @@ +const { + tlConsole, tlResponseSvrError, tlConsoleError, checkRequestParams, tlResponseArgsError +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const channelBiz = require('../../../biz/channel/channel_biz'); + + +/** + * #controller post /api/web/channel/search-channel-by-id + * #desc 根据频道id搜索频道 + * @param {*} request + * @param {*} response + */ +router.post('/search-channel-by-id', async function(request, response) { + try{ + const { channelId } = request.body; + + if (!checkRequestParams({ + channelId, + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelBiz.searchChannelById({ + channelId, loginInfo + }); + + response.json(result); + }catch(error){ + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +/** + * #controller post /api/web/channel/add-channel + * #desc 添加频道 + * @param {*} request + * @param {*} response + */ +router.post('/add-channel', async function(request, response) { + try{ + const { channelName } = request.body; + + if (!checkRequestParams({ + channelName, + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelBiz.addChannel({ + channelName, loginInfo + }); + + response.json(result); + }catch(error){ + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller get /api/web/channel/get-channel-list + * #desc 获取频道列表 + * @param {*} request + * @param {*} response + */ +router.get('/get-channel-list', async function(request, response) { + try { + const loginInfo = request.ctx || {} + const result = await channelBiz.getChannelList({ loginInfo }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller get /api/web/channel/get-channel-info + * #desc 获取频道信息 + * @param {*} request + * @param {*} response + */ +router.get('/get-channel-info', async function(request, response) { + try { + const { channelId } = request.query; + + if (!checkRequestParams({ + channelId, + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelBiz.getChannelInfo({ loginInfo, channelId }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller get /api/web/channel/get-channel-name + * #desc 获取频道名称 + * @param {*} request + * @param {*} response + */ +router.get('/get-channel-name', async function(request, response) { + try { + const { channelId } = request.query; + + if (!checkRequestParams({ + channelId, + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelBiz.getChannelNameById({ loginInfo, channelId }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/channel/update-channel-name + * #desc 修改频道名称 + * @param {*} request + * @param {*} response + */ +router.post('/update-channel-name', async function(request, response) { + try { + const { channelId, channelName } = request.body; + + if (!checkRequestParams({ + channelId, channelName + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelBiz.updateChannelName({ + channelId, channelName, loginInfo + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller get /api/web/channel/get-group-channel-list + * #desc 获取群组频道列表 + * @param {*} request + * @param {*} response + */ +router.get('/get-group-channel-list', async function(request, response) { + try { + const loginInfo = request.ctx || {} + const result = await channelBiz.getChannelGroupList({ loginInfo }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/channel/get-channel-message + * #desc 获取频道聊天记录 + * @param {*} request + * @param {*} response + */ +router.post('/get-channel-message', async function(request, response) { + try { + const { + channelId, chatMinId, fileMinId, mediaMinId + } = request.body; + + if (!checkRequestParams({ + channelId, chatMinId, fileMinId, mediaMinId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelBiz.getChannelChatList({ + loginInfo, channelId, chatMinId, fileMinId, mediaMinId + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}) + +/** + * #controller post /api/web/channel/get-channel-message-list + * #desc 获取频道列表聊天记录 + * @param {*} request + * @param {*} response + */ +router.post('/get-channel-message-list', async function(request, response) { + try { + const { channelIdList } = request.body; + + if (!checkRequestParams({ + channelIdList + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelBiz.getChannelChatListByChannelIdList({ + loginInfo, channelIdList + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + + +module.exports = router; + diff --git a/src/controller/web/channel/channel_user_controller.js b/src/controller/web/channel/channel_user_controller.js new file mode 100644 index 0000000..8b2c96e --- /dev/null +++ b/src/controller/web/channel/channel_user_controller.js @@ -0,0 +1,354 @@ +const { + tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const channelUserBiz = require('../../../biz/channel/channel_user_biz'); + + + +/** + * #controller post /api/web/channel-user/add-channel-user + * #desc 添加频道用户 + * @param {*} request + * @param {*} response + */ +router.post('/add-channel-user', async function(request, response){ + try{ + const { channelId, userId, roleId } = request.body; + if (!checkRequestParams({ + channelId, userId, roleId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelUserBiz.addChannelUser({ loginInfo, channelId, userId, roleId }); + + response.json(result); + }catch(error){ + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/channel-user/share-join-channel + * #desc 分享加入群聊 + * @param {*} request + * @param {*} response + */ +router.post('/share-join-channel', async function(request, response){ + try { + const { channelId } = request.body; + if (!checkRequestParams({ + channelId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelUserBiz.shareJoinGroupChannel({ loginInfo, channelId }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/channel-user/add-channel-user-normal + * #desc 添加频道普通身份用户 + * @param {*} request + * @param {*} response + */ +router.post('/add-channel-user-normal', async function(request, response){ + try { + const { channelId, userId } = request.body; + if (!checkRequestParams({ + channelId, userId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelUserBiz.addChannelUserNormal({ loginInfo, channelId, userId }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/channel-user/add-channel-user-list-normal + * #desc 批量添加频道普通身份用户 + * @param {*} request + * @param {*} response + */ +router.post('/add-channel-user-list-normal', async function(request, response){ + try { + const { channelId, userIdList } = request.body; + if (!checkRequestParams({ + channelId, userIdList + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelUserBiz.addChannelUserListNormal({ loginInfo, channelId, userIdList }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/channel-user/add-channel-user-admin + * #desc 添加频道管理员身份用户 + * @param {*} request + * @param {*} response + */ +router.post('/add-channel-user-admin', async function(request, response){ + try { + const { channelId, userId } = request.body; + if (!checkRequestParams({ + channelId, userId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelUserBiz.addChannelUserAdmin({ loginInfo, channelId, userId }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/channel-user/delete-channel-user + * #desc 删除频道用户 + * @param {*} request + * @param {*} response + */ +router.post('/delete-channel-user', async function(request, response){ + try { + const { channelId, userId } = request.body; + if (!checkRequestParams({ + channelId, userId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelUserBiz.removeChannelUser({ loginInfo, channelId, userId }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/channel-user/update-channel-user-role-admin + * #desc 更新频道用户角色为管理员 + * @param {*} request + * @param {*} response + */ +router.post('/update-channel-user-role-admin', async function(request, response){ + try { + const { channelId, userId } = request.body; + if (!checkRequestParams({ + channelId, userId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelUserBiz.updateChannelUserRoleAdmin({ loginInfo, channelId, userId }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/channel-user/update-channel-user-role-normal + * #desc 更新频道用户角色为普通用户 + * @param {*} request + * @param {*} response + */ +router.post('/update-channel-user-role-normal', async function(request, response){ + try { + const { channelId, userId } = request.body; + if (!checkRequestParams({ + channelId, userId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelUserBiz.updateChannelUserRoleNormal({ loginInfo, channelId, userId }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller get /api/web/channel-user/get-channel-list-user-list + * #desc 获取所有频道列表的用户 + * @param {*} request + * @param {*} response + */ +router.get('/get-channel-list-user-list', async function(request, response) { + try { + + const loginInfo = request.ctx || {} + const result = await channelUserBiz.getChannelListUserList({ loginInfo }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller get /api/web/channel-user/get-channel-user-list + * #desc 获取某个频道的用户列表 + * @param {*} request + * @param {*} response + */ +router.get('/get-channel-user-list', async function(request, response) { + try { + const { channelId } = request.query; + + if (!checkRequestParams({ + channelId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelUserBiz.getChannelUserList({ loginInfo, channelId }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller get /api/web/channel-user/update-channel-top + * #desc 修改频道是否置顶 + * @param {*} request + * @param {*} response + */ +router.post('/update-channel-top', async function(request, response) { + try { + const { channelId, top } = request.body; + + if (!checkRequestParams({ + channelId, top + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelUserBiz.updateChannelToTop({ + channelId, top, loginInfo + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +/** + * #controller get /api/web/channel-user/update-channel-black + * #desc 修改频道是否拉黑 + * @param {*} request + * @param {*} response + */ +router.post('/update-channel-black', async function(request, response) { + try { + const { channelId, black } = request.body; + + if (!checkRequestParams({ + channelId, black + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelUserBiz.updateChannelToBlack({ + channelId, black, loginInfo + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +/** + * #controller get /api/web/channel-user/exit-channel + * #desc 退出频道 + * @param {*} request + * @param {*} response + */ +router.post('/exit-channel', async function(request, response) { + try { + const { channelId } = request.body; + + if (!checkRequestParams({ + channelId, + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await channelUserBiz.exitChannel({ + channelId, loginInfo + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + + +module.exports = router; \ No newline at end of file diff --git a/src/controller/web/company/company_controller.js b/src/controller/web/company/company_controller.js new file mode 100644 index 0000000..d8cb7a2 --- /dev/null +++ b/src/controller/web/company/company_controller.js @@ -0,0 +1,57 @@ +const { + tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const companyBiz = require('../../../biz/company/company_biz'); + + +/** + * #controller post /api/web/company/add-company + * #desc 添加企业 + * @param {*} request + * @param {*} response + */ +router.post('/add-company', async function(request, response) { + try { + const { name, address, phone, email, website, logo, description } = request.body; + + if (!checkRequestParams({ + name, address, phone, email, website, logo, description + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await companyBiz.addCompany({ + name, address, phone, email, website, logo, description, loginInfo + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +/** + * #controller post /api/web/company/get-company + * #desc 获取企业 + * @param {*} request + * @param {*} response + */ +router.post('/get-company', async function(request, response) { + try { + const loginInfo = request.ctx || {} + const result = await companyBiz.getCompanyInfo({ + loginInfo + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +module.exports = router; \ No newline at end of file diff --git a/src/controller/web/config/init_controller.js b/src/controller/web/config/init_controller.js new file mode 100644 index 0000000..1247d38 --- /dev/null +++ b/src/controller/web/config/init_controller.js @@ -0,0 +1,49 @@ +const { + getClientIP, getLocalIP, tlConsole, tlResponseSvrError, tlConsoleError +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const configBiz = require('../../../biz/config/config_biz') +const { + LOGIN : { + LOGIN_TOKEN_KEY + } +} = require('../../../utils/constant'); + + +/** + * #controller get /api/web/config/init + * #desc 获取ip地址,初始化等相关配置 + * @param {*} request + * @param {*} response + */ +router.get("/init", async function(request, response){ + try { + const { [LOGIN_TOKEN_KEY]: token } = request.cookies; + + //是否开启turn + const openTurn = (request.query.turn || "") === 'true'; + //使用的账号模式, true : 有效账号模式, false : 固定账号 + const useSecret = (request.query.secret || "") === 'true' || true; + //获取ip相关信息 + let regexIP = /^((?:(?:25[0-5]|2[0-4]\d|[01]?\d?\d)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d?\d))$/; + let ip = getLocalIP(); + if (!regexIP.test(ip)) { + ip = getClientIP(request) + } + if (!regexIP.test(ip)) { + ip = "127.0.0.1" + } + + const result = await configBiz.initData({ + openTurn, useSecret, ip, token + }) + response.json(result) + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}) + + +module.exports = router \ No newline at end of file diff --git a/src/controller/web/user/user_apply_controller.js b/src/controller/web/user/user_apply_controller.js new file mode 100644 index 0000000..230c38c --- /dev/null +++ b/src/controller/web/user/user_apply_controller.js @@ -0,0 +1,137 @@ +const { + tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const userApplyBiz = require('../../../biz/user/user_apply_biz'); + + +/** + * #controller post /api/web/user-apply/add-user-friend-apply + * #desc 添加好友申请 + * @param {*} request + * @param {*} response + */ +router.post('/add-user-friend-apply', async function(request, response) { + try { + const { friendId, remark, origin } = request.body; + + if (!checkRequestParams({ + friendId, remark, origin + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userApplyBiz.applyAddFriend({ + loginInfo, friendId, remark, origin + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/user-apply/pass-user-friend + * #desc 通过好友申请 + * @param {*} request + * @param {*} response + */ +router.post('/pass-user-friend', async function(request, response) { + try { + const { id, remark } = request.body; + + if (!checkRequestParams({ + id, remark + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userApplyBiz.passUserFriendApply({ + loginInfo, id, remark + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +/** + * #controller post /api/web/user-apply/reject-user-friend + * #desc 拒绝好友申请 + * @param {*} request + * @param {*} response + */ +router.post('/reject-user-friend', async function(request, response) { + try { + const { id, remark } = request.body; + + if (!checkRequestParams({ + id, remark + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userApplyBiz.rejectUserFriendApply({ + loginInfo, id, remark + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller get /api/web/user-apply/get-user-friend-other-apply-list + * #desc 获取自己收到的用户好友申请列表 + * @param {*} request + * @param {*} response + */ +router.get('/get-user-friend-other-apply-list', async function(request, response) { + try { + const loginInfo = request.ctx || {} + const result = await userApplyBiz.getUserFriendListFromOther({ + loginInfo + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller get /api/web/user-apply/get-user-friend-self-apply-list + * #desc 获取自己发出的用户好友申请列表 + * @param {*} request + * @param {*} response + */ +router.get('/get-user-friend-self-apply-list', async function(request, response) { + try { + const loginInfo = request.ctx || {} + const result = await userApplyBiz.getUserFriendApplyListFromSelf({ + loginInfo + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + + + +module.exports = router; \ No newline at end of file diff --git a/src/controller/web/user/user_config_controller.js b/src/controller/web/user/user_config_controller.js new file mode 100644 index 0000000..f6c3eca --- /dev/null +++ b/src/controller/web/user/user_config_controller.js @@ -0,0 +1,144 @@ +const { + tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const userConfigBiz = require('../../../biz/user/user_config_biz'); + + +/** + * #controller post /api/web/user-config/get-user-config + * #desc 获取用户配置 + * @param {*} request + * @param {*} response + */ +router.get('/get-user-config', async function(request, response) { + try { + const loginInfo = request.ctx || {} + const result = await userConfigBiz.getUserConfigSetting({ + loginInfo + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/user-config/update-user-config-normal + * #desc 更新用户通用设置 + * @param {*} request + * @param {*} response + */ +router.post('/update-user-config-normal', async function(request, response) { + try { + const { normal } = request.body; + + if (!checkRequestParams({ + normal + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userConfigBiz.updateUserConfigNormal({ + loginInfo, normal + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +/** + * #controller post /api/web/user-config/update-user-config-account + * #desc 更新用户账号设置 + * @param {*} request + * @param {*} response + */ +router.post('/update-user-config-account', async function(request, response) { + try { + const { account } = request.body; + + if (!checkRequestParams({ + account + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userConfigBiz.updateUserConfigAccount({ + loginInfo, account + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/user-config/update-user-config-message + * #desc 更新用户消息设置 + * @param {*} request + * @param {*} response + */ +router.post('/update-user-config-message', async function(request, response) { + try { + const { message } = request.body; + + if (!checkRequestParams({ + message + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userConfigBiz.updateUserConfigMessage({ + loginInfo, message + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/user-config/update-user-config-other + * #desc 更新用户其他设置 + * @param {*} request + * @param {*} response + */ +router.post('/update-user-config-other', async function(request, response) { + try { + const { other } = request.body; + + if (!checkRequestParams({ + other + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userConfigBiz.updateUserConfigOther({ + loginInfo, other + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +module.exports = router; \ No newline at end of file diff --git a/src/controller/web/user/user_controller.js b/src/controller/web/user/user_controller.js new file mode 100644 index 0000000..6da2efd --- /dev/null +++ b/src/controller/web/user/user_controller.js @@ -0,0 +1,103 @@ +const { + tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const userBiz = require('../../../biz/user/user_biz'); +const { + LOGIN : { + LOGIN_TOKEN_KEY + } +} = require('../../../utils/constant'); + + +/** + * #controller get /api/web/user/search-user-by-name + * #desc 搜索用户 + * @param {*} request + * @param {*} response + * @return {*} + */ +router.get('/search-user-by-name', async function(request, response) { + try { + const { name } = request.query; + + if (!checkRequestParams({ + name, + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userBiz.searchUserByName({ + loginInfo, name, + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +/** + * #controller post /api/web/user/search-user-by-id + * #desc 搜索用户通过id + * @param {*} request + * @param {*} response + * @return {*} + */ +router.post('/search-user-by-id', async function(request, response) { + try { + const { id } = request.body; + + if (!checkRequestParams({ + id, + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userBiz.searchUserById({ + loginInfo, id, + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/user/bind-email + * #desc 绑定邮箱 + * @param {*} request + * @param {*} response + */ +router.post('/bind-email', async function(request, response) { + try { + const { email, code } = request.body; + const { [LOGIN_TOKEN_KEY]: token } = request.cookies; + + if (!checkRequestParams({ + email, code, + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userBiz.bindEmail({ + loginInfo, email, code, token + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +module.exports = router; \ No newline at end of file diff --git a/src/controller/web/user/user_friend_controller.js b/src/controller/web/user/user_friend_controller.js new file mode 100644 index 0000000..54de044 --- /dev/null +++ b/src/controller/web/user/user_friend_controller.js @@ -0,0 +1,141 @@ +const { + tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const userFriendBiz = require('../../../biz/user/user_friend_biz'); + + +/** + * #controller post /api/web/user-friend/delete-user-friend + * #desc 删除好友 + * @param {*} request + * @param {*} response + */ +router.post('/delete-user-friend', async function(request, response) { + try { + const { channelId } = request.body; + + if (!checkRequestParams({ + channelId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userFriendBiz.deleteFriend({ + loginInfo, channelId + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError(error)); + } +}); + +/** + * #controller post /api/web/user-friend/update-user-friend-remark + * #desc 更新好友信息备注 + * @param {*} request + * @param {*} response + */ +router.post('/update-user-friend-remark', async function(request, response) { + try { + const { channelId, remark } = request.body; + + if (!checkRequestParams({ + channelId, remark + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userFriendBiz.updateRemark({ + loginInfo, channelId, remark + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError(error)); + } +}); + +/** + * #controller post /api/web/user-friend/update-user-friend-rename + * #desc 更新好友名称备注 + * @param {*} request + * @param {*} response + */ +router.post('/update-user-friend-rename', async function(request, response) { + try { + const { channelId, rename } = request.body; + + if (!checkRequestParams({ + channelId, rename + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userFriendBiz.updateRename({ + loginInfo, channelId, rename + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError(error)); + } +}); + +/** + * #controller post /api/web/user-friend/update-user-special + * #desc 关注好友 + * @param {*} request + * @param {*} response + */ +router.post('/update-user-friend-special', async function(request, response) { + try { + const { channelId, special } = request.body; + + if (!checkRequestParams({ + channelId, special + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userFriendBiz.updateFriendSpecical({ + loginInfo, channelId, special + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError(error)); + } +}); + +/** + * #controller post /api/web/user-friend/get-user-friend-list + * #desc 获取用户好友列表 + * @param {*} request + * @param {*} response + */ +router.get('/get-user-friend-list', async function(request, response) { + try { + const loginInfo = request.ctx || {} + const result = await userFriendBiz.getFriendList({ + loginInfo + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError(error)); + } +}); + + +module.exports = router; \ No newline at end of file diff --git a/src/controller/web/user/user_login_controller.js b/src/controller/web/user/user_login_controller.js new file mode 100644 index 0000000..86df2b2 --- /dev/null +++ b/src/controller/web/user/user_login_controller.js @@ -0,0 +1,435 @@ +const { + tlConsole, + tlResponseSvrError, tlConsoleError, + tlResponseArgsError, checkRequestParams, + tlResponseSuccess +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const userLoginBiz = require('../../../biz/user/user_login_biz'); +const userLoginStateBiz = require('../../../biz/user/user_login_state_biz'); +const { + LOGIN : { + LOGIN_TOKEN_KEY, + LOGIN_TOKEN_EXPIRE, + + WEBSITE_LOGIN_TOKEN_KEY, + WEBSITE_LOGIN_TOKEN_EXPIRE + } +} = require('../../../utils/constant'); + + +/** + * #controller get /api/web/user-login/login-state + * #desc 获取登录状态 + * @param {*} request + * @param {*} response + */ +router.get('/login-state', async function(request, response) { + try { + const { [LOGIN_TOKEN_KEY]: token } = request.cookies; + const result = await userLoginStateBiz.userIsLogin({ + token + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + +/** + * #controller post /api/web/user-login/login-by-account + * #desc 通过账号登录 + * @param {*} request + * @param {*} response + */ +router.post('/login-by-account', async function(request, response) { + try { + const { account, password, fps } = request.body; + const { [LOGIN_TOKEN_KEY]: token } = request.cookies; + + if(token){ + const loginResult = await userLoginStateBiz.userIsLogin({ + token + }); + if(loginResult.success){ + return response.json(loginResult) + } + } + + if (!checkRequestParams({ + account, password, fps + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const result = await userLoginBiz.userLoginByAccount({ + account, password, fps + }); + + response.cookie(LOGIN_TOKEN_KEY, result.data, { + maxAge: LOGIN_TOKEN_EXPIRE, httpOnly: true + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + +/** + * #controller post /api/web/user-login/login-by-mobile + * #desc 通过手机号登录 + * @param {*} request + * @param {*} response + */ +router.post('/login-by-mobile', async function(request, response) { + try { + const { mobile, code, fps } = request.body; + const { [LOGIN_TOKEN_KEY]: token } = request.cookies; + + if(token){ + const loginResult = await userLoginStateBiz.userIsLogin({ + token + }); + if(loginResult.success){ + return response.json(loginResult) + } + } + + if (!checkRequestParams({ + mobile, code, fps + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const result = await userLoginBiz.userLoginByMobile({ + mobile, code, fps + }); + + response.cookie(LOGIN_TOKEN_KEY, result.data, { + maxAge: LOGIN_TOKEN_EXPIRE, httpOnly: true + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}) + +/** + * #controller post /api/web/user-login/login-by-email + * #desc 通过邮箱登录 + * @param {*} request + * @param {*} response + */ +router.post('/login-by-email', async function(request, response) { + try { + const { email, password, fps } = request.body; + const { [LOGIN_TOKEN_KEY]: token } = request.cookies; + + if(token){ + const loginResult = await userLoginStateBiz.userIsLogin({ + token + }); + if(loginResult.success){ + return response.json(loginResult) + } + } + + if (!checkRequestParams({ + email, password, fps + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const result = await userLoginBiz.userLoginByEmail({ + email, password, fps + }); + + response.cookie(LOGIN_TOKEN_KEY, result.data, { + maxAge: LOGIN_TOKEN_EXPIRE, httpOnly: true + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + +/** + * #controller post /api/web/user-login/login-by-code + * #desc 游客登录 + * @param {*} request + * @param {*} response + */ +router.post('/login-by-guest', async function(request, response) { + try { + const { code } = request.body; + const { [LOGIN_TOKEN_KEY]: token } = request.cookies; + + if(token){ + const loginResult = await userLoginStateBiz.userIsLogin({ + token + }); + if(loginResult.success){ + return response.json(loginResult) + } + } + + if (!checkRequestParams({ + code + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const result = await userLoginBiz.userLoginByGuest({ + code + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + +/** + * #controller post /api/web/user-login/login-by-wechat + * #desc 微信登录 + * @param {*} request + * @param {*} response + */ +router.post('/login-by-wechat', async function(request, response) { + try { + const { openId, code } = request.body; + const { [LOGIN_TOKEN_KEY]: token } = request.cookies; + + if(token){ + const loginResult = await userLoginStateBiz.userIsLogin({ + token + }); + if(loginResult.success){ + return response.json(loginResult) + } + } + + if (!checkRequestParams({ + openId, code + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const result = await userLoginBiz.userLoginByWechat({ + openId, code + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + +/** + * #controller post /api/web/user-login/login-by-qq + * #desc QQ登录 + * @param {*} request + * @param {*} response + */ +router.post('/login-by-qq', async function(request, response) { + try { + const { openId, code } = request.body; + const { [LOGIN_TOKEN_KEY]: token } = request.cookies; + + if(token){ + const loginResult = await userLoginStateBiz.userIsLogin({ + token + }); + if(loginResult.success){ + return response.json(loginResult) + } + } + + if (!checkRequestParams({ + openId, code + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const result = await userLoginBiz.userLoginByQQ({ + openId, code + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + +/** + * #controller post /api/web/user-login/login-by-qy-wechat + * #desc 企业微信登录 + * @param {*} request + * @param {*} response + */ +router.post('/login-by-qy-wechat', async function(request, response) { + try { + const { openId, code } = request.body; + const { [LOGIN_TOKEN_KEY]: token } = request.cookies; + + if(token){ + const loginResult = await userLoginStateBiz.userIsLogin({ + token + }); + if(loginResult.success){ + return response.json(loginResult) + } + } + + if (!checkRequestParams({ + openId, code + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const result = await userLoginBiz.userLoginByQyWechat({ + openId, code + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + + +/** + * #controller post /api/web/user-login/login-by-fp + * #desc 通过指纹一键登录 + * @param {*} request + * @param {*} response + */ +router.post('/login-by-fp', async function(request, response) { + try { + const { username, fps} = request.body; + const { [LOGIN_TOKEN_KEY]: token } = request.cookies; + + if(token){ + const loginResult = await userLoginStateBiz.userIsLogin({ + token + }); + if(loginResult.success){ + return response.json(loginResult) + } + } + + if (!checkRequestParams({ + username, fps + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const result = await userLoginBiz.userLoginByFingerPrint({ + username, fps + }); + + response.cookie(LOGIN_TOKEN_KEY, result.data, { + maxAge: LOGIN_TOKEN_EXPIRE, httpOnly: true + }); + + response.json(result); + + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + + +/** + * #controller get /api/web/user-login/website-login-state + * #desc 获取官网登录状态 + * @param {*} request + * @param {*} response + */ +router.get('/website-login-state', async function(request, response) { + try { + const { [WEBSITE_LOGIN_TOKEN_KEY]: token } = request.cookies; + const result = await userLoginStateBiz.userIsLogin({ + token + }); + + if(!result.success){ + return response.json(result) + } + + const data = { + loginUserId: result.data.loginUserId, + loginUserEmail: result.data.loginUserEmail, + loginUsername: result.data.loginUsername, + loginUserAvatar: result.data.loginUserAvatar, + loginTime: result.data.loginTime, + token: result.data.token, + } + response.json(tlResponseSuccess("在线", data)); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + + +/** + * #controller post /api/web/user-login/login-by-website + * #desc 官网登录 + * @param {*} request + * @param {*} response + */ +router.post('/login-by-website', async function(request, response) { + try { + const { name, email, password } = request.body; + const { [WEBSITE_LOGIN_TOKEN_KEY]: token } = request.cookies; + + if(token){ + const loginResult = await userLoginStateBiz.userIsLogin({ + token + }); + if(loginResult.success){ + return response.json(loginResult) + } + } + + if (!checkRequestParams({ + name, email, password + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const result = await userLoginBiz.userLoginByWebsite({ + name, email, password + }); + + response.cookie(WEBSITE_LOGIN_TOKEN_KEY, result.data, { + maxAge: WEBSITE_LOGIN_TOKEN_EXPIRE, httpOnly: true + }); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + +module.exports = router \ No newline at end of file diff --git a/src/controller/web/user/user_logout_controller.js b/src/controller/web/user/user_logout_controller.js new file mode 100644 index 0000000..d119030 --- /dev/null +++ b/src/controller/web/user/user_logout_controller.js @@ -0,0 +1,65 @@ +const { + tlConsole, tlResponseSvrError, tlConsoleError +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const userLogoutBiz = require('../../../biz/user/user_logout_biz'); +const { + LOGIN : { + LOGIN_TOKEN_KEY, + + WEBSITE_LOGIN_TOKEN_KEY + } +} = require('../../../utils/constant'); + + + + +/** + * #controller get /api/web/user-logout/logout + * #desc 退出登录 + * @param {*} request + * @param {*} response + */ +router.get('/logout', async function(request, response) { + try { + const { [LOGIN_TOKEN_KEY]: token } = request.cookies; + const result = await userLogoutBiz.userLogout({ + token + }); + + response.clearCookie(LOGIN_TOKEN_KEY); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + + +/** + * #controller get /api/web/user-logout/website-logout + * #desc 退出登录 + * @param {*} request + * @param {*} response + */ +router.get('/website-logout', async function(request, response) { + try { + const { [WEBSITE_LOGIN_TOKEN_KEY]: token } = request.cookies; + const result = await userLogoutBiz.userLogout({ + token + }); + + response.clearCookie(WEBSITE_LOGIN_TOKEN_KEY); + + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + + + +module.exports = router \ No newline at end of file diff --git a/src/controller/web/user/user_read_controller.js b/src/controller/web/user/user_read_controller.js new file mode 100644 index 0000000..a8bad87 --- /dev/null +++ b/src/controller/web/user/user_read_controller.js @@ -0,0 +1,209 @@ +const { + tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const userReadBiz = require('../../../biz/user/user_read_biz'); + + +/** + * #controller post /api/web/user-read/update-channel-mutil-read + * #desc 更新频道文件/媒体/聊天消息已读记录 + * @param {*} request + * @param {*} response + */ +router.post('/update-channel-mutil-read', async function(request, response) { + try { + const { + channelId, latestChatReadId, latestMediaReadId, latestFileReadId + } = request.body; + + if (!checkRequestParams({ + channelId, latestChatReadId, latestMediaReadId, latestFileReadId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userReadBiz.updateChannelMuiltRead({ + loginInfo, channelId, latestChatReadId, latestMediaReadId, latestFileReadId + }) + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}) + +/** + * #controller post /api/web/user-read/update-channel-chat-read + * #desc 更新频道聊天消息已读记录 + * @param {*} request + * @param {*} response + */ +router.post('/update-channel-chat-read', async function(request, response) { + try { + const { channelId, latestReadId } = request.body; + + if (!checkRequestParams({ + channelId, latestReadId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userReadBiz.updateChannelChatRead({ + loginInfo, channelId, latestReadId + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}); + +/** + * #controller post /api/web/user-read/update-channel-media-read + * #desc 更新频道媒体消息已读记录 + * @param {*} request + * @param {*} response + */ +router.post('/update-channel-media-read', async function(request, response) { + try { + const { channelId, latestReadId } = request.body; + + if (!checkRequestParams({ + channelId, latestReadId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userReadBiz.updateChannelMediaRead({ + loginInfo, channelId, latestReadId + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}) + +/** + * #controller post /api/web/user-read/update-channel-file-read + * #desc 更新频道文件消息已读记录 + * @param {*} request + * @param {*} response + */ +router.post('/update-channel-file-read', async function(request, response) { + try { + const { channelId, latestReadId } = request.body; + + if (!checkRequestParams({ + channelId, latestReadId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userReadBiz.updateChannelFileRead({ + loginInfo, channelId, latestReadId + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}) + +/** + * #controller post /api/web/user-read/update-user-friend-apply-read + * #desc 新增申请消息已读记录 + * @param {*} request + * @param {*} response + */ +router.post('/update-user-friend-apply-read', async function(request, response) { + try { + const { recordId } = request.body; + + if (!checkRequestParams({ + recordId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userReadBiz.addUserFriendApplyRead({ + loginInfo, recordId + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}) + + +/** + * #controller post /api/web/user-read/update-user-friend-apply-pass-read + * #desc 新增通过申请消息已读记录 + * @param {*} request + * @param {*} response + */ +router.post('/update-user-friend-apply-pass-read', async function(request, response) { + try { + const { recordId } = request.body; + + if (!checkRequestParams({ + recordId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userReadBiz.addUserFriendApplyPassRead({ + loginInfo, recordId + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}) + +/** + * #controller post /api/web/user-read/update-user-friend-apply-reject-read + * #desc 新增拒绝申请消息已读记录 + * @param {*} request + * @param {*} response + */ +router.post('/update-user-friend-apply-reject-read', async function(request, response) { + try { + const { applyId } = request.body; + + if (!checkRequestParams({ + applyId + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userReadBiz.addUserFriendApplyRejectRead({ + loginInfo, applyId + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()) + } +}) + + +module.exports = router; \ No newline at end of file diff --git a/src/controller/web/user/user_register_controller.js b/src/controller/web/user/user_register_controller.js new file mode 100644 index 0000000..c487222 --- /dev/null +++ b/src/controller/web/user/user_register_controller.js @@ -0,0 +1,192 @@ +const { + tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const bizUserRegister = require('../../../biz/user/user_register_biz'); +const bizUserLoginState = require('../../../biz/user/user_login_state_biz'); +const { + LOGIN : { + LOGIN_TOKEN_KEY + } +} = require('../../../utils/constant'); + + +/** + * #controller post /api/web/user-register/register-by-account + * #desc 通过账号注册 + * @param {*} request + * @param {*} response + */ +router.post('/register-by-account', async function(request, response) { + try { + const { account, password, invite_code } = request.body; + const { [LOGIN_TOKEN_KEY]: token } = request.cookies; + + if(token){ + const loginResult = await bizUserLoginState.userIsLogin({ + token + }); + if(loginResult.success){ + return response.json(loginResult) + } + } + + if (!checkRequestParams({ + account, password, invite_code + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const result = await bizUserRegister.userRegisterByAccount({ + account, password, invite_code + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +/** + * #controller post /api/web/user-register/register-by-mobile + * #desc 通过手机号注册 + * @param {*} request + * @param {*} response + */ +router.post('/register-by-mobile', async function(request, response) { + try { + const { mobile, code, invite_code } = request.body; + const { [LOGIN_TOKEN_KEY]: token } = request.cookies; + + if(token){ + const loginResult = await bizUserLoginState.userIsLogin({ + token + }); + if(loginResult.success){ + return response.json(loginResult) + } + } + + if (!checkRequestParams({ + mobile, code, invite_code + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const result = await bizUserRegister.userRegisterByMobile({ + mobile, code, invite_code + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +/** + * #controller post /api/web/user-register/register-by-email + * #desc 通过邮箱注册 + * @param {*} request + * @param {*} response + */ +router.post('/register-by-email', async function(request, response) { + try { + const { email, code, invite_code, password } = request.body; + const { [LOGIN_TOKEN_KEY]: token } = request.cookies; + + if(token){ + const loginResult = await bizUserLoginState.userIsLogin({ + token + }); + if(loginResult.success){ + return response.json(loginResult) + } + } + + if (!checkRequestParams({ + email, code, invite_code, password + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const result = await bizUserRegister.userRegisterByEmail({ + email, code, invite_code, password + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +/** + * #controller post /api/web/user-register/get-email-code + * #desc 获取邮箱验证码 + * @param {*} request + * @param {*} response + */ +router.post('/get-email-code', async function(request, response) { + try { + const { email } = request.body; + + if (!checkRequestParams({ + email + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const result = await bizUserRegister.getEmailCode({ + email + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + +/** + * #controller post /api/web/user-register/register-website-user + * #desc 注册官网用户 + * @param {*} request + * @param {*} response + */ +router.post('/register-website-user', async function(request, response) { + try { + const { code, email, password } = request.body; + const { [LOGIN_TOKEN_KEY]: token } = request.cookies; + + if(token){ + const loginResult = await bizUserLoginState.userIsLogin({ + token + }); + + if(loginResult.success){ + return response.json(loginResult) + } + } + + if (!checkRequestParams({ + code, email, password + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const result = await bizUserRegister.registerWebsiteUser({ + code, email, password + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +module.exports = router \ No newline at end of file diff --git a/src/controller/web/user/user_tag_controller.js b/src/controller/web/user/user_tag_controller.js new file mode 100644 index 0000000..e17b284 --- /dev/null +++ b/src/controller/web/user/user_tag_controller.js @@ -0,0 +1,180 @@ +const { + tlConsole, tlResponseSvrError, tlConsoleError, tlResponseArgsError, checkRequestParams +} = require("../../../utils/utils"); +const express = require('express'); +const router = express.Router(); +const userTagBiz = require('../../../biz/user/user_tag_biz'); + + +/** + * #controller post /api/web/user-tag/add-channel-tag + * #desc 添加频道标签 + * @param {*} request + * @param {*} response + */ +router.post('/add-channel-tag', async function(request, response) { + try { + const { name } = request.body; + + if (!checkRequestParams({ + name + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userTagBiz.addChannelTag({ + loginInfo, name + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +/** + * #controller post /api/web/user-tag/add-friend-tag + * #desc 添加好友标签 + * @param {*} request + * @param {*} response + */ +router.post('/add-friend-tag', async function(request, response) { + try { + const { name } = request.body; + + if (!checkRequestParams({ + name + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userTagBiz.addFriendTag({ + loginInfo, name + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +/** + * #controller post /api/web/user-tag/add-cloud-tag + * #desc 添加云资源库标签 + * @param {*} request + * @param {*} response + */ +router.post('/add-cloud-tag', async function(request, response) { + try { + const { name } = request.body; + + if (!checkRequestParams({ + name + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userTagBiz.addCloudTag({ + loginInfo, name + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +/** + * #controller post /api/web/user-tag/get-channel-tag-list + * #desc 获取频道标签列表 + * @param {*} request + * @param {*} response + */ +router.get('/get-channel-tag-list', async function(request, response) { + try { + const loginInfo = request.ctx || {} + const result = await userTagBiz.getChannelTagList({ + loginInfo + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +/** + * #controller post /api/web/user-tag/get-friend-tag-list + * #desc 获取好友标签列表 + * @param {*} request + * @param {*} response + */ +router.get('/get-friend-tag-list', async function(request, response) { + try { + const loginInfo = request.ctx || {} + const result = await userTagBiz.getFriendTagList({ + loginInfo + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +/** + * #controller post /api/web/user-tag/get-cloud-tag-list + * #desc 获取云资源库标签列表 + * @param {*} request + * @param {*} response + */ +router.get('/get-cloud-tag-list', async function(request, response) { + try { + const loginInfo = request.ctx || {} + const result = await userTagBiz.getCloudTagList({ + loginInfo + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + +/** + * #controller post /api/web/user-tag/delete-tag + * #desc 删除标签 + * @param {*} request + * @param {*} response + */ +router.post('/delete-tag', async function(request, response) { + try { + const { id } = request.body; + + if (!checkRequestParams({ + id + })) { + response.json(tlResponseArgsError("请求参数非法")); + return; + } + + const loginInfo = request.ctx || {} + const result = await userTagBiz.delUserTag({ + loginInfo, id + }); + response.json(result); + } catch (error) { + tlConsoleError(error) + response.json(tlResponseSvrError()); + } +}); + + + +module.exports = router; \ No newline at end of file diff --git a/src/controller/web/web.js b/src/controller/web/web.js new file mode 100644 index 0000000..c23f7e3 --- /dev/null +++ b/src/controller/web/web.js @@ -0,0 +1,44 @@ +// Autor: iamtsm +// web包含的controller定义 +// Date: 2024-01-13 + +// 配置 +const configInit = require('./config/init_controller') + +// 企业 +const company = require('./company/company_controller') + +// 用户 +const userLogin = require('./user/user_login_controller') +const userRegister = require('./user/user_register_controller') +const userLogout = require('./user/user_logout_controller') +const userFriend = require('./user/user_friend_controller') +const user = require('./user/user_controller') +const userApply = require('./user/user_apply_controller') +const userRead = require('./user/user_read_controller') +const userConfig = require('./user/user_config_controller') +const userTag = require('./user/user_tag_controller') + +// 频道 +const channel = require('./channel/channel_controller') +const channelChat = require('./channel/channel_chat_controller') +const channelUser = require('./channel/channel_user_controller') + + +module.exports = { + "config" : configInit, + "company" : company, + + "user" : user, + "user-login" : userLogin, + "user-logout" : userLogout, + "user-register" : userRegister, + "user-friend" : userFriend, + "user-apply" : userApply, + "user-read" : userRead, + "user-config" : userConfig, + "user-tag" : userTag, + "channel" : channel, + "channel-chat" : channelChat, + "channel-user" : channelUser, +} diff --git a/src/dao/tl_channel_chat_dao.js b/src/dao/tl_channel_chat_dao.js new file mode 100644 index 0000000..a0ada9a --- /dev/null +++ b/src/dao/tl_channel_chat_dao.js @@ -0,0 +1,232 @@ +const { DataTypes, where } = require('sequelize'); +const { dbClient } = require('../tables/db') +const { model, fields } = require('../tables/tl_channel_chat') +const Table = model(dbClient, DataTypes).TlChannelChat +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function(data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.create(data) + + tlConsole(TableName, data, info) + + return info +} + +/** + * addList 接口 + * @param {*} dataList + */ +const addList = async function(dataList){ + if(dataList.length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + for(let data of dataList){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + } + + const list = await Table.bulkCreate(dataList) + + tlConsole(TableName, dataList, list) + + return list +} + + +/** + * getInfo 接口 + * @param {*} params + * @param {*} fields + */ +const getInfo = async function(params, fields = TableFields){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.findOne({ + where: params, + attributes: fields + }) + + return info +} + +/** + * getList 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + */ +const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order + }) + + return list +} + +/** + * getListForPage 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + limit: pageSize, + offset: (page - 1) * pageSize + }) + + return list +} + +/** + * updateInfo 接口 + * @param {*} params + * @param {*} data + */ +const updateInfo = async function(params, data){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.update(data, { + where: params + }) + + tlConsole(TableName, params, data, info) + + return info +} + + +/** + * deleteInfo 接口 + * @param {*} params + */ +const deleteInfo = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.destroy({ + where: params + }) + + tlConsole(TableName, params, info) + + return info +} + +/** + * getCount 接口 + * @param {*} params + */ +const getCount = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params + }) + + return count +} + +/** + * getGroupCount 接口 + * @param {*} params + * @param {*} group + */ +const getGroupCount = async function(params, group){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + if(Object.keys(group).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params, + attributes: [group], + group: group, + }) + + return count +} + + + +module.exports = { + addInfo, addList, + getInfo, getList, getListForPage, + updateInfo, + deleteInfo, + getCount, + getGroupCount +} \ No newline at end of file diff --git a/src/dao/tl_channel_dao.js b/src/dao/tl_channel_dao.js new file mode 100644 index 0000000..d81e179 --- /dev/null +++ b/src/dao/tl_channel_dao.js @@ -0,0 +1,205 @@ +const { DataTypes, where, or } = require('sequelize'); +const { dbClient } = require('../tables/db') +const { model, fields } = require('../tables/tl_channel') +const Table = model(dbClient, DataTypes).TlChannel +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole, checkRawFieldType} = require("../../src/utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function(data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.create(data) + + tlConsole(TableName, data, info) + + return info +} + +/** + * addList 接口 + * @param {*} dataList + */ +const addList = async function(dataList){ + if(dataList.length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + for(let data of dataList){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + } + + const list = await Table.bulkCreate(dataList) + + tlConsole(TableName, dataList, list) + + return list +} + + +/** + * getInfo 接口 + * @param {*} params + * @param {*} fields + */ +const getInfo = async function(params, fields = TableFields){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.findOne({ + where: params, + attributes: fields + }) + + return info +} + +/** + * getList 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + */ +const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order + }) + + return list +} + +/** + * getListForPage 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + limit: pageSize, + offset: (page - 1) * pageSize + }) + + return list +} + +/** + * updateInfo 接口 + * @param {*} params + * @param {*} data + */ +const updateInfo = async function(params, data){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.update(data, { + where: params + }) + + tlConsole(TableName, params, data, info) + + return info +} + + +/** + * deleteInfo 接口 + * @param {*} params + */ +const deleteInfo = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.destroy({ + where: params + }) + + tlConsole(TableName, params, info) + + return info +} + +/** + * getCount 接口 + * @param {*} params + */ +const getCount = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params + }) + + return count +} + + +module.exports = { + addInfo, addList, + getInfo, getList, getListForPage, + updateInfo, + deleteInfo, + getCount, +} \ No newline at end of file diff --git a/src/dao/tl_channel_user_dao.js b/src/dao/tl_channel_user_dao.js new file mode 100644 index 0000000..f6fa134 --- /dev/null +++ b/src/dao/tl_channel_user_dao.js @@ -0,0 +1,234 @@ +const { DataTypes, Sequelize } = require('sequelize'); +const { dbClient } = require('../tables/db') +const { model, fields } = require('../tables/tl_channel_user') +const Table = model(dbClient, DataTypes).TlChannelUser +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils"); + + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function(data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.create(data) + + tlConsole(TableName, data, info) + + return info +} + +/** + * addList 接口 + * @param {*} dataList + */ +const addList = async function(dataList){ + if(dataList.length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + for(let data of dataList){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + } + + const list = await Table.bulkCreate(dataList) + + tlConsole(TableName, JSON.stringify(dataList), list) + + return list +} + + +/** + * getInfo 接口 + * @param {*} params + * @param {*} fields + */ +const getInfo = async function(params, fields = TableFields){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.findOne({ + where: params, + attributes: fields + }) + + return info +} + +/** + * getList 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + */ +const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){ + + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order + }) + + return list +} + +/** + * getListForPage 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){ + + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + limit: pageSize, + offset: (page - 1) * pageSize + }) + + return list +} + +/** + * getCount 接口 + * @param {*} params + */ +const getCount = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params + }) + + return count +} + +/** + * getGroupCount 接口 + * @param {*} params + * @param {*} group + */ +const getGroupCount = async function(params, group){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + if(Object.keys(group).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params, + attributes: [group], + group: group, + }) + + return count +} + +/** + * updateInfo 接口 + * @param {*} params + * @param {*} data + */ +const updateInfo = async function(params, data){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.update(data, { + where: params + }) + + tlConsole(TableName, params, data, info) + + return info +} + + +/** + * deleteInfo 接口 + * @param {*} params + */ +const deleteInfo = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.destroy({ + where: params + }) + + tlConsole(TableName, params, info) + + return info +} + + +module.exports = { + addInfo, addList, + getInfo, getList, getListForPage, + updateInfo, + deleteInfo, + getCount, getGroupCount, +} \ No newline at end of file diff --git a/src/dao/tl_company_dao.js b/src/dao/tl_company_dao.js new file mode 100644 index 0000000..0ee6c6b --- /dev/null +++ b/src/dao/tl_company_dao.js @@ -0,0 +1,205 @@ +const { DataTypes, where } = require('sequelize'); +const { dbClient } = require('../tables/db') +const { model, fields } = require('../tables/tl_company') +const Table = model(dbClient, DataTypes).TlCompany +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function(data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.create(data) + + tlConsole(TableName, data, info) + + return info +} + +/** + * addList 接口 + * @param {*} dataList + */ +const addList = async function(dataList){ + if(dataList.length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + for(let data of dataList){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + } + + const list = await Table.bulkCreate(dataList) + + tlConsole(TableName, dataList, list) + + return list +} + + +/** + * getInfo 接口 + * @param {*} params + * @param {*} fields + */ +const getInfo = async function(params, fields = TableFields){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.findOne({ + where: params, + attributes: fields + }) + + return info +} + +/** + * getList 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + */ +const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order + }) + + return list +} + +/** + * getListForPage 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + offset: (page - 1) * pageSize, + limit: pageSize + }) + + return list +} + +/** + * updateInfo 接口 + * @param {*} params + * @param {*} data + */ +const updateInfo = async function(params, data){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.update(data, { + where: params + }) + + tlConsole(TableName, params, data, info) + + return info +} + + +/** + * deleteInfo 接口 + * @param {*} params + */ +const deleteInfo = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.destroy({ + where: params + }) + + tlConsole(TableName, params, info) + + return info +} + +/** + * getCount 接口 + * @param {*} params + */ +const getCount = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params + }) + + return count +} + +module.exports = { + addInfo, addList, + getInfo, getList, getListForPage, + updateInfo, + deleteInfo, + getCount, +} \ No newline at end of file diff --git a/src/dao/tl_role_dao.js b/src/dao/tl_role_dao.js new file mode 100644 index 0000000..87bf115 --- /dev/null +++ b/src/dao/tl_role_dao.js @@ -0,0 +1,206 @@ +const { DataTypes, where } = require('sequelize'); +const { dbClient } = require('../tables/db') +const { model, fields } = require('../tables/tl_role') +const Table = model(dbClient, DataTypes).TlRole +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function(data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.create(data) + + tlConsole(TableName, data, info) + + return info +} + +/** + * addList 接口 + * @param {*} dataList + */ +const addList = async function(dataList){ + if(dataList.length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + for(let data of dataList){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + } + + const list = await Table.bulkCreate(dataList) + + tlConsole(TableName, dataList, list) + + return list +} + + +/** + * getInfo 接口 + * @param {*} params + * @param {*} fields + */ +const getInfo = async function(params, fields = TableFields){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.findOne({ + where: params, + attributes: fields + }) + + return info +} + +/** + * getList 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + */ +const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order + }) + + return list +} + +/** + * getListForPage 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + limit: pageSize, + offset: (page - 1) * pageSize + }) + + return list +} + +/** + * updateInfo 接口 + * @param {*} params + * @param {*} data + */ +const updateInfo = async function(params, data){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.update(data, { + where: params + }) + + tlConsole(TableName, params, data, info) + + return info +} + + +/** + * deleteInfo 接口 + * @param {*} params + */ +const deleteInfo = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.destroy({ + where: params + }) + + tlConsole(TableName, params, info) + + return info +} + +/** + * getCount 接口 + * @param {*} params + */ +const getCount = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params + }) + + return count +} + + +module.exports = { + addInfo, addList, + getInfo, getList, getListForPage, + updateInfo, + deleteInfo, + getCount, +} \ No newline at end of file diff --git a/src/dao/tl_user_apply_dao.js b/src/dao/tl_user_apply_dao.js new file mode 100644 index 0000000..ad693c4 --- /dev/null +++ b/src/dao/tl_user_apply_dao.js @@ -0,0 +1,206 @@ +const { DataTypes, where } = require('sequelize'); +const { dbClient } = require('../tables/db') +const { model, fields } = require('../tables/tl_user_apply') +const Table = model(dbClient, DataTypes).TlUserApply +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function(data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.create(data) + + tlConsole(TableName, data, info) + + return info +} + +/** + * addList 接口 + * @param {*} dataList + */ +const addList = async function(dataList){ + if(dataList.length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + for(let data of dataList){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + } + + const list = await Table.bulkCreate(dataList) + + tlConsole(TableName, dataList, list) + + return list +} + + +/** + * getInfo 接口 + * @param {*} params + * @param {*} fields + */ +const getInfo = async function(params, fields = TableFields){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.findOne({ + where: params, + attributes: fields + }) + + return info +} + +/** + * getList 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + */ +const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + }) + + return list +} + +/** + * getListForPage 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + limit: pageSize, + offset: (page - 1) * pageSize + }) + + return list +} + +/** + * updateInfo 接口 + * @param {*} params + * @param {*} data + */ +const updateInfo = async function(params, data){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.update(data, { + where: params + }) + + tlConsole(TableName, params, data, info) + + return info +} + + +/** + * deleteInfo 接口 + * @param {*} params + */ +const deleteInfo = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.destroy({ + where: params + }) + + tlConsole(TableName, params, info) + + return info +} + +/** + * getCount 接口 + * @param {*} params + */ +const getCount = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params + }) + + return count +} + + +module.exports = { + addInfo, addList, + getInfo, getList, getListForPage, + updateInfo, + deleteInfo, + getCount, +} \ No newline at end of file diff --git a/src/dao/tl_user_auth_dao.js b/src/dao/tl_user_auth_dao.js new file mode 100644 index 0000000..551f237 --- /dev/null +++ b/src/dao/tl_user_auth_dao.js @@ -0,0 +1,206 @@ +const { DataTypes, where } = require('sequelize'); +const { dbClient } = require('../tables/db') +const { model, fields } = require('../tables/tl_user_auth') +const Table = model(dbClient, DataTypes).TlUserAuth +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole, checkRawFieldType } = require("../utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function(data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.create(data) + + tlConsole(TableName, data, info) + + return info +} + +/** + * addList 接口 + * @param {*} dataList + */ +const addList = async function(dataList){ + if(dataList.length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + for(let data of dataList){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + } + + const list = await Table.bulkCreate(dataList) + + tlConsole(TableName, dataList, list) + + return list +} + + +/** + * getInfo 接口 + * @param {*} params + * @param {*} fields + */ +const getInfo = async function(params, fields = TableFields){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.findOne({ + where: params, + attributes: fields + }) + + return info +} + +/** + * getList 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + */ +const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + }) + + return list +} + +/** + * getListForPage 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + offset: (page - 1) * pageSize, + limit: pageSize + }) + + return list +} + +/** + * updateInfo 接口 + * @param {*} params + * @param {*} data + */ +const updateInfo = async function(params, data){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.update(data, { + where: params + }) + + tlConsole(TableName, params, data, info) + + return info +} + + +/** + * deleteInfo 接口 + * @param {*} params + */ +const deleteInfo = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.destroy({ + where: params + }) + + tlConsole(TableName, params, info) + + return info +} + +/** + * getCount 接口 + * @param {*} params + */ +const getCount = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params + }) + + return count +} + + +module.exports = { + addInfo, addList, + getInfo, getList, getListForPage, + updateInfo, + deleteInfo, + getCount, +} \ No newline at end of file diff --git a/src/dao/tl_user_config_dao.js b/src/dao/tl_user_config_dao.js new file mode 100644 index 0000000..a7f433e --- /dev/null +++ b/src/dao/tl_user_config_dao.js @@ -0,0 +1,206 @@ +const { DataTypes, where } = require('sequelize'); +const { dbClient } = require('../tables/db') +const { model, fields } = require('../tables/tl_user_config') +const Table = model(dbClient, DataTypes).TlUserConfig +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function(data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.create(data) + + tlConsole(TableName, data, info) + + return info +} + +/** + * addList 接口 + * @param {*} dataList + */ +const addList = async function(dataList){ + if(dataList.length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + for(let data of dataList){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + } + + const list = await Table.bulkCreate(dataList) + + tlConsole(TableName, dataList, list) + + return list +} + + +/** + * getInfo 接口 + * @param {*} params + * @param {*} fields + */ +const getInfo = async function(params, fields = TableFields){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.findOne({ + where: params, + attributes: fields + }) + + return info +} + +/** + * getList 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + */ +const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + }) + + return list +} + +/** + * getListForPage 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + limit: pageSize, + offset: (page - 1) * pageSize + }) + + return list +} + +/** + * updateInfo 接口 + * @param {*} params + * @param {*} data + */ +const updateInfo = async function(params, data){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.update(data, { + where: params + }) + + tlConsole(TableName, params, data, info) + + return info +} + + +/** + * deleteInfo 接口 + * @param {*} params + */ +const deleteInfo = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.destroy({ + where: params + }) + + tlConsole(TableName, params, info) + + return info +} + +/** + * getCount 接口 + * @param {*} params + */ +const getCount = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params + }) + + return count +} + + +module.exports = { + addInfo, addList, + getInfo, getList, getListForPage, + updateInfo, + deleteInfo, + getCount, +} \ No newline at end of file diff --git a/src/dao/tl_user_dao.js b/src/dao/tl_user_dao.js new file mode 100644 index 0000000..f6df9a6 --- /dev/null +++ b/src/dao/tl_user_dao.js @@ -0,0 +1,207 @@ +const { DataTypes, where } = require('sequelize'); +const { dbClient } = require('../tables/db') +const { model, fields } = require('../tables/tl_user') +const Table = model(dbClient, DataTypes).TlUser +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils"); + + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function(data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.create(data) + + tlConsole(TableName, data, info) + + return info +} + +/** + * addList 接口 + * @param {*} dataList + */ +const addList = async function(dataList){ + if(dataList.length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + for(let data of dataList){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + } + + const list = await Table.bulkCreate(dataList) + + tlConsole(TableName, dataList, list) + + return list +} + + +/** + * getInfo 接口 + * @param {*} params + * @param {*} fields + */ +const getInfo = async function(params, fields = TableFields){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.findOne({ + where: params, + attributes: fields + }) + + return info +} + +/** + * getList 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + */ +const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + }) + + return list +} + +/** + * getListForPage 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + limit: pageSize, + offset: (page - 1) * pageSize + }) + + return list +} + +/** + * updateInfo 接口 + * @param {*} params + * @param {*} data + */ +const updateInfo = async function(params, data){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.update(data, { + where: params + }) + + tlConsole(TableName, params, data, info) + + return info +} + + +/** + * deleteInfo 接口 + * @param {*} params + */ +const deleteInfo = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.destroy({ + where: params + }) + + tlConsole(TableName, params, info) + + return info +} + +/** + * getCount 接口 + * @param {*} params + */ +const getCount = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params + }) + + return count +} + + +module.exports = { + addInfo, addList, + getInfo, getList, getListForPage, + updateInfo, + deleteInfo, + getCount, +} \ No newline at end of file diff --git a/src/dao/tl_user_finger_print_dao.js b/src/dao/tl_user_finger_print_dao.js new file mode 100644 index 0000000..5dedd3b --- /dev/null +++ b/src/dao/tl_user_finger_print_dao.js @@ -0,0 +1,206 @@ +const { DataTypes, where } = require('sequelize'); +const { dbClient } = require('../tables/db') +const { model, fields } = require('../tables/tl_user_finger_print') +const Table = model(dbClient, DataTypes).TlUserFingerPrint +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole, checkRawFieldType } = require("../utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function(data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.create(data) + + tlConsole(TableName, data, info) + + return info +} + +/** + * addList 接口 + * @param {*} dataList + */ +const addList = async function(dataList){ + if(dataList.length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + for(let data of dataList){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + } + + const list = await Table.bulkCreate(dataList) + + tlConsole(TableName, dataList, list) + + return list +} + + +/** + * getInfo 接口 + * @param {*} params + * @param {*} fields + */ +const getInfo = async function(params, fields = TableFields){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.findOne({ + where: params, + attributes: fields + }) + + return info +} + +/** + * getList 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + */ +const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + }) + + return list +} + +/** + * getListForPage 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + offset: (page - 1) * pageSize, + limit: pageSize + }) + + return list +} + +/** + * updateInfo 接口 + * @param {*} params + * @param {*} data + */ +const updateInfo = async function(params, data){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.update(data, { + where: params + }) + + tlConsole(TableName, params, data, info) + + return info +} + + +/** + * deleteInfo 接口 + * @param {*} params + */ +const deleteInfo = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.destroy({ + where: params + }) + + tlConsole(TableName, params, info) + + return info +} + +/** + * getCount 接口 + * @param {*} params + */ +const getCount = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params + }) + + return count +} + + +module.exports = { + addInfo, addList, + getInfo, getList, getListForPage, + updateInfo, + deleteInfo, + getCount, +} \ No newline at end of file diff --git a/src/dao/tl_user_friend_dao.js b/src/dao/tl_user_friend_dao.js new file mode 100644 index 0000000..b615cf0 --- /dev/null +++ b/src/dao/tl_user_friend_dao.js @@ -0,0 +1,206 @@ +const { DataTypes } = require('sequelize'); +const { dbClient } = require('../tables/db') +const { model, fields } = require('../tables/tl_user_friend') +const Table = model(dbClient, DataTypes).TlUserFriend +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function(data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.create(data) + + tlConsole(TableName, data, info) + + return info +} + +/** + * addList 接口 + * @param {*} dataList + */ +const addList = async function(dataList){ + if(dataList.length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + for(let data of dataList){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + } + + const list = await Table.bulkCreate(dataList) + + tlConsole(TableName, dataList, list) + + return list +} + + +/** + * getInfo 接口 + * @param {*} params + * @param {*} fields + */ +const getInfo = async function(params, fields = TableFields){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.findOne({ + where: params, + attributes: fields + }) + + return info +} + +/** + * getList 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + */ +const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + }) + + return list +} + +/** + * getListForPage 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + offset: (page - 1) * pageSize, + limit: pageSize + }) + + return list +} + +/** + * updateInfo 接口 + * @param {*} params + * @param {*} data + */ +const updateInfo = async function(params, data){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.update(data, { + where: params + }) + + tlConsole(TableName, params, data, info) + + return info +} + + +/** + * deleteInfo 接口 + * @param {*} params + */ +const deleteInfo = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.destroy({ + where: params + }) + + tlConsole(TableName, params, info) + + return info +} + +/** + * getCount 接口 + * @param {*} params + */ +const getCount = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params + }) + + return count +} + + +module.exports = { + addInfo, addList, + getInfo, getList, getListForPage, + updateInfo, + deleteInfo, + getCount, +} \ No newline at end of file diff --git a/src/dao/tl_user_read_dao.js b/src/dao/tl_user_read_dao.js new file mode 100644 index 0000000..3209ec8 --- /dev/null +++ b/src/dao/tl_user_read_dao.js @@ -0,0 +1,205 @@ +const { DataTypes, where } = require('sequelize'); +const { dbClient } = require('../tables/db') +const { model, fields } = require('../tables/tl_user_read') +const Table = model(dbClient, DataTypes).TlUserRead +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole, checkRawFieldType } = require("../../src/utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function(data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.create(data) + + tlConsole(TableName, data, info) + + return info +} + +/** + * addList 接口 + * @param {*} dataList + */ +const addList = async function(dataList){ + if(dataList.length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + for(let data of dataList){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + } + + const list = await Table.bulkCreate(dataList) + + tlConsole(TableName, dataList, list) + + return list +} + + +/** + * getInfo 接口 + * @param {*} params + * @param {*} fields + */ +const getInfo = async function(params, fields = TableFields){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.findOne({ + where: params, + attributes: fields + }) + + return info +} + +/** + * getList 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + */ +const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + }) + + return list +} + +/** + * getListForPage 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + offset: (page - 1) * pageSize, + limit: pageSize + }) + + return list +} + +/** + * updateInfo 接口 + * @param {*} params + * @param {*} data + */ +const updateInfo = async function(params, data){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.update(data, { + where: params + }) + + tlConsole(TableName, params, data, info) + + return info +} + + +/** + * deleteInfo 接口 + * @param {*} params + */ +const deleteInfo = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.destroy({ + where: params + }) + + tlConsole(TableName, params, info) + + return info +} + +/** + * getCount 接口 + * @param {*} params + */ +const getCount = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params + }) + + return count +} + +module.exports = { + addInfo, addList, + getInfo, getList, getListForPage, + updateInfo, + deleteInfo, + getCount, +} \ No newline at end of file diff --git a/src/dao/tl_user_tag_dao.js b/src/dao/tl_user_tag_dao.js new file mode 100644 index 0000000..ec1f560 --- /dev/null +++ b/src/dao/tl_user_tag_dao.js @@ -0,0 +1,206 @@ +const { DataTypes, where } = require('sequelize'); +const { dbClient } = require('../tables/db') +const { model, fields } = require('../tables/tl_user_tag') +const Table = model(dbClient, DataTypes).TlUserTag +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole, checkRawFieldType } = require("../utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function(data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.create(data) + + tlConsole(TableName, data, info) + + return info +} + +/** + * addList 接口 + * @param {*} dataList + */ +const addList = async function(dataList){ + if(dataList.length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + for(let data of dataList){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + } + + const list = await Table.bulkCreate(dataList) + + tlConsole(TableName, dataList, list) + + return list +} + + +/** + * getInfo 接口 + * @param {*} params + * @param {*} fields + */ +const getInfo = async function(params, fields = TableFields){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.findOne({ + where: params, + attributes: fields + }) + + return info +} + +/** + * getList 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + */ +const getList = async function(params, fields = TableFields, order = [['id', 'ASC']]){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + }) + + return list +} + +/** + * getListForPage 接口 + * @param {*} params + * @param {*} fields + * @param {*} order + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function(params, fields = TableFields, order = [['id', 'ASC']], page = 1, pageSize = 10){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const list = await Table.findAll({ + where : params, + attributes: fields, + order: order, + offset: (page - 1) * pageSize, + limit: pageSize + }) + + return list +} + +/** + * updateInfo 接口 + * @param {*} params + * @param {*} data + */ +const updateInfo = async function(params, data){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + // 参数校验 + const checkStatus = checkRawFieldType(Table.rawAttributes, data) + if (!checkStatus) { + tlConsoleError(TableName, "请求dao参数类型错误") + return null + } + + const info = await Table.update(data, { + where: params + }) + + tlConsole(TableName, params, data, info) + + return info +} + + +/** + * deleteInfo 接口 + * @param {*} params + */ +const deleteInfo = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数为空") + return null + } + + const info = await Table.destroy({ + where: params + }) + + tlConsole(TableName, params, info) + + return info +} + +/** + * getCount 接口 + * @param {*} params + */ +const getCount = async function(params){ + if(Object.keys(params).length === 0){ + tlConsoleError(TableName, "请求dao参数有为空项") + return null + } + + const count = await Table.count({ + where : params + }) + + return count +} + + +module.exports = { + addInfo, addList, + getInfo, getList, getListForPage, + updateInfo, + deleteInfo, + getCount, +} \ No newline at end of file diff --git a/src/middleware/loginAuth.js b/src/middleware/loginAuth.js new file mode 100644 index 0000000..aca09a2 --- /dev/null +++ b/src/middleware/loginAuth.js @@ -0,0 +1,112 @@ +const { + tlConsoleApiIcon, tlConsole, tlConsoleError, + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess +} = require("../utils/utils"); +const { + LOGIN : { + LOGIN_TOKEN_KEY, + WEBSITE_LOGIN_TOKEN_KEY + } +} = require('../utils/constant'); +const userSessionService = require('../service/user/tl_user_session_service') + + +const loginAuthIngoreApi = [ + // 初始化 + '/api/web/config/init', + + // 登录 + '/api/web/user-login/login-state', + '/api/web/user-login/website-login-state', + '/api/web/user-login/login-by-account', + '/api/web/user-login/login-by-mobile', + '/api/web/user-login/login-by-email', + '/api/web/user-login/login-by-code', + '/api/web/user-login/login-by-wechat', + '/api/web/user-login/login-by-qq', + '/api/web/user-login/login-by-qy-wechat', + '/api/web/user-login/login-by-fp', + '/api/web/user-login/login-by-website', + + // 注册 + '/api/web/user-register/register-by-account', + '/api/web/user-register/register-by-mobile', + '/api/web/user-register/register-by-email', + '/api/web/user-register/get-email-code', + '/api/web/user-register/register-website-user', + + // 退出 + '/api/web/user-logout/logout', + '/api/web/user-logout/website-logout', +] + + +/** + * 登录验证中间件 + * @param {*} request + * @param {*} response + * @param {*} next + * @returns + */ +const loginAuthHandler = async function(request, response, next) { + // 非api请求不需要登录验证 + if(!request.url.startsWith("/api/")) { + return next() + } + + // 跳过忽略登录态校验的api + for (const ignoreApi of loginAuthIngoreApi) { + if (request.url.startsWith(ignoreApi)) { + return next() + } + } + + const isWebsite = request.url.includes("/website-") + + let tokenKey = LOGIN_TOKEN_KEY + if(isWebsite){ + tokenKey = WEBSITE_LOGIN_TOKEN_KEY + } + + const { [tokenKey]: token } = request.cookies; + if (!token) { + return response.json(tlResponseForbidden("不在线, 请先登录")) + } + + const { + loginUserCompanyId, + loginUserCompanyName, + loginUserId, + loginUsername, + loginUserRoleId, + loginUserAvatar, + loginTime, + loginUserEmail, + loginUserMobile + } = await userSessionService.getUserInfoByToken({token}) + + if(isWebsite){ + tlConsole("website login check:", request.url, token, loginUserCompanyId, loginUserId) + }else{ + tlConsole("login check:", request.url, token, loginUserCompanyId, loginUserId) + } + + if (!loginUserCompanyId) { + return response.json(tlResponseForbidden("不在线, 请先登录")) + } + + if (!loginUserId) { + return response.json(tlResponseForbidden("不在线, 请先登录")) + } + + request.ctx = { + token, loginUserCompanyId, loginUserId, + loginUsername, loginUserRoleId, loginUserCompanyName, + loginUserAvatar, loginTime, loginUserEmail, loginUserMobile + } + + next() +} + +module.exports = loginAuthHandler \ No newline at end of file diff --git a/src/middleware/loginRole.js b/src/middleware/loginRole.js new file mode 100644 index 0000000..f7ebb78 --- /dev/null +++ b/src/middleware/loginRole.js @@ -0,0 +1,288 @@ +const { + tlConsoleApiIcon, tlConsole, tlConsoleError, + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess +} = require("../utils/utils"); +const { + LOGIN : { + LOGIN_TOKEN_KEY + } +} = require('../utils/constant'); +const userSessionService = require('../service/user/tl_user_session_service') +const { inner: TlRoleInner } = require('../tables/tl_role') +const { + getAllPermissionsMap + } = require('../role/role') + + +const loginRoleIngoreApi = [ + // 初始化 + '/api/web/config/init', + + // 登录 + '/api/web/user-login/login-state', + '/api/web/user-login/website-login-state', + '/api/web/user-login/login-by-account', + '/api/web/user-login/login-by-mobile', + '/api/web/user-login/login-by-email', + '/api/web/user-login/login-by-code', + '/api/web/user-login/login-by-wechat', + '/api/web/user-login/login-by-qq', + '/api/web/user-login/login-by-qy-wechat', + '/api/web/user-login/login-by-fp', + '/api/web/user-login/login-by-website', + + // 注册 + '/api/web/user-register/register-by-account', + '/api/web/user-register/register-by-mobile', + '/api/web/user-register/register-by-email', + '/api/web/user-register/get-email-code', + '/api/web/user-register/register-website-user', + + // 退出 + '/api/web/user-logout/logout', + '/api/web/user-logout/website-logout', +] + + +/** + * 根据角色id获取角色信息 + * 目前角色是固定的,后续可以从数据库中获取 + * @param {*} roleId + * @returns + */ +const getRoleInfoById = function({roleId}){ + const roleList = [ + TlRoleInner.user.normal, + TlRoleInner.user.admin, + + TlRoleInner.channel.creator, + TlRoleInner.channel.admin, + TlRoleInner.channel.member, + ] + + return roleList.find(role => role.id === roleId) +} + +/** + * 判断角色是否有权限 + * @param {*} roleId + * @param {*} permissionId + * @returns + */ +const roleHasPermission = function({ roleId, permissionId }){ + const roleInfo = getRoleInfoById({ roleId }) + if(!roleInfo){ + return false + } + + let permissionIdList = [] + try{ + let permissionIdListJson = roleInfo.permissionIdList + permissionIdList = JSON.parse(permissionIdListJson) + }catch(e){ + tlConsoleError(e) + return false + } + + return permissionIdList.includes(permissionId) +} + +/** + * 判断用户在频道中是否有权限 + * @param {*} userId + * @param {*} permissionId + * @param {*} channelId + * @returns + */ +const channelRoleHasPermission = async function({ userId, permissionId, channelId }){ + let channelRole = await userSessionService.getUserChannelRole({ + userId, channelId + }) + channelRole = parseInt(channelRole) + + const roleInfo = getRoleInfoById({ roleId: channelRole }) + if(!roleInfo){ + return false + } + + let permissionIdList = [] + try{ + let permissionIdListJson = roleInfo.permissionIdList + permissionIdList = JSON.parse(permissionIdListJson) + }catch(e){ + tlConsoleError(e) + return false + } + + return permissionIdList.includes(permissionId) +} + + +/** + * 根据请求api获取对应的权限id + * @param {*} url + */ +const getRequestApiPermissionId = function(url){ + let apiSplit = url.split("/") + if(apiSplit.length !== 5){ + return "" + } + + let [_a, _b, apiPlatform, apiModule, apiAction] = apiSplit + + apiAction = apiAction.split("?")[0] + + apiModule = apiModule.replace(/-/g, "_").toUpperCase() + apiAction = apiAction.replace(/-/g, "_").toUpperCase() + + // 获取权限key + let permissionKey = apiModule + ":" + apiAction + + // 获取权限map + let permissionMap = getAllPermissionsMap() + + // 获取权限id + return permissionMap[permissionKey] +} + + +/** + * 权限验证中间件 + * @param {*} request + * @param {*} response + * @param {*} next + * @returns + */ +const loginRoleHandler = async function(request, response, next) { + // 非api请求不需要权限验证 + if(!request.url.startsWith("/api/")) { + return next() + } + + // 跳过忽略权限校验的api + for (const ignoreApi of loginRoleIngoreApi) { + if (request.url.startsWith(ignoreApi)) { + return next() + } + } + + // 频道相关不处理 + if(request.url.startsWith("/api/web/channel")){ + return next() + } + + const isWebsite = request.url.includes("/website-") + + const { + loginUserCompanyId, + loginUserCompanyName, + loginUserId, + loginUsername, + loginUserRoleId, + loginUserAvatar, + loginTime, + loginUserEmail, + loginUserMobile + } = request.ctx + + if(!loginUserRoleId){ + return response.json(tlResponseForbidden("身份无权限")) + } + + let permissionId = getRequestApiPermissionId(request.url) + + if(isWebsite){ + tlConsole("website role check:", request.url, loginUserCompanyId, loginUserId, loginUserRoleId, permissionId) + }else{ + tlConsole("role check:", request.url, loginUserCompanyId, loginUserId, loginUserRoleId, permissionId) + } + + if(!permissionId){ + return response.json(tlResponseForbidden("请求无权限")) + } + + const hasPermission = roleHasPermission({ + roleId: loginUserRoleId, + permissionId: permissionId + }) + if(!hasPermission){ + return response.json(tlResponseForbidden("操作无权限")) + } + + next() +} + +/** + * 频道权限验证中间件 + * @param {*} request + * @param {*} response + * @param {*} next + * @returns + */ +const loginChannelRoleHandler = async function(request, response, next) { + // 非api请求不需要权限验证 + if(!request.url.startsWith("/api/")) { + return next() + } + + // 跳过忽略权限校验的api + for (const ignoreApi of loginRoleIngoreApi) { + if (request.url.startsWith(ignoreApi)) { + return next() + } + } + + // 只处理频道相关的api + if(!request.url.startsWith("/api/web/channel")){ + return next() + } + + let channelId = request.query.channelId || request.body.channelId + if(!channelId){ + return next() + } + + channelId = String(channelId) + + const { + loginUserCompanyId, + loginUserCompanyName, + loginUserId, + loginUsername, + loginUserRoleId, + loginUserAvatar, + loginTime, + loginUserEmail, + loginUserMobile + } = request.ctx + + if(!loginUserRoleId){ + return response.json(tlResponseForbidden("身份无权限")) + } + + let permissionId = getRequestApiPermissionId(request.url) + + tlConsole("channel role check:", request.url, loginUserCompanyId, loginUserId, loginUserRoleId, permissionId) + + if(!permissionId){ + return response.json(tlResponseForbidden("请求无权限")) + } + + const hasPermission = await channelRoleHasPermission({ + userId: loginUserId, + permissionId: permissionId, + channelId: channelId + }) + if(!hasPermission){ + return response.json(tlResponseForbidden("操作无权限")) + } + + next() +} + + +module.exports = { + loginRoleHandler, + loginChannelRoleHandler +} \ No newline at end of file diff --git a/src/role/accountRole.js b/src/role/accountRole.js new file mode 100644 index 0000000..a43331c --- /dev/null +++ b/src/role/accountRole.js @@ -0,0 +1,86 @@ +const { + channelPermission, + userPermission, + companyPermission, + configPermission, + + channelPerfix, + channelUserPerfix, +} = require('./permission'); + + +/** + * 普通用户权限 + * @returns + */ +const userNormalPermissions = function(){ + let returnPermission = []; + + // 频道权限 + const channelKeys = Object.keys(channelPermission.channel).filter((key) => { + return ![ + channelPerfix + "UPDATE_CHANNEL_NAME" + ].includes(key) + }) + channelKeys.forEach((key) => { + returnPermission.push(channelPermission.channel[key]); + }) + + const channelUserKeys = Object.keys(channelPermission.channelUser).filter((key) => { + return ![ + channelUserPerfix + "ADD_CHANNEL_USER_ADMIN", + channelUserPerfix + "ADD_CHANNEL_USER", + channelUserPerfix + "DELETE_CHANNEL_USER", + channelUserPerfix + "UPDATE_CHANNEL_USER_ROLE_ADMIN", + channelUserPerfix + "UPDATE_CHANNEL_USER_ROLE_NORMAL", + ].includes(key) + }) + channelUserKeys.forEach((key) => { + returnPermission.push(channelPermission.channelUser[key]); + }) + returnPermission.push(...Object.values(channelPermission.channelChat)) + + // 用户权限 + Object.keys(userPermission).forEach((key) => { + returnPermission.push(...Object.values(userPermission[key])); + }) + // 配置权限 + Object.keys(configPermission).forEach((key) => { + returnPermission.push(...Object.values(configPermission[key])); + }) + + return returnPermission; +} + +/** + * 系统管理员权限 - 所有权限 + * @returns + */ +const userAdminPermissions = function(){ + let returnPermission = []; + + // 频道权限 + Object.keys(channelPermission).forEach((key) => { + returnPermission.push(...Object.values(channelPermission[key])); + }) + // 用户权限 + Object.keys(companyPermission).forEach((key) => { + returnPermission.push(...Object.values(companyPermission[key])); + }) + // 用户权限 + Object.keys(userPermission).forEach((key) => { + returnPermission.push(...Object.values(userPermission[key])); + }) + // 配置权限 + Object.keys(configPermission).forEach((key) => { + returnPermission.push(...Object.values(configPermission[key])); + }) + + return returnPermission; +} + + +module.exports = { + userNormalPermissions, + userAdminPermissions, +} \ No newline at end of file diff --git a/src/role/channelRole.js b/src/role/channelRole.js new file mode 100644 index 0000000..d1c1516 --- /dev/null +++ b/src/role/channelRole.js @@ -0,0 +1,99 @@ +const { + channelPermission, + + channelPerfix, + channelNoticePerfix, + channelUserPerfix +} = require('./permission'); + + +/** + * 频道创建人权限 + * @returns + */ +const userChannelCreatorPermissions = function(){ + let returnPermission = []; + + // 频道权限 + returnPermission.push(...Object.values(channelPermission.channel)) + returnPermission.push(...Object.values(channelPermission.channelChat)) + returnPermission.push(...Object.values(channelPermission.channelUser)) + + return returnPermission; +} + +/** + * 频道管理员权限 + * @returns + */ +const userChannelAdminPermissions = function(){ + let returnPermission = []; + + // 频道权限 + const channelKeys = Object.keys(channelPermission.channel).filter((key) => { + return ![ + channelPerfix + "UPDATE_CHANNEL_NAME" + ].includes(key) + }) + channelKeys.forEach((key) => { + returnPermission.push(channelPermission.channel[key]); + }) + + const channelUserKeys = Object.keys(channelPermission.channelUser).filter((key) => { + return ![ + channelUserPerfix + "ADD_CHANNEL_USER_ADMIN", + channelUserPerfix + "ADD_CHANNEL_USER", + channelUserPerfix + "DELETE_CHANNEL_USER", + channelUserPerfix + "UPDATE_CHANNEL_USER_ROLE_ADMIN", + ].includes(key) + }) + channelUserKeys.forEach((key) => { + returnPermission.push(channelPermission.channelUser[key]); + }) + + returnPermission.push(...Object.values(channelPermission.channelChat)) + + return returnPermission; +} + +/** + * 频道普通用户权限 + * @returns + */ +const userChannelNormalPermissions = function(){ + let returnPermission = []; + + // 频道权限 + const channelKeys = Object.keys(channelPermission.channel).filter((key) => { + return ![ + channelPerfix + "UPDATE_CHANNEL_NAME" + ].includes(key) + }) + channelKeys.forEach((key) => { + returnPermission.push(channelPermission.channel[key]); + }) + + const channelUserKeys = Object.keys(channelPermission.channelUser).filter((key) => { + return ![ + channelUserPerfix + "ADD_CHANNEL_USER_ADMIN", + channelUserPerfix + "ADD_CHANNEL_USER", + channelUserPerfix + "DELETE_CHANNEL_USER", + channelUserPerfix + "UPDATE_CHANNEL_USER_ROLE_ADMIN", + channelUserPerfix + "UPDATE_CHANNEL_USER_ROLE_NORMAL", + ].includes(key) + }) + channelUserKeys.forEach((key) => { + returnPermission.push(channelPermission.channelUser[key]); + }) + + returnPermission.push(...Object.values(channelPermission.channelChat)) + + return returnPermission; +} + + +module.exports = { + userChannelCreatorPermissions, + userChannelAdminPermissions, + userChannelNormalPermissions, +} \ No newline at end of file diff --git a/src/role/permission.js b/src/role/permission.js new file mode 100644 index 0000000..6395a03 --- /dev/null +++ b/src/role/permission.js @@ -0,0 +1,256 @@ +/** + * @description 权限配置 + * @module permission + * @auther iamtsm + */ + +// 权限id基数 +const systemPermissionIdBase = 1 +const channelPermissionIdBase = 100000 +const companyPermissionIdBase = 300000 +const userPermissionIdBase = 600000 +const configPermissionIdBase = 700000 + +// key前缀 +const systemPerfix = 'SYSTEM:' +const channelPerfix = 'CHANNEL:' +const channelChatPerfix = 'CHANNEL_CHAT:' +const channelUserPerfix = 'CHANNEL_USER:' +const companyPerfix = 'COMPANY:' +const userPerfix = 'USER:' +const userApplyPerfix = 'USER_APPLY:' +const userFriendPerfix = 'USER_FRIEND:' +const userConfigPerfix = 'USER_CONFIG:' +const userReadPerfix = 'USER_READ:' +const userTagPerfix = 'USER_TAG:' +const userRegisterPerfix = 'USER_REGISTER:' +const userLoginPerfix = 'USER_LOGIN:' +const userLogoutPerfix = 'USER_LOGOUT:' + + +// 补充前缀 +const addPerfix = function(permission, perfix){ + for (let key in permission){ + permission[perfix + key] = permission[key] + delete permission[key] + } +} + +// 系统默认预设权限 1-999999 +let systemPermission = { + +} + +// 频道权限 100000 - 199999 +let channelPermission = { + channel: { // 100000 ~ 100999 + // 添加频道 + ADD_CHANNEL: channelPermissionIdBase + 1, + // 获取频道列表 + GET_CHANNEL_LIST: channelPermissionIdBase + 2, + // 获取频道信息 + GET_CHANNEL_INFO: channelPermissionIdBase + 4, + // 获取频道名称 + GET_CHANNEL_NAME: channelPermissionIdBase + 5, + // 修改频道名称 + UPDATE_CHANNEL_NAME: channelPermissionIdBase + 6, + // 获取频道聊天记录 + GET_CHANNEL_MESSAGE: channelPermissionIdBase + 7, + // 获取频道列表聊天记录 + GET_CHANNEL_MESSAGE_LIST: channelPermissionIdBase + 8, + // 通过频道id获取频道信息 + SEARCH_CHANNEL_BY_ID: channelPermissionIdBase + 10, + // 获取群组频道列表 + GET_GROUP_CHANNEL_LIST: channelPermissionIdBase + 11, + }, + channelChat: { // 101000 ~ 101999 + // 发送好友频道聊天 + ADD_FRIEND_CHANNEL_CHAT: channelPermissionIdBase + 1000, + // 发送多人频道聊天 + ADD_GROUP_CHANNEL_CHAT: channelPermissionIdBase + 1001, + // 回复好友频道聊天 + ADD_REPLY_FRIEND_CHANNEL_CHAT: channelPermissionIdBase + 1002, + // 回复多人频道聊天 + ADD_REPLY_GROUP_CHANNEL_CHAT: channelPermissionIdBase + 1003, + // 撤回聊天消息 + ROLLBACK_CHANNEL_CHAT: channelPermissionIdBase + 1004, + }, + channelUser: { // 105000 ~ 105999 + // 系统管理员添加频道用户 + ADD_CHANNEL_USER: channelPermissionIdBase + 5001, + // 分享加入群聊 + SHARE_JOIN_CHANNEL: channelPermissionIdBase + 5002, + // 添加频道普通身份用户 + ADD_CHANNEL_USER_NORMAL: channelPermissionIdBase + 5003, + // 批量添加频道普通身份用户 + ADD_CHANNEL_USER_LIST_NORMAL: channelPermissionIdBase + 5004, + // 添加频道管理员身份用户 + ADD_CHANNEL_USER_ADMIN: channelPermissionIdBase + 5005, + // 删除频道用户 + DELETE_CHANNEL_USER: channelPermissionIdBase + 5006, + // 更新频道用户角色为管理员 + UPDATE_CHANNEL_USER_ROLE_ADMIN: channelPermissionIdBase + 5007, + // 更新频道用户角色为普通用户 + UPDATE_CHANNEL_USER_ROLE_NORMAL: channelPermissionIdBase + 5008, + // 获取所有频道列表的用户 + GET_CHANNEL_LIST_USER_LIST: channelPermissionIdBase + 5009, + // 获取某个频道的用户列表 + GET_CHANNEL_USER_LIST: channelPermissionIdBase + 5010, + // 修改频道是否置顶 + UPDATE_CHANNEL_TOP: channelPermissionIdBase + 5011, + // 修改频道是否拉黑 + UPDATE_CHANNEL_BLACK: channelPermissionIdBase + 5012, + // 退出频道 + EXIT_CHANNEL: channelPermissionIdBase + 5013, + } +} + +// 企业权限 300000 - 399999 +let companyPermission = { + company: { // 300000 ~ 300999 + // 添加企业 + ADD_COMPANY: companyPermissionIdBase + 1, + // 获取企业 + GET_COMPANY: companyPermissionIdBase + 2, + } +} + +// 用户权限 600000 - 699999 +let userPermission = { + user: { // 600000 ~ 600999 + // 搜索用户 + SEARCH_USER_BY_NAME: userPermissionIdBase + 1, + // 搜索用户通过id + SEARCH_USER_BY_ID: userPermissionIdBase + 2, + // 更新用户头像 + UPDATE_USER_AVATAR: userPermissionIdBase + 3, + // 绑定邮箱 + BIND_EMAIL: userPermissionIdBase + 4 + }, + userApply: { // 601000 ~ 601999 + // 添加好友申请 + ADD_USER_FRIEND_APPLY: userPermissionIdBase + 1000, + // 通过好友申请 + PASS_USER_FRIEND: userPermissionIdBase + 1001, + // 拒绝好友申请 + REJECT_USER_FRIEND: userPermissionIdBase + 1002, + // 获取自己收到的用户好友申请列表 + GET_USER_FRIEND_OTHER_APPLY_LIST: userPermissionIdBase + 1003, + // 获取自己发出的用户好友申请列表 + GET_USER_FRIEND_SELF_APPLY_LIST: userPermissionIdBase + 1004, + }, + userFriend: { // 602000 ~ 602999 + // 删除好友 + DELETE_USER_FRIEND: userPermissionIdBase + 2000, + // 更新好友信息备注 + UPDATE_USER_FRIEND_REMARK: userPermissionIdBase + 2001, + // 更新好友名称备注 + UPDATE_USER_FRIEND_RENAME: userPermissionIdBase + 2002, + // 获取用户好友列表 + GET_USER_FRIEND_LIST: userPermissionIdBase + 2003, + // 关注好友 + UPDATE_USER_FRIEND_SPECIAL: userPermissionIdBase + 2004, + }, + userConfig: { // 603000 ~ 603999 + // 获取用户配置 + GET_USER_CONFIG: userPermissionIdBase + 3000, + // 更新用户通用设置 + UPDATE_USER_CONFIG_NORMAL: userPermissionIdBase + 3001, + // 更新用户皮肤设置 + UPDATE_USER_CONFIG_SKIN: userPermissionIdBase + 3002, + // 更新用户账号设置 + UPDATE_USER_CONFIG_ACCOUNT: userPermissionIdBase + 3003, + // 更新用户消息设置 + UPDATE_USER_CONFIG_MESSAGE: userPermissionIdBase + 3004, + // 更新用户权限设置 + UPDATE_USER_CONFIG_AUTHORITY: userPermissionIdBase + 3005, + // 更新用户其他设置 + UPDATE_USER_CONFIG_OTHER: userPermissionIdBase + 3006, + }, + userRead: { // 604000 ~ 604999 + // 更新频道文件/媒体/聊天消息已读记录 + UPDATE_CHANNEL_MUTIL_READ: userPermissionIdBase + 4000, + // 更新频道聊天消息已读记录 + UPDATE_CHANNEL_CHAT_READ: userPermissionIdBase + 4001, + // 更新频道媒体消息已读记录 + UPDATE_CHANNEL_MEDIA_READ: userPermissionIdBase + 4002, + // 更新频道文件消息已读记录 + UPDATE_CHANNEL_FILE_READ: userPermissionIdBase + 4003, + // 新增申请消息已读记录 + UPDATE_USER_FRIEND_APPLY_READ: userPermissionIdBase + 4004, + // 新增通过申请消息已读记录 + UPDATE_USER_FRIEND_APPLY_PASS_READ: userPermissionIdBase + 4005, + // 新增拒绝申请消息已读记录 + UPDATE_USER_FRIEND_APPLY_REJECT_READ: userPermissionIdBase + 4006, + }, + userTag: { // 605000 ~ 605999 + // 添加频道分组标签 + ADD_CHANNEL_TAG: userPermissionIdBase + 5000, + // 添加好友分组标签 + ADD_FRIEND_TAG: userPermissionIdBase + 5001, + // 添加资源库分组标签 + ADD_CLOUD_TAG: userPermissionIdBase + 5002, + // 获取频道分组标签列表 + GET_CHANNEL_TAG_LIST: userPermissionIdBase + 5003, + // 获取好友分组标签列表 + GET_FRIEND_TAG_LIST: userPermissionIdBase + 5004, + // 获取资源库分组标签列表 + GET_CLOUD_TAG_LIST: userPermissionIdBase + 5005, + // 删除标签 + DELETE_TAG: userPermissionIdBase + 5006, + }, + userRegister: { // 606000 ~ 606999 + + }, + userLogin: { // 607000 ~ 607999 + + }, + userLogout: { // 608000 ~ 608999 + + }, +} + +// 配置权限 700000 - 799999 +const configPermission = { + +} + +addPerfix(channelPermission.channel, channelPerfix) +addPerfix(channelPermission.channelChat, channelChatPerfix) +addPerfix(channelPermission.channelUser, channelUserPerfix) + +addPerfix(companyPermission.company, companyPerfix) + + +addPerfix(userPermission.user, userPerfix) +addPerfix(userPermission.userApply, userApplyPerfix) +addPerfix(userPermission.userFriend, userFriendPerfix) +addPerfix(userPermission.userConfig, userConfigPerfix) +addPerfix(userPermission.userRead, userReadPerfix) +addPerfix(userPermission.userRegister, userRegisterPerfix) +addPerfix(userPermission.userLogin, userLoginPerfix) +addPerfix(userPermission.userLogout, userLogoutPerfix) +addPerfix(userPermission.userTag, userTagPerfix) + + +module.exports = { + systemPermission, + channelPermission, + companyPermission, + userPermission, + configPermission, + + systemPerfix, + channelPerfix, + channelChatPerfix, + companyPerfix, + userPerfix, + userApplyPerfix, + userFriendPerfix, + userConfigPerfix, + userReadPerfix, + userRegisterPerfix, + userLoginPerfix, + userLogoutPerfix, + userTagPerfix, +} \ No newline at end of file diff --git a/src/role/role.js b/src/role/role.js new file mode 100644 index 0000000..1a944cc --- /dev/null +++ b/src/role/role.js @@ -0,0 +1,58 @@ +const { + channelPermission, + userPermission, + companyPermission, + configPermission, +} = require('./permission'); + +const { + userNormalPermissions, + userAdminPermissions, +} = require('./accountRole') + +const { + userChannelCreatorPermissions, + userChannelAdminPermissions, + userChannelNormalPermissions, +} = require('./channelRole') + + + +/** + * 获取所有权限 + * @returns + */ +const getAllPermissionsMap = function(){ + let returnPermissionMap = {}; + + // 频道权限 + returnPermissionMap = Object.assign(returnPermissionMap, channelPermission.channel) + returnPermissionMap = Object.assign(returnPermissionMap, channelPermission.channelChat) + returnPermissionMap = Object.assign(returnPermissionMap, channelPermission.channelUser) + // 企业权限 + returnPermissionMap = Object.assign(returnPermissionMap, companyPermission.company) + // 用户权限 + returnPermissionMap = Object.assign(returnPermissionMap, userPermission.user) + returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userFriend) + returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userApply) + returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userConfig) + returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userRead) + returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userLogin) + returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userLogout) + returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userRegister) + returnPermissionMap = Object.assign(returnPermissionMap, userPermission.userTag) + // 配置权限 + + return returnPermissionMap; +} + + +module.exports = { + userNormalPermissions, + userAdminPermissions, + userChannelCreatorPermissions, + userChannelAdminPermissions, + userChannelNormalPermissions, + + getAllPermissionsMap +} \ No newline at end of file diff --git a/src/service/channel/tl_channel_chat_service.js b/src/service/channel/tl_channel_chat_service.js new file mode 100644 index 0000000..3e1200a --- /dev/null +++ b/src/service/channel/tl_channel_chat_service.js @@ -0,0 +1,1293 @@ +const { Op } = require('sequelize') +const { fields } = require('../../tables/tl_channel_chat') +const TlChannelChatDao = require('../../dao/tl_channel_chat_dao') +const TlChannelChatDef = fields.Def +const TlChannelChatType = fields.Type +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); + + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function({ + companyId, channelId, type, message, flag, + fromUserId, fromUserName, toUserId, toUserName, other, + messageTimeStamp, messageVersion +}){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return {} + } + + if(!messageTimeStamp){ + tlConsoleError(TableName, "请求service参数messageTimeStamp为空") + return {} + } + + if(!messageVersion){ + tlConsoleError(TableName, "请求service参数messageVersion为空") + return {} + } + + if(flag === undefined || flag === null){ + tlConsoleError(TableName, "请求service参数flag为空") + return {} + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return {} + } + + if(![ + TlChannelChatType.SYSTEM, + TlChannelChatType.FRIEND, + TlChannelChatType.GROUP + ].includes(type)){ + tlConsoleError(TableName, "请求service参数type不合法") + return {} + } + + if(!message){ + tlConsoleError(TableName, "请求service参数message为空") + return {} + } + + // 系统消息 + if (type === TlChannelChatType.SYSTEM) { + if(!fromUserName){ + tlConsoleError(TableName, "请求service参数fromUserName为空") + return {} + } + } + + // 好友聊天 + if (type === TlChannelChatType.FRIEND) { + if(!fromUserId){ + tlConsoleError(TableName, "请求service参数fromUserId为空") + return {} + } + + if(!fromUserName){ + tlConsoleError(TableName, "请求service参数fromUserName为空") + return {} + } + + if(!toUserId){ + tlConsoleError(TableName, "请求service参数toUserId为空") + return {} + } + + if(!toUserName){ + tlConsoleError(TableName, "请求service参数toUserName为空") + return {} + } + } + + // 群聊 + if (type === TlChannelChatType.GROUP) { + if(!fromUserId){ + tlConsoleError(TableName, "请求service参数fromUserId为空") + return {} + } + + if(!fromUserName){ + tlConsoleError(TableName, "请求service参数fromUserName为空") + return {} + } + } + + const info = await TlChannelChatDao.addInfo({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.channelId]: channelId, + [TlChannelChatDef.type]: type, + [TlChannelChatDef.message]: message, + [TlChannelChatDef.fromUserId]: fromUserId, + [TlChannelChatDef.fromUserName]: fromUserName, + [TlChannelChatDef.toUserId]: toUserId, + [TlChannelChatDef.toUserName]: toUserName, + [TlChannelChatDef.other]: other, + [TlChannelChatDef.flag]: flag, + [TlChannelChatDef.messageTimeStamp]: messageTimeStamp, + [TlChannelChatDef.messageVersion]: messageVersion + }) + + if(info == null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * addGroupChatInfo 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} message + * @param {*} fromUserId + * @param {*} fromUserName + * @param {*} other + * @param {*} flag + * @param {*} messageTimeStamp + * @param {*} messageVersion + */ +const addGroupChatInfo = async function({ + companyId, channelId, message, fromUserId, fromUserName, + other, flag, messageTimeStamp, messageVersion +}){ + return await addInfo({ + companyId: companyId, + channelId : channelId, + type: TlChannelChatType.GROUP, + message: message, + fromUserId: fromUserId, + fromUserName: fromUserName, + toUserId: 0, + toUserName: '', + other: other, + flag: flag, + messageTimeStamp: messageTimeStamp, + messageVersion: messageVersion + }) +} + +/** + * addFriendChatInfo 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} message + * @param {*} fromUserId + * @param {*} fromUserName + * @param {*} toUserId + * @param {*} toUserName + * @param {*} other + * @param {*} flag + * @param {*} messageTimeStamp + * @param {*} messageVersion + */ +const addFriendChatInfo = async function({ + companyId, channelId, message, fromUserId, fromUserName, + toUserId, toUserName, other, flag, messageTimeStamp, messageVersion +}){ + return await addInfo({ + companyId: companyId, + channelId : channelId, + type: TlChannelChatType.FRIEND, + message: message, + fromUserId: fromUserId, + fromUserName: fromUserName, + toUserId: toUserId, + toUserName: toUserName, + other: other, + flag: flag, + messageTimeStamp: messageTimeStamp, + messageVersion: messageVersion + }) +} + +/** + * addSystemChatnfo 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} message + * @param {*} other + * @param {*} flag + * @param {*} messageTimeStamp + * @param {*} messageVersion + */ +const addSystemChatnfo = async function({ + companyId, channelId, message, other, flag, messageTimeStamp, messageVersion +}){ + return await addInfo({ + companyId: companyId, + channelId : channelId, + type: TlChannelChatType.SYSTEM, + message: message, + fromUserName: '系统消息', + flag: flag, + fromUserId: 0, + toUserId: 0, + toUserName: '', + other: other, + messageTimeStamp: messageTimeStamp, + messageVersion: messageVersion + }) +} + +/** + * getInfoById 接口 + * @param {*} companyId + * @param {*} id + * @param {*} fields + */ +const getInfoById = async function({companyId, id}, fields){ + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlChannelChatDao.getInfo({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.id]: id, + }, fields) + + if(info == null){ + return {} + } + + return info +} + +/** + * getListByChannelId 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} fields + */ +const getListByChannelId = async function({companyId, channelId}, fields){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const list = await TlChannelChatDao.getList({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.channelId]: channelId, + }, fields, [ + [TlChannelChatDef.messageTimeStamp, 'DESC'] + ]) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByChannelIdForPage 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByChannelIdForPage = async function({companyId, channelId}, fields, page, pageSize){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlChannelChatDao.getListForPage({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.channelId]: channelId, + }, fields, [ + [TlChannelChatDef.messageTimeStamp, 'DESC'] + ], page, pageSize) + + if(list == null){ + return [] + } + + return list +} + + +/** + * getListByChannelIdAndMinIdForPage 接口 + * @desc 查看频道历史聊天记录 + * @param {*} companyId + * @param {*} channelId + * @param {*} fields + * @param {*} minId + * @param {*} page + * @param {*} pageSize + */ +const getListByChannelIdAndMinIdForPage = async function({ + companyId, channelId, minId +}, fields, page, pageSize){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!minId){ + tlConsoleError(TableName, "请求service参数minId为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlChannelChatDao.getListForPage({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.channelId]: channelId, + [TlChannelChatDef.id]: { + [Op.lt]: minId + } + }, fields, [ + [TlChannelChatDef.messageTimeStamp, 'DESC'] + ], page, pageSize) + + if(list == null){ + return [] + } + + return list +} + + +/** + * getListByChannelIdAndMinIdTimeRangeForPage 接口 + * @desc 搜索频道聊天记录 + * @param {*} companyId + * @param {*} channelId + * @param {*} fields + * @param {*} minId + * @param {*} startTimeStamp + * @param {*} endTimeStamp + * @param {*} keyword + * @param {*} page + * @param {*} pageSize + */ +const getListByChannelIdAndMinIdTimeRangeForPage = async function({ + companyId, channelId, minId, startTimeStamp, endTimeStamp, keyword +}, fields, page, pageSize){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!minId){ + tlConsoleError(TableName, "请求service参数minId为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + let query = { + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.channelId]: channelId, + [TlChannelChatDef.id]: { + [Op.lte]: minId, + } + } + + if(startTimeStamp && endTimeStamp){ + query[TlChannelChatDef.messageTimeStamp] = { + [Op.between]: [startTimeStamp, endTimeStamp] + } + } + + if(keyword !== '' && keyword !== undefined && keyword !== null){ + query[TlChannelChatDef.message] = { + [Op.like]: `%${keyword}%` + } + } + + const list = await TlChannelChatDao.getListForPage(query, fields, [ + [TlChannelChatDef.messageTimeStamp, 'DESC'] + ], page, pageSize) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByChannelIdAndMaxIdForPage 接口 + * @desc 查看频道最新聊天记录 + * @param {*} companyId + * @param {*} channelId + * @param {*} fields + * @param {*} maxId + * @param {*} page + * @param {*} pageSize + */ +const getListByChannelIdAndMaxIdForPage = async function({ + companyId, channelId, maxId +}, fields, page, pageSize){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!maxId){ + tlConsoleError(TableName, "请求service参数maxId为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlChannelChatDao.getListForPage({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.channelId]: channelId, + [TlChannelChatDef.id]: { + [Op.gte]: maxId + } + }, fields, [ + [TlChannelChatDef.messageTimeStamp, 'DESC'] + ], page, pageSize) + + if(list == null){ + return [] + } + + return list +} + + +/** + * getListByChannelIdList 接口 + * @param {*} companyId + * @param {*} channelIdList + * @param {*} fields + */ +const getListByChannelIdList = async function({companyId, channelIdList}, fields){ + if(!channelIdList){ + tlConsoleError(TableName, "请求service参数channelIdList为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const list = await TlChannelChatDao.getList({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.channelId]: channelIdList, + }, fields, [ + [TlChannelChatDef.messageTimeStamp, 'DESC'] + ]) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByChannelIdListForPage 接口 + * @param {*} companyId + * @param {*} channelIdList + * @param {*} page + * @param {*} pageSize + * @param {*} fields + */ +const getListByChannelIdListForPage = async function({companyId, channelIdList}, fields, page, pageSize){ + if(!channelIdList){ + tlConsoleError(TableName, "请求service参数channelIdList为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlChannelChatDao.getListForPage({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.channelId]: channelIdList, + }, fields, [ + [TlChannelChatDef.messageTimeStamp, 'DESC'] + ], page, pageSize) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByChannelFromUserId 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} fromUserId + * @param {*} fields + */ +const getListByChannelFromUserId = async function({companyId, channelId, fromUserId}, fields){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!fromUserId){ + tlConsoleError(TableName, "请求service参数fromUserId为空") + return [] + } + + const list = await TlChannelChatDao.getList({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.channelId]: channelId, + [TlChannelChatDef.fromUserId]: fromUserId, + }, fields, [ + [TlChannelChatDef.messageTimeStamp, 'DESC'] + ]) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByChannelFromUserIdForPage 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} fromUserId + * @param {*} page + * @param {*} pageSize + * @param {*} fields + */ +const getListByChannelFromUserIdForPage = async function({companyId, channelId, fromUserId}, fields, page, pageSize){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!fromUserId){ + tlConsoleError(TableName, "请求service参数fromUserId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlChannelChatDao.getListForPage({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.channelId]: channelId, + [TlChannelChatDef.fromUserId]: fromUserId, + }, fields, [ + [TlChannelChatDef.messageTimeStamp, 'DESC'] + ], page, pageSize) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByChannelToUserId 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} toUserId + * @param {*} fields + */ +const getListByChannelToUserId = async function({companyId, channelId, toUserId}, fields){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!toUserId){ + tlConsoleError(TableName, "请求service参数toUserId为空") + return [] + } + + const list = await TlChannelChatDao.getList({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.channelId]: channelId, + [TlChannelChatDef.toUserId]: toUserId, + }, fields, [ + [TlChannelChatDef.messageTimeStamp, 'DESC'] + ]) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByChannelToUserIdForPage 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} toUserId + * @param {*} page + * @param {*} pageSize + * @param {*} fields + */ +const getListByChannelToUserIdForPage = async function({companyId, channelId, toUserId}, fields, page, pageSize){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!toUserId){ + tlConsoleError(TableName, "请求service参数toUserId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlChannelChatDao.getListForPage({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.channelId]: channelId, + [TlChannelChatDef.toUserId]: toUserId, + }, fields, [ + [TlChannelChatDef.messageTimeStamp, 'DESC'] + ], page, pageSize) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByCompanyId 接口 + * @param {*} companyId + * @param {*} fields + */ +const getListByCompanyId = async function({companyId}, fields){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const list = await TlChannelChatDao.getList({ + [TlChannelChatDef.companyId]: companyId, + }, fields, [ + [TlChannelChatDef.messageTimeStamp, 'DESC'] + ]) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByCompanyIdForPage 接口 + * @param {*} companyId + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByCompanyIdForPage = async function({companyId}, fields, page, pageSize){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlChannelChatDao.getListForPage({ + [TlChannelChatDef.companyId]: companyId, + }, fields, [ + [TlChannelChatDef.messageTimeStamp, 'DESC'] + ], page, pageSize) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByChannelIdAndIdList 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} idList + * @param {*} fields + */ +const getListByChannelIdAndIdList = async function({companyId, channelId, idList}, fields){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!idList){ + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + const list = await TlChannelChatDao.getList ({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.channelId]: channelId, + [TlChannelChatDef.id]: idList + }, fields) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByChannelIdAndIdListForPage 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} idList + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByChannelIdAndIdListForPage = async function({companyId, channelId, idList}, fields, page, pageSize){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!idList){ + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + const list = await TlChannelChatDao.getListForPage({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.channelId]: channelId, + [TlChannelChatDef.id]: idList + }, fields, [ + [TlChannelChatDef.messageTimeStamp, 'DESC'] + ], page, pageSize) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByIdList 接口 + * @param {*} companyId + * @param {*} idList + * @param {*} fields + */ +const getListByIdList = async function({companyId, idList}, fields){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!idList){ + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + const list = await TlChannelChatDao.getList({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.id]: idList, + }, fields) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByIdListForPage 接口 + * @param {*} companyId + * @param {*} idList + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByIdListForPage = async function({companyId, idList}, fields, page, pageSize){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!idList){ + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + const list = await TlChannelChatDao.getListForPage({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.id]: idList, + }, fields, [ + [TlChannelChatDef.messageTimeStamp, 'DESC'] + ], page, pageSize) + + if(list == null){ + return [] + } + + return list +} + +/** + * updateInfoById 接口 + * @param {*} id + * @param {*} companyId + * @param {*} data + */ +const updateInfoById = async function({id, companyId}, data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求service参数为空") + return {} + } + + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlChannelChatDao.updateInfo({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.id]: id, + }, data) + + if(info == null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * deleteInfoById 接口 + * @param {*} id + * @param {*} companyId + */ +const deleteInfoById = async function({id, companyId}){ + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlChannelChatDao.deleteInfo({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.id]: id, + }) + + if(info == null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * getCountByChannelId 接口 + * @param {*} companyId + * @param {*} channelId + */ +const getCountByChannelId = async function({companyId, channelId}){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return 0 + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return 0 + } + + const count = await TlChannelChatDao.getCount({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.channelId]: channelId, + }) + + if(count == null){ + return 0 + } + + return count +} + +/** + * getCountByChannelIdList 接口 + * @param {*} companyId + * @param {*} channelIdList + */ +const getCountByChannelIdList = async function({companyId, channelIdList}){ + if(!channelIdList){ + tlConsoleError(TableName, "请求service参数channelIdList为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const counts = await TlChannelChatDao.getGroupCount({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.channelId]: channelIdList, + }, TlChannelChatDef.channelId) + + if(counts == null){ + return {} + } + + return counts +} + +/** + * 获取频道聊天最新id + * @param {*} companyId + * @param {*} channelId + * @param {*} fields + */ +const getChannelChatLatestId = async function({companyId, channelId}, fields){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return 0 + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return 0 + } + + const list = await TlChannelChatDao.getListForPage({ + [TlChannelChatDef.companyId]: companyId, + [TlChannelChatDef.channelId]: channelId, + }, fields, [ + [TlChannelChatDef.id, 'DESC'] + ], 1, 1) + + if(list == null || list.length === 0){ + return 0 + } + + const latestId = list[0][TlChannelChatDef.id] + + return latestId +} + +module.exports = { + addInfo, + getInfoById, + getChannelChatLatestId, + updateInfoById, + deleteInfoById, + addSystemChatnfo, + addFriendChatInfo, + addGroupChatInfo, + getCountByChannelId, + getCountByChannelIdList, + + getListByChannelId, + getListByChannelIdForPage, + getListByChannelFromUserId, + getListByChannelFromUserIdForPage, + getListByChannelToUserId, + getListByChannelToUserIdForPage, + getListByCompanyId, + getListByCompanyIdForPage, + getListByChannelIdList, + getListByChannelIdListForPage, + + getListByChannelIdAndMinIdForPage, + getListByChannelIdAndMinIdTimeRangeForPage, + + getListByChannelIdAndMaxIdForPage, + + getListByChannelIdAndIdList, + getListByChannelIdAndIdListForPage, + + getListByIdList, + getListByIdListForPage, +} \ No newline at end of file diff --git a/src/service/channel/tl_channel_service.js b/src/service/channel/tl_channel_service.js new file mode 100644 index 0000000..c427fc4 --- /dev/null +++ b/src/service/channel/tl_channel_service.js @@ -0,0 +1,254 @@ +const { fields } = require('../../tables/tl_channel') +const TlChannelDao = require('../../dao/tl_channel_dao') +const TlChannelDef = fields.Def +const TlChannelType = fields.Type +const TlChannelStatus = fields.Status +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); + + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function({ + companyId, name, type, flag = 0, +}){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!name){ + tlConsoleError(TableName, "请求service参数name为空") + return {} + } + + if(flag == null || flag == undefined){ + tlConsoleError(TableName, "请求service参数flag为空") + return {} + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return {} + } + + if(![ + TlChannelType.GROUP, + TlChannelType.FRIEND, + ].includes(type)){ + tlConsoleError(TableName, "请求service参数type不合法") + return {} + } + + const info = await TlChannelDao.addInfo({ + [TlChannelDef.companyId]: companyId, + [TlChannelDef.name]: name, + [TlChannelDef.type]: type, + [TlChannelDef.flag]: flag, + [TlChannelDef.status]: TlChannelStatus.NORMAL, + }) + + if(info == null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * getInfoById 接口 + * @param {*} companyId + * @param {*} id + */ +const getInfoById = async function({companyId, id}){ + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlChannelDao.getInfo({ + [TlChannelDef.companyId]: companyId, + [TlChannelDef.id]: id, + }) + + if(info == null){ + return {} + } + + return info +} + +/** + * getListByIdList 接口 + * @param {*} companyId + * @param {*} idList + * @param {*} fields + */ +const getListByIdList = async function({companyId, idList}, fields){ + if(!idList){ + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const list = await TlChannelDao.getList({ + [TlChannelDef.companyId]: companyId, + [TlChannelDef.id]: idList + }, fields, [ + [TlChannelDef.createdAt, "DESC"] + ]) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByIdListForPage 接口 + * @param {*} companyId + * @param {*} idList + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByIdListForPage = async function({companyId, idList}, fields, page, pageSize){ + if(!idList){ + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlChannelDao.getListForPage({ + [TlChannelDef.companyId]: companyId, + [TlChannelDef.id]: idList + }, fields, [ + [TlChannelDef.createdAt, "DESC"] + ], page, pageSize) + + if(list == null){ + return [] + } + + return list +} + +/** + * updateInfoById 接口 + * @param {*} companyId + * @param {*} id + * @param {*} data + */ +const updateInfoById = async function({companyId, id}, data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求service参数为空") + return {} + } + + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlChannelDao.updateInfo({ + [TlChannelDef.companyId]: companyId, + [TlChannelDef.id]: id + }, data) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * deleteInfoById 接口 + * @param {*} companyId + * @param {*} id + */ +const deleteInfoById = async function({companyId, id}){ + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlChannelDao.deleteInfo({ + [TlChannelDef.companyId]: companyId, + [TlChannelDef.id]: id + }) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + + +module.exports = { + addInfo, + updateInfoById, + deleteInfoById, + getInfoById, + + getListByIdList, + getListByIdListForPage +} \ No newline at end of file diff --git a/src/service/channel/tl_channel_user_service.js b/src/service/channel/tl_channel_user_service.js new file mode 100644 index 0000000..742506a --- /dev/null +++ b/src/service/channel/tl_channel_user_service.js @@ -0,0 +1,1035 @@ +const { fields } = require('../../tables/tl_channel_user') +const TlChannelUserDao = require('../../dao/tl_channel_user_dao') +const TlChannelUserDef = fields.Def +const TlChannelUserType = fields.Type +const TlChannelUserStatus = fields.Status +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); + + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function({ + companyId, channelId, userId, type, roleId, +}){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return {} + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return {} + } + + if(![ + TlChannelUserType.FRIEND, + TlChannelUserType.GROUP, + ].includes(type)){ + tlConsoleError(TableName, "请求service参数type不合法") + return {} + } + + if(!roleId){ + tlConsoleError(TableName, "请求service参数roleId为空") + return {} + } + + const info = await TlChannelUserDao.addInfo({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.channelId]: channelId, + [TlChannelUserDef.type]: type, + [TlChannelUserDef.flag]: 0, + [TlChannelUserDef.userId]: userId, + [TlChannelUserDef.roleId]: roleId, + [TlChannelUserDef.status]: TlChannelUserStatus.NORMAL, + }) + + if(info == null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * addInfoList 接口 + * @param {*} data + */ +const addInfoList = async function({ + companyId, channelId, userInfoList, +}){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return {} + } + + if(!userInfoList){ + tlConsoleError(TableName, "请求service参数channelId为空") + return {} + } + + for(let i = 0; i < userInfoList.length; i++){ + const userInfo = userInfoList[i] + const { userId, type, roleId } = userInfo; + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return {} + } + + if(![ + TlChannelUserType.FRIEND, + TlChannelUserType.GROUP, + ].includes(type)){ + tlConsoleError(TableName, "请求service参数type不合法") + return {} + } + + if(!roleId){ + tlConsoleError(TableName, "请求service参数roleId为空") + return {} + } + } + + let dataList = [] + for(let i = 0; i < userInfoList.length; i++){ + const userInfo = userInfoList[i] + const { userId, type, roleId } = userInfo; + dataList.push({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.channelId]: channelId, + [TlChannelUserDef.type]: type, + [TlChannelUserDef.flag]: 0, + [TlChannelUserDef.userId]: userId, + [TlChannelUserDef.roleId]: roleId, + [TlChannelUserDef.status]: TlChannelUserStatus.NORMAL, + }) + } + + const list = await TlChannelUserDao.addList(dataList) + + if(list == null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return list +} + + +/** + * getInfoById 接口 + * @param {*} companyId + * @param {*} id + * @param {*} fields + */ +const getInfoById = async function({companyId, id}, fields){ + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlChannelUserDao.getInfo({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.id]: id + }, fields) + + if(info == null) { + return {} + } + + return info +} + +/** + * getListByChannelId 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} fields + */ +const getListByChannelId = async function({companyId, channelId}, fields){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const infoList = await TlChannelUserDao.getList({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.channelId]: channelId + }, fields, [ + [TlChannelUserDef.createdAt, "DESC"] + ]) + + if(infoList == null) { + return [] + } + + return infoList +} + +/** + * getListByChannelIdForPage 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByChannelIdForPage = async function({companyId, channelId}, fields, page, pageSize){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const infoList = await TlChannelUserDao.getListForPage({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.channelId]: channelId + }, fields, [ + [TlChannelUserDef.createdAt, "DESC"] + ], page, pageSize) + + if(infoList == null) { + return [] + } + + return infoList +} + +/** + * getListByUserId 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} fields + */ +const getListByUserId = async function({companyId, userId}, fields){ + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const infoList = await TlChannelUserDao.getList({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.userId]: userId + }, fields, [ + [TlChannelUserDef.createdAt, "DESC"] + ]) + + if(infoList == null) { + return [] + } + + return infoList +} + +/** + * getListByUserIdForPage 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByUserIdForPage = async function({companyId, userId}, fields, page, pageSize){ + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const infoList = await TlChannelUserDao.getListForPage({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.userId]: userId + }, fields, [ + [TlChannelUserDef.createdAt, "DESC"] + ], page, pageSize) + + if(infoList == null) { + return [] + } + + return infoList +} + +/** + * getListByTypeUserIdList 接口 + * @param {*} companyId + * @param {*} type + * @param {*} userIdList + * @param {*} fields + */ +const getListByTypeUserIdList = async function({companyId, type, userIdList}, fields){ + if(!userIdList){ + tlConsoleError(TableName, "请求service参数userIdList为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return [] + } + + const infoList = await TlChannelUserDao.getList({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.type]: type, + [TlChannelUserDef.userId]: userIdList + }, fields, [ + [TlChannelUserDef.createdAt, "DESC"] + ]) + + if(infoList == null) { + return [] + } + + return infoList +} + +/** + * getListByTypeUserIdListForPage 接口 + * @param {*} companyId + * @param {*} type + * @param {*} userIdList + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByTypeUserIdListForPage = async function({companyId, type, userIdList}, fields, page, pageSize){ + if(!userIdList){ + tlConsoleError(TableName, "请求service参数userIdList为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const infoList = await TlChannelUserDao.getListForPage({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.type]: type, + [TlChannelUserDef.userId]: userIdList + }, fields, [ + [TlChannelUserDef.createdAt, "DESC"] + ], page, pageSize) + + if(infoList == null) { + return [] + } + + return infoList +} + +/** + * getListByTypeUserId 接口 + * @param {*} companyId + * @param {*} type + * @param {*} userId + * @param {*} fields + */ +const getListByTypeUserId = async function({companyId, type, userId}, fields){ + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return [] + } + + const infoList = await TlChannelUserDao.getList({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.type]: type, + [TlChannelUserDef.userId]: userId + }, fields, [ + [TlChannelUserDef.createdAt, "DESC"] + ]) + + if(infoList == null) { + return [] + } + + return infoList +} + +/** + * getListByTypeUserIdForPage 接口 + * @param {*} companyId + * @param {*} type + * @param {*} userId + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByTypeUserIdForPage = async function({companyId, type, userId}, fields, page, pageSize){ + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const infoList = await TlChannelUserDao.getListForPage({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.type]: type, + [TlChannelUserDef.userId]: userId + }, fields, [ + [TlChannelUserDef.createdAt, "DESC"] + ], page, pageSize) + + if(infoList == null) { + return [] + } + + return infoList +} + +/** + * getListByChannelUserIdList 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} userIdList + * @param {*} fields + */ +const getListByChannelUserIdList = async function({companyId, channelId, userIdList}, fields){ + if(!userIdList){ + tlConsoleError(TableName, "请求service参数userIdList为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + const infoList = await TlChannelUserDao.getList({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.channelId]: channelId, + [TlChannelUserDef.userId]: userIdList + }, fields, [ + [TlChannelUserDef.createdAt, "DESC"] + ]) + + if(infoList == null) { + return [] + } + + return infoList +} + +/** + * getListByChannelUserIdListForPage 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} userIdList + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByChannelUserIdListForPage = async function({companyId, channelId, userIdList}, fields, page, pageSize){ + if(!userIdList){ + tlConsoleError(TableName, "请求service参数userIdList为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const infoList = await TlChannelUserDao.getListForPage({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.channelId]: channelId, + [TlChannelUserDef.userId]: userIdList + }, fields, [ + [TlChannelUserDef.createdAt, "DESC"] + ], page, pageSize) + + if(infoList == null) { + return [] + } + + return infoList +} + +/** + * getListByTypeChannelIdList 接口 + * @param {*} companyId + * @param {*} type + * @param {*} channelIdList + * @param {*} fields + */ +const getListByTypeChannelIdList = async function({companyId, type, channelIdList}, fields){ + if(!channelIdList){ + tlConsoleError(TableName, "请求service参数channelIdList为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return [] + } + + const infoList = await TlChannelUserDao.getList({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.type]: type, + [TlChannelUserDef.channelId]: channelIdList + }, fields, [ + [TlChannelUserDef.createdAt, "DESC"] + ]) + + if(infoList == null) { + return [] + } + + return infoList +} + +/** + * getListByTypeChannelIdListForPage 接口 + * @param {*} companyId + * @param {*} type + * @param {*} channelIdList + * @param {*} fields + */ +const getListByTypeChannelIdListForPage = async function({companyId, type, channelIdList}, fields, page, pageSize){ + if(!channelIdList){ + tlConsoleError(TableName, "请求service参数channelIdList为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const infoList = await TlChannelUserDao.getListForPage({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.type]: type, + [TlChannelUserDef.channelId]: channelIdList + }, fields, [ + [TlChannelUserDef.createdAt, "DESC"] + ], page, pageSize) + + if(infoList == null) { + return [] + } + + return infoList +} + +/** + * updateInfoById 接口 + * @param {*} companyId + * @param {*} id + * @param {*} data + */ +const updateInfoById = async function({companyId, id}, data){ + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求service参数data为空") + return {} + } + + const info = await TlChannelUserDao.updateInfo({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.id]: id + }, data) + + if(info == null) { + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * deleteInfoById 接口 + * @param {*} companyId + * @param {*} id + */ +const deleteInfoById = async function({companyId, id}){ + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlChannelUserDao.deleteInfo({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.id]: id + }) + + if(info == null) { + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * getCountByChannelId 接口 + * @param {*} companyId + * @param {*} channelId + */ +const getCountByChannelId = async function({companyId, channelId}){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return 0 + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return 0 + } + + const count = await TlChannelUserDao.getCount({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.channelId]: channelId + }) + + if(count == null) { + return 0 + } + + return count +} + +/** + * getCountByChannelIdList 接口 + * @param {*} companyId + * @param {*} channelIdList + */ +const getCountByChannelIdList = async function({companyId, channelIdList}){ + if(!channelIdList){ + tlConsoleError(TableName, "请求service参数channelIdList为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const counts = await TlChannelUserDao.getGroupCount({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.channelId]: channelIdList + }, TlChannelUserDef.channelId) + + if(counts == null) { + return {} + } + + return counts +} + +/** + * getListByChannelIdList 接口 + * @param {*} companyId + * @param {*} channelIdList + * @param {*} fields + */ +const getListByChannelIdList = async function({companyId, channelIdList}, fields){ + if(!channelIdList){ + tlConsoleError(TableName, "请求service参数channelIdList为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const infoList = await TlChannelUserDao.getList({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.channelId]: channelIdList + }, fields, [ + [TlChannelUserDef.createdAt, "DESC"] + ]) + + if(infoList == null) { + return [] + } + + return infoList +} + +/** + * getListByChannelIdListForPage 接口 + * @param {*} companyId + * @param {*} channelIdList + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByChannelIdListForPage = async function({companyId, channelIdList}, fields, page, pageSize){ + if(!channelIdList){ + tlConsoleError(TableName, "请求service参数channelIdList为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const infoList = await TlChannelUserDao.getListForPage({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.channelId]: channelIdList + }, fields, [ + [TlChannelUserDef.createdAt, "DESC"] + ], page, pageSize) + + if(infoList == null) { + return [] + } + + return infoList +} + +/** + * getInfoByChannelIdAndUserId 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} userId + * @returns + */ +const getInfoByChannelIdAndUserId = async function({companyId, channelId, userId}){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + const info = await TlChannelUserDao.getInfo({ + [TlChannelUserDef.companyId]: companyId, + [TlChannelUserDef.channelId]: channelId, + [TlChannelUserDef.userId]: userId + }) + + if(info == null) { + return {} + } + + return info +} + + + + +module.exports = { + addInfo, + addInfoList, + updateInfoById, + deleteInfoById, + getInfoById, + getInfoByChannelIdAndUserId, + getCountByChannelId, + getCountByChannelIdList, + + getListByChannelId, + getListByChannelIdForPage, + getListByUserId, + getListByUserIdForPage, + getListByChannelUserIdList, + getListByChannelUserIdListForPage, + getListByChannelIdList, + getListByChannelIdListForPage, + getListByTypeUserIdList, + getListByTypeUserIdListForPage, + getListByTypeUserId, + getListByTypeUserIdForPage, + getListByTypeChannelIdList, + getListByTypeChannelIdListForPage, +} \ No newline at end of file diff --git a/src/service/company/tl_company_service.js b/src/service/company/tl_company_service.js new file mode 100644 index 0000000..e2e53b0 --- /dev/null +++ b/src/service/company/tl_company_service.js @@ -0,0 +1,267 @@ +const { fields } = require('../../tables/tl_company') +const TlCompanyDao = require('../../dao/tl_company_dao') +const TlCompanyDef = fields.Def +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); + + +/** + * 添加角色 + * @param {*} data + */ +const addInfo = async function ({ + name, address, phone, email, website, logo, description, code +}) { + // 参数校验 + if (!name) { + tlConsoleError(TableName, "请求service参数name为空") + return {} + } + + if (!address) { + tlConsoleError(TableName, "请求service参数address为空") + return {} + } + + if (!phone) { + tlConsoleError(TableName, "请求service参数phone为空") + return {} + } + + if (!email) { + tlConsoleError(TableName, "请求service参数email为空") + return {} + } + + if (!website) { + tlConsoleError(TableName, "请求service参数website为空") + return {} + } + + if (!logo) { + tlConsoleError(TableName, "请求service参数logo为空") + return {} + } + + if (!description) { + tlConsoleError(TableName, "请求service参数description为空") + return {} + } + + const info = await TlCompanyDao.addInfo({ + [TlCompanyDef.name]: name, + [TlCompanyDef.address]: address, + [TlCompanyDef.phone]: phone, + [TlCompanyDef.email]: email, + [TlCompanyDef.website]: website, + [TlCompanyDef.logo]: logo, + [TlCompanyDef.code]: code, + [TlCompanyDef.description]: description + }); + + if (info === null) { + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * 删除企业 + * @param {*} id + */ +const deleteInfoById = async function ({ id }) { + // 参数校验 + if (!id) { + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlCompanyDao.deleteInfo({ + [TlCompanyDef.id]: id + }); + + if (info === null) { + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * 更新企业 + * @param {*} data + * @param {*} id + */ +const updateInfoById = async function ({ id }, data) { + // 参数校验 + if (Object.keys(data).length === 0) { + tlConsoleError(TableName, "请求service参数为空") + return {} + } + + if (!id) { + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlCompanyDao.updateInfo({ + [TlCompanyDef.id]: id + }, data); + + if (info === null) { + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * 获取企业列表 + * @param {*} fields + */ +const getList = async function ({ }, fields) { + const infoList = await TlCompanyDao.getList({ + + }, fields, [ + [TlCompanyDef.createdAt, "DESC"] + ]); + + if (infoList === null) { + return [] + } + + return infoList +} + +/** + * 获取企业列表 + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function ({ }, fields, page, pageSize) { + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const infoList = await TlCompanyDao.getListForPage({ + + }, fields, [ + [TlCompanyDef.createdAt, "DESC"] + ], page, pageSize); + + if (infoList === null) { + return [] + } + + return infoList +} + +/** + * 获取企业信息 + * @param {*} id + * @param {*} fields + */ +const getInfoById = async function ({ id }, fields) { + // 参数校验 + if (!id) { + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlCompanyDao.getInfo({ + [TlCompanyDef.id]: id + }, fields) + + if (info === null) { + return {} + } + + return info +} + +/** + * 获取企业信息 + * @param {*} name + * @param {*} fields + */ +const getInfoByName = async function ({ name }, fields) { + // 参数校验 + if (!name) { + tlConsoleError(TableName, "请求service参数name为空") + return {} + } + + const info = await TlCompanyDao.getInfo({ + [TlCompanyDef.name]: name + }, fields) + + if (info === null) { + return {} + } + + return info +} + +/** + * 通过企业编码获取企业信息 + * @param {*} code + * @param {*} fields + * @returns + */ +const getInfoByCode = async function ({ code }, fields) { + // 参数校验 + if (!code) { + tlConsoleError(TableName, "请求service参数code为空") + return {} + } + + const info = await TlCompanyDao.getInfo({ + [TlCompanyDef.code]: code + }, fields) + + if (info === null) { + return {} + } + + return info +} + + +module.exports = { + addInfo, + deleteInfoById, + updateInfoById, + getInfoById, + getInfoByName, + getInfoByCode, + + getList, + getListForPage +} \ No newline at end of file diff --git a/src/service/role/tl_role_service.js b/src/service/role/tl_role_service.js new file mode 100644 index 0000000..97d29ce --- /dev/null +++ b/src/service/role/tl_role_service.js @@ -0,0 +1,344 @@ +const { fields } = require('../../tables/tl_role') +const TlRoleDao = require('../../dao/tl_role_dao') +const TlRoleDef = fields.Def +const TlRoleType = fields.Type +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); + + +/** + * 添加角色 + * @param {*} data + */ +const addInfo = async function({ + companyId, name, key, permissionIdList, description, flag, type +}){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!key){ + tlConsoleError(TableName, "请求service参数key为空") + return {} + } + + if(!name){ + tlConsoleError(TableName, "请求service参数name为空") + return {} + } + + if(!permissionIdList){ + tlConsoleError(TableName, "请求service参数permissionIdList为空") + return {} + } + + if(!description){ + tlConsoleError(TableName, "请求service参数description为空") + return {} + } + + if(flag === undefined || flag === null){ + tlConsoleError(TableName, "请求service参数flag为空") + return {} + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return {} + } + + if(![ + TlRoleType.ADMIN_USER, + TlRoleType.NORMAL_USER, + TlRoleType.TEST_USER, + TlRoleType.CHANNEL_NORMAL_USER, + TlRoleType.CHANNEL_ADMIN_USER, + TlRoleType.CHANNEL_CREATOR_USER, + ].includes(type)){ + tlConsoleError(TableName, "请求service参数type不合法") + return {} + } + + const exist = await TlRoleDao.getInfo({ + [TlRoleDef.companyId]: companyId, + [TlRoleDef.type]: type, + [TlRoleDef.name]: name + }) + + if(exist !== null){ + tlConsoleError(TableName, type + ' 类型下' + "角色名称已存在") + return {} + } + + const info = await TlRoleDao.addInfo({ + [TlRoleDef.companyId]: companyId, + [TlRoleDef.name]: name, + [TlRoleDef.type]: type, + [TlRoleDef.permissionIdList]: permissionIdList, + [TlRoleDef.key]: key, + [TlRoleDef.description]: description, + [TlRoleDef.flag]: flag + }) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * 删除角色 + * @param {*} id + * @param {*} companyId + */ +const deleteInfoById = async function({companyId, id}){ + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlRoleDao.deleteInfo({ + [TlRoleDef.companyId]: companyId, + [TlRoleDef.id]: id + }) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * 更新角色 + * @param {*} data + * @param {*} companyId + * @param {*} id + */ +const updateInfoById = async function({companyId, id}, data){ + // 参数校验 + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求service参数为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlRoleDao.updateInfo({ + [TlRoleDef.companyId]: companyId, + [TlRoleDef.id]: id + }, data) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * 获取角色列表 + * @param {*} companyId + * @param {*} fields + */ +const getList = async function({companyId}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const infoList = await TlRoleDao.getList({ + [TlRoleDef.companyId]: companyId + }, fields, [ + [TlRoleDef.createdAt, "DESC"] + ]) + + if(infoList === null){ + return [] + } + + return infoList +} + +/** + * 获取角色列表 + * @param {*} companyId + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function({companyId}, fields, page, pageSize){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const infoList = await TlRoleDao.getListForPage({ + [TlRoleDef.companyId]: companyId + }, fields, [ + [TlRoleDef.createdAt, "DESC"] + ], page, pageSize) + + if(infoList === null){ + return [] + } + + return infoList +} + +/** + * 获取角色信息 + * @param {*} companyId + * @param {*} id + * @param {*} fields + */ +const getInfoById = async function({companyId, id}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlRoleDao.getInfo({ + [TlRoleDef.companyId]: companyId, + [TlRoleDef.id]: id + }, fields) + + if(info === null){ + return {} + } + + return info +} + +/** + * 通过名称获取角色信息 + * @param {*} companyId + * @param {*} name + * @param {*} fields + */ +const getListByName = async function({companyId, name}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!name){ + tlConsoleError(TableName, "请求service参数name为空") + return [] + } + + const list = await TlRoleDao.getList({ + [TlRoleDef.companyId]: companyId, + [TlRoleDef.name]: name + }, fields) + + if(list === null){ + return [] + } + + return list +} + + +/** + * 获取角色信息 + * @param {*} companyId + * @param {*} name + * @param {*} fields + */ +const getInfoByTypeAndName = async function({companyId, type, name}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!name){ + tlConsoleError(TableName, "请求service参数name为空") + return {} + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return {} + } + + const info = await TlRoleDao.getInfo({ + [TlRoleDef.companyId]: companyId, + [TlRoleDef.name]: name, + [TlRoleDef.type]: type + }, fields) + + if(info === null){ + return {} + } + + return info +} + +module.exports = { + addInfo, + deleteInfoById, + updateInfoById, + getInfoById, + getInfoByTypeAndName, + + getList, + getListForPage, + getListByName, +} \ No newline at end of file diff --git a/src/service/user/tl_user_apply_service.js b/src/service/user/tl_user_apply_service.js new file mode 100644 index 0000000..c801984 --- /dev/null +++ b/src/service/user/tl_user_apply_service.js @@ -0,0 +1,695 @@ +const { fields } = require('../../tables/tl_user_apply') +const TlUserApplyDao = require('../../dao/tl_user_apply_dao') +const TlUserApplyDef = fields.Def +const TlUserApplyStatus = fields.Status +const TlUserApplyType = fields.Type +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function({ + companyId, userId, targetId, type, origin, remark, status, flag = 0 +}){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + if(!targetId){ + tlConsoleError(TableName, "请求service参数targetId为空") + return {} + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return {} + } + + if(![ + TlUserApplyType.FRIEND, + TlUserApplyType.GROUP, + ].includes(type)){ + tlConsoleError(TableName, "请求service参数type不合法") + return {} + } + + if(!status){ + tlConsoleError(TableName, "请求service参数status为空") + return {} + } + + if(![ + TlUserApplyStatus.BLACK, + TlUserApplyStatus.PASS, + TlUserApplyStatus.REJECT, + TlUserApplyStatus.WAIT, + ].includes(status)){ + tlConsoleError(TableName, "请求service参数status不合法") + return {} + } + + if(!origin){ + tlConsoleError(TableName, "请求service参数origin为空") + return {} + } + + if(flag === null || flag === undefined){ + tlConsoleError(TableName, "请求service参数flag为空") + return {} + } + + const info = await TlUserApplyDao.addInfo({ + [TlUserApplyDef.companyId]: companyId, + [TlUserApplyDef.userId]: userId, + [TlUserApplyDef.targetId]: targetId, + [TlUserApplyDef.type]: type, + [TlUserApplyDef.status]: status, + [TlUserApplyDef.origin]: origin, + [TlUserApplyDef.remark]: remark, + [TlUserApplyDef.flag]: flag + }) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * getInfoById 接口 + * @param {*} companyId + * @param {*} id + * @param {*} fields + */ +const getInfoById = async function({companyId, id}, fields){ + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlUserApplyDao.getInfo({ + [TlUserApplyDef.companyId]: companyId, + [TlUserApplyDef.id]: id + }, fields) + + if(info === null){ + return {} + } + + return info +} + +/** + * getInfoByUserId 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} fields + * @returns + */ +const getListByUserId = async function({companyId, userId}, fields){ + // 参数校验 + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const list = await TlUserApplyDao.getList({ + [TlUserApplyDef.companyId]: companyId, + [TlUserApplyDef.userId]: userId + }, fields, [ + [TlUserApplyDef.createdAt, 'DESC'] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * getInfoByUserId 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} fields + * @param {*} page + * @param {*} pageSize + * @returns + */ +const getListByUserIdForPage = async function({companyId, userId}, fields, page, pageSize){ + // 参数校验 + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserApplyDao.getListForPage({ + [TlUserApplyDef.companyId]: companyId, + [TlUserApplyDef.userId]: userId + }, fields, [ + [TlUserApplyDef.createdAt, 'DESC'] + ], page, pageSize) + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByUserIdAndType 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} type + * @param {*} fields + * @returns + */ +const getListByUserIdAndType = async function({companyId, userId, type}, fields){ + // 参数校验 + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return [] + } + + const list = await TlUserApplyDao.getList({ + [TlUserApplyDef.companyId]: companyId, + [TlUserApplyDef.userId]: userId, + [TlUserApplyDef.type]: type + }, fields, [ + [TlUserApplyDef.createdAt, 'DESC'] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByUserIdAndType 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} type + * @param {*} fields + * @param {*} page + * @param {*} pageSize + * @returns + */ +const getListByUserIdAndTypeForPage = async function({companyId, userId, type}, fields, page, pageSize){ + // 参数校验 + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return [] + } + + const list = await TlUserApplyDao.getList({ + [TlUserApplyDef.companyId]: companyId, + [TlUserApplyDef.userId]: userId, + [TlUserApplyDef.type]: type + }, fields, [ + [TlUserApplyDef.createdAt, 'DESC'] + ], page, pageSize) + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByUserIdAndTargetIdAndStatuAndType 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} type + * @param {*} status + * @param {*} targetId + * @param {*} fields + * @returns + */ +const getListByUserIdAndTargetIdAndStatuAndType = async function({companyId, userId, targetId, status, type}, fields){ + // 参数校验 + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return [] + } + + if(!status){ + tlConsoleError(TableName, "请求service参数status为空") + return [] + } + + if(!targetId){ + tlConsoleError(TableName, "请求service参数targetId为空") + return [] + } + + const list = await TlUserApplyDao.getList({ + [TlUserApplyDef.companyId]: companyId, + [TlUserApplyDef.userId]: userId, + [TlUserApplyDef.targetId]: targetId, + [TlUserApplyDef.status]: status, + [TlUserApplyDef.type]: type + }, fields, [ + [TlUserApplyDef.createdAt, 'DESC'] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByUserIdAndTargetIdAndStatuAndTypeForPage 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} type + * @param {*} status + * @param {*} targetId + * @param {*} fields + * @param {*} page + * @param {*} pageSize + * @returns + */ +const getListByUserIdAndTargetIdAndStatuAndTypeForPage = async function({ + companyId, userId, targetId, status, type +}, fields, page, pageSize){ + // 参数校验 + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return [] + } + + if(!status){ + tlConsoleError(TableName, "请求service参数status为空") + return [] + } + + if(!targetId){ + tlConsoleError(TableName, "请求service参数targetId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserApplyDao.getListForPage({ + [TlUserApplyDef.companyId]: companyId, + [TlUserApplyDef.userId]: userId, + [TlUserApplyDef.targetId]: targetId, + [TlUserApplyDef.status]: status, + [TlUserApplyDef.type]: type + }, fields, [ + [TlUserApplyDef.createdAt, 'DESC'] + ], page, pageSize) + + if(list === null){ + return [] + } + + return list +} + + +/** + * getListByTargetIdAndType 接口 + * @param {*} companyId + * @param {*} targetId + * @param {*} type + * @param {*} fields + * @returns + */ +const getListByTargetIdAndType = async function({companyId, targetId, type}, fields){ + // 参数校验 + if(!targetId){ + tlConsoleError(TableName, "请求service参数targetId为空") + return [] + } + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const list = await TlUserApplyDao.getList({ + [TlUserApplyDef.companyId]: companyId, + [TlUserApplyDef.targetId]: targetId, + [TlUserApplyDef.type]: type + }, fields, [ + [TlUserApplyDef.createdAt, 'DESC'] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByTargetIdAndTypeForPage 接口 + * @param {*} companyId + * @param {*} targetId + * @param {*} type + * @param {*} fields + * @param {*} page + * @param {*} pageSize + * @returns + */ +const getListByTargetIdAndTypeForPage = async function({companyId, targetId, type}, fields, page, pageSize){ + // 参数校验 + if(!targetId){ + tlConsoleError(TableName, "请求service参数targetId为空") + return [] + } + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserApplyDao.getListForPage({ + [TlUserApplyDef.companyId]: companyId, + [TlUserApplyDef.targetId]: targetId, + [TlUserApplyDef.type]: type + }, fields, [ + [TlUserApplyDef.createdAt, 'DESC'] + ], page, pageSize) + + if(list === null){ + return [] + } + + return list +} + +/** + * updateInfoById 接口 + * @param {*} companyId + * @param {*} id + * @param {*} data + */ +const updateInfoById = async function({companyId, id}, data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求service参数为空") + return {} + } + + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlUserApplyDao.updateInfo({ + [TlUserApplyDef.companyId]: companyId, + [TlUserApplyDef.id]: id + }, data) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * deleteInfoById 接口 + * @param {*} companyId + * @param {*} id + */ +const deleteInfoById = async function({companyId, id}){ + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlUserApplyDao.deleteInfo({ + [TlUserApplyDef.companyId]: companyId, + [TlUserApplyDef.id]: id + }) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * getListByIdList 接口 + * @param {*} companyId + * @param {*} idList + * @param {*} fields + */ +const getListByIdList = async function({companyId, idList}, fields){ + // 参数校验 + if(!idList){ + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const list = await TlUserApplyDao.getList({ + [TlUserApplyDef.companyId]: companyId, + [TlUserApplyDef.id]: idList + }, fields, [ + [TlUserApplyDef.createdAt, 'DESC'] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByIdListForPage 接口 + * @param {*} companyId + * @param {*} idList + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByIdListForPage = async function({companyId, idList}, fields, page, pageSize){ + // 参数校验 + if(!idList){ + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserApplyDao.getListForPage({ + [TlUserApplyDef.companyId]: companyId, + [TlUserApplyDef.id]: idList + }, fields, [ + [TlUserApplyDef.createdAt, 'DESC'] + ], page, pageSize) + + if(list === null){ + return [] + } + + return list +} + + +module.exports = { + addInfo, + updateInfoById, + deleteInfoById, + getInfoById, + + getListByIdList, + getListByIdListForPage, + getListByUserId, + getListByUserIdForPage, + getListByTargetIdAndType, + getListByTargetIdAndTypeForPage, + getListByUserIdAndType, + getListByUserIdAndTypeForPage, + getListByUserIdAndTargetIdAndStatuAndType, + getListByUserIdAndTargetIdAndStatuAndTypeForPage +} \ No newline at end of file diff --git a/src/service/user/tl_user_auth_service.js b/src/service/user/tl_user_auth_service.js new file mode 100644 index 0000000..0dae510 --- /dev/null +++ b/src/service/user/tl_user_auth_service.js @@ -0,0 +1,332 @@ +const { Op } = require('sequelize') +const moment = require('moment') +const { fields } = require('../../tables/tl_user_auth') +const TlUserAuthDao = require('../../dao/tl_user_auth_dao') +const TlUserAuthDef = fields.Def +const TlUserAuthType = fields.Type +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole } = require("../../utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function({ + key, type, code +}){ + // 参数校验 + if(!key){ + tlConsoleError(TableName, "请求service参数key为空") + return {} + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return {} + } + + if(![ + TlUserAuthType.EMAIL_REGISTER_CODE, + TlUserAuthType.PHONE_LOGIN_CODE, + TlUserAuthType.PHONE_REGISTER_CODE, + ].includes(type)){ + tlConsoleError(TableName, "请求service参数type不合法") + return {} + } + + if(!code){ + tlConsoleError(TableName, "请求service参数code为空") + return {} + } + + const info = await TlUserAuthDao.addInfo({ + [TlUserAuthDef.key]: key, + [TlUserAuthDef.type]: type, + [TlUserAuthDef.code]: code + }) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * getInfoById 接口 + * @param {*} id + * @param {*} fields + */ +const getInfoById = async function({id}, fields){ + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlUserAuthDao.getInfo({ + [TlUserAuthDef.id]: id + }, fields) + + if(info === null){ + return {} + } + + return info +} + +/** + * updateInfoById 接口 + * @param {*} id + * @param {*} data + */ +const updateInfoById = async function({id}, data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求service参数为空") + return {} + } + + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlUserAuthDao.updateInfo({ + [TlUserAuthDef.id]: id + }, data) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * deleteInfoById 接口 + * @param {*} id + */ +const deleteInfoById = async function({id}){ + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlUserAuthDao.deleteInfo({ + [TlUserAuthDef.id]: id + }) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * getListByIdList 接口 + * @param {*} idList + * @param {*} fields + */ +const getListByIdList = async function({idList}, fields){ + // 参数校验 + if(!idList){ + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + const list = await TlUserAuthDao.getList({ + [TlUserAuthDef.id]: idList + }, fields, [ + [TlUserAuthDef.createdAt, 'DESC'] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByIdListForPage 接口 + * @param {*} idList + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByIdListForPage = async function({idList}, fields, page, pageSize){ + // 参数校验 + if(!idList){ + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserAuthDao.getListForPage({ + [TlUserAuthDef.id]: idList + }, fields, [ + [TlUserAuthDef.createdAt, 'DESC'] + ], page, pageSize) + + if(list === null){ + return [] + } + + return list +} + +/** + * getCountByKey 接口 + * @param {*} key + */ +const getCountByKey = async function({key}){ + // 参数校验 + if(!key){ + tlConsoleError(TableName, "请求service参数key为空") + return 0 + } + + const count = await TlUserAuthDao.getCount({ + [TlUserAuthDef.key]: key + }) + + if(count === null){ + return 0 + } + + return count +} + +/** + * getDayCountByType 接口 + * @param {*} type + */ +const getDayCountByType = async function({type}){ + // 参数校验 + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return 0 + } + + const count = await TlUserAuthDao.getCount({ + [TlUserAuthDef.type]: type, + [TlUserAuthDef.createdAt]: { + [Op.gte]: moment().startOf('day').format('YYYY-MM-DD HH:mm:ss'), + [Op.lte]: moment().endOf('day').format('YYYY-MM-DD HH:mm:ss') + } + }) + + if(count === null){ + return 0 + } + + return count +} + +/** + * getCountByTypeAndKey 接口 + * @param {*} type + * @param {*} key + */ +const getCountByTypeAndKey = async function({type, key}){ + // 参数校验 + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return 0 + } + + if(!key){ + tlConsoleError(TableName, "请求service参数key为空") + return 0 + } + + const count = await TlUserAuthDao.getCount({ + [TlUserAuthDef.type]: type, + [TlUserAuthDef.key]: key + }) + + if(count === null){ + return 0 + } + + return count +} + +/** + * getDayCountByTypeAndKey 接口 + * @param {*} type + * @param {*} key + */ +const getDayCountByTypeAndKey = async function({type, key}){ + // 参数校验 + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return 0 + } + + if(!key){ + tlConsoleError(TableName, "请求service参数key为空") + return 0 + } + + const count = await TlUserAuthDao.getCount({ + [TlUserAuthDef.type]: type, + [TlUserAuthDef.key]: key, + [TlUserAuthDef.createdAt]: { + [Op.gte]: moment().startOf('day').format('YYYY-MM-DD HH:mm:ss'), + [Op.lte]: moment().endOf('day').format('YYYY-MM-DD HH:mm:ss') + } + }) + + if(count === null){ + return 0 + } + + return count +} + + +module.exports = { + addInfo, + updateInfoById, + deleteInfoById, + getInfoById, + getCountByKey, + getCountByTypeAndKey, + getDayCountByTypeAndKey, + getDayCountByType, + + getListByIdList, + getListByIdListForPage +} \ No newline at end of file diff --git a/src/service/user/tl_user_config_service.js b/src/service/user/tl_user_config_service.js new file mode 100644 index 0000000..5107982 --- /dev/null +++ b/src/service/user/tl_user_config_service.js @@ -0,0 +1,373 @@ +const { fields } = require('../../tables/tl_user_config') +const TlUserConfigDao = require('../../dao/tl_user_config_dao') +const TlUserConfigDef = fields.Def +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); + + +/** + * 添加用户配置 + * @param {*} data + */ +const addInfo = async function({ + companyId, userId, normal, account, message, skin, authority, other, +}){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + if(!normal){ + tlConsoleError(TableName, "请求service参数normal为空") + return {} + } + + if(!account){ + tlConsoleError(TableName, "请求service参数account为空") + return {} + } + + if(!message){ + tlConsoleError(TableName, "请求service参数message为空") + return {} + } + + if(!skin){ + tlConsoleError(TableName, "请求service参数skin为空") + return {} + } + + if(!authority){ + tlConsoleError(TableName, "请求service参数authority为空") + return {} + } + + if(!other){ + tlConsoleError(TableName, "请求service参数other为空") + return {} + } + + const exist = await TlUserConfigDao.getInfo({ + [TlUserConfigDef.companyId]: companyId, + [TlUserConfigDef.userId]: userId + }) + + if(exist !== null){ + tlConsoleError(TableName, "用户配置已存在") + return {} + } + + const info = await TlUserConfigDao.addInfo({ + [TlUserConfigDef.companyId]: companyId, + [TlUserConfigDef.userId]: userId, + [TlUserConfigDef.normal]: normal, + [TlUserConfigDef.account]: account, + [TlUserConfigDef.message]: message, + [TlUserConfigDef.skin]: skin, + [TlUserConfigDef.authority]: authority, + [TlUserConfigDef.other]: other + }) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * 添加默认用户配置 + * @param {*} companyId + * @param {*} userId + */ +const addDefaultInfo = async function({companyId, userId}){ + return await addInfo({ + companyId: companyId, + userId: userId, + normal: JSON.stringify({ + windowSizeDefault: false, + windowSizeFull: false, + fontSize: '小', + sidebarChannelOpen: true, + sidebarContactOpen: true, + sidebarCloudOpen: true, + sidebarSettingOpen: true, + sidebarMeetingOpen: true, + sidebarP2pChannelOpen: true, + sidebarCutPasteOpen: true, + sidebarDatesOpen: true, + sidebarDocumentOpen: true, + homePage: 'channel', + }), + account: JSON.stringify({ + allowLoginMore: false, + loginRemoteNotify: false, + notAcceptFriendApply: false, + autoPassFriendApply: false, + fileSaveToServer: true, + fileSaveToAlyOss: false, + fileSaveToTxOss: true, + }), + message: JSON.stringify({ + webNotify: false, + messageDot: true, + friendMessageSound: false, + friendMessageVibrate: false, + friendMessagePreview: false, + friendCallSound: false, + friendCallVibrate: false, + groupMessageSound: false, + groupMessageVibrate: false, + groupMessagePreview: false, + groupCallSound: false, + groupCallVibrate: false, + }), + skin: JSON.stringify({ + global: 'light', + }), + authority: JSON.stringify({ + acceptFriendAudioInvite: false, + acceptFriendVideoInvite: false, + acceptFriendScreenInvite: false, + acceptFriendInviteGroup: false + }), + other: JSON.stringify({ + // 我的文件视图模式 + cloudSelfViewMode: 'list', + // 我的收藏视图模式 + cloudCollectionViewMode: 'list', + // 我的回收小站视图模式 + cloudRecycleViewMode: 'list', + // 群聊文件视图模式 + cloudGroupViewMode: 'list', + // 中继服务器 + turnServer: true, + // 自定义wss + customWss: '', + }) + }) +} + +/** + * 删除用户配置 + * @param {*} id + * @param {*} companyId + */ +const deleteInfoById = async function({companyId, id}){ + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlUserConfigDao.deleteInfo({ + [TlUserConfigDef.companyId]: companyId, + [TlUserConfigDef.id]: id + }) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * 更新用户配置 + * @param {*} data + * @param {*} companyId + * @param {*} id + */ +const updateInfoById = async function({companyId, id}, data){ + // 参数校验 + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求service参数为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlUserConfigDao.updateInfo({ + [TlUserConfigDef.companyId]: companyId, + [TlUserConfigDef.id]: id + }, data) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * 获取用户配置列表 + * @param {*} companyId + * @param {*} fields + */ +const getList = async function({companyId}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const infoList = await TlUserConfigDao.getList({ + [TlUserConfigDef.companyId]: companyId + }, fields, [ + [TlUserConfigDef.createdAt, 'DESC'] + ]) + + if(infoList === null){ + return [] + } + + return infoList +} + +/** + * 获取用户配置列表 + * @param {*} companyId + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListForPage = async function({companyId}, fields, page, pageSize){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const infoList = await TlUserConfigDao.getListForPage({ + [TlUserConfigDef.companyId]: companyId + }, fields, [ + [TlUserConfigDef.createdAt, 'DESC'] + ], page, pageSize) + + if(infoList === null){ + return [] + } + + return infoList +} + +/** + * 获取用户配置信息 + * @param {*} companyId + * @param {*} id + * @param {*} fields + */ +const getInfoById = async function({companyId, id}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlUserConfigDao.getInfo({ + [TlUserConfigDef.companyId]: companyId, + [TlUserConfigDef.id]: id + }, fields) + + if(info === null){ + return {} + } + + return info +} + +/** + * 获取用户配置信息 + * @param {*} companyId + * @param {*} userId + * @param {*} fields + */ +const getInfoByUserId = async function({companyId, userId}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + const info = await TlUserConfigDao.getInfo({ + [TlUserConfigDef.companyId]: companyId, + [TlUserConfigDef.userId]: userId + }, fields) + + if(info === null){ + return {} + } + + return info +} + + +module.exports = { + addInfo, + deleteInfoById, + updateInfoById, + getInfoById, + getInfoByUserId, + addDefaultInfo, + + getList, + getListForPage +} \ No newline at end of file diff --git a/src/service/user/tl_user_finger_print_service.js b/src/service/user/tl_user_finger_print_service.js new file mode 100644 index 0000000..0c6f23a --- /dev/null +++ b/src/service/user/tl_user_finger_print_service.js @@ -0,0 +1,381 @@ +const { Op } = require('sequelize') +const moment = require('moment') +const { fields } = require('../../tables/tl_user_finger_print') +const TlUserFingerPrintDao = require('../../dao/tl_user_finger_print_dao') +const TlUserFingerPrintDef = fields.Def +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole } = require("../../utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function({ + userId, fingerPrint +}){ + // 参数校验 + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + if(!fingerPrint){ + tlConsoleError(TableName, "请求service参数fingerPrint为空") + return {} + } + + const info = await TlUserFingerPrintDao.addInfo({ + [TlUserFingerPrintDef.user_id]: userId, + [TlUserFingerPrintDef.finger_print]: fingerPrint, + }) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * addInfoList 接口 + * @param {*} userId + * @param {*} dataList + */ +const addInfoList = async function({ + userId, dataList +}){ + // 参数校验 + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + if(!dataList){ + tlConsoleError(TableName, "请求service参数dataList为空") + return {} + } + + let addDataList = [] + + for(let i = 0; i < dataList.length; i++){ + const fingerPrint = dataList[i] + if(!fingerPrint){ + tlConsoleError(TableName, "请求service参数fingerPrint为空") + return {} + } + addDataList.push({ + [TlUserFingerPrintDef.user_id]: userId, + [TlUserFingerPrintDef.finger_print]: fingerPrint, + }) + } + + const list = await TlUserFingerPrintDao.addList(addDataList) + + if(list === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return list +} + +/** + * getInfoById 接口 + * @param {*} id + * @param {*} fields + */ +const getInfoById = async function({id}, fields){ + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlUserFingerPrintDao.getInfo({ + [TlUserFingerPrintDef.id]: id + }, fields) + + if(info === null){ + return {} + } + + return info +} + +/** + * updateInfoById 接口 + * @param {*} id + * @param {*} data + */ +const updateInfoById = async function({id}, data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求service参数为空") + return {} + } + + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlUserFingerPrintDao.updateInfo({ + [TlUserFingerPrintDef.id]: id + }, data) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * deleteInfoById 接口 + * @param {*} id + */ +const deleteInfoById = async function({id}){ + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlUserFingerPrintDao.deleteInfo({ + [TlUserFingerPrintDef.id]: id + }) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * getInfoByUserIdAndFingerPrint 接口 + * @param {*} userId + * @param {*} fingerPrint + * @param {*} fields + */ +const getInfoByUserIdAndFingerPrint = async function({fingerPrint, userId}, fields){ + // 参数校验 + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + if(!fingerPrint){ + tlConsoleError(TableName, "请求service参数fingerPrint为空") + return {} + } + + const info = await TlUserFingerPrintDao.getInfo({ + [TlUserFingerPrintDef.finger_print]: fingerPrint, + [TlUserFingerPrintDef.user_id]: userId + }, fields, [ + [TlUserFingerPrintDef.createdAt, 'DESC'] + ]) + + if(info === null){ + return {} + } + + return info +} + +/** + * getListByUserId 接口 + * @param {*} userId + * @param {*} fields + */ +const getListByUserId = async function({userId}, fields){ + // 参数校验 + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + const list = await TlUserFingerPrintDao.getList({ + [TlUserFingerPrintDef.user_id]: userId + }, fields, [ + [TlUserFingerPrintDef.createdAt, 'DESC'] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByUserIdForPage 接口 + * @param {*} userId + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByUserIdForPage = async function({userId}, fields, page, pageSize){ + // 参数校验 + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserFingerPrintDao.getListForPage({ + [TlUserFingerPrintDef.user_id]: userId + }, fields, [ + [TlUserFingerPrintDef.createdAt, 'DESC'] + ], page, pageSize) + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByIdList 接口 + * @param {*} idList + * @param {*} fields + */ +const getListByIdList = async function({idList}, fields){ + // 参数校验 + if(!idList){ + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + const list = await TlUserFingerPrintDao.getList({ + [TlUserFingerPrintDef.id]: idList + }, fields, [ + [TlUserFingerPrintDef.createdAt, 'DESC'] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByIdListForPage 接口 + * @param {*} idList + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByIdListForPage = async function({idList}, fields, page, pageSize){ + // 参数校验 + if(!idList){ + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserFingerPrintDao.getListForPage({ + [TlUserFingerPrintDef.id]: idList + }, fields, [ + [TlUserFingerPrintDef.createdAt, 'DESC'] + ], page, pageSize) + + if(list === null){ + return [] + } + + return list +} + + +/** + * getCountByFingerPrint 接口 + * @param {*} fingerPrint + */ +const getCountByFingerPrint = async function({fingerPrint}){ + // 参数校验 + if(!fingerPrint){ + tlConsoleError(TableName, "请求service参数fingerPrint为空") + return 0 + } + + const count = await TlUserFingerPrintDao.getCount({ + [TlUserFingerPrintDef.finger_print]: fingerPrint + }) + + if(count === null){ + return 0 + } + + return count +} + +module.exports = { + addInfo, + addInfoList, + updateInfoById, + deleteInfoById, + getInfoById, + getInfoByUserIdAndFingerPrint, + getCountByFingerPrint, + + getListByIdList, + getListByIdListForPage, + getListByUserId, + getListByUserIdForPage +} \ No newline at end of file diff --git a/src/service/user/tl_user_friend_service.js b/src/service/user/tl_user_friend_service.js new file mode 100644 index 0000000..616b1e6 --- /dev/null +++ b/src/service/user/tl_user_friend_service.js @@ -0,0 +1,1018 @@ +const { fields } = require('../../tables/tl_user_friend') +const TlUserFirendDao = require('../../dao/tl_user_friend_dao') +const TlUserFriendDef = fields.Def +const TlUserFriendType = fields.FriendType +const TlUserFriendStatus = fields.Status +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); + + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function({ + companyId, userId, friendId, friendType, origin, remark, status, channelId, rename +}){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + if(!friendId){ + tlConsoleError(TableName, "请求service参数friendId为空") + return {} + } + + if(!friendType){ + tlConsoleError(TableName, "请求service参数friendType为空") + return {} + } + + if(![ + TlUserFriendType.NORMAL, + TlUserFriendType.SPECIAL + ].includes(friendType)){ + tlConsoleError(TableName, "请求service参数friendType不合法") + return {} + } + + if(!origin){ + tlConsoleError(TableName, "请求service参数origin为空") + return {} + } + + if(!status){ + tlConsoleError(TableName, "请求service参数status为空") + return {} + } + + if(![ + TlUserFriendStatus.NORMAL, + ].includes(status)){ + tlConsoleError(TableName, "请求service参数status不合法") + return {} + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return {} + } + + if(!rename){ + tlConsoleError(TableName, "请求service参数rename为空") + return {} + } + + const info = await TlUserFirendDao.addInfo({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.userId]: userId, + [TlUserFriendDef.friendId]: friendId, + [TlUserFriendDef.friendType]: friendType, + [TlUserFriendDef.origin]: origin, + [TlUserFriendDef.remark]: remark, + [TlUserFriendDef.status]: status, + [TlUserFriendDef.flag]: 0, + [TlUserFriendDef.channelId]: channelId, + [TlUserFriendDef.rename]: rename + }); + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * getInfoById 接口 + * @param {*} companyId + * @param {*} id + * @param {*} fields + */ +const getInfoById = async function({companyId, id}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlUserFirendDao.getInfo({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.id]: id + }, fields); + + if(info === null){ + return {} + } + + return info +} + +/** + * getListByUserId 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} fields + */ +const getListByUserId = async function({companyId, userId}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + const list = await TlUserFirendDao.getList({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.userId]: userId + }, fields, [ + [TlUserFriendDef.createdAt, 'DESc'] + ]); + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByUserIdForPage 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByUserIdForPage = async function({companyId, userId}, fields, page, pageSize){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserFirendDao.getListForPage({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.userId]: userId + }, fields, [ + [TlUserFriendDef.createdAt, 'DESc'] + ], page, pageSize); + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByFriendId 接口 + * @param {*} companyId + * @param {*} friendId + * @param {*} fields + */ +const getListByFriendId = async function({companyId, friendId}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!friendId){ + tlConsoleError(TableName, "请求service参数friendId为空") + return [] + } + + const list = await TlUserFirendDao.getList({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.friendId]: friendId + }, fields, [ + [TlUserFriendDef.createdAt, 'DESC'] + ]); + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByFriendId 接口 + * @param {*} companyId + * @param {*} friendId + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByFriendIdForPage = async function({companyId, friendId}, fields, page, pageSize){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!friendId){ + tlConsoleError(TableName, "请求service参数friendId为空") + return [] + } + + const list = await TlUserFirendDao.getList({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.friendId]: friendId + }, fields, [ + [TlUserFriendDef.createdAt, 'DESC'] + ], page, pageSize); + + if(list === null){ + return [] + } + + return list +} + +/** + * getInfoByUserIdAndFriendId 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} friendId + * @param {*} fields + */ +const getInfoByUserIdAndFriendId = async function({companyId, userId, friendId}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + if(!friendId){ + tlConsoleError(TableName, "请求service参数friendId为空") + return {} + } + + const info = await TlUserFirendDao.getInfo({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.userId]: userId, + [TlUserFriendDef.friendId]: friendId + }, fields); + + if(info === null){ + return {} + } + + return info +} + +/** + * getInfoByChannelIdAndUserId 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} channelId + * @param {*} fields + */ +const getInfoByChannelIdAndUserId = async function({companyId, userId, channelId}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return {} + } + + const info = await TlUserFirendDao.getInfo({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.userId]: userId, + [TlUserFriendDef.channelId]: channelId + }, fields); + + if(info === null){ + return {} + } + + return info +} + +/** + * getListByUserIdAndFriendIdList 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} friendIdList + * @param {*} fields + */ +const getListByUserIdAndFriendIdList = async function({companyId, userId, friendIdList}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!friendIdList){ + tlConsoleError(TableName, "请求service参数friendIdList为空") + return [] + } + + const list = await TlUserFirendDao.getList({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.userId]: userId, + [TlUserFriendDef.friendId]: friendIdList + }, fields, [ + [TlUserFriendDef.createdAt, 'DESC'] + ]); + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByUserIdAndFriendIdListForPage 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} friendIdList + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByUserIdAndFriendIdListForPage = async function({companyId, userId, friendIdList}, fields, page, pageSize){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!friendIdList){ + tlConsoleError(TableName, "请求service参数friendIdList为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserFirendDao.getListForPage({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.userId]: userId, + [TlUserFriendDef.friendId]: friendIdList + }, fields, [ + [TlUserFriendDef.createdAt, 'DESC'] + ], page, pageSize); + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByUserIdAndStatus 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} status + * @param {*} fields + */ +const getListByUserIdAndStatus = async function({companyId, userId, status}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!status){ + tlConsoleError(TableName, "请求service参数status为空") + return [] + } + + const list = await TlUserFirendDao.getList({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.userId]: userId, + [TlUserFriendDef.status]: status + }, fields, [ + [TlUserFriendDef.createdAt, 'DESC'] + ]); + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByUserIdAndStatusForPage 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} status + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByUserIdAndStatusForPage = async function({companyId, userId, status}, fields, page, pageSize){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!status){ + tlConsoleError(TableName, "请求service参数status为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserFirendDao.getListForPage({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.userId]: userId, + [TlUserFriendDef.status]: status + }, fields, [ + [TlUserFriendDef.createdAt, 'DESC'] + ], page, pageSize); + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByChannelId 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} fields + */ +const getListByChannelId = async function({companyId, channelId}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + const list = await TlUserFirendDao.getList({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.channelId]: channelId, + }, fields, [ + [TlUserFriendDef.createdAt, 'DESC'] + ]); + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByChannelIdForPage 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} fields + */ +const getListByChannelIdForPage = async function({companyId, channelId}, fields, page, pageSize){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!channelId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserFirendDao.getListForPage({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.channelId]: channelId, + }, fields, [ + [TlUserFriendDef.createdAt, 'DESC'] + ], page, pageSize); + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByFriendIdAndStatus 接口 + * @param {*} companyId + * @param {*} status + * @param {*} friendId + * @param {*} fields + */ +const getListByFriendIdAndStatus = async function({companyId, friendId, status}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!friendId){ + tlConsoleError(TableName, "请求service参数friendId为空") + return [] + } + + if(!status){ + tlConsoleError(TableName, "请求service参数status为空") + return [] + } + + const list = await TlUserFirendDao.getList({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.friendId]: friendId, + [TlUserFriendDef.status]: status + }, fields, [ + [TlUserFriendDef.createdAt, 'DESC'] + ]); + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByFriendIdAndStatusForpage 接口 + * @param {*} companyId + * @param {*} status + * @param {*} friendId + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByFriendIdAndStatusForpage = async function({companyId, friendId, status}, fields, page, pageSize){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!friendId){ + tlConsoleError(TableName, "请求service参数friendId为空") + return [] + } + + if(!status){ + tlConsoleError(TableName, "请求service参数status为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserFirendDao.getListForPage({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.friendId]: friendId, + [TlUserFriendDef.status]: status + }, fields, [ + [TlUserFriendDef.createdAt, 'DESC'] + ], page, pageSize); + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByUserIdAndFriendType 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} friendType + * @param {*} fields + */ +const getListByUserIdAndFriendType = async function({companyId, userId, friendType}, fields){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!friendType){ + tlConsoleError(TableName, "请求service参数friendType为空") + return [] + } + + const list = await TlUserFirendDao.getList({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.userId]: userId, + [TlUserFriendDef.friendType]: friendType + }, fields, [ + [TlUserFriendDef.createdAt, 'DESC'] + ]); + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByUserIdAndFriendTypeForPage 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} friendType + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByUserIdAndFriendTypeForPage = async function({companyId, userId, friendType}, fields, page, pageSize){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!friendType){ + tlConsoleError(TableName, "请求service参数friendType为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserFirendDao.getListForPage({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.userId]: userId, + [TlUserFriendDef.friendType]: friendType + }, fields, [ + [TlUserFriendDef.createdAt, 'DESC'] + ], page, pageSize); + + if(list === null){ + return [] + } + + return list +} + +/** + * deleteInfoById 接口 + * @param {*} companyId + * @param {*} id + */ +const deleteInfoById = async function({companyId, id}){ + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlUserFirendDao.deleteInfo({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.id]: id + }); + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * deleteInfoByUserId 接口 + * @param {*} companyId + * @param {*} userId + */ +const deleteInfoByUserId = async function({companyId, userId}){ + // 参数校验 + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlUserFirendDao.deleteInfo({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.userId]: userId + }); + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * deleteInfoByUserIdAndFriendId 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} friendId + */ +const deleteInfoByUserIdAndFriendId = async function({companyId, userId, friendId}){ + // 参数校验 + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + if(!friendId){ + tlConsoleError(TableName, "请求service参数friendId为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlUserFirendDao.deleteInfo({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.userId]: userId, + [TlUserFriendDef.friendId]: friendId + }); + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * updateInfoById 接口 + * @param {*} companyId + * @param {*} id + * @param {*} data + */ +const updateInfoById = async function({companyId, id}, data){ + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlUserFirendDao.updateInfo({ + [TlUserFriendDef.companyId]: companyId, + [TlUserFriendDef.id]: id, + }, data); + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + + +module.exports = { + addInfo, + getInfoById, + getInfoByUserIdAndFriendId, + deleteInfoById, + deleteInfoByUserId, + deleteInfoByUserIdAndFriendId, + updateInfoById, + getInfoByChannelIdAndUserId, + + getListByUserIdAndFriendIdList, + getListByUserIdAndFriendIdListForPage, + getListByUserIdAndFriendType, + getListByUserIdAndFriendTypeForPage, + getListByUserId, + getListByUserIdForPage, + getListByFriendId, + getListByFriendIdForPage, + getListByUserIdAndStatus, + getListByUserIdAndStatusForPage, + getListByFriendIdAndStatus, + getListByFriendIdAndStatusForpage, + getListByChannelId, + getListByChannelIdForPage +} \ No newline at end of file diff --git a/src/service/user/tl_user_read_service.js b/src/service/user/tl_user_read_service.js new file mode 100644 index 0000000..f527418 --- /dev/null +++ b/src/service/user/tl_user_read_service.js @@ -0,0 +1,677 @@ +const { fields } = require('../../tables/tl_user_read') +const TlUserReadDao = require('../../dao/tl_user_read_dao') +const TlUserReadDef = fields.Def +const TlUserReadType = fields.Type +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function({ + companyId, channelId, userId, type, latestReadId, recordId +}){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return {} + } + + if(![ + TlUserReadType.CHAT, + TlUserReadType.MEDIA, + TlUserReadType.FILE, + TlUserReadType.FRIEND_APPLY, + TlUserReadType.FRIEND_APPLY_PASS, + TlUserReadType.FRIEND_APPLY_REJECT, + ].includes(type)){ + tlConsoleError(TableName, "请求service参数type不合法") + return {} + } + + if([ + TlUserReadType.CHAT, + TlUserReadType.MEDIA, + TlUserReadType.FILE, + ].includes[type]){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return {} + } + + if(!latestReadId){ + tlConsoleError(TableName, "请求service参数latestChatId为空") + return {} + } + } + + if([ + TlUserReadType.FRIEND_APPLY, + TlUserReadType.FRIEND_APPLY_PASS, + TlUserReadType.FRIEND_APPLY_REJECT, + ].includes[type]){ + if(!recordId){ + tlConsoleError(TableName, "请求service参数recordId为空") + return {} + } + } + + if(!recordId){ + recordId = 0 + } + + if(!latestReadId) { + latestReadId = 0 + } + + if(!channelId){ + channelId = 0 + } + + const info = await TlUserReadDao.addInfo({ + [TlUserReadDef.companyId] : companyId, + [TlUserReadDef.channelId] : channelId, + [TlUserReadDef.userId] : userId, + [TlUserReadDef.type] : type, + [TlUserReadDef.latestReadId] : latestReadId, + [TlUserReadDef.recordId] : recordId, + }) + + if(info == null){ + tlConsoleError(TableName, "请求service参数为空") + return {} + } + + return info +} + +/** + * getInfoById 接口 + * @param {*} companyId + * @param {*} id + * @param {*} fields + */ +const getInfoById = async function({companyId, id}, fields){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + const info = await TlUserReadDao.getInfo({ + [TlUserReadDef.companyId] : companyId, + [TlUserReadDef.id] : id, + }, fields) + + if(info == null){ + return {} + } + + return info +} + +/** + * getListByUserId 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} fields + */ +const getListByUserId = async function({companyId, userId}, fields){ + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const list = await TlUserReadDao.getList({ + [TlUserReadDef.companyId]: companyId, + [TlUserReadDef.userId]: userId, + }, fields, [ + [TlUserReadDef.createdAt, "DESC"] + ]) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByUserIdForPage 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByUserIdForPage = async function({companyId, userId}, fields, page, pageSize){ + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserReadDao.getListForPage({ + [TlUserReadDef.companyId]: companyId, + [TlUserReadDef.userId]: userId, + }, fields, [ + [TlUserReadDef.createdAt, "DESC"] + ], page, pageSize) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByUserIdTypeList 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} typeList + * @param {*} fields + */ +const getListByUserIdTypeList = async function({companyId, userId, typeList}, fields){ + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!typeList){ + tlConsoleError(TableName, "请求service参数typeList为空") + return [] + } + + const list = await TlUserReadDao.getList({ + [TlUserReadDef.companyId]: companyId, + [TlUserReadDef.userId]: userId, + [TlUserReadDef.type]: typeList, + }, fields, [ + [TlUserReadDef.createdAt, "DESC"] + ]) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByUserIdTypeListForPage 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} typeList + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByUserIdTypeListForPage = async function({companyId, userId, typeList}, fields, page, pageSize){ + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!typeList){ + tlConsoleError(TableName, "请求service参数typeList为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserReadDao.getListForPage({ + [TlUserReadDef.companyId]: companyId, + [TlUserReadDef.userId]: userId, + [TlUserReadDef.type]: typeList, + }, fields, [ + [TlUserReadDef.createdAt, "DESC"] + ], page, pageSize) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByChannelId 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} fields + */ +const getListByChannelId = async function({companyId, channelId}, fields){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const list = await TlUserReadDao.getList({ + [TlUserReadDef.companyId]: companyId, + [TlUserReadDef.channelId]: channelId, + }, fields, [ + [TlUserReadDef.createdAt, "DESC"] + ]) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByChannelIdForPage 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByChannelIdForPage = async function({companyId, channelId}, fields, page, pageSize){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserReadDao.getListForPage({ + [TlUserReadDef.companyId]: companyId, + [TlUserReadDef.channelId]: channelId, + }, fields, [ + [TlUserReadDef.createdAt, "DESC"] + ], page, pageSize) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByChannelUserId 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} userId + * @param {*} fields + */ +const getListByChannelUserId = async function({companyId, channelId, userId}, fields){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const list = await TlUserReadDao.getList({ + [TlUserReadDef.companyId]: companyId, + [TlUserReadDef.channelId]: channelId, + [TlUserReadDef.userId]: userId, + }, fields, [ + [TlUserReadDef.createdAt, "DESC"] + ]) + + if(list == null){ + return [] + } + + return list +} + +/** + * getListByChannelUserIdForPage 接口 + * @param {*} companyId + * @param {*} channelId + * @param {*} userId + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByChannelUserIdForPage = async function({companyId, channelId, userId}, fields, page, pageSize){ + if(!channelId){ + tlConsoleError(TableName, "请求service参数channelId为空") + return [] + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserReadDao.getListForPage({ + [TlUserReadDef.companyId]: companyId, + [TlUserReadDef.channelId]: channelId, + [TlUserReadDef.userId]: userId, + }, fields, [ + [TlUserReadDef.createdAt, "DESC"] + ], page, pageSize) + + if(list == null){ + return [] + } + + return list +} + +/** + * updateInfoById 接口 + * @param {*} companyId + * @param {*} id + * @param {*} data + */ +const updateInfoById = async function({companyId, id}, data){ + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求service参数data为空") + return {} + } + + const info = await TlUserReadDao.updateInfo({ + [TlUserReadDef.companyId]: companyId, + [TlUserReadDef.id]: id, + }, data) + + if(info == null){ + return {} + } + + return info +} + +/** + * updateInfoByUserId 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} data + */ +const updateInfoByUserId = async function({companyId, userId}, data){ + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求service参数data为空") + return {} + } + + const info = await TlUserReadDao.updateInfo({ + [TlUserReadDef.companyId]: companyId, + [TlUserReadDef.userId]: userId, + }, data) + + if(info == null){ + return {} + } + + return info +} + +/** + * deleteInfoById 接口 + * @param {*} companyId + * @param {*} id + */ +const deleteInfoById = async function({companyId, id}){ + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlUserReadDao.deleteInfo({ + [TlUserReadDef.companyId]: companyId, + [TlUserReadDef.id]: id, + }) + + if(info == null){ + return {} + } + + return info +} + +/** + * getListByUserIdTypeListAndChannelIdList 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} typeList + * @param {*} channelIdList + * @param {*} fields + */ +const getListByUserIdTypeListAndChannelIdList = async function({companyId, userId, typeList, channelIdList}, fields){ + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!typeList){ + tlConsoleError(TableName, "请求service参数typeList为空") + return [] + } + + if(!channelIdList){ + tlConsoleError(TableName, "请求service参数channelIdList为空") + return [] + } + + if(channelIdList.length === 0){ + tlConsoleError(TableName, "请求service参数channelIdList为空") + return [] + } + + const list = await TlUserReadDao.getList({ + [TlUserReadDef.companyId]: companyId, + [TlUserReadDef.userId]: userId, + [TlUserReadDef.type]: typeList, + [TlUserReadDef.channelId]: channelIdList, + }, fields, [ + [TlUserReadDef.createdAt, "DESC"] + ]) + + if(list == null){ + return [] + } + + return list +} + + + +module.exports = { + addInfo, + getInfoById, + updateInfoById, + updateInfoByUserId, + deleteInfoById, + + getListByUserId, + getListByUserIdForPage, + getListByChannelId, + getListByChannelIdForPage, + getListByChannelUserId, + getListByChannelUserIdForPage, + getListByUserIdTypeList, + getListByUserIdTypeListForPage, + + getListByUserIdTypeListAndChannelIdList, +} \ No newline at end of file diff --git a/src/service/user/tl_user_service.js b/src/service/user/tl_user_service.js new file mode 100644 index 0000000..d5fb48e --- /dev/null +++ b/src/service/user/tl_user_service.js @@ -0,0 +1,466 @@ +const { fields } = require('../../tables/tl_user') +const TlUserDao = require('../../dao/tl_user_dao') +const TlUserDef = fields.Def +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole } = require("../../../src/utils/utils"); +const { get } = require('request') + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function({ + companyId, name, password, roleId, salt, mobile, email, avatarUrl, + wchatName, wchatOpenId, wchatUnionId, wchatAvatarUrl, flag, +}){ + // 参数校验 + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + if(!name){ + tlConsoleError(TableName, "请求service参数name为空") + return {} + } + + if(!password){ + tlConsoleError(TableName, "请求service参数password为空") + return {} + } + + if(!roleId){ + tlConsoleError(TableName, "请求service参数roleId为空") + return {} + } + + if(!salt){ + tlConsoleError(TableName, "请求service参数salt为空") + return {} + } + + if(!mobile){ + mobile = "" + } + + if(!email){ + email = "" + } + + if(!avatarUrl){ + avatarUrl = "" + } + + if(!wchatName){ + wchatName = "" + } + + if(!wchatOpenId){ + wchatOpenId = "" + } + + if(!wchatUnionId){ + wchatUnionId = "" + } + + if(!wchatAvatarUrl){ + wchatAvatarUrl = "" + } + + if(!flag){ + flag = 0 + } + + const info = await TlUserDao.addInfo({ + [TlUserDef.companyId]: companyId, + [TlUserDef.name]: name, + [TlUserDef.password]: password, + [TlUserDef.roleId]: roleId, + [TlUserDef.salt]: salt, + [TlUserDef.mobile]: mobile, + [TlUserDef.email]: email, + [TlUserDef.avatarUrl]: avatarUrl, + [TlUserDef.wchatName]: wchatName, + [TlUserDef.wchatOpenId]: wchatOpenId, + [TlUserDef.wchatUnionId]: wchatUnionId, + [TlUserDef.wchatAvatarUrl]: wchatAvatarUrl, + [TlUserDef.flag]: flag, + }) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * getInfoById 接口 + * @param {*} companyId + * @param {*} id + * @param {*} fields + * @returns + */ +const getInfoById = async function({companyId, id}, fields){ + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlUserDao.getInfo({ + [TlUserDef.companyId]: companyId, + [TlUserDef.id]: id + }, fields) + + if(info === null){ + return {} + } + + return info +} + +/** + * getInfoByName 接口 + * @param {*} name + * @param {*} companyId + * @param {*} fields + * @returns + */ +const getInfoByName = async function({companyId, name}, fields){ + // 参数校验 + if(!name){ + tlConsoleError(TableName, "请求service参数name为空") + return {} + } + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlUserDao.getInfo({ + [TlUserDef.companyId]: companyId, + [TlUserDef.name]: name + }, fields) + + if(info === null){ + return {} + } + + return info +} + +/** + * getInfoByNameForLogin 接口 + * @param {*} name + * @param {*} fields + * @returns + */ +const getInfoByNameForLogin = async function({name}, fields){ + // 参数校验 + if(!name){ + tlConsoleError(TableName, "请求service参数name为空") + return {} + } + + const info = await TlUserDao.getInfo({ + [TlUserDef.name]: name + }, fields) + + if(info === null){ + return {} + } + + return info +} + +/** + * getInfoByMobile 接口 + * @param {*} mobile + * @param {*} companyId + * @param {*} fields + * @returns + */ +const getInfoByMobile = async function({companyId, mobile}, fields){ + // 参数校验 + if(!mobile){ + tlConsoleError(TableName, "请求service参数mobile为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlUserDao.getInfo({ + [TlUserDef.companyId]: companyId, + [TlUserDef.mobile]: mobile + }, fields) + + if(info === null){ + return {} + } + + return info +} + +/** + * getInfoByMobileForLogin 接口 + * @param {*} mobile + * @param {*} fields + * @returns + */ +const getInfoByMobileForLogin = async function({mobile}, fields){ + // 参数校验 + if(!mobile){ + tlConsoleError(TableName, "请求service参数mobile为空") + return {} + } + + const info = await TlUserDao.getInfo({ + [TlUserDef.mobile]: mobile + }, fields) + + if(info === null){ + return {} + } + + return info +} + +/** + * getInfoByEmail 接口 + * @param {*} email + * @param {*} companyId + * @param {*} fields + * @returns + */ +const getInfoByEmail = async function({companyId, email}, fields){ + // 参数校验 + if(!email){ + tlConsoleError(TableName, "请求service参数email为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlUserDao.getInfo({ + [TlUserDef.companyId]: companyId, + [TlUserDef.email]: email + }, fields) + + if(info === null){ + return {} + } + + return info +} + +/** + * getInfoByEmailForLogin 接口 + * @param {*} email + * @param {*} fields + * @returns + */ +const getInfoByEmailForLogin = async function({email}, fields){ + // 参数校验 + if(!email){ + tlConsoleError(TableName, "请求service参数email为空") + return {} + } + + const info = await TlUserDao.getInfo({ + [TlUserDef.email]: email + }, fields) + + if(info === null){ + return {} + } + + return info +} + +/** + * updateInfoById 接口 + * @param {*} companyId + * @param {*} id + * @param {*} data + */ +const updateInfoById = async function({companyId, id}, data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求service参数为空") + return {} + } + + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlUserDao.updateInfo({ + [TlUserDef.companyId]: companyId, + [TlUserDef.id]: id + }, data) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * deleteInfoById 接口 + * @param {*} companyId + * @param {*} id + */ +const deleteInfoById = async function({companyId, id}){ + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlUserDao.deleteInfo({ + [TlUserDef.companyId]: companyId, + [TlUserDef.id]: id + }) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * getListByIdList 接口 + * @param {*} companyId + * @param {*} idList + * @param {*} fields + */ +const getListByIdList = async function({companyId, idList}, fields){ + // 参数校验 + if(!idList){ + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const list = await TlUserDao.getList({ + [TlUserDef.companyId]: companyId, + [TlUserDef.id]: idList + }, fields, [ + [TlUserDef.createdAt, "DESC"] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByIdListForPage 接口 + * @param {*} companyId + * @param {*} idList + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByIdListForPage = async function({companyId, idList}, fields, page, pageSize){ + // 参数校验 + if(!idList){ + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserDao.getListForPage({ + [TlUserDef.companyId]: companyId, + [TlUserDef.id]: idList + }, fields, [ + [TlUserDef.createdAt, "DESC"] + ], page, pageSize) + + if(list === null){ + return [] + } + + return list +} + + + +module.exports = { + addInfo, + updateInfoById, + deleteInfoById, + getInfoByName, + getInfoById, + getInfoByMobile, + getInfoByEmail, + getInfoByNameForLogin, + getInfoByMobileForLogin, + getInfoByEmailForLogin, + + getListByIdList, + getListByIdListForPage +} \ No newline at end of file diff --git a/src/service/user/tl_user_session_service.js b/src/service/user/tl_user_session_service.js new file mode 100644 index 0000000..3e05714 --- /dev/null +++ b/src/service/user/tl_user_session_service.js @@ -0,0 +1,223 @@ +const { + tlResponseArgsError, tlResponseForbidden, tlResponseSvrError, + tlResponseTimeout, tlResponseNotFound, tlResponseSuccess, + tlConsole, tlConsoleError +} = require('../../utils/utils') +const uuid = require('uuid') +const cache = require('../../utils/cache/cache') +const { + USER_KEYS +} = require('../../utils/cache/cache_key') + + +/** + * 通过token获取用户信息 + * @param {*} token + */ +const getUserInfoByToken = async function({token}){ + if(!token){ + return {} + } + + let info = await cache.getLoginInfo({token}) + + if(!info){ + return {} + } + + try{ + info = JSON.parse(info) + }catch(e){ + tlConsoleError(e) + info = null + } + + return info +} + +/** + * 通过token设置用户信息 + * @param {*} token + * @param {*} info + * @param {*} isLogin + * @param {*} isWebsite + */ +const setUserInfoByToken = async function({ + token, info, isLogin = true, isWebsite = false +}){ + if(!token){ + return {} + } + + let jsonInfo = null; + + try{ + jsonInfo = JSON.stringify(info) + }catch(e){ + tlConsoleError(e) + } + + if(!jsonInfo){ + return false + } + + let loginUserId = info.loginUserId + + if(isLogin){ + // 设置userId在线状态 + await cache.setLoginStatus({ + userId: loginUserId, + status: 1, + isWebsite + }) + // 设置token登录态 + return await cache.setLoginInfo({ + token, loginInfo: jsonInfo, isWebsite + }) + }else{ + // 设置userId在线状态 + await cache.setLoginStatus({ + userId: loginUserId, + status: 0, + isWebsite + }) + // 设置token登录态 + return await cache.setLoginInfo({ + token, loginInfo: '', isWebsite + }) + } +} + + +/** + * 通过userIdList获取登录状态 + * @param {*} userIdList + */ +const getUserLoginStatusByIdList = async function({userIdList}){ + if(!userIdList || userIdList.length === 0){ + return {} + } + + let statusMap = {} + + let resultList = await cache.getLoginStatusList({userIdList}) + + resultList.forEach((status, index) => { + if(parseInt(status) === 1){ + status = 1 + }else{ + status = 0 + } + statusMap[parseInt(userIdList[index])] = status + }) + + return statusMap +} + + +/** + * 设置登录用户频道权限 + * @param {*} userId + * @param {*} channelRoleMap + * @returns + */ +const setUserChannelRoleMap = async function({userId, channelRoleMap}){ + return await cache.setUserChannelRoleMap({userId, channelRoleMap}) +} + +/** + * 更新登录用户频道权限 + * @param {*} userId + * @param {*} channelRoleMap + */ +const updateUserChannelRoleMap = async function({userId, channelRoleMap}){ + return await cache.updateUserChannelRoleMap({userId, channelRoleMap}) +} + +/** + * 批量更新登录用户频道权限 + * @param {*} userIdList + * @param {*} channelRoleMap + */ +const batchUpdateUserChannelRoleMap = async function({userIdList, channelRoleMap}){ + return await cache.batchUpdateUserChannelRoleMap({userIdList, channelRoleMap}) +} + +/** + * 获取登录用户所有频道权限 + * @param {*} userId + * @param {*} channelId + * @returns + */ +const getUserChannelRoleMap = async function({userId}){ + return await cache.getUserChannelRoleMap({userId}) +} + +/** + * 获取登录用户频道权限 + * @param {*} userId + * @param {*} channelId + * @returns + */ +const getUserChannelRole = async function({userId, channelId}){ + return await cache.getUserChannelRole({userId, channelId}) +} + + +/** + * 设置邮箱验证码 + * @param {*} email + * @param {*} code + */ +const setEmailCode = async function({email, code}){ + return await cache.setEmailCode({email, code}) +} + +/** + * 获取邮箱验证码 + * @param {*} email + */ +const getEmailCode = async function({email}){ + return await cache.getEmailCode({email}) +} + +/** + * 设置手机号验证码 + * @param {*} mobile + * @param {*} code + */ +const setMobileCode = async function({mobile, code}){ + return await cache.setPhoneCode({mobile, code}) +} + +/** + * 获取手机号验证码 + * @param {*} mobile + */ +const getMobileCode = async function({mobile}){ + return await cache.getPhoneCode({mobile}) +} + +/** + * 生成token + */ +const generateLoginToken = function(){ + return uuid.v4() +} + + +module.exports = { + getUserInfoByToken, + setUserInfoByToken, + generateLoginToken, + getUserLoginStatusByIdList, + setEmailCode, + getEmailCode, + setMobileCode, + getMobileCode, + setUserChannelRoleMap, + getUserChannelRoleMap, + getUserChannelRole, + updateUserChannelRoleMap, + batchUpdateUserChannelRoleMap +} \ No newline at end of file diff --git a/src/service/user/tl_user_tag_service.js b/src/service/user/tl_user_tag_service.js new file mode 100644 index 0000000..2d78d40 --- /dev/null +++ b/src/service/user/tl_user_tag_service.js @@ -0,0 +1,365 @@ +const { Op } = require('sequelize') +const moment = require('moment') +const { fields } = require('../../tables/tl_user_tag') +const TlUserTagDao = require('../../dao/tl_user_tag_dao') +const TlUserTagDef = fields.Def +const TlUserTagType = fields.Type +const TableName = fields.Name +const TableFields = Object.keys(fields.Def).map(key => fields.Def[key]) +const { tlConsoleError, tlConsole } = require("../../utils/utils"); + +/** + * addInfo 接口 + * @param {*} data + */ +const addInfo = async function({ + name, type, userId, companyId +}){ + // 参数校验 + if(!name){ + tlConsoleError(TableName, "请求service参数name为空") + return {} + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return {} + } + + if(![ + TlUserTagType.CHANNEL, + TlUserTagType.CLOUD, + TlUserTagType.FRIEND, + ].includes(type)){ + tlConsoleError(TableName, "请求service参数type不合法") + return {} + } + + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlUserTagDao.addInfo({ + [TlUserTagDef.name]: name, + [TlUserTagDef.type]: type, + [TlUserTagDef.userId]: userId, + [TlUserTagDef.companyId]: companyId + }) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * getInfoById 接口 + * @param {*} id + * @param {*} fields + * @param {*} companyId + */ +const getInfoById = async function({id, companyId}, fields){ + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlUserTagDao.getInfo({ + [TlUserTagDef.id]: id + }, fields) + + if(info === null){ + return {} + } + + return info +} + +/** + * updateInfoById 接口 + * @param {*} id + * @param {*} data + * @param {*} companyId + */ +const updateInfoById = async function({id, companyId}, data){ + if(Object.keys(data).length === 0){ + tlConsoleError(TableName, "请求service参数为空") + return {} + } + + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlUserTagDao.updateInfo({ + [TlUserTagDef.id]: id + }, data) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * deleteInfoById 接口 + * @param {*} id + * @param {*} companyId + */ +const deleteInfoById = async function({id, companyId}){ + // 参数校验 + if(!id){ + tlConsoleError(TableName, "请求service参数id为空") + return {} + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return {} + } + + const info = await TlUserTagDao.deleteInfo({ + [TlUserTagDef.id]: id, + [TlUserTagDef.companyId]: companyId + }) + + if(info === null){ + tlConsoleError(TableName, "请求dao异常") + return {} + } + + return info +} + +/** + * getListByIdList 接口 + * @param {*} idList + * @param {*} companyId + * @param {*} fields + */ +const getListByIdList = async function({idList, companyId}, fields){ + // 参数校验 + if(!idList){ + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const list = await TlUserTagDao.getList({ + [TlUserTagDef.id]: idList, + [TlUserTagDef.companyId]: companyId + }, fields, [ + [TlUserTagDef.createdAt, 'DESC'] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByIdListForPage 接口 + * @param {*} idList + * @param {*} companyId + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByIdListForPage = async function({idList, companyId}, fields, page, pageSize){ + // 参数校验 + if(!idList){ + tlConsoleError(TableName, "请求service参数idList为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserTagDao.getListForPage({ + [TlUserTagDef.id]: idList + }, fields, [ + [TlUserTagDef.createdAt, 'DESC'] + ], page, pageSize) + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByUserIdAndType 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} type + * @param {*} fields + */ +const getListByUserIdAndType = async function({ companyId, userId, type }, fields){ + // 参数校验 + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + const list = await TlUserTagDao.getList({ + [TlUserTagDef.companyId]: companyId, + [TlUserTagDef.userId]: userId, + [TlUserTagDef.type]: type + }, fields, [ + [TlUserTagDef.createdAt, 'DESC'] + ]) + + if(list === null){ + return [] + } + + return list +} + +/** + * getListByUserIdAndTypeForPage 接口 + * @param {*} companyId + * @param {*} userId + * @param {*} type + * @param {*} fields + * @param {*} page + * @param {*} pageSize + */ +const getListByUserIdAndTypeForPage = async function({ companyId, userId, type }, fields, page, pageSize){ + // 参数校验 + if(!userId){ + tlConsoleError(TableName, "请求service参数userId为空") + return [] + } + + if(!companyId){ + tlConsoleError(TableName, "请求service参数companyId为空") + return [] + } + + if(!type){ + tlConsoleError(TableName, "请求service参数type为空") + return [] + } + + if(!page){ + tlConsoleError(TableName, "请求service参数page为空") + return [] + } + + if(!pageSize){ + tlConsoleError(TableName, "请求service参数pageSize为空") + return [] + } + + if(page <= 0){ + tlConsoleError(TableName, "请求service参数page不合法") + return [] + } + + if(pageSize <= 0){ + tlConsoleError(TableName, "请求service参数pageSize不合法") + return [] + } + + if(pageSize > 1000){ + tlConsoleError(TableName, "请求service参数pageSize过大") + return [] + } + + const list = await TlUserTagDao.getListForPage({ + [TlUserTagDef.companyId]: companyId, + [TlUserTagDef.userId]: userId, + [TlUserTagDef.type]: type + }, fields, [ + [TlUserTagDef.createdAt, 'DESC'] + ], page, pageSize) + + if(list === null){ + return [] + } + + return list +} + + + +module.exports = { + addInfo, + updateInfoById, + deleteInfoById, + getInfoById, + + getListByIdList, + getListByIdListForPage, + + getListByUserIdAndType, + getListByUserIdAndTypeForPage +} \ No newline at end of file diff --git a/src/socket/connect.js b/src/socket/connect.js new file mode 100644 index 0000000..d22efbb --- /dev/null +++ b/src/socket/connect.js @@ -0,0 +1,65 @@ +const socketCount = require("./handler/count"); +const socketExit = require("./handler/exit"); +const socketHeartbeat = require("./handler/heartbeat"); +const socketDisConnect = require("./handler/disconnect"); +const socketChannelChat = require("./handler/channel_chat"); +const socketChannelChatRollback = require("./handler/channel_chat_rollback"); +const socketContactApply = require('./handler/contact_apply') +const socketContactApplyPass = require('./handler/contact_apply_pass') +const socketContactApplyReject = require('./handler/contact_apply_reject') +const socketAuth = require("./handler/auth"); +const {socketServerEvent} = require("./event"); + + +module.exports = (io, socket) => { + // 登陆态校验 + socketAuth.auth(io, socket) + + // 断开连接 + socket.on(socketServerEvent.disconnect, (data)=>{ + socketDisConnect.disconnect(io, socket, data) + }); + + // 在线人数统计 + socket.on(socketServerEvent.count, (data) => { + socketCount.count(io, socket, data) + }); + + // 退出房间 + socket.on(socketServerEvent.exit, (data) => { + socketExit.exit(io, socket, data) + }); + + // 心跳 + socket.on(socketServerEvent.heartbeat, (data) => { + socketHeartbeat.heartbeat(io, socket, data) + }); + + // 广播聊天消息 + socket.on(socketServerEvent.channelChat, (data) => { + socketChannelChat.channelChat(io, socket, data) + }) + + // 广播聊天消息撤回 + socket.on(socketServerEvent.channelChatRollback, (data) => { + socketChannelChatRollback.channelChatRollback(io, socket, data) + }) + + // 广播好友申请消息 + socket.on(socketServerEvent.contactApply, (data) => { + socketContactApply.contactApply(io, socket, data) + }) + + // 通过好友申请 + socket.on(socketServerEvent.contactApplyPass, (data) => { + socketContactApplyPass.contactApplyPass(io, socket, data) + }) + + // 拒绝好友申请 + socket.on(socketServerEvent.contactApplyReject, (data) => { + socketContactApplyReject.contactApplyReject(io, socket, data) + }) + + // 触发一次count + socketCount.count(io, socket, {}) +} \ No newline at end of file diff --git a/src/socket/event.js b/src/socket/event.js new file mode 100644 index 0000000..a2aef22 --- /dev/null +++ b/src/socket/event.js @@ -0,0 +1,6 @@ +const socketServerEvent = require('./event/server_event'); +const socketClientEvent = require('./event/client_event'); + +module.exports = { + socketClientEvent, socketServerEvent +} \ No newline at end of file diff --git a/src/socket/event/client_event.js b/src/socket/event/client_event.js new file mode 100644 index 0000000..e3a26f4 --- /dev/null +++ b/src/socket/event/client_event.js @@ -0,0 +1,27 @@ +/** + * 客户端监听事件 + * event事件名称 + */ + +module.exports = { + // 创建房间 + created : "created", + // 加入房间 + joined : "joined", + // 退出 + exit : "exit", + // 人数 + count : "count", + // 心跳 + heartbeat : "heartbeat", + // 广播聊天消息 + channelChat: "channelChat", + // 广播聊天消息撤回 + channelChatRollback: "channelChatRollback", + // 广播好友申请 + contactApply: "contactApply", + // 通过好友申请 + contactApplyPass: "contactApplyPass", + // 拒绝好友申请 + contactApplyReject: "contactApplyReject", +} diff --git a/src/socket/event/server_event.js b/src/socket/event/server_event.js new file mode 100644 index 0000000..19410d1 --- /dev/null +++ b/src/socket/event/server_event.js @@ -0,0 +1,30 @@ +/** + * 服务端监听事件 + * event事件名称 + */ + + +module.exports = { + // socket连接 + connection : "connection", + // socket断开连接 + disconnect : "disconnect", + // 在线人数 + count : "count", + // 退出 + exit : "exit", + // 加入/创建房间 + createAndJoin : "createAndJoin", + // 心跳 + heartbeat : "heartbeat", + // 广播聊天消息 + channelChat: "channelChat", + // 广播聊天消息撤回 + channelChatRollback: "channelChatRollback", + // 广播好友申请 + contactApply: "contactApply", + // 通过好友申请 + contactApplyPass: "contactApplyPass", + // 拒绝好友申请 + contactApplyReject: "contactApplyReject", +} \ No newline at end of file diff --git a/src/socket/handler/auth.js b/src/socket/handler/auth.js new file mode 100644 index 0000000..b2ac2ea --- /dev/null +++ b/src/socket/handler/auth.js @@ -0,0 +1,45 @@ +const {socketClientEvent} = require("../event"); +const userSessionService = require('../../service/user/tl_user_session_service') +const cache = require('../../utils/cache/cache') + + +/** + * 登陆态校验 + * @param {*} io socketio对象 + * @param {*} socket 单个socket连接 + * @returns + */ +async function auth(io, socket){ + const { token } = socket.handshake.query; + + if(!token){ + return + } + + const { + loginUserId, loginUserCompanyId, logniTime + } = await userSessionService.getUserInfoByToken({token}) + + if(!loginUserId){ + return + } + + // 更新socketId和userId的映射关系 + await cache.setUserIdSocketIdMap({ + companyId: loginUserCompanyId, + userId: loginUserId, + socketId: socket.id + }) + + // 加入个人房间 + socket.join(loginUserId) + + // 设置token + socket.token = token + + return +} + +module.exports = { + auth +} \ No newline at end of file diff --git a/src/socket/handler/channel_chat.js b/src/socket/handler/channel_chat.js new file mode 100644 index 0000000..dde59ef --- /dev/null +++ b/src/socket/handler/channel_chat.js @@ -0,0 +1,72 @@ +const {socketClientEvent} = require("../event"); +const userSessionService = require('../../service/user/tl_user_session_service') +const channelUserService = require('../../service/channel/tl_channel_user_service') +const { fields: channelUserFields } = require('../../tables/tl_channel_user') +const { Def: TlChannelUserDef } = channelUserFields + + +/** + * 广播聊天消息 + * @param {*} io socketio对象 + * @param {*} socket 单个socket连接 + * @param {*} data event参数 + * @returns + */ +async function channelChat(io, socket, data){ + let channel = data.channel + let messageInfo = data.messageInfo + let to = data.to + + const token = socket.token; + + if(!channel){ + return + } + + const { + loginUserId, loginUserCompanyId + } = await userSessionService.getUserInfoByToken({token}) + + if(!loginUserId){ + return + } + + // 指定人,无须频道广播 + if (to){ + const toClient = io.sockets.connected[to] + if (toClient){ + toClient.emit(socketClientEvent.channelChat, { + channel: data.channel, + messageInfo: messageInfo, + from: socket.id, + }) + } + return + } + + // 拿到当前频道下的所有用户socketid,进行广播 + const channelUserList = await channelUserService.getListByChannelId({ + channelId: channel, + companyId: loginUserCompanyId + }, [ + TlChannelUserDef.userId + ]) + + const userIds = channelUserList.map(item => item[TlChannelUserDef.userId]) + + // 广播给频道内的所有用户 + for(let userId of userIds){ + if(userId === loginUserId){ + continue + } + io.sockets.in(userId).emit(socketClientEvent.channelChat, { + channel: data.channel, + messageInfo: messageInfo, + from: socket.id, + }) + } +} + +module.exports = { + channelChat +} \ No newline at end of file diff --git a/src/socket/handler/channel_chat_rollback.js b/src/socket/handler/channel_chat_rollback.js new file mode 100644 index 0000000..3dfa883 --- /dev/null +++ b/src/socket/handler/channel_chat_rollback.js @@ -0,0 +1,75 @@ +const {socketClientEvent} = require("../event"); +const userSessionService = require('../../service/user/tl_user_session_service') +const channelUserService = require('../../service/channel/tl_channel_user_service') +const { fields: channelUserFields } = require('../../tables/tl_channel_user') +const { Def: TlChannelUserDef } = channelUserFields + + +/** + * 广播聊天消息撤回 + * @param {*} io socketio对象 + * @param {*} socket 单个socket连接 + * @param {*} data event参数 + * @returns + */ +async function channelChatRollback(io, socket, data){ + let channel = data.channel + let messageId = data.messageId + let rollbackMessage = data.rollbackMessage + let to = data.to + + const token = socket.token; + + if(!channel){ + return + } + + const { + loginUserId, loginUserCompanyId + } = await userSessionService.getUserInfoByToken({token}) + + if(!loginUserId){ + return + } + + // 指定人,无须频道广播 + if (to){ + const toClient = io.sockets.connected[to] + if (toClient){ + toClient.emit(socketClientEvent.channelChatRollback, { + channel: data.channel, + messageId: messageId, + from: socket.id, + rollbackMessage: rollbackMessage, + }) + } + return + } + + // 拿到当前频道下的所有用户socketid,进行广播 + const channelUserList = await channelUserService.getListByChannelId({ + channelId: channel, + companyId: loginUserCompanyId + }, [ + TlChannelUserDef.userId + ]) + + const userIds = channelUserList.map(item => item[TlChannelUserDef.userId]) + + // 广播给频道内的所有用户 + for(let userId of userIds){ + if(userId === loginUserId){ + continue + } + io.sockets.in(userId).emit(socketClientEvent.channelChatRollback, { + channel: data.channel, + messageId: messageId, + from: socket.id, + rollbackMessage: rollbackMessage, + }) + } +} + +module.exports = { + channelChatRollback +} \ No newline at end of file diff --git a/src/socket/handler/contact_apply.js b/src/socket/handler/contact_apply.js new file mode 100644 index 0000000..e200ce5 --- /dev/null +++ b/src/socket/handler/contact_apply.js @@ -0,0 +1,56 @@ +const {socketClientEvent} = require("../event"); +const userSessionService = require('../../service/user/tl_user_session_service') +const channelUserService = require('../../service/channel/tl_channel_user_service') +const { fields: channelUserFields } = require('../../tables/tl_channel_user') +const { Def: TlChannelUserDef } = channelUserFields + + +/** + * 广播好友申请消息 + * @param {*} io socketio对象 + * @param {*} socket 单个socket连接 + * @param {*} data event参数 + * @returns + */ +async function contactApply(io, socket, data){ + let userId = data.userId + let applyInfo = data.applyInfo + let to = data.to + + const token = socket.token; + + if(!userId){ + return + } + + const { + loginUserId, loginUsername + } = await userSessionService.getUserInfoByToken({token}) + + if(!loginUserId){ + return + } + + // 指定人,无须频道广播 + if (to){ + const toClient = io.sockets.connected[to] + if (toClient){ + toClient.emit(socketClientEvent.contactApply, { + fromUsername: loginUsername, + applyInfo: applyInfo, + from: socket.id, + }) + } + return + } + + io.sockets.in(userId).emit(socketClientEvent.contactApply, { + fromUsername: loginUsername, + applyInfo: applyInfo, + from: socket.id, + }) +} + +module.exports = { + contactApply +} \ No newline at end of file diff --git a/src/socket/handler/contact_apply_pass.js b/src/socket/handler/contact_apply_pass.js new file mode 100644 index 0000000..08753f7 --- /dev/null +++ b/src/socket/handler/contact_apply_pass.js @@ -0,0 +1,56 @@ +const {socketClientEvent} = require("../event"); +const userSessionService = require('../../service/user/tl_user_session_service') +const channelUserService = require('../../service/channel/tl_channel_user_service') +const { fields: channelUserFields } = require('../../tables/tl_channel_user') +const { Def: TlChannelUserDef } = channelUserFields + + +/** + * 广播好友通过申请消息 + * @param {*} io socketio对象 + * @param {*} socket 单个socket连接 + * @param {*} data event参数 + * @returns + */ +async function contactApplyPass(io, socket, data){ + let userId = data.userId + let passInfo = data.passInfo + let to = data.to + + const token = socket.token; + + if(!userId){ + return + } + + const { + loginUserId, loginUsername + } = await userSessionService.getUserInfoByToken({token}) + + if(!loginUserId){ + return + } + + // 指定人,无须频道广播 + if (to){ + const toClient = io.sockets.connected[to] + if (toClient){ + toClient.emit(socketClientEvent.contactApplyPass, { + fromUsername: loginUsername, + passInfo: passInfo, + from: socket.id, + }) + } + return + } + + io.sockets.in(userId).emit(socketClientEvent.contactApplyPass, { + fromUsername: loginUsername, + passInfo: passInfo, + from: socket.id, + }) +} + +module.exports = { + contactApplyPass +} \ No newline at end of file diff --git a/src/socket/handler/contact_apply_reject.js b/src/socket/handler/contact_apply_reject.js new file mode 100644 index 0000000..024b295 --- /dev/null +++ b/src/socket/handler/contact_apply_reject.js @@ -0,0 +1,56 @@ +const {socketClientEvent} = require("../event"); +const userSessionService = require('../../service/user/tl_user_session_service') +const channelUserService = require('../../service/channel/tl_channel_user_service') +const { fields: channelUserFields } = require('../../tables/tl_channel_user') +const { Def: TlChannelUserDef } = channelUserFields + + +/** + * 广播好友申请拒绝消息 + * @param {*} io socketio对象 + * @param {*} socket 单个socket连接 + * @param {*} data event参数 + * @returns + */ +async function contactApplyReject(io, socket, data){ + let userId = data.userId + let rejectInfo = data.rejectInfo + let to = data.to + + const token = socket.token; + + if(!userId){ + return + } + + const { + loginUserId, loginUsername + } = await userSessionService.getUserInfoByToken({token}) + + if(!loginUserId){ + return + } + + // 指定人,无须频道广播 + if (to){ + const toClient = io.sockets.connected[to] + if (toClient){ + toClient.emit(socketClientEvent.contactApplyReject, { + fromUsername: loginUsername, + rejectInfo: rejectInfo, + from: socket.id, + }) + } + return + } + + io.sockets.in(userId).emit(socketClientEvent.contactApplyReject, { + fromUsername: loginUsername, + rejectInfo: rejectInfo, + from: socket.id, + }) +} + +module.exports = { + contactApplyReject +} \ No newline at end of file diff --git a/src/socket/handler/count.js b/src/socket/handler/count.js new file mode 100644 index 0000000..0d1675a --- /dev/null +++ b/src/socket/handler/count.js @@ -0,0 +1,21 @@ +const {socketClientEvent} = require("../event"); + + +/** + * 在线人数统计广播 + * @param {*} io socketio对象 + * @param {*} socket 单个socket连接 + * @param {*} data event参数 + * @returns + */ +async function count(io, socket, data){ + let allManCount = Object.keys(io.sockets.connected).length || 0; + + io.sockets.emit(socketClientEvent.count, { + mc : allManCount + }) +} + +module.exports = { + count +} \ No newline at end of file diff --git a/src/socket/handler/disconnect.js b/src/socket/handler/disconnect.js new file mode 100644 index 0000000..75f5f4b --- /dev/null +++ b/src/socket/handler/disconnect.js @@ -0,0 +1,21 @@ +const socketCount = require("./count"); +const {socketClientEvent} = require("../event"); + + +/** + * 断开连接的操作 + * @param {*} io socketio对象 + * @param {*} socket 单个socket连接 + * @param {*} data event参数 + */ +async function disconnect(io, socket, data){ + socket.broadcast.emit(socketClientEvent.exit, { + from : socket.id, + }); + + socketCount.count(io, socket, data); +} + +module.exports = { + disconnect +} \ No newline at end of file diff --git a/src/socket/handler/exit.js b/src/socket/handler/exit.js new file mode 100644 index 0000000..c25a26d --- /dev/null +++ b/src/socket/handler/exit.js @@ -0,0 +1,30 @@ +const socketCount = require("./count"); +const {socketClientEvent} = require("../event"); + + +/** + * 退出房间 + * @param {*} io socketio对象 + * @param {*} socket 单个socket连接 + * @param {*} data event参数 + * @returns + */ +async function exit(io, socket, data){ + + socket.leave(room); + + const clientsInRoom = io.sockets.adapter.rooms[room]; + if (clientsInRoom) { + let otherSocketIds = Object.keys(clientsInRoom.sockets); + for (let i = 0; i < otherSocketIds.length; i++) { + let otherSocket = io.sockets.connected[otherSocketIds[i]]; + otherSocket.emit(socketClientEvent.exit, data); + } + } + + socketCount.count(io, socket, data); +} + +module.exports = { + exit +} \ No newline at end of file diff --git a/src/socket/handler/heartbeat.js b/src/socket/handler/heartbeat.js new file mode 100644 index 0000000..414dd34 --- /dev/null +++ b/src/socket/handler/heartbeat.js @@ -0,0 +1,19 @@ +const {socketClientEvent} = require("../event"); + + +/** + * 心跳 + * @param {*} io socketio对象 + * @param {*} socket 单个socket连接 + * @param {*} data event参数 + * @returns + */ +async function heartbeat(io, socket, data){ + socket.emit(socketClientEvent.heartbeat, { + status : "ok" + }) +} + +module.exports = { + heartbeat +} \ No newline at end of file diff --git a/src/socket/index.js b/src/socket/index.js new file mode 100644 index 0000000..f9fbfbf --- /dev/null +++ b/src/socket/index.js @@ -0,0 +1,33 @@ +const connect = require("./connect"); +const {socketServerEvent} = require("./event"); +const { + tlConsole +} = require("./../utils/utils"); + + +/** + * socket事件初始化入口 + * @param {*} io + * @returns + */ +async function execute(io) { + if (io === undefined || io === null) { + tlConsole("io is null") + return; + } + + io.sockets.on(socketServerEvent.connection, function (socket) { + if(socket.id === undefined || socket.id === null || socket.id === 0 || socket.id === "0"){ + socket.emit("tips", { + to: socket.id, + msg: "非法连接" + }); + return + } + connect(io, socket) + }); +} + +module.exports = { + execute +} \ No newline at end of file diff --git a/src/tables/db.js b/src/tables/db.js new file mode 100644 index 0000000..7ce6126 --- /dev/null +++ b/src/tables/db.js @@ -0,0 +1,102 @@ +const sequelizeObj = require('sequelize'); +const fs = require('fs'); +const { tlConsole } = require("../../src/utils/utils"); +const { get_env_config } = require("../../conf/env_config"); +const { resolve } = require('path'); +const conf = get_env_config(); + +//db connect retry times +let connectRetryTimes = 0; +// 连接对象缓存 +let dbClientInstance = null + + +/** + * 获取数据库连接对象 + * @returns + */ +const getDbClient = function() { + if(dbClientInstance != null){ + return dbClientInstance + } + + const options = { + "dialect": "mysql", + "host": conf.db_mysql_host, + "port": conf.db_mysql_port, + "logging": false, + "pool": { + "max": 20, + "min": 5, + "acquire": 30000, + "idle": 10000 + }, + "timezone": "+08:00", + "define": { + "freezeTableName": true, + "underscored": true, + "charset": "utf8", + "collate": "utf8_general_ci", + "timestamps": false, + "paranoid": true + } + } + + dbClientInstance = new sequelizeObj( + conf.db_mysql_dbName, conf.db_mysql_user, conf.db_mysql_password, options + ); + + tlConsole("db init done ...") + + return dbClientInstance +} + + +/** + * 初始化数据库 + * @returns + */ +const dbInit = async function(){ + + let dbclient = getDbClient() + + try { + await dbclient.authenticate(); + tlConsole('db connect ok ... '); + + let files = fs.readdirSync(__dirname); + for (let f of files) { + if (f[0] == '.' || f == 'db.js') continue; + try { + let fn = require('./' + f).model; + if (typeof fn == 'function') { + fn(dbclient, sequelizeObj); + } + } catch (e) { + tlConsole(e); + } + } + + try { + await dbclient.sync({ force: false }); + + tlConsole("db sync ok ..."); + } catch (e) { + tlConsole("db sync err : ",e); + } + } catch (e) { + if(connectRetryTimes++ < 8){ + tlConsole('db connect err, retrying ... ',e.message); + await new Promise(resolve => setTimeout(resolve, connectRetryTimes * 3000)); + await dbInit(); + return; + } + tlConsole('db connect err ',e); + } +} + + +module.exports = { + dbClient: getDbClient(), + dbInit +} diff --git a/src/tables/tl_channel.js b/src/tables/tl_channel.js new file mode 100644 index 0000000..4efbf09 --- /dev/null +++ b/src/tables/tl_channel.js @@ -0,0 +1,79 @@ +const tl_channel_fields = { + Name: 'tl_channel', + Description: '频道表,主要定义单聊,群聊等创建的各种频道记录', + Def: { + id : 'id', + companyId : 'company_id', + flag : 'flag', + name : 'name', + status: 'status', + type: 'type', + createdAt : 'createdAt', + updatedAt : 'updatedAt', + deletedAt : 'deletedAt', + }, + Type: { + GROUP : 1, // 群聊 + FRIEND : 2, // 好友 + }, + Status: { + NORMAL: 1, //正常 + } +} + +const tl_channel_model = function(DataTypes){ + return { + model : { + id: { + type: DataTypes.INTEGER, + comment: '频道id', + primaryKey: true, + autoIncrement: true + }, + company_id: { + type: DataTypes.INTEGER, + comment: '企业id' + }, + flag: { + type: DataTypes.INTEGER, + comment: '标志位', + defaultValue: 0, + }, + name : { + type: DataTypes.STRING(64), + comment: '频道名称' + }, + type: { + type: DataTypes.INTEGER, + comment: '频道类型', + }, + status: { + type: DataTypes.INTEGER, + comment: '频道状态', + defaultValue: tl_channel_fields.Status.NORMAL + }, + }, + options : { + timestamps: true, + comment: '频道记录表', + indexes: [{ + name: 'created_at_index', + method: 'BTREE', + fields: ['created_at'] + }] + } + } +} + +module.exports = { + model: function(sequelize, DataTypes){ + return { + TlChannel: sequelize.define( + 'tl_channel', + tl_channel_model(DataTypes).model, + tl_channel_model(DataTypes).options + ) + } + }, + fields: tl_channel_fields +} \ No newline at end of file diff --git a/src/tables/tl_channel_chat.js b/src/tables/tl_channel_chat.js new file mode 100644 index 0000000..b9109c8 --- /dev/null +++ b/src/tables/tl_channel_chat.js @@ -0,0 +1,129 @@ +const tl_channel_chat_fields = { + Name: 'tl_channel_chat', + Description: '频道聊天记录表,所有企业,用户的单聊,群聊聊天记录表', + Def: { + id : 'id', + companyId : 'company_id', + channelId : 'channel_id', + type : 'type', + flag : 'flag', + message : 'message', + other : 'other', + fromUserId : 'from_user_id', + fromUserName : 'from_user_name', + toUserId : 'to_user_id', + toUserName : 'to_user_name', + messageTimeStamp : 'message_ts', + messageVersion : 'message_version', + createdAt : 'createdAt', + updatedAt : 'updatedAt', + deletedAt : 'deletedAt', + }, + Flag: { + IS_ROLL_BACK: 0x1, //是否撤回 + IS_REAL_TEXT: 0x2, // 是否是富文本 + IS_REPLAY: 0x4, // 是否是回复 + IS_AT_USER: 0x8, // 是否是@用户 + IS_AT_ALL: 0x10, // 是否是@所有人 + }, + Other: { + ip: 'ip', // ip地址 + replyToMessageId: 'reply_to_message_id', // 回复消息id + replyToMessageType: 'reply_to_message_type', // 回复消息类型 + atUserId: 'at_user_id', // at用户id + atUserName: 'at_user_name', // at用户昵称 + }, + Type : { + FRIEND : 'friend', // 好友消息 + GROUP : 'group', // 群消息 + SYSTEM : 'system', // 系统消息 + }, +} + +const tl_channel_chat_model = function(DataTypes){ + return { + model : { + id: { + type: DataTypes.INTEGER, + comment: '聊天记录id', + primaryKey: true, + autoIncrement: true + }, + company_id: { + type: DataTypes.INTEGER, + comment: '企业id' + }, + channel_id : { + type: DataTypes.INTEGER, + comment: '频道id' + }, + type : { + type: DataTypes.STRING(8), + comment: '消息类型' + }, + flag: { + type: DataTypes.INTEGER, + comment: '标志位', + defaultValue: 0, + }, + message: { + type: DataTypes.STRING(8192), + comment: '消息内容' + }, + other: { + type: DataTypes.TEXT, + comment: '其他信息, json格式' + }, + from_user_id: { + type: DataTypes.INTEGER, + comment: '发送用户id' + }, + from_user_name:{ + type: DataTypes.STRING(64), + comment: '发送用户昵称' + }, + to_user_id: { + type: DataTypes.INTEGER, + comment: '接收用户id' + }, + to_user_name: { + type: DataTypes.STRING(64), + comment: '接收用户昵称' + }, + message_ts: { + type: DataTypes.BIGINT, + comment: '消息时间戳' + }, + message_version: { + type: DataTypes.STRING(8), + comment: '消息版本' + }, + }, + options : { + timestamps: true, + comment: '聊天记录表', + indexes: [{ + name: 'created_at_index', + method: 'BTREE', + fields: ['created_at'] + }, { + name: 'message_ts_index', + method: 'BTREE', + fields: ['message_ts'] + }] + } + } +} + +module.exports = { + model: function(sequelize, DataTypes){ + return { + TlChannelChat: sequelize.define( + 'tl_channel_chat', + tl_channel_chat_model(DataTypes).model, + tl_channel_chat_model(DataTypes).options + ) + } + }, + fields: tl_channel_chat_fields +} \ No newline at end of file diff --git a/src/tables/tl_channel_user.js b/src/tables/tl_channel_user.js new file mode 100644 index 0000000..863a3e3 --- /dev/null +++ b/src/tables/tl_channel_user.js @@ -0,0 +1,96 @@ +const tl_channel_user_fields = { + Name: 'tl_channel_user', + Description: '频道用户表,主要定义单聊,群聊等创建的各种频道中的用户信息', + Def: { + id : 'id', + companyId : 'company_id', + channelId : 'channel_id', + userId : 'user_id', + flag : 'flag', + roleId : 'role_id', + type: 'type', + status : 'status', + createdAt : 'createdAt', + updatedAt : 'updatedAt', + deletedAt : 'deletedAt', + }, + Type: { + GROUP : 1, // 群聊 + FRIEND : 2, // 好友 + }, + Status: { + NORMAL: 1, //正常 + BLACK: 2, // 黑名单 + }, + Flag: { + IS_SET_TOP: 1, // 置顶 + IS_SET_BLACK: 2, // 拉黑 + IS_SET_HIDDEN: 3, // 不显示 + IS_SET_MUTE: 4, // 静音/免打扰 + } +} + +const tl_channel_user_model = function(DataTypes){ + return { + model : { + id: { + type: DataTypes.INTEGER, + comment: '频道用户记录id', + primaryKey: true, + autoIncrement: true + }, + company_id: { + type: DataTypes.INTEGER, + comment: '企业id' + }, + channel_id : { + type: DataTypes.INTEGER, + comment: '频道id' + }, + type: { + type: DataTypes.INTEGER, + comment: '频道类型', + }, + user_id: { + type: DataTypes.INTEGER, + comment: '用户id' + }, + flag: { + type: DataTypes.INTEGER, + comment: '标志位', + defaultValue: 0, + }, + role_id: { + type: DataTypes.INTEGER, + comment: '角色id' + }, + status: { + type: DataTypes.INTEGER, + comment: '群聊用户状态', + defaultValue: tl_channel_user_fields.Status.NORMAL + } + }, + options : { + timestamps: true, + comment: '频道用户记录表', + indexes: [{ + name: 'created_at_index', + method: 'BTREE', + fields: ['created_at'] + }] + } + } +} + +module.exports = { + model: function(sequelize, DataTypes){ + return { + TlChannelUser: sequelize.define( + 'tl_channel_user', + tl_channel_user_model(DataTypes).model, + tl_channel_user_model(DataTypes).options + ) + } + }, + fields: tl_channel_user_fields +} \ No newline at end of file diff --git a/src/tables/tl_company.js b/src/tables/tl_company.js new file mode 100644 index 0000000..a013fcb --- /dev/null +++ b/src/tables/tl_company.js @@ -0,0 +1,100 @@ +const tl_company_fields = { + Name: 'tl_company', + Description: '企业信息表', + Def: { + id : 'id', + code: 'code', + name : 'name', + address : 'address', + phone : 'phone', + email : 'email', + website : 'website', + logo : 'logo', + description : 'description', + flag : 'flag', + content : 'content', + createdAt : 'createdAt', + updatedAt : 'updatedAt', + deletedAt : 'deletedAt', + }, + Flag: { + IS_PASS_AUTH: 0x1, //是否通过认证 + IS_EXPIRED: 0x2, //是否过期 + }, +} + +const tl_company_model = function(DataTypes){ + return { + model : { + id: { + type: DataTypes.INTEGER, + comment: '企业id', + primaryKey: true, + autoIncrement: true + }, + code: { + type: DataTypes.STRING(60), + comment: '企业唯一编码' + }, + name: { + type: DataTypes.STRING(20), + comment: '企业名称' + }, + address: { + type: DataTypes.STRING(256), + comment: '企业地址' + }, + phone: { + type: DataTypes.STRING(20), + comment: '企业电话' + }, + email: { + type: DataTypes.STRING(48), + comment: '企业邮箱' + }, + website: { + type: DataTypes.STRING(48), + comment: '企业网址' + }, + logo: { + type: DataTypes.STRING(256), + comment: '企业logo' + }, + description: { + type: DataTypes.STRING(256), + comment: '企业描述' + }, + flag: { + type: DataTypes.INTEGER, + comment: '标志位', + defaultValue: 0, + }, + content: { + type: DataTypes.TEXT, + comment: '详细信息' + }, + }, + options : { + timestamps: true, + comment: '企业信息表', + indexes: [{ + name: 'created_at_index', + method: 'BTREE', + fields: ['created_at'] + }] + } + } +} + +module.exports = { + model: function(sequelize, DataTypes){ + return { + TlCompany: sequelize.define( + 'tl_company', + tl_company_model(DataTypes).model, + tl_company_model(DataTypes).options + ) + } + }, + fields: tl_company_fields +} \ No newline at end of file diff --git a/src/tables/tl_role.js b/src/tables/tl_role.js new file mode 100644 index 0000000..6b9b021 --- /dev/null +++ b/src/tables/tl_role.js @@ -0,0 +1,157 @@ +const role = require('../role/role'); + +const tl_role_fields = { + Name: 'tl_role', + Description: '角色表,定义各种角色,包括企业角色,系统角色,管理员角色等', + Def : { + id : 'id', + companyId : 'company_id', + name : 'name', + key: 'key', + flag : 'flag', + type: 'type', + description : 'description', + permissionIdList: 'permission_id_list', + createdAt : 'createdAt', + updatedAt : 'updatedAt', + deletedAt : 'deletedAt', + }, + Type: { + NORMAL_USER: 1, // 普通用户角色 + ADMIN_USER: 2, // 管理员角色 + TEST_USER: 3, // 测试演示用户角色 + + CHANNEL_CREATOR_USER: 4, // 频道群主角色 + CHANNEL_ADMIN_USER: 5, // 频道管理员角色 + CHANNEL_NORMAL_USER: 6, // 频道普通用户角色 + + WEBSITE_USER: 7, // 官网用户角色 + } +} + +const tl_role_model = function(DataTypes){ + return { + model : { + id: { + type: DataTypes.INTEGER, + comment: '角色记录id', + primaryKey: true, + autoIncrement: true + }, + company_id: { + type: DataTypes.INTEGER, + comment: '企业id' + }, + key: { + type: DataTypes.STRING(20), + comment: '角色key' + }, + type: { + type: DataTypes.INTEGER, + comment: '角色类型', + }, + name: { + type: DataTypes.STRING(20), + comment: '角色名称' + }, + description: { + type: DataTypes.STRING(256), + comment: '角色描述' + }, + permission_id_list: { + type: DataTypes.TEXT, + comment: '权限id列表', + }, + flag: { + type: DataTypes.INTEGER, + comment: '标志位', + defaultValue: 0, + }, + }, + options : { + timestamps: true, + comment: '用户角色表', + indexes: [{ + name: 'created_at_index', + method: 'BTREE', + fields: ['created_at'] + }] + } + } +} + +const tl_inner_role = { + user: { + normal : { + id : 1, + key: 'normal', + name : '普通角色', + type: tl_role_fields.Type.NORMAL_USER, + permissionIdList : JSON.stringify( + role.userNormalPermissions() + ), + description : '普通角色用户', + flag : 0, + }, + admin : { + id : 2, + key: 'admin', + name : '管理员', + type: tl_role_fields.Type.ADMIN_USER, + permissionIdList : JSON.stringify( + role.userAdminPermissions() + ), + description : '管理员角色用户', + flag : 0, + }, + }, + channel : { + creator : { + id : 10000, + key: 'creator', + name : '群主', + type: tl_role_fields.Type.CHANNEL_CREATOR_USER, + permissionIdList : JSON.stringify( + role.userChannelCreatorPermissions() + ), + description : '频道创建者', + flag : 0, + }, + admin : { + id : 10001, + key: 'admin', + name : '管理员', + type: tl_role_fields.Type.CHANNEL_ADMIN_USER, + permissionIdList : JSON.stringify( + role.userChannelAdminPermissions() + ), + description : '频道管理员', + flag : 0, + }, + member : { + id : 10002, + key: 'member', + name : '成员', + type: tl_role_fields.Type.CHANNEL_NORMAL_USER, + permissionIdList : JSON.stringify( + role.userChannelNormalPermissions() + ), + description : '频道成员', + flag : 0, + }, + }, +} + +module.exports = { + model: function(sequelize, DataTypes){ + return { + TlRole: sequelize.define( + 'tl_role', + tl_role_model(DataTypes).model, + tl_role_model(DataTypes).options + ) + } + }, + fields: tl_role_fields, + inner: tl_inner_role +} \ No newline at end of file diff --git a/src/tables/tl_user.js b/src/tables/tl_user.js new file mode 100644 index 0000000..0038c03 --- /dev/null +++ b/src/tables/tl_user.js @@ -0,0 +1,115 @@ +const tl_user_fields = { + Name: 'tl_user', + Description : '用户表,系统平台所有用户都在这个表', + Def : { + id : 'id', + companyId : 'company_id', + name : 'name', + password : 'password', + salt : 'salt', + email : 'email', + mobile : 'mobile', + avatarUrl : 'avatar_url', + roleId : 'role_id', + wchatName : 'wchat_name', + wchatOpenId : 'wchat_open_id', + wchatUnionId : 'wchat_union_id', + wchatAvatarUrl : 'wchat_avatar_url', + flag : 'flag', + createdAt : 'createdAt', + updatedAt : 'updatedAt', + deletedAt : 'deletedAt', + }, + Flag: { + IS_PASS_AUTH: 0x1, //是否通过认证 + IS_EXPIRED: 0x2, //是否过期 + }, +} + +const tl_user_model = function(DataTypes){ + return { + model : { + id: { + type: DataTypes.INTEGER, + comment: '用户id', + primaryKey: true, + autoIncrement: true + }, + company_id: { + type: DataTypes.INTEGER, + comment: '企业id' + }, + name: { + type: DataTypes.STRING(20), + comment: '用户名称' + }, + password: { + type: DataTypes.STRING(64), + comment: '用户密码' + }, + salt: { + type: DataTypes.STRING(32), + comment: '用户密码盐' + }, + email: { + type: DataTypes.STRING(64), + comment: '用户邮箱' + }, + mobile: { + type: DataTypes.STRING(11), + comment: '用户手机号' + }, + avatar_url: { + type: DataTypes.STRING(255), + comment: '头像地址-对应oss-key' + }, + role_id : { + type: DataTypes.INTEGER, + comment: '角色id' + }, + wchat_name: { + type: DataTypes.STRING(64), + comment: '微信昵称' + }, + wchat_open_id: { + type: DataTypes.STRING(64), + comment: '微信open_id' + }, + wchat_union_id: { + type: DataTypes.STRING(64), + comment: '微信union_id' + }, + wchat_avatar_url: { + type: DataTypes.STRING(255), + comment: '微信头像地址' + }, + flag: { + type: DataTypes.INTEGER, + comment: '标志位', + defaultValue: 0, + } + }, + options : { + timestamps: true, + comment: '用户表', + indexes: [{ + name: 'created_at_index', + method: 'BTREE', + fields: ['created_at'] + }] + } + } +} + +module.exports = { + model: function(sequelize, DataTypes){ + return { + TlUser: sequelize.define( + 'tl_user', + tl_user_model(DataTypes).model, + tl_user_model(DataTypes).options + ) + } + }, + fields: tl_user_fields +} \ No newline at end of file diff --git a/src/tables/tl_user_apply.js b/src/tables/tl_user_apply.js new file mode 100644 index 0000000..4f9656e --- /dev/null +++ b/src/tables/tl_user_apply.js @@ -0,0 +1,107 @@ +const tl_user_apply_fields = { + Name: 'tl_user_apply', + Description: '用户申请表, 主要定义用户各种申请记录,如好友申请,加群申请等', + Def: { + id : 'id', + companyId : 'company_id', + userId : 'user_id', + targetId: 'target_id', + type : 'type', + status : 'status', + origin: 'origin', + remark: 'remark', + flag: 'flag', + createdAt : 'createdAt', + updatedAt : 'updatedAt', + deletedAt : 'deletedAt', + }, + Flag: { + + }, + Type: { + FRIEND: 1, //好友申请 + GROUP: 2, //群申请 + }, + Status: { + WAIT: 1, //等待验证 + PASS: 2, //通过 + REJECT: 3, //拒绝 + BLACK: 4, //黑名单 + }, + Origin: { + SEARCH_NAME: '1', //搜索用户名添加 + SEARCH_PHONE: '2', //搜索手机号添加 + SEARCH_EMAIL: '3', //搜索邮箱添加 + INVITE_QR: '4', //二维码邀请添加 + INVITE_LINK: '5', //链接邀请添加 + } +} + +const tl_user_apply_model = function(DataTypes){ + return { + model : { + id: { + type: DataTypes.INTEGER, + comment: '申请id', + primaryKey: true, + autoIncrement: true + }, + company_id: { + type: DataTypes.INTEGER, + comment: '企业id' + }, + flag: { + type: DataTypes.INTEGER, + comment: '标志位', + defaultValue: 0, + }, + origin:{ + type: DataTypes.STRING, + comment: '申请来源' + }, + user_id: { + type: DataTypes.INTEGER, + comment: '申请记录所属用户id' + }, + target_id: { + type: DataTypes.INTEGER, + comment: '申请目标id' + }, + remark:{ + type: DataTypes.STRING, + comment: '申请备注' + }, + type: { + type: DataTypes.INTEGER, + comment: '申请类型' + }, + status: { + type: DataTypes.INTEGER, + comment: '申请状态', + defaultValue: tl_user_apply_fields.Status.WAIT + } + }, + options : { + timestamps: true, + comment: '用户申请记录表', + indexes: [{ + name: 'created_at_index', + method: 'BTREE', + fields: ['created_at'] + }] + } + } +} + +module.exports = { + model: function(sequelize, DataTypes){ + return { + TlUserApply: sequelize.define( + 'tl_user_apply', + tl_user_apply_model(DataTypes).model, + tl_user_apply_model(DataTypes).options + ) + } + }, + fields: tl_user_apply_fields +} \ No newline at end of file diff --git a/src/tables/tl_user_auth.js b/src/tables/tl_user_auth.js new file mode 100644 index 0000000..b73fb1f --- /dev/null +++ b/src/tables/tl_user_auth.js @@ -0,0 +1,65 @@ +const tl_user_auth_fields = { + Name: 'tl_user_auth', + Description: '用户认证表, 主要定义用户各种认证记录,如邮箱认证,手机号认证等', + Def: { + id : 'id', + key: 'key', + type : 'type', + code : 'code', + createdAt : 'createdAt', + updatedAt : 'updatedAt', + deletedAt : 'deletedAt', + }, + Type: { + EMAIL_REGISTER_CODE: 1, + PHONE_REGISTER_CODE: 2, + PHONE_LOGIN_CODE: 3, + }, +} + +const tl_user_auth_model = function(DataTypes){ + return { + model : { + id: { + type: DataTypes.INTEGER, + comment: '认证id', + primaryKey: true, + autoIncrement: true + }, + key: { + type: DataTypes.STRING, + comment: '认证key' + }, + code: { + type: DataTypes.STRING(16), + comment: '认证code' + }, + type: { + type: DataTypes.INTEGER, + comment: '认证类型' + }, + }, + options : { + timestamps: true, + comment: '用户认证记录表', + indexes: [{ + name: 'created_at_index', + method: 'BTREE', + fields: ['created_at'] + }] + } + } +} + +module.exports = { + model: function(sequelize, DataTypes){ + return { + TlUserAuth: sequelize.define( + 'tl_user_auth', + tl_user_auth_model(DataTypes).model, + tl_user_auth_model(DataTypes).options + ) + } + }, + fields: tl_user_auth_fields +} \ No newline at end of file diff --git a/src/tables/tl_user_config.js b/src/tables/tl_user_config.js new file mode 100644 index 0000000..a15a683 --- /dev/null +++ b/src/tables/tl_user_config.js @@ -0,0 +1,116 @@ +const tl_user_config_fields = { + Name: 'tl_user_config', + Description: '用户配置表', + Def: { + id : 'id', + companyId : 'company_id', + userId : 'user_id', + normal: 'normal', + account: 'account', + message: 'message', + skin: 'skin', + authority: 'authority', + other: 'other', + createdAt : 'createdAt', + updatedAt : 'updatedAt', + deletedAt : 'deletedAt', + }, + Account: { + + }, + Normal: { + + }, + Message: { // 消息设置 + // 网页通知 + webNotify: 'webNotify', + // 消息红点 + messageDot: 'messageDot', + }, + Authority: { // 权限设置 + + }, + Skin: { + + }, + Other: { + // 中继服务 + turnServer: 'turnServer', + // 自定义wss服务地址 + customWss: 'customWss', + } +} + +const tl_user_config_model = function(DataTypes){ + return { + model : { + id: { + type: DataTypes.INTEGER, + comment: '用户配置id', + primaryKey: true, + autoIncrement: true + }, + company_id: { + type: DataTypes.INTEGER, + comment: '企业id' + }, + user_id:{ + type: DataTypes.INTEGER, + comment: '用户id', + defaultValue: 0 + }, + account: { + type: DataTypes.TEXT, + comment: '账户设置', + defaultValue: '' + }, + message: { + type: DataTypes.TEXT, + comment: '消息设置', + defaultValue: '' + }, + skin: { + type: DataTypes.TEXT, + comment: '皮肤设置', + defaultValue: '' + }, + authority: { + type: DataTypes.TEXT, + comment: '权限设置', + defaultValue: '' + }, + normal: { + type: DataTypes.TEXT, + comment: '通用设置', + defaultValue: '' + }, + other: { + type: DataTypes.TEXT, + comment: '其他设置', + defaultValue: '' + }, + }, + options : { + timestamps: true, + comment: '用户配置表', + indexes: [{ + name: 'created_at_index', + method: 'BTREE', + fields: ['created_at'] + }] + } + } +} + +module.exports = { + model: function(sequelize, DataTypes){ + return { + TlUserConfig: sequelize.define( + 'tl_user_config', + tl_user_config_model(DataTypes).model, + tl_user_config_model(DataTypes).options + ) + } + }, + fields: tl_user_config_fields +} \ No newline at end of file diff --git a/src/tables/tl_user_finger_print.js b/src/tables/tl_user_finger_print.js new file mode 100644 index 0000000..c337c08 --- /dev/null +++ b/src/tables/tl_user_finger_print.js @@ -0,0 +1,55 @@ +const tl_user_finger_print_fields = { + Name: 'tl_user_finger_print', + Description: '用户登录指纹表, 主要存储用户相关指纹,用于登录身份认证等', + Def: { + id : 'id', + user_id: 'user_id', + finger_print: 'finger_print', + createdAt : 'createdAt', + updatedAt : 'updatedAt', + deletedAt : 'deletedAt', + }, +} + +const tl_user_finger_print_model = function(DataTypes){ + return { + model : { + id: { + type: DataTypes.INTEGER, + comment: '主键', + primaryKey: true, + autoIncrement: true + }, + user_id: { + type: DataTypes.INTEGER, + comment: '用户id' + }, + finger_print: { + type: DataTypes.STRING, + comment: '指纹' + }, + }, + options : { + timestamps: true, + comment: '用户登录指纹表', + indexes: [{ + name: 'created_at_index', + method: 'BTREE', + fields: ['created_at'] + }] + } + } +} + +module.exports = { + model: function(sequelize, DataTypes){ + return { + TlUserFingerPrint: sequelize.define( + 'tl_user_finger_print', + tl_user_finger_print_model(DataTypes).model, + tl_user_finger_print_model(DataTypes).options + ) + } + }, + fields: tl_user_finger_print_fields +} \ No newline at end of file diff --git a/src/tables/tl_user_friend.js b/src/tables/tl_user_friend.js new file mode 100644 index 0000000..1b5f581 --- /dev/null +++ b/src/tables/tl_user_friend.js @@ -0,0 +1,114 @@ +const tl_user_friend_fields = { + Name: 'tl_user_friend', + Description: '用户好友关系记录', + Def : { + id : 'id', + companyId : 'company_id', + flag : 'flag', + userId : 'user_id', + origin: 'origin', + remark: 'remark', + friendId : 'friend_id', + status: 'status', + friendType : 'friend_type', + rename: 'rename', + channelId: 'channel_id', + createdAt : 'createdAt', + updatedAt : 'updatedAt', + deletedAt : 'deletedAt', + }, + Status:{ + NORMAL : 1, //正常 + }, + Flag: { + + }, + FriendType: { + NORMAL: 1, //普通好友 + SPECIAL: 2, //特别关注 + }, + Origin: { + SEARCH_NAME: '1', //搜索用户名添加 + SEARCH_PHONE: '2', //搜索手机号添加 + SEARCH_EMAIL: '3', //搜索邮箱添加 + INVITE_QR: '4', //二维码邀请添加 + INVITE_LINK: '5', //链接邀请添加 + } +} + +const tl_user_friend_model = function(DataTypes){ + return { + model : { + id: { + type: DataTypes.INTEGER, + comment: '关系id', + primaryKey: true, + autoIncrement: true + }, + company_id: { + type: DataTypes.INTEGER, + comment: '企业id' + }, + flag: { + type: DataTypes.INTEGER, + comment: '标志位', + defaultValue: 0, + }, + origin: { + type: DataTypes.STRING, + comment: '来源', + defaultValue: 0, + }, + user_id: { + type: DataTypes.INTEGER, + comment: '用户id' + }, + friend_id: { + type: DataTypes.INTEGER, + comment: '好友userid' + }, + friend_type: { + type: DataTypes.INTEGER, + comment: '好友类型' + }, + channel_id: { + type: DataTypes.INTEGER, + comment: '关联好友频道id' + }, + status:{ + type: DataTypes.INTEGER, + comment: '好友关系记录状态' + }, + remark: { + type: DataTypes.STRING(64), + comment: '备注' + }, + rename: { + type: DataTypes.STRING(64), + comment: '好友备注' + } + }, + options : { + timestamps: true, + comment: '好友记录表', + indexes: [{ + name: 'created_at_index', + method: 'BTREE', + fields: ['created_at'] + }] + } + } +} + +module.exports = { + model: function(sequelize, DataTypes){ + return { + TlUserFriend: sequelize.define( + 'tl_user_friend', + tl_user_friend_model(DataTypes).model, + tl_user_friend_model(DataTypes).options + ) + } + }, + fields: tl_user_friend_fields +} \ No newline at end of file diff --git a/src/tables/tl_user_notify.js b/src/tables/tl_user_notify.js new file mode 100644 index 0000000..63b101d --- /dev/null +++ b/src/tables/tl_user_notify.js @@ -0,0 +1,74 @@ +const tl_user_notify_fields = { + Name: 'tl_user_notify', + Description: '用户通知表', + Def: { + id : 'id', + companyId : 'company_id', + userId : 'user_id', + type : 'type', + title: 'title', + content: 'content', + createdAt : 'createdAt', + updatedAt : 'updatedAt', + deletedAt : 'deletedAt', + }, + Type: { + WORK_CARD: 1, // 工作卡片通知 + SYSTEM_CARD_NOTICE: 2, // 系统卡片通知 + }, +} + +const tl_user_notify_model = function(DataTypes){ + return { + model : { + id: { + type: DataTypes.INTEGER, + comment: '标签id', + primaryKey: true, + autoIncrement: true + }, + userId: { + type: DataTypes.INTEGER, + comment: '用户id', + }, + companyId: { + type: DataTypes.INTEGER, + comment: '公司id', + }, + type: { + type: DataTypes.INTEGER, + comment: '通知类型', + }, + title: { + type: DataTypes.STRING(255), + comment: '通知标题', + }, + content: { + type: DataTypes.TEXT, + comment: '通知内容', + } + }, + options : { + timestamps: true, + comment: '用户通知记录表', + indexes: [{ + name: 'created_at_index', + method: 'BTREE', + fields: ['created_at'] + }] + } + } +} + +module.exports = { + model: function(sequelize, DataTypes){ + return { + TlUserNotify: sequelize.define( + 'tl_user_notify', + tl_user_notify_model(DataTypes).model, + tl_user_notify_model(DataTypes).options + ) + } + }, + fields: tl_user_notify_fields +} \ No newline at end of file diff --git a/src/tables/tl_user_read.js b/src/tables/tl_user_read.js new file mode 100644 index 0000000..53b005b --- /dev/null +++ b/src/tables/tl_user_read.js @@ -0,0 +1,86 @@ +const tl_user_read_fields = { + Name: 'tl_user_read', + Description: '频道已读消息,其他已读消息表,聊天消息只存最新消息id,其他消息已读一条就是一条记录', + Def: { + id: 'id', + companyId: 'company_id', + userId: 'user_id', + type: 'type', + channelId : 'channel_id', + latestReadId: 'latest_read_id', + recordId: 'record_id', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + deletedAt: 'deletedAt' + }, + Type: { + CHAT : 1, // 聊天消息 + MEDIA : 2, // 媒体流消息 + FILE: 3, // 文件消息 + FRIEND_APPLY: 4, // 好友申请消息 + FRIEND_APPLY_PASS: 5, // 好友同意消息 + FRIEND_APPLY_REJECT: 6, // 好友拒绝消息 + }, +} + +const tl_user_read_model = function(DataTypes){ + return { + model : { + id: { + type: DataTypes.INTEGER, + comment: '频道已读记录id', + primaryKey: true, + autoIncrement: true + }, + company_id: { + type: DataTypes.INTEGER, + comment: '企业id' + }, + user_id: { + type: DataTypes.INTEGER, + comment: '频道所属用户id' + }, + type: { + type: DataTypes.INTEGER, + comment: '消息类型', + }, + channel_id: { + type: DataTypes.INTEGER, + defaultValue: 0, + comment: '频道id' + }, + latest_read_id: { + type: DataTypes.INTEGER, + defaultValue: 0, + comment: '频道用户已读最新消息id' + }, + record_id: { + type: DataTypes.INTEGER, + defaultValue: 0, + comment: '用户已读消息记录id' + }, + }, + options : { + timestamps: true, + comment: '频道已读记录表', + indexes: [{ + name: 'created_at_index', + method: 'BTREE', + fields: ['created_at'] + }] + } + } +} + +module.exports = { + model: function(sequelize, DataTypes){ + return { + TlUserRead: sequelize.define( + 'tl_user_read', + tl_user_read_model(DataTypes).model, + tl_user_read_model(DataTypes).options + ) + } + }, + fields: tl_user_read_fields +} \ No newline at end of file diff --git a/src/tables/tl_user_tag.js b/src/tables/tl_user_tag.js new file mode 100644 index 0000000..eea2976 --- /dev/null +++ b/src/tables/tl_user_tag.js @@ -0,0 +1,70 @@ +const tl_user_tag_fields = { + Name: 'tl_user_tag', + Description: '用户标签表, 主要定义用户频道分组标签,用户好友标签等', + Def: { + id : 'id', + companyId : 'company_id', + userId : 'user_id', + name : 'name', + type : 'type', + createdAt : 'createdAt', + updatedAt : 'updatedAt', + deletedAt : 'deletedAt', + }, + Type: { + CHANNEL: 1, // 频道分组标签 + FRIEND: 2, // 好友分组标签 + CLOUD: 3, // 资源库文件标签 + }, +} + +const tl_user_tag_model = function(DataTypes){ + return { + model : { + id: { + type: DataTypes.INTEGER, + comment: '标签id', + primaryKey: true, + autoIncrement: true + }, + userId: { + type: DataTypes.INTEGER, + comment: '用户id', + }, + companyId: { + type: DataTypes.INTEGER, + comment: '公司id', + }, + name: { + type: DataTypes.STRING(255), + comment: '标签名称', + }, + type: { + type: DataTypes.INTEGER, + comment: '标签类型', + }, + }, + options : { + timestamps: true, + comment: '用户标签记录表', + indexes: [{ + name: 'created_at_index', + method: 'BTREE', + fields: ['created_at'] + }] + } + } +} + +module.exports = { + model: function(sequelize, DataTypes){ + return { + TlUserTag: sequelize.define( + 'tl_user_tag', + tl_user_tag_model(DataTypes).model, + tl_user_tag_model(DataTypes).options + ) + } + }, + fields: tl_user_tag_fields +} \ No newline at end of file diff --git a/src/utils/cache/cache.js b/src/utils/cache/cache.js new file mode 100644 index 0000000..5808dee --- /dev/null +++ b/src/utils/cache/cache.js @@ -0,0 +1,331 @@ +const { + getRedisClient +} = require('./redis'); + +const { + USER_KEYS, + SOCKET_KEYS +} = require('./cache_key'); +const { tlConsole } = require('../../utils/utils'); +const { + LOGIN : { + LOGIN_TOKEN_EXPIRE, + + WEBSITE_LOGIN_TOKEN_EXPIRE + } +} = require('../../utils/constant'); + + +/** + * 设置登录信息 + * 1小时过期 + * @param {*} token + * @param {*} loginInfo + * @param {*} isWebsite + */ +const setLoginInfo = async function({ + token, loginInfo, isWebsite = false +}){ + const key = USER_KEYS.USER_LOGIN_INFO + token; + + const redisClient = getRedisClient(); + + await redisClient.set(key, loginInfo); + + if(isWebsite){ + await redisClient.expire(key, WEBSITE_LOGIN_TOKEN_EXPIRE); + }else{ + await redisClient.expire(key, LOGIN_TOKEN_EXPIRE); + } +} + + +/** + * 获取登录信息 + * @param {*} token + * @returns + */ +const getLoginInfo = async function({token}){ + const key = USER_KEYS.USER_LOGIN_INFO + token; + + const redisClient = getRedisClient(); + + return await redisClient.get(key); +} + +/** + * 设置用户登录状态 + * 1小时过期 + * @param {*} userId + * @param {*} status + * @param {*} isWebsite + */ +const setLoginStatus = async function({ + userId, status, isWebsite +}){ + const key = USER_KEYS.USER_LOGIN_STATUS + userId; + + const redisClient = getRedisClient(); + + await redisClient.set(key, status); + + if(isWebsite){ + await redisClient.expire(key, WEBSITE_LOGIN_TOKEN_EXPIRE); + }else{ + await redisClient.expire(key, LOGIN_TOKEN_EXPIRE); + } +} + +/** + * 获取用户登录状态 + * @param {*} userId + */ +const getLoginStatus = async function({userId}){ + const key = USER_KEYS.USER_LOGIN_STATUS + userId; + + const redisClient = getRedisClient(); + + return await redisClient.get(key); +} + +/** + * 获取用户登录状态列表 + * @param {*} userIdList + * @returns + */ +const getLoginStatusList = async function({userIdList}){ + const keyList = userIdList.map(userId => USER_KEYS.USER_LOGIN_STATUS + userId); + + const redisClient = getRedisClient(); + + return await redisClient.mGet(keyList); +} + +/** + * 设置用户信息 + * 1小时过期 + * @param {*} userId + * @param {*} userInfo + * @param {*} isWebsite + * @returns + */ +const setUserInfo = async function({ + userId, userInfo, isWebsite = false +}){ + const cacheKey = USER_KEYS.USER_INFO + userId; + + const redisClient = getRedisClient(); + + await redisClient.set(cacheKey, userInfo); + + if(isWebsite){ + await redisClient.expire(cacheKey, WEBSITE_LOGIN_TOKEN_EXPIRE); + }else{ + await redisClient.expire(cacheKey, LOGIN_TOKEN_EXPIRE); + } +} + + +/** + * 获取用户信息 + * @param {*} userId + * @returns + */ +const getUserInfo = async function({userId}){ + const cacheKey = USER_KEYS.USER_INFO + userId; + + const redisClient = getRedisClient(); + + return await redisClient.get(cacheKey); +} + + +/** + * 设置socketId和userId的映射关系 + * 1小时过期 + * @param {*} socketId + * @param {*} userId + * @param {*} companyId + * @param {*} isWebsite + */ +const setUserIdSocketIdMap = async function({ + companyId, userId, socketId, isWebsite = false +}){ + const cacheKey = USER_KEYS.USER_ID_SOCKET_ID_MAP + companyId; + + const redisClient = getRedisClient(); + + await redisClient.hSet(cacheKey, { + [userId]: socketId + }); + + if(isWebsite){ + await redisClient.expire(cacheKey, WEBSITE_LOGIN_TOKEN_EXPIRE); + }else{ + await redisClient.expire(cacheKey, LOGIN_TOKEN_EXPIRE); + } +} + + +/** + * 获取socketId和userId的映射关系 + * @param {*} userId + * @returns + */ +const getUserIdSocketIdMap = async function({userId}){ + const cacheKey = USER_KEYS.USER_ID_SOCKET_ID_MAP; + + const redisClient = getRedisClient(); + + return await redisClient.hget(cacheKey, userId); +} + +/** + * 设置邮箱验证码 + * 5分钟过期 + * @param {*} email + * @param {*} code + */ +const setEmailCode = async function({ + email, code +}){ + const cacheKey = USER_KEYS.USER_EMAIL_CODE + email; + + const redisClient = getRedisClient(); + + await redisClient.set(cacheKey, code); + await redisClient.expire(cacheKey, 5 * 60); +} + +/** + * 获取邮箱验证码 + * @param {*} email + * @returns + */ +const getEmailCode = async function({email}){ + const cacheKey = USER_KEYS.USER_EMAIL_CODE + email; + + const redisClient = getRedisClient(); + + return await redisClient.get(cacheKey); +} + +/** + * 设置手机号验证码 + * 5分钟过期 + * @param {*} phone + * @param {*} code + * @returns + */ +const setPhoneCode = async function({phone, code}){ + const cacheKey = USER_KEYS.USER_PHONE_CODE + phone; + + const redisClient = getRedisClient(); + + await redisClient.set(cacheKey, code); + await redisClient.expire(cacheKey, 5 * 60); +} + +/** + * 获取手机号验证码 + * @param {*} phone + * @returns + */ +const getPhoneCode = async function({phone}){ + const cacheKey = USER_KEYS.USER_PHONE_CODE + phone; + + const redisClient = getRedisClient(); + + return await redisClient.get(cacheKey); +} + +/** + * 批量设置用户频道角色 + * @param {*} userId + * @param {*} channelRoleMap + */ +const setUserChannelRoleMap = async function({userId, channelRoleMap}){ + + const cacheKey = USER_KEYS.USER_CHANNEL_PERMISSION + userId; + + const redisClient = getRedisClient(); + + await redisClient.hSet(cacheKey, channelRoleMap); + await redisClient.expire(cacheKey, LOGIN_TOKEN_EXPIRE); +} + +/** + * 更新用户频道角色 + * @param {*} userId + * @param {*} channelRoleMap + */ +const updateUserChannelRoleMap = async function({userId, channelRoleMap}){ + const cacheKey = USER_KEYS.USER_CHANNEL_PERMISSION + userId; + + const redisClient = getRedisClient(); + + await redisClient.hSet(cacheKey, channelRoleMap); +} + +/** + * 批量更新用户频道角色 + * @param {*} userId + * @param {*} channelRoleMap + */ +const batchUpdateUserChannelRoleMap = async function({userIdList, channelRoleMap}){ + const redisClient = getRedisClient(); + + let multi = redisClient.multi() + + userIdList.forEach(userId => { + const cacheKey = USER_KEYS.USER_CHANNEL_PERMISSION + userId; + multi.hSet(cacheKey, channelRoleMap); + }) + + await multi.exec(); +} + +/** + * 获取用户所有频道角色 + * @param {*} userId + * @returns + */ +const getUserChannelRoleMap = async function({userId}){ + const cacheKey = USER_KEYS.USER_CHANNEL_PERMISSION + userId; + + const redisClient = getRedisClient(); + + return await redisClient.hGetAll(cacheKey); +} + +/** + * 获取用户频道角色 + * @param {*} userId + * @param {*} channelId + * @returns + */ +const getUserChannelRole = async function({userId, channelId}){ + const cacheKey = USER_KEYS.USER_CHANNEL_PERMISSION + userId; + + const redisClient = getRedisClient(); + + return await redisClient.hGet(cacheKey, channelId); +} + + +module.exports = { + setLoginInfo, getLoginInfo, + setUserInfo, getUserInfo, + + setUserIdSocketIdMap, getUserIdSocketIdMap, + + getLoginStatus, setLoginStatus, + getLoginStatusList, + + setEmailCode, getEmailCode, + setPhoneCode, getPhoneCode, + + setUserChannelRoleMap, updateUserChannelRoleMap, + getUserChannelRoleMap, getUserChannelRole, + batchUpdateUserChannelRoleMap +} \ No newline at end of file diff --git a/src/utils/cache/cache_key.js b/src/utils/cache/cache_key.js new file mode 100644 index 0000000..363fde3 --- /dev/null +++ b/src/utils/cache/cache_key.js @@ -0,0 +1,19 @@ +const { + CHANNEL_KEYS +} = require('./key/channel_key'); + +const { + USER_KEYS +} = require('./key/user_key') + +const { + SOCKET_KEYS +} = require('./key/socket_key') + + + +module.exports = { + CHANNEL_KEYS, + USER_KEYS, + SOCKET_KEYS +} \ No newline at end of file diff --git a/src/utils/cache/key/channel_key.js b/src/utils/cache/key/channel_key.js new file mode 100644 index 0000000..3df57bc --- /dev/null +++ b/src/utils/cache/key/channel_key.js @@ -0,0 +1,10 @@ +const PREFIX = 'TL:CHANNEL:'; + +const KEYS = { + // 某个频道下用户列表 + CHANNEL_USER_LIST: PREFIX + 'CHANNEL_USER_LIST:', +} + +module.exports = { + CAHNNEL_KEYS : KEYS +} \ No newline at end of file diff --git a/src/utils/cache/key/socket_key.js b/src/utils/cache/key/socket_key.js new file mode 100644 index 0000000..9d80b24 --- /dev/null +++ b/src/utils/cache/key/socket_key.js @@ -0,0 +1,9 @@ +const PREFIX = 'TL:SOCKET:'; + +const KEYS = { + +} + +module.exports = { + SOCKET_KEYS : KEYS +} \ No newline at end of file diff --git a/src/utils/cache/key/user_key.js b/src/utils/cache/key/user_key.js new file mode 100644 index 0000000..52fcef7 --- /dev/null +++ b/src/utils/cache/key/user_key.js @@ -0,0 +1,32 @@ + +const PREFIX = 'TL:USER:'; + +const KEYS = { + // 用户登陆态信息 + USER_LOGIN_INFO: PREFIX + 'USER_LOGIN_INFO:', + + // 用户在线状态 + USER_LOGIN_STATUS: PREFIX + 'USER_LOGIN_STATUS:', + + // 用户信息 + USER_INFO: PREFIX + 'USER_INFO:', + + // 用户的所有频道列表 + USER_CHANNEL_LIST: PREFIX + 'USER_CHANNEL_LIST:', + + // 用户频道权限 + USER_CHANNEL_PERMISSION: PREFIX + 'USER_CHANNEL_PERMISSION:', + + // userId和socketId的映射 + USER_ID_SOCKET_ID_MAP: PREFIX + 'USER_ID_SOCKET_ID_MAP:', + + // 用户邮箱验证码 + USER_EMAIL_CODE: PREFIX + 'USER_EMAIL_CODE:', + + // 用户手机验证码 + USER_PHONE_CODE: PREFIX + 'USER_PHONE_CODE:', +} + +module.exports = { + USER_KEYS : KEYS +} \ No newline at end of file diff --git a/src/utils/cache/redis.js b/src/utils/cache/redis.js new file mode 100644 index 0000000..b38f39a --- /dev/null +++ b/src/utils/cache/redis.js @@ -0,0 +1,57 @@ +const { createClient } = require('redis'); +const { + tlConsole, +} = require('../../utils/utils'); +const { get_env_config } = require("../../../conf/env_config"); +const conf = get_env_config(); + +// 连接对象缓存 +let redisClientInstance = null + +/** + * 获取redis客户端 + * @returns + */ +const redisInit = async function() { + if(redisClientInstance != null){ + return redisClientInstance; + } + + const RDS_USER = "default" + const RDS_HOST = conf.redis_host; + const RDS_PORT = conf.redis_port; + const RDS_PWD = conf.redis_password; + const RDS_OPTS = { + auth_pass: RDS_PWD, + }; + + if(RDS_PWD){ + redisClientInstance = createClient({ + url: `redis://:${RDS_PWD}@${RDS_HOST}:${RDS_PORT}/0`, + }); + }else{ + redisClientInstance = createClient({}); + } + + redisClientInstance.on('error', err => { + tlConsole('Redis Client Error : ', err) + }); + + await redisClientInstance.connect(); + + tlConsole('redis connect ok ...'); +}; + + +/** + * 获取redis客户端连接 + * @returns + */ +const getRedisClient = function(){ + return redisClientInstance; +} + + +module.exports = { + redisInit, getRedisClient +} \ No newline at end of file diff --git a/src/utils/constant.js b/src/utils/constant.js new file mode 100644 index 0000000..d42a950 --- /dev/null +++ b/src/utils/constant.js @@ -0,0 +1,11 @@ +const LOGIN = { + // 登录token + LOGIN_TOKEN_KEY : '_tl_lg_tk', + // 登录token过期时间 + LOGIN_TOKEN_EXPIRE : 1000 * 60 * 60, +} + + +module.exports = { + LOGIN, +} \ No newline at end of file diff --git a/src/utils/mail/mail.js b/src/utils/mail/mail.js new file mode 100644 index 0000000..e7f52dd --- /dev/null +++ b/src/utils/mail/mail.js @@ -0,0 +1,136 @@ +// mail.js +const { get_env_config, load_env_config } = require("../../../conf/env_config"); +//加载环境变量 +load_env_config(); +//加载环境变量完毕后,加载配置 +const conf = get_env_config() +const nodemailer = require('nodemailer'); +const nodemailerSmtpTransport = require('nodemailer-smtp-transport'); +const { + tlConsole +} = require("../utils"); + + +/** + * 发送邮件 + * @param {string} to - 收件人的邮箱地址 + * @param {string} subject - 邮件主题 + * @param {string} text - 邮件文本内容 + * @param {string} html - 邮件HTML内容(可选) + * @returns {Promise} - 返回一个Promise对象,表示发送邮件的结果 + */ +async function sendEmail({ to, subject, text, html }) { + try { + // 创建一个SMTP传输器对象 + let transporter = nodemailer.createTransport({ + host: conf.mail_host, // SMTP服务器地址 + port: conf.mail_port, // SMTP服务端口 + secure: true, // true表示使用SSL,false表示使用TLS + auth: { + user: conf.mail_user, // 发件人邮箱 + pass: conf.mail_password // 授权码 + }, + }); + + // 发送邮件 + let info = await transporter.sendMail({ + from: conf.mail_user, // 发件人邮箱 + to: to, + subject: subject, + text: text, + html: html + }); + + tlConsole('发送邮件结果: %s', info.messageId); + + return info; + } catch (error) { + tlConsole('发送邮件异常:', error); + return null; + } +} + +/** + * 验证码邮件模版 + * @param {string} code - 验证码 + * @param {number} expire - 验证码的有效时间(单位:分钟) + * @param {string} company - 团队名称 + * @param {string} companyUrl - 团队网址 + * @returns {string} - 返回邮件的HTML内容 + */ +const emailTemplate = function({ + code, expire, companyName, companyUrl +}) { + return ` + + + + + +
+
|
+
<%R2jsg_3uYJIb(x;Z}$7Y7wR|xqLdP
z!$!H%NeAEWsMX7MB+(mAVbJ9doH@i6(&WqO$yFE;8v^o7;mZANB2b11du7O^zEnWI
z`WH0~WTarC>=M+|%JhA|_dfP2eMqwm_99{bo$(Aqqjd8!C
z0vVG&z~8XRQ*S6Sk_xDABYBbqRj6B1HVN=lT1T)HsYA>B|KdB|Th!{VHURC!6eDlE~ua3LbexlDJpM5Ri_p7XsQvERf
z{3AIFGIJ!fu%N)qlU(=#f$?O@g{Af*^j(XhxNn`88*EP+Jb8QH5Kp>hBA!J~nDs<5
zm=Cg45g>
r3?;u}RVd$V64N72ib$`I_Y*LNbuJ%KXUQVi(I7FOVU1v3BX
z;{7}tNh=^Hov#!!=!7t~-3iu~cf{UF>GoCvK#>o#+&&0Lwf5Tn_){+EvduX3r%u8>
z=?bXp%lu>1Ln}v1bfq=)cnpkYjtTbzwZp^E(|FE6o{lw=y2(b))XEd##2gVW4ZMXA
z145g-h!?pNeR%&Ia$;QC#_o+eu~j@3EBvS{Ydc7G2|n8Etyno3>6xOS+cjcPr*aQ#
z%aGr-X$+6fvSCL!od%
8&9KE