hansaka01 commited on
Commit
771af3a
Β·
verified Β·
1 Parent(s): 52f5007

Upload 11 files

Browse files
Files changed (11) hide show
  1. .env.example +11 -0
  2. .gitignore +6 -0
  3. Dockerfile +20 -15
  4. README.md +14 -4
  5. bot.js +380 -0
  6. ocr.js +267 -0
  7. ocr.py +108 -0
  8. package-lock.json +2546 -0
  9. package.json +21 -0
  10. public/index.html +224 -0
  11. solver.js +212 -0
.env.example ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ── Required ──────────────────────────────────────────────────
2
+ # Get your BOT_TOKEN from @BotFather on Telegram
3
+ BOT_TOKEN=your_bot_token_here
4
+
5
+ # Get API_ID and API_HASH from https://my.telegram.org/apps
6
+ API_ID=12345678
7
+ API_HASH=your_api_hash_here
8
+
9
+ # ── Optional ───────────────────────────────────────────────────
10
+ # Dashboard port (default 7860 for Hugging Face Spaces)
11
+ PORT=7860
.gitignore ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ node_modules/
2
+ .env
3
+ *.jpg
4
+ *.jpeg
5
+ *.png
6
+ *.log
Dockerfile CHANGED
@@ -1,27 +1,32 @@
1
- # Use official Node.js 18 slim image
2
- FROM node:18-slim
3
 
4
- # Install git to clone the repository
5
- RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
 
 
 
 
 
 
 
 
 
6
 
7
- # Set the working directory and permissions
8
  WORKDIR /home/node/app
9
  RUN chown -R node:node /home/node/app
10
 
11
- # Use the existing 'node' user (UID 1000)
12
  USER node
13
  ENV HOME=/home/node \
14
- PATH=/home/node/.local/bin:$PATH
15
 
16
- # The user requested to clone the repo inside the container
17
- RUN git clone https://github.com/AlexaInc/wordlesolver.git .
 
18
 
19
- # Install dependencies
20
- RUN npm install
21
 
22
- # Expose the standard Hugging Face Spaces port
23
  EXPOSE 7860
24
 
25
- # Command to start both the web server and the bot
26
- # Note: Ensure you have set BOT_TOKEN in Hugging Face Secrets!
27
- CMD ["npm", "start"]
 
1
+ FROM node:20-slim
 
2
 
3
+ # Install system dependencies for Tesseract OCR and Sharp
4
+ RUN apt-get update && apt-get install -y --no-install-recommends \
5
+ tesseract-ocr \
6
+ tesseract-ocr-eng \
7
+ libtesseract-dev \
8
+ libgl1-mesa-glx \
9
+ libvips42 \
10
+ python3 \
11
+ python3-pip \
12
+ ca-certificates \
13
+ && rm -rf /var/lib/apt/lists/*
14
 
15
+ # Set up app directory with correct ownership
16
  WORKDIR /home/node/app
17
  RUN chown -R node:node /home/node/app
18
 
 
19
  USER node
20
  ENV HOME=/home/node \
21
+ PORT=7860
22
 
23
+ # Install Node dependencies first (layer caching)
24
+ COPY --chown=node:node package*.json ./
25
+ RUN npm install --omit=dev
26
 
27
+ # Copy source files
28
+ COPY --chown=node:node . .
29
 
 
30
  EXPOSE 7860
31
 
32
+ CMD ["node", "bot.js"]
 
 
README.md CHANGED
@@ -1,10 +1,20 @@
1
  ---
2
- title: Wordsolver
3
- emoji: πŸ“‰
4
- colorFrom: gray
5
- colorTo: pink
6
  sdk: docker
7
  pinned: false
8
  ---
9
 
 
 
 
 
 
 
 
 
 
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: Word Grid Solver Bot
3
+ emoji: 🧩
4
+ colorFrom: blue
5
+ colorTo: indigo
6
  sdk: docker
7
  pinned: false
8
  ---
9
 
10
+ # Word Grid Solver Bot
11
+
12
+ High-accuracy Telegram bot for solving word grid puzzles with real-time dashboard.
13
+
14
+ ## Deployment Details
15
+ This Space runs a Docker container with:
16
+ - Node.js (Telegraf, Tesseract.js)
17
+ - Python (EasyOCR)
18
+ - Express Dashboard
19
+
20
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
bot.js ADDED
@@ -0,0 +1,380 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * bot.js β€” Word Grid Solver Bot (GramJS / pure MTProto)
3
+ *
4
+ * Uses the `telegram` npm package (GramJS) with a BOT_TOKEN for pure MTProto.
5
+ * No Telegraf, no HTTP Bot API polling β€” raw MTProto layer.
6
+ *
7
+ * Required env vars:
8
+ * BOT_TOKEN – Telegram bot token (from @BotFather)
9
+ * API_ID – Telegram API ID (from https://my.telegram.org/apps)
10
+ * API_HASH – Telegram API hash (from https://my.telegram.org/apps)
11
+ *
12
+ * Optional:
13
+ * PORT – HTTP dashboard port (default 7860)
14
+ */
15
+
16
+ 'use strict';
17
+
18
+ require('dotenv').config();
19
+
20
+ const { TelegramClient } = require('telegram');
21
+ const { StringSession } = require('telegram/sessions');
22
+ const { NewMessage } = require('telegram/events');
23
+
24
+ const express = require('express');
25
+ const fs = require('fs');
26
+ const path = require('path');
27
+
28
+ const { extractGrid } = require('./ocr');
29
+ const { solve } = require('./solver');
30
+
31
+ // ─── Environment ──────────────────────────────────────────────────────────────
32
+ const BOT_TOKEN = process.env.BOT_TOKEN;
33
+ const API_ID = parseInt(process.env.API_ID || '0', 10);
34
+ const API_HASH = process.env.API_HASH || '';
35
+
36
+ if (!BOT_TOKEN) {
37
+ console.error('[FATAL] BOT_TOKEN is required.');
38
+ process.exit(1);
39
+ }
40
+ if (!API_ID || !API_HASH) {
41
+ console.error('[FATAL] API_ID and API_HASH are required for GramJS MTProto.');
42
+ console.error(' Get them from https://my.telegram.org/apps');
43
+ process.exit(1);
44
+ }
45
+
46
+ // ─── Dictionary ───────────────────────────────────────────────────────────────
47
+ const dictionaryPath = path.join(__dirname, 'node_modules/check-word/words/en.txt');
48
+ const dictionary = new Set();
49
+ try {
50
+ const data = fs.readFileSync(dictionaryPath, 'utf8');
51
+ for (const line of data.split('\n')) {
52
+ const w = line.trim().toLowerCase();
53
+ if (w.length >= 3) dictionary.add(w);
54
+ }
55
+ console.log(`[Dict] Loaded ${dictionary.size} words.`);
56
+ } catch (err) {
57
+ console.error('[Dict] Failed to load dictionary:', err.message);
58
+ }
59
+
60
+ function isWord(w) {
61
+ return dictionary.has((w || '').toLowerCase());
62
+ }
63
+
64
+ // ─── Stats ────────────────────────────────────────────────────────────────────
65
+ const stats = {
66
+ imagesProcessed: 0,
67
+ wordsFound: 0,
68
+ startTime: Date.now(),
69
+ botUsername: 'loading...',
70
+ };
71
+
72
+ // ─── Utility helpers ──────────────────────────────────────────────────────────
73
+ function sleep(ms) {
74
+ return new Promise(r => setTimeout(r, ms));
75
+ }
76
+
77
+ async function deleteFile(filePath) {
78
+ for (let i = 0; i < 5; i++) {
79
+ try {
80
+ if (fs.existsSync(filePath)) fs.unlinkSync(filePath);
81
+ return;
82
+ } catch (_) {
83
+ await sleep(800);
84
+ }
85
+ }
86
+ }
87
+
88
+ // ─── Caption parsers ──────────────────────────────────────────────────────────
89
+ /**
90
+ * Parse word patterns from caption text β€” single left-to-right pass.
91
+ * Supports all of:
92
+ * M--- (4) β†’ pattern + explicit length hint
93
+ * M---- β†’ standalone dashes (2+ required)
94
+ * W---- H--- (4) β†’ multiple patterns on one line
95
+ * Find M--- and P-- β†’ mixed prose + patterns
96
+ */
97
+ function parsePatterns(text) {
98
+ const results = [];
99
+ const seen = new Set();
100
+
101
+ // Single combined regex: captures "X---" optionally followed by " (N)"
102
+ // Minimum 2 dashes (so 3-letter minimum words).
103
+ const re = /([A-Z])(-+)(?:\s*\(\d+\))?/g;
104
+ let m;
105
+ while ((m = re.exec(text)) !== null) {
106
+ if (m[2].length < 2) continue; // skip single-dash noise
107
+ const pattern = (m[1] + m[2]).toUpperCase();
108
+ if (!seen.has(pattern)) {
109
+ seen.add(pattern);
110
+ results.push({ pattern });
111
+ }
112
+ }
113
+
114
+ return results;
115
+ }
116
+
117
+ /**
118
+ * Detect grid size hint from caption text.
119
+ * Returns a number (forced size) or null (let OCR auto-detect).
120
+ */
121
+ function detectGridSizeFromCaption(text) {
122
+ const upper = text.toUpperCase();
123
+
124
+ // Explicit NxN e.g. "10x10" or "8x8"
125
+ const sizeMatch = text.match(/\b(\d+)\s*[xXΓ—]\s*\1\b/);
126
+ if (sizeMatch) {
127
+ const n = parseInt(sizeMatch[1], 10);
128
+ if (n >= 4 && n <= 15) {
129
+ console.log(`[Grid] Caption explicit size: ${n}Γ—${n}`);
130
+ return n;
131
+ }
132
+ }
133
+
134
+ if (
135
+ upper.includes('HARD MODE') ||
136
+ upper.includes('10X10') ||
137
+ upper.includes('10 X 10')
138
+ ) {
139
+ console.log('[Grid] Caption phrase β†’ 10Γ—10');
140
+ return 10;
141
+ }
142
+
143
+ return null; // let OCR auto-detect
144
+ }
145
+
146
+ // ─── Result formatter ──────────���──────────────────────────────────────────────
147
+ function formatResults(results, grid, patterns) {
148
+ let msg = '🎯 <b>WORD GRID RESULTS</b>\n\n';
149
+ let foundAny = false;
150
+
151
+ for (const p of patterns) {
152
+ const key = p.pattern || p.word;
153
+ if (!key) continue;
154
+
155
+ const entry = results[key];
156
+ if (!entry) {
157
+ msg += `❓ ${key}: not found in grid\n`;
158
+ continue;
159
+ }
160
+
161
+ if (Array.isArray(entry)) {
162
+ // Pattern search β€” filter candidates against dictionary
163
+ const startChar = key[0].toUpperCase();
164
+ const wordMatches = new Set();
165
+
166
+ for (const hit of entry) {
167
+ const raw = hit.match.toUpperCase();
168
+
169
+ if (isWord(raw)) {
170
+ wordMatches.add(raw);
171
+ continue;
172
+ }
173
+
174
+ // OCR may have mis-read the first character β€” force the known start char
175
+ const forced = startChar + raw.slice(1);
176
+ if (isWord(forced)) {
177
+ wordMatches.add(forced);
178
+ continue;
179
+ }
180
+
181
+ console.log(`[Debug] Rejected non-word for "${key}": ${raw}`);
182
+ }
183
+
184
+ if (wordMatches.size > 0) {
185
+ const list = [...wordMatches].map(w => `<code>${w}</code>`).join(', ');
186
+ msg += `βœ… ${key}: ${list}\n`;
187
+ stats.wordsFound += wordMatches.size;
188
+ foundAny = true;
189
+ } else {
190
+ msg += `❓ ${key}: no dictionary words matched\n`;
191
+ }
192
+ } else {
193
+ // Exact word search result
194
+ msg += `βœ… <code>${entry.match}</code> @ [${entry.r},${entry.c}] ${entry.dir}\n`;
195
+ foundAny = true;
196
+ }
197
+ }
198
+
199
+ if (!foundAny) {
200
+ msg += 'πŸ˜” No real word matches found for these patterns.\n';
201
+ msg += 'Tip: check that your caption patterns match the grid letters.\n';
202
+ }
203
+
204
+ // Always show the extracted grid for verification
205
+ msg += '\nπŸ” <b>Extracted Grid:</b>\n';
206
+ msg += '<pre>' + grid.map(row => row.join(' ')).join('\n') + '</pre>';
207
+
208
+ return msg;
209
+ }
210
+
211
+ // ─── GramJS Bot ───────────────────────────────────────────────────────────────
212
+ async function startBot() {
213
+ const session = new StringSession(''); // blank = new session each time (fine for bots)
214
+
215
+ const client = new TelegramClient(session, API_ID, API_HASH, {
216
+ connectionRetries: 10,
217
+ retryDelay: 2000,
218
+ autoReconnect: true,
219
+ useWSS: false,
220
+ });
221
+
222
+ console.log('[GramJS] Connecting via MTProto...');
223
+
224
+ await client.start({
225
+ botAuthToken: BOT_TOKEN,
226
+ });
227
+
228
+ console.log('[GramJS] Connected successfully.');
229
+
230
+ const me = await client.getMe();
231
+ stats.botUsername = me.username || 'bot';
232
+ console.log(`[Bot] Running as @${stats.botUsername}`);
233
+
234
+ // ── Message handler ──────────────────────────────────────────────────────────
235
+ client.addEventHandler(async (event) => {
236
+ const msg = event.message;
237
+ if (!msg) return;
238
+
239
+ const chatId = msg.peerId;
240
+ const caption = (msg.message || '').trim();
241
+
242
+ // /start command
243
+ if (caption === '/start' || caption.startsWith('/start ')) {
244
+ await client.sendMessage(chatId, {
245
+ message: [
246
+ 'πŸ‘‹ <b>Word Grid Solver Bot</b>',
247
+ '',
248
+ 'Send me a word grid image with patterns in the caption.',
249
+ '',
250
+ '<b>Caption format:</b>',
251
+ '<code>M--- (4) P------- (8) S----- (6)</code>',
252
+ '',
253
+ 'πŸ“ Supports <b>8Γ—8 and 10Γ—10</b> grids (auto-detected)',
254
+ 'Override with: <code>10x10</code> in caption',
255
+ ].join('\n'),
256
+ parseMode: 'html',
257
+ });
258
+ return;
259
+ }
260
+
261
+ // Only handle messages that carry a photo
262
+ const hasPhoto = msg.media && (
263
+ msg.media.className === 'MessageMediaPhoto' ||
264
+ (msg.media.document &&
265
+ msg.media.document.mimeType &&
266
+ msg.media.document.mimeType.startsWith('image/'))
267
+ );
268
+
269
+ if (!hasPhoto) return;
270
+
271
+ // ── Download image to disk via MTProto ─────────────────────────────────────
272
+ // GramJS downloadMedia accepts a STRING path as outputFile β†’ writes file,
273
+ // returns the path. Do NOT pass Buffer constructor β€” that causes the
274
+ // "writer.write is not a function" error.
275
+ const imagePath = path.join(
276
+ __dirname,
277
+ `grid_${Date.now()}_${Math.random().toString(36).slice(2)}.jpg`
278
+ );
279
+
280
+ try {
281
+ await client.sendMessage(chatId, {
282
+ message: 'πŸ” Downloading and processing your grid image...',
283
+ });
284
+
285
+ // Pass the destination path string β€” GramJS streams the file there via MTProto
286
+ const result = await client.downloadMedia(msg, {
287
+ outputFile: imagePath,
288
+ });
289
+
290
+ // result is the path string when outputFile is a string path
291
+ if (!result) throw new Error('downloadMedia returned null/undefined');
292
+ if (!fs.existsSync(imagePath)) throw new Error('File not written to disk');
293
+
294
+ console.log(`[Download] Saved to ${imagePath} (${fs.statSync(imagePath).size} bytes)`);
295
+
296
+ } catch (dlErr) {
297
+ console.error('[Download] Failed:', dlErr.message);
298
+ await client.sendMessage(chatId, {
299
+ message: '❌ Failed to download the image. Please try again.',
300
+ });
301
+ await deleteFile(imagePath);
302
+ return;
303
+ }
304
+
305
+ // ── Process the image ──────────────────────────────────────────────────────
306
+ try {
307
+ stats.imagesProcessed++;
308
+
309
+ const forcedSize = detectGridSizeFromCaption(caption);
310
+
311
+ const grid = await extractGrid(imagePath, forcedSize);
312
+
313
+ if (!grid || grid.length === 0) {
314
+ await client.sendMessage(chatId, {
315
+ message: '❌ Could not extract a grid from the image.\nMake sure the grid letters are clearly visible.',
316
+ });
317
+ return;
318
+ }
319
+
320
+ const patterns = parsePatterns(caption);
321
+
322
+ if (patterns.length === 0) {
323
+ const noPatMsg =
324
+ 'πŸ“‹ <b>Grid extracted</b> (no patterns in caption):\n\n' +
325
+ '<pre>' + grid.map(r => r.join(' ')).join('\n') + '</pre>\n\n' +
326
+ 'Add patterns like <code>M--- (4)</code> to find words!';
327
+ await client.sendMessage(chatId, { message: noPatMsg, parseMode: 'html' });
328
+ return;
329
+ }
330
+
331
+ const results = solve(grid, patterns);
332
+ const reply = formatResults(results, grid, patterns);
333
+
334
+ await client.sendMessage(chatId, { message: reply, parseMode: 'html' });
335
+
336
+ } catch (err) {
337
+ console.error('[Handler] Processing error:', err);
338
+ await client.sendMessage(chatId, {
339
+ message: '🚨 An error occurred while processing. Please try again.',
340
+ });
341
+ } finally {
342
+ await deleteFile(imagePath);
343
+ }
344
+
345
+ }, new NewMessage({}));
346
+
347
+ console.log('[Bot] Listening for messages...');
348
+
349
+ // Graceful shutdown
350
+ const shutdown = async (sig) => {
351
+ console.log(`[Bot] ${sig} received β€” disconnecting...`);
352
+ try { await client.disconnect(); } catch (_) {}
353
+ process.exit(0);
354
+ };
355
+ process.once('SIGINT', () => shutdown('SIGINT'));
356
+ process.once('SIGTERM', () => shutdown('SIGTERM'));
357
+ }
358
+
359
+ // ─── Express dashboard ────────────────────────────────────────────────────────
360
+ const app = express();
361
+ const PORT = parseInt(process.env.PORT || '7860', 10);
362
+
363
+ app.use(express.static(path.join(__dirname, 'public')));
364
+
365
+ app.get('/api/stats', (_req, res) => {
366
+ res.json({
367
+ ...stats,
368
+ uptime: Math.floor((Date.now() - stats.startTime) / 1000),
369
+ });
370
+ });
371
+
372
+ app.listen(PORT, () => {
373
+ console.log(`[Dashboard] Running on port ${PORT}`);
374
+ });
375
+
376
+ // ─── Boot ─────────────────────────────────────────────────────────────────────
377
+ startBot().catch(err => {
378
+ console.error('[FATAL] Bot startup failed:', err);
379
+ process.exit(1);
380
+ });
ocr.js ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * ocr.js β€” Advanced multi-pass Tesseract OCR with auto-detecting grid size
3
+ *
4
+ * Key improvements over v1:
5
+ * β€’ Auto-detect grid size (8Γ—8 vs 10Γ—10 vs other NxN) via symbol clustering
6
+ * β€’ Multi-threshold voting (5 passes) for better letter accuracy
7
+ * β€’ K-means-style column/row centroid detection instead of fixed bucket math
8
+ * β€’ Lookalike-aware majority voting per cell (I/L, O/0, B/8, etc.)
9
+ * β€’ No magic assumption of exactly N symbols – works with noise/gaps
10
+ */
11
+
12
+ const sharp = require('sharp');
13
+ sharp.cache(false);
14
+ const { createWorker } = require('tesseract.js');
15
+
16
+ // ─── OCR lookalike corrections (applied at voting time) ───────────────────────
17
+ const LOOKALIKE_GROUPS = [
18
+ ['I', 'L', '1', '|', 'J'],
19
+ ['O', '0', 'Q', 'D'],
20
+ ['B', '8', '3'],
21
+ ['S', '5'],
22
+ ['G', '6', 'C'],
23
+ ['Z', '2'],
24
+ ['E', 'F'],
25
+ ['U', 'V'],
26
+ ];
27
+
28
+ // Build canonical map: non-alpha β†’ preferred alpha
29
+ const CANONICAL = {};
30
+ for (const group of LOOKALIKE_GROUPS) {
31
+ const alpha = group.find(c => /^[A-Z]$/.test(c));
32
+ if (!alpha) continue;
33
+ for (const c of group) {
34
+ if (!/^[A-Z]$/.test(c)) CANONICAL[c] = alpha;
35
+ }
36
+ }
37
+
38
+ function canonicalise(char) {
39
+ return CANONICAL[char.toUpperCase()] || char.toUpperCase();
40
+ }
41
+
42
+ // ─── Simple 1-D k-means-style centroid finder ─────────────────────────────────
43
+ /**
44
+ * Given a sorted list of values and a target cluster count,
45
+ * iteratively refine cluster centroids until stable.
46
+ * Returns sorted list of centroids.
47
+ */
48
+ function findCentroids(values, k) {
49
+ if (values.length === 0) return [];
50
+ const sorted = [...values].sort((a, b) => a - b);
51
+ const min = sorted[0], max = sorted[sorted.length - 1];
52
+
53
+ if (k <= 1) return [(min + max) / 2];
54
+
55
+ // Initialise centroids evenly spaced
56
+ let centroids = Array.from({ length: k }, (_, i) => min + (i / (k - 1)) * (max - min));
57
+
58
+ for (let iter = 0; iter < 30; iter++) {
59
+ // Assign each value to nearest centroid
60
+ const clusters = Array.from({ length: k }, () => []);
61
+ for (const v of sorted) {
62
+ let best = 0, bestDist = Infinity;
63
+ for (let i = 0; i < k; i++) {
64
+ const d = Math.abs(v - centroids[i]);
65
+ if (d < bestDist) { bestDist = d; best = i; }
66
+ }
67
+ clusters[best].push(v);
68
+ }
69
+
70
+ // Recompute centroids
71
+ const newCentroids = centroids.map((c, i) => {
72
+ if (clusters[i].length === 0) return c;
73
+ return clusters[i].reduce((a, b) => a + b, 0) / clusters[i].length;
74
+ });
75
+
76
+ // Check convergence
77
+ const moved = newCentroids.some((nc, i) => Math.abs(nc - centroids[i]) > 0.01);
78
+ centroids = newCentroids;
79
+ if (!moved) break;
80
+ }
81
+
82
+ return centroids.sort((a, b) => a - b);
83
+ }
84
+
85
+ // ─── Auto-detect grid size from symbol cloud ──────────────────────────────────
86
+ /**
87
+ * Try k=8 and k=10 clusterings on the X coordinates.
88
+ * Pick whichever produces tighter within-cluster variance.
89
+ */
90
+ function detectGridSize(xs) {
91
+ if (xs.length === 0) return 8;
92
+
93
+ const tryK = (k) => {
94
+ const cents = findCentroids(xs, k);
95
+ let totalVar = 0;
96
+ const clusters = Array.from({ length: k }, () => []);
97
+ for (const x of xs) {
98
+ let best = 0, bestDist = Infinity;
99
+ for (let i = 0; i < k; i++) {
100
+ const d = Math.abs(x - cents[i]);
101
+ if (d < bestDist) { bestDist = d; best = i; }
102
+ }
103
+ clusters[best].push(x);
104
+ }
105
+ for (const cl of clusters) {
106
+ if (cl.length === 0) continue;
107
+ const mean = cl.reduce((a, b) => a + b, 0) / cl.length;
108
+ totalVar += cl.reduce((s, v) => s + (v - mean) ** 2, 0);
109
+ }
110
+ // Normalise by k so we compare fairly
111
+ return totalVar / k;
112
+ };
113
+
114
+ // If very few symbols, default to 8
115
+ if (xs.length < 30) return 8;
116
+
117
+ const v8 = tryK(8);
118
+ const v10 = tryK(10);
119
+
120
+ // Heuristic: also check symbol density
121
+ // A 10Γ—10 grid should have ~100 symbols; an 8Γ—8 ~ 64
122
+ const symbolCount = xs.length;
123
+ if (symbolCount > 350) return 10; // many multi-pass hits β†’ likely 10Γ—10
124
+
125
+ // Use variance ratio to decide
126
+ // If v10 is significantly better (lower) than v8, go with 10
127
+ return (v10 < v8 * 0.85) ? 10 : 8;
128
+ }
129
+
130
+ // ─── Main extractGrid function ────────────────────────────────────────────────
131
+ /**
132
+ * @param {string} imagePath
133
+ * @param {number|null} forcedSize - if null, auto-detect
134
+ * @returns {string[][]|null}
135
+ */
136
+ async function extractGrid(imagePath, forcedSize = null) {
137
+ let worker = null;
138
+ try {
139
+ const THRESHOLDS = [70, 100, 130, 160, 190, 210];
140
+ const allSymbols = []; // { char, x, y }
141
+
142
+ worker = await createWorker('eng');
143
+ await worker.setParameters({
144
+ tessedit_char_whitelist: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
145
+ tessedit_pageseg_mode: '6', // Assume uniform block of text
146
+ });
147
+
148
+ for (const th of THRESHOLDS) {
149
+ let buf;
150
+ try {
151
+ buf = await sharp(imagePath)
152
+ .grayscale()
153
+ .normalize()
154
+ .sharpen({ sigma: 1.5 })
155
+ .threshold(th)
156
+ .toBuffer();
157
+ } catch (e) {
158
+ console.warn(`Sharp preprocessing failed at threshold ${th}:`, e.message);
159
+ continue;
160
+ }
161
+
162
+ let res;
163
+ try {
164
+ res = await worker.recognize(buf);
165
+ } catch (e) {
166
+ console.warn(`Tesseract failed at threshold ${th}:`, e.message);
167
+ continue;
168
+ }
169
+
170
+ if (!res.data.symbols) continue;
171
+
172
+ for (const s of res.data.symbols) {
173
+ const raw = (s.text || '').replace(/[^A-Za-z0-9|]/g, '').toUpperCase();
174
+ if (!raw || raw.length !== 1) continue;
175
+ const ch = canonicalise(raw);
176
+ if (!/^[A-Z]$/.test(ch)) continue;
177
+
178
+ const midX = (s.bbox.x0 + s.bbox.x1) / 2;
179
+ const midY = (s.bbox.y0 + s.bbox.y1) / 2;
180
+ allSymbols.push({ char: ch, x: midX, y: midY });
181
+ }
182
+ }
183
+
184
+ await worker.terminate();
185
+ worker = null;
186
+
187
+ if (allSymbols.length === 0) {
188
+ console.warn('No symbols detected from OCR.');
189
+ return null;
190
+ }
191
+
192
+ console.log(`Total symbol observations (all passes): ${allSymbols.length}`);
193
+
194
+ // ── Detect or use forced grid size ──
195
+ const xs = allSymbols.map(s => s.x);
196
+ const ys = allSymbols.map(s => s.y);
197
+
198
+ const gridSize = forcedSize !== null ? forcedSize : detectGridSize(xs);
199
+ console.log(`Using grid size: ${gridSize}Γ—${gridSize}`);
200
+
201
+ // ── Cluster columns and rows ──
202
+ const colCentroids = findCentroids(xs, gridSize);
203
+ const rowCentroids = findCentroids(ys, gridSize);
204
+
205
+ // ── Vote per cell ──
206
+ // cellVotes[r][c] = { char: count }
207
+ const cellVotes = Array.from({ length: gridSize }, () =>
208
+ Array.from({ length: gridSize }, () => ({}))
209
+ );
210
+
211
+ const colSpan = colCentroids.length > 1
212
+ ? (colCentroids[colCentroids.length - 1] - colCentroids[0]) / (gridSize - 1)
213
+ : 50;
214
+ const rowSpan = rowCentroids.length > 1
215
+ ? (rowCentroids[rowCentroids.length - 1] - rowCentroids[0]) / (gridSize - 1)
216
+ : 50;
217
+ const colTol = colSpan * 0.5;
218
+ const rowTol = rowSpan * 0.5;
219
+
220
+ for (const s of allSymbols) {
221
+ // Assign to nearest column centroid within tolerance
222
+ let bestC = -1, bestCDist = Infinity;
223
+ for (let i = 0; i < colCentroids.length; i++) {
224
+ const d = Math.abs(s.x - colCentroids[i]);
225
+ if (d < bestCDist) { bestCDist = d; bestC = i; }
226
+ }
227
+ if (bestCDist > colTol * 2) continue; // too far from any centroid β†’ noise
228
+
229
+ let bestR = -1, bestRDist = Infinity;
230
+ for (let i = 0; i < rowCentroids.length; i++) {
231
+ const d = Math.abs(s.y - rowCentroids[i]);
232
+ if (d < bestRDist) { bestRDist = d; bestR = i; }
233
+ }
234
+ if (bestRDist > rowTol * 2) continue;
235
+
236
+ cellVotes[bestR][bestC][s.char] = (cellVotes[bestR][bestC][s.char] || 0) + 1;
237
+ }
238
+
239
+ // ── Build final grid ──
240
+ const grid = Array.from({ length: gridSize }, (_, r) =>
241
+ Array.from({ length: gridSize }, (_, c) => {
242
+ const votes = cellVotes[r][c];
243
+ let best = '?', maxV = 0;
244
+ for (const [ch, v] of Object.entries(votes)) {
245
+ if (v > maxV) { maxV = v; best = ch; }
246
+ }
247
+ return best;
248
+ })
249
+ );
250
+
251
+ // Log the extracted grid for debugging
252
+ console.log('Extracted grid:');
253
+ for (const row of grid) {
254
+ console.log(row.join(' '));
255
+ }
256
+
257
+ return grid;
258
+ } catch (err) {
259
+ console.error('OCR Error:', err);
260
+ if (worker) {
261
+ try { await worker.terminate(); } catch (_) {}
262
+ }
263
+ return null;
264
+ }
265
+ }
266
+
267
+ module.exports = { extractGrid };
ocr.py ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import easyocr
2
+ import easyocr.easyocr
3
+ import sys
4
+ import json
5
+ import os
6
+ from PIL import Image
7
+ import io
8
+
9
+ # Fix EasyOCR bug
10
+ easyocr.easyocr.corrupt_msg = "Model error"
11
+
12
+ def process_image(reader, image_path):
13
+ try:
14
+ if not os.path.exists(image_path):
15
+ return {"error": f"Path not found: {image_path}"}
16
+
17
+ # Single-pass OCR is much faster and usually accurate enough for Deep Learning models
18
+ results = reader.readtext(image_path, detail=1)
19
+ if not results:
20
+ return {"error": "No text detected"}
21
+
22
+ symbols = []
23
+ for (bbox, text, prob) in results:
24
+ text = text.strip().upper()
25
+ clean_text = "".join([c for c in text if c.isalpha()])
26
+ if not clean_text: continue
27
+
28
+ x_center = (bbox[0][0] + bbox[2][0]) / 2
29
+ y_center = (bbox[0][1] + bbox[2][1]) / 2
30
+
31
+ if len(clean_text) > 1:
32
+ # Approximate positions for concatenated chars
33
+ w = bbox[2][0] - bbox[0][0]
34
+ char_w = w / len(clean_text)
35
+ for i, char in enumerate(clean_text):
36
+ symbols.append({
37
+ "text": char,
38
+ "x": bbox[0][0] + (i + 0.5) * char_w,
39
+ "y": y_center
40
+ })
41
+ else:
42
+ symbols.append({"text": clean_text, "x": x_center, "y": y_center})
43
+
44
+ if not symbols: return []
45
+
46
+ # Find 8 distinct lanes for X and Y
47
+ def get_lanes(coords, num_lanes=8):
48
+ coords.sort()
49
+ if not coords: return []
50
+ lanes = []
51
+ # Simple clustering: divide range into 8 buckets
52
+ mi, ma = min(coords), max(coords)
53
+ if ma == mi: return [mi]
54
+
55
+ bucket_size = (ma - mi) / (num_lanes - 1) if num_lanes > 1 else 1
56
+ for i in range(num_lanes):
57
+ center = mi + i * bucket_size
58
+ lanes.append(center)
59
+ return lanes
60
+
61
+ xs = [s["x"] for s in symbols]
62
+ ys = [s["y"] for s in symbols]
63
+
64
+ x_lanes = get_lanes(xs, 8)
65
+ y_lanes = get_lanes(ys, 8)
66
+
67
+ grid = [[" " for _ in range(8)] for _ in range(8)]
68
+ for s in symbols:
69
+ # Map to nearest lane
70
+ r = min(range(8), key=lambda i: abs(s["y"] - y_lanes[i]))
71
+ c = min(range(8), key=lambda i: abs(s["x"] - x_lanes[i]))
72
+ grid[r][c] = s["text"]
73
+
74
+ final_symbols = []
75
+ for r in range(8):
76
+ for c in range(8):
77
+ if grid[r][c] != " ":
78
+ final_symbols.append({"text": grid[r][c], "r": r, "c": c})
79
+ return final_symbols
80
+
81
+ except Exception as e:
82
+ return {"error": str(e)}
83
+
84
+ def main():
85
+ # Initialize reader ONCE
86
+ try:
87
+ reader = easyocr.Reader(['en'], gpu=False, verbose=False)
88
+ # Signal ready
89
+ print("READY", flush=True)
90
+ except Exception as e:
91
+ print(json.dumps({"error": f"Init failed: {str(e)}"}), flush=True)
92
+ return
93
+
94
+ # Listen for image paths on stdin
95
+ while True:
96
+ line = sys.stdin.readline()
97
+ if not line:
98
+ break
99
+
100
+ image_path = line.strip()
101
+ if not image_path:
102
+ continue
103
+
104
+ result = process_image(reader, image_path)
105
+ print(json.dumps(result), flush=True)
106
+
107
+ if __name__ == "__main__":
108
+ main()
package-lock.json ADDED
@@ -0,0 +1,2546 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "wordgridsolver",
3
+ "version": "2.0.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "wordgridsolver",
9
+ "version": "2.0.0",
10
+ "dependencies": {
11
+ "axios": "^1.6.0",
12
+ "big-integer": "^1.6.52",
13
+ "check-word": "^1.1.0",
14
+ "dotenv": "^17.4.2",
15
+ "express": "^5.2.1",
16
+ "input": "^1.0.1",
17
+ "sharp": "^0.34.5",
18
+ "telegram": "^2.26.0",
19
+ "tesseract.js": "^5.0.0"
20
+ }
21
+ },
22
+ "node_modules/@cryptography/aes": {
23
+ "version": "0.1.1",
24
+ "resolved": "https://registry.npmjs.org/@cryptography/aes/-/aes-0.1.1.tgz",
25
+ "integrity": "sha512-PcYz4FDGblO6tM2kSC+VzhhK62vml6k6/YAkiWtyPvrgJVfnDRoHGDtKn5UiaRRUrvUTTocBpvc2rRgTCqxjsg==",
26
+ "license": "GPL-3.0-or-later"
27
+ },
28
+ "node_modules/@emnapi/runtime": {
29
+ "version": "1.9.2",
30
+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.2.tgz",
31
+ "integrity": "sha512-3U4+MIWHImeyu1wnmVygh5WlgfYDtyf0k8AbLhMFxOipihf6nrWC4syIm/SwEeec0mNSafiiNnMJwbza/Is6Lw==",
32
+ "license": "MIT",
33
+ "optional": true,
34
+ "dependencies": {
35
+ "tslib": "^2.4.0"
36
+ }
37
+ },
38
+ "node_modules/@img/colour": {
39
+ "version": "1.1.0",
40
+ "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",
41
+ "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==",
42
+ "license": "MIT",
43
+ "engines": {
44
+ "node": ">=18"
45
+ }
46
+ },
47
+ "node_modules/@img/sharp-darwin-arm64": {
48
+ "version": "0.34.5",
49
+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.5.tgz",
50
+ "integrity": "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==",
51
+ "cpu": [
52
+ "arm64"
53
+ ],
54
+ "license": "Apache-2.0",
55
+ "optional": true,
56
+ "os": [
57
+ "darwin"
58
+ ],
59
+ "engines": {
60
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
61
+ },
62
+ "funding": {
63
+ "url": "https://opencollective.com/libvips"
64
+ },
65
+ "optionalDependencies": {
66
+ "@img/sharp-libvips-darwin-arm64": "1.2.4"
67
+ }
68
+ },
69
+ "node_modules/@img/sharp-darwin-x64": {
70
+ "version": "0.34.5",
71
+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.5.tgz",
72
+ "integrity": "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==",
73
+ "cpu": [
74
+ "x64"
75
+ ],
76
+ "license": "Apache-2.0",
77
+ "optional": true,
78
+ "os": [
79
+ "darwin"
80
+ ],
81
+ "engines": {
82
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
83
+ },
84
+ "funding": {
85
+ "url": "https://opencollective.com/libvips"
86
+ },
87
+ "optionalDependencies": {
88
+ "@img/sharp-libvips-darwin-x64": "1.2.4"
89
+ }
90
+ },
91
+ "node_modules/@img/sharp-libvips-darwin-arm64": {
92
+ "version": "1.2.4",
93
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.2.4.tgz",
94
+ "integrity": "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==",
95
+ "cpu": [
96
+ "arm64"
97
+ ],
98
+ "license": "LGPL-3.0-or-later",
99
+ "optional": true,
100
+ "os": [
101
+ "darwin"
102
+ ],
103
+ "funding": {
104
+ "url": "https://opencollective.com/libvips"
105
+ }
106
+ },
107
+ "node_modules/@img/sharp-libvips-darwin-x64": {
108
+ "version": "1.2.4",
109
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.2.4.tgz",
110
+ "integrity": "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==",
111
+ "cpu": [
112
+ "x64"
113
+ ],
114
+ "license": "LGPL-3.0-or-later",
115
+ "optional": true,
116
+ "os": [
117
+ "darwin"
118
+ ],
119
+ "funding": {
120
+ "url": "https://opencollective.com/libvips"
121
+ }
122
+ },
123
+ "node_modules/@img/sharp-libvips-linux-arm": {
124
+ "version": "1.2.4",
125
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.2.4.tgz",
126
+ "integrity": "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==",
127
+ "cpu": [
128
+ "arm"
129
+ ],
130
+ "license": "LGPL-3.0-or-later",
131
+ "optional": true,
132
+ "os": [
133
+ "linux"
134
+ ],
135
+ "funding": {
136
+ "url": "https://opencollective.com/libvips"
137
+ }
138
+ },
139
+ "node_modules/@img/sharp-libvips-linux-arm64": {
140
+ "version": "1.2.4",
141
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.2.4.tgz",
142
+ "integrity": "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==",
143
+ "cpu": [
144
+ "arm64"
145
+ ],
146
+ "license": "LGPL-3.0-or-later",
147
+ "optional": true,
148
+ "os": [
149
+ "linux"
150
+ ],
151
+ "funding": {
152
+ "url": "https://opencollective.com/libvips"
153
+ }
154
+ },
155
+ "node_modules/@img/sharp-libvips-linux-ppc64": {
156
+ "version": "1.2.4",
157
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.2.4.tgz",
158
+ "integrity": "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==",
159
+ "cpu": [
160
+ "ppc64"
161
+ ],
162
+ "license": "LGPL-3.0-or-later",
163
+ "optional": true,
164
+ "os": [
165
+ "linux"
166
+ ],
167
+ "funding": {
168
+ "url": "https://opencollective.com/libvips"
169
+ }
170
+ },
171
+ "node_modules/@img/sharp-libvips-linux-riscv64": {
172
+ "version": "1.2.4",
173
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.2.4.tgz",
174
+ "integrity": "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==",
175
+ "cpu": [
176
+ "riscv64"
177
+ ],
178
+ "license": "LGPL-3.0-or-later",
179
+ "optional": true,
180
+ "os": [
181
+ "linux"
182
+ ],
183
+ "funding": {
184
+ "url": "https://opencollective.com/libvips"
185
+ }
186
+ },
187
+ "node_modules/@img/sharp-libvips-linux-s390x": {
188
+ "version": "1.2.4",
189
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.2.4.tgz",
190
+ "integrity": "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==",
191
+ "cpu": [
192
+ "s390x"
193
+ ],
194
+ "license": "LGPL-3.0-or-later",
195
+ "optional": true,
196
+ "os": [
197
+ "linux"
198
+ ],
199
+ "funding": {
200
+ "url": "https://opencollective.com/libvips"
201
+ }
202
+ },
203
+ "node_modules/@img/sharp-libvips-linux-x64": {
204
+ "version": "1.2.4",
205
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.2.4.tgz",
206
+ "integrity": "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==",
207
+ "cpu": [
208
+ "x64"
209
+ ],
210
+ "license": "LGPL-3.0-or-later",
211
+ "optional": true,
212
+ "os": [
213
+ "linux"
214
+ ],
215
+ "funding": {
216
+ "url": "https://opencollective.com/libvips"
217
+ }
218
+ },
219
+ "node_modules/@img/sharp-libvips-linuxmusl-arm64": {
220
+ "version": "1.2.4",
221
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.2.4.tgz",
222
+ "integrity": "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==",
223
+ "cpu": [
224
+ "arm64"
225
+ ],
226
+ "license": "LGPL-3.0-or-later",
227
+ "optional": true,
228
+ "os": [
229
+ "linux"
230
+ ],
231
+ "funding": {
232
+ "url": "https://opencollective.com/libvips"
233
+ }
234
+ },
235
+ "node_modules/@img/sharp-libvips-linuxmusl-x64": {
236
+ "version": "1.2.4",
237
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.2.4.tgz",
238
+ "integrity": "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==",
239
+ "cpu": [
240
+ "x64"
241
+ ],
242
+ "license": "LGPL-3.0-or-later",
243
+ "optional": true,
244
+ "os": [
245
+ "linux"
246
+ ],
247
+ "funding": {
248
+ "url": "https://opencollective.com/libvips"
249
+ }
250
+ },
251
+ "node_modules/@img/sharp-linux-arm": {
252
+ "version": "0.34.5",
253
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.5.tgz",
254
+ "integrity": "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==",
255
+ "cpu": [
256
+ "arm"
257
+ ],
258
+ "license": "Apache-2.0",
259
+ "optional": true,
260
+ "os": [
261
+ "linux"
262
+ ],
263
+ "engines": {
264
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
265
+ },
266
+ "funding": {
267
+ "url": "https://opencollective.com/libvips"
268
+ },
269
+ "optionalDependencies": {
270
+ "@img/sharp-libvips-linux-arm": "1.2.4"
271
+ }
272
+ },
273
+ "node_modules/@img/sharp-linux-arm64": {
274
+ "version": "0.34.5",
275
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.5.tgz",
276
+ "integrity": "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==",
277
+ "cpu": [
278
+ "arm64"
279
+ ],
280
+ "license": "Apache-2.0",
281
+ "optional": true,
282
+ "os": [
283
+ "linux"
284
+ ],
285
+ "engines": {
286
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
287
+ },
288
+ "funding": {
289
+ "url": "https://opencollective.com/libvips"
290
+ },
291
+ "optionalDependencies": {
292
+ "@img/sharp-libvips-linux-arm64": "1.2.4"
293
+ }
294
+ },
295
+ "node_modules/@img/sharp-linux-ppc64": {
296
+ "version": "0.34.5",
297
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.34.5.tgz",
298
+ "integrity": "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==",
299
+ "cpu": [
300
+ "ppc64"
301
+ ],
302
+ "license": "Apache-2.0",
303
+ "optional": true,
304
+ "os": [
305
+ "linux"
306
+ ],
307
+ "engines": {
308
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
309
+ },
310
+ "funding": {
311
+ "url": "https://opencollective.com/libvips"
312
+ },
313
+ "optionalDependencies": {
314
+ "@img/sharp-libvips-linux-ppc64": "1.2.4"
315
+ }
316
+ },
317
+ "node_modules/@img/sharp-linux-riscv64": {
318
+ "version": "0.34.5",
319
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.34.5.tgz",
320
+ "integrity": "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==",
321
+ "cpu": [
322
+ "riscv64"
323
+ ],
324
+ "license": "Apache-2.0",
325
+ "optional": true,
326
+ "os": [
327
+ "linux"
328
+ ],
329
+ "engines": {
330
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
331
+ },
332
+ "funding": {
333
+ "url": "https://opencollective.com/libvips"
334
+ },
335
+ "optionalDependencies": {
336
+ "@img/sharp-libvips-linux-riscv64": "1.2.4"
337
+ }
338
+ },
339
+ "node_modules/@img/sharp-linux-s390x": {
340
+ "version": "0.34.5",
341
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.34.5.tgz",
342
+ "integrity": "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==",
343
+ "cpu": [
344
+ "s390x"
345
+ ],
346
+ "license": "Apache-2.0",
347
+ "optional": true,
348
+ "os": [
349
+ "linux"
350
+ ],
351
+ "engines": {
352
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
353
+ },
354
+ "funding": {
355
+ "url": "https://opencollective.com/libvips"
356
+ },
357
+ "optionalDependencies": {
358
+ "@img/sharp-libvips-linux-s390x": "1.2.4"
359
+ }
360
+ },
361
+ "node_modules/@img/sharp-linux-x64": {
362
+ "version": "0.34.5",
363
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.34.5.tgz",
364
+ "integrity": "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==",
365
+ "cpu": [
366
+ "x64"
367
+ ],
368
+ "license": "Apache-2.0",
369
+ "optional": true,
370
+ "os": [
371
+ "linux"
372
+ ],
373
+ "engines": {
374
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
375
+ },
376
+ "funding": {
377
+ "url": "https://opencollective.com/libvips"
378
+ },
379
+ "optionalDependencies": {
380
+ "@img/sharp-libvips-linux-x64": "1.2.4"
381
+ }
382
+ },
383
+ "node_modules/@img/sharp-linuxmusl-arm64": {
384
+ "version": "0.34.5",
385
+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.34.5.tgz",
386
+ "integrity": "sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==",
387
+ "cpu": [
388
+ "arm64"
389
+ ],
390
+ "license": "Apache-2.0",
391
+ "optional": true,
392
+ "os": [
393
+ "linux"
394
+ ],
395
+ "engines": {
396
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
397
+ },
398
+ "funding": {
399
+ "url": "https://opencollective.com/libvips"
400
+ },
401
+ "optionalDependencies": {
402
+ "@img/sharp-libvips-linuxmusl-arm64": "1.2.4"
403
+ }
404
+ },
405
+ "node_modules/@img/sharp-linuxmusl-x64": {
406
+ "version": "0.34.5",
407
+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.34.5.tgz",
408
+ "integrity": "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==",
409
+ "cpu": [
410
+ "x64"
411
+ ],
412
+ "license": "Apache-2.0",
413
+ "optional": true,
414
+ "os": [
415
+ "linux"
416
+ ],
417
+ "engines": {
418
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
419
+ },
420
+ "funding": {
421
+ "url": "https://opencollective.com/libvips"
422
+ },
423
+ "optionalDependencies": {
424
+ "@img/sharp-libvips-linuxmusl-x64": "1.2.4"
425
+ }
426
+ },
427
+ "node_modules/@img/sharp-wasm32": {
428
+ "version": "0.34.5",
429
+ "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.34.5.tgz",
430
+ "integrity": "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==",
431
+ "cpu": [
432
+ "wasm32"
433
+ ],
434
+ "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",
435
+ "optional": true,
436
+ "dependencies": {
437
+ "@emnapi/runtime": "^1.7.0"
438
+ },
439
+ "engines": {
440
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
441
+ },
442
+ "funding": {
443
+ "url": "https://opencollective.com/libvips"
444
+ }
445
+ },
446
+ "node_modules/@img/sharp-win32-arm64": {
447
+ "version": "0.34.5",
448
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.34.5.tgz",
449
+ "integrity": "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==",
450
+ "cpu": [
451
+ "arm64"
452
+ ],
453
+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
454
+ "optional": true,
455
+ "os": [
456
+ "win32"
457
+ ],
458
+ "engines": {
459
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
460
+ },
461
+ "funding": {
462
+ "url": "https://opencollective.com/libvips"
463
+ }
464
+ },
465
+ "node_modules/@img/sharp-win32-ia32": {
466
+ "version": "0.34.5",
467
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.34.5.tgz",
468
+ "integrity": "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==",
469
+ "cpu": [
470
+ "ia32"
471
+ ],
472
+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
473
+ "optional": true,
474
+ "os": [
475
+ "win32"
476
+ ],
477
+ "engines": {
478
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
479
+ },
480
+ "funding": {
481
+ "url": "https://opencollective.com/libvips"
482
+ }
483
+ },
484
+ "node_modules/@img/sharp-win32-x64": {
485
+ "version": "0.34.5",
486
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.5.tgz",
487
+ "integrity": "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==",
488
+ "cpu": [
489
+ "x64"
490
+ ],
491
+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
492
+ "optional": true,
493
+ "os": [
494
+ "win32"
495
+ ],
496
+ "engines": {
497
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
498
+ },
499
+ "funding": {
500
+ "url": "https://opencollective.com/libvips"
501
+ }
502
+ },
503
+ "node_modules/accepts": {
504
+ "version": "2.0.0",
505
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",
506
+ "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",
507
+ "license": "MIT",
508
+ "dependencies": {
509
+ "mime-types": "^3.0.0",
510
+ "negotiator": "^1.0.0"
511
+ },
512
+ "engines": {
513
+ "node": ">= 0.6"
514
+ }
515
+ },
516
+ "node_modules/accepts/node_modules/mime-db": {
517
+ "version": "1.54.0",
518
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",
519
+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
520
+ "license": "MIT",
521
+ "engines": {
522
+ "node": ">= 0.6"
523
+ }
524
+ },
525
+ "node_modules/accepts/node_modules/mime-types": {
526
+ "version": "3.0.2",
527
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",
528
+ "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",
529
+ "license": "MIT",
530
+ "dependencies": {
531
+ "mime-db": "^1.54.0"
532
+ },
533
+ "engines": {
534
+ "node": ">=18"
535
+ },
536
+ "funding": {
537
+ "type": "opencollective",
538
+ "url": "https://opencollective.com/express"
539
+ }
540
+ },
541
+ "node_modules/ansi-escapes": {
542
+ "version": "1.4.0",
543
+ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.4.0.tgz",
544
+ "integrity": "sha512-wiXutNjDUlNEDWHcYH3jtZUhd3c4/VojassD8zHdHCY13xbZy2XbW+NKQwA0tWGBVzDA9qEzYwfoSsWmviidhw==",
545
+ "license": "MIT",
546
+ "engines": {
547
+ "node": ">=0.10.0"
548
+ }
549
+ },
550
+ "node_modules/ansi-regex": {
551
+ "version": "2.1.1",
552
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
553
+ "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==",
554
+ "license": "MIT",
555
+ "engines": {
556
+ "node": ">=0.10.0"
557
+ }
558
+ },
559
+ "node_modules/ansi-styles": {
560
+ "version": "2.2.1",
561
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
562
+ "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==",
563
+ "license": "MIT",
564
+ "engines": {
565
+ "node": ">=0.10.0"
566
+ }
567
+ },
568
+ "node_modules/async-mutex": {
569
+ "version": "0.3.2",
570
+ "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.3.2.tgz",
571
+ "integrity": "sha512-HuTK7E7MT7jZEh1P9GtRW9+aTWiDWWi9InbZ5hjxrnRa39KS4BW04+xLBhYNS2aXhHUIKZSw3gj4Pn1pj+qGAA==",
572
+ "license": "MIT",
573
+ "dependencies": {
574
+ "tslib": "^2.3.1"
575
+ }
576
+ },
577
+ "node_modules/asynckit": {
578
+ "version": "0.4.0",
579
+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
580
+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
581
+ "license": "MIT"
582
+ },
583
+ "node_modules/axios": {
584
+ "version": "1.15.0",
585
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.15.0.tgz",
586
+ "integrity": "sha512-wWyJDlAatxk30ZJer+GeCWS209sA42X+N5jU2jy6oHTp7ufw8uzUTVFBX9+wTfAlhiJXGS0Bq7X6efruWjuK9Q==",
587
+ "license": "MIT",
588
+ "dependencies": {
589
+ "follow-redirects": "^1.15.11",
590
+ "form-data": "^4.0.5",
591
+ "proxy-from-env": "^2.1.0"
592
+ }
593
+ },
594
+ "node_modules/babel-runtime": {
595
+ "version": "6.26.0",
596
+ "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz",
597
+ "integrity": "sha512-ITKNuq2wKlW1fJg9sSW52eepoYgZBggvOAHC0u/CYu/qxQ9EVzThCgR69BnSXLHjy2f7SY5zaQ4yt7H9ZVxY2g==",
598
+ "license": "MIT",
599
+ "dependencies": {
600
+ "core-js": "^2.4.0",
601
+ "regenerator-runtime": "^0.11.0"
602
+ }
603
+ },
604
+ "node_modules/babel-runtime/node_modules/regenerator-runtime": {
605
+ "version": "0.11.1",
606
+ "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz",
607
+ "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==",
608
+ "license": "MIT"
609
+ },
610
+ "node_modules/base64-js": {
611
+ "version": "1.5.1",
612
+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
613
+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
614
+ "funding": [
615
+ {
616
+ "type": "github",
617
+ "url": "https://github.com/sponsors/feross"
618
+ },
619
+ {
620
+ "type": "patreon",
621
+ "url": "https://www.patreon.com/feross"
622
+ },
623
+ {
624
+ "type": "consulting",
625
+ "url": "https://feross.org/support"
626
+ }
627
+ ],
628
+ "license": "MIT"
629
+ },
630
+ "node_modules/big-integer": {
631
+ "version": "1.6.52",
632
+ "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz",
633
+ "integrity": "sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==",
634
+ "license": "Unlicense",
635
+ "engines": {
636
+ "node": ">=0.6"
637
+ }
638
+ },
639
+ "node_modules/bmp-js": {
640
+ "version": "0.1.0",
641
+ "resolved": "https://registry.npmjs.org/bmp-js/-/bmp-js-0.1.0.tgz",
642
+ "integrity": "sha512-vHdS19CnY3hwiNdkaqk93DvjVLfbEcI8mys4UjuWrlX1haDmroo8o4xCzh4wD6DGV6HxRCyauwhHRqMTfERtjw==",
643
+ "license": "MIT"
644
+ },
645
+ "node_modules/body-parser": {
646
+ "version": "2.2.2",
647
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.2.tgz",
648
+ "integrity": "sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA==",
649
+ "license": "MIT",
650
+ "dependencies": {
651
+ "bytes": "^3.1.2",
652
+ "content-type": "^1.0.5",
653
+ "debug": "^4.4.3",
654
+ "http-errors": "^2.0.0",
655
+ "iconv-lite": "^0.7.0",
656
+ "on-finished": "^2.4.1",
657
+ "qs": "^6.14.1",
658
+ "raw-body": "^3.0.1",
659
+ "type-is": "^2.0.1"
660
+ },
661
+ "engines": {
662
+ "node": ">=18"
663
+ },
664
+ "funding": {
665
+ "type": "opencollective",
666
+ "url": "https://opencollective.com/express"
667
+ }
668
+ },
669
+ "node_modules/buffer": {
670
+ "version": "6.0.3",
671
+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz",
672
+ "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==",
673
+ "funding": [
674
+ {
675
+ "type": "github",
676
+ "url": "https://github.com/sponsors/feross"
677
+ },
678
+ {
679
+ "type": "patreon",
680
+ "url": "https://www.patreon.com/feross"
681
+ },
682
+ {
683
+ "type": "consulting",
684
+ "url": "https://feross.org/support"
685
+ }
686
+ ],
687
+ "license": "MIT",
688
+ "dependencies": {
689
+ "base64-js": "^1.3.1",
690
+ "ieee754": "^1.2.1"
691
+ }
692
+ },
693
+ "node_modules/bufferutil": {
694
+ "version": "4.1.0",
695
+ "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.1.0.tgz",
696
+ "integrity": "sha512-ZMANVnAixE6AWWnPzlW2KpUrxhm9woycYvPOo67jWHyFowASTEd9s+QN1EIMsSDtwhIxN4sWE1jotpuDUIgyIw==",
697
+ "hasInstallScript": true,
698
+ "license": "MIT",
699
+ "dependencies": {
700
+ "node-gyp-build": "^4.3.0"
701
+ },
702
+ "engines": {
703
+ "node": ">=6.14.2"
704
+ }
705
+ },
706
+ "node_modules/bytes": {
707
+ "version": "3.1.2",
708
+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
709
+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
710
+ "license": "MIT",
711
+ "engines": {
712
+ "node": ">= 0.8"
713
+ }
714
+ },
715
+ "node_modules/call-bind-apply-helpers": {
716
+ "version": "1.0.2",
717
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
718
+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
719
+ "license": "MIT",
720
+ "dependencies": {
721
+ "es-errors": "^1.3.0",
722
+ "function-bind": "^1.1.2"
723
+ },
724
+ "engines": {
725
+ "node": ">= 0.4"
726
+ }
727
+ },
728
+ "node_modules/call-bound": {
729
+ "version": "1.0.4",
730
+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
731
+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
732
+ "license": "MIT",
733
+ "dependencies": {
734
+ "call-bind-apply-helpers": "^1.0.2",
735
+ "get-intrinsic": "^1.3.0"
736
+ },
737
+ "engines": {
738
+ "node": ">= 0.4"
739
+ },
740
+ "funding": {
741
+ "url": "https://github.com/sponsors/ljharb"
742
+ }
743
+ },
744
+ "node_modules/chalk": {
745
+ "version": "1.1.3",
746
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
747
+ "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==",
748
+ "license": "MIT",
749
+ "dependencies": {
750
+ "ansi-styles": "^2.2.1",
751
+ "escape-string-regexp": "^1.0.2",
752
+ "has-ansi": "^2.0.0",
753
+ "strip-ansi": "^3.0.0",
754
+ "supports-color": "^2.0.0"
755
+ },
756
+ "engines": {
757
+ "node": ">=0.10.0"
758
+ }
759
+ },
760
+ "node_modules/check-word": {
761
+ "version": "1.1.0",
762
+ "resolved": "https://registry.npmjs.org/check-word/-/check-word-1.1.0.tgz",
763
+ "integrity": "sha512-lkPjTvHn+3gPQ+sA2Z3QrV9fNqX2NXpvxQIxiG7pQaPQ8NhPR4dUmpHLRlCbqrP5Wo0oAzVVh7MKhwGECcvhyQ==",
764
+ "license": "GPL 2.0"
765
+ },
766
+ "node_modules/cli-cursor": {
767
+ "version": "1.0.2",
768
+ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz",
769
+ "integrity": "sha512-25tABq090YNKkF6JH7lcwO0zFJTRke4Jcq9iX2nr/Sz0Cjjv4gckmwlW6Ty/aoyFd6z3ysR2hMGC2GFugmBo6A==",
770
+ "license": "MIT",
771
+ "dependencies": {
772
+ "restore-cursor": "^1.0.1"
773
+ },
774
+ "engines": {
775
+ "node": ">=0.10.0"
776
+ }
777
+ },
778
+ "node_modules/cli-width": {
779
+ "version": "2.2.1",
780
+ "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.1.tgz",
781
+ "integrity": "sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw==",
782
+ "license": "ISC"
783
+ },
784
+ "node_modules/code-point-at": {
785
+ "version": "1.1.0",
786
+ "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
787
+ "integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==",
788
+ "license": "MIT",
789
+ "engines": {
790
+ "node": ">=0.10.0"
791
+ }
792
+ },
793
+ "node_modules/combined-stream": {
794
+ "version": "1.0.8",
795
+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
796
+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
797
+ "license": "MIT",
798
+ "dependencies": {
799
+ "delayed-stream": "~1.0.0"
800
+ },
801
+ "engines": {
802
+ "node": ">= 0.8"
803
+ }
804
+ },
805
+ "node_modules/content-disposition": {
806
+ "version": "1.1.0",
807
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.1.0.tgz",
808
+ "integrity": "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==",
809
+ "license": "MIT",
810
+ "engines": {
811
+ "node": ">=18"
812
+ },
813
+ "funding": {
814
+ "type": "opencollective",
815
+ "url": "https://opencollective.com/express"
816
+ }
817
+ },
818
+ "node_modules/content-type": {
819
+ "version": "1.0.5",
820
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
821
+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
822
+ "license": "MIT",
823
+ "engines": {
824
+ "node": ">= 0.6"
825
+ }
826
+ },
827
+ "node_modules/cookie": {
828
+ "version": "0.7.2",
829
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
830
+ "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
831
+ "license": "MIT",
832
+ "engines": {
833
+ "node": ">= 0.6"
834
+ }
835
+ },
836
+ "node_modules/cookie-signature": {
837
+ "version": "1.2.2",
838
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz",
839
+ "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==",
840
+ "license": "MIT",
841
+ "engines": {
842
+ "node": ">=6.6.0"
843
+ }
844
+ },
845
+ "node_modules/core-js": {
846
+ "version": "2.6.12",
847
+ "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz",
848
+ "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==",
849
+ "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.",
850
+ "hasInstallScript": true,
851
+ "license": "MIT"
852
+ },
853
+ "node_modules/d": {
854
+ "version": "1.0.2",
855
+ "resolved": "https://registry.npmjs.org/d/-/d-1.0.2.tgz",
856
+ "integrity": "sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw==",
857
+ "license": "ISC",
858
+ "dependencies": {
859
+ "es5-ext": "^0.10.64",
860
+ "type": "^2.7.2"
861
+ },
862
+ "engines": {
863
+ "node": ">=0.12"
864
+ }
865
+ },
866
+ "node_modules/debug": {
867
+ "version": "4.4.3",
868
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
869
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
870
+ "license": "MIT",
871
+ "dependencies": {
872
+ "ms": "^2.1.3"
873
+ },
874
+ "engines": {
875
+ "node": ">=6.0"
876
+ },
877
+ "peerDependenciesMeta": {
878
+ "supports-color": {
879
+ "optional": true
880
+ }
881
+ }
882
+ },
883
+ "node_modules/delayed-stream": {
884
+ "version": "1.0.0",
885
+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
886
+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
887
+ "license": "MIT",
888
+ "engines": {
889
+ "node": ">=0.4.0"
890
+ }
891
+ },
892
+ "node_modules/depd": {
893
+ "version": "2.0.0",
894
+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
895
+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
896
+ "license": "MIT",
897
+ "engines": {
898
+ "node": ">= 0.8"
899
+ }
900
+ },
901
+ "node_modules/detect-libc": {
902
+ "version": "2.1.2",
903
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
904
+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
905
+ "license": "Apache-2.0",
906
+ "engines": {
907
+ "node": ">=8"
908
+ }
909
+ },
910
+ "node_modules/dom-serializer": {
911
+ "version": "1.4.1",
912
+ "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz",
913
+ "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==",
914
+ "license": "MIT",
915
+ "dependencies": {
916
+ "domelementtype": "^2.0.1",
917
+ "domhandler": "^4.2.0",
918
+ "entities": "^2.0.0"
919
+ },
920
+ "funding": {
921
+ "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"
922
+ }
923
+ },
924
+ "node_modules/domelementtype": {
925
+ "version": "2.3.0",
926
+ "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz",
927
+ "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==",
928
+ "funding": [
929
+ {
930
+ "type": "github",
931
+ "url": "https://github.com/sponsors/fb55"
932
+ }
933
+ ],
934
+ "license": "BSD-2-Clause"
935
+ },
936
+ "node_modules/domhandler": {
937
+ "version": "4.3.1",
938
+ "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz",
939
+ "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==",
940
+ "license": "BSD-2-Clause",
941
+ "dependencies": {
942
+ "domelementtype": "^2.2.0"
943
+ },
944
+ "engines": {
945
+ "node": ">= 4"
946
+ },
947
+ "funding": {
948
+ "url": "https://github.com/fb55/domhandler?sponsor=1"
949
+ }
950
+ },
951
+ "node_modules/domutils": {
952
+ "version": "2.8.0",
953
+ "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz",
954
+ "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==",
955
+ "license": "BSD-2-Clause",
956
+ "dependencies": {
957
+ "dom-serializer": "^1.0.1",
958
+ "domelementtype": "^2.2.0",
959
+ "domhandler": "^4.2.0"
960
+ },
961
+ "funding": {
962
+ "url": "https://github.com/fb55/domutils?sponsor=1"
963
+ }
964
+ },
965
+ "node_modules/dotenv": {
966
+ "version": "17.4.2",
967
+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz",
968
+ "integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==",
969
+ "license": "BSD-2-Clause",
970
+ "engines": {
971
+ "node": ">=12"
972
+ },
973
+ "funding": {
974
+ "url": "https://dotenvx.com"
975
+ }
976
+ },
977
+ "node_modules/dunder-proto": {
978
+ "version": "1.0.1",
979
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
980
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
981
+ "license": "MIT",
982
+ "dependencies": {
983
+ "call-bind-apply-helpers": "^1.0.1",
984
+ "es-errors": "^1.3.0",
985
+ "gopd": "^1.2.0"
986
+ },
987
+ "engines": {
988
+ "node": ">= 0.4"
989
+ }
990
+ },
991
+ "node_modules/ee-first": {
992
+ "version": "1.1.1",
993
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
994
+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
995
+ "license": "MIT"
996
+ },
997
+ "node_modules/encodeurl": {
998
+ "version": "2.0.0",
999
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
1000
+ "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
1001
+ "license": "MIT",
1002
+ "engines": {
1003
+ "node": ">= 0.8"
1004
+ }
1005
+ },
1006
+ "node_modules/entities": {
1007
+ "version": "2.2.0",
1008
+ "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz",
1009
+ "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==",
1010
+ "license": "BSD-2-Clause",
1011
+ "funding": {
1012
+ "url": "https://github.com/fb55/entities?sponsor=1"
1013
+ }
1014
+ },
1015
+ "node_modules/es-define-property": {
1016
+ "version": "1.0.1",
1017
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
1018
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
1019
+ "license": "MIT",
1020
+ "engines": {
1021
+ "node": ">= 0.4"
1022
+ }
1023
+ },
1024
+ "node_modules/es-errors": {
1025
+ "version": "1.3.0",
1026
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
1027
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
1028
+ "license": "MIT",
1029
+ "engines": {
1030
+ "node": ">= 0.4"
1031
+ }
1032
+ },
1033
+ "node_modules/es-object-atoms": {
1034
+ "version": "1.1.1",
1035
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
1036
+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
1037
+ "license": "MIT",
1038
+ "dependencies": {
1039
+ "es-errors": "^1.3.0"
1040
+ },
1041
+ "engines": {
1042
+ "node": ">= 0.4"
1043
+ }
1044
+ },
1045
+ "node_modules/es-set-tostringtag": {
1046
+ "version": "2.1.0",
1047
+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
1048
+ "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
1049
+ "license": "MIT",
1050
+ "dependencies": {
1051
+ "es-errors": "^1.3.0",
1052
+ "get-intrinsic": "^1.2.6",
1053
+ "has-tostringtag": "^1.0.2",
1054
+ "hasown": "^2.0.2"
1055
+ },
1056
+ "engines": {
1057
+ "node": ">= 0.4"
1058
+ }
1059
+ },
1060
+ "node_modules/es5-ext": {
1061
+ "version": "0.10.64",
1062
+ "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz",
1063
+ "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==",
1064
+ "hasInstallScript": true,
1065
+ "license": "ISC",
1066
+ "dependencies": {
1067
+ "es6-iterator": "^2.0.3",
1068
+ "es6-symbol": "^3.1.3",
1069
+ "esniff": "^2.0.1",
1070
+ "next-tick": "^1.1.0"
1071
+ },
1072
+ "engines": {
1073
+ "node": ">=0.10"
1074
+ }
1075
+ },
1076
+ "node_modules/es6-iterator": {
1077
+ "version": "2.0.3",
1078
+ "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz",
1079
+ "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==",
1080
+ "license": "MIT",
1081
+ "dependencies": {
1082
+ "d": "1",
1083
+ "es5-ext": "^0.10.35",
1084
+ "es6-symbol": "^3.1.1"
1085
+ }
1086
+ },
1087
+ "node_modules/es6-symbol": {
1088
+ "version": "3.1.4",
1089
+ "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.4.tgz",
1090
+ "integrity": "sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg==",
1091
+ "license": "ISC",
1092
+ "dependencies": {
1093
+ "d": "^1.0.2",
1094
+ "ext": "^1.7.0"
1095
+ },
1096
+ "engines": {
1097
+ "node": ">=0.12"
1098
+ }
1099
+ },
1100
+ "node_modules/escape-html": {
1101
+ "version": "1.0.3",
1102
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
1103
+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
1104
+ "license": "MIT"
1105
+ },
1106
+ "node_modules/escape-string-regexp": {
1107
+ "version": "1.0.5",
1108
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
1109
+ "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",
1110
+ "license": "MIT",
1111
+ "engines": {
1112
+ "node": ">=0.8.0"
1113
+ }
1114
+ },
1115
+ "node_modules/esniff": {
1116
+ "version": "2.0.1",
1117
+ "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz",
1118
+ "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==",
1119
+ "license": "ISC",
1120
+ "dependencies": {
1121
+ "d": "^1.0.1",
1122
+ "es5-ext": "^0.10.62",
1123
+ "event-emitter": "^0.3.5",
1124
+ "type": "^2.7.2"
1125
+ },
1126
+ "engines": {
1127
+ "node": ">=0.10"
1128
+ }
1129
+ },
1130
+ "node_modules/etag": {
1131
+ "version": "1.8.1",
1132
+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
1133
+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
1134
+ "license": "MIT",
1135
+ "engines": {
1136
+ "node": ">= 0.6"
1137
+ }
1138
+ },
1139
+ "node_modules/event-emitter": {
1140
+ "version": "0.3.5",
1141
+ "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz",
1142
+ "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==",
1143
+ "license": "MIT",
1144
+ "dependencies": {
1145
+ "d": "1",
1146
+ "es5-ext": "~0.10.14"
1147
+ }
1148
+ },
1149
+ "node_modules/exit-hook": {
1150
+ "version": "1.1.1",
1151
+ "resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.1.tgz",
1152
+ "integrity": "sha512-MsG3prOVw1WtLXAZbM3KiYtooKR1LvxHh3VHsVtIy0uiUu8usxgB/94DP2HxtD/661lLdB6yzQ09lGJSQr6nkg==",
1153
+ "license": "MIT",
1154
+ "engines": {
1155
+ "node": ">=0.10.0"
1156
+ }
1157
+ },
1158
+ "node_modules/express": {
1159
+ "version": "5.2.1",
1160
+ "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz",
1161
+ "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",
1162
+ "license": "MIT",
1163
+ "dependencies": {
1164
+ "accepts": "^2.0.0",
1165
+ "body-parser": "^2.2.1",
1166
+ "content-disposition": "^1.0.0",
1167
+ "content-type": "^1.0.5",
1168
+ "cookie": "^0.7.1",
1169
+ "cookie-signature": "^1.2.1",
1170
+ "debug": "^4.4.0",
1171
+ "depd": "^2.0.0",
1172
+ "encodeurl": "^2.0.0",
1173
+ "escape-html": "^1.0.3",
1174
+ "etag": "^1.8.1",
1175
+ "finalhandler": "^2.1.0",
1176
+ "fresh": "^2.0.0",
1177
+ "http-errors": "^2.0.0",
1178
+ "merge-descriptors": "^2.0.0",
1179
+ "mime-types": "^3.0.0",
1180
+ "on-finished": "^2.4.1",
1181
+ "once": "^1.4.0",
1182
+ "parseurl": "^1.3.3",
1183
+ "proxy-addr": "^2.0.7",
1184
+ "qs": "^6.14.0",
1185
+ "range-parser": "^1.2.1",
1186
+ "router": "^2.2.0",
1187
+ "send": "^1.1.0",
1188
+ "serve-static": "^2.2.0",
1189
+ "statuses": "^2.0.1",
1190
+ "type-is": "^2.0.1",
1191
+ "vary": "^1.1.2"
1192
+ },
1193
+ "engines": {
1194
+ "node": ">= 18"
1195
+ },
1196
+ "funding": {
1197
+ "type": "opencollective",
1198
+ "url": "https://opencollective.com/express"
1199
+ }
1200
+ },
1201
+ "node_modules/express/node_modules/mime-db": {
1202
+ "version": "1.54.0",
1203
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",
1204
+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
1205
+ "license": "MIT",
1206
+ "engines": {
1207
+ "node": ">= 0.6"
1208
+ }
1209
+ },
1210
+ "node_modules/express/node_modules/mime-types": {
1211
+ "version": "3.0.2",
1212
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",
1213
+ "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",
1214
+ "license": "MIT",
1215
+ "dependencies": {
1216
+ "mime-db": "^1.54.0"
1217
+ },
1218
+ "engines": {
1219
+ "node": ">=18"
1220
+ },
1221
+ "funding": {
1222
+ "type": "opencollective",
1223
+ "url": "https://opencollective.com/express"
1224
+ }
1225
+ },
1226
+ "node_modules/ext": {
1227
+ "version": "1.7.0",
1228
+ "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz",
1229
+ "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==",
1230
+ "license": "ISC",
1231
+ "dependencies": {
1232
+ "type": "^2.7.2"
1233
+ }
1234
+ },
1235
+ "node_modules/figures": {
1236
+ "version": "1.7.0",
1237
+ "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz",
1238
+ "integrity": "sha512-UxKlfCRuCBxSXU4C6t9scbDyWZ4VlaFFdojKtzJuSkuOBQ5CNFum+zZXFwHjo+CxBC1t6zlYPgHIgFjL8ggoEQ==",
1239
+ "license": "MIT",
1240
+ "dependencies": {
1241
+ "escape-string-regexp": "^1.0.5",
1242
+ "object-assign": "^4.1.0"
1243
+ },
1244
+ "engines": {
1245
+ "node": ">=0.10.0"
1246
+ }
1247
+ },
1248
+ "node_modules/finalhandler": {
1249
+ "version": "2.1.1",
1250
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz",
1251
+ "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==",
1252
+ "license": "MIT",
1253
+ "dependencies": {
1254
+ "debug": "^4.4.0",
1255
+ "encodeurl": "^2.0.0",
1256
+ "escape-html": "^1.0.3",
1257
+ "on-finished": "^2.4.1",
1258
+ "parseurl": "^1.3.3",
1259
+ "statuses": "^2.0.1"
1260
+ },
1261
+ "engines": {
1262
+ "node": ">= 18.0.0"
1263
+ },
1264
+ "funding": {
1265
+ "type": "opencollective",
1266
+ "url": "https://opencollective.com/express"
1267
+ }
1268
+ },
1269
+ "node_modules/follow-redirects": {
1270
+ "version": "1.16.0",
1271
+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.0.tgz",
1272
+ "integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==",
1273
+ "funding": [
1274
+ {
1275
+ "type": "individual",
1276
+ "url": "https://github.com/sponsors/RubenVerborgh"
1277
+ }
1278
+ ],
1279
+ "license": "MIT",
1280
+ "engines": {
1281
+ "node": ">=4.0"
1282
+ },
1283
+ "peerDependenciesMeta": {
1284
+ "debug": {
1285
+ "optional": true
1286
+ }
1287
+ }
1288
+ },
1289
+ "node_modules/form-data": {
1290
+ "version": "4.0.5",
1291
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz",
1292
+ "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==",
1293
+ "license": "MIT",
1294
+ "dependencies": {
1295
+ "asynckit": "^0.4.0",
1296
+ "combined-stream": "^1.0.8",
1297
+ "es-set-tostringtag": "^2.1.0",
1298
+ "hasown": "^2.0.2",
1299
+ "mime-types": "^2.1.12"
1300
+ },
1301
+ "engines": {
1302
+ "node": ">= 6"
1303
+ }
1304
+ },
1305
+ "node_modules/forwarded": {
1306
+ "version": "0.2.0",
1307
+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
1308
+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
1309
+ "license": "MIT",
1310
+ "engines": {
1311
+ "node": ">= 0.6"
1312
+ }
1313
+ },
1314
+ "node_modules/fresh": {
1315
+ "version": "2.0.0",
1316
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz",
1317
+ "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",
1318
+ "license": "MIT",
1319
+ "engines": {
1320
+ "node": ">= 0.8"
1321
+ }
1322
+ },
1323
+ "node_modules/function-bind": {
1324
+ "version": "1.1.2",
1325
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
1326
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
1327
+ "license": "MIT",
1328
+ "funding": {
1329
+ "url": "https://github.com/sponsors/ljharb"
1330
+ }
1331
+ },
1332
+ "node_modules/get-intrinsic": {
1333
+ "version": "1.3.0",
1334
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
1335
+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
1336
+ "license": "MIT",
1337
+ "dependencies": {
1338
+ "call-bind-apply-helpers": "^1.0.2",
1339
+ "es-define-property": "^1.0.1",
1340
+ "es-errors": "^1.3.0",
1341
+ "es-object-atoms": "^1.1.1",
1342
+ "function-bind": "^1.1.2",
1343
+ "get-proto": "^1.0.1",
1344
+ "gopd": "^1.2.0",
1345
+ "has-symbols": "^1.1.0",
1346
+ "hasown": "^2.0.2",
1347
+ "math-intrinsics": "^1.1.0"
1348
+ },
1349
+ "engines": {
1350
+ "node": ">= 0.4"
1351
+ },
1352
+ "funding": {
1353
+ "url": "https://github.com/sponsors/ljharb"
1354
+ }
1355
+ },
1356
+ "node_modules/get-proto": {
1357
+ "version": "1.0.1",
1358
+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
1359
+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
1360
+ "license": "MIT",
1361
+ "dependencies": {
1362
+ "dunder-proto": "^1.0.1",
1363
+ "es-object-atoms": "^1.0.0"
1364
+ },
1365
+ "engines": {
1366
+ "node": ">= 0.4"
1367
+ }
1368
+ },
1369
+ "node_modules/gopd": {
1370
+ "version": "1.2.0",
1371
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
1372
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
1373
+ "license": "MIT",
1374
+ "engines": {
1375
+ "node": ">= 0.4"
1376
+ },
1377
+ "funding": {
1378
+ "url": "https://github.com/sponsors/ljharb"
1379
+ }
1380
+ },
1381
+ "node_modules/graceful-fs": {
1382
+ "version": "4.2.11",
1383
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
1384
+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
1385
+ "license": "ISC"
1386
+ },
1387
+ "node_modules/has-ansi": {
1388
+ "version": "2.0.0",
1389
+ "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz",
1390
+ "integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==",
1391
+ "license": "MIT",
1392
+ "dependencies": {
1393
+ "ansi-regex": "^2.0.0"
1394
+ },
1395
+ "engines": {
1396
+ "node": ">=0.10.0"
1397
+ }
1398
+ },
1399
+ "node_modules/has-symbols": {
1400
+ "version": "1.1.0",
1401
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
1402
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
1403
+ "license": "MIT",
1404
+ "engines": {
1405
+ "node": ">= 0.4"
1406
+ },
1407
+ "funding": {
1408
+ "url": "https://github.com/sponsors/ljharb"
1409
+ }
1410
+ },
1411
+ "node_modules/has-tostringtag": {
1412
+ "version": "1.0.2",
1413
+ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
1414
+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
1415
+ "license": "MIT",
1416
+ "dependencies": {
1417
+ "has-symbols": "^1.0.3"
1418
+ },
1419
+ "engines": {
1420
+ "node": ">= 0.4"
1421
+ },
1422
+ "funding": {
1423
+ "url": "https://github.com/sponsors/ljharb"
1424
+ }
1425
+ },
1426
+ "node_modules/hasown": {
1427
+ "version": "2.0.2",
1428
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
1429
+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
1430
+ "license": "MIT",
1431
+ "dependencies": {
1432
+ "function-bind": "^1.1.2"
1433
+ },
1434
+ "engines": {
1435
+ "node": ">= 0.4"
1436
+ }
1437
+ },
1438
+ "node_modules/htmlparser2": {
1439
+ "version": "6.1.0",
1440
+ "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz",
1441
+ "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==",
1442
+ "funding": [
1443
+ "https://github.com/fb55/htmlparser2?sponsor=1",
1444
+ {
1445
+ "type": "github",
1446
+ "url": "https://github.com/sponsors/fb55"
1447
+ }
1448
+ ],
1449
+ "license": "MIT",
1450
+ "dependencies": {
1451
+ "domelementtype": "^2.0.1",
1452
+ "domhandler": "^4.0.0",
1453
+ "domutils": "^2.5.2",
1454
+ "entities": "^2.0.0"
1455
+ }
1456
+ },
1457
+ "node_modules/http-errors": {
1458
+ "version": "2.0.1",
1459
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
1460
+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
1461
+ "license": "MIT",
1462
+ "dependencies": {
1463
+ "depd": "~2.0.0",
1464
+ "inherits": "~2.0.4",
1465
+ "setprototypeof": "~1.2.0",
1466
+ "statuses": "~2.0.2",
1467
+ "toidentifier": "~1.0.1"
1468
+ },
1469
+ "engines": {
1470
+ "node": ">= 0.8"
1471
+ },
1472
+ "funding": {
1473
+ "type": "opencollective",
1474
+ "url": "https://opencollective.com/express"
1475
+ }
1476
+ },
1477
+ "node_modules/iconv-lite": {
1478
+ "version": "0.7.2",
1479
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz",
1480
+ "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==",
1481
+ "license": "MIT",
1482
+ "dependencies": {
1483
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
1484
+ },
1485
+ "engines": {
1486
+ "node": ">=0.10.0"
1487
+ },
1488
+ "funding": {
1489
+ "type": "opencollective",
1490
+ "url": "https://opencollective.com/express"
1491
+ }
1492
+ },
1493
+ "node_modules/idb-keyval": {
1494
+ "version": "6.2.2",
1495
+ "resolved": "https://registry.npmjs.org/idb-keyval/-/idb-keyval-6.2.2.tgz",
1496
+ "integrity": "sha512-yjD9nARJ/jb1g+CvD0tlhUHOrJ9Sy0P8T9MF3YaLlHnSRpwPfpTX0XIvpmw3gAJUmEu3FiICLBDPXVwyEvrleg==",
1497
+ "license": "Apache-2.0"
1498
+ },
1499
+ "node_modules/ieee754": {
1500
+ "version": "1.2.1",
1501
+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
1502
+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
1503
+ "funding": [
1504
+ {
1505
+ "type": "github",
1506
+ "url": "https://github.com/sponsors/feross"
1507
+ },
1508
+ {
1509
+ "type": "patreon",
1510
+ "url": "https://www.patreon.com/feross"
1511
+ },
1512
+ {
1513
+ "type": "consulting",
1514
+ "url": "https://feross.org/support"
1515
+ }
1516
+ ],
1517
+ "license": "BSD-3-Clause"
1518
+ },
1519
+ "node_modules/imurmurhash": {
1520
+ "version": "0.1.4",
1521
+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
1522
+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
1523
+ "license": "MIT",
1524
+ "engines": {
1525
+ "node": ">=0.8.19"
1526
+ }
1527
+ },
1528
+ "node_modules/inherits": {
1529
+ "version": "2.0.4",
1530
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
1531
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
1532
+ "license": "ISC"
1533
+ },
1534
+ "node_modules/input": {
1535
+ "version": "1.0.1",
1536
+ "resolved": "https://registry.npmjs.org/input/-/input-1.0.1.tgz",
1537
+ "integrity": "sha512-5DKQKQ7Nm/CaPGYKF74uUvk5ftC3S04fLYWcDrNG2rOVhhRgB4E2J8JNb7AAh+RlQ/954ukas4bEbrRQ3/kPGA==",
1538
+ "license": "MIT",
1539
+ "dependencies": {
1540
+ "babel-runtime": "^6.6.1",
1541
+ "chalk": "^1.1.1",
1542
+ "inquirer": "^0.12.0",
1543
+ "lodash": "^4.6.1"
1544
+ },
1545
+ "engines": {
1546
+ "node": ">=0.12"
1547
+ }
1548
+ },
1549
+ "node_modules/inquirer": {
1550
+ "version": "0.12.0",
1551
+ "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-0.12.0.tgz",
1552
+ "integrity": "sha512-bOetEz5+/WpgaW4D1NYOk1aD+JCqRjqu/FwRFgnIfiP7FC/zinsrfyO1vlS3nyH/R7S0IH3BIHBu4DBIDSqiGQ==",
1553
+ "license": "MIT",
1554
+ "dependencies": {
1555
+ "ansi-escapes": "^1.1.0",
1556
+ "ansi-regex": "^2.0.0",
1557
+ "chalk": "^1.0.0",
1558
+ "cli-cursor": "^1.0.1",
1559
+ "cli-width": "^2.0.0",
1560
+ "figures": "^1.3.5",
1561
+ "lodash": "^4.3.0",
1562
+ "readline2": "^1.0.1",
1563
+ "run-async": "^0.1.0",
1564
+ "rx-lite": "^3.1.2",
1565
+ "string-width": "^1.0.1",
1566
+ "strip-ansi": "^3.0.0",
1567
+ "through": "^2.3.6"
1568
+ }
1569
+ },
1570
+ "node_modules/ip-address": {
1571
+ "version": "10.2.0",
1572
+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.2.0.tgz",
1573
+ "integrity": "sha512-/+S6j4E9AHvW9SWMSEY9Xfy66O5PWvVEJ08O0y5JGyEKQpojb0K0GKpz/v5HJ/G0vi3D2sjGK78119oXZeE0qA==",
1574
+ "license": "MIT",
1575
+ "engines": {
1576
+ "node": ">= 12"
1577
+ }
1578
+ },
1579
+ "node_modules/ipaddr.js": {
1580
+ "version": "1.9.1",
1581
+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
1582
+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
1583
+ "license": "MIT",
1584
+ "engines": {
1585
+ "node": ">= 0.10"
1586
+ }
1587
+ },
1588
+ "node_modules/is-electron": {
1589
+ "version": "2.2.2",
1590
+ "resolved": "https://registry.npmjs.org/is-electron/-/is-electron-2.2.2.tgz",
1591
+ "integrity": "sha512-FO/Rhvz5tuw4MCWkpMzHFKWD2LsfHzIb7i6MdPYZ/KW7AlxawyLkqdy+jPZP1WubqEADE3O4FUENlJHDfQASRg==",
1592
+ "license": "MIT"
1593
+ },
1594
+ "node_modules/is-fullwidth-code-point": {
1595
+ "version": "1.0.0",
1596
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
1597
+ "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==",
1598
+ "license": "MIT",
1599
+ "dependencies": {
1600
+ "number-is-nan": "^1.0.0"
1601
+ },
1602
+ "engines": {
1603
+ "node": ">=0.10.0"
1604
+ }
1605
+ },
1606
+ "node_modules/is-promise": {
1607
+ "version": "4.0.0",
1608
+ "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz",
1609
+ "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==",
1610
+ "license": "MIT"
1611
+ },
1612
+ "node_modules/is-typedarray": {
1613
+ "version": "1.0.0",
1614
+ "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
1615
+ "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==",
1616
+ "license": "MIT"
1617
+ },
1618
+ "node_modules/is-url": {
1619
+ "version": "1.2.4",
1620
+ "resolved": "https://registry.npmjs.org/is-url/-/is-url-1.2.4.tgz",
1621
+ "integrity": "sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww==",
1622
+ "license": "MIT"
1623
+ },
1624
+ "node_modules/lodash": {
1625
+ "version": "4.18.1",
1626
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz",
1627
+ "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==",
1628
+ "license": "MIT"
1629
+ },
1630
+ "node_modules/math-intrinsics": {
1631
+ "version": "1.1.0",
1632
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
1633
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
1634
+ "license": "MIT",
1635
+ "engines": {
1636
+ "node": ">= 0.4"
1637
+ }
1638
+ },
1639
+ "node_modules/media-typer": {
1640
+ "version": "1.1.0",
1641
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz",
1642
+ "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",
1643
+ "license": "MIT",
1644
+ "engines": {
1645
+ "node": ">= 0.8"
1646
+ }
1647
+ },
1648
+ "node_modules/merge-descriptors": {
1649
+ "version": "2.0.0",
1650
+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz",
1651
+ "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",
1652
+ "license": "MIT",
1653
+ "engines": {
1654
+ "node": ">=18"
1655
+ },
1656
+ "funding": {
1657
+ "url": "https://github.com/sponsors/sindresorhus"
1658
+ }
1659
+ },
1660
+ "node_modules/mime": {
1661
+ "version": "3.0.0",
1662
+ "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz",
1663
+ "integrity": "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==",
1664
+ "license": "MIT",
1665
+ "bin": {
1666
+ "mime": "cli.js"
1667
+ },
1668
+ "engines": {
1669
+ "node": ">=10.0.0"
1670
+ }
1671
+ },
1672
+ "node_modules/mime-db": {
1673
+ "version": "1.52.0",
1674
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
1675
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
1676
+ "license": "MIT",
1677
+ "engines": {
1678
+ "node": ">= 0.6"
1679
+ }
1680
+ },
1681
+ "node_modules/mime-types": {
1682
+ "version": "2.1.35",
1683
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
1684
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
1685
+ "license": "MIT",
1686
+ "dependencies": {
1687
+ "mime-db": "1.52.0"
1688
+ },
1689
+ "engines": {
1690
+ "node": ">= 0.6"
1691
+ }
1692
+ },
1693
+ "node_modules/ms": {
1694
+ "version": "2.1.3",
1695
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
1696
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
1697
+ "license": "MIT"
1698
+ },
1699
+ "node_modules/mute-stream": {
1700
+ "version": "0.0.5",
1701
+ "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.5.tgz",
1702
+ "integrity": "sha512-EbrziT4s8cWPmzr47eYVW3wimS4HsvlnV5ri1xw1aR6JQo/OrJX5rkl32K/QQHdxeabJETtfeaROGhd8W7uBgg==",
1703
+ "license": "ISC"
1704
+ },
1705
+ "node_modules/negotiator": {
1706
+ "version": "1.0.0",
1707
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",
1708
+ "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",
1709
+ "license": "MIT",
1710
+ "engines": {
1711
+ "node": ">= 0.6"
1712
+ }
1713
+ },
1714
+ "node_modules/next-tick": {
1715
+ "version": "1.1.0",
1716
+ "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz",
1717
+ "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==",
1718
+ "license": "ISC"
1719
+ },
1720
+ "node_modules/node-fetch": {
1721
+ "version": "2.7.0",
1722
+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
1723
+ "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
1724
+ "license": "MIT",
1725
+ "dependencies": {
1726
+ "whatwg-url": "^5.0.0"
1727
+ },
1728
+ "engines": {
1729
+ "node": "4.x || >=6.0.0"
1730
+ },
1731
+ "peerDependencies": {
1732
+ "encoding": "^0.1.0"
1733
+ },
1734
+ "peerDependenciesMeta": {
1735
+ "encoding": {
1736
+ "optional": true
1737
+ }
1738
+ }
1739
+ },
1740
+ "node_modules/node-gyp-build": {
1741
+ "version": "4.8.4",
1742
+ "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.4.tgz",
1743
+ "integrity": "sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==",
1744
+ "license": "MIT",
1745
+ "bin": {
1746
+ "node-gyp-build": "bin.js",
1747
+ "node-gyp-build-optional": "optional.js",
1748
+ "node-gyp-build-test": "build-test.js"
1749
+ }
1750
+ },
1751
+ "node_modules/node-localstorage": {
1752
+ "version": "2.2.1",
1753
+ "resolved": "https://registry.npmjs.org/node-localstorage/-/node-localstorage-2.2.1.tgz",
1754
+ "integrity": "sha512-vv8fJuOUCCvSPjDjBLlMqYMHob4aGjkmrkaE42/mZr0VT+ZAU10jRF8oTnX9+pgU9/vYJ8P7YT3Vd6ajkmzSCw==",
1755
+ "license": "MIT",
1756
+ "dependencies": {
1757
+ "write-file-atomic": "^1.1.4"
1758
+ },
1759
+ "engines": {
1760
+ "node": ">=0.12"
1761
+ }
1762
+ },
1763
+ "node_modules/number-is-nan": {
1764
+ "version": "1.0.1",
1765
+ "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
1766
+ "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==",
1767
+ "license": "MIT",
1768
+ "engines": {
1769
+ "node": ">=0.10.0"
1770
+ }
1771
+ },
1772
+ "node_modules/object-assign": {
1773
+ "version": "4.1.1",
1774
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
1775
+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
1776
+ "license": "MIT",
1777
+ "engines": {
1778
+ "node": ">=0.10.0"
1779
+ }
1780
+ },
1781
+ "node_modules/object-inspect": {
1782
+ "version": "1.13.4",
1783
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
1784
+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
1785
+ "license": "MIT",
1786
+ "engines": {
1787
+ "node": ">= 0.4"
1788
+ },
1789
+ "funding": {
1790
+ "url": "https://github.com/sponsors/ljharb"
1791
+ }
1792
+ },
1793
+ "node_modules/on-finished": {
1794
+ "version": "2.4.1",
1795
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
1796
+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
1797
+ "license": "MIT",
1798
+ "dependencies": {
1799
+ "ee-first": "1.1.1"
1800
+ },
1801
+ "engines": {
1802
+ "node": ">= 0.8"
1803
+ }
1804
+ },
1805
+ "node_modules/once": {
1806
+ "version": "1.4.0",
1807
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
1808
+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
1809
+ "license": "ISC",
1810
+ "dependencies": {
1811
+ "wrappy": "1"
1812
+ }
1813
+ },
1814
+ "node_modules/onetime": {
1815
+ "version": "1.1.0",
1816
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
1817
+ "integrity": "sha512-GZ+g4jayMqzCRMgB2sol7GiCLjKfS1PINkjmx8spcKce1LiVqcbQreXwqs2YAFXC6R03VIG28ZS31t8M866v6A==",
1818
+ "license": "MIT",
1819
+ "engines": {
1820
+ "node": ">=0.10.0"
1821
+ }
1822
+ },
1823
+ "node_modules/opencollective-postinstall": {
1824
+ "version": "2.0.3",
1825
+ "resolved": "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz",
1826
+ "integrity": "sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==",
1827
+ "license": "MIT",
1828
+ "bin": {
1829
+ "opencollective-postinstall": "index.js"
1830
+ }
1831
+ },
1832
+ "node_modules/pako": {
1833
+ "version": "2.1.0",
1834
+ "resolved": "https://registry.npmjs.org/pako/-/pako-2.1.0.tgz",
1835
+ "integrity": "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==",
1836
+ "license": "(MIT AND Zlib)"
1837
+ },
1838
+ "node_modules/parseurl": {
1839
+ "version": "1.3.3",
1840
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
1841
+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
1842
+ "license": "MIT",
1843
+ "engines": {
1844
+ "node": ">= 0.8"
1845
+ }
1846
+ },
1847
+ "node_modules/path-browserify": {
1848
+ "version": "1.0.1",
1849
+ "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz",
1850
+ "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==",
1851
+ "license": "MIT"
1852
+ },
1853
+ "node_modules/path-to-regexp": {
1854
+ "version": "8.4.2",
1855
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz",
1856
+ "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==",
1857
+ "license": "MIT",
1858
+ "funding": {
1859
+ "type": "opencollective",
1860
+ "url": "https://opencollective.com/express"
1861
+ }
1862
+ },
1863
+ "node_modules/proxy-addr": {
1864
+ "version": "2.0.7",
1865
+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
1866
+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
1867
+ "license": "MIT",
1868
+ "dependencies": {
1869
+ "forwarded": "0.2.0",
1870
+ "ipaddr.js": "1.9.1"
1871
+ },
1872
+ "engines": {
1873
+ "node": ">= 0.10"
1874
+ }
1875
+ },
1876
+ "node_modules/proxy-from-env": {
1877
+ "version": "2.1.0",
1878
+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz",
1879
+ "integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==",
1880
+ "license": "MIT",
1881
+ "engines": {
1882
+ "node": ">=10"
1883
+ }
1884
+ },
1885
+ "node_modules/qs": {
1886
+ "version": "6.15.1",
1887
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.1.tgz",
1888
+ "integrity": "sha512-6YHEFRL9mfgcAvql/XhwTvf5jKcOiiupt2FiJxHkiX1z4j7WL8J/jRHYLluORvc1XxB5rV20KoeK00gVJamspg==",
1889
+ "license": "BSD-3-Clause",
1890
+ "dependencies": {
1891
+ "side-channel": "^1.1.0"
1892
+ },
1893
+ "engines": {
1894
+ "node": ">=0.6"
1895
+ },
1896
+ "funding": {
1897
+ "url": "https://github.com/sponsors/ljharb"
1898
+ }
1899
+ },
1900
+ "node_modules/range-parser": {
1901
+ "version": "1.2.1",
1902
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
1903
+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
1904
+ "license": "MIT",
1905
+ "engines": {
1906
+ "node": ">= 0.6"
1907
+ }
1908
+ },
1909
+ "node_modules/raw-body": {
1910
+ "version": "3.0.2",
1911
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz",
1912
+ "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==",
1913
+ "license": "MIT",
1914
+ "dependencies": {
1915
+ "bytes": "~3.1.2",
1916
+ "http-errors": "~2.0.1",
1917
+ "iconv-lite": "~0.7.0",
1918
+ "unpipe": "~1.0.0"
1919
+ },
1920
+ "engines": {
1921
+ "node": ">= 0.10"
1922
+ }
1923
+ },
1924
+ "node_modules/readline2": {
1925
+ "version": "1.0.1",
1926
+ "resolved": "https://registry.npmjs.org/readline2/-/readline2-1.0.1.tgz",
1927
+ "integrity": "sha512-8/td4MmwUB6PkZUbV25uKz7dfrmjYWxsW8DVfibWdlHRk/l/DfHKn4pU+dfcoGLFgWOdyGCzINRQD7jn+Bv+/g==",
1928
+ "license": "MIT",
1929
+ "dependencies": {
1930
+ "code-point-at": "^1.0.0",
1931
+ "is-fullwidth-code-point": "^1.0.0",
1932
+ "mute-stream": "0.0.5"
1933
+ }
1934
+ },
1935
+ "node_modules/real-cancellable-promise": {
1936
+ "version": "1.2.3",
1937
+ "resolved": "https://registry.npmjs.org/real-cancellable-promise/-/real-cancellable-promise-1.2.3.tgz",
1938
+ "integrity": "sha512-hBI5Gy/55VEeeMtImMgEirD7eq5UmqJf1J8dFZtbJZA/3rB0pYFZ7PayMGueb6v4UtUtpKpP+05L0VwyE1hI9Q==",
1939
+ "license": "MIT"
1940
+ },
1941
+ "node_modules/regenerator-runtime": {
1942
+ "version": "0.13.11",
1943
+ "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz",
1944
+ "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==",
1945
+ "license": "MIT"
1946
+ },
1947
+ "node_modules/restore-cursor": {
1948
+ "version": "1.0.1",
1949
+ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-1.0.1.tgz",
1950
+ "integrity": "sha512-reSjH4HuiFlxlaBaFCiS6O76ZGG2ygKoSlCsipKdaZuKSPx/+bt9mULkn4l0asVzbEfQQmXRg6Wp6gv6m0wElw==",
1951
+ "license": "MIT",
1952
+ "dependencies": {
1953
+ "exit-hook": "^1.0.0",
1954
+ "onetime": "^1.0.0"
1955
+ },
1956
+ "engines": {
1957
+ "node": ">=0.10.0"
1958
+ }
1959
+ },
1960
+ "node_modules/router": {
1961
+ "version": "2.2.0",
1962
+ "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",
1963
+ "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",
1964
+ "license": "MIT",
1965
+ "dependencies": {
1966
+ "debug": "^4.4.0",
1967
+ "depd": "^2.0.0",
1968
+ "is-promise": "^4.0.0",
1969
+ "parseurl": "^1.3.3",
1970
+ "path-to-regexp": "^8.0.0"
1971
+ },
1972
+ "engines": {
1973
+ "node": ">= 18"
1974
+ }
1975
+ },
1976
+ "node_modules/run-async": {
1977
+ "version": "0.1.0",
1978
+ "resolved": "https://registry.npmjs.org/run-async/-/run-async-0.1.0.tgz",
1979
+ "integrity": "sha512-qOX+w+IxFgpUpJfkv2oGN0+ExPs68F4sZHfaRRx4dDexAQkG83atugKVEylyT5ARees3HBbfmuvnjbrd8j9Wjw==",
1980
+ "license": "MIT",
1981
+ "dependencies": {
1982
+ "once": "^1.3.0"
1983
+ }
1984
+ },
1985
+ "node_modules/rx-lite": {
1986
+ "version": "3.1.2",
1987
+ "resolved": "https://registry.npmjs.org/rx-lite/-/rx-lite-3.1.2.tgz",
1988
+ "integrity": "sha512-1I1+G2gteLB8Tkt8YI1sJvSIfa0lWuRtC8GjvtyPBcLSF5jBCCJJqKrpER5JU5r6Bhe+i9/pK3VMuUcXu0kdwQ=="
1989
+ },
1990
+ "node_modules/safer-buffer": {
1991
+ "version": "2.1.2",
1992
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
1993
+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
1994
+ "license": "MIT"
1995
+ },
1996
+ "node_modules/semver": {
1997
+ "version": "7.7.4",
1998
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",
1999
+ "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",
2000
+ "license": "ISC",
2001
+ "bin": {
2002
+ "semver": "bin/semver.js"
2003
+ },
2004
+ "engines": {
2005
+ "node": ">=10"
2006
+ }
2007
+ },
2008
+ "node_modules/send": {
2009
+ "version": "1.2.1",
2010
+ "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz",
2011
+ "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==",
2012
+ "license": "MIT",
2013
+ "dependencies": {
2014
+ "debug": "^4.4.3",
2015
+ "encodeurl": "^2.0.0",
2016
+ "escape-html": "^1.0.3",
2017
+ "etag": "^1.8.1",
2018
+ "fresh": "^2.0.0",
2019
+ "http-errors": "^2.0.1",
2020
+ "mime-types": "^3.0.2",
2021
+ "ms": "^2.1.3",
2022
+ "on-finished": "^2.4.1",
2023
+ "range-parser": "^1.2.1",
2024
+ "statuses": "^2.0.2"
2025
+ },
2026
+ "engines": {
2027
+ "node": ">= 18"
2028
+ },
2029
+ "funding": {
2030
+ "type": "opencollective",
2031
+ "url": "https://opencollective.com/express"
2032
+ }
2033
+ },
2034
+ "node_modules/send/node_modules/mime-db": {
2035
+ "version": "1.54.0",
2036
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",
2037
+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
2038
+ "license": "MIT",
2039
+ "engines": {
2040
+ "node": ">= 0.6"
2041
+ }
2042
+ },
2043
+ "node_modules/send/node_modules/mime-types": {
2044
+ "version": "3.0.2",
2045
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",
2046
+ "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",
2047
+ "license": "MIT",
2048
+ "dependencies": {
2049
+ "mime-db": "^1.54.0"
2050
+ },
2051
+ "engines": {
2052
+ "node": ">=18"
2053
+ },
2054
+ "funding": {
2055
+ "type": "opencollective",
2056
+ "url": "https://opencollective.com/express"
2057
+ }
2058
+ },
2059
+ "node_modules/serve-static": {
2060
+ "version": "2.2.1",
2061
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz",
2062
+ "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==",
2063
+ "license": "MIT",
2064
+ "dependencies": {
2065
+ "encodeurl": "^2.0.0",
2066
+ "escape-html": "^1.0.3",
2067
+ "parseurl": "^1.3.3",
2068
+ "send": "^1.2.0"
2069
+ },
2070
+ "engines": {
2071
+ "node": ">= 18"
2072
+ },
2073
+ "funding": {
2074
+ "type": "opencollective",
2075
+ "url": "https://opencollective.com/express"
2076
+ }
2077
+ },
2078
+ "node_modules/setprototypeof": {
2079
+ "version": "1.2.0",
2080
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
2081
+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
2082
+ "license": "ISC"
2083
+ },
2084
+ "node_modules/sharp": {
2085
+ "version": "0.34.5",
2086
+ "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.5.tgz",
2087
+ "integrity": "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==",
2088
+ "hasInstallScript": true,
2089
+ "license": "Apache-2.0",
2090
+ "dependencies": {
2091
+ "@img/colour": "^1.0.0",
2092
+ "detect-libc": "^2.1.2",
2093
+ "semver": "^7.7.3"
2094
+ },
2095
+ "engines": {
2096
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
2097
+ },
2098
+ "funding": {
2099
+ "url": "https://opencollective.com/libvips"
2100
+ },
2101
+ "optionalDependencies": {
2102
+ "@img/sharp-darwin-arm64": "0.34.5",
2103
+ "@img/sharp-darwin-x64": "0.34.5",
2104
+ "@img/sharp-libvips-darwin-arm64": "1.2.4",
2105
+ "@img/sharp-libvips-darwin-x64": "1.2.4",
2106
+ "@img/sharp-libvips-linux-arm": "1.2.4",
2107
+ "@img/sharp-libvips-linux-arm64": "1.2.4",
2108
+ "@img/sharp-libvips-linux-ppc64": "1.2.4",
2109
+ "@img/sharp-libvips-linux-riscv64": "1.2.4",
2110
+ "@img/sharp-libvips-linux-s390x": "1.2.4",
2111
+ "@img/sharp-libvips-linux-x64": "1.2.4",
2112
+ "@img/sharp-libvips-linuxmusl-arm64": "1.2.4",
2113
+ "@img/sharp-libvips-linuxmusl-x64": "1.2.4",
2114
+ "@img/sharp-linux-arm": "0.34.5",
2115
+ "@img/sharp-linux-arm64": "0.34.5",
2116
+ "@img/sharp-linux-ppc64": "0.34.5",
2117
+ "@img/sharp-linux-riscv64": "0.34.5",
2118
+ "@img/sharp-linux-s390x": "0.34.5",
2119
+ "@img/sharp-linux-x64": "0.34.5",
2120
+ "@img/sharp-linuxmusl-arm64": "0.34.5",
2121
+ "@img/sharp-linuxmusl-x64": "0.34.5",
2122
+ "@img/sharp-wasm32": "0.34.5",
2123
+ "@img/sharp-win32-arm64": "0.34.5",
2124
+ "@img/sharp-win32-ia32": "0.34.5",
2125
+ "@img/sharp-win32-x64": "0.34.5"
2126
+ }
2127
+ },
2128
+ "node_modules/side-channel": {
2129
+ "version": "1.1.0",
2130
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
2131
+ "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
2132
+ "license": "MIT",
2133
+ "dependencies": {
2134
+ "es-errors": "^1.3.0",
2135
+ "object-inspect": "^1.13.3",
2136
+ "side-channel-list": "^1.0.0",
2137
+ "side-channel-map": "^1.0.1",
2138
+ "side-channel-weakmap": "^1.0.2"
2139
+ },
2140
+ "engines": {
2141
+ "node": ">= 0.4"
2142
+ },
2143
+ "funding": {
2144
+ "url": "https://github.com/sponsors/ljharb"
2145
+ }
2146
+ },
2147
+ "node_modules/side-channel-list": {
2148
+ "version": "1.0.1",
2149
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",
2150
+ "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",
2151
+ "license": "MIT",
2152
+ "dependencies": {
2153
+ "es-errors": "^1.3.0",
2154
+ "object-inspect": "^1.13.4"
2155
+ },
2156
+ "engines": {
2157
+ "node": ">= 0.4"
2158
+ },
2159
+ "funding": {
2160
+ "url": "https://github.com/sponsors/ljharb"
2161
+ }
2162
+ },
2163
+ "node_modules/side-channel-map": {
2164
+ "version": "1.0.1",
2165
+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
2166
+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
2167
+ "license": "MIT",
2168
+ "dependencies": {
2169
+ "call-bound": "^1.0.2",
2170
+ "es-errors": "^1.3.0",
2171
+ "get-intrinsic": "^1.2.5",
2172
+ "object-inspect": "^1.13.3"
2173
+ },
2174
+ "engines": {
2175
+ "node": ">= 0.4"
2176
+ },
2177
+ "funding": {
2178
+ "url": "https://github.com/sponsors/ljharb"
2179
+ }
2180
+ },
2181
+ "node_modules/side-channel-weakmap": {
2182
+ "version": "1.0.2",
2183
+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
2184
+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
2185
+ "license": "MIT",
2186
+ "dependencies": {
2187
+ "call-bound": "^1.0.2",
2188
+ "es-errors": "^1.3.0",
2189
+ "get-intrinsic": "^1.2.5",
2190
+ "object-inspect": "^1.13.3",
2191
+ "side-channel-map": "^1.0.1"
2192
+ },
2193
+ "engines": {
2194
+ "node": ">= 0.4"
2195
+ },
2196
+ "funding": {
2197
+ "url": "https://github.com/sponsors/ljharb"
2198
+ }
2199
+ },
2200
+ "node_modules/slide": {
2201
+ "version": "1.1.6",
2202
+ "resolved": "https://registry.npmjs.org/slide/-/slide-1.1.6.tgz",
2203
+ "integrity": "sha512-NwrtjCg+lZoqhFU8fOwl4ay2ei8PaqCBOUV3/ektPY9trO1yQ1oXEfmHAhKArUVUr/hOHvy5f6AdP17dCM0zMw==",
2204
+ "license": "ISC",
2205
+ "engines": {
2206
+ "node": "*"
2207
+ }
2208
+ },
2209
+ "node_modules/smart-buffer": {
2210
+ "version": "4.2.0",
2211
+ "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",
2212
+ "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==",
2213
+ "license": "MIT",
2214
+ "engines": {
2215
+ "node": ">= 6.0.0",
2216
+ "npm": ">= 3.0.0"
2217
+ }
2218
+ },
2219
+ "node_modules/socks": {
2220
+ "version": "2.8.9",
2221
+ "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.9.tgz",
2222
+ "integrity": "sha512-LJhUYUvItdQ0LkJTmPeaEObWXAqFyfmP85x0tch/ez9cahmhlBBLbIqDFnvBnUJGagb0JbIQrkBs1wJ+yRYpEw==",
2223
+ "license": "MIT",
2224
+ "dependencies": {
2225
+ "ip-address": "^10.1.1",
2226
+ "smart-buffer": "^4.2.0"
2227
+ },
2228
+ "engines": {
2229
+ "node": ">= 10.0.0",
2230
+ "npm": ">= 3.0.0"
2231
+ }
2232
+ },
2233
+ "node_modules/statuses": {
2234
+ "version": "2.0.2",
2235
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
2236
+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
2237
+ "license": "MIT",
2238
+ "engines": {
2239
+ "node": ">= 0.8"
2240
+ }
2241
+ },
2242
+ "node_modules/store2": {
2243
+ "version": "2.14.4",
2244
+ "resolved": "https://registry.npmjs.org/store2/-/store2-2.14.4.tgz",
2245
+ "integrity": "sha512-srTItn1GOvyvOycgxjAnPA63FZNwy0PTyUBFMHRM+hVFltAeoh0LmNBz9SZqUS9mMqGk8rfyWyXn3GH5ReJ8Zw==",
2246
+ "license": "MIT"
2247
+ },
2248
+ "node_modules/string-width": {
2249
+ "version": "1.0.2",
2250
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
2251
+ "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==",
2252
+ "license": "MIT",
2253
+ "dependencies": {
2254
+ "code-point-at": "^1.0.0",
2255
+ "is-fullwidth-code-point": "^1.0.0",
2256
+ "strip-ansi": "^3.0.0"
2257
+ },
2258
+ "engines": {
2259
+ "node": ">=0.10.0"
2260
+ }
2261
+ },
2262
+ "node_modules/strip-ansi": {
2263
+ "version": "3.0.1",
2264
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
2265
+ "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==",
2266
+ "license": "MIT",
2267
+ "dependencies": {
2268
+ "ansi-regex": "^2.0.0"
2269
+ },
2270
+ "engines": {
2271
+ "node": ">=0.10.0"
2272
+ }
2273
+ },
2274
+ "node_modules/supports-color": {
2275
+ "version": "2.0.0",
2276
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
2277
+ "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==",
2278
+ "license": "MIT",
2279
+ "engines": {
2280
+ "node": ">=0.8.0"
2281
+ }
2282
+ },
2283
+ "node_modules/telegram": {
2284
+ "version": "2.26.22",
2285
+ "resolved": "https://registry.npmjs.org/telegram/-/telegram-2.26.22.tgz",
2286
+ "integrity": "sha512-EIj7Yrjiu0Yosa3FZ/7EyPg9s6UiTi/zDQrFmR/2Mg7pIUU+XjAit1n1u9OU9h2oRnRM5M+67/fxzQluZpaJJg==",
2287
+ "license": "MIT",
2288
+ "dependencies": {
2289
+ "@cryptography/aes": "^0.1.1",
2290
+ "async-mutex": "^0.3.0",
2291
+ "big-integer": "^1.6.48",
2292
+ "buffer": "^6.0.3",
2293
+ "htmlparser2": "^6.1.0",
2294
+ "mime": "^3.0.0",
2295
+ "node-localstorage": "^2.2.1",
2296
+ "pako": "^2.0.3",
2297
+ "path-browserify": "^1.0.1",
2298
+ "real-cancellable-promise": "^1.1.1",
2299
+ "socks": "^2.6.2",
2300
+ "store2": "^2.13.0",
2301
+ "ts-custom-error": "^3.2.0",
2302
+ "websocket": "^1.0.34"
2303
+ },
2304
+ "optionalDependencies": {
2305
+ "bufferutil": "^4.0.3",
2306
+ "utf-8-validate": "^5.0.5"
2307
+ }
2308
+ },
2309
+ "node_modules/tesseract.js": {
2310
+ "version": "5.1.1",
2311
+ "resolved": "https://registry.npmjs.org/tesseract.js/-/tesseract.js-5.1.1.tgz",
2312
+ "integrity": "sha512-lzVl/Ar3P3zhpUT31NjqeCo1f+D5+YfpZ5J62eo2S14QNVOmHBTtbchHm/YAbOOOzCegFnKf4B3Qih9LuldcYQ==",
2313
+ "hasInstallScript": true,
2314
+ "license": "Apache-2.0",
2315
+ "dependencies": {
2316
+ "bmp-js": "^0.1.0",
2317
+ "idb-keyval": "^6.2.0",
2318
+ "is-electron": "^2.2.2",
2319
+ "is-url": "^1.2.4",
2320
+ "node-fetch": "^2.6.9",
2321
+ "opencollective-postinstall": "^2.0.3",
2322
+ "regenerator-runtime": "^0.13.3",
2323
+ "tesseract.js-core": "^5.1.1",
2324
+ "wasm-feature-detect": "^1.2.11",
2325
+ "zlibjs": "^0.3.1"
2326
+ }
2327
+ },
2328
+ "node_modules/tesseract.js-core": {
2329
+ "version": "5.1.1",
2330
+ "resolved": "https://registry.npmjs.org/tesseract.js-core/-/tesseract.js-core-5.1.1.tgz",
2331
+ "integrity": "sha512-KX3bYSU5iGcO1XJa+QGPbi+Zjo2qq6eBhNjSGR5E5q0JtzkoipJKOUQD7ph8kFyteCEfEQ0maWLu8MCXtvX5uQ==",
2332
+ "license": "Apache-2.0"
2333
+ },
2334
+ "node_modules/through": {
2335
+ "version": "2.3.8",
2336
+ "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
2337
+ "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==",
2338
+ "license": "MIT"
2339
+ },
2340
+ "node_modules/toidentifier": {
2341
+ "version": "1.0.1",
2342
+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
2343
+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
2344
+ "license": "MIT",
2345
+ "engines": {
2346
+ "node": ">=0.6"
2347
+ }
2348
+ },
2349
+ "node_modules/tr46": {
2350
+ "version": "0.0.3",
2351
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
2352
+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
2353
+ "license": "MIT"
2354
+ },
2355
+ "node_modules/ts-custom-error": {
2356
+ "version": "3.3.1",
2357
+ "resolved": "https://registry.npmjs.org/ts-custom-error/-/ts-custom-error-3.3.1.tgz",
2358
+ "integrity": "sha512-5OX1tzOjxWEgsr/YEUWSuPrQ00deKLh6D7OTWcvNHm12/7QPyRh8SYpyWvA4IZv8H/+GQWQEh/kwo95Q9OVW1A==",
2359
+ "license": "MIT",
2360
+ "engines": {
2361
+ "node": ">=14.0.0"
2362
+ }
2363
+ },
2364
+ "node_modules/tslib": {
2365
+ "version": "2.8.1",
2366
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
2367
+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
2368
+ "license": "0BSD"
2369
+ },
2370
+ "node_modules/type": {
2371
+ "version": "2.7.3",
2372
+ "resolved": "https://registry.npmjs.org/type/-/type-2.7.3.tgz",
2373
+ "integrity": "sha512-8j+1QmAbPvLZow5Qpi6NCaN8FB60p/6x8/vfNqOk/hC+HuvFZhL4+WfekuhQLiqFZXOgQdrs3B+XxEmCc6b3FQ==",
2374
+ "license": "ISC"
2375
+ },
2376
+ "node_modules/type-is": {
2377
+ "version": "2.0.1",
2378
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz",
2379
+ "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==",
2380
+ "license": "MIT",
2381
+ "dependencies": {
2382
+ "content-type": "^1.0.5",
2383
+ "media-typer": "^1.1.0",
2384
+ "mime-types": "^3.0.0"
2385
+ },
2386
+ "engines": {
2387
+ "node": ">= 0.6"
2388
+ }
2389
+ },
2390
+ "node_modules/type-is/node_modules/mime-db": {
2391
+ "version": "1.54.0",
2392
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",
2393
+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",
2394
+ "license": "MIT",
2395
+ "engines": {
2396
+ "node": ">= 0.6"
2397
+ }
2398
+ },
2399
+ "node_modules/type-is/node_modules/mime-types": {
2400
+ "version": "3.0.2",
2401
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",
2402
+ "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",
2403
+ "license": "MIT",
2404
+ "dependencies": {
2405
+ "mime-db": "^1.54.0"
2406
+ },
2407
+ "engines": {
2408
+ "node": ">=18"
2409
+ },
2410
+ "funding": {
2411
+ "type": "opencollective",
2412
+ "url": "https://opencollective.com/express"
2413
+ }
2414
+ },
2415
+ "node_modules/typedarray-to-buffer": {
2416
+ "version": "3.1.5",
2417
+ "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz",
2418
+ "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==",
2419
+ "license": "MIT",
2420
+ "dependencies": {
2421
+ "is-typedarray": "^1.0.0"
2422
+ }
2423
+ },
2424
+ "node_modules/unpipe": {
2425
+ "version": "1.0.0",
2426
+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
2427
+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
2428
+ "license": "MIT",
2429
+ "engines": {
2430
+ "node": ">= 0.8"
2431
+ }
2432
+ },
2433
+ "node_modules/utf-8-validate": {
2434
+ "version": "5.0.10",
2435
+ "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz",
2436
+ "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==",
2437
+ "hasInstallScript": true,
2438
+ "license": "MIT",
2439
+ "dependencies": {
2440
+ "node-gyp-build": "^4.3.0"
2441
+ },
2442
+ "engines": {
2443
+ "node": ">=6.14.2"
2444
+ }
2445
+ },
2446
+ "node_modules/vary": {
2447
+ "version": "1.1.2",
2448
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
2449
+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
2450
+ "license": "MIT",
2451
+ "engines": {
2452
+ "node": ">= 0.8"
2453
+ }
2454
+ },
2455
+ "node_modules/wasm-feature-detect": {
2456
+ "version": "1.8.0",
2457
+ "resolved": "https://registry.npmjs.org/wasm-feature-detect/-/wasm-feature-detect-1.8.0.tgz",
2458
+ "integrity": "sha512-zksaLKM2fVlnB5jQQDqKXXwYHLQUVH9es+5TOOHwGOVJOCeRBCiPjwSg+3tN2AdTCzjgli4jijCH290kXb/zWQ==",
2459
+ "license": "Apache-2.0"
2460
+ },
2461
+ "node_modules/webidl-conversions": {
2462
+ "version": "3.0.1",
2463
+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
2464
+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
2465
+ "license": "BSD-2-Clause"
2466
+ },
2467
+ "node_modules/websocket": {
2468
+ "version": "1.0.35",
2469
+ "resolved": "https://registry.npmjs.org/websocket/-/websocket-1.0.35.tgz",
2470
+ "integrity": "sha512-/REy6amwPZl44DDzvRCkaI1q1bIiQB0mEFQLUrhz3z2EK91cp3n72rAjUlrTP0zV22HJIUOVHQGPxhFRjxjt+Q==",
2471
+ "license": "Apache-2.0",
2472
+ "dependencies": {
2473
+ "bufferutil": "^4.0.1",
2474
+ "debug": "^2.2.0",
2475
+ "es5-ext": "^0.10.63",
2476
+ "typedarray-to-buffer": "^3.1.5",
2477
+ "utf-8-validate": "^5.0.2",
2478
+ "yaeti": "^0.0.6"
2479
+ },
2480
+ "engines": {
2481
+ "node": ">=4.0.0"
2482
+ }
2483
+ },
2484
+ "node_modules/websocket/node_modules/debug": {
2485
+ "version": "2.6.9",
2486
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
2487
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
2488
+ "license": "MIT",
2489
+ "dependencies": {
2490
+ "ms": "2.0.0"
2491
+ }
2492
+ },
2493
+ "node_modules/websocket/node_modules/ms": {
2494
+ "version": "2.0.0",
2495
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
2496
+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
2497
+ "license": "MIT"
2498
+ },
2499
+ "node_modules/whatwg-url": {
2500
+ "version": "5.0.0",
2501
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
2502
+ "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
2503
+ "license": "MIT",
2504
+ "dependencies": {
2505
+ "tr46": "~0.0.3",
2506
+ "webidl-conversions": "^3.0.0"
2507
+ }
2508
+ },
2509
+ "node_modules/wrappy": {
2510
+ "version": "1.0.2",
2511
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
2512
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
2513
+ "license": "ISC"
2514
+ },
2515
+ "node_modules/write-file-atomic": {
2516
+ "version": "1.3.4",
2517
+ "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-1.3.4.tgz",
2518
+ "integrity": "sha512-SdrHoC/yVBPpV0Xq/mUZQIpW2sWXAShb/V4pomcJXh92RuaO+f3UTWItiR3Px+pLnV2PvC2/bfn5cwr5X6Vfxw==",
2519
+ "license": "ISC",
2520
+ "dependencies": {
2521
+ "graceful-fs": "^4.1.11",
2522
+ "imurmurhash": "^0.1.4",
2523
+ "slide": "^1.1.5"
2524
+ }
2525
+ },
2526
+ "node_modules/yaeti": {
2527
+ "version": "0.0.6",
2528
+ "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz",
2529
+ "integrity": "sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug==",
2530
+ "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.",
2531
+ "license": "MIT",
2532
+ "engines": {
2533
+ "node": ">=0.10.32"
2534
+ }
2535
+ },
2536
+ "node_modules/zlibjs": {
2537
+ "version": "0.3.1",
2538
+ "resolved": "https://registry.npmjs.org/zlibjs/-/zlibjs-0.3.1.tgz",
2539
+ "integrity": "sha512-+J9RrgTKOmlxFSDHo0pI1xM6BLVUv+o0ZT9ANtCxGkjIVCCUdx9alUF8Gm+dGLKbkkkidWIHFDZHDMpfITt4+w==",
2540
+ "license": "MIT",
2541
+ "engines": {
2542
+ "node": "*"
2543
+ }
2544
+ }
2545
+ }
2546
+ }
package.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "wordgridsolver",
3
+ "version": "2.0.0",
4
+ "description": "Telegram bot (GramJS MTProto) to solve 8x8 and 10x10 word grid puzzles",
5
+ "main": "bot.js",
6
+ "scripts": {
7
+ "start": "node bot.js",
8
+ "test": "node -e \"const {solve}=require('./solver'); console.log('Solver OK');\""
9
+ },
10
+ "dependencies": {
11
+ "axios": "^1.6.0",
12
+ "check-word": "^1.1.0",
13
+ "dotenv": "^17.4.2",
14
+ "express": "^5.2.1",
15
+ "sharp": "^0.34.5",
16
+ "telegram": "^2.26.0",
17
+ "tesseract.js": "^5.0.0",
18
+ "input": "^1.0.1",
19
+ "big-integer": "^1.6.52"
20
+ }
21
+ }
public/index.html ADDED
@@ -0,0 +1,224 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title>Word Grid Solver - Dashboard</title>
8
+ <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap" rel="stylesheet">
9
+ <style>
10
+ :root {
11
+ --bg: #0a0a0c;
12
+ --accent: #6c5ce7;
13
+ --accent-glow: rgba(108, 92, 231, 0.3);
14
+ --card-bg: rgba(255, 255, 255, 0.03);
15
+ --text: #ffffff;
16
+ --secondary-text: #a0a0a8;
17
+ }
18
+
19
+ body {
20
+ margin: 0;
21
+ padding: 0;
22
+ font-family: 'Outfit', sans-serif;
23
+ background-color: var(--bg);
24
+ color: var(--text);
25
+ display: flex;
26
+ flex-direction: column;
27
+ align-items: center;
28
+ justify-content: center;
29
+ min-height: 100vh;
30
+ overflow: hidden;
31
+ }
32
+
33
+ .background-blob {
34
+ position: absolute;
35
+ width: 600px;
36
+ height: 600px;
37
+ background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
38
+ z-index: -1;
39
+ filter: blur(50px);
40
+ animation: move 20s infinite alternate linear;
41
+ }
42
+
43
+ @keyframes move {
44
+ from {
45
+ transform: translate(-20%, -20%);
46
+ }
47
+
48
+ to {
49
+ transform: translate(20%, 20%);
50
+ }
51
+ }
52
+
53
+ .container {
54
+ width: 90%;
55
+ max-width: 600px;
56
+ text-align: center;
57
+ backdrop-filter: blur(10px);
58
+ padding: 40px;
59
+ border-radius: 30px;
60
+ background: var(--card-bg);
61
+ border: 1px solid rgba(255, 255, 255, 0.05);
62
+ box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
63
+ animation: fadeIn 1s ease-out;
64
+ }
65
+
66
+ @keyframes fadeIn {
67
+ from {
68
+ opacity: 0;
69
+ transform: translateY(20px);
70
+ }
71
+
72
+ to {
73
+ opacity: 1;
74
+ transform: translateY(0);
75
+ }
76
+ }
77
+
78
+ h1 {
79
+ font-size: 2.5rem;
80
+ font-weight: 800;
81
+ margin-bottom: 10px;
82
+ background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
83
+ -webkit-background-clip: text;
84
+ -webkit-text-fill-color: transparent;
85
+ }
86
+
87
+ .bot-username {
88
+ font-size: 1.2rem;
89
+ color: var(--accent);
90
+ font-weight: 600;
91
+ margin-bottom: 30px;
92
+ display: inline-block;
93
+ background: var(--accent-glow);
94
+ padding: 5px 15px;
95
+ border-radius: 100px;
96
+ border: 1px solid var(--accent);
97
+ }
98
+
99
+ .stats-grid {
100
+ display: grid;
101
+ grid-template-columns: repeat(3, 1fr);
102
+ gap: 20px;
103
+ margin-top: 20px;
104
+ }
105
+
106
+ .stat-card {
107
+ background: rgba(255, 255, 255, 0.03);
108
+ padding: 20px;
109
+ border-radius: 20px;
110
+ border: 1px solid rgba(255, 255, 255, 0.05);
111
+ transition: transform 0.3s ease;
112
+ }
113
+
114
+ .stat-card:hover {
115
+ transform: translateY(-5px);
116
+ background: rgba(255, 255, 255, 0.05);
117
+ }
118
+
119
+ .stat-value {
120
+ font-size: 1.8rem;
121
+ font-weight: 600;
122
+ display: block;
123
+ margin-bottom: 5px;
124
+ }
125
+
126
+ .stat-label {
127
+ font-size: 0.8rem;
128
+ color: var(--secondary-text);
129
+ text-transform: uppercase;
130
+ letter-spacing: 1px;
131
+ }
132
+
133
+ .footer {
134
+ margin-top: 50px;
135
+ color: var(--secondary-text);
136
+ font-size: 0.9rem;
137
+ }
138
+
139
+ .credits {
140
+ font-weight: 600;
141
+ color: #fff;
142
+ letter-spacing: 0.5px;
143
+ }
144
+
145
+ .status-dot {
146
+ width: 10px;
147
+ height: 10px;
148
+ background-color: #00ff88;
149
+ border-radius: 50%;
150
+ display: inline-block;
151
+ margin-right: 8px;
152
+ box-shadow: 0 0 10px #00ff88;
153
+ animation: pulse 2s infinite;
154
+ }
155
+
156
+ @keyframes pulse {
157
+ 0% {
158
+ opacity: 1;
159
+ }
160
+
161
+ 50% {
162
+ opacity: 0.5;
163
+ }
164
+
165
+ 100% {
166
+ opacity: 1;
167
+ }
168
+ }
169
+ </style>
170
+ </head>
171
+
172
+ <body>
173
+ <div class="background-blob"></div>
174
+ <div class="container">
175
+ <div style="margin-bottom: 20px;">
176
+ <span class="status-dot"></span> <b>Bot Active</b>
177
+ </div>
178
+ <h1>Word Grid Solver</h1>
179
+ <div class="bot-username" id="bot-handle">@loading...</div>
180
+
181
+ <div class="stats-grid">
182
+ <div class="stat-card">
183
+ <span class="stat-value" id="stats-images">0</span>
184
+ <span class="stat-label">Scanned</span>
185
+ </div>
186
+ <div class="stat-card">
187
+ <span class="stat-value" id="stats-words">0</span>
188
+ <span class="stat-label">Words</span>
189
+ </div>
190
+ <div class="stat-card">
191
+ <span class="stat-value" id="stats-uptime">0s</span>
192
+ <span class="stat-label">Uptime</span>
193
+ </div>
194
+ </div>
195
+
196
+ <div class="footer">
197
+ wordsgrid solver by <span class="credits">alexainc</span>
198
+ </div>
199
+ </div>
200
+
201
+ <script>
202
+ function updateStats() {
203
+ fetch('/api/stats')
204
+ .then(r => r.json())
205
+ .then(data => {
206
+ document.getElementById('bot-handle').innerText = 't.me/' + data.botUsername;
207
+ document.getElementById('stats-images').innerText = data.imagesProcessed;
208
+ document.getElementById('stats-words').innerText = data.wordsFound;
209
+
210
+ const uptime = data.uptime;
211
+ let uptimeStr = uptime + 's';
212
+ if (uptime > 3600) uptimeStr = Math.floor(uptime / 3600) + 'h';
213
+ else if (uptime > 60) uptimeStr = Math.floor(uptime / 60) + 'm';
214
+
215
+ document.getElementById('stats-uptime').innerText = uptimeStr;
216
+ });
217
+ }
218
+
219
+ setInterval(updateStats, 2000);
220
+ updateStats();
221
+ </script>
222
+ </body>
223
+
224
+ </html>
solver.js ADDED
@@ -0,0 +1,212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * solver.js β€” Word Grid solver with comprehensive lookalike tolerance
3
+ *
4
+ * Improvements over v1:
5
+ * ‒ Symmetric LOOKALIKES map (A→B implies B can match A)
6
+ * β€’ Wildcard (-) pattern matching ignores only dashes, not all unknowns
7
+ * β€’ Pattern matching collects ALL candidates with their actual grid characters
8
+ * β€’ charMatch is stricter: only matches confirmed lookalike pairs, not random guesses
9
+ * β€’ Grid boundary checks are consolidated in one place (no off-by-one)
10
+ * β€’ Deduplication of candidates by match string
11
+ */
12
+
13
+ // ─── Directions ───────────────────────────────────────────────────────────────
14
+ const DIRECTIONS = [
15
+ { r: 0, c: 1, name: 'LtoR' },
16
+ { r: 0, c: -1, name: 'RtoL' },
17
+ { r: 1, c: 0, name: 'UtoD' },
18
+ { r: -1, c: 0, name: 'DtoU' },
19
+ { r: 1, c: 1, name: 'diagDR'},
20
+ { r: -1, c: -1, name: 'diagUL'},
21
+ { r: 1, c: -1, name: 'diagDL'},
22
+ { r: -1, c: 1, name: 'diagUR'},
23
+ ];
24
+
25
+ // ─── Lookalike table (symmetric) ─────────────────────────────────────────────
26
+ // Each entry lists chars that can be confused FOR the key char by OCR.
27
+ const LOOKALIKES_RAW = {
28
+ 'A': ['4', 'R'],
29
+ 'B': ['8', '3', 'R', 'S', 'E'],
30
+ 'C': ['G', 'O', 'Q', '(', 'L'],
31
+ 'D': ['O', 'Q', 'B', '0'],
32
+ 'E': ['F', 'B', '3', 'L'],
33
+ 'F': ['E', 'P'],
34
+ 'G': ['C', 'O', '6', 'Q', 'D'],
35
+ 'H': ['N', 'M'],
36
+ 'I': ['L', '1', 'T', 'J', '|'],
37
+ 'J': ['I', 'L', '1'],
38
+ 'K': ['R', 'X'],
39
+ 'L': ['I', '1', 'T', '|', '[', 'J'],
40
+ 'M': ['N', 'H', 'W'],
41
+ 'N': ['M', 'H', 'R'],
42
+ 'O': ['0', 'Q', 'G', 'C', 'D', 'U'],
43
+ 'P': ['F', 'B', 'R'],
44
+ 'Q': ['O', 'G', 'C', '0'],
45
+ 'R': ['B', 'P', 'K', 'I', 'A', 'N'],
46
+ 'S': ['5', '8', 'B', '6'],
47
+ 'T': ['I', 'L', '7', '+'],
48
+ 'U': ['V', 'W', 'O', 'Y'],
49
+ 'V': ['U', 'Y', 'W'],
50
+ 'W': ['M', 'V', 'U'],
51
+ 'X': ['K', 'Y'],
52
+ 'Y': ['V', 'U', 'X'],
53
+ 'Z': ['2', '7'],
54
+ };
55
+
56
+ // Build symmetric version: if A can be confused as B, then B can be confused as A
57
+ const LOOKALIKES = {};
58
+ for (const [key, alts] of Object.entries(LOOKALIKES_RAW)) {
59
+ if (!LOOKALIKES[key]) LOOKALIKES[key] = new Set();
60
+ for (const alt of alts) {
61
+ LOOKALIKES[key].add(alt);
62
+ // symmetric
63
+ if (/^[A-Z]$/.test(alt)) {
64
+ if (!LOOKALIKES[alt]) LOOKALIKES[alt] = new Set();
65
+ LOOKALIKES[alt].add(key);
66
+ }
67
+ }
68
+ }
69
+
70
+ /**
71
+ * Does `gridChar` match `targetChar` considering OCR lookalikes?
72
+ * Both must be non-empty, non-space.
73
+ */
74
+ function charMatch(target, gridChar) {
75
+ if (!gridChar || gridChar === ' ' || gridChar === '?') return false;
76
+ const t = target.toUpperCase();
77
+ const g = gridChar.toUpperCase();
78
+ if (t === g) return true;
79
+ const alts = LOOKALIKES[t];
80
+ return !!(alts && alts.has(g));
81
+ }
82
+
83
+ /**
84
+ * Check all cells are in bounds on a grid
85
+ */
86
+ function inBounds(grid, r, c) {
87
+ return r >= 0 && r < grid.length && c >= 0 && c < (grid[r] ? grid[r].length : 0);
88
+ }
89
+
90
+ /**
91
+ * Solve the grid for a list of word/pattern objects.
92
+ *
93
+ * Each item in `words` is one of:
94
+ * { word: 'MATRIX' } β†’ exact word search
95
+ * { pattern: 'M---' } β†’ pattern search (first char + length)
96
+ *
97
+ * Returns an object:
98
+ * { 'M---': [ { r, c, dir, match, reliable } ], ... }
99
+ * { 'MATRIX': { r, c, dir, match } }
100
+ */
101
+ function solve(grid, words) {
102
+ const results = {};
103
+ const rows = grid.length;
104
+ if (rows === 0) return results;
105
+
106
+ for (const wordObj of words) {
107
+ const isExact = wordObj.word && !wordObj.word.includes('-');
108
+ const isPattern = !!wordObj.pattern;
109
+
110
+ if (isExact) {
111
+ const target = wordObj.word.toUpperCase();
112
+ const len = target.length;
113
+ let found = false;
114
+
115
+ outer:
116
+ for (let r = 0; r < rows && !found; r++) {
117
+ const cols = grid[r].length;
118
+ for (let c = 0; c < cols && !found; c++) {
119
+ if (!charMatch(target[0], grid[r][c])) continue;
120
+ for (const dir of DIRECTIONS) {
121
+ // Quick bounds check for last character
122
+ const er = r + dir.r * (len - 1);
123
+ const ec = c + dir.c * (len - 1);
124
+ if (!inBounds(grid, er, ec)) continue;
125
+
126
+ let match = true;
127
+ let candidate = '';
128
+ for (let i = 0; i < len; i++) {
129
+ const nr = r + dir.r * i;
130
+ const nc = c + dir.c * i;
131
+ if (!inBounds(grid, nr, nc) || !charMatch(target[i], grid[nr][nc])) {
132
+ match = false;
133
+ break;
134
+ }
135
+ candidate += grid[nr][nc];
136
+ }
137
+ if (match) {
138
+ results[wordObj.word] = { r, c, dir: dir.name, match: candidate };
139
+ found = true;
140
+ break;
141
+ }
142
+ }
143
+ }
144
+ }
145
+ } else if (isPattern) {
146
+ const pattern = wordObj.pattern.toUpperCase(); // e.g. "M---"
147
+ const startChar = pattern[0];
148
+ const len = pattern.length;
149
+ const hits = [];
150
+
151
+ for (let r = 0; r < rows; r++) {
152
+ const cols = grid[r].length;
153
+ for (let c = 0; c < cols; c++) {
154
+ if (!charMatch(startChar, grid[r][c])) continue;
155
+
156
+ for (const dir of DIRECTIONS) {
157
+ // Bounds check for last char
158
+ const er = r + dir.r * (len - 1);
159
+ const ec = c + dir.c * (len - 1);
160
+ if (!inBounds(grid, er, ec)) continue;
161
+
162
+ let possible = true;
163
+ let candidate = '';
164
+ for (let i = 0; i < len; i++) {
165
+ const nr = r + dir.r * i;
166
+ const nc = c + dir.c * i;
167
+ if (!inBounds(grid, nr, nc)) { possible = false; break; }
168
+ const ch = grid[nr][nc];
169
+ if (!ch || ch === ' ') { possible = false; break; }
170
+ candidate += ch;
171
+ }
172
+
173
+ if (possible && candidate.length === len) {
174
+ hits.push({ r, c, dir: dir.name, match: candidate });
175
+ }
176
+ }
177
+ }
178
+ }
179
+
180
+ // Deduplicate by match string
181
+ const seen = new Set();
182
+ const unique = hits.filter(h => {
183
+ if (seen.has(h.match)) return false;
184
+ seen.add(h.match);
185
+ return true;
186
+ });
187
+
188
+ if (unique.length > 0) results[pattern] = unique;
189
+ }
190
+ }
191
+
192
+ return results;
193
+ }
194
+
195
+ // ─── Leaderboard ──────────────────────────────────────────────────────────────
196
+ let leaderboard = [];
197
+
198
+ function getWordScore(word) {
199
+ return word.length * 10;
200
+ }
201
+
202
+ function recordScore(userName, score) {
203
+ leaderboard.push({ name: userName, score, date: new Date().toISOString() });
204
+ leaderboard.sort((a, b) => b.score - a.score);
205
+ leaderboard = leaderboard.slice(0, 10);
206
+ }
207
+
208
+ function getLeaderboard() {
209
+ return leaderboard;
210
+ }
211
+
212
+ module.exports = { solve, charMatch, getWordScore, recordScore, getLeaderboard };