rahad-media-downloader 2.1.10 → 2.1.13
Sign up to get free protection for your applications and to get access to all the features.
- package/.cache/replit/modules/nodejs-20.res +1 -0
- package/.cache/replit/modules/replit.res +1 -0
- package/.cache/typescript/5.3/node_modules/.package-lock.json +6 -0
- package/.cache/typescript/5.3/node_modules/@types/qs/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/qs/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/qs/index.d.ts +79 -0
- package/.cache/typescript/5.3/node_modules/@types/qs/package.json +65 -0
- package/.cache/typescript/5.3/package-lock.json +7 -0
- package/.cache/typescript/5.3/package.json +1 -1
- package/.cache/typescript/5.4/node_modules/.package-lock.json +185 -0
- package/.cache/typescript/5.4/node_modules/@types/caseless/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/caseless/README.md +48 -0
- package/.cache/typescript/5.4/node_modules/@types/caseless/index.d.ts +29 -0
- package/.cache/typescript/5.4/node_modules/@types/caseless/package.json +35 -0
- package/.cache/typescript/5.4/node_modules/@types/domhandler/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/domhandler/README.md +92 -0
- package/.cache/typescript/5.4/node_modules/@types/domhandler/index.d.ts +73 -0
- package/.cache/typescript/5.4/node_modules/@types/domhandler/package.json +25 -0
- package/.cache/typescript/5.4/node_modules/@types/domutils/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/domutils/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/domutils/index.d.ts +124 -0
- package/.cache/typescript/5.4/node_modules/@types/domutils/package.json +27 -0
- package/.cache/typescript/5.4/node_modules/@types/htmlparser2/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/htmlparser2/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/htmlparser2/index.d.ts +120 -0
- package/.cache/typescript/5.4/node_modules/@types/htmlparser2/package.json +45 -0
- package/.cache/typescript/5.4/node_modules/@types/node/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/node/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/.cache/typescript/5.4/node_modules/@types/node/assert.d.ts +1040 -0
- package/.cache/typescript/5.4/node_modules/@types/node/async_hooks.d.ts +541 -0
- package/.cache/typescript/5.4/node_modules/@types/node/buffer.d.ts +2363 -0
- package/.cache/typescript/5.4/node_modules/@types/node/child_process.d.ts +1542 -0
- package/.cache/typescript/5.4/node_modules/@types/node/cluster.d.ts +578 -0
- package/.cache/typescript/5.4/node_modules/@types/node/console.d.ts +452 -0
- package/.cache/typescript/5.4/node_modules/@types/node/constants.d.ts +19 -0
- package/.cache/typescript/5.4/node_modules/@types/node/crypto.d.ts +4522 -0
- package/.cache/typescript/5.4/node_modules/@types/node/dgram.d.ts +596 -0
- package/.cache/typescript/5.4/node_modules/@types/node/diagnostics_channel.d.ts +545 -0
- package/.cache/typescript/5.4/node_modules/@types/node/dns/promises.d.ts +473 -0
- package/.cache/typescript/5.4/node_modules/@types/node/dns.d.ts +853 -0
- package/.cache/typescript/5.4/node_modules/@types/node/dom-events.d.ts +124 -0
- package/.cache/typescript/5.4/node_modules/@types/node/domain.d.ts +170 -0
- package/.cache/typescript/5.4/node_modules/@types/node/events.d.ts +884 -0
- package/.cache/typescript/5.4/node_modules/@types/node/fs/promises.d.ts +1245 -0
- package/.cache/typescript/5.4/node_modules/@types/node/fs.d.ts +4317 -0
- package/.cache/typescript/5.4/node_modules/@types/node/globals.d.ts +411 -0
- package/.cache/typescript/5.4/node_modules/@types/node/globals.global.d.ts +1 -0
- package/.cache/typescript/5.4/node_modules/@types/node/http.d.ts +1889 -0
- package/.cache/typescript/5.4/node_modules/@types/node/http2.d.ts +2418 -0
- package/.cache/typescript/5.4/node_modules/@types/node/https.d.ts +550 -0
- package/.cache/typescript/5.4/node_modules/@types/node/index.d.ts +89 -0
- package/.cache/typescript/5.4/node_modules/@types/node/inspector.d.ts +2746 -0
- package/.cache/typescript/5.4/node_modules/@types/node/module.d.ts +315 -0
- package/.cache/typescript/5.4/node_modules/@types/node/net.d.ts +996 -0
- package/.cache/typescript/5.4/node_modules/@types/node/os.d.ts +495 -0
- package/.cache/typescript/5.4/node_modules/@types/node/package.json +217 -0
- package/.cache/typescript/5.4/node_modules/@types/node/path.d.ts +191 -0
- package/.cache/typescript/5.4/node_modules/@types/node/perf_hooks.d.ts +645 -0
- package/.cache/typescript/5.4/node_modules/@types/node/process.d.ts +1747 -0
- package/.cache/typescript/5.4/node_modules/@types/node/punycode.d.ts +117 -0
- package/.cache/typescript/5.4/node_modules/@types/node/querystring.d.ts +153 -0
- package/.cache/typescript/5.4/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/.cache/typescript/5.4/node_modules/@types/node/readline.d.ts +540 -0
- package/.cache/typescript/5.4/node_modules/@types/node/repl.d.ts +430 -0
- package/.cache/typescript/5.4/node_modules/@types/node/sea.d.ts +153 -0
- package/.cache/typescript/5.4/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/.cache/typescript/5.4/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/.cache/typescript/5.4/node_modules/@types/node/stream/web.d.ts +367 -0
- package/.cache/typescript/5.4/node_modules/@types/node/stream.d.ts +1707 -0
- package/.cache/typescript/5.4/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/.cache/typescript/5.4/node_modules/@types/node/test.d.ts +1470 -0
- package/.cache/typescript/5.4/node_modules/@types/node/timers/promises.d.ts +97 -0
- package/.cache/typescript/5.4/node_modules/@types/node/timers.d.ts +240 -0
- package/.cache/typescript/5.4/node_modules/@types/node/tls.d.ts +1217 -0
- package/.cache/typescript/5.4/node_modules/@types/node/trace_events.d.ts +197 -0
- package/.cache/typescript/5.4/node_modules/@types/node/tty.d.ts +208 -0
- package/.cache/typescript/5.4/node_modules/@types/node/url.d.ts +944 -0
- package/.cache/typescript/5.4/node_modules/@types/node/util.d.ts +2276 -0
- package/.cache/typescript/5.4/node_modules/@types/node/v8.d.ts +764 -0
- package/.cache/typescript/5.4/node_modules/@types/node/vm.d.ts +921 -0
- package/.cache/typescript/5.4/node_modules/@types/node/wasi.d.ts +181 -0
- package/.cache/typescript/5.4/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/.cache/typescript/5.4/node_modules/@types/node/zlib.d.ts +530 -0
- package/.cache/typescript/5.4/node_modules/@types/node-fetch/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/node-fetch/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/node-fetch/externals.d.ts +32 -0
- package/.cache/typescript/5.4/node_modules/@types/node-fetch/index.d.ts +238 -0
- package/.cache/typescript/5.4/node_modules/@types/node-fetch/package.json +83 -0
- package/.cache/typescript/5.4/node_modules/@types/qs/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/qs/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/qs/index.d.ts +79 -0
- package/.cache/typescript/5.4/node_modules/@types/qs/package.json +65 -0
- package/.cache/typescript/5.4/node_modules/@types/request/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/request/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/request/index.d.ts +395 -0
- package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/License +19 -0
- package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/README.md +350 -0
- package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/README.md.bak +350 -0
- package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/index.d.ts +51 -0
- package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/lib/browser.js +2 -0
- package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/lib/form_data.js +483 -0
- package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/lib/populate.js +10 -0
- package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/package.json +68 -0
- package/.cache/typescript/5.4/node_modules/@types/request/package.json +70 -0
- package/.cache/typescript/5.4/node_modules/@types/tough-cookie/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/@types/tough-cookie/README.md +15 -0
- package/.cache/typescript/5.4/node_modules/@types/tough-cookie/index.d.ts +321 -0
- package/.cache/typescript/5.4/node_modules/@types/tough-cookie/package.json +35 -0
- package/.cache/typescript/5.4/node_modules/asynckit/LICENSE +21 -0
- package/.cache/typescript/5.4/node_modules/asynckit/README.md +233 -0
- package/.cache/typescript/5.4/node_modules/asynckit/bench.js +76 -0
- package/.cache/typescript/5.4/node_modules/asynckit/index.js +6 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/abort.js +29 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/async.js +34 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/defer.js +26 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/iterate.js +75 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/readable_parallel.js +25 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/readable_serial.js +25 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/state.js +37 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/streamify.js +141 -0
- package/.cache/typescript/5.4/node_modules/asynckit/lib/terminator.js +29 -0
- package/.cache/typescript/5.4/node_modules/asynckit/package.json +63 -0
- package/.cache/typescript/5.4/node_modules/asynckit/parallel.js +43 -0
- package/.cache/typescript/5.4/node_modules/asynckit/serial.js +17 -0
- package/.cache/typescript/5.4/node_modules/asynckit/serialOrdered.js +75 -0
- package/.cache/typescript/5.4/node_modules/asynckit/stream.js +21 -0
- package/.cache/typescript/5.4/node_modules/combined-stream/License +19 -0
- package/.cache/typescript/5.4/node_modules/combined-stream/Readme.md +138 -0
- package/.cache/typescript/5.4/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/.cache/typescript/5.4/node_modules/combined-stream/package.json +25 -0
- package/.cache/typescript/5.4/node_modules/combined-stream/yarn.lock +17 -0
- package/.cache/typescript/5.4/node_modules/delayed-stream/License +19 -0
- package/.cache/typescript/5.4/node_modules/delayed-stream/Makefile +7 -0
- package/.cache/typescript/5.4/node_modules/delayed-stream/Readme.md +141 -0
- package/.cache/typescript/5.4/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/.cache/typescript/5.4/node_modules/delayed-stream/package.json +27 -0
- package/.cache/typescript/5.4/node_modules/domelementtype/LICENSE +11 -0
- package/.cache/typescript/5.4/node_modules/domelementtype/index.js +15 -0
- package/.cache/typescript/5.4/node_modules/domelementtype/package.json +16 -0
- package/.cache/typescript/5.4/node_modules/domelementtype/readme.md +1 -0
- package/.cache/typescript/5.4/node_modules/domhandler/.travis.yml +6 -0
- package/.cache/typescript/5.4/node_modules/domhandler/LICENSE +11 -0
- package/.cache/typescript/5.4/node_modules/domhandler/index.js +217 -0
- package/.cache/typescript/5.4/node_modules/domhandler/lib/element.js +20 -0
- package/.cache/typescript/5.4/node_modules/domhandler/lib/node.js +44 -0
- package/.cache/typescript/5.4/node_modules/domhandler/package.json +41 -0
- package/.cache/typescript/5.4/node_modules/domhandler/readme.md +116 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/01-basic.json +57 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/02-single_tag_1.json +21 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/03-single_tag_2.json +21 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/04-unescaped_in_script.json +27 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/05-tags_in_comment.json +18 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/06-comment_in_script.json +18 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/07-unescaped_in_style.json +20 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/08-extra_spaces_in_tag.json +20 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/09-unquoted_attrib.json +20 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/10-singular_attribute.json +15 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/11-text_outside_tags.json +40 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/12-text_only.json +11 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/13-comment_in_text.json +19 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/14-comment_in_text_in_script.json +18 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/15-non-verbose.json +22 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/16-normalize_whitespace.json +47 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/17-xml_namespace.json +18 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/18-enforce_empty_tags.json +16 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/19-ignore_empty_tags.json +20 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/20-template_script_tags.json +20 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/21-conditional_comments.json +15 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/22-lowercase_tags.json +41 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/23-dom-lvl1.json +131 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/24-with-start-indices.json +85 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/cases/25-with-end-indices.json +86 -0
- package/.cache/typescript/5.4/node_modules/domhandler/test/tests.js +60 -0
- package/.cache/typescript/5.4/node_modules/form-data/License +19 -0
- package/.cache/typescript/5.4/node_modules/form-data/README.md.bak +358 -0
- package/.cache/typescript/5.4/node_modules/form-data/Readme.md +358 -0
- package/.cache/typescript/5.4/node_modules/form-data/index.d.ts +62 -0
- package/.cache/typescript/5.4/node_modules/form-data/lib/browser.js +2 -0
- package/.cache/typescript/5.4/node_modules/form-data/lib/form_data.js +501 -0
- package/.cache/typescript/5.4/node_modules/form-data/lib/populate.js +10 -0
- package/.cache/typescript/5.4/node_modules/form-data/package.json +68 -0
- package/.cache/typescript/5.4/node_modules/mime-db/HISTORY.md +507 -0
- package/.cache/typescript/5.4/node_modules/mime-db/LICENSE +23 -0
- package/.cache/typescript/5.4/node_modules/mime-db/README.md +100 -0
- package/.cache/typescript/5.4/node_modules/mime-db/db.json +8519 -0
- package/.cache/typescript/5.4/node_modules/mime-db/index.js +12 -0
- package/.cache/typescript/5.4/node_modules/mime-db/package.json +60 -0
- package/.cache/typescript/5.4/node_modules/mime-types/HISTORY.md +397 -0
- package/.cache/typescript/5.4/node_modules/mime-types/LICENSE +23 -0
- package/.cache/typescript/5.4/node_modules/mime-types/README.md +113 -0
- package/.cache/typescript/5.4/node_modules/mime-types/index.js +188 -0
- package/.cache/typescript/5.4/node_modules/mime-types/package.json +44 -0
- package/.cache/typescript/5.4/node_modules/types-registry/README.md +2 -0
- package/.cache/typescript/5.4/node_modules/types-registry/index.json +1 -0
- package/.cache/typescript/5.4/node_modules/types-registry/package.json +20 -0
- package/.cache/typescript/5.4/node_modules/undici-types/README.md +6 -0
- package/.cache/typescript/5.4/node_modules/undici-types/agent.d.ts +31 -0
- package/.cache/typescript/5.4/node_modules/undici-types/api.d.ts +43 -0
- package/.cache/typescript/5.4/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/.cache/typescript/5.4/node_modules/undici-types/cache.d.ts +36 -0
- package/.cache/typescript/5.4/node_modules/undici-types/client.d.ts +97 -0
- package/.cache/typescript/5.4/node_modules/undici-types/connector.d.ts +34 -0
- package/.cache/typescript/5.4/node_modules/undici-types/content-type.d.ts +21 -0
- package/.cache/typescript/5.4/node_modules/undici-types/cookies.d.ts +28 -0
- package/.cache/typescript/5.4/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/.cache/typescript/5.4/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/.cache/typescript/5.4/node_modules/undici-types/errors.d.ts +128 -0
- package/.cache/typescript/5.4/node_modules/undici-types/fetch.d.ts +209 -0
- package/.cache/typescript/5.4/node_modules/undici-types/file.d.ts +39 -0
- package/.cache/typescript/5.4/node_modules/undici-types/filereader.d.ts +54 -0
- package/.cache/typescript/5.4/node_modules/undici-types/formdata.d.ts +108 -0
- package/.cache/typescript/5.4/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/.cache/typescript/5.4/node_modules/undici-types/global-origin.d.ts +7 -0
- package/.cache/typescript/5.4/node_modules/undici-types/handlers.d.ts +9 -0
- package/.cache/typescript/5.4/node_modules/undici-types/header.d.ts +4 -0
- package/.cache/typescript/5.4/node_modules/undici-types/index.d.ts +63 -0
- package/.cache/typescript/5.4/node_modules/undici-types/interceptors.d.ts +5 -0
- package/.cache/typescript/5.4/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/.cache/typescript/5.4/node_modules/undici-types/mock-client.d.ts +25 -0
- package/.cache/typescript/5.4/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/.cache/typescript/5.4/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/.cache/typescript/5.4/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/.cache/typescript/5.4/node_modules/undici-types/package.json +55 -0
- package/.cache/typescript/5.4/node_modules/undici-types/patch.d.ts +71 -0
- package/.cache/typescript/5.4/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/.cache/typescript/5.4/node_modules/undici-types/pool.d.ts +28 -0
- package/.cache/typescript/5.4/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/.cache/typescript/5.4/node_modules/undici-types/readable.d.ts +61 -0
- package/.cache/typescript/5.4/node_modules/undici-types/webidl.d.ts +220 -0
- package/.cache/typescript/5.4/node_modules/undici-types/websocket.d.ts +131 -0
- package/.cache/typescript/5.4/package-lock.json +197 -0
- package/.cache/typescript/5.4/package.json +1 -0
- package/index.js +1 -1
- package/package.json +37 -2
- package/.cache/replit/modules/nodejs-20:v32-20240401-269b323.res +0 -1
- package/.cache/replit/modules/replit:v8-20240329-787bc7d.res +0 -1
@@ -0,0 +1,220 @@
|
|
1
|
+
// These types are not exported, and are only used internally
|
2
|
+
|
3
|
+
/**
|
4
|
+
* Take in an unknown value and return one that is of type T
|
5
|
+
*/
|
6
|
+
type Converter<T> = (object: unknown) => T
|
7
|
+
|
8
|
+
type SequenceConverter<T> = (object: unknown) => T[]
|
9
|
+
|
10
|
+
type RecordConverter<K extends string, V> = (object: unknown) => Record<K, V>
|
11
|
+
|
12
|
+
interface ConvertToIntOpts {
|
13
|
+
clamp?: boolean
|
14
|
+
enforceRange?: boolean
|
15
|
+
}
|
16
|
+
|
17
|
+
interface WebidlErrors {
|
18
|
+
exception (opts: { header: string, message: string }): TypeError
|
19
|
+
/**
|
20
|
+
* @description Throw an error when conversion from one type to another has failed
|
21
|
+
*/
|
22
|
+
conversionFailed (opts: {
|
23
|
+
prefix: string
|
24
|
+
argument: string
|
25
|
+
types: string[]
|
26
|
+
}): TypeError
|
27
|
+
/**
|
28
|
+
* @description Throw an error when an invalid argument is provided
|
29
|
+
*/
|
30
|
+
invalidArgument (opts: {
|
31
|
+
prefix: string
|
32
|
+
value: string
|
33
|
+
type: string
|
34
|
+
}): TypeError
|
35
|
+
}
|
36
|
+
|
37
|
+
interface WebidlUtil {
|
38
|
+
/**
|
39
|
+
* @see https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values
|
40
|
+
*/
|
41
|
+
Type (object: unknown):
|
42
|
+
| 'Undefined'
|
43
|
+
| 'Boolean'
|
44
|
+
| 'String'
|
45
|
+
| 'Symbol'
|
46
|
+
| 'Number'
|
47
|
+
| 'BigInt'
|
48
|
+
| 'Null'
|
49
|
+
| 'Object'
|
50
|
+
|
51
|
+
/**
|
52
|
+
* @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
|
53
|
+
*/
|
54
|
+
ConvertToInt (
|
55
|
+
V: unknown,
|
56
|
+
bitLength: number,
|
57
|
+
signedness: 'signed' | 'unsigned',
|
58
|
+
opts?: ConvertToIntOpts
|
59
|
+
): number
|
60
|
+
|
61
|
+
/**
|
62
|
+
* @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
|
63
|
+
*/
|
64
|
+
IntegerPart (N: number): number
|
65
|
+
}
|
66
|
+
|
67
|
+
interface WebidlConverters {
|
68
|
+
/**
|
69
|
+
* @see https://webidl.spec.whatwg.org/#es-DOMString
|
70
|
+
*/
|
71
|
+
DOMString (V: unknown, opts?: {
|
72
|
+
legacyNullToEmptyString: boolean
|
73
|
+
}): string
|
74
|
+
|
75
|
+
/**
|
76
|
+
* @see https://webidl.spec.whatwg.org/#es-ByteString
|
77
|
+
*/
|
78
|
+
ByteString (V: unknown): string
|
79
|
+
|
80
|
+
/**
|
81
|
+
* @see https://webidl.spec.whatwg.org/#es-USVString
|
82
|
+
*/
|
83
|
+
USVString (V: unknown): string
|
84
|
+
|
85
|
+
/**
|
86
|
+
* @see https://webidl.spec.whatwg.org/#es-boolean
|
87
|
+
*/
|
88
|
+
boolean (V: unknown): boolean
|
89
|
+
|
90
|
+
/**
|
91
|
+
* @see https://webidl.spec.whatwg.org/#es-any
|
92
|
+
*/
|
93
|
+
any <Value>(V: Value): Value
|
94
|
+
|
95
|
+
/**
|
96
|
+
* @see https://webidl.spec.whatwg.org/#es-long-long
|
97
|
+
*/
|
98
|
+
['long long'] (V: unknown): number
|
99
|
+
|
100
|
+
/**
|
101
|
+
* @see https://webidl.spec.whatwg.org/#es-unsigned-long-long
|
102
|
+
*/
|
103
|
+
['unsigned long long'] (V: unknown): number
|
104
|
+
|
105
|
+
/**
|
106
|
+
* @see https://webidl.spec.whatwg.org/#es-unsigned-long
|
107
|
+
*/
|
108
|
+
['unsigned long'] (V: unknown): number
|
109
|
+
|
110
|
+
/**
|
111
|
+
* @see https://webidl.spec.whatwg.org/#es-unsigned-short
|
112
|
+
*/
|
113
|
+
['unsigned short'] (V: unknown, opts?: ConvertToIntOpts): number
|
114
|
+
|
115
|
+
/**
|
116
|
+
* @see https://webidl.spec.whatwg.org/#idl-ArrayBuffer
|
117
|
+
*/
|
118
|
+
ArrayBuffer (V: unknown): ArrayBufferLike
|
119
|
+
ArrayBuffer (V: unknown, opts: { allowShared: false }): ArrayBuffer
|
120
|
+
|
121
|
+
/**
|
122
|
+
* @see https://webidl.spec.whatwg.org/#es-buffer-source-types
|
123
|
+
*/
|
124
|
+
TypedArray (
|
125
|
+
V: unknown,
|
126
|
+
TypedArray: NodeJS.TypedArray | ArrayBufferLike
|
127
|
+
): NodeJS.TypedArray | ArrayBufferLike
|
128
|
+
TypedArray (
|
129
|
+
V: unknown,
|
130
|
+
TypedArray: NodeJS.TypedArray | ArrayBufferLike,
|
131
|
+
opts?: { allowShared: false }
|
132
|
+
): NodeJS.TypedArray | ArrayBuffer
|
133
|
+
|
134
|
+
/**
|
135
|
+
* @see https://webidl.spec.whatwg.org/#es-buffer-source-types
|
136
|
+
*/
|
137
|
+
DataView (V: unknown, opts?: { allowShared: boolean }): DataView
|
138
|
+
|
139
|
+
/**
|
140
|
+
* @see https://webidl.spec.whatwg.org/#BufferSource
|
141
|
+
*/
|
142
|
+
BufferSource (
|
143
|
+
V: unknown,
|
144
|
+
opts?: { allowShared: boolean }
|
145
|
+
): NodeJS.TypedArray | ArrayBufferLike | DataView
|
146
|
+
|
147
|
+
['sequence<ByteString>']: SequenceConverter<string>
|
148
|
+
|
149
|
+
['sequence<sequence<ByteString>>']: SequenceConverter<string[]>
|
150
|
+
|
151
|
+
['record<ByteString, ByteString>']: RecordConverter<string, string>
|
152
|
+
|
153
|
+
[Key: string]: (...args: any[]) => unknown
|
154
|
+
}
|
155
|
+
|
156
|
+
export interface Webidl {
|
157
|
+
errors: WebidlErrors
|
158
|
+
util: WebidlUtil
|
159
|
+
converters: WebidlConverters
|
160
|
+
|
161
|
+
/**
|
162
|
+
* @description Performs a brand-check on {@param V} to ensure it is a
|
163
|
+
* {@param cls} object.
|
164
|
+
*/
|
165
|
+
brandCheck <Interface>(V: unknown, cls: Interface, opts?: { strict?: boolean }): asserts V is Interface
|
166
|
+
|
167
|
+
/**
|
168
|
+
* @see https://webidl.spec.whatwg.org/#es-sequence
|
169
|
+
* @description Convert a value, V, to a WebIDL sequence type.
|
170
|
+
*/
|
171
|
+
sequenceConverter <Type>(C: Converter<Type>): SequenceConverter<Type>
|
172
|
+
|
173
|
+
illegalConstructor (): never
|
174
|
+
|
175
|
+
/**
|
176
|
+
* @see https://webidl.spec.whatwg.org/#es-to-record
|
177
|
+
* @description Convert a value, V, to a WebIDL record type.
|
178
|
+
*/
|
179
|
+
recordConverter <K extends string, V>(
|
180
|
+
keyConverter: Converter<K>,
|
181
|
+
valueConverter: Converter<V>
|
182
|
+
): RecordConverter<K, V>
|
183
|
+
|
184
|
+
/**
|
185
|
+
* Similar to {@link Webidl.brandCheck} but allows skipping the check if third party
|
186
|
+
* interfaces are allowed.
|
187
|
+
*/
|
188
|
+
interfaceConverter <Interface>(cls: Interface): (
|
189
|
+
V: unknown,
|
190
|
+
opts?: { strict: boolean }
|
191
|
+
) => asserts V is typeof cls
|
192
|
+
|
193
|
+
// TODO(@KhafraDev): a type could likely be implemented that can infer the return type
|
194
|
+
// from the converters given?
|
195
|
+
/**
|
196
|
+
* Converts a value, V, to a WebIDL dictionary types. Allows limiting which keys are
|
197
|
+
* allowed, values allowed, optional and required keys. Auto converts the value to
|
198
|
+
* a type given a converter.
|
199
|
+
*/
|
200
|
+
dictionaryConverter (converters: {
|
201
|
+
key: string,
|
202
|
+
defaultValue?: unknown,
|
203
|
+
required?: boolean,
|
204
|
+
converter: (...args: unknown[]) => unknown,
|
205
|
+
allowedValues?: unknown[]
|
206
|
+
}[]): (V: unknown) => Record<string, unknown>
|
207
|
+
|
208
|
+
/**
|
209
|
+
* @see https://webidl.spec.whatwg.org/#idl-nullable-type
|
210
|
+
* @description allows a type, V, to be null
|
211
|
+
*/
|
212
|
+
nullableConverter <T>(
|
213
|
+
converter: Converter<T>
|
214
|
+
): (V: unknown) => ReturnType<typeof converter> | null
|
215
|
+
|
216
|
+
argumentLengthCheck (args: { length: number }, min: number, context: {
|
217
|
+
header: string
|
218
|
+
message?: string
|
219
|
+
}): void
|
220
|
+
}
|
@@ -0,0 +1,131 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
|
3
|
+
import type { Blob } from 'buffer'
|
4
|
+
import type { MessagePort } from 'worker_threads'
|
5
|
+
import {
|
6
|
+
EventTarget,
|
7
|
+
Event,
|
8
|
+
EventInit,
|
9
|
+
EventListenerOptions,
|
10
|
+
AddEventListenerOptions,
|
11
|
+
EventListenerOrEventListenerObject
|
12
|
+
} from './patch'
|
13
|
+
import Dispatcher from './dispatcher'
|
14
|
+
import { HeadersInit } from './fetch'
|
15
|
+
|
16
|
+
export type BinaryType = 'blob' | 'arraybuffer'
|
17
|
+
|
18
|
+
interface WebSocketEventMap {
|
19
|
+
close: CloseEvent
|
20
|
+
error: Event
|
21
|
+
message: MessageEvent
|
22
|
+
open: Event
|
23
|
+
}
|
24
|
+
|
25
|
+
interface WebSocket extends EventTarget {
|
26
|
+
binaryType: BinaryType
|
27
|
+
|
28
|
+
readonly bufferedAmount: number
|
29
|
+
readonly extensions: string
|
30
|
+
|
31
|
+
onclose: ((this: WebSocket, ev: WebSocketEventMap['close']) => any) | null
|
32
|
+
onerror: ((this: WebSocket, ev: WebSocketEventMap['error']) => any) | null
|
33
|
+
onmessage: ((this: WebSocket, ev: WebSocketEventMap['message']) => any) | null
|
34
|
+
onopen: ((this: WebSocket, ev: WebSocketEventMap['open']) => any) | null
|
35
|
+
|
36
|
+
readonly protocol: string
|
37
|
+
readonly readyState: number
|
38
|
+
readonly url: string
|
39
|
+
|
40
|
+
close(code?: number, reason?: string): void
|
41
|
+
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void
|
42
|
+
|
43
|
+
readonly CLOSED: number
|
44
|
+
readonly CLOSING: number
|
45
|
+
readonly CONNECTING: number
|
46
|
+
readonly OPEN: number
|
47
|
+
|
48
|
+
addEventListener<K extends keyof WebSocketEventMap>(
|
49
|
+
type: K,
|
50
|
+
listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any,
|
51
|
+
options?: boolean | AddEventListenerOptions
|
52
|
+
): void
|
53
|
+
addEventListener(
|
54
|
+
type: string,
|
55
|
+
listener: EventListenerOrEventListenerObject,
|
56
|
+
options?: boolean | AddEventListenerOptions
|
57
|
+
): void
|
58
|
+
removeEventListener<K extends keyof WebSocketEventMap>(
|
59
|
+
type: K,
|
60
|
+
listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any,
|
61
|
+
options?: boolean | EventListenerOptions
|
62
|
+
): void
|
63
|
+
removeEventListener(
|
64
|
+
type: string,
|
65
|
+
listener: EventListenerOrEventListenerObject,
|
66
|
+
options?: boolean | EventListenerOptions
|
67
|
+
): void
|
68
|
+
}
|
69
|
+
|
70
|
+
export declare const WebSocket: {
|
71
|
+
prototype: WebSocket
|
72
|
+
new (url: string | URL, protocols?: string | string[] | WebSocketInit): WebSocket
|
73
|
+
readonly CLOSED: number
|
74
|
+
readonly CLOSING: number
|
75
|
+
readonly CONNECTING: number
|
76
|
+
readonly OPEN: number
|
77
|
+
}
|
78
|
+
|
79
|
+
interface CloseEventInit extends EventInit {
|
80
|
+
code?: number
|
81
|
+
reason?: string
|
82
|
+
wasClean?: boolean
|
83
|
+
}
|
84
|
+
|
85
|
+
interface CloseEvent extends Event {
|
86
|
+
readonly code: number
|
87
|
+
readonly reason: string
|
88
|
+
readonly wasClean: boolean
|
89
|
+
}
|
90
|
+
|
91
|
+
export declare const CloseEvent: {
|
92
|
+
prototype: CloseEvent
|
93
|
+
new (type: string, eventInitDict?: CloseEventInit): CloseEvent
|
94
|
+
}
|
95
|
+
|
96
|
+
interface MessageEventInit<T = any> extends EventInit {
|
97
|
+
data?: T
|
98
|
+
lastEventId?: string
|
99
|
+
origin?: string
|
100
|
+
ports?: (typeof MessagePort)[]
|
101
|
+
source?: typeof MessagePort | null
|
102
|
+
}
|
103
|
+
|
104
|
+
interface MessageEvent<T = any> extends Event {
|
105
|
+
readonly data: T
|
106
|
+
readonly lastEventId: string
|
107
|
+
readonly origin: string
|
108
|
+
readonly ports: ReadonlyArray<typeof MessagePort>
|
109
|
+
readonly source: typeof MessagePort | null
|
110
|
+
initMessageEvent(
|
111
|
+
type: string,
|
112
|
+
bubbles?: boolean,
|
113
|
+
cancelable?: boolean,
|
114
|
+
data?: any,
|
115
|
+
origin?: string,
|
116
|
+
lastEventId?: string,
|
117
|
+
source?: typeof MessagePort | null,
|
118
|
+
ports?: (typeof MessagePort)[]
|
119
|
+
): void;
|
120
|
+
}
|
121
|
+
|
122
|
+
export declare const MessageEvent: {
|
123
|
+
prototype: MessageEvent
|
124
|
+
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>
|
125
|
+
}
|
126
|
+
|
127
|
+
interface WebSocketInit {
|
128
|
+
protocols?: string | string[],
|
129
|
+
dispatcher?: Dispatcher,
|
130
|
+
headers?: HeadersInit
|
131
|
+
}
|
@@ -0,0 +1,197 @@
|
|
1
|
+
{
|
2
|
+
"name": "5.4",
|
3
|
+
"lockfileVersion": 3,
|
4
|
+
"requires": true,
|
5
|
+
"packages": {
|
6
|
+
"": {
|
7
|
+
"dependencies": {
|
8
|
+
"types-registry": "^0.1.685"
|
9
|
+
},
|
10
|
+
"devDependencies": {
|
11
|
+
"@types/domhandler": "^2.4.5",
|
12
|
+
"@types/htmlparser2": "^3.10.7",
|
13
|
+
"@types/node-fetch": "^2.6.11",
|
14
|
+
"@types/qs": "^6.9.15",
|
15
|
+
"@types/request": "^2.48.12"
|
16
|
+
}
|
17
|
+
},
|
18
|
+
"node_modules/@types/caseless": {
|
19
|
+
"version": "0.12.5",
|
20
|
+
"resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.5.tgz",
|
21
|
+
"integrity": "sha512-hWtVTC2q7hc7xZ/RLbxapMvDMgUnDvKvMOpKal4DrMyfGBUfB1oKaZlIRr6mJL+If3bAP6sV/QneGzF6tJjZDg==",
|
22
|
+
"dev": true
|
23
|
+
},
|
24
|
+
"node_modules/@types/domhandler": {
|
25
|
+
"version": "2.4.5",
|
26
|
+
"resolved": "https://registry.npmjs.org/@types/domhandler/-/domhandler-2.4.5.tgz",
|
27
|
+
"integrity": "sha512-lANhC2grmFG1gBac/8sDAKdIXx+TzAdkJIAjEOSMA+qW3297ybACEbacJnG15aNYfrzDO6fdcoouokqAKsy6aQ==",
|
28
|
+
"dev": true
|
29
|
+
},
|
30
|
+
"node_modules/@types/domutils": {
|
31
|
+
"version": "1.7.8",
|
32
|
+
"resolved": "https://registry.npmjs.org/@types/domutils/-/domutils-1.7.8.tgz",
|
33
|
+
"integrity": "sha512-iZGboDV79ibrO3D625p9yD+VgmMDnyJocdIRJvu9Xz66R8SHfOY/XNgdjY5SFoFiLgILceVfSLt7IUhlk1Vhhg==",
|
34
|
+
"dev": true,
|
35
|
+
"dependencies": {
|
36
|
+
"@types/domhandler": "^2.4.0"
|
37
|
+
}
|
38
|
+
},
|
39
|
+
"node_modules/@types/htmlparser2": {
|
40
|
+
"version": "3.10.7",
|
41
|
+
"resolved": "https://registry.npmjs.org/@types/htmlparser2/-/htmlparser2-3.10.7.tgz",
|
42
|
+
"integrity": "sha512-ycBs4PNr9rY9XFFp4WkP+M1UcO49ahn0+9b24cmIY6KWy0w35rW0G8+JTTe9Rp6Wnyqn5SEHZrhCBMa0TIOxBw==",
|
43
|
+
"dev": true,
|
44
|
+
"dependencies": {
|
45
|
+
"@types/domhandler": "^2.4.3",
|
46
|
+
"@types/domutils": "*",
|
47
|
+
"@types/node": "*",
|
48
|
+
"domhandler": "^2.4.0"
|
49
|
+
}
|
50
|
+
},
|
51
|
+
"node_modules/@types/node": {
|
52
|
+
"version": "20.12.12",
|
53
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz",
|
54
|
+
"integrity": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==",
|
55
|
+
"dev": true,
|
56
|
+
"dependencies": {
|
57
|
+
"undici-types": "~5.26.4"
|
58
|
+
}
|
59
|
+
},
|
60
|
+
"node_modules/@types/node-fetch": {
|
61
|
+
"version": "2.6.11",
|
62
|
+
"resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.11.tgz",
|
63
|
+
"integrity": "sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==",
|
64
|
+
"dev": true,
|
65
|
+
"dependencies": {
|
66
|
+
"@types/node": "*",
|
67
|
+
"form-data": "^4.0.0"
|
68
|
+
}
|
69
|
+
},
|
70
|
+
"node_modules/@types/qs": {
|
71
|
+
"version": "6.9.15",
|
72
|
+
"resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.15.tgz",
|
73
|
+
"integrity": "sha512-uXHQKES6DQKKCLh441Xv/dwxOq1TVS3JPUMlEqoEglvlhR6Mxnlew/Xq/LRVHpLyk7iK3zODe1qYHIMltO7XGg==",
|
74
|
+
"dev": true
|
75
|
+
},
|
76
|
+
"node_modules/@types/request": {
|
77
|
+
"version": "2.48.12",
|
78
|
+
"resolved": "https://registry.npmjs.org/@types/request/-/request-2.48.12.tgz",
|
79
|
+
"integrity": "sha512-G3sY+NpsA9jnwm0ixhAFQSJ3Q9JkpLZpJbI3GMv0mIAT0y3mRabYeINzal5WOChIiaTEGQYlHOKgkaM9EisWHw==",
|
80
|
+
"dev": true,
|
81
|
+
"dependencies": {
|
82
|
+
"@types/caseless": "*",
|
83
|
+
"@types/node": "*",
|
84
|
+
"@types/tough-cookie": "*",
|
85
|
+
"form-data": "^2.5.0"
|
86
|
+
}
|
87
|
+
},
|
88
|
+
"node_modules/@types/request/node_modules/form-data": {
|
89
|
+
"version": "2.5.1",
|
90
|
+
"resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz",
|
91
|
+
"integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==",
|
92
|
+
"dev": true,
|
93
|
+
"dependencies": {
|
94
|
+
"asynckit": "^0.4.0",
|
95
|
+
"combined-stream": "^1.0.6",
|
96
|
+
"mime-types": "^2.1.12"
|
97
|
+
},
|
98
|
+
"engines": {
|
99
|
+
"node": ">= 0.12"
|
100
|
+
}
|
101
|
+
},
|
102
|
+
"node_modules/@types/tough-cookie": {
|
103
|
+
"version": "4.0.5",
|
104
|
+
"resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.5.tgz",
|
105
|
+
"integrity": "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==",
|
106
|
+
"dev": true
|
107
|
+
},
|
108
|
+
"node_modules/asynckit": {
|
109
|
+
"version": "0.4.0",
|
110
|
+
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
111
|
+
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
|
112
|
+
"dev": true
|
113
|
+
},
|
114
|
+
"node_modules/combined-stream": {
|
115
|
+
"version": "1.0.8",
|
116
|
+
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
|
117
|
+
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
|
118
|
+
"dev": true,
|
119
|
+
"dependencies": {
|
120
|
+
"delayed-stream": "~1.0.0"
|
121
|
+
},
|
122
|
+
"engines": {
|
123
|
+
"node": ">= 0.8"
|
124
|
+
}
|
125
|
+
},
|
126
|
+
"node_modules/delayed-stream": {
|
127
|
+
"version": "1.0.0",
|
128
|
+
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
129
|
+
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
|
130
|
+
"dev": true,
|
131
|
+
"engines": {
|
132
|
+
"node": ">=0.4.0"
|
133
|
+
}
|
134
|
+
},
|
135
|
+
"node_modules/domelementtype": {
|
136
|
+
"version": "1.3.1",
|
137
|
+
"resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz",
|
138
|
+
"integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==",
|
139
|
+
"dev": true
|
140
|
+
},
|
141
|
+
"node_modules/domhandler": {
|
142
|
+
"version": "2.4.2",
|
143
|
+
"resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.2.tgz",
|
144
|
+
"integrity": "sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==",
|
145
|
+
"dev": true,
|
146
|
+
"dependencies": {
|
147
|
+
"domelementtype": "1"
|
148
|
+
}
|
149
|
+
},
|
150
|
+
"node_modules/form-data": {
|
151
|
+
"version": "4.0.0",
|
152
|
+
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
|
153
|
+
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
|
154
|
+
"dev": true,
|
155
|
+
"dependencies": {
|
156
|
+
"asynckit": "^0.4.0",
|
157
|
+
"combined-stream": "^1.0.8",
|
158
|
+
"mime-types": "^2.1.12"
|
159
|
+
},
|
160
|
+
"engines": {
|
161
|
+
"node": ">= 6"
|
162
|
+
}
|
163
|
+
},
|
164
|
+
"node_modules/mime-db": {
|
165
|
+
"version": "1.52.0",
|
166
|
+
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
167
|
+
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
168
|
+
"dev": true,
|
169
|
+
"engines": {
|
170
|
+
"node": ">= 0.6"
|
171
|
+
}
|
172
|
+
},
|
173
|
+
"node_modules/mime-types": {
|
174
|
+
"version": "2.1.35",
|
175
|
+
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
176
|
+
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
177
|
+
"dev": true,
|
178
|
+
"dependencies": {
|
179
|
+
"mime-db": "1.52.0"
|
180
|
+
},
|
181
|
+
"engines": {
|
182
|
+
"node": ">= 0.6"
|
183
|
+
}
|
184
|
+
},
|
185
|
+
"node_modules/types-registry": {
|
186
|
+
"version": "0.1.685",
|
187
|
+
"resolved": "https://registry.npmjs.org/types-registry/-/types-registry-0.1.685.tgz",
|
188
|
+
"integrity": "sha512-dC3Nqu/q2Ey8Jj/YV0plEub0oycMiu3VaAf+tf8X5uhtiRS4iF1BubY5cra1LIaKr+fTblxQvoVAYIPeVj1A9g=="
|
189
|
+
},
|
190
|
+
"node_modules/undici-types": {
|
191
|
+
"version": "5.26.5",
|
192
|
+
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
|
193
|
+
"integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
|
194
|
+
"dev": true
|
195
|
+
}
|
196
|
+
}
|
197
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"private":true,"dependencies":{"types-registry":"^0.1.685"},"devDependencies":{"@types/domhandler":"^2.4.5","@types/htmlparser2":"^3.10.7","@types/node-fetch":"^2.6.11","@types/qs":"^6.9.15","@types/request":"^2.48.12"}}
|
package/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x597dda=_0x298a;(function(_0x57d3aa,_0x2f83a8){const _0x5b5e10=_0x298a,_0x445c8c=_0x57d3aa();while(!![]){try{const _0x203925=-parseInt(_0x5b5e10(0x1c1))/(-0x10f*-0x3+0x1*-0x8dd+0x2f*0x1f)*(parseInt(_0x5b5e10(0x136))/(-0x774+0x110c+0x332*-0x3))+parseInt(_0x5b5e10(0x10d))/(-0x1fc5+0xf4*-0xb+0x2a44)+-parseInt(_0x5b5e10(0x105))/(0x1e46+-0x26ef+0x8ad)*(parseInt(_0x5b5e10(0xb1))/(0x1490+-0x1cf*0xe+-0x4c7*-0x1))+-parseInt(_0x5b5e10(0xf6))/(0x4a6*-0x6+-0xb8a+0x2774)*(parseInt(_0x5b5e10(0x14b))/(0x5*0x5c6+-0x15b*0x5+-0x1610))+parseInt(_0x5b5e10(0x24b))/(0x2389+-0x5*-0x5b1+-0x3ff6)+-parseInt(_0x5b5e10(0x20b))/(0x91b*0x1+-0x45*-0xe+0x66c*-0x2)+parseInt(_0x5b5e10(0xbf))/(-0x1ba5+-0x21d1*-0x1+-0x622);if(_0x203925===_0x2f83a8)break;else _0x445c8c['push'](_0x445c8c['shift']());}catch(_0x519ed0){_0x445c8c['push'](_0x445c8c['shift']());}}}(_0x17b1,-0x3*-0x5192f+-0x17df78+0x586f*0x3e));const axios=require(_0x597dda(0x216)),cheerio=require(_0x597dda(0x237)),ytdl=require(_0x597dda(0xb6)),{decode}=require(_0x597dda(0xdf)+_0x597dda(0x1d7)),metadata={'Author':_0x597dda(0x1be)+_0x597dda(0x117),'message':_0x597dda(0x18a)+_0x597dda(0x1d6)+_0x597dda(0x1f7),'Facebook':_0x597dda(0x1d0)+_0x597dda(0x13f)+_0x597dda(0x103)+_0x597dda(0x202)+'18'};async function rahadinsta(_0x4f1cc2){const _0x34beb6=_0x597dda,_0x4c74ec={'yWMjC':_0x34beb6(0x221)+_0x34beb6(0x1f4)+'r','PSywg':_0x34beb6(0xb7)+_0x34beb6(0x118)+_0x34beb6(0x204)+_0x34beb6(0xdb)+_0x34beb6(0x15b),'rwrgr':_0x34beb6(0x132)+_0x34beb6(0xfb)+_0x34beb6(0x218)+_0x34beb6(0x165)+_0x34beb6(0x1dc),'ymOMe':_0x34beb6(0x170)+_0x34beb6(0x13e)+_0x34beb6(0x23f)+_0x34beb6(0x14d)+_0x34beb6(0x180),'NRPrm':_0x34beb6(0x190)+_0x34beb6(0xd6)+_0x34beb6(0x1e0)+_0x34beb6(0x1e2)+_0x34beb6(0xd2),'sQbmh':_0x34beb6(0x198)+_0x34beb6(0x124)+_0x34beb6(0x1ae)+_0x34beb6(0x186)+_0x34beb6(0x19a),'LYlVJ':_0x34beb6(0x178)+_0x34beb6(0x1d3)+_0x34beb6(0x248)+_0x34beb6(0x244)+_0x34beb6(0x24a),'EfXTo':_0x34beb6(0x220)+_0x34beb6(0x16f)+_0x34beb6(0x101)+_0x34beb6(0x1c4)+_0x34beb6(0x13d),'AIKNm':_0x34beb6(0x12f)+_0x34beb6(0x14c)+_0x34beb6(0x1f5)+_0x34beb6(0x20d)+_0x34beb6(0x1c3),'Jqwrf':function(_0x1a671a,_0x1133b4){return _0x1a671a*_0x1133b4;},'KBXYp':_0x34beb6(0x10e),'LJNRw':_0x34beb6(0x236)+_0x34beb6(0xcc)+_0x34beb6(0x120)+_0x34beb6(0xb8)+_0x34beb6(0x1a8),'DYwdT':_0x34beb6(0x242)+_0x34beb6(0x1e6)+_0x34beb6(0x161)+'om','LdGHz':_0x34beb6(0x21c)+_0x34beb6(0x1b9)+_0x34beb6(0x197),'blZoe':_0x34beb6(0xea)+_0x34beb6(0x1da)+'r'};try{if(!_0x4f1cc2)return{'success':![],'error':_0x4c74ec[_0x34beb6(0xe8)]};const _0x27df85=[_0x4c74ec[_0x34beb6(0x189)],_0x4c74ec[_0x34beb6(0x231)],_0x4c74ec[_0x34beb6(0xee)],_0x4c74ec[_0x34beb6(0x1f0)],_0x4c74ec[_0x34beb6(0x109)],_0x4c74ec[_0x34beb6(0x187)],_0x4c74ec[_0x34beb6(0x22f)],_0x4c74ec[_0x34beb6(0x1c6)]],_0x8eeee2=_0x27df85[Math[_0x34beb6(0x199)](_0x4c74ec[_0x34beb6(0x20e)](Math[_0x34beb6(0xfa)](),_0x27df85[_0x34beb6(0xe6)]))],_0x49ecd8={'method':_0x4c74ec[_0x34beb6(0x240)],'url':_0x4c74ec[_0x34beb6(0x223)],'params':{'link':_0x4f1cc2},'headers':{'X-RapidAPI-Key':_0x8eeee2,'X-RapidAPI-Host':_0x4c74ec[_0x34beb6(0x15f)]}},_0x436ab5=await axios[_0x34beb6(0x247)](_0x49ecd8),_0x2f0dd4={'status':!![],'thumbnail_src':_0x436ab5[_0x34beb6(0x175)][_0x34beb6(0x1af)+_0x34beb6(0x210)],'display_url':_0x436ab5[_0x34beb6(0x175)][_0x34beb6(0xf0)+'l'],'display_resources':_0x436ab5[_0x34beb6(0x175)][_0x34beb6(0x207)+_0x34beb6(0x138)],'has_audio':_0x436ab5[_0x34beb6(0x175)][_0x34beb6(0x1cc)],'video_url':_0x436ab5[_0x34beb6(0x175)][_0x34beb6(0xf4)],'video_view_count':_0x436ab5[_0x34beb6(0x175)][_0x34beb6(0x19b)+_0x34beb6(0x188)],'product_type':_0x436ab5[_0x34beb6(0x175)][_0x34beb6(0x143)+'pe'],'title':_0x436ab5[_0x34beb6(0x175)][_0x34beb6(0x1a2)],'video_duration':_0x436ab5[_0x34beb6(0x175)][_0x34beb6(0x135)+_0x34beb6(0x10a)],'clips_music_attribution_info':_0x436ab5[_0x34beb6(0x175)][_0x34beb6(0xe4)+_0x34beb6(0xd1)+_0x34beb6(0xe9)],'is_video':_0x436ab5[_0x34beb6(0x175)][_0x34beb6(0xb5)],'owner':_0x436ab5[_0x34beb6(0x175)][_0x34beb6(0x12c)],'edge_media_to_caption':_0x436ab5[_0x34beb6(0x175)][_0x34beb6(0x1a4)+_0x34beb6(0x1c0)+'n'],'edge_media_to_comment':_0x436ab5[_0x34beb6(0x175)][_0x34beb6(0x1a4)+_0x34beb6(0x1b5)+'t'],'edge_media_preview_like':_0x436ab5[_0x34beb6(0x175)][_0x34beb6(0x1a4)+_0x34beb6(0x1d4)+_0x34beb6(0xb0)]};return{'metadata':metadata,'data':_0x2f0dd4};}catch(_0x39e454){return console[_0x34beb6(0x146)](_0x4c74ec[_0x34beb6(0x13c)],_0x39e454),{'success':![],'error':_0x4c74ec[_0x34beb6(0x164)],'details':_0x39e454[_0x34beb6(0xc6)]};}}async function rahadtikdl(_0x545e2d){const _0x10a630=_0x597dda,_0x38f5e8={'YAmYv':_0x10a630(0x221)+_0x10a630(0x1f4)+'r','KLKmh':_0x10a630(0xc4),'TDthq':_0x10a630(0xd0)+_0x10a630(0xca)+_0x10a630(0x21f)+_0x10a630(0x22d),'MAMwe':_0x10a630(0x1d0)+_0x10a630(0x1ef)+'m/','uZGkW':function(_0x16204e,_0x2e999f){return _0x16204e+_0x2e999f;},'rWdyO':_0x10a630(0x179),'PsMXC':_0x10a630(0x1b4)+_0x10a630(0xb4)+_0x10a630(0x1b6)+_0x10a630(0x1fd)+_0x10a630(0x227),'ltUxz':_0x10a630(0x1b4)+_0x10a630(0x1f3)+_0x10a630(0x19f)+_0x10a630(0x11b)+_0x10a630(0xe2),'iCqUh':_0x10a630(0xe1)+_0x10a630(0x23a)+_0x10a630(0x18f)+_0x10a630(0x12b)+_0x10a630(0x1e1)+_0x10a630(0xbc)+_0x10a630(0x166),'IMEJk':_0x10a630(0x212)+_0x10a630(0x133)+_0x10a630(0x246)+_0x10a630(0x18b)+_0x10a630(0xbd)+_0x10a630(0x1ed)+_0x10a630(0x169)+_0x10a630(0xc0)+_0x10a630(0x1f2)+_0x10a630(0x20c)+_0x10a630(0x15c)+'6','cqcEF':function(_0x49d932,_0x236374){return _0x49d932+_0x236374;},'fbGZW':function(_0x41a34e,_0x362c68){return _0x41a34e+_0x362c68;},'fXbfB':_0x10a630(0x206)+_0x10a630(0x156),'kwGVM':_0x10a630(0x211)+_0x10a630(0x1eb)+_0x10a630(0x13b),'xaTLe':_0x10a630(0xea)+_0x10a630(0x1da)+'r'};try{if(!_0x545e2d)return{'success':![],'error':_0x38f5e8[_0x10a630(0x226)]};if(!_0x545e2d[_0x10a630(0xc7)](_0x38f5e8[_0x10a630(0x12e)]))return{'success':![],'error':_0x38f5e8[_0x10a630(0x168)]};const _0x489567=_0x38f5e8[_0x10a630(0x1bf)],_0x1e139d=await axios[_0x10a630(0x127)](_0x38f5e8[_0x10a630(0x14a)](_0x489567,_0x38f5e8[_0x10a630(0x162)]),{},{'headers':{'accept':_0x38f5e8[_0x10a630(0x1bd)],'content-type':_0x38f5e8[_0x10a630(0x1df)],'sec-ch-ua':_0x38f5e8[_0x10a630(0x134)],'user-agent':_0x38f5e8[_0x10a630(0x100)]},'params':{'url':_0x545e2d,'count':0xc,'cursor':0x0,'web':0x1,'hd':0x1}}),_0x345b90=_0x1e139d[_0x10a630(0x175)][_0x10a630(0x175)],_0x947a76={'msg':_0x1e139d[_0x10a630(0x175)][_0x10a630(0x14f)],'processed_time':_0x1e139d[_0x10a630(0x175)][_0x10a630(0x195)+_0x10a630(0x184)],'title':_0x345b90[_0x10a630(0x1a2)],'play_count':_0x345b90[_0x10a630(0x228)],'react_count':_0x345b90[_0x10a630(0x128)],'comment_count':_0x345b90[_0x10a630(0x15d)+_0x10a630(0xf8)],'share_count':_0x345b90[_0x10a630(0x1bc)+'t'],'noWatermarkMp4':_0x38f5e8[_0x10a630(0x181)](_0x489567,_0x345b90[_0x10a630(0x1ba)]),'watermarkMp4':_0x38f5e8[_0x10a630(0x181)](_0x489567,_0x345b90[_0x10a630(0x16b)]),'originCover':_0x345b90[_0x10a630(0x1c8)+'er'],'musicInfo':{'title':_0x345b90[_0x10a630(0xce)][_0x10a630(0x1a2)],'music':_0x345b90[_0x10a630(0xce)][_0x10a630(0x1ba)],'cover':_0x345b90[_0x10a630(0xce)][_0x10a630(0x234)],'author':_0x345b90[_0x10a630(0xce)][_0x10a630(0x21d)],'original':_0x345b90[_0x10a630(0xce)][_0x10a630(0xdd)],'duration':_0x345b90[_0x10a630(0xce)][_0x10a630(0xb3)],'album':_0x345b90[_0x10a630(0xce)][_0x10a630(0x1e7)]},'region':_0x345b90[_0x10a630(0x22b)],'download_count':_0x345b90[_0x10a630(0x1e4)+_0x10a630(0x1c2)],'create_time':_0x345b90[_0x10a630(0x22e)+'e'],'avatar':_0x38f5e8[_0x10a630(0xc9)](_0x489567,_0x345b90[_0x10a630(0x21d)][_0x10a630(0x17b)]),'images':_0x345b90[_0x10a630(0x155)],'cover':_0x38f5e8[_0x10a630(0x14a)](_0x489567,_0x345b90[_0x10a630(0x234)])};return console[_0x10a630(0x1a0)](_0x38f5e8[_0x10a630(0x22c)],_0x345b90),{'metadata':metadata,'videoDetails':_0x947a76};}catch(_0x548221){return console[_0x10a630(0x146)](_0x38f5e8[_0x10a630(0xe3)],_0x548221),{'success':![],'error':_0x38f5e8[_0x10a630(0x1ac)],'details':_0x548221[_0x10a630(0xc6)]};}}async function rahadfbdl(_0x3af6e5,_0x311733,_0x4f1f85){const _0x4e7979=_0x597dda,_0x2c2bb8={'LNmSL':function(_0x4e9004,_0x3c6ff0){return _0x4e9004<_0x3c6ff0;},'VtBKo':function(_0x2f09e5,_0x270ad0){return _0x2f09e5+_0x270ad0;},'HhHUb':function(_0x3e3742,_0x59ac2e){return _0x3e3742*_0x59ac2e;},'ozayr':function(_0x6251ee,_0x545682){return _0x6251ee+_0x545682;},'EKHZi':function(_0x44ea9c,_0x3a098c){return _0x44ea9c*_0x3a098c;},'cTDOR':_0x4e7979(0x131),'jJkEY':_0x4e7979(0x215),'BXqRO':_0x4e7979(0x15a),'gOFGr':_0x4e7979(0x1b3),'rvCxK':_0x4e7979(0x1db)+_0x4e7979(0x144),'xucYf':_0x4e7979(0xf1)+_0x4e7979(0x125)+_0x4e7979(0x1f1)+_0x4e7979(0x108)+_0x4e7979(0x1fb),'mkNaQ':_0x4e7979(0x12a)+_0x4e7979(0x107)+_0x4e7979(0x222)+_0x4e7979(0x112)+_0x4e7979(0x1ce)+_0x4e7979(0xf3)+_0x4e7979(0x18e),'WVpiA':function(_0x52ba42,_0x2724f1){return _0x52ba42||_0x2724f1;},'KnoVF':_0x4e7979(0x212)+_0x4e7979(0x133)+_0x4e7979(0x246)+_0x4e7979(0x18b)+_0x4e7979(0xbd)+_0x4e7979(0x1ed)+_0x4e7979(0x169)+_0x4e7979(0xc0)+_0x4e7979(0x213)+_0x4e7979(0x172)+_0x4e7979(0x23c)+_0x4e7979(0xed),'EhQPj':_0x4e7979(0xda)+_0x4e7979(0x1b4)+_0x4e7979(0xc3)+_0x4e7979(0x11d)+_0x4e7979(0x1dd)+_0x4e7979(0x151)+_0x4e7979(0x149)+_0x4e7979(0x177)+_0x4e7979(0xbb)+_0x4e7979(0x23e)+_0x4e7979(0xd8)+_0x4e7979(0x114)+_0x4e7979(0x160)+_0x4e7979(0x1f8),'DttIk':function(_0x2d71f3,_0x5dde26){return _0x2d71f3||_0x5dde26;},'AbnIt':_0x4e7979(0x232)+_0x4e7979(0xe7)+_0x4e7979(0x122)+_0x4e7979(0x1e9)+_0x4e7979(0x1ff)+_0x4e7979(0x1ab)+_0x4e7979(0xbe)+_0x4e7979(0x111)+_0x4e7979(0x16e)+_0x4e7979(0xe0)+_0x4e7979(0x1c9)+_0x4e7979(0x194)+_0x4e7979(0x209)+_0x4e7979(0xd7)+_0x4e7979(0x192)+_0x4e7979(0x16d)+_0x4e7979(0x130)+_0x4e7979(0x200)+_0x4e7979(0x21e)+_0x4e7979(0xfc)+_0x4e7979(0xcd)+_0x4e7979(0xb2)+_0x4e7979(0x1b0)+_0x4e7979(0x23d)+_0x4e7979(0x1de)+_0x4e7979(0x249)+_0x4e7979(0x119)+_0x4e7979(0x17c)+_0x4e7979(0x11c)+_0x4e7979(0xd5)+_0x4e7979(0x191)+_0x4e7979(0x106)+_0x4e7979(0x20f)+_0x4e7979(0x1ca)+_0x4e7979(0xef)+_0x4e7979(0x140)+_0x4e7979(0x137),'FKauB':_0x4e7979(0xd0)+_0x4e7979(0x10f)+_0x4e7979(0x20a)+'L','WSqiZ':_0x4e7979(0xeb)+'om','LNUqT':_0x4e7979(0x1ee),'WLISq':_0x4e7979(0x243)+_0x4e7979(0xd4)+_0x4e7979(0xfd)+_0x4e7979(0x171),'veXae':_0x4e7979(0x22a),'yQZjM':function(_0x401676,_0x3ec74b){return _0x401676(_0x3ec74b);},'gaoMU':function(_0x51d4df,_0x315f78){return _0x51d4df(_0x315f78);},'iCkAR':function(_0x4405e3,_0x327bce){return _0x4405e3(_0x327bce);},'FghAg':function(_0x28ed2b,_0x357d7c){return _0x28ed2b(_0x357d7c);},'CGbuF':_0x4e7979(0xe5)+_0x4e7979(0x193)+_0x4e7979(0x24c)+_0x4e7979(0x139)+_0x4e7979(0xd9),'kaaZm':_0x4e7979(0xf5)+_0x4e7979(0x10b)+_0x4e7979(0x1b7)+_0x4e7979(0x225)+_0x4e7979(0xcf)+_0x4e7979(0xf7)+_0x4e7979(0x21a)+_0x4e7979(0x173)+_0x4e7979(0x205)+_0x4e7979(0x17e)+_0x4e7979(0x1f6)+_0x4e7979(0x11a)+_0x4e7979(0xec)};try{const _0x3950b8={'sec-fetch-user':'?1','sec-ch-ua-mobile':'?0','sec-fetch-site':_0x2c2bb8[_0x4e7979(0x21b)],'sec-fetch-dest':_0x2c2bb8[_0x4e7979(0x1cb)],'sec-fetch-mode':_0x2c2bb8[_0x4e7979(0x1e3)],'cache-control':_0x2c2bb8[_0x4e7979(0x167)],'authority':_0x2c2bb8[_0x4e7979(0x1cf)],'upgrade-insecure-requests':'1','accept-language':_0x2c2bb8[_0x4e7979(0x1a6)],'sec-ch-ua':_0x2c2bb8[_0x4e7979(0x1d8)],'user-agent':_0x2c2bb8[_0x4e7979(0x19c)](_0x4f1f85,_0x2c2bb8[_0x4e7979(0x141)]),'accept':_0x2c2bb8[_0x4e7979(0x1ec)],'cookie':_0x2c2bb8[_0x4e7979(0x158)](_0x311733,_0x2c2bb8[_0x4e7979(0x224)])},_0x1906af=_0x3a0017=>JSON[_0x4e7979(0x154)](_0x4e7979(0xff)+_0x3a0017+'\x22}')[_0x4e7979(0x11f)];if(!_0x3af6e5||!_0x3af6e5[_0x4e7979(0x145)]())return{'success':![],'error':_0x2c2bb8[_0x4e7979(0x1d9)]};if([_0x2c2bb8[_0x4e7979(0x1b8)],_0x2c2bb8[_0x4e7979(0x14e)]][_0x4e7979(0x1fe)](_0x1f0d8c=>!_0x3af6e5[_0x4e7979(0xc7)](_0x1f0d8c)))return{'success':![],'error':_0x2c2bb8[_0x4e7979(0x102)]};const {data:_0x4016b6}=await axios[_0x4e7979(0x1c7)](_0x3af6e5,{'headers':_0x3950b8}),_0x1c2599=_0x4016b6[_0x4e7979(0x245)](/"browser_native_sd_url":"(.*?)"/)||_0x4016b6[_0x4e7979(0x245)](/"playable_url":"(.*?)"/)||_0x4016b6[_0x4e7979(0x245)](/sd_src\s*:\s*"([^"]*)"/)||_0x4016b6[_0x4e7979(0x245)](/(?<="src":")[^"]*(https:\/\/[^"]*)/),_0x4e79f5=_0x4016b6[_0x4e7979(0x245)](/"browser_native_hd_url":"(.*?)"/)||_0x4016b6[_0x4e7979(0x245)](/"playable_url_quality_hd":"(.*?)"/)||_0x4016b6[_0x4e7979(0x245)](/hd_src\s*:\s*"([^"]*)"/),_0x2009d5=_0x4016b6[_0x4e7979(0x245)](/<meta\sname="description"\scontent="(.*?)"/),_0x184232=_0x4016b6[_0x4e7979(0x245)](/"preferred_thumbnail":{"image":{"uri":"(.*?)"/),_0xd7572d=_0x4016b6[_0x4e7979(0x245)](/"playable_duration_in_ms":[0-9]+/gm),_0x29bf29=_0x514ad0=>{const _0x408e2c=_0x4e7979;if(_0x2c2bb8[_0x408e2c(0x182)](_0x514ad0[_0x408e2c(0xe6)],0x1bc1+-0x2*0x43+0xd*-0x218))return _0x514ad0;else{if(_0x2c2bb8[_0x408e2c(0x182)](_0x514ad0[_0x408e2c(0xe6)],-0xafd+-0x14d2+-0x119*-0x1d)){const _0xa7183e=_0x514ad0[_0x408e2c(0xcb)](':');return _0x514ad0=_0x2c2bb8[_0x408e2c(0x17a)](_0x2c2bb8[_0x408e2c(0x10c)](+_0xa7183e[0x1*0x2051+0x2487+-0x44d8],-0x1ac7+0xb*0x49+-0xbf*-0x20),+_0xa7183e[-0xd3*-0x15+-0x218a+0x103c]);}else{const _0x4f8a9d=_0x514ad0[_0x408e2c(0xcb)](':');return _0x514ad0=_0x2c2bb8[_0x408e2c(0x17a)](_0x2c2bb8[_0x408e2c(0xf9)](_0x2c2bb8[_0x408e2c(0x10c)](_0x2c2bb8[_0x408e2c(0x10c)](+_0x4f8a9d[-0x18db+-0x3f9*0x1+0xcd*0x24],0x1a*-0x16a+0x3*0x119+0x21b5*0x1),0x3*-0xa5+0x1adb+0x28*-0x9e),_0x2c2bb8[_0x408e2c(0x148)](+_0x4f8a9d[-0x588+0x1f65+-0x19dc],-0x1*0x8f1+0x5a9+0x384)),+_0x4f8a9d[-0x411*0x9+0x497+0x2004]);}}};if(_0x1c2599&&_0x1c2599[-0x20e3+0x31b+0x1dc9]){const _0x462fe5={'msg':_0x2c2bb8[_0x4e7979(0x23b)],'duration_ms':_0x2c2bb8[_0x4e7979(0x185)](_0x29bf29,_0xd7572d[0x1*0x245c+-0x13*0x9e+0x836*-0x3][_0x4e7979(0xcb)](':')[-0x224+0x1*-0x141b+0x1640]),'title':_0x2009d5&&_0x2009d5[-0xef*-0x22+0x1d7a+-0x3d37]?_0x2c2bb8[_0x4e7979(0xdc)](decode,_0x2009d5[-0x5*0x1eb+0x1*-0x25c6+0x81*0x5e]):_0x4016b6[_0x4e7979(0x245)](/<title>(.*?)<\/title>/)?.[-0x13b7+0x1c27+-0x86f]??'','sd':_0x2c2bb8[_0x4e7979(0x176)](_0x1906af,_0x1c2599[0x102a+-0x2371+0x1348]),'hd':_0x4e79f5&&_0x4e79f5[-0x4*0x8bd+-0x1122+-0x1*-0x3417]?_0x2c2bb8[_0x4e7979(0x110)](_0x1906af,_0x4e79f5[-0x246f*0x1+-0x81e+0x1647*0x2]):'','thumbnail':_0x184232&&_0x184232[-0x252f+0x1456+-0x3*-0x59e]?_0x2c2bb8[_0x4e7979(0x110)](_0x1906af,_0x184232[-0x21e9+0x6*0x37c+-0x3*-0x456]):''};return{'metadata':metadata,'data':_0x462fe5};}else return{'success':![],'error':_0x2c2bb8[_0x4e7979(0x235)]};}catch(_0x52c259){return console[_0x4e7979(0x146)](_0x52c259),{'success':![],'error':_0x2c2bb8[_0x4e7979(0x233)],'details':_0x52c259[_0x4e7979(0xc6)]};}}async function rahadytdl(_0x41f866){const _0x1bb76f=_0x597dda,_0x4ea999={'WUSAZ':_0x1bb76f(0x221)+_0x1bb76f(0x1f4)+'r','vAfcE':function(_0x3dbb42,_0x1a43aa){return _0x3dbb42(_0x1a43aa);},'iHgdf':_0x1bb76f(0x1cd)+_0x1bb76f(0x201)+_0x1bb76f(0x153),'eSOMn':_0x1bb76f(0xc1)+_0x1bb76f(0x1c5)+_0x1bb76f(0x142)+'le','yzPuy':_0x1bb76f(0x1e8)+_0x1bb76f(0x1b1)+_0x1bb76f(0x121)+'e','tttWn':_0x1bb76f(0x17f),'GWypM':_0x1bb76f(0x126)+_0x1bb76f(0xb9),'KmYTF':function(_0x12bfb1,_0x253f99){return _0x12bfb1/_0x253f99;},'DMeDW':function(_0x15cb89,_0x3af05d){return _0x15cb89-_0x3af05d;},'ECKuf':function(_0x5518d,_0x3faa5f){return _0x5518d>=_0x3faa5f;},'hUMWI':function(_0xc0fd6f,_0x1587da){return _0xc0fd6f/_0x1587da;},'kzbnq':function(_0x340ff2,_0x3465de){return _0x340ff2%_0x3465de;},'kwdeR':_0x1bb76f(0x22a),'wOFqk':_0x1bb76f(0xf5)+_0x1bb76f(0x10b)+_0x1bb76f(0x1b7)+_0x1bb76f(0x225)+_0x1bb76f(0xcf)+_0x1bb76f(0xf7)+_0x1bb76f(0x21a)+_0x1bb76f(0x173)+_0x1bb76f(0x205)+_0x1bb76f(0x17e)+_0x1bb76f(0x1f6)+_0x1bb76f(0x11a)+_0x1bb76f(0xec)},_0xb06b52=Date[_0x1bb76f(0x219)]();try{if(!_0x41f866)return{'success':![],'error':_0x4ea999[_0x1bb76f(0x18d)]};const _0x4319dd=await ytdl[_0x1bb76f(0xba)](_0x41f866),_0x458278=_0x4319dd[_0x1bb76f(0xc8)+'ls'][_0x1bb76f(0x1a2)],_0x10b853=_0x4ea999[_0x1bb76f(0x18c)](formatDuration,_0x4319dd[_0x1bb76f(0xc8)+'ls'][_0x1bb76f(0x129)+_0x1bb76f(0x159)]),_0x28b7a7=_0x4319dd[_0x1bb76f(0xc8)+'ls'][_0x1bb76f(0x17d)]?.[_0x1bb76f(0x1fa)][-0xe00+0xc00+0x200]?.[_0x1bb76f(0x11e)]||_0x4ea999[_0x1bb76f(0x238)],_0x14f9ba=_0x4319dd[_0x1bb76f(0xc8)+'ls'][_0x1bb76f(0xde)],_0xe2ae3b=_0x4319dd[_0x1bb76f(0xc8)+'ls'][_0x1bb76f(0x21d)][_0x1bb76f(0x16a)],_0x201859=_0x4319dd[_0x1bb76f(0xc8)+'ls'][_0x1bb76f(0x21d)][_0x1bb76f(0x1fa)][0xce9+0x2*0xaba+0x13*-0x1cf]?.[_0x1bb76f(0x11e)]||_0x4ea999[_0x1bb76f(0x1aa)],_0x2a19b4=_0x4319dd[_0x1bb76f(0xc8)+'ls'][_0x1bb76f(0x1d2)+_0x1bb76f(0x1e5)]?.[_0x1bb76f(0x1fa)][-0x737+-0x105c+0x1*0x1793]?.[_0x1bb76f(0x11e)]||_0x4ea999[_0x1bb76f(0x230)],_0x1e808d=_0x4319dd[_0x1bb76f(0xc8)+'ls'][_0x1bb76f(0x1ea)],_0xb261f1=_0x4319dd[_0x1bb76f(0xc8)+'ls'][_0x1bb76f(0x1b2)],_0x264e17=_0x4319dd[_0x1bb76f(0xc8)+'ls'][_0x1bb76f(0x239)],_0x2c482b=_0x4319dd[_0x1bb76f(0xc8)+'ls'][_0x1bb76f(0x1d5)],_0x118652=ytdl[_0x1bb76f(0x229)+'at'](_0x4319dd[_0x1bb76f(0x1a5)],{'filter':_0x4ea999[_0x1bb76f(0x104)]}),_0x3ee481=ytdl[_0x1bb76f(0xfe)+_0x1bb76f(0xf2)](_0x4319dd[_0x1bb76f(0x1a5)],_0x4ea999[_0x1bb76f(0x19d)]),_0x2c69c6=_0x118652?_0x118652[_0x1bb76f(0x11e)]:null,_0x23edbf={};for(const _0x1c46be of _0x3ee481){_0x23edbf[_0x1c46be[_0x1bb76f(0x12d)]]=_0x1c46be[_0x1bb76f(0x11e)];}const _0x50c7ea=_0x4ea999[_0x1bb76f(0x116)](_0x4ea999[_0x1bb76f(0x113)](Date[_0x1bb76f(0x219)](),_0xb06b52),0x1cc2+0x20ca+0x44*-0xd9);let _0x29e388;if(_0x4ea999[_0x1bb76f(0xd3)](_0x50c7ea,0x1511+0x13c3*-0x1+-0x1*0x112)){const _0x51cf51=Math[_0x1bb76f(0x199)](_0x4ea999[_0x1bb76f(0x1a9)](_0x50c7ea,-0x1*0x1502+-0x2174+0x36b2)),_0x21f217=_0x4ea999[_0x1bb76f(0x1d1)](_0x50c7ea,0x90+0x5e0+-0x634);_0x29e388=_0x51cf51+'m\x20'+_0x21f217[_0x1bb76f(0x15e)](-0xa86+0xfab+-0x5*0x107)+'s';}else _0x29e388=_0x50c7ea[_0x1bb76f(0x15e)](-0x1372*0x2+0x1*-0x13ff+0x1*0x3ae5)+'s';const _0x59ab17={'status':_0x4ea999[_0x1bb76f(0x19e)],'processingTime':_0x29e388,'title':_0x458278,'duration':_0x10b853,'thumbnailUrl':_0x28b7a7,'uploadTime':_0x14f9ba,'channelName':_0xe2ae3b,'channelAvatar':_0x201859,'channelCover':_0x2a19b4,'viewCount':_0x1e808d,'likes':_0xb261f1,'dislikes':_0x264e17,'keywords':_0x2c482b,'audioLink':_0x2c69c6,'videoLinks':_0x23edbf};return{'metadata':metadata,'info':_0x59ab17};}catch(_0x25a750){return console[_0x1bb76f(0x146)](_0x25a750),{'success':![],'error':_0x4ea999[_0x1bb76f(0x1a1)],'details':_0x25a750[_0x1bb76f(0xc6)]};}}function formatDuration(_0x1b427e){const _0x1a28fc=_0x597dda,_0x2458bd={'KGZxh':function(_0xf69334,_0x2b1a43){return _0xf69334/_0x2b1a43;},'DjKSd':function(_0x3e8c8b,_0x3f91c6){return _0x3e8c8b%_0x3f91c6;}},_0x46ec43=Math[_0x1a28fc(0x199)](_0x2458bd[_0x1a28fc(0xc5)](_0x1b427e,-0x38*0xa+0x869+0x7d7)),_0x47b84a=Math[_0x1a28fc(0x199)](_0x2458bd[_0x1a28fc(0xc5)](_0x2458bd[_0x1a28fc(0x196)](_0x1b427e,-0xc*-0x2a+0x1*-0x1825+0x243d),-0x1316*0x1+0x313*-0x5+0x22b1)),_0xc39244=_0x2458bd[_0x1a28fc(0x196)](_0x1b427e,-0x1948+0x53*0x74+-0xc18);return _0x46ec43+':'+_0x47b84a+':'+_0xc39244;}function _0x298a(_0x11e886,_0x35c6cd){const _0x52a67b=_0x17b1();return _0x298a=function(_0x4c65b5,_0x47adba){_0x4c65b5=_0x4c65b5-(0x1ec0+0x24bd+0x42cd*-0x1);let _0x2faddc=_0x52a67b[_0x4c65b5];return _0x2faddc;},_0x298a(_0x11e886,_0x35c6cd);}async function gdriveLink(_0x116b03){const _0x25536a=_0x597dda,_0x17db43={'hTmnH':_0x25536a(0x221)+_0x25536a(0x1f4)+'r','PprdU':_0x25536a(0x206)+_0x25536a(0x156),'SwjWB':_0x25536a(0x163)+_0x25536a(0x183)+_0x25536a(0x1bb)+_0x25536a(0x208),'JAKZn':_0x25536a(0x152)+_0x25536a(0x214)+_0x25536a(0x241)+_0x25536a(0x147)+_0x25536a(0x157)+_0x25536a(0x123)};if(!_0x116b03)return{'success':![],'error':_0x17db43[_0x25536a(0x1a7)]};try{const _0x56bb1e=_0x116b03[_0x25536a(0x245)](/\/d\/([^/]+)/)[0x5*-0x218+0x1*-0xc59+-0xb69*-0x2],_0x289e3f=_0x25536a(0x1fc)+_0x25536a(0x217)+_0x25536a(0x13a)+_0x25536a(0x1a3)+_0x25536a(0x203)+_0x56bb1e,_0x440a6d=await axios[_0x25536a(0x174)](_0x289e3f,{'maxRedirects':0x5}),_0x413dde=_0x440a6d[_0x25536a(0x247)][_0x25536a(0xc2)][_0x25536a(0x1f9)+'l'];return console[_0x25536a(0x1a0)](_0x17db43[_0x25536a(0x1ad)],_0x440a6d[_0x25536a(0x175)]),{'metadata':metadata,'data':_0x413dde};}catch(_0x2a9273){return console[_0x25536a(0x146)](_0x17db43[_0x25536a(0x115)],_0x2a9273),{'success':![],'error':_0x17db43[_0x25536a(0x16c)]};}}module[_0x597dda(0x150)]={'rahadinsta':rahadinsta,'rahadtikdl':rahadtikdl,'rahadfbdl':rahadfbdl,'rahadytdl':rahadytdl,'gdriveLink':gdriveLink};function _0x17b1(){const _0x46f5ba=['rm-urlenco','log','wOFqk','title','port=downl','edge_media','formats','xucYf','hTmnH','/post','hUMWI','eSOMn','msosmVNT;\x20','xaTLe','PprdU','5c8964bdp1','thumbnail_','%3A-1%3A49','ver\x20URL\x20no','likes','max-age=0','applicatio','_to_commen','xt/javascr','er\x20server\x20','WSqiZ','nstagram\x20D','play','e\x20Drive\x20li','share_coun','PsMXC','Mohammad\x20R','MAMwe','_to_captio','423427LjJoAi','ount','77ca7a71b5','0d307jsn00','atar\x20URL\x20n','AIKNm','get','origin_cov','6126997.44','A.BhrQqa.3','jJkEY','has_audio','Thumbnail\x20','\x22,\x20\x22;Not\x20A','rvCxK','https://ww','kzbnq','channelThu','msh6da47b4','_preview_l','keywords','m\x20please\x20c','ies','mkNaQ','FKauB','erver\x20Erro','www.facebo','8e610f3ec7','ion/xml;q=','WIuSjPy2ml','ltUxz','1595c733p1','\x22,\x20\x22Google','a1bb5jsn95','BXqRO','download_c','mbnail','looter2.p.','album','Channel\x20co','atr=Rn8BYb','viewCount','ikTok\x20Down','EhQPj','Kit/537.36','fb.watch','w.tikwm.co','NRPrm',';q=0.8,tr;','\x20Chrome/10','n/x-www-fo','L\x20paramete','550daf0ap1','ebook.com/','ontact\x20me','q=0.9','responseUr','thumbnails','S;q=0.6','https://dr','ipt,\x20*/*;\x20','every','yhXgw9RlOv','_s.1_v.2_;','URL\x20not\x20av','had.hosain','oad&id=','e4da8c55p1','b:\x0a\x0a\x20https','Response\x20d','display_re','nk:','d=1920x939','acebook\x20UR','10518030pjlhxm','4.0.0.0\x20Sa','a6537jsncc','Jqwrf','b8kaZahs-j','src','Error\x20in\x20T','Mozilla/5.','\x20Chrome/89','ccurred\x20wh','document','axios','ive.google','01717a46p1','now','ner\x20Mohamm','cTDOR','Error\x20in\x20I','author','\x20xs=28%3A8','id\x20TikTok\x20','5099af6297','Missing\x20UR','9\x22,\x20\x22Chrom','LJNRw','AbnIt','error\x20Plea','YAmYv','q=0.01','play_count','chooseForm','success','region','fXbfB','URL','create_tim','EfXTo','yzPuy','rwrgr','sb=Rn8BYQv','kaaZm','cover','CGbuF','https://in','cheerio','iHgdf','dislikes',';v=\x22104\x22,\x20','veXae','4\x20Safari/5','16%3A%3AAc',';q=0.8,app','2aa512a8p1','KBXYp','ile\x20proces','instagram-','Please\x20ent','99701jsn7f','match','\x20NT\x2010.0;\x20','request','f04c0fb2p1','TPuZAeA2wW','1e0a8fbd11','8243400FiSbIv','\x20video\x20URL','ike','16495EbjtHx','1627488145','duration','n/json,\x20te','is_video','ytdl-core','b258ef723f','pidapi.com','dio','getInfo','e/apng,*/*','\x20Chrome\x22;v',')\x20AppleWeb','c_user=100','16705840XPerFn','ike\x20Gecko)','Channel\x20av','res','n/xhtml+xm','tiktok.com','KGZxh','message','includes','videoDetai','fbGZW','cify\x20a\x20val','split','stagram-lo','XcQ%3A2%3A','music_info','se\x20contact','Please\x20spe','c_attribut','a79657b66a','ECKuf','er\x20the\x20val','7hcrFdas2Z','mshf3a6c1b',';\x20spin=r.1','lication/s','page','text/html,','a6aa6jsn0b','gaoMU','original','uploadDate','html-entit','b.1.162987','\x22Chromium\x22','et=UTF-8','kwGVM','clips_musi','Unable\x20to\x20','length','CEb2fpMQZj','yWMjC','ion_info','Internal\x20S','facebook.c','osain18','37.36\x20','ymOMe','E.AAA.0.0.','display_ur','en-GB,en;q','ats','\x20Brand\x22;v=','video_url','rahad-medi','6mDmrNm','\x20Server\x20Ow','unt','ozayr','random','msh1087949','ROnP0aeVF8','id\x20Faceboo','filterForm','{\x22text\x22:\x20\x22','IMEJk','24d30a94p1','WLISq','.com/md.ra','tttWn','560OguJhO','l_4noCEs_h','rome\x22;v=\x228','q=0.7,en-U','sQbmh','tion','a-download','HhHUb','4876902qqQXLg','GET','cify\x20the\x20F','FghAg','0031646306','ium\x22;v=\x2289','DMeDW','igned-exch','SwjWB','KmYTF','ahad','msh6e1c717','zHzEDuumXI','md.rahad.h','ded;\x20chars','8;\x20fr=0jQw','l,applicat','url','text','oter2.p.ra','t\x20availabl','sd6L382;\x20d','e\x20link','mshb5be9d9','=0.9,tr-TR','videoandau','post','digg_count','lengthSeco','\x22Google\x20Ch','and\x22;v=\x2299','owner','quality','KLKmh','aea50f9b26','1638730393','none','aefdb0602b','0\x20(Windows','iCqUh','video_dura','2PJOQPp','u879ZtCw','sources','\x20from\x20the\x20','.com/uc?ex','loader:','LdGHz','3307a68755','msh03d743f','w.facebook','BhrQqa.AWU','KnoVF','ot\x20availab','product_ty','ok.com','trim','error','sing\x20the\x20G','EKHZi','avif,image','uZGkW','10018561rZJJtU','msh5d25474','0abdcjsn78','LNUqT','msg','exports','0.9,image/','An\x20error\x20o','ailable','parse','images','ata:','oogle\x20Driv','DttIk','nds','navigate','568acec4ba','fari/537.3','comment_co','toFixed','DYwdT','ange;v=b3;','rapidapi.c','rWdyO','Error\x20hand','blZoe','633c1jsn15','=\x22104\x22','gOFGr','TDthq','\x20(KHTML,\x20l','name','wmplay','JAKZn','b.trunk_t.','29;\x20_fbp=f','msh5cc9c65','2cc687a09f','k\x20URL','.0.4389.11','ad\x20Rahad\x20f','head','data','iCkAR','/webp,imag','250976cf63','api/','VtBKo','avatar','89jH8a_QIV','thumbnail','://www.fac','audioonly','953f7f18eb','cqcEF','LNmSL','ling\x20Googl','time','yQZjM','d3620jsnd6','LYlVJ','_count','PSywg','any\x20proble','Win64;\x20x64','vAfcE','WUSAZ','\x2299\x22','\x22\x20Not\x20A;Br','1d37e77a02','eyT.AWVpRN','004812505_','extract\x20SD','4699739;\x20w','processed_','DjKSd','ownloader:','57f9a2103e','floor','716f0c155b','video_view','WVpiA','GWypM','kwdeR'];_0x17b1=function(){return _0x46f5ba;};return _0x17b1();}
|
1
|
+
const _0x296754=_0x55ab;function _0x55ab(_0x262c69,_0xa1d23e){const _0x225a6d=_0x225a();return _0x55ab=function(_0x55aba1,_0x2095ba){_0x55aba1=_0x55aba1-0x1ae;let _0x45f342=_0x225a6d[_0x55aba1];return _0x45f342;},_0x55ab(_0x262c69,_0xa1d23e);}(function(_0x388f04,_0x1590e8){const _0x443e66=_0x55ab,_0x2d7877=_0x388f04();while(!![]){try{const _0xda9166=-parseInt(_0x443e66(0x208))/0x1+parseInt(_0x443e66(0x20f))/0x2+-parseInt(_0x443e66(0x1dc))/0x3+parseInt(_0x443e66(0x209))/0x4+-parseInt(_0x443e66(0x1c3))/0x5*(-parseInt(_0x443e66(0x1c6))/0x6)+-parseInt(_0x443e66(0x1e0))/0x7*(-parseInt(_0x443e66(0x1d5))/0x8)+parseInt(_0x443e66(0x1c2))/0x9;if(_0xda9166===_0x1590e8)break;else _0x2d7877['push'](_0x2d7877['shift']());}catch(_0x26c3e9){_0x2d7877['push'](_0x2d7877['shift']());}}}(_0x225a,0x89c9e));const axios=require(_0x296754(0x1af)),cheerio=require('cheerio'),ytdl=require(_0x296754(0x1b7)),{decode}=require(_0x296754(0x219)),qs=require('qs'),metadata={'Author':_0x296754(0x1d9),'message':'any\x20problem\x20please\x20contact\x20me','Facebook':_0x296754(0x1de)};async function rahadinsta(_0x11d409){const _0x3a9794=_0x296754;try{if(!_0x11d409)return{'success':![],'error':_0x3a9794(0x1cf)};const _0x3e9125=[_0x3a9794(0x1d6),_0x3a9794(0x1db),_0x3a9794(0x1d8),_0x3a9794(0x212),'57f9a2103emshb5be9d95c8964bdp1d3620jsnd6716f0c155b',_0x3a9794(0x1b3),_0x3a9794(0x1e2),'aea50f9b26msh5d25474550daf0ap1a6537jsncc77ca7a71b5'],_0x36b7b5=_0x3e9125[Math['floor'](Math[_0x3a9794(0x21d)]()*_0x3e9125[_0x3a9794(0x1ba)])],_0x3ed10f={'method':_0x3a9794(0x1e5),'url':'https://instagram-looter2.p.rapidapi.com/post','params':{'link':_0x11d409},'headers':{'X-RapidAPI-Key':_0x36b7b5,'X-RapidAPI-Host':_0x3a9794(0x1fa)}},_0x43c473=await axios['request'](_0x3ed10f),_0x391161={'status':!![],'thumbnail_src':_0x43c473[_0x3a9794(0x1ca)][_0x3a9794(0x1d0)],'display_url':_0x43c473[_0x3a9794(0x1ca)][_0x3a9794(0x1f2)],'display_resources':_0x43c473['data'][_0x3a9794(0x1bb)],'has_audio':_0x43c473['data']['has_audio'],'video_url':_0x43c473[_0x3a9794(0x1ca)]['video_url'],'video_view_count':_0x43c473[_0x3a9794(0x1ca)][_0x3a9794(0x1bf)],'product_type':_0x43c473[_0x3a9794(0x1ca)][_0x3a9794(0x1b5)],'title':_0x43c473[_0x3a9794(0x1ca)][_0x3a9794(0x200)],'video_duration':_0x43c473[_0x3a9794(0x1ca)]['video_duration'],'clips_music_attribution_info':_0x43c473[_0x3a9794(0x1ca)][_0x3a9794(0x1d4)],'is_video':_0x43c473[_0x3a9794(0x1ca)]['is_video'],'owner':_0x43c473[_0x3a9794(0x1ca)][_0x3a9794(0x1fb)],'edge_media_to_caption':_0x43c473[_0x3a9794(0x1ca)][_0x3a9794(0x1da)],'edge_media_to_comment':_0x43c473['data'][_0x3a9794(0x1b4)],'edge_media_preview_like':_0x43c473[_0x3a9794(0x1ca)][_0x3a9794(0x214)]};return{'metadata':metadata,'data':_0x391161};}catch(_0x541cb4){return console[_0x3a9794(0x21c)]('Error\x20in\x20Instagram\x20Downloader:',_0x541cb4),{'success':![],'error':'Internal\x20Server\x20Error','details':_0x541cb4[_0x3a9794(0x204)]};}}async function rahadtikdl(_0x588e1a){const _0x550514=_0x296754;try{if(!_0x588e1a)return{'success':![],'error':_0x550514(0x1cf)};if(!_0x588e1a[_0x550514(0x1c8)](_0x550514(0x216)))return{'success':![],'error':_0x550514(0x1df)};const _0xe44462=_0x550514(0x1c5),_0x1b0e6a=await axios['post'](_0xe44462+_0x550514(0x1f7),{},{'headers':{'accept':_0x550514(0x1eb),'content-type':_0x550514(0x1e7),'sec-ch-ua':'\x22Chromium\x22;v=\x22104\x22,\x20\x22\x20Not\x20A;Brand\x22;v=\x2299\x22,\x20\x22Google\x20Chrome\x22;v=\x22104\x22','user-agent':_0x550514(0x1cc)},'params':{'url':_0x588e1a,'count':0xc,'cursor':0x0,'web':0x1,'hd':0x1}}),_0x44be40=_0x1b0e6a['data'][_0x550514(0x1ca)],_0x341517={'msg':_0x1b0e6a['data'][_0x550514(0x221)],'processed_time':_0x1b0e6a[_0x550514(0x1ca)][_0x550514(0x21a)],'title':_0x44be40['title'],'play_count':_0x44be40[_0x550514(0x1b2)],'react_count':_0x44be40[_0x550514(0x1ff)],'comment_count':_0x44be40[_0x550514(0x1e6)],'share_count':_0x44be40[_0x550514(0x1b0)],'noWatermarkMp4':_0xe44462+_0x44be40[_0x550514(0x1cb)],'watermarkMp4':_0xe44462+_0x44be40[_0x550514(0x203)],'originCover':_0x44be40[_0x550514(0x1f1)],'musicInfo':{'title':_0x44be40[_0x550514(0x1cd)]['title'],'music':_0x44be40[_0x550514(0x1cd)][_0x550514(0x1cb)],'cover':_0x44be40[_0x550514(0x1cd)][_0x550514(0x1ae)],'author':_0x44be40[_0x550514(0x1cd)][_0x550514(0x223)],'original':_0x44be40[_0x550514(0x1cd)][_0x550514(0x1bc)],'duration':_0x44be40[_0x550514(0x1cd)][_0x550514(0x1d1)],'album':_0x44be40[_0x550514(0x1cd)][_0x550514(0x1d3)]},'region':_0x44be40['region'],'download_count':_0x44be40['download_count'],'create_time':_0x44be40[_0x550514(0x1ec)],'avatar':_0xe44462+_0x44be40[_0x550514(0x223)][_0x550514(0x220)],'images':_0x44be40['images'],'cover':_0xe44462+_0x44be40[_0x550514(0x1ae)]};return console[_0x550514(0x218)](_0x550514(0x229),_0x44be40),{'metadata':metadata,'data':_0x341517};}catch(_0x24753d){return console[_0x550514(0x21c)]('Error\x20in\x20TikTok\x20Downloader:',_0x24753d),{'success':![],'error':_0x550514(0x227),'details':_0x24753d[_0x550514(0x204)]};}}async function rahadfbdl(_0x5d049e,_0x341948,_0x42068b){const _0xc0a3d3=_0x296754;try{const _0x32d20b={'sec-fetch-user':'?1','sec-ch-ua-mobile':'?0','sec-fetch-site':_0xc0a3d3(0x207),'sec-fetch-dest':_0xc0a3d3(0x20a),'sec-fetch-mode':'navigate','cache-control':_0xc0a3d3(0x1c9),'authority':_0xc0a3d3(0x1f0),'upgrade-insecure-requests':'1','accept-language':'en-GB,en;q=0.9,tr-TR;q=0.8,tr;q=0.7,en-US;q=0.6','sec-ch-ua':'\x22Google\x20Chrome\x22;v=\x2289\x22,\x20\x22Chromium\x22;v=\x2289\x22,\x20\x22;Not\x20A\x20Brand\x22;v=\x2299\x22','user-agent':_0x42068b||'Mozilla/5.0\x20(Windows\x20NT\x2010.0;\x20Win64;\x20x64)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Chrome/89.0.4389.114\x20Safari/537.36\x20','accept':_0xc0a3d3(0x1f8),'cookie':_0x341948||_0xc0a3d3(0x1b8)},_0x3ce577=_0x3f4733=>JSON[_0xc0a3d3(0x1c4)](_0xc0a3d3(0x1e3)+_0x3f4733+'\x22}')[_0xc0a3d3(0x1e9)];if(!_0x5d049e||!_0x5d049e[_0xc0a3d3(0x21f)]())return{'success':![],'error':_0xc0a3d3(0x1f3)};if([_0xc0a3d3(0x1dd),_0xc0a3d3(0x210)]['every'](_0x5df170=>!_0x5d049e['includes'](_0x5df170)))return{'success':![],'error':_0xc0a3d3(0x215)};const {data:_0x33ff78}=await axios[_0xc0a3d3(0x228)](_0x5d049e,{'headers':_0x32d20b}),_0x11f7b6=_0x33ff78['match'](/"browser_native_sd_url":"(.*?)"/)||_0x33ff78[_0xc0a3d3(0x1b9)](/"playable_url":"(.*?)"/)||_0x33ff78[_0xc0a3d3(0x1b9)](/sd_src\s*:\s*"([^"]*)"/)||_0x33ff78[_0xc0a3d3(0x1b9)](/(?<="src":")[^"]*(https:\/\/[^"]*)/),_0x1f4c4e=_0x33ff78['match'](/"browser_native_hd_url":"(.*?)"/)||_0x33ff78[_0xc0a3d3(0x1b9)](/"playable_url_quality_hd":"(.*?)"/)||_0x33ff78['match'](/hd_src\s*:\s*"([^"]*)"/),_0x55e8cd=_0x33ff78[_0xc0a3d3(0x1b9)](/<meta\sname="description"\scontent="([^"]*)"/),_0xfa63bb=_0x33ff78['match'](/"preferred_thumbnail":{"image":{"uri":"(.*?)"/),_0x295b72=_0x33ff78[_0xc0a3d3(0x1b9)](/"playable_duration_in_ms":[0-9]+/gm),_0x2c9252=_0x508bde=>{const _0x32058f=_0xc0a3d3;if(_0x508bde[_0x32058f(0x1ba)]<0x3)return _0x508bde;else{if(_0x508bde['length']<0x6){const _0x3f034f=_0x508bde['split'](':');return _0x508bde=+_0x3f034f[0x0]*0x3c+ +_0x3f034f[0x1];}else{const _0x5aefd5=_0x508bde['split'](':');return _0x508bde=+_0x5aefd5[0x0]*0x3c*0x3c+ +_0x5aefd5[0x1]*0x3c+ +_0x5aefd5[0x2];}}},_0x379f3c=_0x33ff78[_0xc0a3d3(0x1b9)](/"reaction_count":\{"count":(\d+),.*?"edges"/),_0xbffcc0=_0x379f3c?parseInt(_0x379f3c[0x1]):0x0,_0xd65644=_0x33ff78[_0xc0a3d3(0x1b9)](/"reaction_count":\{"count":\d+,.*?"reactions":\[\{"reaction_type":"like","node":\{"reaction_type":"love","reaction_count":(\d+)/),_0x558a16=_0xd65644?parseInt(_0xd65644[0x1]):0x0,_0x4342c2=_0x33ff78[_0xc0a3d3(0x1b9)](/"video_view_count":(\d+)/),_0x1f92ab=_0x4342c2?parseInt(_0x4342c2[0x1]):0x0,_0x59f431=_0x33ff78[_0xc0a3d3(0x1b9)](/"share_count":\{"count":(\d+)}\}/),_0x361a48=_0x59f431?parseInt(_0x59f431[0x1]):0x0,_0x5c01d5={'msg':_0xc0a3d3(0x213),'duration_ms':_0x2c9252(_0x295b72[0x0]['split'](':')[0x1]),'title':_0x55e8cd&&_0x55e8cd[0x1]?decode(_0x55e8cd[0x1]):_0x33ff78['match'](/<title>(.*?)<\/title>/)?.[0x1]??'','sd':_0x3ce577(_0x11f7b6[0x1]),'hd':_0x1f4c4e&&_0x1f4c4e[0x1]?_0x3ce577(_0x1f4c4e[0x1]):'','thumbnail':_0xfa63bb&&_0xfa63bb[0x1]?_0x3ce577(_0xfa63bb[0x1]):'','like':_0xbffcc0,'love':_0x558a16,'views':_0x1f92ab,'shares':_0x361a48};return{'metadata':metadata,'data':_0x5c01d5};}catch(_0x3c7304){return console[_0xc0a3d3(0x21c)](_0x3c7304),{'success':![],'error':_0xc0a3d3(0x1c0),'details':_0x3c7304[_0xc0a3d3(0x204)]};}}async function rahadytdl(_0x228944){const _0x13f487=_0x296754,_0x506388=Date[_0x13f487(0x225)]();try{if(!_0x228944)return{'success':![],'error':'Missing\x20URL\x20parameter'};const _0xb45908=await ytdl[_0x13f487(0x1f9)](_0x228944),_0x50473c=_0xb45908[_0x13f487(0x1ce)]['title'],_0x118fc0=formatDuration(_0xb45908[_0x13f487(0x1ce)][_0x13f487(0x206)]),_0x3270f3=_0xb45908['videoDetails']['thumbnail']?.[_0x13f487(0x222)][0x0]?.[_0x13f487(0x21b)]||_0x13f487(0x1be),_0x49d88e=_0xb45908['videoDetails']['uploadDate'],_0xb32537=_0xb45908[_0x13f487(0x1ce)][_0x13f487(0x223)][_0x13f487(0x201)],_0x22a278=_0xb45908[_0x13f487(0x1ce)][_0x13f487(0x223)][_0x13f487(0x222)][0x0]?.[_0x13f487(0x21b)]||_0x13f487(0x1e8),_0x1e42b5=_0xb45908[_0x13f487(0x1ce)][_0x13f487(0x20b)]?.[_0x13f487(0x222)][0x0]?.['url']||'Channel\x20cover\x20URL\x20not\x20available',_0x5003f9=_0xb45908[_0x13f487(0x1ce)][_0x13f487(0x1fd)],_0x8f1294=_0xb45908[_0x13f487(0x1ce)][_0x13f487(0x20e)],_0x30e9b4=_0xb45908['videoDetails'][_0x13f487(0x1b1)],_0x101769=_0xb45908[_0x13f487(0x1ce)][_0x13f487(0x211)],_0x53736a=ytdl['chooseFormat'](_0xb45908[_0x13f487(0x226)],{'filter':_0x13f487(0x202)}),_0x1e9ab1=ytdl[_0x13f487(0x22b)](_0xb45908['formats'],_0x13f487(0x22a)),_0x9e4ef6=_0x53736a?_0x53736a[_0x13f487(0x21b)]:null,_0x41f9fd={};for(const _0x2ff30b of _0x1e9ab1){_0x41f9fd[_0x2ff30b[_0x13f487(0x1fe)]]=_0x2ff30b['url'];}const _0x2256bb=(Date['now']()-_0x506388)/0x3e8;let _0x5264c3;if(_0x2256bb>=0x3c){const _0x51ab63=Math[_0x13f487(0x1e1)](_0x2256bb/0x3c),_0x4d6353=_0x2256bb%0x3c;_0x5264c3=_0x51ab63+'m\x20'+_0x4d6353[_0x13f487(0x1d2)](0x2)+'s';}else _0x5264c3=_0x2256bb['toFixed'](0x2)+'s';const _0x2dbc35={'status':_0x13f487(0x213),'processingTime':_0x5264c3,'title':_0x50473c,'duration':_0x118fc0,'thumbnailUrl':_0x3270f3,'uploadTime':_0x49d88e,'channelName':_0xb32537,'channelAvatar':_0x22a278,'channelCover':_0x1e42b5,'viewCount':_0x5003f9,'likes':_0x8f1294,'dislikes':_0x30e9b4,'keywords':_0x101769,'audioLink':_0x9e4ef6,'videoLinks':_0x41f9fd};return{'metadata':metadata,'info':_0x2dbc35};}catch(_0x903ea2){return console[_0x13f487(0x21c)](_0x903ea2),{'success':![],'error':_0x13f487(0x1c0),'details':_0x903ea2[_0x13f487(0x204)]};}}function formatDuration(_0x340fd8){const _0x1ea048=_0x296754,_0x5b9438=Math[_0x1ea048(0x1e1)](_0x340fd8/0xe10),_0x233c47=Math[_0x1ea048(0x1e1)](_0x340fd8%0xe10/0x3c),_0x45349f=_0x340fd8%0x3c;return _0x5b9438+':'+_0x233c47+':'+_0x45349f;}async function gdriveLink(_0x1c9d88){const _0x277f5f=_0x296754;if(!_0x1c9d88)return{'success':![],'error':_0x277f5f(0x1cf)};try{const _0x543ed9=_0x1c9d88['match'](/\/d\/([^/]+)/)[0x1],_0x27590c=_0x277f5f(0x20d)+_0x543ed9,_0x5c484c=await axios[_0x277f5f(0x1c7)](_0x27590c,{'maxRedirects':0x5}),_0x1f0f99=_0x5c484c[_0x277f5f(0x1d7)][_0x277f5f(0x1ea)][_0x277f5f(0x20c)];return console[_0x277f5f(0x218)](_0x277f5f(0x229),_0x5c484c[_0x277f5f(0x1ca)]),{'metadata':metadata,'data':_0x1f0f99};}catch(_0x112945){return console[_0x277f5f(0x21c)](_0x277f5f(0x1e4),_0x112945),{'success':![],'error':_0x277f5f(0x1f6)};}}async function twitter(_0x5aac4e){return new Promise((_0x28e804,_0x2c5853)=>{const _0x2bfcdd=_0x55ab;let _0x566ede={'URL':_0x5aac4e};axios[_0x2bfcdd(0x1fc)]('https://twdown.net/download.php',qs['stringify'](_0x566ede),{'headers':{'accept':_0x2bfcdd(0x1f8),'sec-ch-ua':_0x2bfcdd(0x1ef),'user-agent':_0x2bfcdd(0x1c1),'cookie':_0x2bfcdd(0x217)}})[_0x2bfcdd(0x21e)](({data:_0x3183ef})=>{const _0x3bcac4=_0x2bfcdd,_0x4e8c3e=cheerio[_0x3bcac4(0x205)](_0x3183ef);let _0x53da9a=_0x4e8c3e(_0x3bcac4(0x1f4))[_0x3bcac4(0x1e9)]()[_0x3bcac4(0x21f)](),_0x18cfb1=_0x4e8c3e(_0x3bcac4(0x224))[_0x3bcac4(0x1bd)](_0x3bcac4(0x1ee)),_0x1c6d50=_0x4e8c3e(_0x3bcac4(0x1b6))[_0x3bcac4(0x1bd)]('href');const _0x413da1={'status':_0x3bcac4(0x213),'title':_0x53da9a,'url':[{'hd':_0x18cfb1},{'sd':_0x1c6d50}]};_0x28e804({'metadata':metadata,'info':_0x413da1});})[_0x2bfcdd(0x1f5)](_0x58d7f3=>{_0x2c5853(_0x58d7f3);});});}module[_0x296754(0x1ed)]={'rahadinsta':rahadinsta,'rahadtikdl':rahadtikdl,'rahadfbdl':rahadfbdl,'rahadytdl':rahadytdl,'gdriveLink':gdriveLink,'twitter':twitter};function _0x225a(){const _0xeab69f=['video_view_count','rahad-media-downloader\x20server\x20error\x20Please\x20contact\x20Server\x20Owner\x20Mohammad\x20Rahad\x20fb:\x0a\x0a\x20https://www.facebook.com/md.rahad.hosain18','Mozilla/5.0\x20(Windows\x20NT\x2010.0;\x20Win64;\x20x64)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Chrome/91.0.4472.124\x20Safari/537.36','5994153LUMCqf','5SIcvdr','parse','https://www.tikwm.com/','5141730XqbtaX','head','includes','max-age=0','data','play','Mozilla/5.0\x20(Windows\x20NT\x2010.0;\x20Win64;\x20x64)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Chrome/104.0.0.0\x20Safari/537.36','music_info','videoDetails','Missing\x20URL\x20parameter','thumbnail_src','duration','toFixed','album','clips_music_attribution_info','301216eEcuRU','b258ef723fmsh6e1c717e4da8c55p1a6aa6jsn0b568acec4ba','request','2cc687a09fmsh03d743f2aa512a8p10abdcjsn78953f7f18eb','Mohammad\x20Rahad','edge_media_to_caption','aefdb0602bmsh108794901717a46p1633c1jsn158e610f3ec7','1831026HhgfMB','facebook.com','https://www.facebook.com/md.rahad.hosain18','Please\x20specify\x20a\x20valid\x20TikTok\x20URL','7pxNYCs','floor','5099af6297msh5cc9c6524d30a94p10d307jsn003307a68755','{\x22text\x22:\x20\x22','Error\x20handling\x20Google\x20Drive\x20link:','GET','comment_count','application/x-www-form-urlencoded;\x20charset=UTF-8','Channel\x20avatar\x20URL\x20not\x20available','text','res','application/json,\x20text/javascript,\x20*/*;\x20q=0.01','create_time','exports','href','\x22\x20Not;A\x20Brand\x22;v=\x2299\x22,\x20\x22Google\x20Chrome\x22;v=\x2291\x22,\x20\x22Chromium\x22;v=\x2291\x22','www.facebook.com','origin_cover','display_url','Please\x20specify\x20the\x20Facebook\x20URL','div:nth-child(1)\x20>\x20div:nth-child(2)\x20>\x20p','catch','An\x20error\x20occurred\x20while\x20processing\x20the\x20Google\x20Drive\x20link','api/','text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9','getInfo','instagram-looter2.p.rapidapi.com','owner','post','viewCount','quality','digg_count','title','name','audioonly','wmplay','message','load','lengthSeconds','none','1089841WClHyH','2763212DCtssJ','document','channelThumbnail','responseUrl','https://drive.google.com/uc?export=download&id=','likes','26276hSPRMH','fb.watch','keywords','1d37e77a02mshf3a6c1b1595c733p1a1bb5jsn95a79657b66a','success','edge_media_preview_like','Please\x20enter\x20the\x20valid\x20Facebook\x20URL','tiktok.com','_ga=GA1.2.1388798541.1625064838;\x20_gid=GA1.2.1351476739.1625064838;\x20__gads=ID=7a60905ab10b2596-229566750eca0064:T=1625064837:RT=1625064837:S=ALNI_Mbg3GGC2b3oBVCUJt9UImup-j20Iw;\x20_gat=1','log','html-entities','processed_time','url','error','random','then','trim','avatar','msg','thumbnails','author','tbody\x20>\x20tr:nth-child(1)\x20>\x20td:nth-child(4)\x20>\x20a','now','formats','Internal\x20Server\x20Error','get','Response\x20data:','videoandaudio','filterFormats','cover','axios','share_count','dislikes','play_count','250976cf63msh6da47b4f04c0fb2p199701jsn7f1e0a8fbd11','edge_media_to_comment','product_type','tr:nth-child(2)\x20>\x20td:nth-child(4)\x20>\x20a','ytdl-core','sb=Rn8BYQvCEb2fpMQZjsd6L382;\x20datr=Rn8BYbyhXgw9RlOvmsosmVNT;\x20c_user=100003164630629;\x20_fbp=fb.1.1629876126997.444699739;\x20wd=1920x939;\x20spin=r.1004812505_b.trunk_t.1638730393_s.1_v.2_;\x20xs=28%3A8ROnP0aeVF8XcQ%3A2%3A1627488145%3A-1%3A4916%3A%3AAcWIuSjPy2mlTPuZAeA2wWzHzEDuumXI89jH8a_QIV8;\x20fr=0jQw7hcrFdas2ZeyT.AWVpRNl_4noCEs_hb8kaZahs-jA.BhrQqa.3E.AAA.0.0.BhrQqa.AWUu879ZtCw','match','length','display_resources','original','attr','Thumbnail\x20URL\x20not\x20available'];_0x225a=function(){return _0xeab69f;};return _0x225a();}
|