audioshowkit/tutorials/assets/js/audioshowkit.js

340 lines
268 KiB
JavaScript

/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
var audioshowkit;
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({
/***/ "./node_modules/css-loader/dist/cjs.js!./src/styles/musicPlayer.css":
/*!**************************************************************************!*\
!*** ./node_modules/css-loader/dist/cjs.js!./src/styles/musicPlayer.css ***!
\**************************************************************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/sourceMaps.js */ \"./node_modules/css-loader/dist/runtime/sourceMaps.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\n/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);\n// Imports\n\n\nvar ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".player.play-btn {\\n box-sizing: border-box;\\n height: 48px;\\n width: 48;\\n transition: 80ms all ease;\\n will-change: border-width;\\n cursor: pointer;\\n border-color: transparent transparent transparent black;\\n\\n border-style: solid;\\n border-width: 24px 0px 24px 48px;\\n}\\n\\n.player.play-btn.pause {\\n border-style: double;\\n border-width: 0px 0px 0px 60px;\\n}\\n\\n\\n.player.next {\\n border-style: none;\\n width: 48px;\\n height: 48px;\\n}\\n\\n.player.previous {\\n border-style: none;\\n width: 48px;\\n height: 48px;\\n}\\n\\ntable.player {\\n border-collapse: collapse;\\n}\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/styles/musicPlayer.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,sBAAsB;IACtB,YAAY;IACZ,SAAS;IACT,yBAAyB;IACzB,yBAAyB;IACzB,eAAe;IACf,uDAAuD;;IAEvD,mBAAmB;IACnB,gCAAgC;AACpC;;AAEA;IACI,oBAAoB;IACpB,8BAA8B;AAClC;;;AAGA;IACI,kBAAkB;IAClB,WAAW;IACX,YAAY;AAChB;;AAEA;IACI,kBAAkB;IAClB,WAAW;IACX,YAAY;AAChB;;AAEA;IACI,yBAAyB;AAC7B\",\"sourcesContent\":[\".player.play-btn {\\n box-sizing: border-box;\\n height: 48px;\\n width: 48;\\n transition: 80ms all ease;\\n will-change: border-width;\\n cursor: pointer;\\n border-color: transparent transparent transparent black;\\n\\n border-style: solid;\\n border-width: 24px 0px 24px 48px;\\n}\\n\\n.player.play-btn.pause {\\n border-style: double;\\n border-width: 0px 0px 0px 60px;\\n}\\n\\n\\n.player.next {\\n border-style: none;\\n width: 48px;\\n height: 48px;\\n}\\n\\n.player.previous {\\n border-style: none;\\n width: 48px;\\n height: 48px;\\n}\\n\\ntable.player {\\n border-collapse: collapse;\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9kaXN0L2Nqcy5qcyEuL3NyYy9zdHlsZXMvbXVzaWNQbGF5ZXIuY3NzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUE7QUFDNkc7QUFDakI7QUFDNUYsOEJBQThCLG1GQUEyQixDQUFDLDRGQUFxQztBQUMvRjtBQUNBLDREQUE0RCw2QkFBNkIsbUJBQW1CLGdCQUFnQixnQ0FBZ0MsZ0NBQWdDLHNCQUFzQiw4REFBOEQsNEJBQTRCLHVDQUF1QyxHQUFHLDRCQUE0QiwyQkFBMkIscUNBQXFDLEdBQUcsb0JBQW9CLHlCQUF5QixrQkFBa0IsbUJBQW1CLEdBQUcsc0JBQXNCLHlCQUF5QixrQkFBa0IsbUJBQW1CLEdBQUcsa0JBQWtCLGdDQUFnQyxHQUFHLE9BQU8sNkZBQTZGLFlBQVksV0FBVyxVQUFVLFlBQVksYUFBYSxXQUFXLGFBQWEsYUFBYSxhQUFhLE9BQU8sS0FBSyxZQUFZLGFBQWEsUUFBUSxLQUFLLFlBQVksV0FBVyxVQUFVLE9BQU8sS0FBSyxZQUFZLFdBQVcsVUFBVSxPQUFPLEtBQUssWUFBWSw0Q0FBNEMsNkJBQTZCLG1CQUFtQixnQkFBZ0IsZ0NBQWdDLGdDQUFnQyxzQkFBc0IsOERBQThELDRCQUE0Qix1Q0FBdUMsR0FBRyw0QkFBNEIsMkJBQTJCLHFDQUFxQyxHQUFHLG9CQUFvQix5QkFBeUIsa0JBQWtCLG1CQUFtQixHQUFHLHNCQUFzQix5QkFBeUIsa0J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xcbiAgICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xcbiAgICBoZWlnaHQ6IDQ4cHg7XFxuICAgIHdpZHRoOiA0ODtcXG4gICAgdHJhbnNpdGlvbjogODBtcyBhbGwgZWFzZTtcXG4gICAgd2lsbC1jaGFuZ2U6IGJvcmRlci13aWR0aDtcXG4gICAgY3Vyc29yOiBwb2ludGVyO1xcbiAgICBib3JkZXItY29sb3I6IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50IGJsYWNrO1xcblxcbiAgICBib3JkZXItc3R5bGU6IHNvbGlkO1xcbiAgICBib3JkZXItd2lkdGg6IDI0cHggMHB4IDI0cHggNDhweDtcXG59XFxuXFxuLnBsYXllci5wbGF5LWJ0bi5wYXVzZSB7XFxuICAgIGJvcmRlci1zdHlsZTogZG91YmxlO1xcbiAgICBib3JkZXItd2lkdGg6IDBweCAwcHggMHB4IDYwcHg7XFxufVxcblxcblxcbi5wbGF5ZXIubmV4dCB7XFxuICAgIGJvcmRlci1zdHlsZTogbm9uZTtcXG4gICAgd2lkdGg6IDQ4cHg7XFxuICAgIGhlaWdodDogNDhweDtcXG59XFxuXFxuLnBsYXllci5wcmV2aW91cyB7XFxuICAgIGJvcmRlci1zdHlsZTogbm9uZTtcXG4gICAgd2lkdGg6IDQ4cHg7XFxuICAgIGhlaWdodDogNDhweDtcXG59XFxuXFxudGFibGUucGxheWVyIHtcXG4gICAgYm9yZGVyLWNvbGxhcHNlOiBjb2xsYXBzZTtcXG59XCJdLFwic291cmNlUm9vdFwiOlwiXCJ9XSk7XG4vLyBFeHBvcnRzXG5leHBvcnQgZGVmYXVsdCBfX19DU1NfTE9BREVSX0VYUE9SVF9fXztcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/css-loader/dist/cjs.js!./src/styles/musicPlayer.css\n");
/***/ }),
/***/ "./node_modules/css-loader/dist/runtime/api.js":
/*!*****************************************************!*\
!*** ./node_modules/css-loader/dist/runtime/api.js ***!
\*****************************************************/
/***/ ((module) => {
eval("\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n\n content += cssWithMappingToString(item);\n\n if (needLayer) {\n content += \"}\";\n }\n\n if (item[2]) {\n content += \"}\";\n }\n\n if (item[4]) {\n content += \"}\";\n }\n\n return content;\n }).join(\"\");\n }; // import a list of modules into the list\n\n\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n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N0LnB1c2goaXRlbSk7XG4gICAgfVxuICB9O1xuXG4gIHJldHVybiBsaXN0O1xufTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/css-loader/dist/runtime/api.js\n");
/***/ }),
/***/ "./node_modules/css-loader/dist/runtime/sourceMaps.js":
/*!************************************************************!*\
!*** ./node_modules/css-loader/dist/runtime/sourceMaps.js ***!
\************************************************************/
/***/ ((module) => {
eval("\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n\n if (!cssMapping) {\n return content;\n }\n\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n var sourceURLs = cssMapping.sources.map(function (source) {\n return \"/*# sourceURL=\".concat(cssMapping.sourceRoot || \"\").concat(source, \" */\");\n });\n return [content].concat(sourceURLs).concat([sourceMapping]).join(\"\\n\");\n }\n\n return [content].join(\"\\n\");\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9kaXN0L3J1bnRpbWUvc291cmNlTWFwcy5qcy5qcyIsIm1hcHBpbmdzIjoiQUFBYTs7QUFFYjtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQSx1REFBdUQsY0FBYztBQUNyRTtBQUNBO0FBQ0E7QUFDQSxLQUFLO0FBQ0w7QUFDQTs7QUFFQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vYXVkaW9zaG93a2l0Ly4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvZGlzdC9ydW50aW1lL3NvdXJjZU1hcHMuanM/YWYxMiJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxubW9kdWxlLmV4cG9ydHMgPSBmdW5jdGlvbiAoaXRlbSkge1xuICB2YXIgY29udGVudCA9IGl0ZW1bMV07XG4gIHZhciBjc3NNYXBwaW5nID0gaXRlbVszXTtcblxuICBpZiAoIWNzc01hcHBpbmcpIHtcbiAgICByZXR1cm4gY29udGVudDtcbiAgfVxuXG4gIGlmICh0eXBlb2YgYnRvYSA9PT0gXCJmdW5jdGlvblwiKSB7XG4gICAgdmFyIGJhc2U2NCA9IGJ0b2EodW5lc2NhcGUoZW5jb2RlVVJJQ29tcG9uZW50KEpTT04uc3RyaW5naWZ5KGNzc01hcHBpbmcpKSkpO1xuICAgIHZhciBkYXRhID0gXCJzb3VyY2VNYXBwaW5nVVJMPWRhdGE6YXBwbGljYXRpb24vanNvbjtjaGFyc2V0PXV0Zi04O2Jhc2U2NCxcIi5jb25jYXQoYmFzZTY0KTtcbiAgICB2YXIgc291cmNlTWFwcGluZyA9IFwiLyojIFwiLmNvbmNhdChkYXRhLCBcIiAqL1wiKTtcbiAgICB2YXIgc291cmNlVVJMcyA9IGNzc01hcHBpbmcuc291cmNlcy5tYXAoZnVuY3Rpb24gKHNvdXJjZSkge1xuICAgICAgcmV0dXJuIFwiLyojIHNvdXJjZVVSTD1cIi5jb25jYXQoY3NzTWFwcGluZy5zb3VyY2VSb290IHx8IFwiXCIpLmNvbmNhdChzb3VyY2UsIFwiICovXCIpO1xuICAgIH0pO1xuICAgIHJldHVybiBbY29udGVudF0uY29uY2F0KHNvdXJjZVVSTHMpLmNvbmNhdChbc291cmNlTWFwcGluZ10pLmpvaW4oXCJcXG5cIik7XG4gIH1cblxuICByZXR1cm4gW2NvbnRlbnRdLmpvaW4oXCJcXG5cIik7XG59OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/css-loader/dist/runtime/sourceMaps.js\n");
/***/ }),
/***/ "./src/styles/musicPlayer.css":
/*!************************************!*\
!*** ./src/styles/musicPlayer.css ***!
\************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ \"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/styleDomAPI.js */ \"./node_modules/style-loader/dist/runtime/styleDomAPI.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/insertBySelector.js */ \"./node_modules/style-loader/dist/runtime/insertBySelector.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js */ \"./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/insertStyleElement.js */ \"./node_modules/style-loader/dist/runtime/insertStyleElement.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! !../../node_modules/style-loader/dist/runtime/styleTagTransform.js */ \"./node_modules/style-loader/dist/runtime/styleTagTransform.js\");\n/* harmony import */ var _node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _node_modules_css_loader_dist_cjs_js_musicPlayer_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! !!../../node_modules/css-loader/dist/cjs.js!./musicPlayer.css */ \"./node_modules/css-loader/dist/cjs.js!./src/styles/musicPlayer.css\");\n\n \n \n \n \n \n \n \n \n \n\nvar options = {};\n\noptions.styleTagTransform = (_node_modules_style_loader_dist_runtime_styleTagTransform_js__WEBPACK_IMPORTED_MODULE_5___default());\noptions.setAttributes = (_node_modules_style_loader_dist_runtime_setAttributesWithoutAttributes_js__WEBPACK_IMPORTED_MODULE_3___default());\n\n options.insert = _node_modules_style_loader_dist_runtime_insertBySelector_js__WEBPACK_IMPORTED_MODULE_2___default().bind(null, \"head\");\n \noptions.domAPI = (_node_modules_style_loader_dist_runtime_styleDomAPI_js__WEBPACK_IMPORTED_MODULE_1___default());\noptions.insertStyleElement = (_node_modules_style_loader_dist_runtime_insertStyleElement_js__WEBPACK_IMPORTED_MODULE_4___default());\n\nvar update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_musicPlayer_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"], options);\n\n\n\n\n /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_musicPlayer_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"] && _node_modules_css_loader_dist_cjs_js_musicPlayer_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals ? _node_modules_css_loader_dist_cjs_js_musicPlayer_css__WEBPACK_IMPORTED_MODULE_6__[\"default\"].locals : undefined);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3R5bGVzL211c2ljUGxheWVyLmNzcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFDQSxNQUFrRztBQUNsRyxNQUF3RjtBQUN4RixNQUErRjtBQUMvRixNQUFrSDtBQUNsSCxNQUEyRztBQUMzRyxNQUEyRztBQUMzRyxNQUE0RztBQUM1RztBQUNBOztBQUVBOztBQUVBLDRCQUE0QixxR0FBbUI7QUFDL0Msd0JBQXdCLGtIQUFhOztBQUVyQyx1QkFBdUIsdUdBQWE7QUFDcEM7QUFDQSxpQkFBaUI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y9zdHlsZS1sb2FkZXIvZGlzdC9ydW50aW1lL3N0eWxlVGFnVHJhbnNmb3JtLmpzXCI7XG4gICAgICBpbXBvcnQgY29udGVudCwgKiBhcyBuYW1lZEV4cG9ydCBmcm9tIFwiISEuLi8uLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9kaXN0L2Nqcy5qcyEuL211c2ljUGxheWVyLmNzc1wiO1xuICAgICAgXG4gICAgICBcblxudmFyIG9wdGlvbnMgPSB7fTtcblxub3B0aW9ucy5zdHlsZVRhZ1RyYW5zZm9ybSA9IHN0eWxlVGFnVHJhbnNmb3JtRm47XG5vcHRpb25zLnNldEF0dHJpYnV0ZXMgPSBzZXRBdHRyaWJ1dGVzO1xuXG4gICAgICBvcHRpb25zLmluc2VydCA9IGluc2VydEZuLmJpbmQobnVsbCwgXCJoZWFkXCIpO1xuICAgIFxub3B0aW9ucy5kb21BUEkgPSBkb21BUEk7XG5vcHRpb25zLmluc2VydFN0eWxlRWxlbWVudCA9IGluc2VydFN0eWxlRWxlbWVudDtcblxudmFyIHVwZGF0ZSA9IEFQSShjb250ZW50LCBvcHRpb25zKTtcblxuXG5cbmV4cG9ydCAqIGZyb20gXCIhIS4uLy4uL25vZGVfbW9kdWxlcy9jc3MtbG9hZGVyL2Rpc3QvY2pzLmpzIS4vbXVzaWNQbGF5ZXIuY3NzXCI7XG4gICAgICAgZXhwb3J0IGRlZmF1bHQgY29udGVudCAmJiBjb250ZW50LmxvY2FscyA/IGNvbnRlbnQubG9jYWxzIDogdW5kZWZpbmVkO1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/styles/musicPlayer.css\n");
/***/ }),
/***/ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":
/*!****************************************************************************!*\
!*** ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***!
\****************************************************************************/
/***/ ((module) => {
eval("\n\nvar stylesInDOM = [];\n\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n\n return result;\n}\n\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n\n identifiers.push(identifier);\n }\n\n return identifiers;\n}\n\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n\n return updater;\n}\n\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n\n var newLastIdentifiers = modulesToDom(newList, options);\n\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n\n var _index = getIndexByIdentifier(_identifier);\n\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n\n stylesInDOM.splice(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ZGV4XS5yZWZlcmVuY2VzID09PSAwKSB7XG4gICAgICAgIHN0eWxlc0luRE9NW19pbmRleF0udXBkYXRlcigpO1xuXG4gICAgICAgIHN0eWxlc0luRE9NLnNwbGljZShfaW5kZXgsIDEpO1xuICAgICAgfVxuICAgIH1cblxuICAgIGxhc3RJZGVudGlmaWVycyA9IG5ld0xhc3RJZGVudGlmaWVycztcbiAgfTtcbn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\n");
/***/ }),
/***/ "./node_modules/style-loader/dist/runtime/insertBySelector.js":
/*!********************************************************************!*\
!*** ./node_modules/style-loader/dist/runtime/insertBySelector.js ***!
\********************************************************************/
/***/ ((module) => {
eval("\n\nvar memo = {};\n/* istanbul ignore next */\n\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n}\n/* istanbul ignore next */\n\n\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n}\n\nmodule.exports = insertBySelector;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvc3R5bGUtbG9hZGVyL2Rpc3QvcnVudGltZS9pbnNlcnRCeVNlbGVjdG9yLmpzLmpzIiwibWFwcGluZ3MiOiJBQUFhOztBQUViO0FBQ0E7O0FBRUE7QUFDQT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9jdW1lbnQuaGVhZDtcbiAgICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgICAgLy8gaXN0YW5idWwgaWdub3JlIG5leHRcbiAgICAgICAgc3R5bGVUYXJnZXQgPSBudWxsO1xuICAgICAgfVxuICAgIH1cblxuICAgIG1lbW9bdGFyZ2V0XSA9IHN0eWxlVGFyZ2V0O1xuICB9XG5cbiAgcmV0dXJuIG1lbW9bdGFyZ2V0XTtcbn1cbi8qIGlzdGFuYnVsIGlnbm9yZSBuZXh0ICAqL1xuXG5cbmZ1bmN0aW9uIGluc2VydEJ5U2VsZWN0b3IoaW5zZXJ0LCBzdHlsZSkge1xuICB2YXIgdGFyZ2V0ID0gZ2V0VGFyZ2V0KGluc2VydCk7XG5cbiAgaWYgKCF0YXJnZXQpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoXCJDb3VsZG4ndCBmaW5kIGEgc3R5bGUgdGFyZ2V0LiBUaGlzIHByb2JhYmx5IG1lYW5zIHRoYXQgdGhlIHZhbHVlIGZvciB0aGUgJ2luc2VydCcgcGFyYW1ldGVyIGlzIGludmFsaWQuXCIpO1xuICB9XG5cbiAgdGFyZ2V0LmFwcGVuZENoaWxkKHN0eWxlKTtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBpbnNlcnRCeVNlbGVjdG9yOyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/style-loader/dist/runtime/insertBySelector.js\n");
/***/ }),
/***/ "./node_modules/style-loader/dist/runtime/insertStyleElement.js":
/*!**********************************************************************!*\
!*** ./node_modules/style-loader/dist/runtime/insertStyleElement.js ***!
\**********************************************************************/
/***/ ((module) => {
eval("\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\n\nmodule.exports = insertStyleElement;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvc3R5bGUtbG9hZGVyL2Rpc3QvcnVudGltZS9pbnNlcnRTdHlsZUVsZW1lbnQuanMuanMiLCJtYXBwaW5ncyI6IkFBQWE7O0FBRWI7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9hdWRpb3Nob3draXQvLi9ub2RlX21vZHVsZXMvc3R5bGUtbG9hZGVyL2Rpc3QvcnVudGltZS9pbnNlcnRTdHlsZUVsZW1lbnQuanM/ZGU2YyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuLyogaXN0YW5idWwgaWdub3JlIG5leHQgICovXG5mdW5jdGlvbiBpbnNlcnRTdHlsZUVsZW1lbnQob3B0aW9ucykge1xuICB2YXIgZWxlbWVudCA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoXCJzdHlsZVwiKTtcbiAgb3B0aW9ucy5zZXRBdHRyaWJ1dGVzKGVsZW1lbnQsIG9wdGlvbnMuYXR0cmlidXRlcyk7XG4gIG9wdGlvbnMuaW5zZXJ0KGVsZW1lbnQsIG9wdGlvbnMub3B0aW9ucyk7XG4gIHJldHVybiBlbGVtZW50O1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IGluc2VydFN0eWxlRWxlbWVudDsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/style-loader/dist/runtime/insertStyleElement.js\n");
/***/ }),
/***/ "./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js":
/*!**********************************************************************************!*\
!*** ./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js ***!
\**********************************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
eval("\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = true ? __webpack_require__.nc : 0;\n\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\n\nmodule.exports = setAttributesWithoutAttributes;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvc3R5bGUtbG9hZGVyL2Rpc3QvcnVudGltZS9zZXRBdHRyaWJ1dGVzV2l0aG91dEF0dHJpYnV0ZXMuanMuanMiLCJtYXBwaW5ncyI6IkFBQWE7O0FBRWI7QUFDQTtBQUNBLGNBQWMsS0FBd0MsR0FBRyxzQkFBaUIsR0FBRyxDQUFJOztBQUVqRjtBQUNBO0FBQ0E7QUFDQTs7QUFFQSIsInNvdXJjZXMiOlsid2VicGFjazovL2F1ZGlvc2hvd2tpdC8uL25vZGVfbW9kdWxlcy9zdHlsZS1sb2FkZXIvZGlzdC9ydW50aW1lL3NldEF0dHJpYnV0ZXNXaXRob3V0QXR0cmlidXRlcy5qcz9kZGNlIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG4vKiBpc3RhbmJ1bCBpZ25vcmUgbmV4dCAgKi9cbmZ1bmN0aW9uIHNldEF0dHJpYnV0ZXNXaXRob3V0QXR0cmlidXRlcyhzdHlsZUVsZW1lbnQpIHtcbiAgdmFyIG5vbmNlID0gdHlwZW9mIF9fd2VicGFja19ub25jZV9fICE9PSBcInVuZGVmaW5lZFwiID8gX193ZWJwYWNrX25vbmNlX18gOiBudWxsO1xuXG4gIGlmIChub25jZSkge1xuICAgIHN0eWxlRWxlbWVudC5zZXRBdHRyaWJ1dGUoXCJub25jZVwiLCBub25jZSk7XG4gIH1cbn1cblxubW9kdWxlLmV4cG9ydHMgPSBzZXRBdHRyaWJ1dGVzV2l0aG91dEF0dHJpYnV0ZXM7Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\n");
/***/ }),
/***/ "./node_modules/style-loader/dist/runtime/styleDomAPI.js":
/*!***************************************************************!*\
!*** ./node_modules/style-loader/dist/runtime/styleDomAPI.js ***!
\***************************************************************/
/***/ ((module) => {
eval("\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n\n var needLayer = typeof obj.layer !== \"undefined\";\n\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n\n css += obj.css;\n\n if (needLayer) {\n css += \"}\";\n }\n\n if (obj.media) {\n css += \"}\";\n }\n\n if (obj.supports) {\n css += \"}\";\n }\n\n var sourceMap = obj.sourceMap;\n\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n } // For old IE\n\n /* istanbul ignore if */\n\n\n options.styleTagTransform(css, styleElement, options.options);\n}\n\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n\n styleElement.parentNode.removeChild(styleElement);\n}\n/* istanbul ignore next */\n\n\nfunction domAPI(options) {\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\n\nmodule.exports = domAPI;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvc3R5bGUtbG9hZGVyL2Rpc3QvcnVudGltZS9zdHlsZURvbUFQSS5qcy5qcyIsIm1hcHBpbmdzIjoiQUFBYTs7QUFFYjtBQUNBO0FBQ0E7O0FBRUE7QUFDQSxrREF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bCBpZ25vcmUgbmV4dCAgKi9cblxuXG5mdW5jdGlvbiBkb21BUEkob3B0aW9ucykge1xuICB2YXIgc3R5bGVFbGVtZW50ID0gb3B0aW9ucy5pbnNlcnRTdHlsZUVsZW1lbnQob3B0aW9ucyk7XG4gIHJldHVybiB7XG4gICAgdXBkYXRlOiBmdW5jdGlvbiB1cGRhdGUob2JqKSB7XG4gICAgICBhcHBseShzdHlsZUVsZW1lbnQsIG9wdGlvbnMsIG9iaik7XG4gICAgfSxcbiAgICByZW1vdmU6IGZ1bmN0aW9uIHJlbW92ZSgpIHtcbiAgICAgIHJlbW92ZVN0eWxlRWxlbWVudChzdHlsZUVsZW1lbnQpO1xuICAgIH1cbiAgfTtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBkb21BUEk7Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/style-loader/dist/runtime/styleDomAPI.js\n");
/***/ }),
/***/ "./node_modules/style-loader/dist/runtime/styleTagTransform.js":
/*!*********************************************************************!*\
!*** ./node_modules/style-loader/dist/runtime/styleTagTransform.js ***!
\*********************************************************************/
/***/ ((module) => {
eval("\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n\n styleElement.appendChild(document.createTextNode(css));\n }\n}\n\nmodule.exports = styleTagTransform;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvc3R5bGUtbG9hZGVyL2Rpc3QvcnVudGltZS9zdHlsZVRhZ1RyYW5zZm9ybS5qcy5qcyIsIm1hcHBpbmdzIjoiQUFBYTs7QUFFYjtBQUNBO0FBQ0E7QUFDQTtBQUNBLElBQUk7QUFDSjtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBOztBQUVBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vYXVkaW9zaG93a2l0Ly4vbm9kZV9tb2R1bGVzL3N0eWxlLWxvYWRlci9kaXN0L3J1bnRpbWUvc3R5bGVUYWdUcmFuc2Zvcm0uanM/MWRkZSJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuLyogaXN0YW5idWwgaWdub3JlIG5leHQgICovXG5mdW5jdGlvbiBzdHlsZVRhZ1RyYW5zZm9ybShjc3MsIHN0eWxlRWxlbWVudCkge1xuICBpZiAoc3R5bGVFbGVtZW50LnN0eWxlU2hlZXQpIHtcbiAgICBzdHlsZUVsZW1lbnQuc3R5bGVTaGVldC5jc3NUZXh0ID0gY3NzO1xuICB9IGVsc2Uge1xuICAgIHdoaWxlIChzdHlsZUVsZW1lbnQuZmlyc3RDaGlsZCkge1xuICAgICAgc3R5bGVFbGVtZW50LnJlbW92ZUNoaWxkKHN0eWxlRWxlbWVudC5maXJzdENoaWxkKTtcbiAgICB9XG5cbiAgICBzdHlsZUVsZW1lbnQuYXBwZW5kQ2hpbGQoZG9jdW1lbnQuY3JlYXRlVGV4dE5vZGUoY3NzKSk7XG4gIH1cbn1cblxubW9kdWxlLmV4cG9ydHMgPSBzdHlsZVRhZ1RyYW5zZm9ybTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/style-loader/dist/runtime/styleTagTransform.js\n");
/***/ }),
/***/ "./src/audioshowkitlib.js":
/*!********************************!*\
!*** ./src/audioshowkitlib.js ***!
\********************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"mappings\": () => (/* reexport module object */ _mapping_mappings_js__WEBPACK_IMPORTED_MODULE_0__),\n/* harmony export */ \"player\": () => (/* reexport module object */ _player_player_js__WEBPACK_IMPORTED_MODULE_1__),\n/* harmony export */ \"support\": () => (/* reexport module object */ _support_support_js__WEBPACK_IMPORTED_MODULE_3__),\n/* harmony export */ \"visualization\": () => (/* reexport module object */ _visualization_visualization_js__WEBPACK_IMPORTED_MODULE_2__)\n/* harmony export */ });\n/* harmony import */ var _mapping_mappings_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mapping/mappings.js */ \"./src/mapping/mappings.js\");\n/* harmony import */ var _player_player_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./player/player.js */ \"./src/player/player.js\");\n/* harmony import */ var _visualization_visualization_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./visualization/visualization.js */ \"./src/visualization/visualization.js\");\n/* harmony import */ var _support_support_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./support/support.js */ \"./src/support/support.js\");\n// TODO: basic playlist display.\n// TODO: Demo functions.\n// TODO: Detect annotated elements.\n// TODO: Create getting started.\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvYXVkaW9zaG93a2l0bGliLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFJQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL2F1ZGlvc2hvd2tpdC8uL3NyYy9hdWRpb3Nob3draXRsaWIuanM/MjgxMCJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBUT0RPOiBiYXNpYyBwbGF5bGlzdCBkaXNwbGF5LlxuLy8gVE9ETzogRGVtbyBmdW5jdGlvbnMuXG4vLyBUT0RPOiBEZXRlY3QgYW5ub3RhdGVkIGVsZW1lbnRzLlxuLy8gVE9ETzogQ3JlYXRlIGdldHRpbmcgc3RhcnRlZC5cblxuXG5cbmltcG9ydCAqIGFzIG1hcHBpbmdzIGZyb20gXCIuL21hcHBpbmcvbWFwcGluZ3MuanNcIjtcbmltcG9ydCAqIGFzIHBsYXllciBmcm9tIFwiLi9wbGF5ZXIvcGxheWVyLmpzXCI7XG5pbXBvcnQgKiBhcyB2aXN1YWxpemF0aW9uIGZyb20gXCIuL3Zpc3VhbGl6YXRpb24vdmlzdWFsaXphdGlvbi5qc1wiO1xuaW1wb3J0ICogYXMgc3VwcG9ydCBmcm9tIFwiLi9zdXBwb3J0L3N1cHBvcnQuanNcIjtcblxuZXhwb3J0IHsgbWFwcGluZ3MsIHBsYXllciwgdmlzdWFsaXphdGlvbiwgc3VwcG9ydCB9OyJdLCJuYW1lcyI6WyJtYXBwaW5ncyIsInBsYXllciIsInZpc3VhbGl6YXRpb24iLCJzdXBwb3J0Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/audioshowkitlib.js\n");
/***/ }),
/***/ "./src/mapping/dimensions.js":
/*!***********************************!*\
!*** ./src/mapping/dimensions.js ***!
\***********************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"mapHeight\": () => (/* binding */ mapHeight),\n/* harmony export */ \"mapWidth\": () => (/* binding */ mapWidth)\n/* harmony export */ });\n/* harmony import */ var _visualization_VisualizerUpdateManager_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../visualization/VisualizerUpdateManager.js */ \"./src/visualization/VisualizerUpdateManager.js\");\n/* harmony import */ var _numeric_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./numeric.js */ \"./src/mapping/numeric.js\");\n\n\n/**\n * Maps the width of an element to frequency bin(s).\n * \n * @param {object} conf The configuration for mapping amplitudes to a width CSS property.\n * @param {HTMLElement} conf.element The html element to map the width to.\n * @param {number} conf.growLower The lower limit of the width.\n * @param {number} conf.growUpper The upper limit of the width.\n * @param {string} conf.unit The unit the upper and lower bounds are measured in.\n * @param {number} conf.lowerBin The lower boundary of bins to be mapped (or the single bin to be mapped if the upper bin is undefined).\n * @param {VisualizerUpdateManager} conf.visUpdateManager The visualizer update manager to be mapped to.\n * @param {interpolator} conf.interpolator The interpolation function to be used to transition from one value to the next.\n * @param {number} [conf.upperBin] The upper bin or undefined, which results in mapping to a single bin.\n * @param {boolean} [conf.reversed=false] If true, then high amplitudes are mapped to lower values and vice versa.\n * @returns {{bin: number, listener: VisualizerUpdateManager.visualizerBinUpdateListener}|{lower: number, upper: number, listener: VisualizerUpdateManager.visualizerRangedUpdateListener}} The listener that was added (ranged if an upper bound was provided, binned otherwise).\n */\n\nfunction mapWidth(_ref) {\n var element = _ref.element,\n growLower = _ref.growLower,\n growUpper = _ref.growUpper,\n unit = _ref.unit,\n lowerBin = _ref.lowerBin,\n visUpdateManager = _ref.visUpdateManager,\n interpolator = _ref.interpolator,\n _ref$upperBin = _ref.upperBin,\n upperBin = _ref$upperBin === void 0 ? undefined : _ref$upperBin,\n _ref$reversed = _ref.reversed,\n reversed = _ref$reversed === void 0 ? false : _ref$reversed;\n\n var getter = function getter() {\n return element.style.width;\n };\n\n var setter = function setter(value) {\n return element.style.width = value + unit;\n };\n\n var conf = {\n minVal: growLower,\n maxVal: growUpper,\n bin: lowerBin,\n getter: getter,\n setter: setter,\n interpolator: interpolator,\n visUpdateManager: visUpdateManager,\n reversed: reversed\n };\n\n if (upperBin) {\n conf.bin = undefined;\n conf.lowerBin = lowerBin;\n conf.upperBin = upperBin;\n return (0,_numeric_js__WEBPACK_IMPORTED_MODULE_1__.mapRangedAvgNumerical)(conf);\n }\n\n return (0,_numeric_js__WEBPACK_IMPORTED_MODULE_1__.mapBinNumerical)(conf);\n}\n/**\n * Maps the height of an element to frequency bin(s).\n * \n * @param {object} conf The configuration for mapping amplitudes to a height CSS property.\n * @param {HTMLElement} conf.element The html element to map the height to.\n * @param {number} conf.growLower The lower limit of the height.\n * @param {number} conf.growUpper The upper limit of the height.\n * @param {string} conf.unit The unit the upper and lower bounds are measured in.\n * @param {number} conf.lowerBin The lower boundary of bins to be mapped (or the single bin to be mapped if the upper bin is undefined).\n * @param {VisualizerUpdateManager} conf.visUpdateManager The visualizer update manager to be mapped to.\n * @param {interpolator} conf.interpolator The interpolation function to be used to transition from one value to the next.\n * @param {number} [conf.upperBin] The upper bin or undefined, which results in mapping to a single bin.\n * @param {boolean} [conf.reversed=false] If true, then high amplitudes are mapped to lower values and vice versa.\n * @returns {{bin: number, listener: VisualizerUpdateManager.visualizerBinUpdateListener}|{lower: number, upper: number, listener: VisualizerUpdateManager.visualizerRangedUpdateListener}} The listener that was added (ranged if an upper bound was provided, binned otherwise).\n */\n\n\nfunction mapHeight(_ref2) {\n var element = _ref2.element,\n growLower = _ref2.growLower,\n growUpper = _ref2.growUpper,\n unit = _ref2.unit,\n lowerBin = _ref2.lowerBin,\n visUpdateManager = _ref2.visUpdateManager,\n interpolator = _ref2.interpolator,\n _ref2$upperBin = _ref2.upperBin,\n upperBin = _ref2$upperBin === void 0 ? undefined : _ref2$upperBin,\n _ref2$reversed = _ref2.reversed,\n reversed = _ref2$reversed === void 0 ? false : _ref2$reversed;\n\n var getter = function getter() {\n return element.style.height;\n };\n\n var setter = function setter(value) {\n return element.style.height = value + unit;\n };\n\n var conf = {\n minVal: growLower,\n maxVal: growUpper,\n bin: lowerBin,\n getter: getter,\n setter: setter,\n interpolator: interpolator,\n visUpdateManager: visUpdateManager,\n reversed: reversed\n };\n\n if (upperBin) {\n conf.bin = undefined;\n conf.lowerBin = lowerBin;\n conf.upperBin = upperBin;\n return (0,_numeric_js__WEBPACK_IMPORTED_MODULE_1__.mapRangedAvgNumerical)(conf);\n }\n\n return (0,_numeric_js__WEBPACK_IMPORTED_MODULE_1__.mapBinNumerical)(conf);\n}\n/**@module */\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9u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HZpc1VwZGF0ZU1hbmFnZXI6IHZpc1VwZGF0ZU1hbmFnZXIsXG4gICAgICAgIHJldmVyc2VkOiByZXZlcnNlZFxuICAgIH07XG5cbiAgICBpZiAodXBwZXJCaW4pIHtcbiAgICAgICAgY29uZi5iaW4gPSB1bmRlZmluZWQ7XG4gICAgICAgIGNvbmYubG93ZXJCaW4gPSBsb3dlckJpbjtcbiAgICAgICAgY29uZi51cHBlckJpbiA9IHVwcGVyQmluO1xuICAgICAgICByZXR1cm4gbWFwUmFuZ2VkQXZnTnVtZXJpY2FsKGNvbmYpO1xuICAgIH1cbiAgICByZXR1cm4gbWFwQmluTnVtZXJpY2FsKGNvbmYpO1xufVxuXG4vKipAbW9kdWxlICovXG5leHBvcnQgeyBtYXBXaWR0aCwgbWFwSGVpZ2h0IH07Il0sIm5hbWVzIjpbIlZpc3VhbGl6ZXJVcGRhdGVNYW5hZ2VyIiwibWFwQmluTnVtZXJpY2FsIiwibWFwUmFuZ2VkQXZnTnVtZXJpY2FsIiwibWFwV2lkdGgiLCJlbGVtZW50IiwiZ3Jvd0xvd2VyIiwiZ3Jvd1VwcGVyIiwidW5pdCIsImxvd2VyQmluIiwidmlzVXBkYXRlTWFuYWdlciIsImludGVycG9sYXRvciIsInVwcGVyQmluIiwidW5kZWZpbmVkIiwicmV2ZXJzZWQiLCJnZXR0ZXIiLCJzdHlsZSIsIndpZHRoIiwic2V0dGVyIiwidmFsdWUiLCJjb25mIiwibWluVmFsIiwibWF4VmFsIiwiYmluIiwibWFwSGVpZ2h0IiwiaGVpZ2h0Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/mapping/dimensions.js\n");
/***/ }),
/***/ "./src/mapping/mappings.js":
/*!*********************************!*\
!*** ./src/mapping/mappings.js ***!
\*********************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"dimensions\": () => (/* reexport module object */ _dimensions_js__WEBPACK_IMPORTED_MODULE_0__),\n/* harmony export */ \"numeric\": () => (/* reexport module object */ _numeric_js__WEBPACK_IMPORTED_MODULE_1__)\n/* harmony export */ });\n/* harmony import */ var _dimensions_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dimensions.js */ \"./src/mapping/dimensions.js\");\n/* harmony import */ var _numeric_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./numeric.js */ \"./src/mapping/numeric.js\");\n\n\n/**@module */\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbWFwcGluZy9tYXBwaW5ncy5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7QUFDQTtBQUVBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vYXVkaW9zaG93a2l0Ly4vc3JjL21hcHBpbmcvbWFwcGluZ3MuanM/NTdkZSJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBkaW1lbnNpb25zIGZyb20gXCIuL2RpbWVuc2lvbnMuanNcIjtcbmltcG9ydCAqIGFzIG51bWVyaWMgZnJvbSBcIi4vbnVtZXJpYy5qc1wiO1xuXG4vKipAbW9kdWxlICovXG5leHBvcnQgeyBkaW1lbnNpb25zLCBudW1lcmljIH07Il0sIm5hbWVzIjpbImRpbWVuc2lvbnMiLCJudW1lcmljIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/mapping/mappings.js\n");
/***/ }),
/***/ "./src/mapping/numeric.js":
/*!********************************!*\
!*** ./src/mapping/numeric.js ***!
\********************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"mapBinNumerical\": () => (/* binding */ mapBinNumerical),\n/* harmony export */ \"mapRangedAvgNumerical\": () => (/* binding */ mapRangedAvgNumerical)\n/* harmony export */ });\n/* harmony import */ var _visualization_VisualizerUpdateManager_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../visualization/VisualizerUpdateManager.js */ \"./src/visualization/VisualizerUpdateManager.js\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n\n/**\n * \n * @callback numericalGetter\n * @returns {number} The number this value currently represents.\n */\n\n/**\n * @callback numericalSetter\n * @param {number} value The new numerical value to update to.\n */\n// FIXME: Warnings about interpolator not being defined are broken. Docs generate fine.\n\n/**\n * Maps the average of a range of bins to numerical value defined by a getter and a setter.\n * \n * @param {object} conf A configuration for how to map a numerical value.\n * @param {number} conf.minVal The minimum value of the numerical value.\n * @param {number} conf.maxVal The maximum value of the numerical value.\n * @param {number} conf.lowerBin The lower bin of the range of bins this value is to be mapped to.\n * @param {number} conf.upperBin The upper bin of the range of bins this value si to be mapped to.\n * @param {numericalGetter} conf.getter The getter callback to be used to get the current number.\n * @param {numericalSetter} conf.setter The setter callback to be used to set the new number.\n * @param {interpolator} conf.interpolator The interpolation function to use.\n * @param {VisualizerUpdateManager} conf.visUpdateManager the visualizer update manager this mapping corresponds with.\n * @param {boolean} [conf.reversed = false] If true, then high amplitudes will be mapped to low values and vice versa.\n * @returns {{lower: number, upper: number, listener: VisualizerUpdateManager.visualizerRangedUpdateListener}} An object containing the lower and upper bounds for the range of a listener, which is also in the object.\n */\n\nfunction mapRangedAvgNumerical(_ref) {\n var minVal = _ref.minVal,\n maxVal = _ref.maxVal,\n _ref$lowerBin = _ref.lowerBin,\n lowerBin = _ref$lowerBin === void 0 ? undefined : _ref$lowerBin,\n upperBin = _ref.upperBin,\n getter = _ref.getter,\n setter = _ref.setter,\n interpolator = _ref.interpolator,\n visUpdateManager = _ref.visUpdateManager,\n _ref$reversed = _ref.reversed,\n reversed = _ref$reversed === void 0 ? false : _ref$reversed;\n var rangedListener = {\n lower: lowerBin,\n upper: upperBin,\n listener: function listener(timeDelta, bins) {\n var normalBins = _toConsumableArray(bins); // TODO: Future: add weighting / distribution system?\n\n\n var average = 0;\n\n for (var i = 0; i < normalBins.length; i++) {\n normalBins[i] = normalBins[i] / 255.0;\n average += normalBins[i];\n }\n\n average /= normalBins.length;\n var range = maxVal - minVal;\n var interpolated = interpolator(getter(), average, timeDelta);\n if (reversed) interpolated = 1 - interpolated;\n setter(minVal + range * interpolated);\n }\n };\n\n if (visUpdateManager.addVisualizerRangedUpdateListener(rangedListener)) {\n return rangedListener;\n }\n\n return null; // Technically doesn't occur since the functions are anonymous?\n}\n/**\n * Maps a single bin of frequency amplitudes to a numerical value defined by a getter and a setter.\n * \n * @param {object} conf The configuration for mapping a single bin to a numerical value.\n * @param {number} conf.minVal The minimum value the mapping can produce.\n * @param {number} conf.maxVal The maximum value the mapping can produce.\n * @param {number} conf.bin The bin to map this number to.\n * @param {numericalGetter} conf.getter The callback to be used to get the current number.\n * @param {numericalSetter} conf.setter The callback to be used to set the new number.\n * @param {interpolator} conf.interpolator The interpolation function to use.\n * @param {VisualizerUpdateManager} conf.visUpdateManager The update manager to map to.\n * @param {boolean} [conf.reversed] If true, then high amplitudes will be mapped to lower values and vice versa.\n * @returns {{bin: number, listener: VisualizerUpdateManager.visualizerBinUpdateListener}} The bin listener that was added.\n */\n\n\nfunction mapBinNumerical(_ref2) {\n var minVal = _ref2.minVal,\n maxVal = _ref2.maxVal,\n bin = _ref2.bin,\n getter = _ref2.getter,\n setter = _ref2.setter,\n interpolator = _ref2.interpolator,\n visUpdateManager = _ref2.visUpdateManager,\n _ref2$reversed = _ref2.reversed,\n reversed = _ref2$reversed === void 0 ? false : _ref2$reversed;\n var listener = {\n bin: bin,\n listener: function listener(timeDelta, amp) {\n var range = maxVal - minVal;\n var interpolated = interpolator(getter(), amp, timeDelta);\n if (reversed) interpolated = 1 - interpolated;\n setter(minVal + range * interpolated);\n }\n };\n\n if (visUpdateManager.AddVisualizerBinUpdateListener(listener)) {\n return listener;\n }\n\n return null; // Technically doesn't occur since the functions are anonymous?\n}\n/**@module */\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbWFwcGluZy9udW1lcmljLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUVBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFDQSxTQUFTQyxxQkFBVCxPQUFxSjtBQUFBLE1BQXBIQyxNQUFv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hcmUgYW5vbnltb3VzP1xufVxuXG4vKipAbW9kdWxlICovXG5leHBvcnQgeyBtYXBSYW5nZWRBdmdOdW1lcmljYWwsIG1hcEJpbk51bWVyaWNhbCB9OyJdLCJuYW1lcyI6WyJWaXN1YWxpemVyVXBkYXRlTWFuYWdlciIsIm1hcFJhbmdlZEF2Z051bWVyaWNhbCIsIm1pblZhbCIsIm1heFZhbCIsImxvd2VyQmluIiwidW5kZWZpbmVkIiwidXBwZXJCaW4iLCJnZXR0ZXIiLCJzZXR0ZXIiLCJpbnRlcnBvbGF0b3IiLCJ2aXNVcGRhdGVNYW5hZ2VyIiwicmV2ZXJzZWQiLCJyYW5nZWRMaXN0ZW5lciIsImxvd2VyIiwidXBwZXIiLCJsaXN0ZW5lciIsInRpbWVEZWx0YSIsImJpbnMiLCJub3JtYWxCaW5zIiwiYXZlcmFnZSIsImkiLCJsZW5ndGgiLCJyYW5nZSIsImludGVycG9sYXRlZCIsImFkZFZpc3VhbGl6ZXJSYW5nZWRVcGRhdGVMaXN0ZW5lciIsIm1hcEJpbk51bWVyaWNhbCIsImJpbiIsImFtcCIsIkFkZFZpc3VhbGl6ZXJCaW5VcGRhdGVMaXN0ZW5lciJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/mapping/numeric.js\n");
/***/ }),
/***/ "./src/player/Music.js":
/*!*****************************!*\
!*** ./src/player/Music.js ***!
\*****************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Music)\n/* harmony export */ });\n/* harmony import */ var _visualization_Visualizer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../visualization/Visualizer.js */ \"./src/visualization/Visualizer.js\");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }\n\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n\nfunction _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"get\"); return _classApplyDescriptorGet(receiver, descriptor); }\n\nfunction _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }\n\nfunction _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"set\"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }\n\nfunction _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError(\"attempted to \" + action + \" private field on non-instance\"); } return privateMap.get(receiver); }\n\nfunction _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError(\"attempted to set read only private field\"); } descriptor.value = value; } }\n\n\n/**@module */\n\n/**\n * @callback AudioEventCallback\n * @param {HTMLAudioElement} audio\n */\n\n/**\n * A music with metadata that can be used as part of a {@link MusicPlaylist}.\n * \n */\n\nvar _displayName = /*#__PURE__*/new WeakMap();\n\nvar _author = /*#__PURE__*/new WeakMap();\n\nvar _url = /*#__PURE__*/new WeakMap();\n\nvar _audio = /*#__PURE__*/new WeakMap();\n\nvar _visualizer = /*#__PURE__*/new WeakMap();\n\nvar _ready = /*#__PURE__*/new WeakMap();\n\nvar Music = /*#__PURE__*/function () {\n /**\n * Constructs a music for a {@link MusicPlaylist}.\n * \n * @param {string} url the url to fetch the music from.\n * @param {string} name the name of the music.\n * @param {string} author the author of the music.\n */\n function Music(url, name, author) {\n _classCallCheck(this, Music);\n\n _classPrivateFieldInitSpec(this, _displayName, {\n writable: true,\n value: void 0\n });\n\n _classPrivateFieldInitSpec(this, _author, {\n writable: true,\n value: void 0\n });\n\n _classPrivateFieldInitSpec(this, _url, {\n writable: true,\n value: void 0\n });\n\n _classPrivateFieldInitSpec(this, _audio, {\n writable: true,\n value: void 0\n });\n\n _classPrivateFieldInitSpec(this, _visualizer, {\n writable: true,\n value: void 0\n });\n\n _classPrivateFieldInitSpec(this, _ready, {\n writable: true,\n value: false\n });\n\n _classPrivateFieldSet(this, _displayName, name);\n\n _classPrivateFieldSet(this, _author, author);\n\n _classPrivateFieldSet(this, _url, url);\n }\n /**\n * \n * @param {AudioEventCallback} [onReady] called when the music is ready, including right away if the music is already ready.\n * @returns {HTMLAudioElement} The audio element that represents this music.\n */\n\n\n _createClass(Music, [{\n key: \"fetchAudio\",\n value: function fetchAudio(onReady) {\n var _this = this;\n\n if (_classPrivateFieldGet(this, _audio)) {\n if (_classPrivateFieldGet(this, _ready)) {\n if (onReady) onReady(_classPrivateFieldGet(this, _audio));\n } else if (onReady) {\n _classPrivateFieldGet(this, _audio).addEventListener(\"canplaythrough\", function () {\n onReady(_classPrivateFieldGet(_this, _audio));\n }, {\n once: true\n });\n }\n\n return _classPrivateFieldGet(this, _audio);\n }\n\n _classPrivateFieldSet(this, _audio, new Audio(_classPrivateFieldGet(this, _url)));\n\n _classPrivateFieldGet(this, _audio).addEventListener(\"canplaythrough\", function () {\n _classPrivateFieldSet(_this, _ready, true);\n\n if (onReady && _this.isAudioInstantiated()) {\n onReady(_classPrivateFieldGet(_this, _audio));\n }\n }, {\n once: true\n });\n\n return _classPrivateFieldGet(this, _audio);\n }\n /**\n * @returns {string} The name of the music to be displayed.\n */\n\n }, {\n key: \"displayName\",\n get: function get() {\n return _classPrivateFieldGet(this, _displayName);\n }\n /**\n * @returns {string} The author of the music.\n */\n\n }, {\n key: \"author\",\n get: function get() {\n return _classPrivateFieldGet(this, _author);\n }\n /**\n * @returns {string} The url at which the file for this music can be found.\n */\n\n }, {\n key: \"url\",\n get: function get() {\n return _classPrivateFieldGet(this, _url);\n }\n /**\n * @returns {boolean} true if and only if there is audio data that is either already loaded or is being loaded.\n */\n\n }, {\n key: \"isAudioInstantiated\",\n value: function isAudioInstantiated() {\n return _classPrivateFieldGet(this, _audio) ? true : false;\n }\n /**\n * Begins audio playback as soon as possible.\n * \n * This function uses the {@link PlaylistMusic#getAudio} function and specifically, the {@link AudioEventCallback}.\n */\n\n }, {\n key: \"play\",\n value: function play() {\n this.fetchAudio(function (audio) {\n audio.play();\n });\n }\n /**\n * Pauses the audio playback, unless the audio data has yet to be instantiated.\n */\n\n }, {\n key: \"pause\",\n value: function pause() {\n if (!this.isAudioInstantiated()) return;\n this.fetchAudio(function (audio) {\n audio.pause();\n });\n }\n /**\n * \n * @returns {number} The volume on a scale of 0 to 1.\n */\n\n }, {\n key: \"volume\",\n get: function get() {\n return this.fetchAudio().volume;\n }\n /**\n * \n * The normalized volume on a scale of 0 to 1.\n */\n ,\n set: function set(volume) {\n this.fetchAudio().volume = volume;\n }\n /**\n * \n * @returns {number} The number of seconds into the music.\n */\n\n }, {\n key: \"currentTime\",\n get: function get() {\n return this.fetchAudio().currentTime;\n }\n /**\n * \n * The time position in the music to jump to in seconds.\n */\n ,\n set: function set(currentTime) {\n this.fetchAudio().currentTime = currentTime;\n }\n /**\n * \n * @returns {number} The duration of the music.\n */\n\n }, {\n key: \"duration\",\n get: function get() {\n return this.fetchAudio().duration;\n }\n /**\n * Unloads the audio data.\n * Makes sure the audio is paused.\n * \n * Also calls {@link PlaylistMusic#unloadVisualizer}.\n */\n\n }, {\n key: \"unloadAudio\",\n value: function unloadAudio() {\n if (!this.isAudioInstantiated()) return;\n\n _classPrivateFieldGet(this, _audio).pause();\n\n this.unloadVisualizer();\n\n _classPrivateFieldSet(this, _audio, null);\n\n _classPrivateFieldSet(this, _ready, false);\n }\n /**\n * \n * @param {number} [fftSize=1024] the size of the FFT window.\n * @returns {Visualizer} returns the visualizer.\n */\n\n }, {\n key: \"getVisualizer\",\n value: function getVisualizer() {\n var fftSize = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1024;\n if (_classPrivateFieldGet(this, _visualizer) && _classPrivateFieldGet(this, _visualizer).getFftSize() === fftSize) return _classPrivateFieldGet(this, _visualizer);\n\n _classPrivateFieldSet(this, _visualizer, new _visualization_Visualizer_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"](this.fetchAudio(), fftSize));\n\n return _classPrivateFieldGet(this, _visualizer);\n }\n /**\n * \n * @returns {boolean} returns true if and only if the visualizer is instantiated.\n */\n\n }, {\n key: \"isVisualizerInstantiated\",\n value: function isVisualizerInstantiated() {\n return _classPrivateFieldGet(this, _visualizer) ? true : false;\n }\n /**\n * Unloads the visualizer.\n * Stops the visualizer.\n */\n\n }, {\n key: \"unloadVisualizer\",\n value: function unloadVisualizer() {\n if (_classPrivateFieldGet(this, _visualizer)) {\n _classPrivateFieldGet(this, _visualizer).stop();\n\n _classPrivateFieldSet(this, _visualizer, null);\n }\n }\n }]);\n\n return Music;\n}();\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvcGxheWVyL011c2ljLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUVBOztBQUVBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBOzs7Ozs7Ozs7Ozs7OztJQUNxQkM7QUFRakI7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IHRoaXMuI3Zpc3VhbGl6ZXIuc3RvcCgpO1xuICAgICAgICAgICAgdGhpcy4jdmlzdWFsaXplciA9IG51bGw7XG4gICAgICAgIH1cbiAgICB9XG59Il0sIm5hbWVzIjpbIlZpc3VhbGl6ZXIiLCJNdXNpYyIsInVybCIsIm5hbWUiLCJhdXRob3IiLCJvblJlYWR5IiwiYWRkRXZlbnRMaXN0ZW5lciIsIm9uY2UiLCJBdWRpbyIsImlzQXVkaW9JbnN0YW50aWF0ZWQiLCJmZXRjaEF1ZGlvIiwiYXVkaW8iLCJwbGF5IiwicGF1c2UiLCJ2b2x1bWUiLCJjdXJyZW50VGltZSIsImR1cmF0aW9uIiwidW5sb2FkVmlzdWFsaXplciIsImZmdFNpemUiLCJnZXRGZnRTaXplIiwic3RvcCJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/player/Music.js\n");
/***/ }),
/***/ "./src/player/MusicPlayer.js":
/*!***********************************!*\
!*** ./src/player/MusicPlayer.js ***!
\***********************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ MusicPlayer)\n/* harmony export */ });\n/* harmony import */ var _styles_musicPlayer_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../styles/musicPlayer.css */ \"./src/styles/musicPlayer.css\");\n/* harmony import */ var _MusicPlaylist_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MusicPlaylist.js */ \"./src/player/MusicPlaylist.js\");\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }\n\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n\nfunction _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"set\"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }\n\nfunction _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError(\"attempted to set read only private field\"); } descriptor.value = value; } }\n\nfunction _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"get\"); return _classApplyDescriptorGet(receiver, descriptor); }\n\nfunction _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError(\"attempted to \" + action + \" private field on non-instance\"); } return privateMap.get(receiver); }\n\nfunction _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }\n\n\n\n/**@module */\n\n/**\n * @callback changeListener\n * @param {*} old the previous value.\n * @param {*} current the the current (new) value.\n */\n\n/**\n * A player that keeps track of global properties for playback as well as traversing a playlist. Additionally keeps track of music audio data and attempts to reduce memory usage when possible.\n */\n\nvar _playlist = /*#__PURE__*/new WeakMap();\n\nvar _volume = /*#__PURE__*/new WeakMap();\n\nvar _autoplay = /*#__PURE__*/new WeakMap();\n\nvar _wasPlaying = /*#__PURE__*/new WeakMap();\n\nvar _playlistChangeListeners = /*#__PURE__*/new WeakMap();\n\nvar _volumeChangeListeners = /*#__PURE__*/new WeakMap();\n\nvar _allAudioEventListeners = /*#__PURE__*/new WeakMap();\n\nvar _onMusicChange = /*#__PURE__*/new WeakMap();\n\nvar MusicPlayer = /*#__PURE__*/function () {\n /**\n * \n * @param {MusicPlaylist} playlist the playlist of musics that this player is in charge of.\n */\n function MusicPlayer(playlist) {\n var _this = this;\n\n _classCallCheck(this, MusicPlayer);\n\n _classPrivateFieldInitSpec(this, _playlist, {\n writable: true,\n value: void 0\n });\n\n _classPrivateFieldInitSpec(this, _volume, {\n writable: true,\n value: 1\n });\n\n _classPrivateFieldInitSpec(this, _autoplay, {\n writable: true,\n value: false\n });\n\n _classPrivateFieldInitSpec(this, _wasPlaying, {\n writable: true,\n value: false\n });\n\n _classPrivateFieldInitSpec(this, _playlistChangeListeners, {\n writable: true,\n value: []\n });\n\n _classPrivateFieldInitSpec(this, _volumeChangeListeners, {\n writable: true,\n value: []\n });\n\n _classPrivateFieldInitSpec(this, _allAudioEventListeners, {\n writable: true,\n value: {}\n });\n\n _classPrivateFieldInitSpec(this, _onMusicChange, {\n writable: true,\n value: function value(old, current) {\n // Anonymous to avoid overriding \"this\".\n var oldMusic = _this.playlist.musicAtIndex(old);\n\n var currentMusic = _this.playlist.musicAtIndex(current);\n\n Object.keys(_classPrivateFieldGet(_this, _allAudioEventListeners)).forEach(function (key) {\n var listeners = _classPrivateFieldGet(_this, _allAudioEventListeners)[key];\n\n listeners.forEach(function (listener) {\n oldMusic.fetchAudio().removeEventListener(key, listener);\n });\n });\n oldMusic.unloadAudio();\n Object.keys(_classPrivateFieldGet(_this, _allAudioEventListeners)).forEach(function (key) {\n var listeners = _classPrivateFieldGet(_this, _allAudioEventListeners)[key];\n\n listeners.forEach(function (listener) {\n currentMusic.fetchAudio().addEventListener(key, listener);\n });\n });\n\n if (_classPrivateFieldGet(_this, _wasPlaying) || _classPrivateFieldGet(_this, _autoplay)) {\n _this.playCurrent();\n }\n\n return true;\n }\n });\n\n this.playlist = playlist;\n this.addEventListenerToCurrentAudio(\"ended\", function () {\n _this.next();\n });\n }\n /**\n * The new playlist of musics that this player is in charge of.\n */\n\n\n _createClass(MusicPlayer, [{\n key: \"playlist\",\n get:\n /**\n * The current playlist of musics that this player is in charge of.\n * \n * @returns {MusicPlaylist} The music playlist this player is currently using.\n */\n function get() {\n return _classPrivateFieldGet(this, _playlist);\n }\n /**\n * \n * @returns {boolean} true if and only if successful in going to the next music.\n */\n ,\n set: function set(playlist) {\n var _this2 = this;\n\n if (this.playlist) this.unloadAllAudio();\n if (this.playlist) this.playlist.removePositionChangeListener(_classPrivateFieldGet(this, _onMusicChange));\n\n var old = _classPrivateFieldGet(this, _playlist);\n\n _classPrivateFieldSet(this, _playlist, playlist);\n\n _classPrivateFieldGet(this, _playlist).addPositionChangeListener(_classPrivateFieldGet(this, _onMusicChange));\n\n _classPrivateFieldGet(this, _playlist).currentPosition = 0; // Updates the listener.\n\n _classPrivateFieldGet(this, _playlistChangeListeners).forEach(function (playlistChangeListener) {\n playlistChangeListener(old, _this2.getPlaylist());\n });\n }\n }, {\n key: \"next\",\n value: function next() {\n return this.playlist.currentPosition += 1;\n }\n /**\n * attempts to go to the previous music.\n * \n * @returns {boolean} true if and only if successful in going to the previous music.\n */\n\n }, {\n key: \"previous\",\n value: function previous() {\n return this.playlist.currentPosition -= 1;\n }\n /**\n * @param {number} old the index of the previous music.\n * @param {number} current the index of the current music.\n * @returns {boolean} true if and only if successful jumping to the given index.\n */\n\n }, {\n key: \"playCurrent\",\n value: function playCurrent() {\n var _this3 = this;\n\n this.playlist.currentMusic.fetchAudio(function (audio) {\n audio.volume = _this3.volume;\n audio.play();\n });\n\n _classPrivateFieldSet(this, _wasPlaying, true);\n }\n /**\n * Pauses the current playing music (if there is one playing).\n */\n\n }, {\n key: \"pauseCurrent\",\n value: function pauseCurrent() {\n this.playlist.currentMusic.fetchAudio().pause();\n }\n /**\n * Toggles whether or not the current music is playing.\n */\n\n }, {\n key: \"togglePlay\",\n value: function togglePlay() {\n if (this.playing) {\n this.pauseCurrent();\n } else {\n this.playCurrent();\n }\n }\n /**\n * A number between 0 to 1 inclusive representing the volume of the player. Values out of these bounds will be rounded to the nearest bound.\n */\n\n }, {\n key: \"volume\",\n get:\n /**\n * \n * @returns {number} The current volume of the player represented by a number between 0 and 1 inclusive.\n */\n function get() {\n return _classPrivateFieldGet(this, _volume);\n }\n /**\n * Attempts to seek to the given position.\n * \n * @param {number} position the position to seek to.\n * @returns {boolean} true if and only if the position to seek to is within the duration of the track. This also means that if the track has not finished loading the duration data, than this will always return false.\n */\n ,\n set: function set(volume) {\n if (volume > 1) volume = 1;\n if (volume < 0) volume = 0;\n\n _classPrivateFieldSet(this, _volume, volume);\n\n this.playlist.currentMusic.fetchAudio().volume = _classPrivateFieldGet(this, _volume);\n }\n }, {\n key: \"seek\",\n value: function seek(position) {\n if (position > this.playlist.playlist.currentMusic.fetchAudio().duration || position < 0) return false;\n this.playlist.playlist.currentMusic.fetchAudio(function (audio) {\n audio.currentTime = position;\n });\n return true;\n }\n /**\n * \n * @returns {number} How many seconds into the audio track has been played in seconds.\n */\n\n }, {\n key: \"currentPosition\",\n get: function get() {\n return this.playlist.playlist.currentMusic.fetchAudio().currentTime;\n }\n /**\n * \n * @returns {number} The total length of the music, or NaN if this information has not loaded yet.\n */\n\n }, {\n key: \"currentDuration\",\n get: function get() {\n return this.playlist.playlist.currentMusic.fetchAudio().duration;\n }\n /**\n * Convenience method for creating a play button complete with CSS for transitioning to a paused button.\n * \n * Automatically hooked up to the player's state change updates and play and pause functions.\n * \n * @returns {HTMLElement} the play button element that can be added to a DOM.\n */\n\n }, {\n key: \"generatePlayElement\",\n value: function generatePlayElement() {\n var _this4 = this;\n\n var playButton = document.createElement(\"button\");\n playButton.classList.add(\"player\");\n playButton.classList.add(\"play-btn\");\n if (this.playing) playButton.classList.add(\"pause\");\n playButton.addEventListener(\"click\", function () {\n _this4.togglePlay();\n });\n this.addEventListenerToCurrentAudio(\"play\", function () {\n playButton.classList.add(\"pause\");\n });\n this.addEventListenerToCurrentAudio(\"pause\", function () {\n playButton.classList.remove(\"pause\");\n });\n return playButton;\n }\n }, {\n key: \"generateNextElement\",\n value: function generateNextElement() {\n var _this5 = this;\n\n var nextButton = document.createElement(\"button\");\n nextButton.classList.add(\"player\");\n nextButton.classList.add(\"next\");\n nextButton.addEventListener(\"click\", function () {\n _this5.next();\n });\n return nextButton;\n }\n }, {\n key: \"generatePreviousElement\",\n value: function generatePreviousElement() {\n var _this6 = this;\n\n var previousButton = document.createElement(\"button\");\n previousButton.classList.add(\"player\");\n previousButton.classList.add(\"previous\");\n previousButton.addEventListener(\"click\", function () {\n _this6.previous();\n });\n return previousButton;\n }\n /**\n * \n * @param {changeListener} listener the playlist change listener to add to the callback list.\n * @returns {boolean} true if and only if the given listener was successfully registered.\n */\n\n }, {\n key: \"addPlaylistChangeListener\",\n value: function addPlaylistChangeListener(listener) {\n if (_classPrivateFieldGet(this, _playlistChangeListeners).includes(listener)) return false;\n\n _classPrivateFieldGet(this, _playlistChangeListeners).push(listener);\n\n return true;\n }\n /**\n * \n * @param {changeListener} listener the playlist change listener to remove.\n * @returns {boolean} true if and only if a listener was successfully removed from the callback list.\n */\n\n }, {\n key: \"removePlaylistChangeListener\",\n value: function removePlaylistChangeListener(listener) {\n var removeIndex = _classPrivateFieldGet(this, _playlistChangeListeners).indexOf(listener);\n\n if (removeIndex < 0) return false;\n this.playlistChangeListener.splice(removeIndex, 1);\n return true;\n }\n /**\n * \n * @param {changeListener} listener the listener that is called when the player's volume is changed.\n * @returns {boolean} true if and only if the listener was successfully added.\n */\n\n }, {\n key: \"addVolumeChangeListener\",\n value: function addVolumeChangeListener(listener) {\n if (_classPrivateFieldGet(this, _volumeChangeListeners).includes(listener)) return false;\n\n _classPrivateFieldGet(this, _volumeChangeListeners).push(listener);\n\n return true;\n }\n /**\n * \n * @param {changeListener} listener the volume change listener to remove.\n * @returns {boolean} true if and only if a listener was successfully removed from the callback list.\n */\n\n }, {\n key: \"removeVolumeChangeListener\",\n value: function removeVolumeChangeListener(listener) {\n var removeIndex = _classPrivateFieldGet(this, _volumeChangeListeners).indexOf(listener);\n\n if (removeIndex < 0) return false;\n\n _classPrivateFieldGet(this, _volumeChangeListeners).splice(removeIndex, 1);\n\n return true;\n }\n /**\n * \n * @param {string} type the type of the listener on the {@link HTMLAudioElement}.\n * @param {Function} eventListener the event listener.\n * @returns {boolean} true if and only if successfully registered event listener.\n */\n\n }, {\n key: \"addEventListenerToCurrentAudio\",\n value: function addEventListenerToCurrentAudio(type, eventListener) {\n var typeListeners = _classPrivateFieldGet(this, _allAudioEventListeners)[type];\n\n if (!typeListeners) {\n typeListeners = [];\n _classPrivateFieldGet(this, _allAudioEventListeners)[type] = typeListeners;\n }\n\n if (typeListeners.includes(eventListener)) return false;\n typeListeners.push(eventListener);\n this.playlist.currentMusic.fetchAudio().addEventListener(type, eventListener);\n return true;\n }\n /**\n * \n * @param {string} type the type of the listener on the {@link HTMLAudioElement}. \n * @param {Function} eventListener the event listener. \n * @returns {boolean} true if and only if the event listener was successfully added.\n */\n\n }, {\n key: \"removeEventListenerFromCurrentAudio\",\n value: function removeEventListenerFromCurrentAudio(type, eventListener) {\n var typeListeners = _classPrivateFieldGet(this, _allAudioEventListeners)[type];\n\n if (!typeListeners) return false;\n var removeIndex = typeListeners.indexOf(eventListener);\n if (removeIndex < 0) return false;\n typeListeners.splice(removeIndex, 1);\n this.playlist.playlist.currentMusic.fetchAudio().removeEventListener(type, eventListener);\n return true;\n }\n /**\n * @returns {boolean} If the player is playing any musics right now.\n */\n\n }, {\n key: \"playing\",\n get: function get() {\n return this.playlist.currentMusic.isAudioInstantiated() && !this.playlist.currentMusic.fetchAudio().paused;\n }\n /**\n * Unloads the audio data of all musics in this playlist.\n */\n\n }, {\n key: \"unloadAllAudio\",\n value: function unloadAllAudio() {\n this.playlist.forEach(function (music) {\n music.unloadAudio();\n });\n }\n }]);\n\n return MusicPlayer;\n}();\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application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biAgICAgICAgICAgIH0pO1xuICAgICAgICB9KTtcbiAgICAgICAgb2xkTXVzaWMudW5sb2FkQXVkaW8oKTtcblxuICAgICAgICBPYmplY3Qua2V5cyh0aGlzLiNhbGxBdWRpb0V2ZW50TGlzdGVuZXJzKS5mb3JFYWNoKGtleSA9PiB7XG4gICAgICAgICAgICBjb25zdCBsaXN0ZW5lcnMgPSB0aGlzLiNhbGxBdWRpb0V2ZW50TGlzdGVuZXJzW2tleV07XG4gICAgICAgICAgICBsaXN0ZW5lcnMuZm9yRWFjaChsaXN0ZW5lciA9PiB7XG4gICAgICAgICAgICAgICAgY3VycmVudE11c2ljLmZldGNoQXVkaW8oKS5hZGRFdmVudExpc3RlbmVyKGtleSwgbGlzdGVuZXIpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH0pO1xuICAgICAgICBpZiAodGhpcy4jd2FzUGxheWluZyB8fCB0aGlzLiNhdXRvcGxheSkge1xuICAgICAgICAgICAgdGhpcy5wbGF5Q3VycmVudCgpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiB0cnVlO1xuICAgIH07XG5cbiAgICBwbGF5Q3VycmVudCgpIHtcbiAgICAgICAgdGhpcy5wbGF5bGlzdC5jdXJyZW50TXVzaWMuZmV0Y2hBdWRpbygoYXVkaW8pID0+IHtcbiAgICAgICAgICAgIGF1ZGlvLnZvbHVtZSA9IHRoaXMudm9sdW1lO1xuICAgICAgICAgICAgYXVkaW8ucGxheSgpO1xuICAgICAgICB9KTtcbiAgICAgICAgdGhpcy4jd2FzUGxheWluZyA9IHRydWU7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUGF1c2VzIHRoZSBjdXJyZW50IHBsYXlpbmcgbXVzaWMgKGlmIHRoZXJlIGlzIG9uZSBwbGF5aW5nKS5cbiAgICAgKi9cbiAgICBwYXVzZUN1cnJlbnQoKSB7XG4gICAgICAgIHRoaXMucGxheWxpc3QuY3VycmVudE11c2ljLmZldGNoQXVkaW8oKS5wYXVzZSg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ZE11c2ljIiwibXVzaWNBdEluZGV4IiwiY3VycmVudE11c2ljIiwiT2JqZWN0Iiwia2V5cyIsImZvckVhY2giLCJrZXkiLCJsaXN0ZW5lcnMiLCJsaXN0ZW5lciIsImZldGNoQXVkaW8iLCJyZW1vdmVFdmVudExpc3RlbmVyIiwidW5sb2FkQXVkaW8iLCJhZGRFdmVudExpc3RlbmVyIiwicGxheUN1cnJlbnQiLCJhZGRFdmVudExpc3RlbmVyVG9DdXJyZW50QXVkaW8iLCJuZXh0IiwidW5sb2FkQWxsQXVkaW8iLCJyZW1vdmVQb3NpdGlvbkNoYW5nZUxpc3RlbmVyIiwiYWRkUG9zaXRpb25DaGFuZ2VMaXN0ZW5lciIsImN1cnJlbnRQb3NpdGlvbiIsInBsYXlsaXN0Q2hhbmdlTGlzdGVuZXIiLCJnZXRQbGF5bGlzdCIsImF1ZGlvIiwidm9sdW1lIiwicGxheSIsInBhdXNlIiwicGxheWluZyIsInBhdXNlQ3VycmVudCIsInBvc2l0aW9uIiwiZHVyYXRpb24iLCJjdXJyZW50VGltZSIsInBsYXlCdXR0b24iLCJkb2N1bWVudCIsImNyZWF0ZUVsZW1lbnQiLCJjbGFzc0xpc3QiLCJhZGQiLCJ0b2dnbGVQbGF5IiwicmVtb3ZlIiwibmV4dEJ1dHRvbiIsInByZXZpb3VzQnV0dG9uIiwicHJldmlvdXMiLCJpbmNsdWRlcyIsInB1c2giLCJyZW1vdmVJbmRleCIsImluZGV4T2YiLCJzcGxpY2UiLCJ0eXBlIiwiZXZlbnRMaXN0ZW5lciIsInR5cGVMaXN0ZW5lcnMiLCJpc0F1ZGlvSW5zdGFudGlhdGVkIiwicGF1c2VkIiwibXVzaWMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/player/MusicPlayer.js\n");
/***/ }),
/***/ "./src/player/MusicPlaylist.js":
/*!*************************************!*\
!*** ./src/player/MusicPlaylist.js ***!
\*************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ MusicPlaylist)\n/* harmony export */ });\n/* harmony import */ var _Music_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Music.js */ \"./src/player/Music.js\");\nvar _Symbol$iterator;\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }\n\nfunction _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }\n\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n\nfunction _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError(\"attempted to get private field on non-instance\"); } return fn; }\n\nfunction _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"get\"); return _classApplyDescriptorGet(receiver, descriptor); }\n\nfunction _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }\n\nfunction _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"set\"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }\n\nfunction _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError(\"attempted to \" + action + \" private field on non-instance\"); } return privateMap.get(receiver); }\n\nfunction _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError(\"attempted to set read only private field\"); } descriptor.value = value; } }\n\n\n/**@module */\n\n/**\n * @callback positionChangeListener\n * @param {number} old the previous position.\n * @param {number} current the the current (new) position.\n */\n\n/**\n * @callback lengthChangeListener\n * @param {number} changed The index of the music that has changed.\n * @param {boolean} added True if and only if the change was caused by adding music.\n * @param {Music} music The music that was added or removed.\n */\n\n/**\n * A playlist that holds a multitude of musics in the form of {@link Music}.\n */\n\nvar _list = /*#__PURE__*/new WeakMap();\n\nvar _name = /*#__PURE__*/new WeakMap();\n\nvar _current = /*#__PURE__*/new WeakMap();\n\nvar _positionChangeListeners = /*#__PURE__*/new WeakMap();\n\nvar _lengthChangeListeners = /*#__PURE__*/new WeakMap();\n\nvar _onAdd = /*#__PURE__*/new WeakSet();\n\n_Symbol$iterator = Symbol.iterator;\n\nvar MusicPlaylist = /*#__PURE__*/function () {\n /**\n * Instantiates a playlist for musics.\n * \n * @param {string} name The name of the playlist.\n */\n function MusicPlaylist(name) {\n _classCallCheck(this, MusicPlaylist);\n\n _classPrivateMethodInitSpec(this, _onAdd);\n\n _classPrivateFieldInitSpec(this, _list, {\n writable: true,\n value: []\n });\n\n _classPrivateFieldInitSpec(this, _name, {\n writable: true,\n value: void 0\n });\n\n _classPrivateFieldInitSpec(this, _current, {\n writable: true,\n value: 0\n });\n\n _classPrivateFieldInitSpec(this, _positionChangeListeners, {\n writable: true,\n value: []\n });\n\n _classPrivateFieldInitSpec(this, _lengthChangeListeners, {\n writable: true,\n value: []\n });\n\n _classPrivateFieldSet(this, _name, name);\n }\n /**\n * @returns {string} The name of the playlist. \n */\n\n\n _createClass(MusicPlaylist, [{\n key: \"name\",\n get: function get() {\n return _classPrivateFieldGet(this, _name);\n }\n /**\n * \n * @param {number} index the index of the music to retrieve.\n * @returns {Music} the music at the given index.\n */\n\n }, {\n key: \"musicAtIndex\",\n value: function musicAtIndex(index) {\n if (index >= this.total) {\n return null;\n }\n\n return _classPrivateFieldGet(this, _list)[index];\n }\n /**\n * Automatically creates and adds a {@link Music} to this playlist.\n * \n * @param {string} url where the audio data can be found.\n * @param {string} name the name of the music.\n * @param {string} author the author(s) of the music.\n */\n\n }, {\n key: \"add\",\n value: function add(url, name, author) {\n var music = new _Music_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"](url, name, author, this);\n\n _classPrivateFieldGet(this, _list).push(music);\n\n _classPrivateMethodGet(this, _onAdd, _onAdd2).call(this, this.total - 1, music);\n }\n /**\n * Adds an existing {@link Music} object to this playlist. Alternatively, use {@link MusicPlaylist#add} to automatically instantiate a new one.\n * \n * @param {Music} music The existing music to add.\n */\n\n }, {\n key: \"addExisting\",\n value: function addExisting(music) {\n _classPrivateFieldGet(this, _list).push(music);\n\n _classPrivateMethodGet(this, _onAdd, _onAdd2).call(this, this.total - 1, music);\n }\n /**\n * Calls all playlist length change listeners.\n * \n * @param {number} index The index at which the new music was added.\n * @param {Music} music The music that was added.\n */\n\n }, {\n key: \"remove\",\n value:\n /**\n * Removes a {@link Music} from this playlist.\n * \n * @param {number} index the index of the music to be removed.\n * @returns {Music} the music that was removed, or null if the index of was invalid.\n */\n function remove(index) {\n if (index >= _classPrivateFieldGet(this, _list).length) {\n return null;\n }\n\n var removed = _classPrivateFieldGet(this, _list).splice(index, 1)[0];\n\n _classPrivateFieldGet(this, _lengthChangeListeners).forEach(function (listener) {\n listener(index, false, removed);\n });\n\n if (removed.length > 0) {\n return removed[0];\n }\n }\n /**\n * Attempts to find a {@link Music} given a name. Returns the first one found.\n * \n * @param {string} name the name of the music to be found.\n * @returns {number} the index of the music found, or -1 if it was not found.\n */\n\n }, {\n key: \"findMusicIndex\",\n value: function findMusicIndex(name) {\n return _classPrivateFieldGet(this, _list).findIndex(function (item) {\n return item.getDisplayName() == name;\n });\n }\n /**\n * The number of {@link Music} in this playlist.\n * \n * @returns {number} total number of musics in this playlist.\n */\n\n }, {\n key: \"total\",\n get: function get() {\n return _classPrivateFieldGet(this, _list).length;\n }\n /**\n * @returns {number} The current position in the playlist.\n */\n\n }, {\n key: \"currentPosition\",\n get: function get() {\n return _classPrivateFieldGet(this, _current);\n }\n /**\n * The current position in the playlist.\n */\n ,\n set: function set(position) {\n if (typeof position !== \"number\") throw new Error(\"Given position is invalid.\");\n if (position >= _classPrivateFieldGet(this, _list).length || position < 0) return;\n\n var old = _classPrivateFieldGet(this, _current);\n\n _classPrivateFieldSet(this, _current, position);\n\n _classPrivateFieldGet(this, _positionChangeListeners).forEach(function (positionChangeListener) {\n positionChangeListener(old, position);\n });\n }\n /**\n * @returns {Music} The current music in the playlist being used.\n */\n\n }, {\n key: \"currentMusic\",\n get: function get() {\n return this.musicAtIndex(this.currentPosition);\n }\n /**\n * \n * @param {positionChangeListener} listener the listener to receive the updates.\n * @returns {boolean} true if and only if successfully added the listener.\n */\n\n }, {\n key: \"addPositionChangeListener\",\n value: function addPositionChangeListener(listener) {\n if (_classPrivateFieldGet(this, _positionChangeListeners).includes(listener)) return false;\n\n _classPrivateFieldGet(this, _positionChangeListeners).push(listener);\n\n return true;\n }\n /**\n * \n * @param {positionChangeListener} listener the music change listener to remove.\n * @returns {boolean} true if and only if the music change listener given was successfully removed.\n */\n\n }, {\n key: \"removePositionChangeListener\",\n value: function removePositionChangeListener(listener) {\n var removeIndex = _classPrivateFieldGet(this, _positionChangeListeners).indexOf(listener);\n\n if (removeIndex < 0) return false;\n\n _classPrivateFieldGet(this, _positionChangeListeners).splice(removeIndex, 1);\n\n return true;\n }\n /**\n * Adds a listener for whether music was added or removed to the playlist.\n * \n * @param {lengthChangeListener} listener The listener to be added.\n * @returns {boolean} True if and only if the listener was successfully added.\n */\n\n }, {\n key: \"addLengthChangeListener\",\n value: function addLengthChangeListener(listener) {\n if (_classPrivateFieldGet(this, _lengthChangeListeners).includes(listener)) return false;\n\n _classPrivateFieldGet(this, _lengthChangeListeners).push(listener);\n\n return true;\n }\n /**\n * Removes a listener for whether music is added or removed to the playlist.\n * \n * @param {lengthChangeListener} listener The listener to be removed.\n * @returns {boolean} True if and only if the provided listener was successfully removed.\n */\n\n }, {\n key: \"removeLengthChangeListener\",\n value: function removeLengthChangeListener(listener) {\n var removeIndex = _classPrivateFieldGet(this, _lengthChangeListeners).indexOf(listener);\n\n if (removeIndex < 0) return false;\n\n _classPrivateFieldGet(this, _lengthChangeListeners).splice(removeIndex, 1);\n\n return true;\n }\n }, {\n key: \"generatePlaylistElement\",\n value: function generatePlaylistElement() {\n var element = document.createElement(\"table\");\n element.createTHead().textContent = \"Playlist\";\n var headers = element.insertRow();\n var musicHeader = document.createElement(\"th\");\n musicHeader.textContent = \"Music\";\n headers.appendChild(musicHeader);\n var authorHeader = document.createElement(\"th\");\n authorHeader.textContent = \"Author\";\n headers.appendChild(authorHeader);\n\n var insertMusic = function insertMusic(music) {\n var musicPos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n if (musicPos) musicPos++;\n var row = element.insertRow(musicPos);\n row.insertCell().textContent = music.displayName;\n row.insertCell().textContent = music.author;\n };\n\n var _iterator = _createForOfIteratorHelper(this),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var music = _step.value;\n insertMusic(music);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n this.addLengthChangeListener(function (changed, added, music) {\n if (added) {\n insertMusic(music, changed);\n } else {\n element.deleteRow(changed);\n }\n });\n element.rows[this.currentPosition + 1].classList.add(\"active\");\n this.addPositionChangeListener(function (old, current) {\n element.rows[old + 1].classList.remove(\"active\");\n element.rows[current + 1].classList.add(\"active\");\n });\n return element;\n }\n }, {\n key: _Symbol$iterator,\n value: function value() {\n var index = -1;\n\n var data = _classPrivateFieldGet(this, _list);\n\n return {\n next: function next() {\n return {\n value: data[++index],\n done: index >= data.length\n };\n } // Brackets so not read as a body of anonymous function.\n\n };\n }\n }]);\n\n return MusicPlaylist;\n}();\n\nfunction _onAdd2(index, music) {\n _classPrivateFieldGet(this, _lengthChangeListeners).forEach(function (listener) {\n listener(index, true, music);\n });\n}\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvcGxheWV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B9XG59Il0sIm5hbWVzIjpbIk11c2ljIiwiU3ltYm9sIiwiaXRlcmF0b3IiLCJNdXNpY1BsYXlsaXN0IiwibmFtZSIsImluZGV4IiwidG90YWwiLCJ1cmwiLCJhdXRob3IiLCJtdXNpYyIsInB1c2giLCJsZW5ndGgiLCJyZW1vdmVkIiwic3BsaWNlIiwiZm9yRWFjaCIsImxpc3RlbmVyIiwiZmluZEluZGV4IiwiaXRlbSIsImdldERpc3BsYXlOYW1lIiwicG9zaXRpb24iLCJFcnJvciIsIm9sZCIsInBvc2l0aW9uQ2hhbmdlTGlzdGVuZXIiLCJtdXNpY0F0SW5kZXgiLCJjdXJyZW50UG9zaXRpb24iLCJpbmNsdWRlcyIsInJlbW92ZUluZGV4IiwiaW5kZXhPZiIsImVsZW1lbnQiLCJkb2N1bWVudCIsImNyZWF0ZUVsZW1lbnQiLCJjcmVhdGVUSGVhZCIsInRleHRDb250ZW50IiwiaGVhZGVycyIsImluc2VydFJvdyIsIm11c2ljSGVhZGVyIiwiYXBwZW5kQ2hpbGQiLCJhdXRob3JIZWFkZXIiLCJpbnNlcnRNdXNpYyIsIm11c2ljUG9zIiwidW5kZWZpbmVkIiwicm93IiwiaW5zZXJ0Q2VsbCIsImRpc3BsYXlOYW1lIiwiYWRkTGVuZ3RoQ2hhbmdlTGlzdGVuZXIiLCJjaGFuZ2VkIiwiYWRkZWQiLCJkZWxldGVSb3ciLCJyb3dzIiwiY2xhc3NMaXN0IiwiYWRkIiwiYWRkUG9zaXRpb25DaGFuZ2VMaXN0ZW5lciIsImN1cnJlbnQiLCJyZW1vdmUiLCJkYXRhIiwibmV4dCIsInZhbHVlIiwiZG9uZSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/player/MusicPlaylist.js\n");
/***/ }),
/***/ "./src/player/VisualizedMusicPlayer.js":
/*!*********************************************!*\
!*** ./src/player/VisualizedMusicPlayer.js ***!
\*********************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ VisualizedMusicPlayer)\n/* harmony export */ });\n/* harmony import */ var _visualization_Visualizer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../visualization/Visualizer.js */ \"./src/visualization/Visualizer.js\");\n/* harmony import */ var _visualization_VisualizerUpdateManager_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../visualization/VisualizerUpdateManager.js */ \"./src/visualization/VisualizerUpdateManager.js\");\n/* harmony import */ var _MusicPlayer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MusicPlayer.js */ \"./src/player/MusicPlayer.js\");\n/* harmony import */ var _MusicPlaylist_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./MusicPlaylist.js */ \"./src/player/MusicPlaylist.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _get() { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }\n\nfunction set(target, property, value, receiver) { if (typeof Reflect !== \"undefined\" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { _defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); }\n\nfunction _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new Error('failed to set property'); } return value; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }\n\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n\nfunction _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"get\"); return _classApplyDescriptorGet(receiver, descriptor); }\n\nfunction _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }\n\nfunction _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"set\"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }\n\nfunction _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError(\"attempted to \" + action + \" private field on non-instance\"); } return privateMap.get(receiver); }\n\nfunction _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError(\"attempted to set read only private field\"); } descriptor.value = value; } }\n\n\n\n\n\n/**@module */\n\n/**\n * A music player that provides easier access to the current musics visualizer data.\n * Additionally, automatically re-binds all the visualizer update listeners for music changes.\n * \n * @augments MusicPlayer\n */\n\nvar _fftSize = /*#__PURE__*/new WeakMap();\n\nvar _visualizerUpdateManager = /*#__PURE__*/new WeakMap();\n\nvar VisualizedMusicPlayer = /*#__PURE__*/function (_MusicPlayer) {\n _inherits(VisualizedMusicPlayer, _MusicPlayer);\n\n var _super = _createSuper(VisualizedMusicPlayer);\n\n /**\n * Instantiates a music player with visualization features.\n * \n * @param {MusicPlaylist} playlist the playlist this player manages.\n * @param {number} [fftSize=1024] the size of the fft window for analysis.\n */\n function VisualizedMusicPlayer(playlist) {\n var _this;\n\n var fftSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1024;\n\n _classCallCheck(this, VisualizedMusicPlayer);\n\n _this = _super.call(this, playlist);\n\n _classPrivateFieldInitSpec(_assertThisInitialized(_this), _fftSize, {\n writable: true,\n value: 1024\n });\n\n _classPrivateFieldInitSpec(_assertThisInitialized(_this), _visualizerUpdateManager, {\n writable: true,\n value: void 0\n });\n\n _classPrivateFieldSet(_assertThisInitialized(_this), _fftSize, fftSize);\n\n _classPrivateFieldSet(_assertThisInitialized(_this), _visualizerUpdateManager, new _visualization_VisualizerUpdateManager_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"](_this.getCurrentMusicVisualizer()));\n\n return _this;\n }\n /**\n * Sets the the playlist.\n */\n\n\n _createClass(VisualizedMusicPlayer, [{\n key: \"playlist\",\n set: function set(playlist) {\n _set(_getPrototypeOf(VisualizedMusicPlayer.prototype), \"playlist\", playlist, this, true);\n\n _classPrivateFieldSet(this, _visualizerUpdateManager, new _visualization_VisualizerUpdateManager_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"](this.getCurrentMusicVisualizer()));\n }\n /**\n * \n * @returns {boolean} true if and only if successful in changing to the next music.\n */\n\n }, {\n key: \"next\",\n value: function next() {\n var updateListeners = _classPrivateFieldGet(this, _visualizerUpdateManager).getBinnedListeners();\n\n if (!_get(_getPrototypeOf(VisualizedMusicPlayer.prototype), \"next\", this).call(this)) return false;\n\n _classPrivateFieldSet(this, _visualizerUpdateManager, new _visualization_VisualizerUpdateManager_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"](this.getCurrentMusicVisualizer()));\n\n _classPrivateFieldGet(this, _visualizerUpdateManager).setBinnedListeners(updateListeners);\n\n return true;\n }\n /**\n * Jumps to the previous music if possible.\n * \n * @returns {boolean} true if and only if successful in switching to the previous music in the playlist.\n */\n\n }, {\n key: \"previous\",\n value: function previous() {\n var updateListeners = _classPrivateFieldGet(this, _visualizerUpdateManager).getBinnedListeners();\n\n if (!_get(_getPrototypeOf(VisualizedMusicPlayer.prototype), \"previous\", this).call(this)) return false;\n\n _classPrivateFieldSet(this, _visualizerUpdateManager, new _visualization_VisualizerUpdateManager_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"](this.getCurrentMusicVisualizer()));\n\n _classPrivateFieldGet(this, _visualizerUpdateManager).setBinnedListeners(updateListeners);\n\n return true;\n }\n /**\n * \n * @param {number} index the index of the music to change to.\n * @returns {boolean} true if and only if successful in jumping to the given index.\n */\n\n }, {\n key: \"changeCurrent\",\n value: function changeCurrent(index) {\n var updateListeners = this.VisualizerUpdateManager.getBinnedListeners();\n if (!_get(_getPrototypeOf(VisualizedMusicPlayer.prototype), \"changeCurrent\", this).call(this, index)) return false;\n\n _classPrivateFieldSet(this, _visualizerUpdateManager, new _visualization_VisualizerUpdateManager_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"](this.getCurrentMusicVisualizer()));\n\n _classPrivateFieldGet(this, _visualizerUpdateManager).setBinnedListeners = updateListeners();\n return true;\n }\n /**\n * @returns {VisualizerUpdateManager} The current visualizer update manager.\n */\n\n }, {\n key: \"currentVisualizerUpdateManager\",\n get: function get() {\n return _classPrivateFieldGet(this, _visualizerUpdateManager).call(this);\n }\n /**\n * @returns {Visualizer} The current music's visualizer.\n */\n\n }, {\n key: \"currentMusicVisualizer\",\n get: function get() {\n return this.getCurrentMusic().getVisualizer();\n }\n }]);\n\n return VisualizedMusicPlayer;\n}(_MusicPlayer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"]);\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvcGxheWVyL1Zpc3VhbGl6ZWRNdXNpY1BsYXllci5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7Ozs7O0lBQ3FCSTs7Ozs7QUFJakI7QUFDSjtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0ksaUNBQVlDLFFBQVosRUFBc0M7QUFBQTs7QUFBQSxRQUFoQkMsT0FBZ0IsdUVBQU4sSUFBTTs7QUFBQTs7QUFDbEMsOEJBQU1ELFFBQU47O0FBRGtDO0FBQUE7QUFBQSxhQVQzQjtBQVMyQjs7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFFbEMsbUVBQWdCQyxPQUFoQjs7QUFDQSxtRkFBZ0MsSUFBSUwsaUZBQUosQ0FBNEIsTUFBS00seUJBQUwsRUFBNUIsQ0FBaEM7O0FBSGtDO0FBSXJDO0FBRUQ7QUFDSjtBQUNBOzs7OztTQUNJLGFBQWFGLFFBQWIsRUFBdUI7QUFDbkIseUVBQWlCQSxRQUFqQjs7QUFDQSw0REFBZ0MsSUFBSUosaUZBQUosQ0FBNEIsS0FBS00seUJBQUwsRUFBNUIsQ0FBaEM7QUFDSDtBQUVEO0FBQ0o7QUFDQTtBQUNBOzs7O1dBQ0ksZ0JBQU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VyfSBUaGUgY3VycmVudCBtdXNpYydzIHZpc3VhbGl6ZXIuXG4gICAgICovXG4gICAgZ2V0IGN1cnJlbnRNdXNpY1Zpc3VhbGl6ZXIoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLmdldEN1cnJlbnRNdXNpYygpLmdldFZpc3VhbGl6ZXIoKTtcbiAgICB9XG59Il0sIm5hbWVzIjpbIlZpc3VhbGl6ZXIiLCJWaXN1YWxpemVyVXBkYXRlTWFuYWdlciIsIk11c2ljUGxheWVyIiwiTXVzaWNQbGF5bGlzdCIsIlZpc3VhbGl6ZWRNdXNpY1BsYXllciIsInBsYXlsaXN0IiwiZmZ0U2l6ZSIsImdldEN1cnJlbnRNdXNpY1Zpc3VhbGl6ZXIiLCJ1cGRhdGVMaXN0ZW5lcnMiLCJnZXRCaW5uZWRMaXN0ZW5lcnMiLCJzZXRCaW5uZWRMaXN0ZW5lcnMiLCJpbmRleCIsImdldEN1cnJlbnRNdXNpYyIsImdldFZpc3VhbGl6ZXIiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/player/VisualizedMusicPlayer.js\n");
/***/ }),
/***/ "./src/player/player.js":
/*!******************************!*\
!*** ./src/player/player.js ***!
\******************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Music\": () => (/* reexport safe */ _Music_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"]),\n/* harmony export */ \"MusicPlayer\": () => (/* reexport safe */ _MusicPlayer_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"]),\n/* harmony export */ \"MusicPlaylist\": () => (/* reexport safe */ _MusicPlaylist_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]),\n/* harmony export */ \"VisualizedMusicPlayer\": () => (/* reexport safe */ _VisualizedMusicPlayer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])\n/* harmony export */ });\n/* harmony import */ var _MusicPlayer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MusicPlayer.js */ \"./src/player/MusicPlayer.js\");\n/* harmony import */ var _MusicPlaylist_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MusicPlaylist.js */ \"./src/player/MusicPlaylist.js\");\n/* harmony import */ var _VisualizedMusicPlayer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./VisualizedMusicPlayer.js */ \"./src/player/VisualizedMusicPlayer.js\");\n/* harmony import */ var _Music_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Music.js */ \"./src/player/Music.js\");\n\n\n\n\n/**@module */\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvcGxheWVyL3BsYXllci5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBRUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9hdWRpb3Nob3draXQvLi9zcmMvcGxheWVyL3BsYXllci5qcz80YmIwIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBNdXNpY1BsYXllciBmcm9tIFwiLi9NdXNpY1BsYXllci5qc1wiO1xuaW1wb3J0IE11c2ljUGxheWxpc3QgZnJvbSBcIi4vTXVzaWNQbGF5bGlzdC5qc1wiO1xuaW1wb3J0IFZpc3VhbGl6ZWRNdXNpY1BsYXllciBmcm9tIFwiLi9WaXN1YWxpemVkTXVzaWNQbGF5ZXIuanNcIjtcbmltcG9ydCBNdXNpYyBmcm9tIFwiLi9NdXNpYy5qc1wiO1xuXG4vKipAbW9kdWxlICovXG5leHBvcnQgeyBNdXNpY1BsYXllciwgTXVzaWNQbGF5bGlzdCwgVmlzdWFsaXplZE11c2ljUGxheWVyLCBNdXNpYyB9OyJdLCJuYW1lcyI6WyJNdXNpY1BsYXllciIsIk11c2ljUGxheWxpc3QiLCJWaXN1YWxpemVkTXVzaWNQbGF5ZXIiLCJNdXNpYyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/player/player.js\n");
/***/ }),
/***/ "./src/support/colors.js":
/*!*******************************!*\
!*** ./src/support/colors.js ***!
\*******************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"cssRgbToRgba\": () => (/* binding */ cssRgbToRgba),\n/* harmony export */ \"cssRgbaToRgba\": () => (/* binding */ cssRgbaToRgba),\n/* harmony export */ \"parseColor\": () => (/* binding */ parseColor),\n/* harmony export */ \"rgbHexToRgba\": () => (/* binding */ rgbHexToRgba),\n/* harmony export */ \"rgbaHexToRgba\": () => (/* binding */ rgbaHexToRgba),\n/* harmony export */ \"rgbaToHexRgba\": () => (/* binding */ rgbaToHexRgba)\n/* harmony export */ });\n/**\n * Converts from rgba hex value to an array of four numbers representing r, g, b, and a respectively.\n * \n * @param {string} hex the hex value.\n * @returns {number[]} the resulting components of the hex value.\n */\nfunction rgbaHexToRgba(hex) {\n if (hex.startsWith(\"#\")) {\n hex = hex.substring(1);\n\n if (hex.length > 8) {\n throw new Error(\"Invalid hex syntax (length).\");\n }\n } else {\n throw new Error(\"Invalid hex syntax (missing pound).\");\n }\n\n for (var i = hex.length; i < 8; i++) {\n hex = \"0\" + hex;\n }\n\n var remaining = hex.length;\n var result = [0, 0, 0, 0];\n result[3] = parseInt(hex.substring(remaining -= 2, remaining + 2), 16);\n result[2] = parseInt(hex.substring(remaining -= 2, remaining + 2), 16);\n result[1] = parseInt(hex.substring(remaining -= 2, remaining + 2), 16);\n result[0] = parseInt(hex.substring(remaining -= 2, remaining + 2), 16);\n return result;\n}\n/**\n * \n * @param {string} hex the hex value.\n * @returns {number[]} the resulting r, g, and b components.\n */\n\n\nfunction rgbHexToRgba(hex) {\n var result = rgbaHexToRgba(hex + \"FF\");\n return result;\n}\n/**\n * Converts from the CSS rgba call to an array of four numbers representing r, g, b and a.\n * \n * @param {string} rgba The CSS rgba(r,g,b,a) call.\n * @returns {number[]} the rgba components.\n */\n\n\nfunction cssRgbaToRgba(rgba) {\n var cssRgbaRegex = /rgba\\((\\d+),(\\d+),(\\d+),(\\d+)\\)/;\n\n try {\n var matches = rgba.match(cssRgbaRegex);\n return [parseInt(matches[1]), parseInt(matches[2]), parseInt(matches[3]), parseInt(matches[4])];\n } catch (error) {\n throw new Error(\"Could not parse the given css rgba function call: \" + error.message);\n }\n}\n/**\n * Converts from the CSS rgb call to an array of four numbers representing r, g, b and a.\n * \n * @param {string} rgb The CSS rgb(r,g,b) call.\n * @returns {number[]} the rgba components.\n */\n\n\nfunction cssRgbToRgba(rgb) {\n var cssRgbRegex = /rgb\\((\\d+),(\\d+),(\\d+)\\)/;\n\n try {\n var matches = rgb.match(cssRgbRegex);\n return [parseInt(matches[1]), parseInt(matches[2]), parseInt(matches[3]), 255];\n } catch (error) {\n throw new Error(\"Could not parse the given css rgb function call: \" + error.message);\n }\n}\n/**\n * Converts a given array of r, g, b, and a components into a hex string.\n * \n * @param {number[]} rgba an array with red, green, blue, and alpha components in that order.\n * @returns {string} The resulting hex value.\n */\n\n\nfunction rgbaToHexRgba(rgba) {\n var filler = function filler(hex) {\n return hex.length < 2 ? \"0\" + hex : hex;\n };\n\n return \"#\" + filler(rgba[0].toString(16)) + filler(rgba[1].toString(16)) + filler(rgba[2].toString(16)) + filler(rgba[3].toString(16));\n}\n/**\n * Converts a css rgb, rgba, hex, or rgba hex to a rgba array.\n * \n * For hex, we assume there is no alpha channel unless the hex value is not minimized.\n * \n * @param {string} color The string that contains the color information.\n * @returns {number[]} an array that contains the r, g, b and a components.\n */\n\n\nfunction parseColor(color) {\n if (color.startsWith(\"rgba(\")) {\n return cssRgbaToRgba(color);\n } else if (color.startsWith(\"rgb(\")) {\n return cssRgbToRgba(color);\n } else if (color.startsWith(\"#\")) {\n if (color.length === 9) {\n return rgbaHexToRgba(color);\n } else {\n return rgbHexToRgba(color);\n }\n }\n\n throw new Error(\"Could not parse to an rgba value.\");\n}\n/**@module */\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3VwcG9ydC9jb2xvcnMuanMuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsU0FBU0EsYUFBVCxDQUF1QkMsR0FBdkIsRUFBNEI7QUFDeEIsTUFBSUEsR0FBRyxDQUFDQyxVQUFKLENBQWUsR0FBZixDQUFKLEVBQXlCO0FBQ3JCRCxJQUFBQSxHQUFHLEdBQUdBLEdBQUcsQ0FBQ0UsU0FBSixDQUFjLENBQWQsQ0FBTjs7QUFDQSxRQUFJRixHQUFHLENBQUNHLE1BQUosR0FBYSxDQUFqQixFQUFvQjtBQUNoQixZQUFNLElBQUlDLEtBQUosQ0FBVSw4QkFBVixDQUFOO0FBQ0g7QUFDSixHQUxELE1BS087QUFDSCxVQUFNLElBQUlBLEtBQUosQ0FBVSxxQ0FBVixDQUFOO0FBQ0g7O0FBQ0QsT0FBSyxJQUFJQyxDQUFDLEdBQUdMLEdBQUcsQ0FBQ0csTUFBakIsRUFBeUJFLENBQUMsR0FBRyxDQUE3QixFQUFnQ0EsQ0FBQyxFQUFqQyxFQUFxQztBQUNqQ0wsSUFBQUEsR0FBRyxHQUFHLE1BQU1BLEdBQVo7QUFDSDs7QUFDRCxNQUFJTSxTQUFTLEdBQUdOLEdBQUcsQ0FBQ0csTUFBcEI7QUFDQSxNQUFJSSxNQUFNLEdBQUcsQ0FBQyxDQUFELEVBQUksQ0FBSixFQUFPLENBQVAsRUFBVSxDQUFWLENBQWI7QUFDQUEsRUFBQUEsTUFBTS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Z3RoIiwiRXJyb3IiLCJpIiwicmVtYWluaW5nIiwicmVzdWx0IiwicGFyc2VJbnQiLCJyZ2JIZXhUb1JnYmEiLCJjc3NSZ2JhVG9SZ2JhIiwicmdiYSIsImNzc1JnYmFSZWdleCIsIm1hdGNoZXMiLCJtYXRjaCIsImVycm9yIiwibWVzc2FnZSIsImNzc1JnYlRvUmdiYSIsInJnYiIsImNzc1JnYlJlZ2V4IiwicmdiYVRvSGV4UmdiYSIsImZpbGxlciIsInRvU3RyaW5nIiwicGFyc2VDb2xvciIsImNvbG9yIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/support/colors.js\n");
/***/ }),
/***/ "./src/support/easings.js":
/*!********************************!*\
!*** ./src/support/easings.js ***!
\********************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"createEaseLinear\": () => (/* binding */ createEaseLinear)\n/* harmony export */ });\n/**\n * @callback interpolator\n * @param {number} current the current value.\n * @param {number} dest the destination value.\n * @param {number} frameDelta the time elapsed since the last update.\n * @returns {number} the new current value.\n */\n// TODO: Add some interpolation functions.\n\n/**\n * \n * @param {number} rate the number of frequency values to shift by per second.\n * @returns {interpolator} the interpolation function with the given rate.\n */\nfunction createEaseLinear(rate) {\n return function (current, dest, frameDelta) {\n var direction = 1;\n\n if (dest < current) {\n direction = -1;\n }\n\n return current + Math.min(rate * frameDelta, dest) * direction;\n };\n}\n/**@module */\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3VwcG9ydC9lYXNpbmdzLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBOztBQUVBO0FBQ0E7QUFDQTt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2ludGVycG9sYXRvcn0gdGhlIGludGVycG9sYXRpb24gZnVuY3Rpb24gd2l0aCB0aGUgZ2l2ZW4gcmF0ZS5cbiAqL1xuZnVuY3Rpb24gY3JlYXRlRWFzZUxpbmVhcihyYXRlKSB7XG4gICAgcmV0dXJuIChjdXJyZW50LCBkZXN0LCBmcmFtZURlbHRhKSA9PiB7XG4gICAgICAgIGxldCBkaXJlY3Rpb24gPSAxO1xuICAgICAgICBpZiAoZGVzdCA8IGN1cnJlbnQpIHtcbiAgICAgICAgICAgIGRpcmVjdGlvbiA9IC0xO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBjdXJyZW50ICsgKE1hdGgubWluKHJhdGUgKiBmcmFtZURlbHRhLCBkZXN0KSAqIGRpcmVjdGlvbik7XG4gICAgfTtcbn1cblxuLyoqQG1vZHVsZSAqL1xuZXhwb3J0IHsgY3JlYXRlRWFzZUxpbmVhciB9OyJdLCJuYW1lcyI6WyJjcmVhdGVFYXNlTGluZWFyIiwicmF0ZSIsImN1cnJlbnQiLCJkZXN0IiwiZnJhbWVEZWx0YSIsImRpcmVjdGlvbiIsIk1hdGgiLCJtaW4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/support/easings.js\n");
/***/ }),
/***/ "./src/support/support.js":
/*!********************************!*\
!*** ./src/support/support.js ***!
\********************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"colors\": () => (/* reexport module object */ _colors_js__WEBPACK_IMPORTED_MODULE_0__),\n/* harmony export */ \"easings\": () => (/* reexport module object */ _easings_js__WEBPACK_IMPORTED_MODULE_1__)\n/* harmony export */ });\n/* harmony import */ var _colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colors.js */ \"./src/support/colors.js\");\n/* harmony import */ var _easings_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./easings.js */ \"./src/support/easings.js\");\n\n\n/**@module */\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3VwcG9ydC9zdXBwb3J0LmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQTtBQUNBO0FBRUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9hdWRpb3Nob3draXQvLi9zcmMvc3VwcG9ydC9zdXBwb3J0LmpzPzgzMjYiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgY29sb3JzIGZyb20gXCIuL2NvbG9ycy5qc1wiO1xuaW1wb3J0ICogYXMgZWFzaW5ncyBmcm9tIFwiLi9lYXNpbmdzLmpzXCI7XG5cbi8qKkBtb2R1bGUgKi9cbmV4cG9ydCB7IGNvbG9ycywgZWFzaW5ncyB9OyJdLCJuYW1lcyI6WyJjb2xvcnMiLCJlYXNpbmdzIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/support/support.js\n");
/***/ }),
/***/ "./src/visualization/Visualizer.js":
/*!*****************************************!*\
!*** ./src/visualization/Visualizer.js ***!
\*****************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ Visualizer)\n/* harmony export */ });\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }\n\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n\nfunction _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"get\"); return _classApplyDescriptorGet(receiver, descriptor); }\n\nfunction _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }\n\nfunction _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"set\"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }\n\nfunction _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError(\"attempted to \" + action + \" private field on non-instance\"); } return privateMap.get(receiver); }\n\nfunction _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError(\"attempted to set read only private field\"); } descriptor.value = value; } }\n\nvar _stream = /*#__PURE__*/new WeakMap();\n\nvar _analyzing = /*#__PURE__*/new WeakMap();\n\nvar _updateListeners = /*#__PURE__*/new WeakMap();\n\nvar _audioCtx = /*#__PURE__*/new WeakMap();\n\nvar _source = /*#__PURE__*/new WeakMap();\n\nvar _analyzer = /*#__PURE__*/new WeakMap();\n\nvar _buffer = /*#__PURE__*/new WeakMap();\n\nvar _lastUpdate = /*#__PURE__*/new WeakMap();\n\n/**@module */\n\n/**\n * @callback visualizerUpdateListener\n * @param {number} delta elapsed time since last update.\n * @param {Uint8Array} bins the bins with varying frequency values. \n */\n\n/**\n * Provides a simplified access point to the frequency bins in the form of a visualization update listener.\n */\nvar Visualizer = /*#__PURE__*/function () {\n /**\n * \n * @param {MediaSource|HTMLMediaElement} mediaSource a media source to analyze.\n * @param {number} [fftSize = 1024] the size of the fft window.\n */\n function Visualizer(mediaSource) {\n var fftSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1024;\n\n _classCallCheck(this, Visualizer);\n\n _classPrivateFieldInitSpec(this, _stream, {\n writable: true,\n value: void 0\n });\n\n _classPrivateFieldInitSpec(this, _analyzing, {\n writable: true,\n value: false\n });\n\n _classPrivateFieldInitSpec(this, _updateListeners, {\n writable: true,\n value: []\n });\n\n _classPrivateFieldInitSpec(this, _audioCtx, {\n writable: true,\n value: void 0\n });\n\n _classPrivateFieldInitSpec(this, _source, {\n writable: true,\n value: void 0\n });\n\n _classPrivateFieldInitSpec(this, _analyzer, {\n writable: true,\n value: void 0\n });\n\n _classPrivateFieldInitSpec(this, _buffer, {\n writable: true,\n value: void 0\n });\n\n _classPrivateFieldInitSpec(this, _lastUpdate, {\n writable: true,\n value: void 0\n });\n\n _classPrivateFieldSet(this, _stream, mediaSource);\n\n _classPrivateFieldSet(this, _analyzing, false);\n\n _classPrivateFieldSet(this, _updateListeners, []);\n\n _classPrivateFieldSet(this, _audioCtx, new window.AudioContext());\n\n if (mediaSource instanceof HTMLMediaElement) {\n _classPrivateFieldSet(this, _source, _classPrivateFieldGet(this, _audioCtx).createMediaElementSource(_classPrivateFieldGet(this, _stream)));\n } else {\n _classPrivateFieldSet(this, _source, _classPrivateFieldGet(this, _audioCtx).createMediaStreamSource(_classPrivateFieldGet(this, _stream)));\n }\n\n _classPrivateFieldSet(this, _analyzer, _classPrivateFieldGet(this, _audioCtx).createAnalyser());\n\n _classPrivateFieldGet(this, _analyzer).fftSize = fftSize;\n\n _classPrivateFieldSet(this, _buffer, new Uint8Array(_classPrivateFieldGet(this, _analyzer).frequencyBinCount));\n\n _classPrivateFieldGet(this, _source).connect(_classPrivateFieldGet(this, _analyzer));\n\n _classPrivateFieldGet(this, _analyzer).connect(_classPrivateFieldGet(this, _audioCtx).destination);\n\n _classPrivateFieldSet(this, _lastUpdate, null);\n }\n /**\n * Begins analyzing and sending out update pings.\n */\n\n\n _createClass(Visualizer, [{\n key: \"analyze\",\n value: function analyze() {\n if (_classPrivateFieldGet(this, _analyzing)) {\n return;\n }\n\n _classPrivateFieldSet(this, _analyzing, true);\n\n var self = this; // since calling from requestAnimationFrame means \"this\" is no longer set to produced object.\n\n var update = function update(timestamp) {\n if (!_classPrivateFieldGet(self, _analyzing)) return;\n\n if (!_classPrivateFieldGet(self, _lastUpdate)) {\n _classPrivateFieldSet(self, _lastUpdate, timestamp);\n }\n\n var delta = timestamp - _classPrivateFieldGet(self, _lastUpdate);\n\n _classPrivateFieldGet(self, _analyzer).getByteFrequencyData(_classPrivateFieldGet(self, _buffer));\n\n _classPrivateFieldGet(self, _updateListeners).forEach(function (listener) {\n listener(delta, _classPrivateFieldGet(self, _buffer));\n });\n\n requestAnimationFrame(update);\n };\n\n requestAnimationFrame(update);\n }\n /**\n * Stops the analysis. Listeners will stop receiving bins.\n */\n\n }, {\n key: \"stop\",\n value: function stop() {\n _classPrivateFieldSet(this, _analyzing, false);\n }\n /**\n * \n * @param {visualizerUpdateListener} listener the visualizer update listener to be registered.\n * @returns {boolean} true if and only if the listener was successfully added.\n */\n\n }, {\n key: \"addUpdateListener\",\n value: function addUpdateListener(listener) {\n if (_classPrivateFieldGet(this, _updateListeners).includes(listener)) ;\n\n _classPrivateFieldGet(this, _updateListeners).push(listener);\n\n return true;\n }\n /**\n * \n * @param {visualizerUpdateListener} listener the visualizer update listener to remove.\n * @returns {boolean} true if and only if the removal of the listener was a success.\n */\n\n }, {\n key: \"removeUpdateListener\",\n value: function removeUpdateListener(listener) {\n var removeIndex = _classPrivateFieldGet(this, _updateListeners).indexOf(listener);\n\n if (removeIndex < 0) return false;\n\n _classPrivateFieldGet(this, _updateListeners).splice(removeIndex, 1);\n\n return true;\n }\n /**\n * @returns {number} The number of bins based on the size of the FFT window.\n */\n\n }, {\n key: \"numberOfBins\",\n get: function get() {\n return _classPrivateFieldGet(this, _buffer).length;\n }\n /**\n * \n * @returns {number} The fft window size.\n */\n\n }, {\n key: \"fftSize\",\n get: function get() {\n return _classPrivateFieldGet(this, _analyzer).fftSize;\n }\n }]);\n\n return Visualizer;\n}();\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdmlzdWFsaXphdGlvbi9WaXN1YWxpemVyLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtJQUNxQkE7QUFVakI7QUFDSjtBQUNBO0FBQ0E7QUFDQTtBQUNJLHNCQUFZQyxXQUFaLEVBQXlDO0FBQUEsUUFBaEJDLE9BQWdCLHVFQUFOLElBQU07O0FBQUE7O0FBQUE7QUFBQTtBQUFBO0FBQUE7O0FBQUE7QUFBQTtBQUFBLGFBYjVCO0FBYTRCOztBQUFBO0FBQUE7QUFBQSxhQVp0QjtBQVlzQjs7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFDckMseUNBQWVELFdBQWY7O0FBQ0EsNENBQWtCLEtBQWxCOztBQUNBLGtEQUF3QixFQUF4Qjs7QUFDQSwyQ0FBaUIsSUFBSUUsTUFBTSxDQUFDQyxZQUFYLEVBQWpCOztBQUNBLFFBQUlILFdBQVcsWUFBWUksZ0JBQTNCLEVBQTZDO0FBQ3pDLDJDQUFlLHVDQUFlQyx3QkFBZix1QkFBd0MsSUFBeEMsV0FBZjtBQUNILEtBRkQsTUFF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nMoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLiNidWZmZXIubGVuZ3RoO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFxuICAgICAqIEByZXR1cm5zIHtudW1iZXJ9IFRoZSBmZnQgd2luZG93IHNpemUuXG4gICAgICovXG4gICAgZ2V0IGZmdFNpemUoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLiNhbmFseXplci5mZnRTaXplO1xuICAgIH1cbn0iXSwibmFtZXMiOlsiVmlzdWFsaXplciIsIm1lZGlhU291cmNlIiwiZmZ0U2l6ZSIsIndpbmRvdyIsIkF1ZGlvQ29udGV4dCIsIkhUTUxNZWRpYUVsZW1lbnQiLCJjcmVhdGVNZWRpYUVsZW1lbnRTb3VyY2UiLCJjcmVhdGVNZWRpYVN0cmVhbVNvdXJjZSIsImNyZWF0ZUFuYWx5c2VyIiwiVWludDhBcnJheSIsImZyZXF1ZW5jeUJpbkNvdW50IiwiY29ubmVjdCIsImRlc3RpbmF0aW9uIiwic2VsZiIsInVwZGF0ZSIsInRpbWVzdGFtcCIsImRlbHRhIiwiZ2V0Qnl0ZUZyZXF1ZW5jeURhdGEiLCJmb3JFYWNoIiwibGlzdGVuZXIiLCJyZXF1ZXN0QW5pbWF0aW9uRnJhbWUiLCJpbmNsdWRlcyIsInB1c2giLCJyZW1vdmVJbmRleCIsImluZGV4T2YiLCJzcGxpY2UiLCJsZW5ndGgiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/visualization/Visualizer.js\n");
/***/ }),
/***/ "./src/visualization/VisualizerUpdateManager.js":
/*!******************************************************!*\
!*** ./src/visualization/VisualizerUpdateManager.js ***!
\******************************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ VisualizerUpdateManager)\n/* harmony export */ });\n/* harmony import */ var _Visualizer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Visualizer.js */ \"./src/visualization/Visualizer.js\");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\nfunction _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }\n\nfunction _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\"Cannot initialize the same private elements twice on an object\"); } }\n\nfunction _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"get\"); return _classApplyDescriptorGet(receiver, descriptor); }\n\nfunction _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }\n\nfunction _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, \"set\"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }\n\nfunction _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError(\"attempted to \" + action + \" private field on non-instance\"); } return privateMap.get(receiver); }\n\nfunction _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { throw new TypeError(\"attempted to set read only private field\"); } descriptor.value = value; } }\n\n\n/**@module */\n\n/**\n * @callback visualizerBinUpdateListener\n * @param {number} timeDelta elapsed time since last update.\n * @param {number} amplitude The amplitude of the associated bin.\n * @param {number} ampDelta change in amplitude of the frequency bin.\n */\n\n/**\n * @callback visualizerRangedUpdateListener\n * @param {number} timeDelta elapsed time since last update.\n * @param {number} bins the bins of the range.\n */\n\n/**\n * A visualizer update manager offers an extra layer of abstraction on top of the {@link Visualizer}'s update listener.\n * \n * Specifically, the update manager handles updates directly from the {@link Visualizer} and checks for changes in the individual bins. These changes are then broadcasted to the individual bin listeners.\n * In the rare event that a bin has not changed, then it will not receive an update call.\n */\n\nvar _binnedListeners = /*#__PURE__*/new WeakMap();\n\nvar _rangedListeners = /*#__PURE__*/new WeakMap();\n\nvar _lastBins = /*#__PURE__*/new WeakMap();\n\nvar _visualizer = /*#__PURE__*/new WeakMap();\n\nvar _visualizerListener = /*#__PURE__*/new WeakMap();\n\nvar VisualizerUpdateManager = /*#__PURE__*/function () {\n /**\n * \n * @param {Visualizer} visualizer the visualizer this manager obtains data from.\n */\n function VisualizerUpdateManager(visualizer) {\n var _this = this;\n\n _classCallCheck(this, VisualizerUpdateManager);\n\n _classPrivateFieldInitSpec(this, _binnedListeners, {\n writable: true,\n value: []\n });\n\n _classPrivateFieldInitSpec(this, _rangedListeners, {\n writable: true,\n value: []\n });\n\n _classPrivateFieldInitSpec(this, _lastBins, {\n writable: true,\n value: void 0\n });\n\n _classPrivateFieldInitSpec(this, _visualizer, {\n writable: true,\n value: void 0\n });\n\n _classPrivateFieldInitSpec(this, _visualizerListener, {\n writable: true,\n value: void 0\n });\n\n _classPrivateFieldSet(this, _binnedListeners, []);\n\n _classPrivateFieldSet(this, _rangedListeners, []);\n\n for (var i = 0; i < visualizer.getNumberOfBins(); i++) {\n _classPrivateFieldGet(this, _binnedListeners).push([]);\n }\n\n _classPrivateFieldSet(this, _lastBins, new Uint8Array(_classPrivateFieldGet(this, _binnedListeners).length));\n\n _classPrivateFieldSet(this, _visualizer, visualizer);\n\n _classPrivateFieldSet(this, _visualizerListener, function (delta, bins) {\n var sortedCopyOfRangedListeners = _toConsumableArray(_classPrivateFieldGet(_this, _rangedListeners)); // We assume this is sorted properly. A priority queue could be better.\n\n\n var _loop = function _loop(binInd) {\n var lastBin = _classPrivateFieldGet(_this, _lastBins)[binInd];\n\n if (lastBin !== bins[binInd]) {\n _classPrivateFieldGet(_this, _binnedListeners)[binInd].forEach(function (listener) {\n listener(delta, bins[binInd], bins[binInd] - lastBin);\n });\n\n for (var rangedInd = 0; rangedInd < sortedCopyOfRangedListeners.length; rangedInd++) {\n // Could switch to a while loop.\n var _sortedCopyOfRangedLi = sortedCopyOfRangedListeners[rangedInd],\n lower = _sortedCopyOfRangedLi.lower,\n upper = _sortedCopyOfRangedLi.upper,\n listener = _sortedCopyOfRangedLi.listener;\n if (lower > binInd) break; // Don't need to check the rest if the current lowest minimum is greater than the current bin index.\n\n if (binInd <= upper) {\n listener(delta, bins.slice(lower, upper));\n sortedCopyOfRangedListeners.shift();\n rangedInd--;\n }\n }\n\n _classPrivateFieldGet(_this, _lastBins)[binInd] = bins[binInd];\n }\n };\n\n for (var binInd = 0; binInd < _classPrivateFieldGet(_this, _lastBins).length; binInd++) {\n _loop(binInd);\n }\n });\n\n visualizer.addUpdateListener(_classPrivateFieldGet(this, _visualizerListener));\n }\n /**\n * Adds a listener to a specific frequency bin.\n * \n * @param {object} freqBinListener the listener for a specific frequency bin.\n * @param {number} freqBinListener.freqBin the frequency bin this update listener should listen to.\n * @param {visualizerBinUpdateListener} freqBinListener.listener the listener itself that will be called upon the bin updating.\n * @returns {boolean} true if and only if the updater was added successfully.\n */\n\n\n _createClass(VisualizerUpdateManager, [{\n key: \"AddVisualizerBinUpdateListener\",\n value: function AddVisualizerBinUpdateListener(_ref) {\n var freqBin = _ref.freqBin,\n listener = _ref.listener;\n if (_classPrivateFieldGet(this, _binnedListeners)[freqBin].includes(listener)) return false;\n\n _classPrivateFieldGet(this, _binnedListeners)[freqBin].push(listener);\n\n return true;\n }\n /**\n * Similar to {@link VisualizerUpdateManager#AddVisualizerBinUpdateListener}, this method adds a listener for to a range of bins.\n * \n * @param {object} rangedUpdateListener The ranged update listener to add.\n * @param {number} rangedUpdateListener.lower The lower bound of the bins to listen to (inclusive).\n * @param {number} rangedUpdateListener.upper The upper bound of the bins to listen to (inclusive).\n * @param {visualizerRangedUpdateListener} rangedUpdateListener.listener The listener to register to the range. \n * @returns {boolean} True if and only if the ranged listener was added successfully.\n */\n\n }, {\n key: \"addVisualizerRangedUpdateListener\",\n value: function addVisualizerRangedUpdateListener(_ref2) {\n var lower = _ref2.lower,\n upper = _ref2.upper,\n listener = _ref2.listener;\n var rangedListener = {\n lower: lower,\n upper: upper,\n listener: listener\n };\n if (_classPrivateFieldGet(this, _rangedListeners).includes(rangedListener)) return false;\n\n _classPrivateFieldGet(this, _rangedListeners).push(rangedListener);\n\n _classPrivateFieldGet(this, _rangedListeners).sort(function (a, b) {\n return a.lower - b.lower;\n });\n\n return true;\n }\n /**\n * \n * @param {object} binFreqListener The bin frequency listener to remove.\n * @param {number} binFreqListener.freqBin the frequency bin the update listener to be removed from is in.\n * @param {visualizerBinUpdateListener} binFreqListener.listener the listener that is to be removed.\n * @returns {boolean} true if and only if the listener was successfully removed.\n */\n\n }, {\n key: \"removeVisualizerBinUpdateListener\",\n value: function removeVisualizerBinUpdateListener(_ref3) {\n var freqBin = _ref3.freqBin,\n listener = _ref3.listener;\n\n var removeIndex = _classPrivateFieldGet(this, _binnedListeners)[freqBin].indexOf(listener);\n\n if (removeIndex < 0) return false;\n\n _classPrivateFieldGet(this, _binnedListeners)[freqBin].splice(removeIndex, 1);\n\n return true;\n }\n /**\n * Similar to {@link removeVisualizerBinUpdateListener}, this method removes the given listener from a range of bins.\n * \n * @param {object} rangedListener The ranged listener to remove.\n * @param {number} rangedListener.lower The lower bound of bins to remove the listener from (inclusive).\n * @param {number} rangedListener.upper The upper bound of bin to remove the listener from (inclusive.)\n * @param {visualizerRangedUpdateListener} rangedListener.listener The update listener to remove from the bins.\n * @returns {boolean} True if and only if the given listener was removed.\n */\n\n }, {\n key: \"removeVisualizerRangedUpdateListener\",\n value: function removeVisualizerRangedUpdateListener(_ref4) {\n var lower = _ref4.lower,\n upper = _ref4.upper,\n listener = _ref4.listener;\n var rangedListener = {\n lower: lower,\n upper: upper,\n listener: listener\n };\n\n var removeIndex = _classPrivateFieldGet(this, _rangedListeners).indexOf(rangedListener);\n\n if (removeIndex < 0) return false;\n\n _classPrivateFieldGet(this, _binnedListeners).splice(removeIndex, 1);\n\n return true;\n }\n /**\n * @param {object} listeners The listeners that this visualizer update manager should be set to use.\n * @param {visualizerBinUpdateListener[][]} listeners.binned The bin listeners.\n * @param {object[]} listeners.ranged The array of ranged listeners.\n * @param {number} listeners.ranged[].lower The lower bound of the listener.\n * @param {number} listeners.ranged[].upper The upper bound of the listener.\n * @param {visualizerRangedUpdateListener} listeners.ranged[].listener The listener for the previously mentioned ranges.\n * @returns {boolean} true if and only if successfully loaded the new listeners.\n */\n\n }, {\n key: \"loadListeners\",\n value: function loadListeners(listeners) {\n if (listeners.binned.length !== _classPrivateFieldGet(this, _binnedListeners).length) return false;\n\n _classPrivateFieldSet(this, _binnedListeners, listeners.binned);\n\n _classPrivateFieldSet(this, _rangedListeners, listeners.ranged.sort(function (a, b) {\n return a.lower - b.lower;\n }));\n\n return true;\n }\n /**\n * \n * @returns {object} All the listeners, both for binned, and ranged listeners. See {@link VisualizerUpdateManager#loadListeners} to see the structure of the returned object.\n */\n\n }, {\n key: \"retrieveListeners\",\n value: function retrieveListeners() {\n return {\n binned: _classPrivateFieldGet(this, _binnedListeners),\n ranged: _classPrivateFieldGet(this, _rangedListeners)\n };\n }\n /**\n * Clears this manager of all listeners.\n */\n\n }, {\n key: \"clearBinnedListeners\",\n value: function clearBinnedListeners() {\n _classPrivateFieldGet(this, _binnedListeners).forEach(function (bin) {\n bin.length = 0;\n });\n }\n /**\n * Unbinds this update manager from the initial visualizer. Effectively meaning this manager will no longer be used.\n */\n\n }, {\n key: \"unbindVisualizer\",\n value: function unbindVisualizer() {\n _classPrivateFieldGet(this, _visualizer).removeUpdateListener(_classPrivateFieldGet(this, _visualizerListener));\n }\n }]);\n\n return VisualizerUpdateManager;\n}();\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdmlzdWFsaXphdGlvbi9WaXN1YWxpemVyVXBkYXRlTWFuYWdlci5qcy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFFQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFHQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0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mV0dGVyLlxuICAgICAgICAgICAgZm9yIChsZXQgYmluSW5kID0gMDsgYmluSW5kIDwgdGhpcy4jbGFzdEJpbnMubGVuZ3RoOyBiaW5JbmQrKykge1xuICAgICAgICAgICAgICAgIGNvbnN0IGxhc3RCaW4gPSB0aGlzLiNsYXN0Qmluc1tiaW5JbmRdO1xuICAgICAgICAgICAgICAgIGlmIChsYXN0QmluICE9PSBiaW5zW2JpbkluZF0pIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy4jYmlubmVkTGlzdGVuZXJzW2JpbkluZF0uZm9yRWFjaChsaXN0ZW5lciA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsaXN0ZW5lcihkZWx0YSwgYmluc1tiaW5JbmRdLCBiaW5zW2JpbkluZF0gLSBsYXN0QmluKTtcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIGZvciAobGV0IHJhbmdlZEluZCA9IDA7IHJhbmdlZEluZCA8IHNvcnRlZENvcHlPZlJhbmdlZExpc3RlbmVycy5sZW5ndGg7IHJhbmdlZEluZCsrKSB7IC8vIENvdWxkIHN3aXRjaCB0byBhIHdoaWxlIGxvb3AuXG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCB7IGxvd2VyLCB1cHBlciwgbGlzdGVuZXIgfSA9IHNvcnRlZENvcHlPZlJhbmdlZExpc3RlbmVyc1tyYW5nZWRJbmRdO1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGxvd2VyID4gYmluSW5kKSBicmVhazsgLy8gRG9uJ3QgbmVlZCB0byBjaGVjayB0aGUgcmVzdCBpZiB0aGUgY3VycmVudCBsb3dlc3QgbWluaW11bSBpcyBncmVhdGVyIHRoYW4gdGhlIGN1cnJlbnQgYmluIGluZGV4LlxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGJpbkluZCA8PSB1cHBlcikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxpc3RlbmVyKGRlbHRhLCB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ZXIiLCJpIiwiZ2V0TnVtYmVyT2ZCaW5zIiwicHVzaCIsIlVpbnQ4QXJyYXkiLCJsZW5ndGgiLCJkZWx0YSIsImJpbnMiLCJzb3J0ZWRDb3B5T2ZSYW5nZWRMaXN0ZW5lcnMiLCJiaW5JbmQiLCJsYXN0QmluIiwiZm9yRWFjaCIsImxpc3RlbmVyIiwicmFuZ2VkSW5kIiwibG93ZXIiLCJ1cHBlciIsInNsaWNlIiwic2hpZnQiLCJhZGRVcGRhdGVMaXN0ZW5lciIsImZyZXFCaW4iLCJpbmNsdWRlcyIsInJhbmdlZExpc3RlbmVyIiwic29ydCIsImEiLCJiIiwicmVtb3ZlSW5kZXgiLCJpbmRleE9mIiwic3BsaWNlIiwibGlzdGVuZXJzIiwiYmlubmVkIiwicmFuZ2VkIiwiYmluIiwicmVtb3ZlVXBkYXRlTGlzdGVuZXIiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/visualization/VisualizerUpdateManager.js\n");
/***/ }),
/***/ "./src/visualization/visualization.js":
/*!********************************************!*\
!*** ./src/visualization/visualization.js ***!
\********************************************/
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Visualizer\": () => (/* reexport safe */ _Visualizer_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"]),\n/* harmony export */ \"VisualizerUpdateManager\": () => (/* reexport safe */ _VisualizerUpdateManager_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])\n/* harmony export */ });\n/* harmony import */ var _Visualizer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Visualizer.js */ \"./src/visualization/Visualizer.js\");\n/* harmony import */ var _VisualizerUpdateManager_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VisualizerUpdateManager.js */ \"./src/visualization/VisualizerUpdateManager.js\");\n\n\n/**@module */\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdmlzdWFsaXphdGlvbi92aXN1YWxpemF0aW9uLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQTtBQUNBO0FBRUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9hdWRpb3Nob3draXQvLi9zcmMvdmlzdWFsaXphdGlvbi92aXN1YWxpemF0aW9uLmpzPzQxODIiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFZpc3VhbGl6ZXIgZnJvbSBcIi4vVmlzdWFsaXplci5qc1wiO1xuaW1wb3J0IFZpc3VhbGl6ZXJVcGRhdGVNYW5hZ2VyIGZyb20gXCIuL1Zpc3VhbGl6ZXJVcGRhdGVNYW5hZ2VyLmpzXCI7XG5cbi8qKkBtb2R1bGUgKi9cbmV4cG9ydCB7IFZpc3VhbGl6ZXIsIFZpc3VhbGl6ZXJVcGRhdGVNYW5hZ2VyIH07Il0sIm5hbWVzIjpbIlZpc3VhbGl6ZXIiLCJWaXN1YWxpemVyVXBkYXRlTWFuYWdlciJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/visualization/visualization.js\n");
/***/ })
/******/ });
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ id: moduleId,
/******/ // no module.loaded needed
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/************************************************************************/
/******/ /* webpack/runtime/compat get default export */
/******/ (() => {
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = (module) => {
/******/ var getter = module && module.__esModule ?
/******/ () => (module['default']) :
/******/ () => (module);
/******/ __webpack_require__.d(getter, { a: getter });
/******/ return getter;
/******/ };
/******/ })();
/******/
/******/ /* webpack/runtime/define property getters */
/******/ (() => {
/******/ // define getter functions for harmony exports
/******/ __webpack_require__.d = (exports, definition) => {
/******/ for(var key in definition) {
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ }
/******/ }
/******/ };
/******/ })();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ (() => {
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ })();
/******/
/******/ /* webpack/runtime/make namespace object */
/******/ (() => {
/******/ // define __esModule on exports
/******/ __webpack_require__.r = (exports) => {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/ })();
/******/
/************************************************************************/
/******/
/******/ // startup
/******/ // Load entry module and return exports
/******/ // This entry module can't be inlined because the eval-source-map devtool is used.
/******/ var __webpack_exports__ = __webpack_require__("./src/audioshowkitlib.js");
/******/ audioshowkit = __webpack_exports__;
/******/
/******/ })()
;