text: HTTP/1.1 200 OK
  Date: Sat, 24 Nov 2018 07:45:21 GMT
  Server: Apache
  Last-Modified: Mon, 02 Oct 2017 16:28:29 GMT
  ETag: "a0c3660a-6d5-55a92dd5ae540"
  Accept-Ranges: bytes
  Content-Length: 1749
  Vary: Accept-Encoding,User-Agent
  Content-Type: application/x-javascript
  
  "use strict";function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var _createClass=function(){function e(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(r,t,a){return t&&e(r.prototype,t),a&&e(r,a),r}}(),ScriptHandler=function(){function e(){_classCallCheck(this,e),this.keys=[]}return _createClass(e,[{key:"addScript",value:function(e){var r=[];if(Array.isArray(e))for(var t=0;t<e.length;t++){for(var a=!1,n=0;n<this.keys.length;n++)this.keys[n]===e[t]&&(a=!0);a||(r.push(e[t]),this.keys.push(e[t]))}else if(this.keys.length>0){var s=!1;this.keys.forEach(function(r){r===e&&(s=!0)}),s||(r.push(e),this.keys.push(e))}else r.push(e),this.keys.push(e);if(r.length>0)return new ScriptLoader(r);var i="already added to queue: ";return i+=Array.isArray(e)?e.join("\n"+i):e,Promise.reject(i)}}]),e}(),ScriptLoader=function(){function e(r){_classCallCheck(this,e),this.url=r,this.urls=this.createUrlArray(r);var t=this.createScripts();return Promise.all(t)}return _createClass(e,[{key:"createUrlArray",value:function(e){var r=[];return Array.isArray(e)?e.forEach(function(e){r.push(e)}):r=[e],r}},{key:"createScripts",value:function(){var e=[];return this.urls.forEach(function(r){e.push(new Promise(function(e,t){var a=document.createElement("script");a.src=r,a.async=!0,a.readyState?a.onreadystatechange=function(){"loaded"!==a.readyState&&"complete"!==a.readystate||(a.onreadystatechange=null,e(this))}:a.onload=function(){e(this)},a.onerror=a.onabort=t;var n=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0];n.appendChild(a)}))}),e}}]),e}();