distube 2.8.18 → 3.0.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/README.md +32 -98
  2. package/dist/DisTube.d.ts +522 -0
  3. package/dist/DisTube.d.ts.map +1 -0
  4. package/dist/DisTube.js +794 -0
  5. package/dist/DisTube.js.map +1 -0
  6. package/dist/constant.d.ts +130 -0
  7. package/dist/constant.d.ts.map +1 -0
  8. package/dist/constant.js +150 -0
  9. package/dist/constant.js.map +1 -0
  10. package/dist/core/DisTubeBase.d.ts +55 -0
  11. package/dist/core/DisTubeBase.d.ts.map +1 -0
  12. package/dist/core/DisTubeBase.js +76 -0
  13. package/dist/core/DisTubeBase.js.map +1 -0
  14. package/dist/core/DisTubeHandler.d.ts +84 -0
  15. package/dist/core/DisTubeHandler.d.ts.map +1 -0
  16. package/dist/core/DisTubeHandler.js +311 -0
  17. package/dist/core/DisTubeHandler.js.map +1 -0
  18. package/dist/core/DisTubeOptions.d.ts +26 -0
  19. package/dist/core/DisTubeOptions.d.ts.map +1 -0
  20. package/dist/core/DisTubeOptions.js +93 -0
  21. package/dist/core/DisTubeOptions.js.map +1 -0
  22. package/dist/core/DisTubeStream.d.ts +52 -0
  23. package/dist/core/DisTubeStream.d.ts.map +1 -0
  24. package/dist/core/DisTubeStream.js +109 -0
  25. package/dist/core/DisTubeStream.js.map +1 -0
  26. package/dist/core/index.d.ts +7 -0
  27. package/dist/core/index.d.ts.map +1 -0
  28. package/dist/core/index.js +19 -0
  29. package/dist/core/index.js.map +1 -0
  30. package/dist/core/manager/BaseManager.d.ts +18 -0
  31. package/dist/core/manager/BaseManager.d.ts.map +1 -0
  32. package/dist/core/manager/BaseManager.js +44 -0
  33. package/dist/core/manager/BaseManager.js.map +1 -0
  34. package/dist/core/manager/QueueManager.d.ts +60 -0
  35. package/dist/core/manager/QueueManager.d.ts.map +1 -0
  36. package/dist/core/manager/QueueManager.js +202 -0
  37. package/dist/core/manager/QueueManager.js.map +1 -0
  38. package/dist/core/manager/index.d.ts +3 -0
  39. package/dist/core/manager/index.d.ts.map +1 -0
  40. package/dist/core/manager/index.js +15 -0
  41. package/dist/core/manager/index.js.map +1 -0
  42. package/dist/core/voice/DJSAdapter.d.ts +4 -0
  43. package/dist/core/voice/DJSAdapter.d.ts.map +1 -0
  44. package/dist/core/voice/DJSAdapter.js +61 -0
  45. package/dist/core/voice/DJSAdapter.js.map +1 -0
  46. package/dist/core/voice/DisTubeVoice.d.ts +83 -0
  47. package/dist/core/voice/DisTubeVoice.d.ts.map +1 -0
  48. package/dist/core/voice/DisTubeVoice.js +236 -0
  49. package/dist/core/voice/DisTubeVoice.js.map +1 -0
  50. package/dist/core/voice/DisTubeVoiceManager.d.ts +41 -0
  51. package/dist/core/voice/DisTubeVoiceManager.d.ts.map +1 -0
  52. package/dist/core/voice/DisTubeVoiceManager.js +67 -0
  53. package/dist/core/voice/DisTubeVoiceManager.js.map +1 -0
  54. package/dist/core/voice/index.d.ts +4 -0
  55. package/dist/core/voice/index.d.ts.map +1 -0
  56. package/dist/core/voice/index.js +16 -0
  57. package/dist/core/voice/index.js.map +1 -0
  58. package/dist/index.d.ts +8 -0
  59. package/dist/index.d.ts.map +1 -0
  60. package/dist/index.js +23 -0
  61. package/dist/index.js.map +1 -0
  62. package/dist/plugin/http.d.ts +8 -0
  63. package/dist/plugin/http.d.ts.map +1 -0
  64. package/dist/plugin/http.js +20 -0
  65. package/dist/plugin/http.js.map +1 -0
  66. package/dist/plugin/https.d.ts +14 -0
  67. package/dist/plugin/https.d.ts.map +1 -0
  68. package/dist/plugin/https.js +50 -0
  69. package/dist/plugin/https.js.map +1 -0
  70. package/dist/plugin/index.d.ts +4 -0
  71. package/dist/plugin/index.d.ts.map +1 -0
  72. package/dist/plugin/index.js +16 -0
  73. package/dist/plugin/index.js.map +1 -0
  74. package/dist/plugin/youtube-dl.d.ts +11 -0
  75. package/dist/plugin/youtube-dl.d.ts.map +1 -0
  76. package/dist/plugin/youtube-dl.js +75 -0
  77. package/dist/plugin/youtube-dl.js.map +1 -0
  78. package/dist/struct/CustomPlugin.d.ts +27 -0
  79. package/dist/struct/CustomPlugin.d.ts.map +1 -0
  80. package/dist/struct/CustomPlugin.js +35 -0
  81. package/dist/struct/CustomPlugin.js.map +1 -0
  82. package/dist/struct/DisTubeError.d.ts +54 -0
  83. package/dist/struct/DisTubeError.d.ts.map +1 -0
  84. package/dist/struct/DisTubeError.js +72 -0
  85. package/dist/struct/DisTubeError.js.map +1 -0
  86. package/dist/struct/ExtractorPlugin.d.ts +29 -0
  87. package/dist/struct/ExtractorPlugin.d.ts.map +1 -0
  88. package/dist/struct/ExtractorPlugin.js +32 -0
  89. package/dist/struct/ExtractorPlugin.js.map +1 -0
  90. package/dist/struct/Playlist.d.ts +42 -0
  91. package/dist/struct/Playlist.d.ts.map +1 -0
  92. package/dist/struct/Playlist.js +104 -0
  93. package/dist/struct/Playlist.js.map +1 -0
  94. package/dist/struct/Plugin.d.ts +82 -0
  95. package/dist/struct/Plugin.d.ts.map +1 -0
  96. package/dist/struct/Plugin.js +108 -0
  97. package/dist/struct/Plugin.js.map +1 -0
  98. package/dist/struct/Queue.d.ts +217 -0
  99. package/dist/struct/Queue.d.ts.map +1 -0
  100. package/dist/struct/Queue.js +480 -0
  101. package/dist/struct/Queue.js.map +1 -0
  102. package/dist/struct/SearchResult.d.ts +28 -0
  103. package/dist/struct/SearchResult.d.ts.map +1 -0
  104. package/dist/struct/SearchResult.js +79 -0
  105. package/dist/struct/SearchResult.js.map +1 -0
  106. package/dist/struct/Song.d.ts +68 -0
  107. package/dist/struct/Song.d.ts.map +1 -0
  108. package/dist/struct/Song.js +229 -0
  109. package/dist/struct/Song.js.map +1 -0
  110. package/dist/struct/TaskQueue.d.ts +33 -0
  111. package/dist/struct/TaskQueue.d.ts.map +1 -0
  112. package/dist/struct/TaskQueue.js +58 -0
  113. package/dist/struct/TaskQueue.js.map +1 -0
  114. package/dist/struct/index.d.ts +10 -0
  115. package/dist/struct/index.d.ts.map +1 -0
  116. package/dist/struct/index.js +22 -0
  117. package/dist/struct/index.js.map +1 -0
  118. package/dist/tsconfig.tsbuildinfo +1 -0
  119. package/dist/type.d.ts +159 -0
  120. package/dist/type.d.ts.map +1 -0
  121. package/dist/type.js +3 -0
  122. package/dist/type.js.map +1 -0
  123. package/dist/util.d.ts +47 -0
  124. package/dist/util.d.ts.map +1 -0
  125. package/dist/util.js +205 -0
  126. package/dist/util.js.map +1 -0
  127. package/package.json +50 -24
  128. package/src/DisTube.js +0 -1121
  129. package/src/Playlist.js +0 -107
  130. package/src/Queue.js +0 -120
  131. package/src/SearchResult.js +0 -81
  132. package/src/Song.js +0 -135
  133. package/src/duration.js +0 -39
  134. package/typings/DisTube.d.ts +0 -635
  135. package/typings/Playlist.d.ts +0 -73
  136. package/typings/Queue.d.ts +0 -106
  137. package/typings/SearchResult.d.ts +0 -59
  138. package/typings/Song.d.ts +0 -104
  139. package/typings/duration.d.ts +0 -2
@@ -0,0 +1 @@
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.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.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/base.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/messagecomponents.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/responses.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/ping.d.ts","../node_modules/discord-api-types/payloads/v9/_interactions/slashcommands.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/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/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/utils/internals.d.ts","../node_modules/discord-api-types/rest/v9/guild.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/ow/dist/predicates/base-predicate.d.ts","../node_modules/ow/dist/predicates/predicate.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/ow/node_modules/type-fest/source/primitive.d.ts","../node_modules/ow/node_modules/type-fest/source/typed-array.d.ts","../node_modules/ow/node_modules/type-fest/source/basic.d.ts","../node_modules/ow/node_modules/type-fest/source/observable-like.d.ts","../node_modules/ow/node_modules/type-fest/source/except.d.ts","../node_modules/ow/node_modules/type-fest/source/simplify.d.ts","../node_modules/ow/node_modules/type-fest/source/mutable.d.ts","../node_modules/ow/node_modules/type-fest/source/merge.d.ts","../node_modules/ow/node_modules/type-fest/source/merge-exclusive.d.ts","../node_modules/ow/node_modules/type-fest/source/require-at-least-one.d.ts","../node_modules/ow/node_modules/type-fest/source/require-exactly-one.d.ts","../node_modules/ow/node_modules/type-fest/source/partial-deep.d.ts","../node_modules/ow/node_modules/type-fest/source/readonly-deep.d.ts","../node_modules/ow/node_modules/type-fest/source/literal-union.d.ts","../node_modules/ow/node_modules/type-fest/source/promisable.d.ts","../node_modules/ow/node_modules/type-fest/source/opaque.d.ts","../node_modules/ow/node_modules/type-fest/source/set-optional.d.ts","../node_modules/ow/node_modules/type-fest/source/set-required.d.ts","../node_modules/ow/node_modules/type-fest/source/value-of.d.ts","../node_modules/ow/node_modules/type-fest/source/promise-value.d.ts","../node_modules/ow/node_modules/type-fest/source/async-return-type.d.ts","../node_modules/ow/node_modules/type-fest/source/conditional-keys.d.ts","../node_modules/ow/node_modules/type-fest/source/conditional-except.d.ts","../node_modules/ow/node_modules/type-fest/source/conditional-pick.d.ts","../node_modules/ow/node_modules/type-fest/source/union-to-intersection.d.ts","../node_modules/ow/node_modules/type-fest/source/stringified.d.ts","../node_modules/ow/node_modules/type-fest/source/fixed-length-array.d.ts","../node_modules/ow/node_modules/type-fest/source/iterable-element.d.ts","../node_modules/ow/node_modules/type-fest/source/entry.d.ts","../node_modules/ow/node_modules/type-fest/source/entries.d.ts","../node_modules/ow/node_modules/type-fest/source/set-return-type.d.ts","../node_modules/ow/node_modules/type-fest/source/asyncify.d.ts","../node_modules/ow/node_modules/type-fest/source/package-json.d.ts","../node_modules/ow/node_modules/type-fest/source/tsconfig-json.d.ts","../node_modules/ow/node_modules/type-fest/base.d.ts","../node_modules/ow/node_modules/type-fest/source/utilities.d.ts","../node_modules/ow/node_modules/type-fest/ts41/utilities.d.ts","../node_modules/ow/node_modules/type-fest/ts41/camel-case.d.ts","../node_modules/ow/node_modules/type-fest/ts41/camel-cased-properties.d.ts","../node_modules/ow/node_modules/type-fest/ts41/camel-cased-properties-deep.d.ts","../node_modules/ow/node_modules/type-fest/ts41/delimiter-case.d.ts","../node_modules/ow/node_modules/type-fest/ts41/kebab-case.d.ts","../node_modules/ow/node_modules/type-fest/ts41/delimiter-cased-properties.d.ts","../node_modules/ow/node_modules/type-fest/ts41/kebab-cased-properties.d.ts","../node_modules/ow/node_modules/type-fest/ts41/delimiter-cased-properties-deep.d.ts","../node_modules/ow/node_modules/type-fest/ts41/kebab-cased-properties-deep.d.ts","../node_modules/ow/node_modules/type-fest/ts41/pascal-case.d.ts","../node_modules/ow/node_modules/type-fest/ts41/pascal-cased-properties.d.ts","../node_modules/ow/node_modules/type-fest/ts41/pascal-cased-properties-deep.d.ts","../node_modules/ow/node_modules/type-fest/ts41/snake-case.d.ts","../node_modules/ow/node_modules/type-fest/ts41/snake-cased-properties.d.ts","../node_modules/ow/node_modules/type-fest/ts41/snake-cased-properties-deep.d.ts","../node_modules/ow/node_modules/type-fest/ts41/includes.d.ts","../node_modules/ow/node_modules/type-fest/ts41/screaming-snake-case.d.ts","../node_modules/ow/node_modules/type-fest/ts41/split.d.ts","../node_modules/ow/node_modules/type-fest/ts41/trim.d.ts","../node_modules/ow/node_modules/type-fest/ts41/get.d.ts","../node_modules/ow/node_modules/type-fest/ts41/last-array-element.d.ts","../node_modules/ow/node_modules/type-fest/ts41/index.d.ts","../node_modules/ow/dist/predicates/string.d.ts","../node_modules/ow/dist/predicates/number.d.ts","../node_modules/ow/dist/predicates/bigint.d.ts","../node_modules/ow/dist/predicates/boolean.d.ts","../node_modules/ow/dist/predicates/array.d.ts","../node_modules/ow/dist/utils/match-shape.d.ts","../node_modules/ow/dist/predicates/object.d.ts","../node_modules/ow/dist/predicates/date.d.ts","../node_modules/ow/dist/predicates/error.d.ts","../node_modules/ow/dist/predicates/map.d.ts","../node_modules/ow/dist/predicates/weak-map.d.ts","../node_modules/ow/dist/predicates/set.d.ts","../node_modules/ow/dist/predicates/weak-set.d.ts","../node_modules/ow/dist/predicates/typed-array.d.ts","../node_modules/ow/dist/predicates/array-buffer.d.ts","../node_modules/ow/dist/predicates/data-view.d.ts","../node_modules/ow/dist/predicates/any.d.ts","../node_modules/ow/dist/predicates.d.ts","../node_modules/ow/dist/modifiers.d.ts","../node_modules/ow/dist/argument-error.d.ts","../node_modules/ow/dist/index.d.ts","../node_modules/@discordjs/builders/dist/messages/embed/assertions.d.ts","../node_modules/@discordjs/builders/dist/messages/embed/embed.d.ts","../node_modules/@discordjs/builders/dist/messages/formatters.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashcommands/options/boolean.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashcommands/options/channel.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashcommands/mixins/commandoptionwithchoices.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashcommands/options/integer.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashcommands/options/mentionable.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashcommands/options/number.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashcommands/options/role.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashcommands/options/string.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashcommands/options/user.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashcommands/mixins/commandoptions.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashcommands/mixins/nameanddescription.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashcommands/slashcommandsubcommands.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashcommands/slashcommandbuilder.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashcommands/mixins/commandoptionbase.d.ts","../node_modules/@discordjs/builders/dist/interactions/slashcommands/assertions.d.ts","../node_modules/@discordjs/builders/dist/index.d.ts","../node_modules/@discordjs/collection/dist/index.d.ts","../node_modules/discord.js/node_modules/discord-api-types/globals.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/permissions.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/emoji.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/_interactions/responses.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/_interactions/base.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/_interactions/messagecomponents.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/_interactions/ping.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/internals.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/chatinput.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/contextmenu.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/_interactions/_applicationcommands/permissions.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/_interactions/applicationcommands.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/interactions.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/sticker.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/channel.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/gateway.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/stageinstance.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/voice.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/guild.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/user.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/teams.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/application.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/webhook.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/auditlog.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/invite.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/oauth2.d.ts","../node_modules/discord.js/node_modules/discord-api-types/rest/common.d.ts","../node_modules/discord.js/node_modules/discord-api-types/rest/v9/auditlog.d.ts","../node_modules/discord.js/node_modules/discord-api-types/rest/v9/channel.d.ts","../node_modules/discord.js/node_modules/discord-api-types/rest/v9/emoji.d.ts","../node_modules/discord.js/node_modules/discord-api-types/rest/v9/gateway.d.ts","../node_modules/discord.js/node_modules/discord-api-types/utils/internals.d.ts","../node_modules/discord.js/node_modules/discord-api-types/rest/v9/guild.d.ts","../node_modules/discord.js/node_modules/discord-api-types/rest/v9/webhook.d.ts","../node_modules/discord.js/node_modules/discord-api-types/rest/v9/interactions.d.ts","../node_modules/discord.js/node_modules/discord-api-types/rest/v9/invite.d.ts","../node_modules/discord.js/node_modules/discord-api-types/rest/v9/oauth2.d.ts","../node_modules/discord.js/node_modules/discord-api-types/rest/v9/stageinstance.d.ts","../node_modules/discord.js/node_modules/discord-api-types/rest/v9/sticker.d.ts","../node_modules/discord.js/node_modules/discord-api-types/rest/v9/template.d.ts","../node_modules/discord.js/node_modules/discord-api-types/rest/v9/user.d.ts","../node_modules/discord.js/node_modules/discord-api-types/rest/v9/voice.d.ts","../node_modules/discord.js/node_modules/discord-api-types/rest/v9/index.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/template.d.ts","../node_modules/discord.js/node_modules/discord-api-types/payloads/v9/index.d.ts","../node_modules/discord.js/node_modules/discord-api-types/gateway/common.d.ts","../node_modules/discord.js/node_modules/discord-api-types/gateway/v9.d.ts","../node_modules/discord.js/node_modules/discord-api-types/rpc/v9.d.ts","../node_modules/discord.js/node_modules/discord-api-types/utils/v9.d.ts","../node_modules/discord.js/node_modules/discord-api-types/v9.d.ts","../node_modules/discord.js/node_modules/@types/ws/index.d.ts","../node_modules/discord.js/typings/enums.d.ts","../node_modules/discord.js/typings/rawdatatypes.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","../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/@types/ws/index.d.ts","../node_modules/@discordjs/voice/dist/index.d.ts","../src/core/voice/djsadapter.ts","../src/core/voice/distubevoice.ts","../src/core/distubebase.ts","../src/core/manager/basemanager.ts","../src/core/manager/queuemanager.ts","../src/core/manager/index.ts","../src/core/voice/distubevoicemanager.ts","../src/core/voice/index.ts","../src/core/distubestream.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","../node_modules/execa/index.d.ts","../node_modules/@distube/youtube-dl/src/index.d.ts","../src/plugin/youtube-dl.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/keyv/index.d.ts","../node_modules/@types/http-cache-semantics/index.d.ts","../node_modules/@types/responselike/index.d.ts","../node_modules/@types/cacheable-request/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/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/pretty-format/build/types.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/json-schema/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":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","eb75e89d63b3b72dd9ca8b0cac801cecae5be352307c004adeaa60bc9d6df51f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","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":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"b09ed0465e2c4244a8225c322941182fbd64101dac77c76ea96ffb3797364937","6d6b07e437b620687741ea220c757e794bf218caf4251315b3e56e2e362370e1","4045e7e1708461cebbe1f34edd75fd8d9ce85ec4183dffe9dc4e7fbeca352465","eabab93ca9a786745af72195153280e883d8e36df9829ecf8b2f539824d042be","601baee82f99ecb4cba48bb6bf2b0203d29b004da3fb3e996a89f4a33872ab53","681f35c141c7a6201d5ffc038fbc28e46fb7a8702fc52b29d2d2dc7ca03328c2","7cf6119b61f357510575f1f522f443e26738b339d0475d27b5c56e00ea4d4a74","d0d504c82b2a5d2bf48b951a5502ac7284ed974e3249a4fd1c795522c11d9a0d","77c4ab3bd29fe95f4bea93af5851aa08146db8af8fb2548114c09aea838e77bc","168eef670afa53e786ccb6afbf3cb78457ff6cc90064e80f0bc5da96cffda665","1889afe70a4e2588879217e78d1b8d741278ccf58610d0044d88a1b8cecaf588","7726d36153de5f74db7f484f0dd9a7baf5446e1cc598815c0ddf5e3f156966a2","9b39acb572930d9093cae87ebc3d1cac76f85d3959c879d198e41af727d05680","1b5fcebffc599162f32f0cb5f9ce6dbe7c0a47e676c81717e3a6f788bc739c5d","018e8fa83db6e4bc72a9b7ae59114457883303ac22f3a04d7b807347542b1dd3","fef0f40e32a9e21e58a8ed60607caa0037e55c4c6fe3c842a5c3bd54888f9afa","f81a310f1755bc55ca8e32f85a534dc950a77f12bba02d54c43e268a685cbe56","9becb185dc91f570f6c7899cbad4d4ba2dc919366198ddfac4d8c9968e550af5","e03985b2e03f3463cf9c28774fa2a1150588ed2da3c529bb03eb9b883e9a5984","d110ef7cb005b60066855a3d0613dcb33e78c88ab48f1a94be49d8670d9b5496","9dca03e56594dcb6da7ec0062cbdd48d156c9a9b0a8fbbf6c90b66ff38ebd2b4","236a8048bc96944178f7459a0533cc3002e4f923a5f9bca88834d0d2a9290483","7c1263dabaa6f33f7dc6d226ecdc57b445e0d37466416cb830d6fe9ad98bfb09","355e5ee195122c2fa0c595859d8ca3ff0ccd7559d7f2d658043a6ed3df8ca385","a18d84764f9d2578f1df7c85f7cf6dbc7b70eeece874c144232bc2346f0eb2e2","ff23e142558a772c5105209c6693ddfd7b1729816f2de96445c695a6382826e6","f29e54511f37f6b0c8fa2825db6498afb9ffe2ab828ea6e692b68529cdba7482","a3ab8e78dcd6d2530c79d6a1e32f8b373e1755c6c1de30991bfed619790272d1","14dc7a4905d3efdbd48a308235dd845c65d6fb11900206c28c2458926197dafc","3134088754c10c988c58ad5cc63b6746e390d72c14a89d73a56100656925b532","2d90e07aed4760e7f72ac6a56c95adb8a9a183d5069d373344cdcd0586387c38","f5f91e2d5b6def18b59927ea5d7f486610a1110544738ad7d829c027182b009e","8817e5c6683a55dc63a7c5f94e1952a3897502127a7ff723928f9e2eed6642e9","573d601ccde6584973bdafa36cf1ab13ab2c6b29b77bff206f3d7a072260acd1","24d01508ba2c2f43d1160aad262ce6456e14eec7a7b55409a067418c39c50bbe","fa51e795c197f47e1637261e029249887cd04c36ca9b811d08af8604d8691dc8","e3c9ba3e51df8b583d78fae95aa165cbbd6f22e5b8ab39812af4dcbbb462b4cd","48400d03a4592825229ca1007145723c3245d650175c52342f53ba33ebdc93ed","469dccf4d7d12c4b6e1f5f237c76d9fe3efa2d03840ca04f2c3ac8d376f7ff19","62a25c0dcfddb1f82f0186f21c1d5aee323bc9d9dd2a60860d4bc543f6fb68ce","e6c450d02573f08e0b7253cbfadd93855c2353344e38b0681c06d44c3caaa6a3","eb085129eda219aaa6879af66bce947fdeb07f4dd4596dbd0b9f868884398073","301c604c264389f8f6b4911830488dade60db491489c53b8e7f782616e2b9385","0c89aa22ce07701d1ee12be114155464a8db3c6f04d30ec0a5eb158812564262","bad7ce18863ea540ea1b6a908f14bb407eeb8ba629f5daed791740cf6512c10e","b893d36e0749c5dd2b8e278b4e2c6d05d2f81707a56ad76aedb8f7943308f3cf","d9de6be7ea546933d744a8f6c222ce18f840a68cddc8eac8c5a4af37fbc6d802","06511a15f80ee05b40d987fe15532069416e8276d6cd0b0112e6bf058c975ffe","880787c9fb1ef2e540e1f3316ef53d3fb3ce65fc286afc7a060532e8996d475d","7664bc39c9085e161f5f6f8f647ceffe26418a98a3f2a4c381fdc755be4b9e64","2cfbeb3885b75d97160fee31a23f4e5d1508cb2af1ce34ad98741b38a4b253b9","0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"9acfe4d1ff027015151ce81d60797b04b52bffe97ad8310bb0ec2e8fd61e1303","affectsGlobalScope":true},"43978f18d1165eea81040bc9bfac1a551717f5cc9bd0f13b31bf490c5fcdc75f","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","ad4b60488fb1e562bf375dac9299815f7028bf667d9b5887b2d01d501b7d1ddd","246341c3a7a2638cf830d690e69de1e6085a102c6a30596435b050e6ac86c11a","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"aa8fe22e10f78a67b2ffbcc614b45fe258ff9e71d53ddb56e75fa7883c530270","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","fa9859478a480a6dfe625d204d5a3a38810b60933ac2b36ba77126cace1d44d3","b287b810b5035d5685f1df6e1e418f1ca452a3ed4f59fd5cc081dbf2045f0d9b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"f3e8bcce378a26bc672fce0ec05affabbbbfa18493b76f24c39136dea87100d0","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","cd4854d38f4eb5592afd98ab95ca17389a7dfe38013d9079e802d739bdbcc939","94eed4cc2f5f658d5e229ff1ccd38860bddf4233e347bf78edd2154dee1f2b99",{"version":"e51bee3200733b1f58818b5a9ea90fcd61c5b8afa3a0378391991f3696826a65","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","e70339a3d63f806c43f24250c42aa0000093923457b0ed7dfc10e0ac910ebca9","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","d7838022c7dab596357a9604b9c6adffe37dc34085ce0779c958ce9545bd7139","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"a279435e7813d1f061c0cab6ab77b1b9377e8d96851e5ed4a76a1ce6eb6e628f","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4","b810390059fc34122556c644f586e7a2b4598ded8afe5ba70bb82fc2e50577b1","badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"e704d7faa97765900963ac1ef5c675cb4c354f2a7fc9fbc104052e14bd65d614","ee4c2b821cdb6bb1b2ee139f8b39c3090b85ee9f21ef0c4e6da85ccc37c27190","abf86bf93468ee47bb82ef281ede349a9a5cdaa79f7623cb0c38b3b8f4d6d16d","b3adea08320fa04c6e67b5a2571f2b1835cbc09d3a1d9f9491e248ddd523ad80",{"version":"febefb735835bcc7c7f512a9ac6583d39e60b77a381a6ebfe5d065893d931f44","affectsGlobalScope":true},"869121668002b9cf188bba1b107acd7ee744c9446e66a1449dbfcc5bca521f9d","8219de3b0d8d9562babc19fe66d6d9b06a259aec7728b0ee3d05c690c0bc7ebd","523650e6460edf906889a51cd3996350e3a072ab81445b8703ad712406f4e86f","43726bb507c00fad304764a0b1e7d1e1e2485693d5748565853b84bcc76eae2c","b00a6a38b27ac8da6d1f290fcf91821a0ea76eda17409a6b776584bbf323b928","e0f585012eb7a61df9c139924d46f178a762ebf0a4f32e22656482891278f048","c2389f38d4f97b0ede032aee00627816037dd362d66150436245811bb9de3b3b","33babe20c9adb21832bf548abd2e71fbf12d2ef7712c0c77f6dd58d80cb42650","0bcf96ec816d5f3d30aac24de98373c7892724934971cc6e81c3318b6124245b","1e859aa44b6cb8edf1b42b38f5b45d7a4d4b7c5d157537a65ad9d6b38227321b","c5d5f4d1c61ba66e03a1c5dee152ae53e7f956f0a4ac867d42fedd0b222e8ae5","771043a81c343f37b3ca003c52639eea34b759cfe603ea9ee500748869d1db19","66847422c47f51670aa3c4a63c36b03e8b350c47b88cc3a595fccc6fcb1e700b","6373a6a0129bfedb2e2ffa1858a813137fc4656a01ae6973a86778d20fd4647f","eb7fbf4e57b111b45002e4b50fb2bf0f3c8267a5a4bdd5b3e1142fe198ab4797","71ed5df98c13d32d55e2941ac3951408cf56d636dc4d3e064b3fb99804c69d06","bbfdccb50fbe35e3cde5b4cd4a7b86a2694958da28a085153c0dc9753d89427e","36c05e7b3586aefb636d84a555dbec0055c85d3955ff2c388656fb6a914d5830","b7a81d9ddd3fcf7d4154b570c3f9d25e5095bcfd95fc2fd33ee89c30d4785f19","d103de0a2913b9441f245c70582cb5f94f62534d52470f854addf9bee999d826","9bd59851e397abd2bce281c8841510a96907bac3592291403400557f30d68efd","0fcaba280a7fb59281c01e7b39f2830187eabd0664bf8a8da465fa85955aac15","c956baa533de1c7d04f16c941c962f3d81f3d2463ac1ddbc76b6236a2271aad5","7cb93870a50a26953ab4ce10abe37a3722ce46aa56aa7606de3d9fb0ae0c7cab","19e20dff584ff4da2d0740ad9bc3acac618350764d8cb14ef104f1b9d07d7f17","6790ec7df08e8eaa46bd62dc4e2ace6f84e6035011c806313dc38c533dc2a5af","7ca52cabaaef26f719c4bbd54faa88fe391252fc5a2b7de2388ae872f306addd","84c013084535dcbe6edba14e9783ac43fdb6dd9f2d8f3517eee15375c780eeac","004142d65d3fe8f9eb7c98d25a72a6a1b756e7aa1ce2a29ef79ed6f75362b058","96a4e37864153ffb215a3b562e237572df79770a1ccea9e121a2a9c6a2b7c1bc","acbb1e9d529e1d8899ec719b76bcd1d7db080e00cdbb17cbf067b932f3ce24a6","679a500b60fdb879af3ff20dab0bc5937098dd1ea5b75f786c672fde09faaeef","035c74cad659923dd64bf6d84038675b352adca39eb1db2c5fb2aaad706ddb06","a15147866807eff433c82a49f14722fffae34d236b8209d2fe482e01d17827da","bd32eb2524c83f21252f825296b82bbe9861c006becb899bd65e0e3ccfef27b3","8700a6edece324a740e8c4814e066a28b59a6f82ae411fa546697ae0f160bab5","a3646c068d83643c687a9a774e4601a5859f29ff8524fdc2107aa309c06e541c","bf745adef30390f9ce2fb2e1289ead832d7cdc0e8b24a81c1466aba67146aa2e","f5c28deb6a28f159a47d235572232d42ed0e6bd8defcb8b1ca060e5e5a922949","3f7e2c3e68f5608b4ebffc2d6b7b9f241237bf4999b46c595deb32fd961ea936","61b89bcfa97b71163088a68c7a2c4236c241ef36bdd49e57d58d50ed55ecee97","c2a7c738eac005906514dcd53803f03196adbdc07959c22540a058edf45dd78f","f9eaefa84f17bd2eccdb58b2b315299f0a00e9417a0235766061233695ff3f4f","2d1ea98405903025396cba227b2ee05c43f005f83bce6ca33afe37759e691378","731d8cd4570c24819b660a60bd89e0e1f12b6e512c23827458c667a7cdb0a49e","1143318400a0da3b23951a6ec8e5ba7f787d8603064a02c9d023f6dc383bf709","7a7c3a30c1040c027c68951441667576bafeb769c1bbd1119dfe35f97d027506","d280c3b34e25d02998825aca95848a73550edc0e6cc9d7e3fb59fab7caffd023","e8b405807261832262e75fc6e511b912267db4d66b52a6319a906bf273458e61","17fd39370a6ff62e85f93b571504c0f458d22fdc0618bf8e00550375a2b8e593","b5e6514e67caeecb665d4df53669951c672de30abd1aa10a1c1da98c7b9f0de7","1d4127595cdf32eff6baa0eb1361902820309231c8796e81c61a9794a62ea23f","5e42bca6b52fd095640a945f0ed429ebda6ab011d400f0e74287d37e55ad7984","b04bbf66d68477ed776a5f0fc7de26c4e6ff71474341b3566531177db5befe21","25304de59a5dd68db6ff329ba711fa6139b25c16fb45db8fd9009875205d8e0b","acf43834501c92da619d35679372c53d08a135fce5de10cc04e2f54c07134ae1","bc8f5e3c72bcb2e68e2feb272c8312b81fd0ba7417e2993eb569aa9aba05661d","ef275855066eb67627a2e8e388226fd510824d27d2a8f5555251fe096a9def3e","3b8ab6d861339b4c45682219429441534c00abd7f23fc0714e9326213669d35a","74ff64ddbb6c72565b2ffc98652f78c3895cc40c8264ed0881ec1221e759de18","83cf78cb96cbe2cf84d7acbb777345919e79d1357bf051bd5c1da1e7d85b755a","40c1a3ed908790d2d173914c88721ea4182cac8a6b1e5e13ef268a82404828c4","8b27c6ae71f8849874f800e49d14a98c92bb0ae54e0a79d6ae617063ba2a6e5c","ce6fbdceac62521a6f474355eb2a0b85446f7dd7437ce59eed9ac9ced059d4a0","466e0434af11422a1621060ca2745a4b94067076065b6e0c0aeb874c6eaa9a63","2b1177d4681eade2485edf0433bcd0037fbd2a7e6851c9fa7d3285056d30193e","323c2d2acc276d554fff791a55433159d117aa9662ac861090a2426fa1d01ab2","ecb626a33e299fc633fdab872d726f7de7abe01e7dade946a7d0b2572854aa0a","b66bda369763090577e770ab5ba3adbaba74f25b2560d5131b4448a03e004f89","9de2b351d62216e6b894c2e8ccb9b1a44ba320afca185d071ae1e63e608b8d8d","6a1a11860069ab718960e14c936567b39e4c66d8e650e94ba4d8da60415f0a33","84f576c5d9942a70efa2b4d14c8a805134f0bb3364535964b6d9eddf94219408","84d0c690923e92fa502a2463c099f3a6a272d2f3ba3e6dedab82aa30c3d069d0","cf49d08267c66f93e5e86e2e0137f85220e525f57fa93da5b3510dae11e6ba6d","0f988bd62f9188817239c3f2793995f642aa24f6e676296777e817fae7e8a5e3","bf5b753c3de36b9fc1ec7748afef5e3c2299541511ebf89839a763d447212785","43f472cb321a6890bdd2105fee0e17a2238a3e0ea4e825d4b88ceef71c48aa33","0743488e9a11f75b41872bed19e91eebfbe2ba53df97d48f6bf2df354f1453ff","4ad0d53c2723cfa0cb9f239a5ce785c4150914ac9b20f4b130af493a2d6cb80f","85215fe47f360115d887803b719cfc21556d6a9eca05130d9ed2139e547cfd5e","b3c376d21b877fb48aecb25515ae535c3ac2c032f586f5319e4e9d78a7afce3c","5987793382283cf037dac3c5198476ff89dc82a6f26f7eb16e8647f704d5e779","02eb42f87d0258ba9ae3c957d219d23460880e4279f953dab02b3075cc016b24","e98a91dd20d13ef0b5244f6ea56437aa50bd6550eb610efe591143419cf364cc","54013f04a2c25ca05948654f2f84c82ad917e98629f63b72976b899052597c5f","e8249790482aa1c3d02dbb35f7e50cbe70003625f4a17e7b29c69950c8f3ce31","9c02c61aeae0e480db66306644351096850565b222c971c1243a42d744250183","02319a61bf9b658c3d687bc6c6f2973d1f67206d2b92c945db02bcaf90dda43a","144bbeaa8768091fb084714259d58cec25fc7a70d697fa26a73433718830c5c3","77faf4fc16b0db0f6485cec37340693fec8fb257708a44d297dc4e54ac6d29a0","3ff4fac83d613e223b8b14304c5471b32bf4732efaad0f928913605689108eea","4f9a7ab6c9a64a200e15282d0fd2a124a60f74456d16885c13b78b915d7aaa28","c856ec3c2dbec1d0dcb775bb34ea04d758e33694a397f551e6da577b2966925b","6f05514aadd26889f3158a8b7a2b3a269388debc14516384a280b607ccb96ad2","30ff4e987ccdded3908dd43f0907dfe7ce4f6dedd56e3e4734d69a9aa19405f9","685e7bb879b604b89174678dcb86cacba129b510294dd0f835f64ecba29139b9","eabab93ca9a786745af72195153280e883d8e36df9829ecf8b2f539824d042be","7477ab2b1a9a28a2cb9467073d61b7753c1f74defe5142ca690ea696d1968a28","681f35c141c7a6201d5ffc038fbc28e46fb7a8702fc52b29d2d2dc7ca03328c2","1bcc518782fd7e8c494f9e7e1610db255f3b5f8837bec6f431354682ca817162","6a122c58351557c40b66aa3bb1053ca80456fc2b1962bc7706b6e663d0cd25e3","d0d504c82b2a5d2bf48b951a5502ac7284ed974e3249a4fd1c795522c11d9a0d","168eef670afa53e786ccb6afbf3cb78457ff6cc90064e80f0bc5da96cffda665","cdb9451988aef334a797bc31eed3235d7b471a6e013bd2ccc92fbf89a535f4d7","4ec87592456b1fda9baf541ae8ca04026bb5a77dba84b4cc69f6fb6b995201bb","d91ebb09c2ae0cf320b66c42db3811e4cc8a8ebfc63c3b1e0ee0085cf1fa51ef","b044fccf84b0f5c7cd8a1800a2ef0a7b740c062245823ce009265f4db3942623","e30c9d4035f380e9bd0df43cf6faee9e70d3016622a44f7a96daa7c9049d0d72","c292ebc6194ebd86169cfb13c7c3d793aefd82143bf6e2393bcf9f9969d2b6c5","9b39acb572930d9093cae87ebc3d1cac76f85d3959c879d198e41af727d05680","778cb8d2de6599aff152b029e9bac5122221dbc8f16b64525d035928005ccf42","018e8fa83db6e4bc72a9b7ae59114457883303ac22f3a04d7b807347542b1dd3","fef0f40e32a9e21e58a8ed60607caa0037e55c4c6fe3c842a5c3bd54888f9afa","f81a310f1755bc55ca8e32f85a534dc950a77f12bba02d54c43e268a685cbe56","9becb185dc91f570f6c7899cbad4d4ba2dc919366198ddfac4d8c9968e550af5","3856293778528ce4390b8dd604f3026a83b65953b97c037aa12941440d249bd7","d110ef7cb005b60066855a3d0613dcb33e78c88ab48f1a94be49d8670d9b5496","9dca03e56594dcb6da7ec0062cbdd48d156c9a9b0a8fbbf6c90b66ff38ebd2b4","236a8048bc96944178f7459a0533cc3002e4f923a5f9bca88834d0d2a9290483","20e4d74d06c6e3fcec3c011d8f040163233f6d7a25802877cf8e6617cb8bcb64","355e5ee195122c2fa0c595859d8ca3ff0ccd7559d7f2d658043a6ed3df8ca385","942bb675b74bd5c81493e1e3955ffb6afce78e8e57bfba590d07459065c6c633","2b087503717ca74f5e6bc65ea5ed97e23a30eea78de424a52f980d9e16184a15","f29e54511f37f6b0c8fa2825db6498afb9ffe2ab828ea6e692b68529cdba7482","52bda44b3ad70cdddadc8b25026bfda7a9e4841df765aca63248639fbe3d0ef1","14dc7a4905d3efdbd48a308235dd845c65d6fb11900206c28c2458926197dafc","3134088754c10c988c58ad5cc63b6746e390d72c14a89d73a56100656925b532","2d90e07aed4760e7f72ac6a56c95adb8a9a183d5069d373344cdcd0586387c38","f5f91e2d5b6def18b59927ea5d7f486610a1110544738ad7d829c027182b009e","8817e5c6683a55dc63a7c5f94e1952a3897502127a7ff723928f9e2eed6642e9","00f78a355a91d468fbe9df8b06ca28c9f0a9ce735591e07ca28d8ceaeb794517","24d01508ba2c2f43d1160aad262ce6456e14eec7a7b55409a067418c39c50bbe","fa51e795c197f47e1637261e029249887cd04c36ca9b811d08af8604d8691dc8","e3c9ba3e51df8b583d78fae95aa165cbbd6f22e5b8ab39812af4dcbbb462b4cd","48400d03a4592825229ca1007145723c3245d650175c52342f53ba33ebdc93ed","469dccf4d7d12c4b6e1f5f237c76d9fe3efa2d03840ca04f2c3ac8d376f7ff19","62a25c0dcfddb1f82f0186f21c1d5aee323bc9d9dd2a60860d4bc543f6fb68ce","e6c450d02573f08e0b7253cbfadd93855c2353344e38b0681c06d44c3caaa6a3","eb085129eda219aaa6879af66bce947fdeb07f4dd4596dbd0b9f868884398073","301c604c264389f8f6b4911830488dade60db491489c53b8e7f782616e2b9385","0c89aa22ce07701d1ee12be114155464a8db3c6f04d30ec0a5eb158812564262","bad7ce18863ea540ea1b6a908f14bb407eeb8ba629f5daed791740cf6512c10e","167f2d017527f81a3fef64dad1aa032b5da9cd7e7830c770af5c6c44a5098f5d","d9de6be7ea546933d744a8f6c222ce18f840a68cddc8eac8c5a4af37fbc6d802","06511a15f80ee05b40d987fe15532069416e8276d6cd0b0112e6bf058c975ffe","880787c9fb1ef2e540e1f3316ef53d3fb3ce65fc286afc7a060532e8996d475d","d7a041dfebb4e5ab34e9a6771436bd96e9ad7c42728f89a87a0d77dcab766f56","81e216c5400a56db6cc818cd7efa86c7601431ba5ba41dc57f962f1dbcb4ddc4","37cf7c1108e9500b9cc6e5d48f8ac5e054b4751e53c12766510f63a3175887fd","6297ecc7c226de0389f9b7cdca5f8d8b2db54b5a9e39098dddfd09a5017d6684","fcede5148e973ba9ddeaec316955b19fc77568ada5aef66ed50c132c765ce310","498f94deecc8eef4f56768f37014cde4300fe53b0de6570505839bf87c2865a1","f4ffa5610b215835565d6e450e85ee2bb7fa690947ca544a087a599e32055569","6986ee58ebf74e8e869436c8a5c16ac207be092b159371c2dae49d0f3041ba3c","83452b59382bf0a05d35e86db342f39b9c3664daed38f5dbce3603364e7339a3","40d2408eb17487d927c1a35fc21b6266b9429d5d10b609898c4fa250aff92dd1","79aea5e1347069b4aeca1b6656b337f39619e39ec27ac11a4539d0d5dbea4385","0a4132e4fd0a9cd38e43bdd0d65cf2344e0a1dc5305ded22bac9cda2bb9e0a74","b13715eda434461367e0dc0d7374f313631e02b3fd5b03a299ac6b223312b802","c6196a8bb53c3bca8185c25a4319c7a60a3614b7b0475621c561e89860a4df59","7001d2b80d3339eb8e77d65f1c67451f732744877a1e96c4a992638fcce81842","3103df94f61695e93f42896943943f8005a32821ce2ccbc1233a78c27ac82474","bc81aff061c53a7140270555f4b22da4ecfe8601e8027cf5aa175fbdc7927c31","9c9faeae72431ddd951b3897a151c7ff31b9f0ce9b53e9b476a8342e339d1b61","e734a1bd1ef70c338f191494f9a68c3d773772def753410e0f2be66d30be2720","ea94fc4bcdec12806a54c720824881c019d09bd2768674ac7d8eec77d07fcad8","e2edff37e74c54d6292dc82246ef4ec2ec4b7ff2f4fc26a6be5fd4976698d803","eaca442e82ba2de3dfb3726c08f1edcaf294ef53d3de927f48250978d2e6527b","5288d536786bcaa0b60b5685af31205047dcf0615e8728491413f37cfeca7c95","adf35bb26ba990d31d56cbaca26065945a5b61da3ded825d76154a7e71562db0","8a486df92dd40e1d4328bc9c43de551882f471c5f9a1a38e8e95483f1722a3d0","8796565c3f8e80152aecb23d6b7a270548adf1f875baf02342c2769b5b2a6b01","27ed9771f59ff0b452392c6a041ac81031b7fdb59218ebc271a40153ab4218a5","8e9b24dff959c9218a5cd0b05db92e5d3b8586cc9c80642eccaf3d0ee4da2bf3","f83b503393fd41f2b20ff09e48dae7b702800b5f48a171cf21edd51e8151cc2d","733555802d5933a55b9537f27080e6807712262ef1ba149d7a20987ddb4e9f76","13ecd737d18b855797cb1ec2ae9b4a2af259a86b472c98eb083c58622611f328","b7ec2127f3506a3010bcf159e8d9d56a70decb9a2b45e5a46dfc70b665303af0","d3d7b71a1980ad431ca3ae9bf1bd98eae99d922aa7306fcf50f860dbf127dfef","df563ba4312d3a8805ba562826f9a4b5ccc1141f413a5fe226c5e6b6d24099ac","ef69fbf8d8f3c08a94d375f474fc06a1c5a3ed88f8f05ac7e282ea047fb94cf7","91081606fa6da5b30d500f031c7a97a2d4e88de3e9cf6e1beea22d5b3b2dbf84","088703b7810394a5af823ac753cca116931df81a97183725ae1e2c4e6038268d","1347d3dd49acf0fc17720443eec35492ffb54ebb178168f1d1719336976d4b74","449543622df3ca5d450faf4b5e7276f0ac9fa7deef649fafa80107d7009873b3","62c1ad137b5d8fd4a8eb581d119190123aab9681843927c690538e63320f6dca","211f8f312bee75e48c0141734f5ff0070edef85084be2428e84565fb04405e97","fd34292e37ffd811aa6eb1e9f6b37f36a1f6810f46c3f514ad0dc5c11add39cb","230511d45d5aee3c0632fbb3a683cb564034c64091cdfc725b2d349c8ffbb7fa","f82348f8ac4f637d6ad76ef5d45577ccc0c59fbd25d8c44d55349a71a90e195a","8dfed5c91ad36e69e6da6b7e49be929d4e19666db2b651aa839c485170a2902c","4aaf84a5ac87bad3211f041fab85de5cc42e5954c3ed56842faf6f08167e6202","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","3b043cf9a81854a72963fdb57d1884fc4da1cf5be69b5e0a4c5b751e58cb6d88","d0b0a00cf31968a33baeaadf974ce4e5e7edf58cea5288765293f41ba5e72b3a","82169f198ffdfc787fba368ccfad2b2d8ef3712f3c696df94ac13f6884bbbe2d","cab425b5559edac18327eb2c3c0f47e7e9f71b667290b7689faafd28aac69eae","3cfb0cb51cc2c2e1b313d7c4df04dbf7e5bda0a133c6b309bf6af77cf614b971","f992cd6cc0bcbaa4e6c810468c90f2d8595f8c6c3cf050c806397d3de8585562","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","f014d6d053cb1840965952268a589c9e2a74d66c8c88286562d5699350e28e19","66851b263230decb3684072b2cb777f70ea3e52d4489b88f78f185618d4d398e",{"version":"e9f2cdc4e98e73a606ff68c470a8cb4f23cd638c47649d71b90a2d9413102080","affectsGlobalScope":true},"0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","f58599a92d4a64416f4999a4d7241e1647aec2a6249214892722f712a6eedbe0","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","f7e133b20ee2669b6c0e5d7f0cd510868c57cd64b283e68c7f598e30ce9d76d2","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438"],"options":{"declaration":true,"declarationMap":true,"esModuleInterop":true,"inlineSources":true,"module":1,"outDir":"./","removeComments":false,"skipDefaultLibCheck":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"target":6},"fileIdsList":[[138,339],[138],[138,226,227,228,229,230,232,233,234,235,236,237,240,241,243],[92,138,240,241,242],[92,138,239,241],[138,229,230,232,233,234,235,236,237,241],[92,138,241,242],[92,138,242],[92,138,231],[92,138,238,239,240],[92,138,238,239,241],[92,138,225],[92,138],[47,137,138,145],[92,127,138,145,310,311,312],[138,332],[113,127,138],[138,339,340,341,342,343],[138,339,341],[110,113,137,138,145,345,346,347],[111,138,145],[138,350],[138,351],[138,357,359],[110,138,145],[95,138],[98,138],[99,104,138],[100,110,111,118,127,137,138],[100,101,110,118,138],[102,138],[103,104,111,119,138],[104,127,134,138],[105,107,110,118,138],[106,138],[107,108,138],[109,110,138],[110,138],[110,111,112,127,137,138],[110,111,112,127,138],[113,118,127,137,138],[110,111,113,114,118,127,134,137,138],[113,115,127,134,137,138],[95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144],[110,116,138],[117,137,138],[107,110,118,127,138],[119,138],[120,138],[98,121,138],[122,136,138,142],[123,138],[124,138],[110,125,138],[125,126,138,140],[110,127,128,129,138],[127,129,138],[127,128,138],[130,138],[131,138],[110,132,133,138],[132,133,138],[104,118,134,138],[135,138],[118,136,138],[99,113,124,137,138],[104,138],[127,138,139],[138,140],[138,141],[99,104,110,112,121,127,137,138,140,142],[127,138,143],[113,127,138,145],[110,113,115,118,127,134,137,138,143,145],[138,367],[47,74,87,88,138],[47,57,61,62,87,138],[50,55,57,138],[50,52,138],[87,92,138],[47,50,52,57,61,87,138],[47,62,63,138],[47,48,56,57,59,61,62,65,138],[47,48,49,55,56,61,62,64,138],[47,48,62,138],[47,49,57,62,138],[47,48,49,56,57,58,59,60,62,138],[48,49,55,56,57,58,59,60,61,62,63,64,65,66,67,68,86,138],[50,51,52,53,54,138],[57,59,61,62,64,138],[47,138],[47,61,138],[47,62,138],[47,62,85,138],[47,87,138],[47,66,138],[87,138],[47,71,74,87,138],[47,69,70,71,72,73,75,76,77,78,79,80,81,82,83,84,138],[76,87,138],[47,74,87,138],[47,85,87,89,90,91,138],[138,246,277,290,291],[138,246,250,253,257,290],[138,246,250,253,257,260,265],[138,246,257],[138,246],[138,246,249,250,254,255,256,260,264],[138,246,249,260,264,265],[138,250,258,260],[138,249,250],[138,290,295],[138,246,265,266],[138,246,247,259,260,262,264,265,268],[138,246,247,248,258,259,264,265,267],[138,246,247,265],[138,246,248,260,265],[138,246,247,248,259,260,261,262,263,265],[138,247,248,258,259,260,261,262,263,264,265,266,267,268,269,270,271,289],[138,249,250,251,252,257],[138,260,262,264,265,267],[138,246,264],[138,246,265],[138,246,265,288],[138,246,290],[138,246,269],[138,290],[138,246,274,277,290],[138,246,272,273,274,275,276,278,279,280,281,282,283,284,285,286,287],[138,279,290],[138,246,277,290],[138,246,288,290,292,293,294],[100,110,115,127,138,142,244,245,295,296,297,298],[138,295,299],[100,127,138,145],[138,353,354],[138,353,354,355,356],[93,94,138,222,223,224],[138,222,225],[93,94,138,145,204,205,206,207,208,209,211,212,213,214,215,216,217,218,219,220,221],[93,94,138,225],[94,138],[93,94,138],[138,225],[93,94,138,210],[93,138,225],[94,138,204],[138,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,174,175,176,177,178,179],[138,165],[138,165,176],[138,150,167],[138,167],[138,174],[138,146],[138,150,151],[138,159],[138,150],[138,181,182],[138,183],[138,181],[138,186],[138,180,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203],[138,190],[138,188],[138,192],[138,186,195,198],[138,358],[100,127,138,308,309],[127,138],[138,336],[138,299,336],[44,46,138,299,324,336],[46,138,336],[46,138,310,313,329,336],[138,307,316,319,321,322,323],[138,299,316,336],[138,317,318],[138,299,319,336],[138,299,311,313,336],[138,299,313,319,321,336],[92,138,299,313],[138,314,315,320],[44,45,138,299,311,336,337],[138,300,301,324,329,335,337,338],[113,138,299,328,336],[113,115,137,138,299,328,336],[138,330,331,334],[138,299,328,329,333,336],[138,299,326,336],[138,299,326,329,336],[138,302,303,304,305,306,325,326,327,328],[44,138,299,336],[138,299,324,336],[45,138,336],[46,138,299,304,336],[46,138,299,336],[137,138,299,336]],"referencedMap":[[341,1],[339,2],[244,3],[243,4],[242,5],[238,6],[231,7],[239,2],[229,8],[230,8],[232,9],[233,8],[234,9],[235,8],[236,9],[237,8],[241,10],[240,11],[226,12],[227,13],[228,14],[245,2],[313,15],[333,16],[46,17],[44,2],[45,2],[344,18],[340,1],[342,19],[343,1],[348,20],[349,21],[346,2],[350,2],[351,22],[352,23],[360,24],[361,2],[345,25],[362,2],[95,26],[96,26],[98,27],[99,28],[100,29],[101,30],[102,31],[103,32],[104,33],[105,34],[106,35],[107,36],[108,36],[109,37],[110,38],[111,39],[112,40],[97,2],[144,2],[113,41],[114,42],[115,43],[145,44],[116,45],[117,46],[118,47],[119,48],[120,49],[121,50],[122,51],[123,52],[124,53],[125,54],[126,55],[127,56],[129,57],[128,58],[130,59],[131,60],[132,61],[133,62],[134,63],[135,64],[136,65],[137,66],[138,67],[139,68],[140,69],[141,70],[142,71],[143,72],[363,2],[364,2],[365,2],[347,73],[366,2],[312,74],[367,2],[368,75],[88,2],[89,76],[47,2],[50,77],[51,78],[53,79],[52,80],[54,81],[64,82],[66,83],[57,84],[49,85],[58,86],[61,87],[87,88],[55,89],[67,90],[68,2],[48,91],[59,92],[56,93],[63,93],[86,94],[62,92],[60,92],[65,95],[69,2],[70,96],[71,95],[72,95],[73,97],[75,98],[85,99],[77,100],[78,97],[79,95],[80,95],[81,97],[82,97],[83,95],[84,97],[76,101],[90,2],[74,2],[91,97],[92,102],[296,74],[291,2],[292,103],[246,2],[254,104],[255,105],[253,106],[256,107],[257,108],[250,109],[251,110],[252,111],[249,112],[267,113],[269,114],[260,115],[248,116],[261,117],[264,118],[290,119],[258,120],[270,121],[271,2],[247,107],[262,122],[259,123],[266,123],[289,124],[265,122],[263,122],[268,125],[272,2],[273,126],[274,125],[275,125],[276,127],[278,128],[288,129],[280,130],[281,127],[282,125],[283,125],[284,127],[285,127],[286,125],[287,127],[279,131],[293,2],[277,2],[294,127],[295,132],[297,2],[299,133],[298,134],[332,135],[353,2],[355,136],[357,137],[356,136],[354,2],[224,2],[225,138],[223,139],[222,140],[221,141],[219,142],[209,143],[93,144],[207,142],[208,142],[220,142],[212,142],[213,142],[214,142],[206,142],[211,145],[94,146],[216,142],[205,142],[218,147],[215,142],[217,142],[210,144],[180,148],[166,149],[177,150],[148,2],[168,151],[167,2],[169,152],[175,153],[174,2],[150,2],[172,2],[173,2],[159,154],[154,2],[153,155],[152,155],[149,2],[161,2],[178,156],[157,154],[146,2],[160,2],[165,2],[158,154],[155,157],[156,2],[162,155],[163,155],[176,2],[151,2],[171,2],[179,2],[147,2],[170,2],[181,2],[164,2],[183,158],[185,159],[184,159],[186,160],[190,161],[188,161],[202,158],[198,2],[204,162],[187,161],[191,163],[189,164],[203,2],[192,159],[194,165],[193,165],[199,166],[195,161],[197,163],[196,164],[200,2],[201,2],[182,2],[359,167],[358,2],[310,168],[308,169],[309,169],[311,2],[11,2],[10,2],[2,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[3,2],[4,2],[23,2],[20,2],[21,2],[22,2],[24,2],[25,2],[26,2],[5,2],[27,2],[28,2],[29,2],[30,2],[6,2],[31,2],[32,2],[33,2],[34,2],[7,2],[39,2],[35,2],[36,2],[37,2],[38,2],[8,2],[40,2],[41,2],[42,2],[1,2],[9,2],[43,2],[301,170],[316,171],[323,172],[307,173],[322,174],[324,175],[317,176],[319,177],[318,178],[315,179],[320,180],[314,181],[321,182],[338,183],[336,184],[330,185],[331,186],[335,187],[334,188],[327,189],[302,2],[328,190],[329,191],[304,192],[326,171],[325,193],[305,194],[306,195],[303,2],[300,196],[337,197]],"exportedModulesMap":[[341,1],[339,2],[244,3],[243,4],[242,5],[238,6],[231,7],[239,2],[229,8],[230,8],[232,9],[233,8],[234,9],[235,8],[236,9],[237,8],[241,10],[240,11],[226,12],[227,13],[228,14],[245,2],[313,15],[333,16],[46,17],[44,2],[45,2],[344,18],[340,1],[342,19],[343,1],[348,20],[349,21],[346,2],[350,2],[351,22],[352,23],[360,24],[361,2],[345,25],[362,2],[95,26],[96,26],[98,27],[99,28],[100,29],[101,30],[102,31],[103,32],[104,33],[105,34],[106,35],[107,36],[108,36],[109,37],[110,38],[111,39],[112,40],[97,2],[144,2],[113,41],[114,42],[115,43],[145,44],[116,45],[117,46],[118,47],[119,48],[120,49],[121,50],[122,51],[123,52],[124,53],[125,54],[126,55],[127,56],[129,57],[128,58],[130,59],[131,60],[132,61],[133,62],[134,63],[135,64],[136,65],[137,66],[138,67],[139,68],[140,69],[141,70],[142,71],[143,72],[363,2],[364,2],[365,2],[347,73],[366,2],[312,74],[367,2],[368,75],[88,2],[89,76],[47,2],[50,77],[51,78],[53,79],[52,80],[54,81],[64,82],[66,83],[57,84],[49,85],[58,86],[61,87],[87,88],[55,89],[67,90],[68,2],[48,91],[59,92],[56,93],[63,93],[86,94],[62,92],[60,92],[65,95],[69,2],[70,96],[71,95],[72,95],[73,97],[75,98],[85,99],[77,100],[78,97],[79,95],[80,95],[81,97],[82,97],[83,95],[84,97],[76,101],[90,2],[74,2],[91,97],[92,102],[296,74],[291,2],[292,103],[246,2],[254,104],[255,105],[253,106],[256,107],[257,108],[250,109],[251,110],[252,111],[249,112],[267,113],[269,114],[260,115],[248,116],[261,117],[264,118],[290,119],[258,120],[270,121],[271,2],[247,107],[262,122],[259,123],[266,123],[289,124],[265,122],[263,122],[268,125],[272,2],[273,126],[274,125],[275,125],[276,127],[278,128],[288,129],[280,130],[281,127],[282,125],[283,125],[284,127],[285,127],[286,125],[287,127],[279,131],[293,2],[277,2],[294,127],[295,132],[297,2],[299,133],[298,134],[332,135],[353,2],[355,136],[357,137],[356,136],[354,2],[224,2],[225,138],[223,139],[222,140],[221,141],[219,142],[209,143],[93,144],[207,142],[208,142],[220,142],[212,142],[213,142],[214,142],[206,142],[211,145],[94,146],[216,142],[205,142],[218,147],[215,142],[217,142],[210,144],[180,148],[166,149],[177,150],[148,2],[168,151],[167,2],[169,152],[175,153],[174,2],[150,2],[172,2],[173,2],[159,154],[154,2],[153,155],[152,155],[149,2],[161,2],[178,156],[157,154],[146,2],[160,2],[165,2],[158,154],[155,157],[156,2],[162,155],[163,155],[176,2],[151,2],[171,2],[179,2],[147,2],[170,2],[181,2],[164,2],[183,158],[185,159],[184,159],[186,160],[190,161],[188,161],[202,158],[198,2],[204,162],[187,161],[191,163],[189,164],[203,2],[192,159],[194,165],[193,165],[199,166],[195,161],[197,163],[196,164],[200,2],[201,2],[182,2],[359,167],[358,2],[310,168],[308,169],[309,169],[311,2],[11,2],[10,2],[2,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[3,2],[4,2],[23,2],[20,2],[21,2],[22,2],[24,2],[25,2],[26,2],[5,2],[27,2],[28,2],[29,2],[30,2],[6,2],[31,2],[32,2],[33,2],[34,2],[7,2],[39,2],[35,2],[36,2],[37,2],[38,2],[8,2],[40,2],[41,2],[42,2],[1,2],[9,2],[43,2],[301,170],[316,171],[323,172],[307,173],[322,174],[324,175],[317,176],[319,177],[318,178],[315,179],[320,180],[314,181],[321,182],[338,183],[336,184],[330,185],[331,186],[335,187],[334,188],[327,189],[302,2],[328,190],[329,191],[304,192],[326,171],[325,193],[305,194],[306,195],[303,2],[300,196],[337,197]],"semanticDiagnosticsPerFile":[341,339,244,243,242,238,231,239,229,230,232,233,234,235,236,237,241,240,226,227,228,245,313,333,46,44,45,344,340,342,343,348,349,346,350,351,352,360,361,345,362,95,96,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,97,144,113,114,115,145,116,117,118,119,120,121,122,123,124,125,126,127,129,128,130,131,132,133,134,135,136,137,138,139,140,141,142,143,363,364,365,347,366,312,367,368,88,89,47,50,51,53,52,54,64,66,57,49,58,61,87,55,67,68,48,59,56,63,86,62,60,65,69,70,71,72,73,75,85,77,78,79,80,81,82,83,84,76,90,74,91,92,296,291,292,246,254,255,253,256,257,250,251,252,249,267,269,260,248,261,264,290,258,270,271,247,262,259,266,289,265,263,268,272,273,274,275,276,278,288,280,281,282,283,284,285,286,287,279,293,277,294,295,297,299,298,332,353,355,357,356,354,224,225,223,222,221,219,209,93,207,208,220,212,213,214,206,211,94,216,205,218,215,217,210,180,166,177,148,168,167,169,175,174,150,172,173,159,154,153,152,149,161,178,157,146,160,165,158,155,156,162,163,176,151,171,179,147,170,181,164,183,185,184,186,190,188,202,198,204,187,191,189,203,192,194,193,199,195,197,196,200,201,182,359,358,310,308,309,311,11,10,2,12,13,14,15,16,17,18,19,3,4,23,20,21,22,24,25,26,5,27,28,29,30,6,31,32,33,34,7,39,35,36,37,38,8,40,41,42,1,9,43,301,316,323,307,322,324,317,319,318,315,320,314,321,338,336,330,331,335,334,327,302,328,329,304,326,325,305,306,303,300,337]},"version":"4.4.4"}
package/dist/type.d.ts ADDED
@@ -0,0 +1,159 @@
1
+ import type ytdl from "@distube/ytdl-core";
2
+ import type { CustomPlugin, DisTubeVoice, ExtractorPlugin, Playlist, Queue, SearchResult, Song } from ".";
3
+ import type { Guild, GuildMember, Interaction, Message, Snowflake, StageChannel, TextChannel, User, VoiceChannel, VoiceState } from "discord.js";
4
+ declare type Awaitable = Promise<void> | void;
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
+ /** Emitted after DisTube add a new song to the playing {@link Queue}. */
12
+ addSong: (queue: Queue, song: Song) => Awaitable;
13
+ /**
14
+ * Emitted when DisTube play a song.
15
+ *
16
+ * If {@link DisTubeOptions.emitNewSongOnly} is `true`,
17
+ * this event is not emitted when looping a song or next song is the previous one.
18
+ */
19
+ playSong: (queue: Queue, song: Song) => Awaitable;
20
+ /** Emitted when DisTube finished a song. */
21
+ finishSong: (queue: Queue, song: Song) => Awaitable;
22
+ /**
23
+ * Emitted when there is no user in the voice channel,
24
+ * {@link DisTubeOptions.leaveOnEmpty} is `true` and there is a playing queue.
25
+ *
26
+ * If there is no playing queue (stopped and {@link DisTubeOptions.leaveOnStop} is `false`),
27
+ * it will leave the channel without emitting this event.
28
+ */
29
+ empty: (queue: Queue) => Awaitable;
30
+ /**
31
+ * Emitted when there is no more song in the queue and {@link Queue#autoplay} is `false`.
32
+ * DisTube will leave voice channel if {@link DisTubeOptions.leaveOnFinish} is `true`.
33
+ */
34
+ finish: (queue: Queue) => Awaitable;
35
+ /** Emitted when DisTube initialize a queue to change queue default properties. */
36
+ initQueue: (queue: Queue) => Awaitable;
37
+ /**
38
+ * Emitted when {@link Queue#autoplay} is `true`, {@link Queue#songs} is empty,
39
+ * and DisTube cannot find related songs to play.
40
+ */
41
+ noRelated: (queue: Queue) => Awaitable;
42
+ /** Emitted when the bot is disconnected to a voice channel. */
43
+ disconnect: (queue: Queue) => Awaitable;
44
+ /** Emitted when a {@link Queue} is deleted with any reasons. */
45
+ deleteQueue: (queue: Queue) => Awaitable;
46
+ /**
47
+ * Emitted when {@link DisTubeOptions.searchSongs} bigger than 0,
48
+ * and the search canceled due to {@link DisTubeOptions.searchTimeout}.
49
+ */
50
+ searchCancel: (message: Message, query: string) => Awaitable;
51
+ /** Emitted when DisTube cannot find any results for the query. */
52
+ searchNoResult: (message: Message, query: string) => Awaitable;
53
+ /**
54
+ * Emitted when {@link DisTubeOptions.searchSongs} bigger than 0,
55
+ * and after the user chose a search result to play.
56
+ */
57
+ searchDone: (message: Message, answer: Message, query: string) => Awaitable;
58
+ /**
59
+ * Emitted when {@link DisTubeOptions.searchSongs} bigger than 0,
60
+ * and the search canceled due to user's next message is not a number or out of results range.
61
+ */
62
+ searchInvalidAnswer: (message: Message, answer: Message, query: string) => Awaitable;
63
+ /** Emitted when DisTube encounters an error. */
64
+ error: (channel: TextChannel, error: Error) => Awaitable;
65
+ /** Emitted after DisTube add a new playlist to the playing {@link Queue}. */
66
+ addList: (queue: Queue, playlist: Playlist) => Awaitable;
67
+ /**
68
+ * Emitted when {@link DisTubeOptions.searchSongs} bigger than 0,
69
+ * and song param of {@link DisTube#playVoiceChannel} is invalid url.
70
+ * DisTube will wait for user's next message to choose a song manually.
71
+ *
72
+ * Safe search is enabled
73
+ * if {@link DisTubeOptions.nsfw} is disabled and the message's channel is not a nsfw channel.
74
+ */
75
+ searchResult: (message: Message, results: SearchResult[], query: string) => Awaitable;
76
+ };
77
+ export declare type Filters = Record<string, string>;
78
+ export interface DisTubeOptions {
79
+ plugins?: (CustomPlugin | ExtractorPlugin)[];
80
+ emitNewSongOnly?: boolean;
81
+ leaveOnFinish?: boolean;
82
+ leaveOnStop?: boolean;
83
+ leaveOnEmpty?: boolean;
84
+ emptyCooldown?: number;
85
+ savePreviousSongs?: boolean;
86
+ searchSongs?: number;
87
+ searchCooldown?: number;
88
+ youtubeCookie?: string;
89
+ youtubeIdentityToken?: string;
90
+ youtubeDL?: boolean;
91
+ updateYouTubeDL?: boolean;
92
+ customFilters?: Filters;
93
+ ytdlOptions?: ytdl.downloadOptions;
94
+ nsfw?: boolean;
95
+ emitAddSongWhenCreatingQueue?: boolean;
96
+ emitAddListWhenCreatingQueue?: boolean;
97
+ }
98
+ export declare type GuildIDResolvable = Queue | DisTubeVoice | Snowflake | Message | VoiceChannel | StageChannel | VoiceState | Guild | TextChannel | GuildMember | Interaction | string;
99
+ export interface OtherSongInfo {
100
+ src?: string;
101
+ id?: string;
102
+ title?: string;
103
+ name?: string;
104
+ is_live?: boolean;
105
+ isLive?: boolean;
106
+ _duration_raw?: string | number;
107
+ duration?: string | number;
108
+ webpage_url?: string;
109
+ url: string;
110
+ thumbnail?: string;
111
+ related?: Song[];
112
+ view_count?: string | number;
113
+ views?: string | number;
114
+ like_count?: string | number;
115
+ likes?: string | number;
116
+ dislike_count?: string | number;
117
+ dislikes?: string | number;
118
+ repost_count?: string | number;
119
+ reposts?: string | number;
120
+ uploader?: string;
121
+ uploader_url?: string;
122
+ age_limit?: string | number;
123
+ chapters?: Chapter[];
124
+ age_restricted?: boolean;
125
+ }
126
+ export interface Chapter {
127
+ /** Chapter title */
128
+ title: string;
129
+ /** Chapter start time in seconds */
130
+ start_time: number;
131
+ }
132
+ export interface PlaylistInfo {
133
+ /** The source of the playlist */
134
+ source: string;
135
+ /**
136
+ * User requested.
137
+ */
138
+ member?: GuildMember;
139
+ /**
140
+ * User requested.
141
+ */
142
+ user?: User;
143
+ /** Playlist songs. */
144
+ songs: Song[];
145
+ /**
146
+ * Playlist name.
147
+ */
148
+ name?: string;
149
+ /**
150
+ * Playlist URL.
151
+ */
152
+ url?: string;
153
+ /**
154
+ * Playlist thumbnail.
155
+ */
156
+ thumbnail?: string;
157
+ }
158
+ export {};
159
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../src/type.ts"],"names":[],"mappings":"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"}
package/dist/type.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../src/type.ts"],"names":[],"mappings":"","sourcesContent":["import type ytdl from \"@distube/ytdl-core\";\nimport type { CustomPlugin, DisTubeVoice, ExtractorPlugin, Playlist, Queue, SearchResult, Song } from \".\";\nimport type {\n Guild,\n GuildMember,\n Interaction,\n Message,\n Snowflake,\n StageChannel,\n TextChannel,\n User,\n VoiceChannel,\n VoiceState,\n} from \"discord.js\";\n\ntype Awaitable = Promise<void> | void;\n\nexport type DisTubeVoiceEvents = {\n disconnect: (error?: Error) => Awaitable;\n error: (error: Error) => Awaitable;\n finish: () => Awaitable;\n};\n\nexport type DisTubeEvents = {\n /** Emitted after DisTube add a new song to the playing {@link Queue}. */\n addSong: (queue: Queue, song: Song) => Awaitable;\n /**\n * Emitted when DisTube play a song.\n *\n * If {@link DisTubeOptions.emitNewSongOnly} is `true`,\n * this event is not emitted when looping a song or next song is the previous one.\n */\n playSong: (queue: Queue, song: Song) => Awaitable;\n /** Emitted when DisTube finished a song. */\n finishSong: (queue: Queue, song: Song) => Awaitable;\n\n /**\n * Emitted when there is no user in the voice channel,\n * {@link DisTubeOptions.leaveOnEmpty} is `true` and there is a playing queue.\n *\n * If there is no playing queue (stopped and {@link DisTubeOptions.leaveOnStop} is `false`),\n * it will leave the channel without emitting this event.\n */\n empty: (queue: Queue) => Awaitable;\n /**\n * Emitted when there is no more song in the queue and {@link Queue#autoplay} is `false`.\n * DisTube will leave voice channel if {@link DisTubeOptions.leaveOnFinish} is `true`.\n */\n finish: (queue: Queue) => Awaitable;\n /** Emitted when DisTube initialize a queue to change queue default properties. */\n initQueue: (queue: Queue) => Awaitable;\n /**\n * Emitted when {@link Queue#autoplay} is `true`, {@link Queue#songs} is empty,\n * and DisTube cannot find related songs to play.\n */\n noRelated: (queue: Queue) => Awaitable;\n /** Emitted when the bot is disconnected to a voice channel. */\n disconnect: (queue: Queue) => Awaitable;\n /** Emitted when a {@link Queue} is deleted with any reasons. */\n deleteQueue: (queue: Queue) => Awaitable;\n\n /**\n * Emitted when {@link DisTubeOptions.searchSongs} bigger than 0,\n * and the search canceled due to {@link DisTubeOptions.searchTimeout}.\n */\n searchCancel: (message: Message, query: string) => Awaitable;\n /** Emitted when DisTube cannot find any results for the query. */\n searchNoResult: (message: Message, query: string) => Awaitable;\n\n /**\n * Emitted when {@link DisTubeOptions.searchSongs} bigger than 0,\n * and after the user chose a search result to play.\n */\n searchDone: (message: Message, answer: Message, query: string) => Awaitable;\n /**\n * Emitted when {@link DisTubeOptions.searchSongs} bigger than 0,\n * and the search canceled due to user's next message is not a number or out of results range.\n */\n searchInvalidAnswer: (message: Message, answer: Message, query: string) => Awaitable;\n\n /** Emitted when DisTube encounters an error. */\n error: (channel: TextChannel, error: Error) => Awaitable;\n /** Emitted after DisTube add a new playlist to the playing {@link Queue}. */\n addList: (queue: Queue, playlist: Playlist) => Awaitable;\n /**\n * Emitted when {@link DisTubeOptions.searchSongs} bigger than 0,\n * and song param of {@link DisTube#playVoiceChannel} is invalid url.\n * DisTube will wait for user's next message to choose a song manually.\n *\n * Safe search is enabled\n * if {@link DisTubeOptions.nsfw} is disabled and the message's channel is not a nsfw channel.\n */\n searchResult: (message: Message, results: SearchResult[], query: string) => Awaitable;\n};\n\nexport type Filters = Record<string, string>;\n\nexport interface DisTubeOptions {\n plugins?: (CustomPlugin | ExtractorPlugin)[];\n emitNewSongOnly?: boolean;\n leaveOnFinish?: boolean;\n leaveOnStop?: boolean;\n leaveOnEmpty?: boolean;\n emptyCooldown?: number;\n savePreviousSongs?: boolean;\n searchSongs?: number;\n searchCooldown?: number;\n youtubeCookie?: string;\n youtubeIdentityToken?: string;\n youtubeDL?: boolean;\n updateYouTubeDL?: boolean;\n customFilters?: Filters;\n ytdlOptions?: ytdl.downloadOptions;\n nsfw?: boolean;\n emitAddSongWhenCreatingQueue?: boolean;\n emitAddListWhenCreatingQueue?: boolean;\n}\n\nexport type GuildIDResolvable =\n | Queue\n | DisTubeVoice\n | Snowflake\n | Message\n | VoiceChannel\n | StageChannel\n | VoiceState\n | Guild\n | TextChannel\n | GuildMember\n | Interaction\n | string;\n\nexport interface OtherSongInfo {\n src?: string;\n id?: string;\n title?: string;\n name?: string;\n is_live?: boolean;\n isLive?: boolean;\n _duration_raw?: string | number;\n duration?: string | number;\n webpage_url?: string;\n url: string;\n thumbnail?: string;\n related?: Song[];\n view_count?: string | number;\n views?: string | number;\n like_count?: string | number;\n likes?: string | number;\n dislike_count?: string | number;\n dislikes?: string | number;\n repost_count?: string | number;\n reposts?: string | number;\n uploader?: string;\n uploader_url?: string;\n age_limit?: string | number;\n chapters?: Chapter[];\n age_restricted?: boolean;\n}\n\nexport interface Chapter {\n /** Chapter title */\n title: string;\n /** Chapter start time in seconds */\n start_time: number;\n}\n\nexport interface PlaylistInfo {\n /** The source of the playlist */\n source: string;\n /**\n * User requested.\n */\n member?: GuildMember;\n /**\n * User requested.\n */\n user?: User;\n /** Playlist songs. */\n songs: Song[];\n /**\n * Playlist name.\n */\n name?: string;\n /**\n * Playlist URL.\n */\n url?: string;\n /**\n * Playlist thumbnail.\n */\n thumbnail?: string;\n}\n"]}
package/dist/util.d.ts ADDED
@@ -0,0 +1,47 @@
1
+ import type { GuildIDResolvable } from ".";
2
+ import type { Client, ClientOptions, Guild, GuildMember, Message, Snowflake, StageChannel, TextChannel, VoiceChannel, VoiceState } from "discord.js";
3
+ /**
4
+ * Format duration to string
5
+ * @param {number} sec Duration in seconds
6
+ * @returns {string}
7
+ */
8
+ export declare function formatDuration(sec: number): string;
9
+ /**
10
+ * Convert formatted duration to seconds
11
+ * @param {*} input Formatted duration string
12
+ * @returns {number}
13
+ */
14
+ export declare function toSecond(input: any): number;
15
+ /**
16
+ * Parse number from input
17
+ * @param {*} input Any
18
+ * @returns {number}
19
+ */
20
+ export declare function parseNumber(input: any): number;
21
+ /**
22
+ * Check if the string is an URL
23
+ * @param {string} input input
24
+ * @returns {boolean}
25
+ */
26
+ export declare function isURL(input: any): boolean;
27
+ /**
28
+ * Check if the Client has enough intents to using DisTube
29
+ * @param {ClientOptions} options options
30
+ */
31
+ export declare function checkIntents(options: ClientOptions): void;
32
+ /**
33
+ * Check if the voice channel is empty
34
+ * @param {Discord.VoiceState} voiceState voiceState
35
+ * @returns {boolean}
36
+ */
37
+ export declare function isVoiceChannelEmpty(voiceState: VoiceState): boolean;
38
+ export declare function isSnowflake(id: any): id is Snowflake;
39
+ export declare function isMemberInstance(member: any): member is GuildMember;
40
+ export declare function isTextChannelInstance(channel: any): channel is TextChannel;
41
+ export declare function isMessageInstance(message: any): message is Message;
42
+ export declare function isSupportedVoiceChannel(channel: any): channel is VoiceChannel | StageChannel;
43
+ export declare function isGuildInstance(guild: any): guild is Guild;
44
+ export declare function resolveGuildID(resolvable: GuildIDResolvable): Snowflake;
45
+ export declare function isClientInstance(client: any): client is Client;
46
+ export declare function checkInvalidKey(target: Record<string, any>, source: Record<string, any> | string[], sourceName: string): void;
47
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,GAAG,CAAC;AAC3C,OAAO,KAAK,EAEV,MAAM,EACN,aAAa,EACb,KAAK,EACL,WAAW,EAEX,OAAO,EACP,SAAS,EACT,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,UAAU,EACX,MAAM,YAAY,CAAC;AAIpB;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQlD;AACD;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAY3C;AACD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAG9C;AACD;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASzC;AACD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAQzD;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAKnE;AAED,wBAAgB,WAAW,CAAC,EAAE,EAAE,GAAG,GAAG,EAAE,IAAI,SAAS,CAMpD;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,WAAW,CAQnE;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,IAAI,WAAW,CAQ1E;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,IAAI,OAAO,CAYlE;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,IAAI,YAAY,GAAG,YAAY,CAgB5F;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,KAAK,CAE1D;AAED,wBAAgB,cAAc,CAAC,UAAU,EAAE,iBAAiB,GAAG,SAAS,CAWvE;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,MAAM,CAE9D;AAED,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC3B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,EAAE,EACtC,UAAU,EAAE,MAAM,QAQnB"}
package/dist/util.js ADDED
@@ -0,0 +1,205 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.checkInvalidKey = exports.isClientInstance = exports.resolveGuildID = exports.isGuildInstance = exports.isSupportedVoiceChannel = exports.isMessageInstance = exports.isTextChannelInstance = exports.isMemberInstance = exports.isSnowflake = exports.isVoiceChannelEmpty = exports.checkIntents = exports.isURL = exports.parseNumber = exports.toSecond = exports.formatDuration = void 0;
4
+ const url_1 = require("url");
5
+ const _1 = require(".");
6
+ const discord_js_1 = require("discord.js");
7
+ const formatInt = (int) => (int < 10 ? `0${int}` : int);
8
+ /**
9
+ * Format duration to string
10
+ * @param {number} sec Duration in seconds
11
+ * @returns {string}
12
+ */
13
+ function formatDuration(sec) {
14
+ if (!sec || !Number(sec))
15
+ return "00:00";
16
+ const seconds = Math.round(sec % 60);
17
+ const minutes = Math.floor((sec % 3600) / 60);
18
+ const hours = Math.floor(sec / 3600);
19
+ if (hours > 0)
20
+ return `${formatInt(hours)}:${formatInt(minutes)}:${formatInt(seconds)}`;
21
+ if (minutes > 0)
22
+ return `${formatInt(minutes)}:${formatInt(seconds)}`;
23
+ return `00:${formatInt(seconds)}`;
24
+ }
25
+ exports.formatDuration = formatDuration;
26
+ /**
27
+ * Convert formatted duration to seconds
28
+ * @param {*} input Formatted duration string
29
+ * @returns {number}
30
+ */
31
+ function toSecond(input) {
32
+ if (!input)
33
+ return 0;
34
+ if (typeof input !== "string")
35
+ return Number(input) || 0;
36
+ if (input.match(/:/g)) {
37
+ const time = input.split(":").reverse();
38
+ let s = 0;
39
+ for (let i = 0; i < 3; i++)
40
+ if (time[i])
41
+ s += Number(time[i].replace(/[^\d.]+/g, "")) * Math.pow(60, i);
42
+ if (time.length > 3)
43
+ s += Number(time[3].replace(/[^\d.]+/g, "")) * 24 * 60 * 60;
44
+ return s;
45
+ }
46
+ else {
47
+ return Number(input.replace(/[^\d.]+/g, "")) || 0;
48
+ }
49
+ }
50
+ exports.toSecond = toSecond;
51
+ /**
52
+ * Parse number from input
53
+ * @param {*} input Any
54
+ * @returns {number}
55
+ */
56
+ function parseNumber(input) {
57
+ if (typeof input === "string")
58
+ return Number(input.replace(/[^\d.]+/g, "")) || 0;
59
+ return Number(input) || 0;
60
+ }
61
+ exports.parseNumber = parseNumber;
62
+ /**
63
+ * Check if the string is an URL
64
+ * @param {string} input input
65
+ * @returns {boolean}
66
+ */
67
+ function isURL(input) {
68
+ if (typeof input !== "string" || input.includes(" "))
69
+ return false;
70
+ try {
71
+ const url = new url_1.URL(input);
72
+ if (!["https:", "http:"].includes(url.protocol) || !url.host)
73
+ return false;
74
+ }
75
+ catch {
76
+ return false;
77
+ }
78
+ return true;
79
+ }
80
+ exports.isURL = isURL;
81
+ /**
82
+ * Check if the Client has enough intents to using DisTube
83
+ * @param {ClientOptions} options options
84
+ */
85
+ function checkIntents(options) {
86
+ var _a, _b;
87
+ const requiredIntents = ["GUILD_VOICE_STATES"];
88
+ const bitfield = (_a = options.intents) !== null && _a !== void 0 ? _a : (_b = options === null || options === void 0 ? void 0 : options.ws) === null || _b === void 0 ? void 0 : _b.intents;
89
+ if (typeof bitfield === "undefined")
90
+ return;
91
+ const intents = new discord_js_1.Intents(bitfield);
92
+ for (const intent of requiredIntents) {
93
+ if (!intents.has(intent))
94
+ throw new _1.DisTubeError("MISSING_INTENTS", intent.toString());
95
+ }
96
+ }
97
+ exports.checkIntents = checkIntents;
98
+ /**
99
+ * Check if the voice channel is empty
100
+ * @param {Discord.VoiceState} voiceState voiceState
101
+ * @returns {boolean}
102
+ */
103
+ function isVoiceChannelEmpty(voiceState) {
104
+ var _a, _b, _c;
105
+ const voiceChannel = (_c = (_b = (_a = voiceState.guild) === null || _a === void 0 ? void 0 : _a.me) === null || _b === void 0 ? void 0 : _b.voice) === null || _c === void 0 ? void 0 : _c.channel;
106
+ if (!voiceChannel)
107
+ return false;
108
+ const members = voiceChannel.members.filter(m => !m.user.bot);
109
+ return !members.size;
110
+ }
111
+ exports.isVoiceChannelEmpty = isVoiceChannelEmpty;
112
+ function isSnowflake(id) {
113
+ try {
114
+ return discord_js_1.SnowflakeUtil.deconstruct(id).timestamp > discord_js_1.SnowflakeUtil.EPOCH;
115
+ }
116
+ catch {
117
+ return false;
118
+ }
119
+ }
120
+ exports.isSnowflake = isSnowflake;
121
+ function isMemberInstance(member) {
122
+ var _a, _b;
123
+ return (!!member &&
124
+ isSnowflake(member.id) &&
125
+ isSnowflake((_a = member.guild) === null || _a === void 0 ? void 0 : _a.id) &&
126
+ isSnowflake((_b = member.user) === null || _b === void 0 ? void 0 : _b.id) &&
127
+ member.id === member.user.id);
128
+ }
129
+ exports.isMemberInstance = isMemberInstance;
130
+ function isTextChannelInstance(channel) {
131
+ var _a;
132
+ return (!!channel &&
133
+ isSnowflake(channel.id) &&
134
+ isSnowflake((_a = channel.guild) === null || _a === void 0 ? void 0 : _a.id) &&
135
+ typeof channel.send === "function" &&
136
+ typeof channel.awaitMessages === "function");
137
+ }
138
+ exports.isTextChannelInstance = isTextChannelInstance;
139
+ function isMessageInstance(message) {
140
+ var _a, _b;
141
+ // Simple check for using distube normally
142
+ return (!!message &&
143
+ isSnowflake(message.id) &&
144
+ isSnowflake((_a = message.guild) === null || _a === void 0 ? void 0 : _a.id) &&
145
+ isTextChannelInstance(message.channel) &&
146
+ isMemberInstance(message.member) &&
147
+ isSnowflake((_b = message.author) === null || _b === void 0 ? void 0 : _b.id) &&
148
+ message.member.id === message.author.id &&
149
+ message.guild.id === message.channel.guild.id);
150
+ }
151
+ exports.isMessageInstance = isMessageInstance;
152
+ function isSupportedVoiceChannel(channel) {
153
+ var _a;
154
+ return (!!channel &&
155
+ channel.deleted === false &&
156
+ isSnowflake(channel.id) &&
157
+ isSnowflake((_a = channel.guild) === null || _a === void 0 ? void 0 : _a.id) &&
158
+ typeof channel.full === "boolean" &&
159
+ [
160
+ // Djs v12
161
+ "voice",
162
+ "stage",
163
+ // Djs v13
164
+ "GUILD_VOICE",
165
+ "GUILD_STAGE_VOICE",
166
+ ].includes(channel.type));
167
+ }
168
+ exports.isSupportedVoiceChannel = isSupportedVoiceChannel;
169
+ function isGuildInstance(guild) {
170
+ return !!guild && isSnowflake(guild.id) && typeof guild.fetchAuditLogs === "function";
171
+ }
172
+ exports.isGuildInstance = isGuildInstance;
173
+ function resolveGuildID(resolvable) {
174
+ let guildID;
175
+ if (typeof resolvable === "string") {
176
+ guildID = resolvable;
177
+ }
178
+ else if (typeof resolvable === "object") {
179
+ if (resolvable instanceof _1.Queue || resolvable instanceof _1.DisTubeVoice)
180
+ guildID = resolvable.id;
181
+ else if ("guild" in resolvable && isGuildInstance(resolvable.guild))
182
+ guildID = resolvable.guild.id;
183
+ else if ("id" in resolvable && isGuildInstance(resolvable))
184
+ guildID = resolvable.id;
185
+ }
186
+ if (!isSnowflake(guildID))
187
+ throw new _1.DisTubeError("INVALID_TYPE", "GuildIDResolvable", resolvable);
188
+ return guildID;
189
+ }
190
+ exports.resolveGuildID = resolveGuildID;
191
+ function isClientInstance(client) {
192
+ return !!client && typeof client.login === "function";
193
+ }
194
+ exports.isClientInstance = isClientInstance;
195
+ function checkInvalidKey(target, source, sourceName) {
196
+ if (typeof target !== "object" || Array.isArray(target)) {
197
+ throw new _1.DisTubeError("INVALID_TYPE", "object", target, sourceName);
198
+ }
199
+ const sourceKeys = Array.isArray(source) ? source : Object.keys(source);
200
+ const invalidKey = Object.keys(target).find(key => !sourceKeys.includes(key));
201
+ if (invalidKey)
202
+ throw new _1.DisTubeError("INVALID_KEY", sourceName, invalidKey);
203
+ }
204
+ exports.checkInvalidKey = checkInvalidKey;
205
+ //# sourceMappingURL=util.js.map