diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..931649c --- /dev/null +++ b/.dockerignore @@ -0,0 +1,9 @@ +# VSCode +.vscode + +# Github +.github + +# Others +node_modules +.env \ No newline at end of file diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..72daba3 --- /dev/null +++ b/.env.example @@ -0,0 +1,16 @@ +NODE_ENV=development # For production, set to "production" +APP_URL=http://localhost:4000 # For multiple domains, separate them with comma +JWT_SECRET=THisIsMySecretKey! # For production, set to a long random string +PORT=3000 +SEND_NOTIFICATIONS=true +# DEFAULT_TIMEZONE=America/Argentina/Buenos_Aires # Default timezone for the app +# DATABASE_NAME=movilizatorio +# DATABASE_USERNAME=root +# DATABASE_PASSWORD=root +# DATABASE_HOST=127.0.0.1 +# DATABASE_PORT=3306 +# MAILER_FROM="My Org APP " +# MAILER_HOST=sandbox.smtp.mailtrap.io +# MAILER_PORT=2525 +# MAILER_USER=user +# MAILER_PASSWORD=password diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml new file mode 100644 index 0000000..cbddc2b --- /dev/null +++ b/.github/workflows/docker.yaml @@ -0,0 +1,31 @@ +# version 1.0 +name: Build and push +on: + push: + tags: + - '*' + +jobs: + work: + name: Work + runs-on: ubuntu-latest + steps: + - name: Check out the code + uses: actions/checkout@v2 + - name: Lowercase + id: lower + uses: ASzc/change-string-case-action@v1 + with: + string: ${{ github.repository }} + - name: Build & Push docker image + uses: mr-smithers-excellent/docker-build-push@v4 + with: + image: ${{ steps.lower.outputs.lowercase }} + registry: ghcr.io + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASSWORD }} + - name: Notify Slack + uses: craftech-io/slack-action@v1 + with: + slack_webhook_url: ${{ secrets.SLACK_WEBHOOK }} + if: always() \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..48e0213 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +node_modules +.env +.env.* +!.env.example \ No newline at end of file diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..bb8c76c --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v22.11.0 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..eff28d8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +# Use an official Node.js runtime as the base image +FROM node:22-alpine + +# Set the working directory in the Docker image +WORKDIR /usr/src/app + +# Copy package.json and package-lock.json to the working directory +COPY package*.json ./ + +# Install the application dependencies +RUN npm install + +# Copy the rest of the application code to the working directory +COPY . . + +# Expose port 3000 for the application +EXPOSE 3000 + +# Define the command to run the application +CMD [ "npm", "start" ] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..2fc44a9 --- /dev/null +++ b/README.md @@ -0,0 +1,73 @@ +# Incidir Para Existir - Backend + +## Overview +This repository contains the backend code for the "Incidir Para Existir" project. The backend is responsible for handling API requests, managing the database, and providing data to the frontend. + +## Technologies Used +- Node.js +- Express.js +- MySQL 8 +- Sequelize ORM + +## Getting Started + +### Prerequisites +- Node.js (v14 or higher) +- MySQL 8 + +### Installation +1. Clone the repository: + ```bash + git clone https://github.com/yourusername/incidir-para-existir.git + ``` +2. Navigate to the backend directory: + ```bash + cd incidir-para-existir/backend + ``` +3. Install dependencies: + ```bash + npm install + ``` +### Preparing the database + +```sql +CREATE DATABASE production_movilizatorio +CHARACTER SET utf8mb4 +COLLATE utf8mb4_general_ci; +``` + +```sql +CREATE USER 'production_movilizatorio'@'%' IDENTIFIED BY 'YourStrongPassword'; +``` + +```sql +GRANT ALL PRIVILEGES ON production_movilizatorio.* TO 'production_movilizatorio'@'%'; +``` + +```sql +FLUSH PRIVILEGES; +``` + +### Configuration + +Copy the `.env.example` file to `.env` and update the values as needed. + +### Running the Application +1. Start the development server: + ```bash + npm run dev + ``` +2. The server will be running at `http://localhost:3000`. (In case you have changed the port number, the server will be running at `http://localhost:your_port_number`) + +#### If you need a docker mysql database + +You can execute this to get a quick mysql database running: + +```bash +docker run -d --name mysql8 -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -v ~/databases/mysql8:/var/lib/mysql mysql:8 +``` + +Make sure to change the password and the volume path to your needs. + +## Contributing +Contributions are welcome! Please fork the repository and create a pull request with your changes. \ No newline at end of file diff --git a/config/config.json b/config/config.json new file mode 100644 index 0000000..a206c56 --- /dev/null +++ b/config/config.json @@ -0,0 +1,9 @@ +{ + "development": { + "username": "root", + "password": "root", + "database": "movilizatorio", + "host": "127.0.0.1", + "dialect": "mysql" + } +} diff --git a/config/database.js b/config/database.js new file mode 100644 index 0000000..1f24958 --- /dev/null +++ b/config/database.js @@ -0,0 +1,26 @@ +module.exports = { + development:{ + dialect: 'mysql', + database: process.env.DATABASE_NAME || 'movilizatorio', + username: process.env.DATABASE_USERNAME || 'root', + password: process.env.DATABASE_PASSWORD || 'root', + host: process.env.DATABASE_HOST || 'localhost', + port: parseInt(process.env.DATABASE_PORT || '3306'), + logging: console.log, + }, + production: { + dialect: 'mysql', + database: process.env.DATABASE_NAME || 'movilizatorio', + username: process.env.DATABASE_USERNAME || 'root', + password: process.env.DATABASE_PASSWORD || 'root', + host: process.env.DATABASE_HOST || 'localhost', + port: parseInt(process.env.DATABASE_PORT || '3306'), + logging: false, + pool: { + max: 5, + min: 0, + acquire: 30000, + idle: 10000 + } + } +} \ No newline at end of file diff --git a/controllers/authController.js b/controllers/authController.js new file mode 100644 index 0000000..adea6f3 --- /dev/null +++ b/controllers/authController.js @@ -0,0 +1,279 @@ +const models = require('../models'); +const AuthHelper = require('../helpers/authHelper'); +const dayjs = require('dayjs'); +const msg = require('../utils/messages'); + +/** + * It registers a new user + * @route POST /auth/register + * @param {String} req.body.email - The email of the user + * @param {String} req.body.password - The password of the user + * @param {String} req.body.name - The name of the user + * @param {String} req.body.lang - The language of the user + */ + +exports.register = async (req, res) => { + try { + const { email, firstName, lastName, password, subdivisionId } = req.body; + console.log('got body') + + // Make sure this account doesn't already exist + const user = await models.User.findOne({ where: { email } }); + console.log('got user') + if (user){ + console.log('user exists') + return res.status(401).json({ message: 'El email ya se encuentra registrado' }); + } + + const newUser = await models.User.create({ email, firstName, lastName, password, subdivisionId }); + console.log('created user') + + const token = await newUser.generateVerificationToken(); + console.log('got token') + + // make the url + const url = `${process.env.APP_URL}/signup/verify?token=${token.token}`; + + // send the email + try { + await AuthHelper.sendSignupEmail(newUser, url); + } catch (error) { + console.error(error); + console.log('cannot send mail') + } + + return res.status(201).json({ message: 'Usuario registrado. Por favor, valida tu cuenta', url: url }); + + } catch (error) { + console.error(error); + res.status(500).json({ message: 'Error al registrar el usuario' }); + } +} + +exports.login = async (req, res) => { + try { + const { email, password } = req.body; + + const user = await models.User.findOne({ where: { email } }); + + if (!user) { + return res.status(401).json({ message: 'Credenciales incorrectas' }); + } + + const valid = await user.comparePassword(password); + if(!valid) { + return res.status(401).json({ message: 'Credenciales incorrectas' }); + } + + if(!user.emailVerified) { + return res.status(401).json({ message: 'El email no ha sido verificado' }); + } + + const outputUser = { + id: user.id, + email: user.email, + firstName: user.firstName, + lastName: user.lastName, + role: user.role + } + + // login successful, write token, and send back to user + const token = await user.generateJWT(); + + return res.status(200).json({ token, user: outputUser }); + + } catch (error) { + console.error(error); + return res.status(500).json({ message: 'Error al iniciar sesión' }); + } +} + +exports.refreshToken = async (req, res) => { + try { + // authenticate middlerware will already check if the user is logged in + const user = req.user; + + // login successful, write token, and send back to user + return res.status(200).json({ token: user.generateJWT() }); + + } catch (error) { + console.error(error); + return res.status(500).json({ message: 'Error al refrescar el token' }); + } +} + +/** + * Verifies a user's email address + * @route GET /auth/verify/:token + * @param {string} req.params.token - The token sent to the user's email address + * @returns {Object} - A message that the user's email has been verified + */ +exports.verify = async (req, res) => { + try { + // find the matching token + const token = await models.UserToken.findOne({ where: { token: req.params.token } }); + const now = new Date(); + // if the token is not found, return an error + if (!token) { + return res.status(400).json({ message: msg.auth.error.tokenNotFound }); + } + const tokenExpired = dayjs(token.expiresAt).isBefore(now); + // if the token is expired, return an error + if (tokenExpired) { + return res.status(400).json({ message: msg.auth.error.tokenExpired }); + } + // If we found a token, find a matching user + const user = await models.User.findByPk(token.userId); + // if the user is not found return an error + if (!user) { + return res.status(400).json({ message: msg.auth.error.userNotFound }); + } + // if the user is already verified, return error + if (user.emailVerified) { + return res.status(400).json({ message: msg.auth.error.alreadyVerified }); + } + // token exists and the user is not verified, so we can verify the user + await user.update({ emailVerified: true, verifiedAt: now }); + + // delete the token + await token.destroy(); + + // Show a friendly success message + return res.status(200).json({ message: msg.auth.success.verification }); + + return res.status(200).send(html) + } catch (error) { + console.error(error); + return res.status(500).json({ message: 'Error al verificar el usuario' }); + } +} + +exports.resendToken = async (req, res) => { + try { + const { email } = req.body; + // find the user + const user = await models.User.findOne({ where: { email } }); + // if the user is not found return an error + if (!user) { + const html = await AuthHelper.getNoUserHtml(email); + return res.status(400).send(html); + } + // if the user is already verified, return error + if (user.emailVerified) { + const html = await AuthHelper.getAlreadyVerifiedHtml(user); + return res.status(400).send(html); + } + // generate a new token + const token = await user.generateVerificationToken(); + // make the url + const url = `${process.env.APP_URL}/auth/verify/${token.token}`; + // send the email + // TODO + + return res.status(200).json({ message: msg.auth.success.verificationMailResent, url: url }); + } catch (error) { + console.error(error) + return res.status(500).json({ message: msg.error.default }) + } +} + +exports.forgot = async (req, res) => { + try { + const { email } = req.body; + // find the user + const user = await models.User.findOne({ where: { email } }); + // if the user is not found return an error + // if the user is not found return an error + if (!user) { + const html = await AuthHelper.getNoUserHtml(email); + return res.status(400).send(html); + } + // generate a new token + const token = await user.generateResetToken(); + // make the url + const url = `${process.env.APP_URL}/auth/reset/${token.token}`; + // send the email + // TODO + + return res.status(200).json({ message: msg.auth.success.resetMailSent, url: url }); + } catch (error) { + console.error(error) + return res.status(500).json({ message: msg.error.default }) + } +} + +exports.resetPassword = async (req, res) => { + try { + const { token } = req.params; + const { password } = req.body; + + // find the matching token + const resetToken = await models.UserToken.findOne({ where: { token: token } }); + + // if the token is not found, return an error + if (!resetToken) { + const html = await AuthHelper.getNoTokenHtml(); + return res.status(400).send(html); + } + const now = new Date(); + const tokenExpired = dayjs(resetToken.expiresAt).isBefore(now); + // if the token is expired, return an error + if (tokenExpired) { + const html = await AuthHelper.getExpiredTokenHtml(); + return res.status(400).send(html); + } + // If we found a token, find a matching user + const user = await models.User.findByPk(resetToken.userId); + // if the user is not found return an error) + if (!user) { + const html = await AuthHelper.getNoUserHtml(email); + return res.status(400).send(html); + } + // update the user's password + await user.update({ password }); + + // delete the token + await resetToken.destroy(); + + // Show a friendly success message + return res.status(200).json({ message: msg.auth.success.passwordUpdated }); + + } catch (error) { + console.error(error) + return res.status(500).json({ message: msg.error.default }) + } +} + +exports.loggedIn = async (req, res) => { + try { + let loggedIn = false + if(req.user) { + loggedIn = true + } + return res.status(200).json({ loggedIn: loggedIn }) + } catch (error) { + console.error(error) + return res.status(500).json({ message: msg.error.default }) + } +} + +exports.getSession = async (req, res) => { + try { + if(req.user) { + return res.status(200).json({ user: req.user }) + } + return res.status(401).json({ message: 'No hay sesión activa' }) + } catch (error) { + console.error(error) + return res.status(500).json({ message: msg.error.default }) + } +} + +exports.logout = async (req, res) => { + try { + return res.status(200).json({ message: 'Sesión cerrada' }) + } catch (error) { + console.error(error) + return res.status(500).json({ message: msg.error.default }) + } +} \ No newline at end of file diff --git a/controllers/blogController.js b/controllers/blogController.js new file mode 100644 index 0000000..559940e --- /dev/null +++ b/controllers/blogController.js @@ -0,0 +1,86 @@ +const models = require('../models'); +const dayjs = require('dayjs'); +const msg = require('../utils/messages'); +const { selectFields } = require('express-validator/lib/field-selection'); + +exports.getAll = async (req, res) => { + try { + // get from query params page and limit (if not provided, default to 1 and 10) + const page = parseInt(req.query.page) || 1; + const limit = parseInt(req.query.limit) || 10; + const categoryId = req.query.category || null; + const sectionId = req.query.section || null; + + // calculateOffset + const offset = (page - 1) * limit; + + const query = { + limit: limit, + offset: offset, + order: [['createdAt', 'DESC']], + include: [ + { + model: models.BlogCategory, + as: 'category', + attributes: ['name'], + }, + { + model: models.BlogSection, + as: 'section', + attributes: ['name'], + }, + ], + where: {}, + order: [['createdAt', 'DESC']], + } + + if (categoryId) { + query.where.categoryId = categoryId; + } + + if (sectionId) { + query.where.sectionId = sectionId; + } + + const entries = await models.BlogEntry.findAndCountAll(query) + + // return the entries + return res.status(200).json(entries); + } catch (error) { + console.error(error); + return res.status(500).json({ message: msg.error.default }); + } +} + +exports.getOne = async (req, res) => { + try { + // get query param slug + const slug = req.params.slug || null; + + if(!slug) { + return res.status(400).json({ message: msg.error.default }); + } + + // find the entry + const entry = models.BlogEntry.findOne({ + where: { slug }, + include: [ + { + model: models.BlogCategory, + as: 'category', + attributes: ['id', 'name'], + }, + { + model: models.BlogSection, + as: 'section', + attributes: ['id', 'name'], + }, + ] + }); + + return res.status(200).json(entry); + } catch (error) { + console.error(error) + return res.status(500).json({ message: msg.error.default }); + } +} \ No newline at end of file diff --git a/controllers/initiativeController.js b/controllers/initiativeController.js new file mode 100644 index 0000000..da819bb --- /dev/null +++ b/controllers/initiativeController.js @@ -0,0 +1,117 @@ +const models = require('../models'); +const dayjs = require('dayjs'); +const msg = require('../utils/messages'); + +exports.getAll = async (req, res) => { + try { + // get from query params page and limit (if not provided, default to 1 and 10) + const page = req.query.page || 1; + const limit = req.query.limit || 10; + + // calculateOffset + const offset = (page - 1) * limit; + + const initiatives = await models.Initiative.findAndCountAll({ + limit: limit, + offset: offset, + order: [['createdAt', 'DESC']], + include: [ + { + model: models.User, + as: 'author', + attributes: ['firstName', 'lastName'], + }, + { + model: models.Subdivision, + as: 'subdivision', + attributes: ['name'], + }, + { + model: models.InitiativeContact, + as: 'contact', + attributes: ['fullname'], + }, + { + model: models.Dimension, + as: 'dimensions', + attributes: ['id', 'name'], + through: { attributes: [] }, + }, + ] + }) + + // return the initiatives + return res.status(200).json(initiatives); + } catch (error) { + console.error(error); + res.status(500).json({ message: 'Error al obtener las iniciativas' }); + } +} + + +exports.create = async (req, res) => { + try { + + } catch (error) { + console.error(error); + res.status(500).json({ message: 'Error al crear la iniciativa' }); + } +} + +exports.getById = async (req, res) => { + try { + const initiativeId = req.params.id; + + const initiative = await models.Initiative.findByPk(initiativeId, { + include: [ + { + model: models.User, + as: 'author', + attributes: ['firstName', 'lastName'], + }, + { + model: models.Subdivision, + as: 'subdivision', + attributes: ['name'], + }, + { + model: models.InitiativeContact, + as: 'contact', + attributes: ['fullname'], + }, + { + model: models.Dimension, + as: 'dimensions', + attributes: ['id', 'name'], + through: { attributes: [] }, + }, + ] + }) + + // return the initiative + return res.status(200).json(initiative); + } catch (error) { + console.error(error); + res.status(500).json({ message: 'Error al obtener la iniciativa' }); + } +} + +exports.update = async (req, res) => { + try { + const initiativeId = req.params.id; + + } catch (error) { + console.error(error); + res.status(500).json({ message: 'Error al actualizar la iniciativa' }); + } +} + +exports.delete = async (req, res) => { + try { + const initiativeId = req.params.id; + + } catch (error) { + console.error(error); + res.status(500).json({ message: 'Error al eliminar la iniciativa' }); + } +} \ No newline at end of file diff --git a/controllers/userController.js b/controllers/userController.js new file mode 100644 index 0000000..e69de29 diff --git a/controllers/utilsController.js b/controllers/utilsController.js new file mode 100644 index 0000000..f6efeea --- /dev/null +++ b/controllers/utilsController.js @@ -0,0 +1,66 @@ +const models = require('../models'); +const dayjs = require('dayjs'); +const msg = require('../utils/messages'); + +exports.getSubdivisions = async (req, res) => { + try { + // get all subdivisions + const subdivisions = await models.Subdivision.findAll({ + attributes: ['id', 'name', 'type'], + include: [ + { + model: models.City, + as: 'city', + attributes: ['id', 'name'], + } + ] + }); + + return res.status(200).json(subdivisions); + } catch (error) { + console.error(error); + res.status(500).json({ message: msg.error.default }); + } +} + +exports.somethingForUsers = async (req, res) => { + try { + console.log('req.user', req.user); + console.log('got here!') + return res.status(200).json({ message: 'This is something for users' }); + } catch (error) { + console.error(error); + res.status(500).json({ message: msg.error.default }); + } +} + +exports.generateBlogPosts = async (req, res) => { + try { + const categories = await models.BlogCategory.findAll(); + const sections = await models.BlogSection.findAll(); + const authors = await models.User.findAll(); + + for(let i = 0; i < 100; i++) { + const category = categories[Math.floor(Math.random() * categories.length)]; + const section = sections[Math.floor(Math.random() * sections.length)]; + const author = authors[Math.floor(Math.random() * authors.length)]; + + await models.BlogEntry.create({ + title: `Post ${i + 1}`, + subtitle: `This is the subtitle for post ${i + 1}`, + text: `This is the content for post ${i + 1}`, + imageUrl: 'https://placecats.com/300/200', + slug: `post-${i + 1}`, + authorId: author.id, + categoryId: category.id, + sectionId: section.id, + publishedAt: dayjs().subtract(Math.floor(Math.random() * 365), 'day').toDate(), + }); + } + + return res.status(200).json({ message: 'Blog posts created' }); + } catch (error) { + console.error(error); + res.status(500).json({ message: msg.error.default }); + } +} \ No newline at end of file diff --git a/helpers/authHelper.js b/helpers/authHelper.js new file mode 100644 index 0000000..3f2ece7 --- /dev/null +++ b/helpers/authHelper.js @@ -0,0 +1,130 @@ +const mailer = require('../services/mailer'); +// const agenda = require('../services/agenda'); +/** + * Send a verification email to the user + * @param {Object} user - the user object + * @param {String} token - the token to send to the email user + */ +exports.sendSignupEmail = async (user, url) => { + try { + // render the email html + const html = await mailer.renderEmailHtml('signup', { + url: url + }) + // send the email + await mailer.sendNow(user.email, "Confirmá tu registro", html) + return; + } catch (error) { + throw error; + } +} + +/** + * Send a verification email to the user + * @param {Object} user - the user object + * @param {String} token - the token to send to the email user + */ +exports.sendVerificationEmail = async (user, url) => { + try { + // render the email html + const html = await mailer.renderEmailHtml('signup', { + url: url + }) + // send the email + await mailer.sendNow(user.email, "Confirmá tu registro", html) + return; + } catch (error) { + throw error; + } +} + +/** + * Send a password reset email to the user + * @param {*} user + * @param {*} url + * @returns + */ +exports.sendPasswordResetEmail = async (user, url) => { + try { + // render the email html + const html = await mailer.renderEmailHtml('reset', { + url: url + }) + // send the email + await mailer.sendNow(user.email, "Restablecer tu contraseña", html) + return; + } catch (error) { + throw error; + } +} + +/** + * Get the html for the account verification email + * @param {*} user + * @returns + */ +exports.getSuccessAccountVerificationHtml = async (user) => { + try { + return await mailer.renderHtml('auth/successVerification', { + appUrl: process.env.APP_URL + }) + } catch (error) { + throw error; + } +} + +/** + * Get the html for the password reset email + * @param {*} user + * @returns + */ +exports.getAlreadyVerifiedHtml = async (user) => { + try { + return await mailer.renderHtml('auth/alreadyVerified', { + appUrl: process.env.APP_URL + }) + } catch (error) { + throw error; + } +} + + +exports.getNoTokenHtml = async (user) => { + try { + return await mailer.renderHtml('auth/noToken', { + appUrl: process.env.APP_URL + }) + } catch (error) { + throw error; + } +} + +exports.getExpiredTokenHtml = async (user) => { + try { + return await mailer.renderHtml('auth/expiredToken', { + appUrl: process.env.APP_URL + }) + } catch (error) { + throw error; + } +} + +exports.getNoUserHtml = async (user) => { + try { + return await mailer.renderHtml('auth/noUser', { + appUrl: process.env.APP_URL + }) + } catch (error) { + throw error; + } +} + +exports.getGenericErrorHtml = async (user) => { + try { + return await mailer.renderHtml('auth/error', { + appUrl: process.env.APP_URL + }) + } catch (error) { + throw error; + } +} \ No newline at end of file diff --git a/index.js b/index.js new file mode 100644 index 0000000..e9ed5b2 --- /dev/null +++ b/index.js @@ -0,0 +1,77 @@ +require('dotenv').config(); + +const cors = require('cors'); +const express = require('express') +const { sequelize } = require('./models'); +// const passport = require('./services/auth'); +const passport = require("passport"); +const migrations = require('./services/migrations'); +const dayjs = require('dayjs'); +const utc = require('dayjs/plugin/utc') +const timezone = require('dayjs/plugin/timezone') // dependent on utc plugin + +// Set up timezone argentina for dayjs +dayjs.extend(utc) +dayjs.extend(timezone) +dayjs.tz.setDefault(process.env.DEFAULT_TIMEZONE || 'America/Argentina/Buenos_Aires'); + +// Setting up port +let PORT = process.env.APP_PORT || 3000; + +//=== 1 - CREATE APP +// Creating express app and configuring middleware needed for authentication +const app = express(); + +let appOrigins = ['http://localhost:3001'] +if(process.env.APP_URL){ + appOrigins = process.env.APP_URL.split(',') +} + +app.use(cors({ + origin: appOrigins, + methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'], + // allow content disposition for file download + exposedHeaders: ['Content-Disposition'], + credentials: true +})); + +app.use(express.json()); +app.use(express.urlencoded({ extended: false })); + +app.use(passport.initialize()); +require("./middlewares/jwt")(passport); + + +//=== 4 - CONFIGURE ROUTES +//Configure Route +require('./routes/index')(app); + + +async function assertDatabaseConnectionOk() { + console.log(`- Checking database connection...`); + try { + await sequelize.authenticate(); + console.log('- Database connection OK!'); + } catch (error) { + console.log('- Unable to connect to the database:'); + console.log(error.message); + process.exit(1); + } +} + +async function init() { + + // Check database connection + await assertDatabaseConnectionOk(); + + // Checking migrations + await migrations.checkPendingMigrations(); + // Run Migrations (if any) + await migrations.migrate(); + + //=== 5 - START SERVER + app.listen(PORT, () => console.log('- Server running on http://localhost:' + PORT + '/')); + +} + +init(); diff --git a/middlewares/authenticate.js b/middlewares/authenticate.js new file mode 100644 index 0000000..d374be8 --- /dev/null +++ b/middlewares/authenticate.js @@ -0,0 +1,19 @@ +const passport = require("passport"); + +module.exports = (req, res, next) => { + // if there is no token, continue + // if (!req.headers.authorization) return next(); + // console.log('optionalAuthenticate') + passport.authenticate('jwt', function (err, user, info) { + + // console.log('-- middleware/authenticate - user: ', user) + if (err) return next(err); + + if (!user) { + return next(); + } + + req.user = user; + return next(); + })(req, res, next); +}; \ No newline at end of file diff --git a/middlewares/authorize.js b/middlewares/authorize.js new file mode 100644 index 0000000..b4781e9 --- /dev/null +++ b/middlewares/authorize.js @@ -0,0 +1,41 @@ +const passport = require("passport"); +const msg = require('../utils/messages.js'); + +module.exports = (roles) => (req, res, next) => { + // optionalAuthenticate runs first, so it will set req.user if there is a token + + // if there is no user, dont continue + if (!req.user) { + console.error('authenticate.js - No Token Provided!'); + return res.status(401).json({ message: msg.auth.error.noToken }); + } + // If roles is not defined, allow access to all roles + if (roles == undefined || roles == null) { + return next(); + } + + const userRole = req.user.role; + + if (Array.isArray(roles)) { + // If roles is an array, check if the user has any of these roles + if (roles.includes(userRole)) { + return next(); // User has the required role, allow access + } else { + console.error('authenticate.js - User does not have the required role'); + return res.status(403).json({ message: msg.error.default }); // User doesn't have the required role + } + } else if (typeof roles === 'string') { + // If roles is a single string, check if the user has this role + if (userRole === roles) { + return next(); // User has the required role, allow access + } else { + console.error('authenticate.js - User does not have the required role'); + return res.status(403).json({ message: msg.error.default }); // User doesn't have the required role + } + } else { + console.error('authenticate.js - Invalid role configuration'); + return res.status(500).json({ message: msg.error.default }); // Invalid role configuration + } + +} + \ No newline at end of file diff --git a/middlewares/jwt.js b/middlewares/jwt.js new file mode 100644 index 0000000..ccad37d --- /dev/null +++ b/middlewares/jwt.js @@ -0,0 +1,24 @@ +const JwtStrategy = require('passport-jwt').Strategy; +const ExtractJwt = require('passport-jwt').ExtractJwt; +const User = require('../models').User; + +const opts = { + jwtFromRequest: ExtractJwt.fromAuthHeaderAsBearerToken(), + secretOrKey: process.env.JWT_SECRET +}; + +module.exports = passport => { + passport.use( + new JwtStrategy(opts, (jwt_payload, done) => { + console.log(jwt_payload) + User.findByPk(jwt_payload.id) + .then(user => { + if (user) return done(null, user); + return done(null, false); + }) + .catch(err => { + return done(err, false, { message: '[JWT Middleware] Hubo un error en la autenticación' }); + }); + }) + ); +}; \ No newline at end of file diff --git a/middlewares/requiresAnon.js b/middlewares/requiresAnon.js new file mode 100644 index 0000000..3a316f9 --- /dev/null +++ b/middlewares/requiresAnon.js @@ -0,0 +1,15 @@ +/** + * This middleware checks if the request has a req.user object. + * If it does, it returns a 403 error. + * This middleware is used in routes that should only be accessed by anonymous users. +*/ + +module.exports = (req, res, next) => { + if(req.user) { + console.error('requiresAnon - User is already logged in'); + return res.status(403).json({ message: 'You are already logged in' }); + } + + // No user, continue + next(); +} \ No newline at end of file diff --git a/middlewares/validate.js b/middlewares/validate.js new file mode 100644 index 0000000..7102f2b --- /dev/null +++ b/middlewares/validate.js @@ -0,0 +1,22 @@ +const {validationResult} = require('express-validator'); + +module.exports = (req, res, next) => { + const results = validationResult(req); + // console.dir(results) + // if (!results.isEmpty()) { + // const errors = results.errors.map(err => { + // return { + // field: err.path, + // // Note: don't send the value, sensitive data could be leaked + // // value: err.value, + // message: req.__(err.msg.includes('validationError.') ? err.msg : `validationError.${err.msg}`) + // } + // }); + // return res.status(422).json({message: req.__('validationError.defaultMessage'), errors: errors}); + // } + if (!results.isEmpty()) { + return res.status(422).send({ message: 'Hubo un error en la validación de los datos', errors: results.array() }); + } + + next(); +}; \ No newline at end of file diff --git a/migrations/00001-create-city.js b/migrations/00001-create-city.js new file mode 100644 index 0000000..0c58203 --- /dev/null +++ b/migrations/00001-create-city.js @@ -0,0 +1,37 @@ +const {Sequelize} = require('sequelize') + +module.exports = { + async up({context: queryInterface}) { + await queryInterface.createTable('Cities', { + id: { + allowNull: false, + autoIncrement: true, + primaryKey: true, + type: Sequelize.DataTypes.INTEGER + }, + name: { + type: Sequelize.DataTypes.STRING, + allowNull: false + }, + createdAt: { + type: Sequelize.DataTypes.DATE, + defaultValue: Sequelize.fn('now'), + allowNull: false, + }, + updatedAt: { + type: Sequelize.DataTypes.DATE, + defaultValue: Sequelize.fn('now'), + allowNull: false, + } + }); + await queryInterface.bulkInsert('Cities', [ + // cali + { name: 'Cali' }, + // bogota + { name: 'Bogota' }, + ]); + }, + async down({context: queryInterface}) { + await queryInterface.dropTable('Cities'); + } +}; \ No newline at end of file diff --git a/migrations/00002-create-subdivision.js b/migrations/00002-create-subdivision.js new file mode 100644 index 0000000..ade7c31 --- /dev/null +++ b/migrations/00002-create-subdivision.js @@ -0,0 +1,252 @@ +const {Sequelize} = require('sequelize') + +module.exports = { + async up({context: queryInterface}) { + await queryInterface.createTable('Subdivisions', { + id: { + allowNull: false, + autoIncrement: true, + primaryKey: true, + type: Sequelize.DataTypes.INTEGER + }, + cityId: { + type: Sequelize.DataTypes.INTEGER, + allowNull: false, + references: { + model: 'Cities', + key: 'id' + } + }, + name: { + type: Sequelize.DataTypes.STRING, + allowNull: false + }, + type: { + type: Sequelize.DataTypes.STRING, + allowNull: false + }, + createdAt: { + type: Sequelize.DataTypes.DATE, + defaultValue: Sequelize.fn('now'), + allowNull: false, + }, + updatedAt: { + type: Sequelize.DataTypes.DATE, + defaultValue: Sequelize.fn('now'), + allowNull: false, + } + }); + await queryInterface.bulkInsert('Subdivisions', [ + // cityId = 1 + // Corregimiento El Hormiguero + // Corregimiento El Saladito + // Corregimiento Felidia + // Corregimiento Golondrinas + // Corregimiento La Buitrera + // Corregimiento La Castilla + // Corregimiento La Elvira + // Corregimiento La Leonera + // Corregimiento La Paz + // Corregimiento Los Andes + // Corregimiento Montebello + // Corregimiento Navarro + // Corregimiento Pance + // Corregimiento Pichindé + // Corregimiento Villacarmelo + { + cityId: 1, + name: 'Corregimiento El Hormiguero', + type: 'Comuna', + }, + { + cityId: 1, + name: 'Corregimiento El Saladito', + type: 'Comuna', + }, + { + cityId: 1, + name: 'Corregimiento Felidia', + type: 'Comuna', + }, + { + cityId: 1, + name: 'Corregimiento Golondrinas', + type: 'Comuna', + }, + { + cityId: 1, + name: 'Corregimiento La Buitrera', + type: 'Comuna', + }, + { + cityId: 1, + name: 'Corregimiento La Castilla', + type: 'Comuna', + }, + { + cityId: 1, + name: 'Corregimiento La Elvira', + type: 'Comuna', + }, + { + cityId: 1, + name: 'Corregimiento La Leonera', + type: 'Comuna', + }, + { + cityId: 1, + name: 'Corregimiento La Paz', + type: 'Comuna', + }, + { + cityId: 1, + name: 'Corregimiento Los Andes', + type: 'Comuna', + }, + { + cityId: 1, + name: 'Corregimiento Montebello', + type: 'Comuna', + }, + { + cityId: 1, + name: 'Corregimiento Navarro', + type: 'Comuna', + }, + { + cityId: 1, + name: 'Corregimiento Pance', + type: 'Comuna', + }, + { + cityId: 1, + name: 'Corregimiento Pichindé', + type: 'Comuna', + }, + { + cityId: 1, + name: 'Corregimiento Villacarmelo', + type: 'Comuna', + }, + // cityId = 2 + // Usaquén + // Chapinero + // Santa Fe + // San Cristóbal + // Usme + // Tunjuelito + // Bosa + // Kennedy + // Fontibón + // Engativá + // Suba + // Barrios Unidos + // Teusaquillo + // Los Mártires + // Antonio Nariño + // Puente Aranda + // Candelaria + // Rafael Uribe Uribe + // Ciudad Bolívar + // Sumapaz + { + cityId: 2, + name: 'Usaquén', + type: 'Localidad', + }, + { + cityId: 2, + name: 'Chapinero', + type: 'Localidad', + }, + { + cityId: 2, + name: 'Santa Fe', + type: 'Localidad', + }, + { + cityId: 2, + name: 'San Cristóbal', + type: 'Localidad', + }, + { + cityId: 2, + name: 'Usme', + type: 'Localidad', + }, + { + cityId: 2, + name: 'Tunjuelito', + type: 'Localidad', + }, + { + cityId: 2, + name: 'Bosa', + type: 'Localidad', + }, + { + cityId: 2, + name: 'Kennedy', + type: 'Localidad', + }, + { + cityId: 2, + name: 'Fontibón', + type: 'Localidad', + }, + { + cityId: 2, + name: 'Engativá', + type: 'Localidad', + }, + { + cityId: 2, + name: 'Suba', + type: 'Localidad', + }, + { + cityId: 2, + name: 'Barrios Unidos', + type: 'Localidad', + }, + { + cityId: 2, + name: 'Teusaquillo', + type: 'Localidad', + }, + { + cityId: 2, + name: 'Los Mártires', + type: 'Localidad', + }, + { + cityId: 2, + name: 'Antonio Nariño', + type: 'Localidad', + }, + { + cityId: 2, + name: 'Puente Aranda', + type: 'Localidad', + }, + { + cityId: 2, + name: 'Candelaria', + type: 'Localidad', + }, + { + cityId: 2, + name: 'Rafael Uribe Uribe', + type: 'Localidad', + }, + { + cityId: 2, + name: 'Ciudad Bolívar', + type: 'Localidad', + } + ]); + }, + async down({context: queryInterface}) { + await queryInterface.dropTable('Subdivisions'); + } +}; \ No newline at end of file diff --git a/migrations/00003-create-user.js b/migrations/00003-create-user.js new file mode 100644 index 0000000..5960a11 --- /dev/null +++ b/migrations/00003-create-user.js @@ -0,0 +1,70 @@ +const { Sequelize } = require('sequelize') + +module.exports = { + async up({context: queryInterface}) { + await queryInterface.createTable('Users', { + id: { + allowNull: false, + autoIncrement: true, + primaryKey: true, + type: Sequelize.DataTypes.INTEGER + }, + firstName: { + type: Sequelize.DataTypes.STRING + }, + lastName: { + type: Sequelize.DataTypes.STRING + }, + email: { + type: Sequelize.DataTypes.STRING, + unique: true, + allowNull: false, + }, + password: { + type: Sequelize.DataTypes.STRING, + allowNull: false, + }, + role: { + type: Sequelize.DataTypes.STRING, + defaultValue: 'user', + allowNull: false, + }, + subdivisionId: { + type: Sequelize.DataTypes.INTEGER, + allowNull: true, + references: { + model: { + tableName: 'Subdivisions', + }, + key: 'id' + } + }, + emailVerified: { + type: Sequelize.DataTypes.BOOLEAN, + defaultValue: false, + allowNull: false, + }, + verifiedAt: { + type: Sequelize.DataTypes.DATE, + allowNull: true, + }, + lastLogin: { + type: Sequelize.DataTypes.DATE, + allowNull: true, + }, + createdAt: { + type: Sequelize.DataTypes.DATE, + defaultValue: Sequelize.fn('now'), + allowNull: false, + }, + updatedAt: { + type: Sequelize.DataTypes.DATE, + defaultValue: Sequelize.fn('now'), + allowNull: false, + } + }); + }, + async down({context: queryInterface}) { + await queryInterface.dropTable('Users'); + } +}; \ No newline at end of file diff --git a/migrations/00004-create-userToken.js b/migrations/00004-create-userToken.js new file mode 100644 index 0000000..6165ab4 --- /dev/null +++ b/migrations/00004-create-userToken.js @@ -0,0 +1,45 @@ +const { Sequelize } = require('sequelize') + +module.exports = { + async up({context: queryInterface}) { + await queryInterface.createTable('UserTokens', { + id: { + allowNull: false, + autoIncrement: true, + primaryKey: true, + type: Sequelize.DataTypes.INTEGER + }, + userId: { + type: Sequelize.DataTypes.INTEGER, + allowNull: false, + references: { + model: 'Users', + key: 'id' + } + }, + token: { + type: Sequelize.DataTypes.STRING, + allowNull: false + }, + event: { + type: Sequelize.DataTypes.STRING, + allowNull: false + }, + createdAt: { + type: Sequelize.DataTypes.DATE, + defaultValue: Sequelize.fn('now'), + allowNull: false, + }, + expiresAt: { + type: Sequelize.DataTypes.DATE, + allowNull: false, + } + }, { + timestamps: true, + updatedAt: false + }); + }, + async down({context: queryInterface}) { + await queryInterface.dropTable('UserTokens'); + } +}; \ No newline at end of file diff --git a/migrations/00005-create-blogCategory.js b/migrations/00005-create-blogCategory.js new file mode 100644 index 0000000..f30e04e --- /dev/null +++ b/migrations/00005-create-blogCategory.js @@ -0,0 +1,39 @@ +const {Sequelize} = require('sequelize') + +module.exports = { + async up({context: queryInterface}) { + await queryInterface.createTable('BlogCategories', { + id: { + allowNull: false, + autoIncrement: true, + primaryKey: true, + type: Sequelize.DataTypes.INTEGER + }, + name: { + type: Sequelize.DataTypes.STRING, + allowNull: false + }, + createdAt: { + type: Sequelize.DataTypes.DATE, + defaultValue: Sequelize.fn('now'), + allowNull: false, + }, + updatedAt: { + type: Sequelize.DataTypes.DATE, + defaultValue: Sequelize.fn('now'), + allowNull: false, + } + }); + await queryInterface.bulkInsert('BlogCategories', [ + { name: 'Economia', }, + { name: 'Politica', }, + { name: 'Deportes', }, + { name: 'Cultura', }, + { name: 'Tecnologia', }, + { name: 'Entretenimiento', }, + ]); + }, + async down({context: queryInterface}) { + await queryInterface.dropTable('BlogCategories'); + } +}; \ No newline at end of file diff --git a/migrations/00006-create-blogSection.js b/migrations/00006-create-blogSection.js new file mode 100644 index 0000000..d834500 --- /dev/null +++ b/migrations/00006-create-blogSection.js @@ -0,0 +1,35 @@ +const {Sequelize} = require('sequelize') + +module.exports = { + async up({context: queryInterface}) { + await queryInterface.createTable('BlogSections', { + id: { + allowNull: false, + autoIncrement: true, + primaryKey: true, + type: Sequelize.DataTypes.INTEGER + }, + name: { + type: Sequelize.DataTypes.STRING, + allowNull: false + }, + createdAt: { + type: Sequelize.DataTypes.DATE, + defaultValue: Sequelize.fn('now'), + allowNull: false, + }, + updatedAt: { + type: Sequelize.DataTypes.DATE, + defaultValue: Sequelize.fn('now'), + allowNull: false, + } + }); + await queryInterface.bulkInsert('BlogSections', [ + { name: 'Movilizatorio' }, + { name: 'Juventudes' }, + ]); + }, + async down({context: queryInterface}) { + await queryInterface.dropTable('BlogSections'); + } +}; \ No newline at end of file diff --git a/migrations/00007-create-blogEntry.js b/migrations/00007-create-blogEntry.js new file mode 100644 index 0000000..696b31a --- /dev/null +++ b/migrations/00007-create-blogEntry.js @@ -0,0 +1,60 @@ +const {Sequelize} = require('sequelize') + +module.exports = { + async up({context: queryInterface}) { + await queryInterface.createTable('BlogEntries', { + id: { + allowNull: false, + autoIncrement: true, + primaryKey: true, + type: Sequelize.DataTypes.INTEGER + }, + sectionId: { + type: Sequelize.DataTypes.INTEGER, + references: { + model: 'BlogSections', + key: 'id' + } + }, + categoryId: { + type: Sequelize.DataTypes.INTEGER, + references: { + model: 'BlogCategories', + key: 'id' + } + }, + title: { + type: Sequelize.DataTypes.STRING + }, + slug: { + type: Sequelize.DataTypes.STRING + }, + subtitle: { + type: Sequelize.DataTypes.STRING, + allowNull: true + }, + text: { + type: Sequelize.DataTypes.TEXT + }, + imageUrl: { + type: Sequelize.DataTypes.STRING, + allowNull: true + }, + createdAt: { + type: Sequelize.DataTypes.DATE, + defaultValue: Sequelize.fn('now'), + allowNull: false, + }, + updatedAt: { + type: Sequelize.DataTypes.DATE, + defaultValue: Sequelize.fn('now'), + allowNull: false, + } + },{ + timestamp: true, + }); + }, + async down({context: queryInterface}) { + await queryInterface.dropTable('BlogEntries'); + } +}; \ No newline at end of file diff --git a/migrations/00008-create-dimensions.js b/migrations/00008-create-dimensions.js new file mode 100644 index 0000000..502f3a9 --- /dev/null +++ b/migrations/00008-create-dimensions.js @@ -0,0 +1,41 @@ +const {Sequelize} = require('sequelize') + +module.exports = { + async up({context: queryInterface}) { + await queryInterface.createTable('Dimensions', { + id: { + allowNull: false, + autoIncrement: true, + primaryKey: true, + type: Sequelize.DataTypes.INTEGER + }, + name: { + type: Sequelize.DataTypes.STRING, + allowNull: false + }, + createdAt: { + type: Sequelize.DataTypes.DATE, + defaultValue: Sequelize.fn('now'), + allowNull: false, + }, + updatedAt: { + type: Sequelize.DataTypes.DATE, + defaultValue: Sequelize.fn('now'), + allowNull: false, + } + }); + await queryInterface.bulkInsert('Dimensions', [ + { name: 'Educación de calidad', }, + { name: 'Empleo digno', }, + { name: 'Espacios públicos seguros', }, + { name: 'Salud Integral', }, + { name: 'Participación política juvenil', }, + { name: 'Transporte público digno', }, + { name: 'Ambiente sano', }, + { name: 'Ocio y cultura', } + ]); + }, + async down({context: queryInterface}) { + await queryInterface.dropTable('Dimensions'); + } +}; \ No newline at end of file diff --git a/migrations/00009-create-initiativeContact.js b/migrations/00009-create-initiativeContact.js new file mode 100644 index 0000000..7c81337 --- /dev/null +++ b/migrations/00009-create-initiativeContact.js @@ -0,0 +1,47 @@ +const {Sequelize} = require('sequelize') + +module.exports = { + async up({context: queryInterface}) { + await queryInterface.createTable('InitiativeContacts', { + id: { + allowNull: false, + autoIncrement: true, + primaryKey: true, + type: Sequelize.DataTypes.INTEGER + }, + fullname: { + type: Sequelize.DataTypes.STRING, + allowNull: false + }, + email: { + type: Sequelize.DataTypes.STRING, + allowNull: false, + validate: { + isEmail: true, + }, + }, + phone: { + type: Sequelize.DataTypes.STRING, + allowNull: false, + }, + keepPrivate: { + type: Sequelize.DataTypes.BOOLEAN, + allowNull: false, + defaultValue: false, + }, + createdAt: { + type: Sequelize.DataTypes.DATE, + defaultValue: Sequelize.fn('now'), + allowNull: false, + }, + updatedAt: { + type: Sequelize.DataTypes.DATE, + defaultValue: Sequelize.fn('now'), + allowNull: false, + } + }); + }, + async down({context: queryInterface}) { + await queryInterface.dropTable('InitiativeContacts'); + } +}; \ No newline at end of file diff --git a/migrations/00010-create-initiative.js b/migrations/00010-create-initiative.js new file mode 100644 index 0000000..088672d --- /dev/null +++ b/migrations/00010-create-initiative.js @@ -0,0 +1,62 @@ +const { Sequelize } = require('sequelize') + +module.exports = { + async up({context: queryInterface}) { + await queryInterface.createTable('Initiatives', { + id: { + allowNull: false, + autoIncrement: true, + primaryKey: true, + type: Sequelize.DataTypes.INTEGER + }, + authorId: { + type: Sequelize.DataTypes.INTEGER, + references: { + model: 'Users', + key: 'id' + } + }, + contactId: { + type: Sequelize.DataTypes.INTEGER, + allowNull: false, + references: { + model: 'InitiativeContacts', + key: 'id' + } + }, + subdivisionId: { + type: Sequelize.DataTypes.INTEGER, + allowNull: false, + references: { + model: 'Subdivisions', + key: 'id' + } + }, + name: { + type: Sequelize.DataTypes.STRING, + allowNull: false, + }, + description: { + type: Sequelize.DataTypes.TEXT, + allowNull: false, + }, + needsAndOffers: { + type: Sequelize.DataTypes.TEXT, + allowNull: false, + }, + createdAt: { + type: Sequelize.DataTypes.DATE, + defaultValue: Sequelize.fn('now'), + allowNull: false, + }, + updatedAt: { + type: Sequelize.DataTypes.DATE, + defaultValue: Sequelize.fn('now'), + allowNull: false, + } + }); + }, + async down({context: queryInterface}) { + await queryInterface.dropTable('Initiatives'); + } +}; \ No newline at end of file diff --git a/migrations/00011-create-initiativeDimension.js b/migrations/00011-create-initiativeDimension.js new file mode 100644 index 0000000..1dd48da --- /dev/null +++ b/migrations/00011-create-initiativeDimension.js @@ -0,0 +1,29 @@ +const { Sequelize } = require('sequelize') + +module.exports = { + async up({context: queryInterface}) { + await queryInterface.createTable('InitiativeDimensions', { + initiativeId: { + type: Sequelize.DataTypes.INTEGER, + primaryKey: true, + allowNull: false, + references: { + model: 'Initiatives', + key: 'id' + } + }, + dimensionId: { + type: Sequelize.DataTypes.INTEGER, + primaryKey: true, + allowNull: false, + references: { + model: 'Dimensions', + key: 'id' + } + }, + }); + }, + async down({context: queryInterface}) { + await queryInterface.dropTable('Initiatives'); + } +}; \ No newline at end of file diff --git a/models/blogCategory.js b/models/blogCategory.js new file mode 100644 index 0000000..492ff91 --- /dev/null +++ b/models/blogCategory.js @@ -0,0 +1,28 @@ +// 'use strict'; +const { + Model +} = require('sequelize'); +module.exports = (sequelize, DataTypes) => { + class BlogCategory extends Model { + /** + * Helper method for defining associations. + * This method is not a part of Sequelize lifecycle. + * The `models/index` file will call this method automatically. + */ + static associate(models) { + // define association here + BlogCategory.hasMany(models.BlogEntry, { + foreignKey: 'categoryId', + }) + } + } + BlogCategory.init({ + name: DataTypes.STRING, + }, { + sequelize, + timestamps: true, + modelName: 'BlogCategory', + tableName: 'BlogCategories', + }); + return BlogCategory; +}; \ No newline at end of file diff --git a/models/blogEntry.js b/models/blogEntry.js new file mode 100644 index 0000000..97870e3 --- /dev/null +++ b/models/blogEntry.js @@ -0,0 +1,48 @@ +// 'use strict'; +const { + Model +} = require('sequelize'); +module.exports = (sequelize, DataTypes) => { + class BlogEntry extends Model { + /** + * Helper method for defining associations. + * This method is not a part of Sequelize lifecycle. + * The `models/index` file will call this method automatically. + */ + static associate(models) { + // define association here + BlogEntry.belongsTo(models.BlogCategory,{ + foreignKey: 'categoryId', + as: 'category' + }) + BlogEntry.belongsTo(models.BlogSection,{ + foreignKey: 'sectionId', + as: 'section' + }) + } + } + BlogEntry.init({ + sectionId: DataTypes.INTEGER, + categoryId: DataTypes.INTEGER, + title: DataTypes.STRING, + slug: DataTypes.STRING, + subtitle: { + type: DataTypes.STRING, + allowNull: true + }, + text: DataTypes.TEXT, + imageUrl: { + type: DataTypes.STRING, + validate: { + isUrl: true + }, + allowNull: true + } + }, { + sequelize, + timestamps: true, + modelName: 'BlogEntry', + tableName: 'BlogEntries', + }); + return BlogEntry; +}; \ No newline at end of file diff --git a/models/blogSection.js b/models/blogSection.js new file mode 100644 index 0000000..23b2eb3 --- /dev/null +++ b/models/blogSection.js @@ -0,0 +1,28 @@ +'use strict'; +const { + Model +} = require('sequelize'); +module.exports = (sequelize, DataTypes) => { + class BlogSection extends Model { + /** + * Helper method for defining associations. + * This method is not a part of Sequelize lifecycle. + * The `models/index` file will call this method automatically. + */ + static associate(models) { + // define association here + BlogSection.hasMany(models.BlogEntry, { + foreignKey: 'sectionId', + }) + } + } + BlogSection.init({ + name: DataTypes.STRING, + }, { + sequelize, + timestamps: true, + modelName: 'BlogSection', + tableName: 'BlogSections', + }); + return BlogSection; +}; \ No newline at end of file diff --git a/models/city.js b/models/city.js new file mode 100644 index 0000000..3b0a833 --- /dev/null +++ b/models/city.js @@ -0,0 +1,27 @@ +const { Model } = require('sequelize'); + +module.exports = (sequelize, DataTypes) => { + class City extends Model { + /** + * Helper method for defining associations. + * This method is not a part of Sequelize lifecycle. + * The `models/index` file will call this method automatically. + */ + static associate(models) { + // define association here + City.hasMany(models.Subdivision, { + foreignKey: 'cityId', + as: 'subdivisions' + }) + } + } + City.init({ + name: DataTypes.STRING, + }, { + sequelize, + timestamps: true, + modelName: 'City', + tableName: 'Cities', + }); + return City; +}; \ No newline at end of file diff --git a/models/dimension.js b/models/dimension.js new file mode 100644 index 0000000..a63b816 --- /dev/null +++ b/models/dimension.js @@ -0,0 +1,33 @@ +'use strict'; +const { Model } = require('sequelize'); +module.exports = (sequelize, DataTypes) => { + class Dimension extends Model { + /** + * Helper method for defining associations. + * This method is not a part of Sequelize lifecycle. + * The `models/index` file will call this method automatically. + */ + static associate(models) { + // define association here + Dimension.belongsToMany(models.Initiative, { + through: 'InitiativeDimensions', + foreignKey: 'dimensionId', + sourceKey: 'id', + timestamps: false, + as: 'initiatives', + }) + } + } + Dimension.init({ + name: { + type: DataTypes.STRING, + allowNull: false + } + }, { + sequelize, + timestamps: true, + modelName: 'Dimension', + tableName: 'Dimensions', + }); + return Dimension; +}; \ No newline at end of file diff --git a/models/index.js b/models/index.js new file mode 100644 index 0000000..a322ea9 --- /dev/null +++ b/models/index.js @@ -0,0 +1,45 @@ +// 'use strict'; + +const fs = require('fs'); +const path = require('path'); +const Sequelize = require('sequelize'); +const basename = path.basename(__filename); + +const env = process.env.NODE_ENV || 'development'; +const config = require('../config/database.js')[env]; + +// the db object +const db = {}; + +let sequelize; +if (config.use_env_variable) { + sequelize = new Sequelize(process.env[config.use_env_variable], config); +} else { + sequelize = new Sequelize(config.database, config.username, config.password, config); +} + +fs + .readdirSync(__dirname) + .filter(file => { + return ( + file.indexOf('.') !== 0 && + file !== basename && + file.slice(-3) === '.js' && + file.indexOf('.test.js') === -1 + ); + }) + .forEach(file => { + const model = require(path.join(__dirname, file))(sequelize, Sequelize.DataTypes); + db[model.name] = model; + }); + +Object.keys(db).forEach(modelName => { + if (db[modelName].associate) { + db[modelName].associate(db); + } +}); + +db.sequelize = sequelize; +db.Sequelize = Sequelize; + +module.exports = db; diff --git a/models/initiative.js b/models/initiative.js new file mode 100644 index 0000000..487f8bb --- /dev/null +++ b/models/initiative.js @@ -0,0 +1,76 @@ +// 'use strict'; +const { Model, DataTypes } = require('sequelize'); + + +module.exports = (sequelize) => { + class Initiative extends Model { + /** + * Helper method for defining associations. + * This method is not a part of Sequelize lifecycle. + * The `models/index` file will call this method automatically. + */ + static associate(models) { + // define association here + Initiative.belongsTo(models.User,{ + foreignKey: 'authorId', + targetKey: 'id', + as: 'author', + }); + Initiative.belongsTo(models.InitiativeContact, { + foreignKey: { + name: 'contactId', + allowNull: false, + }, + as: 'contact', + }); + Initiative.belongsTo(models.Subdivision, { + foreignKey: { + name: 'subdivisionId', + allowNull: false, + }, + as: 'subdivision', + }); + Initiative.belongsToMany(models.Dimension, { + through: 'InitiativeDimensions', + foreignKey: 'initiativeId', + sourceKey: 'id', + timestamps: false, + as: 'dimensions', + }); + } + } + + Initiative.init({ + authorId: { + type: DataTypes.INTEGER, + allowNull: true, + }, + contactId: { + type: DataTypes.INTEGER, + allowNull: false, + }, + subdivisionId: { + type: DataTypes.INTEGER, + allowNull: false, + }, + name: { + type: DataTypes.STRING, + allowNull: false, + }, + description: { + type: DataTypes.TEXT, + allowNull: false, + }, + needsAndOffers: { + type: DataTypes.TEXT, + allowNull: false, + }, + }, { + sequelize, + timestamps: true, + modelName: 'Initiative', + tableName: 'Initiatives', + }); + + return Initiative; +}; \ No newline at end of file diff --git a/models/initiativeContact.js b/models/initiativeContact.js new file mode 100644 index 0000000..c3e34a7 --- /dev/null +++ b/models/initiativeContact.js @@ -0,0 +1,50 @@ +// 'use strict'; +const { Model, DataTypes } = require('sequelize'); + + +module.exports = (sequelize) => { + class InitiativeContact extends Model { + /** + * Helper method for defining associations. + * This method is not a part of Sequelize lifecycle. + * The `models/index` file will call this method automatically. + */ + static associate(models) { + // define association here + InitiativeContact.hasOne(models.Initiative, { + foreignKey: 'contactId', + as: 'initiative', + }); + } + } + + InitiativeContact.init({ + fullname: { + type: DataTypes.STRING, + allowNull: false, + }, + email: { + type: DataTypes.STRING, + allowNull: false, + validate: { + isEmail: true, + }, + }, + phone: { + type: DataTypes.STRING, + allowNull: false, + }, + keepPrivate: { + type: DataTypes.BOOLEAN, + allowNull: false, + defaultValue: false, + }, + }, { + sequelize, + timestamps: true, + modelName: 'InitiativeContact', + tableName: 'InitiativeContacts', + }); + + return InitiativeContact; +}; \ No newline at end of file diff --git a/models/initiativeDimension.js b/models/initiativeDimension.js new file mode 100644 index 0000000..56751fb --- /dev/null +++ b/models/initiativeDimension.js @@ -0,0 +1,35 @@ +// 'use strict'; +const { Model, DataTypes } = require('sequelize'); + + +module.exports = (sequelize) => { + class InitiativeDimension extends Model { + /** + * Helper method for defining associations. + * This method is not a part of Sequelize lifecycle. + * The `models/index` file will call this method automatically. + */ + static associate(models) { + // define association here + } + } + + InitiativeDimension.init({ + initiativeId: { + type: DataTypes.INTEGER, + allowNull: false, + }, + dimensionId: { + type: DataTypes.INTEGER, + allowNull: false, + }, + }, { + sequelize, + createdAt: false, + updatedAt: false, + modelName: 'InitiativeDimension', + tableName: 'InitiativeDimensions', + }); + + return InitiativeDimension; +}; \ No newline at end of file diff --git a/models/subdivision.js b/models/subdivision.js new file mode 100644 index 0000000..be5090c --- /dev/null +++ b/models/subdivision.js @@ -0,0 +1,33 @@ +const { Model } = require('sequelize'); + +module.exports = (sequelize, DataTypes) => { + class Subdivision extends Model { + /** + * Helper method for defining associations. + * This method is not a part of Sequelize lifecycle. + * The `models/index` file will call this method automatically. + */ + static associate(models) { + // define association here + Subdivision.belongsTo(models.City,{ + foreignKey: 'cityId', + as: 'city' + }) + Subdivision.hasMany(models.Initiative, { + foreignKey: 'subdivisionId', + as: 'initiatives' + }) + } + } + Subdivision.init({ + cityId: DataTypes.INTEGER, + name: DataTypes.STRING, + type: DataTypes.STRING + }, { + sequelize, + timestamps: true, + modelName: 'Subdivision', + tableName: 'Subdivisions', + }); + return Subdivision; +}; \ No newline at end of file diff --git a/models/user.js b/models/user.js new file mode 100644 index 0000000..8f2b3ea --- /dev/null +++ b/models/user.js @@ -0,0 +1,133 @@ +// 'use strict'; +const { Model, DataTypes } = require('sequelize'); +const bcrypt = require('bcrypt'); +const crypto = require('crypto'); +const jwt = require('jsonwebtoken'); +const dayjs = require('dayjs'); + +async function hashPassword(password) { + console.log(password) + const salt = await bcrypt.genSalt(10); + const hashedPassword = await bcrypt.hash(password, salt); + return hashedPassword +} + +module.exports = (sequelize) => { + class User extends Model { + /** + * Helper method for defining associations. + * This method is not a part of Sequelize lifecycle. + * The `models/index` file will call this method automatically. + */ + static associate(models) { + // define association here + User.belongsTo(models.Subdivision); + User.hasMany(models.Initiative, { + foreignKey: 'authorId', + sourceKey: 'id', + as: 'initiatives', + }) + + } + comparePassword(password) { + return bcrypt.compareSync(password, this.password); + } + + async generateVerificationToken() { + let data = { + userId: this.id, + event: 'email-verification', + token: crypto.randomBytes(20).toString('hex'), + expiresAt: dayjs().add(1, 'day').toDate() + } + let userToken = await sequelize.models.UserToken.create(data); + return userToken; + } + + async generateJWT() { + const expiresIn = '2d'; + + this.lastLogin = new Date(); + await this.save(); + + let payload = { + id: this.id, + email: this.email, + role: this.role, + lastLogin: this.lastLogin + } + return jwt.sign(payload, process.env.JWT_SECRET, { + expiresIn + }); + } + + async generatePasswordResetToken() { + let data = { + userId: this.id, + event: 'password-reset', + token: crypto.randomBytes(20).toString('hex'), + expiresAt: dayjs().add(1, 'hour').toDate() + } + let userToken = await sequelize.models.UserToken.create(data); + return userToken; + } + } + + User.init({ + firstName: DataTypes.STRING, + lastName: DataTypes.STRING, + email: { + type: DataTypes.STRING, + unique: true, + allowNull: false, + }, + role: { + type: DataTypes.STRING, + defaultValue: 'user', + allowNull: false, + }, + password: { + type: DataTypes.STRING, + allowNull: false, + }, + subdivisionId: { + type: DataTypes.INTEGER, + allowNull: true, + }, + emailVerified: { + type: DataTypes.BOOLEAN, + defaultValue: false, + allowNull: false, + }, + verifiedAt: { + type: DataTypes.DATE, + allowNull: true, + }, + lastLogin: { + type: DataTypes.DATE, + allowNull: true, + }, + }, { + sequelize, + timestamps: true, + modelName: 'User', + tableName: 'Users', + }); + + // User.beforeCreate(async (user, options) => { + // console.log('beforeCreate') + // console.log(user.password) + // const hashedPassword = await hashPassword(user.password); + // user.password = hashedPassword; + // }); + + User.beforeSave(async (user, options) => { + if (user.changed('password')) { + const hashedPassword = await hashPassword(user.password); + user.password = hashedPassword; + } + }); + + + return User; +}; \ No newline at end of file diff --git a/models/userToken.js b/models/userToken.js new file mode 100644 index 0000000..358ee4e --- /dev/null +++ b/models/userToken.js @@ -0,0 +1,44 @@ +// 'use strict'; +const { Model, DataTypes } = require('sequelize'); + +module.exports = (sequelize) => { + class UserToken extends Model { + /** + * Helper method for defining associations. + * This method is not a part of Sequelize lifecycle. + * The `models/index` file will call this method automatically. + */ + static associate(models) { + // define association here + UserToken.belongsTo(models.User) + } + + } + + UserToken.init({ + userId: { + type: DataTypes.INTEGER, + allowNull: false + }, + token: { + type: DataTypes.STRING, + allowNull: false + }, + event: { + type: DataTypes.STRING, + allowNull: false + }, + expiresAt: { + type: DataTypes.DATE, + allowNull: false + } + }, { + sequelize, + timestamps: true, + updatedAt: false, + modelName: 'UserToken', + tableName: 'UserTokens', + }); + + return UserToken; +}; \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..b116ff8 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3897 @@ +{ + "name": "incidir-para-existir", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "incidir-para-existir", + "version": "1.0.0", + "dependencies": { + "@json2csv/node": "^7.0.6", + "bcrypt": "^5.1.1", + "cors": "^2.8.5", + "dayjs": "^1.11.13", + "dotenv": "^16.4.5", + "express": "^4.21.1", + "express-validator": "^7.2.0", + "jsonwebtoken": "^9.0.2", + "mysql2": "^3.11.4", + "nodemailer": "^6.9.16", + "nunjucks": "^3.2.4", + "passport": "^0.7.0", + "passport-jwt": "^4.0.1", + "sequelize": "^6.37.5", + "umzug": "^3.8.2" + }, + "devDependencies": { + "nodemon": "^3.1.7", + "sequelize-cli": "^6.6.2" + } + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "license": "ISC", + "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/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", + "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/@json2csv/formatters": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/@json2csv/formatters/-/formatters-7.0.6.tgz", + "integrity": "sha512-hjIk1H1TR4ydU5ntIENEPgoMGW+Q7mJ+537sDFDbsk+Y3EPl2i4NfFVjw0NJRgT+ihm8X30M67mA8AS6jPidSA==", + "license": "MIT" + }, + "node_modules/@json2csv/node": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/@json2csv/node/-/node-7.0.6.tgz", + "integrity": "sha512-J3AX8cDBeQyriJj0oFxJot52hScUN4hhUBRnUGIPt+yI1YpwUuftriJi1RJS60Uz6Stce1sewHeG56dBc9/XGg==", + "license": "MIT", + "dependencies": { + "@json2csv/plainjs": "^7.0.6" + } + }, + "node_modules/@json2csv/plainjs": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/@json2csv/plainjs/-/plainjs-7.0.6.tgz", + "integrity": "sha512-4Md7RPDCSYpmW1HWIpWBOqCd4vWfIqm53S3e/uzQ62iGi7L3r34fK/8nhOMEe+/eVfCx8+gdSCt1d74SlacQHw==", + "license": "MIT", + "dependencies": { + "@json2csv/formatters": "^7.0.6", + "@streamparser/json": "^0.0.20" + } + }, + "node_modules/@mapbox/node-pre-gyp": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz", + "integrity": "sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==", + "license": "BSD-3-Clause", + "dependencies": { + "detect-libc": "^2.0.0", + "https-proxy-agent": "^5.0.0", + "make-dir": "^3.1.0", + "node-fetch": "^2.6.7", + "nopt": "^5.0.0", + "npmlog": "^5.0.1", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.11" + }, + "bin": { + "node-pre-gyp": "bin/node-pre-gyp" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "license": "MIT", + "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.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@one-ini/wasm": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@one-ini/wasm/-/wasm-0.1.1.tgz", + "integrity": "sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@rushstack/node-core-library": { + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-5.10.0.tgz", + "integrity": "sha512-2pPLCuS/3x7DCd7liZkqOewGM0OzLyCacdvOe8j6Yrx9LkETGnxul1t7603bIaB8nUAooORcct9fFDOQMbWAgw==", + "license": "MIT", + "dependencies": { + "ajv": "~8.13.0", + "ajv-draft-04": "~1.0.0", + "ajv-formats": "~3.0.1", + "fs-extra": "~7.0.1", + "import-lazy": "~4.0.0", + "jju": "~1.4.0", + "resolve": "~1.22.1", + "semver": "~7.5.4" + }, + "peerDependencies": { + "@types/node": "*" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@rushstack/node-core-library/node_modules/fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/@rushstack/node-core-library/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "license": "MIT", + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/@rushstack/node-core-library/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@rushstack/node-core-library/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@rushstack/node-core-library/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "license": "MIT", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/@rushstack/terminal": { + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/@rushstack/terminal/-/terminal-0.14.3.tgz", + "integrity": "sha512-csXbZsAdab/v8DbU1sz7WC2aNaKArcdS/FPmXMOXEj/JBBZMvDK0+1b4Qao0kkG0ciB1Qe86/Mb68GjH6/TnMw==", + "license": "MIT", + "dependencies": { + "@rushstack/node-core-library": "5.10.0", + "supports-color": "~8.1.1" + }, + "peerDependencies": { + "@types/node": "*" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@rushstack/terminal/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@rushstack/terminal/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/@rushstack/ts-command-line": { + "version": "4.23.1", + "resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-4.23.1.tgz", + "integrity": "sha512-40jTmYoiu/xlIpkkRsVfENtBq4CW3R4azbL0Vmda+fMwHWqss6wwf/Cy/UJmMqIzpfYc2OTnjYP1ZLD3CmyeCA==", + "license": "MIT", + "dependencies": { + "@rushstack/terminal": "0.14.3", + "@types/argparse": "1.0.38", + "argparse": "~1.0.9", + "string-argv": "~0.3.1" + } + }, + "node_modules/@streamparser/json": { + "version": "0.0.20", + "resolved": "https://registry.npmjs.org/@streamparser/json/-/json-0.0.20.tgz", + "integrity": "sha512-VqAAkydywPpkw63WQhPVKCD3SdwXuihCUVZbbiY3SfSTGQyHmwRoq27y4dmJdZuJwd5JIlQoMPyGvMbUPY0RKQ==", + "license": "MIT" + }, + "node_modules/@types/argparse": { + "version": "1.0.38", + "resolved": "https://registry.npmjs.org/@types/argparse/-/argparse-1.0.38.tgz", + "integrity": "sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==", + "license": "MIT" + }, + "node_modules/@types/debug": { + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz", + "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==", + "license": "MIT", + "dependencies": { + "@types/ms": "*" + } + }, + "node_modules/@types/ms": { + "version": "0.7.34", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.34.tgz", + "integrity": "sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==", + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "22.10.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.2.tgz", + "integrity": "sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.20.0" + } + }, + "node_modules/@types/validator": { + "version": "13.12.2", + "resolved": "https://registry.npmjs.org/@types/validator/-/validator-13.12.2.tgz", + "integrity": "sha512-6SlHBzUW8Jhf3liqrGGXyTJSIFe4nqlJ5A5KaMZ2l/vbM3Wh3KSybots/wfWVzNLK4D1NZluDlSQIbIEPx6oyA==", + "license": "MIT" + }, + "node_modules/a-sync-waterfall": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/a-sync-waterfall/-/a-sync-waterfall-1.0.1.tgz", + "integrity": "sha512-RYTOHHdWipFUliRFMCS4X2Yn2X8M87V/OpSqWzKKOGhzqyUxzyVmhHDH9sAvG+ZuQf/TAOFsLCpMw09I1ufUnA==", + "license": "MIT" + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "license": "ISC" + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "license": "MIT", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/agent-base/node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/agent-base/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/ajv": { + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.13.0.tgz", + "integrity": "sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.4.1" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-draft-04": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", + "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", + "license": "MIT", + "peerDependencies": { + "ajv": "^8.5.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-formats": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", + "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "devOptional": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/aproba": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", + "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==", + "license": "ISC" + }, + "node_modules/are-we-there-yet": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", + "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", + "deprecated": "This package is no longer supported.", + "license": "ISC", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", + "license": "MIT" + }, + "node_modules/asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", + "license": "MIT" + }, + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/aws-ssl-profiles": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/aws-ssl-profiles/-/aws-ssl-profiles-1.1.2.tgz", + "integrity": "sha512-NZKeq9AfyQvEeNlN0zSYAaWrmBffJh3IELMZfRpJVWgrpEbtEpnjvzqBPf+mxoI287JohRDoa+/nsfqqiZmF6g==", + "license": "MIT", + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "license": "MIT" + }, + "node_modules/bcrypt": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.1.1.tgz", + "integrity": "sha512-AGBHOG5hPYZ5Xl9KXzU5iKq9516yEmvCKDg3ecP5kX2aB6UqTeXZxk2ELnDgDm6BQSMlLt9rDB4LoSMx0rYwww==", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "@mapbox/node-pre-gyp": "^1.0.11", + "node-addon-api": "^5.0.0" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", + "dev": true, + "license": "MIT" + }, + "node_modules/body-parser": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", + "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", + "license": "MIT", + "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.13.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/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "license": "BSD-3-Clause" + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.0", + "es-define-property": "^1.0.0", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz", + "integrity": "sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.2.tgz", + "integrity": "sha512-0lk0PHFe/uz0vl527fG9CgdE9WdafjDbCXvBbs+LUv000TVt2Jjhqbs4Jwm8gz070w8xXyEAxrPOMullsxXeGg==", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "get-intrinsic": "^1.2.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/cli-color": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/cli-color/-/cli-color-2.0.4.tgz", + "integrity": "sha512-zlnpg0jNcibNrO7GG9IeHH7maWFeCz+Ja1wx/7tZNU5ASSSSZ+/qZciM0/LHCYxSdqv5h2sdbQ/PXYdOuetXvA==", + "dev": true, + "license": "ISC", + "dependencies": { + "d": "^1.0.1", + "es5-ext": "^0.10.64", + "es6-iterator": "^2.0.3", + "memoizee": "^0.4.15", + "timers-ext": "^0.1.7" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/cliui": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "license": "ISC", + "bin": { + "color-support": "bin.js" + } + }, + "node_modules/commander": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", + "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "license": "MIT" + }, + "node_modules/config-chain": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz", + "integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ini": "^1.3.4", + "proto-list": "~1.2.1" + } + }, + "node_modules/console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==", + "license": "ISC" + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", + "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", + "license": "MIT" + }, + "node_modules/cors": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "license": "MIT", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/d": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.2.tgz", + "integrity": "sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw==", + "dev": true, + "license": "ISC", + "dependencies": { + "es5-ext": "^0.10.64", + "type": "^2.7.2" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/dayjs": { + "version": "1.11.13", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz", + "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==", + "license": "MIT" + }, + "node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==", + "license": "MIT" + }, + "node_modules/denque": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", + "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==", + "license": "Apache-2.0", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "license": "MIT", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/detect-libc": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz", + "integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==", + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/dotenv": { + "version": "16.4.7", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz", + "integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/dottie": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/dottie/-/dottie-2.0.6.tgz", + "integrity": "sha512-iGCHkfUc5kFekGiqhe8B/mdaurD+lakO9txNnTvKtA6PISrw86LgqHvRzWYPyoE2Ph5aMIrCw9/uko6XHTKCwA==", + "license": "MIT" + }, + "node_modules/dunder-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.0.tgz", + "integrity": "sha512-9+Sj30DIu+4KvHqMfLUGLFYL2PkURSYMVXJyXe92nFRvlYq5hBjLEhblKB+vkd/WVlUYMWigiY07T91Fkk0+4A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true, + "license": "MIT" + }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/editorconfig": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-1.0.4.tgz", + "integrity": "sha512-L9Qe08KWTlqYMVvMcTIvMAdl1cDUubzRNYL+WfA4bLDMHe4nemKkpmYzkznE1FwLKu0EEmy6obgQKzMJrg4x9Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@one-ini/wasm": "0.1.1", + "commander": "^10.0.0", + "minimatch": "9.0.1", + "semver": "^7.5.3" + }, + "bin": { + "editorconfig": "bin/editorconfig" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/editorconfig/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/editorconfig/node_modules/commander": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-10.0.1.tgz", + "integrity": "sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + } + }, + "node_modules/editorconfig/node_modules/minimatch": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.1.tgz", + "integrity": "sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "license": "MIT" + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.0.0.tgz", + "integrity": "sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es5-ext": { + "version": "0.10.64", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz", + "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==", + "dev": true, + "hasInstallScript": true, + "license": "ISC", + "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.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", + "dev": true, + "license": "MIT", + "dependencies": { + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" + } + }, + "node_modules/es6-symbol": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.4.tgz", + "integrity": "sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg==", + "dev": true, + "license": "ISC", + "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.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz", + "integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==", + "dev": true, + "license": "ISC", + "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.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT" + }, + "node_modules/esniff": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz", + "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", + "dev": true, + "license": "ISC", + "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/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "d": "1", + "es5-ext": "~0.10.14" + } + }, + "node_modules/express": { + "version": "4.21.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", + "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.3", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.7.1", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.3.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.3", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.12", + "proxy-addr": "~2.0.7", + "qs": "6.13.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.19.0", + "serve-static": "1.16.2", + "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" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/express-validator": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/express-validator/-/express-validator-7.2.0.tgz", + "integrity": "sha512-I2ByKD8panjtr8Y05l21Wph9xk7kk64UMyvJCl/fFM/3CTJq8isXYPLeKW/aZBCdb/LYNv63PwhY8khw8VWocA==", + "license": "MIT", + "dependencies": { + "lodash": "^4.17.21", + "validator": "~13.12.0" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/ext": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", + "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", + "dev": true, + "license": "ISC", + "dependencies": { + "type": "^2.7.2" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "license": "MIT", + "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/fastq": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", + "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~2.0.0", + "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/foreground-child": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", + "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", + "dev": true, + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/foreground-child/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/fs-minipass/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "license": "ISC" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gauge": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz", + "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==", + "deprecated": "This package is no longer supported.", + "license": "ISC", + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.2", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.1", + "object-assign": "^4.1.1", + "signal-exit": "^3.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/generate-function": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.1.tgz", + "integrity": "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==", + "license": "MIT", + "dependencies": { + "is-property": "^1.0.2" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.6.tgz", + "integrity": "sha512-qxsEs+9A+u85HhllWJJFicJfPDhRmjzoYdl64aMWW9yRIJmSyxdn8IEkuIM530/7T+lv0TIHd8L6Q/ra0tEoeA==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "dunder-proto": "^1.0.0", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "function-bind": "^1.1.2", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==", + "license": "ISC" + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "license": "MIT", + "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/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/https-proxy-agent/node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/https-proxy-agent/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", + "dev": true, + "license": "ISC" + }, + "node_modules/import-lazy": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-4.0.0.tgz", + "integrity": "sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/inflection": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/inflection/-/inflection-1.13.4.tgz", + "integrity": "sha512-6I/HUDeYFfuNCVS3td055BaXBwKYuzw7K3ExVMStBowKo9oOAMJIXIHvdyR3iboTCp1b+1i5DSkIZTcwIktuDw==", + "engines": [ + "node >= 0.4.0" + ], + "license": "MIT" + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "dev": true, + "license": "ISC" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-core-module": { + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz", + "integrity": "sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==", + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-promise": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz", + "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-property": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz", + "integrity": "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==", + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/jackspeak": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/jju": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/jju/-/jju-1.4.0.tgz", + "integrity": "sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==", + "license": "MIT" + }, + "node_modules/js-beautify": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.15.1.tgz", + "integrity": "sha512-ESjNzSlt/sWE8sciZH8kBF8BPlwXPwhR6pWKAw8bw4Bwj+iZcnKW6ONWUutJ7eObuBZQpiIb8S7OYspWrKt7rA==", + "dev": true, + "license": "MIT", + "dependencies": { + "config-chain": "^1.1.13", + "editorconfig": "^1.0.4", + "glob": "^10.3.3", + "js-cookie": "^3.0.5", + "nopt": "^7.2.0" + }, + "bin": { + "css-beautify": "js/bin/css-beautify.js", + "html-beautify": "js/bin/html-beautify.js", + "js-beautify": "js/bin/js-beautify.js" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/js-beautify/node_modules/abbrev": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-2.0.0.tgz", + "integrity": "sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==", + "dev": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/js-beautify/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/js-beautify/node_modules/glob": { + "version": "10.4.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", + "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", + "dev": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/js-beautify/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/js-beautify/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/js-beautify/node_modules/nopt": { + "version": "7.2.1", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-7.2.1.tgz", + "integrity": "sha512-taM24ViiimT/XntxbPyJQzCG+p4EKOpgD3mxFwW38mGjVUrfERQOeY4EDHjdnptttfHuHQXFx+lTP08Q+mLa/w==", + "dev": true, + "license": "ISC", + "dependencies": { + "abbrev": "^2.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/js-cookie": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.5.tgz", + "integrity": "sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + } + }, + "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==", + "license": "MIT" + }, + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsonwebtoken": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz", + "integrity": "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==", + "license": "MIT", + "dependencies": { + "jws": "^3.2.2", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=12", + "npm": ">=6" + } + }, + "node_modules/jsonwebtoken/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/jwa": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", + "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "license": "MIT", + "dependencies": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "license": "MIT", + "dependencies": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "license": "MIT" + }, + "node_modules/lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==", + "license": "MIT" + }, + "node_modules/lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==", + "license": "MIT" + }, + "node_modules/lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==", + "license": "MIT" + }, + "node_modules/lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==", + "license": "MIT" + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", + "license": "MIT" + }, + "node_modules/lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", + "license": "MIT" + }, + "node_modules/lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", + "license": "MIT" + }, + "node_modules/long": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==", + "license": "Apache-2.0" + }, + "node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/lru-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz", + "integrity": "sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es5-ext": "~0.10.2" + } + }, + "node_modules/lru.min": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/lru.min/-/lru.min-1.1.1.tgz", + "integrity": "sha512-FbAj6lXil6t8z4z3j0E5mfRlPzxkySotzUHwRXjlpRh10vc6AI6WN62ehZj82VG7M20rqogJ0GLwar2Xa05a8Q==", + "license": "MIT", + "engines": { + "bun": ">=1.0.0", + "deno": ">=1.30.0", + "node": ">=8.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wellwelwel" + } + }, + "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==", + "license": "MIT", + "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==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/math-intrinsics": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.0.0.tgz", + "integrity": "sha512-4MqMiKP90ybymYvsut0CH2g4XWbfLtmlCkXmtmdcDCxNB+mQcu1w/1+L/VD7vi/PSv7X2JYV7SCcR+jiPXnQtA==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/memoizee": { + "version": "0.4.17", + "resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.17.tgz", + "integrity": "sha512-DGqD7Hjpi/1or4F/aYAspXKNm5Yili0QDAFAY4QYvpqpgiY6+1jOfqpmByzjxbWd/T9mChbCArXAbDAsTm5oXA==", + "dev": true, + "license": "ISC", + "dependencies": { + "d": "^1.0.2", + "es5-ext": "^0.10.64", + "es6-weak-map": "^2.0.3", + "event-emitter": "^0.3.5", + "is-promise": "^2.2.2", + "lru-queue": "^0.1.0", + "next-tick": "^1.1.0", + "timers-ext": "^0.1.7" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minipass": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "license": "MIT", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minizlib/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "license": "MIT", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/moment": { + "version": "2.30.1", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz", + "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/moment-timezone": { + "version": "0.5.46", + "resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.46.tgz", + "integrity": "sha512-ZXm9b36esbe7OmdABqIWJuBBiLLwAjrN7CE+7sYdCCx82Nabt1wHDj8TVseS59QIlfFPbOoiBPm6ca9BioG4hw==", + "license": "MIT", + "dependencies": { + "moment": "^2.29.4" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/mysql2": { + "version": "3.11.5", + "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.11.5.tgz", + "integrity": "sha512-0XFu8rUmFN9vC0ME36iBvCUObftiMHItrYFhlCRvFWbLgpNqtC4Br/NmZX1HNCszxT0GGy5QtP+k3Q3eCJPaYA==", + "license": "MIT", + "dependencies": { + "aws-ssl-profiles": "^1.1.1", + "denque": "^2.1.0", + "generate-function": "^2.3.1", + "iconv-lite": "^0.6.3", + "long": "^5.2.1", + "lru.min": "^1.0.0", + "named-placeholders": "^1.1.3", + "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.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/named-placeholders": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/named-placeholders/-/named-placeholders-1.1.3.tgz", + "integrity": "sha512-eLoBxg6wE/rZkJPhU/xRX1WTpkFEwDJEN96oxFrTsqBdbT5ec295Q+CoHrL9IT0DipqKhmGcaZmwOt8OON5x1w==", + "license": "MIT", + "dependencies": { + "lru-cache": "^7.14.1" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/next-tick": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", + "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/node-addon-api": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", + "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==", + "license": "MIT" + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/nodemailer": { + "version": "6.9.16", + "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.16.tgz", + "integrity": "sha512-psAuZdTIRN08HKVd/E8ObdV6NO7NTBY3KsC30F7M4H1OnmLCUNaS56FpYxyb26zWLSyYF9Ozch9KYHhHegsiOQ==", + "license": "MIT-0", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/nodemon": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.7.tgz", + "integrity": "sha512-hLj7fuMow6f0lbB0cD14Lz2xNjwsyruH251Pk4t/yIitCFJbmY1myuLlHm/q06aST4jg6EgAh74PIBBrRqpVAQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^3.5.2", + "debug": "^4", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.1.2", + "pstree.remy": "^1.1.8", + "semver": "^7.5.3", + "simple-update-notifier": "^2.0.0", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.5" + }, + "bin": { + "nodemon": "bin/nodemon.js" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nodemon" + } + }, + "node_modules/nodemon/node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/nodemon/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nopt": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", + "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", + "license": "ISC", + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "devOptional": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npmlog": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz", + "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==", + "deprecated": "This package is no longer supported.", + "license": "ISC", + "dependencies": { + "are-we-there-yet": "^2.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^3.0.0", + "set-blocking": "^2.0.0" + } + }, + "node_modules/nunjucks": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/nunjucks/-/nunjucks-3.2.4.tgz", + "integrity": "sha512-26XRV6BhkgK0VOxfbU5cQI+ICFUtMLixv1noZn1tGU38kQH5A5nmmbk/O45xdyBhD1esk47nKrY0mvQpZIhRjQ==", + "license": "BSD-2-Clause", + "dependencies": { + "a-sync-waterfall": "^1.0.0", + "asap": "^2.0.3", + "commander": "^5.1.0" + }, + "bin": { + "nunjucks-precompile": "bin/precompile" + }, + "engines": { + "node": ">= 6.9.0" + }, + "peerDependencies": { + "chokidar": "^3.3.0" + }, + "peerDependenciesMeta": { + "chokidar": { + "optional": true + } + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.3.tgz", + "integrity": "sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/package-json-from-dist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/passport": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/passport/-/passport-0.7.0.tgz", + "integrity": "sha512-cPLl+qZpSc+ireUvt+IzqbED1cHHkDoVYMo30jbJIdOOjQ1MQYZBPiNvmi8UM6lJuOpTPXJGZQk0DtC4y61MYQ==", + "license": "MIT", + "dependencies": { + "passport-strategy": "1.x.x", + "pause": "0.0.1", + "utils-merge": "^1.0.1" + }, + "engines": { + "node": ">= 0.4.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/jaredhanson" + } + }, + "node_modules/passport-jwt": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/passport-jwt/-/passport-jwt-4.0.1.tgz", + "integrity": "sha512-UCKMDYhNuGOBE9/9Ycuoyh7vP6jpeTp/+sfMJl7nLff/t6dps+iaeE0hhNkKN8/HZHcJ7lCdOyDxHdDoxoSvdQ==", + "license": "MIT", + "dependencies": { + "jsonwebtoken": "^9.0.0", + "passport-strategy": "^1.0.0" + } + }, + "node_modules/passport-strategy": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/passport-strategy/-/passport-strategy-1.0.0.tgz", + "integrity": "sha512-CB97UUvDKJde2V0KDWWB3lyf6PC3FaZP7YxZ2G8OAtn9p4HI9j9JLP9qjOGZFvyl8uwNT8qM+hGnz/n16NI7oA==", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "license": "MIT" + }, + "node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/path-to-regexp": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", + "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", + "license": "MIT" + }, + "node_modules/pause": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz", + "integrity": "sha512-KG8UEiEVkR3wGEb4m5yZkVCzigAD+cVEJck2CzYZO37ZGJfctvVptVO192MwrtPhzONn6go8ylnOdMhKqi4nfg==" + }, + "node_modules/pg-connection-string": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.7.0.tgz", + "integrity": "sha512-PI2W9mv53rXJQEOb8xNR8lH7Hr+EKa6oJa38zsK0S/ky2er16ios1wLKhZyxzD7jUReiWokc9WK5nxSnC7W1TA==", + "license": "MIT" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pony-cause": { + "version": "2.1.11", + "resolved": "https://registry.npmjs.org/pony-cause/-/pony-cause-2.1.11.tgz", + "integrity": "sha512-M7LhCsdNbNgiLYiP4WjsfLUuFmCfnjdF6jKe2R9NKl4WFN+HZPGHJZ9lnLP7f9ZnKe3U9nuWD0szirmj+migUg==", + "license": "0BSD", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/proto-list": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", + "integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==", + "dev": true, + "license": "ISC" + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/pstree.remy": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", + "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", + "dev": true, + "license": "MIT" + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/qs": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", + "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.0.6" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", + "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", + "license": "MIT", + "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/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "license": "MIT", + "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==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "license": "MIT", + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/retry-as-promised": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/retry-as-promised/-/retry-as-promised-7.0.4.tgz", + "integrity": "sha512-XgmCoxKWkDofwH8WddD0w85ZfqYz+ZHlr5yo+3YUCfycWawU56T5ckWXsScsj5B8tqUcIG67DxXByo3VUgiAdA==", + "license": "MIT" + }, + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/send": { + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", + "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", + "license": "MIT", + "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/encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/seq-queue": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/seq-queue/-/seq-queue-0.0.5.tgz", + "integrity": "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q==" + }, + "node_modules/sequelize": { + "version": "6.37.5", + "resolved": "https://registry.npmjs.org/sequelize/-/sequelize-6.37.5.tgz", + "integrity": "sha512-10WA4poUb3XWnUROThqL2Apq9C2NhyV1xHPMZuybNMCucDsbbFuKg51jhmyvvAUyUqCiimwTZamc3AHhMoBr2Q==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/sequelize" + } + ], + "license": "MIT", + "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-cli": { + "version": "6.6.2", + "resolved": "https://registry.npmjs.org/sequelize-cli/-/sequelize-cli-6.6.2.tgz", + "integrity": "sha512-V8Oh+XMz2+uquLZltZES6MVAD+yEnmMfwfn+gpXcDiwE3jyQygLt4xoI0zG8gKt6cRcs84hsKnXAKDQjG/JAgg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cli-color": "^2.0.3", + "fs-extra": "^9.1.0", + "js-beautify": "^1.14.5", + "lodash": "^4.17.21", + "resolve": "^1.22.1", + "umzug": "^2.3.0", + "yargs": "^16.2.0" + }, + "bin": { + "sequelize": "lib/sequelize", + "sequelize-cli": "lib/sequelize" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/sequelize-cli/node_modules/umzug": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/umzug/-/umzug-2.3.0.tgz", + "integrity": "sha512-Z274K+e8goZK8QJxmbRPhl89HPO1K+ORFtm6rySPhFKfKc5GHhqdzD0SGhSWHkzoXasqJuItdhorSvY7/Cgflw==", + "dev": true, + "license": "MIT", + "dependencies": { + "bluebird": "^3.7.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/sequelize-pool": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/sequelize-pool/-/sequelize-pool-7.1.0.tgz", + "integrity": "sha512-G9c0qlIWQSK29pR/5U2JF5dDQeqqHRragoyahj/Nx4KOOQ3CPPfzxnfqFPCSB7x5UgjOgnZ61nSxz+fjDpRlJg==", + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/sequelize/node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/sequelize/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/serve-static": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", + "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", + "license": "MIT", + "dependencies": { + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.19.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "license": "ISC" + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "license": "MIT", + "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/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC" + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "license": "ISC" + }, + "node_modules/simple-update-notifier": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", + "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "license": "BSD-3-Clause" + }, + "node_modules/sqlstring": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.3.tgz", + "integrity": "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-argv": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", + "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", + "license": "MIT", + "engines": { + "node": ">=0.6.19" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "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": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tar": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", + "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", + "license": "ISC", + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^5.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/timers-ext": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.8.tgz", + "integrity": "sha512-wFH7+SEAcKfJpfLPkrgMPvvwnEtj8W4IurvEyrKsDleXnKLCDw71w8jltvfLa8Rm4qQxxT4jmDBYbJG/z7qoww==", + "dev": true, + "license": "ISC", + "dependencies": { + "es5-ext": "^0.10.64", + "next-tick": "^1.1.0" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/toposort-class": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toposort-class/-/toposort-class-1.0.1.tgz", + "integrity": "sha512-OsLcGGbYF3rMjPUf8oKktyvCiUxSbqMMS39m33MAjLTC1DVIH6x3WSt63/M77ihI09+Sdfk1AXvfhCEeUmC7mg==", + "license": "MIT" + }, + "node_modules/touch": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.1.tgz", + "integrity": "sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==", + "dev": true, + "license": "ISC", + "bin": { + "nodetouch": "bin/nodetouch.js" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" + }, + "node_modules/type": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.3.tgz", + "integrity": "sha512-8j+1QmAbPvLZow5Qpi6NCaN8FB60p/6x8/vfNqOk/hC+HuvFZhL4+WfekuhQLiqFZXOgQdrs3B+XxEmCc6b3FQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/type-fest": { + "version": "4.30.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.30.1.tgz", + "integrity": "sha512-ojFL7eDMX2NF0xMbDwPZJ8sb7ckqtlAi1GsmgsFXvErT9kFTk1r0DuQKvrCh73M6D4nngeHJmvogF9OluXs7Hw==", + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "license": "MIT", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/umzug": { + "version": "3.8.2", + "resolved": "https://registry.npmjs.org/umzug/-/umzug-3.8.2.tgz", + "integrity": "sha512-BEWEF8OJjTYVC56GjELeHl/1XjFejrD7aHzn+HldRJTx+pL1siBrKHZC8n4K/xL3bEzVA9o++qD1tK2CpZu4KA==", + "license": "MIT", + "dependencies": { + "@rushstack/ts-command-line": "^4.12.2", + "emittery": "^0.13.0", + "fast-glob": "^3.3.2", + "pony-cause": "^2.1.4", + "type-fest": "^4.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/undefsafe": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", + "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", + "dev": true, + "license": "MIT" + }, + "node_modules/undici-types": { + "version": "6.20.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", + "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", + "license": "MIT" + }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT" + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/validator": { + "version": "13.12.0", + "resolved": "https://registry.npmjs.org/validator/-/validator-13.12.0.tgz", + "integrity": "sha512-c1Q0mCiPlgdTVVVIJIrBuxNicYE+t/7oKeI9MWLj3fh/uq2Pxh/3eeWbVZ4OcGW1TUf53At0njHw5SMdA3tmMg==", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wide-align": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", + "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", + "license": "ISC", + "dependencies": { + "string-width": "^1.0.2 || 2 || 3 || 4" + } + }, + "node_modules/wkx": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/wkx/-/wkx-0.5.0.tgz", + "integrity": "sha512-Xng/d4Ichh8uN4l0FToV/258EjMGU9MGcA0HV2d9B/ZpZB3lqQm7nkOdZdm5GhKtLLhAE7PiVQwN4eN+2YJJUg==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC" + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "license": "ISC" + }, + "node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "dev": true, + "license": "MIT", + "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.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..a1e3a18 --- /dev/null +++ b/package.json @@ -0,0 +1,40 @@ +{ + "name": "incidir-para-existir", + "version": "1.0.0", + "description": "Incidir Para Existir App API - ExpressJS and Mailer service", + "main": "index.js", + "scripts": { + "start": "node index.js", + "dev": "nodemon index.js" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/DemocraciaEnRed/incidir-para-existir.git" + }, + "author": "Democracia en Red", + "bugs": { + "url": "https://github.com/DemocraciaEnRed/incidir-para-existir/issues" + }, + "homepage": "https://github.com/DemocraciaEnRed/incidir-para-existir#readme", + "dependencies": { + "@json2csv/node": "^7.0.6", + "bcrypt": "^5.1.1", + "cors": "^2.8.5", + "dayjs": "^1.11.13", + "dotenv": "^16.4.5", + "express": "^4.21.1", + "express-validator": "^7.2.0", + "jsonwebtoken": "^9.0.2", + "mysql2": "^3.11.4", + "nodemailer": "^6.9.16", + "nunjucks": "^3.2.4", + "passport": "^0.7.0", + "passport-jwt": "^4.0.1", + "sequelize": "^6.37.5", + "umzug": "^3.8.2" + }, + "devDependencies": { + "nodemon": "^3.1.7", + "sequelize-cli": "^6.6.2" + } +} diff --git a/routes/auth.js b/routes/auth.js new file mode 100644 index 0000000..5291cfb --- /dev/null +++ b/routes/auth.js @@ -0,0 +1,105 @@ +const express = require('express'); +const { check } = require('express-validator'); + +const validate = require('../middlewares/validate'); +const authorize = require('../middlewares/authorize'); +const requiresAnon = require('../middlewares/requiresAnon'); +const AuthController = require('../controllers/authController'); +const msg = require('../utils/messages'); + +// initialize router +const router = express.Router(); + +// ----------------------------------------------- +// BASE /auth +// ----------------------------------------------- +// POST /auth/register +// POST /auth/login +// POST /auth/refresh-token +// GET /auth/verify/:token +// POST /auth/resend +// POST /auth/forgot +// POST /auth/reset/:token +// GET /auth/logged-in +// ----------------------------------------------- + + +router.post('/register', + requiresAnon, + [ + check('email').isEmail().withMessage(msg.validationError.email), + check('firstName').not().isEmpty().withMessage(msg.validationError.invalidValue), + check('lastName').not().isEmpty().withMessage(msg.validationError.invalidValue), + check('subdivisionId').optional().isNumeric().withMessage(msg.validationError.invalidValue), + check('password').not().isEmpty().isLength({ min: 6 }).withMessage(msg.validationError.invalidValue), + ], + validate, + AuthController.register +); + +router.post("/login", + requiresAnon, + [ + check('email').isEmail().withMessage(msg.validationError.email), + check('password').not().isEmpty().isLength({ min: 6 }).withMessage(msg.validationError.invalidValues), + ], + validate, + AuthController.login +); + +router.post('/refresh-token', + authorize(), + AuthController.refreshToken +); + +router.get('/verify/:token', + [ + check('token').not().isEmpty().withMessage(msg.validationError.token), + ], + validate, + AuthController.verify +); + +router.post('/resend', + requiresAnon, + [ + check('email').isEmail().withMessage(msg.validationError.email), + ], + validate, + AuthController.resendToken +); + +router.post('/forgot', + requiresAnon, + [ + check('email').isEmail().withMessage(msg.validationError.email), + ], + validate, + AuthController.forgot +); + + +router.post('/reset/:token', + requiresAnon, + [ + check('password').not().isEmpty().isLength({ min: 6 }).withMessage(msg.validationError.password), + check('confirmPassword', 'Las contraseñas no son similares').custom((value, { req }) => (value === req.body.password)), + ], + validate, + AuthController.resetPassword +); + +router.get('/session', + + AuthController.getSession +); + +router.post('/logout', + AuthController.logout +); + +router.get('/logged', + AuthController.loggedIn +); + +module.exports = router; \ No newline at end of file diff --git a/routes/blog.js b/routes/blog.js new file mode 100644 index 0000000..5008237 --- /dev/null +++ b/routes/blog.js @@ -0,0 +1,36 @@ +const express = require('express'); +const { check, query } = require('express-validator'); + +const validate = require('../middlewares/validate'); +const authorize = require('../middlewares/authorize'); +const requiresAnon = require('../middlewares/requiresAnon'); +const BlogController = require('../controllers/blogController'); +const msg = require('../utils/messages'); + +// initialize router +const router = express.Router(); + +// ----------------------------------------------- +// BASE /blog +// ----------------------------------------------- +// POST /blog +// ----------------------------------------------- + + +router.get('', + [ + query('category').optional().isInt().withMessage(msg.validationError.integer), + query('section').optional().isInt().withMessage(msg.validationError.integer), + ], + BlogController.getAll +); + +router.get('/:slug', + [ + check('token').not().isEmpty().withMessage('Slug is required'), + + ], + BlogController.getOne +); + +module.exports = router; \ No newline at end of file diff --git a/routes/index.js b/routes/index.js new file mode 100644 index 0000000..4385810 --- /dev/null +++ b/routes/index.js @@ -0,0 +1,21 @@ +const testRoutes = require('./test'); +const authRoutes = require('./auth'); +const utilsRoutes = require('./utils'); +const blogRoutes = require('./blog'); +const authenticate = require('../middlewares/authenticate'); + +module.exports = app => { + // if there is a user logged in, it adds it to the request object (req.user) + app.use(authenticate) + // define all the routes + app.get('/', (req, res) => { + res.status(200).json({message: "Welcome to the API"}); + }); + app.use('/auth', authRoutes); + app.use('/blog', blogRoutes); + app.use('/utils', utilsRoutes); + // app.use('/users', userRoutes); + app.use('/test', testRoutes); +}; + + diff --git a/routes/test.js b/routes/test.js new file mode 100644 index 0000000..272e29d --- /dev/null +++ b/routes/test.js @@ -0,0 +1,91 @@ + +const express = require('express'); +const models = require('../models'); +const mailer = require('../services/mailer'); +const router = express.Router(); + +router.get('/', (req, res) => { + try { + return res.status(200).json({message: 'Test route works!'}) + } catch (error) { + console.error(error) + return res.status(500).json({message: error.message}) + } +}) + +router.get('/cities', async (req, res) => { + try { + const cities = await models.City.findAll() + return res.status(200).json(cities) + } catch (error) { + console.error(error) + return res.status(500).json({message: error.message}) + } +}) + +router.get('/verifyaccount', async (req, res) => { + try { + const html = await mailer.renderHtml('auth/successVerification', { + appUrl: process.env.APP_URL + }) + return res.status(200).send(html) + } catch (error) { + console.error(error) + return res.status(500).json({message: error.message}) + } +}) + +router.get('/create-initiative', async (req, res) => { + try { + const contact = { + fullname: 'John Doe', + email: 'something@gmail.com', + phone: '1234567890', + keepPrivate: false, + } + const initiative = { + name: 'Test Initiative', + description: 'My descriptions', + needsAndOffers: 'My needs and offers', + } + const subdivisions = await models.Subdivision.findAll({include: 'city'}) + // console.log(JSON.stringify(subdivisions,null,2)) + + // get a random subdivision + const randomSubdivision = subdivisions[Math.floor(Math.random() * subdivisions.length)] + console.log(JSON.stringify(randomSubdivision,null,2)) + + // get dimension 1 and 2 + const dimension1 = await models.Dimension.findByPk(1) + const dimension2 = await models.Dimension.findByPk(2) + // console.log(JSON.stringify(dimension1,null,2)) + // console.log(JSON.stringify(dimension2,null,2)) + + + const newContact = await models.InitiativeContact.create(contact) + const newInitiative = await models.Initiative.create({ + ...initiative, + contactId: newContact.id, + subdivisionId: randomSubdivision.id, + }) + await newInitiative.addDimensions([dimension1, dimension2]) + + const finalResult = await models.Initiative.findByPk(newInitiative.id, { + include: [ + {model: models.InitiativeContact, as: 'contact'}, + {model: models.Subdivision, as: 'subdivision'}, + {model: models.Dimension, as: 'dimensions'} + ] + }) + + return res.status(200).json({ + finalResult, + }) + + } catch (error) { + console.error(error) + return res.status(500).json({message: error.message}) + } +}) + +module.exports = router; diff --git a/routes/utils.js b/routes/utils.js new file mode 100644 index 0000000..a2a49e6 --- /dev/null +++ b/routes/utils.js @@ -0,0 +1,35 @@ +const express = require('express'); +const { check } = require('express-validator'); + +const validate = require('../middlewares/validate'); +const authorize = require('../middlewares/authorize'); +const requiresAnon = require('../middlewares/requiresAnon'); +const UtilsController = require('../controllers/utilsController'); +const msg = require('../utils/messages'); + +// initialize router +const router = express.Router(); + +// ----------------------------------------------- +// BASE /utils +// ----------------------------------------------- +// POST /utils/subdivisions +// ----------------------------------------------- + + +router.get('/subdivisions', + UtilsController.getSubdivisions +); + +// ----------------------------------------------- + +router.get('/somethingForUsers', + authorize(), + UtilsController.somethingForUsers +) + +router.get('/generateBlogPosts', + UtilsController.generateBlogPosts +) + +module.exports = router; diff --git a/services/auth.js b/services/auth.js new file mode 100644 index 0000000..9e66982 --- /dev/null +++ b/services/auth.js @@ -0,0 +1,27 @@ +// const jwt = require('jsonwebtoken');// import passport and passport-jwt modules + +// const passport = require('passport'); +// const passportJWT = require('passport-jwt');// ExtractJwt to help extract the token + +// let ExtractJwt = passportJWT.ExtractJwt;// JwtStrategy which is the strategy for the authentication + +// let JwtStrategy = passportJWT.Strategy; +// let jwtOptions = {}; +// jwtOptions.jwtFromRequest = ExtractJwt.fromAuthHeaderAsBearerToken(); + +// jwtOptions.secretOrKey = process.env.JWT_SECRET; + +// // lets create our strategy for web token +// let strategy = new JwtStrategy(jwtOptions, function(jwt_payload, next) { +// console.log('auth.js - payload received', jwt_payload); +// let user = getUser({ id: jwt_payload.id }); +// if (user) { +// next(null, user); +// } else { +// next(null, false); +// } +// }); +// // use the strategy +// passport.use(strategy); + +// module.exports = passport; \ No newline at end of file diff --git a/services/constants.js b/services/constants.js new file mode 100644 index 0000000..8e51425 --- /dev/null +++ b/services/constants.js @@ -0,0 +1,9 @@ +// constants + +module.exports = { + ROLES: { + ADMINISTRATOR: 'admin', + USER: 'user', + ALL: ['admin', 'user'] + }, +} \ No newline at end of file diff --git a/services/mailer.js b/services/mailer.js new file mode 100644 index 0000000..ed6dbfb --- /dev/null +++ b/services/mailer.js @@ -0,0 +1,66 @@ +const nodemailer = require('nodemailer'); +// const agenda = require("agenda"); +const nunjucks = require('nunjucks'); +const path = require('path'); + +nunjucks.configure(path.join(__dirname, 'templates'), { + autoescape: true, + noCache: true, +}); + +const transporter = nodemailer.createTransport({ + host: process.env.MAILER_HOST, + port: process.env.MAILER_PORT, + auth: { + user: process.env.MAILER_USER, + pass: process.env.MAILER_PASSWORD + } +}); + + +exports.renderEmailHtml = async (template, data) => { + try { + // Render the nunjucks template + return nunjucks.render(`mails/${template}.njk`, data); + } catch (error) { + throw error; + } +} + +exports.renderHtml = async (templatePath, data) => { + try { + // Render the nunjucks template + return nunjucks.render(`${templatePath}.njk`, data); + } catch (error) { + throw error; + } +} + + + +exports.sendNow = async (to, subject, html) => { + try { + let info = await transporter.sendMail({ + from: process.env.MAILER_FROM, + to, + subject, + html + }); + console.log('Message sent: %s', info.messageId); + } catch (error) { + console.log(error); + } +} + +exports.sendLater = async (to, subject, html, when) => { + try { + // let info = await agenda.schedule(when, 'send email', { + // to, + // subject, + // html + // }); + // console.log('Job created: %s', info.attrs._id); + } catch (error) { + console.log(error); + } +} diff --git a/services/migrations.js b/services/migrations.js new file mode 100644 index 0000000..5e65609 --- /dev/null +++ b/services/migrations.js @@ -0,0 +1,42 @@ +const { sequelize, Sequelize } = require('../models'); +const {Umzug, SequelizeStorage} = require('umzug') + +const umzugInstance = new Umzug({ + migrations: { + glob: 'migrations/*.js' + }, + context: sequelize.getQueryInterface(), + storage: new SequelizeStorage({sequelize}), + logger: console, +}) + +async function migrate() { + try { + await umzugInstance.up() + console.log('-- All migrations have been executed') + } catch (error) { + console.error('-- There was an error migrating the database!') + console.error(error) + console.log('- The app will now exit...') + process.exit(1) + } +} + +async function checkPendingMigrations() { + console.log(`- Checking database migrations...`); + const pendingMigrations = await umzugInstance.pending() + if (pendingMigrations.length > 0) { + console.log(`-- There are ${pendingMigrations.length} pending migrations:`) + console.log(pendingMigrations.map(m => m.name)) + } else { + console.log('-- There are no pending migrations'); + } +} + +const migrations = { + umzug: umzugInstance, + migrate, + checkPendingMigrations +} + +module.exports = migrations \ No newline at end of file diff --git a/services/templates/auth/alreadyVerified.njk b/services/templates/auth/alreadyVerified.njk new file mode 100644 index 0000000..0c43ceb --- /dev/null +++ b/services/templates/auth/alreadyVerified.njk @@ -0,0 +1,13 @@ +{% extends "auth/base.njk" %} + +{% block main %} +

+ Su cuenta ya se encuentra verificada +

+

Intente iniciar sesión en su cuenta.

+
+ +  Ir a la página de inicio + + +{% endblock %} diff --git a/services/templates/auth/base.njk b/services/templates/auth/base.njk new file mode 100644 index 0000000..2842cd0 --- /dev/null +++ b/services/templates/auth/base.njk @@ -0,0 +1,29 @@ + + + + + + Asambleas Climaticas - Verificar cuenta + + + + + +
+
+
+ + {% block main %}{% endblock %} +
+
+
+ + \ No newline at end of file diff --git a/services/templates/auth/error.njk b/services/templates/auth/error.njk new file mode 100644 index 0000000..6b0e257 --- /dev/null +++ b/services/templates/auth/error.njk @@ -0,0 +1,14 @@ +{% extends "auth/base.njk" %} + +{% block main %} +

+  Error +

+

Ocurrió un error al procesar su solicitud

+

Intente nuevamente. Si el error persiste, por favor contacte con Resurgentes

+
+ +  Ir a la página de inicio + + +{% endblock %} diff --git a/services/templates/auth/noToken.njk b/services/templates/auth/noToken.njk new file mode 100644 index 0000000..497725f --- /dev/null +++ b/services/templates/auth/noToken.njk @@ -0,0 +1,15 @@ +{% extends "auth/base.njk" %} + +{% block main %} +

+  Error +

+

Token invalido

+

No logramos encontrar un token valido para procesar su solicitud.

+

Por favor, intente nuevamente.

+
+ +  Ir a la página de inicio + + +{% endblock %} diff --git a/services/templates/auth/noUser.njk b/services/templates/auth/noUser.njk new file mode 100644 index 0000000..5827cf0 --- /dev/null +++ b/services/templates/auth/noUser.njk @@ -0,0 +1,15 @@ +{% extends "auth/base.njk" %} + +{% block main %} +

+  Error +

+

Usuario inexistente

+

No hemos encontrado un usuario vinculado al token.

+

Por favor, intente nuevamente.

+
+ +  Ir a la página de inicio + + +{% endblock %} diff --git a/services/templates/auth/successVerification.njk b/services/templates/auth/successVerification.njk new file mode 100644 index 0000000..564ae7e --- /dev/null +++ b/services/templates/auth/successVerification.njk @@ -0,0 +1,14 @@ +{% extends "auth/base.njk" %} + +{% block main %} +

+  Su cuenta ha sido verificada +

+

¡Gracias por verificar tu cuenta!

+

Ya puede iniciar sesión en su cuenta de Incidir para Existir

+
+ +  Ir a la página de inicio + + +{% endblock %} diff --git a/services/templates/auth/tokenExpired.njk b/services/templates/auth/tokenExpired.njk new file mode 100644 index 0000000..22993ac --- /dev/null +++ b/services/templates/auth/tokenExpired.njk @@ -0,0 +1,14 @@ +{% extends "auth/base.njk" %} + +{% block main %} +

+  Error +

+

Token expirado

+

El token ha expirado y no podemos procesar su solicitud.

+

Por favor, solicite un nuevo token e intente nuevamente.

+
+ +  Ir a la página de inicio + +{% endblock %} diff --git a/services/templates/base.njk b/services/templates/base.njk new file mode 100644 index 0000000..001b5a0 --- /dev/null +++ b/services/templates/base.njk @@ -0,0 +1,64 @@ + + + + + + {% block title %}{% endblock %} + {% include 'css.njk' %} + + + {% block preheader %}{% endblock%} + + + + + + + + + \ No newline at end of file diff --git a/services/templates/css.njk b/services/templates/css.njk new file mode 100644 index 0000000..242f178 --- /dev/null +++ b/services/templates/css.njk @@ -0,0 +1,352 @@ + \ No newline at end of file diff --git a/services/templates/footer.njk b/services/templates/footer.njk new file mode 100644 index 0000000..f8343a6 --- /dev/null +++ b/services/templates/footer.njk @@ -0,0 +1,18 @@ + + + \ No newline at end of file diff --git a/services/templates/logo-dark.njk b/services/templates/logo-dark.njk new file mode 100644 index 0000000..8665d5d --- /dev/null +++ b/services/templates/logo-dark.njk @@ -0,0 +1,219 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/services/templates/macros.njk b/services/templates/macros.njk new file mode 100644 index 0000000..0228776 --- /dev/null +++ b/services/templates/macros.njk @@ -0,0 +1,116 @@ +{% macro sentence(text) %} +

{{ text }}

+{% endmacro %} + +{% macro button(link, label) %} + + + + + + + +{% endmacro %} + +{% macro commentBox(user, userCountryEmoji, comment, commentDate) %} + + + + + + + +{% endmacro %} + +{% macro commentAndReplyBox(user, userCountryEmoji, comment, commentDate, userReply, userCountryReply, reply, replyDate) %} + + + + + + + +{% endmacro %} + +{% macro authorNotesBox(user, userCountryEmoji, authorsNote, version, createdAt) %} + + + + + + + +{% endmacro %} + +{% macro preheader(text) %} +{{ text }} +{% endmacro %} + +{% macro title(text) %} +{{ text }} +{% endmacro %} + +{% macro sentence_italic(text) %} +

{{ text }}

+{% endmacro %} + +{% macro sentence_black(text) %} +

{{ text }}

+{% endmacro %} diff --git a/services/templates/mails/reset.njk b/services/templates/mails/reset.njk new file mode 100644 index 0000000..3b62731 --- /dev/null +++ b/services/templates/mails/reset.njk @@ -0,0 +1,16 @@ +{% extends "base.njk" %} + +{% import "macros.njk" as macros %} + +{% block preheader %} + {{ macros.preheader('Restablecer tu contraseña') }} +{% endblock %} + +{% block main %} + {{ macros.sentence('¡Hola! 👋') }} + {{ macros.sentence('Hemos recibido una solicitud para restablecer la contraseña de tu cuenta.') }} + {{ macros.sentence('Haz click aquí para generar una nueva:') }} + {{ macros.button(url, 'Restablecer Contraseña') }} + {{ macros.sentence('Si no solicitaste esta recuperación, puedes ignorar este correo electrónico.') }} + {{ macros.sentence('Equipo de Movilizatorio') }} +{% endblock %} \ No newline at end of file diff --git a/services/templates/mails/signup.njk b/services/templates/mails/signup.njk new file mode 100644 index 0000000..5226af9 --- /dev/null +++ b/services/templates/mails/signup.njk @@ -0,0 +1,17 @@ +{% extends "base.njk" %} + +{% import "macros.njk" as macros %} + +{% block preheader %} + {{ macros.preheader('Validá tu cuenta para completar tu registro') }} +{% endblock %} + +{% block main %} + {{ macros.sentence('¡Hola! 👋') }} + {{ macros.sentence('Si recibiste este email, es porque te has registrado en nuestra plataforma para formar parte del pacto inter-ciudad.') }} + {{ macros.sentence('Para finalizar el registro, haz click aquí para confirmar tu cuenta.') }} + {{ macros.button(url, 'Confirmar cuenta') }} + {{ macros.sentence('Si no te has registrado, ignora este email.') }} + {{ macros.sentence('Equipo de Movilizatorio') }} +{% endblock %} + diff --git a/services/templates/mails/verify.njk b/services/templates/mails/verify.njk new file mode 100644 index 0000000..ebc0f5f --- /dev/null +++ b/services/templates/mails/verify.njk @@ -0,0 +1,19 @@ +{% extends "base.njk" %} + +{% import "macros.njk" as macros %} + +{% block preheader %} + {{ macros.preheader('Confirmá tu cuenta de correo para participar') }} +{% endblock %} + +{% block main %} + {{ macros.sentence('¡Hola! 👋') }} + {{ macros.sentence('Si recibiste este mensaje es porque se ha modificado el correo electrónico de tu cuenta en "Incidir para Existir".') }} + {{ macros.sentence('Para acceder nuevamente es necesario que confirmes tu dirección de email.') }} + {{ macros.sentence_black('Haz click aquí para confirmar tu cuenta.') }} + {{ macros.button(url, 'Confirmar cuenta') }} + {{ macros.sentence_italic('Si crees que recibiste este email por error, por favor ignora este mensaje.') }} + {{ macros.sentence('Si tienes alguna pregunta sobre tus credenciales de usuario, no dudes en contactarnos.') }} + {{ macros.sentence('Equipo de Movilizatorio') }} +{% endblock %} + diff --git a/utils/messages.js b/utils/messages.js new file mode 100644 index 0000000..8b723ca --- /dev/null +++ b/utils/messages.js @@ -0,0 +1,47 @@ +module.exports = { + error: { + default: "Ocurrió un error inesperado." + }, + auth: { + error: { + invalidCredentials: "El email o contraseña son incorrectos", + unverified: "La cuenta aún no ha ha sido verificada", + alreadyLoggedIn: "Acceso no autorizado - Ya ha iniciado sesión", + unauthorized: "Acceso no autorizado", + noToken: "Acceso no autorizado - No se encontró token", + forbidden: "Acceso no autorizado - No cuenta con permiso para acceder a este recurso", + alreadyVerified: "La cuenta ya ha sido verificada", + tokenNotFound: "El token no fue encontrado o pudo haber expirado. Por favor, solicite un nuevo token", + userNotFound: "Usuario no encontrado", + emailNotFound: "El email no fue encontrado o es incorrecto", + emailNotAssociated: "La direccion de email {{email}} no se encuentra asociada a ninguna cuenta. Por favor, verifique que la dirección sea correcta" + }, + success: { + login: "Sesión iniciada correctamente", + logout: "Sesión cerrada correctamente", + signup: "Cuenta creada correctamente", + passwordUpdated: "Contraseña actualizada correctamente", + verification: "Cuenta verificada correctamente. Por favor, inicie sesión", + verificationMailSent: "Un email de verificación ha sido enviado a su dirección de correo {{email}}", + verificationMailResent: "Un nuevo email de verificación ha sido enviado a su dirección de correo {{email}}", + resetMailSent: "Un email con instrucciones para restablecer su contraseña ha sido enviado a su dirección de correo {{email}}" + } + }, + validationError: { + invalidValue: "Valor inválido", + defaultMessage: "Hubo un error validando los datos", + email: "El email no es válido", + password: "La contraseña no es valida (debe tener al menos 6 caracteres)", + firstName: "El nombre no es valido", + lastName: "El nombre no es valido", + date: "La fecha no es válida, debe ser ISO 8601, o sea, YYYY-MM-DD", + role: "El rol no es válido", + integer: "El valor debe ser un número entero", + boolean: "El valor debe ser true o false", + string: "El valor debe ser una cadena de caracteres", + page: "Debe ser un numero entero mayor o igual a 1", + limit: "Debe ser un numero entero entre 1 y 25", + token: "El token es requerido o no es valido", + query: "El parametro query debe ser un string", + } +} \ No newline at end of file