diff --git a/.env b/.env index d30fb19..f224ef1 100755 --- a/.env +++ b/.env @@ -1,43 +1,21 @@ -# APP CONFIG PORT=6014 PORT_EXPRESS=3400 PORT_UDP=20203 -# NODE_ENV=development NODE_ENV=production API_VERSION=1 PATH_URL=/tracking TZ=Asia/Jakarta -# DATABASE CONFIG -# CONNECTIONLIMIT=10 -# # DBHOST=149.129.214.64 -# DBHOST=8.215.31.239 -# DBUSER=root -# DBPASSWORD=vYR/+QHD4lJ8y/v2 -# DATABASE=db_trucking -# ACQRTIMEOUT=10000 - -# DATABASE CONFIG BONCENG(mariadb) -# CONNECTIONLIMIT=10 -# DBHOST=147.139.133.230 -# DBUSER=boncengdball -# DBPASSWORD=rtzL8NI4TchNNwu7 -# DATABASE=db_trucking -# ACQRTIMEOUT=10000 - -# DATABASE CONFIG BONCENG(mariadb 10.7) CONNECTIONLIMIT=10 -DBHOST=127.0.0.1 -DBUSER=root -DBPASSWORD=root -DATABASE=db_fleet +DBHOST=172.16.140.45 +DBPORT=3306 +DBUSER=remote +DBPASSWORD=L8q@Rz!1Yk#mWu3B +DATABASE=gps_tracker_db ACQRTIMEOUT=10000 -# REDIS CONFIG -# if using local system -# REDIS_HOST=localhost -# if using docker -REDIS_HOST=redis +#REDIS_HOST=redis +REDIS_HOST=localhost REDIS_PORT=6379 REDIS_SCHEDULER_REVERSE_GEO=scheduleReverseGeocode REDIS_QUEUE_BLAST_ORDER=queueBlastOrder @@ -47,22 +25,15 @@ REDIS_SCHEDULER_DRV_UP_LOC_IDLE=scheduleDrvUpLocIdle REDIS_SCHEDULER_DRV_BLAST_NOTIF=schedulerDrvBlastNotif REDIS_SCHEDULER_GPS_TRACKER_WAKEUP=schedulerGpsTrackerWakeUp -# SMTP MAILTRAP RAFIF SMTP_HOST=smtp.mailtrap.io SMTP_PORT=2525 SMTP_USER=e9aace0ebb3398 SMTP_PASW=c8f9ccee5122d6 SMTP_FROM=rafifrest@gmail.com -# SMTP BONCENG NO REPLY -# SMTP_HOST=bagaspati.iixcp.rumahweb.com -# SMTP_PORT=465 -# SMTP_USER=non-reply@bonceng-indonesia.com -# SMTP_PASW=eGgKSpJAuv1p -# SMTP_FROM=non-reply@bonceng-indonesia.com +PROXY_URL=172.16.128.214 +PROXY_PORT=8080 -# SCHEDULER BULLMQ CONFIG (CUSTOM) -# sekali jalan maximal looping SCHEDULE_REVERSE_GEO_MAX_LOOP=10 SCHEDULE_REVERSE_GEO_TIME=*/2 * * * * SCHEDULE_DRV_UP_LOC_MAX_LOOP=1 @@ -82,4 +53,4 @@ CS_ADDR='Jalan RC Veteran 11A, Rempoa, Bintaro, Pesanggrahan, Kota Jakarta Selat MAIL_ASSET=http://149.129.214.64/fms_dev/mails/v0/assets/ FMS_URL=http://149.129.214.64/fms_dev/ -API_DANA_BINGCORP=http://api.simerahputih.com/dana_bingcorp/ \ No newline at end of file +API_DANA_BINGCORP=http://api.simerahputih.com/dana_bingcorp/ diff --git a/.env.example b/.env.example old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 index e6d0e13..d5c8597 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ node_modules/ logs/ -# .env +.env # .env.* .vscode .DS_Store -files/storage \ No newline at end of file +files/storage diff --git a/Dockerfile b/Dockerfile old mode 100644 new mode 100755 diff --git a/Message Notifikasi Apps Driver Tracker.xlsx b/Message Notifikasi Apps Driver Tracker.xlsx old mode 100644 new mode 100755 diff --git a/README.MD b/README.MD old mode 100644 new mode 100755 diff --git a/abcd.json b/abcd.json old mode 100644 new mode 100755 diff --git a/app.js b/app.js old mode 100644 new mode 100755 index 1754c87..23a205f --- a/app.js +++ b/app.js @@ -1,5 +1,6 @@ require('dotenv').config({ path: '.env' }); require('events').EventEmitter.prototype._maxListeners = 30; +const morgan = require('morgan'); // start for gps-tracking const net = require('net'); const dgram = require('dgram'); @@ -16,7 +17,7 @@ const nanoid = require('nanoid').nanoid; // start for normal http request const express = require('express'); -const LibBullAdapter = require('./library/LibBullAdapter'); +// const LibBullAdapter = require('./library/LibBullAdapter'); const routes = require('./routes/routes'); // const routes = require('./routes/routes_without_scheduler'); const app = express(); @@ -465,6 +466,7 @@ net.createServer({ // end for gps-tracking TCP ONLY // start for normal http request +app.use(morgan('combined')); app.use(express.json({ limit: '10mb' })); // parsing application/json app.use(express.urlencoded({ extended: true, limit: '10mb' })); // parsing application/x-www-form-urlencoded app.use(async function (req, res, next) { @@ -474,7 +476,7 @@ app.use(async function (req, res, next) { res.header('Access-Control-Allow-Headers', 'Accept, Authorization, Content-Type, X-Requested-With, Range, x-api-key, x-forwarded-for'); next(); }); -app.use(process.env.PATH_URL + '/bull/monitor', LibBullAdapter.getRouter()); +// app.use(process.env.PATH_URL + '/bull/monitor', LibBullAdapter.getRouter()); routes.use(app); app.listen(process.env.PORT_EXPRESS, () => { console.log('Express server running at port ' + process.env.PORT_EXPRESS); @@ -564,4 +566,4 @@ udp.on('listening', () => { }); udp.bind(process.env.PORT_UDP); -// end for gps-tracking UDP ONLY \ No newline at end of file +// end for gps-tracking UDP ONLY diff --git a/app.js.express b/app.js.express old mode 100644 new mode 100755 diff --git a/app.js.gps b/app.js.gps old mode 100644 new mode 100755 diff --git a/app_dev_restapi.js b/app_dev_restapi.js old mode 100644 new mode 100755 diff --git a/app_scheduler.js b/app_scheduler.js old mode 100644 new mode 100755 diff --git a/backup/.gitignore b/backup/.gitignore old mode 100644 new mode 100755 diff --git a/config/dbMysqlConn.js b/config/dbMysqlConn.js old mode 100644 new mode 100755 index 7491113..d5ce1fb --- a/config/dbMysqlConn.js +++ b/config/dbMysqlConn.js @@ -3,6 +3,7 @@ const mysql = require('mysql'); const pool = mysql.createPool({ connectionLimit: process.env.CONNECTIONLIMIT, host: process.env.DBHOST, + port: process.env.DBPORT, user: process.env.DBUSER, password: process.env.DBPASSWORD, database: process.env.DATABASE, @@ -38,4 +39,4 @@ pool.getConnection((err, conn) => { // console.log('Connection %d released', connection.threadId); // }); -module.exports = pool; \ No newline at end of file +module.exports = pool; diff --git a/config/netConn.js b/config/netConn.js old mode 100644 new mode 100755 diff --git a/config/request.js b/config/request.js old mode 100644 new mode 100755 diff --git a/config/response.js b/config/response.js old mode 100644 new mode 100755 diff --git a/controllers/AuthController.js b/controllers/AuthController.js old mode 100644 new mode 100755 diff --git a/controllers/DummyController.js b/controllers/DummyController.js old mode 100644 new mode 100755 diff --git a/controllers/ListenController.js b/controllers/ListenController.js new file mode 100644 index 0000000..ad58a99 --- /dev/null +++ b/controllers/ListenController.js @@ -0,0 +1,421 @@ +const moment = require("moment"); +const Validator = require("validatorjs"); +const Helper = require("../library/LibHelper"); +const response = require("../config/response"); +const LibMail = require("../library/LibMail"); +const LibDevice = require("../library/LibDevice"); +const DanaModels = require("../models/DanaModels"); +const GpsTracksModels = require("../models/GpsTracksModels"); +const { nanoid } = require("nanoid"); +const VhcModels = require("../models/VhcModels"); +const ZoneModels = require("../models/ZoneModels"); +const LibHelper = require("../library/LibHelper"); + +// const LibQueueBlastOrder = require('../library/LibQueueBlastOrder'); +Validator.useLang("en"); + +const devices = []; + +async function commitMessage(now, logDevice) { + try { + // don't log + if (!logDevice.original_hex) { + return false; + } + // in the future don't log to db if device_id not found in vhc + const vhc = await VhcModels.getVhcByDeviceId(logDevice.device_id); + const lastTrack = await GpsTracksModels.get2LastLocByDeviceId(logDevice.device_id); + if (["heartbeat", "alarm"].includes(logDevice.action)) { + // set engine stts moving,idling,stopped + if (logDevice.ignition == GpsTracksModels.STTS_IGNITION_HIGH) { + if (logDevice.speed) { + logDevice.stts_engine = GpsTracksModels.STTS_EN_MOVING; + } else { + if (lastTrack.length > 0) { + const checkLastHeartbeat = await GpsTracksModels.getLastHeartbeatToDeterminIdling(logDevice.device_id, lastTrack[0].crt, now); + if (checkLastHeartbeat.length >= 3) { + logDevice.stts_engine = GpsTracksModels.STTS_EN_IDLING; + } else { + logDevice.stts_engine = lastTrack[0].stts_engine; + } + } + } + } else { + logDevice.stts_engine = GpsTracksModels.STTS_EN_STOPING; + } + } + // get last ignition, stts_engine, stts_alarm, stts_charge, stts_acc, stts_volt, stts_switch + if (["location"].includes(logDevice.action)) { + console.log("logDevice:", logDevice); + // get last ignition + const lastHeartbeatOrAlarm = await GpsTracksModels.get2LastHeartbeatOrAlarm(logDevice.device_id); + if (lastHeartbeatOrAlarm.length > 0) { + logDevice.ignition = lastHeartbeatOrAlarm[0].ignition; + logDevice.stts_gps = lastHeartbeatOrAlarm[0].stts_gps; + logDevice.stts_gsm = lastHeartbeatOrAlarm[0].stts_gsm; + } else { + logDevice.ignition = lastHeartbeatOrAlarm[0].ignition; + logDevice.stts_gps = lastHeartbeatOrAlarm[0].stts_gps; + logDevice.stts_gsm = lastHeartbeatOrAlarm[0].stts_gsm; + } + // set engine stts moving,idling,stopped + if (logDevice.ignition == GpsTracksModels.STTS_IGNITION_HIGH) { + if (logDevice.speed) { + logDevice.stts_engine = GpsTracksModels.STTS_EN_MOVING; + } else { + if (lastTrack.length > 0) { + const checkLastHeartbeat = await GpsTracksModels.getLastHeartbeatToDeterminIdling(logDevice.device_id, lastTrack[0].crt, now); + if (checkLastHeartbeat.length >= 3) { + logDevice.stts_engine = GpsTracksModels.STTS_EN_IDLING; + } else { + logDevice.stts_engine = lastTrack[0].stts_engine; + } + } + } + // get stts_alarm, stts_charge, stts_acc, stts_volt, stts_switch + } else { + logDevice.stts_engine = GpsTracksModels.STTS_EN_STOPING; + } + logDevice.stts_oil_electricity = lastHeartbeatOrAlarm[0].stts_oil_electricity; + logDevice.stts_alarm = lastHeartbeatOrAlarm[0].stts_alarm; + logDevice.stts_charge = lastHeartbeatOrAlarm[0].stts_charge; + logDevice.stts_acc = lastHeartbeatOrAlarm[0].stts_acc; + logDevice.stts_volt = lastHeartbeatOrAlarm[0].stts_volt; + logDevice.stts_switch = lastHeartbeatOrAlarm[0].stts_switch; + } + + // sekarang heartbeat diinject data lokasi juga dari lokasi terakhir + if (["heartbeat"].includes(logDevice.action)) { + if (lastTrack.length > 0) { + logDevice.latitude = lastTrack[0].latitude; + logDevice.longitude = lastTrack[0].longitude; + logDevice.speed = lastTrack[0].speed; + logDevice.orientation = lastTrack[0].orientation; + if (logDevice.latitude) { + logDevice.stts_reverse_geo = GpsTracksModels.STTS_REVERSE_GEO_NOT; + } + + logDevice.length_gps = lastTrack[0].length_gps; + logDevice.pos_stlt_gps = lastTrack[0].pos_stlt_gps; + logDevice.pos_type_gps = lastTrack[0].pos_type_gps; + logDevice.is_pos_gps = lastTrack[0].is_pos_gps; + + // jika gapengen dimunculin di last movement + // logDevice.crt = lastTrack[0].crt; + // logDevice.crt_format = lastTrack[0].crt_format; + // logDevice.crt_d = lastTrack[0].crt_d; + // logDevice.crt_d_format = lastTrack[0].crt_d_format; + // jika pengen di munculin di last movement + logDevice.crt = now; + logDevice.crt_format = moment.unix(now).format("YYYY-MM-DD HH:mm:ss"); + logDevice.crt_d = now; + logDevice.crt_d_format = moment.unix(now).format("YYYY-MM-DD HH:mm:ss"); + } + } + + // count milleage + if (logDevice.latitude != null && logDevice.longitude != null && lastTrack.length > 0) { + const distance = LibHelper.haversineGreatCircleDistance(lastTrack[0].latitude, lastTrack[0].longitude, logDevice.latitude, logDevice.longitude, LibHelper.EARTH_RADIUS_KM); + const distance_km = LibHelper.kmToKm(distance, 100000000); + // console.log(`GPS TRACKER UP LOCATION => device_id:${logDevice.device_id} vhc_id:${(vhc[0]) ? vhc[0].vid : 0}, distance_km:${distance_km}`); + // validasi jika lebih dari 3km, ga disimpan + if (distance_km >= 3) { + GpsTracksModels.bundleCreate2(logDevice, logDevice); // jika tidak disimpan malah jadi bug, jadi akan update lokasi terus dengan kalkulasi jarak sebelumnya jadi makan lama makin lebar, mending disimpen terus milleagenya jadi 0 aja + return false; + } + logDevice.pre_milleage = distance_km; + logDevice.sum_milleage = (lastTrack[0].sum_milleage + logDevice.pre_milleage).toFixed(8); + if (vhc.length > 0) { + logDevice.vhc_id = vhc[0] ? vhc[0].vid : 0; + if (lastTrack[0].vhc_id == logDevice.vhc_id) { + logDevice.vhc_milleage = (lastTrack[0].vhc_milleage + logDevice.pre_milleage).toFixed(8); + } else { + logDevice.vhc_milleage = (vhc[0] ? vhc[0].sum_milleage : 0 + logDevice.pre_milleage).toFixed(8); + } + VhcModels.update(vhc[0] ? vhc[0].vid : 0, { sum_milleage: logDevice.vhc_milleage }); + } + } + + // truck zoning spawn + if (logDevice.latitude != null && logDevice.longitude != null) { + // && vhc.length > 0 + // log tracking + const currTrack = await GpsTracksModels.bundleCreate2(logDevice, logDevice); + // console.log('GT06 HAS LOCATION AND CHECK ZONE'); + const inCircle = await ZoneModels.getInCircle(logDevice.latitude, logDevice.longitude); + const inShape = await ZoneModels.getInShape(logDevice.latitude, logDevice.longitude); + const insideSpawnZone = []; + for (let zone of inCircle) { + insideSpawnZone.push(zone); + } + for (let zone of inShape) { + insideSpawnZone.push(zone); + } + + /** + * get lastSpawn desc index 0, where leave_at = 0 + * kalo gaada create, dengan isi field enter_at aja, kalo ada didalam zona + * kalo ada update, dengan isi field leave_at aja, kalo udah diluar zona + */ + const lastSpawn = await GpsTracksModels.listSpawnZone({ + source: GpsTracksModels.SOURCE_GPS_TRACKER, + device_id: logDevice.device_id, + vhc_id: vhc[0] ? vhc[0].vid : 0, + leave_at_d: 0, + order_by: "ORDER BY id DESC", + limit: 1, + }); + + if (lastSpawn.length > 0) { + let is_leave_zone = 1; + for (const insideZone of insideSpawnZone) { + if (insideZone.zid === lastSpawn[0].zone_id) is_leave_zone = 0; + } + if (is_leave_zone === 1 && lastSpawn[0].device_id == logDevice.device_id) { + GpsTracksModels.updt2SpawnZone( + { + leave_lat: logDevice.latitude, + leave_lng: logDevice.longitude, + leave_at_d: logDevice.crt_d || now, + leave_at_d_format: moment.unix(logDevice.crt_d || now).format("YYYY-MM-DD HH:mm:ss"), + leave_at_s: now, + leave_at_s_format: moment.unix(now).format("YYYY-MM-DD HH:mm:ss"), + updt: now, + updt_format: moment.unix(now).format("YYYY-MM-DD HH:mm:ss"), + }, + lastSpawn[0].id + ); + } + } else { + for (let zone of insideSpawnZone) { + let mailData = { + pic_name: zone.pic_name, + pic_mail: zone.pic_mail, + z_name: zone.name, + z_type_name: zone.type_name, + z_workflow_name: zone.workflow_type_name, + shiptocode: zone.shiptocode, + z_fulladdress: zone.fulladdress, + v_nopol: (vhc[0] ? vhc[0].nopol1 : 0 || "") + (vhc[0] ? vhc[0].nopol2 : 0 || "") + (vhc[0] ? vhc[0].nopol3 : 0 || ""), + da_name: vhc[0] ? vhc[0].da_name : 0 || "", + da_phone: "+" + (vhc[0] ? vhc[0].da_phone_code : 0 || "") + (vhc[0] ? vhc[0].da_phone : 0 || ""), + }; + // LibMail.sendVhcSpawnZoneMail(`${(vhc[0]) ? vhc[0].nopol1 : 0 || ''}${(vhc[0]) ? vhc[0].nopol2 : 0 || ''}${(vhc[0]) ? vhc[0].nopol3 : 0 || ''} entering zone ${mailData.z_name}`, mailData.pic_mail, mailData); + + if (logDevice.device_id === "0865784052395871") console.log(1234567890); + GpsTracksModels.create2SpawnZone({ + device_id: logDevice.device_id, + master_id: Number(currTrack.result.insertId), + enter_lat: logDevice.latitude, + enter_lng: logDevice.longitude, + enter_at_d: logDevice.crt_d || now, + enter_at_d_format: moment.unix(logDevice.crt_d || now).format("YYYY-MM-DD HH:mm:ss"), + enter_at_s: now, + enter_at_s_format: moment.unix(now).format("YYYY-MM-DD HH:mm:ss"), + zone_id: zone.zid, + zone_name: zone.name, + vhc_id: vhc[0] ? vhc[0].vid : 0, + source: GpsTracksModels.SOURCE_GPS_TRACKER, + crt: now, + crt_format: moment.unix(now).format("YYYY-MM-DD HH:mm:ss"), + }); + if (logDevice.device_id === "0865784052395871") console.log("DISINI"); + } + } + } else { + // log tracking + GpsTracksModels.bundleCreate2(logDevice, logDevice); + } + } catch (e) { + console.error(e); + } +} + +class ListenController { + async gps(req, res) { + let apiRes = {}; + try { + const c = { id: req.body._id }; + let buffer_req = Buffer.from(req.body.data, "base64"); + console.log("buffer_req", buffer_req); + const now = moment().unix(); + const me = LibDevice.identifyProtocolFromBuffer(buffer_req); + // console.log('app ', buffer_req); + + const logDevice = { + original_hex: me.ori_string, + protocol: me.protocol_name == "unknown" ? null : me.protocol_name, + action: null, + device_id: null, + latitude: null, + longitude: null, + speed: null, + orientation: 0, + ignition: 0, + stts_engine: 0, + stts_gps: 0, + length_gps: 0, + pos_stlt_gps: 0, + pos_type_gps: 0, + is_pos_gps: 0, + stts_gsm: 0, + stts_oil_electricity: 0, + stts_alarm: 0, + stts_charge: 0, + stts_acc: 0, + stts_volt: 0, + stts_switch: 0, + stts_reverse_geo: 0, + pre_milleage: 0, + source: GpsTracksModels.SOURCE_GPS_TRACKER, + vhc_id: 0, + drv_id: 0, + crt: now, + crt_format: moment.unix(now).format("YYYY-MM-DD HH:mm:ss"), + crt_d: 0, + crt_d_format: null, + crt_s: now, + crt_s_format: moment.unix(now).format("YYYY-MM-DD HH:mm:ss"), + }; + + if (me.protocol_name == "gt06") { + // const act = LibDevice.gt06Action(me, device.device_id || null); + let dvc_id = devices[c.id]; + const act = LibDevice.gt06Action(me, dvc_id || null); + + if (act.action_type == "login") { + logDevice.action = act.action_type; + logDevice.device_id = act.device_id; + + devices[c.id] = act.device_id; + // netConn[act.device_id] = c; + if (typeof act.buffer_resp != "undefined") { + // c.write(act.buffer_resp); + } + } else if (act.action_type == "location") { + logDevice.action = act.action_type; + logDevice.device_id = act.device_id; + + logDevice.latitude = act.gps_data.latitude || null; + logDevice.longitude = act.gps_data.longitude || null; + logDevice.speed = act.gps_data.speed; + logDevice.orientation = act.gps_data.orientation; + if (logDevice.latitude) { + logDevice.stts_reverse_geo = GpsTracksModels.STTS_REVERSE_GEO_NOT; + } + + logDevice.length_gps = act.gps_data.quantity_pos_satellites_c; + logDevice.pos_stlt_gps = act.gps_data.quantity_pos_satellites_b; + logDevice.pos_type_gps = Number(act.gps_data.realtime_dif_gps) === 0 ? GpsTracksModels.STTS_POS_TYPE_GPS_RLTM : GpsTracksModels.STTS_POS_TYPE_GPS_DIFF; + logDevice.is_pos_gps = Number(act.gps_data.positioning_gps) ? GpsTracksModels.STTS_IS_POS_GPS_HAS : GpsTracksModels.STTS_IS_POS_GPS_NOT; + + logDevice.crt = moment(act.gps_data.date).unix(); + logDevice.crt_format = moment(act.gps_data.date).format("YYYY-MM-DD HH:mm:ss"); + logDevice.crt_d = moment(act.gps_data.date).unix(); + logDevice.crt_d_format = moment(act.gps_data.date).format("YYYY-MM-DD HH:mm:ss"); + } else if (act.action_type == "heartbeat") { + logDevice.action = act.action_type; + logDevice.device_id = act.device_id; + + logDevice.ignition = Number(act.stts_data.terminal_info.acc) ? GpsTracksModels.STTS_IGNITION_HIGH : GpsTracksModels.STTS_IGNITION_LOW; + logDevice.stts_gps = act.stts_data.terminal_info.gps_tracking ? GpsTracksModels.STTS_GPS_ON : GpsTracksModels.STTS_GPS_OFF; // 1=>on, 2=>off + logDevice.stts_gsm = Number(act.stts_data.gsm_signal_strength) + 1; // 1=>no signal, n>1=>get signal + + logDevice.stts_oil_electricity = Number(act.stts_data.terminal_info.oil_electricity) === 0 ? GpsTracksModels.STTS_OIL_ELECTRIC_ON : GpsTracksModels.STTS_OIL_ELECTRIC_OFF; // 1=>on, 2=>off + + let stts_alarm = Number(act.stts_data.terminal_info.stts); + if (stts_alarm == 0) { + logDevice.stts_alarm = GpsTracksModels.STTS_ALARM_NORMAL; + } else if (stts_alarm == 1) { + logDevice.stts_alarm = GpsTracksModels.STTS_ALARM_SHOCK; + } else if (stts_alarm == 2) { + logDevice.stts_alarm = GpsTracksModels.STTS_ALARM_POWER_CUT; + } else if (stts_alarm == 3) { + logDevice.stts_alarm = GpsTracksModels.STTS_ALARM_LOW_BATTERY; + } else if (stts_alarm == 4) { + logDevice.stts_alarm = GpsTracksModels.STTS_ALARM_SOS; + } + + logDevice.stts_charge = Number(act.stts_data.terminal_info.charge) ? GpsTracksModels.STTS_CHARGE_ON : GpsTracksModels.STTS_CHARGE_OFF; + logDevice.stts_acc = Number(act.stts_data.terminal_info.acc) ? GpsTracksModels.STTS_ACC_HIGH : GpsTracksModels.STTS_ACC_LOW; + logDevice.stts_switch = Number(act.stts_data.terminal_info.is_active) ? GpsTracksModels.STTS_SWITCH_ON : GpsTracksModels.STTS_SWITCH_OFF; + logDevice.stts_volt = Number(act.stts_data.voltage_level) + 1; + + if (typeof act.buffer_resp != "undefined") { + // c.write(act.buffer_resp); + } + } else if (act.action_type == "alarm") { + logDevice.action = act.action_type; + logDevice.device_id = act.device_id; + + logDevice.latitude = act.gps_data.latitude || null; + logDevice.longitude = act.gps_data.longitude || null; + logDevice.speed = act.gps_data.speed; + logDevice.orientation = act.gps_data.orientation; + if (logDevice.latitude) { + logDevice.stts_reverse_geo = GpsTracksModels.STTS_REVERSE_GEO_NOT; + } + + logDevice.length_gps = act.gps_data.quantity_pos_satellites_c; + logDevice.pos_stlt_gps = act.gps_data.quantity_pos_satellites_b; + logDevice.pos_type_gps = Number(act.gps_data.realtime_dif_gps) === 0 ? GpsTracksModels.STTS_POS_TYPE_GPS_RLTM : GpsTracksModels.STTS_POS_TYPE_GPS_DIFF; + logDevice.is_pos_gps = Number(act.gps_data.positioning_gps) ? GpsTracksModels.STTS_IS_POS_GPS_HAS : GpsTracksModels.STTS_IS_POS_GPS_NOT; + + logDevice.ignition = Number(act.stts_data.terminal_info.acc) ? GpsTracksModels.STTS_IGNITION_HIGH : GpsTracksModels.STTS_IGNITION_LOW; + logDevice.stts_gps = act.stts_data.terminal_info.gps_tracking ? GpsTracksModels.STTS_GPS_ON : GpsTracksModels.STTS_GPS_OFF; // 1=>on, 2=>off + logDevice.stts_gsm = Number(act.stts_data.gsm_signal_strength) + 1; // 1=>no signal, n>1=>get signal + + logDevice.stts_oil_electricity = Number(act.stts_data.terminal_info.oil_electricity) === 0 ? GpsTracksModels.STTS_OIL_ELECTRIC_ON : GpsTracksModels.STTS_OIL_ELECTRIC_OFF; // 1=>on, 2=>off + + let stts_alarm = Number(act.stts_data.terminal_info.stts); + if (stts_alarm == 0) { + logDevice.stts_alarm = GpsTracksModels.STTS_ALARM_NORMAL; + } else if (stts_alarm == 1) { + logDevice.stts_alarm = GpsTracksModels.STTS_ALARM_SHOCK; + } else if (stts_alarm == 2) { + logDevice.stts_alarm = GpsTracksModels.STTS_ALARM_POWER_CUT; + } else if (stts_alarm == 3) { + logDevice.stts_alarm = GpsTracksModels.STTS_ALARM_LOW_BATTERY; + } else if (stts_alarm == 4) { + logDevice.stts_alarm = GpsTracksModels.STTS_ALARM_SOS; + } + + logDevice.stts_charge = Number(act.stts_data.terminal_info.charge) ? GpsTracksModels.STTS_CHARGE_ON : GpsTracksModels.STTS_CHARGE_OFF; + logDevice.stts_acc = Number(act.stts_data.terminal_info.acc) ? GpsTracksModels.STTS_ACC_HIGH : GpsTracksModels.STTS_ACC_LOW; + logDevice.stts_switch = Number(act.stts_data.terminal_info.is_active) ? GpsTracksModels.STTS_SWITCH_ON : GpsTracksModels.STTS_SWITCH_OFF; + logDevice.stts_volt = Number(act.stts_data.voltage_level) + 1; + + logDevice.crt = moment(act.gps_data.date).unix(); + logDevice.crt_format = moment(act.gps_data.date).format("YYYY-MM-DD HH:mm:ss"); + logDevice.crt_d = moment(act.gps_data.date).unix(); + logDevice.crt_d_format = moment(act.gps_data.date).format("YYYY-MM-DD HH:mm:ss"); + + if (typeof act.buffer_resp != "undefined") { + // c.write(act.buffer_resp); + } + } + // act.action_type == 'other' + else { + logDevice.action = act.action_type; + logDevice.device_id = act.device_id; + } + } + + await commitMessage(now, logDevice); + + apiRes = JSON.parse(JSON.stringify(response[200])); + apiRes.meta.message = "success"; + apiRes.data = logDevice; + return res.status(200).json(apiRes); + } catch (e) { + console.log("error", e); + apiRes = JSON.parse(JSON.stringify(response[500])); + apiRes.meta.message += Helper.setErrMsg(": " + e.message); + return res.status(500).json(apiRes); + } + } +} + +const object = new ListenController(); + +module.exports = object; diff --git a/controllers/OrderController.js b/controllers/OrderController.js old mode 100644 new mode 100755 diff --git a/controllers/ServiceDriverController.js b/controllers/ServiceDriverController.js old mode 100644 new mode 100755 diff --git a/controllers/WorkerController.js b/controllers/WorkerController.js old mode 100644 new mode 100755 diff --git a/controllers/ZoneController.js b/controllers/ZoneController.js old mode 100644 new mode 100755 diff --git a/cron/ReverseGeocodeWorker.js b/cron/ReverseGeocodeWorker.js new file mode 100644 index 0000000..2ed82e8 --- /dev/null +++ b/cron/ReverseGeocodeWorker.js @@ -0,0 +1,274 @@ +require("dotenv").config({ path: "../.env" }) +const LibWinston = require("../library/LibWinston") +const moment = require("moment") +const axios = require("axios").default +const url = require("url") +const request = require("../config/request") +const GpsTracksModels = require("../models/GpsTracksModels") +const RegionModels = require("../models/RegionModels") + +const schedulerName = process.env.REDIS_SCHEDULER_REVERSE_GEO +const Logger = LibWinston.initialize(schedulerName) + +const go = async () => { + try { + Logger.log("info", `${schedulerName} running: ${moment().format("YYYY-MM-DD HH:mm:ss")}`) + // (async function() { + try { + let loop = process.env.SCHEDULE_REVERSE_GEO_MAX_LOOP + for (let x = 0; x < loop; x++) { + // let tracks = []; + let tracks = await GpsTracksModels.get2ForReverseGeo(1) + for (let i = 0; i < tracks.length; i++) { + console.log("tracks[i] :", tracks[i].id, tracks[i].device_id, tracks[i].latitude, tracks[i].longitude) + let now = moment().unix() + let updtData = {} + let respReverseGeo = null + try { + const sameAddr = await GpsTracksModels.select2Address(tracks[i].latitude, tracks[i].longitude) + + if (sameAddr.length > 0) { + let addrData = { + device_id: tracks[i].device_id, + master_id: tracks[i].id, + type: sameAddr[0].type, + lat: tracks[i].latitude, + lng: tracks[i].longitude, + country_id: sameAddr[0].country_id, + country_code: sameAddr[0].country_code, + country_text: sameAddr[0].country_text, + state_id: sameAddr[0].state_id, + state_text: sameAddr[0].state_text, + city_id: sameAddr[0].city_id, + city_text: sameAddr[0].city_text, + district_id: sameAddr[0].district_id, + district_text: sameAddr[0].district_text, + village_id: sameAddr[0].village_id, + village_text: sameAddr[0].village_text, + postcode: sameAddr[0].postcode, + streets: sameAddr[0].streets, + fulladdress: encodeURIComponent(decodeURIComponent(sameAddr[0].fulladdress)), + type_reverse_geo: sameAddr[0].type_reverse_geo, + stts_reverse_geo: GpsTracksModels.STTS_REVERSE_GEO_SC, + log_reverse_geo: sameAddr[0].log_reverse_geo, + crt: now, + crt_format: moment.unix(now).format("YYYY-MM-DD HH:mm:ss"), + } + GpsTracksModels.create2Address(addrData) + updtData.stts_reverse_geo = GpsTracksModels.STTS_REVERSE_GEO_SC + await GpsTracksModels.update2(tracks[i].id, updtData) + continue + } + + let params = new url.URLSearchParams({ + lat: tracks[i].latitude, + lon: tracks[i].longitude, + format: "geojson", + }) + //const axInstance = axios.create() + const axInstance = axios.create({ + proxy: { + host: process.env.PROXY_URL, + port: process.env.PROXY_PORT, }, + }); + axios.defaults.timeout = 10000 + axios.defaults.crossDomain = true + // respReverseGeo = await axios({ + // url: request.osm_reverse_geo.urlFull, + // method: request.osm_reverse_geo.method, + // params: params, + // responseType: 'json', + // }); + respReverseGeo = await axInstance.get(request.osm_reverse_geo.urlFull + "?" + params.toString(), { + timeout: 10000, + }) + console.log("respReverseGeo: ",respReverseGeo.data || null ) + let respData = respReverseGeo.data || {} + if (respReverseGeo.status == 200) { + if (respData.features.length < 1) { + GpsTracksModels.create2Address({ + device_id: tracks[i].device_id, + master_id: tracks[i].id, + lat: tracks[i].latitude, + lng: tracks[i].longitude, + stts_reverse_geo: GpsTracksModels.STTS_REVERSE_GEO_LOST, + log_reverse_geo: JSON.stringify(respData), + crt: now, + crt_format: moment.unix(now).format("YYYY-MM-DD HH:mm:ss"), + }) + updtData.stts_reverse_geo = GpsTracksModels.STTS_REVERSE_GEO_LOST + await GpsTracksModels.update2(tracks[i].id, updtData) + } else { + let respAddr = respData.features[0].properties.address + let addrData = { + device_id: tracks[i].device_id, + master_id: tracks[i].id, + lat: tracks[i].latitude, + lng: tracks[i].longitude, + country_id: GpsTracksModels.DEFAULT_COUNTRY_ID, + country_code: respAddr.country_code, + country_text: respAddr.country ? respAddr.country.toUpperCase() : respAddr.country || null, + state_id: null, + city_id: null, + district_id: null, + village_id: null, + postcode: respAddr.postcode, + fulladdress: encodeURIComponent(respData.features[0].properties.display_name), + stts_reverse_geo: GpsTracksModels.STTS_REVERSE_GEO_SC, + log_reverse_geo: respData.features[0].properties ? JSON.stringify(respData.features[0].properties) : null, + crt: now, + crt_format: moment.unix(now).format("YYYY-MM-DD HH:mm:ss"), + } + if (respAddr.state || respAddr.city) { + addrData.state_text = respAddr.region || respAddr.state || respAddr.state_district || respAddr.county || respAddr.city || "" + addrData.state_text = addrData.state_text ? addrData.state_text.toUpperCase() : addrData.state_text || null + addrData.state_text = addrData.state_text || null + } + if (respAddr.city_district || respAddr.city) { + addrData.city_text = respAddr.city_district || respAddr.city || "" + addrData.city_text = addrData.city_text ? addrData.city_text.toUpperCase() : addrData.city_text || null + addrData.city_text = addrData.city_text || null + } + if (respAddr.suburb || respAddr.subdistrict) { + addrData.district_text = respAddr.suburb || respAddr.subdistrict || respAddr.subdivision || "" + addrData.district_text = addrData.district_text ? addrData.district_text.toUpperCase() : addrData.district_text || null + addrData.district_text = addrData.district_text || null + } + if (respAddr.village) { + addrData.village_text = respAddr.village || respAddr.neighbourhood || "" + addrData.village_text = addrData.village_text ? addrData.village_text.toUpperCase() : addrData.village_text || null + addrData.village_text = addrData.village_text || null + } + if (respAddr.amenity || respAddr.road || respAddr.city_block) { + addrData.streets = "" + addrData.streets += respAddr.amenity ? respAddr.amenity + ", " : "" + addrData.streets += respAddr.road ? respAddr.road + ", " : "" + addrData.streets += respAddr.house_number ? respAddr.house_number + ", " : "" + addrData.streets += respAddr.house_name ? respAddr.house_name + ", " : "" + addrData.streets += respAddr.city_block ? respAddr.city_block + ", " : "" + addrData.streets += addrData.streets || null + if (addrData.streets) { + addrData.streets = encodeURIComponent(addrData.streets.slice(0, -2)) + } + } + + let byAll = await RegionModels.whereLike({ + nmProvinsiKel: addrData.state_text, + nmKotamadyaKel: addrData.city_text, + nmKecamatanKel: addrData.district_text, + nmKelurahan: addrData.village_text, + }) + if (byAll.length > 1) { + addrData.state_id = byAll[0].kodeProv + addrData.city_id = byAll[0].kodeKab + addrData.district_id = byAll[0].kodeKec + addrData.village_id = byAll[0].kodeKel + } + + let byKel = await RegionModels.whereLike({ + nmKelurahan: addrData.village_text, + }) + if (byAll.length < 1 && byKel.length > 0) { + addrData.state_id = byKel[0].kodeProv + addrData.city_id = byKel[0].kodeKab + addrData.district_id = byKel[0].kodeKec + addrData.village_id = byKel[0].kodeKel + } + + if (addrData.state_id === null) { + let byPr = await RegionModels.whereLike({ nmProvinsiKel: addrData.state_text }) + if (byPr.length > 0) { + addrData.state_id = byPr[0].kodeProv + } + } + + if (addrData.state_id !== null && addrData.city_id === null) { + let byKt = await RegionModels.whereLike({ nmKotamadyaKel: addrData.city_text }) + if (byKt.length > 0) { + addrData.city_id = byKt[0].kodeKab + } + } + + if (addrData.state_id !== null && addrData.city_id !== null && addrData.district_id === null) { + let byKc = await RegionModels.whereLike({ nmKecamatanKel: addrData.district_text }) + if (byKc.length > 0) { + addrData.district_id = byKc[0].kodeKec + } + } + + if (addrData.state_id !== null && addrData.city_id !== null && addrData.district_id !== null && addrData.village_id === null) { + let byKl = await RegionModels.whereLike({ nmKelurahan: addrData.village_text }) + if (byKl.length > 0) { + addrData.village_id = byKl[0].kodeKel + } + } + + GpsTracksModels.create2Address(addrData).catch((e) => { + Logger.log("error", `${schedulerName} running_error: ${JSON.stringify(e, Object.getOwnPropertyNames(e))}`) + }) + updtData.stts_reverse_geo = GpsTracksModels.STTS_REVERSE_GEO_SC + await GpsTracksModels.update2(tracks[i].id, updtData) + } + } else { + GpsTracksModels.create2Address({ + device_id: tracks[i].device_id, + master_id: tracks[i].id, + lat: tracks[i].latitude, + lng: tracks[i].longitude, + stts_reverse_geo: GpsTracksModels.STTS_REVERSE_GEO_ER, + log_reverse_geo: JSON.stringify(respData), + crt: now, + crt_format: moment.unix(now).format("YYYY-MM-DD HH:mm:ss"), + }) + updtData.stts_reverse_geo = GpsTracksModels.STTS_REVERSE_GEO_ER + await GpsTracksModels.update2(tracks[i].id, updtData) + } + } catch (e) { + let respData = {} + if (respReverseGeo) { + if (respReverseGeo.status != 200) { + respData.data = respReverseGeo.data + } else { + respData.msg = e.message + } + } else if (typeof e.response != "undefined") { + respData.data = e.response + } else { + respData.msg = e.message + } + GpsTracksModels.create2Address({ + device_id: tracks[i].device_id, + master_id: tracks[i].id, + lat: tracks[i].latitude, + lng: tracks[i].longitude, + stts_reverse_geo: GpsTracksModels.STTS_REVERSE_GEO_ER, + log_reverse_geo: JSON.stringify(respData), + crt: now, + crt_format: moment.unix(now).format("YYYY-MM-DD HH:mm:ss"), + }) + updtData.stts_reverse_geo = GpsTracksModels.STTS_REVERSE_GEO_ER + await GpsTracksModels.update2(tracks[i].id, updtData) + } + } + } + } catch (e) { + console.error(e) + Logger.log("error", `${schedulerName} error: ${JSON.stringify(e)}`) + } + // })(); + + Logger.log("info", `${schedulerName} success do reverse geocoding ${moment().format("YYYY-MM-DD HH:mm:ss")}`) + } catch (e) { + Logger.log("error", `${schedulerName} error: ${JSON.stringify(e)}`) + } + return true +} + +const index = async () => { + while (1 == 1) { + await go() + await new Promise((r) => setTimeout(r, 300)) + } +} + +index() diff --git a/docker-compose.yml b/docker-compose.yml old mode 100644 new mode 100755 diff --git a/files/keys/bingcorp-tracker-firebase-adminsdk-7tcet-7399bbf4fc.json b/files/keys/bingcorp-tracker-firebase-adminsdk-7tcet-7399bbf4fc.json old mode 100644 new mode 100755 diff --git a/files/keys/bingcorp-tracker-firebase-adminsdk-7tcet-c817089752.json b/files/keys/bingcorp-tracker-firebase-adminsdk-7tcet-c817089752.json old mode 100644 new mode 100755 diff --git a/files/keys/google-services.json b/files/keys/google-services.json old mode 100644 new mode 100755 diff --git a/files/mails/admInfoOrder.ejs b/files/mails/admInfoOrder.ejs old mode 100644 new mode 100755 diff --git a/files/mails/adminInfoNoVdrAccOrd.ejs b/files/mails/adminInfoNoVdrAccOrd.ejs old mode 100644 new mode 100755 diff --git a/files/mails/bidOrderMail.ejs b/files/mails/bidOrderMail.ejs old mode 100644 new mode 100755 diff --git a/files/mails/clientCreateOrd.ejs b/files/mails/clientCreateOrd.ejs old mode 100644 new mode 100755 diff --git a/files/mails/clientOrdHaveBeenAccMail.ejs b/files/mails/clientOrdHaveBeenAccMail.ejs old mode 100644 new mode 100755 diff --git a/files/mails/driverGetOrderMail.ejs b/files/mails/driverGetOrderMail.ejs old mode 100644 new mode 100755 diff --git a/files/mails/financeInfoDanaAmount.ejs b/files/mails/financeInfoDanaAmount.ejs old mode 100644 new mode 100755 diff --git a/files/mails/financeInfoTfPocket.ejs b/files/mails/financeInfoTfPocket.ejs old mode 100644 new mode 100755 diff --git a/files/mails/template/end.ejs b/files/mails/template/end.ejs old mode 100644 new mode 100755 diff --git a/files/mails/template/start.ejs b/files/mails/template/start.ejs old mode 100644 new mode 100755 diff --git a/files/mails/vdrAccOrderMail.ejs b/files/mails/vdrAccOrderMail.ejs old mode 100644 new mode 100755 diff --git a/files/mails/zoningMail.ejs b/files/mails/zoningMail.ejs old mode 100644 new mode 100755 diff --git a/files/public/OpenSans-B9K8.ttf b/files/public/OpenSans-B9K8.ttf old mode 100644 new mode 100755 diff --git a/files/public/OpenSans-B9K8.ttf_neon_100/NVCrVnY_km5eldKtXvghZGtF.ttf_0.png b/files/public/OpenSans-B9K8.ttf_neon_100/NVCrVnY_km5eldKtXvghZGtF.ttf_0.png old mode 100644 new mode 100755 diff --git a/files/public/OpenSans-B9K8.ttf_neon_100/neon_100.fnt b/files/public/OpenSans-B9K8.ttf_neon_100/neon_100.fnt old mode 100644 new mode 100755 diff --git a/files/public/OpenSans-B9K8.ttf_neon_16/FWd0hhbQQsviQcgc8vksJ1t0.ttf_0.png b/files/public/OpenSans-B9K8.ttf_neon_16/FWd0hhbQQsviQcgc8vksJ1t0.ttf_0.png old mode 100644 new mode 100755 diff --git a/files/public/OpenSans-B9K8.ttf_neon_16/neon_16.fnt b/files/public/OpenSans-B9K8.ttf_neon_16/neon_16.fnt old mode 100644 new mode 100755 diff --git a/files/public/OpenSans-B9K8.ttf_neon_32/MlLA3aDGaXpxSgao3dSOGIYD.ttf_0.png b/files/public/OpenSans-B9K8.ttf_neon_32/MlLA3aDGaXpxSgao3dSOGIYD.ttf_0.png old mode 100644 new mode 100755 diff --git a/files/public/OpenSans-B9K8.ttf_neon_32/neon_32.fnt b/files/public/OpenSans-B9K8.ttf_neon_32/neon_32.fnt old mode 100644 new mode 100755 diff --git a/files/public/OpenSans-B9K8.ttf_neon_64/0cqXNM8gYrt7OJ5mzJ_o3PUe.ttf_0.png b/files/public/OpenSans-B9K8.ttf_neon_64/0cqXNM8gYrt7OJ5mzJ_o3PUe.ttf_0.png old mode 100644 new mode 100755 diff --git a/files/public/OpenSans-B9K8.ttf_neon_64/neon_64.fnt b/files/public/OpenSans-B9K8.ttf_neon_64/neon_64.fnt old mode 100644 new mode 100755 diff --git a/files/public/img_white_bg.png b/files/public/img_white_bg.png old mode 100644 new mode 100755 diff --git a/library/LibBullAdapter.js b/library/LibBullAdapter.js old mode 100644 new mode 100755 diff --git a/library/LibCurl.js b/library/LibCurl.js old mode 100644 new mode 100755 diff --git a/library/LibDevice.js b/library/LibDevice.js index 6659291..182269a 100644 --- a/library/LibDevice.js +++ b/library/LibDevice.js @@ -1,573 +1,579 @@ -const LibHelper = require('./LibHelper'); +const LibHelper = require("./LibHelper"); class LibDevice { - - /** - * - * @param {Buffer} buffer - * @param {Object} opts - * @returns {Object} me - * must return at least => obj.protocol_name - */ - static identifyProtocolFromBuffer(buffer, opts = {}) { - let ori_hex_str = ''; - if (typeof opts.skip_buffer != 'undefined' && opts.skip_buffer === true) { - ori_hex_str = buffer; - } else { - ori_hex_str = buffer.toString('hex'); // 16 - } - - const data = ori_hex_str; - const me = { - ori_string: data, - }; - - // eelinkCustom - if (opts.isEelinkCustom) { - me.protocol_name = 'eelinkCustom'; - - me.field0 = data.slice(0, 2); // system status flag - me.field1 = data.slice(2, 18); // IMEI - me.field2 = data.slice(18, 34); // IMSI - me.field3 = data.slice(34, 42); // Time - me.field4 = data.slice(42, 58); // Location - me.field5 = data.slice(58, 62); // Altitude - me.field6 = data.slice(62, 66); // Heading - me.field7 = data.slice(66, 68); // Velocity - me.field8 = data.slice(68, 70); // Power Input Voltage - me.field9 = data.slice(70, 72); // GPIO Status - me.field10 = data.slice(72, 74); // Time Seconds - me.field11 = data.slice(74, 76); // RSSI - me.field12 = data.slice(76, 78); // Sequence Counter - me.field13 = data.slice(78, 80); // Vendor ID - me.field14 = data.slice(80, 82); // GPS Satellites - me.field15 = data.slice(82, 90); // Accumulators - - me.ori_string = data; - } - // gt06 - else if (data.slice(0, 4) == '7878') { - me.protocol_name = 'gt06'; - - me.start = data.slice(0, 4); - me.length = parseInt(data.slice(4, 6), 16); - me.protocol_id = data.slice(6, 8); - me.serial_number = data.slice(-12, -8) - me.error_check = data.slice(-8, -4) - me.finish = data.slice(-4); // data.substr(6 + me.length * 2, 4); - - if (me.finish != '0d0a') { - throw 'finish code incorrect!'; - } - - me.ori_string = data; - } - // gt02a - else if (data.slice(0, 4) == '6868') { - me.protocol_name = 'gt02a'; - } - // tk103 - // else if (data.indexOf("B")) { - // me.protocol_name = 'tk103'; - // } - // eelink - else if (data.slice(0, 4) == '6767') { - me.protocol_name = 'eelink'; - - me.start = data.slice(0, 4); - me.pid = data.slice(4, 6); - me.size = parseInt(data.slice(6, 10), 16); - me.sequence = parseInt(data.slice(10, 4), 16); - - me.ori_string = data; - } - // unknown - else { - me.protocol_name = 'unknown'; - } - - return me; - } - - /** - * - * @param {Object} me - * @param {String} device_id - * @returns - * must return at least => act.cmd,act.action_type,act.device_id - */ - static gt06Action(me, device_id = null) { - const act = {} - - // Login message - if (me.protocol_id == '01') { - act.action_type = 'login'; - - act.cmd = 'login_request'; - act.action = 'login_request'; - act.device_id = me.ori_string.slice(8).slice(0, 16).padStart(16, '0'); - - act.buffer_resp = LibDevice.gt06AuthorizeResp(me); - } - // Location data - else if (me.protocol_id == '12') { - act.action_type = 'location'; - - act.cmd = 'ping'; - act.action = 'ping'; - act.device_id = device_id; // because device_id only sent when login - - // content data - // me.ori_string.slice(8).slice(0, 52); // me.ori_string.substr(8, me.length * 2); - - // gps information - act.gps_string = me.ori_string.slice(8).slice(0, 36); - act.gps_data = LibDevice.gt06ParseLocation(me, act.gps_string); - // if (!act.gps_data) { - // //Something bad happened - // _this.do_log('GPS Data can\'t be parsed. Discarding packet...'); - // return false; - // } - - // lbs information - act.lbs_string = me.ori_string.slice(8).slice(36, 52); - act.lbs_data = LibDevice.gt06ParseLbs(me, act.lbs_string); - } - // Status information - else if (me.protocol_id == '13') { - act.action_type = 'heartbeat'; - - act.cmd = 'heartbeat'; - act.action = 'heartbeat'; - act.device_id = device_id; // because device_id only sent when login - - // status information - act.stts_string = me.ori_string.slice(8).slice(0, 10); - act.stts_data = LibDevice.gt06ParseHeartbeat(me, act.stts_string); - - act.buffer_resp = LibDevice.gt06HeartbeatResp(me); - } - // String information - else if (me.protocol_id == '15') { - // act.action_type = 'other'; // 'heartbeat'; - // act.cmd = 'other'; // 'heartbeat'; - // act.action = 'other'; // 'heartbeat'; - // act.device_id = ''; // device_id; // because device_id only sent when login - - act.action_type = 'heartbeat'; - - act.cmd = 'heartbeat'; - act.action = 'heartbeat'; - act.device_id = device_id; // because device_id only sent when login - - // status information - act.stts_string = me.ori_string.slice(8).slice(0, 10); - act.stts_data = LibDevice.gt06ParseHeartbeat(me, act.stts_string); - - act.buffer_resp = LibDevice.gt06HeartbeatResp(me); - } - // Alarm data - else if (me.protocol_id == '16' || me.protocol_id == '18') { - act.action_type = 'alarm'; - - act.cmd = 'alarm'; - act.action = 'alarm'; - act.device_id = device_id; // because device_id only sent when login - - // content data - // me.ori_string.slice(8).slice(0, 64); // me.ori_string.substr(8, me.length * 2); - - // gps information - act.gps_string = me.ori_string.slice(8).slice(0, 36); - act.gps_data = LibDevice.gt06ParseLocation(me, act.gps_string); - - // lbs information - act.lbs_string = me.ori_string.slice(8).slice(36, 54); - act.lbs_data = LibDevice.gt06ParseLbs(me, act.lbs_string); - - // status information - act.stts_string = me.ori_string.slice(8).slice(54, 64); - act.stts_data = LibDevice.gt06ParseStatusAlarm(me, act.stts_string); - - act.buffer_resp = LibDevice.gt06AlarmResp(me); - } - // GPS, query address information by phone number - else if (me.protocol_id == '1A') { - act.action_type = 'other'; - - act.cmd = 'other'; - act.action = 'other'; - act.device_id = ''; - } - // Command information sent by the server to the terminal - else if (me.protocol_id == '80') { - act.action_type = 'other'; - - act.cmd = 'other'; - act.action = 'other'; - act.device_id = ''; - } else { - act.action_type = 'other'; - - act.cmd = 'other'; - act.action = 'other'; - act.device_id = ''; - } - - return act; - } - - static gt06AuthorizeResp(me) { - return Buffer.from("787805010001d9dc0d0a", "hex"); - } - - static gt06ParseLocation(me, gps_string = null) { - if (!gps_string) { - gps_string = me.ori_string.slice(8).slice(0, 36); - } - - let year = (parseInt(gps_string.slice(0, 2), 16) + '').padStart(2, 0); - year = '20' + year; - let month = (parseInt(gps_string.slice(2, 4), 16) + '').padStart(2, 0); - let day = (parseInt(gps_string.slice(4, 6), 16) + '').padStart(2, 0); - let hour = (parseInt(gps_string.slice(6, 8), 16) + '').padStart(2, 0); - let minute = (parseInt(gps_string.slice(8, 10), 16) + '').padStart(2, 0); - let second = (parseInt(gps_string.slice(10, 12), 16) + '').padStart(2, 0); - - let ob1 = LibHelper.hex2bin(gps_string.slice(32, 34)); // orientation_byte1 - let ob1_bit7 = ob1.slice(0, 1); - let ob1_bit6 = ob1.slice(1, 2); - let ob1_bit5 = ob1.slice(2, 3); // 0 (realtime GPS) or differential positioning - let ob1_bit4 = ob1.slice(3, 4); // 1 (GPS has been positioned) - let ob1_bit3 = ob1.slice(4, 5); // 0 (east longitude) || 1 (west longitude) - let ob1_bit2 = ob1.slice(5, 6); // 1 (north latitude) || 0 (south latitude) - let ob1_bit1 = ob1.slice(6, 7); - let ob1_bit0 = ob1.slice(7, 8); - let ob2 = LibHelper.hex2bin(gps_string.slice(34, 36)); // orientation_byte2 - // let ob2_bit7 = ob2.slice(0, 1); - // let ob2_bit6 = ob2.slice(1, 2); - // let ob2_bit5 = ob2.slice(2, 3); - // let ob2_bit4 = ob2.slice(3, 4); - // let ob2_bit3 = ob2.slice(4, 5); - // let ob2_bit2 = ob2.slice(5, 6); - // let ob2_bit1 = ob2.slice(6, 7); - // let ob2_bit0 = ob2.slice(7, 8); - - let lat_wind = ''; // wind direction N,S - let lng_wind = ''; // wind direction W,E - if (ob1_bit3 == 1) { - lng_wind = 'W'; - } - if (ob1_bit3 == 0) { - lng_wind = 'E'; - } - if (ob1_bit2 == 1) { - lat_wind = 'N'; - } - if (ob1_bit2 == 0) { - lat_wind = 'S'; - } - - const data = { - 'date_raw': gps_string.slice(0, 12), - 'date': `${year}-${month}-${day} ${hour}:${minute}:${second}`, - 'quantity_pos_satellites_raw': gps_string.slice(12, 14), - 'quantity_pos_satellites_c': parseInt(gps_string.slice(12, 13), 16), // length of gps information - 'quantity_pos_satellites_b': parseInt(gps_string.slice(13, 14), 16), // number of positioning satellites - realtime_dif_gps: ob1_bit5, // 0 (realtime GPS) or differential positioning - positioning_gps: ob1_bit6, // 1 (GPS has been positioned) - 'latitude_raw': gps_string.slice(14, 22), - 'longitude_raw': gps_string.slice(22, 30), - lat_wind_direction: lat_wind, - lng_wind_direction: lng_wind, - 'latitude': LibDevice.gt06Hex2DMM(gps_string.slice(14, 22), lat_wind), - 'longitude': LibDevice.gt06Hex2DMM(gps_string.slice(22, 30), lng_wind), - 'speed': parseInt(gps_string.slice(30, 32), 16), // km/h - 'orientation_raw': gps_string.slice(32, 36), - 'orientation': parseInt(`${ob1_bit1}${ob1_bit0}${ob2}`, 2), // -360 ~ 360 derajat - }; - - return data; - } - - // more accurate - static gt06Hex2DMM(hex, direction) { - hex = parseInt(hex, 16); - // convert hexadecimal to Degrees Minutes.m (DMM) - let a = parseInt(hex, 10) // to decimal values - let b = a / 30000.0 - let degrees = b / 60 - let minutes = b % 60 - // convert DMM to Decimal Degrees (DD) - // let d = minutes / 60 - // let dd = degrees + d - // add - follow wind direction - if (direction == "S" || direction == "W" || direction == "s" || direction == "w") { - degrees = degrees * -1; - } - return degrees; - } - // ga akurat - static gt06Hex2DMM1(hex, direction) { - hex = parseInt(hex, 16); - // convert hexadecimal to Degrees Minutes.m (DMM) - let a = parseInt(hex, 10) // to decimal values - let b = a / 30000.0 - let degrees = b / 60 - let minutes = b % 60 - // convert DMM to Decimal Degrees (DD) - let d = minutes / 60 - let dd = degrees + d - // add - follow wind direction - if (direction == "S" || direction == "W" || direction == "s" || direction == "w") { - dd = dd * -1; - } - return dd; - } - - static gt06HeartbeatResp(me) { - return Buffer.from("787805130001d9dc0d0a", "hex"); - } - - static gt06ParseHeartbeat(me, stts_string) { - if (!stts_string) { - stts_string = me.ori_string.slice(8).slice(0, 10); - } - - let terminal_info_raw = stts_string.slice(0, 2); - let tib1 = LibHelper.hex2bin(terminal_info_raw); // terminal_info_byte1 - let tib1_bit7 = tib1.slice(0, 1); - let tib1_bit6 = tib1.slice(1, 2); - let tib1_bit5 = tib1.slice(2, 3); - let tib1_bit4 = tib1.slice(3, 4); - let tib1_bit3 = tib1.slice(4, 5); - let tib1_bit2 = tib1.slice(5, 6); - let tib1_bit1 = tib1.slice(6, 7); - let tib1_bit0 = tib1.slice(7, 8); - - /** - * 0: No Power (shutdown) - * 1: Extremely Low Battery (not enough for calling or sending text messages, etc.) - * 2: Very Low Battery (Low Battery Alarm) - * 3: Low Battery (can be used normally) - * 4: Medium - * 5: High - * 6: Very High - */ - let voltage_level = stts_string.slice(2, 4); - - let gsm_signal_strength = stts_string.slice(4, 6); - - let alarm_stts = stts_string.slice(6, 8); // former bit: terminal alarm status (suitable for alarm packet and electronic fence project) - let language = stts_string.slice(8, 10); // latter bit: the current language used in the terminal - - const data = { - terminal_info_raw: terminal_info_raw, - terminal_info_byte: tib1, - terminal_info: { - oil_electricity: tib1_bit7, // 1: oil and electricity disconnected, 0: gas oil and electricity connected - gps_tracking: tib1_bit6, // 1: GPS tracking is on, 0: GPS tracking is off - stts: `${tib1_bit5}${tib1_bit4}${tib1_bit3}`, // 100: SOS, 011: Low Battery Alarm, 010: Power Cut Alarm, 001: Shock Alarm, 000: Normal - charge: tib1_bit2, // 1: Charge On, 0: Charge Off - acc: tib1_bit1, // 1: ACC high, 0: ACC Low - is_active: tib1_bit0, // 1: Activated, 0: Deactivated - }, - voltage_level, - gsm_signal_strength, // 0x00: no signal; 0x01: extremely weak signal; 0x02: very weak signal; 0x03: good signal; 0x04: strong signal. - alarm_stts, // 0x00: normal, 0x01: SOS, 0x02: Power Cut Alarm, 0x03: Shock Alarm, 0x04: Fence In Alarm, 0x05: Fence Out Alarm - language, // 0x01: Chinese, 0x02: English - }; - - return data; - } - - static gt06ParseLbs(me, lbs_string) { - let mcc_raw = null, - mcc = null, // mobile country code - mnc_raw = null, - mnc = null, // mobile network code - lac_raw = null, - lac = null, // location area code - cellID_raw = null, - cellID = null, // cell tower id - lbs_length_raw = null, - lbs_length = null; - - // from location - if (lbs_string.length == 16) { - mcc_raw = lbs_string.slice(0, 4); - mnc_raw = lbs_string.slice(4, 6); - lac_raw = lbs_string.slice(6, 10); - cellID_raw = lbs_string.slice(10, 16); - } - // from alarm - else if (lbs_string.length == 18) { - lbs_length_raw = lbs_string.slice(0, 2); - mcc_raw = lbs_string.slice(2, 6); - mnc_raw = lbs_string.slice(6, 8); - lac_raw = lbs_string.slice(8, 12); - cellID_raw = lbs_string.slice(12, 18); - } - - if (lbs_length_raw) { - lbs_length = parseInt(lbs_length_raw, 16); - } - if (mnc_raw && mcc_raw && lac_raw && cellID_raw) { - mnc = parseInt(mnc_raw, 16); - mcc = parseInt(mcc_raw, 16); - lac = parseInt(lac_raw, 16); - cellID = parseInt(cellID_raw, 16); - } - - const data = { - lbs_length_raw, - lbs_length, - mcc_raw, - mcc, - mnc_raw, - mnc, - lac_raw, - lac, - cellID_raw, - cellID, - }; - - return data; - } - - static gt06ParseStatusAlarm(me, stts_string) { - if (!stts_string) { - stts_string = me.ori_string.slice(8).slice(54, 10); - } - - let terminal_info_raw = stts_string.slice(0, 2); - let tib1 = LibHelper.hex2bin(terminal_info_raw); // terminal_info_byte1 - let tib1_bit7 = tib1.slice(0, 1); - let tib1_bit6 = tib1.slice(1, 2); - let tib1_bit5 = tib1.slice(2, 3); - let tib1_bit4 = tib1.slice(3, 4); - let tib1_bit3 = tib1.slice(4, 5); - let tib1_bit2 = tib1.slice(5, 6); - let tib1_bit1 = tib1.slice(6, 7); - let tib1_bit0 = tib1.slice(7, 8); - - /** - * 0: No Power (shutdown) - * 1: Extremely Low Battery (not enough for calling or sending text messages, etc.) - * 2: Very Low Battery (Low Battery Alarm) - * 3: Low Battery (can be used normally) - * 4: Medium - * 5: High - * 6: Very High - */ - let voltage_level = stts_string.slice(2, 4); - - let gsm_signal_strength = stts_string.slice(4, 6); - - let alarm_stts = stts_string.slice(6, 8); // former bit: terminal alarm status (suitable for alarm packet and electronic fence project) - let language = stts_string.slice(8, 10); // latter bit: the current language used in the terminal - - const data = { - terminal_info_raw: terminal_info_raw, - terminal_info_byte: tib1, - terminal_info: { - oil_electricity: tib1_bit7, // 1: oil and electricity disconnected, 0: gas oil and electricity connected - gps_tracking: tib1_bit6, // 1: GPS tracking is on, 0: GPS tracking is off - stts: `${tib1_bit5}${tib1_bit4}${tib1_bit3}`, // 100: SOS, 011: Low Battery Alarm, 010: Power Cut Alarm, 001: Shock Alarm, 000: Normal - charge: tib1_bit2, // 1: Charge On, 0: Charge Off - acc: tib1_bit1, // 1: ACC high, 0: ACC Low - is_active: tib1_bit0, // 1: Activated, 0: Deactivated - }, - voltage_level, - gsm_signal_strength, // 0x00: no signal; 0x01: extremely weak signal; 0x02: very weak signal; 0x03: good signal; 0x04: strong signal. - alarm_stts, // 0x00: normal, 0x01: SOS, 0x02: Power Cut Alarm, 0x03: Shock Alarm, 0x04: Fence In Alarm, 0x05: Fence Out Alarm - language, // 0x01: Chinese, 0x02: English - }; - - return data; - } - - static gt06AlarmResp(me) { - return Buffer.from("787805160001d9dc0d0a", "hex"); - } - - static eelinkCustomAction(me, device_id = null) { - const act = { - device_id: me.field1, - action_type: 'exist_data', - cmd: 'exist_data', - } - - if (me.field3 == '60000000' || me.field3 == '00000000') { - act.action_type = 'no_data_since_hardware_reset'; - act.cmd = 'no_data_since_hardware_reset'; - - // act.buffer_resp = Buffer.from('LOAD'); - // act.buffer_resp = 'LOAD'; - // act.buffer_resp = Buffer.from(`6767${me.field0}000A0001${me.field1}01`, 'hex'); - // act.buffer_resp = `6767${me.field0}000A0001${me.field1}01`; - } - - if (act.action_type !== 'exist_data') return act; - - act.flag = me.field0; - act.imsi = me.field2; // International Mobile Subscriber Identifier - - act.time_string = me.field3; - const time_data = {}; - time_data.year = '20' + (parseInt(me.field3.slice(0, 1), 16) + 10); - time_data.month = '' + parseInt(me.field3.slice(1, 2), 16); - if (time_data.month.length === 1) { time_data.month = '0' + time_data.month; } - time_data.day = '' + parseInt(me.field3.slice(2, 4), 16); - if (time_data.day.length === 1) { time_data.day = '0' + time_data.day; } - time_data.hour = '' + parseInt(me.field3.slice(4, 6), 16); - if (time_data.hour.length === 1) { time_data.hour = '0' + time_data.hour; } - time_data.minute = '' + parseInt(me.field3.slice(6, 8), 16); - if (time_data.minute.length === 1) { time_data.minute = '0' + time_data.minute; } - act.time_data = time_data; - - /** - * north => -9000000 to +9000000, can 1 or 2 digits of degree - * west => -18000000 to +18000000, usually 3 digits degree - */ - act.location_string = me.field4; - // original value is expressed as signed hex value, so we must to conversion to decimal - // using two complement - let north = ~parseInt(me.field4.slice(0, 8), 16); - let west = ~parseInt(me.field4.slice(8, 16), 16); - // add magnitude - north = north * -1 + 1; - west = west * -1 + 1; - // convert to string - north += ''; - west += ''; - // remove - from string at first and save to temporary variable - let signedNorth = ''; - if (north.indexOf('-') === 0) { - north = north.slice(1); - signedNorth = '-'; - } - let signedWest = ''; - if (west.indexOf('-') === 0) { - west = west.slice(1); - signedWest = '-'; - } - // separate DDM => Degree Decimal Minutes - let northDegree = north.slice(0, 1); - let northDecimalMinute = north.slice(1, 7); - if (north.length === 8) { - northDegree = north.slice(0, 2); - northDecimalMinute = north.slice(2, 7); - } - let westDegree = west.slice(0, 3); - let westDecimalMinute = west.slice(3, 7); - // convert DDM to DD (Decimal Degrees) - act.latitude = '' + signedNorth + northDegree + '.' + ('' + (northDecimalMinute/60)).replace('.', ''); - act.longitude = '' + signedWest + westDegree + '.' + ('' + (westDecimalMinute/60)).replace('.', ''); - - return act; - } - + /** + * + * @param {Buffer} buffer + * @param {Object} opts + * @returns {Object} me + * must return at least => obj.protocol_name + */ + static identifyProtocolFromBuffer(buffer, opts = {}) { + let ori_hex_str = ""; + if (typeof opts.skip_buffer != "undefined" && opts.skip_buffer === true) { + ori_hex_str = buffer; + } else { + ori_hex_str = buffer.toString("hex"); // 16 + } + + const data = ori_hex_str; + const me = { + ori_string: data, + }; + + // eelinkCustom + if (opts.isEelinkCustom) { + me.protocol_name = "eelinkCustom"; + + me.field0 = data.slice(0, 2); // system status flag + me.field1 = data.slice(2, 18); // IMEI + me.field2 = data.slice(18, 34); // IMSI + me.field3 = data.slice(34, 42); // Time + me.field4 = data.slice(42, 58); // Location + me.field5 = data.slice(58, 62); // Altitude + me.field6 = data.slice(62, 66); // Heading + me.field7 = data.slice(66, 68); // Velocity + me.field8 = data.slice(68, 70); // Power Input Voltage + me.field9 = data.slice(70, 72); // GPIO Status + me.field10 = data.slice(72, 74); // Time Seconds + me.field11 = data.slice(74, 76); // RSSI + me.field12 = data.slice(76, 78); // Sequence Counter + me.field13 = data.slice(78, 80); // Vendor ID + me.field14 = data.slice(80, 82); // GPS Satellites + me.field15 = data.slice(82, 90); // Accumulators + + me.ori_string = data; + } + // gt06 + else if (data.slice(0, 4) == "7878" || data.slice(0, 4) == "7979") { + me.protocol_name = "gt06"; + + me.start = data.slice(0, 4); + me.length = parseInt(data.slice(4, 6), 16); + me.protocol_id = data.slice(6, 8); + me.serial_number = data.slice(-12, -8); + me.error_check = data.slice(-8, -4); + me.finish = data.slice(-4); // data.substr(6 + me.length * 2, 4); + + if (me.finish != "0d0a") { + throw "finish code incorrect!"; + } + + me.ori_string = data; + } + // gt02a + else if (data.slice(0, 4) == "6868") { + me.protocol_name = "gt02a"; + } + // tk103 + // else if (data.indexOf("B")) { + // me.protocol_name = 'tk103'; + // } + // eelink + else if (data.slice(0, 4) == "6767") { + me.protocol_name = "eelink"; + + me.start = data.slice(0, 4); + me.pid = data.slice(4, 6); + me.size = parseInt(data.slice(6, 10), 16); + me.sequence = parseInt(data.slice(10, 4), 16); + + me.ori_string = data; + } + // unknown + else { + me.protocol_name = "unknown"; + } + + return me; + } + + /** + * + * @param {Object} me + * @param {String} device_id + * @returns + * must return at least => act.cmd,act.action_type,act.device_id + */ + static gt06Action(me, device_id = null) { + const act = {}; + + // Login message + if (me.protocol_id == "01") { + act.action_type = "login"; + + act.cmd = "login_request"; + act.action = "login_request"; + act.device_id = me.ori_string.slice(8).slice(0, 16).padStart(16, "0"); + + act.buffer_resp = LibDevice.gt06AuthorizeResp(me); + } + // Location data + else if (me.protocol_id == "12" || me.protocol_id == "a0") { + act.action_type = "location"; + + act.cmd = "ping"; + act.action = "ping"; + act.device_id = device_id; // because device_id only sent when login + + // content data + // me.ori_string.slice(8).slice(0, 52); // me.ori_string.substr(8, me.length * 2); + + // gps information + act.gps_string = me.ori_string.slice(8).slice(0, 36); + act.gps_data = LibDevice.gt06ParseLocation(me, act.gps_string); + // if (!act.gps_data) { + // //Something bad happened + // _this.do_log('GPS Data can\'t be parsed. Discarding packet...'); + // return false; + // } + + // lbs information + act.lbs_string = me.ori_string.slice(8).slice(36, 52); + act.lbs_data = LibDevice.gt06ParseLbs(me, act.lbs_string); + } + // Status information + else if (me.protocol_id == "13") { + act.action_type = "heartbeat"; + + act.cmd = "heartbeat"; + act.action = "heartbeat"; + act.device_id = device_id; // because device_id only sent when login + + // status information + act.stts_string = me.ori_string.slice(8).slice(0, 10); + act.stts_data = LibDevice.gt06ParseHeartbeat(me, act.stts_string); + + act.buffer_resp = LibDevice.gt06HeartbeatResp(me); + } + // String information + else if (me.protocol_id == "15") { + // act.action_type = 'other'; // 'heartbeat'; + // act.cmd = 'other'; // 'heartbeat'; + // act.action = 'other'; // 'heartbeat'; + // act.device_id = ''; // device_id; // because device_id only sent when login + + act.action_type = "heartbeat"; + + act.cmd = "heartbeat"; + act.action = "heartbeat"; + act.device_id = device_id; // because device_id only sent when login + + // status information + act.stts_string = me.ori_string.slice(8).slice(0, 10); + act.stts_data = LibDevice.gt06ParseHeartbeat(me, act.stts_string); + + act.buffer_resp = LibDevice.gt06HeartbeatResp(me); + } + // Alarm data + else if (me.protocol_id == "16" || me.protocol_id == "18") { + act.action_type = "alarm"; + + act.cmd = "alarm"; + act.action = "alarm"; + act.device_id = device_id; // because device_id only sent when login + + // content data + // me.ori_string.slice(8).slice(0, 64); // me.ori_string.substr(8, me.length * 2); + + // gps information + act.gps_string = me.ori_string.slice(8).slice(0, 36); + act.gps_data = LibDevice.gt06ParseLocation(me, act.gps_string); + + // lbs information + act.lbs_string = me.ori_string.slice(8).slice(36, 54); + act.lbs_data = LibDevice.gt06ParseLbs(me, act.lbs_string); + + // status information + act.stts_string = me.ori_string.slice(8).slice(54, 64); + act.stts_data = LibDevice.gt06ParseStatusAlarm(me, act.stts_string); + + act.buffer_resp = LibDevice.gt06AlarmResp(me); + } + // GPS, query address information by phone number + else if (me.protocol_id == "1A") { + act.action_type = "other"; + + act.cmd = "other"; + act.action = "other"; + act.device_id = ""; + } + // Command information sent by the server to the terminal + else if (me.protocol_id == "80") { + act.action_type = "other"; + + act.cmd = "other"; + act.action = "other"; + act.device_id = ""; + } else { + act.action_type = "other"; + + act.cmd = "other"; + act.action = "other"; + act.device_id = ""; + } + + return act; + } + + static gt06AuthorizeResp(me) { + return Buffer.from("787805010001d9dc0d0a", "hex"); + } + + static gt06ParseLocation(me, gps_string = null) { + if (!gps_string) { + gps_string = me.ori_string.slice(8).slice(0, 36); + } + + let year = (parseInt(gps_string.slice(0, 2), 16) + "").padStart(2, 0); + year = "20" + year; + let month = (parseInt(gps_string.slice(2, 4), 16) + "").padStart(2, 0); + let day = (parseInt(gps_string.slice(4, 6), 16) + "").padStart(2, 0); + let hour = (parseInt(gps_string.slice(6, 8), 16) + "").padStart(2, 0); + let minute = (parseInt(gps_string.slice(8, 10), 16) + "").padStart(2, 0); + let second = (parseInt(gps_string.slice(10, 12), 16) + "").padStart(2, 0); + + let ob1 = LibHelper.hex2bin(gps_string.slice(32, 34)); // orientation_byte1 + let ob1_bit7 = ob1.slice(0, 1); + let ob1_bit6 = ob1.slice(1, 2); + let ob1_bit5 = ob1.slice(2, 3); // 0 (realtime GPS) or differential positioning + let ob1_bit4 = ob1.slice(3, 4); // 1 (GPS has been positioned) + let ob1_bit3 = ob1.slice(4, 5); // 0 (east longitude) || 1 (west longitude) + let ob1_bit2 = ob1.slice(5, 6); // 1 (north latitude) || 0 (south latitude) + let ob1_bit1 = ob1.slice(6, 7); + let ob1_bit0 = ob1.slice(7, 8); + let ob2 = LibHelper.hex2bin(gps_string.slice(34, 36)); // orientation_byte2 + // let ob2_bit7 = ob2.slice(0, 1); + // let ob2_bit6 = ob2.slice(1, 2); + // let ob2_bit5 = ob2.slice(2, 3); + // let ob2_bit4 = ob2.slice(3, 4); + // let ob2_bit3 = ob2.slice(4, 5); + // let ob2_bit2 = ob2.slice(5, 6); + // let ob2_bit1 = ob2.slice(6, 7); + // let ob2_bit0 = ob2.slice(7, 8); + + let lat_wind = ""; // wind direction N,S + let lng_wind = ""; // wind direction W,E + if (ob1_bit3 == 1) { + lng_wind = "W"; + } + if (ob1_bit3 == 0) { + lng_wind = "E"; + } + if (ob1_bit2 == 1) { + lat_wind = "N"; + } + if (ob1_bit2 == 0) { + lat_wind = "S"; + } + + const data = { + date_raw: gps_string.slice(0, 12), + date: `${year}-${month}-${day} ${hour}:${minute}:${second}`, + quantity_pos_satellites_raw: gps_string.slice(12, 14), + quantity_pos_satellites_c: parseInt(gps_string.slice(12, 13), 16), // length of gps information + quantity_pos_satellites_b: parseInt(gps_string.slice(13, 14), 16), // number of positioning satellites + realtime_dif_gps: ob1_bit5, // 0 (realtime GPS) or differential positioning + positioning_gps: ob1_bit6, // 1 (GPS has been positioned) + latitude_raw: gps_string.slice(14, 22), + longitude_raw: gps_string.slice(22, 30), + lat_wind_direction: lat_wind, + lng_wind_direction: lng_wind, + latitude: LibDevice.gt06Hex2DMM(gps_string.slice(14, 22), lat_wind), + longitude: LibDevice.gt06Hex2DMM(gps_string.slice(22, 30), lng_wind), + speed: parseInt(gps_string.slice(30, 32), 16), // km/h + orientation_raw: gps_string.slice(32, 36), + orientation: parseInt(`${ob1_bit1}${ob1_bit0}${ob2}`, 2), // -360 ~ 360 derajat + }; + + return data; + } + + // more accurate + static gt06Hex2DMM(hex, direction) { + hex = parseInt(hex, 16); + // convert hexadecimal to Degrees Minutes.m (DMM) + let a = parseInt(hex, 10); // to decimal values + let b = a / 30000.0; + let degrees = b / 60; + let minutes = b % 60; + // convert DMM to Decimal Degrees (DD) + // let d = minutes / 60 + // let dd = degrees + d + // add - follow wind direction + if (direction == "S" || direction == "W" || direction == "s" || direction == "w") { + degrees = degrees * -1; + } + return degrees; + } + // ga akurat + static gt06Hex2DMM1(hex, direction) { + hex = parseInt(hex, 16); + // convert hexadecimal to Degrees Minutes.m (DMM) + let a = parseInt(hex, 10); // to decimal values + let b = a / 30000.0; + let degrees = b / 60; + let minutes = b % 60; + // convert DMM to Decimal Degrees (DD) + let d = minutes / 60; + let dd = degrees + d; + // add - follow wind direction + if (direction == "S" || direction == "W" || direction == "s" || direction == "w") { + dd = dd * -1; + } + return dd; + } + + static gt06HeartbeatResp(me) { + return Buffer.from("787805130001d9dc0d0a", "hex"); + } + + static gt06ParseHeartbeat(me, stts_string) { + if (!stts_string) { + stts_string = me.ori_string.slice(8).slice(0, 10); + } + + let terminal_info_raw = stts_string.slice(0, 2); + let tib1 = LibHelper.hex2bin(terminal_info_raw); // terminal_info_byte1 + let tib1_bit7 = tib1.slice(0, 1); + let tib1_bit6 = tib1.slice(1, 2); + let tib1_bit5 = tib1.slice(2, 3); + let tib1_bit4 = tib1.slice(3, 4); + let tib1_bit3 = tib1.slice(4, 5); + let tib1_bit2 = tib1.slice(5, 6); + let tib1_bit1 = tib1.slice(6, 7); + let tib1_bit0 = tib1.slice(7, 8); + + /** + * 0: No Power (shutdown) + * 1: Extremely Low Battery (not enough for calling or sending text messages, etc.) + * 2: Very Low Battery (Low Battery Alarm) + * 3: Low Battery (can be used normally) + * 4: Medium + * 5: High + * 6: Very High + */ + let voltage_level = stts_string.slice(2, 4); + + let gsm_signal_strength = stts_string.slice(4, 6); + + let alarm_stts = stts_string.slice(6, 8); // former bit: terminal alarm status (suitable for alarm packet and electronic fence project) + let language = stts_string.slice(8, 10); // latter bit: the current language used in the terminal + + const data = { + terminal_info_raw: terminal_info_raw, + terminal_info_byte: tib1, + terminal_info: { + oil_electricity: tib1_bit7, // 1: oil and electricity disconnected, 0: gas oil and electricity connected + gps_tracking: tib1_bit6, // 1: GPS tracking is on, 0: GPS tracking is off + stts: `${tib1_bit5}${tib1_bit4}${tib1_bit3}`, // 100: SOS, 011: Low Battery Alarm, 010: Power Cut Alarm, 001: Shock Alarm, 000: Normal + charge: tib1_bit2, // 1: Charge On, 0: Charge Off + acc: tib1_bit1, // 1: ACC high, 0: ACC Low + is_active: tib1_bit0, // 1: Activated, 0: Deactivated + }, + voltage_level, + gsm_signal_strength, // 0x00: no signal; 0x01: extremely weak signal; 0x02: very weak signal; 0x03: good signal; 0x04: strong signal. + alarm_stts, // 0x00: normal, 0x01: SOS, 0x02: Power Cut Alarm, 0x03: Shock Alarm, 0x04: Fence In Alarm, 0x05: Fence Out Alarm + language, // 0x01: Chinese, 0x02: English + }; + + return data; + } + + static gt06ParseLbs(me, lbs_string) { + let mcc_raw = null, + mcc = null, // mobile country code + mnc_raw = null, + mnc = null, // mobile network code + lac_raw = null, + lac = null, // location area code + cellID_raw = null, + cellID = null, // cell tower id + lbs_length_raw = null, + lbs_length = null; + + // from location + if (lbs_string.length == 16) { + mcc_raw = lbs_string.slice(0, 4); + mnc_raw = lbs_string.slice(4, 6); + lac_raw = lbs_string.slice(6, 10); + cellID_raw = lbs_string.slice(10, 16); + } + // from alarm + else if (lbs_string.length == 18) { + lbs_length_raw = lbs_string.slice(0, 2); + mcc_raw = lbs_string.slice(2, 6); + mnc_raw = lbs_string.slice(6, 8); + lac_raw = lbs_string.slice(8, 12); + cellID_raw = lbs_string.slice(12, 18); + } + + if (lbs_length_raw) { + lbs_length = parseInt(lbs_length_raw, 16); + } + if (mnc_raw && mcc_raw && lac_raw && cellID_raw) { + mnc = parseInt(mnc_raw, 16); + mcc = parseInt(mcc_raw, 16); + lac = parseInt(lac_raw, 16); + cellID = parseInt(cellID_raw, 16); + } + + const data = { + lbs_length_raw, + lbs_length, + mcc_raw, + mcc, + mnc_raw, + mnc, + lac_raw, + lac, + cellID_raw, + cellID, + }; + + return data; + } + + static gt06ParseStatusAlarm(me, stts_string) { + if (!stts_string) { + stts_string = me.ori_string.slice(8).slice(54, 10); + } + + let terminal_info_raw = stts_string.slice(0, 2); + let tib1 = LibHelper.hex2bin(terminal_info_raw); // terminal_info_byte1 + let tib1_bit7 = tib1.slice(0, 1); + let tib1_bit6 = tib1.slice(1, 2); + let tib1_bit5 = tib1.slice(2, 3); + let tib1_bit4 = tib1.slice(3, 4); + let tib1_bit3 = tib1.slice(4, 5); + let tib1_bit2 = tib1.slice(5, 6); + let tib1_bit1 = tib1.slice(6, 7); + let tib1_bit0 = tib1.slice(7, 8); + + /** + * 0: No Power (shutdown) + * 1: Extremely Low Battery (not enough for calling or sending text messages, etc.) + * 2: Very Low Battery (Low Battery Alarm) + * 3: Low Battery (can be used normally) + * 4: Medium + * 5: High + * 6: Very High + */ + let voltage_level = stts_string.slice(2, 4); + + let gsm_signal_strength = stts_string.slice(4, 6); + + let alarm_stts = stts_string.slice(6, 8); // former bit: terminal alarm status (suitable for alarm packet and electronic fence project) + let language = stts_string.slice(8, 10); // latter bit: the current language used in the terminal + + const data = { + terminal_info_raw: terminal_info_raw, + terminal_info_byte: tib1, + terminal_info: { + oil_electricity: tib1_bit7, // 1: oil and electricity disconnected, 0: gas oil and electricity connected + gps_tracking: tib1_bit6, // 1: GPS tracking is on, 0: GPS tracking is off + stts: `${tib1_bit5}${tib1_bit4}${tib1_bit3}`, // 100: SOS, 011: Low Battery Alarm, 010: Power Cut Alarm, 001: Shock Alarm, 000: Normal + charge: tib1_bit2, // 1: Charge On, 0: Charge Off + acc: tib1_bit1, // 1: ACC high, 0: ACC Low + is_active: tib1_bit0, // 1: Activated, 0: Deactivated + }, + voltage_level, + gsm_signal_strength, // 0x00: no signal; 0x01: extremely weak signal; 0x02: very weak signal; 0x03: good signal; 0x04: strong signal. + alarm_stts, // 0x00: normal, 0x01: SOS, 0x02: Power Cut Alarm, 0x03: Shock Alarm, 0x04: Fence In Alarm, 0x05: Fence Out Alarm + language, // 0x01: Chinese, 0x02: English + }; + + return data; + } + + static gt06AlarmResp(me) { + return Buffer.from("787805160001d9dc0d0a", "hex"); + } + + static eelinkCustomAction(me, device_id = null) { + const act = { + device_id: me.field1, + action_type: "exist_data", + cmd: "exist_data", + }; + + if (me.field3 == "60000000" || me.field3 == "00000000") { + act.action_type = "no_data_since_hardware_reset"; + act.cmd = "no_data_since_hardware_reset"; + + // act.buffer_resp = Buffer.from('LOAD'); + // act.buffer_resp = 'LOAD'; + // act.buffer_resp = Buffer.from(`6767${me.field0}000A0001${me.field1}01`, 'hex'); + // act.buffer_resp = `6767${me.field0}000A0001${me.field1}01`; + } + + if (act.action_type !== "exist_data") return act; + + act.flag = me.field0; + act.imsi = me.field2; // International Mobile Subscriber Identifier + + act.time_string = me.field3; + const time_data = {}; + time_data.year = "20" + (parseInt(me.field3.slice(0, 1), 16) + 10); + time_data.month = "" + parseInt(me.field3.slice(1, 2), 16); + if (time_data.month.length === 1) { + time_data.month = "0" + time_data.month; + } + time_data.day = "" + parseInt(me.field3.slice(2, 4), 16); + if (time_data.day.length === 1) { + time_data.day = "0" + time_data.day; + } + time_data.hour = "" + parseInt(me.field3.slice(4, 6), 16); + if (time_data.hour.length === 1) { + time_data.hour = "0" + time_data.hour; + } + time_data.minute = "" + parseInt(me.field3.slice(6, 8), 16); + if (time_data.minute.length === 1) { + time_data.minute = "0" + time_data.minute; + } + act.time_data = time_data; + + /** + * north => -9000000 to +9000000, can 1 or 2 digits of degree + * west => -18000000 to +18000000, usually 3 digits degree + */ + act.location_string = me.field4; + // original value is expressed as signed hex value, so we must to conversion to decimal + // using two complement + let north = ~parseInt(me.field4.slice(0, 8), 16); + let west = ~parseInt(me.field4.slice(8, 16), 16); + // add magnitude + north = north * -1 + 1; + west = west * -1 + 1; + // convert to string + north += ""; + west += ""; + // remove - from string at first and save to temporary variable + let signedNorth = ""; + if (north.indexOf("-") === 0) { + north = north.slice(1); + signedNorth = "-"; + } + let signedWest = ""; + if (west.indexOf("-") === 0) { + west = west.slice(1); + signedWest = "-"; + } + // separate DDM => Degree Decimal Minutes + let northDegree = north.slice(0, 1); + let northDecimalMinute = north.slice(1, 7); + if (north.length === 8) { + northDegree = north.slice(0, 2); + northDecimalMinute = north.slice(2, 7); + } + let westDegree = west.slice(0, 3); + let westDecimalMinute = west.slice(3, 7); + // convert DDM to DD (Decimal Degrees) + act.latitude = "" + signedNorth + northDegree + "." + ("" + northDecimalMinute / 60).replace(".", ""); + act.longitude = "" + signedWest + westDegree + "." + ("" + westDecimalMinute / 60).replace(".", ""); + + return act; + } } -module.exports = LibDevice; \ No newline at end of file +module.exports = LibDevice; diff --git a/library/LibDevice.js_bak b/library/LibDevice.js_bak new file mode 100755 index 0000000..6659291 --- /dev/null +++ b/library/LibDevice.js_bak @@ -0,0 +1,573 @@ +const LibHelper = require('./LibHelper'); + +class LibDevice { + + /** + * + * @param {Buffer} buffer + * @param {Object} opts + * @returns {Object} me + * must return at least => obj.protocol_name + */ + static identifyProtocolFromBuffer(buffer, opts = {}) { + let ori_hex_str = ''; + if (typeof opts.skip_buffer != 'undefined' && opts.skip_buffer === true) { + ori_hex_str = buffer; + } else { + ori_hex_str = buffer.toString('hex'); // 16 + } + + const data = ori_hex_str; + const me = { + ori_string: data, + }; + + // eelinkCustom + if (opts.isEelinkCustom) { + me.protocol_name = 'eelinkCustom'; + + me.field0 = data.slice(0, 2); // system status flag + me.field1 = data.slice(2, 18); // IMEI + me.field2 = data.slice(18, 34); // IMSI + me.field3 = data.slice(34, 42); // Time + me.field4 = data.slice(42, 58); // Location + me.field5 = data.slice(58, 62); // Altitude + me.field6 = data.slice(62, 66); // Heading + me.field7 = data.slice(66, 68); // Velocity + me.field8 = data.slice(68, 70); // Power Input Voltage + me.field9 = data.slice(70, 72); // GPIO Status + me.field10 = data.slice(72, 74); // Time Seconds + me.field11 = data.slice(74, 76); // RSSI + me.field12 = data.slice(76, 78); // Sequence Counter + me.field13 = data.slice(78, 80); // Vendor ID + me.field14 = data.slice(80, 82); // GPS Satellites + me.field15 = data.slice(82, 90); // Accumulators + + me.ori_string = data; + } + // gt06 + else if (data.slice(0, 4) == '7878') { + me.protocol_name = 'gt06'; + + me.start = data.slice(0, 4); + me.length = parseInt(data.slice(4, 6), 16); + me.protocol_id = data.slice(6, 8); + me.serial_number = data.slice(-12, -8) + me.error_check = data.slice(-8, -4) + me.finish = data.slice(-4); // data.substr(6 + me.length * 2, 4); + + if (me.finish != '0d0a') { + throw 'finish code incorrect!'; + } + + me.ori_string = data; + } + // gt02a + else if (data.slice(0, 4) == '6868') { + me.protocol_name = 'gt02a'; + } + // tk103 + // else if (data.indexOf("B")) { + // me.protocol_name = 'tk103'; + // } + // eelink + else if (data.slice(0, 4) == '6767') { + me.protocol_name = 'eelink'; + + me.start = data.slice(0, 4); + me.pid = data.slice(4, 6); + me.size = parseInt(data.slice(6, 10), 16); + me.sequence = parseInt(data.slice(10, 4), 16); + + me.ori_string = data; + } + // unknown + else { + me.protocol_name = 'unknown'; + } + + return me; + } + + /** + * + * @param {Object} me + * @param {String} device_id + * @returns + * must return at least => act.cmd,act.action_type,act.device_id + */ + static gt06Action(me, device_id = null) { + const act = {} + + // Login message + if (me.protocol_id == '01') { + act.action_type = 'login'; + + act.cmd = 'login_request'; + act.action = 'login_request'; + act.device_id = me.ori_string.slice(8).slice(0, 16).padStart(16, '0'); + + act.buffer_resp = LibDevice.gt06AuthorizeResp(me); + } + // Location data + else if (me.protocol_id == '12') { + act.action_type = 'location'; + + act.cmd = 'ping'; + act.action = 'ping'; + act.device_id = device_id; // because device_id only sent when login + + // content data + // me.ori_string.slice(8).slice(0, 52); // me.ori_string.substr(8, me.length * 2); + + // gps information + act.gps_string = me.ori_string.slice(8).slice(0, 36); + act.gps_data = LibDevice.gt06ParseLocation(me, act.gps_string); + // if (!act.gps_data) { + // //Something bad happened + // _this.do_log('GPS Data can\'t be parsed. Discarding packet...'); + // return false; + // } + + // lbs information + act.lbs_string = me.ori_string.slice(8).slice(36, 52); + act.lbs_data = LibDevice.gt06ParseLbs(me, act.lbs_string); + } + // Status information + else if (me.protocol_id == '13') { + act.action_type = 'heartbeat'; + + act.cmd = 'heartbeat'; + act.action = 'heartbeat'; + act.device_id = device_id; // because device_id only sent when login + + // status information + act.stts_string = me.ori_string.slice(8).slice(0, 10); + act.stts_data = LibDevice.gt06ParseHeartbeat(me, act.stts_string); + + act.buffer_resp = LibDevice.gt06HeartbeatResp(me); + } + // String information + else if (me.protocol_id == '15') { + // act.action_type = 'other'; // 'heartbeat'; + // act.cmd = 'other'; // 'heartbeat'; + // act.action = 'other'; // 'heartbeat'; + // act.device_id = ''; // device_id; // because device_id only sent when login + + act.action_type = 'heartbeat'; + + act.cmd = 'heartbeat'; + act.action = 'heartbeat'; + act.device_id = device_id; // because device_id only sent when login + + // status information + act.stts_string = me.ori_string.slice(8).slice(0, 10); + act.stts_data = LibDevice.gt06ParseHeartbeat(me, act.stts_string); + + act.buffer_resp = LibDevice.gt06HeartbeatResp(me); + } + // Alarm data + else if (me.protocol_id == '16' || me.protocol_id == '18') { + act.action_type = 'alarm'; + + act.cmd = 'alarm'; + act.action = 'alarm'; + act.device_id = device_id; // because device_id only sent when login + + // content data + // me.ori_string.slice(8).slice(0, 64); // me.ori_string.substr(8, me.length * 2); + + // gps information + act.gps_string = me.ori_string.slice(8).slice(0, 36); + act.gps_data = LibDevice.gt06ParseLocation(me, act.gps_string); + + // lbs information + act.lbs_string = me.ori_string.slice(8).slice(36, 54); + act.lbs_data = LibDevice.gt06ParseLbs(me, act.lbs_string); + + // status information + act.stts_string = me.ori_string.slice(8).slice(54, 64); + act.stts_data = LibDevice.gt06ParseStatusAlarm(me, act.stts_string); + + act.buffer_resp = LibDevice.gt06AlarmResp(me); + } + // GPS, query address information by phone number + else if (me.protocol_id == '1A') { + act.action_type = 'other'; + + act.cmd = 'other'; + act.action = 'other'; + act.device_id = ''; + } + // Command information sent by the server to the terminal + else if (me.protocol_id == '80') { + act.action_type = 'other'; + + act.cmd = 'other'; + act.action = 'other'; + act.device_id = ''; + } else { + act.action_type = 'other'; + + act.cmd = 'other'; + act.action = 'other'; + act.device_id = ''; + } + + return act; + } + + static gt06AuthorizeResp(me) { + return Buffer.from("787805010001d9dc0d0a", "hex"); + } + + static gt06ParseLocation(me, gps_string = null) { + if (!gps_string) { + gps_string = me.ori_string.slice(8).slice(0, 36); + } + + let year = (parseInt(gps_string.slice(0, 2), 16) + '').padStart(2, 0); + year = '20' + year; + let month = (parseInt(gps_string.slice(2, 4), 16) + '').padStart(2, 0); + let day = (parseInt(gps_string.slice(4, 6), 16) + '').padStart(2, 0); + let hour = (parseInt(gps_string.slice(6, 8), 16) + '').padStart(2, 0); + let minute = (parseInt(gps_string.slice(8, 10), 16) + '').padStart(2, 0); + let second = (parseInt(gps_string.slice(10, 12), 16) + '').padStart(2, 0); + + let ob1 = LibHelper.hex2bin(gps_string.slice(32, 34)); // orientation_byte1 + let ob1_bit7 = ob1.slice(0, 1); + let ob1_bit6 = ob1.slice(1, 2); + let ob1_bit5 = ob1.slice(2, 3); // 0 (realtime GPS) or differential positioning + let ob1_bit4 = ob1.slice(3, 4); // 1 (GPS has been positioned) + let ob1_bit3 = ob1.slice(4, 5); // 0 (east longitude) || 1 (west longitude) + let ob1_bit2 = ob1.slice(5, 6); // 1 (north latitude) || 0 (south latitude) + let ob1_bit1 = ob1.slice(6, 7); + let ob1_bit0 = ob1.slice(7, 8); + let ob2 = LibHelper.hex2bin(gps_string.slice(34, 36)); // orientation_byte2 + // let ob2_bit7 = ob2.slice(0, 1); + // let ob2_bit6 = ob2.slice(1, 2); + // let ob2_bit5 = ob2.slice(2, 3); + // let ob2_bit4 = ob2.slice(3, 4); + // let ob2_bit3 = ob2.slice(4, 5); + // let ob2_bit2 = ob2.slice(5, 6); + // let ob2_bit1 = ob2.slice(6, 7); + // let ob2_bit0 = ob2.slice(7, 8); + + let lat_wind = ''; // wind direction N,S + let lng_wind = ''; // wind direction W,E + if (ob1_bit3 == 1) { + lng_wind = 'W'; + } + if (ob1_bit3 == 0) { + lng_wind = 'E'; + } + if (ob1_bit2 == 1) { + lat_wind = 'N'; + } + if (ob1_bit2 == 0) { + lat_wind = 'S'; + } + + const data = { + 'date_raw': gps_string.slice(0, 12), + 'date': `${year}-${month}-${day} ${hour}:${minute}:${second}`, + 'quantity_pos_satellites_raw': gps_string.slice(12, 14), + 'quantity_pos_satellites_c': parseInt(gps_string.slice(12, 13), 16), // length of gps information + 'quantity_pos_satellites_b': parseInt(gps_string.slice(13, 14), 16), // number of positioning satellites + realtime_dif_gps: ob1_bit5, // 0 (realtime GPS) or differential positioning + positioning_gps: ob1_bit6, // 1 (GPS has been positioned) + 'latitude_raw': gps_string.slice(14, 22), + 'longitude_raw': gps_string.slice(22, 30), + lat_wind_direction: lat_wind, + lng_wind_direction: lng_wind, + 'latitude': LibDevice.gt06Hex2DMM(gps_string.slice(14, 22), lat_wind), + 'longitude': LibDevice.gt06Hex2DMM(gps_string.slice(22, 30), lng_wind), + 'speed': parseInt(gps_string.slice(30, 32), 16), // km/h + 'orientation_raw': gps_string.slice(32, 36), + 'orientation': parseInt(`${ob1_bit1}${ob1_bit0}${ob2}`, 2), // -360 ~ 360 derajat + }; + + return data; + } + + // more accurate + static gt06Hex2DMM(hex, direction) { + hex = parseInt(hex, 16); + // convert hexadecimal to Degrees Minutes.m (DMM) + let a = parseInt(hex, 10) // to decimal values + let b = a / 30000.0 + let degrees = b / 60 + let minutes = b % 60 + // convert DMM to Decimal Degrees (DD) + // let d = minutes / 60 + // let dd = degrees + d + // add - follow wind direction + if (direction == "S" || direction == "W" || direction == "s" || direction == "w") { + degrees = degrees * -1; + } + return degrees; + } + // ga akurat + static gt06Hex2DMM1(hex, direction) { + hex = parseInt(hex, 16); + // convert hexadecimal to Degrees Minutes.m (DMM) + let a = parseInt(hex, 10) // to decimal values + let b = a / 30000.0 + let degrees = b / 60 + let minutes = b % 60 + // convert DMM to Decimal Degrees (DD) + let d = minutes / 60 + let dd = degrees + d + // add - follow wind direction + if (direction == "S" || direction == "W" || direction == "s" || direction == "w") { + dd = dd * -1; + } + return dd; + } + + static gt06HeartbeatResp(me) { + return Buffer.from("787805130001d9dc0d0a", "hex"); + } + + static gt06ParseHeartbeat(me, stts_string) { + if (!stts_string) { + stts_string = me.ori_string.slice(8).slice(0, 10); + } + + let terminal_info_raw = stts_string.slice(0, 2); + let tib1 = LibHelper.hex2bin(terminal_info_raw); // terminal_info_byte1 + let tib1_bit7 = tib1.slice(0, 1); + let tib1_bit6 = tib1.slice(1, 2); + let tib1_bit5 = tib1.slice(2, 3); + let tib1_bit4 = tib1.slice(3, 4); + let tib1_bit3 = tib1.slice(4, 5); + let tib1_bit2 = tib1.slice(5, 6); + let tib1_bit1 = tib1.slice(6, 7); + let tib1_bit0 = tib1.slice(7, 8); + + /** + * 0: No Power (shutdown) + * 1: Extremely Low Battery (not enough for calling or sending text messages, etc.) + * 2: Very Low Battery (Low Battery Alarm) + * 3: Low Battery (can be used normally) + * 4: Medium + * 5: High + * 6: Very High + */ + let voltage_level = stts_string.slice(2, 4); + + let gsm_signal_strength = stts_string.slice(4, 6); + + let alarm_stts = stts_string.slice(6, 8); // former bit: terminal alarm status (suitable for alarm packet and electronic fence project) + let language = stts_string.slice(8, 10); // latter bit: the current language used in the terminal + + const data = { + terminal_info_raw: terminal_info_raw, + terminal_info_byte: tib1, + terminal_info: { + oil_electricity: tib1_bit7, // 1: oil and electricity disconnected, 0: gas oil and electricity connected + gps_tracking: tib1_bit6, // 1: GPS tracking is on, 0: GPS tracking is off + stts: `${tib1_bit5}${tib1_bit4}${tib1_bit3}`, // 100: SOS, 011: Low Battery Alarm, 010: Power Cut Alarm, 001: Shock Alarm, 000: Normal + charge: tib1_bit2, // 1: Charge On, 0: Charge Off + acc: tib1_bit1, // 1: ACC high, 0: ACC Low + is_active: tib1_bit0, // 1: Activated, 0: Deactivated + }, + voltage_level, + gsm_signal_strength, // 0x00: no signal; 0x01: extremely weak signal; 0x02: very weak signal; 0x03: good signal; 0x04: strong signal. + alarm_stts, // 0x00: normal, 0x01: SOS, 0x02: Power Cut Alarm, 0x03: Shock Alarm, 0x04: Fence In Alarm, 0x05: Fence Out Alarm + language, // 0x01: Chinese, 0x02: English + }; + + return data; + } + + static gt06ParseLbs(me, lbs_string) { + let mcc_raw = null, + mcc = null, // mobile country code + mnc_raw = null, + mnc = null, // mobile network code + lac_raw = null, + lac = null, // location area code + cellID_raw = null, + cellID = null, // cell tower id + lbs_length_raw = null, + lbs_length = null; + + // from location + if (lbs_string.length == 16) { + mcc_raw = lbs_string.slice(0, 4); + mnc_raw = lbs_string.slice(4, 6); + lac_raw = lbs_string.slice(6, 10); + cellID_raw = lbs_string.slice(10, 16); + } + // from alarm + else if (lbs_string.length == 18) { + lbs_length_raw = lbs_string.slice(0, 2); + mcc_raw = lbs_string.slice(2, 6); + mnc_raw = lbs_string.slice(6, 8); + lac_raw = lbs_string.slice(8, 12); + cellID_raw = lbs_string.slice(12, 18); + } + + if (lbs_length_raw) { + lbs_length = parseInt(lbs_length_raw, 16); + } + if (mnc_raw && mcc_raw && lac_raw && cellID_raw) { + mnc = parseInt(mnc_raw, 16); + mcc = parseInt(mcc_raw, 16); + lac = parseInt(lac_raw, 16); + cellID = parseInt(cellID_raw, 16); + } + + const data = { + lbs_length_raw, + lbs_length, + mcc_raw, + mcc, + mnc_raw, + mnc, + lac_raw, + lac, + cellID_raw, + cellID, + }; + + return data; + } + + static gt06ParseStatusAlarm(me, stts_string) { + if (!stts_string) { + stts_string = me.ori_string.slice(8).slice(54, 10); + } + + let terminal_info_raw = stts_string.slice(0, 2); + let tib1 = LibHelper.hex2bin(terminal_info_raw); // terminal_info_byte1 + let tib1_bit7 = tib1.slice(0, 1); + let tib1_bit6 = tib1.slice(1, 2); + let tib1_bit5 = tib1.slice(2, 3); + let tib1_bit4 = tib1.slice(3, 4); + let tib1_bit3 = tib1.slice(4, 5); + let tib1_bit2 = tib1.slice(5, 6); + let tib1_bit1 = tib1.slice(6, 7); + let tib1_bit0 = tib1.slice(7, 8); + + /** + * 0: No Power (shutdown) + * 1: Extremely Low Battery (not enough for calling or sending text messages, etc.) + * 2: Very Low Battery (Low Battery Alarm) + * 3: Low Battery (can be used normally) + * 4: Medium + * 5: High + * 6: Very High + */ + let voltage_level = stts_string.slice(2, 4); + + let gsm_signal_strength = stts_string.slice(4, 6); + + let alarm_stts = stts_string.slice(6, 8); // former bit: terminal alarm status (suitable for alarm packet and electronic fence project) + let language = stts_string.slice(8, 10); // latter bit: the current language used in the terminal + + const data = { + terminal_info_raw: terminal_info_raw, + terminal_info_byte: tib1, + terminal_info: { + oil_electricity: tib1_bit7, // 1: oil and electricity disconnected, 0: gas oil and electricity connected + gps_tracking: tib1_bit6, // 1: GPS tracking is on, 0: GPS tracking is off + stts: `${tib1_bit5}${tib1_bit4}${tib1_bit3}`, // 100: SOS, 011: Low Battery Alarm, 010: Power Cut Alarm, 001: Shock Alarm, 000: Normal + charge: tib1_bit2, // 1: Charge On, 0: Charge Off + acc: tib1_bit1, // 1: ACC high, 0: ACC Low + is_active: tib1_bit0, // 1: Activated, 0: Deactivated + }, + voltage_level, + gsm_signal_strength, // 0x00: no signal; 0x01: extremely weak signal; 0x02: very weak signal; 0x03: good signal; 0x04: strong signal. + alarm_stts, // 0x00: normal, 0x01: SOS, 0x02: Power Cut Alarm, 0x03: Shock Alarm, 0x04: Fence In Alarm, 0x05: Fence Out Alarm + language, // 0x01: Chinese, 0x02: English + }; + + return data; + } + + static gt06AlarmResp(me) { + return Buffer.from("787805160001d9dc0d0a", "hex"); + } + + static eelinkCustomAction(me, device_id = null) { + const act = { + device_id: me.field1, + action_type: 'exist_data', + cmd: 'exist_data', + } + + if (me.field3 == '60000000' || me.field3 == '00000000') { + act.action_type = 'no_data_since_hardware_reset'; + act.cmd = 'no_data_since_hardware_reset'; + + // act.buffer_resp = Buffer.from('LOAD'); + // act.buffer_resp = 'LOAD'; + // act.buffer_resp = Buffer.from(`6767${me.field0}000A0001${me.field1}01`, 'hex'); + // act.buffer_resp = `6767${me.field0}000A0001${me.field1}01`; + } + + if (act.action_type !== 'exist_data') return act; + + act.flag = me.field0; + act.imsi = me.field2; // International Mobile Subscriber Identifier + + act.time_string = me.field3; + const time_data = {}; + time_data.year = '20' + (parseInt(me.field3.slice(0, 1), 16) + 10); + time_data.month = '' + parseInt(me.field3.slice(1, 2), 16); + if (time_data.month.length === 1) { time_data.month = '0' + time_data.month; } + time_data.day = '' + parseInt(me.field3.slice(2, 4), 16); + if (time_data.day.length === 1) { time_data.day = '0' + time_data.day; } + time_data.hour = '' + parseInt(me.field3.slice(4, 6), 16); + if (time_data.hour.length === 1) { time_data.hour = '0' + time_data.hour; } + time_data.minute = '' + parseInt(me.field3.slice(6, 8), 16); + if (time_data.minute.length === 1) { time_data.minute = '0' + time_data.minute; } + act.time_data = time_data; + + /** + * north => -9000000 to +9000000, can 1 or 2 digits of degree + * west => -18000000 to +18000000, usually 3 digits degree + */ + act.location_string = me.field4; + // original value is expressed as signed hex value, so we must to conversion to decimal + // using two complement + let north = ~parseInt(me.field4.slice(0, 8), 16); + let west = ~parseInt(me.field4.slice(8, 16), 16); + // add magnitude + north = north * -1 + 1; + west = west * -1 + 1; + // convert to string + north += ''; + west += ''; + // remove - from string at first and save to temporary variable + let signedNorth = ''; + if (north.indexOf('-') === 0) { + north = north.slice(1); + signedNorth = '-'; + } + let signedWest = ''; + if (west.indexOf('-') === 0) { + west = west.slice(1); + signedWest = '-'; + } + // separate DDM => Degree Decimal Minutes + let northDegree = north.slice(0, 1); + let northDecimalMinute = north.slice(1, 7); + if (north.length === 8) { + northDegree = north.slice(0, 2); + northDecimalMinute = north.slice(2, 7); + } + let westDegree = west.slice(0, 3); + let westDecimalMinute = west.slice(3, 7); + // convert DDM to DD (Decimal Degrees) + act.latitude = '' + signedNorth + northDegree + '.' + ('' + (northDecimalMinute/60)).replace('.', ''); + act.longitude = '' + signedWest + westDegree + '.' + ('' + (westDecimalMinute/60)).replace('.', ''); + + return act; + } + +} + +module.exports = LibDevice; \ No newline at end of file diff --git a/library/LibFile.js b/library/LibFile.js old mode 100644 new mode 100755 diff --git a/library/LibFirebase.js b/library/LibFirebase.js old mode 100644 new mode 100755 diff --git a/library/LibHelper.js b/library/LibHelper.js old mode 100644 new mode 100755 diff --git a/library/LibImgGeotagging.js b/library/LibImgGeotagging.js old mode 100644 new mode 100755 diff --git a/library/LibJwt.js b/library/LibJwt.js old mode 100644 new mode 100755 diff --git a/library/LibLogReqResApi.js b/library/LibLogReqResApi.js old mode 100644 new mode 100755 diff --git a/library/LibMail.js b/library/LibMail.js old mode 100644 new mode 100755 diff --git a/library/LibMysqlHelper.js b/library/LibMysqlHelper.js old mode 100644 new mode 100755 diff --git a/library/LibPassword.js b/library/LibPassword.js old mode 100644 new mode 100755 diff --git a/library/LibQueueBlastOrder.js b/library/LibQueueBlastOrder.js old mode 100644 new mode 100755 diff --git a/library/LibRedisConn.js b/library/LibRedisConn.js old mode 100644 new mode 100755 diff --git a/library/LibSchedulerDrvBlastNotif.js b/library/LibSchedulerDrvBlastNotif.js old mode 100644 new mode 100755 diff --git a/library/LibSchedulerDrvUpLoc.js b/library/LibSchedulerDrvUpLoc.js old mode 100644 new mode 100755 diff --git a/library/LibSchedulerDrvUpLocIdle.js b/library/LibSchedulerDrvUpLocIdle.js old mode 100644 new mode 100755 diff --git a/library/LibSchedulerDrvUpPhoto.js b/library/LibSchedulerDrvUpPhoto.js old mode 100644 new mode 100755 diff --git a/library/LibSchedulerGpsTrackerWakeUp.js b/library/LibSchedulerGpsTrackerWakeUp.js old mode 100644 new mode 100755 diff --git a/library/LibSchedulerReverseGeocode.js b/library/LibSchedulerReverseGeocode.js old mode 100644 new mode 100755 diff --git a/library/LibWinston.js b/library/LibWinston.js old mode 100644 new mode 100755 diff --git a/middleware/AuthDriverMiddleware.js b/middleware/AuthDriverMiddleware.js old mode 100644 new mode 100755 diff --git a/middleware/AuthDriverMiddlewareNotStrict.js b/middleware/AuthDriverMiddlewareNotStrict.js old mode 100644 new mode 100755 diff --git a/middleware/AuthMiddleware.js b/middleware/AuthMiddleware.js old mode 100644 new mode 100755 diff --git a/middleware/MorganMiddleware.js b/middleware/MorganMiddleware.js old mode 100644 new mode 100755 diff --git a/models/DanaModels.js b/models/DanaModels.js old mode 100644 new mode 100755 diff --git a/models/DriversModels.js b/models/DriversModels.js old mode 100644 new mode 100755 diff --git a/models/DummyModels.js b/models/DummyModels.js old mode 100644 new mode 100755 diff --git a/models/GpsTracksModels.js b/models/GpsTracksModels.js old mode 100644 new mode 100755 diff --git a/models/LogbookKeysModels.js b/models/LogbookKeysModels.js old mode 100644 new mode 100755 diff --git a/models/LogbookOrdersModels.js b/models/LogbookOrdersModels.js old mode 100644 new mode 100755 diff --git a/models/LogbookTypesModels.js b/models/LogbookTypesModels.js old mode 100644 new mode 100755 diff --git a/models/LogsSchNotifModels.js b/models/LogsSchNotifModels.js old mode 100644 new mode 100755 diff --git a/models/OrdersAItemsModels.js b/models/OrdersAItemsModels.js old mode 100644 new mode 100755 diff --git a/models/OrdersCheckpointsModels.js b/models/OrdersCheckpointsModels.js old mode 100644 new mode 100755 diff --git a/models/OrdersDriversUploadsModels.js b/models/OrdersDriversUploadsModels.js old mode 100644 new mode 100755 diff --git a/models/OrdersDropsModels.js b/models/OrdersDropsModels.js old mode 100644 new mode 100755 diff --git a/models/OrdersLogsTfModels.js b/models/OrdersLogsTfModels.js old mode 100644 new mode 100755 diff --git a/models/OrdersModels.js b/models/OrdersModels.js old mode 100644 new mode 100755 diff --git a/models/OrdersPckDropsModels.js b/models/OrdersPckDropsModels.js old mode 100644 new mode 100755 diff --git a/models/OrdersPickupsModels.js b/models/OrdersPickupsModels.js old mode 100644 new mode 100755 diff --git a/models/OrdersTerminsModels.js b/models/OrdersTerminsModels.js old mode 100644 new mode 100755 diff --git a/models/OrdersVendorsModels.js b/models/OrdersVendorsModels.js old mode 100644 new mode 100755 diff --git a/models/PatientsStatusModels.js b/models/PatientsStatusModels.js old mode 100644 new mode 100755 diff --git a/models/RegionModels.js b/models/RegionModels.js old mode 100644 new mode 100755 diff --git a/models/UsersModels.js b/models/UsersModels.js old mode 100644 new mode 100755 diff --git a/models/VhcModels.js b/models/VhcModels.js old mode 100644 new mode 100755 diff --git a/models/ZoneModels.js b/models/ZoneModels.js old mode 100644 new mode 100755 diff --git a/package-lock.json b/package-lock.json old mode 100644 new mode 100755 index a6687ef..13678a9 --- a/package-lock.json +++ b/package-lock.json @@ -1,207 +1,252 @@ { "name": "fs", "version": "1.0.0", - "lockfileVersion": 1, + "lockfileVersion": 3, "requires": true, - "dependencies": { - "@babel/runtime": { + "packages": { + "": { + "name": "fs", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "@bull-board/express": "^3.9.1", + "axios": "^0.25.0", + "base64url": "^3.0.1", + "bcrypt": "^5.0.1", + "bullmq": "^1.68.0", + "crc": "^4.1.0", + "crc16-ccitt-node": "^1.0.6", + "crypto-js": "^4.1.1", + "dotenv": "^10.0.0", + "ejs": "^3.1.6", + "express": "^4.17.2", + "firebase-admin": "^10.3.0", + "formidable": "^2.0.1", + "gps-tracking": "^1.1.1", + "ioredis": "^4.28.3", + "jimp": "^0.16.1", + "jsonwebtoken": "^8.5.1", + "moment": "^2.29.1", + "morgan": "^1.10.0", + "mysql": "^2.18.1", + "nanoid": "^3.3.1", + "nodemailer": "^6.7.2", + "path": "^0.12.7", + "udp-packet": "^2.0.0", + "validatorjs": "^3.22.1", + "winston": "^3.3.3" + } + }, + "node_modules/@babel/runtime": { "version": "7.18.9", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.18.9.tgz", "integrity": "sha512-lkqXDcvlFT5rvEjiu6+QYO+1GXrEHRo2LOtS7E4GtX5ESIZOgepqsZBVIj6Pv+a6zqsya9VCgiK1KAK4BvJDAw==", - "requires": { + "dependencies": { "regenerator-runtime": "^0.13.4" + }, + "engines": { + "node": ">=6.9.0" } }, - "@bull-board/api": { + "node_modules/@bull-board/api": { "version": "3.9.1", "resolved": "https://registry.npmjs.org/@bull-board/api/-/api-3.9.1.tgz", "integrity": "sha512-PgemIY19P8X4jAutfFL/9UCFJEF7NdWqD4kDHhrodH0Fe2EiY1tIM9CKtfWnpoO945GtN5sU+rE1fDpPlhA91A==", - "requires": { + "dependencies": { "redis-info": "^3.0.8" } }, - "@bull-board/express": { + "node_modules/@bull-board/express": { "version": "3.9.1", "resolved": "https://registry.npmjs.org/@bull-board/express/-/express-3.9.1.tgz", "integrity": "sha512-BmRrEMH+jeqVkdCTGuebCovMFeO040qmeQ5Vbs6RmNVKWgK2FeqWITV4P09n0TwOk+xSuZ9Vvh6M/qqh4YkgCA==", - "requires": { + "dependencies": { "@bull-board/api": "3.9.1", "@bull-board/ui": "3.9.1", "ejs": "3.1.6", "express": "4.17.2" } }, - "@bull-board/ui": { + "node_modules/@bull-board/ui": { "version": "3.9.1", "resolved": "https://registry.npmjs.org/@bull-board/ui/-/ui-3.9.1.tgz", "integrity": "sha512-SnNb042pRwzkTRKAUuWg03b8p2naMyk6qCSUK8rXaxjrSLDJ9eZRl1DmL1zGXvO+kx0ieeEc+3icdUgxk7O1Xw==", - "requires": { + "dependencies": { "@bull-board/api": "3.9.1" } }, - "@dabh/diagnostics": { + "node_modules/@dabh/diagnostics": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.2.tgz", "integrity": "sha512-+A1YivoVDNNVCdfozHSR8v/jyuuLTMXwjWuxPFlFlUapXoGc+Gj9mDlTDDfrwl7rXCl2tNZ0kE8sIBO6YOn96Q==", - "requires": { + "dependencies": { "colorspace": "1.1.x", "enabled": "2.0.x", "kuler": "^2.0.0" } }, - "@fastify/busboy": { + "node_modules/@fastify/busboy": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-1.1.0.tgz", "integrity": "sha512-Fv854f94v0CzIDllbY3i/0NJPNBRNLDawf3BTYVGCe9VrIIs3Wi7AFx24F9NzCxdf0wyx/x0Q9kEVnvDOPnlxA==", - "requires": { + "dependencies": { "text-decoding": "^1.0.0" + }, + "engines": { + "node": ">=10.17.0" } }, - "@firebase/app-types": { + "node_modules/@firebase/app-types": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/@firebase/app-types/-/app-types-0.7.0.tgz", "integrity": "sha512-6fbHQwDv2jp/v6bXhBw2eSRbNBpxHcd1NBF864UksSMVIqIyri9qpJB1Mn6sGZE+bnDsSQBC5j2TbMxYsJQkQg==" }, - "@firebase/auth-interop-types": { + "node_modules/@firebase/auth-interop-types": { "version": "0.1.6", "resolved": "https://registry.npmjs.org/@firebase/auth-interop-types/-/auth-interop-types-0.1.6.tgz", - "integrity": "sha512-etIi92fW3CctsmR9e3sYM3Uqnoq861M0Id9mdOPF6PWIg38BXL5k4upCNBggGUpLIS0H1grMOvy/wn1xymwe2g==" + "integrity": "sha512-etIi92fW3CctsmR9e3sYM3Uqnoq861M0Id9mdOPF6PWIg38BXL5k4upCNBggGUpLIS0H1grMOvy/wn1xymwe2g==", + "peerDependencies": { + "@firebase/app-types": "0.x", + "@firebase/util": "1.x" + } }, - "@firebase/component": { + "node_modules/@firebase/component": { "version": "0.5.17", "resolved": "https://registry.npmjs.org/@firebase/component/-/component-0.5.17.tgz", "integrity": "sha512-mTM5CBSIlmI+i76qU4+DhuExnWtzcPS3cVgObA3VAjliPPr3GrUlTaaa8KBGfxsD27juQxMsYA0TvCR5X+GQ3Q==", - "requires": { + "dependencies": { "@firebase/util": "1.6.3", "tslib": "^2.1.0" - }, - "dependencies": { - "tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" - } } }, - "@firebase/database": { + "node_modules/@firebase/component/node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + }, + "node_modules/@firebase/database": { "version": "0.13.6", "resolved": "https://registry.npmjs.org/@firebase/database/-/database-0.13.6.tgz", "integrity": "sha512-5IZIBw2LT50Z8mwmKYmdX37p+Gg2HgeJsrruZmRyOSVgbfoY4Pg87n1uFx6qWqDmfL6HwQgwcrrQfVIXE3C5SA==", - "requires": { + "dependencies": { "@firebase/auth-interop-types": "0.1.6", "@firebase/component": "0.5.17", "@firebase/logger": "0.3.3", "@firebase/util": "1.6.3", "faye-websocket": "0.11.4", "tslib": "^2.1.0" - }, - "dependencies": { - "tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" - } } }, - "@firebase/database-compat": { + "node_modules/@firebase/database-compat": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/@firebase/database-compat/-/database-compat-0.2.6.tgz", "integrity": "sha512-Ls1BAODaiDYgeJljrIgSuC7JkFIY/HNhhNYebzZSoGQU62RuvnaO3Qgp2EH6h2LzHyRnycNadfh1suROtPaUIA==", - "requires": { + "dependencies": { "@firebase/component": "0.5.17", "@firebase/database": "0.13.6", "@firebase/database-types": "0.9.13", "@firebase/logger": "0.3.3", "@firebase/util": "1.6.3", "tslib": "^2.1.0" - }, - "dependencies": { - "tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" - } } }, - "@firebase/database-types": { + "node_modules/@firebase/database-compat/node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + }, + "node_modules/@firebase/database-types": { "version": "0.9.13", "resolved": "https://registry.npmjs.org/@firebase/database-types/-/database-types-0.9.13.tgz", "integrity": "sha512-dIJ1zGe3EHMhwcvukTOPzYlFYFIG1Et5Znl7s7y/ZTN2/toARRNnsv1qCKvqevIMYKvIrRsYOYfOXDS8l1YIJA==", - "requires": { + "dependencies": { "@firebase/app-types": "0.7.0", "@firebase/util": "1.6.3" } }, - "@firebase/logger": { + "node_modules/@firebase/database/node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + }, + "node_modules/@firebase/logger": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/@firebase/logger/-/logger-0.3.3.tgz", "integrity": "sha512-POTJl07jOKTOevLXrTvJD/VZ0M6PnJXflbAh5J9VGkmtXPXNG6MdZ9fmRgqYhXKTaDId6AQenQ262uwgpdtO0Q==", - "requires": { - "tslib": "^2.1.0" - }, "dependencies": { - "tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" - } + "tslib": "^2.1.0" } }, - "@firebase/util": { + "node_modules/@firebase/logger/node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + }, + "node_modules/@firebase/util": { "version": "1.6.3", "resolved": "https://registry.npmjs.org/@firebase/util/-/util-1.6.3.tgz", "integrity": "sha512-FujteO6Zjv6v8A4HS+t7c+PjU0Kaxj+rOnka0BsI/twUaCC9t8EQPmXpWZdk7XfszfahJn2pqsflUWUhtUkRlg==", - "requires": { - "tslib": "^2.1.0" - }, "dependencies": { - "tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" - } + "tslib": "^2.1.0" } }, - "@google-cloud/firestore": { + "node_modules/@firebase/util/node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" + }, + "node_modules/@google-cloud/firestore": { "version": "4.15.1", "resolved": "https://registry.npmjs.org/@google-cloud/firestore/-/firestore-4.15.1.tgz", "integrity": "sha512-2PWsCkEF1W02QbghSeRsNdYKN1qavrHBP3m72gPDMHQSYrGULOaTi7fSJquQmAtc4iPVB2/x6h80rdLHTATQtA==", "optional": true, - "requires": { + "dependencies": { "fast-deep-equal": "^3.1.1", "functional-red-black-tree": "^1.0.1", "google-gax": "^2.24.1", "protobufjs": "^6.8.6" + }, + "engines": { + "node": ">=10.10.0" } }, - "@google-cloud/paginator": { + "node_modules/@google-cloud/paginator": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/@google-cloud/paginator/-/paginator-3.0.7.tgz", "integrity": "sha512-jJNutk0arIQhmpUUQJPJErsojqo834KcyB6X7a1mxuic8i1tKXxde8E69IZxNZawRIlZdIK2QY4WALvlK5MzYQ==", "optional": true, - "requires": { + "dependencies": { "arrify": "^2.0.0", "extend": "^3.0.2" + }, + "engines": { + "node": ">=10" } }, - "@google-cloud/projectify": { + "node_modules/@google-cloud/projectify": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/@google-cloud/projectify/-/projectify-2.1.1.tgz", "integrity": "sha512-+rssMZHnlh0twl122gXY4/aCrk0G1acBqkHFfYddtsqpYXGxA29nj9V5V9SfC+GyOG00l650f6lG9KL+EpFEWQ==", - "optional": true + "optional": true, + "engines": { + "node": ">=10" + } }, - "@google-cloud/promisify": { + "node_modules/@google-cloud/promisify": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@google-cloud/promisify/-/promisify-2.0.4.tgz", "integrity": "sha512-j8yRSSqswWi1QqUGKVEKOG03Q7qOoZP6/h2zN2YO+F5h2+DHU0bSrHCK9Y7lo2DI9fBd8qGAw795sf+3Jva4yA==", - "optional": true + "optional": true, + "engines": { + "node": ">=10" + } }, - "@google-cloud/storage": { + "node_modules/@google-cloud/storage": { "version": "5.20.5", "resolved": "https://registry.npmjs.org/@google-cloud/storage/-/storage-5.20.5.tgz", "integrity": "sha512-lOs/dCyveVF8TkVFnFSF7IGd0CJrTm91qiK6JLu+Z8qiT+7Ag0RyVhxZIWkhiACqwABo7kSHDm8FdH8p2wxSSw==", "optional": true, - "requires": { + "dependencies": { "@google-cloud/paginator": "^3.0.7", "@google-cloud/projectify": "^2.0.0", "@google-cloud/promisify": "^2.0.0", @@ -226,96 +271,121 @@ "uuid": "^8.0.0", "xdg-basedir": "^4.0.0" }, - "dependencies": { - "mime": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz", - "integrity": "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==", - "optional": true - } + "engines": { + "node": ">=10" } }, - "@grpc/grpc-js": { + "node_modules/@google-cloud/storage/node_modules/mime": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz", + "integrity": "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==", + "optional": true, + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/@grpc/grpc-js": { "version": "1.6.12", "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.6.12.tgz", "integrity": "sha512-JmvQ03OTSpVd9JTlj/K3IWHSz4Gk/JMLUTtW7Zb0KvO1LcOYGATh5cNuRYzCAeDR3O8wq+q8FZe97eO9MBrkUw==", "optional": true, - "requires": { + "dependencies": { "@grpc/proto-loader": "^0.7.0", "@types/node": ">=12.12.47" }, - "dependencies": { - "@grpc/proto-loader": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.2.tgz", - "integrity": "sha512-jCdyLIT/tdQ1zhrbTQnJNK5nbDf0GoBpy5jVNywBzzMDF+Vs6uEaHnfz46dMtDxkvwrF2hzk5Z67goliceH0sA==", - "optional": true, - "requires": { - "@types/long": "^4.0.1", - "lodash.camelcase": "^4.3.0", - "long": "^4.0.0", - "protobufjs": "^7.0.0", - "yargs": "^16.2.0" - } - }, - "protobufjs": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.1.0.tgz", - "integrity": "sha512-rCuxKlh0UQKSMjrpIcTLbR5TtGQ52cgs1a5nUoPBAKOccdPblN67BJtjrbtudUJK6HmBvUdsmymyYOzO7lxZEA==", - "optional": true, - "requires": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "dependencies": { - "long": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.0.tgz", - "integrity": "sha512-9RTUNjK60eJbx3uz+TEGF7fUr29ZDxR5QzXcyDpeSfeH28S9ycINflOgOlppit5U+4kNTe83KQnMEerw7GmE8w==", - "optional": true - } - } - } + "engines": { + "node": "^8.13.0 || >=10.10.0" } }, - "@grpc/proto-loader": { + "node_modules/@grpc/grpc-js/node_modules/@grpc/proto-loader": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.2.tgz", + "integrity": "sha512-jCdyLIT/tdQ1zhrbTQnJNK5nbDf0GoBpy5jVNywBzzMDF+Vs6uEaHnfz46dMtDxkvwrF2hzk5Z67goliceH0sA==", + "optional": true, + "dependencies": { + "@types/long": "^4.0.1", + "lodash.camelcase": "^4.3.0", + "long": "^4.0.0", + "protobufjs": "^7.0.0", + "yargs": "^16.2.0" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@grpc/grpc-js/node_modules/protobufjs": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.1.0.tgz", + "integrity": "sha512-rCuxKlh0UQKSMjrpIcTLbR5TtGQ52cgs1a5nUoPBAKOccdPblN67BJtjrbtudUJK6HmBvUdsmymyYOzO7lxZEA==", + "hasInstallScript": true, + "optional": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@grpc/grpc-js/node_modules/protobufjs/node_modules/long": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.0.tgz", + "integrity": "sha512-9RTUNjK60eJbx3uz+TEGF7fUr29ZDxR5QzXcyDpeSfeH28S9ycINflOgOlppit5U+4kNTe83KQnMEerw7GmE8w==", + "optional": true + }, + "node_modules/@grpc/proto-loader": { "version": "0.6.13", "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.6.13.tgz", "integrity": "sha512-FjxPYDRTn6Ec3V0arm1FtSpmP6V50wuph2yILpyvTKzjc76oDdoihXqM1DzOW5ubvCC8GivfCnNtfaRE8myJ7g==", "optional": true, - "requires": { + "dependencies": { "@types/long": "^4.0.1", "lodash.camelcase": "^4.3.0", "long": "^4.0.0", "protobufjs": "^6.11.3", "yargs": "^16.2.0" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" } }, - "@jimp/bmp": { + "node_modules/@jimp/bmp": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/bmp/-/bmp-0.16.1.tgz", "integrity": "sha512-iwyNYQeBawrdg/f24x3pQ5rEx+/GwjZcCXd3Kgc+ZUd+Ivia7sIqBsOnDaMZdKCBPlfW364ekexnlOqyVa0NWg==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1", "bmp-js": "^0.1.0" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/core": { + "node_modules/@jimp/core": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/core/-/core-0.16.1.tgz", "integrity": "sha512-la7kQia31V6kQ4q1kI/uLimu8FXx7imWVajDGtwUG8fzePLWDFJyZl0fdIXVCL1JW2nBcRHidUot6jvlRDi2+g==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1", "any-base": "^1.1.0", @@ -327,244 +397,330 @@ "phin": "^2.9.1", "pixelmatch": "^4.0.2", "tinycolor2": "^1.4.1" - }, - "dependencies": { - "mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "requires": { - "minimist": "^1.2.6" - } - } } }, - "@jimp/custom": { + "node_modules/@jimp/core/node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/@jimp/custom": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/custom/-/custom-0.16.1.tgz", "integrity": "sha512-DNUAHNSiUI/j9hmbatD6WN/EBIyeq4AO0frl5ETtt51VN1SvE4t4v83ZA/V6ikxEf3hxLju4tQ5Pc3zmZkN/3A==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/core": "^0.16.1" } }, - "@jimp/gif": { + "node_modules/@jimp/gif": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/gif/-/gif-0.16.1.tgz", "integrity": "sha512-r/1+GzIW1D5zrP4tNrfW+3y4vqD935WBXSc8X/wm23QTY9aJO9Lw6PEdzpYCEY+SOklIFKaJYUAq/Nvgm/9ryw==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1", "gifwrap": "^0.9.2", "omggif": "^1.0.9" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/jpeg": { + "node_modules/@jimp/jpeg": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/jpeg/-/jpeg-0.16.1.tgz", "integrity": "sha512-8352zrdlCCLFdZ/J+JjBslDvml+fS3Z8gttdml0We759PnnZGqrnPRhkOEOJbNUlE+dD4ckLeIe6NPxlS/7U+w==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1", "jpeg-js": "0.4.2" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/plugin-blit": { + "node_modules/@jimp/plugin-blit": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-blit/-/plugin-blit-0.16.1.tgz", "integrity": "sha512-fKFNARm32RoLSokJ8WZXHHH2CGzz6ire2n1Jh6u+XQLhk9TweT1DcLHIXwQMh8oR12KgjbgsMGvrMVlVknmOAg==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/plugin-blur": { + "node_modules/@jimp/plugin-blur": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-blur/-/plugin-blur-0.16.1.tgz", "integrity": "sha512-1WhuLGGj9MypFKRcPvmW45ht7nXkOKu+lg3n2VBzIB7r4kKNVchuI59bXaCYQumOLEqVK7JdB4glaDAbCQCLyw==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/plugin-circle": { + "node_modules/@jimp/plugin-circle": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-circle/-/plugin-circle-0.16.1.tgz", "integrity": "sha512-JK7yi1CIU7/XL8hdahjcbGA3V7c+F+Iw+mhMQhLEi7Q0tCnZ69YJBTamMiNg3fWPVfMuvWJJKOBRVpwNTuaZRg==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/plugin-color": { + "node_modules/@jimp/plugin-color": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-color/-/plugin-color-0.16.1.tgz", "integrity": "sha512-9yQttBAO5SEFj7S6nJK54f+1BnuBG4c28q+iyzm1JjtnehjqMg6Ljw4gCSDCvoCQ3jBSYHN66pmwTV74SU1B7A==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1", "tinycolor2": "^1.4.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/plugin-contain": { + "node_modules/@jimp/plugin-contain": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-contain/-/plugin-contain-0.16.1.tgz", "integrity": "sha512-44F3dUIjBDHN+Ym/vEfg+jtjMjAqd2uw9nssN67/n4FdpuZUVs7E7wadKY1RRNuJO+WgcD5aDQcsvurXMETQTg==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5", + "@jimp/plugin-blit": ">=0.3.5", + "@jimp/plugin-resize": ">=0.3.5", + "@jimp/plugin-scale": ">=0.3.5" } }, - "@jimp/plugin-cover": { + "node_modules/@jimp/plugin-cover": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-cover/-/plugin-cover-0.16.1.tgz", "integrity": "sha512-YztWCIldBAVo0zxcQXR+a/uk3/TtYnpKU2CanOPJ7baIuDlWPsG+YE4xTsswZZc12H9Kl7CiziEbDtvF9kwA/Q==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5", + "@jimp/plugin-crop": ">=0.3.5", + "@jimp/plugin-resize": ">=0.3.5", + "@jimp/plugin-scale": ">=0.3.5" } }, - "@jimp/plugin-crop": { + "node_modules/@jimp/plugin-crop": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-crop/-/plugin-crop-0.16.1.tgz", "integrity": "sha512-UQdva9oQzCVadkyo3T5Tv2CUZbf0klm2cD4cWMlASuTOYgaGaFHhT9st+kmfvXjKL8q3STkBu/zUPV6PbuV3ew==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/plugin-displace": { + "node_modules/@jimp/plugin-displace": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-displace/-/plugin-displace-0.16.1.tgz", "integrity": "sha512-iVAWuz2+G6Heu8gVZksUz+4hQYpR4R0R/RtBzpWEl8ItBe7O6QjORAkhxzg+WdYLL2A/Yd4ekTpvK0/qW8hTVw==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/plugin-dither": { + "node_modules/@jimp/plugin-dither": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-dither/-/plugin-dither-0.16.1.tgz", "integrity": "sha512-tADKVd+HDC9EhJRUDwMvzBXPz4GLoU6s5P7xkVq46tskExYSptgj5713J5Thj3NMgH9Rsqu22jNg1H/7tr3V9Q==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/plugin-fisheye": { + "node_modules/@jimp/plugin-fisheye": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-fisheye/-/plugin-fisheye-0.16.1.tgz", "integrity": "sha512-BWHnc5hVobviTyIRHhIy9VxI1ACf4CeSuCfURB6JZm87YuyvgQh5aX5UDKtOz/3haMHXBLP61ZBxlNpMD8CG4A==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/plugin-flip": { + "node_modules/@jimp/plugin-flip": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-flip/-/plugin-flip-0.16.1.tgz", "integrity": "sha512-KdxTf0zErfZ8DyHkImDTnQBuHby+a5YFdoKI/G3GpBl3qxLBvC+PWkS2F/iN3H7wszP7/TKxTEvWL927pypT0w==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5", + "@jimp/plugin-rotate": ">=0.3.5" } }, - "@jimp/plugin-gaussian": { + "node_modules/@jimp/plugin-gaussian": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-gaussian/-/plugin-gaussian-0.16.1.tgz", "integrity": "sha512-u9n4wjskh3N1mSqketbL6tVcLU2S5TEaFPR40K6TDv4phPLZALi1Of7reUmYpVm8mBDHt1I6kGhuCJiWvzfGyg==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/plugin-invert": { + "node_modules/@jimp/plugin-invert": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-invert/-/plugin-invert-0.16.1.tgz", "integrity": "sha512-2DKuyVXANH8WDpW9NG+PYFbehzJfweZszFYyxcaewaPLN0GxvxVLOGOPP1NuUTcHkOdMFbE0nHDuB7f+sYF/2w==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/plugin-mask": { + "node_modules/@jimp/plugin-mask": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-mask/-/plugin-mask-0.16.1.tgz", "integrity": "sha512-snfiqHlVuj4bSFS0v96vo2PpqCDMe4JB+O++sMo5jF5mvGcGL6AIeLo8cYqPNpdO6BZpBJ8MY5El0Veckhr39Q==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/plugin-normalize": { + "node_modules/@jimp/plugin-normalize": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-normalize/-/plugin-normalize-0.16.1.tgz", "integrity": "sha512-dOQfIOvGLKDKXPU8xXWzaUeB0nvkosHw6Xg1WhS1Z5Q0PazByhaxOQkSKgUryNN/H+X7UdbDvlyh/yHf3ITRaw==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/plugin-print": { + "node_modules/@jimp/plugin-print": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-print/-/plugin-print-0.16.1.tgz", "integrity": "sha512-ceWgYN40jbN4cWRxixym+csyVymvrryuKBQ+zoIvN5iE6OyS+2d7Mn4zlNgumSczb9GGyZZESIgVcBDA1ezq0Q==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1", "load-bmfont": "^1.4.0" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5", + "@jimp/plugin-blit": ">=0.3.5" } }, - "@jimp/plugin-resize": { + "node_modules/@jimp/plugin-resize": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-resize/-/plugin-resize-0.16.1.tgz", "integrity": "sha512-u4JBLdRI7dargC04p2Ha24kofQBk3vhaf0q8FwSYgnCRwxfvh2RxvhJZk9H7Q91JZp6wgjz/SjvEAYjGCEgAwQ==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/plugin-rotate": { + "node_modules/@jimp/plugin-rotate": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-rotate/-/plugin-rotate-0.16.1.tgz", "integrity": "sha512-ZUU415gDQ0VjYutmVgAYYxC9Og9ixu2jAGMCU54mSMfuIlmohYfwARQmI7h4QB84M76c9hVLdONWjuo+rip/zg==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5", + "@jimp/plugin-blit": ">=0.3.5", + "@jimp/plugin-crop": ">=0.3.5", + "@jimp/plugin-resize": ">=0.3.5" } }, - "@jimp/plugin-scale": { + "node_modules/@jimp/plugin-scale": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.16.1.tgz", "integrity": "sha512-jM2QlgThIDIc4rcyughD5O7sOYezxdafg/2Xtd1csfK3z6fba3asxDwthqPZAgitrLgiKBDp6XfzC07Y/CefUw==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5", + "@jimp/plugin-resize": ">=0.3.5" } }, - "@jimp/plugin-shadow": { + "node_modules/@jimp/plugin-shadow": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-shadow/-/plugin-shadow-0.16.1.tgz", "integrity": "sha512-MeD2Is17oKzXLnsphAa1sDstTu6nxscugxAEk3ji0GV1FohCvpHBcec0nAq6/czg4WzqfDts+fcPfC79qWmqrA==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5", + "@jimp/plugin-blur": ">=0.3.5", + "@jimp/plugin-resize": ">=0.3.5" } }, - "@jimp/plugin-threshold": { + "node_modules/@jimp/plugin-threshold": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugin-threshold/-/plugin-threshold-0.16.1.tgz", "integrity": "sha512-iGW8U/wiCSR0+6syrPioVGoSzQFt4Z91SsCRbgNKTAk7D+XQv6OI78jvvYg4o0c2FOlwGhqz147HZV5utoSLxA==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5", + "@jimp/plugin-color": ">=0.8.0", + "@jimp/plugin-resize": ">=0.8.0" } }, - "@jimp/plugins": { + "node_modules/@jimp/plugins": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/plugins/-/plugins-0.16.1.tgz", "integrity": "sha512-c+lCqa25b+4q6mJZSetlxhMoYuiltyS+ValLzdwK/47+aYsq+kcJNl+TuxIEKf59yr9+5rkbpsPkZHLF/V7FFA==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/plugin-blit": "^0.16.1", "@jimp/plugin-blur": "^0.16.1", @@ -588,32 +744,41 @@ "@jimp/plugin-shadow": "^0.16.1", "@jimp/plugin-threshold": "^0.16.1", "timm": "^1.6.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/png": { + "node_modules/@jimp/png": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/png/-/png-0.16.1.tgz", "integrity": "sha512-iyWoCxEBTW0OUWWn6SveD4LePW89kO7ZOy5sCfYeDM/oTPLpR8iMIGvZpZUz1b8kvzFr27vPst4E5rJhGjwsdw==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/utils": "^0.16.1", "pngjs": "^3.3.3" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/tiff": { + "node_modules/@jimp/tiff": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/tiff/-/tiff-0.16.1.tgz", "integrity": "sha512-3K3+xpJS79RmSkAvFMgqY5dhSB+/sxhwTFA9f4AVHUK0oKW+u6r52Z1L0tMXHnpbAdR9EJ+xaAl2D4x19XShkQ==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "utif": "^2.0.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/types": { + "node_modules/@jimp/types": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/types/-/types-0.16.1.tgz", "integrity": "sha512-g1w/+NfWqiVW4CaXSJyD28JQqZtm2eyKMWPhBBDCJN9nLCN12/Az0WFF3JUAktzdsEC2KRN2AqB1a2oMZBNgSQ==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/bmp": "^0.16.1", "@jimp/gif": "^0.16.1", @@ -621,22 +786,25 @@ "@jimp/png": "^0.16.1", "@jimp/tiff": "^0.16.1", "timm": "^1.6.1" + }, + "peerDependencies": { + "@jimp/custom": ">=0.3.5" } }, - "@jimp/utils": { + "node_modules/@jimp/utils": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@jimp/utils/-/utils-0.16.1.tgz", "integrity": "sha512-8fULQjB0x4LzUSiSYG6ZtQl355sZjxbv8r9PPAuYHzS9sGiSHJQavNqK/nKnpDsVkU88/vRGcE7t3nMU0dEnVw==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "regenerator-runtime": "^0.13.3" } }, - "@mapbox/node-pre-gyp": { + "node_modules/@mapbox/node-pre-gyp": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.8.tgz", "integrity": "sha512-CMGKi28CF+qlbXh26hDe6NxCd7amqeAzEqnS6IHeO6LoaKyM/n+Xw3HT1COdq8cuioOdlKdqn/hCmqPUOMOywg==", - "requires": { + "dependencies": { "detect-libc": "^1.0.3", "https-proxy-agent": "^5.0.0", "make-dir": "^3.1.0", @@ -646,319 +814,375 @@ "rimraf": "^3.0.2", "semver": "^7.3.5", "tar": "^6.1.11" + }, + "bin": { + "node-pre-gyp": "bin/node-pre-gyp" } }, - "@panva/asn1.js": { + "node_modules/@panva/asn1.js": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/@panva/asn1.js/-/asn1.js-1.0.0.tgz", - "integrity": "sha512-UdkG3mLEqXgnlKsWanWcgb6dOjUzJ+XC5f+aWw30qrtjxeNUSfKX1cd5FBzOaXQumoe9nIqeZUvrRJS03HCCtw==" + "integrity": "sha512-UdkG3mLEqXgnlKsWanWcgb6dOjUzJ+XC5f+aWw30qrtjxeNUSfKX1cd5FBzOaXQumoe9nIqeZUvrRJS03HCCtw==", + "engines": { + "node": ">=10.13.0" + } }, - "@protobufjs/aspromise": { + "node_modules/@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", "optional": true }, - "@protobufjs/base64": { + "node_modules/@protobufjs/base64": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", "optional": true }, - "@protobufjs/codegen": { + "node_modules/@protobufjs/codegen": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", "optional": true }, - "@protobufjs/eventemitter": { + "node_modules/@protobufjs/eventemitter": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==", "optional": true }, - "@protobufjs/fetch": { + "node_modules/@protobufjs/fetch": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", "optional": true, - "requires": { + "dependencies": { "@protobufjs/aspromise": "^1.1.1", "@protobufjs/inquire": "^1.1.0" } }, - "@protobufjs/float": { + "node_modules/@protobufjs/float": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", "optional": true }, - "@protobufjs/inquire": { + "node_modules/@protobufjs/inquire": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==", "optional": true }, - "@protobufjs/path": { + "node_modules/@protobufjs/path": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", "optional": true }, - "@protobufjs/pool": { + "node_modules/@protobufjs/pool": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", "optional": true }, - "@protobufjs/utf8": { + "node_modules/@protobufjs/utf8": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", "optional": true }, - "@tootallnate/once": { + "node_modules/@tootallnate/once": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", - "optional": true + "optional": true, + "engines": { + "node": ">= 10" + } }, - "@types/body-parser": { + "node_modules/@types/body-parser": { "version": "1.19.2", "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz", "integrity": "sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==", - "requires": { + "dependencies": { "@types/connect": "*", "@types/node": "*" } }, - "@types/connect": { + "node_modules/@types/connect": { "version": "3.4.35", "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.35.tgz", "integrity": "sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==", - "requires": { + "dependencies": { "@types/node": "*" } }, - "@types/express": { + "node_modules/@types/express": { "version": "4.17.13", "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.13.tgz", "integrity": "sha512-6bSZTPaTIACxn48l50SR+axgrqm6qXFIxrdAKaG6PaJk3+zuUr35hBlgT7vOmJcum+OEaIBLtHV/qloEAFITeA==", - "requires": { + "dependencies": { "@types/body-parser": "*", "@types/express-serve-static-core": "^4.17.18", "@types/qs": "*", "@types/serve-static": "*" } }, - "@types/express-serve-static-core": { + "node_modules/@types/express-serve-static-core": { "version": "4.17.30", "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.30.tgz", "integrity": "sha512-gstzbTWro2/nFed1WXtf+TtrpwxH7Ggs4RLYTLbeVgIkUQOI3WG/JKjgeOU1zXDvezllupjrf8OPIdvTbIaVOQ==", - "requires": { + "dependencies": { "@types/node": "*", "@types/qs": "*", "@types/range-parser": "*" } }, - "@types/jsonwebtoken": { + "node_modules/@types/jsonwebtoken": { "version": "8.5.9", "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-8.5.9.tgz", "integrity": "sha512-272FMnFGzAVMGtu9tkr29hRL6bZj4Zs1KZNeHLnKqAvp06tAIcarTMwOh8/8bz4FmKRcMxZhZNeUAQsNLoiPhg==", - "requires": { + "dependencies": { "@types/node": "*" } }, - "@types/long": { + "node_modules/@types/long": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==", "optional": true }, - "@types/mime": { + "node_modules/@types/mime": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz", "integrity": "sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==" }, - "@types/node": { + "node_modules/@types/node": { "version": "16.9.1", "resolved": "https://registry.npmjs.org/@types/node/-/node-16.9.1.tgz", "integrity": "sha512-QpLcX9ZSsq3YYUUnD3nFDY8H7wctAhQj/TFKL8Ya8v5fMm3CFXxo8zStsLAl780ltoYoo1WvKUVGBQK+1ifr7g==" }, - "@types/qs": { + "node_modules/@types/qs": { "version": "6.9.7", "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.7.tgz", "integrity": "sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==" }, - "@types/range-parser": { + "node_modules/@types/range-parser": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.4.tgz", "integrity": "sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==" }, - "@types/serve-static": { + "node_modules/@types/serve-static": { "version": "1.15.0", "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.0.tgz", "integrity": "sha512-z5xyF6uh8CbjAu9760KDKsH2FcDxZ2tFCsA4HIMWE6IkiYMXfVoa+4f9KX+FN0ZLsaMw1WNG2ETLA6N+/YA+cg==", - "requires": { + "dependencies": { "@types/mime": "*", "@types/node": "*" } }, - "abbrev": { + "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==" }, - "abort-controller": { + "node_modules/abort-controller": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", "optional": true, - "requires": { + "dependencies": { "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" } }, - "accepts": { + "node_modules/accepts": { "version": "1.3.7", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", - "requires": { + "dependencies": { "mime-types": "~2.1.24", "negotiator": "0.6.2" + }, + "engines": { + "node": ">= 0.6" } }, - "agent-base": { + "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==", - "requires": { + "dependencies": { "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" } }, - "ansi-regex": { + "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==" + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } }, - "ansi-styles": { + "node_modules/ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "requires": { + "dependencies": { "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" } }, - "any-base": { + "node_modules/any-base": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/any-base/-/any-base-1.1.0.tgz", "integrity": "sha512-uMgjozySS8adZZYePpaWs8cxB9/kdzmpX6SgJZ+wbz1K5eYk5QMYDVJaZKhxyIHUdnnJkfR7SVgStgH7LkGUyg==" }, - "aproba": { + "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==" }, - "are-we-there-yet": { + "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==", - "requires": { + "deprecated": "This package is no longer supported.", + "dependencies": { "delegates": "^1.0.0", "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=10" } }, - "array-flatten": { + "node_modules/array-flatten": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" }, - "arrify": { + "node_modules/arrify": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", - "optional": true + "optional": true, + "engines": { + "node": ">=8" + } }, - "asap": { + "node_modules/asap": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=" }, - "async": { + "node_modules/async": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/async/-/async-3.2.3.tgz", "integrity": "sha512-spZRyzKL5l5BZQrr/6m/SqFdBN0q3OCI0f9rjfBzCMBIP4p75P620rR3gTmaksNOhmzgdxcaxdNfMy6anrbM0g==" }, - "async-retry": { + "node_modules/async-retry": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/async-retry/-/async-retry-1.3.3.tgz", "integrity": "sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==", "optional": true, - "requires": { + "dependencies": { "retry": "0.13.1" } }, - "axios": { + "node_modules/axios": { "version": "0.25.0", "resolved": "https://registry.npmjs.org/axios/-/axios-0.25.0.tgz", "integrity": "sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g==", - "requires": { + "dependencies": { "follow-redirects": "^1.14.7" } }, - "balanced-match": { + "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==" }, - "base64-js": { + "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, - "base64url": { + "node_modules/base64url": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/base64url/-/base64url-3.0.1.tgz", - "integrity": "sha512-ir1UPr3dkwexU7FdV8qBBbNDRUhMmIekYMFZfi+C/sLNnRESKPl23nB9b2pltqfOQNnGzsDdId90AEtG5tCx4A==" + "integrity": "sha512-ir1UPr3dkwexU7FdV8qBBbNDRUhMmIekYMFZfi+C/sLNnRESKPl23nB9b2pltqfOQNnGzsDdId90AEtG5tCx4A==", + "engines": { + "node": ">=6.0.0" + } }, - "basic-auth": { + "node_modules/basic-auth": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", - "requires": { + "dependencies": { "safe-buffer": "5.1.2" }, - "dependencies": { - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - } + "engines": { + "node": ">= 0.8" } }, - "bcrypt": { + "node_modules/basic-auth/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/bcrypt": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.0.1.tgz", "integrity": "sha512-9BTgmrhZM2t1bNuDtrtIMVSmmxZBrJ71n8Wg+YgdjHuIWYF7SjjmCPZFB+/5i/o/PIeRpwVJR3P+NrpIItUjqw==", - "requires": { + "hasInstallScript": true, + "dependencies": { "@mapbox/node-pre-gyp": "^1.0.0", "node-addon-api": "^3.1.0" + }, + "engines": { + "node": ">= 10.0.0" } }, - "bignumber.js": { + "node_modules/bignumber.js": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.0.0.tgz", - "integrity": "sha512-t/OYhhJ2SD+YGBQcjY8GzzDHEk9f3nerxjtfa6tlMXfe7frs/WozhvCNoGvpM0P3bNf3Gq5ZRMlGr5f3r4/N8A==" + "integrity": "sha512-t/OYhhJ2SD+YGBQcjY8GzzDHEk9f3nerxjtfa6tlMXfe7frs/WozhvCNoGvpM0P3bNf3Gq5ZRMlGr5f3r4/N8A==", + "engines": { + "node": "*" + } }, - "bmp-js": { + "node_modules/bmp-js": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/bmp-js/-/bmp-js-0.1.0.tgz", "integrity": "sha512-vHdS19CnY3hwiNdkaqk93DvjVLfbEcI8mys4UjuWrlX1haDmroo8o4xCzh4wD6DGV6HxRCyauwhHRqMTfERtjw==" }, - "body-parser": { + "node_modules/body-parser": { "version": "1.19.1", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.1.tgz", "integrity": "sha512-8ljfQi5eBk8EJfECMrgqNGWPEY5jWP+1IzkzkGdFFEwFQZZyaZ21UqdaHktgiMlH0xLHqIFtE/u2OYE5dOtViA==", - "requires": { + "dependencies": { "bytes": "3.1.1", "content-type": "~1.0.4", "debug": "2.6.9", @@ -970,55 +1194,73 @@ "raw-body": "2.4.2", "type-is": "~1.6.18" }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" - } + "engines": { + "node": ">= 0.8" } }, - "brace-expansion": { + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "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==", - "requires": { + "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, - "buffer": { + "node_modules/buffer": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "requires": { + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" } }, - "buffer-equal": { + "node_modules/buffer-equal": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-0.0.1.tgz", - "integrity": "sha512-RgSV6InVQ9ODPdLWJ5UAqBqJBOg370Nz6ZQtRzpt6nUjc8v0St97uJ4PYC6NztqIScrAXafKM3mZPMygSe1ggA==" + "integrity": "sha512-RgSV6InVQ9ODPdLWJ5UAqBqJBOg370Nz6ZQtRzpt6nUjc8v0St97uJ4PYC6NztqIScrAXafKM3mZPMygSe1ggA==", + "engines": { + "node": ">=0.4.0" + } }, - "buffer-equal-constant-time": { + "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": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" }, - "bullmq": { + "node_modules/bullmq": { "version": "1.68.0", "resolved": "https://registry.npmjs.org/bullmq/-/bullmq-1.68.0.tgz", "integrity": "sha512-nKAda9xkWuS3E3gIm3ivz8wYJs8372XxSBk9GSD6X9J1xUGYjqgg9iKxYP6GbFNn84nyRQJQa1/08kKP+aSq/w==", - "requires": { + "dependencies": { "cron-parser": "^2.18.0", "get-port": "^5.1.1", "glob": "^7.2.0", @@ -1028,370 +1270,469 @@ "semver": "^6.3.0", "tslib": "^1.14.1", "uuid": "^8.3.2" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - } } }, - "bytes": { + "node_modules/bullmq/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/bytes": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.1.tgz", - "integrity": "sha512-dWe4nWO/ruEOY7HkUJ5gFt1DCFV9zPRoJr8pV0/ASQermOZjtq8jMjOprC0Kd10GLN+l7xaUPvxzJFWtxGu8Fg==" + "integrity": "sha512-dWe4nWO/ruEOY7HkUJ5gFt1DCFV9zPRoJr8pV0/ASQermOZjtq8jMjOprC0Kd10GLN+l7xaUPvxzJFWtxGu8Fg==", + "engines": { + "node": ">= 0.8" + } }, - "call-bind": { + "node_modules/call-bind": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "requires": { + "dependencies": { "function-bind": "^1.1.1", "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "chalk": { + "node_modules/chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "requires": { + "dependencies": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" } }, - "chownr": { + "node_modules/chownr": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", - "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==" + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "engines": { + "node": ">=10" + } }, - "cliui": { + "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==", "optional": true, - "requires": { + "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", "wrap-ansi": "^7.0.0" } }, - "cluster-key-slot": { + "node_modules/cluster-key-slot": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/cluster-key-slot/-/cluster-key-slot-1.1.0.tgz", - "integrity": "sha512-2Nii8p3RwAPiFwsnZvukotvow2rIHM+yQ6ZcBXGHdniadkYGZYiGmkHJIbZPIV9nfv7m/U1IPMVVcAhoWFeklw==" + "integrity": "sha512-2Nii8p3RwAPiFwsnZvukotvow2rIHM+yQ6ZcBXGHdniadkYGZYiGmkHJIbZPIV9nfv7m/U1IPMVVcAhoWFeklw==", + "engines": { + "node": ">=0.10.0" + } }, - "color": { + "node_modules/color": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/color/-/color-3.2.1.tgz", "integrity": "sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA==", - "requires": { + "dependencies": { "color-convert": "^1.9.3", "color-string": "^1.6.0" } }, - "color-convert": { + "node_modules/color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "requires": { + "dependencies": { "color-name": "1.1.3" } }, - "color-name": { + "node_modules/color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, - "color-string": { + "node_modules/color-string": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.0.tgz", "integrity": "sha512-9Mrz2AQLefkH1UvASKj6v6hj/7eWgjnT/cVsR8CumieLoT+g900exWeNogqtweI8dxloXN9BDQTYro1oWu/5CQ==", - "requires": { + "dependencies": { "color-name": "^1.0.0", "simple-swizzle": "^0.2.2" } }, - "color-support": { + "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==" + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "bin": { + "color-support": "bin.js" + } }, - "colors": { + "node_modules/colors": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", - "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==" + "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", + "engines": { + "node": ">=0.1.90" + } }, - "colorspace": { + "node_modules/colorspace": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.1.4.tgz", "integrity": "sha512-BgvKJiuVu1igBUF2kEjRCZXol6wiiGbY5ipL/oVPwm0BL9sIpMIzM8IK7vwuxIIzOXMV3Ey5w+vxhm0rR/TN8w==", - "requires": { + "dependencies": { "color": "^3.1.3", "text-hex": "1.0.x" } }, - "compressible": { + "node_modules/compressible": { "version": "2.0.18", "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", "optional": true, - "requires": { + "dependencies": { "mime-db": ">= 1.43.0 < 2" + }, + "engines": { + "node": ">= 0.6" } }, - "concat-map": { + "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, - "configstore": { + "node_modules/configstore": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", "optional": true, - "requires": { + "dependencies": { "dot-prop": "^5.2.0", "graceful-fs": "^4.1.2", "make-dir": "^3.0.0", "unique-string": "^2.0.0", "write-file-atomic": "^3.0.0", "xdg-basedir": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "console-control-strings": { + "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": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=" }, - "content-disposition": { + "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==", - "requires": { + "dependencies": { "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" } }, - "content-type": { + "node_modules/content-type": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", - "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", + "engines": { + "node": ">= 0.6" + } }, - "cookie": { + "node_modules/cookie": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz", - "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==" + "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==", + "engines": { + "node": ">= 0.6" + } }, - "cookie-signature": { + "node_modules/cookie-signature": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" }, - "core-util-is": { + "node_modules/core-util-is": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" }, - "crc": { + "node_modules/crc": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/crc/-/crc-4.1.0.tgz", - "integrity": "sha512-xl6/PgOWZCDOA9mnytKzg2ftRS2YT/SUnNPPiCMoD6KWuiJayRjHcaLmBzGWNZGHSXDSrDuLNUEIljLRMbn7vA==" + "integrity": "sha512-xl6/PgOWZCDOA9mnytKzg2ftRS2YT/SUnNPPiCMoD6KWuiJayRjHcaLmBzGWNZGHSXDSrDuLNUEIljLRMbn7vA==", + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "buffer": ">=6.0.3" + } }, - "crc16-ccitt-node": { + "node_modules/crc16-ccitt-node": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/crc16-ccitt-node/-/crc16-ccitt-node-1.0.6.tgz", "integrity": "sha512-f+nOcz4xOxesVRZbs8UzR18kwKORovMxKb2AJKh5f3HcJe9oaNQh7zOOH65IELXP2J9jeO6ND+xuHHIW3MZoKQ==" }, - "cron-parser": { + "node_modules/cron-parser": { "version": "2.18.0", "resolved": "https://registry.npmjs.org/cron-parser/-/cron-parser-2.18.0.tgz", "integrity": "sha512-s4odpheTyydAbTBQepsqd2rNWGa2iV3cyo8g7zbI2QQYGLVsfbhmwukayS1XHppe02Oy1fg7mg6xoaraVJeEcg==", - "requires": { + "dependencies": { "is-nan": "^1.3.0", "moment-timezone": "^0.5.31" + }, + "engines": { + "node": ">=0.8" } }, - "crypto-js": { + "node_modules/crypto-js": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz", "integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==" }, - "crypto-random-string": { + "node_modules/crypto-random-string": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", - "optional": true + "optional": true, + "engines": { + "node": ">=8" + } }, - "debug": { + "node_modules/debug": { "version": "4.3.3", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", - "requires": { + "dependencies": { "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "define-properties": { + "node_modules/define-properties": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", - "requires": { + "dependencies": { "object-keys": "^1.0.12" + }, + "engines": { + "node": ">= 0.4" } }, - "delegates": { + "node_modules/delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=" }, - "denque": { + "node_modules/denque": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/denque/-/denque-1.5.1.tgz", - "integrity": "sha512-XwE+iZ4D6ZUB7mfYRMb5wByE8L74HCn30FBN7sWnXksWc1LO1bPDl67pBR9o/kC4z/xSNAwkMYcGgqDV3BE3Hw==" + "integrity": "sha512-XwE+iZ4D6ZUB7mfYRMb5wByE8L74HCn30FBN7sWnXksWc1LO1bPDl67pBR9o/kC4z/xSNAwkMYcGgqDV3BE3Hw==", + "engines": { + "node": ">=0.10" + } }, - "depd": { + "node_modules/depd": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", + "engines": { + "node": ">= 0.6" + } }, - "destroy": { + "node_modules/destroy": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" }, - "detect-libc": { + "node_modules/detect-libc": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", - "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=" + "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", + "bin": { + "detect-libc": "bin/detect-libc.js" + }, + "engines": { + "node": ">=0.10" + } }, - "dezalgo": { + "node_modules/dezalgo": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.3.tgz", "integrity": "sha1-f3Qt4Gb8dIvI24IFad3c5Jvw1FY=", - "requires": { + "dependencies": { "asap": "^2.0.0", "wrappy": "1" } }, - "dom-walk": { + "node_modules/dom-walk": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/dom-walk/-/dom-walk-0.1.2.tgz", "integrity": "sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==" }, - "dot-prop": { + "node_modules/dot-prop": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", "optional": true, - "requires": { + "dependencies": { "is-obj": "^2.0.0" + }, + "engines": { + "node": ">=8" } }, - "dotenv": { + "node_modules/dotenv": { "version": "10.0.0", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", - "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==" + "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==", + "engines": { + "node": ">=10" + } }, - "duplexify": { + "node_modules/duplexify": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.2.tgz", "integrity": "sha512-fz3OjcNCHmRP12MJoZMPglx8m4rrFP8rovnk4vT8Fs+aonZoCwGg10dSsQsfP/E62eZcPTMSMP6686fu9Qlqtw==", "optional": true, - "requires": { + "dependencies": { "end-of-stream": "^1.4.1", "inherits": "^2.0.3", "readable-stream": "^3.1.1", "stream-shift": "^1.0.0" } }, - "ecdsa-sig-formatter": { + "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==", - "requires": { + "dependencies": { "safe-buffer": "^5.0.1" } }, - "ee-first": { + "node_modules/ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" }, - "ejs": { + "node_modules/ejs": { "version": "3.1.6", "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.6.tgz", "integrity": "sha512-9lt9Zse4hPucPkoP7FHDF0LQAlGyF9JVpnClFLFH3aSSbxmyoqINRpp/9wePWJTUl4KOQwRL72Iw3InHPDkoGw==", - "requires": { + "dependencies": { "jake": "^10.6.1" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" } }, - "emoji-regex": { + "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==" }, - "enabled": { + "node_modules/enabled": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz", "integrity": "sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ==" }, - "encodeurl": { + "node_modules/encodeurl": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", + "engines": { + "node": ">= 0.8" + } }, - "end-of-stream": { + "node_modules/end-of-stream": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", "optional": true, - "requires": { + "dependencies": { "once": "^1.4.0" } }, - "ent": { + "node_modules/ent": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/ent/-/ent-2.2.0.tgz", "integrity": "sha512-GHrMyVZQWvTIdDtpiEXdHZnFQKzeO09apj8Cbl4pKWy4i0Oprcq17usfDt5aO63swf0JOeMWjWQE/LzgSRuWpA==", "optional": true }, - "escalade": { + "node_modules/escalade": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "optional": true + "optional": true, + "engines": { + "node": ">=6" + } }, - "escape-html": { + "node_modules/escape-html": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" }, - "escape-string-regexp": { + "node_modules/escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "engines": { + "node": ">=0.8.0" + } }, - "etag": { + "node_modules/etag": { "version": "1.8.1", "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", + "engines": { + "node": ">= 0.6" + } }, - "event-target-shim": { + "node_modules/event-target-shim": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", - "optional": true + "optional": true, + "engines": { + "node": ">=6" + } }, - "exif-parser": { + "node_modules/exif-parser": { "version": "0.1.12", "resolved": "https://registry.npmjs.org/exif-parser/-/exif-parser-0.1.12.tgz", "integrity": "sha512-c2bQfLNbMzLPmzQuOr8fy0csy84WmwnER81W88DzTp9CYNPJ6yzOj2EZAh9pywYpqHnshVLHQJ8WzldAyfY+Iw==" }, - "express": { + "node_modules/express": { "version": "4.17.2", "resolved": "https://registry.npmjs.org/express/-/express-4.17.2.tgz", "integrity": "sha512-oxlxJxcQlYwqPWKVJJtvQiwHgosH/LrLSPA+H4UxpyvSS6jC5aH+5MoHFM+KABgTOt0APue4w66Ha8jCUo9QGg==", - "requires": { + "dependencies": { "accepts": "~1.3.7", "array-flatten": "1.1.1", "body-parser": "1.19.1", @@ -1423,71 +1764,78 @@ "utils-merge": "1.0.1", "vary": "~1.1.2" }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" - } + "engines": { + "node": ">= 0.10.0" } }, - "extend": { + "node_modules/express/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/express/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", "optional": true }, - "fast-deep-equal": { + "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==", "optional": true }, - "fast-text-encoding": { + "node_modules/fast-text-encoding": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/fast-text-encoding/-/fast-text-encoding-1.0.6.tgz", "integrity": "sha512-VhXlQgj9ioXCqGstD37E/HBeqEGV/qOD/kmbVG8h5xKBYvM1L3lR1Zn4555cQ8GkYbJa8aJSipLPndE1k6zK2w==", "optional": true }, - "faye-websocket": { + "node_modules/faye-websocket": { "version": "0.11.4", "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", - "requires": { + "dependencies": { "websocket-driver": ">=0.5.1" + }, + "engines": { + "node": ">=0.8.0" } }, - "fecha": { + "node_modules/fecha": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.1.tgz", "integrity": "sha512-MMMQ0ludy/nBs1/o0zVOiKTpG7qMbonKUzjJgQFEuvq6INZ1OraKPRAWkBq5vlKLOUMpmNYG1JoN3oDPUQ9m3Q==" }, - "file-type": { + "node_modules/file-type": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/file-type/-/file-type-9.0.0.tgz", - "integrity": "sha512-Qe/5NJrgIOlwijpq3B7BEpzPFcgzggOTagZmkXQY4LA6bsXKTUstK7Wp12lEJ/mLKTpvIZxmIuRcLYWT6ov9lw==" + "integrity": "sha512-Qe/5NJrgIOlwijpq3B7BEpzPFcgzggOTagZmkXQY4LA6bsXKTUstK7Wp12lEJ/mLKTpvIZxmIuRcLYWT6ov9lw==", + "engines": { + "node": ">=6" + } }, - "filelist": { + "node_modules/filelist": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.2.tgz", "integrity": "sha512-z7O0IS8Plc39rTCq6i6iHxk43duYOn8uFJiWSewIq0Bww1RNybVHSCjahmcC87ZqAm4OTvFzlzeGu3XAzG1ctQ==", - "requires": { + "dependencies": { "minimatch": "^3.0.4" } }, - "finalhandler": { + "node_modules/finalhandler": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", - "requires": { + "dependencies": { "debug": "2.6.9", "encodeurl": "~1.0.2", "escape-html": "~1.0.3", @@ -1496,106 +1844,144 @@ "statuses": "~1.5.0", "unpipe": "~1.0.0" }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" - } + "engines": { + "node": ">= 0.8" } }, - "firebase-admin": { + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "node_modules/firebase-admin": { "version": "10.3.0", "resolved": "https://registry.npmjs.org/firebase-admin/-/firebase-admin-10.3.0.tgz", "integrity": "sha512-A0wgMLEjyVyUE+heyMJYqHRkPVjpebhOYsa47RHdrTM4ltApcx8Tn86sUmjqxlfh09gNnILAm7a8q5+FmgBYpg==", - "requires": { + "dependencies": { "@fastify/busboy": "^1.1.0", "@firebase/database-compat": "^0.2.0", "@firebase/database-types": "^0.9.7", - "@google-cloud/firestore": "^4.15.1", - "@google-cloud/storage": "^5.18.3", "@types/node": ">=12.12.47", "jsonwebtoken": "^8.5.1", "jwks-rsa": "^2.0.2", "node-forge": "^1.3.1", "uuid": "^8.3.2" + }, + "engines": { + "node": ">=12.7.0" + }, + "optionalDependencies": { + "@google-cloud/firestore": "^4.15.1", + "@google-cloud/storage": "^5.18.3" } }, - "fn.name": { + "node_modules/fn.name": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/fn.name/-/fn.name-1.1.0.tgz", "integrity": "sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==" }, - "follow-redirects": { + "node_modules/follow-redirects": { "version": "1.14.7", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz", - "integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==" + "integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } }, - "formidable": { + "node_modules/formidable": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/formidable/-/formidable-2.0.1.tgz", "integrity": "sha512-rjTMNbp2BpfQShhFbR3Ruk3qk2y9jKpvMW78nJgx8QKtxjDVrwbZG+wvDOmVbifHyOUOQJXxqEy6r0faRrPzTQ==", - "requires": { + "deprecated": "ACTION REQUIRED: SWITCH TO v3 - v1 and v2 are VULNERABLE! v1 is DEPRECATED FOR OVER 2 YEARS! Use formidable@latest or try formidable-mini for fresh projects", + "dependencies": { "dezalgo": "1.0.3", "hexoid": "1.0.0", "once": "1.4.0", "qs": "6.9.3" }, - "dependencies": { - "qs": { - "version": "6.9.3", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.9.3.tgz", - "integrity": "sha512-EbZYNarm6138UKKq46tdx08Yo/q9ZhFoAXAI1meAFd2GtbRDhbZY2WQSICskT0c5q99aFzLG1D4nvTk9tqfXIw==" - } + "funding": { + "url": "https://ko-fi.com/tunnckoCore/commissions" } }, - "forwarded": { + "node_modules/formidable/node_modules/qs": { + "version": "6.9.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.9.3.tgz", + "integrity": "sha512-EbZYNarm6138UKKq46tdx08Yo/q9ZhFoAXAI1meAFd2GtbRDhbZY2WQSICskT0c5q99aFzLG1D4nvTk9tqfXIw==", + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==" + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "engines": { + "node": ">= 0.6" + } }, - "fresh": { + "node_modules/fresh": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", + "engines": { + "node": ">= 0.6" + } }, - "fs-minipass": { + "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==", - "requires": { + "dependencies": { "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" } }, - "fs.realpath": { + "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, - "function-bind": { + "node_modules/function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" }, - "functional-red-black-tree": { + "node_modules/functional-red-black-tree": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", "optional": true }, - "gauge": { + "node_modules/gauge": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz", "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==", - "requires": { + "deprecated": "This package is no longer supported.", + "dependencies": { "aproba": "^1.0.3 || ^2.0.0", "color-support": "^1.1.2", "console-control-strings": "^1.0.0", @@ -1605,89 +1991,117 @@ "string-width": "^4.2.3", "strip-ansi": "^6.0.1", "wide-align": "^1.1.2" + }, + "engines": { + "node": ">=10" } }, - "gaxios": { + "node_modules/gaxios": { "version": "4.3.3", "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-4.3.3.tgz", "integrity": "sha512-gSaYYIO1Y3wUtdfHmjDUZ8LWaxJQpiavzbF5Kq53akSzvmVg0RfyOcFDbO1KJ/KCGRFz2qG+lS81F0nkr7cRJA==", "optional": true, - "requires": { + "dependencies": { "abort-controller": "^3.0.0", "extend": "^3.0.2", "https-proxy-agent": "^5.0.0", "is-stream": "^2.0.0", "node-fetch": "^2.6.7" + }, + "engines": { + "node": ">=10" } }, - "gcp-metadata": { + "node_modules/gcp-metadata": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-4.3.1.tgz", "integrity": "sha512-x850LS5N7V1F3UcV7PoupzGsyD6iVwTVvsh3tbXfkctZnBnjW5yu5z1/3k3SehF7TyoTIe78rJs02GMMy+LF+A==", "optional": true, - "requires": { + "dependencies": { "gaxios": "^4.0.0", "json-bigint": "^1.0.0" + }, + "engines": { + "node": ">=10" } }, - "get-caller-file": { + "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==", - "optional": true + "optional": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } }, - "get-intrinsic": { + "node_modules/get-intrinsic": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", - "requires": { + "dependencies": { "function-bind": "^1.1.1", "has": "^1.0.3", "has-symbols": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "get-port": { + "node_modules/get-port": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/get-port/-/get-port-5.1.1.tgz", - "integrity": "sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ==" + "integrity": "sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "gifwrap": { + "node_modules/gifwrap": { "version": "0.9.4", "resolved": "https://registry.npmjs.org/gifwrap/-/gifwrap-0.9.4.tgz", "integrity": "sha512-MDMwbhASQuVeD4JKd1fKgNgCRL3fGqMM4WaqpNhWO0JiMOAjbQdumbs4BbBZEy9/M00EHEjKN3HieVhCUlwjeQ==", - "requires": { + "dependencies": { "image-q": "^4.0.0", "omggif": "^1.0.10" } }, - "glob": { + "node_modules/glob": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", - "requires": { + "deprecated": "Glob versions prior to v9 are no longer supported", + "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.0.4", "once": "^1.3.0", "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "global": { + "node_modules/global": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/global/-/global-4.4.0.tgz", "integrity": "sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==", - "requires": { + "dependencies": { "min-document": "^2.19.0", "process": "^0.11.10" } }, - "google-auth-library": { + "node_modules/google-auth-library": { "version": "7.14.1", "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-7.14.1.tgz", "integrity": "sha512-5Rk7iLNDFhFeBYc3s8l1CqzbEBcdhwR193RlD4vSNFajIcINKI8W8P0JLmBpwymHqqWbX34pJDQu39cSy/6RsA==", "optional": true, - "requires": { + "dependencies": { "arrify": "^2.0.0", "base64-js": "^1.3.0", "ecdsa-sig-formatter": "^1.0.11", @@ -1698,36 +2112,37 @@ "jws": "^4.0.0", "lru-cache": "^6.0.0" }, - "dependencies": { - "jwa": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.0.tgz", - "integrity": "sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==", - "optional": true, - "requires": { - "buffer-equal-constant-time": "1.0.1", - "ecdsa-sig-formatter": "1.0.11", - "safe-buffer": "^5.0.1" - } - }, - "jws": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", - "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", - "optional": true, - "requires": { - "jwa": "^2.0.0", - "safe-buffer": "^5.0.1" - } - } + "engines": { + "node": ">=10" } }, - "google-gax": { + "node_modules/google-auth-library/node_modules/jwa": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.0.tgz", + "integrity": "sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==", + "optional": true, + "dependencies": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/google-auth-library/node_modules/jws": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", + "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", + "optional": true, + "dependencies": { + "jwa": "^2.0.0", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/google-gax": { "version": "2.30.5", "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-2.30.5.tgz", "integrity": "sha512-Jey13YrAN2hfpozHzbtrwEfEHdStJh1GwaQ2+Akh1k0Tv/EuNVSuBtHZoKSBm5wBMvNsxTsEIZ/152NrYyZgxQ==", "optional": true, - "requires": { + "dependencies": { "@grpc/grpc-js": "~1.6.0", "@grpc/proto-loader": "^0.6.12", "@types/long": "^4.0.0", @@ -1741,183 +2156,242 @@ "proto3-json-serializer": "^0.1.8", "protobufjs": "6.11.3", "retry-request": "^4.0.0" + }, + "bin": { + "compileProtos": "build/tools/compileProtos.js" + }, + "engines": { + "node": ">=10" } }, - "google-p12-pem": { + "node_modules/google-p12-pem": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-3.1.4.tgz", "integrity": "sha512-HHuHmkLgwjdmVRngf5+gSmpkyaRI6QmOg77J8tkNBHhNEI62sGHyw4/+UkgyZEI7h84NbWprXDJ+sa3xOYFvTg==", + "deprecated": "Package is no longer maintained", "optional": true, - "requires": { + "dependencies": { "node-forge": "^1.3.1" + }, + "bin": { + "gp12-pem": "build/src/bin/gp12-pem.js" + }, + "engines": { + "node": ">=10" } }, - "gps-tracking": { + "node_modules/gps-tracking": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/gps-tracking/-/gps-tracking-1.1.1.tgz", "integrity": "sha512-kQizxqJzkMLqGQ+ld7ztkHU49tJVwDZhUEexpsWmZK1gxeej8orDoBGCxZ/bJ7x/qPNvXeHH+qdSkNS32l4R9w==", - "requires": { + "dependencies": { "crc16-ccitt-node": "^1.0.4", "node.extend": "*" } }, - "graceful-fs": { + "node_modules/graceful-fs": { "version": "4.2.10", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", "optional": true }, - "gtoken": { + "node_modules/gtoken": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-5.3.2.tgz", "integrity": "sha512-gkvEKREW7dXWF8NV8pVrKfW7WqReAmjjkMBh6lNCCGOM4ucS0r0YyXXl0r/9Yj8wcW/32ISkfc8h5mPTDbtifQ==", "optional": true, - "requires": { + "dependencies": { "gaxios": "^4.0.0", "google-p12-pem": "^3.1.3", "jws": "^4.0.0" }, - "dependencies": { - "jwa": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.0.tgz", - "integrity": "sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==", - "optional": true, - "requires": { - "buffer-equal-constant-time": "1.0.1", - "ecdsa-sig-formatter": "1.0.11", - "safe-buffer": "^5.0.1" - } - }, - "jws": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", - "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", - "optional": true, - "requires": { - "jwa": "^2.0.0", - "safe-buffer": "^5.0.1" - } - } + "engines": { + "node": ">=10" } }, - "has": { + "node_modules/gtoken/node_modules/jwa": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.0.tgz", + "integrity": "sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==", + "optional": true, + "dependencies": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/gtoken/node_modules/jws": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", + "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", + "optional": true, + "dependencies": { + "jwa": "^2.0.0", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "requires": { + "dependencies": { "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" } }, - "has-flag": { + "node_modules/has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "engines": { + "node": ">=4" + } }, - "has-symbols": { + "node_modules/has-symbols": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz", - "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==" + "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "has-unicode": { + "node_modules/has-unicode": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=" }, - "hash-stream-validation": { + "node_modules/hash-stream-validation": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/hash-stream-validation/-/hash-stream-validation-0.2.4.tgz", "integrity": "sha512-Gjzu0Xn7IagXVkSu9cSFuK1fqzwtLwFhNhVL8IFJijRNMgUttFbBSIAzKuSIrsFMO1+g1RlsoN49zPIbwPDMGQ==", "optional": true }, - "hexoid": { + "node_modules/hexoid": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-1.0.0.tgz", - "integrity": "sha512-QFLV0taWQOZtvIRIAdBChesmogZrtuXvVWsFHZTk2SU+anspqZ2vMnoLg7IE1+Uk16N19APic1BuF8bC8c2m5g==" + "integrity": "sha512-QFLV0taWQOZtvIRIAdBChesmogZrtuXvVWsFHZTk2SU+anspqZ2vMnoLg7IE1+Uk16N19APic1BuF8bC8c2m5g==", + "engines": { + "node": ">=8" + } }, - "http-errors": { + "node_modules/http-errors": { "version": "1.8.1", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.8.1.tgz", "integrity": "sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==", - "requires": { + "dependencies": { "depd": "~1.1.2", "inherits": "2.0.4", "setprototypeof": "1.2.0", "statuses": ">= 1.5.0 < 2", "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.6" } }, - "http-parser-js": { + "node_modules/http-parser-js": { "version": "0.5.8", "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.8.tgz", "integrity": "sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q==" }, - "http-proxy-agent": { + "node_modules/http-proxy-agent": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", "optional": true, - "requires": { + "dependencies": { "@tootallnate/once": "2", "agent-base": "6", "debug": "4" + }, + "engines": { + "node": ">= 6" } }, - "https-proxy-agent": { + "node_modules/https-proxy-agent": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", - "requires": { + "dependencies": { "agent-base": "6", "debug": "4" + }, + "engines": { + "node": ">= 6" } }, - "iconv-lite": { + "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==", - "requires": { + "dependencies": { "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" } }, - "ieee754": { + "node_modules/ieee754": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, - "image-q": { + "node_modules/image-q": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/image-q/-/image-q-4.0.0.tgz", "integrity": "sha512-PfJGVgIfKQJuq3s0tTDOKtztksibuUEbJQIYT3by6wctQo+Rdlh7ef4evJ5NCdxY4CfMbvFkocEwbl4BF8RlJw==", - "requires": { + "dependencies": { "@types/node": "16.9.1" } }, - "imurmurhash": { + "node_modules/imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "optional": true + "optional": true, + "engines": { + "node": ">=0.8.19" + } }, - "inflight": { + "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "requires": { + "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.", + "dependencies": { "once": "^1.3.0", "wrappy": "1" } }, - "inherits": { + "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, - "ioredis": { + "node_modules/ioredis": { "version": "4.28.3", "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-4.28.3.tgz", "integrity": "sha512-9JOWVgBnuSxpIgfpjc1OeY1OLmA4t2KOWWURTDRXky+eWO0LZhI33pQNT9gYxANUXfh5p/zYephYni6GPRsksQ==", - "requires": { + "dependencies": { "cluster-key-slot": "^1.1.0", "debug": "^4.3.1", "denque": "^1.1.0", @@ -1929,93 +2403,128 @@ "redis-errors": "^1.2.0", "redis-parser": "^3.0.0", "standard-as-callback": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/ioredis" } }, - "ipaddr.js": { + "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==" + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "engines": { + "node": ">= 0.10" + } }, - "is": { + "node_modules/is": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/is/-/is-3.3.0.tgz", - "integrity": "sha512-nW24QBoPcFGGHJGUwnfpI7Yc5CdqWNdsyHQszVE/z2pKHXzh7FZ5GWhJqSyaQ9wMkQnsTx+kAI8bHlCX4tKdbg==" + "integrity": "sha512-nW24QBoPcFGGHJGUwnfpI7Yc5CdqWNdsyHQszVE/z2pKHXzh7FZ5GWhJqSyaQ9wMkQnsTx+kAI8bHlCX4tKdbg==", + "engines": { + "node": "*" + } }, - "is-arrayish": { + "node_modules/is-arrayish": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" }, - "is-fullwidth-code-point": { + "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==" + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "engines": { + "node": ">=8" + } }, - "is-function": { + "node_modules/is-function": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-function/-/is-function-1.0.2.tgz", "integrity": "sha512-lw7DUp0aWXYg+CBCN+JKkcE0Q2RayZnSvnZBlwgxHBQhqt5pZNVy4Ri7H9GmmXkdu7LUthszM+Tor1u/2iBcpQ==" }, - "is-nan": { + "node_modules/is-nan": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/is-nan/-/is-nan-1.3.2.tgz", "integrity": "sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==", - "requires": { + "dependencies": { "call-bind": "^1.0.0", "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "is-obj": { + "node_modules/is-obj": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", - "optional": true + "optional": true, + "engines": { + "node": ">=8" + } }, - "is-stream": { + "node_modules/is-stream": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==" + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, - "is-stream-ended": { + "node_modules/is-stream-ended": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/is-stream-ended/-/is-stream-ended-0.1.4.tgz", "integrity": "sha512-xj0XPvmr7bQFTvirqnFr50o0hQIh6ZItDqloxt5aJrR4NQsYeSsyFQERYGCAzfindAcnKjINnwEEgLx4IqVzQw==", "optional": true }, - "is-typedarray": { + "node_modules/is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", "optional": true }, - "isarray": { + "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" }, - "jake": { + "node_modules/jake": { "version": "10.8.2", "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.2.tgz", "integrity": "sha512-eLpKyrfG3mzvGE2Du8VoPbeSkRry093+tyNjdYaBbJS9v17knImYGNXQCUV0gLxQtF82m3E8iRb/wdSQZLoq7A==", - "requires": { + "dependencies": { "async": "0.9.x", "chalk": "^2.4.2", "filelist": "^1.0.1", "minimatch": "^3.0.4" }, - "dependencies": { - "async": { - "version": "0.9.2", - "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz", - "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=" - } + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": "*" } }, - "jimp": { + "node_modules/jake/node_modules/async": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz", + "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=" + }, + "node_modules/jimp": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/jimp/-/jimp-0.16.1.tgz", "integrity": "sha512-+EKVxbR36Td7Hfd23wKGIeEyHbxShZDX6L8uJkgVW3ESA9GiTEPK08tG1XI2r/0w5Ch0HyJF5kPqF9K7EmGjaw==", - "requires": { + "dependencies": { "@babel/runtime": "^7.7.2", "@jimp/custom": "^0.16.1", "@jimp/plugins": "^0.16.1", @@ -2023,33 +2532,39 @@ "regenerator-runtime": "^0.13.3" } }, - "jose": { + "node_modules/jose": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/jose/-/jose-2.0.6.tgz", "integrity": "sha512-FVoPY7SflDodE4lknJmbAHSUjLCzE2H1F6MS0RYKMQ8SR+lNccpMf8R4eqkNYyyUjR5qZReOzZo5C5YiHOCjjg==", - "requires": { + "dependencies": { "@panva/asn1.js": "^1.0.0" + }, + "engines": { + "node": ">=10.13.0 < 13 || >=13.7.0" + }, + "funding": { + "url": "https://github.com/sponsors/panva" } }, - "jpeg-js": { + "node_modules/jpeg-js": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.2.tgz", "integrity": "sha512-+az2gi/hvex7eLTMTlbRLOhH6P6WFdk2ITI8HJsaH2VqYO0I594zXSYEP+tf4FW+8Cy68ScDXoAsQdyQanv3sw==" }, - "json-bigint": { + "node_modules/json-bigint": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", "optional": true, - "requires": { + "dependencies": { "bignumber.js": "^9.0.0" } }, - "jsonwebtoken": { + "node_modules/jsonwebtoken": { "version": "8.5.1", "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz", "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==", - "requires": { + "dependencies": { "jws": "^3.2.2", "lodash.includes": "^4.3.0", "lodash.isboolean": "^3.0.3", @@ -2061,29 +2576,34 @@ "ms": "^2.1.1", "semver": "^5.6.0" }, - "dependencies": { - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" - } + "engines": { + "node": ">=4", + "npm": ">=1.4.28" } }, - "jwa": { + "node_modules/jsonwebtoken/node_modules/semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "bin": { + "semver": "bin/semver" + } + }, + "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==", - "requires": { + "dependencies": { "buffer-equal-constant-time": "1.0.1", "ecdsa-sig-formatter": "1.0.11", "safe-buffer": "^5.0.1" } }, - "jwks-rsa": { + "node_modules/jwks-rsa": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/jwks-rsa/-/jwks-rsa-2.1.4.tgz", "integrity": "sha512-mpArfgPkUpX11lNtGxsF/szkasUcbWHGplZl/uFvFO2NuMHmt0dQXIihh0rkPU2yQd5niQtuUHbXnG/WKiXF6Q==", - "requires": { + "dependencies": { "@types/express": "^4.17.13", "@types/jsonwebtoken": "^8.5.8", "debug": "^4.3.4", @@ -2091,41 +2611,50 @@ "limiter": "^1.1.5", "lru-memoizer": "^2.1.4" }, + "engines": { + "node": ">=10 < 13 || >=14" + } + }, + "node_modules/jwks-rsa/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dependencies": { - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "requires": { - "ms": "2.1.2" - } + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true } } }, - "jws": { + "node_modules/jws": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", - "requires": { + "dependencies": { "jwa": "^1.4.1", "safe-buffer": "^5.0.1" } }, - "kuler": { + "node_modules/kuler": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz", "integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==" }, - "limiter": { + "node_modules/limiter": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/limiter/-/limiter-1.1.5.tgz", "integrity": "sha512-FWWMIEOxz3GwUI4Ts/IvgVy6LPvoMPgjMdQ185nN6psJyBJ4yOpzqm695/h5umdLJg2vW3GR5iG11MAkR2AzJA==" }, - "load-bmfont": { + "node_modules/load-bmfont": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/load-bmfont/-/load-bmfont-1.4.1.tgz", "integrity": "sha512-8UyQoYmdRDy81Brz6aLAUhfZLwr5zV0L3taTQ4hju7m6biuwiWiJXjPhBJxbUQJA8PrkvJ/7Enqmwk2sM14soA==", - "requires": { + "dependencies": { "buffer-equal": "0.0.1", "mime": "^1.3.4", "parse-bmfont-ascii": "^1.0.3", @@ -2136,77 +2665,77 @@ "xtend": "^4.0.0" } }, - "lodash": { + "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, - "lodash.camelcase": { + "node_modules/lodash.camelcase": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", "optional": true }, - "lodash.clonedeep": { + "node_modules/lodash.clonedeep": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==" }, - "lodash.defaults": { + "node_modules/lodash.defaults": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", "integrity": "sha1-0JF4cW/+pN3p5ft7N/bwgCJ0WAw=" }, - "lodash.flatten": { + "node_modules/lodash.flatten": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", "integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=" }, - "lodash.includes": { + "node_modules/lodash.includes": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", "integrity": "sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8=" }, - "lodash.isarguments": { + "node_modules/lodash.isarguments": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", "integrity": "sha1-L1c9hcaiQon/AGY7SRwdM4/zRYo=" }, - "lodash.isboolean": { + "node_modules/lodash.isboolean": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", "integrity": "sha1-bC4XHbKiV82WgC/UOwGyDV9YcPY=" }, - "lodash.isinteger": { + "node_modules/lodash.isinteger": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", "integrity": "sha1-YZwK89A/iwTDH1iChAt3sRzWg0M=" }, - "lodash.isnumber": { + "node_modules/lodash.isnumber": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", "integrity": "sha1-POdoEMWSjQM1IwGsKHMX8RwLH/w=" }, - "lodash.isplainobject": { + "node_modules/lodash.isplainobject": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=" }, - "lodash.isstring": { + "node_modules/lodash.isstring": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=" }, - "lodash.once": { + "node_modules/lodash.once": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", "integrity": "sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=" }, - "logform": { + "node_modules/logform": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/logform/-/logform-2.3.2.tgz", "integrity": "sha512-V6JiPThZzTsbVRspNO6TmHkR99oqYTs8fivMBYQkjZj6rxW92KxtDCPE6IkAk1DNBnYKNkjm4jYBm6JDUcyhOA==", - "requires": { + "dependencies": { "colors": "1.4.0", "fecha": "^4.2.0", "ms": "^2.1.1", @@ -2214,477 +2743,612 @@ "triple-beam": "^1.3.0" } }, - "long": { + "node_modules/long": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==", "optional": true }, - "lru-cache": { + "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==", - "requires": { + "dependencies": { "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" } }, - "lru-memoizer": { + "node_modules/lru-memoizer": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/lru-memoizer/-/lru-memoizer-2.1.4.tgz", "integrity": "sha512-IXAq50s4qwrOBrXJklY+KhgZF+5y98PDaNo0gi/v2KQBFLyWr+JyFvijZXkGKjQj/h9c0OwoE+JZbwUXce76hQ==", - "requires": { + "dependencies": { "lodash.clonedeep": "^4.5.0", "lru-cache": "~4.0.0" - }, - "dependencies": { - "lru-cache": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.0.2.tgz", - "integrity": "sha512-uQw9OqphAGiZhkuPlpFGmdTU2tEuhxTourM/19qGJrxBPHAr/f8BT1a0i/lOclESnGatdJG/UCkP9kZB/Lh1iw==", - "requires": { - "pseudomap": "^1.0.1", - "yallist": "^2.0.0" - } - }, - "yallist": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", - "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==" - } } }, - "make-dir": { + "node_modules/lru-memoizer/node_modules/lru-cache": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.0.2.tgz", + "integrity": "sha512-uQw9OqphAGiZhkuPlpFGmdTU2tEuhxTourM/19qGJrxBPHAr/f8BT1a0i/lOclESnGatdJG/UCkP9kZB/Lh1iw==", + "dependencies": { + "pseudomap": "^1.0.1", + "yallist": "^2.0.0" + } + }, + "node_modules/lru-memoizer/node_modules/yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==" + }, + "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==", - "requires": { + "dependencies": { "semver": "^6.0.0" }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - } + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "media-typer": { + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/media-typer": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" + "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", + "engines": { + "node": ">= 0.6" + } }, - "merge-descriptors": { + "node_modules/merge-descriptors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" }, - "methods": { + "node_modules/methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", + "engines": { + "node": ">= 0.6" + } }, - "mime": { + "node_modules/mime": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } }, - "mime-db": { + "node_modules/mime-db": { "version": "1.51.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz", - "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==" + "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==", + "engines": { + "node": ">= 0.6" + } }, - "mime-types": { + "node_modules/mime-types": { "version": "2.1.34", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz", "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==", - "requires": { + "dependencies": { "mime-db": "1.51.0" + }, + "engines": { + "node": ">= 0.6" } }, - "min-document": { + "node_modules/min-document": { "version": "2.19.0", "resolved": "https://registry.npmjs.org/min-document/-/min-document-2.19.0.tgz", "integrity": "sha512-9Wy1B3m3f66bPPmU5hdA4DR4PB2OfDU/+GS3yAB7IQozE3tqXaVv2zOjgla7MEGSRv95+ILmOuvhLkOK6wJtCQ==", - "requires": { + "dependencies": { "dom-walk": "^0.1.0" } }, - "minimatch": { + "node_modules/minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "requires": { + "dependencies": { "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" } }, - "minimist": { + "node_modules/minimist": { "version": "1.2.6", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==" }, - "minipass": { + "node_modules/minipass": { "version": "3.1.6", "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.6.tgz", "integrity": "sha512-rty5kpw9/z8SX9dmxblFA6edItUmwJgMeYDZRrwlIVN27i8gysGbznJwUggw2V/FVqFSDdWy040ZPS811DYAqQ==", - "requires": { + "dependencies": { "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, - "minizlib": { + "node_modules/minizlib": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", - "requires": { + "dependencies": { "minipass": "^3.0.0", "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" } }, - "mkdirp": { + "node_modules/mkdirp": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==" + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } }, - "moment": { + "node_modules/moment": { "version": "2.29.1", "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz", - "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==" + "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==", + "engines": { + "node": "*" + } }, - "moment-timezone": { + "node_modules/moment-timezone": { "version": "0.5.34", "resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.34.tgz", "integrity": "sha512-3zAEHh2hKUs3EXLESx/wsgw6IQdusOT8Bxm3D9UrHPQR7zlMmzwybC8zHEM1tQ4LJwP7fcxrWr8tuBg05fFCbg==", - "requires": { + "dependencies": { "moment": ">= 2.9.0" + }, + "engines": { + "node": "*" } }, - "morgan": { + "node_modules/morgan": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz", "integrity": "sha512-AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ==", - "requires": { + "dependencies": { "basic-auth": "~2.0.1", "debug": "2.6.9", "depd": "~2.0.0", "on-finished": "~2.3.0", "on-headers": "~1.0.2" }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" - } + "engines": { + "node": ">= 0.8.0" } }, - "ms": { + "node_modules/morgan/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/morgan/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==", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/morgan/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, - "msgpackr": { + "node_modules/msgpackr": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/msgpackr/-/msgpackr-1.5.2.tgz", "integrity": "sha512-OCguCkbG34x1ddO4vAzEm/4J1GTo512k9SoxV8K+EGfI/onFdpemRf0HpsVRFpxadXr4JBFgHsQUitgTlw7ZYQ==", - "requires": { + "optionalDependencies": { "msgpackr-extract": "^1.0.14" } }, - "msgpackr-extract": { + "node_modules/msgpackr-extract": { "version": "1.0.16", "resolved": "https://registry.npmjs.org/msgpackr-extract/-/msgpackr-extract-1.0.16.tgz", "integrity": "sha512-fxdRfQUxPrL/TizyfYfMn09dK58e+d65bRD/fcaVH4052vj30QOzzqxcQIS7B0NsqlypEQ/6Du3QmP2DhWFfCA==", + "hasInstallScript": true, "optional": true, - "requires": { + "dependencies": { "nan": "^2.14.2", "node-gyp-build": "^4.2.3" } }, - "mysql": { + "node_modules/mysql": { "version": "2.18.1", "resolved": "https://registry.npmjs.org/mysql/-/mysql-2.18.1.tgz", "integrity": "sha512-Bca+gk2YWmqp2Uf6k5NFEurwY/0td0cpebAucFpY/3jhrwrVGuxU2uQFCHjU19SJfje0yQvi+rVWdq78hR5lig==", - "requires": { + "dependencies": { "bignumber.js": "9.0.0", "readable-stream": "2.3.7", "safe-buffer": "5.1.2", "sqlstring": "2.3.1" }, - "dependencies": { - "readable-stream": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", - "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "requires": { - "safe-buffer": "~5.1.0" - } - } + "engines": { + "node": ">= 0.6" } }, - "nan": { + "node_modules/mysql/node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/mysql/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/mysql/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/nan": { "version": "2.15.0", "resolved": "https://registry.npmjs.org/nan/-/nan-2.15.0.tgz", "integrity": "sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==", "optional": true }, - "nanoid": { + "node_modules/nanoid": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.1.tgz", - "integrity": "sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==" + "integrity": "sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } }, - "negotiator": { + "node_modules/negotiator": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", - "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" + "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", + "engines": { + "node": ">= 0.6" + } }, - "node-addon-api": { + "node_modules/node-addon-api": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz", "integrity": "sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==" }, - "node-fetch": { + "node_modules/node-fetch": { "version": "2.6.7", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "requires": { + "dependencies": { "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } } }, - "node-forge": { + "node_modules/node-forge": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", - "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==" + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", + "engines": { + "node": ">= 6.13.0" + } }, - "node-gyp-build": { + "node_modules/node-gyp-build": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.3.0.tgz", "integrity": "sha512-iWjXZvmboq0ja1pUGULQBexmxq8CV4xBhX7VDOTbL7ZR4FOowwY/VOtRxBN/yKxmdGoIp4j5ysNT4u3S2pDQ3Q==", - "optional": true + "optional": true, + "bin": { + "node-gyp-build": "bin.js", + "node-gyp-build-optional": "optional.js", + "node-gyp-build-test": "build-test.js" + } }, - "node.extend": { + "node_modules/node.extend": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/node.extend/-/node.extend-2.0.2.tgz", "integrity": "sha512-pDT4Dchl94/+kkgdwyS2PauDFjZG0Hk0IcHIB+LkW27HLDtdoeMxHTxZh39DYbPP8UflWXWj9JcdDozF+YDOpQ==", - "requires": { + "dependencies": { "has": "^1.0.3", "is": "^3.2.1" + }, + "engines": { + "node": ">=0.4.0" } }, - "nodemailer": { + "node_modules/nodemailer": { "version": "6.7.2", "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.7.2.tgz", - "integrity": "sha512-Dz7zVwlef4k5R71fdmxwR8Q39fiboGbu3xgswkzGwczUfjp873rVxt1O46+Fh0j1ORnAC6L9+heI8uUpO6DT7Q==" + "integrity": "sha512-Dz7zVwlef4k5R71fdmxwR8Q39fiboGbu3xgswkzGwczUfjp873rVxt1O46+Fh0j1ORnAC6L9+heI8uUpO6DT7Q==", + "engines": { + "node": ">=6.0.0" + } }, - "nopt": { + "node_modules/nopt": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", - "requires": { + "dependencies": { "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": ">=6" } }, - "npmlog": { + "node_modules/npmlog": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz", "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==", - "requires": { + "deprecated": "This package is no longer supported.", + "dependencies": { "are-we-there-yet": "^2.0.0", "console-control-strings": "^1.1.0", "gauge": "^3.0.0", "set-blocking": "^2.0.0" } }, - "object-assign": { + "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "engines": { + "node": ">=0.10.0" + } }, - "object-hash": { + "node_modules/object-hash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", - "optional": true + "optional": true, + "engines": { + "node": ">= 6" + } }, - "object-keys": { + "node_modules/object-keys": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "engines": { + "node": ">= 0.4" + } }, - "omggif": { + "node_modules/omggif": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/omggif/-/omggif-1.0.10.tgz", "integrity": "sha512-LMJTtvgc/nugXj0Vcrrs68Mn2D1r0zf630VNtqtpI1FEO7e+O9FP4gqs9AcnBaSEeoHIPm28u6qgPR0oyEpGSw==" }, - "on-finished": { + "node_modules/on-finished": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", - "requires": { + "dependencies": { "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" } }, - "on-headers": { + "node_modules/on-headers": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", - "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", + "engines": { + "node": ">= 0.8" + } }, - "once": { + "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "requires": { + "dependencies": { "wrappy": "1" } }, - "one-time": { + "node_modules/one-time": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/one-time/-/one-time-1.0.0.tgz", "integrity": "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==", - "requires": { + "dependencies": { "fn.name": "1.x.x" } }, - "p-limit": { + "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "optional": true, - "requires": { + "dependencies": { "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "p-map": { + "node_modules/p-map": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", - "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==" + "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", + "engines": { + "node": ">=6" + } }, - "pako": { + "node_modules/pako": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==" }, - "parse-bmfont-ascii": { + "node_modules/parse-bmfont-ascii": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/parse-bmfont-ascii/-/parse-bmfont-ascii-1.0.6.tgz", "integrity": "sha512-U4RrVsUFCleIOBsIGYOMKjn9PavsGOXxbvYGtMOEfnId0SVNsgehXh1DxUdVPLoxd5mvcEtvmKs2Mmf0Mpa1ZA==" }, - "parse-bmfont-binary": { + "node_modules/parse-bmfont-binary": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/parse-bmfont-binary/-/parse-bmfont-binary-1.0.6.tgz", "integrity": "sha512-GxmsRea0wdGdYthjuUeWTMWPqm2+FAd4GI8vCvhgJsFnoGhTrLhXDDupwTo7rXVAgaLIGoVHDZS9p/5XbSqeWA==" }, - "parse-bmfont-xml": { + "node_modules/parse-bmfont-xml": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/parse-bmfont-xml/-/parse-bmfont-xml-1.1.4.tgz", "integrity": "sha512-bjnliEOmGv3y1aMEfREMBJ9tfL3WR0i0CKPj61DnSLaoxWR3nLrsQrEbCId/8rF4NyRF0cCqisSVXyQYWM+mCQ==", - "requires": { + "dependencies": { "xml-parse-from-string": "^1.0.0", "xml2js": "^0.4.5" } }, - "parse-headers": { + "node_modules/parse-headers": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/parse-headers/-/parse-headers-2.0.5.tgz", "integrity": "sha512-ft3iAoLOB/MlwbNXgzy43SWGP6sQki2jQvAyBg/zDFAgr9bfNWZIUj42Kw2eJIl8kEi4PbgE6U1Zau/HwI75HA==" }, - "parseurl": { + "node_modules/parseurl": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "engines": { + "node": ">= 0.8" + } }, - "path": { + "node_modules/path": { "version": "0.12.7", "resolved": "https://registry.npmjs.org/path/-/path-0.12.7.tgz", "integrity": "sha1-1NwqUGxM4hl+tIHr/NWzbAFAsQ8=", - "requires": { + "dependencies": { "process": "^0.11.1", "util": "^0.10.3" } }, - "path-is-absolute": { + "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": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "engines": { + "node": ">=0.10.0" + } }, - "path-to-regexp": { + "node_modules/path-to-regexp": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" }, - "phin": { + "node_modules/phin": { "version": "2.9.3", "resolved": "https://registry.npmjs.org/phin/-/phin-2.9.3.tgz", - "integrity": "sha512-CzFr90qM24ju5f88quFC/6qohjC144rehe5n6DH900lgXmUe86+xCKc10ev56gRKC4/BkHUoG4uSiQgBiIXwDA==" + "integrity": "sha512-CzFr90qM24ju5f88quFC/6qohjC144rehe5n6DH900lgXmUe86+xCKc10ev56gRKC4/BkHUoG4uSiQgBiIXwDA==", + "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info." }, - "pixelmatch": { + "node_modules/pixelmatch": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/pixelmatch/-/pixelmatch-4.0.2.tgz", "integrity": "sha512-J8B6xqiO37sU/gkcMglv6h5Jbd9xNER7aHzpfRdNmV4IbQBzBpe4l9XmbG+xPF/znacgu2jfEw+wHffaq/YkXA==", - "requires": { + "dependencies": { "pngjs": "^3.0.0" + }, + "bin": { + "pixelmatch": "bin/pixelmatch" } }, - "pngjs": { + "node_modules/pngjs": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-3.4.0.tgz", - "integrity": "sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w==" + "integrity": "sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w==", + "engines": { + "node": ">=4.0.0" + } }, - "process": { + "node_modules/process": { "version": "0.11.10", "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=" + "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", + "engines": { + "node": ">= 0.6.0" + } }, - "process-nextick-args": { + "node_modules/process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" }, - "proto3-json-serializer": { + "node_modules/proto3-json-serializer": { "version": "0.1.9", "resolved": "https://registry.npmjs.org/proto3-json-serializer/-/proto3-json-serializer-0.1.9.tgz", "integrity": "sha512-A60IisqvnuI45qNRygJjrnNjX2TMdQGMY+57tR3nul3ZgO2zXkR9OGR8AXxJhkqx84g0FTnrfi3D5fWMSdANdQ==", "optional": true, - "requires": { + "dependencies": { "protobufjs": "^6.11.2" } }, - "protobufjs": { + "node_modules/protobufjs": { "version": "6.11.3", "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.3.tgz", "integrity": "sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg==", + "hasInstallScript": true, "optional": true, - "requires": { + "dependencies": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", "@protobufjs/codegen": "^2.0.4", @@ -2698,168 +3362,232 @@ "@types/long": "^4.0.1", "@types/node": ">=13.7.0", "long": "^4.0.0" + }, + "bin": { + "pbjs": "bin/pbjs", + "pbts": "bin/pbts" } }, - "proxy-addr": { + "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==", - "requires": { + "dependencies": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" } }, - "pseudomap": { + "node_modules/pseudomap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==" }, - "pump": { + "node_modules/pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", "optional": true, - "requires": { + "dependencies": { "end-of-stream": "^1.1.0", "once": "^1.3.1" } }, - "pumpify": { + "node_modules/pumpify": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-2.0.1.tgz", "integrity": "sha512-m7KOje7jZxrmutanlkS1daj1dS6z6BgslzOXmcSEpIlCxM3VJH7lG5QLeck/6hgF6F4crFf01UtQmNsJfweTAw==", "optional": true, - "requires": { + "dependencies": { "duplexify": "^4.1.1", "inherits": "^2.0.3", "pump": "^3.0.0" } }, - "qs": { + "node_modules/qs": { "version": "6.9.6", "resolved": "https://registry.npmjs.org/qs/-/qs-6.9.6.tgz", - "integrity": "sha512-TIRk4aqYLNoJUbd+g2lEdz5kLWIuTMRagAXxl78Q0RiVjAOugHmeKNGdd3cwo/ktpf9aL9epCfFqWDEKysUlLQ==" + "integrity": "sha512-TIRk4aqYLNoJUbd+g2lEdz5kLWIuTMRagAXxl78Q0RiVjAOugHmeKNGdd3cwo/ktpf9aL9epCfFqWDEKysUlLQ==", + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "range-parser": { + "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==" + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "engines": { + "node": ">= 0.6" + } }, - "raw-body": { + "node_modules/raw-body": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.2.tgz", "integrity": "sha512-RPMAFUJP19WIet/99ngh6Iv8fzAbqum4Li7AD6DtGaW2RpMB/11xDoalPiJMTbu6I3hkbMVkATvZrqb9EEqeeQ==", - "requires": { + "dependencies": { "bytes": "3.1.1", "http-errors": "1.8.1", "iconv-lite": "0.4.24", "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" } }, - "readable-stream": { + "node_modules/readable-stream": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "requires": { + "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" } }, - "redis-commands": { + "node_modules/redis-commands": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/redis-commands/-/redis-commands-1.7.0.tgz", "integrity": "sha512-nJWqw3bTFy21hX/CPKHth6sfhZbdiHP6bTawSgQBlKOVRG7EZkfHbbHwQJnrE4vsQf0CMNE+3gJ4Fmm16vdVlQ==" }, - "redis-errors": { + "node_modules/redis-errors": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/redis-errors/-/redis-errors-1.2.0.tgz", - "integrity": "sha1-62LSrbFeTq9GEMBK/hUpOEJQq60=" + "integrity": "sha1-62LSrbFeTq9GEMBK/hUpOEJQq60=", + "engines": { + "node": ">=4" + } }, - "redis-info": { + "node_modules/redis-info": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/redis-info/-/redis-info-3.1.0.tgz", "integrity": "sha512-ER4L9Sh/vm63DkIE0bkSjxluQlioBiBgf5w1UuldaW/3vPcecdljVDisZhmnCMvsxHNiARTTDDHGg9cGwTfrKg==", - "requires": { + "dependencies": { "lodash": "^4.17.11" } }, - "redis-parser": { + "node_modules/redis-parser": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/redis-parser/-/redis-parser-3.0.0.tgz", "integrity": "sha1-tm2CjNyv5rS4pCin3vTGvKwxyLQ=", - "requires": { + "dependencies": { "redis-errors": "^1.0.0" + }, + "engines": { + "node": ">=4" } }, - "regenerator-runtime": { + "node_modules/regenerator-runtime": { "version": "0.13.9", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz", "integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==" }, - "require-directory": { + "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==", - "optional": true + "optional": true, + "engines": { + "node": ">=0.10.0" + } }, - "retry": { + "node_modules/retry": { "version": "0.13.1", "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", - "optional": true + "optional": true, + "engines": { + "node": ">= 4" + } }, - "retry-request": { + "node_modules/retry-request": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/retry-request/-/retry-request-4.2.2.tgz", "integrity": "sha512-xA93uxUD/rogV7BV59agW/JHPGXeREMWiZc9jhcwY4YdZ7QOtC7qbomYg0n4wyk2lJhggjvKvhNX8wln/Aldhg==", "optional": true, - "requires": { + "dependencies": { "debug": "^4.1.1", "extend": "^3.0.2" + }, + "engines": { + "node": ">=8.10.0" } }, - "rimraf": { + "node_modules/rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "requires": { + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dependencies": { "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "safe-buffer": { + "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==" + "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" + } + ] }, - "safe-stable-stringify": { + "node_modules/safe-stable-stringify": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz", "integrity": "sha512-ERq4hUjKDbJfE4+XtZLFPCDi8Vb1JqaxAPTxWFLBx8XcAlf9Bda/ZJdVezs/NAfsMQScyIlUMx+Yeu7P7rx5jw==" }, - "safer-buffer": { + "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, - "sax": { + "node_modules/sax": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" }, - "semver": { + "node_modules/semver": { "version": "7.3.5", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "requires": { + "dependencies": { "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, - "send": { + "node_modules/send": { "version": "0.17.2", "resolved": "https://registry.npmjs.org/send/-/send-0.17.2.tgz", "integrity": "sha512-UJYB6wFSJE3G00nEivR5rgWp8c2xXvJ3OPWPhmuteU0IKj8nKbG3DrjiOmLwpnHGYWAVwA69zmTm++YG0Hmwww==", - "requires": { + "dependencies": { "debug": "2.6.9", "depd": "~1.1.2", "destroy": "~1.0.4", @@ -2874,331 +3602,385 @@ "range-parser": "~1.2.1", "statuses": "~1.5.0" }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - }, - "dependencies": { - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" - } - } - }, - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - } + "engines": { + "node": ">= 0.8.0" } }, - "serve-static": { + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "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==" + }, + "node_modules/serve-static": { "version": "1.14.2", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.2.tgz", "integrity": "sha512-+TMNA9AFxUEGuC0z2mevogSnn9MXKb4fa7ngeRMJaaGv8vTwnIEkKi+QGvPt33HSnf8pRS+WGM0EbMtCJLKMBQ==", - "requires": { + "dependencies": { "encodeurl": "~1.0.2", "escape-html": "~1.0.3", "parseurl": "~1.3.3", "send": "0.17.2" + }, + "engines": { + "node": ">= 0.8.0" } }, - "set-blocking": { + "node_modules/set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" }, - "setprototypeof": { + "node_modules/setprototypeof": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" }, - "signal-exit": { + "node_modules/signal-exit": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.6.tgz", "integrity": "sha512-sDl4qMFpijcGw22U5w63KmD3cZJfBuFlVNbVMKje2keoKML7X2UzWbc4XrmEbDwg0NXJc3yv4/ox7b+JWb57kQ==" }, - "simple-swizzle": { + "node_modules/simple-swizzle": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", "integrity": "sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo=", - "requires": { + "dependencies": { "is-arrayish": "^0.3.1" } }, - "sqlstring": { + "node_modules/sqlstring": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.1.tgz", - "integrity": "sha1-R1OT/56RR5rqYtyvDKPRSYOn+0A=" + "integrity": "sha1-R1OT/56RR5rqYtyvDKPRSYOn+0A=", + "engines": { + "node": ">= 0.6" + } }, - "stack-trace": { + "node_modules/stack-trace": { "version": "0.0.10", "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", - "integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=" + "integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=", + "engines": { + "node": "*" + } }, - "standard-as-callback": { + "node_modules/standard-as-callback": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/standard-as-callback/-/standard-as-callback-2.1.0.tgz", "integrity": "sha512-qoRRSyROncaz1z0mvYqIE4lCd9p2R90i6GxW3uZv5ucSu8tU7B5HXUP1gG8pVZsYNVaXjk8ClXHPttLyxAL48A==" }, - "statuses": { + "node_modules/statuses": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" + "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", + "engines": { + "node": ">= 0.6" + } }, - "stream-events": { + "node_modules/stream-events": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/stream-events/-/stream-events-1.0.5.tgz", "integrity": "sha512-E1GUzBSgvct8Jsb3v2X15pjzN1tYebtbLaMg+eBOUOAxgbLoSbT2NS91ckc5lJD1KfLjId+jXJRgo0qnV5Nerg==", "optional": true, - "requires": { + "dependencies": { "stubs": "^3.0.0" } }, - "stream-shift": { + "node_modules/stream-shift": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz", "integrity": "sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==", "optional": true }, - "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==", - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "string_decoder": { + "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==", - "requires": { + "dependencies": { "safe-buffer": "~5.2.0" } }, - "strip-ansi": { + "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==", + "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==", - "requires": { + "dependencies": { "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" } }, - "stubs": { + "node_modules/stubs": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz", "integrity": "sha512-PdHt7hHUJKxvTCgbKX9C1V/ftOcjJQgz8BZwNfV5c4B6dcGqlpelTbJ999jBGZ2jYiPAwcX5dP6oBwVlBlUbxw==", "optional": true }, - "supports-color": { + "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==", - "requires": { + "dependencies": { "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" } }, - "tar": { + "node_modules/tar": { "version": "6.1.11", "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz", "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==", - "requires": { + "dependencies": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", "minipass": "^3.0.0", "minizlib": "^2.1.1", "mkdirp": "^1.0.3", "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 10" } }, - "teeny-request": { + "node_modules/teeny-request": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/teeny-request/-/teeny-request-7.2.0.tgz", "integrity": "sha512-SyY0pek1zWsi0LRVAALem+avzMLc33MKW/JLLakdP4s9+D7+jHcy5x6P+h94g2QNZsAqQNfX5lsbd3WSeJXrrw==", "optional": true, - "requires": { + "dependencies": { "http-proxy-agent": "^5.0.0", "https-proxy-agent": "^5.0.0", "node-fetch": "^2.6.1", "stream-events": "^1.0.5", "uuid": "^8.0.0" + }, + "engines": { + "node": ">=10" } }, - "text-decoding": { + "node_modules/text-decoding": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/text-decoding/-/text-decoding-1.0.0.tgz", "integrity": "sha512-/0TJD42KDnVwKmDK6jj3xP7E2MG7SHAOG4tyTgyUCRPdHwvkquYNLEQltmdMa3owq3TkddCVcTsoctJI8VQNKA==" }, - "text-hex": { + "node_modules/text-hex": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz", "integrity": "sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==" }, - "timm": { + "node_modules/timm": { "version": "1.7.1", "resolved": "https://registry.npmjs.org/timm/-/timm-1.7.1.tgz", "integrity": "sha512-IjZc9KIotudix8bMaBW6QvMuq64BrJWFs1+4V0lXwWGQZwH+LnX87doAYhem4caOEusRP9/g6jVDQmZ8XOk1nw==" }, - "tinycolor2": { + "node_modules/tinycolor2": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.4.2.tgz", - "integrity": "sha512-vJhccZPs965sV/L2sU4oRQVAos0pQXwsvTLkWYdqJ+a8Q5kPFzJTuOFwy7UniPli44NKQGAglksjvOcpo95aZA==" + "integrity": "sha512-vJhccZPs965sV/L2sU4oRQVAos0pQXwsvTLkWYdqJ+a8Q5kPFzJTuOFwy7UniPli44NKQGAglksjvOcpo95aZA==", + "engines": { + "node": "*" + } }, - "toidentifier": { + "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==" + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "engines": { + "node": ">=0.6" + } }, - "tr46": { + "node_modules/tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=" }, - "triple-beam": { + "node_modules/triple-beam": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.3.0.tgz", "integrity": "sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==" }, - "tslib": { + "node_modules/tslib": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" }, - "type-is": { + "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==", - "requires": { + "dependencies": { "media-typer": "0.3.0", "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" } }, - "typedarray-to-buffer": { + "node_modules/typedarray-to-buffer": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", "optional": true, - "requires": { + "dependencies": { "is-typedarray": "^1.0.0" } }, - "udp-packet": { + "node_modules/udp-packet": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/udp-packet/-/udp-packet-2.0.0.tgz", "integrity": "sha512-bq+eF4hncTwaiuM2ihvuTQWG+EXOKpzKu6JY4o09331q3295xnd3vlc+SwPiOUm+OylggWATdLmjwY2qOOnOBg==" }, - "unique-string": { + "node_modules/unique-string": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", "optional": true, - "requires": { + "dependencies": { "crypto-random-string": "^2.0.0" + }, + "engines": { + "node": ">=8" } }, - "unpipe": { + "node_modules/unpipe": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", + "engines": { + "node": ">= 0.8" + } }, - "utif": { + "node_modules/utif": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/utif/-/utif-2.0.1.tgz", "integrity": "sha512-Z/S1fNKCicQTf375lIP9G8Sa1H/phcysstNrrSdZKj1f9g58J4NMgb5IgiEZN9/nLMPDwF0W7hdOe9Qq2IYoLg==", - "requires": { + "dependencies": { "pako": "^1.0.5" } }, - "util": { + "node_modules/util": { "version": "0.10.4", "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", - "requires": { - "inherits": "2.0.3" - }, "dependencies": { - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" - } + "inherits": "2.0.3" } }, - "util-deprecate": { + "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" }, - "utils-merge": { + "node_modules/util/node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + }, + "node_modules/utils-merge": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", + "engines": { + "node": ">= 0.4.0" + } }, - "uuid": { + "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==" + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } }, - "validatorjs": { + "node_modules/validatorjs": { "version": "3.22.1", "resolved": "https://registry.npmjs.org/validatorjs/-/validatorjs-3.22.1.tgz", "integrity": "sha512-451KiCt/3E8qV/8fOUdO0YkA8zUdQBNVxubg9jvgEB+JAg9IlRKrClzwq2ir2ndj7TWmPYQ7bXFb4BxcyX2iWw==" }, - "vary": { + "node_modules/vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", + "engines": { + "node": ">= 0.8" + } }, - "webidl-conversions": { + "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=" }, - "websocket-driver": { + "node_modules/websocket-driver": { "version": "0.7.4", "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", - "requires": { + "dependencies": { "http-parser-js": ">=0.5.1", "safe-buffer": ">=5.1.0", "websocket-extensions": ">=0.1.1" + }, + "engines": { + "node": ">=0.8.0" } }, - "websocket-extensions": { + "node_modules/websocket-extensions": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", - "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==" + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", + "engines": { + "node": ">=0.8.0" + } }, - "whatwg-url": { + "node_modules/whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", - "requires": { + "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" } }, - "wide-align": { + "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==", - "requires": { + "dependencies": { "string-width": "^1.0.2 || 2 || 3 || 4" } }, - "winston": { + "node_modules/winston": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/winston/-/winston-3.4.0.tgz", "integrity": "sha512-FqilVj+5HKwCfIHQzMxrrd5tBIH10JTS3koFGbLVWBODjiIYq7zir08rFyBT4rrTYG/eaTqDcfSIbcjSM78YSw==", - "requires": { + "dependencies": { "@dabh/diagnostics": "^2.0.2", "async": "^3.2.3", "is-stream": "^2.0.0", @@ -3208,130 +3990,164 @@ "stack-trace": "0.0.x", "triple-beam": "^1.3.0", "winston-transport": "^4.4.2" + }, + "engines": { + "node": ">= 6.4.0" } }, - "winston-transport": { + "node_modules/winston-transport": { "version": "4.4.2", "resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.4.2.tgz", "integrity": "sha512-9jmhltAr5ygt5usgUTQbEiw/7RYXpyUbEAFRCSicIacpUzPkrnQsQZSPGEI12aLK9Jth4zNcYJx3Cvznwrl8pw==", - "requires": { + "dependencies": { "logform": "^2.3.2", "readable-stream": "^3.4.0", "triple-beam": "^1.2.0" + }, + "engines": { + "node": ">= 6.4.0" } }, - "wrap-ansi": { + "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==", "optional": true, - "requires": { + "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "optional": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "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==", - "optional": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "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==", - "optional": true - } + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "wrappy": { + "node_modules/wrap-ansi/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==", + "optional": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/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==", + "optional": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/wrap-ansi/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==", + "optional": true + }, + "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" }, - "write-file-atomic": { + "node_modules/write-file-atomic": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", "optional": true, - "requires": { + "dependencies": { "imurmurhash": "^0.1.4", "is-typedarray": "^1.0.0", "signal-exit": "^3.0.2", "typedarray-to-buffer": "^3.1.5" } }, - "xdg-basedir": { + "node_modules/xdg-basedir": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==", - "optional": true + "optional": true, + "engines": { + "node": ">=8" + } }, - "xhr": { + "node_modules/xhr": { "version": "2.6.0", "resolved": "https://registry.npmjs.org/xhr/-/xhr-2.6.0.tgz", "integrity": "sha512-/eCGLb5rxjx5e3mF1A7s+pLlR6CGyqWN91fv1JgER5mVWg1MZmlhBvy9kjcsOdRk8RrIujotWyJamfyrp+WIcA==", - "requires": { + "dependencies": { "global": "~4.4.0", "is-function": "^1.0.1", "parse-headers": "^2.0.0", "xtend": "^4.0.0" } }, - "xml-parse-from-string": { + "node_modules/xml-parse-from-string": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/xml-parse-from-string/-/xml-parse-from-string-1.0.1.tgz", "integrity": "sha512-ErcKwJTF54uRzzNMXq2X5sMIy88zJvfN2DmdoQvy7PAFJ+tPRU6ydWuOKNMyfmOjdyBQTFREi60s0Y0SyI0G0g==" }, - "xml2js": { + "node_modules/xml2js": { "version": "0.4.23", "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz", "integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==", - "requires": { + "dependencies": { "sax": ">=0.6.0", "xmlbuilder": "~11.0.0" + }, + "engines": { + "node": ">=4.0.0" } }, - "xmlbuilder": { + "node_modules/xmlbuilder": { "version": "11.0.1", "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", - "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==" + "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", + "engines": { + "node": ">=4.0" + } }, - "xtend": { + "node_modules/xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "engines": { + "node": ">=0.4" + } }, - "y18n": { + "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "optional": true + "optional": true, + "engines": { + "node": ">=10" + } }, - "yallist": { + "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, - "yargs": { + "node_modules/yargs": { "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "optional": true, - "requires": { + "dependencies": { "cliui": "^7.0.2", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", @@ -3339,19 +4155,31 @@ "string-width": "^4.2.0", "y18n": "^5.0.5", "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" } }, - "yargs-parser": { + "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==", - "optional": true + "optional": true, + "engines": { + "node": ">=10" + } }, - "yocto-queue": { + "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "optional": true + "optional": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } } } } diff --git a/package.json b/package.json old mode 100644 new mode 100755 diff --git a/response_api_driver.md b/response_api_driver.md old mode 100644 new mode 100755 diff --git a/routes/ServiceDriverRoute.js b/routes/ServiceDriverRoute.js old mode 100644 new mode 100755 diff --git a/routes/routes.js b/routes/routes.js old mode 100644 new mode 100755 index 3f21c71..2e6d827 --- a/routes/routes.js +++ b/routes/routes.js @@ -2,6 +2,7 @@ const WorkerController = require('../controllers/WorkerController'); const ZoneController = require('../controllers/ZoneController'); const DummyController = require('../controllers/DummyController'); const OrderController = require('../controllers/OrderController'); +const ListenController = require("../controllers/ListenController"); const ServiceDriverRoute = require('./ServiceDriverRoute'); @@ -42,6 +43,8 @@ exports.use = function (app) { app.get(PATH_URL + '/dummy/distance', DummyController.distance); app.post(PATH_URL + '/dummy/send_email', DummyController.sendEmail); + // LISTEN + app.post(PATH_URL + "/listen/gps", ListenController.gps); ServiceDriverRoute.routesConfig(app); -}; \ No newline at end of file +}; diff --git a/routes/routes_without_scheduler.js b/routes/routes_without_scheduler.js old mode 100644 new mode 100755 diff --git a/test.js b/test.js old mode 100644 new mode 100755 diff --git a/test_device.js b/test_device.js old mode 100644 new mode 100755 diff --git a/workers/BlastOrderWorker.js b/workers/BlastOrderWorker.js old mode 100644 new mode 100755 diff --git a/workers/BlastOrderWorkerBAK.js b/workers/BlastOrderWorkerBAK.js old mode 100644 new mode 100755 diff --git a/workers/DrvBlastNotifWorker.js b/workers/DrvBlastNotifWorker.js old mode 100644 new mode 100755 diff --git a/workers/DrvUpLocIdleWorker.js b/workers/DrvUpLocIdleWorker.js old mode 100644 new mode 100755 diff --git a/workers/DrvUpLocWorker.js b/workers/DrvUpLocWorker.js old mode 100644 new mode 100755 diff --git a/workers/DrvUpPhotoWorker.js b/workers/DrvUpPhotoWorker.js old mode 100644 new mode 100755 diff --git a/workers/ReverseGeocodeWorker.js b/workers/ReverseGeocodeWorker.js old mode 100644 new mode 100755