@yourname168/tiktok 0.0.0-stage → 0.2.0

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.
@@ -0,0 +1,277 @@
1
+ export interface ProductAnchor {
2
+ productId: string;
3
+ displayName: string;
4
+ }
5
+ export interface UploadedVideo {
6
+ videoId: string;
7
+ width: number;
8
+ height: number;
9
+ }
10
+ export interface UploadedPhoto {
11
+ id: string;
12
+ uri: string;
13
+ width: number;
14
+ height: number;
15
+ }
16
+ export interface PhotoAlbumMusic {
17
+ id: string;
18
+ title: string;
19
+ author: string;
20
+ url: string;
21
+ startSeconds?: number;
22
+ endSeconds: number;
23
+ album?: string;
24
+ }
25
+ export interface PrivatePhotoPostOptions {
26
+ creationId: string;
27
+ title: string;
28
+ caption: string;
29
+ photos: readonly UploadedPhoto[];
30
+ products: ProductAnchor[];
31
+ coverIndex?: number;
32
+ music?: PhotoAlbumMusic;
33
+ aiGenerated?: boolean;
34
+ productRegistration?: 'add' | 'existing';
35
+ }
36
+ export interface PhotoPostOptions extends PrivatePhotoPostOptions {
37
+ visibility?: 'public' | 'friends' | 'private';
38
+ }
39
+ export interface WebPostOptions {
40
+ creationId: string;
41
+ caption: string;
42
+ video: UploadedVideo;
43
+ coverUri?: string;
44
+ visibility?: 'public' | 'friends' | 'private';
45
+ allowComments?: boolean;
46
+ scheduleTimeSeconds?: number;
47
+ products?: ProductAnchor[];
48
+ productRegistration?: 'add' | 'existing';
49
+ }
50
+ export declare function productAnchors(products: ProductAnchor[]): {
51
+ type: number;
52
+ keyword: string;
53
+ content: {
54
+ add_from: number;
55
+ keyword: string;
56
+ product_id: string;
57
+ };
58
+ }[];
59
+ export declare function createWebPostBody(input: WebPostOptions): {
60
+ post_common_info: {
61
+ creation_id: string;
62
+ enter_post_page_from: number;
63
+ post_type: number;
64
+ };
65
+ feature_common_info_list: {
66
+ schedule_time: number;
67
+ geofencing_regions: never[];
68
+ playlist_name: string;
69
+ playlist_id: string;
70
+ tcm_params: string;
71
+ sound_exemption: number;
72
+ anchors: {
73
+ type: number;
74
+ keyword: string;
75
+ content: {
76
+ add_from: number;
77
+ keyword: string;
78
+ product_id: string;
79
+ };
80
+ }[];
81
+ vedit_common_info: {
82
+ draft: string;
83
+ video_id: string;
84
+ };
85
+ privacy_setting_info: {
86
+ visibility_type: number;
87
+ allow_duet: null;
88
+ allow_stitch: null;
89
+ allow_comment: number;
90
+ allow_content_reuse: number;
91
+ };
92
+ content_check_id: string;
93
+ }[];
94
+ single_post_req_list: {
95
+ batch_index: number;
96
+ video_id: string;
97
+ is_long_video: number;
98
+ single_post_feature_info: {
99
+ music_info: {};
100
+ cover_info: {
101
+ frame_duration: number;
102
+ blob_url: string;
103
+ cover_width: number;
104
+ cover_height: number;
105
+ cover_type: number;
106
+ crop_type: number;
107
+ isAutoCropFirstFrame: boolean;
108
+ cover_uri: string;
109
+ isProcessingInitialCover: boolean;
110
+ };
111
+ poster_delay: number;
112
+ cloud_edit_video_height: number;
113
+ cloud_edit_video_width: number;
114
+ cloud_edit_is_use_video_canvas: boolean;
115
+ text: string;
116
+ text_extra: {
117
+ tag_id: string;
118
+ user_id: string;
119
+ start: number;
120
+ end: number;
121
+ type: number;
122
+ hashtag_name: string | undefined;
123
+ }[];
124
+ markup_text: string;
125
+ };
126
+ }[];
127
+ };
128
+ export declare function createPhotoPostBody(input: PhotoPostOptions): {
129
+ feature_common_info_list: {
130
+ aigc_info: {
131
+ aigc_label_type: number;
132
+ };
133
+ org_game_post_use_store_region: boolean;
134
+ privacy_setting_info: {
135
+ allow_comment: number;
136
+ allow_duet: number;
137
+ allow_stitch: number;
138
+ allow_content_reuse: number;
139
+ allow_ai_remix: number;
140
+ visibility_type: number;
141
+ };
142
+ draft_id: string;
143
+ tcm_params: string;
144
+ anchors: {
145
+ type: number;
146
+ keyword: string;
147
+ content: {
148
+ add_from: number;
149
+ keyword: string;
150
+ product_id: string;
151
+ };
152
+ }[];
153
+ }[];
154
+ post_common_info: {
155
+ creation_id: string;
156
+ enter_post_page_from: number;
157
+ post_type: number;
158
+ };
159
+ single_post_req_list: {
160
+ batch_index: number;
161
+ aweme_type: number;
162
+ image_post_content: {
163
+ title: string;
164
+ images: {
165
+ id: string;
166
+ uri: string;
167
+ width_px: number;
168
+ height_px: number;
169
+ }[];
170
+ cover: {
171
+ id: string;
172
+ uri: string;
173
+ width_px: number;
174
+ height_px: number;
175
+ } | undefined;
176
+ };
177
+ single_post_feature_info: {
178
+ music_info?: {
179
+ music_id_string: string;
180
+ music_title: string;
181
+ music_author: string;
182
+ music_url: string;
183
+ music_begin_time: number;
184
+ music_end_time: number;
185
+ origin_volume: string;
186
+ music_volume: string;
187
+ music_album: string;
188
+ music_type: number;
189
+ };
190
+ text: string;
191
+ text_extra: {
192
+ tag_id: string;
193
+ user_id: string;
194
+ start: number;
195
+ end: number;
196
+ type: number;
197
+ hashtag_name: string | undefined;
198
+ }[];
199
+ markup_text: string;
200
+ };
201
+ }[];
202
+ };
203
+ export declare function createPrivatePhotoPostBody(input: PrivatePhotoPostOptions): {
204
+ feature_common_info_list: {
205
+ aigc_info: {
206
+ aigc_label_type: number;
207
+ };
208
+ org_game_post_use_store_region: boolean;
209
+ privacy_setting_info: {
210
+ allow_comment: number;
211
+ allow_duet: number;
212
+ allow_stitch: number;
213
+ allow_content_reuse: number;
214
+ allow_ai_remix: number;
215
+ visibility_type: number;
216
+ };
217
+ draft_id: string;
218
+ tcm_params: string;
219
+ anchors: {
220
+ type: number;
221
+ keyword: string;
222
+ content: {
223
+ add_from: number;
224
+ keyword: string;
225
+ product_id: string;
226
+ };
227
+ }[];
228
+ }[];
229
+ post_common_info: {
230
+ creation_id: string;
231
+ enter_post_page_from: number;
232
+ post_type: number;
233
+ };
234
+ single_post_req_list: {
235
+ batch_index: number;
236
+ aweme_type: number;
237
+ image_post_content: {
238
+ title: string;
239
+ images: {
240
+ id: string;
241
+ uri: string;
242
+ width_px: number;
243
+ height_px: number;
244
+ }[];
245
+ cover: {
246
+ id: string;
247
+ uri: string;
248
+ width_px: number;
249
+ height_px: number;
250
+ } | undefined;
251
+ };
252
+ single_post_feature_info: {
253
+ music_info?: {
254
+ music_id_string: string;
255
+ music_title: string;
256
+ music_author: string;
257
+ music_url: string;
258
+ music_begin_time: number;
259
+ music_end_time: number;
260
+ origin_volume: string;
261
+ music_volume: string;
262
+ music_album: string;
263
+ music_type: number;
264
+ };
265
+ text: string;
266
+ text_extra: {
267
+ tag_id: string;
268
+ user_id: string;
269
+ start: number;
270
+ end: number;
271
+ type: number;
272
+ hashtag_name: string | undefined;
273
+ }[];
274
+ markup_text: string;
275
+ };
276
+ }[];
277
+ };
@@ -0,0 +1,112 @@
1
+ import { string } from "./http.js";
2
+ export function productAnchors(products) {
3
+ return products.map(product => {
4
+ const keyword = string(product.displayName, 'displayName').slice(0, 30);
5
+ return { type: 33, keyword, content: { add_from: 2, keyword, product_id: string(product.productId, 'productId') } };
6
+ });
7
+ }
8
+ function captionFields(caption) {
9
+ const matches = [...caption.matchAll(/#(\w+)/g)];
10
+ const text_extra = matches.map((match, index) => ({ tag_id: String(index), user_id: '', start: match.index, end: match.index + match[0].length, type: 1, hashtag_name: match[1] }));
11
+ let markup_text = '';
12
+ let offset = 0;
13
+ matches.forEach((match, index) => {
14
+ markup_text += caption.slice(offset, match.index).replaceAll('\n', '<br>') + `<h id="${index}">${match[0]}</h>`;
15
+ offset = match.index + match[0].length;
16
+ });
17
+ markup_text += caption.slice(offset).replaceAll('\n', '<br>');
18
+ return { text: caption, text_extra, markup_text };
19
+ }
20
+ export function createWebPostBody(input) {
21
+ string(input.creationId, 'creationId');
22
+ string(input.video.videoId, 'videoId');
23
+ for (const n of [input.video.width, input.video.height])
24
+ if (!Number.isSafeInteger(n) || n < 1)
25
+ throw new Error('Invalid video dimensions');
26
+ const schedule = input.scheduleTimeSeconds ?? 0;
27
+ if (!Number.isSafeInteger(schedule) || schedule < 0)
28
+ throw new Error('Invalid scheduleTimeSeconds');
29
+ const visibility = input.visibility ?? 'private';
30
+ if (!['public', 'friends', 'private'].includes(visibility))
31
+ throw new Error('Invalid visibility');
32
+ return {
33
+ post_common_info: { creation_id: input.creationId, enter_post_page_from: 2, post_type: 3 },
34
+ feature_common_info_list: [{ schedule_time: schedule, geofencing_regions: [], playlist_name: '', playlist_id: '',
35
+ tcm_params: '{"commerce_toggle_info":{}}', sound_exemption: 0, anchors: productAnchors(input.products ?? []),
36
+ vedit_common_info: { draft: '', video_id: input.video.videoId },
37
+ privacy_setting_info: { visibility_type: { public: 0, friends: 2, private: 1 }[visibility], allow_duet: null,
38
+ allow_stitch: null, allow_comment: input.allowComments === false ? 0 : 1, allow_content_reuse: 1 }, content_check_id: '' }],
39
+ single_post_req_list: [{ batch_index: 0, video_id: input.video.videoId, is_long_video: 0,
40
+ single_post_feature_info: { ...captionFields(input.caption), music_info: {},
41
+ cover_info: { frame_duration: 0, blob_url: '', cover_width: input.video.width, cover_height: input.video.height,
42
+ cover_type: 2, crop_type: 2, isAutoCropFirstFrame: true, cover_uri: input.coverUri ?? '', isProcessingInitialCover: false },
43
+ poster_delay: 0, cloud_edit_video_height: input.video.height, cloud_edit_video_width: input.video.width, cloud_edit_is_use_video_canvas: false } }],
44
+ };
45
+ }
46
+ function photoMusicInfo(music) {
47
+ const start = music.startSeconds ?? 0;
48
+ if (!Number.isFinite(start) || !Number.isFinite(music.endSeconds) || start < 0 || music.endSeconds <= start) {
49
+ throw new Error('Invalid music time range');
50
+ }
51
+ const url = new URL(music.url);
52
+ if (url.protocol !== 'https:' || url.username || url.password)
53
+ throw new Error('Invalid music URL');
54
+ return {
55
+ music_id_string: string(music.id, 'music id'),
56
+ music_title: string(music.title, 'music title'),
57
+ music_author: music.author,
58
+ music_url: url.href,
59
+ music_begin_time: start,
60
+ music_end_time: music.endSeconds,
61
+ origin_volume: '100',
62
+ music_volume: '100',
63
+ music_album: music.album ?? '',
64
+ music_type: 1,
65
+ };
66
+ }
67
+ export function createPhotoPostBody(input) {
68
+ string(input.creationId, 'creationId');
69
+ if (!input.products.length)
70
+ throw new Error('At least one product is required');
71
+ if (!input.photos.length || input.photos.length > 35)
72
+ throw new Error('Provide 1 to 35 photos');
73
+ const visibility = input.visibility ?? 'private';
74
+ if (!['public', 'friends', 'private'].includes(visibility))
75
+ throw new Error('Invalid visibility');
76
+ const photos = input.photos.map(photo => {
77
+ if (![photo.width, photo.height].every(n => Number.isSafeInteger(n) && n > 0)) {
78
+ throw new Error('Invalid photo dimensions');
79
+ }
80
+ return { id: string(photo.id, 'photo id'), uri: string(photo.uri, 'photo uri'), width_px: photo.width, height_px: photo.height };
81
+ });
82
+ const coverIndex = input.coverIndex ?? 0;
83
+ if (!Number.isInteger(coverIndex) || coverIndex < 0 || coverIndex >= photos.length)
84
+ throw new Error('Invalid photo cover index');
85
+ const cover = photos[coverIndex];
86
+ return {
87
+ feature_common_info_list: [{
88
+ aigc_info: { aigc_label_type: input.aiGenerated === true ? 1 : 0 },
89
+ org_game_post_use_store_region: false,
90
+ privacy_setting_info: {
91
+ allow_comment: 0, allow_duet: 0, allow_stitch: 0, allow_content_reuse: 0, allow_ai_remix: 2,
92
+ visibility_type: { public: 0, friends: 2, private: 1 }[visibility],
93
+ },
94
+ draft_id: '',
95
+ tcm_params: '{"commerce_toggle_info":{}}',
96
+ anchors: productAnchors(input.products),
97
+ }],
98
+ post_common_info: { creation_id: input.creationId, enter_post_page_from: 8, post_type: 4 },
99
+ single_post_req_list: [{
100
+ batch_index: 0,
101
+ aweme_type: 150,
102
+ image_post_content: { title: input.title, images: photos, cover },
103
+ single_post_feature_info: {
104
+ ...captionFields(input.caption),
105
+ ...(input.music ? { music_info: photoMusicInfo(input.music) } : {}),
106
+ },
107
+ }],
108
+ };
109
+ }
110
+ export function createPrivatePhotoPostBody(input) {
111
+ return createPhotoPostBody({ ...input, visibility: 'private' });
112
+ }
@@ -0,0 +1,33 @@
1
+ /* Derived from n8n-nodes-social-tiktok 0.1.22 (hieu nguyen), MIT.
2
+ * Reconstructed algorithm; see ../../THIRD_PARTY_NOTICES.md. */
3
+ // CommonJS keeps the recovered signer usable from plain Node and VM vectors.
4
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
5
+ const crypto = require('node:crypto');
6
+ const alphabet = 'Dkdpgh4ZKsQB80/Mfvw36XI1R25-WUAlEi7NLboqYTOPuzmFjJnryx9HVGcaStCe';
7
+ const standard = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
8
+ function md5(bytes) { return crypto.createHash('md5').update(bytes).digest(); }
9
+ function rc4(key, data) {
10
+ const state = Uint8Array.from({ length: 256 }, (_, i) => i);
11
+ let j = 0;
12
+ for (let i = 0; i < 256; i++) { j = (j + state[i] + key[i % key.length]) & 255; [state[i], state[j]] = [state[j], state[i]]; }
13
+ const out = Buffer.alloc(data.length);
14
+ let i = 0; j = 0;
15
+ for (let n = 0; n < data.length; n++) {
16
+ i = (i + 1) & 255; j = (j + state[i]) & 255; [state[i], state[j]] = [state[j], state[i]];
17
+ out[n] = data[n] ^ state[(state[i] + state[j]) & 255];
18
+ }
19
+ return out;
20
+ }
21
+ function encrypt(query, body, userAgent, nowSeconds) {
22
+ const key = Buffer.from([0, 1, 14]);
23
+ const queryHash = md5(md5(Buffer.from(query, 'utf8')));
24
+ const bodyHash = md5(md5(Buffer.from(body, 'utf8')));
25
+ const agentHash = md5(Buffer.from(rc4(key, Buffer.from(userAgent, 'utf8')).toString('base64'), 'ascii'));
26
+ const timestamp = Buffer.alloc(4); timestamp.writeUInt32BE(nowSeconds >>> 0);
27
+ const magic = Buffer.alloc(4); magic.writeUInt32BE(1245783967);
28
+ const bytes = Buffer.concat([Buffer.from([64]), key, queryHash.subarray(14, 16), bodyHash.subarray(14, 16), agentHash.subarray(14, 16), timestamp, magic]);
29
+ const checksum = bytes.reduce((result, byte) => result ^ byte, 0);
30
+ const output = Buffer.concat([Buffer.from([2, 255]), rc4(Buffer.from([255]), Buffer.concat([bytes, Buffer.from([checksum])]))]);
31
+ return [...output.toString('base64')].map(char => { const index = standard.indexOf(char); return index < 0 ? char : alphabet[index]; }).join('');
32
+ }
33
+ module.exports = { encrypt };
@@ -0,0 +1,225 @@
1
+ /* Recovered from n8n-nodes-social-tiktok 0.1.22 (hieu nguyen), MIT. See ../../THIRD_PARTY_NOTICES.md. */
2
+ /* eslint-disable */
3
+ const crypto = require("crypto");
4
+ const aa = [4294967295, 138, 1498001188, 211147047, 253, null, 203, 288, 9, 1196819126, 3212677781, 135, 263, 193, 58, 18, 244, 2931180889, 240, 173, 268, 2157053261, 261, 175, 14, 5, 171, 270, 156, 258, 13, 15, 3732962506, 185, 169, 2, 6, 132, 162, 200, 3, 160, 217618912, 62, 2517678443, 44, 164, 4, 96, 183, 2903579748, 3863347763, 119, 181, 10, 190, 8, 2654435769, 259, 104, 230, 128, 2633865432, 225, 1, 257, 143, 179, 16, 600974999, 185100057, 32, 188, 53, 2718276124, 177, 196, 4294967296, 147, 117, 17, 49, 7, 28, 12, 266, 216, 11, 0, 45, 166, 247, 1451689750];
5
+ const Ot = [aa[9], aa[69], aa[51], aa[92]];
6
+ function initPrngState() {
7
+ const _0x32a8ae = {};
8
+ _0x32a8ae["vDnhB"] = function (_0x5947f2, _0x36f478) { return _0x5947f2 & _0x36f478; };
9
+ const _0xccb6a8 = _0x32a8ae, _0x80ddf5 = Date["now"]();
10
+ return [aa[44], aa[74], aa[10], aa[62], aa[42], aa[17], aa[2], aa[21], aa[3], aa[70], aa[50], aa[32], _0xccb6a8["vDnhB"](aa[0], _0x80ddf5), crypto["randomInt"](aa[77]), crypto["randomInt"](aa[77]), crypto["randomInt"](aa[77])];
11
+ }
12
+ let kt = initPrngState();
13
+ let St = aa[88];
14
+ const u32 = _0x14581a => _0x14581a >>> 0;
15
+ const rotl = (_0x52a1f6, _0x5d00d7) => u32(_0x52a1f6 << _0x5d00d7 | _0x52a1f6 >>> 32 - _0x5d00d7);
16
+ function quarter(_0x2e5678, _0xc71fde, _0x264633, _0x1d02be, _0x39a253) {
17
+ const _0x451393 = { 'rGfRu': function (_0x4a95e2, _0x20b7e9) { return _0x4a95e2(_0x20b7e9); }, 'jQWjR': function (_0x2e4db8, _0x26eeb8) { return _0x2e4db8 + _0x26eeb8; }, 'EcOjb': function (_0x80c41a, _0x3330a6) { return _0x80c41a(_0x3330a6); }, 'hrQkc': function (_0x56c5de, _0x370f35) { return _0x56c5de ^ _0x370f35; }, 'zXcov': function (_0x31212d, _0x6df8ac) { return _0x31212d ^ _0x6df8ac; } }, _0x194be7 = ("0|7|2|5|6|4|1|3")["split"]('|');
18
+ let _0xe41c5d = 0;
19
+ while (!![]) {
20
+ switch (_0x194be7[_0xe41c5d++]) {
21
+ case '0':
22
+ _0x2e5678[_0xc71fde] = _0x451393["rGfRu"](u32, _0x2e5678[_0xc71fde] + _0x2e5678[_0x264633]);
23
+ continue;
24
+ case '1':
25
+ _0x2e5678[_0x1d02be] = _0x451393["rGfRu"](u32, _0x451393["jQWjR"](_0x2e5678[_0x1d02be], _0x2e5678[_0x39a253]));
26
+ continue;
27
+ case '2':
28
+ _0x2e5678[_0x1d02be] = _0x451393["EcOjb"](u32, _0x451393["jQWjR"](_0x2e5678[_0x1d02be], _0x2e5678[_0x39a253]));
29
+ continue;
30
+ case '3':
31
+ _0x2e5678[_0x264633] = rotl(_0x451393["hrQkc"](_0x2e5678[_0x264633], _0x2e5678[_0x1d02be]), 7);
32
+ continue;
33
+ case '4':
34
+ _0x2e5678[_0x39a253] = rotl(_0x451393["zXcov"](_0x2e5678[_0x39a253], _0x2e5678[_0xc71fde]), 8);
35
+ continue;
36
+ case '5':
37
+ _0x2e5678[_0x264633] = rotl(_0x2e5678[_0x264633] ^ _0x2e5678[_0x1d02be], 12);
38
+ continue;
39
+ case '6':
40
+ _0x2e5678[_0xc71fde] = _0x451393["EcOjb"](u32, _0x451393["jQWjR"](_0x2e5678[_0xc71fde], _0x2e5678[_0x264633]));
41
+ continue;
42
+ case '7':
43
+ _0x2e5678[_0x39a253] = rotl(_0x451393["hrQkc"](_0x2e5678[_0x39a253], _0x2e5678[_0xc71fde]), 16);
44
+ continue;
45
+ }
46
+ break;
47
+ }
48
+ }
49
+ function chachaBlock(_0x394d50, _0x134952) {
50
+ const _0x5995c3 = { 'jEcqb': "jyUlm", 'QNwIH': function (_0x540418, _0xf697ef, _0x48c9f0, _0x5920d5, _0x843720, _0x4e7d90) { return _0x540418(_0xf697ef, _0x48c9f0, _0x5920d5, _0x843720, _0x4e7d90); }, 'zIpWr': function (_0x550168, _0x434eb8) { return _0x550168 >= _0x434eb8; }, 'KsqpY': function (_0x537a10, _0x5bd945, _0x4971da, _0x5c3cd4, _0x277440, _0x1b0862) { return _0x537a10(_0x5bd945, _0x4971da, _0x5c3cd4, _0x277440, _0x1b0862); }, 'gsOwq': function (_0x39eec2, _0x1a5228, _0x19884b, _0x4b2186, _0x32ab39, _0x1395df) { return _0x39eec2(_0x1a5228, _0x19884b, _0x4b2186, _0x32ab39, _0x1395df); }, 'dYnrU': function (_0x349385, _0x48ab16) { return _0x349385 < _0x48ab16; }, 'TpaDD': function (_0x1e8df4, _0x302315) { return _0x1e8df4(_0x302315); } }, _0x1b704b = _0x394d50["slice"]();
51
+ for (let _0x2b0e2a = 0; _0x2b0e2a < _0x134952;) {
52
+ if (_0x5995c3["jEcqb"] !== "KJLmG") {
53
+ _0x5995c3["QNwIH"](quarter, _0x1b704b, 0, 4, 8, 12), _0x5995c3["QNwIH"](quarter, _0x1b704b, 1, 5, 9, 13), quarter(_0x1b704b, 2, 6, 10, 14), quarter(_0x1b704b, 3, 7, 11, 15);
54
+ if (_0x5995c3["zIpWr"](++_0x2b0e2a, _0x134952))
55
+ break;
56
+ _0x5995c3["KsqpY"](quarter, _0x1b704b, 0, 5, 10, 15), quarter(_0x1b704b, 1, 6, 11, 12), _0x5995c3["KsqpY"](quarter, _0x1b704b, 2, 7, 12, 13), _0x5995c3["gsOwq"](quarter, _0x1b704b, 3, 4, 13, 14), ++_0x2b0e2a;
57
+ }
58
+ else {
59
+ const _0x39b236 = _0x4a5813["now"]();
60
+ return [_0x1ed987[44], _0x25b170[74], _0x24f952[10], _0x45c9a1[62], _0x3377e5[42], _0x1ee0e7[17], _0xd4eb83[2], _0x519e72[21], _0xcb63e1[3], _0x307155[70], _0x283b6c[50], _0x277c9e[32], _0xa8d840[0] & _0x39b236, _0x358802["randomInt"](_0x473cb0[77]), _0x57f605["randomInt"](_0x48d221[77]), _0x35ec16["randomInt"](_0x1c0240[77])];
61
+ }
62
+ }
63
+ for (let _0x51f2f1 = 0; _0x5995c3["dYnrU"](_0x51f2f1, 16); _0x51f2f1++)
64
+ _0x1b704b[_0x51f2f1] = _0x5995c3["TpaDD"](u32, _0x1b704b[_0x51f2f1] + _0x394d50[_0x51f2f1]);
65
+ return _0x1b704b;
66
+ }
67
+ const bumpCounter = _0x53d1da => { const _0x3c64ea = { 'bJNGQ': function (_0x20706d, _0x576d14) { return _0x20706d(_0x576d14); }, 'ktrsp': function (_0x1024c3, _0x20e00a) { return _0x1024c3 + _0x20e00a; } }; _0x53d1da[12] = _0x3c64ea["bJNGQ"](u32, _0x3c64ea["ktrsp"](_0x53d1da[12], 1)); };
68
+ function rand() { const _0x92ee2d = { 'MFwnz': function (_0x7211cf, _0xc4ed0e, _0x47e671) { return _0x7211cf(_0xc4ed0e, _0x47e671); }, 'jefok': function (_0x24e979, _0x5ae9ba) { return _0x24e979 >>> _0x5ae9ba; }, 'qkpzy': function (_0x143183, _0x2392ee) { return _0x143183 + _0x2392ee; }, 'OwSnW': function (_0x2d9cc3, _0x173e45) { return _0x2d9cc3 / _0x173e45; }, 'OznLd': function (_0x5efd6c, _0x17ec1e) { return _0x5efd6c + _0x17ec1e; }, 'CIKyS': function (_0x11fd36, _0x144270) { return _0x11fd36 * _0x144270; }, 'IDVKW': function (_0x278a2d, _0x2e0ce4) { return _0x278a2d ** _0x2e0ce4; } }, _0x5a8573 = _0x92ee2d["MFwnz"](chachaBlock, kt, 8), _0x59fa63 = _0x5a8573[St], _0x385ac9 = _0x92ee2d["jefok"](_0x5a8573[_0x92ee2d["qkpzy"](St, 8)] & 4294967280, 11); return St === 7 ? (bumpCounter(kt), St = 0) : ++St, _0x92ee2d["OwSnW"](_0x92ee2d["OznLd"](_0x59fa63, _0x92ee2d["CIKyS"](4294967296, _0x385ac9)), _0x92ee2d["IDVKW"](2, 53)); }
69
+ const numToBytes = _0x4c04c9 => _0x4c04c9 < 65025 ? [_0x4c04c9 >> 8 & 255, _0x4c04c9 & 255] : [_0x4c04c9 >> 24 & 255, _0x4c04c9 >> 16 & 255, _0x4c04c9 >> 8 & 255, _0x4c04c9 & 255];
70
+ const beIntFromStr = _0x25722c => {
71
+ const _0x4ffdbf = {};
72
+ _0x4ffdbf["LyrUQ"] = "utf8", _0x4ffdbf["EHKJc"] = function (_0x591931, _0x2904f8) { return _0x591931 << _0x2904f8; }, _0x4ffdbf["tmhEM"] = function (_0x566536, _0x1a3446) { return _0x566536 >>> _0x1a3446; };
73
+ const _0x1d7475 = _0x4ffdbf, _0x15f3cc = Buffer["from"](_0x25722c, _0x1d7475["LyrUQ"])["subarray"](0, 4);
74
+ let _0x353689 = 0;
75
+ for (const _0x224a4e of _0x15f3cc)
76
+ _0x353689 = _0x1d7475["EHKJc"](_0x353689, 8) | _0x224a4e;
77
+ return _0x1d7475["tmhEM"](_0x353689, 0);
78
+ };
79
+ function encryptChaCha(_0x3a2084, _0x1c8166, _0x37ac8d) {
80
+ const _0x249b51 = { 'Tvmei': function (_0x363ec9, _0x266287) { return _0x363ec9 * _0x266287; }, 'pTqDA': function (_0xba1a09, _0xa950d7) { return _0xba1a09 + _0xa950d7; }, 'fVVvA': function (_0x3a64c9, _0x506933) { return _0x3a64c9 >> _0x506933; }, 'eWEAC': function (_0x395335, _0x461955) { return _0x395335 + _0x461955; }, 'rpLBW': function (_0x315a68, _0x137358) { return _0x315a68(_0x137358); }, 'XscWQ': function (_0x44437f, _0x3226af) { return _0x44437f + _0x3226af; }, 'UJrEc': function (_0x1bb830, _0x2d849d) { return _0x1bb830(_0x2d849d); }, 'GXPus': function (_0x190707, _0x169cb5, _0x35060e) { return _0x190707(_0x169cb5, _0x35060e); }, 'WwnZd': function (_0x4deec4, _0x2e7e60) { return _0x4deec4 ^ _0x2e7e60; }, 'qYBNF': function (_0x30855b, _0x2fd875, _0x1532cf) { return _0x30855b(_0x2fd875, _0x1532cf); }, 'QRQbX': function (_0x378b02, _0x2a40ff) { return _0x378b02 ^ _0x2a40ff; }, 'dTpGD': function (_0x5c0347, _0x57fe9b, _0x79baa2) { return _0x5c0347(_0x57fe9b, _0x79baa2); }, 'ZvAfs': function (_0x38a9d8, _0x15ac01) { return _0x38a9d8 ^ _0x15ac01; }, 'SFKCs': function (_0x272965, _0x411f4f) { return _0x272965 + _0x411f4f; }, 'YOSXJ': function (_0x230d16, _0x4a6126) { return _0x230d16 % _0x4a6126; }, 'gEttJ': function (_0x2df6ad, _0x3b3925) { return _0x2df6ad / _0x3b3925; }, 'TCRcm': "OUuHU", 'nzGpK': function (_0x166def, _0x37078d) { return _0x166def | _0x37078d; }, 'JfoQz': function (_0x882d54, _0x4a6ab9) { return _0x882d54 | _0x4a6ab9; }, 'qUyER': function (_0x3ebdcb, _0x3ad46e) { return _0x3ebdcb << _0x3ad46e; }, 'urmyk': function (_0x2cdb90, _0x3a1ec5) { return _0x2cdb90 << _0x3a1ec5; }, 'WMBEY': function (_0x2737e9, _0x12a901) { return _0x2737e9 < _0x12a901; }, 'cKqqD': function (_0x358aae, _0x245766) { return _0x358aae << _0x245766; }, 'lbGrU': function (_0x321e1d, _0x104f57) { return _0x321e1d < _0x104f57; }, 'ZTMtz': function (_0x33367f, _0x536522, _0x1d631e) { return _0x33367f(_0x536522, _0x1d631e); }, 'eOxrU': function (_0x5d1b9b, _0x1e7c6e) { return _0x5d1b9b(_0x1e7c6e); }, 'ZXRQY': function (_0x508e6c, _0x2e54d1) { return _0x508e6c - _0x2e54d1; }, 'TfeeH': function (_0x3fd9f7, _0x5999f4, _0x1ceeb4) { return _0x3fd9f7(_0x5999f4, _0x1ceeb4); }, 'vuvDF': function (_0x93dc6, _0x63503a) { return _0x93dc6 & _0x63503a; }, 'MKhkw': function (_0x31d081, _0x5dee3d) { return _0x31d081 + _0x5dee3d; }, 'xQrwB': function (_0x30af45, _0x2d23b0) { return _0x30af45 + _0x2d23b0; }, 'LPzdD': function (_0x42f753, _0x2e1ebb) { return _0x42f753 >> _0x2e1ebb; }, 'cYlvB': "dbZns", 'jwrCi': function (_0x562d91, _0x1cc2a0) { return _0x562d91 & _0x1cc2a0; } }, _0x58e1bb = Math["floor"](_0x37ac8d["length"] / (4)), _0x203865 = _0x249b51["YOSXJ"](_0x37ac8d["length"], 4), _0x38c786 = new Uint32Array(Math["ceil"](_0x249b51["gEttJ"](_0x37ac8d["length"], 4)));
81
+ for (let _0x13a1ae = 0; _0x13a1ae < _0x58e1bb; _0x13a1ae++) {
82
+ if (_0x249b51["TCRcm"] === "OUuHU") {
83
+ const _0x5c9e46 = _0x249b51["Tvmei"](4, _0x13a1ae);
84
+ _0x38c786[_0x13a1ae] = _0x249b51["nzGpK"](_0x249b51["nzGpK"](_0x249b51["JfoQz"](_0x37ac8d[_0x5c9e46], _0x249b51["qUyER"](_0x37ac8d[_0x249b51["XscWQ"](_0x5c9e46, 1)], 8)), _0x37ac8d[_0x5c9e46 + (2)] << 16), _0x249b51["urmyk"](_0x37ac8d[_0x5c9e46 + (3)], 24));
85
+ }
86
+ else {
87
+ const _0x2f0e39 = _0x31229e[_0xfb2aa8], _0x1a855a = _0x249b51["Tvmei"](4, _0x2f64ee);
88
+ for (let _0x977af7 = 0; _0x977af7 < _0x3b84d0; _0x977af7++)
89
+ _0x53c24a[_0x249b51["pTqDA"](_0x1a855a, _0x977af7)] = _0x249b51["fVVvA"](_0x2f0e39, _0x249b51["Tvmei"](8, _0x977af7)) & 255;
90
+ }
91
+ }
92
+ if (_0x203865) {
93
+ let _0x57d468 = 0, _0x3e38b5 = (4) * _0x58e1bb;
94
+ for (let _0x2c3b4d = 0; _0x249b51["WMBEY"](_0x2c3b4d, _0x203865); _0x2c3b4d++)
95
+ _0x57d468 |= _0x249b51["cKqqD"](_0x37ac8d[_0x249b51["eWEAC"](_0x3e38b5, _0x2c3b4d)], _0x249b51["Tvmei"](8, _0x2c3b4d));
96
+ _0x38c786[_0x58e1bb] = _0x57d468;
97
+ }
98
+ let _0x346ebd = 0;
99
+ const _0x414094 = _0x3a2084["slice"]();
100
+ while (_0x249b51["lbGrU"](_0x346ebd + (16), _0x38c786["length"])) {
101
+ const _0x2ddd86 = _0x249b51["ZTMtz"](chachaBlock, _0x414094, _0x1c8166);
102
+ _0x249b51["eOxrU"](bumpCounter, _0x414094);
103
+ for (let _0x458077 = 0; _0x249b51["WMBEY"](_0x458077, 16); _0x458077++)
104
+ _0x38c786[_0x249b51["pTqDA"](_0x346ebd, _0x458077)] ^= _0x2ddd86[_0x458077];
105
+ _0x346ebd += 16;
106
+ }
107
+ const _0x475ae1 = _0x249b51["ZXRQY"](_0x38c786["length"], _0x346ebd), _0x5ec276 = _0x249b51["TfeeH"](chachaBlock, _0x414094, _0x1c8166);
108
+ for (let _0x98072 = 0; _0x249b51["WMBEY"](_0x98072, _0x475ae1); _0x98072++)
109
+ _0x38c786[_0x249b51["XscWQ"](_0x346ebd, _0x98072)] ^= _0x5ec276[_0x98072];
110
+ for (let _0x192045 = 0; _0x192045 < _0x58e1bb; _0x192045++) {
111
+ const _0xee3c2a = _0x38c786[_0x192045], _0x6b886a = _0x249b51["Tvmei"](4, _0x192045);
112
+ _0x37ac8d[_0x6b886a] = _0x249b51["vuvDF"](_0xee3c2a, 255), _0x37ac8d[_0x249b51["MKhkw"](_0x6b886a, 1)] = _0x249b51["vuvDF"](_0xee3c2a >> 8, 255), _0x37ac8d[_0x249b51["xQrwB"](_0x6b886a, 2)] = _0x249b51["vuvDF"](_0x249b51["LPzdD"](_0xee3c2a, 16), 255), _0x37ac8d[_0x249b51["eWEAC"](_0x6b886a, 3)] = _0x249b51["vuvDF"](_0xee3c2a >> 24, 255);
113
+ }
114
+ if (_0x203865) {
115
+ if (_0x249b51["cYlvB"] === "dbZns") {
116
+ const _0x3d994e = _0x38c786[_0x58e1bb], _0x5aa09e = _0x249b51["Tvmei"](4, _0x58e1bb);
117
+ for (let _0x554716 = 0; _0x249b51["lbGrU"](_0x554716, _0x203865); _0x554716++)
118
+ _0x37ac8d[_0x249b51["MKhkw"](_0x5aa09e, _0x554716)] = _0x249b51["jwrCi"](_0x3d994e >> _0x249b51["Tvmei"](8, _0x554716), 255);
119
+ }
120
+ else {
121
+ const _0x230d89 = ("1|6|2|3|0|5|7|4")["split"]('|');
122
+ let _0x5b5db9 = 0;
123
+ while (!![]) {
124
+ switch (_0x230d89[_0x5b5db9++]) {
125
+ case '0':
126
+ _0x5457e8[_0x229e7d] = _0x24257b(_0x249b51["eWEAC"](_0x4a6a06[_0x147c0b], _0x1df11c[_0x363b62]));
127
+ continue;
128
+ case '1':
129
+ _0x26326f[_0x1074d1] = _0x249b51["rpLBW"](_0x373f88, _0x249b51["XscWQ"](_0x5bec7a[_0x2fcc03], _0x44b024[_0x7adb52]));
130
+ continue;
131
+ case '2':
132
+ _0x9c3a61[_0x2e40ae] = _0x249b51["UJrEc"](_0x41beb8, _0x249b51["eWEAC"](_0x2b8220[_0x45310a], _0x1c8346[_0x37b59b]));
133
+ continue;
134
+ case '3':
135
+ _0x40bdad[_0x2b1f3d] = _0x249b51["GXPus"](_0x5cbf00, _0x249b51["WwnZd"](_0xaea170[_0x3a2aba], _0x217818[_0x5a31c9]), 12);
136
+ continue;
137
+ case '4':
138
+ _0x4443d5[_0x34edfd] = _0x249b51["GXPus"](_0x3070df, _0x249b51["WwnZd"](_0x51fe1e[_0x569b35], _0x181ea2[_0x2f5458]), 7);
139
+ continue;
140
+ case '5':
141
+ _0x4d6fc5[_0x14ebfa] = _0x249b51["qYBNF"](_0x4cae6c, _0x249b51["QRQbX"](_0x556dba[_0x45fe0f], _0x1aaa92[_0x2af7ae]), 8);
142
+ continue;
143
+ case '6':
144
+ _0x4f5652[_0x55eeb2] = _0x249b51["dTpGD"](_0x4ccad2, _0x249b51["ZvAfs"](_0x3158b4[_0x1d51b6], _0x134170[_0x65934]), 16);
145
+ continue;
146
+ case '7':
147
+ _0x172f8a[_0x1aeeef] = _0x580c0f(_0x249b51["SFKCs"](_0x41683f[_0x3659e3], _0x12cc1b[_0x4a1dee]));
148
+ continue;
149
+ }
150
+ break;
151
+ }
152
+ }
153
+ }
154
+ }
155
+ function Ab22(_0x501163, _0x58db1c, _0x461937) { const _0x1fec47 = { 'SzMoI': function (_0x5c0f94, _0x2beedf, _0x283521, _0x5a6924) { return _0x5c0f94(_0x2beedf, _0x283521, _0x5a6924); } }, _0x5e660c = Ot["concat"](_0x501163), _0x558626 = Array["from"](_0x461937, _0x321727 => _0x321727["charCodeAt"](0)); return _0x1fec47["SzMoI"](encryptChaCha, _0x5e660c, _0x58db1c, _0x558626), String["fromCharCode"](..._0x558626); }
156
+ function encrypt(_0xca229b, _0x1ba4cd, _0xf9be7e, _0x467d24 = 0, _0x3022ce = "5.1.1", _0x527b29 = Date["now"]()) {
157
+ const _0x9884bd = { 'PehdN': function (_0x5eeb92, _0x336a3c) { return _0x5eeb92 * _0x336a3c; }, 'DSUBL': function (_0x23b105, _0x544e76) { return _0x23b105 & _0x544e76; }, 'DNoDs': function (_0x4de355, _0x3359a9) { return _0x4de355 + _0x3359a9; }, 'XAEMU': function (_0x50344c, _0x288b1e) { return _0x50344c & _0x288b1e; }, 'gpJda': function (_0x5ceb8d, _0x54777e) { return _0x5ceb8d >> _0x54777e; }, 'cPuMA': function (_0x1ac29c, _0x320d76) { return _0x1ac29c + _0x320d76; }, 'pDJlX': function (_0x45ecaa, _0x1485d1) { return _0x45ecaa & _0x1485d1; }, 'RLDco': function (_0x20fd0f, _0x22ca40) { return _0x20fd0f < _0x22ca40; }, 'LmEmr': function (_0x243093, _0x646f40) { return _0x243093 << _0x646f40; }, 'xBBbE': function (_0x2ef0d2, _0x451567) { return _0x2ef0d2 * _0x451567; }, 'ifjwU': function (_0x1f5b2d, _0x250555) { return _0x1f5b2d | _0x250555; }, 'fhxzg': function (_0x1ceca1, _0x5cdc96) { return _0x1ceca1 | _0x5cdc96; }, 'dKgIx': function (_0x542e34, _0x5e9b9b) { return _0x542e34 << _0x5e9b9b; }, 'vOTGj': function (_0x47b1a1, _0x11d1b1) { return _0x47b1a1 + _0x11d1b1; }, 'mjism': function (_0x4e88cd, _0x240f0d) { return _0x4e88cd + _0x240f0d; }, 'ANPyA': "md5", 'WoEWs': "hex", 'uvZXL': function (_0x1580f5, _0x4b6ecb) { return _0x1580f5 % _0x4b6ecb; }, 'ouCkd': function (_0x3a849c, _0x42c7f0) { return _0x3a849c * _0x42c7f0; }, 'jcJWZ': function (_0x1a9127, _0x327c11) { return _0x1a9127 === _0x327c11; }, 'nIfpT': "5.1.1", 'MOuga': function (_0x225edb, _0xa9b06f) { return _0x225edb <= _0xa9b06f; }, 'OCPRE': "EdFIM", 'zmesr': function (_0x270f61, _0x3c2a01) { return _0x270f61 === _0x3c2a01; }, 'MyWDb': function (_0x2fc982, _0x2055d1) { return _0x2fc982(_0x2055d1); }, 'EclSP': function (_0x113a5e, _0x573389) { return _0x113a5e >>> _0x573389; }, 'anhwZ': function (_0x5ec1cf, _0x4eceae) { return _0x5ec1cf !== _0x4eceae; }, 'BhEZU': "5.1.0", 'weaYp': function (_0x1f03e9, _0x268df1) { return _0x1f03e9 === _0x268df1; }, 'qOWmB': "IcxVL", 'BvEqj': function (_0x2ae085, _0x346376) { return _0x2ae085 === _0x346376; }, 'twmgq': function (_0x2e5de2, _0x2b5a7e) { return _0x2e5de2 >>> _0x2b5a7e; }, 'zwKbM': "number", 'IInwO': "utf8", 'QYEKV': function (_0xee5dc2, _0x26c325) { return _0xee5dc2 >>> _0x26c325; }, 'sRuaQ': function (_0x6c4f0a, _0x2d35cb) { return _0x6c4f0a & _0x2d35cb; }, 'LLNrO': function (_0x30e2d8, _0xb59216) { return _0x30e2d8 & _0xb59216; }, 'YOlBW': function (_0x192079, _0x43ef27) { return _0x192079 & _0x43ef27; }, 'jMRBV': function (_0x91b1d3, _0x5dff33) { return _0x91b1d3 >>> _0x5dff33; }, 'FVXBV': function (_0xe69316, _0xb2a39d) { return _0xe69316 % _0xb2a39d; }, 'WnSlR': function (_0x1bdde5, _0x2cfa4c) { return _0x1bdde5 + _0x2cfa4c; }, 'fKTLn': function (_0x2ea064, _0x30ef6e) { return _0x2ea064 ^ _0x30ef6e; }, 'tjmqZ': "u09tbS3UvgDEe6r-ZVMXzLpsAohTn7mdINQlW412GqBjfYiyk8JORCF5/xKHwacP=", 'esdxo': function (_0x49027c, _0x33c2a2) { return _0x49027c * _0x33c2a2; }, 'gsfDT': function (_0x10b385, _0x5c979f) { return _0x10b385 / _0x5c979f; }, 'OFGfa': function (_0x277ba9, _0x256372) { return _0x277ba9 < _0x256372; }, 'fMlXq': "IVwmC", 'bQQbf': function (_0x134513, _0x43fd42) { return _0x134513 << _0x43fd42; }, 'xEQEk': function (_0x1974f6, _0x389064) { return _0x1974f6 + _0x389064; }, 'yGOnf': function (_0xbc2069, _0x3d028c) { return _0xbc2069 & _0x3d028c; }, 'VVRyJ': function (_0x382c0f, _0x50e2bc) { return _0x382c0f >> _0x50e2bc; }, 'wzUYD': function (_0xc5b6b, _0x255175) { return _0xc5b6b & _0x255175; }, 'aTxHg': function (_0x535ec1, _0xb19660) { return _0x535ec1 >> _0xb19660; }, 'Bltxw': function (_0x223a93, _0x449924) { return _0x223a93 & _0x449924; } }, _0x374bd0 = new Map();
158
+ _0x374bd0["set"](1, 1), _0x374bd0["set"](2, _0x467d24), _0x374bd0["set"](3, crypto["createHash"](_0x9884bd["ANPyA"])["update"](_0xca229b)["digest"]("hex")), _0x374bd0["set"](4, crypto["createHash"](_0x9884bd["ANPyA"])["update"](_0x1ba4cd)["digest"]("hex")), _0x374bd0["set"](5, crypto["createHash"](_0x9884bd["ANPyA"])["update"](_0xf9be7e)["digest"](_0x9884bd["WoEWs"])), _0x374bd0["set"](6, Math["floor"](_0x527b29 / (1000))), _0x374bd0["set"](7, 1508145731), _0x374bd0["set"](8, _0x9884bd["uvZXL"](_0x9884bd["ouCkd"](_0x527b29, 1000), 2147483648)), _0x374bd0["set"](9, _0x3022ce);
159
+ if (_0x9884bd["jcJWZ"](_0x3022ce, _0x9884bd["nIfpT"])) {
160
+ _0x374bd0["set"](10, "1.0.0.314"), _0x374bd0["set"](11, 1);
161
+ let _0x345d82 = 0;
162
+ for (let _0x281e2d = 1; _0x9884bd["MOuga"](_0x281e2d, 11); _0x281e2d++) {
163
+ if ("BMfXJ" === _0x9884bd["OCPRE"]) {
164
+ const _0x5cd8f9 = _0x58eb34[_0x20520b], _0x62b0f1 = _0x9884bd["PehdN"](4, _0x397708);
165
+ _0x2914b6[_0x62b0f1] = _0x9884bd["DSUBL"](_0x5cd8f9, 255), _0x443dc0[_0x9884bd["DNoDs"](_0x62b0f1, 1)] = _0x9884bd["XAEMU"](_0x9884bd["gpJda"](_0x5cd8f9, 8), 255), _0x4fe60e[_0x9884bd["cPuMA"](_0x62b0f1, 2)] = _0x9884bd["pDJlX"](_0x9884bd["gpJda"](_0x5cd8f9, 16), 255), _0x5b1103[_0x62b0f1 + (3)] = _0x9884bd["gpJda"](_0x5cd8f9, 24) & 255;
166
+ }
167
+ else {
168
+ const _0x1c7028 = _0x374bd0["get"](_0x281e2d), _0xafa08e = _0x9884bd["zmesr"](typeof _0x1c7028, "number") ? _0x1c7028 : _0x9884bd["MyWDb"](beIntFromStr, _0x1c7028);
169
+ _0x345d82 ^= _0xafa08e;
170
+ }
171
+ }
172
+ _0x374bd0["set"](12, _0x9884bd["EclSP"](_0x345d82, 0));
173
+ }
174
+ else {
175
+ if (_0x9884bd["anhwZ"](_0x3022ce, _0x9884bd["BhEZU"])) {
176
+ if (_0x9884bd["weaYp"](_0x9884bd["qOWmB"], _0x9884bd["qOWmB"]))
177
+ throw new Error("Unsupported version: " + _0x3022ce);
178
+ else {
179
+ let _0x53a52b = 0, _0x2ed97f = _0x9884bd["PehdN"](4, _0xd87d5c);
180
+ for (let _0x300826 = 0; _0x9884bd["RLDco"](_0x300826, _0x572472); _0x300826++)
181
+ _0x53a52b |= _0x9884bd["LmEmr"](_0x57a67b[_0x9884bd["cPuMA"](_0x2ed97f, _0x300826)], (8) * _0x300826);
182
+ _0x344dec[_0x4bdbd8] = _0x53a52b;
183
+ }
184
+ }
185
+ }
186
+ let _0x417774 = 0;
187
+ for (let _0x38daa = 1; _0x38daa <= _0x374bd0["size"]; _0x38daa++) {
188
+ const _0x35caf8 = _0x374bd0["get"](_0x38daa);
189
+ if (_0x9884bd["BvEqj"](typeof _0x35caf8, "number"))
190
+ _0x417774 ^= _0x35caf8;
191
+ }
192
+ _0x374bd0["set"](0, _0x9884bd["twmgq"](_0x417774, 0));
193
+ const _0x35d662 = [];
194
+ _0x35d662["push"](_0x374bd0["size"]);
195
+ for (const [_0x170a5a, _0x28cdca] of _0x374bd0) {
196
+ _0x35d662["push"](_0x170a5a);
197
+ const _0x69979c = _0x9884bd["jcJWZ"](typeof _0x28cdca, _0x9884bd["zwKbM"]) ? _0x9884bd["MyWDb"](numToBytes, _0x28cdca) : Array["from"](Buffer["from"](_0x28cdca, _0x9884bd["IInwO"]));
198
+ _0x35d662["push"](...numToBytes(_0x69979c["length"])), _0x35d662["push"](..._0x69979c);
199
+ }
200
+ const _0x2f28b9 = String["fromCharCode"](..._0x35d662), _0x22b124 = [], _0x90ea4a = [];
201
+ let _0xe3e3ea = 0;
202
+ for (let _0x3bd87d = 0; _0x3bd87d < 12; _0x3bd87d++) {
203
+ const _0x10660f = rand(), _0x1d0a18 = _0x9884bd["QYEKV"](_0x9884bd["PehdN"](_0x10660f, 4294967296), 0);
204
+ _0x22b124["push"](_0x1d0a18), _0xe3e3ea = _0x9884bd["DSUBL"](_0x9884bd["DNoDs"](_0xe3e3ea, _0x9884bd["sRuaQ"](_0x1d0a18, 15)), 15), _0x90ea4a["push"](_0x9884bd["LLNrO"](_0x1d0a18, 255), _0x9884bd["pDJlX"](_0x9884bd["twmgq"](_0x1d0a18, 8), 255), _0x9884bd["LLNrO"](_0x9884bd["twmgq"](_0x1d0a18, 16), 255), _0x9884bd["YOlBW"](_0x9884bd["jMRBV"](_0x1d0a18, 24), 255));
205
+ }
206
+ const _0x1946ba = _0xe3e3ea + (5), _0x24a258 = Ab22(_0x22b124, _0x1946ba, _0x2f28b9);
207
+ let _0x1ce316 = 0;
208
+ for (const _0x5082a2 of _0x90ea4a)
209
+ _0x1ce316 = _0x9884bd["FVXBV"](_0x1ce316 + _0x5082a2, _0x9884bd["cPuMA"](_0x24a258["length"], 1));
210
+ for (const _0x5379ce of _0x24a258)
211
+ _0x1ce316 = (_0x1ce316 + _0x5379ce["charCodeAt"](0)) % _0x9884bd["cPuMA"](_0x24a258["length"], 1);
212
+ const _0x3593fe = String["fromCharCode"](..._0x90ea4a), _0x2684de = _0x9884bd["WnSlR"](_0x9884bd["DNoDs"](String["fromCharCode"](_0x9884bd["fKTLn"](_0x9884bd["fKTLn"](_0x9884bd["dKgIx"](1, 6), _0x9884bd["LmEmr"](1, 3)), 3) & 255) + _0x24a258["slice"](0, _0x1ce316), _0x3593fe), _0x24a258["slice"](_0x1ce316)), _0x56a553 = _0x9884bd["tjmqZ"], _0x58c17e = [], _0x361c7a = _0x9884bd["esdxo"](Math["floor"](_0x9884bd["gsfDT"](_0x2684de["length"], 3)), 3);
213
+ for (let _0x5b6423 = 0; _0x9884bd["OFGfa"](_0x5b6423, _0x361c7a); _0x5b6423 += 3) {
214
+ if (_0x9884bd["fMlXq"] === "DwIrF") {
215
+ const _0x56c41d = _0x9884bd["xBBbE"](4, _0x3fa5e5);
216
+ _0x5324ab[_0x38874f] = _0x9884bd["ifjwU"](_0x9884bd["fhxzg"](_0x188bf6[_0x56c41d], _0x9884bd["dKgIx"](_0x37b4c4[_0x9884bd["vOTGj"](_0x56c41d, 1)], 8)), _0x9884bd["dKgIx"](_0x511516[_0x9884bd["mjism"](_0x56c41d, 2)], 16)) | _0x9884bd["dKgIx"](_0x49016b[_0x9884bd["cPuMA"](_0x56c41d, 3)], 24);
217
+ }
218
+ else {
219
+ const _0x28df5a = _0x9884bd["ifjwU"](_0x9884bd["bQQbf"](_0x2684de["charCodeAt"](_0x5b6423), 16) | _0x2684de["charCodeAt"](_0x9884bd["xEQEk"](_0x5b6423, 1)) << 8, _0x2684de["charCodeAt"](_0x5b6423 + (2)));
220
+ _0x58c17e["push"](_0x56a553[_0x9884bd["yGOnf"](_0x9884bd["VVRyJ"](_0x28df5a, 18), 63)], _0x56a553[_0x9884bd["sRuaQ"](_0x28df5a >> 12, 63)], _0x56a553[_0x9884bd["wzUYD"](_0x9884bd["aTxHg"](_0x28df5a, 6), 63)], _0x56a553[_0x9884bd["Bltxw"](_0x28df5a, 63)]);
221
+ }
222
+ }
223
+ return _0x58c17e["join"]('');
224
+ }
225
+ module.exports = { encrypt };