distube 4.0.0-dev.2 → 4.0.0-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.d.ts +604 -8
- package/dist/index.js +2437 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2375 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +72 -45
- package/dist/DisTube.d.ts +0 -54
- package/dist/DisTube.d.ts.map +0 -1
- package/dist/DisTube.js +0 -279
- package/dist/DisTube.js.map +0 -1
- package/dist/constant.d.ts +0 -27
- package/dist/constant.d.ts.map +0 -1
- package/dist/constant.js +0 -47
- package/dist/constant.js.map +0 -1
- package/dist/core/DisTubeBase.d.ts +0 -14
- package/dist/core/DisTubeBase.d.ts.map +0 -1
- package/dist/core/DisTubeBase.js +0 -31
- package/dist/core/DisTubeBase.js.map +0 -1
- package/dist/core/DisTubeHandler.d.ts +0 -27
- package/dist/core/DisTubeHandler.d.ts.map +0 -1
- package/dist/core/DisTubeHandler.js +0 -230
- package/dist/core/DisTubeHandler.js.map +0 -1
- package/dist/core/DisTubeOptions.d.ts +0 -23
- package/dist/core/DisTubeOptions.d.ts.map +0 -1
- package/dist/core/DisTubeOptions.js +0 -90
- package/dist/core/DisTubeOptions.js.map +0 -1
- package/dist/core/DisTubeStream.d.ts +0 -19
- package/dist/core/DisTubeStream.d.ts.map +0 -1
- package/dist/core/DisTubeStream.js +0 -72
- package/dist/core/DisTubeStream.js.map +0 -1
- package/dist/core/index.d.ts +0 -7
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -19
- package/dist/core/index.js.map +0 -1
- package/dist/core/manager/BaseManager.d.ts +0 -7
- package/dist/core/manager/BaseManager.d.ts.map +0 -1
- package/dist/core/manager/BaseManager.js +0 -16
- package/dist/core/manager/BaseManager.js.map +0 -1
- package/dist/core/manager/FilterManager.d.ts +0 -16
- package/dist/core/manager/FilterManager.d.ts.map +0 -1
- package/dist/core/manager/FilterManager.js +0 -88
- package/dist/core/manager/FilterManager.js.map +0 -1
- package/dist/core/manager/GuildIdManager.d.ts +0 -9
- package/dist/core/manager/GuildIdManager.d.ts.map +0 -1
- package/dist/core/manager/GuildIdManager.js +0 -25
- package/dist/core/manager/GuildIdManager.js.map +0 -1
- package/dist/core/manager/QueueManager.d.ts +0 -11
- package/dist/core/manager/QueueManager.d.ts.map +0 -1
- package/dist/core/manager/QueueManager.js +0 -172
- package/dist/core/manager/QueueManager.js.map +0 -1
- package/dist/core/manager/index.d.ts +0 -5
- package/dist/core/manager/index.d.ts.map +0 -1
- package/dist/core/manager/index.js +0 -17
- package/dist/core/manager/index.js.map +0 -1
- package/dist/core/voice/DisTubeVoice.d.ts +0 -32
- package/dist/core/voice/DisTubeVoice.d.ts.map +0 -1
- package/dist/core/voice/DisTubeVoice.js +0 -190
- package/dist/core/voice/DisTubeVoice.js.map +0 -1
- package/dist/core/voice/DisTubeVoiceManager.d.ts +0 -10
- package/dist/core/voice/DisTubeVoiceManager.d.ts.map +0 -1
- package/dist/core/voice/DisTubeVoiceManager.js +0 -36
- package/dist/core/voice/DisTubeVoiceManager.js.map +0 -1
- package/dist/core/voice/index.d.ts +0 -3
- package/dist/core/voice/index.d.ts.map +0 -1
- package/dist/core/voice/index.js +0 -15
- package/dist/core/voice/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/plugin/http.d.ts +0 -10
- package/dist/plugin/http.d.ts.map +0 -1
- package/dist/plugin/http.js +0 -18
- package/dist/plugin/http.js.map +0 -1
- package/dist/plugin/https.d.ts +0 -19
- package/dist/plugin/https.d.ts.map +0 -1
- package/dist/plugin/https.js +0 -47
- package/dist/plugin/https.js.map +0 -1
- package/dist/plugin/index.d.ts +0 -3
- package/dist/plugin/index.d.ts.map +0 -1
- package/dist/plugin/index.js +0 -15
- package/dist/plugin/index.js.map +0 -1
- package/dist/struct/CustomPlugin.d.ts +0 -10
- package/dist/struct/CustomPlugin.d.ts.map +0 -1
- package/dist/struct/CustomPlugin.js +0 -16
- package/dist/struct/CustomPlugin.js.map +0 -1
- package/dist/struct/DisTubeError.d.ts +0 -55
- package/dist/struct/DisTubeError.d.ts.map +0 -1
- package/dist/struct/DisTubeError.js +0 -64
- package/dist/struct/DisTubeError.js.map +0 -1
- package/dist/struct/ExtractorPlugin.d.ts +0 -13
- package/dist/struct/ExtractorPlugin.d.ts.map +0 -1
- package/dist/struct/ExtractorPlugin.js +0 -16
- package/dist/struct/ExtractorPlugin.js.map +0 -1
- package/dist/struct/Playlist.d.ts +0 -25
- package/dist/struct/Playlist.d.ts.map +0 -1
- package/dist/struct/Playlist.js +0 -77
- package/dist/struct/Playlist.js.map +0 -1
- package/dist/struct/Plugin.d.ts +0 -17
- package/dist/struct/Plugin.d.ts.map +0 -1
- package/dist/struct/Plugin.js +0 -37
- package/dist/struct/Plugin.js.map +0 -1
- package/dist/struct/Queue.d.ts +0 -49
- package/dist/struct/Queue.d.ts.map +0 -1
- package/dist/struct/Queue.js +0 -272
- package/dist/struct/Queue.js.map +0 -1
- package/dist/struct/SearchResult.d.ts +0 -19
- package/dist/struct/SearchResult.d.ts.map +0 -1
- package/dist/struct/SearchResult.js +0 -30
- package/dist/struct/SearchResult.js.map +0 -1
- package/dist/struct/Song.d.ts +0 -43
- package/dist/struct/Song.d.ts.map +0 -1
- package/dist/struct/Song.js +0 -138
- package/dist/struct/Song.js.map +0 -1
- package/dist/struct/TaskQueue.d.ts +0 -8
- package/dist/struct/TaskQueue.d.ts.map +0 -1
- package/dist/struct/TaskQueue.js +0 -39
- package/dist/struct/TaskQueue.js.map +0 -1
- package/dist/struct/index.d.ts +0 -10
- package/dist/struct/index.d.ts.map +0 -1
- package/dist/struct/index.js +0 -22
- package/dist/struct/index.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/type.d.ts +0 -104
- package/dist/type.d.ts.map +0 -1
- package/dist/type.js +0 -3
- package/dist/type.js.map +0 -1
- package/dist/util.d.ts +0 -22
- package/dist/util.d.ts.map +0 -1
- package/dist/util.js +0 -189
- package/dist/util.js.map +0 -1
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { Playlist, Video } from "@distube/ytsr";
|
|
2
|
-
export declare class SearchResult {
|
|
3
|
-
source: "youtube";
|
|
4
|
-
type: "video" | "playlist";
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
url: string;
|
|
8
|
-
views?: number;
|
|
9
|
-
isLive?: boolean;
|
|
10
|
-
duration?: number;
|
|
11
|
-
formattedDuration?: string;
|
|
12
|
-
thumbnail?: string;
|
|
13
|
-
uploader: {
|
|
14
|
-
name?: string;
|
|
15
|
-
url?: string;
|
|
16
|
-
};
|
|
17
|
-
constructor(info: Video | Playlist);
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=SearchResult.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SearchResult.d.ts","sourceRoot":"","sources":["../../src/struct/SearchResult.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGrD,qBAAa,YAAY;IACvB,MAAM,EAAE,SAAS,CAAC;IAClB,IAAI,EAAE,OAAO,GAAG,UAAU,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,QAAQ,EAAE;QAER,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;gBAKU,IAAI,EAAE,KAAK,GAAG,QAAQ;CA+DnC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SearchResult = void 0;
|
|
4
|
-
const __1 = require("..");
|
|
5
|
-
class SearchResult {
|
|
6
|
-
constructor(info) {
|
|
7
|
-
this.source = "youtube";
|
|
8
|
-
this.type = info.type;
|
|
9
|
-
this.id = info.id;
|
|
10
|
-
this.name = info.name;
|
|
11
|
-
this.url = info.url;
|
|
12
|
-
if (this.type === "video") {
|
|
13
|
-
info = info;
|
|
14
|
-
this.views = info.views;
|
|
15
|
-
this.isLive = info.isLive;
|
|
16
|
-
this.duration = this.isLive ? 0 : (0, __1.toSecond)(info.duration);
|
|
17
|
-
this.formattedDuration = this.isLive ? "Live" : (0, __1.formatDuration)(this.duration);
|
|
18
|
-
this.thumbnail = info.thumbnail;
|
|
19
|
-
}
|
|
20
|
-
else if (this.type !== "playlist") {
|
|
21
|
-
throw new __1.DisTubeError("INVALID_TYPE", ["video", "playlist"], this.type, "SearchResult.type");
|
|
22
|
-
}
|
|
23
|
-
this.uploader = {
|
|
24
|
-
name: (info.author || info.owner)?.name,
|
|
25
|
-
url: (info.author || info.owner)?.url,
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.SearchResult = SearchResult;
|
|
30
|
-
//# sourceMappingURL=SearchResult.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SearchResult.js","sourceRoot":"","sources":["../../src/struct/SearchResult.ts"],"names":[],"mappings":";;;AAAA,0BAA4D;AAI5D,MAAa,YAAY;IAsBvB,YAAY,IAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;QAKxB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QAKtB,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QAKlB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QAKtB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;QACpB,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;YACzB,IAAI,GAAG,IAAa,CAAC;YAKrB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;YAKxB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;YAK1B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,YAAQ,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAK1D,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAA,kBAAc,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAK9E,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;SACjC;aAAM,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE;YACnC,MAAM,IAAI,gBAAY,CAAC,cAAc,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC;SAC/F;QAOD,IAAI,CAAC,QAAQ,GAAG;YACd,IAAI,EAAE,CAAE,IAAc,CAAC,MAAM,IAAK,IAAiB,CAAC,KAAK,CAAC,EAAE,IAAI;YAChE,GAAG,EAAE,CAAE,IAAc,CAAC,MAAM,IAAK,IAAiB,CAAC,KAAK,CAAC,EAAE,GAAG;SAC/D,CAAC;IACJ,CAAC;CACF;AArFD,oCAqFC","sourcesContent":["import { DisTubeError, formatDuration, toSecond } from \"..\";\nimport type { Playlist, Video } from \"@distube/ytsr\";\n\n/** Class representing a search result. */\nexport class SearchResult {\n source: \"youtube\";\n type: \"video\" | \"playlist\";\n id: string;\n name: string;\n url: string;\n views?: number;\n isLive?: boolean;\n duration?: number;\n formattedDuration?: string;\n thumbnail?: string;\n /** Video or playlist uploader */\n uploader: {\n /** Uploader name */\n name?: string;\n /** Uploader url */\n url?: string;\n };\n /**\n * Create a search result\n * @param {Object} info ytsr result\n */\n constructor(info: Video | Playlist) {\n this.source = \"youtube\";\n /**\n * Type of SearchResult (`video` or `playlist`)\n * @type {string}\n */\n this.type = info.type;\n /**\n * YouTube video or playlist id\n * @type {string}\n */\n this.id = info.id;\n /**\n * Video or playlist title.\n * @type {string}\n */\n this.name = info.name;\n /**\n * Video or playlist URL.\n * @type {string}\n */\n this.url = info.url;\n if (this.type === \"video\") {\n info = info as Video;\n /**\n * [Video only] Video or playlist views count\n * @type {number}\n */\n this.views = info.views;\n /**\n * [Video only] Indicates if the video is an active live.\n * @type {boolean?}\n */\n this.isLive = info.isLive;\n /**\n * [Video only] Video duration.\n * @type {number}\n */\n this.duration = this.isLive ? 0 : toSecond(info.duration);\n /**\n * [Video only] Formatted duration string `hh:mm:ss` or `mm:ss`.\n * @type {string}\n */\n this.formattedDuration = this.isLive ? \"Live\" : formatDuration(this.duration);\n /**\n * [Video only] Video thumbnail.\n * @type {string?}\n */\n this.thumbnail = info.thumbnail;\n } else if (this.type !== \"playlist\") {\n throw new DisTubeError(\"INVALID_TYPE\", [\"video\", \"playlist\"], this.type, \"SearchResult.type\");\n }\n /**\n * Song uploader\n * @type {Object}\n * @prop {string?} name Uploader name\n * @prop {string?} url Uploader url\n */\n this.uploader = {\n name: ((info as Video).author || (info as Playlist).owner)?.name,\n url: ((info as Video).author || (info as Playlist).owner)?.url,\n };\n }\n}\n"]}
|
package/dist/struct/Song.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Playlist } from "./Playlist";
|
|
2
|
-
import type ytdl from "@distube/ytdl-core";
|
|
3
|
-
import type { GuildMember } from "discord.js";
|
|
4
|
-
import type { Chapter, OtherSongInfo, RelatedSong, SearchResult } from "..";
|
|
5
|
-
export declare class Song<T = unknown> {
|
|
6
|
-
#private;
|
|
7
|
-
source: string;
|
|
8
|
-
formats?: ytdl.videoFormat[];
|
|
9
|
-
id?: string;
|
|
10
|
-
name?: string;
|
|
11
|
-
isLive: boolean;
|
|
12
|
-
duration: number;
|
|
13
|
-
formattedDuration?: string;
|
|
14
|
-
url: string;
|
|
15
|
-
streamURL?: string;
|
|
16
|
-
thumbnail?: string;
|
|
17
|
-
related: RelatedSong[];
|
|
18
|
-
views: number;
|
|
19
|
-
likes: number;
|
|
20
|
-
dislikes: number;
|
|
21
|
-
uploader: {
|
|
22
|
-
name?: string;
|
|
23
|
-
url?: string;
|
|
24
|
-
};
|
|
25
|
-
age_restricted: boolean;
|
|
26
|
-
chapters: Chapter[];
|
|
27
|
-
reposts: number;
|
|
28
|
-
constructor(info: ytdl.videoInfo | SearchResult | OtherSongInfo | ytdl.relatedVideo | RelatedSong, options?: {
|
|
29
|
-
member?: GuildMember;
|
|
30
|
-
source?: string;
|
|
31
|
-
metadata?: T;
|
|
32
|
-
});
|
|
33
|
-
_patchYouTube(i: ytdl.videoInfo | SearchResult): void;
|
|
34
|
-
_patchOther(info: OtherSongInfo): void;
|
|
35
|
-
get playlist(): Playlist | undefined;
|
|
36
|
-
set playlist(playlist: Playlist | undefined);
|
|
37
|
-
get member(): GuildMember | undefined;
|
|
38
|
-
set member(member: GuildMember | undefined);
|
|
39
|
-
get user(): import("discord.js").User | undefined;
|
|
40
|
-
get metadata(): T;
|
|
41
|
-
set metadata(metadata: T);
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=Song.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Song.d.ts","sourceRoot":"","sources":["../../src/struct/Song.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,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I,MAAM,IAIS,WAAW,GAAG,SAAS,CAFzC;IAED,IAAI,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,SAAS,EAEzC;IAMD,IAAI,IAAI,0CAEP;IAED,IAAI,QAAQ,IAIW,CAAC,CAFvB;IAED,IAAI,QAAQ,CAAC,QAAQ,EAAE,CAAC,EAEvB;CACF"}
|
package/dist/struct/Song.js
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
-
};
|
|
7
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
8
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
11
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
12
|
-
};
|
|
13
|
-
var _Song_metadata, _Song_member, _Song_playlist;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.Song = void 0;
|
|
16
|
-
const Playlist_1 = require("./Playlist");
|
|
17
|
-
const __1 = require("..");
|
|
18
|
-
class Song {
|
|
19
|
-
constructor(info, options = {}) {
|
|
20
|
-
_Song_metadata.set(this, void 0);
|
|
21
|
-
_Song_member.set(this, void 0);
|
|
22
|
-
_Song_playlist.set(this, void 0);
|
|
23
|
-
const { member, source, metadata } = { source: "youtube", ...options };
|
|
24
|
-
if (typeof source !== "string" ||
|
|
25
|
-
(info.src && typeof info.src !== "string")) {
|
|
26
|
-
throw new __1.DisTubeError("INVALID_TYPE", "string", source, "source");
|
|
27
|
-
}
|
|
28
|
-
this.source = (info?.src || source).toLowerCase();
|
|
29
|
-
this.metadata = metadata;
|
|
30
|
-
this.member = member;
|
|
31
|
-
if (this.source === "youtube") {
|
|
32
|
-
this._patchYouTube(info);
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
this._patchOther(info);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
_patchYouTube(i) {
|
|
39
|
-
const info = i;
|
|
40
|
-
if (info.full === true) {
|
|
41
|
-
this.formats = info.formats;
|
|
42
|
-
const err = require("@distube/ytdl-core/lib/utils").playError(info.player_response, [
|
|
43
|
-
"UNPLAYABLE",
|
|
44
|
-
"LIVE_STREAM_OFFLINE",
|
|
45
|
-
"LOGIN_REQUIRED",
|
|
46
|
-
]);
|
|
47
|
-
if (err)
|
|
48
|
-
throw err;
|
|
49
|
-
if (!info.formats?.length)
|
|
50
|
-
throw new __1.DisTubeError("UNAVAILABLE_VIDEO");
|
|
51
|
-
}
|
|
52
|
-
const details = info.videoDetails || info;
|
|
53
|
-
this.id = details.videoId || details.id;
|
|
54
|
-
this.name = details.title || details.name;
|
|
55
|
-
this.isLive = !!details.isLive;
|
|
56
|
-
this.duration = this.isLive ? 0 : (0, __1.toSecond)(details.lengthSeconds || details.length_seconds || details.duration);
|
|
57
|
-
this.formattedDuration = this.isLive ? "Live" : (0, __1.formatDuration)(this.duration);
|
|
58
|
-
this.url = `https://www.youtube.com/watch?v=${this.id}`;
|
|
59
|
-
this.streamURL = undefined;
|
|
60
|
-
this.thumbnail =
|
|
61
|
-
details.thumbnails?.sort((a, b) => b.width - a.width)?.[0]?.url ||
|
|
62
|
-
details.thumbnail?.url ||
|
|
63
|
-
details.thumbnail;
|
|
64
|
-
this.related = info?.related_videos || details.related || [];
|
|
65
|
-
if (!Array.isArray(this.related))
|
|
66
|
-
throw new __1.DisTubeError("INVALID_TYPE", "Array", this.related, "Song#related");
|
|
67
|
-
this.related = this.related.map((v) => new Song(v, { source: this.source, metadata: this.metadata }));
|
|
68
|
-
this.views = (0, __1.parseNumber)(details.viewCount || details.view_count || details.views);
|
|
69
|
-
this.likes = (0, __1.parseNumber)(details.likes);
|
|
70
|
-
this.dislikes = (0, __1.parseNumber)(details.dislikes);
|
|
71
|
-
this.uploader = {
|
|
72
|
-
name: info.uploader?.name || details.author?.name,
|
|
73
|
-
url: info.uploader?.url || details.author?.channel_url || details.author?.url,
|
|
74
|
-
};
|
|
75
|
-
this.age_restricted = !!details.age_restricted;
|
|
76
|
-
this.chapters = details.chapters || [];
|
|
77
|
-
this.reposts = 0;
|
|
78
|
-
}
|
|
79
|
-
_patchOther(info) {
|
|
80
|
-
this.id = info.id;
|
|
81
|
-
this.name = info.title || info.name;
|
|
82
|
-
this.isLive = Boolean(info.is_live || info.isLive);
|
|
83
|
-
this.duration = this.isLive ? 0 : (0, __1.toSecond)(info._duration_raw || info.duration);
|
|
84
|
-
this.formattedDuration = this.isLive ? "Live" : (0, __1.formatDuration)(this.duration);
|
|
85
|
-
this.url = info.webpage_url || info.url;
|
|
86
|
-
this.thumbnail = info.thumbnail;
|
|
87
|
-
this.related = info.related || [];
|
|
88
|
-
if (!Array.isArray(this.related))
|
|
89
|
-
throw new __1.DisTubeError("INVALID_TYPE", "Array", this.related, "Song#related");
|
|
90
|
-
this.related = this.related.map(i => new Song(i, { source: this.source, metadata: this.metadata }));
|
|
91
|
-
this.views = (0, __1.parseNumber)(info.view_count || info.views);
|
|
92
|
-
this.likes = (0, __1.parseNumber)(info.like_count || info.likes);
|
|
93
|
-
this.dislikes = (0, __1.parseNumber)(info.dislike_count || info.dislikes);
|
|
94
|
-
this.reposts = (0, __1.parseNumber)(info.repost_count || info.reposts);
|
|
95
|
-
if (typeof info.uploader === "string") {
|
|
96
|
-
this.uploader = {
|
|
97
|
-
name: info.uploader,
|
|
98
|
-
url: info.uploader_url,
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
this.uploader = {
|
|
103
|
-
name: info.uploader?.name,
|
|
104
|
-
url: info.uploader?.url,
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
this.age_restricted = info.age_restricted || (!!info.age_limit && (0, __1.parseNumber)(info.age_limit) >= 18);
|
|
108
|
-
this.chapters = info.chapters || [];
|
|
109
|
-
}
|
|
110
|
-
get playlist() {
|
|
111
|
-
return __classPrivateFieldGet(this, _Song_playlist, "f");
|
|
112
|
-
}
|
|
113
|
-
set playlist(playlist) {
|
|
114
|
-
if (!(playlist instanceof Playlist_1.Playlist))
|
|
115
|
-
throw new __1.DisTubeError("INVALID_TYPE", "Playlist", playlist, "Song#playlist");
|
|
116
|
-
__classPrivateFieldSet(this, _Song_playlist, playlist, "f");
|
|
117
|
-
this.member = playlist.member;
|
|
118
|
-
}
|
|
119
|
-
get member() {
|
|
120
|
-
return __classPrivateFieldGet(this, _Song_member, "f");
|
|
121
|
-
}
|
|
122
|
-
set member(member) {
|
|
123
|
-
if ((0, __1.isMemberInstance)(member))
|
|
124
|
-
__classPrivateFieldSet(this, _Song_member, member, "f");
|
|
125
|
-
}
|
|
126
|
-
get user() {
|
|
127
|
-
return this.member?.user;
|
|
128
|
-
}
|
|
129
|
-
get metadata() {
|
|
130
|
-
return __classPrivateFieldGet(this, _Song_metadata, "f");
|
|
131
|
-
}
|
|
132
|
-
set metadata(metadata) {
|
|
133
|
-
__classPrivateFieldSet(this, _Song_metadata, metadata, "f");
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
exports.Song = Song;
|
|
137
|
-
_Song_metadata = new WeakMap(), _Song_member = new WeakMap(), _Song_playlist = new WeakMap();
|
|
138
|
-
//# sourceMappingURL=Song.js.map
|
package/dist/struct/Song.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":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A+B;QACxC,IAAI,IAAA,oBAAgB,EAAC,MAAM,CAAC;YAAE,uBAAA,IAAI,gBAAW,MAAM,MAAA,CAAC;IACtD,CAAC;IAMD,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC;IAC3B,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,uBAAA,IAAI,sBAAU,CAAC;IACxB,CAAC;IAED,IAAI,QAAQ,CAAC,QAAW;QACtB,uBAAA,IAAI,kBAAa,QAAQ,MAAA,CAAC;IAC5B,CAAC;CACF;AArQD,oBAqQC","sourcesContent":["import { Playlist } from \"./Playlist\";\nimport { DisTubeError, formatDuration, isMemberInstance, parseNumber, toSecond } from \"..\";\nimport type ytdl from \"@distube/ytdl-core\";\nimport type { GuildMember } from \"discord.js\";\nimport type { Chapter, OtherSongInfo, RelatedSong, SearchResult } from \"..\";\n\n/**\n * Class representing a song.\n *\n * <info>If {@link Song} is added from a YouTube {@link SearchResult} or {@link Playlist},\n * some info will be missing to save your resources. It will be filled when emitting {@link DisTube#playSong} event.\n *\n * Missing info: {@link Song#likes}, {@link Song#dislikes}, {@link Song#streamURL},\n * {@link Song#related}, {@link Song#chapters}, {@link Song#age_restricted}</info>\n * @template T - The type for the metadata (if any) of the song\n */\nexport class Song<T = unknown> {\n source!: string;\n #metadata!: T;\n formats?: ytdl.videoFormat[];\n #member?: GuildMember;\n id?: string;\n name?: string;\n isLive!: boolean;\n duration!: number;\n formattedDuration?: string;\n url!: string;\n streamURL?: string;\n thumbnail?: string;\n related!: RelatedSong[];\n views!: number;\n likes!: number;\n dislikes!: number;\n uploader!: {\n name?: string;\n url?: string;\n };\n age_restricted!: boolean;\n chapters!: Chapter[];\n reposts!: number;\n #playlist?: Playlist;\n /**\n * Create a Song\n * @param {ytdl.videoInfo|SearchResult|OtherSongInfo} info Raw info\n * @param {Object} [options] Optional options\n * @param {Discord.GuildMember} [options.member] Requested user\n * @param {string} [options.source=\"youtube\"] Song source\n * @param {T} [options.metadata] Song metadata\n */\n constructor(\n info: ytdl.videoInfo | SearchResult | OtherSongInfo | ytdl.relatedVideo | RelatedSong,\n options: {\n member?: GuildMember;\n source?: string;\n metadata?: T;\n } = {},\n ) {\n const { member, source, metadata } = { source: \"youtube\", ...options };\n\n if (\n typeof source !== \"string\" ||\n ((info as OtherSongInfo).src && typeof (info as OtherSongInfo).src !== \"string\")\n ) {\n throw new DisTubeError(\"INVALID_TYPE\", \"string\", source, \"source\");\n }\n /**\n * The source of the song\n * @type {string}\n */\n this.source = ((info as OtherSongInfo)?.src || source).toLowerCase();\n /**\n * Optional metadata that can be used to identify the song.\n * @type {T}\n */\n this.metadata = metadata as T;\n this.member = member;\n if (this.source === \"youtube\") {\n this._patchYouTube(info as ytdl.videoInfo);\n } else {\n this._patchOther(info as OtherSongInfo);\n }\n }\n\n _patchYouTube(i: ytdl.videoInfo | SearchResult) {\n // FIXME\n const info = i as any;\n if (info.full === true) {\n /**\n * Stream formats (Available if the song is from YouTube and playing)\n * @type {ytdl.videoFormat[]?}\n * @private\n */\n this.formats = info.formats;\n // eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports\n const err = require(\"@distube/ytdl-core/lib/utils\").playError(info.player_response, [\n \"UNPLAYABLE\",\n \"LIVE_STREAM_OFFLINE\",\n \"LOGIN_REQUIRED\",\n ]);\n if (err) throw err;\n\n if (!info.formats?.length) throw new DisTubeError(\"UNAVAILABLE_VIDEO\");\n }\n const details = info.videoDetails || info;\n /**\n * YouTube video id\n * @type {string?}\n */\n this.id = details.videoId || details.id;\n /**\n * Song name.\n * @type {string?}\n */\n this.name = details.title || details.name;\n /**\n * Indicates if the video is an active live.\n * @type {boolean}\n */\n this.isLive = !!details.isLive;\n /**\n * Song duration.\n * @type {number}\n */\n this.duration = this.isLive ? 0 : toSecond(details.lengthSeconds || details.length_seconds || details.duration);\n /**\n * Formatted duration string (`hh:mm:ss`, `mm:ss` or `Live`).\n * @type {string?}\n */\n this.formattedDuration = this.isLive ? \"Live\" : formatDuration(this.duration);\n /**\n * Song URL.\n * @type {string}\n */\n this.url = `https://www.youtube.com/watch?v=${this.id}`;\n /**\n * Stream / Download URL (Available if the song is playing)\n * @type {string?}\n */\n this.streamURL = undefined;\n /**\n * Song thumbnail.\n * @type {string?}\n */\n this.thumbnail =\n details.thumbnails?.sort((a: any, b: any) => b.width - a.width)?.[0]?.url ||\n details.thumbnail?.url ||\n details.thumbnail;\n /**\n * Related songs (without {@link Song#related} properties)\n * @type {Song[]}\n */\n this.related = info?.related_videos || details.related || [];\n if (!Array.isArray(this.related)) throw new DisTubeError(\"INVALID_TYPE\", \"Array\", this.related, \"Song#related\");\n this.related = this.related.map((v: any) => new Song(v, { source: this.source, metadata: this.metadata }));\n /**\n * Song views count\n * @type {number}\n */\n this.views = parseNumber(details.viewCount || details.view_count || details.views);\n /**\n * Song like count\n * @type {number}\n */\n this.likes = parseNumber(details.likes);\n /**\n * Song dislike count\n * @type {number}\n */\n this.dislikes = parseNumber(details.dislikes);\n /**\n * Song uploader\n * @type {Object}\n * @prop {string?} name Uploader name\n * @prop {string?} url Uploader url\n */\n this.uploader = {\n name: info.uploader?.name || details.author?.name,\n url: info.uploader?.url || details.author?.channel_url || details.author?.url,\n };\n /**\n * Whether or not an age-restricted content\n * @type {boolean}\n */\n this.age_restricted = !!details.age_restricted;\n /**\n * @typedef {Object} Chapter\n * @prop {string} title Chapter title\n * @prop {number} start_time Chapter start time in seconds\n */\n /**\n * Chapters information (YouTube only)\n * @type {Chapter[]}\n */\n this.chapters = details.chapters || [];\n /**\n * Song repost count\n * @type {number}\n */\n this.reposts = 0;\n }\n\n /**\n * Patch data from other source\n * @param {OtherSongInfo} info Video info\n * @private\n */\n _patchOther(info: OtherSongInfo) {\n this.id = info.id;\n this.name = info.title || info.name;\n this.isLive = Boolean(info.is_live || info.isLive);\n this.duration = this.isLive ? 0 : toSecond(info._duration_raw || info.duration);\n this.formattedDuration = this.isLive ? \"Live\" : formatDuration(this.duration);\n this.url = info.webpage_url || info.url;\n this.thumbnail = info.thumbnail;\n this.related = info.related || [];\n if (!Array.isArray(this.related)) throw new DisTubeError(\"INVALID_TYPE\", \"Array\", this.related, \"Song#related\");\n this.related = this.related.map(i => new Song(i, { source: this.source, metadata: this.metadata }));\n this.views = parseNumber(info.view_count || info.views);\n this.likes = parseNumber(info.like_count || info.likes);\n this.dislikes = parseNumber(info.dislike_count || info.dislikes);\n this.reposts = parseNumber(info.repost_count || info.reposts);\n if (typeof info.uploader === \"string\") {\n this.uploader = {\n name: info.uploader,\n url: info.uploader_url,\n };\n } else {\n this.uploader = {\n name: info.uploader?.name,\n url: info.uploader?.url,\n };\n }\n this.age_restricted = info.age_restricted || (!!info.age_limit && parseNumber(info.age_limit) >= 18);\n this.chapters = info.chapters || [];\n }\n\n /**\n * The playlist added this song\n * @type {Playlist?}\n */\n get playlist() {\n return this.#playlist;\n }\n\n set playlist(playlist: Playlist | undefined) {\n if (!(playlist instanceof Playlist)) throw new DisTubeError(\"INVALID_TYPE\", \"Playlist\", playlist, \"Song#playlist\");\n this.#playlist = playlist;\n this.member = playlist.member;\n }\n\n /**\n * User requested.\n * @type {Discord.GuildMember?}\n */\n get member() {\n return this.#member;\n }\n\n set member(member: GuildMember | undefined) {\n if (isMemberInstance(member)) this.#member = member;\n }\n\n /**\n * User requested.\n * @type {Discord.User?}\n */\n get user() {\n return this.member?.user;\n }\n\n get metadata() {\n return this.#metadata;\n }\n\n set metadata(metadata: T) {\n this.#metadata = metadata;\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TaskQueue.d.ts","sourceRoot":"","sources":["../../src/struct/TaskQueue.ts"],"names":[],"mappings":"AAgBA,qBAAa,SAAS;;IAab,OAAO,CAAC,WAAW,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAS3C,OAAO,IAAI,IAAI;IAQtB,IAAW,SAAS,IAAI,MAAM,CAE7B;IAMD,IAAW,cAAc,IAAI,OAAO,CAEnC;CACF"}
|
package/dist/struct/TaskQueue.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
-
};
|
|
7
|
-
var _TaskQueue_tasks;
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.TaskQueue = void 0;
|
|
10
|
-
class Task {
|
|
11
|
-
constructor(resolveInfo) {
|
|
12
|
-
this.resolveInfo = resolveInfo;
|
|
13
|
-
this.promise = new Promise(res => {
|
|
14
|
-
this.resolve = res;
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
class TaskQueue {
|
|
19
|
-
constructor() {
|
|
20
|
-
_TaskQueue_tasks.set(this, []);
|
|
21
|
-
}
|
|
22
|
-
queuing(resolveInfo = false) {
|
|
23
|
-
const next = this.remaining ? __classPrivateFieldGet(this, _TaskQueue_tasks, "f")[__classPrivateFieldGet(this, _TaskQueue_tasks, "f").length - 1].promise : Promise.resolve();
|
|
24
|
-
__classPrivateFieldGet(this, _TaskQueue_tasks, "f").push(new Task(resolveInfo));
|
|
25
|
-
return next;
|
|
26
|
-
}
|
|
27
|
-
resolve() {
|
|
28
|
-
__classPrivateFieldGet(this, _TaskQueue_tasks, "f").shift()?.resolve();
|
|
29
|
-
}
|
|
30
|
-
get remaining() {
|
|
31
|
-
return __classPrivateFieldGet(this, _TaskQueue_tasks, "f").length;
|
|
32
|
-
}
|
|
33
|
-
get hasResolveTask() {
|
|
34
|
-
return !!__classPrivateFieldGet(this, _TaskQueue_tasks, "f").find(t => t.resolveInfo);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.TaskQueue = TaskQueue;
|
|
38
|
-
_TaskQueue_tasks = new WeakMap();
|
|
39
|
-
//# sourceMappingURL=TaskQueue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TaskQueue.js","sourceRoot":"","sources":["../../src/struct/TaskQueue.ts"],"names":[],"mappings":";;;;;;;;;AAAA,MAAM,IAAI;IAIR,YAAY,WAAoB;QAC9B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAO,GAAG,CAAC,EAAE;YACrC,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC;QACrB,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAMD,MAAa,SAAS;IAAtB;QAME,2BAAiB,EAAE,EAAC;IAmCtB,CAAC;IA5BQ,OAAO,CAAC,WAAW,GAAG,KAAK;QAChC,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,uBAAA,IAAI,wBAAO,CAAC,uBAAA,IAAI,wBAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;QAC9F,uBAAA,IAAI,wBAAO,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QACxC,OAAO,IAAI,CAAC;IACd,CAAC;IAKM,OAAO;QACZ,uBAAA,IAAI,wBAAO,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC;IACjC,CAAC;IAMD,IAAW,SAAS;QAClB,OAAO,uBAAA,IAAI,wBAAO,CAAC,MAAM,CAAC;IAC5B,CAAC;IAMD,IAAW,cAAc;QACvB,OAAO,CAAC,CAAC,uBAAA,IAAI,wBAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;IAChD,CAAC;CACF;AAzCD,8BAyCC","sourcesContent":["class Task {\n resolve!: () => void;\n promise: Promise<void>;\n resolveInfo: boolean;\n constructor(resolveInfo: boolean) {\n this.resolveInfo = resolveInfo;\n this.promise = new Promise<void>(res => {\n this.resolve = res;\n });\n }\n}\n\n/**\n * Task queuing system\n * @private\n */\nexport class TaskQueue {\n /**\n * The task array\n * @type {Task[]}\n * @private\n */\n #tasks: Task[] = [];\n\n /**\n * Waits for last task finished and queues a new task\n * @param {boolean} [resolveInfo=false] Whether the task is a resolving info task\n * @returns {Promise<void>}\n */\n public queuing(resolveInfo = false): Promise<void> {\n const next = this.remaining ? this.#tasks[this.#tasks.length - 1].promise : Promise.resolve();\n this.#tasks.push(new Task(resolveInfo));\n return next;\n }\n\n /**\n * Removes the finished task and processes the next task\n */\n public resolve(): void {\n this.#tasks.shift()?.resolve();\n }\n\n /**\n * The remaining number of tasks\n * @type {number}\n */\n public get remaining(): number {\n return this.#tasks.length;\n }\n\n /**\n * Whether or not having a resolving info task\n * @type {boolean}\n */\n public get hasResolveTask(): boolean {\n return !!this.#tasks.find(t => t.resolveInfo);\n }\n}\n"]}
|
package/dist/struct/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from "./DisTubeError";
|
|
2
|
-
export * from "./TaskQueue";
|
|
3
|
-
export * from "./Playlist";
|
|
4
|
-
export * from "./SearchResult";
|
|
5
|
-
export * from "./Song";
|
|
6
|
-
export * from "./Queue";
|
|
7
|
-
export * from "./Plugin";
|
|
8
|
-
export * from "./CustomPlugin";
|
|
9
|
-
export * from "./ExtractorPlugin";
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/struct/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC"}
|
package/dist/struct/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./DisTubeError"), exports);
|
|
14
|
-
__exportStar(require("./TaskQueue"), exports);
|
|
15
|
-
__exportStar(require("./Playlist"), exports);
|
|
16
|
-
__exportStar(require("./SearchResult"), exports);
|
|
17
|
-
__exportStar(require("./Song"), exports);
|
|
18
|
-
__exportStar(require("./Queue"), exports);
|
|
19
|
-
__exportStar(require("./Plugin"), exports);
|
|
20
|
-
__exportStar(require("./CustomPlugin"), exports);
|
|
21
|
-
__exportStar(require("./ExtractorPlugin"), exports);
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
package/dist/struct/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/struct/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8CAA4B;AAC5B,6CAA2B;AAC3B,iDAA+B;AAC/B,yCAAuB;AACvB,0CAAwB;AACxB,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC","sourcesContent":["export * from \"./DisTubeError\";\nexport * from \"./TaskQueue\";\nexport * from \"./Playlist\";\nexport * from \"./SearchResult\";\nexport * from \"./Song\";\nexport * from \"./Queue\";\nexport * from \"./Plugin\";\nexport * from \"./CustomPlugin\";\nexport * from \"./ExtractorPlugin\";\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/@distube/ytpl/typings/index.d.ts","../node_modules/@distube/ytsr/typings/index.d.ts","../node_modules/@distube/ytdl-core/typings/index.d.ts","../node_modules/discord-api-types/globals.d.ts","../node_modules/discord-api-types/payloads/v9/permissions.d.ts","../node_modules/discord-api-types/payloads/v9/emoji.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/internals.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/shared.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/base.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/string.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/integer.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/boolean.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/user.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/role.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/mentionable.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/number.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommand.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/chatInput.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/contextMenu.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/permissions.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/applicationCommands.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/responses.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/base.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/messageComponents.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/ping.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/autocomplete.d.ts","../node_modules/discord-api-types/payloads/v9/interactions.d.ts","../node_modules/discord-api-types/payloads/v9/sticker.d.ts","../node_modules/discord-api-types/payloads/v9/channel.d.ts","../node_modules/discord-api-types/payloads/v9/gateway.d.ts","../node_modules/discord-api-types/payloads/v9/stageInstance.d.ts","../node_modules/discord-api-types/payloads/v9/voice.d.ts","../node_modules/discord-api-types/payloads/v9/guildScheduledEvent.d.ts","../node_modules/discord-api-types/payloads/v9/guild.d.ts","../node_modules/discord-api-types/payloads/v9/user.d.ts","../node_modules/discord-api-types/payloads/v9/teams.d.ts","../node_modules/discord-api-types/payloads/v9/application.d.ts","../node_modules/discord-api-types/payloads/v9/webhook.d.ts","../node_modules/discord-api-types/payloads/v9/auditLog.d.ts","../node_modules/discord-api-types/payloads/v9/invite.d.ts","../node_modules/discord-api-types/payloads/v9/oauth2.d.ts","../node_modules/discord-api-types/rest/common.d.ts","../node_modules/discord-api-types/rest/v9/auditLog.d.ts","../node_modules/discord-api-types/utils/internals.d.ts","../node_modules/discord-api-types/rest/v9/channel.d.ts","../node_modules/discord-api-types/rest/v9/emoji.d.ts","../node_modules/discord-api-types/rest/v9/gateway.d.ts","../node_modules/discord-api-types/rest/v9/guild.d.ts","../node_modules/discord-api-types/rest/v9/guildScheduledEvent.d.ts","../node_modules/discord-api-types/rest/v9/webhook.d.ts","../node_modules/discord-api-types/rest/v9/interactions.d.ts","../node_modules/discord-api-types/rest/v9/invite.d.ts","../node_modules/discord-api-types/rest/v9/oauth2.d.ts","../node_modules/discord-api-types/rest/v9/stageInstance.d.ts","../node_modules/discord-api-types/rest/v9/sticker.d.ts","../node_modules/discord-api-types/rest/v9/template.d.ts","../node_modules/discord-api-types/rest/v9/user.d.ts","../node_modules/discord-api-types/rest/v9/voice.d.ts","../node_modules/discord-api-types/rest/v9/index.d.ts","../node_modules/discord-api-types/payloads/v9/template.d.ts","../node_modules/discord-api-types/payloads/v9/index.d.ts","../node_modules/discord-api-types/gateway/common.d.ts","../node_modules/discord-api-types/gateway/v9.d.ts","../node_modules/discord-api-types/rpc/v9.d.ts","../node_modules/discord-api-types/utils/v9.d.ts","../node_modules/discord-api-types/v9.d.ts","../node_modules/zod/lib/helpers/util.d.ts","../node_modules/zod/lib/ZodError.d.ts","../node_modules/zod/lib/helpers/parseUtil.d.ts","../node_modules/zod/lib/helpers/errorUtil.d.ts","../node_modules/zod/lib/helpers/partialUtil.d.ts","../node_modules/zod/lib/types.d.ts","../node_modules/zod/lib/external.d.ts","../node_modules/zod/lib/index.d.ts","../node_modules/@discordjs/builders/dist/index.d.ts","../node_modules/@discordjs/collection/dist/index.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@types/node-fetch/node_modules/form-data/index.d.ts","../node_modules/@types/node-fetch/externals.d.ts","../node_modules/@types/node-fetch/index.d.ts","../node_modules/@discordjs/rest/dist/lib/handlers/IHandler.d.ts","../node_modules/@discordjs/rest/dist/lib/RequestManager.d.ts","../node_modules/@discordjs/rest/dist/lib/REST.d.ts","../node_modules/@discordjs/rest/dist/lib/utils/constants.d.ts","../node_modules/@discordjs/rest/dist/lib/CDN.d.ts","../node_modules/@discordjs/rest/dist/lib/errors/DiscordAPIError.d.ts","../node_modules/@discordjs/rest/dist/lib/errors/HTTPError.d.ts","../node_modules/@discordjs/rest/dist/lib/errors/RateLimitError.d.ts","../node_modules/@discordjs/rest/dist/index.d.ts","../node_modules/@types/ws/index.d.ts","../node_modules/discord.js/typings/rawDataTypes.d.ts","../node_modules/@sapphire/snowflake/dist/lib/Snowflake.d.ts","../node_modules/@sapphire/snowflake/dist/lib/DiscordSnowflake.d.ts","../node_modules/@sapphire/snowflake/dist/lib/TwitterSnowflake.d.ts","../node_modules/@sapphire/snowflake/dist/index.d.ts","../node_modules/discord.js/typings/index.d.ts","../src/type.ts","../src/constant.ts","../src/struct/DisTubeError.ts","../src/struct/TaskQueue.ts","../src/struct/Playlist.ts","../src/struct/SearchResult.ts","../src/struct/Song.ts","../src/core/DisTubeOptions.ts","../src/core/DisTubeBase.ts","../node_modules/prism-media/typings/opus.d.ts","../node_modules/prism-media/typings/vorbis.d.ts","../node_modules/prism-media/typings/index.d.ts","../node_modules/tiny-typed-emitter/lib/index.d.ts","../node_modules/@discordjs/voice/dist/index.d.ts","../src/core/DisTubeStream.ts","../src/core/manager/BaseManager.ts","../src/core/manager/GuildIdManager.ts","../src/core/manager/QueueManager.ts","../src/core/manager/FilterManager.ts","../src/core/manager/index.ts","../src/core/voice/DisTubeVoice.ts","../src/core/voice/DisTubeVoiceManager.ts","../src/core/voice/index.ts","../src/core/DisTubeHandler.ts","../src/core/index.ts","../src/struct/Queue.ts","../src/struct/Plugin.ts","../src/struct/CustomPlugin.ts","../src/struct/ExtractorPlugin.ts","../src/struct/index.ts","../src/plugin/http.ts","../src/plugin/https.ts","../src/plugin/index.ts","../src/index.ts","../src/util.ts","../src/DisTube.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/jest-diff/build/cleanupSemantic.d.ts","../node_modules/pretty-format/build/types.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/jest-diff/build/types.d.ts","../node_modules/jest-diff/build/diffLines.d.ts","../node_modules/jest-diff/build/printDiffs.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/linkify-it/index.d.ts","../node_modules/@types/mdurl/encode.d.ts","../node_modules/@types/mdurl/decode.d.ts","../node_modules/@types/mdurl/parse.d.ts","../node_modules/@types/mdurl/format.d.ts","../node_modules/@types/mdurl/index.d.ts","../node_modules/@types/markdown-it/lib/common/utils.d.ts","../node_modules/@types/markdown-it/lib/token.d.ts","../node_modules/@types/markdown-it/lib/rules_inline/state_inline.d.ts","../node_modules/@types/markdown-it/lib/helpers/parse_link_label.d.ts","../node_modules/@types/markdown-it/lib/helpers/parse_link_destination.d.ts","../node_modules/@types/markdown-it/lib/helpers/parse_link_title.d.ts","../node_modules/@types/markdown-it/lib/helpers/index.d.ts","../node_modules/@types/markdown-it/lib/ruler.d.ts","../node_modules/@types/markdown-it/lib/rules_block/state_block.d.ts","../node_modules/@types/markdown-it/lib/parser_block.d.ts","../node_modules/@types/markdown-it/lib/rules_core/state_core.d.ts","../node_modules/@types/markdown-it/lib/parser_core.d.ts","../node_modules/@types/markdown-it/lib/parser_inline.d.ts","../node_modules/@types/markdown-it/lib/renderer.d.ts","../node_modules/@types/markdown-it/lib/index.d.ts","../node_modules/@types/markdown-it/index.d.ts","../node_modules/@types/minimist/index.d.ts","../node_modules/@types/normalize-package-data/index.d.ts","../node_modules/@types/parse-json/index.d.ts","../node_modules/@types/prettier/index.d.ts","../node_modules/@types/stack-utils/index.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"e8c9f4e445a489991ca1a4232667de3ac36b07ba75ea335971fbeacf2d26fe67","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"b09ed0465e2c4244a8225c322941182fbd64101dac77c76ea96ffb3797364937","6d6b07e437b620687741ea220c757e794bf218caf4251315b3e56e2e362370e1","4045e7e1708461cebbe1f34edd75fd8d9ce85ec4183dffe9dc4e7fbeca352465","eabab93ca9a786745af72195153280e883d8e36df9829ecf8b2f539824d042be","d3ed0bdc7460d95a90732872f2861a60f064318b8bad8ad4432d1c04e825c3e4","681f35c141c7a6201d5ffc038fbc28e46fb7a8702fc52b29d2d2dc7ca03328c2","cdb9451988aef334a797bc31eed3235d7b471a6e013bd2ccc92fbf89a535f4d7","8cedbf274baeb7b06233ee4adce9da566fc4c496d88b3fc6dbb58e27b7b90f58","f74b7a54220bc565c738b824fdc2f063ca727001ee9f332d5c399bc59071611f","c7f940a988e13a3948197c3448e896087f598a5a4c7814030d1e54332043d1af","55518514e8bff9cebd363d735c3e85ba1c6f7588c9f320dbc1d565086ef2fc48","9f7e239f4945672307c7d4403aa22bfe3d03f438fa072d7f158095f7df724e9f","7c5073d67f4f2546f368fe635573cfe6de977ed82318d01be15cee4c76c81199","7428869b608e55da6957d000ef9af727ec7424ebef7d2accc3901287c588b5e5","ddef4fa1fd835adfae5660c6c98b24b602fbb65db1e2570fa5d9e947ad5cb17f","e7fb389e0c13e2120c9a8c824ddfabe18e56c316e53e66072e8d86e0610791e6","1b1bd699dfd3c316e64d0d40ce6e35265c24d25a18f6a4505904a0cc21f1ff67","8441a2b8098131edeec9b5092ae81903938a8c3ec8871de2502decff35ccda50","7dbf615f4a2003faa46d93052c7abaa635aa541e266090b0b2350f40f3ae3242","9575d7cfbd601fda04531bb7a10dcc68529554c484e93e5f85a39e2101988612","d91ebb09c2ae0cf320b66c42db3811e4cc8a8ebfc63c3b1e0ee0085cf1fa51ef","b044fccf84b0f5c7cd8a1800a2ef0a7b740c062245823ce009265f4db3942623","97e85df57e051301f940bad38a1e521bf4bd5e98da75554223cd30b0126b29f3","7c717290cb697d86874835037c8aab715d9477e7377c2a53198f2093c0addb2a","e285d39bd2590bf6e30dc326b513ffbc6e7ca2d67fcd94f2761e7f54cfa46dfc","d0d504c82b2a5d2bf48b951a5502ac7284ed974e3249a4fd1c795522c11d9a0d","168eef670afa53e786ccb6afbf3cb78457ff6cc90064e80f0bc5da96cffda665","5651b6955a71b3733260dcf5f7d90f9d648d70b0c1fe24ff8bdcda589f60cbff","36ef474db058911c62a48e6137965cb1dbbdef6a5c97b6887795984d9ee53afb","f416e94790298bdfb37bdc8adb84239880af9224fb1c8513386a6e380aee805d","22af4d26bffe0e8c6c84e9d0d524d9cf770475365ca1c87467dbadd472c90b87","79ce4bd3aabe9f6232bbf25eeaad9994ca94f416139224ebb01085e5ec8290af","fef0f40e32a9e21e58a8ed60607caa0037e55c4c6fe3c842a5c3bd54888f9afa","aebf66a3565c822b77a0c63280f3b07ef3040c985cfea54ad60e91f93b171ab9","aaed09d856decdec134bd8c26a6cbf7d2584bf80c9e89c44c97e267b394b471b","6e18d45952d633c80a1d3a18171aa4a99d3dd0a1615ac2fd88fa93ec01d18ae8","ea4676f9da6673aa1835921f4d9ade3c9fa36a874633b9b90c3dbcde901da3a2","d110ef7cb005b60066855a3d0613dcb33e78c88ab48f1a94be49d8670d9b5496","f3eced93d63b305dd25c3bc0f550921dda3e40acab73276a929e9d01afe44ffe","236a8048bc96944178f7459a0533cc3002e4f923a5f9bca88834d0d2a9290483","d5a60529c38f737d3567074f9a4ec7e4da7759df10912cad6f3d8bdbe662e9a1","4334f5fea672cd97484fa8ef470e5656d0f1bfcc48af553b7f1565bd46f96497","22b6cddb5322bfe32a890fdd3f3a06264d1539f892e3a4f6dbf6f3aa8135883f","3da82fc6ac4649060e524e8bce0b8ba8fe9b17716961f859d30df03734841211","f29e54511f37f6b0c8fa2825db6498afb9ffe2ab828ea6e692b68529cdba7482","437b16e89921dc25ab6313e6685d08c6de6a7df806ff0ffd83596116cb69a0ca","6028cfd2497f620b82b9e75502d3ae11dbb22b87286e2f21859cd5818f75ce9e","543771e77174eda3343f06a7edd0af8b044d83ac8b5e73ec7fbe576fa090d4a2","3134088754c10c988c58ad5cc63b6746e390d72c14a89d73a56100656925b532","95f782b13666a491781b662afacf326f2733f44d8e69a3302ef6e8f30e5784e4","b26659455eb3489593a2bc52a3db4ba638ac626b3a6b2c487c60616846eb33bb","3eba383986313232108bd804db31b71f60367732f6bb08b0a595089efb8f2652","0421ecd58522337c4659fd264eaa659281f494811728c6c9cb873f027719e9d8","5997a6356ec3bca0376b56cd4273adff367934c192e80acb9ca84b2a141727be","fa51e795c197f47e1637261e029249887cd04c36ca9b811d08af8604d8691dc8","d49cc486d093e5e8ae1c26ab9ef34ff6aa3b370173b72a8c7f26d5405abbd896","eb01a7a34a9801b025e68ffcfeba35878026ef0aed36c5d5c1167c27509e68ba","60935703b458c8c407471d3a87112e7733cae17198cf1fa254020c0ffed85b1d","eeabb4e164fe8fbc0caf6afec094230498edc84e7239a3ad38b9c9255b36f80b","e6c450d02573f08e0b7253cbfadd93855c2353344e38b0681c06d44c3caaa6a3","cae3abdc49bdbbefe16879b9e0e08a7c1c8cd2864b7d64645dff1112901145ba","301c604c264389f8f6b4911830488dade60db491489c53b8e7f782616e2b9385","37f92d1fb75f356fcb796bd0dcb65a8a49c93676c1804c13649a690abdd6f2a3","bad7ce18863ea540ea1b6a908f14bb407eeb8ba629f5daed791740cf6512c10e","bc75aa14918b32aab1b84c9f036e0d0636a67a34d87a5c9b8663a43434cb46bf","d9de6be7ea546933d744a8f6c222ce18f840a68cddc8eac8c5a4af37fbc6d802","06511a15f80ee05b40d987fe15532069416e8276d6cd0b0112e6bf058c975ffe","880787c9fb1ef2e540e1f3316ef53d3fb3ce65fc286afc7a060532e8996d475d","f7cd03b1e878621ae53bb9b2898d8cf3e13e79659d544baf0f5a6a39129426a5","9ca70efd76c176145bedb96c56bb726a09b639089f8dedc48a0891be41af29f8","67426c8c5bfb212bd166d5e9418344563c0a87b6f88dd15b9eb7a8d85b763461","f967fb1409dcf8a09eb7cfe815797c33df09a983f1cc28312d78f337791b5110","e68649aeefad399668a19be92e2a47aaf4f7e92818404f781e988834e52026ea","ee621a22b03038e415f92f1a0535c86d7e6f942cba9cd2ccf60b49442fbd142e","372026b0cf2ec3a8d6fe0ff9658056b406389495792369a86cdb38baa6b5e98a","c351c2643b4dc6b14e48d3b522c7f5f0f72e921c2dcb8e4065af9dc60bd3f340","cb685d12827905290c0b55d31b78a84c2a4078c862ce89f2d7e87c3f3ae1d1d1","b54f75eaf5378372e262502f6070689f1e6377a4a20c2db99094f15e59df995d","0cba3a5d7b81356222594442753cf90dd2892e5ccfe1d262aaca6896ba6c1380","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"c2ab70bbc7a24c42a790890739dd8a0ba9d2e15038b40dff8163a97a5d148c00","affectsGlobalScope":true},"422dbb183fdced59425ca072c8bd09efaa77ce4e2ab928ec0d8a1ce062d2a45a",{"version":"19fa46aae5c730811087296a9dff1dbb7be3b63170668628c3018b28775d1b4d","affectsGlobalScope":true},"1dab5ab6bcf11de47ab9db295df8c4f1d92ffa750e8f095e88c71ce4c3299628","f71f46ccd5a90566f0a37b25b23bc4684381ab2180bdf6733f4e6624474e1894",{"version":"54e65985a3ee3cec182e6a555e20974ea936fc8b8d1738c14e8ed8a42bd921d4","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","98a3ebfa494b46265634a73459050befba5da8fdc6ca0ef9b7269421780f4ff3","34e5de87d983bc6aefef8b17658556e3157003e8d9555d3cb098c6bef0b5fbc8","cc0b61316c4f37393f1f9595e93b673f4184e9d07f4c127165a490ec4a928668","f27371653aded82b2b160f7a7033fb4a5b1534b6f6081ef7be1468f0f15327d3","c762cd6754b13a461c54b59d0ae0ab7aeef3c292c6cf889873f786ee4d8e75c9","f4ea7d5df644785bd9fbf419930cbaec118f0d8b4160037d2339b8e23c059e79",{"version":"bfea28e6162ed21a0aeed181b623dcf250aa79abf49e24a6b7e012655af36d81","affectsGlobalScope":true},"7a5459efa09ea82088234e6533a203d528c594b01787fb90fba148885a36e8b6","ae97e20f2e10dbeec193d6a2f9cd9a367a1e293e7d6b33b68bacea166afd7792","10d4796a130577d57003a77b95d8723530bbec84718e364aa2129fa8ffba0378","ad41bb744149e92adb06eb953da195115620a3f2ad48e7d3ae04d10762dae197","bf73c576885408d4a176f44a9035d798827cc5020d58284cb18d7573430d9022","7ae078ca42a670445ae0c6a97c029cb83d143d62abd1730efb33f68f0b2c0e82",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"5d0a9ea09d990b5788f867f1c79d4878f86f7384cb7dab38eecbf22f9efd063d","12eea70b5e11e924bb0543aea5eadc16ced318aa26001b453b0d561c2fd0bd1e","08777cd9318d294646b121838574e1dd7acbb22c21a03df84e1f2c87b1ad47f2","08a90bcdc717df3d50a2ce178d966a8c353fd23e5c392fd3594a6e39d9bb6304",{"version":"8207e7e6db9aa5fc7e61c8f17ba74cf9c115d26f51f91ee93f790815a7ea9dfb","affectsGlobalScope":true},"2a12d2da5ac4c4979401a3f6eaafa874747a37c365e4bc18aa2b171ae134d21b","002b837927b53f3714308ecd96f72ee8a053b8aeb28213d8ec6de23ed1608b66","1dc9c847473bb47279e398b22c740c83ea37a5c88bf66629666e3cf4c5b9f99c","a9e4a5a24bf2c44de4c98274975a1a705a0abbaad04df3557c2d3cd8b1727949","00fa7ce8bc8acc560dc341bbfdf37840a8c59e6a67c9bfa3fa5f36254df35db2","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"cfe724f7c694aab65a9bdd1acb05997848c504548c9d4c71645c187a091cfa2a","5f0ed51db151c2cdc4fa3bb0f44ce6066912ad001b607a34e65a96c52eb76248",{"version":"3345c276cab0e76dda86c0fb79104ff915a4580ba0f3e440870e183b1baec476","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","e383ff72aabf294913f8c346f5da1445ae6ad525836d28efd52cbadc01a361a6","f52fbf64c7e480271a9096763c4882d356b05cab05bf56a64e68a95313cd2ce2","59bdb65f28d7ce52ccfc906e9aaf422f8b8534b2d21c32a27d7819be5ad81df7",{"version":"0c5004386ed814334d2d4abd1d8f2f0b63ea2134d5717d8fb2fb8aabc05288ef","affectsGlobalScope":true},"28a2e7383fd898c386ffdcacedf0ec0845e5d1a86b5a43f25b86bc315f556b79","3aff9c8c36192e46a84afe7b926136d520487155154ab9ba982a8b544ea8fc95","a880cf8d85af2e4189c709b0fea613741649c0e40fffb4360ec70762563d5de0","85bbf436a15bbeda4db888be3062d47f99c66fd05d7c50f0f6473a9151b6a070","9f9c49c95ecd25e0cb2587751925976cf64fd184714cb11e213749c80cf0f927","f0c75c08a71f9212c93a719a25fb0320d53f2e50ca89a812640e08f8ad8c408c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"9cafe917bf667f1027b2bb62e2de454ecd2119c80873ad76fc41d941089753b8","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","208bb742e0f201470da121bc73847c74b62cff4172f38ae5949ae77d6c9c6b71","062bd2910098fc059ba93e347649b3e126c555f7b144033d21d3f8ef63d3e39b","68f396981b185f29d6b50ecf324ed778634ee3d116c4449d8e86dcc24e1ffc50","0dd16d2fa83597b312f3a2362e43e723948ed0531ecfbd1ea1e94639c8ada5d2","7082bbd9e3242882548d75372306563e93341efcd5bb5e3e33489149c96f630f","9545236beb9005ac151907c31c40d2a0f8dd6a994eacef776f6eb1b20c976ef0","4f527ff3a8d15e9f14be8cb3ac080e58ff8e6cb770cef611a1a794a7e2ec2191","2f0041c6adf2c6cf9d46fb37ef43e380e510cc57515d22bea7242d688427ad88","2597d1a0fd5936d48a2a6e2ff30e05deae45453b375e2a7b27a1f8f98b0152ae","77e1496212fab1d809ed2299a5b3d3f8af3e9cb949c9ab0e12d459295a4af43f","069dbe639ca75f89a1535df828e4cd6bf86b98ee9b18b7e72908d926dd6b9cb5","012a04966bcb8a6f522ccd21f6efac3d837f3ea806c55b5849556aad22777f38","c928bb9d9f991e1065e1bdc5658e146279d1467607cd56fe2db448adca9096aa","a81683ba5cc835d0ab780081ee8518cc41f8b1c7212e761ce049f7d21f71a9cf","dd048aab116cd22cacce0644edd45ae889c6e46c6c93bc6e94c0d197f95b5fef","46583f7db81f3bd241cf8479fa24ab09708193e7cfa3286776bd2775c227091e","353832b3e859d4019811d88fa8da794194bd8ea09ff8967e8fb4738792675375","aafe8c5bb2f7b5c4688405e47f8ad05107120e9b6ce11d68bc272ca67d184fd8","7ea1f15a12dfee16bf8be3c112c8edb4924f61253c19b479629d5d2d08d6acc3","fa92c2305f01e5b1f98fd491a3abe7aab80b042a0c7fa50c630a95eef51e1f4f","f76c5f8e4fa90351a2ef56a52fecf4789159ca2c9a3dda60fa4748afb753a9a5","83ae3bb16964e60b70886a5b1ad692b0d583a2befdb88326ec5189861cc92579","129549720e0865d0729b12d7306362f2598b8b2cf2c2d6d274b68ba2a57b6c3d","f2fa1bd2b75b3e1b55820f12ca78d79e06a7cbb4809558f1f0da0a6fd284612b","a938575014d7ad126c345b04a672a75d2392fcdfdfde9a9172184aee007f7626","38ab85fde9ee590140b80fe53c3aad29b5a8b9fb716b04e3840f87597ace91b3","fcdeffec255ff22f67a7ccf7b1284f5613001ab86bdf5f6891a871551d0704cf","b13715eda434461367e0dc0d7374f313631e02b3fd5b03a299ac6b223312b802","c6196a8bb53c3bca8185c25a4319c7a60a3614b7b0475621c561e89860a4df59","7001d2b80d3339eb8e77d65f1c67451f732744877a1e96c4a992638fcce81842","3103df94f61695e93f42896943943f8005a32821ce2ccbc1233a78c27ac82474","7cb88fd6166603b5ac26c4e6d4942dffbb582e455f58c716cf8ed834ea798c25","ff2a97a498375957837920ddb6c6b952671704a9e4a529b4e57ff41b0c3b108d","38e0b4cc7c54ce86757d5a6563f5f46ec2c8f74585142a0f4c4178fc8307b843","eff2d76d400035f65bd7ce7b7dd2992c2a3348f59ddc52722f715967bb1f8909","32de6cf2bb8f6673bd8c03864c2e7fc6c22d6c6f090bf4fe059007a03629103a","79f38962f0bce5a932aa0a8a47a35a92001b1ef7767af7a3cabcc72212307894","e6dc98f8255d235241673e96519bbdaf5a53ccda916dc9887c38234c00188d0b","945e2b4c14a02b01cd796c37f6c056496baf82e0b8052b991c3cd8178fc9637b","40011a93cade50a369a99e387ad8642f34d439c5de89835923108d8b8e943923","59458ea92342a71f39c628869517f7a6254cc2f7e15be4824a7a75de18643d6e","303848334840743e1c6aaf1a9589afe2458696a1a95db29503e3d7b734f496df","9999f19b1575a8bf8904296ed69d0f863158e5a49552b4b3de5fc455a1910056","93dc0fa0d91c41e4e5dd74356a367066eca19494b060a5526eef9812d1acca21","7bcea2b8403c8117996372a55822d8c34392e768928109fbc6ec0468b24e9ff6","a3595ac8c4759229bb306352a12f79fe2783a19cffad50daeae83877af3cd5c6","22216212714cf42ee3bd2d9d787b4ea61f3dc3d536d2d28a5ab2ce55b72986df","df563ba4312d3a8805ba562826f9a4b5ccc1141f413a5fe226c5e6b6d24099ac","877f859a97ab535b9ff7d58bbec0912314400bfae7e01447d7a71dab5815ea92","ae36523ea4e851aaea491c78e7b97b5c93f92d368777fa08dd1f52d0f5f55d00","75c6c689bb0e672761abb7bee23a87f85ef5a146f323c5609ed7f869cd5ec8e3","a9f213d3b411f5b456f24492ac7d2fa152b352fe260378aa0b70aad113471de6","3b6467be4404b28426d1e7c43a91cef4fc747b9d91c245b52882fc64ced4a71f","959f216a3659931de1e27eb5e243b032174a3d024650c5f3b50f5e07175980e3","2ff9995137f3e5d68971388ec58af0c79721626323884513f9f5e2e996ac1fdd","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","29afd3970c68fdcbf3168de0f855d7cd84135c436050793b0584e1a904affe2d","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","3b043cf9a81854a72963fdb57d1884fc4da1cf5be69b5e0a4c5b751e58cb6d88","dd5647a9ccccb2b074dca8a02b00948ac293091ebe73fdf2e6e98f718819f669","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","7adecb2c3238794c378d336a8182d4c3dd2c4fa6fa1785e2797a3db550edea62","dc12dc0e5aa06f4e1a7692149b78f89116af823b9e1f1e4eae140cd3e0e674e6","1bfc6565b90c8771615cd8cfcf9b36efc0275e5e83ac7d9181307e96eb495161","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190",{"version":"6ff2ca51e2c9d88d6d904c481879b12ec0cad2a69b88e220859a52207444773b","affectsGlobalScope":true},"0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","6503fb6addf62f9b10f8564d9869ad824565a914ec1ac3dd7d13da14a3f57036","f313731860257325f13351575f381fef333d4dfe30daf5a2e72f894208feea08","951b37f7d86f6012f09e6b35f1de57c69d75f16908cb0adaa56b93675ea0b853","3816fc03ffd9cbd1a7a3362a264756a4a1d547caabea50ca68303046be40e376","0c417b4ec46b88fb62a43ec00204700b560d01eb5677c7faa8ecd34610f096a8","13d29cdeb64e8496424edf42749bbb47de5e42d201cf958911a4638cbcffbd3f","0f9e381eecc5860f693c31fe463b3ca20a64ca9b8db0cf6208cd4a053f064809","95902d5561c6aac5dfc40568a12b0aca324037749dcd32a81f23423bfde69bab","5dfb2aca4136abdc5a2740f14be8134a6e6b66fd53470bb2e954e40f8abfaf3e","577463167dd69bd81f76697dfc3f7b22b77a6152f60a602a9218e52e3183ad67","b8396e9024d554b611cbe31a024b176ba7116063d19354b5a02dccd8f0118989","4b28e1c5bf88d891e07a1403358b81a51b3ba2eae1ffada51cca7476b5ac6407","7150ad575d28bf98fae321a1c0f10ad17b127927811f488ded6ff1d88d4244e5","8b155c4757d197969553de3762c8d23d5866710301de41e1b66b97c9ed867003","93733466609dd8bf72eace502a24ca7574bd073d934216e628f1b615c8d3cb3c","45e9228761aabcadb79c82fb3008523db334491525bdb8e74e0f26eaf7a4f7f4","aeacac2778c9821512b6b889da79ac31606a863610c8f28da1e483579627bf90","569fdb354062fc098a6a3ba93a029edf22d6fe480cf72b231b3c07832b2e7c97","bf9876e62fb7f4237deafab8c7444770ef6e82b4cad2d5dc768664ff340feeb2","6cf60e76d37faf0fbc2f80a873eab0fd545f6b1bf300e7f0823f956ddb3083e9","6adaa6103086f931e3eee20f0987e86e8879e9d13aa6bd6075ccfc58b9c5681c","ee0af0f2b8d3b4d0baf669f2ff6fcef4a8816a473c894cc7c905029f7505fed0","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","6209c901f30cc321f4b86800d11fad3d67e73a3308f19946b1bc642af0280298","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","f7e133b20ee2669b6c0e5d7f0cd510868c57cd64b283e68c7f598e30ce9d76d2","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438"],"options":{"declaration":true,"declarationMap":true,"esModuleInterop":true,"inlineSources":true,"module":1,"outDir":"./","removeComments":true,"skipDefaultLibCheck":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"target":8},"fileIdsList":[[167,230],[167],[49,113,121,166,167],[167,179,180,181,182,183,184,185],[167,181],[123,139,144,167,174,177,178,179,182],[123,139,167,174,177,178,180],[167,179],[167,179,183],[167,180],[167,177,179],[113,156,167,187,205,206],[142,156,167],[167,189,190,191],[167,189],[167,230,231,232,233,234],[167,230,232],[140,167,174],[167,237],[167,238],[167,242,246],[167,269],[167,254],[167,258,259,260],[167,257],[167,259],[167,249,255,256,261,264,266,267,268],[167,256,262,263,269],[167,262,265],[167,256,257,262,269],[167,256,269],[167,250,251,252,253],[142,166,167,174,175,176],[142,156,167,174],[124,167],[127,167],[128,133,167],[129,139,140,147,156,166,167],[129,130,139,147,167],[131,167],[132,133,140,148,167],[133,156,163,167],[134,136,139,147,167],[135,167],[136,137,167],[138,139,167],[139,167],[139,140,141,156,166,167],[139,140,141,156,167],[142,147,156,166,167],[139,140,142,143,147,156,163,166,167],[142,144,156,163,166,167],[124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173],[139,145,167],[146,166,167],[136,139,147,156,167],[148,167],[149,167],[127,150,167],[151,165,167,171],[152,167],[153,167],[139,154,167],[154,155,167,169],[139,156,157,158,167],[156,158,167],[156,157,167],[159,167],[160,167],[139,161,162,167],[161,162,167],[133,147,156,163,167],[164,167],[147,165,167],[128,142,153,166,167],[133,167],[156,167,168],[167,169],[167,170],[128,133,139,141,150,156,166,167,169,171],[156,167,172],[139,142,144,156,163,166,167,172,174],[167,276],[49,91,108,109,167],[53,167],[53,54,167],[49,53,54,76,167],[49,53,54,167],[53,54,65,167],[53,54,63,167],[49,52,53,55,56,57,58,59,60,61,62,63,64,68,70,108,167],[49,52,68,70,76,82,167],[49,68,167],[49,167],[49,65,66,67,69,70,76,81,167],[108,167],[49,69,76,81,82,167],[70,74,76,167],[69,70,167],[68,108,113,167],[49,82,83,167],[49,50,75,76,78,80,81,82,85,167],[49,50,51,74,75,81,82,84,167],[49,50,82,167],[49,51,76,82,167],[49,50,51,75,76,77,78,79,80,82,167],[49,81,82,167],[50,51,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,107,167],[68,69,70,71,72,73,167],[76,78,80,81,82,84,167],[49,81,167],[49,82,167],[49,82,106,167],[49,108,167],[49,86,167],[49,91,108,167],[49,91,92,108,167],[49,91,113,167],[49,89,90,92,93,94,95,96,97,98,99,100,101,102,103,104,105,167],[91,97,108,167],[91,108,167],[49,106,108,110,111,112,167],[113,122,123,129,139,156,167,171,186,187,188,192],[113,167,193],[167,240,243],[167,240,243,244,245],[167,242],[167,241],[129,156,167,203,204],[156,167],[114,116,167],[115,116,119,167],[115,167],[121,167],[120,167],[114,115,116,117,118,167],[46,47,167,193,206,227,228],[167,227],[167,193,227],[46,48,167,193,218,227,228],[48,167,227],[48,167,205,207,223,227],[167,201,202,208,213,216,217],[167,193,218],[167,213,227],[167,193,213,227],[167,209,210,211,212],[167,193,206,207,227],[167,193,207,213,216,227],[167,214,215],[167,194,195,218,223,226,228,229],[142,167,193,227],[142,144,166,167,193,227],[167,224,225],[167,193,223,227],[46,167,193,227],[167,193,218,227],[47,167,227],[48,167,193,198,227],[167,196,197,198,199,200,219,220,221,222],[48,167,193,227],[139,166,167,193,207,227]],"referencedMap":[[232,1],[230,2],[122,3],[123,2],[186,4],[182,5],[180,6],[179,7],[183,8],[184,9],[185,10],[178,11],[181,10],[207,12],[48,13],[46,2],[47,2],[192,14],[190,15],[189,2],[191,15],[235,16],[231,1],[233,17],[234,1],[236,18],[237,2],[238,19],[239,20],[247,21],[248,2],[249,2],[270,22],[255,23],[261,24],[259,2],[258,25],[260,26],[269,27],[264,28],[266,29],[267,30],[268,31],[262,2],[263,31],[265,31],[257,31],[256,2],[251,2],[250,2],[253,23],[254,32],[252,23],[271,2],[176,2],[177,33],[175,34],[124,35],[125,35],[127,36],[128,37],[129,38],[130,39],[131,40],[132,41],[133,42],[134,43],[135,44],[136,45],[137,45],[138,46],[139,47],[140,48],[141,49],[126,2],[173,2],[142,50],[143,51],[144,52],[174,53],[145,54],[146,55],[147,56],[148,57],[149,58],[150,59],[151,60],[152,61],[153,62],[154,63],[155,64],[156,65],[158,66],[157,67],[159,68],[160,69],[161,70],[162,71],[163,72],[164,73],[165,74],[166,75],[167,76],[168,77],[169,78],[170,79],[171,80],[172,81],[272,2],[273,2],[274,2],[275,2],[187,82],[276,2],[277,83],[109,2],[110,84],[49,2],[54,85],[57,86],[59,87],[56,86],[61,88],[62,86],[60,88],[53,2],[55,86],[63,89],[64,90],[58,88],[65,91],[66,92],[52,93],[67,94],[68,95],[73,96],[70,97],[71,98],[72,99],[69,100],[84,101],[86,102],[76,103],[51,104],[77,105],[81,106],[80,107],[108,108],[74,109],[87,110],[88,2],[50,94],[78,111],[75,112],[83,112],[107,113],[82,111],[79,111],[85,114],[89,2],[90,115],[92,116],[93,116],[94,96],[95,117],[96,118],[106,119],[98,120],[99,114],[100,114],[101,116],[102,121],[103,121],[104,116],[105,96],[97,116],[111,2],[91,2],[112,96],[113,122],[193,123],[188,124],[240,2],[244,125],[246,126],[245,125],[243,127],[242,128],[241,2],[205,129],[203,130],[204,130],[206,2],[10,2],[12,2],[11,2],[2,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[3,2],[4,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[5,2],[28,2],[29,2],[30,2],[31,2],[6,2],[32,2],[33,2],[34,2],[35,2],[7,2],[40,2],[36,2],[37,2],[38,2],[39,2],[8,2],[44,2],[41,2],[42,2],[43,2],[1,2],[9,2],[45,2],[115,131],[120,132],[117,2],[116,133],[118,134],[114,2],[121,135],[119,136],[229,137],[195,138],[202,139],[217,140],[201,141],[208,142],[218,143],[209,144],[212,145],[210,145],[211,146],[213,147],[214,148],[215,149],[216,150],[227,151],[224,152],[225,153],[226,154],[221,155],[196,2],[222,155],[198,156],[220,139],[219,157],[199,158],[200,159],[197,2],[223,160],[194,161],[228,162]],"exportedModulesMap":[[232,1],[230,2],[122,3],[123,2],[186,4],[182,5],[180,6],[179,7],[183,8],[184,9],[185,10],[178,11],[181,10],[207,12],[48,13],[46,2],[47,2],[192,14],[190,15],[189,2],[191,15],[235,16],[231,1],[233,17],[234,1],[236,18],[237,2],[238,19],[239,20],[247,21],[248,2],[249,2],[270,22],[255,23],[261,24],[259,2],[258,25],[260,26],[269,27],[264,28],[266,29],[267,30],[268,31],[262,2],[263,31],[265,31],[257,31],[256,2],[251,2],[250,2],[253,23],[254,32],[252,23],[271,2],[176,2],[177,33],[175,34],[124,35],[125,35],[127,36],[128,37],[129,38],[130,39],[131,40],[132,41],[133,42],[134,43],[135,44],[136,45],[137,45],[138,46],[139,47],[140,48],[141,49],[126,2],[173,2],[142,50],[143,51],[144,52],[174,53],[145,54],[146,55],[147,56],[148,57],[149,58],[150,59],[151,60],[152,61],[153,62],[154,63],[155,64],[156,65],[158,66],[157,67],[159,68],[160,69],[161,70],[162,71],[163,72],[164,73],[165,74],[166,75],[167,76],[168,77],[169,78],[170,79],[171,80],[172,81],[272,2],[273,2],[274,2],[275,2],[187,82],[276,2],[277,83],[109,2],[110,84],[49,2],[54,85],[57,86],[59,87],[56,86],[61,88],[62,86],[60,88],[53,2],[55,86],[63,89],[64,90],[58,88],[65,91],[66,92],[52,93],[67,94],[68,95],[73,96],[70,97],[71,98],[72,99],[69,100],[84,101],[86,102],[76,103],[51,104],[77,105],[81,106],[80,107],[108,108],[74,109],[87,110],[88,2],[50,94],[78,111],[75,112],[83,112],[107,113],[82,111],[79,111],[85,114],[89,2],[90,115],[92,116],[93,116],[94,96],[95,117],[96,118],[106,119],[98,120],[99,114],[100,114],[101,116],[102,121],[103,121],[104,116],[105,96],[97,116],[111,2],[91,2],[112,96],[113,122],[193,123],[188,124],[240,2],[244,125],[246,126],[245,125],[243,127],[242,128],[241,2],[205,129],[203,130],[204,130],[206,2],[10,2],[12,2],[11,2],[2,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[3,2],[4,2],[24,2],[21,2],[22,2],[23,2],[25,2],[26,2],[27,2],[5,2],[28,2],[29,2],[30,2],[31,2],[6,2],[32,2],[33,2],[34,2],[35,2],[7,2],[40,2],[36,2],[37,2],[38,2],[39,2],[8,2],[44,2],[41,2],[42,2],[43,2],[1,2],[9,2],[45,2],[115,131],[120,132],[117,2],[116,133],[118,134],[114,2],[121,135],[119,136],[229,137],[195,138],[202,139],[217,140],[201,141],[208,142],[218,143],[209,144],[212,145],[210,145],[211,146],[213,147],[214,148],[215,149],[216,150],[227,151],[224,152],[225,153],[226,154],[221,155],[196,2],[222,155],[198,156],[220,139],[219,157],[199,158],[200,159],[197,2],[223,160],[194,161],[228,162]],"semanticDiagnosticsPerFile":[232,230,122,123,186,182,180,179,183,184,185,178,181,207,48,46,47,192,190,189,191,235,231,233,234,236,237,238,239,247,248,249,270,255,261,259,258,260,269,264,266,267,268,262,263,265,257,256,251,250,253,254,252,271,176,177,175,124,125,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,126,173,142,143,144,174,145,146,147,148,149,150,151,152,153,154,155,156,158,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,272,273,274,275,187,276,277,109,110,49,54,57,59,56,61,62,60,53,55,63,64,58,65,66,52,67,68,73,70,71,72,69,84,86,76,51,77,81,80,108,74,87,88,50,78,75,83,107,82,79,85,89,90,92,93,94,95,96,106,98,99,100,101,102,103,104,105,97,111,91,112,113,193,188,240,244,246,245,243,242,241,205,203,204,206,10,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,40,36,37,38,39,8,44,41,42,43,1,9,45,115,120,117,116,118,114,121,119,229,195,202,217,201,208,218,209,212,210,211,213,214,215,216,227,224,225,226,221,196,222,198,220,219,199,200,197,223,194,228]},"version":"4.5.5"}
|
package/dist/type.d.ts
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import type ytdl from "@distube/ytdl-core";
|
|
2
|
-
import type { CustomPlugin, DisTubeVoice, ExtractorPlugin, Playlist, Queue, SearchResult, Song } from ".";
|
|
3
|
-
import type { Guild, GuildMember, GuildTextBasedChannel, Interaction, Message, Snowflake, User, VoiceBasedChannel, VoiceState } from "discord.js";
|
|
4
|
-
export declare type Awaitable<T = any> = T | PromiseLike<T>;
|
|
5
|
-
export declare type DisTubeVoiceEvents = {
|
|
6
|
-
disconnect: (error?: Error) => Awaitable;
|
|
7
|
-
error: (error: Error) => Awaitable;
|
|
8
|
-
finish: () => Awaitable;
|
|
9
|
-
};
|
|
10
|
-
export declare type DisTubeEvents = {
|
|
11
|
-
error: (channel: GuildTextBasedChannel | undefined, error: Error) => Awaitable;
|
|
12
|
-
addList: (queue: Queue, playlist: Playlist) => Awaitable;
|
|
13
|
-
addSong: (queue: Queue, song: Song) => Awaitable;
|
|
14
|
-
playSong: (queue: Queue, song: Song) => Awaitable;
|
|
15
|
-
finishSong: (queue: Queue, song: Song) => Awaitable;
|
|
16
|
-
empty: (queue: Queue) => Awaitable;
|
|
17
|
-
finish: (queue: Queue) => Awaitable;
|
|
18
|
-
initQueue: (queue: Queue) => Awaitable;
|
|
19
|
-
noRelated: (queue: Queue) => Awaitable;
|
|
20
|
-
disconnect: (queue: Queue) => Awaitable;
|
|
21
|
-
deleteQueue: (queue: Queue) => Awaitable;
|
|
22
|
-
searchCancel: (message: Message<true>, query: string) => Awaitable;
|
|
23
|
-
searchNoResult: (message: Message<true>, query: string) => Awaitable;
|
|
24
|
-
searchDone: (message: Message<true>, answer: Message<true>, query: string) => Awaitable;
|
|
25
|
-
searchInvalidAnswer: (message: Message<true>, answer: Message<true>, query: string) => Awaitable;
|
|
26
|
-
searchResult: (message: Message<true>, results: SearchResult[], query: string) => Awaitable;
|
|
27
|
-
};
|
|
28
|
-
export interface Filter {
|
|
29
|
-
name: string;
|
|
30
|
-
value: string;
|
|
31
|
-
}
|
|
32
|
-
export declare type FilterResolvable = string | Filter;
|
|
33
|
-
export declare type Filters = Record<string, string>;
|
|
34
|
-
export interface DisTubeOptions {
|
|
35
|
-
plugins?: (CustomPlugin | ExtractorPlugin)[];
|
|
36
|
-
emitNewSongOnly?: boolean;
|
|
37
|
-
leaveOnFinish?: boolean;
|
|
38
|
-
leaveOnStop?: boolean;
|
|
39
|
-
leaveOnEmpty?: boolean;
|
|
40
|
-
emptyCooldown?: number;
|
|
41
|
-
savePreviousSongs?: boolean;
|
|
42
|
-
searchSongs?: number;
|
|
43
|
-
searchCooldown?: number;
|
|
44
|
-
youtubeCookie?: string;
|
|
45
|
-
youtubeIdentityToken?: string;
|
|
46
|
-
customFilters?: Filters;
|
|
47
|
-
ytdlOptions?: ytdl.downloadOptions;
|
|
48
|
-
nsfw?: boolean;
|
|
49
|
-
emitAddSongWhenCreatingQueue?: boolean;
|
|
50
|
-
emitAddListWhenCreatingQueue?: boolean;
|
|
51
|
-
}
|
|
52
|
-
export declare type GuildIdResolvable = Queue | DisTubeVoice | Snowflake | Message | GuildTextBasedChannel | VoiceBasedChannel | VoiceState | Guild | GuildMember | Interaction | string;
|
|
53
|
-
export interface OtherSongInfo {
|
|
54
|
-
src?: string;
|
|
55
|
-
id?: string;
|
|
56
|
-
title?: string;
|
|
57
|
-
name?: string;
|
|
58
|
-
is_live?: boolean;
|
|
59
|
-
isLive?: boolean;
|
|
60
|
-
_duration_raw?: string | number;
|
|
61
|
-
duration?: string | number;
|
|
62
|
-
webpage_url?: string;
|
|
63
|
-
url: string;
|
|
64
|
-
thumbnail?: string;
|
|
65
|
-
related?: RelatedSong[];
|
|
66
|
-
view_count?: string | number;
|
|
67
|
-
views?: string | number;
|
|
68
|
-
like_count?: string | number;
|
|
69
|
-
likes?: string | number;
|
|
70
|
-
dislike_count?: string | number;
|
|
71
|
-
dislikes?: string | number;
|
|
72
|
-
repost_count?: string | number;
|
|
73
|
-
reposts?: string | number;
|
|
74
|
-
uploader?: string | {
|
|
75
|
-
name: string;
|
|
76
|
-
url: string;
|
|
77
|
-
};
|
|
78
|
-
uploader_url?: string;
|
|
79
|
-
age_limit?: string | number;
|
|
80
|
-
chapters?: Chapter[];
|
|
81
|
-
age_restricted?: boolean;
|
|
82
|
-
}
|
|
83
|
-
export interface Chapter {
|
|
84
|
-
title: string;
|
|
85
|
-
start_time: number;
|
|
86
|
-
}
|
|
87
|
-
export interface PlaylistInfo {
|
|
88
|
-
source: string;
|
|
89
|
-
member?: GuildMember;
|
|
90
|
-
user?: User;
|
|
91
|
-
songs: Song[];
|
|
92
|
-
name?: string;
|
|
93
|
-
url?: string;
|
|
94
|
-
thumbnail?: string;
|
|
95
|
-
}
|
|
96
|
-
export declare type RelatedSong = Omit<Song, "related">;
|
|
97
|
-
export interface CustomPluginPlayOptions {
|
|
98
|
-
skip?: boolean;
|
|
99
|
-
position?: number;
|
|
100
|
-
member?: GuildMember;
|
|
101
|
-
textChannel?: GuildTextBasedChannel;
|
|
102
|
-
metadata?: any;
|
|
103
|
-
}
|
|
104
|
-
//# sourceMappingURL=type.d.ts.map
|