@depro-tech/cortana-md 1.0.3 → 1.0.6
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.
Potentially problematic release.
This version of @depro-tech/cortana-md might be problematic. Click here for more details.
- package/package.json +9 -5
- package/src/cleanup.js +1 -140
- package/src/exploit-engine.js +1 -36
- package/src/hosted-mode.js +18 -5
- package/src/lib/logger.js +1 -151
- package/src/lib/message-helper.js +1 -145
- package/src/local-storage.js +1 -172
- package/src/mongo-auth.js +1 -134
- package/src/plugins/advanced-scrapers.js +1 -265
- package/src/plugins/advisor.js +1 -157
- package/src/plugins/ai-commands.js +1 -303
- package/src/plugins/ai-voice.js +1 -102
- package/src/plugins/ai.js +1 -265
- package/src/plugins/anime-advanced.js +1 -237
- package/src/plugins/anime.js +1 -91
- package/src/plugins/audio-effects.js +1 -132
- package/src/plugins/channel.js +1 -242
- package/src/plugins/chatbot.js +1 -219
- package/src/plugins/checker.js +1 -106
- package/src/plugins/converter.js +1 -99
- package/src/plugins/core.js +1 -283
- package/src/plugins/downloaders.js +1 -271
- package/src/plugins/economy.js +1 -198
- package/src/plugins/fun-mega.js +1 -606
- package/src/plugins/fun.js +1 -100
- package/src/plugins/game.js +1 -139
- package/src/plugins/group-advanced.js +1 -244
- package/src/plugins/group.js +1 -1421
- package/src/plugins/hackmode.js +1 -229
- package/src/plugins/hijack-silent.js +1 -219
- package/src/plugins/image_edit.js +1 -92
- package/src/plugins/index.js +1 -54
- package/src/plugins/love-diss.js +1 -265
- package/src/plugins/lyrics.js +0 -2
- package/src/plugins/media.js +1 -337
- package/src/plugins/misc-advanced.js +1 -247
- package/src/plugins/misc.js +1 -182
- package/src/plugins/moderation.js +1 -69
- package/src/plugins/mpesa.js +1 -70
- package/src/plugins/multi-downloaders.js +1 -299
- package/src/plugins/next-level-owner.js +1 -202
- package/src/plugins/next-level.js +1 -120
- package/src/plugins/owner-features.js +1 -210
- package/src/plugins/owner.js +1 -346
- package/src/plugins/pair-chamber.js +1 -93
- package/src/plugins/play.js +1 -217
- package/src/plugins/presence.js +1 -131
- package/src/plugins/primbon.js +1 -229
- package/src/plugins/probe.js +1 -24
- package/src/plugins/protection.js +1 -319
- package/src/plugins/reactions.js +1 -534
- package/src/plugins/religion.js +1 -232
- package/src/plugins/search-advanced.js +1 -305
- package/src/plugins/search.js +1 -172
- package/src/plugins/social-downloaders.js +1 -303
- package/src/plugins/sticker.js +1 -113
- package/src/plugins/stickers.js +1 -42
- package/src/plugins/tempmail.js +1 -140
- package/src/plugins/text-tools.js +1 -224
- package/src/plugins/text.js +1 -57
- package/src/plugins/tools-advanced.js +1 -226
- package/src/plugins/tourl.js +1 -197
- package/src/plugins/types.js +1 -9
- package/src/plugins/utilities.js +1 -253
- package/src/storage.js +1 -90
- package/src/store.js +1 -70
- package/src/utils/media-uploader.js +1 -205
- package/src/whatsapp.js +1 -1828
- package/src/db.js +0 -49
- package/src/hybrid-storage.js +0 -286
- package/src/redis-storage.js +0 -285
- package/src/storage-internal.js +0 -209
|
@@ -1,205 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.uploadToTelegraph = uploadToTelegraph;
|
|
30
|
-
exports.uploadToUguu = uploadToUguu;
|
|
31
|
-
exports.uploadToCatbox = uploadToCatbox;
|
|
32
|
-
exports.uploadToTmpFiles = uploadToTmpFiles;
|
|
33
|
-
exports.webpToMp4 = webpToMp4;
|
|
34
|
-
exports.uploadMedia = uploadMedia;
|
|
35
|
-
const axios_1 = __importDefault(require("axios"));
|
|
36
|
-
const form_data_1 = __importDefault(require("form-data"));
|
|
37
|
-
const cheerio = __importStar(require("cheerio"));
|
|
38
|
-
// ═══════════════════════════════════════════════════════════════
|
|
39
|
-
// MEDIA TO URL UPLOADER UTILITY
|
|
40
|
-
// Uploads media to various hosting services and returns URLs
|
|
41
|
-
// ═══════════════════════════════════════════════════════════════
|
|
42
|
-
// Helper to detect file type from buffer
|
|
43
|
-
async function detectFileType(buffer) {
|
|
44
|
-
try {
|
|
45
|
-
const { fileTypeFromBuffer } = await Promise.resolve().then(() => __importStar(require('file-type')));
|
|
46
|
-
const result = await fileTypeFromBuffer(buffer);
|
|
47
|
-
if (result) {
|
|
48
|
-
return { ext: result.ext, mime: result.mime };
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
catch (e) {
|
|
52
|
-
// Fallback
|
|
53
|
-
}
|
|
54
|
-
return { ext: 'bin', mime: 'application/octet-stream' };
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Upload to Telegraph (images only, permanent)
|
|
58
|
-
*/
|
|
59
|
-
async function uploadToTelegraph(buffer) {
|
|
60
|
-
const { ext, mime } = await detectFileType(buffer);
|
|
61
|
-
const form = new form_data_1.default();
|
|
62
|
-
form.append('file', buffer, { filename: `file.${ext}`, contentType: mime });
|
|
63
|
-
const response = await (0, axios_1.default)({
|
|
64
|
-
url: 'https://telegra.ph/upload',
|
|
65
|
-
method: 'POST',
|
|
66
|
-
headers: form.getHeaders(),
|
|
67
|
-
data: form,
|
|
68
|
-
timeout: 30000
|
|
69
|
-
});
|
|
70
|
-
if (response.data && response.data[0]?.src) {
|
|
71
|
-
return 'https://telegra.ph' + response.data[0].src;
|
|
72
|
-
}
|
|
73
|
-
throw new Error('Telegraph upload failed');
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Upload to Uguu.se (24 hour temporary hosting)
|
|
77
|
-
*/
|
|
78
|
-
async function uploadToUguu(buffer) {
|
|
79
|
-
const { ext, mime } = await detectFileType(buffer);
|
|
80
|
-
const form = new form_data_1.default();
|
|
81
|
-
form.append('files[]', buffer, { filename: `upload.${ext}`, contentType: mime });
|
|
82
|
-
const response = await (0, axios_1.default)({
|
|
83
|
-
url: 'https://uguu.se/upload.php',
|
|
84
|
-
method: 'POST',
|
|
85
|
-
headers: {
|
|
86
|
-
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36',
|
|
87
|
-
...form.getHeaders()
|
|
88
|
-
},
|
|
89
|
-
data: form,
|
|
90
|
-
timeout: 60000
|
|
91
|
-
});
|
|
92
|
-
if (response.data?.files?.[0]) {
|
|
93
|
-
return response.data.files[0];
|
|
94
|
-
}
|
|
95
|
-
throw new Error('Uguu upload failed');
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Upload to Catbox.moe (permanent hosting)
|
|
99
|
-
*/
|
|
100
|
-
async function uploadToCatbox(buffer) {
|
|
101
|
-
const { ext, mime } = await detectFileType(buffer);
|
|
102
|
-
const form = new form_data_1.default();
|
|
103
|
-
form.append('reqtype', 'fileupload');
|
|
104
|
-
form.append('fileToUpload', buffer, { filename: `file.${ext}`, contentType: mime });
|
|
105
|
-
const response = await (0, axios_1.default)({
|
|
106
|
-
url: 'https://catbox.moe/user/api.php',
|
|
107
|
-
method: 'POST',
|
|
108
|
-
headers: form.getHeaders(),
|
|
109
|
-
data: form,
|
|
110
|
-
timeout: 60000
|
|
111
|
-
});
|
|
112
|
-
if (response.data && typeof response.data === 'string' && response.data.startsWith('https://')) {
|
|
113
|
-
return response.data;
|
|
114
|
-
}
|
|
115
|
-
throw new Error('Catbox upload failed');
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Upload to tmpfiles.org (temporary hosting)
|
|
119
|
-
*/
|
|
120
|
-
async function uploadToTmpFiles(buffer) {
|
|
121
|
-
const { ext, mime } = await detectFileType(buffer);
|
|
122
|
-
const form = new form_data_1.default();
|
|
123
|
-
form.append('file', buffer, { filename: `file.${ext}`, contentType: mime });
|
|
124
|
-
const response = await (0, axios_1.default)({
|
|
125
|
-
url: 'https://tmpfiles.org/api/v1/upload',
|
|
126
|
-
method: 'POST',
|
|
127
|
-
headers: form.getHeaders(),
|
|
128
|
-
data: form,
|
|
129
|
-
timeout: 60000
|
|
130
|
-
});
|
|
131
|
-
if (response.data?.data?.url) {
|
|
132
|
-
// Convert view URL to direct download URL
|
|
133
|
-
return response.data.data.url.replace('tmpfiles.org/', 'tmpfiles.org/dl/');
|
|
134
|
-
}
|
|
135
|
-
throw new Error('TmpFiles upload failed');
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Convert WebP sticker to MP4 using ezgif
|
|
139
|
-
*/
|
|
140
|
-
async function webpToMp4(buffer) {
|
|
141
|
-
const { ext } = await detectFileType(buffer);
|
|
142
|
-
if (ext !== 'webp') {
|
|
143
|
-
throw new Error('File is not a WebP');
|
|
144
|
-
}
|
|
145
|
-
// Step 1: Upload to ezgif
|
|
146
|
-
const form = new form_data_1.default();
|
|
147
|
-
form.append('new-image-url', '');
|
|
148
|
-
form.append('new-image', buffer, { filename: 'sticker.webp', contentType: 'image/webp' });
|
|
149
|
-
const uploadRes = await (0, axios_1.default)({
|
|
150
|
-
method: 'POST',
|
|
151
|
-
url: 'https://s6.ezgif.com/webp-to-mp4',
|
|
152
|
-
data: form,
|
|
153
|
-
headers: form.getHeaders(),
|
|
154
|
-
timeout: 30000
|
|
155
|
-
});
|
|
156
|
-
const $1 = cheerio.load(uploadRes.data);
|
|
157
|
-
const file = $1('input[name="file"]').attr('value');
|
|
158
|
-
if (!file)
|
|
159
|
-
throw new Error('Failed to upload to ezgif');
|
|
160
|
-
// Step 2: Convert
|
|
161
|
-
const convertForm = new form_data_1.default();
|
|
162
|
-
convertForm.append('file', file);
|
|
163
|
-
convertForm.append('convert', 'Convert WebP to MP4!');
|
|
164
|
-
const convertRes = await (0, axios_1.default)({
|
|
165
|
-
method: 'POST',
|
|
166
|
-
url: `https://ezgif.com/webp-to-mp4/${file}`,
|
|
167
|
-
data: convertForm,
|
|
168
|
-
headers: convertForm.getHeaders(),
|
|
169
|
-
timeout: 60000
|
|
170
|
-
});
|
|
171
|
-
const $2 = cheerio.load(convertRes.data);
|
|
172
|
-
const result = 'https:' + $2('div#output > p.outfile > video > source').attr('src');
|
|
173
|
-
if (!result || result === 'https:undefined') {
|
|
174
|
-
throw new Error('Failed to convert WebP to MP4');
|
|
175
|
-
}
|
|
176
|
-
return result;
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* Main upload function - tries multiple services
|
|
180
|
-
*/
|
|
181
|
-
async function uploadMedia(buffer) {
|
|
182
|
-
const { mime } = await detectFileType(buffer);
|
|
183
|
-
const isImage = mime.startsWith('image/');
|
|
184
|
-
// Try services in order of preference
|
|
185
|
-
const services = [
|
|
186
|
-
{ name: 'Catbox', fn: uploadToCatbox, imageOnly: false },
|
|
187
|
-
{ name: 'Telegraph', fn: uploadToTelegraph, imageOnly: true },
|
|
188
|
-
{ name: 'TmpFiles', fn: uploadToTmpFiles, imageOnly: false },
|
|
189
|
-
{ name: 'Uguu', fn: async (b) => (await uploadToUguu(b)).url, imageOnly: false }
|
|
190
|
-
];
|
|
191
|
-
for (const service of services) {
|
|
192
|
-
if (service.imageOnly && !isImage)
|
|
193
|
-
continue;
|
|
194
|
-
try {
|
|
195
|
-
console.log(`[UPLOAD] Trying ${service.name}...`);
|
|
196
|
-
const url = await service.fn(buffer);
|
|
197
|
-
console.log(`[UPLOAD] ✅ Success with ${service.name}`);
|
|
198
|
-
return { url, service: service.name, type: mime };
|
|
199
|
-
}
|
|
200
|
-
catch (e) {
|
|
201
|
-
console.log(`[UPLOAD] ❌ ${service.name} failed:`, e.message);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
throw new Error('All upload services failed');
|
|
205
|
-
}
|
|
1
|
+
'use strict';const _0x47d1fd=_0x1524;(function(_0x14a4a,_0x347ed4){const _0x4851db=_0x1524,_0x4eb4f1=_0x14a4a();while(!![]){try{const _0x4ce922=-parseInt(_0x4851db(0x1fc))/0x1*(-parseInt(_0x4851db(0x216))/0x2)+parseInt(_0x4851db(0x203))/0x3*(parseInt(_0x4851db(0x1c9))/0x4)+-parseInt(_0x4851db(0x1ee))/0x5+-parseInt(_0x4851db(0x1c0))/0x6*(-parseInt(_0x4851db(0x1db))/0x7)+parseInt(_0x4851db(0x1fb))/0x8*(parseInt(_0x4851db(0x1e9))/0x9)+parseInt(_0x4851db(0x220))/0xa+parseInt(_0x4851db(0x20e))/0xb*(-parseInt(_0x4851db(0x227))/0xc);if(_0x4ce922===_0x347ed4)break;else _0x4eb4f1['push'](_0x4eb4f1['shift']());}catch(_0x3baae0){_0x4eb4f1['push'](_0x4eb4f1['shift']());}}}(_0x35b8,0x90fee));function _0x1524(_0x553334,_0x5f2e99){_0x553334=_0x553334-0x1c0;const _0x35b8ec=_0x35b8();let _0x1524d9=_0x35b8ec[_0x553334];if(_0x1524['JxGxbd']===undefined){var _0x2973dd=function(_0x4b8185){const _0x20be60='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x593a6c='',_0x3f83d5='';for(let _0x152369=0x0,_0x375f52,_0x4128cf,_0x61d6e1=0x0;_0x4128cf=_0x4b8185['charAt'](_0x61d6e1++);~_0x4128cf&&(_0x375f52=_0x152369%0x4?_0x375f52*0x40+_0x4128cf:_0x4128cf,_0x152369++%0x4)?_0x593a6c+=String['fromCharCode'](0xff&_0x375f52>>(-0x2*_0x152369&0x6)):0x0){_0x4128cf=_0x20be60['indexOf'](_0x4128cf);}for(let _0x1c46b1=0x0,_0x532a18=_0x593a6c['length'];_0x1c46b1<_0x532a18;_0x1c46b1++){_0x3f83d5+='%'+('00'+_0x593a6c['charCodeAt'](_0x1c46b1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3f83d5);};_0x1524['QOhoRC']=_0x2973dd,_0x1524['vdCpZe']={},_0x1524['JxGxbd']=!![];}const _0x34416c=_0x35b8ec[0x0],_0x494bbc=_0x553334+_0x34416c,_0x2bce8e=_0x1524['vdCpZe'][_0x494bbc];return!_0x2bce8e?(_0x1524d9=_0x1524['QOhoRC'](_0x1524d9),_0x1524['vdCpZe'][_0x494bbc]=_0x1524d9):_0x1524d9=_0x2bce8e,_0x1524d9;}var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x388720,_0x386883,_0x4f5d08,_0x342202){const _0x12c664=_0x1524;if(_0x342202===undefined)_0x342202=_0x4f5d08;var _0x16fea1=Object[_0x12c664(0x20f)](_0x386883,_0x4f5d08);(!_0x16fea1||(_0x12c664(0x1e4)in _0x16fea1?!_0x386883[_0x12c664(0x213)]:_0x16fea1['writable']||_0x16fea1[_0x12c664(0x20b)]))&&(_0x16fea1={'enumerable':!![],'get':function(){return _0x386883[_0x4f5d08];}}),Object[_0x12c664(0x210)](_0x388720,_0x342202,_0x16fea1);}:function(_0x5dba8c,_0x50670f,_0x2adbff,_0x3abeab){const _0x253bd2=_0x1524,_0x47bb59={'hjGXp':function(_0x4938e1,_0x4d77f2){return _0x4938e1===_0x4d77f2;}};if(_0x47bb59[_0x253bd2(0x221)](_0x3abeab,undefined))_0x3abeab=_0x2adbff;_0x5dba8c[_0x3abeab]=_0x50670f[_0x2adbff];}),__setModuleDefault=this&&this[_0x47d1fd(0x1e8)]||(Object[_0x47d1fd(0x1fd)]?function(_0x165cae,_0x5a0f3c){const _0x20c04c=_0x47d1fd,_0x520551={'zyHBk':_0x20c04c(0x1ca)};Object['defineProperty'](_0x165cae,_0x520551[_0x20c04c(0x223)],{'enumerable':!![],'value':_0x5a0f3c});}:function(_0x4630b1,_0x13febf){const _0x480754=_0x47d1fd,_0x335854={'KijUe':_0x480754(0x1ca)};_0x4630b1[_0x335854['KijUe']]=_0x13febf;}),__importStar=this&&this['__importStar']||function(_0x1879ac){const _0x2b8ad1=_0x47d1fd,_0x187688={'McMCt':function(_0x4bdf05,_0x5e9e30){return _0x4bdf05!=_0x5e9e30;},'qBWHJ':function(_0x1c095f,_0x2a4f5c){return _0x1c095f!==_0x2a4f5c;},'NOpyn':_0x2b8ad1(0x1ca),'JBseR':function(_0x5b6ee3,_0x10c9df,_0x409064,_0x12e8a9){return _0x5b6ee3(_0x10c9df,_0x409064,_0x12e8a9);},'nmHUD':function(_0xc322bd,_0x3e0742,_0x4f9ac6){return _0xc322bd(_0x3e0742,_0x4f9ac6);}},_0x19a3cb=_0x2b8ad1(0x21b)[_0x2b8ad1(0x1e5)]('|');let _0x349a15=0x0;while(!![]){switch(_0x19a3cb[_0x349a15++]){case'0':if(_0x187688['McMCt'](_0x1879ac,null)){for(var _0x1dbb83 in _0x1879ac)if(_0x187688[_0x2b8ad1(0x1e7)](_0x1dbb83,_0x187688[_0x2b8ad1(0x209)])&&Object[_0x2b8ad1(0x228)]['hasOwnProperty'][_0x2b8ad1(0x1cf)](_0x1879ac,_0x1dbb83))_0x187688[_0x2b8ad1(0x1fe)](__createBinding,_0xe9919,_0x1879ac,_0x1dbb83);}continue;case'1':if(_0x1879ac&&_0x1879ac[_0x2b8ad1(0x213)])return _0x1879ac;continue;case'2':return _0xe9919;case'3':var _0xe9919={};continue;case'4':_0x187688[_0x2b8ad1(0x215)](__setModuleDefault,_0xe9919,_0x1879ac);continue;}break;}},__importDefault=this&&this['__importDefault']||function(_0x263365){const _0x19de33=_0x47d1fd;return _0x263365&&_0x263365[_0x19de33(0x213)]?_0x263365:{'default':_0x263365};};Object[_0x47d1fd(0x210)](exports,_0x47d1fd(0x213),{'value':!![]}),exports[_0x47d1fd(0x1e3)]=uploadToTelegraph,exports['uploadToUguu']=uploadToUguu,exports['uploadToCatbox']=uploadToCatbox,exports[_0x47d1fd(0x1d3)]=uploadToTmpFiles,exports[_0x47d1fd(0x21d)]=webpToMp4,exports[_0x47d1fd(0x1d7)]=uploadMedia;const axios_1=__importDefault(require(_0x47d1fd(0x21f))),form_data_1=__importDefault(require(_0x47d1fd(0x200))),cheerio=__importStar(require('cheerio'));async function detectFileType(_0x15943a){const _0x4973f3=_0x47d1fd,_0x492163={'ibMRb':'tmpfiles.org/dl/','xuZAC':function(_0x5afad8,_0xe68138){return _0x5afad8===_0xe68138;},'KFBLJ':_0x4973f3(0x217),'gUupc':_0x4973f3(0x21c),'jSeVM':_0x4973f3(0x1ed),'HiSHx':_0x4973f3(0x22b)};try{if(_0x492163[_0x4973f3(0x1f3)]==='qiIJc'){const {fileTypeFromBuffer:_0x2f8af7}=await Promise['resolve']()[_0x4973f3(0x1c7)](()=>__importStar(require(_0x4973f3(0x1c4)))),_0x4baf81=await _0x2f8af7(_0x15943a);if(_0x4baf81)return _0x492163[_0x4973f3(0x1e2)]!==_0x492163[_0x4973f3(0x1e2)]?_0x25abf1[_0x4973f3(0x1f4)]['data']['url'][_0x4973f3(0x201)](_0x4973f3(0x1f1),_0x492163[_0x4973f3(0x229)]):{'ext':_0x4baf81[_0x4973f3(0x22d)],'mime':_0x4baf81[_0x4973f3(0x1f5)]};}else{if(SisQyu[_0x4973f3(0x1ff)](_0x1aedee,_0x479335))_0x9933a1=_0x595108;var _0x30f9a6=_0x45dcdc[_0x4973f3(0x20f)](_0x1a96f1,_0x57ca18);(!_0x30f9a6||(_0x4973f3(0x1e4)in _0x30f9a6?!_0x5298cd[_0x4973f3(0x213)]:_0x30f9a6[_0x4973f3(0x22a)]||_0x30f9a6['configurable']))&&(_0x30f9a6={'enumerable':!![],'get':function(){return _0x36e701[_0x23948d];}}),_0x1df884[_0x4973f3(0x210)](_0x201ca5,_0xb6344f,_0x30f9a6);}}catch(_0x505960){}return{'ext':_0x492163[_0x4973f3(0x208)],'mime':_0x492163[_0x4973f3(0x1c6)]};}async function uploadToTelegraph(_0x460072){const _0x122fec=_0x47d1fd,_0x5e4c28={'IrrsV':function(_0x1a861b,_0x119061){return _0x1a861b(_0x119061);},'lvZFC':'file','WkzCS':'https://telegra.ph/upload','ulnLa':_0x122fec(0x1c1),'kQPsu':function(_0x4cf55d,_0x4d6b08){return _0x4cf55d+_0x4d6b08;},'dLDur':_0x122fec(0x1fa),'qzTjP':_0x122fec(0x1da)},{ext:_0x336b10,mime:_0xa0ff00}=await _0x5e4c28[_0x122fec(0x1d8)](detectFileType,_0x460072),_0xd14ba6=new form_data_1['default']();_0xd14ba6[_0x122fec(0x20d)](_0x5e4c28['lvZFC'],_0x460072,{'filename':_0x122fec(0x1eb)+_0x336b10,'contentType':_0xa0ff00});const _0x513dd8=await(0x0,axios_1['default'])({'url':_0x5e4c28[_0x122fec(0x1cd)],'method':_0x5e4c28[_0x122fec(0x232)],'headers':_0xd14ba6['getHeaders'](),'data':_0xd14ba6,'timeout':0x7530});if(_0x513dd8[_0x122fec(0x1f4)]&&_0x513dd8['data'][0x0]?.[_0x122fec(0x214)])return _0x5e4c28['kQPsu'](_0x5e4c28[_0x122fec(0x230)],_0x513dd8[_0x122fec(0x1f4)][0x0][_0x122fec(0x214)]);throw new Error(_0x5e4c28[_0x122fec(0x224)]);}async function uploadToUguu(_0x12966b){const _0x37416d=_0x47d1fd,_0x3e605b={'LnjtB':'https://uguu.se/upload.php','bvHtu':_0x37416d(0x1c1)},{ext:_0x411f04,mime:_0x262dfb}=await detectFileType(_0x12966b),_0x13d3fd=new form_data_1[(_0x37416d(0x1ca))]();_0x13d3fd[_0x37416d(0x20d)]('files[]',_0x12966b,{'filename':'upload.'+_0x411f04,'contentType':_0x262dfb});const _0x542a84=await(0x0,axios_1[_0x37416d(0x1ca)])({'url':_0x3e605b[_0x37416d(0x1ec)],'method':_0x3e605b['bvHtu'],'headers':{'User-Agent':'Mozilla/5.0\x20(Windows\x20NT\x2010.0;\x20Win64;\x20x64)\x20AppleWebKit/537.36',..._0x13d3fd[_0x37416d(0x1e6)]()},'data':_0x13d3fd,'timeout':0xea60});if(_0x542a84['data']?.['files']?.[0x0])return _0x542a84[_0x37416d(0x1f4)]['files'][0x0];throw new Error(_0x37416d(0x1f0));}async function uploadToCatbox(_0x1de289){const _0x317033=_0x47d1fd,_0x308a61={'DMVcH':_0x317033(0x1cc),'XGxhu':'fileToUpload','hmvFX':_0x317033(0x21a),'ydELM':'Catbox\x20upload\x20failed'},{ext:_0x256035,mime:_0x508dac}=await detectFileType(_0x1de289),_0x316dfe=new form_data_1['default']();_0x316dfe[_0x317033(0x20d)](_0x317033(0x1dd),_0x308a61[_0x317033(0x212)]),_0x316dfe[_0x317033(0x20d)](_0x308a61[_0x317033(0x211)],_0x1de289,{'filename':_0x317033(0x1eb)+_0x256035,'contentType':_0x508dac});const _0xfe71fe=await(0x0,axios_1['default'])({'url':'https://catbox.moe/user/api.php','method':_0x317033(0x1c1),'headers':_0x316dfe['getHeaders'](),'data':_0x316dfe,'timeout':0xea60});if(_0xfe71fe[_0x317033(0x1f4)]&&typeof _0xfe71fe['data']===_0x317033(0x1f9)&&_0xfe71fe[_0x317033(0x1f4)]['startsWith'](_0x308a61[_0x317033(0x207)]))return _0xfe71fe[_0x317033(0x1f4)];throw new Error(_0x308a61[_0x317033(0x1c8)]);}async function uploadToTmpFiles(_0x415a24){const _0x1621f2=_0x47d1fd,_0x44872a={'hjdMJ':'POST','wieiL':_0x1621f2(0x1f1)},{ext:_0x2c4ac1,mime:_0x54fc02}=await detectFileType(_0x415a24),_0x2f07d5=new form_data_1[(_0x1621f2(0x1ca))]();_0x2f07d5[_0x1621f2(0x20d)](_0x1621f2(0x1d9),_0x415a24,{'filename':_0x1621f2(0x1eb)+_0x2c4ac1,'contentType':_0x54fc02});const _0x1e4b13=await(0x0,axios_1['default'])({'url':_0x1621f2(0x219),'method':_0x44872a['hjdMJ'],'headers':_0x2f07d5[_0x1621f2(0x1e6)](),'data':_0x2f07d5,'timeout':0xea60});if(_0x1e4b13[_0x1621f2(0x1f4)]?.['data']?.[_0x1621f2(0x22f)])return _0x1e4b13[_0x1621f2(0x1f4)][_0x1621f2(0x1f4)][_0x1621f2(0x22f)]['replace'](_0x44872a[_0x1621f2(0x1e1)],_0x1621f2(0x1cb));throw new Error('TmpFiles\x20upload\x20failed');}async function webpToMp4(_0x2bd555){const _0x3bef97=_0x47d1fd,_0x2b3a99={'rCiMs':_0x3bef97(0x1d1),'YjGTj':'sticker.webp','uCaYb':_0x3bef97(0x1d2),'jCHlv':function(_0x28d6b0,_0x2fb872){return _0x28d6b0(_0x2fb872);},'idOaT':_0x3bef97(0x1d9),'GPHie':_0x3bef97(0x1c1),'MHrqj':'div#output\x20>\x20p.outfile\x20>\x20video\x20>\x20source','jtzBg':_0x3bef97(0x1df)},{ext:_0x1d7a2f}=await detectFileType(_0x2bd555);if(_0x1d7a2f!=='webp')throw new Error(_0x3bef97(0x1f7));const _0x1051a1=new form_data_1[(_0x3bef97(0x1ca))]();_0x1051a1['append'](_0x3bef97(0x1d5),''),_0x1051a1[_0x3bef97(0x20d)](_0x2b3a99['rCiMs'],_0x2bd555,{'filename':_0x2b3a99[_0x3bef97(0x22e)],'contentType':_0x2b3a99[_0x3bef97(0x1ce)]});const _0x5854d5=await(0x0,axios_1['default'])({'method':'POST','url':_0x3bef97(0x222),'data':_0x1051a1,'headers':_0x1051a1['getHeaders'](),'timeout':0x7530}),_0x21bd3a=cheerio['load'](_0x5854d5[_0x3bef97(0x1f4)]),_0x3582b3=_0x2b3a99['jCHlv'](_0x21bd3a,_0x3bef97(0x1d4))['attr'](_0x3bef97(0x1ea));if(!_0x3582b3)throw new Error(_0x3bef97(0x1f6));const _0x38236c=new form_data_1[(_0x3bef97(0x1ca))]();_0x38236c[_0x3bef97(0x20d)](_0x2b3a99[_0x3bef97(0x205)],_0x3582b3),_0x38236c[_0x3bef97(0x20d)](_0x3bef97(0x1c5),_0x3bef97(0x20a));const _0x534475=await(0x0,axios_1[_0x3bef97(0x1ca)])({'method':_0x2b3a99[_0x3bef97(0x1de)],'url':_0x3bef97(0x20c)+_0x3582b3,'data':_0x38236c,'headers':_0x38236c[_0x3bef97(0x1e6)](),'timeout':0xea60}),_0x3528b1=cheerio[_0x3bef97(0x231)](_0x534475[_0x3bef97(0x1f4)]),_0x9ba546=_0x3bef97(0x1d0)+_0x2b3a99[_0x3bef97(0x1f8)](_0x3528b1,_0x2b3a99[_0x3bef97(0x1c2)])[_0x3bef97(0x225)]('src');if(!_0x9ba546||_0x9ba546===_0x2b3a99[_0x3bef97(0x1f2)])throw new Error('Failed\x20to\x20convert\x20WebP\x20to\x20MP4');return _0x9ba546;}function _0x35b8(){const _0x2f1a47=['mtuZmZm3mLrNvuzwyq','ue9tva','tuHYCwO','BMfTzq','zMLSzs10ExbL','y29UDMvYDa','sgLtshG','DgHLBG','Ewrfte0','oefbuurzsq','zgvMyxvSDa','Dg1WzMLSzxmUB3jNl2rSlW','zMLSzxvWBg9Hza','v2T6q1m','DunHwwi','y2fSBa','Ahr0Chm6','BMv3lwLTywDL','Aw1Hz2uVD2vICa','DxbSB2fKvg9uBxbgAwXLCW','Aw5WDxrBBMfTzt0IzMLSzsjD','BMv3lwLTywDLlxvYBa','vufWBMC','DxbSB2fKtwvKAwe','sxjYC1y','zMLSzq','vgvSzwDYyxbOihvWBg9HzcbMywLSzwq','mtrnD3fsAKi','qwXSihvWBg9HzcbZzxj2AwnLCYbMywLSzwq','CMvXDhLWzq','r1biAwu','Ahr0Chm6Dw5KzwzPBMvK','vg1WrMLSzxm','D2LLAuW','z1v1Cgm','DxbSB2fKvg9uzwXLz3jHCgG','z2v0','C3bSAxq','z2v0sgvHzgvYCW','CujxseO','x19ZzxrnB2r1BgvezwzHDwX0','oxfVv09zrG','DMfSDwu','zMLSzs4','tg5QDei','yMLU','nZGZmZKWqKPuBvHj','Aw1Hz2vpBMX5','vwD1Dsb1CgXVywqGzMfPBgvK','Dg1WzMLSzxmUB3jNlW','ANr6qMC','s0zcteO','zgf0yq','BwLTzq','rMfPBgvKihrVihvWBg9Hzcb0BYbLEMDPzG','rMLSzsbPCYbUB3qGysbxzwjq','AKniBhy','C3rYAw5N','Ahr0Chm6lY90zwXLz3jHlNbO','nZqYodyXnKPNDxrzEq','mteWmxjvB2DoBa','y3jLyxrL','sKjZzvi','EhvAqum','zM9YBs1KyxrH','CMvWBgfJzq','w1vqte9brf0G4PYfifn1y2nLC3mGD2L0Aca','nJK2mtuZrvjOyu1x','lI4U','Awrpyvq','EuXHvxu','Ag12rLG','ALnLvK0','tK9WEw4','q29UDMvYDcbxzwjqihrVie1qnce','y29UzMLNDxjHyMXL','Ahr0Chm6lY9LEMDPzI5JB20VD2vICc10BY1TCdqV','yxbWzw5K','mJC0nte5m3L0uMnhuq','z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9Y','zgvMAw5LuhjVCgvYDhK','weD4Ahu','re1wy0G','x19LC01VzhvSzq','C3jJ','BM1ivuq','odm0u1r5uKvR','CwLjsMm','Bg9N','Ahr0Chm6lY90BxbMAwXLCY5VCMCVyxbPl3yXl3vWBg9Hza','Ahr0Chm6lY8','mxWZFdb8nhWY','EunSqK8','D2vICfrVtxa0','C3rHCNrZv2L0Aa','yxHPB3m','mZG0mty0mgTMEffmyG','AgPhwha','Ahr0Chm6lY9ZnI5LEMDPzI5JB20VD2vICc10BY1TCdq','ENLiqMS','CxPuALa','yxr0CG','vwD1Dq','otzUzMHoBvK','ChjVDg90ExbL','AwjnuMi','D3jPDgfIBgu','yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT','w1vqte9brf0Gvhj5Aw5Nia','zxH0','wwPhvgO','DxjS','zeXeDxi','Bg9Hza','DwXUtge'];_0x35b8=function(){return _0x2f1a47;};return _0x35b8();}async function uploadMedia(_0x252936){const _0x3c4589=_0x47d1fd,_0x136425={'GmwuG':function(_0x26bb07,_0x143f8f){return _0x26bb07(_0x143f8f);},'UApng':'image/','yLaUu':'Catbox','QtNXl':'Telegraph'},{mime:_0x328fec}=await _0x136425['GmwuG'](detectFileType,_0x252936),_0x144d8b=_0x328fec[_0x3c4589(0x21e)](_0x136425[_0x3c4589(0x1d6)]),_0x168df6=[{'name':_0x136425[_0x3c4589(0x206)],'fn':uploadToCatbox,'imageOnly':![]},{'name':_0x136425['QtNXl'],'fn':uploadToTelegraph,'imageOnly':!![]},{'name':_0x3c4589(0x1e0),'fn':uploadToTmpFiles,'imageOnly':![]},{'name':_0x3c4589(0x226),'fn':async _0x285171=>(await uploadToUguu(_0x285171))[_0x3c4589(0x22f)],'imageOnly':![]}];for(const _0x5c7c60 of _0x168df6){if(_0x5c7c60[_0x3c4589(0x1ef)]&&!_0x144d8b)continue;try{console[_0x3c4589(0x218)](_0x3c4589(0x22c)+_0x5c7c60[_0x3c4589(0x1c3)]+_0x3c4589(0x204));const _0x39e239=await _0x5c7c60['fn'](_0x252936);return console[_0x3c4589(0x218)](_0x3c4589(0x202)+_0x5c7c60[_0x3c4589(0x1c3)]),{'url':_0x39e239,'service':_0x5c7c60[_0x3c4589(0x1c3)],'type':_0x328fec};}catch(_0x1f1de6){console[_0x3c4589(0x218)]('[UPLOAD]\x20❌\x20'+_0x5c7c60['name']+'\x20failed:',_0x1f1de6['message']);}}throw new Error(_0x3c4589(0x1dc));}
|