Spaces:
Paused
Paused
Upload 16 files
Browse files- .env +19 -21
- doc/language.json +937 -0
- doc/regions.json +699 -0
- index.js +3 -5
- package-lock.json +1422 -217
- package.json +1 -3
- public/configure.html +104 -1625
- src/cache.js +112 -0
- src/db.js +89 -0
- src/routes.js +363 -0
- src/tmdb.js +343 -0
- src/utils/logger.js +69 -0
- src/utils/middleware.js +28 -0
- src/utils/queue.js +7 -0
.env
CHANGED
|
@@ -1,28 +1,26 @@
|
|
| 1 |
-
#
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
BASE_URL=http://localhost:3000
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
CATALOG_CONTENT_CACHE_DURATION=3d
|
| 9 |
|
| 10 |
-
#
|
| 11 |
-
|
| 12 |
-
RPDB_POSTER_CACHE_DURATION=3d
|
| 13 |
|
| 14 |
-
#
|
| 15 |
-
#
|
| 16 |
-
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
#
|
| 19 |
-
#
|
| 20 |
LOG_LEVEL=info
|
| 21 |
|
| 22 |
-
# The
|
| 23 |
-
#
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
# The port on which the addon will listen for incoming connections.
|
| 27 |
-
# Make sure this port is open and not used by other services.
|
| 28 |
-
PORT=3000
|
|
|
|
| 1 |
+
# Change exposition port
|
| 2 |
+
PORT=3000
|
| 3 |
+
|
| 4 |
+
# URL to access the addon
|
| 5 |
BASE_URL=http://localhost:3000
|
| 6 |
|
| 7 |
+
CACHE_CATALOG_CONTENT_DURATION_DAYS=3
|
| 8 |
+
CACHE_POSTER_CONTENT_DURATION_DAYS=7
|
|
|
|
| 9 |
|
| 10 |
+
# Enable public instance
|
| 11 |
+
TMDB_BEARER_TOKEN=
|
|
|
|
| 12 |
|
| 13 |
+
# Define streaming catalog providers based on region
|
| 14 |
+
# TMDB_LANGUAGE = iso_639_1 code from doc/languages.json
|
| 15 |
+
# TMDB_WATCH_REGION= = iso_3166_1 code from doc/regions.json
|
| 16 |
+
TMDB_LANGUAGE=en
|
| 17 |
+
TMDB_WATCH_REGION=GB
|
| 18 |
|
| 19 |
+
# Possible values are: info, debug
|
| 20 |
+
# Default is 'info' if not specified; 'debug' provides more detailed logs
|
| 21 |
LOG_LEVEL=info
|
| 22 |
|
| 23 |
+
# The value can be expressed in days (d), weeks (w), or months (M).
|
| 24 |
+
# For example, '3d' means that log files will be kept for 3 days before being deleted.
|
| 25 |
+
# If LOG_INTERVAL_DELETION is not defined in the environment variables, the default value is '3d'.
|
| 26 |
+
LOG_INTERVAL_DELETION=3d
|
|
|
|
|
|
|
|
|
doc/language.json
ADDED
|
@@ -0,0 +1,937 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"iso_639_1": "bi",
|
| 4 |
+
"english_name": "Bislama",
|
| 5 |
+
"name": ""
|
| 6 |
+
},
|
| 7 |
+
{
|
| 8 |
+
"iso_639_1": "cs",
|
| 9 |
+
"english_name": "Czech",
|
| 10 |
+
"name": "Český"
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"iso_639_1": "ba",
|
| 14 |
+
"english_name": "Bashkir",
|
| 15 |
+
"name": ""
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"iso_639_1": "ae",
|
| 19 |
+
"english_name": "Avestan",
|
| 20 |
+
"name": ""
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"iso_639_1": "av",
|
| 24 |
+
"english_name": "Avaric",
|
| 25 |
+
"name": ""
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"iso_639_1": "de",
|
| 29 |
+
"english_name": "German",
|
| 30 |
+
"name": "Deutsch"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"iso_639_1": "mt",
|
| 34 |
+
"english_name": "Maltese",
|
| 35 |
+
"name": "Malti"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"iso_639_1": "om",
|
| 39 |
+
"english_name": "Oromo",
|
| 40 |
+
"name": ""
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"iso_639_1": "rm",
|
| 44 |
+
"english_name": "Raeto-Romance",
|
| 45 |
+
"name": ""
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"iso_639_1": "so",
|
| 49 |
+
"english_name": "Somali",
|
| 50 |
+
"name": "Somali"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"iso_639_1": "ts",
|
| 54 |
+
"english_name": "Tsonga",
|
| 55 |
+
"name": ""
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"iso_639_1": "vi",
|
| 59 |
+
"english_name": "Vietnamese",
|
| 60 |
+
"name": "Tiếng Việt"
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"iso_639_1": "gn",
|
| 64 |
+
"english_name": "Guarani",
|
| 65 |
+
"name": ""
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"iso_639_1": "ig",
|
| 69 |
+
"english_name": "Igbo",
|
| 70 |
+
"name": ""
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"iso_639_1": "it",
|
| 74 |
+
"english_name": "Italian",
|
| 75 |
+
"name": "Italiano"
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"iso_639_1": "ki",
|
| 79 |
+
"english_name": "Kikuyu",
|
| 80 |
+
"name": ""
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"iso_639_1": "ku",
|
| 84 |
+
"english_name": "Kurdish",
|
| 85 |
+
"name": ""
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"iso_639_1": "la",
|
| 89 |
+
"english_name": "Latin",
|
| 90 |
+
"name": "Latin"
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"iso_639_1": "ln",
|
| 94 |
+
"english_name": "Lingala",
|
| 95 |
+
"name": ""
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"iso_639_1": "lb",
|
| 99 |
+
"english_name": "Letzeburgesch",
|
| 100 |
+
"name": ""
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"iso_639_1": "ny",
|
| 104 |
+
"english_name": "Chichewa; Nyanja",
|
| 105 |
+
"name": ""
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"iso_639_1": "pl",
|
| 109 |
+
"english_name": "Polish",
|
| 110 |
+
"name": "Polski"
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"iso_639_1": "si",
|
| 114 |
+
"english_name": "Sinhalese",
|
| 115 |
+
"name": "සිංහල"
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"iso_639_1": "to",
|
| 119 |
+
"english_name": "Tonga",
|
| 120 |
+
"name": ""
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"iso_639_1": "az",
|
| 124 |
+
"english_name": "Azerbaijani",
|
| 125 |
+
"name": "Azərbaycan"
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"iso_639_1": "ce",
|
| 129 |
+
"english_name": "Chechen",
|
| 130 |
+
"name": ""
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"iso_639_1": "cu",
|
| 134 |
+
"english_name": "Slavic",
|
| 135 |
+
"name": ""
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"iso_639_1": "da",
|
| 139 |
+
"english_name": "Danish",
|
| 140 |
+
"name": "Dansk"
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"iso_639_1": "hz",
|
| 144 |
+
"english_name": "Herero",
|
| 145 |
+
"name": ""
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"iso_639_1": "ie",
|
| 149 |
+
"english_name": "Interlingue",
|
| 150 |
+
"name": ""
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"iso_639_1": "rw",
|
| 154 |
+
"english_name": "Kinyarwanda",
|
| 155 |
+
"name": "Kinyarwanda"
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"iso_639_1": "mi",
|
| 159 |
+
"english_name": "Maori",
|
| 160 |
+
"name": ""
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"iso_639_1": "no",
|
| 164 |
+
"english_name": "Norwegian",
|
| 165 |
+
"name": "Norsk"
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"iso_639_1": "pi",
|
| 169 |
+
"english_name": "Pali",
|
| 170 |
+
"name": ""
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"iso_639_1": "sk",
|
| 174 |
+
"english_name": "Slovak",
|
| 175 |
+
"name": "Slovenčina"
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"iso_639_1": "se",
|
| 179 |
+
"english_name": "Northern Sami",
|
| 180 |
+
"name": ""
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"iso_639_1": "sm",
|
| 184 |
+
"english_name": "Samoan",
|
| 185 |
+
"name": ""
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"iso_639_1": "uk",
|
| 189 |
+
"english_name": "Ukrainian",
|
| 190 |
+
"name": "Український"
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"iso_639_1": "en",
|
| 194 |
+
"english_name": "English",
|
| 195 |
+
"name": "English"
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"iso_639_1": "ay",
|
| 199 |
+
"english_name": "Aymara",
|
| 200 |
+
"name": ""
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"iso_639_1": "ca",
|
| 204 |
+
"english_name": "Catalan",
|
| 205 |
+
"name": "Català"
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"iso_639_1": "eo",
|
| 209 |
+
"english_name": "Esperanto",
|
| 210 |
+
"name": "Esperanto"
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"iso_639_1": "ha",
|
| 214 |
+
"english_name": "Hausa",
|
| 215 |
+
"name": "Hausa"
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"iso_639_1": "ho",
|
| 219 |
+
"english_name": "Hiri Motu",
|
| 220 |
+
"name": ""
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"iso_639_1": "hu",
|
| 224 |
+
"english_name": "Hungarian",
|
| 225 |
+
"name": "Magyar"
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"iso_639_1": "io",
|
| 229 |
+
"english_name": "Ido",
|
| 230 |
+
"name": ""
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"iso_639_1": "ii",
|
| 234 |
+
"english_name": "Yi",
|
| 235 |
+
"name": ""
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"iso_639_1": "kn",
|
| 239 |
+
"english_name": "Kannada",
|
| 240 |
+
"name": "?????"
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"iso_639_1": "kv",
|
| 244 |
+
"english_name": "Komi",
|
| 245 |
+
"name": ""
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"iso_639_1": "li",
|
| 249 |
+
"english_name": "Limburgish",
|
| 250 |
+
"name": ""
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"iso_639_1": "oj",
|
| 254 |
+
"english_name": "Ojibwa",
|
| 255 |
+
"name": ""
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"iso_639_1": "ru",
|
| 259 |
+
"english_name": "Russian",
|
| 260 |
+
"name": "Pусский"
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"iso_639_1": "sr",
|
| 264 |
+
"english_name": "Serbian",
|
| 265 |
+
"name": "Srpski"
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"iso_639_1": "sv",
|
| 269 |
+
"english_name": "Swedish",
|
| 270 |
+
"name": "svenska"
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"iso_639_1": "ty",
|
| 274 |
+
"english_name": "Tahitian",
|
| 275 |
+
"name": ""
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"iso_639_1": "zu",
|
| 279 |
+
"english_name": "Zulu",
|
| 280 |
+
"name": "isiZulu"
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"iso_639_1": "ka",
|
| 284 |
+
"english_name": "Georgian",
|
| 285 |
+
"name": "ქართული"
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"iso_639_1": "ch",
|
| 289 |
+
"english_name": "Chamorro",
|
| 290 |
+
"name": "Finu' Chamorro"
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"iso_639_1": "be",
|
| 294 |
+
"english_name": "Belarusian",
|
| 295 |
+
"name": "беларуская мова"
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"iso_639_1": "br",
|
| 299 |
+
"english_name": "Breton",
|
| 300 |
+
"name": ""
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"iso_639_1": "kw",
|
| 304 |
+
"english_name": "Cornish",
|
| 305 |
+
"name": ""
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"iso_639_1": "fi",
|
| 309 |
+
"english_name": "Finnish",
|
| 310 |
+
"name": "suomi"
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"iso_639_1": "sh",
|
| 314 |
+
"english_name": "Serbo-Croatian",
|
| 315 |
+
"name": ""
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"iso_639_1": "nn",
|
| 319 |
+
"english_name": "Norwegian Nynorsk",
|
| 320 |
+
"name": ""
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"iso_639_1": "tt",
|
| 324 |
+
"english_name": "Tatar",
|
| 325 |
+
"name": ""
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"iso_639_1": "tg",
|
| 329 |
+
"english_name": "Tajik",
|
| 330 |
+
"name": ""
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"iso_639_1": "vo",
|
| 334 |
+
"english_name": "Volapük",
|
| 335 |
+
"name": ""
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"iso_639_1": "ps",
|
| 339 |
+
"english_name": "Pushto",
|
| 340 |
+
"name": "پښتو"
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"iso_639_1": "mk",
|
| 344 |
+
"english_name": "Macedonian",
|
| 345 |
+
"name": ""
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"iso_639_1": "fr",
|
| 349 |
+
"english_name": "French",
|
| 350 |
+
"name": "Français"
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"iso_639_1": "bm",
|
| 354 |
+
"english_name": "Bambara",
|
| 355 |
+
"name": "Bamanankan"
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"iso_639_1": "eu",
|
| 359 |
+
"english_name": "Basque",
|
| 360 |
+
"name": "euskera"
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"iso_639_1": "fj",
|
| 364 |
+
"english_name": "Fijian",
|
| 365 |
+
"name": ""
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"iso_639_1": "id",
|
| 369 |
+
"english_name": "Indonesian",
|
| 370 |
+
"name": "Bahasa indonesia"
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"iso_639_1": "mg",
|
| 374 |
+
"english_name": "Malagasy",
|
| 375 |
+
"name": ""
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"iso_639_1": "na",
|
| 379 |
+
"english_name": "Nauru",
|
| 380 |
+
"name": ""
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"iso_639_1": "xx",
|
| 384 |
+
"english_name": "No Language",
|
| 385 |
+
"name": "No Language"
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"iso_639_1": "qu",
|
| 389 |
+
"english_name": "Quechua",
|
| 390 |
+
"name": ""
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"iso_639_1": "sq",
|
| 394 |
+
"english_name": "Albanian",
|
| 395 |
+
"name": "shqip"
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"iso_639_1": "ti",
|
| 399 |
+
"english_name": "Tigrinya",
|
| 400 |
+
"name": ""
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"iso_639_1": "tw",
|
| 404 |
+
"english_name": "Twi",
|
| 405 |
+
"name": ""
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"iso_639_1": "wa",
|
| 409 |
+
"english_name": "Walloon",
|
| 410 |
+
"name": ""
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"iso_639_1": "ab",
|
| 414 |
+
"english_name": "Abkhazian",
|
| 415 |
+
"name": ""
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"iso_639_1": "bs",
|
| 419 |
+
"english_name": "Bosnian",
|
| 420 |
+
"name": "Bosanski"
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"iso_639_1": "af",
|
| 424 |
+
"english_name": "Afrikaans",
|
| 425 |
+
"name": "Afrikaans"
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"iso_639_1": "an",
|
| 429 |
+
"english_name": "Aragonese",
|
| 430 |
+
"name": ""
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"iso_639_1": "fy",
|
| 434 |
+
"english_name": "Frisian",
|
| 435 |
+
"name": ""
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"iso_639_1": "gu",
|
| 439 |
+
"english_name": "Gujarati",
|
| 440 |
+
"name": ""
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"iso_639_1": "ik",
|
| 444 |
+
"english_name": "Inupiaq",
|
| 445 |
+
"name": ""
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"iso_639_1": "ja",
|
| 449 |
+
"english_name": "Japanese",
|
| 450 |
+
"name": "日本語"
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"iso_639_1": "ko",
|
| 454 |
+
"english_name": "Korean",
|
| 455 |
+
"name": "한국어/조선말"
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"iso_639_1": "lg",
|
| 459 |
+
"english_name": "Ganda",
|
| 460 |
+
"name": ""
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"iso_639_1": "nl",
|
| 464 |
+
"english_name": "Dutch",
|
| 465 |
+
"name": "Nederlands"
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"iso_639_1": "os",
|
| 469 |
+
"english_name": "Ossetian; Ossetic",
|
| 470 |
+
"name": ""
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"iso_639_1": "el",
|
| 474 |
+
"english_name": "Greek",
|
| 475 |
+
"name": "ελληνικά"
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"iso_639_1": "bn",
|
| 479 |
+
"english_name": "Bengali",
|
| 480 |
+
"name": "বাংলা"
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"iso_639_1": "cr",
|
| 484 |
+
"english_name": "Cree",
|
| 485 |
+
"name": ""
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"iso_639_1": "km",
|
| 489 |
+
"english_name": "Khmer",
|
| 490 |
+
"name": ""
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"iso_639_1": "lo",
|
| 494 |
+
"english_name": "Lao",
|
| 495 |
+
"name": ""
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"iso_639_1": "nd",
|
| 499 |
+
"english_name": "Ndebele",
|
| 500 |
+
"name": ""
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"iso_639_1": "ne",
|
| 504 |
+
"english_name": "Nepali",
|
| 505 |
+
"name": ""
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"iso_639_1": "sc",
|
| 509 |
+
"english_name": "Sardinian",
|
| 510 |
+
"name": ""
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"iso_639_1": "sw",
|
| 514 |
+
"english_name": "Swahili",
|
| 515 |
+
"name": "Kiswahili"
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"iso_639_1": "tl",
|
| 519 |
+
"english_name": "Tagalog",
|
| 520 |
+
"name": ""
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"iso_639_1": "ur",
|
| 524 |
+
"english_name": "Urdu",
|
| 525 |
+
"name": "اردو"
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"iso_639_1": "ee",
|
| 529 |
+
"english_name": "Ewe",
|
| 530 |
+
"name": "Èʋegbe"
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"iso_639_1": "aa",
|
| 534 |
+
"english_name": "Afar",
|
| 535 |
+
"name": ""
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"iso_639_1": "co",
|
| 539 |
+
"english_name": "Corsican",
|
| 540 |
+
"name": ""
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"iso_639_1": "et",
|
| 544 |
+
"english_name": "Estonian",
|
| 545 |
+
"name": "Eesti"
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"iso_639_1": "is",
|
| 549 |
+
"english_name": "Icelandic",
|
| 550 |
+
"name": "Íslenska"
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"iso_639_1": "ks",
|
| 554 |
+
"english_name": "Kashmiri",
|
| 555 |
+
"name": ""
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"iso_639_1": "kr",
|
| 559 |
+
"english_name": "Kanuri",
|
| 560 |
+
"name": ""
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"iso_639_1": "ky",
|
| 564 |
+
"english_name": "Kirghiz",
|
| 565 |
+
"name": "??????"
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"iso_639_1": "kj",
|
| 569 |
+
"english_name": "Kuanyama",
|
| 570 |
+
"name": ""
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"iso_639_1": "nr",
|
| 574 |
+
"english_name": "Ndebele",
|
| 575 |
+
"name": ""
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"iso_639_1": "or",
|
| 579 |
+
"english_name": "Oriya",
|
| 580 |
+
"name": ""
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"iso_639_1": "wo",
|
| 584 |
+
"english_name": "Wolof",
|
| 585 |
+
"name": "Wolof"
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"iso_639_1": "za",
|
| 589 |
+
"english_name": "Zhuang",
|
| 590 |
+
"name": ""
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"iso_639_1": "ar",
|
| 594 |
+
"english_name": "Arabic",
|
| 595 |
+
"name": "العربية"
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"iso_639_1": "cv",
|
| 599 |
+
"english_name": "Chuvash",
|
| 600 |
+
"name": ""
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"iso_639_1": "fo",
|
| 604 |
+
"english_name": "Faroese",
|
| 605 |
+
"name": ""
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"iso_639_1": "hr",
|
| 609 |
+
"english_name": "Croatian",
|
| 610 |
+
"name": "Hrvatski"
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"iso_639_1": "ms",
|
| 614 |
+
"english_name": "Malay",
|
| 615 |
+
"name": "Bahasa melayu"
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"iso_639_1": "nb",
|
| 619 |
+
"english_name": "Norwegian Bokmål",
|
| 620 |
+
"name": "Bokmål"
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"iso_639_1": "rn",
|
| 624 |
+
"english_name": "Rundi",
|
| 625 |
+
"name": "Kirundi"
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"iso_639_1": "sn",
|
| 629 |
+
"english_name": "Shona",
|
| 630 |
+
"name": ""
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"iso_639_1": "st",
|
| 634 |
+
"english_name": "Sotho",
|
| 635 |
+
"name": ""
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"iso_639_1": "tr",
|
| 639 |
+
"english_name": "Turkish",
|
| 640 |
+
"name": "Türkçe"
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"iso_639_1": "am",
|
| 644 |
+
"english_name": "Amharic",
|
| 645 |
+
"name": ""
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"iso_639_1": "fa",
|
| 649 |
+
"english_name": "Persian",
|
| 650 |
+
"name": "فارسی"
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"iso_639_1": "hy",
|
| 654 |
+
"english_name": "Armenian",
|
| 655 |
+
"name": ""
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"iso_639_1": "pa",
|
| 659 |
+
"english_name": "Punjabi",
|
| 660 |
+
"name": "ਪੰਜਾਬੀ"
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"iso_639_1": "as",
|
| 664 |
+
"english_name": "Assamese",
|
| 665 |
+
"name": ""
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"iso_639_1": "ia",
|
| 669 |
+
"english_name": "Interlingua",
|
| 670 |
+
"name": ""
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"iso_639_1": "lv",
|
| 674 |
+
"english_name": "Latvian",
|
| 675 |
+
"name": "Latviešu"
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"iso_639_1": "lu",
|
| 679 |
+
"english_name": "Luba-Katanga",
|
| 680 |
+
"name": ""
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"iso_639_1": "mr",
|
| 684 |
+
"english_name": "Marathi",
|
| 685 |
+
"name": ""
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"iso_639_1": "mn",
|
| 689 |
+
"english_name": "Mongolian",
|
| 690 |
+
"name": ""
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"iso_639_1": "pt",
|
| 694 |
+
"english_name": "Portuguese",
|
| 695 |
+
"name": "Português"
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"iso_639_1": "th",
|
| 699 |
+
"english_name": "Thai",
|
| 700 |
+
"name": "ภาษาไทย"
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"iso_639_1": "tk",
|
| 704 |
+
"english_name": "Turkmen",
|
| 705 |
+
"name": ""
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"iso_639_1": "ve",
|
| 709 |
+
"english_name": "Venda",
|
| 710 |
+
"name": ""
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"iso_639_1": "dv",
|
| 714 |
+
"english_name": "Divehi",
|
| 715 |
+
"name": ""
|
| 716 |
+
},
|
| 717 |
+
{
|
| 718 |
+
"iso_639_1": "gv",
|
| 719 |
+
"english_name": "Manx",
|
| 720 |
+
"name": ""
|
| 721 |
+
},
|
| 722 |
+
{
|
| 723 |
+
"iso_639_1": "kl",
|
| 724 |
+
"english_name": "Kalaallisut",
|
| 725 |
+
"name": ""
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"iso_639_1": "kk",
|
| 729 |
+
"english_name": "Kazakh",
|
| 730 |
+
"name": "қазақ"
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"iso_639_1": "lt",
|
| 734 |
+
"english_name": "Lithuanian",
|
| 735 |
+
"name": "Lietuvių"
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"iso_639_1": "my",
|
| 739 |
+
"english_name": "Burmese",
|
| 740 |
+
"name": ""
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"iso_639_1": "sl",
|
| 744 |
+
"english_name": "Slovenian",
|
| 745 |
+
"name": "Slovenščina"
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"iso_639_1": "sd",
|
| 749 |
+
"english_name": "Sindhi",
|
| 750 |
+
"name": ""
|
| 751 |
+
},
|
| 752 |
+
{
|
| 753 |
+
"iso_639_1": "cn",
|
| 754 |
+
"english_name": "Cantonese",
|
| 755 |
+
"name": "广州话 / 廣州話"
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"iso_639_1": "hi",
|
| 759 |
+
"english_name": "Hindi",
|
| 760 |
+
"name": "हिन्दी"
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"iso_639_1": "cy",
|
| 764 |
+
"english_name": "Welsh",
|
| 765 |
+
"name": "Cymraeg"
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"iso_639_1": "ht",
|
| 769 |
+
"english_name": "Haitian; Haitian Creole",
|
| 770 |
+
"name": ""
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"iso_639_1": "iu",
|
| 774 |
+
"english_name": "Inuktitut",
|
| 775 |
+
"name": ""
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"iso_639_1": "jv",
|
| 779 |
+
"english_name": "Javanese",
|
| 780 |
+
"name": ""
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"iso_639_1": "mh",
|
| 784 |
+
"english_name": "Marshall",
|
| 785 |
+
"name": ""
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"iso_639_1": "sa",
|
| 789 |
+
"english_name": "Sanskrit",
|
| 790 |
+
"name": ""
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"iso_639_1": "ss",
|
| 794 |
+
"english_name": "Swati",
|
| 795 |
+
"name": ""
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"iso_639_1": "te",
|
| 799 |
+
"english_name": "Telugu",
|
| 800 |
+
"name": "తెలుగు"
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"iso_639_1": "kg",
|
| 804 |
+
"english_name": "Kongo",
|
| 805 |
+
"name": ""
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"iso_639_1": "ml",
|
| 809 |
+
"english_name": "Malayalam",
|
| 810 |
+
"name": ""
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"iso_639_1": "uz",
|
| 814 |
+
"english_name": "Uzbek",
|
| 815 |
+
"name": "ozbek"
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"iso_639_1": "sg",
|
| 819 |
+
"english_name": "Sango",
|
| 820 |
+
"name": ""
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"iso_639_1": "xh",
|
| 824 |
+
"english_name": "Xhosa",
|
| 825 |
+
"name": ""
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"iso_639_1": "es",
|
| 829 |
+
"english_name": "Spanish",
|
| 830 |
+
"name": "Español"
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"iso_639_1": "su",
|
| 834 |
+
"english_name": "Sundanese",
|
| 835 |
+
"name": ""
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"iso_639_1": "ug",
|
| 839 |
+
"english_name": "Uighur",
|
| 840 |
+
"name": ""
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"iso_639_1": "yi",
|
| 844 |
+
"english_name": "Yiddish",
|
| 845 |
+
"name": ""
|
| 846 |
+
},
|
| 847 |
+
{
|
| 848 |
+
"iso_639_1": "yo",
|
| 849 |
+
"english_name": "Yoruba",
|
| 850 |
+
"name": "Èdè Yorùbá"
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"iso_639_1": "zh",
|
| 854 |
+
"english_name": "Mandarin",
|
| 855 |
+
"name": "普通话"
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"iso_639_1": "he",
|
| 859 |
+
"english_name": "Hebrew",
|
| 860 |
+
"name": "עִבְרִית"
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"iso_639_1": "bo",
|
| 864 |
+
"english_name": "Tibetan",
|
| 865 |
+
"name": ""
|
| 866 |
+
},
|
| 867 |
+
{
|
| 868 |
+
"iso_639_1": "ak",
|
| 869 |
+
"english_name": "Akan",
|
| 870 |
+
"name": ""
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"iso_639_1": "mo",
|
| 874 |
+
"english_name": "Moldavian",
|
| 875 |
+
"name": ""
|
| 876 |
+
},
|
| 877 |
+
{
|
| 878 |
+
"iso_639_1": "ng",
|
| 879 |
+
"english_name": "Ndonga",
|
| 880 |
+
"name": ""
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"iso_639_1": "dz",
|
| 884 |
+
"english_name": "Dzongkha",
|
| 885 |
+
"name": ""
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"iso_639_1": "ff",
|
| 889 |
+
"english_name": "Fulah",
|
| 890 |
+
"name": "Fulfulde"
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"iso_639_1": "gd",
|
| 894 |
+
"english_name": "Gaelic",
|
| 895 |
+
"name": ""
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"iso_639_1": "ga",
|
| 899 |
+
"english_name": "Irish",
|
| 900 |
+
"name": "Gaeilge"
|
| 901 |
+
},
|
| 902 |
+
{
|
| 903 |
+
"iso_639_1": "gl",
|
| 904 |
+
"english_name": "Galician",
|
| 905 |
+
"name": "Galego"
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"iso_639_1": "nv",
|
| 909 |
+
"english_name": "Navajo",
|
| 910 |
+
"name": ""
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"iso_639_1": "oc",
|
| 914 |
+
"english_name": "Occitan",
|
| 915 |
+
"name": ""
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"iso_639_1": "ro",
|
| 919 |
+
"english_name": "Romanian",
|
| 920 |
+
"name": "Română"
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"iso_639_1": "ta",
|
| 924 |
+
"english_name": "Tamil",
|
| 925 |
+
"name": "தமிழ்"
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"iso_639_1": "tn",
|
| 929 |
+
"english_name": "Tswana",
|
| 930 |
+
"name": ""
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"iso_639_1": "bg",
|
| 934 |
+
"english_name": "Bulgarian",
|
| 935 |
+
"name": "български език"
|
| 936 |
+
}
|
| 937 |
+
]
|
doc/regions.json
ADDED
|
@@ -0,0 +1,699 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"results": [
|
| 3 |
+
{
|
| 4 |
+
"iso_3166_1": "AD",
|
| 5 |
+
"english_name": "Andorra",
|
| 6 |
+
"native_name": "Andorra"
|
| 7 |
+
},
|
| 8 |
+
{
|
| 9 |
+
"iso_3166_1": "AE",
|
| 10 |
+
"english_name": "United Arab Emirates",
|
| 11 |
+
"native_name": "United Arab Emirates"
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"iso_3166_1": "AG",
|
| 15 |
+
"english_name": "Antigua and Barbuda",
|
| 16 |
+
"native_name": "Antigua & Barbuda"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"iso_3166_1": "AL",
|
| 20 |
+
"english_name": "Albania",
|
| 21 |
+
"native_name": "Albania"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"iso_3166_1": "AO",
|
| 25 |
+
"english_name": "Angola",
|
| 26 |
+
"native_name": "Angola"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"iso_3166_1": "AR",
|
| 30 |
+
"english_name": "Argentina",
|
| 31 |
+
"native_name": "Argentina"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"iso_3166_1": "AT",
|
| 35 |
+
"english_name": "Austria",
|
| 36 |
+
"native_name": "Austria"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"iso_3166_1": "AU",
|
| 40 |
+
"english_name": "Australia",
|
| 41 |
+
"native_name": "Australia"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"iso_3166_1": "AZ",
|
| 45 |
+
"english_name": "Azerbaijan",
|
| 46 |
+
"native_name": "Azerbaijan"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"iso_3166_1": "BA",
|
| 50 |
+
"english_name": "Bosnia and Herzegovina",
|
| 51 |
+
"native_name": "Bosnia & Herzegovina"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"iso_3166_1": "BB",
|
| 55 |
+
"english_name": "Barbados",
|
| 56 |
+
"native_name": "Barbados"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"iso_3166_1": "BE",
|
| 60 |
+
"english_name": "Belgium",
|
| 61 |
+
"native_name": "Belgium"
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"iso_3166_1": "BF",
|
| 65 |
+
"english_name": "Burkina Faso",
|
| 66 |
+
"native_name": "Burkina Faso"
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"iso_3166_1": "BG",
|
| 70 |
+
"english_name": "Bulgaria",
|
| 71 |
+
"native_name": "Bulgaria"
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"iso_3166_1": "BH",
|
| 75 |
+
"english_name": "Bahrain",
|
| 76 |
+
"native_name": "Bahrain"
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"iso_3166_1": "BM",
|
| 80 |
+
"english_name": "Bermuda",
|
| 81 |
+
"native_name": "Bermuda"
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"iso_3166_1": "BO",
|
| 85 |
+
"english_name": "Bolivia",
|
| 86 |
+
"native_name": "Bolivia"
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"iso_3166_1": "BR",
|
| 90 |
+
"english_name": "Brazil",
|
| 91 |
+
"native_name": "Brazil"
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"iso_3166_1": "BS",
|
| 95 |
+
"english_name": "Bahamas",
|
| 96 |
+
"native_name": "Bahamas"
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"iso_3166_1": "BY",
|
| 100 |
+
"english_name": "Belarus",
|
| 101 |
+
"native_name": "Belarus"
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"iso_3166_1": "BZ",
|
| 105 |
+
"english_name": "Belize",
|
| 106 |
+
"native_name": "Belize"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"iso_3166_1": "CA",
|
| 110 |
+
"english_name": "Canada",
|
| 111 |
+
"native_name": "Canada"
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"iso_3166_1": "CD",
|
| 115 |
+
"english_name": "Congo",
|
| 116 |
+
"native_name": "Democratic Republic of the Congo (Kinshasa)"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"iso_3166_1": "CH",
|
| 120 |
+
"english_name": "Switzerland",
|
| 121 |
+
"native_name": "Switzerland"
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"iso_3166_1": "CI",
|
| 125 |
+
"english_name": "Cote D'Ivoire",
|
| 126 |
+
"native_name": "Côte d’Ivoire"
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"iso_3166_1": "CL",
|
| 130 |
+
"english_name": "Chile",
|
| 131 |
+
"native_name": "Chile"
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"iso_3166_1": "CM",
|
| 135 |
+
"english_name": "Cameroon",
|
| 136 |
+
"native_name": "Cameroon"
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"iso_3166_1": "CO",
|
| 140 |
+
"english_name": "Colombia",
|
| 141 |
+
"native_name": "Colombia"
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"iso_3166_1": "CR",
|
| 145 |
+
"english_name": "Costa Rica",
|
| 146 |
+
"native_name": "Costa Rica"
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"iso_3166_1": "CU",
|
| 150 |
+
"english_name": "Cuba",
|
| 151 |
+
"native_name": "Cuba"
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"iso_3166_1": "CV",
|
| 155 |
+
"english_name": "Cape Verde",
|
| 156 |
+
"native_name": "Cape Verde"
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"iso_3166_1": "CY",
|
| 160 |
+
"english_name": "Cyprus",
|
| 161 |
+
"native_name": "Cyprus"
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"iso_3166_1": "CZ",
|
| 165 |
+
"english_name": "Czech Republic",
|
| 166 |
+
"native_name": "Czech Republic"
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"iso_3166_1": "DE",
|
| 170 |
+
"english_name": "Germany",
|
| 171 |
+
"native_name": "Germany"
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"iso_3166_1": "DK",
|
| 175 |
+
"english_name": "Denmark",
|
| 176 |
+
"native_name": "Denmark"
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"iso_3166_1": "DO",
|
| 180 |
+
"english_name": "Dominican Republic",
|
| 181 |
+
"native_name": "Dominican Republic"
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"iso_3166_1": "DZ",
|
| 185 |
+
"english_name": "Algeria",
|
| 186 |
+
"native_name": "Algeria"
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"iso_3166_1": "EC",
|
| 190 |
+
"english_name": "Ecuador",
|
| 191 |
+
"native_name": "Ecuador"
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"iso_3166_1": "EE",
|
| 195 |
+
"english_name": "Estonia",
|
| 196 |
+
"native_name": "Estonia"
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"iso_3166_1": "EG",
|
| 200 |
+
"english_name": "Egypt",
|
| 201 |
+
"native_name": "Egypt"
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"iso_3166_1": "ES",
|
| 205 |
+
"english_name": "Spain",
|
| 206 |
+
"native_name": "Spain"
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"iso_3166_1": "FI",
|
| 210 |
+
"english_name": "Finland",
|
| 211 |
+
"native_name": "Finland"
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"iso_3166_1": "FJ",
|
| 215 |
+
"english_name": "Fiji",
|
| 216 |
+
"native_name": "Fiji"
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"iso_3166_1": "FR",
|
| 220 |
+
"english_name": "France",
|
| 221 |
+
"native_name": "France"
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"iso_3166_1": "GB",
|
| 225 |
+
"english_name": "United Kingdom",
|
| 226 |
+
"native_name": "United Kingdom"
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"iso_3166_1": "GF",
|
| 230 |
+
"english_name": "French Guiana",
|
| 231 |
+
"native_name": "French Guiana"
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"iso_3166_1": "GH",
|
| 235 |
+
"english_name": "Ghana",
|
| 236 |
+
"native_name": "Ghana"
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"iso_3166_1": "GI",
|
| 240 |
+
"english_name": "Gibraltar",
|
| 241 |
+
"native_name": "Gibraltar"
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"iso_3166_1": "GP",
|
| 245 |
+
"english_name": "Guadaloupe",
|
| 246 |
+
"native_name": "Guadeloupe"
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"iso_3166_1": "GQ",
|
| 250 |
+
"english_name": "Equatorial Guinea",
|
| 251 |
+
"native_name": "Equatorial Guinea"
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"iso_3166_1": "GR",
|
| 255 |
+
"english_name": "Greece",
|
| 256 |
+
"native_name": "Greece"
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"iso_3166_1": "GT",
|
| 260 |
+
"english_name": "Guatemala",
|
| 261 |
+
"native_name": "Guatemala"
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"iso_3166_1": "GY",
|
| 265 |
+
"english_name": "Guyana",
|
| 266 |
+
"native_name": "Guyana"
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"iso_3166_1": "HK",
|
| 270 |
+
"english_name": "Hong Kong",
|
| 271 |
+
"native_name": "Hong Kong SAR China"
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"iso_3166_1": "HN",
|
| 275 |
+
"english_name": "Honduras",
|
| 276 |
+
"native_name": "Honduras"
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"iso_3166_1": "HR",
|
| 280 |
+
"english_name": "Croatia",
|
| 281 |
+
"native_name": "Croatia"
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"iso_3166_1": "HU",
|
| 285 |
+
"english_name": "Hungary",
|
| 286 |
+
"native_name": "Hungary"
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"iso_3166_1": "ID",
|
| 290 |
+
"english_name": "Indonesia",
|
| 291 |
+
"native_name": "Indonesia"
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"iso_3166_1": "IE",
|
| 295 |
+
"english_name": "Ireland",
|
| 296 |
+
"native_name": "Ireland"
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"iso_3166_1": "IL",
|
| 300 |
+
"english_name": "Israel",
|
| 301 |
+
"native_name": "Israel"
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"iso_3166_1": "IN",
|
| 305 |
+
"english_name": "India",
|
| 306 |
+
"native_name": "India"
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"iso_3166_1": "IQ",
|
| 310 |
+
"english_name": "Iraq",
|
| 311 |
+
"native_name": "Iraq"
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"iso_3166_1": "IS",
|
| 315 |
+
"english_name": "Iceland",
|
| 316 |
+
"native_name": "Iceland"
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"iso_3166_1": "IT",
|
| 320 |
+
"english_name": "Italy",
|
| 321 |
+
"native_name": "Italy"
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"iso_3166_1": "JM",
|
| 325 |
+
"english_name": "Jamaica",
|
| 326 |
+
"native_name": "Jamaica"
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"iso_3166_1": "JO",
|
| 330 |
+
"english_name": "Jordan",
|
| 331 |
+
"native_name": "Jordan"
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"iso_3166_1": "JP",
|
| 335 |
+
"english_name": "Japan",
|
| 336 |
+
"native_name": "Japan"
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"iso_3166_1": "KE",
|
| 340 |
+
"english_name": "Kenya",
|
| 341 |
+
"native_name": "Kenya"
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"iso_3166_1": "KR",
|
| 345 |
+
"english_name": "South Korea",
|
| 346 |
+
"native_name": "South Korea"
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"iso_3166_1": "KW",
|
| 350 |
+
"english_name": "Kuwait",
|
| 351 |
+
"native_name": "Kuwait"
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"iso_3166_1": "LB",
|
| 355 |
+
"english_name": "Lebanon",
|
| 356 |
+
"native_name": "Lebanon"
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"iso_3166_1": "LC",
|
| 360 |
+
"english_name": "St. Lucia",
|
| 361 |
+
"native_name": "St. Lucia"
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"iso_3166_1": "LI",
|
| 365 |
+
"english_name": "Liechtenstein",
|
| 366 |
+
"native_name": "Liechtenstein"
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"iso_3166_1": "LT",
|
| 370 |
+
"english_name": "Lithuania",
|
| 371 |
+
"native_name": "Lithuania"
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"iso_3166_1": "LU",
|
| 375 |
+
"english_name": "Luxembourg",
|
| 376 |
+
"native_name": "Luxembourg"
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"iso_3166_1": "LV",
|
| 380 |
+
"english_name": "Latvia",
|
| 381 |
+
"native_name": "Latvia"
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"iso_3166_1": "LY",
|
| 385 |
+
"english_name": "Libyan Arab Jamahiriya",
|
| 386 |
+
"native_name": "Libya"
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"iso_3166_1": "MA",
|
| 390 |
+
"english_name": "Morocco",
|
| 391 |
+
"native_name": "Morocco"
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"iso_3166_1": "MC",
|
| 395 |
+
"english_name": "Monaco",
|
| 396 |
+
"native_name": "Monaco"
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"iso_3166_1": "MD",
|
| 400 |
+
"english_name": "Moldova",
|
| 401 |
+
"native_name": "Moldova"
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"iso_3166_1": "ME",
|
| 405 |
+
"english_name": "Montenegro",
|
| 406 |
+
"native_name": "Montenegro"
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"iso_3166_1": "MG",
|
| 410 |
+
"english_name": "Madagascar",
|
| 411 |
+
"native_name": "Madagascar"
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"iso_3166_1": "MK",
|
| 415 |
+
"english_name": "Macedonia",
|
| 416 |
+
"native_name": "Macedonia"
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"iso_3166_1": "ML",
|
| 420 |
+
"english_name": "Mali",
|
| 421 |
+
"native_name": "Mali"
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"iso_3166_1": "MT",
|
| 425 |
+
"english_name": "Malta",
|
| 426 |
+
"native_name": "Malta"
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"iso_3166_1": "MU",
|
| 430 |
+
"english_name": "Mauritius",
|
| 431 |
+
"native_name": "Mauritius"
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"iso_3166_1": "MW",
|
| 435 |
+
"english_name": "Malawi",
|
| 436 |
+
"native_name": "Malawi"
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"iso_3166_1": "MX",
|
| 440 |
+
"english_name": "Mexico",
|
| 441 |
+
"native_name": "Mexico"
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"iso_3166_1": "MY",
|
| 445 |
+
"english_name": "Malaysia",
|
| 446 |
+
"native_name": "Malaysia"
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"iso_3166_1": "MZ",
|
| 450 |
+
"english_name": "Mozambique",
|
| 451 |
+
"native_name": "Mozambique"
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"iso_3166_1": "NE",
|
| 455 |
+
"english_name": "Niger",
|
| 456 |
+
"native_name": "Niger"
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"iso_3166_1": "NG",
|
| 460 |
+
"english_name": "Nigeria",
|
| 461 |
+
"native_name": "Nigeria"
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"iso_3166_1": "NI",
|
| 465 |
+
"english_name": "Nicaragua",
|
| 466 |
+
"native_name": "Nicaragua"
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"iso_3166_1": "NL",
|
| 470 |
+
"english_name": "Netherlands",
|
| 471 |
+
"native_name": "Netherlands"
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"iso_3166_1": "NO",
|
| 475 |
+
"english_name": "Norway",
|
| 476 |
+
"native_name": "Norway"
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"iso_3166_1": "NZ",
|
| 480 |
+
"english_name": "New Zealand",
|
| 481 |
+
"native_name": "New Zealand"
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"iso_3166_1": "OM",
|
| 485 |
+
"english_name": "Oman",
|
| 486 |
+
"native_name": "Oman"
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"iso_3166_1": "PA",
|
| 490 |
+
"english_name": "Panama",
|
| 491 |
+
"native_name": "Panama"
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"iso_3166_1": "PE",
|
| 495 |
+
"english_name": "Peru",
|
| 496 |
+
"native_name": "Peru"
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"iso_3166_1": "PF",
|
| 500 |
+
"english_name": "French Polynesia",
|
| 501 |
+
"native_name": "French Polynesia"
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"iso_3166_1": "PG",
|
| 505 |
+
"english_name": "Papua New Guinea",
|
| 506 |
+
"native_name": "Papua New Guinea"
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"iso_3166_1": "PH",
|
| 510 |
+
"english_name": "Philippines",
|
| 511 |
+
"native_name": "Philippines"
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"iso_3166_1": "PK",
|
| 515 |
+
"english_name": "Pakistan",
|
| 516 |
+
"native_name": "Pakistan"
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"iso_3166_1": "PL",
|
| 520 |
+
"english_name": "Poland",
|
| 521 |
+
"native_name": "Poland"
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"iso_3166_1": "PS",
|
| 525 |
+
"english_name": "Palestinian Territory",
|
| 526 |
+
"native_name": "Palestinian Territories"
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"iso_3166_1": "PT",
|
| 530 |
+
"english_name": "Portugal",
|
| 531 |
+
"native_name": "Portugal"
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"iso_3166_1": "PY",
|
| 535 |
+
"english_name": "Paraguay",
|
| 536 |
+
"native_name": "Paraguay"
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"iso_3166_1": "QA",
|
| 540 |
+
"english_name": "Qatar",
|
| 541 |
+
"native_name": "Qatar"
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"iso_3166_1": "RO",
|
| 545 |
+
"english_name": "Romania",
|
| 546 |
+
"native_name": "Romania"
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"iso_3166_1": "RS",
|
| 550 |
+
"english_name": "Serbia",
|
| 551 |
+
"native_name": "Serbia"
|
| 552 |
+
},
|
| 553 |
+
{
|
| 554 |
+
"iso_3166_1": "RU",
|
| 555 |
+
"english_name": "Russia",
|
| 556 |
+
"native_name": "Russia"
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"iso_3166_1": "SA",
|
| 560 |
+
"english_name": "Saudi Arabia",
|
| 561 |
+
"native_name": "Saudi Arabia"
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"iso_3166_1": "SC",
|
| 565 |
+
"english_name": "Seychelles",
|
| 566 |
+
"native_name": "Seychelles"
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"iso_3166_1": "SE",
|
| 570 |
+
"english_name": "Sweden",
|
| 571 |
+
"native_name": "Sweden"
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"iso_3166_1": "SG",
|
| 575 |
+
"english_name": "Singapore",
|
| 576 |
+
"native_name": "Singapore"
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"iso_3166_1": "SI",
|
| 580 |
+
"english_name": "Slovenia",
|
| 581 |
+
"native_name": "Slovenia"
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"iso_3166_1": "SK",
|
| 585 |
+
"english_name": "Slovakia",
|
| 586 |
+
"native_name": "Slovakia"
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"iso_3166_1": "SM",
|
| 590 |
+
"english_name": "San Marino",
|
| 591 |
+
"native_name": "San Marino"
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"iso_3166_1": "SN",
|
| 595 |
+
"english_name": "Senegal",
|
| 596 |
+
"native_name": "Senegal"
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"iso_3166_1": "SV",
|
| 600 |
+
"english_name": "El Salvador",
|
| 601 |
+
"native_name": "El Salvador"
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"iso_3166_1": "TC",
|
| 605 |
+
"english_name": "Turks and Caicos Islands",
|
| 606 |
+
"native_name": "Turks & Caicos Islands"
|
| 607 |
+
},
|
| 608 |
+
{
|
| 609 |
+
"iso_3166_1": "TD",
|
| 610 |
+
"english_name": "Chad",
|
| 611 |
+
"native_name": "Chad"
|
| 612 |
+
},
|
| 613 |
+
{
|
| 614 |
+
"iso_3166_1": "TH",
|
| 615 |
+
"english_name": "Thailand",
|
| 616 |
+
"native_name": "Thailand"
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"iso_3166_1": "TN",
|
| 620 |
+
"english_name": "Tunisia",
|
| 621 |
+
"native_name": "Tunisia"
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"iso_3166_1": "TR",
|
| 625 |
+
"english_name": "Turkey",
|
| 626 |
+
"native_name": "Turkey"
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"iso_3166_1": "TT",
|
| 630 |
+
"english_name": "Trinidad and Tobago",
|
| 631 |
+
"native_name": "Trinidad & Tobago"
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"iso_3166_1": "TW",
|
| 635 |
+
"english_name": "Taiwan",
|
| 636 |
+
"native_name": "Taiwan"
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"iso_3166_1": "TZ",
|
| 640 |
+
"english_name": "Tanzania",
|
| 641 |
+
"native_name": "Tanzania"
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"iso_3166_1": "UA",
|
| 645 |
+
"english_name": "Ukraine",
|
| 646 |
+
"native_name": "Ukraine"
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"iso_3166_1": "UG",
|
| 650 |
+
"english_name": "Uganda",
|
| 651 |
+
"native_name": "Uganda"
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"iso_3166_1": "US",
|
| 655 |
+
"english_name": "United States of America",
|
| 656 |
+
"native_name": "United States"
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"iso_3166_1": "UY",
|
| 660 |
+
"english_name": "Uruguay",
|
| 661 |
+
"native_name": "Uruguay"
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"iso_3166_1": "VA",
|
| 665 |
+
"english_name": "Holy See",
|
| 666 |
+
"native_name": "Vatican City"
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"iso_3166_1": "VE",
|
| 670 |
+
"english_name": "Venezuela",
|
| 671 |
+
"native_name": "Venezuela"
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"iso_3166_1": "XK",
|
| 675 |
+
"english_name": "Kosovo",
|
| 676 |
+
"native_name": "Kosovo"
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"iso_3166_1": "YE",
|
| 680 |
+
"english_name": "Yemen",
|
| 681 |
+
"native_name": "Yemen"
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"iso_3166_1": "ZA",
|
| 685 |
+
"english_name": "South Africa",
|
| 686 |
+
"native_name": "South Africa"
|
| 687 |
+
},
|
| 688 |
+
{
|
| 689 |
+
"iso_3166_1": "ZM",
|
| 690 |
+
"english_name": "Zambia",
|
| 691 |
+
"native_name": "Zambia"
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"iso_3166_1": "ZW",
|
| 695 |
+
"english_name": "Zimbabwe",
|
| 696 |
+
"native_name": "Zimbabwe"
|
| 697 |
+
}
|
| 698 |
+
]
|
| 699 |
+
}
|
index.js
CHANGED
|
@@ -2,8 +2,8 @@ require('dotenv').config();
|
|
| 2 |
const express = require('express');
|
| 3 |
const cors = require('cors');
|
| 4 |
const path = require('path');
|
| 5 |
-
const log = require('./src/
|
| 6 |
-
const routes = require('./src/routes
|
| 7 |
|
| 8 |
const PORT = process.env.PORT || 7000;
|
| 9 |
const app = express();
|
|
@@ -12,10 +12,8 @@ app.use(cors());
|
|
| 12 |
|
| 13 |
app.use(express.static(path.join(__dirname, 'public')));
|
| 14 |
|
| 15 |
-
app.use(express.json());
|
| 16 |
-
|
| 17 |
app.use('/', routes);
|
| 18 |
|
| 19 |
app.listen(PORT, () => {
|
| 20 |
-
log.info(`
|
| 21 |
});
|
|
|
|
| 2 |
const express = require('express');
|
| 3 |
const cors = require('cors');
|
| 4 |
const path = require('path');
|
| 5 |
+
const log = require('./src/utils/logger');
|
| 6 |
+
const routes = require('./src/routes');
|
| 7 |
|
| 8 |
const PORT = process.env.PORT || 7000;
|
| 9 |
const app = express();
|
|
|
|
| 12 |
|
| 13 |
app.use(express.static(path.join(__dirname, 'public')));
|
| 14 |
|
|
|
|
|
|
|
| 15 |
app.use('/', routes);
|
| 16 |
|
| 17 |
app.listen(PORT, () => {
|
| 18 |
+
log.info(`Express server running on port ${PORT} in ${process.env.NODE_ENV || 'development'} mode.`);
|
| 19 |
});
|
package-lock.json
CHANGED
|
@@ -11,12 +11,10 @@
|
|
| 11 |
"dependencies": {
|
| 12 |
"async": "^3.2.6",
|
| 13 |
"axios": "^1.7.5",
|
| 14 |
-
"bottleneck": "^2.19.5",
|
| 15 |
"cors": "^2.8.5",
|
| 16 |
"dotenv": "^16.4.5",
|
| 17 |
"express": "^4.19.2",
|
| 18 |
-
"
|
| 19 |
-
"redis": "^4.7.0",
|
| 20 |
"winston": "^3.14.2",
|
| 21 |
"winston-daily-rotate-file": "^5.0.0"
|
| 22 |
}
|
|
@@ -41,63 +39,47 @@
|
|
| 41 |
"kuler": "^2.0.0"
|
| 42 |
}
|
| 43 |
},
|
| 44 |
-
"node_modules/@
|
| 45 |
-
"version": "1.
|
| 46 |
-
"resolved": "https://registry.npmjs.org/@
|
| 47 |
-
"integrity": "sha512-
|
| 48 |
"license": "MIT",
|
| 49 |
-
"
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
}
|
| 52 |
},
|
| 53 |
-
"node_modules/@
|
| 54 |
-
"version": "1.
|
| 55 |
-
"resolved": "https://registry.npmjs.org/@
|
| 56 |
-
"integrity": "sha512-
|
|
|
|
| 57 |
"license": "MIT",
|
|
|
|
| 58 |
"dependencies": {
|
| 59 |
-
"
|
| 60 |
-
"
|
| 61 |
-
"yallist": "4.0.0"
|
| 62 |
},
|
| 63 |
"engines": {
|
| 64 |
-
"node": ">=
|
| 65 |
-
}
|
| 66 |
-
},
|
| 67 |
-
"node_modules/@redis/graph": {
|
| 68 |
-
"version": "1.1.1",
|
| 69 |
-
"resolved": "https://registry.npmjs.org/@redis/graph/-/graph-1.1.1.tgz",
|
| 70 |
-
"integrity": "sha512-FEMTcTHZozZciLRl6GiiIB4zGm5z5F3F6a6FZCyrfxdKOhFlGkiAqlexWMBzCi4DcRoyiOsuLfW+cjlGWyExOw==",
|
| 71 |
-
"license": "MIT",
|
| 72 |
-
"peerDependencies": {
|
| 73 |
-
"@redis/client": "^1.0.0"
|
| 74 |
-
}
|
| 75 |
-
},
|
| 76 |
-
"node_modules/@redis/json": {
|
| 77 |
-
"version": "1.0.7",
|
| 78 |
-
"resolved": "https://registry.npmjs.org/@redis/json/-/json-1.0.7.tgz",
|
| 79 |
-
"integrity": "sha512-6UyXfjVaTBTJtKNG4/9Z8PSpKE6XgSyEb8iwaqDcy+uKrd/DGYHTWkUdnQDyzm727V7p21WUMhsqz5oy65kPcQ==",
|
| 80 |
-
"license": "MIT",
|
| 81 |
-
"peerDependencies": {
|
| 82 |
-
"@redis/client": "^1.0.0"
|
| 83 |
-
}
|
| 84 |
-
},
|
| 85 |
-
"node_modules/@redis/search": {
|
| 86 |
-
"version": "1.2.0",
|
| 87 |
-
"resolved": "https://registry.npmjs.org/@redis/search/-/search-1.2.0.tgz",
|
| 88 |
-
"integrity": "sha512-tYoDBbtqOVigEDMAcTGsRlMycIIjwMCgD8eR2t0NANeQmgK/lvxNAvYyb6bZDD4frHRhIHkJu2TBRvB0ERkOmw==",
|
| 89 |
-
"license": "MIT",
|
| 90 |
-
"peerDependencies": {
|
| 91 |
-
"@redis/client": "^1.0.0"
|
| 92 |
}
|
| 93 |
},
|
| 94 |
-
"node_modules/@
|
| 95 |
-
"version": "1.1.
|
| 96 |
-
"resolved": "https://registry.npmjs.org/@
|
| 97 |
-
"integrity": "sha512-
|
| 98 |
"license": "MIT",
|
| 99 |
-
"
|
| 100 |
-
|
|
|
|
| 101 |
}
|
| 102 |
},
|
| 103 |
"node_modules/@types/triple-beam": {
|
|
@@ -106,6 +88,13 @@
|
|
| 106 |
"integrity": "sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw==",
|
| 107 |
"license": "MIT"
|
| 108 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
"node_modules/accepts": {
|
| 110 |
"version": "1.3.8",
|
| 111 |
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
|
|
@@ -119,6 +108,103 @@
|
|
| 119 |
"node": ">= 0.6"
|
| 120 |
}
|
| 121 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
"node_modules/array-flatten": {
|
| 123 |
"version": "1.1.1",
|
| 124 |
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
|
@@ -148,6 +234,53 @@
|
|
| 148 |
"proxy-from-env": "^1.1.0"
|
| 149 |
}
|
| 150 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
"node_modules/body-parser": {
|
| 152 |
"version": "1.20.2",
|
| 153 |
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz",
|
|
@@ -172,11 +305,40 @@
|
|
| 172 |
"npm": "1.2.8000 || >= 1.4.16"
|
| 173 |
}
|
| 174 |
},
|
| 175 |
-
"node_modules/
|
| 176 |
-
"version": "
|
| 177 |
-
"resolved": "https://registry.npmjs.org/
|
| 178 |
-
"integrity": "sha512-
|
| 179 |
-
"license": "MIT"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
},
|
| 181 |
"node_modules/bytes": {
|
| 182 |
"version": "3.1.2",
|
|
@@ -187,6 +349,36 @@
|
|
| 187 |
"node": ">= 0.8"
|
| 188 |
}
|
| 189 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 190 |
"node_modules/call-bind": {
|
| 191 |
"version": "1.0.7",
|
| 192 |
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",
|
|
@@ -206,13 +398,23 @@
|
|
| 206 |
"url": "https://github.com/sponsors/ljharb"
|
| 207 |
}
|
| 208 |
},
|
| 209 |
-
"node_modules/
|
| 210 |
-
"version": "
|
| 211 |
-
"resolved": "https://registry.npmjs.org/
|
| 212 |
-
"integrity": "sha512-
|
| 213 |
-
"license": "
|
| 214 |
"engines": {
|
| 215 |
-
"node": ">=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
}
|
| 217 |
},
|
| 218 |
"node_modules/color": {
|
|
@@ -250,6 +452,16 @@
|
|
| 250 |
"simple-swizzle": "^0.2.2"
|
| 251 |
}
|
| 252 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 253 |
"node_modules/colorspace": {
|
| 254 |
"version": "1.1.4",
|
| 255 |
"resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.1.4.tgz",
|
|
@@ -272,6 +484,20 @@
|
|
| 272 |
"node": ">= 0.8"
|
| 273 |
}
|
| 274 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 275 |
"node_modules/content-disposition": {
|
| 276 |
"version": "0.5.4",
|
| 277 |
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
|
|
@@ -330,6 +556,30 @@
|
|
| 330 |
"ms": "2.0.0"
|
| 331 |
}
|
| 332 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 333 |
"node_modules/define-data-property": {
|
| 334 |
"version": "1.1.4",
|
| 335 |
"resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
|
|
@@ -356,6 +606,13 @@
|
|
| 356 |
"node": ">=0.4.0"
|
| 357 |
}
|
| 358 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 359 |
"node_modules/depd": {
|
| 360 |
"version": "2.0.0",
|
| 361 |
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
|
@@ -375,6 +632,15 @@
|
|
| 375 |
"npm": "1.2.8000 || >= 1.4.16"
|
| 376 |
}
|
| 377 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 378 |
"node_modules/dotenv": {
|
| 379 |
"version": "16.4.5",
|
| 380 |
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz",
|
|
@@ -393,6 +659,13 @@
|
|
| 393 |
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
|
| 394 |
"license": "MIT"
|
| 395 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 396 |
"node_modules/enabled": {
|
| 397 |
"version": "2.0.0",
|
| 398 |
"resolved": "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz",
|
|
@@ -408,6 +681,55 @@
|
|
| 408 |
"node": ">= 0.8"
|
| 409 |
}
|
| 410 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 411 |
"node_modules/es-define-property": {
|
| 412 |
"version": "1.0.0",
|
| 413 |
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",
|
|
@@ -444,6 +766,15 @@
|
|
| 444 |
"node": ">= 0.6"
|
| 445 |
}
|
| 446 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 447 |
"node_modules/express": {
|
| 448 |
"version": "4.19.2",
|
| 449 |
"resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz",
|
|
@@ -501,6 +832,12 @@
|
|
| 501 |
"moment": "^2.29.1"
|
| 502 |
}
|
| 503 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 504 |
"node_modules/finalhandler": {
|
| 505 |
"version": "1.2.0",
|
| 506 |
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz",
|
|
@@ -577,6 +914,31 @@
|
|
| 577 |
"node": ">= 0.6"
|
| 578 |
}
|
| 579 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 580 |
"node_modules/function-bind": {
|
| 581 |
"version": "1.1.2",
|
| 582 |
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
|
@@ -586,13 +948,25 @@
|
|
| 586 |
"url": "https://github.com/sponsors/ljharb"
|
| 587 |
}
|
| 588 |
},
|
| 589 |
-
"node_modules/
|
| 590 |
-
"version": "
|
| 591 |
-
"resolved": "https://registry.npmjs.org/
|
| 592 |
-
"integrity": "sha512-
|
| 593 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 594 |
"engines": {
|
| 595 |
-
"node": ">=
|
| 596 |
}
|
| 597 |
},
|
| 598 |
"node_modules/get-intrinsic": {
|
|
@@ -614,6 +988,34 @@
|
|
| 614 |
"url": "https://github.com/sponsors/ljharb"
|
| 615 |
}
|
| 616 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 617 |
"node_modules/gopd": {
|
| 618 |
"version": "1.0.1",
|
| 619 |
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
|
|
@@ -626,6 +1028,13 @@
|
|
| 626 |
"url": "https://github.com/sponsors/ljharb"
|
| 627 |
}
|
| 628 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 629 |
"node_modules/has-property-descriptors": {
|
| 630 |
"version": "1.0.2",
|
| 631 |
"resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
|
|
@@ -662,7 +1071,14 @@
|
|
| 662 |
"url": "https://github.com/sponsors/ljharb"
|
| 663 |
}
|
| 664 |
},
|
| 665 |
-
"node_modules/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 666 |
"version": "2.0.2",
|
| 667 |
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
| 668 |
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
|
@@ -674,6 +1090,13 @@
|
|
| 674 |
"node": ">= 0.4"
|
| 675 |
}
|
| 676 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 677 |
"node_modules/http-errors": {
|
| 678 |
"version": "2.0.0",
|
| 679 |
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
|
|
@@ -690,6 +1113,95 @@
|
|
| 690 |
"node": ">= 0.8"
|
| 691 |
}
|
| 692 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 693 |
"node_modules/iconv-lite": {
|
| 694 |
"version": "0.4.24",
|
| 695 |
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
|
@@ -702,12 +1214,91 @@
|
|
| 702 |
"node": ">=0.10.0"
|
| 703 |
}
|
| 704 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 705 |
"node_modules/inherits": {
|
| 706 |
"version": "2.0.4",
|
| 707 |
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
| 708 |
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
| 709 |
"license": "ISC"
|
| 710 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 711 |
"node_modules/ipaddr.js": {
|
| 712 |
"version": "1.9.1",
|
| 713 |
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
|
|
@@ -723,6 +1314,23 @@
|
|
| 723 |
"integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==",
|
| 724 |
"license": "MIT"
|
| 725 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 726 |
"node_modules/is-stream": {
|
| 727 |
"version": "2.0.1",
|
| 728 |
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
|
|
@@ -735,6 +1343,20 @@
|
|
| 735 |
"url": "https://github.com/sponsors/sindresorhus"
|
| 736 |
}
|
| 737 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 738 |
"node_modules/kuler": {
|
| 739 |
"version": "2.0.0",
|
| 740 |
"resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz",
|
|
@@ -764,6 +1386,47 @@
|
|
| 764 |
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
| 765 |
"license": "MIT"
|
| 766 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 767 |
"node_modules/media-typer": {
|
| 768 |
"version": "0.3.0",
|
| 769 |
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
|
@@ -821,6 +1484,153 @@
|
|
| 821 |
"node": ">= 0.6"
|
| 822 |
}
|
| 823 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 824 |
"node_modules/moment": {
|
| 825 |
"version": "2.30.1",
|
| 826 |
"resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz",
|
|
@@ -836,6 +1646,12 @@
|
|
| 836 |
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
|
| 837 |
"license": "MIT"
|
| 838 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 839 |
"node_modules/negotiator": {
|
| 840 |
"version": "0.6.3",
|
| 841 |
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
|
|
@@ -845,6 +1661,82 @@
|
|
| 845 |
"node": ">= 0.6"
|
| 846 |
}
|
| 847 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 848 |
"node_modules/object-assign": {
|
| 849 |
"version": "4.1.1",
|
| 850 |
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
|
|
@@ -884,159 +1776,113 @@
|
|
| 884 |
"ee-first": "1.1.1"
|
| 885 |
},
|
| 886 |
"engines": {
|
| 887 |
-
"node": ">= 0.8"
|
| 888 |
-
}
|
| 889 |
-
},
|
| 890 |
-
"node_modules/one-time": {
|
| 891 |
-
"version": "1.0.0",
|
| 892 |
-
"resolved": "https://registry.npmjs.org/one-time/-/one-time-1.0.0.tgz",
|
| 893 |
-
"integrity": "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==",
|
| 894 |
-
"license": "MIT",
|
| 895 |
-
"dependencies": {
|
| 896 |
-
"fn.name": "1.x.x"
|
| 897 |
-
}
|
| 898 |
-
},
|
| 899 |
-
"node_modules/parseurl": {
|
| 900 |
-
"version": "1.3.3",
|
| 901 |
-
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
|
| 902 |
-
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
|
| 903 |
-
"license": "MIT",
|
| 904 |
-
"engines": {
|
| 905 |
-
"node": ">= 0.8"
|
| 906 |
-
}
|
| 907 |
-
},
|
| 908 |
-
"node_modules/path-to-regexp": {
|
| 909 |
-
"version": "0.1.7",
|
| 910 |
-
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
|
| 911 |
-
"integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==",
|
| 912 |
-
"license": "MIT"
|
| 913 |
-
},
|
| 914 |
-
"node_modules/pg": {
|
| 915 |
-
"version": "8.13.0",
|
| 916 |
-
"resolved": "https://registry.npmjs.org/pg/-/pg-8.13.0.tgz",
|
| 917 |
-
"integrity": "sha512-34wkUTh3SxTClfoHB3pQ7bIMvw9dpFU1audQQeZG837fmHfHpr14n/AELVDoOYVDW2h5RDWU78tFjkD+erSBsw==",
|
| 918 |
-
"license": "MIT",
|
| 919 |
-
"dependencies": {
|
| 920 |
-
"pg-connection-string": "^2.7.0",
|
| 921 |
-
"pg-pool": "^3.7.0",
|
| 922 |
-
"pg-protocol": "^1.7.0",
|
| 923 |
-
"pg-types": "^2.1.0",
|
| 924 |
-
"pgpass": "1.x"
|
| 925 |
-
},
|
| 926 |
-
"engines": {
|
| 927 |
-
"node": ">= 8.0.0"
|
| 928 |
-
},
|
| 929 |
-
"optionalDependencies": {
|
| 930 |
-
"pg-cloudflare": "^1.1.1"
|
| 931 |
-
},
|
| 932 |
-
"peerDependencies": {
|
| 933 |
-
"pg-native": ">=3.0.1"
|
| 934 |
-
},
|
| 935 |
-
"peerDependenciesMeta": {
|
| 936 |
-
"pg-native": {
|
| 937 |
-
"optional": true
|
| 938 |
-
}
|
| 939 |
-
}
|
| 940 |
-
},
|
| 941 |
-
"node_modules/pg-cloudflare": {
|
| 942 |
-
"version": "1.1.1",
|
| 943 |
-
"resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.1.1.tgz",
|
| 944 |
-
"integrity": "sha512-xWPagP/4B6BgFO+EKz3JONXv3YDgvkbVrGw2mTo3D6tVDQRh1e7cqVGvyR3BE+eQgAvx1XhW/iEASj4/jCWl3Q==",
|
| 945 |
-
"license": "MIT",
|
| 946 |
-
"optional": true
|
| 947 |
-
},
|
| 948 |
-
"node_modules/pg-connection-string": {
|
| 949 |
-
"version": "2.7.0",
|
| 950 |
-
"resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.7.0.tgz",
|
| 951 |
-
"integrity": "sha512-PI2W9mv53rXJQEOb8xNR8lH7Hr+EKa6oJa38zsK0S/ky2er16ios1wLKhZyxzD7jUReiWokc9WK5nxSnC7W1TA==",
|
| 952 |
-
"license": "MIT"
|
| 953 |
-
},
|
| 954 |
-
"node_modules/pg-int8": {
|
| 955 |
-
"version": "1.0.1",
|
| 956 |
-
"resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz",
|
| 957 |
-
"integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==",
|
| 958 |
-
"license": "ISC",
|
| 959 |
-
"engines": {
|
| 960 |
-
"node": ">=4.0.0"
|
| 961 |
}
|
| 962 |
},
|
| 963 |
-
"node_modules/
|
| 964 |
-
"version": "
|
| 965 |
-
"resolved": "https://registry.npmjs.org/
|
| 966 |
-
"integrity": "sha512-
|
| 967 |
-
"license": "
|
| 968 |
-
"
|
| 969 |
-
"
|
| 970 |
}
|
| 971 |
},
|
| 972 |
-
"node_modules/
|
| 973 |
-
"version": "1.
|
| 974 |
-
"resolved": "https://registry.npmjs.org/
|
| 975 |
-
"integrity": "sha512-
|
| 976 |
-
"license": "MIT"
|
| 977 |
-
},
|
| 978 |
-
"node_modules/pg-types": {
|
| 979 |
-
"version": "2.2.0",
|
| 980 |
-
"resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz",
|
| 981 |
-
"integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==",
|
| 982 |
"license": "MIT",
|
| 983 |
"dependencies": {
|
| 984 |
-
"
|
| 985 |
-
"postgres-array": "~2.0.0",
|
| 986 |
-
"postgres-bytea": "~1.0.0",
|
| 987 |
-
"postgres-date": "~1.0.4",
|
| 988 |
-
"postgres-interval": "^1.1.0"
|
| 989 |
-
},
|
| 990 |
-
"engines": {
|
| 991 |
-
"node": ">=4"
|
| 992 |
}
|
| 993 |
},
|
| 994 |
-
"node_modules/
|
| 995 |
-
"version": "
|
| 996 |
-
"resolved": "https://registry.npmjs.org/
|
| 997 |
-
"integrity": "sha512-
|
| 998 |
"license": "MIT",
|
|
|
|
| 999 |
"dependencies": {
|
| 1000 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1001 |
}
|
| 1002 |
},
|
| 1003 |
-
"node_modules/
|
| 1004 |
-
"version": "
|
| 1005 |
-
"resolved": "https://registry.npmjs.org/
|
| 1006 |
-
"integrity": "sha512-
|
| 1007 |
"license": "MIT",
|
| 1008 |
"engines": {
|
| 1009 |
-
"node": ">=
|
| 1010 |
}
|
| 1011 |
},
|
| 1012 |
-
"node_modules/
|
| 1013 |
-
"version": "1.0.
|
| 1014 |
-
"resolved": "https://registry.npmjs.org/
|
| 1015 |
-
"integrity": "sha512-
|
| 1016 |
"license": "MIT",
|
|
|
|
| 1017 |
"engines": {
|
| 1018 |
"node": ">=0.10.0"
|
| 1019 |
}
|
| 1020 |
},
|
| 1021 |
-
"node_modules/
|
| 1022 |
-
"version": "
|
| 1023 |
-
"resolved": "https://registry.npmjs.org/
|
| 1024 |
-
"integrity": "sha512-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1025 |
"license": "MIT",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1026 |
"engines": {
|
| 1027 |
-
"node": ">=
|
| 1028 |
}
|
| 1029 |
},
|
| 1030 |
-
"node_modules/
|
| 1031 |
-
"version": "1.
|
| 1032 |
-
"resolved": "https://registry.npmjs.org/
|
| 1033 |
-
"integrity": "sha512-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1034 |
"license": "MIT",
|
|
|
|
| 1035 |
"dependencies": {
|
| 1036 |
-
"
|
|
|
|
| 1037 |
},
|
| 1038 |
"engines": {
|
| 1039 |
-
"node": ">=
|
| 1040 |
}
|
| 1041 |
},
|
| 1042 |
"node_modules/proxy-addr": {
|
|
@@ -1058,6 +1904,16 @@
|
|
| 1058 |
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
|
| 1059 |
"license": "MIT"
|
| 1060 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1061 |
"node_modules/qs": {
|
| 1062 |
"version": "6.11.0",
|
| 1063 |
"resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",
|
|
@@ -1097,6 +1953,21 @@
|
|
| 1097 |
"node": ">= 0.8"
|
| 1098 |
}
|
| 1099 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1100 |
"node_modules/readable-stream": {
|
| 1101 |
"version": "3.6.2",
|
| 1102 |
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
|
|
@@ -1111,21 +1982,31 @@
|
|
| 1111 |
"node": ">= 6"
|
| 1112 |
}
|
| 1113 |
},
|
| 1114 |
-
"node_modules/
|
| 1115 |
-
"version": "
|
| 1116 |
-
"resolved": "https://registry.npmjs.org/
|
| 1117 |
-
"integrity": "sha512-
|
| 1118 |
"license": "MIT",
|
| 1119 |
-
"
|
| 1120 |
-
|
| 1121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1122 |
"dependencies": {
|
| 1123 |
-
"
|
| 1124 |
-
|
| 1125 |
-
|
| 1126 |
-
"
|
| 1127 |
-
|
| 1128 |
-
|
|
|
|
| 1129 |
}
|
| 1130 |
},
|
| 1131 |
"node_modules/safe-buffer": {
|
|
@@ -1163,6 +2044,18 @@
|
|
| 1163 |
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
|
| 1164 |
"license": "MIT"
|
| 1165 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1166 |
"node_modules/send": {
|
| 1167 |
"version": "0.18.0",
|
| 1168 |
"resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz",
|
|
@@ -1208,6 +2101,13 @@
|
|
| 1208 |
"node": ">= 0.8.0"
|
| 1209 |
}
|
| 1210 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1211 |
"node_modules/set-function-length": {
|
| 1212 |
"version": "1.2.2",
|
| 1213 |
"resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
|
|
@@ -1249,6 +2149,58 @@
|
|
| 1249 |
"url": "https://github.com/sponsors/ljharb"
|
| 1250 |
}
|
| 1251 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1252 |
"node_modules/simple-swizzle": {
|
| 1253 |
"version": "0.2.2",
|
| 1254 |
"resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz",
|
|
@@ -1258,13 +2210,114 @@
|
|
| 1258 |
"is-arrayish": "^0.3.1"
|
| 1259 |
}
|
| 1260 |
},
|
| 1261 |
-
"node_modules/
|
| 1262 |
"version": "4.2.0",
|
| 1263 |
-
"resolved": "https://registry.npmjs.org/
|
| 1264 |
-
"integrity": "sha512-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1265 |
"license": "ISC",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1266 |
"engines": {
|
| 1267 |
-
"node": ">=
|
| 1268 |
}
|
| 1269 |
},
|
| 1270 |
"node_modules/stack-trace": {
|
|
@@ -1294,6 +2347,103 @@
|
|
| 1294 |
"safe-buffer": "~5.2.0"
|
| 1295 |
}
|
| 1296 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1297 |
"node_modules/text-hex": {
|
| 1298 |
"version": "1.0.0",
|
| 1299 |
"resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz",
|
|
@@ -1318,6 +2468,18 @@
|
|
| 1318 |
"node": ">= 14.0.0"
|
| 1319 |
}
|
| 1320 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1321 |
"node_modules/type-is": {
|
| 1322 |
"version": "1.6.18",
|
| 1323 |
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
|
|
@@ -1331,6 +2493,26 @@
|
|
| 1331 |
"node": ">= 0.6"
|
| 1332 |
}
|
| 1333 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1334 |
"node_modules/unpipe": {
|
| 1335 |
"version": "1.0.0",
|
| 1336 |
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
|
|
@@ -1364,6 +2546,32 @@
|
|
| 1364 |
"node": ">= 0.8"
|
| 1365 |
}
|
| 1366 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1367 |
"node_modules/winston": {
|
| 1368 |
"version": "3.14.2",
|
| 1369 |
"resolved": "https://registry.npmjs.org/winston/-/winston-3.14.2.tgz",
|
|
@@ -1418,14 +2626,11 @@
|
|
| 1418 |
"node": ">= 12.0.0"
|
| 1419 |
}
|
| 1420 |
},
|
| 1421 |
-
"node_modules/
|
| 1422 |
-
"version": "
|
| 1423 |
-
"resolved": "https://registry.npmjs.org/
|
| 1424 |
-
"integrity": "sha512-
|
| 1425 |
-
"license": "
|
| 1426 |
-
"engines": {
|
| 1427 |
-
"node": ">=0.4"
|
| 1428 |
-
}
|
| 1429 |
},
|
| 1430 |
"node_modules/yallist": {
|
| 1431 |
"version": "4.0.0",
|
|
|
|
| 11 |
"dependencies": {
|
| 12 |
"async": "^3.2.6",
|
| 13 |
"axios": "^1.7.5",
|
|
|
|
| 14 |
"cors": "^2.8.5",
|
| 15 |
"dotenv": "^16.4.5",
|
| 16 |
"express": "^4.19.2",
|
| 17 |
+
"sqlite3": "^5.1.7",
|
|
|
|
| 18 |
"winston": "^3.14.2",
|
| 19 |
"winston-daily-rotate-file": "^5.0.0"
|
| 20 |
}
|
|
|
|
| 39 |
"kuler": "^2.0.0"
|
| 40 |
}
|
| 41 |
},
|
| 42 |
+
"node_modules/@gar/promisify": {
|
| 43 |
+
"version": "1.1.3",
|
| 44 |
+
"resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz",
|
| 45 |
+
"integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==",
|
| 46 |
"license": "MIT",
|
| 47 |
+
"optional": true
|
| 48 |
+
},
|
| 49 |
+
"node_modules/@npmcli/fs": {
|
| 50 |
+
"version": "1.1.1",
|
| 51 |
+
"resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.1.tgz",
|
| 52 |
+
"integrity": "sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==",
|
| 53 |
+
"license": "ISC",
|
| 54 |
+
"optional": true,
|
| 55 |
+
"dependencies": {
|
| 56 |
+
"@gar/promisify": "^1.0.1",
|
| 57 |
+
"semver": "^7.3.5"
|
| 58 |
}
|
| 59 |
},
|
| 60 |
+
"node_modules/@npmcli/move-file": {
|
| 61 |
+
"version": "1.1.2",
|
| 62 |
+
"resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.2.tgz",
|
| 63 |
+
"integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==",
|
| 64 |
+
"deprecated": "This functionality has been moved to @npmcli/fs",
|
| 65 |
"license": "MIT",
|
| 66 |
+
"optional": true,
|
| 67 |
"dependencies": {
|
| 68 |
+
"mkdirp": "^1.0.4",
|
| 69 |
+
"rimraf": "^3.0.2"
|
|
|
|
| 70 |
},
|
| 71 |
"engines": {
|
| 72 |
+
"node": ">=10"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
}
|
| 74 |
},
|
| 75 |
+
"node_modules/@tootallnate/once": {
|
| 76 |
+
"version": "1.1.2",
|
| 77 |
+
"resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz",
|
| 78 |
+
"integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==",
|
| 79 |
"license": "MIT",
|
| 80 |
+
"optional": true,
|
| 81 |
+
"engines": {
|
| 82 |
+
"node": ">= 6"
|
| 83 |
}
|
| 84 |
},
|
| 85 |
"node_modules/@types/triple-beam": {
|
|
|
|
| 88 |
"integrity": "sha512-6WaYesThRMCl19iryMYP7/x2OVgCtbIVflDGFpWnb9irXI3UjYE4AzmYuiUKY1AJstGijoY+MgUszMgRxIYTYw==",
|
| 89 |
"license": "MIT"
|
| 90 |
},
|
| 91 |
+
"node_modules/abbrev": {
|
| 92 |
+
"version": "1.1.1",
|
| 93 |
+
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
|
| 94 |
+
"integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
|
| 95 |
+
"license": "ISC",
|
| 96 |
+
"optional": true
|
| 97 |
+
},
|
| 98 |
"node_modules/accepts": {
|
| 99 |
"version": "1.3.8",
|
| 100 |
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
|
|
|
|
| 108 |
"node": ">= 0.6"
|
| 109 |
}
|
| 110 |
},
|
| 111 |
+
"node_modules/agent-base": {
|
| 112 |
+
"version": "6.0.2",
|
| 113 |
+
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
|
| 114 |
+
"integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
|
| 115 |
+
"license": "MIT",
|
| 116 |
+
"optional": true,
|
| 117 |
+
"dependencies": {
|
| 118 |
+
"debug": "4"
|
| 119 |
+
},
|
| 120 |
+
"engines": {
|
| 121 |
+
"node": ">= 6.0.0"
|
| 122 |
+
}
|
| 123 |
+
},
|
| 124 |
+
"node_modules/agent-base/node_modules/debug": {
|
| 125 |
+
"version": "4.3.6",
|
| 126 |
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz",
|
| 127 |
+
"integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==",
|
| 128 |
+
"license": "MIT",
|
| 129 |
+
"optional": true,
|
| 130 |
+
"dependencies": {
|
| 131 |
+
"ms": "2.1.2"
|
| 132 |
+
},
|
| 133 |
+
"engines": {
|
| 134 |
+
"node": ">=6.0"
|
| 135 |
+
},
|
| 136 |
+
"peerDependenciesMeta": {
|
| 137 |
+
"supports-color": {
|
| 138 |
+
"optional": true
|
| 139 |
+
}
|
| 140 |
+
}
|
| 141 |
+
},
|
| 142 |
+
"node_modules/agent-base/node_modules/ms": {
|
| 143 |
+
"version": "2.1.2",
|
| 144 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
| 145 |
+
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
| 146 |
+
"license": "MIT",
|
| 147 |
+
"optional": true
|
| 148 |
+
},
|
| 149 |
+
"node_modules/agentkeepalive": {
|
| 150 |
+
"version": "4.5.0",
|
| 151 |
+
"resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz",
|
| 152 |
+
"integrity": "sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==",
|
| 153 |
+
"license": "MIT",
|
| 154 |
+
"optional": true,
|
| 155 |
+
"dependencies": {
|
| 156 |
+
"humanize-ms": "^1.2.1"
|
| 157 |
+
},
|
| 158 |
+
"engines": {
|
| 159 |
+
"node": ">= 8.0.0"
|
| 160 |
+
}
|
| 161 |
+
},
|
| 162 |
+
"node_modules/aggregate-error": {
|
| 163 |
+
"version": "3.1.0",
|
| 164 |
+
"resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz",
|
| 165 |
+
"integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==",
|
| 166 |
+
"license": "MIT",
|
| 167 |
+
"optional": true,
|
| 168 |
+
"dependencies": {
|
| 169 |
+
"clean-stack": "^2.0.0",
|
| 170 |
+
"indent-string": "^4.0.0"
|
| 171 |
+
},
|
| 172 |
+
"engines": {
|
| 173 |
+
"node": ">=8"
|
| 174 |
+
}
|
| 175 |
+
},
|
| 176 |
+
"node_modules/ansi-regex": {
|
| 177 |
+
"version": "5.0.1",
|
| 178 |
+
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
|
| 179 |
+
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
|
| 180 |
+
"license": "MIT",
|
| 181 |
+
"optional": true,
|
| 182 |
+
"engines": {
|
| 183 |
+
"node": ">=8"
|
| 184 |
+
}
|
| 185 |
+
},
|
| 186 |
+
"node_modules/aproba": {
|
| 187 |
+
"version": "2.0.0",
|
| 188 |
+
"resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz",
|
| 189 |
+
"integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==",
|
| 190 |
+
"license": "ISC",
|
| 191 |
+
"optional": true
|
| 192 |
+
},
|
| 193 |
+
"node_modules/are-we-there-yet": {
|
| 194 |
+
"version": "3.0.1",
|
| 195 |
+
"resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz",
|
| 196 |
+
"integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==",
|
| 197 |
+
"deprecated": "This package is no longer supported.",
|
| 198 |
+
"license": "ISC",
|
| 199 |
+
"optional": true,
|
| 200 |
+
"dependencies": {
|
| 201 |
+
"delegates": "^1.0.0",
|
| 202 |
+
"readable-stream": "^3.6.0"
|
| 203 |
+
},
|
| 204 |
+
"engines": {
|
| 205 |
+
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
|
| 206 |
+
}
|
| 207 |
+
},
|
| 208 |
"node_modules/array-flatten": {
|
| 209 |
"version": "1.1.1",
|
| 210 |
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
|
|
|
| 234 |
"proxy-from-env": "^1.1.0"
|
| 235 |
}
|
| 236 |
},
|
| 237 |
+
"node_modules/balanced-match": {
|
| 238 |
+
"version": "1.0.2",
|
| 239 |
+
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
|
| 240 |
+
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
|
| 241 |
+
"license": "MIT",
|
| 242 |
+
"optional": true
|
| 243 |
+
},
|
| 244 |
+
"node_modules/base64-js": {
|
| 245 |
+
"version": "1.5.1",
|
| 246 |
+
"resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
|
| 247 |
+
"integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
|
| 248 |
+
"funding": [
|
| 249 |
+
{
|
| 250 |
+
"type": "github",
|
| 251 |
+
"url": "https://github.com/sponsors/feross"
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "patreon",
|
| 255 |
+
"url": "https://www.patreon.com/feross"
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"type": "consulting",
|
| 259 |
+
"url": "https://feross.org/support"
|
| 260 |
+
}
|
| 261 |
+
],
|
| 262 |
+
"license": "MIT"
|
| 263 |
+
},
|
| 264 |
+
"node_modules/bindings": {
|
| 265 |
+
"version": "1.5.0",
|
| 266 |
+
"resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz",
|
| 267 |
+
"integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
|
| 268 |
+
"license": "MIT",
|
| 269 |
+
"dependencies": {
|
| 270 |
+
"file-uri-to-path": "1.0.0"
|
| 271 |
+
}
|
| 272 |
+
},
|
| 273 |
+
"node_modules/bl": {
|
| 274 |
+
"version": "4.1.0",
|
| 275 |
+
"resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
|
| 276 |
+
"integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
|
| 277 |
+
"license": "MIT",
|
| 278 |
+
"dependencies": {
|
| 279 |
+
"buffer": "^5.5.0",
|
| 280 |
+
"inherits": "^2.0.4",
|
| 281 |
+
"readable-stream": "^3.4.0"
|
| 282 |
+
}
|
| 283 |
+
},
|
| 284 |
"node_modules/body-parser": {
|
| 285 |
"version": "1.20.2",
|
| 286 |
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz",
|
|
|
|
| 305 |
"npm": "1.2.8000 || >= 1.4.16"
|
| 306 |
}
|
| 307 |
},
|
| 308 |
+
"node_modules/brace-expansion": {
|
| 309 |
+
"version": "1.1.11",
|
| 310 |
+
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
| 311 |
+
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
|
| 312 |
+
"license": "MIT",
|
| 313 |
+
"optional": true,
|
| 314 |
+
"dependencies": {
|
| 315 |
+
"balanced-match": "^1.0.0",
|
| 316 |
+
"concat-map": "0.0.1"
|
| 317 |
+
}
|
| 318 |
+
},
|
| 319 |
+
"node_modules/buffer": {
|
| 320 |
+
"version": "5.7.1",
|
| 321 |
+
"resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
|
| 322 |
+
"integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
|
| 323 |
+
"funding": [
|
| 324 |
+
{
|
| 325 |
+
"type": "github",
|
| 326 |
+
"url": "https://github.com/sponsors/feross"
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "patreon",
|
| 330 |
+
"url": "https://www.patreon.com/feross"
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"type": "consulting",
|
| 334 |
+
"url": "https://feross.org/support"
|
| 335 |
+
}
|
| 336 |
+
],
|
| 337 |
+
"license": "MIT",
|
| 338 |
+
"dependencies": {
|
| 339 |
+
"base64-js": "^1.3.1",
|
| 340 |
+
"ieee754": "^1.1.13"
|
| 341 |
+
}
|
| 342 |
},
|
| 343 |
"node_modules/bytes": {
|
| 344 |
"version": "3.1.2",
|
|
|
|
| 349 |
"node": ">= 0.8"
|
| 350 |
}
|
| 351 |
},
|
| 352 |
+
"node_modules/cacache": {
|
| 353 |
+
"version": "15.3.0",
|
| 354 |
+
"resolved": "https://registry.npmjs.org/cacache/-/cacache-15.3.0.tgz",
|
| 355 |
+
"integrity": "sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==",
|
| 356 |
+
"license": "ISC",
|
| 357 |
+
"optional": true,
|
| 358 |
+
"dependencies": {
|
| 359 |
+
"@npmcli/fs": "^1.0.0",
|
| 360 |
+
"@npmcli/move-file": "^1.0.1",
|
| 361 |
+
"chownr": "^2.0.0",
|
| 362 |
+
"fs-minipass": "^2.0.0",
|
| 363 |
+
"glob": "^7.1.4",
|
| 364 |
+
"infer-owner": "^1.0.4",
|
| 365 |
+
"lru-cache": "^6.0.0",
|
| 366 |
+
"minipass": "^3.1.1",
|
| 367 |
+
"minipass-collect": "^1.0.2",
|
| 368 |
+
"minipass-flush": "^1.0.5",
|
| 369 |
+
"minipass-pipeline": "^1.2.2",
|
| 370 |
+
"mkdirp": "^1.0.3",
|
| 371 |
+
"p-map": "^4.0.0",
|
| 372 |
+
"promise-inflight": "^1.0.1",
|
| 373 |
+
"rimraf": "^3.0.2",
|
| 374 |
+
"ssri": "^8.0.1",
|
| 375 |
+
"tar": "^6.0.2",
|
| 376 |
+
"unique-filename": "^1.1.1"
|
| 377 |
+
},
|
| 378 |
+
"engines": {
|
| 379 |
+
"node": ">= 10"
|
| 380 |
+
}
|
| 381 |
+
},
|
| 382 |
"node_modules/call-bind": {
|
| 383 |
"version": "1.0.7",
|
| 384 |
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",
|
|
|
|
| 398 |
"url": "https://github.com/sponsors/ljharb"
|
| 399 |
}
|
| 400 |
},
|
| 401 |
+
"node_modules/chownr": {
|
| 402 |
+
"version": "2.0.0",
|
| 403 |
+
"resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",
|
| 404 |
+
"integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",
|
| 405 |
+
"license": "ISC",
|
| 406 |
"engines": {
|
| 407 |
+
"node": ">=10"
|
| 408 |
+
}
|
| 409 |
+
},
|
| 410 |
+
"node_modules/clean-stack": {
|
| 411 |
+
"version": "2.2.0",
|
| 412 |
+
"resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz",
|
| 413 |
+
"integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==",
|
| 414 |
+
"license": "MIT",
|
| 415 |
+
"optional": true,
|
| 416 |
+
"engines": {
|
| 417 |
+
"node": ">=6"
|
| 418 |
}
|
| 419 |
},
|
| 420 |
"node_modules/color": {
|
|
|
|
| 452 |
"simple-swizzle": "^0.2.2"
|
| 453 |
}
|
| 454 |
},
|
| 455 |
+
"node_modules/color-support": {
|
| 456 |
+
"version": "1.1.3",
|
| 457 |
+
"resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz",
|
| 458 |
+
"integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==",
|
| 459 |
+
"license": "ISC",
|
| 460 |
+
"optional": true,
|
| 461 |
+
"bin": {
|
| 462 |
+
"color-support": "bin.js"
|
| 463 |
+
}
|
| 464 |
+
},
|
| 465 |
"node_modules/colorspace": {
|
| 466 |
"version": "1.1.4",
|
| 467 |
"resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.1.4.tgz",
|
|
|
|
| 484 |
"node": ">= 0.8"
|
| 485 |
}
|
| 486 |
},
|
| 487 |
+
"node_modules/concat-map": {
|
| 488 |
+
"version": "0.0.1",
|
| 489 |
+
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
| 490 |
+
"integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
|
| 491 |
+
"license": "MIT",
|
| 492 |
+
"optional": true
|
| 493 |
+
},
|
| 494 |
+
"node_modules/console-control-strings": {
|
| 495 |
+
"version": "1.1.0",
|
| 496 |
+
"resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
|
| 497 |
+
"integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==",
|
| 498 |
+
"license": "ISC",
|
| 499 |
+
"optional": true
|
| 500 |
+
},
|
| 501 |
"node_modules/content-disposition": {
|
| 502 |
"version": "0.5.4",
|
| 503 |
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
|
|
|
|
| 556 |
"ms": "2.0.0"
|
| 557 |
}
|
| 558 |
},
|
| 559 |
+
"node_modules/decompress-response": {
|
| 560 |
+
"version": "6.0.0",
|
| 561 |
+
"resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
|
| 562 |
+
"integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
|
| 563 |
+
"license": "MIT",
|
| 564 |
+
"dependencies": {
|
| 565 |
+
"mimic-response": "^3.1.0"
|
| 566 |
+
},
|
| 567 |
+
"engines": {
|
| 568 |
+
"node": ">=10"
|
| 569 |
+
},
|
| 570 |
+
"funding": {
|
| 571 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 572 |
+
}
|
| 573 |
+
},
|
| 574 |
+
"node_modules/deep-extend": {
|
| 575 |
+
"version": "0.6.0",
|
| 576 |
+
"resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
|
| 577 |
+
"integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
|
| 578 |
+
"license": "MIT",
|
| 579 |
+
"engines": {
|
| 580 |
+
"node": ">=4.0.0"
|
| 581 |
+
}
|
| 582 |
+
},
|
| 583 |
"node_modules/define-data-property": {
|
| 584 |
"version": "1.1.4",
|
| 585 |
"resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
|
|
|
|
| 606 |
"node": ">=0.4.0"
|
| 607 |
}
|
| 608 |
},
|
| 609 |
+
"node_modules/delegates": {
|
| 610 |
+
"version": "1.0.0",
|
| 611 |
+
"resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
|
| 612 |
+
"integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==",
|
| 613 |
+
"license": "MIT",
|
| 614 |
+
"optional": true
|
| 615 |
+
},
|
| 616 |
"node_modules/depd": {
|
| 617 |
"version": "2.0.0",
|
| 618 |
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
|
|
|
| 632 |
"npm": "1.2.8000 || >= 1.4.16"
|
| 633 |
}
|
| 634 |
},
|
| 635 |
+
"node_modules/detect-libc": {
|
| 636 |
+
"version": "2.0.3",
|
| 637 |
+
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz",
|
| 638 |
+
"integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==",
|
| 639 |
+
"license": "Apache-2.0",
|
| 640 |
+
"engines": {
|
| 641 |
+
"node": ">=8"
|
| 642 |
+
}
|
| 643 |
+
},
|
| 644 |
"node_modules/dotenv": {
|
| 645 |
"version": "16.4.5",
|
| 646 |
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz",
|
|
|
|
| 659 |
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
|
| 660 |
"license": "MIT"
|
| 661 |
},
|
| 662 |
+
"node_modules/emoji-regex": {
|
| 663 |
+
"version": "8.0.0",
|
| 664 |
+
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
|
| 665 |
+
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
|
| 666 |
+
"license": "MIT",
|
| 667 |
+
"optional": true
|
| 668 |
+
},
|
| 669 |
"node_modules/enabled": {
|
| 670 |
"version": "2.0.0",
|
| 671 |
"resolved": "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz",
|
|
|
|
| 681 |
"node": ">= 0.8"
|
| 682 |
}
|
| 683 |
},
|
| 684 |
+
"node_modules/encoding": {
|
| 685 |
+
"version": "0.1.13",
|
| 686 |
+
"resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz",
|
| 687 |
+
"integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==",
|
| 688 |
+
"license": "MIT",
|
| 689 |
+
"optional": true,
|
| 690 |
+
"dependencies": {
|
| 691 |
+
"iconv-lite": "^0.6.2"
|
| 692 |
+
}
|
| 693 |
+
},
|
| 694 |
+
"node_modules/encoding/node_modules/iconv-lite": {
|
| 695 |
+
"version": "0.6.3",
|
| 696 |
+
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
|
| 697 |
+
"integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
|
| 698 |
+
"license": "MIT",
|
| 699 |
+
"optional": true,
|
| 700 |
+
"dependencies": {
|
| 701 |
+
"safer-buffer": ">= 2.1.2 < 3.0.0"
|
| 702 |
+
},
|
| 703 |
+
"engines": {
|
| 704 |
+
"node": ">=0.10.0"
|
| 705 |
+
}
|
| 706 |
+
},
|
| 707 |
+
"node_modules/end-of-stream": {
|
| 708 |
+
"version": "1.4.4",
|
| 709 |
+
"resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
|
| 710 |
+
"integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
|
| 711 |
+
"license": "MIT",
|
| 712 |
+
"dependencies": {
|
| 713 |
+
"once": "^1.4.0"
|
| 714 |
+
}
|
| 715 |
+
},
|
| 716 |
+
"node_modules/env-paths": {
|
| 717 |
+
"version": "2.2.1",
|
| 718 |
+
"resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
|
| 719 |
+
"integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
|
| 720 |
+
"license": "MIT",
|
| 721 |
+
"optional": true,
|
| 722 |
+
"engines": {
|
| 723 |
+
"node": ">=6"
|
| 724 |
+
}
|
| 725 |
+
},
|
| 726 |
+
"node_modules/err-code": {
|
| 727 |
+
"version": "2.0.3",
|
| 728 |
+
"resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz",
|
| 729 |
+
"integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==",
|
| 730 |
+
"license": "MIT",
|
| 731 |
+
"optional": true
|
| 732 |
+
},
|
| 733 |
"node_modules/es-define-property": {
|
| 734 |
"version": "1.0.0",
|
| 735 |
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",
|
|
|
|
| 766 |
"node": ">= 0.6"
|
| 767 |
}
|
| 768 |
},
|
| 769 |
+
"node_modules/expand-template": {
|
| 770 |
+
"version": "2.0.3",
|
| 771 |
+
"resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",
|
| 772 |
+
"integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==",
|
| 773 |
+
"license": "(MIT OR WTFPL)",
|
| 774 |
+
"engines": {
|
| 775 |
+
"node": ">=6"
|
| 776 |
+
}
|
| 777 |
+
},
|
| 778 |
"node_modules/express": {
|
| 779 |
"version": "4.19.2",
|
| 780 |
"resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz",
|
|
|
|
| 832 |
"moment": "^2.29.1"
|
| 833 |
}
|
| 834 |
},
|
| 835 |
+
"node_modules/file-uri-to-path": {
|
| 836 |
+
"version": "1.0.0",
|
| 837 |
+
"resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
|
| 838 |
+
"integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
|
| 839 |
+
"license": "MIT"
|
| 840 |
+
},
|
| 841 |
"node_modules/finalhandler": {
|
| 842 |
"version": "1.2.0",
|
| 843 |
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz",
|
|
|
|
| 914 |
"node": ">= 0.6"
|
| 915 |
}
|
| 916 |
},
|
| 917 |
+
"node_modules/fs-constants": {
|
| 918 |
+
"version": "1.0.0",
|
| 919 |
+
"resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",
|
| 920 |
+
"integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",
|
| 921 |
+
"license": "MIT"
|
| 922 |
+
},
|
| 923 |
+
"node_modules/fs-minipass": {
|
| 924 |
+
"version": "2.1.0",
|
| 925 |
+
"resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",
|
| 926 |
+
"integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",
|
| 927 |
+
"license": "ISC",
|
| 928 |
+
"dependencies": {
|
| 929 |
+
"minipass": "^3.0.0"
|
| 930 |
+
},
|
| 931 |
+
"engines": {
|
| 932 |
+
"node": ">= 8"
|
| 933 |
+
}
|
| 934 |
+
},
|
| 935 |
+
"node_modules/fs.realpath": {
|
| 936 |
+
"version": "1.0.0",
|
| 937 |
+
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
| 938 |
+
"integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
|
| 939 |
+
"license": "ISC",
|
| 940 |
+
"optional": true
|
| 941 |
+
},
|
| 942 |
"node_modules/function-bind": {
|
| 943 |
"version": "1.1.2",
|
| 944 |
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
|
|
|
| 948 |
"url": "https://github.com/sponsors/ljharb"
|
| 949 |
}
|
| 950 |
},
|
| 951 |
+
"node_modules/gauge": {
|
| 952 |
+
"version": "4.0.4",
|
| 953 |
+
"resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz",
|
| 954 |
+
"integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==",
|
| 955 |
+
"deprecated": "This package is no longer supported.",
|
| 956 |
+
"license": "ISC",
|
| 957 |
+
"optional": true,
|
| 958 |
+
"dependencies": {
|
| 959 |
+
"aproba": "^1.0.3 || ^2.0.0",
|
| 960 |
+
"color-support": "^1.1.3",
|
| 961 |
+
"console-control-strings": "^1.1.0",
|
| 962 |
+
"has-unicode": "^2.0.1",
|
| 963 |
+
"signal-exit": "^3.0.7",
|
| 964 |
+
"string-width": "^4.2.3",
|
| 965 |
+
"strip-ansi": "^6.0.1",
|
| 966 |
+
"wide-align": "^1.1.5"
|
| 967 |
+
},
|
| 968 |
"engines": {
|
| 969 |
+
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
|
| 970 |
}
|
| 971 |
},
|
| 972 |
"node_modules/get-intrinsic": {
|
|
|
|
| 988 |
"url": "https://github.com/sponsors/ljharb"
|
| 989 |
}
|
| 990 |
},
|
| 991 |
+
"node_modules/github-from-package": {
|
| 992 |
+
"version": "0.0.0",
|
| 993 |
+
"resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",
|
| 994 |
+
"integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==",
|
| 995 |
+
"license": "MIT"
|
| 996 |
+
},
|
| 997 |
+
"node_modules/glob": {
|
| 998 |
+
"version": "7.2.3",
|
| 999 |
+
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
|
| 1000 |
+
"integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
|
| 1001 |
+
"deprecated": "Glob versions prior to v9 are no longer supported",
|
| 1002 |
+
"license": "ISC",
|
| 1003 |
+
"optional": true,
|
| 1004 |
+
"dependencies": {
|
| 1005 |
+
"fs.realpath": "^1.0.0",
|
| 1006 |
+
"inflight": "^1.0.4",
|
| 1007 |
+
"inherits": "2",
|
| 1008 |
+
"minimatch": "^3.1.1",
|
| 1009 |
+
"once": "^1.3.0",
|
| 1010 |
+
"path-is-absolute": "^1.0.0"
|
| 1011 |
+
},
|
| 1012 |
+
"engines": {
|
| 1013 |
+
"node": "*"
|
| 1014 |
+
},
|
| 1015 |
+
"funding": {
|
| 1016 |
+
"url": "https://github.com/sponsors/isaacs"
|
| 1017 |
+
}
|
| 1018 |
+
},
|
| 1019 |
"node_modules/gopd": {
|
| 1020 |
"version": "1.0.1",
|
| 1021 |
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
|
|
|
|
| 1028 |
"url": "https://github.com/sponsors/ljharb"
|
| 1029 |
}
|
| 1030 |
},
|
| 1031 |
+
"node_modules/graceful-fs": {
|
| 1032 |
+
"version": "4.2.11",
|
| 1033 |
+
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
|
| 1034 |
+
"integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
|
| 1035 |
+
"license": "ISC",
|
| 1036 |
+
"optional": true
|
| 1037 |
+
},
|
| 1038 |
"node_modules/has-property-descriptors": {
|
| 1039 |
"version": "1.0.2",
|
| 1040 |
"resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
|
|
|
|
| 1071 |
"url": "https://github.com/sponsors/ljharb"
|
| 1072 |
}
|
| 1073 |
},
|
| 1074 |
+
"node_modules/has-unicode": {
|
| 1075 |
+
"version": "2.0.1",
|
| 1076 |
+
"resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
|
| 1077 |
+
"integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==",
|
| 1078 |
+
"license": "ISC",
|
| 1079 |
+
"optional": true
|
| 1080 |
+
},
|
| 1081 |
+
"node_modules/hasown": {
|
| 1082 |
"version": "2.0.2",
|
| 1083 |
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
| 1084 |
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
|
|
|
| 1090 |
"node": ">= 0.4"
|
| 1091 |
}
|
| 1092 |
},
|
| 1093 |
+
"node_modules/http-cache-semantics": {
|
| 1094 |
+
"version": "4.1.1",
|
| 1095 |
+
"resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz",
|
| 1096 |
+
"integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==",
|
| 1097 |
+
"license": "BSD-2-Clause",
|
| 1098 |
+
"optional": true
|
| 1099 |
+
},
|
| 1100 |
"node_modules/http-errors": {
|
| 1101 |
"version": "2.0.0",
|
| 1102 |
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
|
|
|
|
| 1113 |
"node": ">= 0.8"
|
| 1114 |
}
|
| 1115 |
},
|
| 1116 |
+
"node_modules/http-proxy-agent": {
|
| 1117 |
+
"version": "4.0.1",
|
| 1118 |
+
"resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz",
|
| 1119 |
+
"integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==",
|
| 1120 |
+
"license": "MIT",
|
| 1121 |
+
"optional": true,
|
| 1122 |
+
"dependencies": {
|
| 1123 |
+
"@tootallnate/once": "1",
|
| 1124 |
+
"agent-base": "6",
|
| 1125 |
+
"debug": "4"
|
| 1126 |
+
},
|
| 1127 |
+
"engines": {
|
| 1128 |
+
"node": ">= 6"
|
| 1129 |
+
}
|
| 1130 |
+
},
|
| 1131 |
+
"node_modules/http-proxy-agent/node_modules/debug": {
|
| 1132 |
+
"version": "4.3.6",
|
| 1133 |
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz",
|
| 1134 |
+
"integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==",
|
| 1135 |
+
"license": "MIT",
|
| 1136 |
+
"optional": true,
|
| 1137 |
+
"dependencies": {
|
| 1138 |
+
"ms": "2.1.2"
|
| 1139 |
+
},
|
| 1140 |
+
"engines": {
|
| 1141 |
+
"node": ">=6.0"
|
| 1142 |
+
},
|
| 1143 |
+
"peerDependenciesMeta": {
|
| 1144 |
+
"supports-color": {
|
| 1145 |
+
"optional": true
|
| 1146 |
+
}
|
| 1147 |
+
}
|
| 1148 |
+
},
|
| 1149 |
+
"node_modules/http-proxy-agent/node_modules/ms": {
|
| 1150 |
+
"version": "2.1.2",
|
| 1151 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
| 1152 |
+
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
| 1153 |
+
"license": "MIT",
|
| 1154 |
+
"optional": true
|
| 1155 |
+
},
|
| 1156 |
+
"node_modules/https-proxy-agent": {
|
| 1157 |
+
"version": "5.0.1",
|
| 1158 |
+
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
|
| 1159 |
+
"integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
|
| 1160 |
+
"license": "MIT",
|
| 1161 |
+
"optional": true,
|
| 1162 |
+
"dependencies": {
|
| 1163 |
+
"agent-base": "6",
|
| 1164 |
+
"debug": "4"
|
| 1165 |
+
},
|
| 1166 |
+
"engines": {
|
| 1167 |
+
"node": ">= 6"
|
| 1168 |
+
}
|
| 1169 |
+
},
|
| 1170 |
+
"node_modules/https-proxy-agent/node_modules/debug": {
|
| 1171 |
+
"version": "4.3.6",
|
| 1172 |
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz",
|
| 1173 |
+
"integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==",
|
| 1174 |
+
"license": "MIT",
|
| 1175 |
+
"optional": true,
|
| 1176 |
+
"dependencies": {
|
| 1177 |
+
"ms": "2.1.2"
|
| 1178 |
+
},
|
| 1179 |
+
"engines": {
|
| 1180 |
+
"node": ">=6.0"
|
| 1181 |
+
},
|
| 1182 |
+
"peerDependenciesMeta": {
|
| 1183 |
+
"supports-color": {
|
| 1184 |
+
"optional": true
|
| 1185 |
+
}
|
| 1186 |
+
}
|
| 1187 |
+
},
|
| 1188 |
+
"node_modules/https-proxy-agent/node_modules/ms": {
|
| 1189 |
+
"version": "2.1.2",
|
| 1190 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
| 1191 |
+
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
| 1192 |
+
"license": "MIT",
|
| 1193 |
+
"optional": true
|
| 1194 |
+
},
|
| 1195 |
+
"node_modules/humanize-ms": {
|
| 1196 |
+
"version": "1.2.1",
|
| 1197 |
+
"resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz",
|
| 1198 |
+
"integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==",
|
| 1199 |
+
"license": "MIT",
|
| 1200 |
+
"optional": true,
|
| 1201 |
+
"dependencies": {
|
| 1202 |
+
"ms": "^2.0.0"
|
| 1203 |
+
}
|
| 1204 |
+
},
|
| 1205 |
"node_modules/iconv-lite": {
|
| 1206 |
"version": "0.4.24",
|
| 1207 |
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
|
|
|
| 1214 |
"node": ">=0.10.0"
|
| 1215 |
}
|
| 1216 |
},
|
| 1217 |
+
"node_modules/ieee754": {
|
| 1218 |
+
"version": "1.2.1",
|
| 1219 |
+
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
|
| 1220 |
+
"integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
|
| 1221 |
+
"funding": [
|
| 1222 |
+
{
|
| 1223 |
+
"type": "github",
|
| 1224 |
+
"url": "https://github.com/sponsors/feross"
|
| 1225 |
+
},
|
| 1226 |
+
{
|
| 1227 |
+
"type": "patreon",
|
| 1228 |
+
"url": "https://www.patreon.com/feross"
|
| 1229 |
+
},
|
| 1230 |
+
{
|
| 1231 |
+
"type": "consulting",
|
| 1232 |
+
"url": "https://feross.org/support"
|
| 1233 |
+
}
|
| 1234 |
+
],
|
| 1235 |
+
"license": "BSD-3-Clause"
|
| 1236 |
+
},
|
| 1237 |
+
"node_modules/imurmurhash": {
|
| 1238 |
+
"version": "0.1.4",
|
| 1239 |
+
"resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
|
| 1240 |
+
"integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
|
| 1241 |
+
"license": "MIT",
|
| 1242 |
+
"optional": true,
|
| 1243 |
+
"engines": {
|
| 1244 |
+
"node": ">=0.8.19"
|
| 1245 |
+
}
|
| 1246 |
+
},
|
| 1247 |
+
"node_modules/indent-string": {
|
| 1248 |
+
"version": "4.0.0",
|
| 1249 |
+
"resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",
|
| 1250 |
+
"integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",
|
| 1251 |
+
"license": "MIT",
|
| 1252 |
+
"optional": true,
|
| 1253 |
+
"engines": {
|
| 1254 |
+
"node": ">=8"
|
| 1255 |
+
}
|
| 1256 |
+
},
|
| 1257 |
+
"node_modules/infer-owner": {
|
| 1258 |
+
"version": "1.0.4",
|
| 1259 |
+
"resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz",
|
| 1260 |
+
"integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==",
|
| 1261 |
+
"license": "ISC",
|
| 1262 |
+
"optional": true
|
| 1263 |
+
},
|
| 1264 |
+
"node_modules/inflight": {
|
| 1265 |
+
"version": "1.0.6",
|
| 1266 |
+
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
| 1267 |
+
"integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
|
| 1268 |
+
"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.",
|
| 1269 |
+
"license": "ISC",
|
| 1270 |
+
"optional": true,
|
| 1271 |
+
"dependencies": {
|
| 1272 |
+
"once": "^1.3.0",
|
| 1273 |
+
"wrappy": "1"
|
| 1274 |
+
}
|
| 1275 |
+
},
|
| 1276 |
"node_modules/inherits": {
|
| 1277 |
"version": "2.0.4",
|
| 1278 |
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
| 1279 |
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
| 1280 |
"license": "ISC"
|
| 1281 |
},
|
| 1282 |
+
"node_modules/ini": {
|
| 1283 |
+
"version": "1.3.8",
|
| 1284 |
+
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
|
| 1285 |
+
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
|
| 1286 |
+
"license": "ISC"
|
| 1287 |
+
},
|
| 1288 |
+
"node_modules/ip-address": {
|
| 1289 |
+
"version": "9.0.5",
|
| 1290 |
+
"resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz",
|
| 1291 |
+
"integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==",
|
| 1292 |
+
"license": "MIT",
|
| 1293 |
+
"optional": true,
|
| 1294 |
+
"dependencies": {
|
| 1295 |
+
"jsbn": "1.1.0",
|
| 1296 |
+
"sprintf-js": "^1.1.3"
|
| 1297 |
+
},
|
| 1298 |
+
"engines": {
|
| 1299 |
+
"node": ">= 12"
|
| 1300 |
+
}
|
| 1301 |
+
},
|
| 1302 |
"node_modules/ipaddr.js": {
|
| 1303 |
"version": "1.9.1",
|
| 1304 |
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
|
|
|
|
| 1314 |
"integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==",
|
| 1315 |
"license": "MIT"
|
| 1316 |
},
|
| 1317 |
+
"node_modules/is-fullwidth-code-point": {
|
| 1318 |
+
"version": "3.0.0",
|
| 1319 |
+
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
|
| 1320 |
+
"integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
|
| 1321 |
+
"license": "MIT",
|
| 1322 |
+
"optional": true,
|
| 1323 |
+
"engines": {
|
| 1324 |
+
"node": ">=8"
|
| 1325 |
+
}
|
| 1326 |
+
},
|
| 1327 |
+
"node_modules/is-lambda": {
|
| 1328 |
+
"version": "1.0.1",
|
| 1329 |
+
"resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz",
|
| 1330 |
+
"integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==",
|
| 1331 |
+
"license": "MIT",
|
| 1332 |
+
"optional": true
|
| 1333 |
+
},
|
| 1334 |
"node_modules/is-stream": {
|
| 1335 |
"version": "2.0.1",
|
| 1336 |
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
|
|
|
|
| 1343 |
"url": "https://github.com/sponsors/sindresorhus"
|
| 1344 |
}
|
| 1345 |
},
|
| 1346 |
+
"node_modules/isexe": {
|
| 1347 |
+
"version": "2.0.0",
|
| 1348 |
+
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
|
| 1349 |
+
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
|
| 1350 |
+
"license": "ISC",
|
| 1351 |
+
"optional": true
|
| 1352 |
+
},
|
| 1353 |
+
"node_modules/jsbn": {
|
| 1354 |
+
"version": "1.1.0",
|
| 1355 |
+
"resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz",
|
| 1356 |
+
"integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==",
|
| 1357 |
+
"license": "MIT",
|
| 1358 |
+
"optional": true
|
| 1359 |
+
},
|
| 1360 |
"node_modules/kuler": {
|
| 1361 |
"version": "2.0.0",
|
| 1362 |
"resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz",
|
|
|
|
| 1386 |
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
| 1387 |
"license": "MIT"
|
| 1388 |
},
|
| 1389 |
+
"node_modules/lru-cache": {
|
| 1390 |
+
"version": "6.0.0",
|
| 1391 |
+
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
|
| 1392 |
+
"integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
|
| 1393 |
+
"license": "ISC",
|
| 1394 |
+
"optional": true,
|
| 1395 |
+
"dependencies": {
|
| 1396 |
+
"yallist": "^4.0.0"
|
| 1397 |
+
},
|
| 1398 |
+
"engines": {
|
| 1399 |
+
"node": ">=10"
|
| 1400 |
+
}
|
| 1401 |
+
},
|
| 1402 |
+
"node_modules/make-fetch-happen": {
|
| 1403 |
+
"version": "9.1.0",
|
| 1404 |
+
"resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-9.1.0.tgz",
|
| 1405 |
+
"integrity": "sha512-+zopwDy7DNknmwPQplem5lAZX/eCOzSvSNNcSKm5eVwTkOBzoktEfXsa9L23J/GIRhxRsaxzkPEhrJEpE2F4Gg==",
|
| 1406 |
+
"license": "ISC",
|
| 1407 |
+
"optional": true,
|
| 1408 |
+
"dependencies": {
|
| 1409 |
+
"agentkeepalive": "^4.1.3",
|
| 1410 |
+
"cacache": "^15.2.0",
|
| 1411 |
+
"http-cache-semantics": "^4.1.0",
|
| 1412 |
+
"http-proxy-agent": "^4.0.1",
|
| 1413 |
+
"https-proxy-agent": "^5.0.0",
|
| 1414 |
+
"is-lambda": "^1.0.1",
|
| 1415 |
+
"lru-cache": "^6.0.0",
|
| 1416 |
+
"minipass": "^3.1.3",
|
| 1417 |
+
"minipass-collect": "^1.0.2",
|
| 1418 |
+
"minipass-fetch": "^1.3.2",
|
| 1419 |
+
"minipass-flush": "^1.0.5",
|
| 1420 |
+
"minipass-pipeline": "^1.2.4",
|
| 1421 |
+
"negotiator": "^0.6.2",
|
| 1422 |
+
"promise-retry": "^2.0.1",
|
| 1423 |
+
"socks-proxy-agent": "^6.0.0",
|
| 1424 |
+
"ssri": "^8.0.0"
|
| 1425 |
+
},
|
| 1426 |
+
"engines": {
|
| 1427 |
+
"node": ">= 10"
|
| 1428 |
+
}
|
| 1429 |
+
},
|
| 1430 |
"node_modules/media-typer": {
|
| 1431 |
"version": "0.3.0",
|
| 1432 |
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
|
|
|
| 1484 |
"node": ">= 0.6"
|
| 1485 |
}
|
| 1486 |
},
|
| 1487 |
+
"node_modules/mimic-response": {
|
| 1488 |
+
"version": "3.1.0",
|
| 1489 |
+
"resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",
|
| 1490 |
+
"integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",
|
| 1491 |
+
"license": "MIT",
|
| 1492 |
+
"engines": {
|
| 1493 |
+
"node": ">=10"
|
| 1494 |
+
},
|
| 1495 |
+
"funding": {
|
| 1496 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1497 |
+
}
|
| 1498 |
+
},
|
| 1499 |
+
"node_modules/minimatch": {
|
| 1500 |
+
"version": "3.1.2",
|
| 1501 |
+
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
|
| 1502 |
+
"integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
|
| 1503 |
+
"license": "ISC",
|
| 1504 |
+
"optional": true,
|
| 1505 |
+
"dependencies": {
|
| 1506 |
+
"brace-expansion": "^1.1.7"
|
| 1507 |
+
},
|
| 1508 |
+
"engines": {
|
| 1509 |
+
"node": "*"
|
| 1510 |
+
}
|
| 1511 |
+
},
|
| 1512 |
+
"node_modules/minimist": {
|
| 1513 |
+
"version": "1.2.8",
|
| 1514 |
+
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
|
| 1515 |
+
"integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
|
| 1516 |
+
"license": "MIT",
|
| 1517 |
+
"funding": {
|
| 1518 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 1519 |
+
}
|
| 1520 |
+
},
|
| 1521 |
+
"node_modules/minipass": {
|
| 1522 |
+
"version": "3.3.6",
|
| 1523 |
+
"resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",
|
| 1524 |
+
"integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
|
| 1525 |
+
"license": "ISC",
|
| 1526 |
+
"dependencies": {
|
| 1527 |
+
"yallist": "^4.0.0"
|
| 1528 |
+
},
|
| 1529 |
+
"engines": {
|
| 1530 |
+
"node": ">=8"
|
| 1531 |
+
}
|
| 1532 |
+
},
|
| 1533 |
+
"node_modules/minipass-collect": {
|
| 1534 |
+
"version": "1.0.2",
|
| 1535 |
+
"resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz",
|
| 1536 |
+
"integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==",
|
| 1537 |
+
"license": "ISC",
|
| 1538 |
+
"optional": true,
|
| 1539 |
+
"dependencies": {
|
| 1540 |
+
"minipass": "^3.0.0"
|
| 1541 |
+
},
|
| 1542 |
+
"engines": {
|
| 1543 |
+
"node": ">= 8"
|
| 1544 |
+
}
|
| 1545 |
+
},
|
| 1546 |
+
"node_modules/minipass-fetch": {
|
| 1547 |
+
"version": "1.4.1",
|
| 1548 |
+
"resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-1.4.1.tgz",
|
| 1549 |
+
"integrity": "sha512-CGH1eblLq26Y15+Azk7ey4xh0J/XfJfrCox5LDJiKqI2Q2iwOLOKrlmIaODiSQS8d18jalF6y2K2ePUm0CmShw==",
|
| 1550 |
+
"license": "MIT",
|
| 1551 |
+
"optional": true,
|
| 1552 |
+
"dependencies": {
|
| 1553 |
+
"minipass": "^3.1.0",
|
| 1554 |
+
"minipass-sized": "^1.0.3",
|
| 1555 |
+
"minizlib": "^2.0.0"
|
| 1556 |
+
},
|
| 1557 |
+
"engines": {
|
| 1558 |
+
"node": ">=8"
|
| 1559 |
+
},
|
| 1560 |
+
"optionalDependencies": {
|
| 1561 |
+
"encoding": "^0.1.12"
|
| 1562 |
+
}
|
| 1563 |
+
},
|
| 1564 |
+
"node_modules/minipass-flush": {
|
| 1565 |
+
"version": "1.0.5",
|
| 1566 |
+
"resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz",
|
| 1567 |
+
"integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==",
|
| 1568 |
+
"license": "ISC",
|
| 1569 |
+
"optional": true,
|
| 1570 |
+
"dependencies": {
|
| 1571 |
+
"minipass": "^3.0.0"
|
| 1572 |
+
},
|
| 1573 |
+
"engines": {
|
| 1574 |
+
"node": ">= 8"
|
| 1575 |
+
}
|
| 1576 |
+
},
|
| 1577 |
+
"node_modules/minipass-pipeline": {
|
| 1578 |
+
"version": "1.2.4",
|
| 1579 |
+
"resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz",
|
| 1580 |
+
"integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==",
|
| 1581 |
+
"license": "ISC",
|
| 1582 |
+
"optional": true,
|
| 1583 |
+
"dependencies": {
|
| 1584 |
+
"minipass": "^3.0.0"
|
| 1585 |
+
},
|
| 1586 |
+
"engines": {
|
| 1587 |
+
"node": ">=8"
|
| 1588 |
+
}
|
| 1589 |
+
},
|
| 1590 |
+
"node_modules/minipass-sized": {
|
| 1591 |
+
"version": "1.0.3",
|
| 1592 |
+
"resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz",
|
| 1593 |
+
"integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==",
|
| 1594 |
+
"license": "ISC",
|
| 1595 |
+
"optional": true,
|
| 1596 |
+
"dependencies": {
|
| 1597 |
+
"minipass": "^3.0.0"
|
| 1598 |
+
},
|
| 1599 |
+
"engines": {
|
| 1600 |
+
"node": ">=8"
|
| 1601 |
+
}
|
| 1602 |
+
},
|
| 1603 |
+
"node_modules/minizlib": {
|
| 1604 |
+
"version": "2.1.2",
|
| 1605 |
+
"resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",
|
| 1606 |
+
"integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",
|
| 1607 |
+
"license": "MIT",
|
| 1608 |
+
"dependencies": {
|
| 1609 |
+
"minipass": "^3.0.0",
|
| 1610 |
+
"yallist": "^4.0.0"
|
| 1611 |
+
},
|
| 1612 |
+
"engines": {
|
| 1613 |
+
"node": ">= 8"
|
| 1614 |
+
}
|
| 1615 |
+
},
|
| 1616 |
+
"node_modules/mkdirp": {
|
| 1617 |
+
"version": "1.0.4",
|
| 1618 |
+
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
|
| 1619 |
+
"integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
|
| 1620 |
+
"license": "MIT",
|
| 1621 |
+
"bin": {
|
| 1622 |
+
"mkdirp": "bin/cmd.js"
|
| 1623 |
+
},
|
| 1624 |
+
"engines": {
|
| 1625 |
+
"node": ">=10"
|
| 1626 |
+
}
|
| 1627 |
+
},
|
| 1628 |
+
"node_modules/mkdirp-classic": {
|
| 1629 |
+
"version": "0.5.3",
|
| 1630 |
+
"resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",
|
| 1631 |
+
"integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",
|
| 1632 |
+
"license": "MIT"
|
| 1633 |
+
},
|
| 1634 |
"node_modules/moment": {
|
| 1635 |
"version": "2.30.1",
|
| 1636 |
"resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz",
|
|
|
|
| 1646 |
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
|
| 1647 |
"license": "MIT"
|
| 1648 |
},
|
| 1649 |
+
"node_modules/napi-build-utils": {
|
| 1650 |
+
"version": "1.0.2",
|
| 1651 |
+
"resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz",
|
| 1652 |
+
"integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==",
|
| 1653 |
+
"license": "MIT"
|
| 1654 |
+
},
|
| 1655 |
"node_modules/negotiator": {
|
| 1656 |
"version": "0.6.3",
|
| 1657 |
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
|
|
|
|
| 1661 |
"node": ">= 0.6"
|
| 1662 |
}
|
| 1663 |
},
|
| 1664 |
+
"node_modules/node-abi": {
|
| 1665 |
+
"version": "3.67.0",
|
| 1666 |
+
"resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.67.0.tgz",
|
| 1667 |
+
"integrity": "sha512-bLn/fU/ALVBE9wj+p4Y21ZJWYFjUXLXPi/IewyLZkx3ApxKDNBWCKdReeKOtD8dWpOdDCeMyLh6ZewzcLsG2Nw==",
|
| 1668 |
+
"license": "MIT",
|
| 1669 |
+
"dependencies": {
|
| 1670 |
+
"semver": "^7.3.5"
|
| 1671 |
+
},
|
| 1672 |
+
"engines": {
|
| 1673 |
+
"node": ">=10"
|
| 1674 |
+
}
|
| 1675 |
+
},
|
| 1676 |
+
"node_modules/node-addon-api": {
|
| 1677 |
+
"version": "7.1.1",
|
| 1678 |
+
"resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz",
|
| 1679 |
+
"integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==",
|
| 1680 |
+
"license": "MIT"
|
| 1681 |
+
},
|
| 1682 |
+
"node_modules/node-gyp": {
|
| 1683 |
+
"version": "8.4.1",
|
| 1684 |
+
"resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-8.4.1.tgz",
|
| 1685 |
+
"integrity": "sha512-olTJRgUtAb/hOXG0E93wZDs5YiJlgbXxTwQAFHyNlRsXQnYzUaF2aGgujZbw+hR8aF4ZG/rST57bWMWD16jr9w==",
|
| 1686 |
+
"license": "MIT",
|
| 1687 |
+
"optional": true,
|
| 1688 |
+
"dependencies": {
|
| 1689 |
+
"env-paths": "^2.2.0",
|
| 1690 |
+
"glob": "^7.1.4",
|
| 1691 |
+
"graceful-fs": "^4.2.6",
|
| 1692 |
+
"make-fetch-happen": "^9.1.0",
|
| 1693 |
+
"nopt": "^5.0.0",
|
| 1694 |
+
"npmlog": "^6.0.0",
|
| 1695 |
+
"rimraf": "^3.0.2",
|
| 1696 |
+
"semver": "^7.3.5",
|
| 1697 |
+
"tar": "^6.1.2",
|
| 1698 |
+
"which": "^2.0.2"
|
| 1699 |
+
},
|
| 1700 |
+
"bin": {
|
| 1701 |
+
"node-gyp": "bin/node-gyp.js"
|
| 1702 |
+
},
|
| 1703 |
+
"engines": {
|
| 1704 |
+
"node": ">= 10.12.0"
|
| 1705 |
+
}
|
| 1706 |
+
},
|
| 1707 |
+
"node_modules/nopt": {
|
| 1708 |
+
"version": "5.0.0",
|
| 1709 |
+
"resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz",
|
| 1710 |
+
"integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==",
|
| 1711 |
+
"license": "ISC",
|
| 1712 |
+
"optional": true,
|
| 1713 |
+
"dependencies": {
|
| 1714 |
+
"abbrev": "1"
|
| 1715 |
+
},
|
| 1716 |
+
"bin": {
|
| 1717 |
+
"nopt": "bin/nopt.js"
|
| 1718 |
+
},
|
| 1719 |
+
"engines": {
|
| 1720 |
+
"node": ">=6"
|
| 1721 |
+
}
|
| 1722 |
+
},
|
| 1723 |
+
"node_modules/npmlog": {
|
| 1724 |
+
"version": "6.0.2",
|
| 1725 |
+
"resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz",
|
| 1726 |
+
"integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==",
|
| 1727 |
+
"deprecated": "This package is no longer supported.",
|
| 1728 |
+
"license": "ISC",
|
| 1729 |
+
"optional": true,
|
| 1730 |
+
"dependencies": {
|
| 1731 |
+
"are-we-there-yet": "^3.0.0",
|
| 1732 |
+
"console-control-strings": "^1.1.0",
|
| 1733 |
+
"gauge": "^4.0.3",
|
| 1734 |
+
"set-blocking": "^2.0.0"
|
| 1735 |
+
},
|
| 1736 |
+
"engines": {
|
| 1737 |
+
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
|
| 1738 |
+
}
|
| 1739 |
+
},
|
| 1740 |
"node_modules/object-assign": {
|
| 1741 |
"version": "4.1.1",
|
| 1742 |
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
|
|
|
|
| 1776 |
"ee-first": "1.1.1"
|
| 1777 |
},
|
| 1778 |
"engines": {
|
| 1779 |
+
"node": ">= 0.8"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1780 |
}
|
| 1781 |
},
|
| 1782 |
+
"node_modules/once": {
|
| 1783 |
+
"version": "1.4.0",
|
| 1784 |
+
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
| 1785 |
+
"integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
|
| 1786 |
+
"license": "ISC",
|
| 1787 |
+
"dependencies": {
|
| 1788 |
+
"wrappy": "1"
|
| 1789 |
}
|
| 1790 |
},
|
| 1791 |
+
"node_modules/one-time": {
|
| 1792 |
+
"version": "1.0.0",
|
| 1793 |
+
"resolved": "https://registry.npmjs.org/one-time/-/one-time-1.0.0.tgz",
|
| 1794 |
+
"integrity": "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g==",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1795 |
"license": "MIT",
|
| 1796 |
"dependencies": {
|
| 1797 |
+
"fn.name": "1.x.x"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1798 |
}
|
| 1799 |
},
|
| 1800 |
+
"node_modules/p-map": {
|
| 1801 |
+
"version": "4.0.0",
|
| 1802 |
+
"resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz",
|
| 1803 |
+
"integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==",
|
| 1804 |
"license": "MIT",
|
| 1805 |
+
"optional": true,
|
| 1806 |
"dependencies": {
|
| 1807 |
+
"aggregate-error": "^3.0.0"
|
| 1808 |
+
},
|
| 1809 |
+
"engines": {
|
| 1810 |
+
"node": ">=10"
|
| 1811 |
+
},
|
| 1812 |
+
"funding": {
|
| 1813 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 1814 |
}
|
| 1815 |
},
|
| 1816 |
+
"node_modules/parseurl": {
|
| 1817 |
+
"version": "1.3.3",
|
| 1818 |
+
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
|
| 1819 |
+
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
|
| 1820 |
"license": "MIT",
|
| 1821 |
"engines": {
|
| 1822 |
+
"node": ">= 0.8"
|
| 1823 |
}
|
| 1824 |
},
|
| 1825 |
+
"node_modules/path-is-absolute": {
|
| 1826 |
+
"version": "1.0.1",
|
| 1827 |
+
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
| 1828 |
+
"integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
|
| 1829 |
"license": "MIT",
|
| 1830 |
+
"optional": true,
|
| 1831 |
"engines": {
|
| 1832 |
"node": ">=0.10.0"
|
| 1833 |
}
|
| 1834 |
},
|
| 1835 |
+
"node_modules/path-to-regexp": {
|
| 1836 |
+
"version": "0.1.7",
|
| 1837 |
+
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
|
| 1838 |
+
"integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==",
|
| 1839 |
+
"license": "MIT"
|
| 1840 |
+
},
|
| 1841 |
+
"node_modules/prebuild-install": {
|
| 1842 |
+
"version": "7.1.2",
|
| 1843 |
+
"resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.2.tgz",
|
| 1844 |
+
"integrity": "sha512-UnNke3IQb6sgarcZIDU3gbMeTp/9SSU1DAIkil7PrqG1vZlBtY5msYccSKSHDqa3hNg436IXK+SNImReuA1wEQ==",
|
| 1845 |
"license": "MIT",
|
| 1846 |
+
"dependencies": {
|
| 1847 |
+
"detect-libc": "^2.0.0",
|
| 1848 |
+
"expand-template": "^2.0.3",
|
| 1849 |
+
"github-from-package": "0.0.0",
|
| 1850 |
+
"minimist": "^1.2.3",
|
| 1851 |
+
"mkdirp-classic": "^0.5.3",
|
| 1852 |
+
"napi-build-utils": "^1.0.1",
|
| 1853 |
+
"node-abi": "^3.3.0",
|
| 1854 |
+
"pump": "^3.0.0",
|
| 1855 |
+
"rc": "^1.2.7",
|
| 1856 |
+
"simple-get": "^4.0.0",
|
| 1857 |
+
"tar-fs": "^2.0.0",
|
| 1858 |
+
"tunnel-agent": "^0.6.0"
|
| 1859 |
+
},
|
| 1860 |
+
"bin": {
|
| 1861 |
+
"prebuild-install": "bin.js"
|
| 1862 |
+
},
|
| 1863 |
"engines": {
|
| 1864 |
+
"node": ">=10"
|
| 1865 |
}
|
| 1866 |
},
|
| 1867 |
+
"node_modules/promise-inflight": {
|
| 1868 |
+
"version": "1.0.1",
|
| 1869 |
+
"resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz",
|
| 1870 |
+
"integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==",
|
| 1871 |
+
"license": "ISC",
|
| 1872 |
+
"optional": true
|
| 1873 |
+
},
|
| 1874 |
+
"node_modules/promise-retry": {
|
| 1875 |
+
"version": "2.0.1",
|
| 1876 |
+
"resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz",
|
| 1877 |
+
"integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==",
|
| 1878 |
"license": "MIT",
|
| 1879 |
+
"optional": true,
|
| 1880 |
"dependencies": {
|
| 1881 |
+
"err-code": "^2.0.2",
|
| 1882 |
+
"retry": "^0.12.0"
|
| 1883 |
},
|
| 1884 |
"engines": {
|
| 1885 |
+
"node": ">=10"
|
| 1886 |
}
|
| 1887 |
},
|
| 1888 |
"node_modules/proxy-addr": {
|
|
|
|
| 1904 |
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
|
| 1905 |
"license": "MIT"
|
| 1906 |
},
|
| 1907 |
+
"node_modules/pump": {
|
| 1908 |
+
"version": "3.0.0",
|
| 1909 |
+
"resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
|
| 1910 |
+
"integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
|
| 1911 |
+
"license": "MIT",
|
| 1912 |
+
"dependencies": {
|
| 1913 |
+
"end-of-stream": "^1.1.0",
|
| 1914 |
+
"once": "^1.3.1"
|
| 1915 |
+
}
|
| 1916 |
+
},
|
| 1917 |
"node_modules/qs": {
|
| 1918 |
"version": "6.11.0",
|
| 1919 |
"resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",
|
|
|
|
| 1953 |
"node": ">= 0.8"
|
| 1954 |
}
|
| 1955 |
},
|
| 1956 |
+
"node_modules/rc": {
|
| 1957 |
+
"version": "1.2.8",
|
| 1958 |
+
"resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
|
| 1959 |
+
"integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
|
| 1960 |
+
"license": "(BSD-2-Clause OR MIT OR Apache-2.0)",
|
| 1961 |
+
"dependencies": {
|
| 1962 |
+
"deep-extend": "^0.6.0",
|
| 1963 |
+
"ini": "~1.3.0",
|
| 1964 |
+
"minimist": "^1.2.0",
|
| 1965 |
+
"strip-json-comments": "~2.0.1"
|
| 1966 |
+
},
|
| 1967 |
+
"bin": {
|
| 1968 |
+
"rc": "cli.js"
|
| 1969 |
+
}
|
| 1970 |
+
},
|
| 1971 |
"node_modules/readable-stream": {
|
| 1972 |
"version": "3.6.2",
|
| 1973 |
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
|
|
|
|
| 1982 |
"node": ">= 6"
|
| 1983 |
}
|
| 1984 |
},
|
| 1985 |
+
"node_modules/retry": {
|
| 1986 |
+
"version": "0.12.0",
|
| 1987 |
+
"resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz",
|
| 1988 |
+
"integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==",
|
| 1989 |
"license": "MIT",
|
| 1990 |
+
"optional": true,
|
| 1991 |
+
"engines": {
|
| 1992 |
+
"node": ">= 4"
|
| 1993 |
+
}
|
| 1994 |
+
},
|
| 1995 |
+
"node_modules/rimraf": {
|
| 1996 |
+
"version": "3.0.2",
|
| 1997 |
+
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
|
| 1998 |
+
"integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
|
| 1999 |
+
"deprecated": "Rimraf versions prior to v4 are no longer supported",
|
| 2000 |
+
"license": "ISC",
|
| 2001 |
+
"optional": true,
|
| 2002 |
"dependencies": {
|
| 2003 |
+
"glob": "^7.1.3"
|
| 2004 |
+
},
|
| 2005 |
+
"bin": {
|
| 2006 |
+
"rimraf": "bin.js"
|
| 2007 |
+
},
|
| 2008 |
+
"funding": {
|
| 2009 |
+
"url": "https://github.com/sponsors/isaacs"
|
| 2010 |
}
|
| 2011 |
},
|
| 2012 |
"node_modules/safe-buffer": {
|
|
|
|
| 2044 |
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
|
| 2045 |
"license": "MIT"
|
| 2046 |
},
|
| 2047 |
+
"node_modules/semver": {
|
| 2048 |
+
"version": "7.6.3",
|
| 2049 |
+
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
|
| 2050 |
+
"integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
|
| 2051 |
+
"license": "ISC",
|
| 2052 |
+
"bin": {
|
| 2053 |
+
"semver": "bin/semver.js"
|
| 2054 |
+
},
|
| 2055 |
+
"engines": {
|
| 2056 |
+
"node": ">=10"
|
| 2057 |
+
}
|
| 2058 |
+
},
|
| 2059 |
"node_modules/send": {
|
| 2060 |
"version": "0.18.0",
|
| 2061 |
"resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz",
|
|
|
|
| 2101 |
"node": ">= 0.8.0"
|
| 2102 |
}
|
| 2103 |
},
|
| 2104 |
+
"node_modules/set-blocking": {
|
| 2105 |
+
"version": "2.0.0",
|
| 2106 |
+
"resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
|
| 2107 |
+
"integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==",
|
| 2108 |
+
"license": "ISC",
|
| 2109 |
+
"optional": true
|
| 2110 |
+
},
|
| 2111 |
"node_modules/set-function-length": {
|
| 2112 |
"version": "1.2.2",
|
| 2113 |
"resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
|
|
|
|
| 2149 |
"url": "https://github.com/sponsors/ljharb"
|
| 2150 |
}
|
| 2151 |
},
|
| 2152 |
+
"node_modules/signal-exit": {
|
| 2153 |
+
"version": "3.0.7",
|
| 2154 |
+
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
|
| 2155 |
+
"integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
|
| 2156 |
+
"license": "ISC",
|
| 2157 |
+
"optional": true
|
| 2158 |
+
},
|
| 2159 |
+
"node_modules/simple-concat": {
|
| 2160 |
+
"version": "1.0.1",
|
| 2161 |
+
"resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",
|
| 2162 |
+
"integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",
|
| 2163 |
+
"funding": [
|
| 2164 |
+
{
|
| 2165 |
+
"type": "github",
|
| 2166 |
+
"url": "https://github.com/sponsors/feross"
|
| 2167 |
+
},
|
| 2168 |
+
{
|
| 2169 |
+
"type": "patreon",
|
| 2170 |
+
"url": "https://www.patreon.com/feross"
|
| 2171 |
+
},
|
| 2172 |
+
{
|
| 2173 |
+
"type": "consulting",
|
| 2174 |
+
"url": "https://feross.org/support"
|
| 2175 |
+
}
|
| 2176 |
+
],
|
| 2177 |
+
"license": "MIT"
|
| 2178 |
+
},
|
| 2179 |
+
"node_modules/simple-get": {
|
| 2180 |
+
"version": "4.0.1",
|
| 2181 |
+
"resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",
|
| 2182 |
+
"integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",
|
| 2183 |
+
"funding": [
|
| 2184 |
+
{
|
| 2185 |
+
"type": "github",
|
| 2186 |
+
"url": "https://github.com/sponsors/feross"
|
| 2187 |
+
},
|
| 2188 |
+
{
|
| 2189 |
+
"type": "patreon",
|
| 2190 |
+
"url": "https://www.patreon.com/feross"
|
| 2191 |
+
},
|
| 2192 |
+
{
|
| 2193 |
+
"type": "consulting",
|
| 2194 |
+
"url": "https://feross.org/support"
|
| 2195 |
+
}
|
| 2196 |
+
],
|
| 2197 |
+
"license": "MIT",
|
| 2198 |
+
"dependencies": {
|
| 2199 |
+
"decompress-response": "^6.0.0",
|
| 2200 |
+
"once": "^1.3.1",
|
| 2201 |
+
"simple-concat": "^1.0.0"
|
| 2202 |
+
}
|
| 2203 |
+
},
|
| 2204 |
"node_modules/simple-swizzle": {
|
| 2205 |
"version": "0.2.2",
|
| 2206 |
"resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz",
|
|
|
|
| 2210 |
"is-arrayish": "^0.3.1"
|
| 2211 |
}
|
| 2212 |
},
|
| 2213 |
+
"node_modules/smart-buffer": {
|
| 2214 |
"version": "4.2.0",
|
| 2215 |
+
"resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",
|
| 2216 |
+
"integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==",
|
| 2217 |
+
"license": "MIT",
|
| 2218 |
+
"optional": true,
|
| 2219 |
+
"engines": {
|
| 2220 |
+
"node": ">= 6.0.0",
|
| 2221 |
+
"npm": ">= 3.0.0"
|
| 2222 |
+
}
|
| 2223 |
+
},
|
| 2224 |
+
"node_modules/socks": {
|
| 2225 |
+
"version": "2.8.3",
|
| 2226 |
+
"resolved": "https://registry.npmjs.org/socks/-/socks-2.8.3.tgz",
|
| 2227 |
+
"integrity": "sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==",
|
| 2228 |
+
"license": "MIT",
|
| 2229 |
+
"optional": true,
|
| 2230 |
+
"dependencies": {
|
| 2231 |
+
"ip-address": "^9.0.5",
|
| 2232 |
+
"smart-buffer": "^4.2.0"
|
| 2233 |
+
},
|
| 2234 |
+
"engines": {
|
| 2235 |
+
"node": ">= 10.0.0",
|
| 2236 |
+
"npm": ">= 3.0.0"
|
| 2237 |
+
}
|
| 2238 |
+
},
|
| 2239 |
+
"node_modules/socks-proxy-agent": {
|
| 2240 |
+
"version": "6.2.1",
|
| 2241 |
+
"resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-6.2.1.tgz",
|
| 2242 |
+
"integrity": "sha512-a6KW9G+6B3nWZ1yB8G7pJwL3ggLy1uTzKAgCb7ttblwqdz9fMGJUuTy3uFzEP48FAs9FLILlmzDlE2JJhVQaXQ==",
|
| 2243 |
+
"license": "MIT",
|
| 2244 |
+
"optional": true,
|
| 2245 |
+
"dependencies": {
|
| 2246 |
+
"agent-base": "^6.0.2",
|
| 2247 |
+
"debug": "^4.3.3",
|
| 2248 |
+
"socks": "^2.6.2"
|
| 2249 |
+
},
|
| 2250 |
+
"engines": {
|
| 2251 |
+
"node": ">= 10"
|
| 2252 |
+
}
|
| 2253 |
+
},
|
| 2254 |
+
"node_modules/socks-proxy-agent/node_modules/debug": {
|
| 2255 |
+
"version": "4.3.6",
|
| 2256 |
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz",
|
| 2257 |
+
"integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==",
|
| 2258 |
+
"license": "MIT",
|
| 2259 |
+
"optional": true,
|
| 2260 |
+
"dependencies": {
|
| 2261 |
+
"ms": "2.1.2"
|
| 2262 |
+
},
|
| 2263 |
+
"engines": {
|
| 2264 |
+
"node": ">=6.0"
|
| 2265 |
+
},
|
| 2266 |
+
"peerDependenciesMeta": {
|
| 2267 |
+
"supports-color": {
|
| 2268 |
+
"optional": true
|
| 2269 |
+
}
|
| 2270 |
+
}
|
| 2271 |
+
},
|
| 2272 |
+
"node_modules/socks-proxy-agent/node_modules/ms": {
|
| 2273 |
+
"version": "2.1.2",
|
| 2274 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
| 2275 |
+
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
| 2276 |
+
"license": "MIT",
|
| 2277 |
+
"optional": true
|
| 2278 |
+
},
|
| 2279 |
+
"node_modules/sprintf-js": {
|
| 2280 |
+
"version": "1.1.3",
|
| 2281 |
+
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz",
|
| 2282 |
+
"integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==",
|
| 2283 |
+
"license": "BSD-3-Clause",
|
| 2284 |
+
"optional": true
|
| 2285 |
+
},
|
| 2286 |
+
"node_modules/sqlite3": {
|
| 2287 |
+
"version": "5.1.7",
|
| 2288 |
+
"resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-5.1.7.tgz",
|
| 2289 |
+
"integrity": "sha512-GGIyOiFaG+TUra3JIfkI/zGP8yZYLPQ0pl1bH+ODjiX57sPhrLU5sQJn1y9bDKZUFYkX1crlrPfSYt0BKKdkog==",
|
| 2290 |
+
"hasInstallScript": true,
|
| 2291 |
+
"license": "BSD-3-Clause",
|
| 2292 |
+
"dependencies": {
|
| 2293 |
+
"bindings": "^1.5.0",
|
| 2294 |
+
"node-addon-api": "^7.0.0",
|
| 2295 |
+
"prebuild-install": "^7.1.1",
|
| 2296 |
+
"tar": "^6.1.11"
|
| 2297 |
+
},
|
| 2298 |
+
"optionalDependencies": {
|
| 2299 |
+
"node-gyp": "8.x"
|
| 2300 |
+
},
|
| 2301 |
+
"peerDependencies": {
|
| 2302 |
+
"node-gyp": "8.x"
|
| 2303 |
+
},
|
| 2304 |
+
"peerDependenciesMeta": {
|
| 2305 |
+
"node-gyp": {
|
| 2306 |
+
"optional": true
|
| 2307 |
+
}
|
| 2308 |
+
}
|
| 2309 |
+
},
|
| 2310 |
+
"node_modules/ssri": {
|
| 2311 |
+
"version": "8.0.1",
|
| 2312 |
+
"resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz",
|
| 2313 |
+
"integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==",
|
| 2314 |
"license": "ISC",
|
| 2315 |
+
"optional": true,
|
| 2316 |
+
"dependencies": {
|
| 2317 |
+
"minipass": "^3.1.1"
|
| 2318 |
+
},
|
| 2319 |
"engines": {
|
| 2320 |
+
"node": ">= 8"
|
| 2321 |
}
|
| 2322 |
},
|
| 2323 |
"node_modules/stack-trace": {
|
|
|
|
| 2347 |
"safe-buffer": "~5.2.0"
|
| 2348 |
}
|
| 2349 |
},
|
| 2350 |
+
"node_modules/string-width": {
|
| 2351 |
+
"version": "4.2.3",
|
| 2352 |
+
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
|
| 2353 |
+
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
|
| 2354 |
+
"license": "MIT",
|
| 2355 |
+
"optional": true,
|
| 2356 |
+
"dependencies": {
|
| 2357 |
+
"emoji-regex": "^8.0.0",
|
| 2358 |
+
"is-fullwidth-code-point": "^3.0.0",
|
| 2359 |
+
"strip-ansi": "^6.0.1"
|
| 2360 |
+
},
|
| 2361 |
+
"engines": {
|
| 2362 |
+
"node": ">=8"
|
| 2363 |
+
}
|
| 2364 |
+
},
|
| 2365 |
+
"node_modules/strip-ansi": {
|
| 2366 |
+
"version": "6.0.1",
|
| 2367 |
+
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
|
| 2368 |
+
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
|
| 2369 |
+
"license": "MIT",
|
| 2370 |
+
"optional": true,
|
| 2371 |
+
"dependencies": {
|
| 2372 |
+
"ansi-regex": "^5.0.1"
|
| 2373 |
+
},
|
| 2374 |
+
"engines": {
|
| 2375 |
+
"node": ">=8"
|
| 2376 |
+
}
|
| 2377 |
+
},
|
| 2378 |
+
"node_modules/strip-json-comments": {
|
| 2379 |
+
"version": "2.0.1",
|
| 2380 |
+
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
|
| 2381 |
+
"integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",
|
| 2382 |
+
"license": "MIT",
|
| 2383 |
+
"engines": {
|
| 2384 |
+
"node": ">=0.10.0"
|
| 2385 |
+
}
|
| 2386 |
+
},
|
| 2387 |
+
"node_modules/tar": {
|
| 2388 |
+
"version": "6.2.1",
|
| 2389 |
+
"resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz",
|
| 2390 |
+
"integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==",
|
| 2391 |
+
"license": "ISC",
|
| 2392 |
+
"dependencies": {
|
| 2393 |
+
"chownr": "^2.0.0",
|
| 2394 |
+
"fs-minipass": "^2.0.0",
|
| 2395 |
+
"minipass": "^5.0.0",
|
| 2396 |
+
"minizlib": "^2.1.1",
|
| 2397 |
+
"mkdirp": "^1.0.3",
|
| 2398 |
+
"yallist": "^4.0.0"
|
| 2399 |
+
},
|
| 2400 |
+
"engines": {
|
| 2401 |
+
"node": ">=10"
|
| 2402 |
+
}
|
| 2403 |
+
},
|
| 2404 |
+
"node_modules/tar-fs": {
|
| 2405 |
+
"version": "2.1.1",
|
| 2406 |
+
"resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz",
|
| 2407 |
+
"integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==",
|
| 2408 |
+
"license": "MIT",
|
| 2409 |
+
"dependencies": {
|
| 2410 |
+
"chownr": "^1.1.1",
|
| 2411 |
+
"mkdirp-classic": "^0.5.2",
|
| 2412 |
+
"pump": "^3.0.0",
|
| 2413 |
+
"tar-stream": "^2.1.4"
|
| 2414 |
+
}
|
| 2415 |
+
},
|
| 2416 |
+
"node_modules/tar-fs/node_modules/chownr": {
|
| 2417 |
+
"version": "1.1.4",
|
| 2418 |
+
"resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",
|
| 2419 |
+
"integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",
|
| 2420 |
+
"license": "ISC"
|
| 2421 |
+
},
|
| 2422 |
+
"node_modules/tar-stream": {
|
| 2423 |
+
"version": "2.2.0",
|
| 2424 |
+
"resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",
|
| 2425 |
+
"integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",
|
| 2426 |
+
"license": "MIT",
|
| 2427 |
+
"dependencies": {
|
| 2428 |
+
"bl": "^4.0.3",
|
| 2429 |
+
"end-of-stream": "^1.4.1",
|
| 2430 |
+
"fs-constants": "^1.0.0",
|
| 2431 |
+
"inherits": "^2.0.3",
|
| 2432 |
+
"readable-stream": "^3.1.1"
|
| 2433 |
+
},
|
| 2434 |
+
"engines": {
|
| 2435 |
+
"node": ">=6"
|
| 2436 |
+
}
|
| 2437 |
+
},
|
| 2438 |
+
"node_modules/tar/node_modules/minipass": {
|
| 2439 |
+
"version": "5.0.0",
|
| 2440 |
+
"resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",
|
| 2441 |
+
"integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",
|
| 2442 |
+
"license": "ISC",
|
| 2443 |
+
"engines": {
|
| 2444 |
+
"node": ">=8"
|
| 2445 |
+
}
|
| 2446 |
+
},
|
| 2447 |
"node_modules/text-hex": {
|
| 2448 |
"version": "1.0.0",
|
| 2449 |
"resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz",
|
|
|
|
| 2468 |
"node": ">= 14.0.0"
|
| 2469 |
}
|
| 2470 |
},
|
| 2471 |
+
"node_modules/tunnel-agent": {
|
| 2472 |
+
"version": "0.6.0",
|
| 2473 |
+
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
|
| 2474 |
+
"integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",
|
| 2475 |
+
"license": "Apache-2.0",
|
| 2476 |
+
"dependencies": {
|
| 2477 |
+
"safe-buffer": "^5.0.1"
|
| 2478 |
+
},
|
| 2479 |
+
"engines": {
|
| 2480 |
+
"node": "*"
|
| 2481 |
+
}
|
| 2482 |
+
},
|
| 2483 |
"node_modules/type-is": {
|
| 2484 |
"version": "1.6.18",
|
| 2485 |
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
|
|
|
|
| 2493 |
"node": ">= 0.6"
|
| 2494 |
}
|
| 2495 |
},
|
| 2496 |
+
"node_modules/unique-filename": {
|
| 2497 |
+
"version": "1.1.1",
|
| 2498 |
+
"resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz",
|
| 2499 |
+
"integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==",
|
| 2500 |
+
"license": "ISC",
|
| 2501 |
+
"optional": true,
|
| 2502 |
+
"dependencies": {
|
| 2503 |
+
"unique-slug": "^2.0.0"
|
| 2504 |
+
}
|
| 2505 |
+
},
|
| 2506 |
+
"node_modules/unique-slug": {
|
| 2507 |
+
"version": "2.0.2",
|
| 2508 |
+
"resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz",
|
| 2509 |
+
"integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==",
|
| 2510 |
+
"license": "ISC",
|
| 2511 |
+
"optional": true,
|
| 2512 |
+
"dependencies": {
|
| 2513 |
+
"imurmurhash": "^0.1.4"
|
| 2514 |
+
}
|
| 2515 |
+
},
|
| 2516 |
"node_modules/unpipe": {
|
| 2517 |
"version": "1.0.0",
|
| 2518 |
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
|
|
|
|
| 2546 |
"node": ">= 0.8"
|
| 2547 |
}
|
| 2548 |
},
|
| 2549 |
+
"node_modules/which": {
|
| 2550 |
+
"version": "2.0.2",
|
| 2551 |
+
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
|
| 2552 |
+
"integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
|
| 2553 |
+
"license": "ISC",
|
| 2554 |
+
"optional": true,
|
| 2555 |
+
"dependencies": {
|
| 2556 |
+
"isexe": "^2.0.0"
|
| 2557 |
+
},
|
| 2558 |
+
"bin": {
|
| 2559 |
+
"node-which": "bin/node-which"
|
| 2560 |
+
},
|
| 2561 |
+
"engines": {
|
| 2562 |
+
"node": ">= 8"
|
| 2563 |
+
}
|
| 2564 |
+
},
|
| 2565 |
+
"node_modules/wide-align": {
|
| 2566 |
+
"version": "1.1.5",
|
| 2567 |
+
"resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",
|
| 2568 |
+
"integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",
|
| 2569 |
+
"license": "ISC",
|
| 2570 |
+
"optional": true,
|
| 2571 |
+
"dependencies": {
|
| 2572 |
+
"string-width": "^1.0.2 || 2 || 3 || 4"
|
| 2573 |
+
}
|
| 2574 |
+
},
|
| 2575 |
"node_modules/winston": {
|
| 2576 |
"version": "3.14.2",
|
| 2577 |
"resolved": "https://registry.npmjs.org/winston/-/winston-3.14.2.tgz",
|
|
|
|
| 2626 |
"node": ">= 12.0.0"
|
| 2627 |
}
|
| 2628 |
},
|
| 2629 |
+
"node_modules/wrappy": {
|
| 2630 |
+
"version": "1.0.2",
|
| 2631 |
+
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
| 2632 |
+
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
|
| 2633 |
+
"license": "ISC"
|
|
|
|
|
|
|
|
|
|
| 2634 |
},
|
| 2635 |
"node_modules/yallist": {
|
| 2636 |
"version": "4.0.0",
|
package.json
CHANGED
|
@@ -12,12 +12,10 @@
|
|
| 12 |
"dependencies": {
|
| 13 |
"async": "^3.2.6",
|
| 14 |
"axios": "^1.7.5",
|
| 15 |
-
"bottleneck": "^2.19.5",
|
| 16 |
"cors": "^2.8.5",
|
| 17 |
"dotenv": "^16.4.5",
|
| 18 |
"express": "^4.19.2",
|
| 19 |
-
"
|
| 20 |
-
"redis": "^4.7.0",
|
| 21 |
"winston": "^3.14.2",
|
| 22 |
"winston-daily-rotate-file": "^5.0.0"
|
| 23 |
}
|
|
|
|
| 12 |
"dependencies": {
|
| 13 |
"async": "^3.2.6",
|
| 14 |
"axios": "^1.7.5",
|
|
|
|
| 15 |
"cors": "^2.8.5",
|
| 16 |
"dotenv": "^16.4.5",
|
| 17 |
"express": "^4.19.2",
|
| 18 |
+
"sqlite3": "^5.1.7",
|
|
|
|
| 19 |
"winston": "^3.14.2",
|
| 20 |
"winston-daily-rotate-file": "^5.0.0"
|
| 21 |
}
|
public/configure.html
CHANGED
|
@@ -309,78 +309,6 @@
|
|
| 309 |
transition: background-color 0.3s, transform 0.2s;
|
| 310 |
}
|
| 311 |
|
| 312 |
-
#connectTraktButton {
|
| 313 |
-
background-color: #e9e9ed;
|
| 314 |
-
color: #333;
|
| 315 |
-
display: inline-flex;
|
| 316 |
-
align-items: center;
|
| 317 |
-
justify-content: center;
|
| 318 |
-
padding: 10px 20px;
|
| 319 |
-
border: none;
|
| 320 |
-
cursor: pointer;
|
| 321 |
-
border-radius: 8px;
|
| 322 |
-
}
|
| 323 |
-
|
| 324 |
-
#connectTraktButton:hover {
|
| 325 |
-
background-color: #d3d3d3;
|
| 326 |
-
color: #333;
|
| 327 |
-
}
|
| 328 |
-
|
| 329 |
-
.trakt-logo {
|
| 330 |
-
width: 38px;
|
| 331 |
-
height: 38px;
|
| 332 |
-
display: inline-flex;
|
| 333 |
-
align-items: center;
|
| 334 |
-
justify-content: center;
|
| 335 |
-
margin-right: 10px;
|
| 336 |
-
vertical-align: middle;
|
| 337 |
-
}
|
| 338 |
-
|
| 339 |
-
#connectTraktButton span {
|
| 340 |
-
display: inline-block;
|
| 341 |
-
vertical-align: middle;
|
| 342 |
-
}
|
| 343 |
-
|
| 344 |
-
@media (max-width: 768px) {
|
| 345 |
-
#connectTraktButton {
|
| 346 |
-
margin: 0 auto;
|
| 347 |
-
display: flex;
|
| 348 |
-
align-items: center;
|
| 349 |
-
justify-content: center;
|
| 350 |
-
padding: 12px 20px;
|
| 351 |
-
}
|
| 352 |
-
|
| 353 |
-
#connectTraktButton span {
|
| 354 |
-
display: inline-block;
|
| 355 |
-
vertical-align: middle;
|
| 356 |
-
}
|
| 357 |
-
|
| 358 |
-
.trakt-logo {
|
| 359 |
-
width: 36px;
|
| 360 |
-
height: 36px;
|
| 361 |
-
margin-right: 8px;
|
| 362 |
-
}
|
| 363 |
-
}
|
| 364 |
-
|
| 365 |
-
body.dark-mode #connectTraktButton {
|
| 366 |
-
background-color: #555;
|
| 367 |
-
color: #f0f0f5;
|
| 368 |
-
border: 1px solid #666;
|
| 369 |
-
}
|
| 370 |
-
|
| 371 |
-
body.dark-mode #connectTraktButton:hover {
|
| 372 |
-
background-color: #666;
|
| 373 |
-
color: #f0f0f5;
|
| 374 |
-
}
|
| 375 |
-
|
| 376 |
-
#confirmButton {
|
| 377 |
-
background-color: #007aff;
|
| 378 |
-
}
|
| 379 |
-
|
| 380 |
-
#confirmButton:hover {
|
| 381 |
-
background-color: #007aff;
|
| 382 |
-
}
|
| 383 |
-
|
| 384 |
#installButton {
|
| 385 |
background-color: #007aff;
|
| 386 |
}
|
|
@@ -511,320 +439,6 @@
|
|
| 511 |
color: #333;
|
| 512 |
}
|
| 513 |
}
|
| 514 |
-
|
| 515 |
-
.custom-select-container {
|
| 516 |
-
position: relative;
|
| 517 |
-
width: 100%;
|
| 518 |
-
}
|
| 519 |
-
|
| 520 |
-
.tags-input {
|
| 521 |
-
display: flex;
|
| 522 |
-
flex-wrap: wrap;
|
| 523 |
-
align-items: center;
|
| 524 |
-
gap: 5px;
|
| 525 |
-
padding: 5px;
|
| 526 |
-
border: 1px solid #ccc;
|
| 527 |
-
border-radius: 8px;
|
| 528 |
-
position: relative;
|
| 529 |
-
}
|
| 530 |
-
|
| 531 |
-
#regionSearchInput {
|
| 532 |
-
border: none;
|
| 533 |
-
outline: none;
|
| 534 |
-
flex-grow: 1;
|
| 535 |
-
padding: 8px;
|
| 536 |
-
font-size: 1rem;
|
| 537 |
-
min-width: 100px;
|
| 538 |
-
}
|
| 539 |
-
|
| 540 |
-
.custom-dropdown {
|
| 541 |
-
position: absolute;
|
| 542 |
-
top: 100%;
|
| 543 |
-
left: 0;
|
| 544 |
-
width: 100%;
|
| 545 |
-
max-height: 350px;
|
| 546 |
-
overflow-y: auto;
|
| 547 |
-
background-color: #fff;
|
| 548 |
-
border: 1px solid #ccc;
|
| 549 |
-
border-radius: 0 0 8px 8px;
|
| 550 |
-
z-index: 100;
|
| 551 |
-
display: none;
|
| 552 |
-
}
|
| 553 |
-
|
| 554 |
-
.dropdown-option {
|
| 555 |
-
padding: 8px;
|
| 556 |
-
cursor: pointer;
|
| 557 |
-
}
|
| 558 |
-
|
| 559 |
-
.dropdown-option:hover {
|
| 560 |
-
background-color: #f0f0f5;
|
| 561 |
-
}
|
| 562 |
-
|
| 563 |
-
.tag {
|
| 564 |
-
display: inline-flex;
|
| 565 |
-
align-items: center;
|
| 566 |
-
background-color: #e9e9ed;
|
| 567 |
-
color: #333;
|
| 568 |
-
border-radius: 8px;
|
| 569 |
-
padding: 5px 10px;
|
| 570 |
-
font-size: 0.9rem;
|
| 571 |
-
margin-right: 5px;
|
| 572 |
-
margin-bottom: 5px;
|
| 573 |
-
}
|
| 574 |
-
|
| 575 |
-
.tag .flag {
|
| 576 |
-
margin-right: 5px;
|
| 577 |
-
}
|
| 578 |
-
|
| 579 |
-
.tag .country-name {
|
| 580 |
-
margin-right: 5px;
|
| 581 |
-
}
|
| 582 |
-
|
| 583 |
-
body.dark-mode .custom-select-container {
|
| 584 |
-
background-color: #555;
|
| 585 |
-
color: #f0f0f5;
|
| 586 |
-
border: 1px solid #666;
|
| 587 |
-
border-radius: 8px;
|
| 588 |
-
width: 100%;
|
| 589 |
-
position: relative;
|
| 590 |
-
}
|
| 591 |
-
|
| 592 |
-
body.dark-mode .tags-input {
|
| 593 |
-
display: flex;
|
| 594 |
-
flex-wrap: wrap;
|
| 595 |
-
align-items: center;
|
| 596 |
-
gap: 5px;
|
| 597 |
-
padding: 5px;
|
| 598 |
-
background-color: #555;
|
| 599 |
-
border: 1px solid #666;
|
| 600 |
-
border-radius: 8px;
|
| 601 |
-
position: relative;
|
| 602 |
-
color: #f0f0f5;
|
| 603 |
-
}
|
| 604 |
-
|
| 605 |
-
body.dark-mode #regionSearchInput {
|
| 606 |
-
background-color: #555;
|
| 607 |
-
color: #f0f0f5;
|
| 608 |
-
border: none;
|
| 609 |
-
outline: none;
|
| 610 |
-
flex-grow: 1;
|
| 611 |
-
padding: 8px;
|
| 612 |
-
font-size: 1rem;
|
| 613 |
-
min-width: 100px;
|
| 614 |
-
}
|
| 615 |
-
|
| 616 |
-
body.dark-mode .custom-dropdown {
|
| 617 |
-
background-color: #555;
|
| 618 |
-
border: 1px solid #666;
|
| 619 |
-
border-radius: 0 0 8px 8px;
|
| 620 |
-
z-index: 100;
|
| 621 |
-
max-height: 350px;
|
| 622 |
-
overflow-y: auto;
|
| 623 |
-
display: none;
|
| 624 |
-
}
|
| 625 |
-
|
| 626 |
-
body.dark-mode .dropdown-option {
|
| 627 |
-
padding: 8px;
|
| 628 |
-
background-color: #555;
|
| 629 |
-
color: #f0f0f5;
|
| 630 |
-
cursor: pointer;
|
| 631 |
-
transition: background-color 0.2s;
|
| 632 |
-
}
|
| 633 |
-
|
| 634 |
-
body.dark-mode .dropdown-option:hover {
|
| 635 |
-
background-color: #666;
|
| 636 |
-
}
|
| 637 |
-
|
| 638 |
-
body.dark-mode .tag {
|
| 639 |
-
display: inline-flex;
|
| 640 |
-
align-items: center;
|
| 641 |
-
background-color: #666;
|
| 642 |
-
color: #f0f0f5;
|
| 643 |
-
border-radius: 8px;
|
| 644 |
-
padding: 5px 10px;
|
| 645 |
-
font-size: 0.9rem;
|
| 646 |
-
margin-right: 5px;
|
| 647 |
-
margin-bottom: 5px;
|
| 648 |
-
}
|
| 649 |
-
|
| 650 |
-
body.dark-mode .tag .flag,
|
| 651 |
-
body.dark-mode .tag .country-name {
|
| 652 |
-
color: #f0f0f5;
|
| 653 |
-
}
|
| 654 |
-
|
| 655 |
-
.toggle-switch {
|
| 656 |
-
position: relative;
|
| 657 |
-
display: inline-block;
|
| 658 |
-
width: 40px;
|
| 659 |
-
height: 20px;
|
| 660 |
-
margin-left: 10px;
|
| 661 |
-
vertical-align: middle;
|
| 662 |
-
}
|
| 663 |
-
|
| 664 |
-
.toggle-switch input {
|
| 665 |
-
opacity: 0;
|
| 666 |
-
width: 0;
|
| 667 |
-
height: 0;
|
| 668 |
-
}
|
| 669 |
-
|
| 670 |
-
.slider {
|
| 671 |
-
position: absolute;
|
| 672 |
-
cursor: pointer;
|
| 673 |
-
top: 0;
|
| 674 |
-
left: 0;
|
| 675 |
-
right: 0;
|
| 676 |
-
bottom: 0;
|
| 677 |
-
background-color: #ccc;
|
| 678 |
-
transition: 0.4s;
|
| 679 |
-
border-radius: 34px;
|
| 680 |
-
}
|
| 681 |
-
|
| 682 |
-
.slider:before {
|
| 683 |
-
position: absolute;
|
| 684 |
-
content: "";
|
| 685 |
-
height: 14px;
|
| 686 |
-
width: 14px;
|
| 687 |
-
left: 3px;
|
| 688 |
-
bottom: 3px;
|
| 689 |
-
background-color: white;
|
| 690 |
-
transition: 0.4s;
|
| 691 |
-
border-radius: 50%;
|
| 692 |
-
}
|
| 693 |
-
|
| 694 |
-
input:checked + .slider {
|
| 695 |
-
background-color: #4caf50;
|
| 696 |
-
}
|
| 697 |
-
|
| 698 |
-
input:checked + .slider:before {
|
| 699 |
-
transform: translateX(20px);
|
| 700 |
-
}
|
| 701 |
-
|
| 702 |
-
body.dark-mode .picmo__picker {
|
| 703 |
-
background-color: #444;
|
| 704 |
-
color: #f0f0f5;
|
| 705 |
-
border: 1px solid #666;
|
| 706 |
-
}
|
| 707 |
-
|
| 708 |
-
body.dark-mode .picmo__category {
|
| 709 |
-
background-color: #555;
|
| 710 |
-
color: #f0f0f5;
|
| 711 |
-
}
|
| 712 |
-
|
| 713 |
-
body.dark-mode .picmo__emoji {
|
| 714 |
-
background-color: #555;
|
| 715 |
-
color: #f0f0f5;
|
| 716 |
-
}
|
| 717 |
-
|
| 718 |
-
body.dark-mode .picmo__emoji:hover {
|
| 719 |
-
background-color: #666;
|
| 720 |
-
}
|
| 721 |
-
|
| 722 |
-
body.dark-mode .picmo__search {
|
| 723 |
-
background-color: #555;
|
| 724 |
-
color: #f0f0f5;
|
| 725 |
-
border: 1px solid #666;
|
| 726 |
-
}
|
| 727 |
-
|
| 728 |
-
body.dark-mode .picmo__search input {
|
| 729 |
-
background-color: #555;
|
| 730 |
-
color: #f0f0f5;
|
| 731 |
-
border: 1px solid #666;
|
| 732 |
-
}
|
| 733 |
-
|
| 734 |
-
body.dark-mode .picmo__footer {
|
| 735 |
-
background-color: #444;
|
| 736 |
-
border-top: 1px solid #666;
|
| 737 |
-
}
|
| 738 |
-
|
| 739 |
-
body.dark-mode .picmo__category-label {
|
| 740 |
-
color: #f0f0f5;
|
| 741 |
-
}
|
| 742 |
-
|
| 743 |
-
body.dark-mode .picmo__skin-tone-selector {
|
| 744 |
-
background-color: #555;
|
| 745 |
-
color: #f0f0f5;
|
| 746 |
-
border: 1px solid #666;
|
| 747 |
-
}
|
| 748 |
-
|
| 749 |
-
body.dark-mode .picmo__skin-tone-selector:hover {
|
| 750 |
-
background-color: #666;
|
| 751 |
-
}
|
| 752 |
-
|
| 753 |
-
.provider {
|
| 754 |
-
position: relative;
|
| 755 |
-
display: inline-block;
|
| 756 |
-
}
|
| 757 |
-
|
| 758 |
-
.provider img {
|
| 759 |
-
width: 100px;
|
| 760 |
-
height: auto;
|
| 761 |
-
display: block;
|
| 762 |
-
}
|
| 763 |
-
|
| 764 |
-
.region-flag {
|
| 765 |
-
position: absolute;
|
| 766 |
-
bottom: 0;
|
| 767 |
-
right: 0;
|
| 768 |
-
font-size: 20px;
|
| 769 |
-
width: 24px;
|
| 770 |
-
height: 24px;
|
| 771 |
-
background-color: #ffffff;
|
| 772 |
-
display: flex;
|
| 773 |
-
justify-content: center;
|
| 774 |
-
align-items: center;
|
| 775 |
-
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
|
| 776 |
-
}
|
| 777 |
-
/* Style pour les boutons radio "additionalContent" */
|
| 778 |
-
.form-element .radio-group {
|
| 779 |
-
display: flex;
|
| 780 |
-
flex-direction: column; /* Aligne verticalement */
|
| 781 |
-
gap: 10px; /* Espace entre les labels */
|
| 782 |
-
margin-bottom: 20px;
|
| 783 |
-
}
|
| 784 |
-
|
| 785 |
-
.form-element .radio-group label {
|
| 786 |
-
display: inline-flex;
|
| 787 |
-
align-items: center;
|
| 788 |
-
color: #333;
|
| 789 |
-
cursor: pointer;
|
| 790 |
-
gap: 10px; /* Espace entre le texte du label et le bouton */
|
| 791 |
-
}
|
| 792 |
-
|
| 793 |
-
.form-element .radio-group label span {
|
| 794 |
-
flex-grow: 1; /* Permet d'occuper tout l'espace restant pour aligner les boutons à droite du plus long label */
|
| 795 |
-
}
|
| 796 |
-
|
| 797 |
-
.form-element .radio-group input[type="radio"] {
|
| 798 |
-
appearance: none;
|
| 799 |
-
width: 12px;
|
| 800 |
-
height: 12px;
|
| 801 |
-
border-radius: 50%;
|
| 802 |
-
border: 2px solid #ccc;
|
| 803 |
-
background-color: #fff;
|
| 804 |
-
cursor: pointer;
|
| 805 |
-
transition: background-color 0.3s, border-color 0.3s;
|
| 806 |
-
}
|
| 807 |
-
|
| 808 |
-
.form-element .radio-group input[type="radio"]:checked {
|
| 809 |
-
background-color: #007aff;
|
| 810 |
-
border-color: #007aff;
|
| 811 |
-
}
|
| 812 |
-
|
| 813 |
-
/* Mode sombre */
|
| 814 |
-
body.dark-mode .radio-group input[type="radio"] {
|
| 815 |
-
border-color: #666;
|
| 816 |
-
background-color: #555;
|
| 817 |
-
}
|
| 818 |
-
|
| 819 |
-
body.dark-mode .radio-group input[type="radio"]:checked {
|
| 820 |
-
background-color: #4caf50;
|
| 821 |
-
border-color: #4caf50;
|
| 822 |
-
}
|
| 823 |
-
|
| 824 |
-
body.dark-mode .radio-group label {
|
| 825 |
-
color: #f0f0f5;
|
| 826 |
-
}
|
| 827 |
-
|
| 828 |
</style>
|
| 829 |
</head>
|
| 830 |
<html>
|
|
@@ -832,328 +446,87 @@ body.dark-mode .radio-group label {
|
|
| 832 |
<div id="addon">
|
| 833 |
<div id="theme-toggle" class="theme-toggle" title="Toggle Dark/Light Mode"> 🌙 </div>
|
| 834 |
<div class="logo">
|
| 835 |
-
<img src="
|
| 836 |
</div>
|
| 837 |
<h1 class="name">Streaming Catalog Providers</h1>
|
| 838 |
-
<h2 class="version">1.
|
| 839 |
-
<h2 class="description">
|
| 840 |
-
<div
|
| 841 |
-
|
| 842 |
-
<div
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 843 |
<div class="form-element">
|
| 844 |
-
<label for="tmdbApiKey">TMDB API key (<a href="https://www.themoviedb.org/settings/api" target="_blank" style="color: #007aff;">Get it here</a>)</label>
|
| 845 |
-
<input type="text" id="tmdbApiKey" name="tmdbApiKey"
|
| 846 |
</div>
|
| 847 |
-
<button type="button" id="confirmButton">CONFIRM</button>
|
| 848 |
-
</div>
|
| 849 |
-
|
| 850 |
-
<div id="interface2" style="display: none;">
|
| 851 |
-
<div class="separator"></div>
|
| 852 |
-
<h3 class="providers-title">Available providers</h3>
|
| 853 |
<div class="form-element">
|
| 854 |
-
<label for="
|
| 855 |
-
<
|
| 856 |
-
<
|
| 857 |
-
|
| 858 |
-
</div>
|
| 859 |
-
<div id="regionDropdown" class="custom-dropdown"></div>
|
| 860 |
-
</div>
|
| 861 |
</div>
|
| 862 |
<div class="form-element">
|
| 863 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 864 |
</div>
|
| 865 |
-
<div id="providers" class="provider-container"></div>
|
| 866 |
<div class="separator"></div>
|
| 867 |
-
<
|
| 868 |
-
<
|
| 869 |
-
|
| 870 |
-
<select id="language" name="language" required>
|
| 871 |
-
<option value="">Select your language</option>
|
| 872 |
-
</select>
|
| 873 |
-
</div>
|
| 874 |
-
<div class="form-element">
|
| 875 |
-
<label for="ageRange"> Age range (content moderation) <span id="infoIcon" class="info-icon" title="Learn more">?</span>
|
| 876 |
-
</label>
|
| 877 |
-
<select id="ageRange" name="ageRange">
|
| 878 |
-
<option value="">Select your age range</option>
|
| 879 |
-
<option value="0-5">0-5 years</option>
|
| 880 |
-
<option value="6-11">6-11 years</option>
|
| 881 |
-
<option value="12-15">12-15 years</option>
|
| 882 |
-
<option value="16-17">16-17 years</option>
|
| 883 |
-
<option value="18+">18+ years</option>
|
| 884 |
-
</select>
|
| 885 |
-
</div>
|
| 886 |
-
<div class="separator"></div>
|
| 887 |
-
<div class="form-element">
|
| 888 |
-
<label for="rpdbApiKey">RPDB API key (<a href="https://ratingposterdb.com/api-key/" target="_blank" style="color: #007aff;">Get it here</a>) </label>
|
| 889 |
-
<input type="text" id="rpdbApiKey" name="rpdbApiKey">
|
| 890 |
-
</div>
|
| 891 |
-
<div class="separator"></div>
|
| 892 |
-
<div class="form-element">
|
| 893 |
-
<label for="fanartApiKey">Fanart API key (<a href="https://fanart.tv/get-an-api-key" target="_blank" style="color: #007aff;">Get it here</a>) </label>
|
| 894 |
-
<input type="text" id="fanartApiKey" name="fanartApiKey">
|
| 895 |
-
</div>
|
| 896 |
-
<div class="separator"></div>
|
| 897 |
-
<div class="form-element">
|
| 898 |
-
<button type="button" id="connectTraktButton">
|
| 899 |
-
<img src="/assets/logoTrakt.png" alt="Trakt Logo" class="trakt-logo">
|
| 900 |
-
Connect to Trakt
|
| 901 |
-
</button>
|
| 902 |
-
</div>
|
| 903 |
-
<div class="separator"></div>
|
| 904 |
-
<div class="form-element">
|
| 905 |
-
<label for="popularCatalogTitle">Popular catalog title</label>
|
| 906 |
-
<input type="text" id="popularCatalogTitle" name="popularCatalogTitle" placeholder="Replace 'Popular' in catalog title">
|
| 907 |
-
</div>
|
| 908 |
-
|
| 909 |
-
<div class="form-element">
|
| 910 |
-
<label for="newCatalogTitle">New catalog title</label>
|
| 911 |
-
<input type="text" id="newCatalogTitle" name="newCatalogTitle" placeholder="Replace 'New' in catalog title">
|
| 912 |
-
</div>
|
| 913 |
-
<div class="form-element">
|
| 914 |
-
<label for="filterContentWithoutPoster">
|
| 915 |
-
Do not display content that does not have a poster (often bad results)
|
| 916 |
-
<div class="toggle-switch">
|
| 917 |
-
<input type="checkbox" id="filterContentWithoutPoster" name="filterContentWithoutPoster" value="true">
|
| 918 |
-
<span class="slider"></span>
|
| 919 |
-
</div>
|
| 920 |
-
</label>
|
| 921 |
-
</div>
|
| 922 |
-
<div class="form-element">
|
| 923 |
-
<label for="recommendationsToggle">
|
| 924 |
-
Get recommendations related to the content on the content details page
|
| 925 |
-
<div class="toggle-switch">
|
| 926 |
-
<input type="checkbox" id="recommendationsToggle" name="recommendationsToggle">
|
| 927 |
-
<span class="slider"></span>
|
| 928 |
-
</div>
|
| 929 |
-
</label>
|
| 930 |
-
<input type="text" id="recommendationsText" placeholder="Replace 'Recommendations' in content page" style="display:none;" />
|
| 931 |
-
</div>
|
| 932 |
-
|
| 933 |
-
<div class="form-element">
|
| 934 |
-
<label for="similarToggle">
|
| 935 |
-
Get similar content related to the content on the content details page
|
| 936 |
-
<div class="toggle-switch">
|
| 937 |
-
<input type="checkbox" id="similarToggle" name="similarToggle">
|
| 938 |
-
<span class="slider"></span>
|
| 939 |
-
</div>
|
| 940 |
-
</label>
|
| 941 |
-
<input type="text" id="similarText" placeholder="Replace 'Similar' in content page" style="display:none;" />
|
| 942 |
-
</div>
|
| 943 |
-
<div class="separator"></div>
|
| 944 |
-
<h3 class="selected-providers-title">Selected providers</h3>
|
| 945 |
-
<div id="selectedProviders" class="provider-container"></div>
|
| 946 |
-
<div class="separator"></div>
|
| 947 |
-
<div class="button-container">
|
| 948 |
-
<button type="button" id="installButton">INSTALL</button>
|
| 949 |
-
<button type="button" id="copyButton">COPY LINK</button>
|
| 950 |
-
</div>
|
| 951 |
-
<div class="separator"></div>
|
| 952 |
-
</form>
|
| 953 |
-
<div id="infoModal" class="modal">
|
| 954 |
-
<span id="modalClose" class="modal-close">×</span>
|
| 955 |
-
<h4>Age Range Content Moderation</h4>
|
| 956 |
-
<p> The content moderation system filters media based on the selected age range to ensure suitability for viewers. Here's how it works: </p>
|
| 957 |
-
<ul>
|
| 958 |
-
<li>
|
| 959 |
-
<strong>0-5 years:</strong> Uses the US certification 'G' (General Audience). Filters out content that is not suitable for very young children. This includes genres such as horror, drama, thriller, crime, war, western, erotic, war & politics, talk-show, soap-opera, reality-show, news, mystery, documentary, and history.
|
| 960 |
-
</li>
|
| 961 |
-
<li>
|
| 962 |
-
<strong>6-11 years:</strong> Uses the US certification 'G' (General Audience). Filters out content unsuitable for young children, maintaining a focus on safe, family-friendly genres. The same genres as for 0-5 years are excluded.
|
| 963 |
-
</li>
|
| 964 |
-
<li>
|
| 965 |
-
<strong>12-15 years:</strong> Uses the US certification 'PG' (Parental Guidance). Allows content with mild themes appropriate for older children and pre-teens. No specific genres are excluded for this age range.
|
| 966 |
-
</li>
|
| 967 |
-
<li>
|
| 968 |
-
<strong>16-17 years:</strong> Uses the US certification 'PG-13' (Parents Strongly Cautioned). Permits content suitable for older teens, including more complex and mature themes but not adult content. No specific genres are excluded for this age range.
|
| 969 |
-
</li>
|
| 970 |
-
<li>
|
| 971 |
-
<strong>18+ years:</strong> Includes all content, even those with adult themes and explicit material. For this age range, no genres are excluded.
|
| 972 |
-
</li>
|
| 973 |
-
</ul>
|
| 974 |
-
<p>
|
| 975 |
-
<p>
|
| 976 |
-
<strong>Warning:</strong> Please note that the data for this content moderation system is sourced from TMDB (The Movie Database) and may contain inaccuracies. Viewer discretion is advised.
|
| 977 |
-
</p>
|
| 978 |
-
</p>
|
| 979 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 980 |
</div>
|
| 981 |
-
|
| 982 |
-
<img id="countdownImage" src="/assets/countdown.webp" alt="Old Film Countdown" style="display:none; position:fixed; top:0; left:0; width:100%; height:100%; z-index:10000;">
|
| 983 |
-
<script src="/js/languages.js"></script>
|
| 984 |
-
<script src="/js/countries.js"></script>
|
| 985 |
<script>
|
| 986 |
document.addEventListener('DOMContentLoaded', () => {
|
| 987 |
-
|
| 988 |
-
const urlParams = new URLSearchParams(window.location.search);
|
| 989 |
-
const traktUsername = urlParams.get('username');
|
| 990 |
-
if (traktUsername) {
|
| 991 |
-
const connectButton = document.getElementById('connectTraktButton');
|
| 992 |
-
connectButton.style.display = 'none';
|
| 993 |
-
|
| 994 |
-
const usernameDisplay = document.createElement('div');
|
| 995 |
-
usernameDisplay.id = 'traktUsername';
|
| 996 |
-
usernameDisplay.textContent = `Connected as: ${traktUsername}`;
|
| 997 |
-
connectButton.parentNode.appendChild(usernameDisplay);
|
| 998 |
-
|
| 999 |
-
const toggleContainer = document.createElement('div');
|
| 1000 |
-
toggleContainer.className = 'form-element';
|
| 1001 |
-
toggleContainer.style.marginTop = '10px';
|
| 1002 |
-
toggleContainer.style.marginBottom = '10px';
|
| 1003 |
-
toggleContainer.style.display = 'flex';
|
| 1004 |
-
toggleContainer.style.flexDirection = 'column';
|
| 1005 |
-
|
| 1006 |
-
const toggleLabel = document.createElement('label');
|
| 1007 |
-
toggleLabel.setAttribute('for', 'hideTraktHistory');
|
| 1008 |
-
toggleLabel.textContent = 'Mark the Trakt history as watched in the catalogs';
|
| 1009 |
-
|
| 1010 |
-
const toggleSwitch = document.createElement('div');
|
| 1011 |
-
toggleSwitch.className = 'toggle-switch';
|
| 1012 |
-
|
| 1013 |
-
const toggleInput = document.createElement('input');
|
| 1014 |
-
toggleInput.type = 'checkbox';
|
| 1015 |
-
toggleInput.id = 'hideTraktHistory';
|
| 1016 |
-
toggleInput.name = 'hideTraktHistory';
|
| 1017 |
-
|
| 1018 |
-
const toggleSlider = document.createElement('span');
|
| 1019 |
-
toggleSlider.className = 'slider';
|
| 1020 |
-
|
| 1021 |
-
toggleSwitch.appendChild(toggleInput);
|
| 1022 |
-
toggleSwitch.appendChild(toggleSlider);
|
| 1023 |
-
|
| 1024 |
-
toggleLabel.appendChild(toggleSwitch);
|
| 1025 |
-
toggleContainer.appendChild(toggleLabel);
|
| 1026 |
-
|
| 1027 |
-
usernameDisplay.parentNode.appendChild(toggleContainer);
|
| 1028 |
-
|
| 1029 |
-
const additionalLabelContainer = document.createElement('div');
|
| 1030 |
-
additionalLabelContainer.className = 'additional-label';
|
| 1031 |
-
additionalLabelContainer.style.display = 'none';
|
| 1032 |
-
additionalLabelContainer.style.alignItems = 'center';
|
| 1033 |
-
|
| 1034 |
-
const additionalLabel = document.createElement('label');
|
| 1035 |
-
additionalLabel.textContent = 'Adds ✔️ in front of their name';
|
| 1036 |
-
|
| 1037 |
-
const emojiIcon = document.createElement('span');
|
| 1038 |
-
emojiIcon.innerHTML = '⚙️';
|
| 1039 |
-
emojiIcon.style.marginLeft = '10px';
|
| 1040 |
-
emojiIcon.style.cursor = 'pointer';
|
| 1041 |
-
emojiIcon.style.fontSize = '1em';
|
| 1042 |
-
|
| 1043 |
-
additionalLabelContainer.appendChild(additionalLabel);
|
| 1044 |
-
additionalLabelContainer.appendChild(emojiIcon);
|
| 1045 |
-
usernameDisplay.parentNode.appendChild(additionalLabelContainer);
|
| 1046 |
-
|
| 1047 |
-
const emojiContainer = document.createElement('div');
|
| 1048 |
-
emojiContainer.style.position = 'fixed';
|
| 1049 |
-
emojiContainer.style.display = 'none';
|
| 1050 |
-
emojiContainer.style.backgroundColor = '#fff';
|
| 1051 |
-
emojiContainer.style.border = '1px solid #ccc';
|
| 1052 |
-
emojiContainer.style.zIndex = '1000';
|
| 1053 |
-
emojiContainer.style.width = '90%';
|
| 1054 |
-
emojiContainer.style.height = 'auto';
|
| 1055 |
-
emojiContainer.style.maxWidth = '400px';
|
| 1056 |
-
emojiContainer.style.maxHeight = '400px';
|
| 1057 |
-
emojiContainer.style.overflow = 'auto';
|
| 1058 |
-
emojiContainer.style.left = '50%';
|
| 1059 |
-
emojiContainer.style.top = '50%';
|
| 1060 |
-
emojiContainer.style.transform = 'translate(-50%, -50%)';
|
| 1061 |
-
emojiContainer.style.boxSizing = 'border-box';
|
| 1062 |
-
emojiContainer.style.borderRadius = '8px';
|
| 1063 |
-
emojiContainer.style.scrollbarWidth = 'none';
|
| 1064 |
-
emojiContainer.style.overflow = 'hidden';
|
| 1065 |
-
document.body.appendChild(emojiContainer);
|
| 1066 |
-
|
| 1067 |
-
import('https://cdn.skypack.dev/picmo').then(({ createPicker }) => {
|
| 1068 |
-
const picker = createPicker({
|
| 1069 |
-
rootElement: emojiContainer,
|
| 1070 |
-
theme: 'auto',
|
| 1071 |
-
});
|
| 1072 |
-
|
| 1073 |
-
emojiIcon.addEventListener('click', (event) => {
|
| 1074 |
-
event.stopPropagation();
|
| 1075 |
-
event.preventDefault();
|
| 1076 |
-
|
| 1077 |
-
emojiContainer.style.display = 'block';
|
| 1078 |
-
|
| 1079 |
-
document.addEventListener('click', (event) => {
|
| 1080 |
-
if (!emojiContainer.contains(event.target) && !emojiIcon.contains(event.target)) {
|
| 1081 |
-
emojiContainer.style.display = 'none';
|
| 1082 |
-
}
|
| 1083 |
-
});
|
| 1084 |
-
});
|
| 1085 |
-
|
| 1086 |
-
picker.addEventListener('emoji:select', (event) => {
|
| 1087 |
-
additionalLabel.textContent = `Adds ${event.emoji} in front of their name`;
|
| 1088 |
-
emojiContainer.style.display = 'none';
|
| 1089 |
-
});
|
| 1090 |
-
});
|
| 1091 |
-
|
| 1092 |
-
toggleInput.addEventListener('change', function() {
|
| 1093 |
-
if (toggleInput.checked) {
|
| 1094 |
-
additionalLabelContainer.style.display = 'flex';
|
| 1095 |
-
additionalLabelContainer.style.width = '100%';
|
| 1096 |
-
} else {
|
| 1097 |
-
additionalLabelContainer.style.display = 'none';
|
| 1098 |
-
}
|
| 1099 |
-
});
|
| 1100 |
-
|
| 1101 |
-
const traktToggleContainer = document.createElement('div');
|
| 1102 |
-
traktToggleContainer.className = 'form-element';
|
| 1103 |
-
traktToggleContainer.style.marginTop = '10px';
|
| 1104 |
-
traktToggleContainer.style.marginBottom = '10px';
|
| 1105 |
-
traktToggleContainer.style.display = 'flex';
|
| 1106 |
-
traktToggleContainer.style.flexDirection = 'column';
|
| 1107 |
-
|
| 1108 |
-
const traktToggleLabel = document.createElement('label');
|
| 1109 |
-
traktToggleLabel.setAttribute('for', 'addWatchedButton');
|
| 1110 |
-
traktToggleLabel.textContent = 'Add a mark as watched button to update Trakt';
|
| 1111 |
-
|
| 1112 |
-
const traktToggleSwitch = document.createElement('div');
|
| 1113 |
-
traktToggleSwitch.className = 'toggle-switch';
|
| 1114 |
-
|
| 1115 |
-
const traktToggleInput = document.createElement('input');
|
| 1116 |
-
traktToggleInput.type = 'checkbox';
|
| 1117 |
-
traktToggleInput.id = 'addWatchedButton';
|
| 1118 |
-
traktToggleInput.name = 'addWatchedButton';
|
| 1119 |
-
|
| 1120 |
-
const traktToggleSlider = document.createElement('span');
|
| 1121 |
-
traktToggleSlider.className = 'slider';
|
| 1122 |
-
|
| 1123 |
-
traktToggleSwitch.appendChild(traktToggleInput);
|
| 1124 |
-
traktToggleSwitch.appendChild(traktToggleSlider);
|
| 1125 |
-
|
| 1126 |
-
traktToggleLabel.appendChild(traktToggleSwitch);
|
| 1127 |
-
traktToggleContainer.appendChild(traktToggleLabel);
|
| 1128 |
-
|
| 1129 |
-
usernameDisplay.parentNode.appendChild(traktToggleContainer);
|
| 1130 |
-
|
| 1131 |
-
const markAsWatchedContainer = document.createElement('div');
|
| 1132 |
-
markAsWatchedContainer.id = 'markAsWatchedContainer';
|
| 1133 |
-
markAsWatchedContainer.style.display = 'none';
|
| 1134 |
-
markAsWatchedContainer.style.marginTop = '10px';
|
| 1135 |
-
|
| 1136 |
-
const markAsWatchedTextbox = document.createElement('input');
|
| 1137 |
-
markAsWatchedTextbox.type = 'text';
|
| 1138 |
-
markAsWatchedTextbox.value = 'Mark as watched';
|
| 1139 |
-
markAsWatchedTextbox.id = 'markAsWatchedTextbox';
|
| 1140 |
-
markAsWatchedTextbox.style.width = '100%';
|
| 1141 |
-
markAsWatchedTextbox.style.padding = '8px';
|
| 1142 |
-
markAsWatchedTextbox.style.fontSize = '16px';
|
| 1143 |
-
|
| 1144 |
-
markAsWatchedContainer.appendChild(markAsWatchedTextbox);
|
| 1145 |
-
usernameDisplay.parentNode.appendChild(markAsWatchedContainer);
|
| 1146 |
-
|
| 1147 |
-
traktToggleInput.addEventListener('change', function() {
|
| 1148 |
-
if (traktToggleInput.checked) {
|
| 1149 |
-
markAsWatchedContainer.style.display = 'block';
|
| 1150 |
-
} else {
|
| 1151 |
-
markAsWatchedContainer.style.display = 'none';
|
| 1152 |
-
}
|
| 1153 |
-
});
|
| 1154 |
-
}
|
| 1155 |
-
|
| 1156 |
-
|
| 1157 |
function populateLanguageDropdown() {
|
| 1158 |
const dropdown = document.getElementById('language');
|
| 1159 |
languages.forEach(lang => {
|
|
@@ -1164,7 +537,6 @@ body.dark-mode .radio-group label {
|
|
| 1164 |
});
|
| 1165 |
}
|
| 1166 |
populateLanguageDropdown();
|
| 1167 |
-
|
| 1168 |
const mainForm = document.getElementById('mainForm');
|
| 1169 |
const installButton = document.getElementById('installButton');
|
| 1170 |
const copyButton = document.getElementById('copyButton');
|
|
@@ -1174,13 +546,8 @@ body.dark-mode .radio-group label {
|
|
| 1174 |
const infoModal = document.getElementById('infoModal');
|
| 1175 |
const modalClose = document.getElementById('modalClose');
|
| 1176 |
const selectedProvidersContainer = document.getElementById('selectedProviders');
|
| 1177 |
-
const confirmButton = document.getElementById('confirmButton');
|
| 1178 |
-
const interface1 = document.getElementById('interface1');
|
| 1179 |
-
const interface2 = document.getElementById('interface2');
|
| 1180 |
-
let providersData = [];
|
| 1181 |
let selectedProviders = [];
|
| 1182 |
let providersMap = {};
|
| 1183 |
-
|
| 1184 |
new Sortable(selectedProvidersContainer, {
|
| 1185 |
animation: 150,
|
| 1186 |
ghostClass: 'sortable-ghost',
|
|
@@ -1188,83 +555,46 @@ body.dark-mode .radio-group label {
|
|
| 1188 |
selectedProviders = Array.from(selectedProvidersContainer.querySelectorAll('.selected-provider')).map(div => div.getAttribute('data-id'));
|
| 1189 |
}
|
| 1190 |
});
|
| 1191 |
-
|
| 1192 |
const renderSelectedProviders = () => {
|
| 1193 |
-
selectedProvidersContainer.innerHTML = selectedProviders.map(providerId =>
|
| 1194 |
-
|
| 1195 |
-
|
| 1196 |
-
|
| 1197 |
-
|
| 1198 |
-
|
| 1199 |
-
return `
|
| 1200 |
-
<div class="selected-provider" data-id="${providerId}">
|
| 1201 |
-
<img src="https://image.tmdb.org/t/p/w500/${provider.logo_path}" alt="${provider.provider_name}" title="${provider.provider_name}" />
|
| 1202 |
-
<button class="remove-button" data-id="${providerId}">×</button>
|
| 1203 |
-
</div>`;
|
| 1204 |
-
}).join('');
|
| 1205 |
-
|
| 1206 |
document.querySelectorAll('.remove-button').forEach(button => {
|
| 1207 |
button.addEventListener('click', (event) => {
|
| 1208 |
const providerId = event.target.getAttribute('data-id');
|
| 1209 |
selectedProviders = selectedProviders.filter(id => id !== providerId);
|
| 1210 |
-
|
| 1211 |
const providerElement = document.querySelector(`.provider[data-id="${providerId}"]`);
|
| 1212 |
if (providerElement) providerElement.style.display = 'block';
|
| 1213 |
-
|
| 1214 |
-
const regionCode = providerElement.getAttribute('data-region');
|
| 1215 |
-
if (!selectedProviders.some(id => {
|
| 1216 |
-
const provider = providersMap[id];
|
| 1217 |
-
const displayPriorities = JSON.parse(provider.display_priorities);
|
| 1218 |
-
return Object.keys(displayPriorities).includes(regionCode);
|
| 1219 |
-
})) {
|
| 1220 |
-
selectedRegions = selectedRegions.filter(region => region !== regionCode);
|
| 1221 |
-
}
|
| 1222 |
-
|
| 1223 |
renderSelectedProviders();
|
| 1224 |
});
|
| 1225 |
});
|
| 1226 |
};
|
| 1227 |
-
|
| 1228 |
-
const fetchProviders = async (apiKey) => {
|
| 1229 |
try {
|
| 1230 |
-
const response = await fetch('/
|
| 1231 |
-
method: 'POST',
|
| 1232 |
-
headers: {
|
| 1233 |
-
'Content-Type': 'application/json',
|
| 1234 |
-
},
|
| 1235 |
-
body: JSON.stringify({ apiKey }),
|
| 1236 |
-
});
|
| 1237 |
-
|
| 1238 |
if (!response.ok) {
|
| 1239 |
throw new Error('Failed to fetch providers');
|
| 1240 |
}
|
| 1241 |
-
|
| 1242 |
const providers = await response.json();
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1243 |
return providers;
|
| 1244 |
} catch (error) {
|
| 1245 |
console.error('Error fetching providers:', error);
|
| 1246 |
-
showPopup('Failed to fetch providers. Please check your API key and try again.', 'error');
|
| 1247 |
return [];
|
| 1248 |
}
|
| 1249 |
};
|
| 1250 |
-
|
| 1251 |
-
|
| 1252 |
-
|
| 1253 |
-
|
| 1254 |
-
|
| 1255 |
-
|
| 1256 |
-
|
| 1257 |
-
let filteredProviders = providersData.filter(provider => {
|
| 1258 |
-
const displayPriorities = JSON.parse(provider.display_priorities || '{}');
|
| 1259 |
-
return selectedRegions.some(regionCode => displayPriorities[regionCode] !== undefined);
|
| 1260 |
-
});
|
| 1261 |
-
|
| 1262 |
-
filteredProviders.sort((a, b) => a.provider_name.localeCompare(b.provider_name));
|
| 1263 |
-
providersContainer.innerHTML = filteredProviders.map(provider => `
|
| 1264 |
-
<div class="provider" data-id="${provider.provider_id}">
|
| 1265 |
-
<img src="https://image.tmdb.org/t/p/w500/${provider.logo_path}" alt="${provider.provider_name}" title="${provider.provider_name}" />
|
| 1266 |
-
</div>
|
| 1267 |
-
`).join('');
|
| 1268 |
|
| 1269 |
document.querySelectorAll('.provider').forEach(provider => {
|
| 1270 |
provider.addEventListener('click', () => {
|
|
@@ -1280,25 +610,6 @@ body.dark-mode .radio-group label {
|
|
| 1280 |
});
|
| 1281 |
});
|
| 1282 |
};
|
| 1283 |
-
|
| 1284 |
-
confirmButton.addEventListener('click', async () => {
|
| 1285 |
-
const apiKey = document.getElementById('tmdbApiKey').value.trim();
|
| 1286 |
-
if (!apiKey) {
|
| 1287 |
-
showPopup('Please enter your TMDB API key.', 'error');
|
| 1288 |
-
return;
|
| 1289 |
-
}
|
| 1290 |
-
|
| 1291 |
-
providersData = await fetchProviders(apiKey);
|
| 1292 |
-
populateProvidersMap();
|
| 1293 |
-
|
| 1294 |
-
const event = new Event('providersLoaded');
|
| 1295 |
-
confirmButton.dispatchEvent(event);
|
| 1296 |
-
|
| 1297 |
-
renderProviders('ALL');
|
| 1298 |
-
interface1.style.display = 'none';
|
| 1299 |
-
interface2.style.display = 'block';
|
| 1300 |
-
});
|
| 1301 |
-
|
| 1302 |
const showInfoModal = () => {
|
| 1303 |
infoModal.style.display = 'block';
|
| 1304 |
};
|
|
@@ -1307,200 +618,34 @@ body.dark-mode .radio-group label {
|
|
| 1307 |
};
|
| 1308 |
infoIcon.addEventListener('click', showInfoModal);
|
| 1309 |
modalClose.addEventListener('click', hideInfoModal);
|
| 1310 |
-
|
| 1311 |
-
let selectedRegions = [];
|
| 1312 |
-
|
| 1313 |
-
const populateRegionDropdown = () => {
|
| 1314 |
-
const regionDropdown = document.getElementById('regionDropdown');
|
| 1315 |
-
regionDropdown.innerHTML = '';
|
| 1316 |
-
|
| 1317 |
-
const sortedCountries = countries.sort((a, b) => a.english_name.localeCompare(b.english_name));
|
| 1318 |
-
|
| 1319 |
-
sortedCountries.forEach(country => {
|
| 1320 |
-
const option = document.createElement('div');
|
| 1321 |
-
option.className = 'dropdown-option';
|
| 1322 |
-
option.setAttribute('data-value', country.iso_3166_1);
|
| 1323 |
-
|
| 1324 |
-
const flag = country.iso_3166_1
|
| 1325 |
-
.toUpperCase()
|
| 1326 |
-
.replace(/./g, char => String.fromCodePoint(127397 + char.charCodeAt()));
|
| 1327 |
-
option.innerHTML = `${flag} ${country.english_name}`;
|
| 1328 |
-
option.onclick = () => {
|
| 1329 |
-
addSelectedRegion(country.iso_3166_1, flag, country.english_name);
|
| 1330 |
-
filterRegionDropdown('');
|
| 1331 |
-
document.getElementById('regionSearchInput').value = '';
|
| 1332 |
-
regionDropdown.style.display = 'none';
|
| 1333 |
-
};
|
| 1334 |
-
regionDropdown.appendChild(option);
|
| 1335 |
-
});
|
| 1336 |
-
};
|
| 1337 |
-
|
| 1338 |
-
const filterRegionDropdown = (searchTerm) => {
|
| 1339 |
-
const options = document.querySelectorAll('.dropdown-option');
|
| 1340 |
-
options.forEach(option => {
|
| 1341 |
-
const text = option.textContent.toLowerCase();
|
| 1342 |
-
option.style.display = text.includes(searchTerm.toLowerCase()) ? 'block' : 'none';
|
| 1343 |
-
});
|
| 1344 |
-
document.getElementById('regionDropdown').style.display = 'block';
|
| 1345 |
-
};
|
| 1346 |
-
|
| 1347 |
-
document.getElementById('regionSearchInput').addEventListener('input', function () {
|
| 1348 |
-
const searchTerm = this.value;
|
| 1349 |
-
filterRegionDropdown(searchTerm);
|
| 1350 |
-
});
|
| 1351 |
-
|
| 1352 |
-
const addSelectedRegion = (regionCode, flag, countryName) => {
|
| 1353 |
-
if (!selectedRegions.includes(regionCode)) {
|
| 1354 |
-
selectedRegions.push(regionCode);
|
| 1355 |
-
}
|
| 1356 |
-
|
| 1357 |
-
if (!document.querySelector(`.tag[data-id='${regionCode}']`)) {
|
| 1358 |
-
const tag = document.createElement('span');
|
| 1359 |
-
tag.className = 'tag';
|
| 1360 |
-
tag.setAttribute('data-id', regionCode);
|
| 1361 |
-
tag.innerHTML = `
|
| 1362 |
-
<span class="flag">${flag}</span>
|
| 1363 |
-
<span class="country-name">${countryName}</span>
|
| 1364 |
-
`;
|
| 1365 |
-
tag.addEventListener('click', () => {
|
| 1366 |
-
removeSelectedRegion(regionCode);
|
| 1367 |
-
});
|
| 1368 |
-
document.getElementById('regionSearchInput').parentNode.insertBefore(tag, document.getElementById('regionSearchInput'));
|
| 1369 |
-
}
|
| 1370 |
-
|
| 1371 |
-
renderProviders();
|
| 1372 |
-
};
|
| 1373 |
-
|
| 1374 |
-
const removeSelectedRegion = (regionCode) => {
|
| 1375 |
-
selectedRegions = selectedRegions.filter(code => code !== regionCode);
|
| 1376 |
-
document.querySelector(`.tag[data-id='${regionCode}']`).remove();
|
| 1377 |
-
|
| 1378 |
-
renderProviders();
|
| 1379 |
-
};
|
| 1380 |
-
|
| 1381 |
-
populateRegionDropdown();
|
| 1382 |
-
|
| 1383 |
-
document.getElementById('regionSearchInput').addEventListener('focus', function () {
|
| 1384 |
-
document.getElementById('regionDropdown').style.display = 'block';
|
| 1385 |
-
});
|
| 1386 |
-
|
| 1387 |
-
document.addEventListener('click', function (event) {
|
| 1388 |
-
const regionContainer = document.getElementById('regionSelectContainer');
|
| 1389 |
-
if (!regionContainer.contains(event.target)) {
|
| 1390 |
-
document.getElementById('regionDropdown').style.display = 'none';
|
| 1391 |
-
}
|
| 1392 |
-
});
|
| 1393 |
-
|
| 1394 |
-
const encodeToBase64 = (str) => {
|
| 1395 |
-
return btoa(unescape(encodeURIComponent(str)));
|
| 1396 |
-
};
|
| 1397 |
-
|
| 1398 |
const getStremioLink = () => {
|
| 1399 |
const config = Object.fromEntries(new FormData(mainForm));
|
| 1400 |
config.providers = selectedProviders;
|
| 1401 |
config.ageRange = document.getElementById('ageRange').value;
|
| 1402 |
-
|
| 1403 |
-
|
| 1404 |
-
|
| 1405 |
-
|
| 1406 |
-
config.traktUsername = traktUsername || '';
|
| 1407 |
-
config.hideTraktHistory = document.getElementById('hideTraktHistory') ? document.getElementById('hideTraktHistory').checked.toString() : 'false';
|
| 1408 |
-
|
| 1409 |
-
const additionalLabel = document.querySelector('.additional-label label');
|
| 1410 |
-
const watchedEmoji = additionalLabel ? additionalLabel.textContent.split(' ')[1] || '✔️' : '✔️';
|
| 1411 |
-
config.watchedEmoji = watchedEmoji;
|
| 1412 |
-
|
| 1413 |
-
const addWatchedTraktBtnToggle = document.getElementById('addWatchedButton');
|
| 1414 |
-
if (addWatchedTraktBtnToggle && addWatchedTraktBtnToggle.checked) {
|
| 1415 |
-
const markAsWatchedTextbox = document.getElementById('markAsWatchedTextbox');
|
| 1416 |
-
config.addWatchedTraktBtn = markAsWatchedTextbox ? markAsWatchedTextbox.value.trim() : '';
|
| 1417 |
-
}
|
| 1418 |
-
|
| 1419 |
-
const recommendationsToggle = document.getElementById('recommendationsToggle').checked;
|
| 1420 |
-
const similarToggle = document.getElementById('similarToggle').checked;
|
| 1421 |
-
const recommendationsText = document.getElementById('recommendationsText').value.trim() || 'Recommendations';
|
| 1422 |
-
const similarText = document.getElementById('similarText').value.trim() || 'Similar';
|
| 1423 |
-
|
| 1424 |
-
if (recommendationsToggle && similarToggle) {
|
| 1425 |
-
config.additionalContent = 'recommendations-similar';
|
| 1426 |
-
config.recommendationsTitle = recommendationsText;
|
| 1427 |
-
config.similarTitle = similarText;
|
| 1428 |
-
} else if (recommendationsToggle) {
|
| 1429 |
-
config.additionalContent = 'recommendations';
|
| 1430 |
-
config.recommendationsTitle = recommendationsText;
|
| 1431 |
-
} else if (similarToggle) {
|
| 1432 |
-
config.additionalContent = 'similar';
|
| 1433 |
-
config.similarTitle = similarText;
|
| 1434 |
-
}
|
| 1435 |
-
|
| 1436 |
-
const encodedConfig = encodeToBase64(JSON.stringify(config));
|
| 1437 |
-
return "stremio://" + window.location.host + "/" + encodedConfig + "/manifest.json";
|
| 1438 |
-
};
|
| 1439 |
-
|
| 1440 |
-
const getHttpsLink = () => {
|
| 1441 |
const config = Object.fromEntries(new FormData(mainForm));
|
| 1442 |
config.providers = selectedProviders;
|
| 1443 |
config.ageRange = document.getElementById('ageRange').value;
|
| 1444 |
-
|
| 1445 |
-
|
| 1446 |
-
config.filterContentWithoutPoster = document.getElementById('filterContentWithoutPoster').checked ? 'true' : '';
|
| 1447 |
-
|
| 1448 |
-
config.traktUsername = traktUsername || '';
|
| 1449 |
-
config.hideTraktHistory = document.getElementById('hideTraktHistory') ? document.getElementById('hideTraktHistory').checked.toString() : 'false';
|
| 1450 |
-
|
| 1451 |
-
const additionalLabel = document.querySelector('.additional-label label');
|
| 1452 |
-
const watchedEmoji = additionalLabel ? additionalLabel.textContent.split(' ')[1] || '✔️' : '✔️';
|
| 1453 |
-
config.watchedEmoji = watchedEmoji;
|
| 1454 |
-
|
| 1455 |
-
const addWatchedTraktBtnToggle = document.getElementById('addWatchedButton');
|
| 1456 |
-
if (addWatchedTraktBtnToggle && addWatchedTraktBtnToggle.checked) {
|
| 1457 |
-
const markAsWatchedTextbox = document.getElementById('markAsWatchedTextbox');
|
| 1458 |
-
config.addWatchedTraktBtn = markAsWatchedTextbox ? markAsWatchedTextbox.value.trim() : '';
|
| 1459 |
-
}
|
| 1460 |
-
|
| 1461 |
-
const recommendationsToggle = document.getElementById('recommendationsToggle').checked;
|
| 1462 |
-
const similarToggle = document.getElementById('similarToggle').checked;
|
| 1463 |
-
const recommendationsText = document.getElementById('recommendationsText').value.trim() || 'Recommendations';
|
| 1464 |
-
const similarText = document.getElementById('similarText').value.trim() || 'Similar';
|
| 1465 |
-
|
| 1466 |
-
if (recommendationsToggle && similarToggle) {
|
| 1467 |
-
config.additionalContent = 'recommendations-similar';
|
| 1468 |
-
config.recommendationsTitle = recommendationsText;
|
| 1469 |
-
config.similarTitle = similarText;
|
| 1470 |
-
} else if (recommendationsToggle) {
|
| 1471 |
-
config.additionalContent = 'recommendations';
|
| 1472 |
-
config.recommendationsTitle = recommendationsText;
|
| 1473 |
-
} else if (similarToggle) {
|
| 1474 |
-
config.additionalContent = 'similar';
|
| 1475 |
-
config.similarTitle = similarText;
|
| 1476 |
-
}
|
| 1477 |
-
|
| 1478 |
-
const encodedConfig = encodeToBase64(JSON.stringify(config));
|
| 1479 |
-
return "https://" + window.location.host + "/" + encodedConfig + "/manifest.json";
|
| 1480 |
-
};
|
| 1481 |
-
|
| 1482 |
const showPopup = (message, type) => {
|
| 1483 |
popup.textContent = message;
|
| 1484 |
popup.className = `popup ${type}`;
|
| 1485 |
popup.style.display = 'block';
|
| 1486 |
setTimeout(() => {
|
| 1487 |
popup.style.display = 'none';
|
| 1488 |
-
},
|
| 1489 |
};
|
| 1490 |
-
|
| 1491 |
const validateForm = () => {
|
| 1492 |
-
|
| 1493 |
-
|
| 1494 |
-
|
| 1495 |
-
|
| 1496 |
-
const isRegionSelected = selectedRegions.length > 0;
|
| 1497 |
-
|
| 1498 |
-
return isRegionSelected && language && ageRange && selectedProviders.length > 0;
|
| 1499 |
};
|
| 1500 |
-
|
| 1501 |
copyButton.onclick = () => {
|
| 1502 |
if (!validateForm()) {
|
| 1503 |
-
showPopup('Please select
|
| 1504 |
return;
|
| 1505 |
}
|
| 1506 |
const link = getHttpsLink();
|
|
@@ -1511,694 +656,28 @@ body.dark-mode .radio-group label {
|
|
| 1511 |
showPopup('Failed to copy the link.', 'error');
|
| 1512 |
});
|
| 1513 |
};
|
| 1514 |
-
|
| 1515 |
installButton.onclick = () => {
|
| 1516 |
if (!validateForm()) {
|
| 1517 |
-
showPopup('Please select
|
| 1518 |
return;
|
| 1519 |
}
|
| 1520 |
const link = getStremioLink();
|
| 1521 |
window.location.href = link;
|
| 1522 |
};
|
| 1523 |
-
|
| 1524 |
document.getElementById('theme-toggle').addEventListener('click', () => {
|
| 1525 |
document.body.classList.toggle('dark-mode');
|
| 1526 |
const isDarkMode = document.body.classList.contains('dark-mode');
|
| 1527 |
document.getElementById('theme-toggle').textContent = isDarkMode ? '🌞' : '🌙';
|
| 1528 |
});
|
| 1529 |
-
|
| 1530 |
-
let snakeGameActive = false;
|
| 1531 |
-
const snakeGameCanvas = document.createElement('canvas');
|
| 1532 |
-
const snakeGameContext = snakeGameCanvas.getContext('2d');
|
| 1533 |
-
snakeGameCanvas.width = window.innerWidth;
|
| 1534 |
-
snakeGameCanvas.height = window.innerHeight;
|
| 1535 |
-
snakeGameCanvas.style.position = 'fixed';
|
| 1536 |
-
snakeGameCanvas.style.top = '0';
|
| 1537 |
-
snakeGameCanvas.style.left = '0';
|
| 1538 |
-
snakeGameCanvas.style.zIndex = '1000';
|
| 1539 |
-
snakeGameCanvas.style.backgroundColor = '#f0f0f0';
|
| 1540 |
-
document.body.appendChild(snakeGameCanvas);
|
| 1541 |
-
snakeGameCanvas.style.display = 'none';
|
| 1542 |
-
|
| 1543 |
-
const SNAKE_SIZE = Math.min(40, window.innerWidth / 20);
|
| 1544 |
-
let snake;
|
| 1545 |
-
let dx;
|
| 1546 |
-
let dy;
|
| 1547 |
-
let foodX;
|
| 1548 |
-
let foodY;
|
| 1549 |
-
let changingDirection;
|
| 1550 |
-
let providersIcons = [];
|
| 1551 |
-
let currentFoodIcon;
|
| 1552 |
-
let eatenIcons = new Set();
|
| 1553 |
-
let iconsCache = {};
|
| 1554 |
-
let gameSpeed = 85;
|
| 1555 |
-
|
| 1556 |
-
const resetGame = () => {
|
| 1557 |
-
snake = [
|
| 1558 |
-
{ x: 160, y: 160 },
|
| 1559 |
-
{ x: 160 - SNAKE_SIZE, y: 160 },
|
| 1560 |
-
{ x: 160 - 2 * SNAKE_SIZE, y: 160 },
|
| 1561 |
-
{ x: 160 - 3 * SNAKE_SIZE, y: 160 },
|
| 1562 |
-
];
|
| 1563 |
-
dx = SNAKE_SIZE;
|
| 1564 |
-
dy = 0;
|
| 1565 |
-
changingDirection = false;
|
| 1566 |
-
eatenIcons.clear();
|
| 1567 |
-
generateFood();
|
| 1568 |
-
};
|
| 1569 |
-
|
| 1570 |
-
const snakeGame = () => {
|
| 1571 |
-
fetchProviderIcons();
|
| 1572 |
-
resetGame();
|
| 1573 |
-
document.getElementById('addon').style.display = 'none';
|
| 1574 |
-
snakeGameCanvas.style.display = 'block';
|
| 1575 |
-
snakeGameActive = true;
|
| 1576 |
-
document.addEventListener('keydown', changeDirection);
|
| 1577 |
-
addTouchControls();
|
| 1578 |
-
main();
|
| 1579 |
-
};
|
| 1580 |
-
|
| 1581 |
-
function main() {
|
| 1582 |
-
if (hasGameEnded()) {
|
| 1583 |
-
displayScoreAndIcons();
|
| 1584 |
-
return;
|
| 1585 |
-
}
|
| 1586 |
-
|
| 1587 |
-
if (eatenIcons.size === providersIcons.length) {
|
| 1588 |
-
displayScoreAndIcons(true);
|
| 1589 |
-
return;
|
| 1590 |
-
}
|
| 1591 |
-
|
| 1592 |
-
setTimeout(() => {
|
| 1593 |
-
changingDirection = false;
|
| 1594 |
-
clearCanvas();
|
| 1595 |
-
drawScore();
|
| 1596 |
-
drawFood();
|
| 1597 |
-
advanceSnake();
|
| 1598 |
-
drawSnake();
|
| 1599 |
-
main();
|
| 1600 |
-
}, gameSpeed);
|
| 1601 |
-
}
|
| 1602 |
-
|
| 1603 |
-
function clearCanvas() {
|
| 1604 |
-
snakeGameContext.fillStyle = '#f0f0f0';
|
| 1605 |
-
snakeGameContext.fillRect(0, 0, snakeGameCanvas.width, snakeGameCanvas.height);
|
| 1606 |
-
snakeGameContext.strokeRect(0, 0, snakeGameCanvas.width, snakeGameCanvas.height);
|
| 1607 |
-
}
|
| 1608 |
-
|
| 1609 |
-
function drawScore() {
|
| 1610 |
-
snakeGameContext.font = '20px Arial';
|
| 1611 |
-
snakeGameContext.fillStyle = 'black';
|
| 1612 |
-
snakeGameContext.textAlign = 'left';
|
| 1613 |
-
snakeGameContext.textBaseline = 'top';
|
| 1614 |
-
snakeGameContext.fillText('Score: ' + eatenIcons.size, 10, 10);
|
| 1615 |
-
}
|
| 1616 |
-
|
| 1617 |
-
function drawSnake() {
|
| 1618 |
-
for (let i = 0; i < snake.length; i++) {
|
| 1619 |
-
if (i === 0) {
|
| 1620 |
-
drawSnakeHead(snake[i]);
|
| 1621 |
-
} else {
|
| 1622 |
-
drawSnakePart(snake[i]);
|
| 1623 |
-
}
|
| 1624 |
-
}
|
| 1625 |
-
}
|
| 1626 |
-
|
| 1627 |
-
function drawSnakeHead(snakePart) {
|
| 1628 |
-
snakeGameContext.fillStyle = 'lightgreen';
|
| 1629 |
-
snakeGameContext.strokeStyle = 'darkgreen';
|
| 1630 |
-
snakeGameContext.lineWidth = 2;
|
| 1631 |
-
snakeGameContext.fillRect(snakePart.x, snakePart.y, SNAKE_SIZE, SNAKE_SIZE);
|
| 1632 |
-
snakeGameContext.strokeRect(snakePart.x, snakePart.y, SNAKE_SIZE, SNAKE_SIZE);
|
| 1633 |
-
|
| 1634 |
-
snakeGameContext.fillStyle = 'black';
|
| 1635 |
-
snakeGameContext.beginPath();
|
| 1636 |
-
snakeGameContext.arc(snakePart.x + 10, snakePart.y + 10, 3, 0, 2 * Math.PI);
|
| 1637 |
-
snakeGameContext.arc(snakePart.x + 30, snakePart.y + 10, 3, 0, 2 * Math.PI);
|
| 1638 |
-
snakeGameContext.fill();
|
| 1639 |
-
|
| 1640 |
-
snakeGameContext.strokeStyle = 'red';
|
| 1641 |
-
snakeGameContext.lineWidth = 2;
|
| 1642 |
-
snakeGameContext.beginPath();
|
| 1643 |
-
snakeGameContext.moveTo(snakePart.x + 20, snakePart.y + 20);
|
| 1644 |
-
snakeGameContext.lineTo(snakePart.x + 20, snakePart.y + 35);
|
| 1645 |
-
snakeGameContext.stroke();
|
| 1646 |
-
}
|
| 1647 |
-
|
| 1648 |
-
function drawSnakePart(snakePart) {
|
| 1649 |
-
snakeGameContext.fillStyle = 'lightgreen';
|
| 1650 |
-
snakeGameContext.strokeStyle = 'darkgreen';
|
| 1651 |
-
snakeGameContext.fillRect(snakePart.x, snakePart.y, SNAKE_SIZE, SNAKE_SIZE);
|
| 1652 |
-
snakeGameContext.strokeRect(snakePart.x, snakePart.y, SNAKE_SIZE, SNAKE_SIZE);
|
| 1653 |
-
}
|
| 1654 |
-
|
| 1655 |
-
function advanceSnake() {
|
| 1656 |
-
const head = { x: snake[0].x + dx, y: snake[0].y + dy };
|
| 1657 |
-
snake.unshift(head);
|
| 1658 |
-
|
| 1659 |
-
if (Math.abs(head.x - foodX) < SNAKE_SIZE && Math.abs(head.y - foodY) < SNAKE_SIZE) {
|
| 1660 |
-
eatenIcons.add(currentFoodIcon);
|
| 1661 |
-
generateFood();
|
| 1662 |
-
} else {
|
| 1663 |
-
snake.pop();
|
| 1664 |
-
}
|
| 1665 |
-
}
|
| 1666 |
-
|
| 1667 |
-
function changeDirection(event) {
|
| 1668 |
-
const keyPressed = event.keyCode;
|
| 1669 |
-
const goingUp = dy === -SNAKE_SIZE;
|
| 1670 |
-
const goingDown = dy === SNAKE_SIZE;
|
| 1671 |
-
const goingRight = dx === SNAKE_SIZE;
|
| 1672 |
-
const goingLeft = dx === -SNAKE_SIZE;
|
| 1673 |
-
|
| 1674 |
-
if (changingDirection) return;
|
| 1675 |
-
changingDirection = true;
|
| 1676 |
-
|
| 1677 |
-
if (keyPressed === 37 && !goingRight) {
|
| 1678 |
-
dx = -SNAKE_SIZE;
|
| 1679 |
-
dy = 0;
|
| 1680 |
-
}
|
| 1681 |
-
if (keyPressed === 38 && !goingDown) {
|
| 1682 |
-
dx = 0;
|
| 1683 |
-
dy = -SNAKE_SIZE;
|
| 1684 |
-
}
|
| 1685 |
-
if (keyPressed === 39 && !goingLeft) {
|
| 1686 |
-
dx = SNAKE_SIZE;
|
| 1687 |
-
dy = 0;
|
| 1688 |
-
}
|
| 1689 |
-
if (keyPressed === 40 && !goingUp) {
|
| 1690 |
-
dx = 0;
|
| 1691 |
-
dy = SNAKE_SIZE;
|
| 1692 |
-
}
|
| 1693 |
-
}
|
| 1694 |
-
|
| 1695 |
-
function fetchProviderIcons() {
|
| 1696 |
-
const providerElements = document.querySelectorAll('#providers .provider img');
|
| 1697 |
-
providersIcons = Array.from(providerElements).map(img => img.src);
|
| 1698 |
-
|
| 1699 |
-
providersIcons.forEach(iconSrc => {
|
| 1700 |
-
const img = new Image();
|
| 1701 |
-
img.src = iconSrc;
|
| 1702 |
-
iconsCache[iconSrc] = img;
|
| 1703 |
-
});
|
| 1704 |
-
}
|
| 1705 |
-
|
| 1706 |
-
function generateFood() {
|
| 1707 |
-
if (providersIcons.length === 0) return;
|
| 1708 |
-
|
| 1709 |
-
const availableIcons = providersIcons.filter(icon => !eatenIcons.has(icon));
|
| 1710 |
-
currentFoodIcon = availableIcons[Math.floor(Math.random() * availableIcons.length)];
|
| 1711 |
-
|
| 1712 |
-
foodX = Math.round((Math.random() * (snakeGameCanvas.width - SNAKE_SIZE)) / SNAKE_SIZE) * SNAKE_SIZE;
|
| 1713 |
-
foodY = Math.round((Math.random() * (snakeGameCanvas.height - SNAKE_SIZE)) / SNAKE_SIZE) * SNAKE_SIZE;
|
| 1714 |
-
}
|
| 1715 |
-
|
| 1716 |
-
function drawFood() {
|
| 1717 |
-
const foodImage = iconsCache[currentFoodIcon];
|
| 1718 |
-
if (foodImage) {
|
| 1719 |
-
snakeGameContext.drawImage(foodImage, foodX, foodY, SNAKE_SIZE, SNAKE_SIZE);
|
| 1720 |
-
snakeGameContext.strokeStyle = 'red';
|
| 1721 |
-
snakeGameContext.lineWidth = 2;
|
| 1722 |
-
snakeGameContext.strokeRect(foodX, foodY, SNAKE_SIZE, SNAKE_SIZE);
|
| 1723 |
-
}
|
| 1724 |
-
}
|
| 1725 |
-
|
| 1726 |
-
function hasGameEnded() {
|
| 1727 |
-
for (let i = 4; i < snake.length; i++) {
|
| 1728 |
-
const hasCollided = snake[i].x === snake[0].x && snake[i].y === snake[0].y;
|
| 1729 |
-
if (hasCollided) return true;
|
| 1730 |
-
}
|
| 1731 |
-
|
| 1732 |
-
const hitLeftWall = snake[0].x < 0;
|
| 1733 |
-
const hitRightWall = snake[0].x >= snakeGameCanvas.width;
|
| 1734 |
-
const hitTopWall = snake[0].y < 0;
|
| 1735 |
-
const hitBottomWall = snake[0].y >= snakeGameCanvas.height;
|
| 1736 |
-
|
| 1737 |
-
return hitLeftWall || hitRightWall || hitTopWall || hitBottomWall;
|
| 1738 |
-
}
|
| 1739 |
-
|
| 1740 |
-
function displayScoreAndIcons(won = false) {
|
| 1741 |
-
clearCanvas();
|
| 1742 |
-
snakeGameContext.font = '30px Arial';
|
| 1743 |
-
snakeGameContext.fillStyle = 'black';
|
| 1744 |
-
snakeGameContext.textAlign = 'center';
|
| 1745 |
-
const message = won ? 'Congratulations, you won!' : 'Game Over!';
|
| 1746 |
-
snakeGameContext.fillText(message, snakeGameCanvas.width / 2, snakeGameCanvas.height / 2 - 40);
|
| 1747 |
-
snakeGameContext.fillText('Score: ' + eatenIcons.size, snakeGameCanvas.width / 2, snakeGameCanvas.height / 2);
|
| 1748 |
-
|
| 1749 |
-
let startX = snakeGameCanvas.width / 2 - (eatenIcons.size * (SNAKE_SIZE / 2));
|
| 1750 |
-
let startY = snakeGameCanvas.height / 2 + 40;
|
| 1751 |
-
let iconsPerRow = Math.floor(snakeGameCanvas.width / (SNAKE_SIZE + 10));
|
| 1752 |
-
|
| 1753 |
-
let currentIconIndex = 0;
|
| 1754 |
-
eatenIcons.forEach(iconSrc => {
|
| 1755 |
-
const img = new Image();
|
| 1756 |
-
img.src = iconSrc;
|
| 1757 |
-
img.onload = () => {
|
| 1758 |
-
snakeGameContext.drawImage(img, startX, startY, SNAKE_SIZE, SNAKE_SIZE);
|
| 1759 |
-
currentIconIndex++;
|
| 1760 |
-
startX += SNAKE_SIZE + 10;
|
| 1761 |
-
|
| 1762 |
-
if (currentIconIndex >= iconsPerRow) {
|
| 1763 |
-
startX = snakeGameCanvas.width / 2 - (eatenIcons.size * (SNAKE_SIZE / 2));
|
| 1764 |
-
startY += SNAKE_SIZE + 10;
|
| 1765 |
-
currentIconIndex = 0;
|
| 1766 |
-
}
|
| 1767 |
-
};
|
| 1768 |
-
});
|
| 1769 |
-
|
| 1770 |
-
createQuitButton();
|
| 1771 |
-
}
|
| 1772 |
-
|
| 1773 |
-
function createQuitButton() {
|
| 1774 |
-
const quitButton = document.createElement('button');
|
| 1775 |
-
quitButton.textContent = 'Quit';
|
| 1776 |
-
quitButton.style.position = 'fixed';
|
| 1777 |
-
quitButton.style.top = '20px';
|
| 1778 |
-
quitButton.style.right = '20px';
|
| 1779 |
-
quitButton.style.zIndex = '1001';
|
| 1780 |
-
quitButton.style.padding = '10px 20px';
|
| 1781 |
-
quitButton.style.fontSize = '20px';
|
| 1782 |
-
quitButton.style.backgroundColor = '#ff4d4d';
|
| 1783 |
-
quitButton.style.color = 'white';
|
| 1784 |
-
quitButton.style.border = 'none';
|
| 1785 |
-
quitButton.style.borderRadius = '5px';
|
| 1786 |
-
quitButton.style.cursor = 'pointer';
|
| 1787 |
-
document.body.appendChild(quitButton);
|
| 1788 |
-
|
| 1789 |
-
quitButton.onclick = () => {
|
| 1790 |
-
snakeGameCanvas.style.display = 'none';
|
| 1791 |
-
document.getElementById('addon').style.display = 'block';
|
| 1792 |
-
document.getElementById('searchProviders').value = '';
|
| 1793 |
-
quitButton.remove();
|
| 1794 |
-
snakeGameActive = false;
|
| 1795 |
-
};
|
| 1796 |
-
}
|
| 1797 |
-
|
| 1798 |
-
function addTouchControls() {
|
| 1799 |
-
let touchStartX = 0;
|
| 1800 |
-
let touchStartY = 0;
|
| 1801 |
-
snakeGameCanvas.addEventListener('touchstart', function (event) {
|
| 1802 |
-
event.preventDefault();
|
| 1803 |
-
touchStartX = event.touches[0].clientX;
|
| 1804 |
-
touchStartY = event.touches[0].clientY;
|
| 1805 |
-
});
|
| 1806 |
-
|
| 1807 |
-
snakeGameCanvas.addEventListener('touchmove', function (event) {
|
| 1808 |
-
event.preventDefault();
|
| 1809 |
-
const touchEndX = event.touches[0].clientX;
|
| 1810 |
-
const touchEndY = event.touches[0].clientY;
|
| 1811 |
-
const dx = touchEndX - touchStartX;
|
| 1812 |
-
const dy = touchEndY - touchStartY;
|
| 1813 |
-
|
| 1814 |
-
if (Math.abs(dx) > Math.abs(dy)) {
|
| 1815 |
-
if (dx > 0 && dx >= 20 && !changingDirection) changeDirection({ keyCode: 39 });
|
| 1816 |
-
if (dx < 0 && dx <= -20 && !changingDirection) changeDirection({ keyCode: 37 });
|
| 1817 |
-
} else {
|
| 1818 |
-
if (dy > 0 && dy >= 20 && !changingDirection) changeDirection({ keyCode: 40 });
|
| 1819 |
-
if (dy < 0 && dy <= -20 && !changingDirection) changeDirection({ keyCode: 38 });
|
| 1820 |
-
}
|
| 1821 |
-
touchStartX = touchEndX;
|
| 1822 |
-
touchStartY = touchEndY;
|
| 1823 |
-
});
|
| 1824 |
-
}
|
| 1825 |
-
|
| 1826 |
-
const getFlagForRegion = (isoCode) => {
|
| 1827 |
-
const flag = isoCode
|
| 1828 |
-
.toUpperCase()
|
| 1829 |
-
.replace(/./g, char => String.fromCodePoint(127397 + char.charCodeAt()));
|
| 1830 |
-
console.log("Flag for region:", isoCode, "is", flag);
|
| 1831 |
-
return flag;
|
| 1832 |
-
};
|
| 1833 |
-
|
| 1834 |
-
const getCountryInfo = (regionCode) => {
|
| 1835 |
-
const country = countries.find(c => c.iso_3166_1 === regionCode);
|
| 1836 |
-
if (country) {
|
| 1837 |
-
const flag = country.iso_3166_1
|
| 1838 |
-
.toUpperCase()
|
| 1839 |
-
.replace(/./g, char => String.fromCodePoint(127397 + char.charCodeAt()));
|
| 1840 |
-
return { english_name: country.english_name, flag: flag };
|
| 1841 |
-
}
|
| 1842 |
-
return { english_name: regionCode, flag: regionCode };
|
| 1843 |
-
};
|
| 1844 |
-
|
| 1845 |
document.getElementById('searchProviders').addEventListener('input', function(event) {
|
| 1846 |
-
|
| 1847 |
-
|
| 1848 |
-
|
| 1849 |
-
|
| 1850 |
-
|
| 1851 |
-
Object.keys(providersMap).forEach(providerId => {
|
| 1852 |
-
const provider = providersMap[providerId];
|
| 1853 |
-
const providerName = provider.provider_name.toLowerCase();
|
| 1854 |
-
|
| 1855 |
-
if (providerName.includes(searchTerm)) {
|
| 1856 |
-
const displayPriorities = JSON.parse(provider.display_priorities);
|
| 1857 |
-
console.log("Display priorities for provider:", provider.provider_name, displayPriorities);
|
| 1858 |
-
|
| 1859 |
-
Object.keys(displayPriorities).forEach(regionCode => {
|
| 1860 |
-
const { english_name, flag } = getCountryInfo(regionCode);
|
| 1861 |
-
|
| 1862 |
-
const providerElement = document.createElement('div');
|
| 1863 |
-
providerElement.className = 'provider';
|
| 1864 |
-
providerElement.setAttribute('data-id', providerId);
|
| 1865 |
-
providerElement.setAttribute('data-region', regionCode);
|
| 1866 |
-
|
| 1867 |
-
providerElement.innerHTML = `
|
| 1868 |
-
<img src="https://image.tmdb.org/t/p/w500/${provider.logo_path}" alt="${provider.provider_name}" title="${provider.provider_name}" />
|
| 1869 |
-
<span class="region-flag">${flag}</span>
|
| 1870 |
-
`;
|
| 1871 |
-
|
| 1872 |
-
console.log("Generated HTML for provider:", providerElement.innerHTML);
|
| 1873 |
-
|
| 1874 |
-
providerElement.addEventListener('click', function() {
|
| 1875 |
-
if (!selectedProviders.includes(providerId)) {
|
| 1876 |
-
selectedProviders.push(providerId);
|
| 1877 |
-
addSelectedRegion(regionCode, flag, english_name);
|
| 1878 |
-
}
|
| 1879 |
-
|
| 1880 |
-
renderSelectedProviders();
|
| 1881 |
-
});
|
| 1882 |
-
|
| 1883 |
-
document.getElementById('providers').appendChild(providerElement);
|
| 1884 |
-
});
|
| 1885 |
-
}
|
| 1886 |
-
});
|
| 1887 |
-
|
| 1888 |
-
if (searchTerm === '') {
|
| 1889 |
-
renderProviders();
|
| 1890 |
-
}
|
| 1891 |
});
|
| 1892 |
-
|
| 1893 |
-
function getQueryParams() {
|
| 1894 |
-
const url = new URL(window.location.href);
|
| 1895 |
-
|
| 1896 |
-
const path = url.pathname.split('/')[1];
|
| 1897 |
-
|
| 1898 |
-
if (!path || path.length < 10) {
|
| 1899 |
-
console.log('No valid base64 encoded parameters found in the URL.');
|
| 1900 |
-
return {};
|
| 1901 |
-
}
|
| 1902 |
-
|
| 1903 |
-
try {
|
| 1904 |
-
const decodedPath = atob(path);
|
| 1905 |
-
|
| 1906 |
-
const decodedURI = decodeURIComponent(escape(decodedPath));
|
| 1907 |
-
|
| 1908 |
-
const config = JSON.parse(decodedURI);
|
| 1909 |
-
|
| 1910 |
-
if (config.traktUsername && !url.searchParams.has('username')) {
|
| 1911 |
-
const currentUrl = new URL(window.location.href);
|
| 1912 |
-
currentUrl.searchParams.set('username', config.traktUsername);
|
| 1913 |
-
const newUrl = currentUrl.toString();
|
| 1914 |
-
|
| 1915 |
-
window.location.href = newUrl;
|
| 1916 |
-
|
| 1917 |
-
return {};
|
| 1918 |
-
}
|
| 1919 |
-
|
| 1920 |
-
return config;
|
| 1921 |
-
} catch (error) {
|
| 1922 |
-
console.error('Error decoding or parsing configuration parameters:', error);
|
| 1923 |
-
if (path) {
|
| 1924 |
-
showPopup('Error decoding or parsing configuration parameters. Please check your input and try again.', 'error');
|
| 1925 |
-
}
|
| 1926 |
-
}
|
| 1927 |
-
|
| 1928 |
-
return {};
|
| 1929 |
-
}
|
| 1930 |
-
|
| 1931 |
-
function prefillFormFromUrlParams() {
|
| 1932 |
-
const params = getQueryParams();
|
| 1933 |
-
|
| 1934 |
-
if (params.tmdbApiKey && !localStorage.getItem('tmdbApiKey')) {
|
| 1935 |
-
localStorage.setItem('tmdbApiKey', params.tmdbApiKey);
|
| 1936 |
-
}
|
| 1937 |
-
if (params.language && !localStorage.getItem('language')) {
|
| 1938 |
-
localStorage.setItem('language', params.language);
|
| 1939 |
-
}
|
| 1940 |
-
if (params.ageRange && !localStorage.getItem('ageRange')) {
|
| 1941 |
-
localStorage.setItem('ageRange', params.ageRange);
|
| 1942 |
-
}
|
| 1943 |
-
if (params.rpdbApiKey && !localStorage.getItem('rpdbApiKey')) {
|
| 1944 |
-
localStorage.setItem('rpdbApiKey', params.rpdbApiKey);
|
| 1945 |
-
}
|
| 1946 |
-
if (params.fanartApiKey && !localStorage.getItem('fanartApiKey')) {
|
| 1947 |
-
localStorage.setItem('fanartApiKey', params.fanartApiKey);
|
| 1948 |
-
}
|
| 1949 |
-
if (params.providers && !localStorage.getItem('selectedProviders')) {
|
| 1950 |
-
localStorage.setItem('selectedProviders', JSON.stringify(params.providers));
|
| 1951 |
-
}
|
| 1952 |
-
if (params.regions && !localStorage.getItem('selectedRegions')) {
|
| 1953 |
-
localStorage.setItem('selectedRegions', JSON.stringify(params.regions));
|
| 1954 |
-
}
|
| 1955 |
-
if (params.filterContentWithoutPoster && !localStorage.getItem('filterContentWithoutPoster')) {
|
| 1956 |
-
localStorage.setItem('filterContentWithoutPoster', params.filterContentWithoutPoster);
|
| 1957 |
-
}
|
| 1958 |
-
|
| 1959 |
-
if (params.popularCatalogTitle && !localStorage.getItem('popularCatalogTitle')) {
|
| 1960 |
-
localStorage.setItem('popularCatalogTitle', params.popularCatalogTitle);
|
| 1961 |
-
}
|
| 1962 |
-
if (params.newCatalogTitle && !localStorage.getItem('newCatalogTitle')) {
|
| 1963 |
-
localStorage.setItem('newCatalogTitle', params.newCatalogTitle);
|
| 1964 |
-
}
|
| 1965 |
-
if (params.recommendationsToggle && !localStorage.getItem('recommendationsToggle')) {
|
| 1966 |
-
localStorage.setItem('recommendationsToggle', params.recommendationsToggle);
|
| 1967 |
-
}
|
| 1968 |
-
if (params.recommendationsText && !localStorage.getItem('recommendationsText')) {
|
| 1969 |
-
localStorage.setItem('recommendationsText', params.recommendationsText);
|
| 1970 |
-
}
|
| 1971 |
-
if (params.similarToggle && !localStorage.getItem('similarToggle')) {
|
| 1972 |
-
localStorage.setItem('similarToggle', params.similarToggle);
|
| 1973 |
-
}
|
| 1974 |
-
if (params.similarText && !localStorage.getItem('similarText')) {
|
| 1975 |
-
localStorage.setItem('similarText', params.similarText);
|
| 1976 |
-
}
|
| 1977 |
-
|
| 1978 |
-
const tmdbApiKey = localStorage.getItem('tmdbApiKey');
|
| 1979 |
-
const language = localStorage.getItem('language');
|
| 1980 |
-
const ageRange = localStorage.getItem('ageRange');
|
| 1981 |
-
const rpdbApiKey = localStorage.getItem('rpdbApiKey');
|
| 1982 |
-
const fanartApiKey = localStorage.getItem('fanartApiKey');
|
| 1983 |
-
const savedProviders = localStorage.getItem('selectedProviders');
|
| 1984 |
-
const savedRegions = localStorage.getItem('selectedRegions');
|
| 1985 |
-
const filterContentWithoutPoster = localStorage.getItem('filterContentWithoutPoster');
|
| 1986 |
-
|
| 1987 |
-
const popularCatalogTitle = localStorage.getItem('popularCatalogTitle');
|
| 1988 |
-
const newCatalogTitle = localStorage.getItem('newCatalogTitle');
|
| 1989 |
-
const recommendationsToggle = localStorage.getItem('recommendationsToggle');
|
| 1990 |
-
const recommendationsText = localStorage.getItem('recommendationsText');
|
| 1991 |
-
const similarToggle = localStorage.getItem('similarToggle');
|
| 1992 |
-
const similarText = localStorage.getItem('similarText');
|
| 1993 |
-
|
| 1994 |
-
if (tmdbApiKey) {
|
| 1995 |
-
document.getElementById('tmdbApiKey').value = tmdbApiKey;
|
| 1996 |
-
confirmButton.click();
|
| 1997 |
-
}
|
| 1998 |
-
|
| 1999 |
-
if (language) {
|
| 2000 |
-
document.getElementById('language').value = language;
|
| 2001 |
-
}
|
| 2002 |
-
|
| 2003 |
-
if (ageRange) {
|
| 2004 |
-
document.getElementById('ageRange').value = ageRange;
|
| 2005 |
-
}
|
| 2006 |
-
|
| 2007 |
-
if (rpdbApiKey) {
|
| 2008 |
-
document.getElementById('rpdbApiKey').value = rpdbApiKey;
|
| 2009 |
-
}
|
| 2010 |
-
|
| 2011 |
-
if (fanartApiKey) {
|
| 2012 |
-
document.getElementById('fanartApiKey').value = fanartApiKey;
|
| 2013 |
-
}
|
| 2014 |
-
|
| 2015 |
-
if (filterContentWithoutPoster === 'true') {
|
| 2016 |
-
document.getElementById('filterContentWithoutPoster').checked = true;
|
| 2017 |
-
} else if (filterContentWithoutPoster === 'false') {
|
| 2018 |
-
document.getElementById('filterContentWithoutPoster').checked = false;
|
| 2019 |
-
}
|
| 2020 |
-
|
| 2021 |
-
if (savedProviders) {
|
| 2022 |
-
selectedProviders = JSON.parse(savedProviders);
|
| 2023 |
-
|
| 2024 |
-
if (providersData.length > 0) {
|
| 2025 |
-
populateProvidersMap();
|
| 2026 |
-
renderSelectedProviders();
|
| 2027 |
-
} else {
|
| 2028 |
-
confirmButton.addEventListener('providersLoaded', () => {
|
| 2029 |
-
populateProvidersMap();
|
| 2030 |
-
renderSelectedProviders();
|
| 2031 |
-
}, { once: true });
|
| 2032 |
-
}
|
| 2033 |
-
}
|
| 2034 |
-
|
| 2035 |
-
if (savedRegions) {
|
| 2036 |
-
selectedRegions = JSON.parse(savedRegions);
|
| 2037 |
-
selectedRegions.forEach(regionCode => {
|
| 2038 |
-
const country = countries.find(c => c.iso_3166_1 === regionCode);
|
| 2039 |
-
if (country) {
|
| 2040 |
-
const flag = country.iso_3166_1.toUpperCase().replace(/./g, char => String.fromCodePoint(127397 + char.charCodeAt()));
|
| 2041 |
-
addSelectedRegion(regionCode, flag, country.english_name);
|
| 2042 |
-
}
|
| 2043 |
-
});
|
| 2044 |
-
}
|
| 2045 |
-
|
| 2046 |
-
if (popularCatalogTitle) {
|
| 2047 |
-
document.getElementById('popularCatalogTitle').value = popularCatalogTitle;
|
| 2048 |
-
}
|
| 2049 |
-
|
| 2050 |
-
if (newCatalogTitle) {
|
| 2051 |
-
document.getElementById('newCatalogTitle').value = newCatalogTitle;
|
| 2052 |
-
}
|
| 2053 |
-
|
| 2054 |
-
if (recommendationsToggle === 'true') {
|
| 2055 |
-
document.getElementById('recommendationsToggle').checked = true;
|
| 2056 |
-
document.getElementById('recommendationsText').style.display = 'block';
|
| 2057 |
-
} else {
|
| 2058 |
-
document.getElementById('recommendationsToggle').checked = false;
|
| 2059 |
-
document.getElementById('recommendationsText').style.display = 'none';
|
| 2060 |
-
}
|
| 2061 |
-
|
| 2062 |
-
if (recommendationsText) {
|
| 2063 |
-
document.getElementById('recommendationsText').value = recommendationsText;
|
| 2064 |
-
}
|
| 2065 |
-
|
| 2066 |
-
if (similarToggle === 'true') {
|
| 2067 |
-
document.getElementById('similarToggle').checked = true;
|
| 2068 |
-
document.getElementById('similarText').style.display = 'block';
|
| 2069 |
-
} else {
|
| 2070 |
-
document.getElementById('similarToggle').checked = false;
|
| 2071 |
-
document.getElementById('similarText').style.display = 'none';
|
| 2072 |
-
}
|
| 2073 |
-
|
| 2074 |
-
if (similarText) {
|
| 2075 |
-
document.getElementById('similarText').value = similarText;
|
| 2076 |
-
}
|
| 2077 |
-
|
| 2078 |
-
localStorage.removeItem('tmdbApiKey');
|
| 2079 |
-
localStorage.removeItem('language');
|
| 2080 |
-
localStorage.removeItem('ageRange');
|
| 2081 |
-
localStorage.removeItem('rpdbApiKey');
|
| 2082 |
-
localStorage.removeItem('fanartApiKey');
|
| 2083 |
-
localStorage.removeItem('selectedProviders');
|
| 2084 |
-
localStorage.removeItem('selectedRegions');
|
| 2085 |
-
localStorage.removeItem('filterContentWithoutPoster');
|
| 2086 |
-
localStorage.removeItem('popularCatalogTitle');
|
| 2087 |
-
localStorage.removeItem('newCatalogTitle');
|
| 2088 |
-
localStorage.removeItem('recommendationsToggle');
|
| 2089 |
-
localStorage.removeItem('recommendationsText');
|
| 2090 |
-
localStorage.removeItem('similarToggle');
|
| 2091 |
-
localStorage.removeItem('similarText');
|
| 2092 |
-
}
|
| 2093 |
-
|
| 2094 |
-
const populateProvidersMap = () => {
|
| 2095 |
-
providersData.forEach(provider => {
|
| 2096 |
-
providersMap[provider.provider_id] = provider;
|
| 2097 |
-
});
|
| 2098 |
-
};
|
| 2099 |
-
|
| 2100 |
-
prefillFormFromUrlParams();
|
| 2101 |
-
|
| 2102 |
-
fetch('/env')
|
| 2103 |
-
.then(response => response.json())
|
| 2104 |
-
.then(env => {
|
| 2105 |
-
document.getElementById('connectTraktButton').addEventListener('click', () => {
|
| 2106 |
-
localStorage.setItem('tmdbApiKey', document.getElementById('tmdbApiKey').value.trim());
|
| 2107 |
-
localStorage.setItem('language', document.getElementById('language').value);
|
| 2108 |
-
localStorage.setItem('ageRange', document.getElementById('ageRange').value);
|
| 2109 |
-
localStorage.setItem('rpdbApiKey', document.getElementById('rpdbApiKey').value);
|
| 2110 |
-
localStorage.setItem('fanartApiKey', document.getElementById('fanartApiKey').value);
|
| 2111 |
-
localStorage.setItem('selectedProviders', JSON.stringify(selectedProviders));
|
| 2112 |
-
localStorage.setItem('selectedRegions', JSON.stringify(selectedRegions));
|
| 2113 |
-
localStorage.setItem('filterContentWithoutPoster', document.getElementById('filterContentWithoutPoster').checked ? 'true' : 'false');
|
| 2114 |
-
localStorage.setItem('popularCatalogTitle', document.getElementById('popularCatalogTitle').value.trim());
|
| 2115 |
-
localStorage.setItem('newCatalogTitle', document.getElementById('newCatalogTitle').value.trim());
|
| 2116 |
-
localStorage.setItem('recommendationsToggle', document.getElementById('recommendationsToggle').checked ? 'true' : 'false');
|
| 2117 |
-
localStorage.setItem('recommendationsText', document.getElementById('recommendationsText').value.trim());
|
| 2118 |
-
localStorage.setItem('similarToggle', document.getElementById('similarToggle').checked ? 'true' : 'false');
|
| 2119 |
-
localStorage.setItem('similarText', document.getElementById('similarText').value.trim());
|
| 2120 |
-
|
| 2121 |
-
const clientId = env.TRAKT_CLIENT_ID;
|
| 2122 |
-
const redirectUri = `${window.location.origin}/callback`;
|
| 2123 |
-
|
| 2124 |
-
const traktAuthUrl = `https://trakt.tv/oauth/authorize?response_type=code&client_id=${clientId}&redirect_uri=${encodeURIComponent(redirectUri)}`;
|
| 2125 |
-
|
| 2126 |
-
window.location.href = traktAuthUrl;
|
| 2127 |
-
});
|
| 2128 |
-
document.getElementById('recommendationsToggle').addEventListener('change', function() {
|
| 2129 |
-
const recommendationsText = document.getElementById('recommendationsText');
|
| 2130 |
-
if (this.checked) {
|
| 2131 |
-
recommendationsText.style.display = 'block';
|
| 2132 |
-
} else {
|
| 2133 |
-
recommendationsText.style.display = 'none';
|
| 2134 |
-
recommendationsText.value = '';
|
| 2135 |
-
}
|
| 2136 |
-
});
|
| 2137 |
-
|
| 2138 |
-
document.getElementById('similarToggle').addEventListener('change', function() {
|
| 2139 |
-
const similarText = document.getElementById('similarText');
|
| 2140 |
-
if (this.checked) {
|
| 2141 |
-
similarText.style.display = 'block';
|
| 2142 |
-
} else {
|
| 2143 |
-
similarText.style.display = 'none';
|
| 2144 |
-
similarText.value = '';
|
| 2145 |
-
}
|
| 2146 |
-
});
|
| 2147 |
-
})
|
| 2148 |
-
.catch(error => console.error('Error fetching environment variables:', error));
|
| 2149 |
-
|
| 2150 |
-
const logo = document.querySelector('.logo');
|
| 2151 |
-
let logoClickCount = 0;
|
| 2152 |
-
let countdownActive = false;
|
| 2153 |
-
|
| 2154 |
-
logo.addEventListener('click', () => {
|
| 2155 |
-
if (!countdownActive) {
|
| 2156 |
-
logoClickCount++;
|
| 2157 |
-
if (logoClickCount >= 5) {
|
| 2158 |
-
startCountdown();
|
| 2159 |
-
}
|
| 2160 |
-
}
|
| 2161 |
-
});
|
| 2162 |
-
|
| 2163 |
-
function startCountdown() {
|
| 2164 |
-
const countdownImage = document.getElementById('countdownImage');
|
| 2165 |
-
const addonContent = document.getElementById('addon');
|
| 2166 |
-
countdownActive = true;
|
| 2167 |
-
logoClickCount = 0;
|
| 2168 |
-
|
| 2169 |
-
addonContent.style.display = 'none';
|
| 2170 |
-
|
| 2171 |
-
countdownImage.style.display = 'none';
|
| 2172 |
-
countdownImage.src = '';
|
| 2173 |
-
countdownImage.src = '/assets/countdown.webp';
|
| 2174 |
-
countdownImage.style.display = 'block';
|
| 2175 |
-
|
| 2176 |
-
setTimeout(() => {
|
| 2177 |
-
countdownImage.style.display = 'none';
|
| 2178 |
-
window.location.href = 'https://www.youtube.com/watch?v=GFq6wH5JR2A&t=43s';
|
| 2179 |
-
}, 10000);
|
| 2180 |
-
}
|
| 2181 |
-
|
| 2182 |
-
document.getElementById('recommendationsToggle').addEventListener('change', function() {
|
| 2183 |
-
const recommendationsText = document.getElementById('recommendationsText');
|
| 2184 |
-
if (this.checked) {
|
| 2185 |
-
recommendationsText.style.display = 'block';
|
| 2186 |
-
} else {
|
| 2187 |
-
recommendationsText.style.display = 'none';
|
| 2188 |
-
recommendationsText.value = '';
|
| 2189 |
-
}
|
| 2190 |
-
});
|
| 2191 |
-
|
| 2192 |
-
document.getElementById('similarToggle').addEventListener('change', function() {
|
| 2193 |
-
const similarText = document.getElementById('similarText');
|
| 2194 |
-
if (this.checked) {
|
| 2195 |
-
similarText.style.display = 'block';
|
| 2196 |
-
} else {
|
| 2197 |
-
similarText.style.display = 'none';
|
| 2198 |
-
similarText.value = '';
|
| 2199 |
-
}
|
| 2200 |
-
});
|
| 2201 |
});
|
| 2202 |
-
|
| 2203 |
</body>
|
| 2204 |
</html>
|
|
|
|
| 309 |
transition: background-color 0.3s, transform 0.2s;
|
| 310 |
}
|
| 311 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 312 |
#installButton {
|
| 313 |
background-color: #007aff;
|
| 314 |
}
|
|
|
|
| 439 |
color: #333;
|
| 440 |
}
|
| 441 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 442 |
</style>
|
| 443 |
</head>
|
| 444 |
<html>
|
|
|
|
| 446 |
<div id="addon">
|
| 447 |
<div id="theme-toggle" class="theme-toggle" title="Toggle Dark/Light Mode"> 🌙 </div>
|
| 448 |
<div class="logo">
|
| 449 |
+
<img src="assets/logo.png" alt="Addon Logo" />
|
| 450 |
</div>
|
| 451 |
<h1 class="name">Streaming Catalog Providers</h1>
|
| 452 |
+
<h2 class="version">1.0.0</h2>
|
| 453 |
+
<h2 class="description">Choose your streaming providers below.</h2>
|
| 454 |
+
<div class="separator"></div>
|
| 455 |
+
<h3 class="providers-title">Available providers</h3>
|
| 456 |
+
<div class="form-element">
|
| 457 |
+
<input type="text" id="searchProviders" placeholder="Search providers..." />
|
| 458 |
+
</div>
|
| 459 |
+
<div id="providers" class="provider-container"></div>
|
| 460 |
+
<div class="separator"></div>
|
| 461 |
+
<form class="pure-form" id="mainForm">
|
| 462 |
<div class="form-element">
|
| 463 |
+
<label for="tmdbApiKey"> TMDB API key (<a href="https://www.themoviedb.org/settings/api" target="_blank" style="color: #007aff;">Get it here</a>) </label>
|
| 464 |
+
<input type="text" id="tmdbApiKey" name="tmdbApiKey" />
|
| 465 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 466 |
<div class="form-element">
|
| 467 |
+
<label for="language"> Language </label>
|
| 468 |
+
<select id="language" name="language" required>
|
| 469 |
+
<option value="">Select your language</option>
|
| 470 |
+
</select>
|
|
|
|
|
|
|
|
|
|
| 471 |
</div>
|
| 472 |
<div class="form-element">
|
| 473 |
+
<label for="ageRange"> Age range (content moderation) <span id="infoIcon" class="info-icon" title="Learn more">?</span>
|
| 474 |
+
</label>
|
| 475 |
+
<select id="ageRange" name="ageRange">
|
| 476 |
+
<option value="">Select your age range</option>
|
| 477 |
+
<option value="0-5">0-5 years</option>
|
| 478 |
+
<option value="6-11">6-11 years</option>
|
| 479 |
+
<option value="12-15">12-15 years</option>
|
| 480 |
+
<option value="16-17">16-17 years</option>
|
| 481 |
+
<option value="18+">18+ years</option>
|
| 482 |
+
</select>
|
| 483 |
</div>
|
|
|
|
| 484 |
<div class="separator"></div>
|
| 485 |
+
<div class="form-element">
|
| 486 |
+
<label for="rpdbApiKey">RPDB API key (<a href="https://ratingposterdb.com/api-key/" target="_blank" style="color: #007aff;">Get it here</a>) </label>
|
| 487 |
+
<input type="text" id="rpdbApiKey" name="rpdbApiKey">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 488 |
</div>
|
| 489 |
+
<div class="separator"></div>
|
| 490 |
+
<h3 class="selected-providers-title">Selected providers</h3>
|
| 491 |
+
<div id="selectedProviders" class="provider-container"></div>
|
| 492 |
+
<div class="separator"></div>
|
| 493 |
+
<div class="button-container">
|
| 494 |
+
<button type="button" id="installButton">INSTALL</button>
|
| 495 |
+
<button type="button" id="copyButton">COPY LINK</button>
|
| 496 |
+
</div>
|
| 497 |
+
<div class="separator"></div>
|
| 498 |
+
</form>
|
| 499 |
+
<div id="popup" class="popup"></div>
|
| 500 |
+
<div id="infoModal" class="modal">
|
| 501 |
+
<span id="modalClose" class="modal-close">×</span>
|
| 502 |
+
<h4>Age Range Content Moderation</h4>
|
| 503 |
+
<p> The content moderation system filters media based on the selected age range to ensure suitability for viewers. Here's how it works: </p>
|
| 504 |
+
<ul>
|
| 505 |
+
<li>
|
| 506 |
+
<strong>0-5 years:</strong> Uses the US certification 'G' (General Audience). Filters out content that is not suitable for very young children. This includes genres such as horror, drama, thriller, crime, war, western, erotic, war & politics, talk-show, soap-opera, reality-show, news, mystery, documentary, and history.
|
| 507 |
+
</li>
|
| 508 |
+
<li>
|
| 509 |
+
<strong>6-11 years:</strong> Uses the US certification 'G' (General Audience). Filters out content unsuitable for young children, maintaining a focus on safe, family-friendly genres. The same genres as for 0-5 years are excluded.
|
| 510 |
+
</li>
|
| 511 |
+
<li>
|
| 512 |
+
<strong>12-15 years:</strong> Uses the US certification 'PG' (Parental Guidance). Allows content with mild themes appropriate for older children and pre-teens. No specific genres are excluded for this age range.
|
| 513 |
+
</li>
|
| 514 |
+
<li>
|
| 515 |
+
<strong>16-17 years:</strong> Uses the US certification 'PG-13' (Parents Strongly Cautioned). Permits content suitable for older teens, including more complex and mature themes but not adult content. No specific genres are excluded for this age range.
|
| 516 |
+
</li>
|
| 517 |
+
<li>
|
| 518 |
+
<strong>18+ years:</strong> Includes all content, even those with adult themes and explicit material. For this age range, no genres are excluded.
|
| 519 |
+
</li>
|
| 520 |
+
</ul>
|
| 521 |
+
<p>
|
| 522 |
+
<p>
|
| 523 |
+
<strong>Warning:</strong> Please note that the data for this content moderation system is sourced from TMDB (The Movie Database) and may contain inaccuracies. Viewer discretion is advised.
|
| 524 |
+
</p>
|
| 525 |
+
</p>
|
| 526 |
</div>
|
| 527 |
+
<script src="js/languages.js"></script>
|
|
|
|
|
|
|
|
|
|
| 528 |
<script>
|
| 529 |
document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 530 |
function populateLanguageDropdown() {
|
| 531 |
const dropdown = document.getElementById('language');
|
| 532 |
languages.forEach(lang => {
|
|
|
|
| 537 |
});
|
| 538 |
}
|
| 539 |
populateLanguageDropdown();
|
|
|
|
| 540 |
const mainForm = document.getElementById('mainForm');
|
| 541 |
const installButton = document.getElementById('installButton');
|
| 542 |
const copyButton = document.getElementById('copyButton');
|
|
|
|
| 546 |
const infoModal = document.getElementById('infoModal');
|
| 547 |
const modalClose = document.getElementById('modalClose');
|
| 548 |
const selectedProvidersContainer = document.getElementById('selectedProviders');
|
|
|
|
|
|
|
|
|
|
|
|
|
| 549 |
let selectedProviders = [];
|
| 550 |
let providersMap = {};
|
|
|
|
| 551 |
new Sortable(selectedProvidersContainer, {
|
| 552 |
animation: 150,
|
| 553 |
ghostClass: 'sortable-ghost',
|
|
|
|
| 555 |
selectedProviders = Array.from(selectedProvidersContainer.querySelectorAll('.selected-provider')).map(div => div.getAttribute('data-id'));
|
| 556 |
}
|
| 557 |
});
|
|
|
|
| 558 |
const renderSelectedProviders = () => {
|
| 559 |
+
selectedProvidersContainer.innerHTML = selectedProviders.map(providerId => `
|
| 560 |
+
<div class="selected-provider" data-id="${providerId}">
|
| 561 |
+
<img src="https://image.tmdb.org/t/p/w500/${providersMap[providerId].logo_path}" alt="${providersMap[providerId].display_name}" title="${providersMap[providerId].display_name}" />
|
| 562 |
+
<button class="remove-button" data-id="${providerId}">×</button>
|
| 563 |
+
</div>`).join('');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 564 |
document.querySelectorAll('.remove-button').forEach(button => {
|
| 565 |
button.addEventListener('click', (event) => {
|
| 566 |
const providerId = event.target.getAttribute('data-id');
|
| 567 |
selectedProviders = selectedProviders.filter(id => id !== providerId);
|
|
|
|
| 568 |
const providerElement = document.querySelector(`.provider[data-id="${providerId}"]`);
|
| 569 |
if (providerElement) providerElement.style.display = 'block';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 570 |
renderSelectedProviders();
|
| 571 |
});
|
| 572 |
});
|
| 573 |
};
|
| 574 |
+
const fetchProviders = async () => {
|
|
|
|
| 575 |
try {
|
| 576 |
+
const response = await fetch('/providers');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 577 |
if (!response.ok) {
|
| 578 |
throw new Error('Failed to fetch providers');
|
| 579 |
}
|
|
|
|
| 580 |
const providers = await response.json();
|
| 581 |
+
providersMap = providers.reduce((map, provider) => {
|
| 582 |
+
map[provider.id] = provider;
|
| 583 |
+
return map;
|
| 584 |
+
}, {});
|
| 585 |
return providers;
|
| 586 |
} catch (error) {
|
| 587 |
console.error('Error fetching providers:', error);
|
|
|
|
| 588 |
return [];
|
| 589 |
}
|
| 590 |
};
|
| 591 |
+
const renderProviders = async () => {
|
| 592 |
+
const providers = await fetchProviders();
|
| 593 |
+
providers.sort((a, b) => a.display_name.localeCompare(b.display_name));
|
| 594 |
+
providersContainer.innerHTML = providers.map(provider => `
|
| 595 |
+
<div class="provider" data-id="${provider.id}">
|
| 596 |
+
<img src="https://image.tmdb.org/t/p/w500/${provider.logo_path}" alt="${provider.display_name}" title="${provider.display_name}" />
|
| 597 |
+
</div>`).join('');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 598 |
|
| 599 |
document.querySelectorAll('.provider').forEach(provider => {
|
| 600 |
provider.addEventListener('click', () => {
|
|
|
|
| 610 |
});
|
| 611 |
});
|
| 612 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 613 |
const showInfoModal = () => {
|
| 614 |
infoModal.style.display = 'block';
|
| 615 |
};
|
|
|
|
| 618 |
};
|
| 619 |
infoIcon.addEventListener('click', showInfoModal);
|
| 620 |
modalClose.addEventListener('click', hideInfoModal);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 621 |
const getStremioLink = () => {
|
| 622 |
const config = Object.fromEntries(new FormData(mainForm));
|
| 623 |
config.providers = selectedProviders;
|
| 624 |
config.ageRange = document.getElementById('ageRange').value;
|
| 625 |
+
return "stremio://" + window.location.host + "/" + encodeURIComponent(JSON.stringify(config)) + "/manifest.json";
|
| 626 |
+
};
|
| 627 |
+
const getHttpsLink = () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 628 |
const config = Object.fromEntries(new FormData(mainForm));
|
| 629 |
config.providers = selectedProviders;
|
| 630 |
config.ageRange = document.getElementById('ageRange').value;
|
| 631 |
+
return "https://" + window.location.host + "/" + encodeURIComponent(JSON.stringify(config)) + "/manifest.json";
|
| 632 |
+
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 633 |
const showPopup = (message, type) => {
|
| 634 |
popup.textContent = message;
|
| 635 |
popup.className = `popup ${type}`;
|
| 636 |
popup.style.display = 'block';
|
| 637 |
setTimeout(() => {
|
| 638 |
popup.style.display = 'none';
|
| 639 |
+
}, 3000);
|
| 640 |
};
|
|
|
|
| 641 |
const validateForm = () => {
|
| 642 |
+
const language = document.getElementById('language').value.trim();
|
| 643 |
+
const ageRange = document.getElementById('ageRange').value.trim();
|
| 644 |
+
return language && ageRange && selectedProviders.length > 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 645 |
};
|
|
|
|
| 646 |
copyButton.onclick = () => {
|
| 647 |
if (!validateForm()) {
|
| 648 |
+
showPopup('Configuration incomplete: Please select a Language, an Age Range and choose at least one provider.', 'error');
|
| 649 |
return;
|
| 650 |
}
|
| 651 |
const link = getHttpsLink();
|
|
|
|
| 656 |
showPopup('Failed to copy the link.', 'error');
|
| 657 |
});
|
| 658 |
};
|
|
|
|
| 659 |
installButton.onclick = () => {
|
| 660 |
if (!validateForm()) {
|
| 661 |
+
showPopup('Configuration incomplete: Please select a Language, an Age Range and choose at least one provider.', 'error');
|
| 662 |
return;
|
| 663 |
}
|
| 664 |
const link = getStremioLink();
|
| 665 |
window.location.href = link;
|
| 666 |
};
|
| 667 |
+
renderProviders();
|
| 668 |
document.getElementById('theme-toggle').addEventListener('click', () => {
|
| 669 |
document.body.classList.toggle('dark-mode');
|
| 670 |
const isDarkMode = document.body.classList.contains('dark-mode');
|
| 671 |
document.getElementById('theme-toggle').textContent = isDarkMode ? '🌞' : '🌙';
|
| 672 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 673 |
document.getElementById('searchProviders').addEventListener('input', function(event) {
|
| 674 |
+
const searchTerm = event.target.value.toLowerCase();
|
| 675 |
+
document.querySelectorAll('#providers .provider').forEach(provider => {
|
| 676 |
+
const providerName = providersMap[provider.getAttribute('data-id')].display_name.toLowerCase();
|
| 677 |
+
provider.style.display = providerName.includes(searchTerm) ? 'flex' : 'none';
|
| 678 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 679 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 680 |
});
|
| 681 |
+
</script>
|
| 682 |
</body>
|
| 683 |
</html>
|
src/cache.js
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const { catalogDb } = require('./db');
|
| 2 |
+
const log = require('./utils/logger');
|
| 3 |
+
const fs = require('fs');
|
| 4 |
+
const path = require('path');
|
| 5 |
+
const axios = require('axios');
|
| 6 |
+
const { CACHE_CATALOG_CONTENT_DURATION_DAYS, CACHE_POSTER_CONTENT_DURATION_DAYS } = process.env;
|
| 7 |
+
const baseUrl = process.env.BASE_URL || 'http://localhost:7000';
|
| 8 |
+
|
| 9 |
+
const defaultCacheDurationDays = 3;
|
| 10 |
+
const cacheCatalogDurationDays = parseInt(CACHE_CATALOG_CONTENT_DURATION_DAYS, 10) || defaultCacheDurationDays;
|
| 11 |
+
const cacheCatalogDurationMillis = cacheCatalogDurationDays * 24 * 60 * 60 * 1000;
|
| 12 |
+
|
| 13 |
+
const posterCacheDurationDays = parseInt(CACHE_POSTER_CONTENT_DURATION_DAYS, 10) || defaultCacheDurationDays;
|
| 14 |
+
const posterCacheDurationMillis = posterCacheDurationDays * 24 * 60 * 60 * 1000;
|
| 15 |
+
|
| 16 |
+
log.debug(`Cache duration for catalog: ${cacheCatalogDurationMillis} milliseconds (${cacheCatalogDurationDays} days)`);
|
| 17 |
+
log.debug(`Cache duration for posters: ${posterCacheDurationMillis} milliseconds (${posterCacheDurationDays} days)`);
|
| 18 |
+
|
| 19 |
+
const getCache = (key) => {
|
| 20 |
+
return new Promise((resolve, reject) => {
|
| 21 |
+
catalogDb.get("SELECT value, expiration FROM cache WHERE key = ?", [key], (err, row) => {
|
| 22 |
+
if (err) {
|
| 23 |
+
log.error(`Error fetching cache for key ${key}:`, err);
|
| 24 |
+
return reject(err);
|
| 25 |
+
}
|
| 26 |
+
if (row && row.expiration > Date.now()) {
|
| 27 |
+
log.info(`Cache hit for key ${key}`);
|
| 28 |
+
resolve(JSON.parse(row.value));
|
| 29 |
+
} else {
|
| 30 |
+
log.info(`Cache miss for key ${key}`);
|
| 31 |
+
resolve(null);
|
| 32 |
+
}
|
| 33 |
+
});
|
| 34 |
+
});
|
| 35 |
+
};
|
| 36 |
+
|
| 37 |
+
const setCache = (key, value, page = 1, skip = 0, providerId = null, type = null, sortBy = null, ageRange = null) => {
|
| 38 |
+
const expiration = Date.now() + cacheCatalogDurationMillis;
|
| 39 |
+
log.debug(`Setting cache with expiration: ${new Date(expiration).toUTCString()}`);
|
| 40 |
+
|
| 41 |
+
catalogDb.run(`
|
| 42 |
+
INSERT OR REPLACE INTO cache (key, value, expiration, page, skip, provider_id, type, sortBy, ageRange)
|
| 43 |
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`,
|
| 44 |
+
[key, JSON.stringify(value), expiration, page, skip, providerId, type, sortBy, ageRange],
|
| 45 |
+
(err) => {
|
| 46 |
+
if (err) {
|
| 47 |
+
log.error('Error setting cache:', err);
|
| 48 |
+
} else {
|
| 49 |
+
log.debug(`Cache set with page: ${page}, skip: ${skip}, providerId: ${providerId}, type: ${type}, sortBy: ${sortBy}, ageRange: ${ageRange}`);
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
);
|
| 53 |
+
};
|
| 54 |
+
|
| 55 |
+
const posterDirectory = path.join(__dirname, '../db/rpdbPosters');
|
| 56 |
+
|
| 57 |
+
if (!fs.existsSync(posterDirectory)) {
|
| 58 |
+
fs.mkdirSync(posterDirectory, { recursive: true });
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
const formatFileName = (posterId) => {
|
| 62 |
+
return posterId.replace(/[^a-zA-Z0-9-_]/g, '_');
|
| 63 |
+
};
|
| 64 |
+
|
| 65 |
+
const getCachedPoster = async (posterId) => {
|
| 66 |
+
const formattedPosterId = formatFileName(posterId);
|
| 67 |
+
const filePath = path.join(posterDirectory, `${formattedPosterId}.jpg`);
|
| 68 |
+
const fileStats = fs.existsSync(filePath) ? fs.statSync(filePath) : null;
|
| 69 |
+
|
| 70 |
+
if (fileStats && (Date.now() - fileStats.mtimeMs < posterCacheDurationMillis)) {
|
| 71 |
+
const posterUrl = `${baseUrl}/poster/${formattedPosterId}.jpg`;
|
| 72 |
+
log.debug(`Cache hit for poster id ${posterId}, serving from ${posterUrl}`);
|
| 73 |
+
return { poster_url: posterUrl };
|
| 74 |
+
} else {
|
| 75 |
+
log.debug(`Cache miss or expired for poster id ${posterId}`);
|
| 76 |
+
return null;
|
| 77 |
+
}
|
| 78 |
+
};
|
| 79 |
+
|
| 80 |
+
const setCachedPoster = async (posterId, posterUrl) => {
|
| 81 |
+
const formattedPosterId = formatFileName(posterId);
|
| 82 |
+
const filePath = path.join(posterDirectory, `${formattedPosterId}.jpg`);
|
| 83 |
+
|
| 84 |
+
try {
|
| 85 |
+
const response = await axios.get(posterUrl, { responseType: 'arraybuffer' });
|
| 86 |
+
fs.writeFileSync(filePath, response.data);
|
| 87 |
+
log.debug(`Poster id ${posterId} cached at ${filePath}`);
|
| 88 |
+
} catch (error) {
|
| 89 |
+
log.error(`Error caching poster id ${posterId} from URL ${posterUrl}: ${error.message}`);
|
| 90 |
+
throw error;
|
| 91 |
+
}
|
| 92 |
+
};
|
| 93 |
+
|
| 94 |
+
const cleanUpCache = () => {
|
| 95 |
+
catalogDb.run("DELETE FROM cache WHERE expiration <= ?", [Date.now()], (err) => {
|
| 96 |
+
if (err) {
|
| 97 |
+
log.error('Failed to clean up cache:', err);
|
| 98 |
+
} else {
|
| 99 |
+
log.info('Cache cleanup completed successfully.');
|
| 100 |
+
}
|
| 101 |
+
});
|
| 102 |
+
};
|
| 103 |
+
|
| 104 |
+
setInterval(cleanUpCache, 24 * 60 * 60 * 1000);
|
| 105 |
+
|
| 106 |
+
module.exports = {
|
| 107 |
+
getCache,
|
| 108 |
+
setCache,
|
| 109 |
+
cleanUpCache,
|
| 110 |
+
getCachedPoster,
|
| 111 |
+
setCachedPoster
|
| 112 |
+
};
|
src/db.js
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const fs = require('fs');
|
| 2 |
+
const path = require('path');
|
| 3 |
+
const sqlite3 = require('sqlite3').verbose();
|
| 4 |
+
const log = require('./utils/logger');
|
| 5 |
+
|
| 6 |
+
const dbDir = path.join(__dirname, '../db');
|
| 7 |
+
|
| 8 |
+
if (!fs.existsSync(dbDir)) {
|
| 9 |
+
fs.mkdirSync(dbDir, { recursive: true });
|
| 10 |
+
log.debug('Created db directory');
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
const providersDb = new sqlite3.Database(path.join(dbDir, 'providers.db'), (err) => {
|
| 14 |
+
if (err) {
|
| 15 |
+
log.error('Failed to connect to providers.db:', err);
|
| 16 |
+
} else {
|
| 17 |
+
log.debug('Connected to providers.db successfully');
|
| 18 |
+
}
|
| 19 |
+
});
|
| 20 |
+
|
| 21 |
+
const catalogDb = new sqlite3.Database(path.join(dbDir, 'catalog.db'), (err) => {
|
| 22 |
+
if (err) {
|
| 23 |
+
log.error('Failed to connect to catalog.db:', err);
|
| 24 |
+
} else {
|
| 25 |
+
log.debug('Connected to catalog.db successfully');
|
| 26 |
+
}
|
| 27 |
+
});
|
| 28 |
+
|
| 29 |
+
const genresDb = new sqlite3.Database(path.join(dbDir, 'genres.db'), (err) => {
|
| 30 |
+
if (err) {
|
| 31 |
+
log.error('Failed to connect to genres.db:', err);
|
| 32 |
+
} else {
|
| 33 |
+
log.debug('Connected to genres.db successfully');
|
| 34 |
+
}
|
| 35 |
+
});
|
| 36 |
+
|
| 37 |
+
providersDb.serialize(() => {
|
| 38 |
+
providersDb.run(`CREATE TABLE IF NOT EXISTS providers (
|
| 39 |
+
provider_id INTEGER PRIMARY KEY,
|
| 40 |
+
provider_name TEXT,
|
| 41 |
+
logo_path TEXT
|
| 42 |
+
)`, (err) => {
|
| 43 |
+
if (err) {
|
| 44 |
+
log.error('Error creating providers table:', err);
|
| 45 |
+
} else {
|
| 46 |
+
log.debug('Providers table created or already exists');
|
| 47 |
+
}
|
| 48 |
+
});
|
| 49 |
+
});
|
| 50 |
+
|
| 51 |
+
catalogDb.serialize(() => {
|
| 52 |
+
catalogDb.run(`CREATE TABLE IF NOT EXISTS cache (
|
| 53 |
+
key TEXT PRIMARY KEY,
|
| 54 |
+
value TEXT,
|
| 55 |
+
expiration INTEGER,
|
| 56 |
+
page INTEGER DEFAULT 1,
|
| 57 |
+
skip INTEGER DEFAULT 0,
|
| 58 |
+
provider_id INTEGER,
|
| 59 |
+
type TEXT,
|
| 60 |
+
sortBy TEXT,
|
| 61 |
+
ageRange TEXT
|
| 62 |
+
)`, (err) => {
|
| 63 |
+
if (err) {
|
| 64 |
+
log.error('Error creating cache table:', err);
|
| 65 |
+
} else {
|
| 66 |
+
log.debug('Cache table created or already exists with type, sortBy, and ageRange columns');
|
| 67 |
+
}
|
| 68 |
+
});
|
| 69 |
+
});
|
| 70 |
+
|
| 71 |
+
genresDb.serialize(() => {
|
| 72 |
+
genresDb.run(`CREATE TABLE IF NOT EXISTS genres (
|
| 73 |
+
genre_id INTEGER PRIMARY KEY,
|
| 74 |
+
genre_name TEXT,
|
| 75 |
+
media_type TEXT
|
| 76 |
+
)`, (err) => {
|
| 77 |
+
if (err) {
|
| 78 |
+
log.error('Error creating genres table:', err);
|
| 79 |
+
} else {
|
| 80 |
+
log.debug('Genres table created or already exists');
|
| 81 |
+
}
|
| 82 |
+
});
|
| 83 |
+
});
|
| 84 |
+
|
| 85 |
+
module.exports = {
|
| 86 |
+
providersDb,
|
| 87 |
+
catalogDb,
|
| 88 |
+
genresDb
|
| 89 |
+
};
|
src/routes.js
ADDED
|
@@ -0,0 +1,363 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const express = require('express');
|
| 2 |
+
const path = require('path');
|
| 3 |
+
const fs = require('fs');
|
| 4 |
+
const log = require('./utils/logger');
|
| 5 |
+
const { requestLogger, errorHandler } = require('./utils/middleware');
|
| 6 |
+
const { providersDb, genresDb } = require('./db');
|
| 7 |
+
const { discoverContent, getGenres } = require('./tmdb');
|
| 8 |
+
const { getCachedPoster, setCachedPoster } = require('./cache');
|
| 9 |
+
const { TMDB_LANGUAGE } = process.env;
|
| 10 |
+
const axios = require('axios');
|
| 11 |
+
|
| 12 |
+
const router = express.Router();
|
| 13 |
+
|
| 14 |
+
router.use(requestLogger);
|
| 15 |
+
|
| 16 |
+
router.get('/poster/:filename', (req, res) => {
|
| 17 |
+
const filePath = path.join(__dirname, '../db/rpdbPosters', req.params.filename);
|
| 18 |
+
|
| 19 |
+
fs.access(filePath, fs.constants.F_OK, (err) => {
|
| 20 |
+
if (err) {
|
| 21 |
+
log.error(`Poster not found: ${filePath}`);
|
| 22 |
+
res.status(404).send('Poster not found');
|
| 23 |
+
} else {
|
| 24 |
+
res.sendFile(filePath);
|
| 25 |
+
}
|
| 26 |
+
});
|
| 27 |
+
});
|
| 28 |
+
|
| 29 |
+
router.get("/:configParameters?/catalog/:type/:id/:extra?.json", async (req, res, next) => {
|
| 30 |
+
const { id, configParameters, type, extra: extraParam } = req.params;
|
| 31 |
+
const extra = extraParam ? decodeURIComponent(extraParam) : '';
|
| 32 |
+
let ageRange = null;
|
| 33 |
+
let genre = null;
|
| 34 |
+
let tmdbApiKey = null;
|
| 35 |
+
let rpdbApiKey = null;
|
| 36 |
+
let language = TMDB_LANGUAGE;
|
| 37 |
+
let skip = 0;
|
| 38 |
+
|
| 39 |
+
log.debug(`Received parameters: id=${id}, type=${type}, configParameters=${configParameters}, extra=${extra}`);
|
| 40 |
+
|
| 41 |
+
if (configParameters) {
|
| 42 |
+
try {
|
| 43 |
+
const parsedConfig = JSON.parse(decodeURIComponent(configParameters));
|
| 44 |
+
ageRange = parsedConfig.ageRange || null;
|
| 45 |
+
tmdbApiKey = parsedConfig.tmdbApiKey || null;
|
| 46 |
+
rpdbApiKey = parsedConfig.rpdbApiKey || null;
|
| 47 |
+
language = parsedConfig.language || TMDB_LANGUAGE;
|
| 48 |
+
log.debug(`Config parameters extracted: ageRange=${ageRange}, tmdbApiKey=${tmdbApiKey}, rpdbApiKey=${rpdbApiKey}, language=${language}`);
|
| 49 |
+
} catch (error) {
|
| 50 |
+
log.error(`Error parsing configParameters: ${error.message}`);
|
| 51 |
+
}
|
| 52 |
+
} else {
|
| 53 |
+
log.warn('configParameters is missing');
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
const match = id.match(/^tmdb-discover-(movies|series)(-new)?-(\d+)$/);
|
| 57 |
+
if (!match) {
|
| 58 |
+
return res.status(400).json({ error: 'Invalid catalog id' });
|
| 59 |
+
}
|
| 60 |
+
const catalogType = match[1];
|
| 61 |
+
const providerId = parseInt(match[3], 10);
|
| 62 |
+
const providers = [providerId.toString()];
|
| 63 |
+
|
| 64 |
+
if (extra.startsWith('skip=')) {
|
| 65 |
+
const skipValue = parseInt(extra.split('=')[1], 10);
|
| 66 |
+
skip = isNaN(skipValue) ? 0 : skipValue;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
if (extra.includes('genre=')) {
|
| 70 |
+
const genreName = extra.split('genre=')[1];
|
| 71 |
+
log.debug(`Extracting genre: ${genreName}`);
|
| 72 |
+
const genreRow = await new Promise((resolve, reject) => {
|
| 73 |
+
genresDb.get("SELECT genre_id FROM genres WHERE genre_name = ? AND media_type = ?", [genreName, type === 'series' ? 'tv' : 'movie'], (err, row) => {
|
| 74 |
+
if (err) {
|
| 75 |
+
reject(err);
|
| 76 |
+
} else {
|
| 77 |
+
resolve(row);
|
| 78 |
+
}
|
| 79 |
+
});
|
| 80 |
+
});
|
| 81 |
+
if (genreRow) {
|
| 82 |
+
genre = genreRow.genre_id;
|
| 83 |
+
log.debug(`Genre ID extracted: ${genre}`);
|
| 84 |
+
} else {
|
| 85 |
+
log.warn(`Genre not found for name: ${genreName}`);
|
| 86 |
+
}
|
| 87 |
+
} else {
|
| 88 |
+
log.warn('Genre parameter is missing in extra');
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
try {
|
| 92 |
+
const sortBy = catalogType === 'movies'
|
| 93 |
+
? (id.includes('-new') ? 'primary_release_date.desc' : 'popularity.desc')
|
| 94 |
+
: (id.includes('-new') ? 'first_air_date.desc' : 'popularity.desc');
|
| 95 |
+
|
| 96 |
+
log.debug(`Calling discoverContent with parameters: type=${catalogType}, ageRange=${ageRange}, sortBy=${sortBy}, genre=${genre}, language=${language}, skip=${skip}`);
|
| 97 |
+
|
| 98 |
+
const discoverResults = await discoverContent(catalogType, providers, ageRange, sortBy, genre, tmdbApiKey, language, skip, type);
|
| 99 |
+
|
| 100 |
+
const getRpdbPoster = (type, id, language, rpdbkey) => {
|
| 101 |
+
const tier = rpdbkey.split("-")[0];
|
| 102 |
+
const lang = language.split("-")[0];
|
| 103 |
+
const baseUrl = `https://api.ratingposterdb.com/${rpdbkey}/tmdb/poster-default/${type}-${id}.jpg?fallback=true`;
|
| 104 |
+
return tier === "t1" || lang === "en"
|
| 105 |
+
? baseUrl
|
| 106 |
+
: `${baseUrl}&lang=${lang}`;
|
| 107 |
+
};
|
| 108 |
+
|
| 109 |
+
const getPosterUrl = async (content, rpdbApiKey) => {
|
| 110 |
+
const posterId = `poster:${content.id}`;
|
| 111 |
+
|
| 112 |
+
if (rpdbApiKey) {
|
| 113 |
+
const cachedPoster = await getCachedPoster(posterId);
|
| 114 |
+
if (cachedPoster) {
|
| 115 |
+
log.debug(`Using cached poster URL for id ${posterId}`);
|
| 116 |
+
return cachedPoster.poster_url;
|
| 117 |
+
}
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
let posterUrl;
|
| 121 |
+
|
| 122 |
+
if (rpdbApiKey) {
|
| 123 |
+
const rpdbImage = getRpdbPoster(catalogType, content.id, language, rpdbApiKey);
|
| 124 |
+
try {
|
| 125 |
+
log.debug(`Fetching RPDB poster URL: ${rpdbImage}`);
|
| 126 |
+
await axios.get(rpdbImage);
|
| 127 |
+
posterUrl = rpdbImage;
|
| 128 |
+
} catch (error) {
|
| 129 |
+
log.warn('Error fetching RPDB poster, falling back to TMDB poster.');
|
| 130 |
+
posterUrl = `https://image.tmdb.org/t/p/w500${content.poster_path}`;
|
| 131 |
+
}
|
| 132 |
+
} else {
|
| 133 |
+
posterUrl = `https://image.tmdb.org/t/p/w500${content.poster_path}`;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
return posterUrl;
|
| 137 |
+
};
|
| 138 |
+
|
| 139 |
+
const filteredResults = discoverResults.results.filter(content => content.poster_path);
|
| 140 |
+
|
| 141 |
+
const metas = await Promise.all(filteredResults.map(async (content) => ({
|
| 142 |
+
id: `tmdb:${content.id}`,
|
| 143 |
+
type: catalogType === 'movies' ? 'movie' : 'series',
|
| 144 |
+
name: catalogType === 'movies' ? content.title : content.name,
|
| 145 |
+
poster: await getPosterUrl(content, rpdbApiKey),
|
| 146 |
+
background: `https://image.tmdb.org/t/p/w1280${content.backdrop_path}`,
|
| 147 |
+
description: content.overview,
|
| 148 |
+
year: catalogType === 'movies' ? content.release_date?.split('-')[0] : content.first_air_date?.split('-')[0],
|
| 149 |
+
imdbRating: content.vote_average ? content.vote_average.toFixed(1) : null,
|
| 150 |
+
})));
|
| 151 |
+
|
| 152 |
+
res.json({ metas });
|
| 153 |
+
|
| 154 |
+
filteredResults.forEach(async (content) => {
|
| 155 |
+
const posterId = `poster:${content.id}`;
|
| 156 |
+
const posterUrl = await getPosterUrl(content, rpdbApiKey);
|
| 157 |
+
if (rpdbApiKey && posterUrl !== `https://image.tmdb.org/t/p/w500${content.poster_path}`) {
|
| 158 |
+
setCachedPoster(posterId, posterUrl).catch(err => log.error(`Error caching poster: ${err.message}`));
|
| 159 |
+
}
|
| 160 |
+
});
|
| 161 |
+
|
| 162 |
+
} catch (error) {
|
| 163 |
+
log.error(`Error processing request: ${error.message}`);
|
| 164 |
+
if (!res.headersSent) {
|
| 165 |
+
res.status(500).json({ error: 'Internal Server Error' });
|
| 166 |
+
}
|
| 167 |
+
}
|
| 168 |
+
});
|
| 169 |
+
|
| 170 |
+
router.get('/providers', (req, res) => {
|
| 171 |
+
log.info('Route /providers: Fetching providers from the database');
|
| 172 |
+
|
| 173 |
+
providersDb.all('SELECT provider_id AS id, provider_name AS display_name, logo_path FROM providers', [], (err, rows) => {
|
| 174 |
+
if (err) {
|
| 175 |
+
log.error('Error querying database:', err);
|
| 176 |
+
return res.status(500).json({ error: 'Error querying database' });
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
res.json(rows);
|
| 180 |
+
});
|
| 181 |
+
});
|
| 182 |
+
|
| 183 |
+
router.get("/", (req, res) => {
|
| 184 |
+
log.info('Route /: Redirecting to /configure');
|
| 185 |
+
res.redirect("/configure");
|
| 186 |
+
});
|
| 187 |
+
|
| 188 |
+
router.get("/:configParameters?/configure", (req, res) => {
|
| 189 |
+
log.info('Route /:configParameters?/configure: Sending configure.html page');
|
| 190 |
+
res.sendFile(path.join(__dirname, '../public/configure.html'));
|
| 191 |
+
});
|
| 192 |
+
|
| 193 |
+
const getProvider = (providerId) => {
|
| 194 |
+
return new Promise((resolve, reject) => {
|
| 195 |
+
providersDb.get("SELECT * FROM providers WHERE provider_id = ?", [providerId], (err, row) => {
|
| 196 |
+
if (err) {
|
| 197 |
+
reject(err);
|
| 198 |
+
} else if (row) {
|
| 199 |
+
resolve(row);
|
| 200 |
+
} else {
|
| 201 |
+
resolve(null);
|
| 202 |
+
}
|
| 203 |
+
});
|
| 204 |
+
});
|
| 205 |
+
};
|
| 206 |
+
|
| 207 |
+
const manifestTemplate = {
|
| 208 |
+
id: 'community.tmdb-addon',
|
| 209 |
+
version: '1.0.0',
|
| 210 |
+
name: 'TMDB Collection Addon',
|
| 211 |
+
description: 'Addon that provides collections from TMDB.',
|
| 212 |
+
resources: ['catalog'],
|
| 213 |
+
types: ['movie', 'series'],
|
| 214 |
+
idPrefixes: ['tt'],
|
| 215 |
+
catalogs: [],
|
| 216 |
+
behaviorHints: {
|
| 217 |
+
configurable: true,
|
| 218 |
+
configurationRequired: false,
|
| 219 |
+
},
|
| 220 |
+
config: [
|
| 221 |
+
{
|
| 222 |
+
key: 'tmdbApiKey',
|
| 223 |
+
type: 'text',
|
| 224 |
+
title: 'TMDB API Key (<a href="https://www.themoviedb.org/settings/api" target="_blank">Get it here</a>)',
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
key: 'language',
|
| 228 |
+
type: 'text',
|
| 229 |
+
title: 'Language (<a href="https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes" target="_blank">ISO 639-1 codes</a>)',
|
| 230 |
+
required: true,
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
key: "providers",
|
| 234 |
+
type: "text",
|
| 235 |
+
title: "Providers list",
|
| 236 |
+
required: true,
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
key: "ageRange",
|
| 240 |
+
type: "select",
|
| 241 |
+
title: "Select Age Range",
|
| 242 |
+
options: [
|
| 243 |
+
{ value: "0-5", title: "0-5 years" },
|
| 244 |
+
{ value: "6-11", title: "6-11 years" },
|
| 245 |
+
{ value: "12-15", title: "12-15 years" },
|
| 246 |
+
{ value: "16-17", title: "16-17 years" },
|
| 247 |
+
{ value: "18+", title: "18+ years (Adults)" },
|
| 248 |
+
],
|
| 249 |
+
required: true,
|
| 250 |
+
}
|
| 251 |
+
]
|
| 252 |
+
};
|
| 253 |
+
|
| 254 |
+
router.get("/:configParameters?/manifest.json", async (req, res, next) => {
|
| 255 |
+
const { configParameters } = req.params;
|
| 256 |
+
let config = { ...req.query };
|
| 257 |
+
|
| 258 |
+
if (configParameters) {
|
| 259 |
+
try {
|
| 260 |
+
const decodedConfig = JSON.parse(decodeURIComponent(configParameters));
|
| 261 |
+
config = { ...config, ...decodedConfig };
|
| 262 |
+
} catch (error) {
|
| 263 |
+
log.error(`Failed to decode configParameters: ${error.message}`, error);
|
| 264 |
+
return res.status(400).json({ error: 'Invalid config parameters' });
|
| 265 |
+
}
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
const providers = Array.isArray(config.providers) ? config.providers : [];
|
| 269 |
+
|
| 270 |
+
if (!providers.length) {
|
| 271 |
+
log.error('No providers specified.');
|
| 272 |
+
return res.status(400).json({ error: 'No providers specified' });
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
+
try {
|
| 276 |
+
const providerInfo = await Promise.all(providers.map(providerId => getProvider(providerId)));
|
| 277 |
+
|
| 278 |
+
const [movieGenres, seriesGenres] = await Promise.all([
|
| 279 |
+
getGenres('movie'),
|
| 280 |
+
getGenres('series')
|
| 281 |
+
]);
|
| 282 |
+
|
| 283 |
+
const genreOptions = (genres) => genres.map(genre => genre.name);
|
| 284 |
+
|
| 285 |
+
const isKidsMode = config.ageRange && config.ageRange !== '18+';
|
| 286 |
+
|
| 287 |
+
const catalogs = providerInfo.flatMap(provider => {
|
| 288 |
+
if (!provider) {
|
| 289 |
+
log.warn(`Provider with ID not found`);
|
| 290 |
+
return [];
|
| 291 |
+
}
|
| 292 |
+
|
| 293 |
+
const popularMovieCatalog = {
|
| 294 |
+
type: 'movie',
|
| 295 |
+
id: `tmdb-discover-movies-${provider.provider_id}`,
|
| 296 |
+
name: `Popular Movies - ${provider.provider_name}`,
|
| 297 |
+
extra: [
|
| 298 |
+
{ name: 'genre', isRequired: false, options: genreOptions(movieGenres) },
|
| 299 |
+
{ name: 'skip', isRequired: false },
|
| 300 |
+
]
|
| 301 |
+
};
|
| 302 |
+
|
| 303 |
+
const newMovieCatalog = {
|
| 304 |
+
type: 'movie',
|
| 305 |
+
id: `tmdb-discover-movies-new-${provider.provider_id}`,
|
| 306 |
+
name: `New Movies - ${provider.provider_name}`,
|
| 307 |
+
extra: [
|
| 308 |
+
{ name: 'genre', isRequired: false, options: genreOptions(movieGenres) },
|
| 309 |
+
{ name: 'skip', isRequired: false },
|
| 310 |
+
]
|
| 311 |
+
};
|
| 312 |
+
|
| 313 |
+
const popularSeriesCatalog = {
|
| 314 |
+
type: 'series',
|
| 315 |
+
id: `tmdb-discover-series-${provider.provider_id}`,
|
| 316 |
+
name: `Popular Series - ${provider.provider_name}`,
|
| 317 |
+
extra: [
|
| 318 |
+
{ name: 'genre', isRequired: false, options: genreOptions(seriesGenres) },
|
| 319 |
+
{ name: 'skip', isRequired: false },
|
| 320 |
+
]
|
| 321 |
+
};
|
| 322 |
+
|
| 323 |
+
const newSeriesCatalog = {
|
| 324 |
+
type: 'series',
|
| 325 |
+
id: `tmdb-discover-series-new-${provider.provider_id}`,
|
| 326 |
+
name: `New Series - ${provider.provider_name}`,
|
| 327 |
+
extra: [
|
| 328 |
+
{ name: 'genre', isRequired: false, options: genreOptions(seriesGenres) },
|
| 329 |
+
{ name: 'skip', isRequired: false },
|
| 330 |
+
]
|
| 331 |
+
};
|
| 332 |
+
|
| 333 |
+
if (isKidsMode) {
|
| 334 |
+
popularMovieCatalog.extra.push({ name: 'ageRange', value: config.ageRange });
|
| 335 |
+
newMovieCatalog.extra.push({ name: 'ageRange', value: config.ageRange });
|
| 336 |
+
popularSeriesCatalog.extra.push({ name: 'ageRange', value: config.ageRange });
|
| 337 |
+
newSeriesCatalog.extra.push({ name: 'ageRange', value: config.ageRange });
|
| 338 |
+
} else {
|
| 339 |
+
popularMovieCatalog.extra.push({ name: 'ageRange', value: '18+' });
|
| 340 |
+
newMovieCatalog.extra.push({ name: 'ageRange', value: '18+' });
|
| 341 |
+
popularSeriesCatalog.extra.push({ name: 'ageRange', value: '18+' });
|
| 342 |
+
newSeriesCatalog.extra.push({ name: 'ageRange', value: '18+' });
|
| 343 |
+
}
|
| 344 |
+
|
| 345 |
+
return [popularMovieCatalog, newMovieCatalog, popularSeriesCatalog, newSeriesCatalog];
|
| 346 |
+
});
|
| 347 |
+
|
| 348 |
+
const manifest = {
|
| 349 |
+
...manifestTemplate,
|
| 350 |
+
catalogs: catalogs
|
| 351 |
+
};
|
| 352 |
+
|
| 353 |
+
log.info('Route /manifest.json: Sending manifest');
|
| 354 |
+
res.json(manifest);
|
| 355 |
+
} catch (error) {
|
| 356 |
+
log.error(`Error generating manifest: ${error.message}`, error);
|
| 357 |
+
res.status(500).json({ error: 'Internal Server Error' });
|
| 358 |
+
}
|
| 359 |
+
});
|
| 360 |
+
|
| 361 |
+
router.use(errorHandler);
|
| 362 |
+
|
| 363 |
+
module.exports = router;
|
src/tmdb.js
ADDED
|
@@ -0,0 +1,343 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const axios = require('axios');
|
| 2 |
+
const queue = require('./utils/queue');
|
| 3 |
+
const { providersDb, genresDb, catalogDb } = require('./db');
|
| 4 |
+
const { TMDB_BEARER_TOKEN, TMDB_LANGUAGE, TMDB_WATCH_REGION } = process.env;
|
| 5 |
+
const { getCache, setCache } = require('./cache');
|
| 6 |
+
const log = require('./utils/logger');
|
| 7 |
+
|
| 8 |
+
const TMDB_BASE_URL = 'https://api.themoviedb.org/3';
|
| 9 |
+
|
| 10 |
+
const makeRequest = (url, tmdbApiKey = null) => {
|
| 11 |
+
const headers = {};
|
| 12 |
+
|
| 13 |
+
if (!tmdbApiKey) {
|
| 14 |
+
headers['Authorization'] = `Bearer ${TMDB_BEARER_TOKEN}`;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
return new Promise((resolve, reject) => {
|
| 18 |
+
queue.push({
|
| 19 |
+
fn: () => axios.get(url, { headers })
|
| 20 |
+
.then(response => {
|
| 21 |
+
log.debug(`API request successful for URL: ${url}`);
|
| 22 |
+
resolve(response.data);
|
| 23 |
+
})
|
| 24 |
+
.catch(error => {
|
| 25 |
+
log.error(`Error during API request for URL: ${url} - ${error.message}`);
|
| 26 |
+
reject(error);
|
| 27 |
+
})
|
| 28 |
+
});
|
| 29 |
+
});
|
| 30 |
+
};
|
| 31 |
+
|
| 32 |
+
const determinePageFromSkip = async (providerId, skip, catalogDb, type, sortBy, ageRange) => {
|
| 33 |
+
try {
|
| 34 |
+
const cachedEntry = await new Promise((resolve, reject) => {
|
| 35 |
+
catalogDb.get(
|
| 36 |
+
"SELECT page, skip FROM cache WHERE provider_id = ? AND skip = ? AND type = ? AND sortBy = ? AND ageRange = ? ORDER BY skip DESC LIMIT 1",
|
| 37 |
+
[providerId, skip, type, sortBy, ageRange],
|
| 38 |
+
(err, row) => {
|
| 39 |
+
if (err) {
|
| 40 |
+
reject(err);
|
| 41 |
+
} else {
|
| 42 |
+
resolve(row);
|
| 43 |
+
}
|
| 44 |
+
}
|
| 45 |
+
);
|
| 46 |
+
});
|
| 47 |
+
|
| 48 |
+
if (cachedEntry) {
|
| 49 |
+
log.debug('Cached Entry:', cachedEntry);
|
| 50 |
+
log.debug('Determined Page from Cache:', cachedEntry.page);
|
| 51 |
+
return cachedEntry.page;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
const lastEntry = await new Promise((resolve, reject) => {
|
| 55 |
+
catalogDb.get(
|
| 56 |
+
"SELECT page, skip FROM cache WHERE provider_id = ? AND type = ? AND sortBy = ? AND ageRange = ? ORDER BY skip DESC LIMIT 1",
|
| 57 |
+
[providerId, type, sortBy, ageRange],
|
| 58 |
+
(err, row) => {
|
| 59 |
+
if (err) {
|
| 60 |
+
reject(err);
|
| 61 |
+
} else {
|
| 62 |
+
resolve(row);
|
| 63 |
+
}
|
| 64 |
+
}
|
| 65 |
+
);
|
| 66 |
+
});
|
| 67 |
+
|
| 68 |
+
log.debug('Last Entry:', lastEntry);
|
| 69 |
+
|
| 70 |
+
if (lastEntry) {
|
| 71 |
+
log.debug('Current Skip:', skip, 'Last Skip:', lastEntry.skip);
|
| 72 |
+
|
| 73 |
+
if (skip > lastEntry.skip) {
|
| 74 |
+
log.debug('Determined Page:', lastEntry.page + 1);
|
| 75 |
+
return lastEntry.page + 1;
|
| 76 |
+
}
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
log.debug('Default Page:', 1);
|
| 80 |
+
return 1;
|
| 81 |
+
} catch (error) {
|
| 82 |
+
log.error('Error in determinePageFromSkip:', error);
|
| 83 |
+
return 1;
|
| 84 |
+
}
|
| 85 |
+
};
|
| 86 |
+
|
| 87 |
+
const fetchData = async (endpoint, params = {}, tmdbApiKey = null, providerId = null, ageRange = null) => {
|
| 88 |
+
if (tmdbApiKey) {
|
| 89 |
+
params.api_key = tmdbApiKey;
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
const { skip, type, sort_by: sortBy, ...queryParams } = params;
|
| 93 |
+
|
| 94 |
+
const page = providerId ? await determinePageFromSkip(providerId, skip, catalogDb, type, sortBy, ageRange) : 1;
|
| 95 |
+
|
| 96 |
+
const queryParamsWithPage = {
|
| 97 |
+
...queryParams,
|
| 98 |
+
page,
|
| 99 |
+
language: params.language || TMDB_LANGUAGE,
|
| 100 |
+
};
|
| 101 |
+
|
| 102 |
+
if (sortBy) {
|
| 103 |
+
queryParamsWithPage.sort_by = sortBy;
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
const queryString = new URLSearchParams(queryParamsWithPage).toString();
|
| 107 |
+
|
| 108 |
+
const url = `${TMDB_BASE_URL}${endpoint}?${queryString}`;
|
| 109 |
+
|
| 110 |
+
log.debug('Request URL:', url);
|
| 111 |
+
|
| 112 |
+
const cachedData = await getCache(url, skip);
|
| 113 |
+
if (cachedData) {
|
| 114 |
+
return cachedData;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
const data = await makeRequest(url, tmdbApiKey);
|
| 118 |
+
|
| 119 |
+
setCache(url, data, page, skip, providerId, type, sortBy, ageRange);
|
| 120 |
+
log.debug(`Data stored in cache for URL: ${url} with page: ${page}, skip: ${skip}, providerId: ${providerId}, type: ${type}, sortBy: ${sortBy}, ageRange: ${ageRange}`);
|
| 121 |
+
|
| 122 |
+
return data;
|
| 123 |
+
};
|
| 124 |
+
|
| 125 |
+
const discoverContent = async (type, watchProviders = [], ageRange = null, sortBy = 'popularity.desc', genre = null, tmdbApiKey = null, language = TMDB_LANGUAGE, skip = 0) => {
|
| 126 |
+
const mediaType = type === 'series' ? 'tv' : 'movie';
|
| 127 |
+
const endpoint = `/discover/${mediaType}`;
|
| 128 |
+
|
| 129 |
+
const regions = TMDB_WATCH_REGION ? TMDB_WATCH_REGION.split(',') : [];
|
| 130 |
+
const providerId = watchProviders[0];
|
| 131 |
+
|
| 132 |
+
const params = {
|
| 133 |
+
with_watch_providers: watchProviders.join(','),
|
| 134 |
+
sort_by: sortBy,
|
| 135 |
+
language,
|
| 136 |
+
skip,
|
| 137 |
+
type
|
| 138 |
+
};
|
| 139 |
+
|
| 140 |
+
if (ageRange) {
|
| 141 |
+
switch(ageRange) {
|
| 142 |
+
case '0-5':
|
| 143 |
+
if (mediaType === 'movie') {
|
| 144 |
+
params.certification_country = 'US';
|
| 145 |
+
params.certification = 'G';
|
| 146 |
+
params.without_genres = '27,18,53,80,10752,37,10749,10768,10767,10766,10764,10763,9648,99,36';
|
| 147 |
+
}
|
| 148 |
+
if (mediaType === 'tv') {
|
| 149 |
+
params.with_genres = '10762'; // Kids only
|
| 150 |
+
}
|
| 151 |
+
break;
|
| 152 |
+
|
| 153 |
+
case '6-11':
|
| 154 |
+
if (mediaType === 'movie') {
|
| 155 |
+
params.certification_country = 'US';
|
| 156 |
+
params.certification = 'G';
|
| 157 |
+
params.without_genres = '27,18,53,80,10752,37,10749,10768,10767,10766,10764,10763,9648,99,36';
|
| 158 |
+
}
|
| 159 |
+
if (mediaType === 'tv') {
|
| 160 |
+
params.with_genres = '10762'; // Kids only
|
| 161 |
+
}
|
| 162 |
+
break;
|
| 163 |
+
|
| 164 |
+
case '12-15':
|
| 165 |
+
if (mediaType === 'movie') {
|
| 166 |
+
params.certification_country = 'US';
|
| 167 |
+
params.certification = 'PG';
|
| 168 |
+
}
|
| 169 |
+
if (mediaType === 'tv') {
|
| 170 |
+
params.with_genres = '16'; // Animation only
|
| 171 |
+
}
|
| 172 |
+
break;
|
| 173 |
+
|
| 174 |
+
case '16-17':
|
| 175 |
+
if (mediaType === 'movie') {
|
| 176 |
+
params.certification_country = 'US';
|
| 177 |
+
params.certification = 'PG-13';
|
| 178 |
+
}
|
| 179 |
+
break;
|
| 180 |
+
|
| 181 |
+
case '18+':
|
| 182 |
+
if (mediaType === 'movie') {
|
| 183 |
+
params.include_adult = true;
|
| 184 |
+
}
|
| 185 |
+
break;
|
| 186 |
+
|
| 187 |
+
default:
|
| 188 |
+
log.warn(`Unknown ageRange: ${ageRange}`);
|
| 189 |
+
break;
|
| 190 |
+
}
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
if (genre) {
|
| 194 |
+
params.with_genres = genre;
|
| 195 |
+
}
|
| 196 |
+
|
| 197 |
+
const fetchForRegion = async (region) => {
|
| 198 |
+
params.watch_region = region;
|
| 199 |
+
return await fetchData(endpoint, params, tmdbApiKey, providerId, ageRange);
|
| 200 |
+
};
|
| 201 |
+
|
| 202 |
+
const results = await Promise.all(regions.map(region => fetchForRegion(region)));
|
| 203 |
+
|
| 204 |
+
const combinedResults = results.reduce((acc, result) => acc.concat(result.results), []);
|
| 205 |
+
|
| 206 |
+
const uniqueResults = Array.from(new Map(combinedResults.map(item => [item.id, item])).values());
|
| 207 |
+
|
| 208 |
+
return {
|
| 209 |
+
...results[0],
|
| 210 |
+
results: uniqueResults
|
| 211 |
+
};
|
| 212 |
+
};
|
| 213 |
+
|
| 214 |
+
const mergeProviders = (providers) => {
|
| 215 |
+
const merged = {};
|
| 216 |
+
|
| 217 |
+
providers.forEach(provider => {
|
| 218 |
+
const { provider_id, provider_name, logo_path } = provider;
|
| 219 |
+
|
| 220 |
+
if (!merged[provider_name]) {
|
| 221 |
+
merged[provider_name] = { provider_id, logo_path };
|
| 222 |
+
}
|
| 223 |
+
});
|
| 224 |
+
|
| 225 |
+
return Object.entries(merged).map(([provider_name, details]) => ({
|
| 226 |
+
provider_id: details.provider_id,
|
| 227 |
+
provider_name,
|
| 228 |
+
logo_path: details.logo_path
|
| 229 |
+
}));
|
| 230 |
+
};
|
| 231 |
+
|
| 232 |
+
const updateProviders = async () => {
|
| 233 |
+
try {
|
| 234 |
+
const regions = TMDB_WATCH_REGION ? TMDB_WATCH_REGION.split(',') : [];
|
| 235 |
+
const movieEndpoint = `/watch/providers/movie`;
|
| 236 |
+
const tvEndpoint = `/watch/providers/tv`;
|
| 237 |
+
|
| 238 |
+
const fetchProvidersForRegion = async (region) => {
|
| 239 |
+
const params = { watch_region: region };
|
| 240 |
+
const [movieData, tvData] = await Promise.all([
|
| 241 |
+
fetchData(movieEndpoint, params),
|
| 242 |
+
fetchData(tvEndpoint, params)
|
| 243 |
+
]);
|
| 244 |
+
return [...movieData.results, ...tvData.results];
|
| 245 |
+
};
|
| 246 |
+
|
| 247 |
+
const results = await Promise.all(regions.map(region => fetchProvidersForRegion(region)));
|
| 248 |
+
const combinedProviders = mergeProviders(results.flat());
|
| 249 |
+
|
| 250 |
+
const insertOrUpdateProvider = providersDb.prepare(`
|
| 251 |
+
INSERT INTO providers (provider_id, provider_name, logo_path)
|
| 252 |
+
VALUES (?, ?, ?)
|
| 253 |
+
ON CONFLICT(provider_id) DO UPDATE SET
|
| 254 |
+
provider_name = excluded.provider_name,
|
| 255 |
+
logo_path = excluded.logo_path;
|
| 256 |
+
`);
|
| 257 |
+
|
| 258 |
+
combinedProviders.forEach(provider => {
|
| 259 |
+
insertOrUpdateProvider.run(provider.provider_id, provider.provider_name, provider.logo_path);
|
| 260 |
+
});
|
| 261 |
+
|
| 262 |
+
insertOrUpdateProvider.finalize();
|
| 263 |
+
log.info('Providers update completed.');
|
| 264 |
+
} catch (error) {
|
| 265 |
+
log.error(`Error during providers update: ${error.message}`);
|
| 266 |
+
}
|
| 267 |
+
};
|
| 268 |
+
|
| 269 |
+
const scheduleUpdates = () => {
|
| 270 |
+
log.info('Scheduling provider and genre updates every 72 hours.');
|
| 271 |
+
setInterval(async () => {
|
| 272 |
+
log.info('Starting provider update...');
|
| 273 |
+
await updateProviders();
|
| 274 |
+
|
| 275 |
+
log.info('Starting genre update...');
|
| 276 |
+
await updateGenres();
|
| 277 |
+
}, 3 * 24 * 60 * 60 * 1000);
|
| 278 |
+
};
|
| 279 |
+
|
| 280 |
+
const getGenres = async (type) => {
|
| 281 |
+
const mediaType = type === 'series' ? 'tv' : 'movie';
|
| 282 |
+
const endpoint = `/genre/${mediaType}/list`;
|
| 283 |
+
|
| 284 |
+
const data = await fetchData(endpoint);
|
| 285 |
+
log.debug(`Genres retrieved for type ${type}`);
|
| 286 |
+
return data.genres;
|
| 287 |
+
};
|
| 288 |
+
|
| 289 |
+
const updateGenres = async () => {
|
| 290 |
+
try {
|
| 291 |
+
const genresMap = new Map();
|
| 292 |
+
|
| 293 |
+
const movieGenres = await getGenres('movie');
|
| 294 |
+
const tvGenres = await getGenres('series');
|
| 295 |
+
|
| 296 |
+
movieGenres.concat(tvGenres).forEach(genre => {
|
| 297 |
+
if (genresMap.has(genre.name)) {
|
| 298 |
+
const existingGenre = genresMap.get(genre.name);
|
| 299 |
+
existingGenre.ids.push(genre.id);
|
| 300 |
+
} else {
|
| 301 |
+
genresMap.set(genre.name, {
|
| 302 |
+
name: genre.name,
|
| 303 |
+
ids: [genre.id],
|
| 304 |
+
mediaTypes: new Set([genre.media_type || (movieGenres.includes(genre) ? 'movie' : 'tv')])
|
| 305 |
+
});
|
| 306 |
+
}
|
| 307 |
+
});
|
| 308 |
+
|
| 309 |
+
const insertOrUpdateGenre = genresDb.prepare(`
|
| 310 |
+
INSERT INTO genres (genre_id, genre_name, media_type)
|
| 311 |
+
VALUES (?, ?, ?)
|
| 312 |
+
ON CONFLICT(genre_id) DO UPDATE SET
|
| 313 |
+
genre_name = excluded.genre_name,
|
| 314 |
+
media_type = excluded.media_type;
|
| 315 |
+
`);
|
| 316 |
+
|
| 317 |
+
genresMap.forEach((value) => {
|
| 318 |
+
const mediaTypes = Array.from(value.mediaTypes).join(',');
|
| 319 |
+
value.ids.forEach(id => {
|
| 320 |
+
insertOrUpdateGenre.run(id, value.name, mediaTypes);
|
| 321 |
+
});
|
| 322 |
+
});
|
| 323 |
+
|
| 324 |
+
insertOrUpdateGenre.finalize();
|
| 325 |
+
|
| 326 |
+
log.info('Genres update completed.');
|
| 327 |
+
} catch (error) {
|
| 328 |
+
log.error(`Error during genres update: ${error.message}`);
|
| 329 |
+
}
|
| 330 |
+
};
|
| 331 |
+
|
| 332 |
+
(async () => {
|
| 333 |
+
try {
|
| 334 |
+
log.info('Initializing provider and genre updates.');
|
| 335 |
+
await updateProviders();
|
| 336 |
+
await updateGenres();
|
| 337 |
+
scheduleUpdates();
|
| 338 |
+
} catch (error) {
|
| 339 |
+
log.error(`Initialization error: ${error.message}`);
|
| 340 |
+
}
|
| 341 |
+
})();
|
| 342 |
+
|
| 343 |
+
module.exports = { makeRequest, fetchData, discoverContent, updateProviders, getGenres };
|
src/utils/logger.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const winston = require('winston');
|
| 2 |
+
const DailyRotateFile = require('winston-daily-rotate-file');
|
| 3 |
+
const path = require('path');
|
| 4 |
+
|
| 5 |
+
winston.addColors({
|
| 6 |
+
error: 'red',
|
| 7 |
+
warn: 'yellow',
|
| 8 |
+
info: 'blue',
|
| 9 |
+
debug: 'green'
|
| 10 |
+
});
|
| 11 |
+
|
| 12 |
+
const uppercaseLevelFormat = winston.format((info) => {
|
| 13 |
+
info.level = info.level.toUpperCase();
|
| 14 |
+
return info;
|
| 15 |
+
});
|
| 16 |
+
|
| 17 |
+
const LOG_LEVEL = process.env.LOG_LEVEL || 'info';
|
| 18 |
+
const LOG_FILE_PATH = path.join(__dirname, '../../log/application-%DATE%.log');
|
| 19 |
+
const MAX_FILES = process.env.LOG_INTERVAL_DELETION || '3d';
|
| 20 |
+
|
| 21 |
+
const log = winston.createLogger({
|
| 22 |
+
level: LOG_LEVEL,
|
| 23 |
+
format: winston.format.combine(
|
| 24 |
+
uppercaseLevelFormat(),
|
| 25 |
+
winston.format.colorize(),
|
| 26 |
+
winston.format.timestamp(),
|
| 27 |
+
winston.format.printf(({ level, message, timestamp }) => {
|
| 28 |
+
return `${timestamp} ${level}: ${message}`;
|
| 29 |
+
})
|
| 30 |
+
),
|
| 31 |
+
transports: [
|
| 32 |
+
new winston.transports.Console(),
|
| 33 |
+
new DailyRotateFile({
|
| 34 |
+
filename: LOG_FILE_PATH,
|
| 35 |
+
datePattern: 'YYYY-MM-DD',
|
| 36 |
+
maxSize: '20m',
|
| 37 |
+
maxFiles: MAX_FILES
|
| 38 |
+
})
|
| 39 |
+
]
|
| 40 |
+
});
|
| 41 |
+
|
| 42 |
+
log.exceptions.handle(
|
| 43 |
+
new winston.transports.Console({
|
| 44 |
+
format: winston.format.combine(
|
| 45 |
+
uppercaseLevelFormat(),
|
| 46 |
+
winston.format.colorize(),
|
| 47 |
+
winston.format.timestamp(),
|
| 48 |
+
winston.format.printf(({ level, message, timestamp }) => {
|
| 49 |
+
return `${timestamp} ${level}: ${message}`;
|
| 50 |
+
})
|
| 51 |
+
)
|
| 52 |
+
}),
|
| 53 |
+
new DailyRotateFile({
|
| 54 |
+
filename: path.join(__dirname, '../../log/exceptions-%DATE%.log'),
|
| 55 |
+
datePattern: 'YYYY-MM-DD',
|
| 56 |
+
maxSize: '20m',
|
| 57 |
+
maxFiles: '30d'
|
| 58 |
+
})
|
| 59 |
+
);
|
| 60 |
+
|
| 61 |
+
process.on('unhandledRejection', (reason, promise) => {
|
| 62 |
+
throw reason;
|
| 63 |
+
});
|
| 64 |
+
|
| 65 |
+
log.on('error', function (err) {
|
| 66 |
+
console.error('Error in logger:', err);
|
| 67 |
+
});
|
| 68 |
+
|
| 69 |
+
module.exports = log;
|
src/utils/middleware.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const log = require('./logger');
|
| 2 |
+
|
| 3 |
+
const requestLogger = (req, res, next) => {
|
| 4 |
+
const userAgent = req.headers['user-agent'] || '';
|
| 5 |
+
const origin = req.get('origin') || '';
|
| 6 |
+
const fullUrl = req.protocol + '://' + req.get('host') + req.originalUrl;
|
| 7 |
+
|
| 8 |
+
log.info('--- Request received ---');
|
| 9 |
+
log.debug(`Full URL: ${fullUrl}`);
|
| 10 |
+
// log.debug(`Method: ${req.method}`);
|
| 11 |
+
// log.debug(`Query parameters: ${JSON.stringify(req.query, null, 2)}`);
|
| 12 |
+
// log.debug(`Request body: ${JSON.stringify(req.body, null, 2)}`);
|
| 13 |
+
// log.debug(`Headers: ${JSON.stringify(req.headers, null, 2)}`);
|
| 14 |
+
// log.debug(`User-Agent: ${userAgent}`);
|
| 15 |
+
// log.debug(`Origin: ${origin}`);
|
| 16 |
+
|
| 17 |
+
next();
|
| 18 |
+
};
|
| 19 |
+
|
| 20 |
+
const errorHandler = (err, req, res, next) => {
|
| 21 |
+
log.error(`Error occurred: ${err.message}\nStack trace: ${err.stack}`);
|
| 22 |
+
res.status(500).json({ error: 'Internal Server Error' });
|
| 23 |
+
};
|
| 24 |
+
|
| 25 |
+
module.exports = {
|
| 26 |
+
requestLogger,
|
| 27 |
+
errorHandler
|
| 28 |
+
};
|
src/utils/queue.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const async = require('async');
|
| 2 |
+
|
| 3 |
+
const queue = async.queue((task, callback) => {
|
| 4 |
+
task.fn().then(callback).catch(callback);
|
| 5 |
+
}, 45); // 45 requests per second
|
| 6 |
+
|
| 7 |
+
module.exports = queue;
|