audioshowkit/tutorials/assets/js/audioshowkit.js

340 lines
268 KiB
JavaScript
Raw Normal View History

/*
* 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9kaXN0L2Nqcy5qcyEuL3NyYy9zdHlsZXMvbXVzaWNQbGF5ZXIuY3NzLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUE7QUFDNkc7QUFDakI7QUFDNUYsOEJBQThCLG1GQUEyQixDQUFDLDRGQUFxQztBQUMvRjtBQUNBLDREQUE0RCw2QkFBNkIsbUJBQW1CLGdCQUFnQixnQ0FBZ0MsZ0NBQWdDLHNCQUFzQiw4REFBOEQsNEJBQTRCLHVDQUF1QyxHQUFHLDRCQUE0QiwyQkFBMkIscUNBQXFDLEdBQUcsb0JBQW9CLHlCQUF5QixrQkFBa0IsbUJBQW1CLEdBQUcsc0JBQXNCLHlCQUF5QixrQkFBa0IsbUJBQW1CLEdBQUcsa0JBQWtCLGdDQUFnQyxHQUFHLE9BQU8sNkZBQTZGLFlBQVksV0FBVyxVQUFVLFlBQVksYUFBYSxXQUFXLGFBQWEsYUFBYSxhQUFhLE9BQU8sS0FBSyxZQUFZLGFBQWEsUUFBUSxLQUFLLFlBQVksV0FBVyxVQUFVLE9BQU8sS0FBSyxZQUFZLFdBQVcsVUFBVSxPQUFPLEtBQUssWUFBWSw0Q0FBNEMsNkJBQTZCLG1CQUFtQixnQkFBZ0IsZ0NBQWdDLGdDQUFnQyxzQkFBc
/***/ }),
/***/ "./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\n list.push(item);\n }\n };\n\n return list;\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJza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iO1xuXG4vKlxuICBNSVQgTGljZW5zZSBodHRwOi8vd3d3Lm9wZW5zb3VyY2Uub3JnL2xpY2Vuc2VzL21pdC1saWNlbnNlLnBocFxuICBBdXRob3IgVG9iaWFzIEtvcHBlcnMgQHNva3JhXG4qL1xubW9kdWxlLmV4cG9ydHMgPSBmdW5jdGlvbiAoY3NzV2l0aE1hcHBpbmdUb1N0cmluZykge1xuICB2YXIgbGlzdCA9IFtdOyAvLyByZXR1cm4gdGhlIGxpc3Qgb2YgbW9kdWxlcyBhcyBjc3Mgc3RyaW5nXG5cbiAgbGlzdC50b1N0cmluZyA9IGZ1bmN0aW9uIHRvU3RyaW5nKCkge1xuICAgIHJldHVybiB0aGlzLm1hcChmdW5jdGlvbiAoaXRlbSkge1xuICAgICAgdmFyIGNvbnRlbnQgPSBcIlwiO1xuICAgICAgdmFyIG5lZWRMYXllciA9IHR5cGVvZiBpdGVtW
/***/ }),
/***/ "./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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9kaXN0L3J1bnRpbWUvc291cmN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yY2VSb290IHx8IFwiXCIpLmNvbmNhdChzb3VyY2UsIFwiICovXCIpO1xuICAgIH0pO1xuICAgIHJldHVybiBbY29udGVudF0uY29uY2F0KHNvdXJjZVVSTHMpLmNvbmNhdChbc291cmNlTWFwcGluZ10pLmpvaW4oXCJcXG5cIik7XG4gIH1cblxuICByZXR1cm4gW2NvbnRlbnRdLmpvaW4oXCJcXG5cIik7XG59OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\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_IM
/***/ }),
/***/ "./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(_index, 1);\n }\n }\n\n lastIdentifiers = newLastIdentifiers;\n };\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvc3R5bGUtbG9hZGVyL2Rpc3QvcnVudGltZS9pbmplY3RTdHlsZXNJbnRvU3R5bGVUYWcuanMuanMiLCJtYXBwaW5ncyI6IkFBQWE7O0FBRWI7O0FBRUE7QUFDQTs7QUFFQSxrQkFBa0Isd0JBQXdCO0FBQzFDO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7O0FBRUEsa0JBQWtCLGlCQUFpQjtBQUNuQztBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E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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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvc3R5bGUtbG9hZGVyL2Rpc3QvcnVudGltZS9pbnNlcnRCeVNlbGVjdG9yLmpzLmpzIiwibWFwcGluZ3MiOiJBQUFhOztBQUViO0FBQ0E7O0FBRUE7QUFDQTtBQUNBLHNEQUFzRDs7QUFFdEQ7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLFFBQVE7QUFDUjtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTs7O0FBR0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTs7QUFFQSIsInNvdXJjZXMiOlsid2VicGFjazovL2F1ZGlvc2hvd2tpdC8uL25vZGVfbW9kdWxlcy9zdHlsZS1sb2FkZXIvZGlzdC9ydW50aW1lL2luc2VydEJ5U2VsZWN0b3IuanM/YjIxNCJdLCJzb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sZSkge1xuICB2YXIgdGFyZ2V0ID0gZ2V0VGFyZ2V0KGluc2VydCk7XG5cbiAgaWYgKCF0YXJnZXQpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoXCJDb3VsZG4ndCBmaW5kIGEgc3R5bGUgdGFyZ2V0LiBUaGlzIHByb2JhYmx5IG1lYW5zIHRoYXQgdGhlIHZhbHVlIGZvciB0aGUgJ2luc2VydCcgcGFyYW1ldGVyIGlzIGludmFsaWQuXCIpO1xuICB9XG5cbiAgdGFyZ2V0LmFwcGVuZENoaWxkKHN0eWxlKTtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBpbnNlcnRCeVNlbGVjdG9yOyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvc3R5bGUtbG9hZGVyL2Rpc3QvcnVudGltZS9zdHlsZURvbUFQSS5qcy5qcyIsIm1hcHBpbmdzIjoiQUFBYTs7QUFFYjtBQUNBO0FBQ0E7O0FBRUE7QUFDQSxrREFBa0Q7QUFDbEQ7O0FBRUE7QUFDQSwwQ0FBMEM7QUFDMUM7O0FBRUE7O0FBRUE7QUFDQSxpRkFBaUY7QUFDakY7O0FBRUE7O0FBRUE7QUFDQSxhQUFhO0FBQ2I7O0FBRUE7QUFDQSxhQUFhO0FBQ2I7O0FBRUE7QUFDQSxhQUFhO0FBQ2I7O0FBRUE7O0FBRUE7QUFDQSx5REFBeUQ7QUFDekQsSUFBSTs7QUFFSjs7O0FBR0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTs7O0FBR0E7QUFDQTtBQ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NvdXJjZU1hcDtcblxuICBpZiAoc291cmNlTWFwICYmIHR5cGVvZiBidG9hICE9PSBcInVuZGVmaW5lZFwiKSB7XG4gICAgY3NzICs9IFwiXFxuLyojIHNvdXJjZU1hcHBpbmdVUkw9ZGF0YTphcHBsaWNhdGlvbi9qc29uO2Jhc2U2NCxcIi5jb25jYXQoYnRvYSh1bmVzY2FwZShlbmNvZGVVUklDb21wb25lbnQoSlNPTi5zdHJpbmdpZnkoc291cmNlTWFwKSkpKSwgXCIgKi9cIik7XG4gIH0gLy8gRm9yIG9sZCBJRVxuXG4gIC8qIGlzdGFuYnVsIGlnbm9yZSBpZiAgKi9cblxuXG4gIG9wdGlvbnMuc3R5bGVUYWdUcmFuc2Zvcm0oY3NzLCBzdHlsZUVsZW1lbnQsIG9wdGlvbnMub3B0aW9ucyk7XG59XG5cbmZ1bmN0aW9uIHJlbW92ZVN0eWxlRWxlbWVudChzdHlsZUVsZW1lbnQpIHtcbiAgLy8gaXN0YW5idWwgaWdub3JlIGlmXG4gIGlmIChzdHlsZUVsZW1lbnQucGFyZW50Tm9kZSA9PT0gbnVsbCkge1xuICAgIHJldHVybiBmYWxzZTtcbiAgfVxuXG4gIHN0eWxlRWxlbWVudC5wYXJlbnROb2RlLnJlbW92ZUNoaWxkKHN0eWxlRWxlbWVudCk7XG59XG4vKiBpc3RhbmJ1bCBpZ25vcmUgbmV4dCAgKi9cblxuXG5mdW5jdGlvbiBkb21BUEkob3B0aW9ucykge1xuICB2YXIgc3R5bGVFbGVtZW50ID0gb3B0aW9ucy5pbnNlcnRTdHlsZUVsZW1lbnQob3B0aW9ucyk7XG4gIHJldHVybiB7XG4gICAgdXBkYXRlOiBmdW5jdGlv
/***/ }),
/***/ "./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} [
/***/ }),
/***/ "./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
/***/ }),
/***/ "./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,
/***/ }),
/***/ "./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, _was
/***/ }),
/***/ "./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
/***/ }),
/***/ "./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:
/***/ }),
/***/ "./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
/***/ }),
/***/ "./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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3VwcG9ydC9lYXNpbmdzLmpzLmpzIiwibWFwcGluZ3MiOiI7Ozs7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBOztBQUVBO0FBQ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ogQHJldHVybnMge2ludGVycG9sYXRvcn0gdGhlIGludGVycG9sYXRpb24gZnVuY3Rpb24gd2l0aCB0aGUgZ2l2ZW4gcmF0ZS5cbiAqL1xuZnVuY3Rpb24gY3JlYXRlRWFzZUxpbmVhcihyYXRlKSB7XG4gICAgcmV0dXJuIChjdXJyZW50LCBkZXN0LCBmcmFtZURlbHRhKSA9PiB7XG4gICAgICAgIGxldCBkaXJlY3Rpb24gPSAxO1xuICAgICAgICBpZiAoZGVzdCA8IGN1cnJlbnQpIHtcbiAgICAgICAgICAgIGRpcmVjdGlvbiA9IC0xO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBjdXJyZW50ICsgKE1hdGgubWluKHJhdGUgKiBmcmFtZURlbHRhLCBkZXN0KSAqIGRpcmVjdGlvbik7XG4gICAgfTtcbn1cblxuLyoqQG1vZHVsZSAqL1xuZXhwb3J0IHsgY3JlYXRlRWFzZUxpbmVhciB9OyJdLCJuYW1lcyI6WyJjcmVhdGVFYXNlTGluZWFyIiwicmF0ZSIsImN1cnJlbnQiLCJkZXN0IiwiZnJhbWVEZWx0YSIsImRpcmVjdGlvbiIsIk1hdGgiLCJtaW4iXSwic291cmNlUm9vdCI6IiJ9\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 _
/***/ }),
/***/ "./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 *
/***/ }),
/***/ "./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__;
/******/
/******/ })()
;