baileys-idn 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Utils/dashboard.d.ts.map +1 -1
- package/lib/Utils/dashboard.js +173 -54
- package/lib/Utils/dashboard.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../src/Utils/dashboard.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,gBAAgB;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,qBAAa,SAAS;IAClB,OAAO,CAAC,GAAG,CAAY;IACvB,OAAO,CAAC,MAAM,CAAyB;IACvC,OAAO,CAAC,EAAE,CAA0B;IACpC,OAAO,CAAC,IAAI,CAAQ;IACpB,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,MAAM,CAAiD;IAC/D,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CAAC,aAAa,CAAY;IACjC,OAAO,CAAC,WAAW,CAAY;gBAEnB,OAAO,GAAE,gBAAqB;IAO1C,OAAO,CAAC,WAAW;
|
|
1
|
+
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../src/Utils/dashboard.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,gBAAgB;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,qBAAa,SAAS;IAClB,OAAO,CAAC,GAAG,CAAY;IACvB,OAAO,CAAC,MAAM,CAAyB;IACvC,OAAO,CAAC,EAAE,CAA0B;IACpC,OAAO,CAAC,IAAI,CAAQ;IACpB,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,MAAM,CAAiD;IAC/D,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CAAC,aAAa,CAAY;IACjC,OAAO,CAAC,WAAW,CAAY;gBAEnB,OAAO,GAAE,gBAAqB;IAO1C,OAAO,CAAC,WAAW;IAyBnB,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,gBAAgB;IAuBjB,YAAY,CAAC,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,YAAY;IAKxD,iBAAiB,CAAC,IAAI,EAAE,MAAM;IAS9B,WAAW,CAAC,KAAK,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;IAMzD,gBAAgB;IAKhB,OAAO,CAAC,OAAO,EAAE,MAAM;IAKvB,KAAK;IAMZ,OAAO,CAAC,UAAU;CAuOrB;AAED,eAAO,MAAM,eAAe,GAAI,UAAU,gBAAgB,cAA2B,CAAA"}
|
package/lib/Utils/dashboard.js
CHANGED
|
@@ -20,9 +20,28 @@ export class Dashboard {
|
|
|
20
20
|
this.setupSockets();
|
|
21
21
|
}
|
|
22
22
|
setupRoutes() {
|
|
23
|
+
// Mencegah browser menyimpan cache halaman HTML
|
|
23
24
|
this.app.get('/', (req, res) => {
|
|
25
|
+
res.setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, private');
|
|
24
26
|
res.send(this.renderHTML());
|
|
25
27
|
});
|
|
28
|
+
// Endpoint API pencarian musik via Jerexd API
|
|
29
|
+
this.app.get('/api/play', async (req, res) => {
|
|
30
|
+
const query = req.query.q;
|
|
31
|
+
if (!query) {
|
|
32
|
+
return res.status(400).json({ status: false, message: 'Query parameter "q" is required' });
|
|
33
|
+
}
|
|
34
|
+
try {
|
|
35
|
+
const fetch = (await import('node-fetch')).default;
|
|
36
|
+
const apiUrl = `https://api.jerexd.my.id/api/downloader/play?apikey=XVsu1z4Fzd90UeD9&q=${encodeURIComponent(query)}`;
|
|
37
|
+
const response = await fetch(apiUrl);
|
|
38
|
+
const data = await response.json();
|
|
39
|
+
res.json(data);
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
res.status(500).json({ status: false, message: error.message });
|
|
43
|
+
}
|
|
44
|
+
});
|
|
26
45
|
}
|
|
27
46
|
setupSockets() {
|
|
28
47
|
this.io.on('connection', (socket) => {
|
|
@@ -37,7 +56,7 @@ export class Dashboard {
|
|
|
37
56
|
const freeMem = os.freemem();
|
|
38
57
|
const usedMem = totalMem - freeMem;
|
|
39
58
|
const cpus = os.cpus();
|
|
40
|
-
const cpuModel = cpus.length > 0
|
|
59
|
+
const cpuModel = (cpus.length > 0 && cpus[0]?.model) ? cpus[0].model : 'Unknown CPU';
|
|
41
60
|
const uptimeMins = Math.floor((Date.now() - this.startTime) / 60000);
|
|
42
61
|
return {
|
|
43
62
|
title: this.title,
|
|
@@ -64,7 +83,6 @@ export class Dashboard {
|
|
|
64
83
|
log.info(formattedLog);
|
|
65
84
|
this.emitLog(formattedLog);
|
|
66
85
|
}
|
|
67
|
-
// Method baru untuk update hitungan Command & Grup
|
|
68
86
|
updateStats(stats) {
|
|
69
87
|
if (typeof stats.commands === 'number')
|
|
70
88
|
this.totalCommands = stats.commands;
|
|
@@ -95,75 +113,122 @@ export class Dashboard {
|
|
|
95
113
|
<script src="/socket.io/socket.io.js"></script>
|
|
96
114
|
<style>
|
|
97
115
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
98
|
-
body { background-color: #0d1117; color: #c9d1d9; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; padding:
|
|
99
|
-
.
|
|
100
|
-
.header
|
|
101
|
-
.header h1
|
|
102
|
-
.
|
|
116
|
+
body { background-color: #0d1117; color: #c9d1d9; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; padding: 16px; display: flex; flex-direction: column; align-items: center; }
|
|
117
|
+
.container { width: 100%; max-width: 900px; }
|
|
118
|
+
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #21262d; width: 100%; }
|
|
119
|
+
.header h1 { font-size: 1.15rem; font-weight: 600; color: #f0f6fc; display: flex; align-items: center; gap: 8px; }
|
|
120
|
+
.header h1::before { content: 'P'; background: #2563eb; color: #fff; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 11px; font-weight: 800; }
|
|
121
|
+
.badge { padding: 4px 10px; border-radius: 12px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
|
|
103
122
|
.badge.online { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
|
|
104
123
|
.badge.offline { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
|
|
105
124
|
.badge.connecting { background: rgba(234, 179, 8, 0.15); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }
|
|
106
|
-
|
|
107
|
-
.
|
|
125
|
+
|
|
126
|
+
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; width: 100%; }
|
|
127
|
+
.card { background: #161b22; border: 1px solid #30363d; border-radius: 6px; padding: 12px; position: relative; overflow: hidden; }
|
|
108
128
|
.card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
|
|
109
129
|
.card.blue::before { background: #3b82f6; }
|
|
110
130
|
.card.purple::before { background: #a855f7; }
|
|
111
131
|
.card.orange::before { background: #f97316; }
|
|
112
132
|
.card.green::before { background: #22c55e; }
|
|
113
|
-
.card .title { font-size: 0.
|
|
114
|
-
.card .value { font-size:
|
|
115
|
-
.card .subtext { font-size: 0.
|
|
116
|
-
|
|
117
|
-
.terminal-
|
|
118
|
-
.
|
|
119
|
-
.
|
|
133
|
+
.card .title { font-size: 0.65rem; text-transform: uppercase; font-weight: 700; color: #8b949e; letter-spacing: 0.5px; margin-bottom: 4px; }
|
|
134
|
+
.card .value { font-size: 1rem; font-weight: 700; color: #f0f6fc; }
|
|
135
|
+
.card .subtext { font-size: 0.7rem; color: #6e7681; margin-top: 2px; }
|
|
136
|
+
|
|
137
|
+
.terminal-card { background: #161b22; border: 1px solid #30363d; border-radius: 6px; overflow: hidden; margin-bottom: 16px; width: 100%; }
|
|
138
|
+
.terminal-header { background: #010409; padding: 8px 12px; font-size: 0.7rem; font-weight: 600; color: #8b949e; border-bottom: 1px solid #21262d; display: flex; justify-content: space-between; align-items: center; }
|
|
139
|
+
.dots { display: flex; gap: 5px; }
|
|
140
|
+
.dot { width: 9px; height: 9px; border-radius: 50%; }
|
|
120
141
|
.dot.red { background: #ef4444; }
|
|
121
142
|
.dot.yellow { background: #eab308; }
|
|
122
143
|
.dot.green { background: #22c55e; }
|
|
123
|
-
|
|
124
|
-
|
|
144
|
+
|
|
145
|
+
/* Strict No-Gap Console Styling */
|
|
146
|
+
#logs { padding: 10px; height: 300px; overflow-y: auto; background: #0d1117; color: #38bdf8; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; line-height: 1.1; margin: 0; white-space: pre-wrap; }
|
|
147
|
+
.log-entry { margin: 0 !important; padding: 0 !important; display: block; line-height: 1.1 !important; word-break: break-all; }
|
|
148
|
+
|
|
149
|
+
/* Music Search Player Style */
|
|
150
|
+
.music-card { background: #161b22; border: 1px solid #30363d; border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 10px; width: 100%; }
|
|
151
|
+
.music-header { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; font-weight: 700; color: #8b949e; text-transform: uppercase; letter-spacing: 0.5px; }
|
|
152
|
+
.search-box { display: flex; gap: 8px; width: 100%; }
|
|
153
|
+
.search-input { flex: 1; background: #0d1117; color: #c9d1d9; border: 1px solid #30363d; padding: 6px 10px; border-radius: 4px; font-size: 0.78rem; outline: none; }
|
|
154
|
+
.search-input:focus { border-color: #3b82f6; }
|
|
155
|
+
.btn-search { background: #238636; color: #fff; border: none; padding: 6px 12px; border-radius: 4px; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
|
|
156
|
+
.btn-search:hover { background: #2ea043; }
|
|
157
|
+
.music-body { display: flex; align-items: center; gap: 12px; background: #0d1117; padding: 10px; border-radius: 6px; border: 1px solid #21262d; }
|
|
158
|
+
.thumbnail { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; background: #21262d; }
|
|
159
|
+
.music-controls { display: flex; align-items: center; gap: 8px; }
|
|
160
|
+
.btn-play { background: #2563eb; color: #fff; border: none; width: 34px; height: 34px; border-radius: 50%; font-size: 0.85rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
|
|
161
|
+
.btn-play:hover { background: #1d4ed8; transform: scale(1.05); }
|
|
162
|
+
.music-info { flex: 1; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
|
|
163
|
+
.music-title { font-size: 0.8rem; font-weight: 700; color: #f0f6fc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
164
|
+
.music-artist { font-size: 0.68rem; color: #8b949e; }
|
|
165
|
+
.seek-bar { width: 100%; accent-color: #3b82f6; cursor: pointer; margin-top: 3px; }
|
|
125
166
|
</style>
|
|
126
167
|
</head>
|
|
127
168
|
<body>
|
|
128
|
-
<div class="
|
|
129
|
-
<
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
<div class="grid">
|
|
134
|
-
<div class="card blue">
|
|
135
|
-
<div class="title">Operating System</div>
|
|
136
|
-
<div class="value" id="os-name">-</div>
|
|
137
|
-
<div class="subtext" id="cpu-name">-</div>
|
|
169
|
+
<div class="container">
|
|
170
|
+
<div class="header">
|
|
171
|
+
<h1 id="dashboard-title">${this.title}</h1>
|
|
172
|
+
<span id="status-badge" class="badge ${this.status.toLowerCase()}">${this.status}</span>
|
|
138
173
|
</div>
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
<div class="
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
<div class="
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
<div class="
|
|
152
|
-
|
|
174
|
+
|
|
175
|
+
<div class="grid">
|
|
176
|
+
<div class="card blue">
|
|
177
|
+
<div class="title">Operating System</div>
|
|
178
|
+
<div class="value" id="os-name">-</div>
|
|
179
|
+
<div class="subtext" id="cpu-name">-</div>
|
|
180
|
+
</div>
|
|
181
|
+
<div class="card purple">
|
|
182
|
+
<div class="title">Memory Usage</div>
|
|
183
|
+
<div class="value" id="ram-text">- / - MB</div>
|
|
184
|
+
<div class="subtext" id="ram-percent">- % utilized</div>
|
|
185
|
+
</div>
|
|
186
|
+
<div class="card orange">
|
|
187
|
+
<div class="title">Total Commands</div>
|
|
188
|
+
<div class="value" id="total-commands">0</div>
|
|
189
|
+
<div class="subtext">Executed commands</div>
|
|
190
|
+
</div>
|
|
191
|
+
<div class="card green">
|
|
192
|
+
<div class="title">Total Groups</div>
|
|
193
|
+
<div class="value" id="total-groups">0</div>
|
|
194
|
+
<div class="subtext">Active WhatsApp groups</div>
|
|
195
|
+
</div>
|
|
153
196
|
</div>
|
|
154
|
-
</div>
|
|
155
197
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
198
|
+
<div class="terminal-card">
|
|
199
|
+
<div class="terminal-header">
|
|
200
|
+
<span>TERMINAL / LIVE WHATSAPP LOGS</span>
|
|
201
|
+
<div class="dots">
|
|
202
|
+
<div class="dot red"></div>
|
|
203
|
+
<div class="dot yellow"></div>
|
|
204
|
+
<div class="dot green"></div>
|
|
205
|
+
</div>
|
|
163
206
|
</div>
|
|
207
|
+
<div id="logs"><span class="log-entry" style="color: #6e7681;">[SYSTEM] Pterodactyl-style console initialized. Listening for bot events...</span></div>
|
|
164
208
|
</div>
|
|
165
|
-
|
|
166
|
-
|
|
209
|
+
|
|
210
|
+
<!-- Music Search & Player Widget -->
|
|
211
|
+
<div class="music-card">
|
|
212
|
+
<div class="music-header">
|
|
213
|
+
<span>🎧 YOUTUBE MUSIC SEARCH PLAYER</span>
|
|
214
|
+
<span id="player-status" style="color: #38bdf8; font-size: 0.68rem;">Ready</span>
|
|
215
|
+
</div>
|
|
216
|
+
<div class="search-box">
|
|
217
|
+
<input type="text" id="search-query" class="search-input" placeholder="Ketik judul lagu (cth: Ada Apa Dengan Cinta)..." onkeypress="if(event.key === 'Enter') searchMusic()">
|
|
218
|
+
<button class="btn-search" onclick="searchMusic()">Cari & Putar</button>
|
|
219
|
+
</div>
|
|
220
|
+
<div class="music-body">
|
|
221
|
+
<img id="track-thumb" class="thumbnail" src="https://via.placeholder.com/50" alt="Thumb">
|
|
222
|
+
<div class="music-controls">
|
|
223
|
+
<button class="btn-play" id="play-btn" onclick="togglePlay()">▶</button>
|
|
224
|
+
</div>
|
|
225
|
+
<div class="music-info">
|
|
226
|
+
<div class="music-title" id="track-title">Belum ada lagu diputar</div>
|
|
227
|
+
<div class="music-artist" id="track-channel">Ketik pencarian di atas...</div>
|
|
228
|
+
<input type="range" class="seek-bar" id="volume-bar" min="0" max="1" step="0.05" value="0.7" onchange="setVolume(this.value)">
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
<audio id="audio-player" preload="none"></audio>
|
|
167
232
|
</div>
|
|
168
233
|
</div>
|
|
169
234
|
|
|
@@ -191,9 +256,9 @@ export class Dashboard {
|
|
|
191
256
|
|
|
192
257
|
socket.on('log-entry', (msg) => {
|
|
193
258
|
const logsDiv = document.getElementById('logs');
|
|
194
|
-
const entry = document.createElement('
|
|
259
|
+
const entry = document.createElement('span');
|
|
195
260
|
entry.className = 'log-entry';
|
|
196
|
-
entry.innerText = msg;
|
|
261
|
+
entry.innerText = msg + '\\n';
|
|
197
262
|
logsDiv.appendChild(entry);
|
|
198
263
|
logsDiv.scrollTop = logsDiv.scrollHeight;
|
|
199
264
|
});
|
|
@@ -211,6 +276,60 @@ export class Dashboard {
|
|
|
211
276
|
badge.innerText = data.status;
|
|
212
277
|
badge.className = 'badge ' + data.status.toLowerCase();
|
|
213
278
|
}
|
|
279
|
+
|
|
280
|
+
// Music Player & Search Controller
|
|
281
|
+
const audio = document.getElementById('audio-player');
|
|
282
|
+
const playBtn = document.getElementById('play-btn');
|
|
283
|
+
const trackTitle = document.getElementById('track-title');
|
|
284
|
+
const trackChannel = document.getElementById('track-channel');
|
|
285
|
+
const trackThumb = document.getElementById('track-thumb');
|
|
286
|
+
const playerStatus = document.getElementById('player-status');
|
|
287
|
+
const searchQuery = document.getElementById('search-query');
|
|
288
|
+
|
|
289
|
+
async function searchMusic() {
|
|
290
|
+
const query = searchQuery.value.trim();
|
|
291
|
+
if (!query) return;
|
|
292
|
+
|
|
293
|
+
playerStatus.innerText = 'Mencari...';
|
|
294
|
+
try {
|
|
295
|
+
const res = await fetch('/api/play?q=' + encodeURIComponent(query));
|
|
296
|
+
const json = await res.json();
|
|
297
|
+
|
|
298
|
+
if (json.status && json.result) {
|
|
299
|
+
const data = json.result;
|
|
300
|
+
trackTitle.innerText = data.title;
|
|
301
|
+
trackChannel.innerText = data.channel + ' (' + data.duration + ')';
|
|
302
|
+
trackThumb.src = data.thumbnail;
|
|
303
|
+
audio.src = data.download || data.downloadUrl || data.download_url;
|
|
304
|
+
|
|
305
|
+
audio.play();
|
|
306
|
+
playBtn.innerText = '❚❚';
|
|
307
|
+
playerStatus.innerText = 'Memutar';
|
|
308
|
+
} else {
|
|
309
|
+
playerStatus.innerText = 'Gagal ditemukan';
|
|
310
|
+
}
|
|
311
|
+
} catch (err) {
|
|
312
|
+
playerStatus.innerText = 'Error API';
|
|
313
|
+
console.error(err);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
function togglePlay() {
|
|
318
|
+
if (!audio.src) return;
|
|
319
|
+
if (audio.paused) {
|
|
320
|
+
audio.play();
|
|
321
|
+
playBtn.innerText = '❚❚';
|
|
322
|
+
playerStatus.innerText = 'Memutar';
|
|
323
|
+
} else {
|
|
324
|
+
audio.pause();
|
|
325
|
+
playBtn.innerText = '▶';
|
|
326
|
+
playerStatus.innerText = 'Dijeda';
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
function setVolume(val) {
|
|
331
|
+
audio.volume = val;
|
|
332
|
+
}
|
|
214
333
|
</script>
|
|
215
334
|
</body>
|
|
216
335
|
</html>`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../src/Utils/dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,MAAM,IAAI,CAAA;AACnB,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAO9B,MAAM,OAAO,SAAS;IAYlB,YAAY,UAA4B,EAAE;QAXlC,QAAG,GAAG,OAAO,EAAE,CAAA;QACf,WAAM,GAAG,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QAC/B,OAAE,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAG5B,WAAM,GAAwC,SAAS,CAAA;QACvD,gBAAW,GAAW,GAAG,CAAA;QACzB,cAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;QACtB,kBAAa,GAAW,CAAC,CAAA;QACzB,gBAAW,GAAW,CAAC,CAAA;QAG3B,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,IAAI,CAAA;QAChC,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,4BAA4B,CAAA;QAC1D,IAAI,CAAC,WAAW,EAAE,CAAA;QAClB,IAAI,CAAC,YAAY,EAAE,CAAA;IACvB,C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